UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 45.6 kB
var Dn=Object.create;var lt=Object.defineProperty;var zn=Object.getOwnPropertyDescriptor;var Bn=Object.getOwnPropertyNames;var Un=Object.getPrototypeOf,Vn=Object.prototype.hasOwnProperty;var Fn=(e,t)=>{for(var o in t)lt(e,o,{get:t[o],enumerable:!0})},No=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Bn(t))!Vn.call(e,n)&&n!==o&&lt(e,n,{get:()=>t[n],enumerable:!(i=zn(t,n))||i.enumerable});return e};var Lo=(e,t,o)=>(o=e!=null?Dn(Un(e)):{},No(t||!e||!e.__esModule?lt(o,"default",{value:e,enumerable:!0}):o,e)),Gn=e=>No(lt({},"__esModule",{value:!0}),e);var bs={};Fn(bs,{ComboboxGroupingModernCustomValue:()=>us});module.exports=Gn(bs);var ct=Lo(require("react"));var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var y=(e,t)=>a({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),T=(e,t)=>{let{valid:o,invalid:i,hover:n,focus:r,checked:d,active:c,selected:m,disabled:b,indeterminate:f,loading:x,empty:h,readonly:_,highlighted:M,...C}=t;return a({"k-valid":o,"k-invalid":i,"k-hover":n,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":b,"k-indeterminate":f&&!d,"k-loading":x,"k-empty":h,"k-readonly":_,"k-highlighted":M},Object.keys(C).reduce((A,O)=>(O.startsWith("k-")?A[O]=C[O]:A[`k-${O}`]=C[O],A),{}))};function vo(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},j={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Ct={};function k(e){return Ct[e]=(Ct[e]||0)+1,`k-${e}-${Ct[e]}`}var At=require("react/jsx-runtime"),Xn="k-list-group-sticky-header",yt=e=>(0,At.jsx)("div",{className:a(Xn,e.className),children:(0,At.jsx)("div",{className:"k-list-header-text",children:e.children})});var go=require("react/jsx-runtime"),$n="k-no-data",Mt=e=>{let{live:t,...o}=e;return(0,go.jsx)("span",{...o,className:a($n,e.className),"aria-live":t?"polite":void 0,children:e.children})};var fe="list",Ie=fe;var Se=require("react/jsx-runtime"),Et="k-list",qn=[],Jn={size:[l.undefined,l.small,l.medium,l.large]},Wn={},H=e=>{var M;let{size:t,virtualization:o,children:i,header:n,selectAll:r,optionLabel:d,customValue:c,noData:m,screenReaders:b,...f}=e,h=ct.default.Children.toArray(i)[0],_=(M=h==null?void 0:h.props)!=null&&M.children?ct.default.Children.count(h.props.children):ct.default.Children.count(i);return(0,Se.jsxs)("div",{...f,className:a(e.className,Et,y(Et,{size:t}),{"k-virtual-list":o}),children:[d,r,c,n&&(0,Se.jsx)(yt,{children:n}),i||(m!==void 0?m:(0,Se.jsx)(Mt,{live:!0,children:"No data found."})),b&&i&&(0,Se.jsxs)(Mt,{className:"k-sr-only",live:!0,children:[_," items found."]})]})};H.states=qn;H.options=Jn;H.className=Et;H.defaultOptions=Wn;H.moduleName=fe;H.folderName=Ie;H.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};var Io=require("react/jsx-runtime"),ko="k-list-container",Yn=[],Qn={},Zn={},Ce=e=>{let{...t}=e;return(0,Io.jsx)("div",{...t,className:a(e.className,ko),children:e.children})};Ce.states=Yn;Ce.options=Qn;Ce.className=ko;Ce.defaultOptions=Zn;Ce.moduleName=fe;Ce.folderName=Ie;var xe="checkbox",Ae=xe;var Ot=require("react/jsx-runtime"),dt="k-checkbox",jn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],ei={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},ti={},F=e=>{let{id:t,checked:o,indeterminate:i,hover:n,focus:r,disabled:d,invalid:c,valid:m,required:b,size:f,rounded:x,wrapperRole:h,..._}=e;return(0,Ot.jsx)("span",{className:"k-checkbox-wrap",role:h,children:(0,Ot.jsx)("input",{..._,id:t,type:"checkbox",defaultChecked:o,required:b,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:a(e.className,dt,y(dt,{size:f,rounded:x}),T(dt,{hover:n,focus:r,disabled:d,invalid:c,valid:m,indeterminate:i,checked:o}))})})};F.states=jn;F.options=ei;F.className=dt;F.defaultOptions=ti;F.moduleName=xe;F.folderName=Ae;F.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var q=F;var Ao=require("react/jsx-runtime"),So="k-checkbox-list",oi=[],ni={},Co={layout:"vertical"},B=e=>{let{layout:t=Co.layout,...o}=e;return(0,Ao.jsx)("ul",{...o,className:a(e.className,So,{[`k-list-${t}`]:t}),children:e.children})};B.states=oi;B.options=ni;B.className=So;B.defaultOptions=Co;B.moduleName=xe;B.folderName=Ae;var Mo=require("react/jsx-runtime"),yo="k-checkbox-list-item",ii=[],ai={},si={},U=e=>{let{...t}=e;return(0,Mo.jsx)("li",{...t,className:a(e.className,yo),children:e.children})};U.states=ii;U.options=ai;U.className=yo;U.defaultOptions=si;U.moduleName=xe;U.folderName=Ae;var he=require("react/jsx-runtime"),ne=({children:e="Label",id:t="cb-label-after",...o})=>(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(q,{id:t,...o}),(0,he.jsx)("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});var Tt=require("react/jsx-runtime");var Rt=require("react/jsx-runtime");var Kt=require("react/jsx-runtime");var ri=require("react/jsx-runtime");var li=require("react/jsx-runtime");var ci=require("react/jsx-runtime");var w=require("react/jsx-runtime"),di=B.options,pi=B.states,mi={...B.defaultOptions,variant:"vertical"},ui=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],bi=[],ye=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,w.jsxs)(B,{layout:"horizontal",...o,children:[(0,w.jsx)(U,{children:(0,w.jsx)(ne,{id:k("cb"),defaultChecked:!0,children:"Label"})}),(0,w.jsx)(U,{children:(0,w.jsx)(ne,{id:k("cb"),children:"Label"})}),(0,w.jsx)(U,{children:(0,w.jsx)(ne,{id:k("cb"),children:"Label"})})]}):(0,w.jsxs)(B,{...o,children:[(0,w.jsx)(U,{children:(0,w.jsx)(ne,{id:k("cb"),defaultChecked:!0,children:"Label"})}),(0,w.jsx)(U,{children:(0,w.jsx)(ne,{id:k("cb"),children:"Label"})}),(0,w.jsx)(U,{children:(0,w.jsx)(ne,{id:k("cb"),children:"Label"})})]})};ye.options=di;ye.states=pi;ye.variants=ui;ye.defaultOptions=mi;ye.modifiers=bi;ye.className=B.className;var Eo=require("react/jsx-runtime"),fi=q.options,xi=q.states,hi=q.defaultOptions,Ni=[],Li=[],Me=e=>(0,Eo.jsx)(ne,{id:k("checkbox"),...e,defaultChecked:!0,children:"Label"});Me.options=fi;Me.states=xi;Me.variants=Ni;Me.defaultOptions=hi;Me.modifiers=Li;Me.className=q.className;var We=require("react/jsx-runtime"),_t="k-font-icon",vi=[],gi={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},ki={},Ye=e=>{let{size:t,themeColor:o,icon:i,rotate:n,flip:r,...d}=e;return i?(0,We.jsx)("span",{...d,className:a(e.className,_t,y(_t,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):(0,We.jsx)(We.Fragment,{})};Ye.states=vi;Ye.options=gi;Ye.className=_t;Ye.defaultOptions=ki;var Oo=Ye;var Ne=require("react/jsx-runtime"),Ht="k-svg-icon",Ii=[],Si={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[j.outline,j.solid,j.duotone]},Pt={viewBox:"0 0 24 24",variant:j.outline},Qe=e=>{var x,h;let{size:t,themeColor:o,rotate:i,flip:n,viewBox:r=Pt.viewBox,variant:d=Pt.variant,icon:c,...m}=e;if(!c)return(0,Ne.jsx)(Ne.Fragment,{});if(c==="none")return(0,Ne.jsx)("span",{...m,className:a(e.className,Ht,y("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let b=typeof c=="object"&&c.name&&c.name,f=typeof c=="object"?d&&((x=c.variants)==null?void 0:x[d])||((h=c.variants)==null?void 0:h.outline)||c.content:void 0;return(0,Ne.jsx)("span",{...m,className:a(e.className,Ht,y("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:(0,Ne.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:f!==void 0?{__html:f}:void 0,children:c?void 0:e.children})})};Qe.states=Ii;Qe.options=Si;Qe.className=Ht;Qe.defaultOptions=Pt;var wt=Qe;var Dt=Lo(require("@progress/kendo-svg-icons"));var To="icon",Ro="icons";var Ho=require("react");var Ko=require("react"),_o=(0,Ko.createContext)({iconsType:"svg"});var ie=require("react/jsx-runtime"),pt="k-icon",Ci=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ai=[],yi={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[j.outline,j.solid,j.duotone]},mt={viewBox:"0 0 24 24",type:"svg",variant:j.outline},g=e=>{let{iconsType:t}=(0,Ho.useContext)(_o),{size:o,themeColor:i,icon:n,type:r=t||mt.type,rotate:d,flip:c,viewBox:m=mt.viewBox,variant:b=mt.variant,...f}=e;if(!n)return(0,ie.jsx)(ie.Fragment,{});if((t||r)==="svg"){if(n==="none")return(0,ie.jsx)(wt,{...f,className:a(e.className,pt),icon:n,size:o,variant:b});let h=Dt[n]?n:Ci(`${n}-icon`);return Dt[h]?(0,ie.jsx)(wt,{...f,className:a(e.className,pt),icon:Dt[h],size:o,themeColor:i,rotate:d,flip:c,viewBox:m,variant:b}):(0,ie.jsx)(ie.Fragment,{})}return(0,ie.jsx)(Oo,{...f,className:a(e.className,pt),icon:n,size:o,themeColor:i,rotate:d,flip:c})};g.states=Ai;g.options=yi;g.defaultOptions=mt;g.className=pt;g.moduleName=To;g.folderName=Ro;g.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var ee=require("react/jsx-runtime"),zt="k-list-item",Mi=[s.hover,s.focus,s.selected,s.disabled],Ei={},Oi={},I=e=>{let{text:t,groupLabel:o,group:i,iconName:n,iconClassName:r,showCheckbox:d,checked:c,hover:m,focus:b,selected:f,disabled:x,actions:h,description:_,id:M,...C}=e,A=t||e.children;return(0,ee.jsxs)("li",{...C,id:M,role:i?"presentation":"option",tabIndex:i?void 0:b?0:-1,"aria-selected":!i&&f?"true":i?void 0:"false","aria-disabled":!i&&x?"true":void 0,className:a(e.className,i?"k-list-group-item":zt,T(zt,{hover:m,focus:b,disabled:x,selected:f})),children:[d&&(0,ee.jsx)(F,{checked:c}),n&&(0,ee.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,ee.jsx)(g,{icon:n,className:a("k-list-item-icon",r)})}),(0,ee.jsx)("span",{className:"k-list-item-text",children:A}),h&&(0,ee.jsx)("div",{className:"k-list-item-actions",children:h}),_&&(0,ee.jsx)("span",{className:"k-list-item-description",children:_}),o&&o!==""&&(0,ee.jsx)("div",{className:"k-list-item-group-label",children:o})]})};I.states=Mi;I.options=Ei;I.className=zt;I.defaultOptions=Oi;I.moduleName=fe;I.folderName=Ie;I.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};var Po=require("react/jsx-runtime"),Ti="k-list-ul",re=e=>{let{children:t,role:o,id:i,...n}=e;return(0,Po.jsx)("ul",{...n,id:i,role:o,className:a(Ti,e.className),children:t})};re.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};var Ee=require("react/jsx-runtime"),Ri="k-list-content",J=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":n,listboxId:r,...d}=e;return(0,Ee.jsxs)("div",{...d,className:a(Ri,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?i:void 0,"aria-labelledby":o?n:void 0,children:[o?e.children:(0,Ee.jsx)(re,{role:"listbox",id:r,"aria-label":i,"aria-labelledby":n,children:e.children}),t&&(0,Ee.jsx)("div",{className:"k-height-container",children:(0,Ee.jsx)("div",{})})]})};J.ariaSpec={selector:".k-list-content",rules:[{selector:'.k-list-content[role="listbox"]',attribute:"role=listbox",usage:"For grouped lists, the list content container has the listbox role."},{selector:'.k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."}]};var Oe=require("react/jsx-runtime"),ut="k-list-sticky-header",Ki=[s.hover,s.focus,s.selected],_i={},Hi={},bt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:n,hover:r,focus:d,selected:c,...m}=e;return(0,Oe.jsx)("div",{...m,className:a(ut,e.className),children:(0,Oe.jsxs)("div",{className:a(`${ut}-item`,T(`${ut}-item`,{hover:r,focus:d,selected:c})),children:[o&&(0,Oe.jsx)(F,{checked:i,indeterminate:n,"aria-label":t}),(0,Oe.jsx)("span",{className:"k-list-item-text",children:t})]})})};bt.states=Ki;bt.options=_i;bt.className=ut;bt.defaultOptions=Hi;var Bt=require("react/jsx-runtime");var Te=require("react/jsx-runtime"),Pi="k-list-group-item",Re=e=>{let{groupIconName:t,...o}=e;return(0,Te.jsxs)("li",{...o,role:"presentation",className:a(Pi,e.className),children:[t&&(0,Te.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,Te.jsx)(g,{icon:t,className:"k-list-item-icon"})}),(0,Te.jsx)("span",{className:"k-list-item-text",children:e.children})]})};Re.ariaSpec={selector:".k-list-group-item",rules:[{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-group-item",attribute:"id (when referenced)",usage:"ID for aria-labelledby on the parent group UL."}]};var wo=require("react/jsx-runtime"),Ut="k-list-optionlabel",wi=[s.hover,s.focus,s.selected,s.disabled],Di={},zi={},ft=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...d}=e;return(0,wo.jsx)("div",{...d,className:a(Ut,T(Ut,{hover:o,focus:i,selected:n,disabled:r})),children:t})};ft.states=wi;ft.options=Di;ft.className=Ut;ft.defaultOptions=zi;var Do=require("react/jsx-runtime"),Vt="k-list-custom-value",Bi=[s.hover,s.focus,s.selected,s.disabled],Ui={},Vi={},le=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...d}=e;return(0,Do.jsx)("div",{...d,className:a(Vt,T(Vt,{hover:o,focus:i,selected:n,disabled:r})),children:t})};le.states=Bi;le.options=Ui;le.className=Vt;le.defaultOptions=Vi;var Ft=require("react/jsx-runtime");var Gt=require("react/jsx-runtime");var Xt=require("react/jsx-runtime");var $t=require("react/jsx-runtime");var Fi=require("react/jsx-runtime");var qt=require("react/jsx-runtime");var Ze="input",xt=Ze;var zo=require("react/jsx-runtime"),ht="k-input",Gi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Xi={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},$i={},R=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:b,fillMode:f,...x}=e;return(0,zo.jsx)("span",{...x,className:a(e.className,ht,y(ht,{size:m,rounded:b,fillMode:f}),T(ht,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c}))})};R.states=Gi;R.options=Xi;R.className=ht;R.defaultOptions=$i;R.moduleName=Ze;R.folderName=xt;var Bo=require("react/jsx-runtime"),Nt="k-picker",qi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ji={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Wi={},Ke=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:b,fillMode:f,...x}=e;return(0,Bo.jsx)("span",{...x,className:a(e.className,Nt,y(Nt,{size:m,rounded:b,fillMode:f}),T(Nt,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};Ke.states=qi;Ke.options=Ji;Ke.className=Nt;Ke.defaultOptions=Wi;Ke.moduleName=Ze;Ke.folderName=xt;var _e=require("react/jsx-runtime"),Uo="k-clear-value",Yi=[s.disabled,s.loading,s.readonly],Qi={},W=e=>{let{disabled:t,loading:o,readonly:i,value:n}=e;return t||i||o||!n?(0,_e.jsx)(_e.Fragment,{}):(0,_e.jsx)("span",{className:a(e.className,Uo),children:(0,_e.jsx)(g,{icon:"x"})})};W.states=Yi;W.options=Qi;W.className=Uo;var Vo=require("react/jsx-runtime"),Jt="k-input-inner",Zi=[],ji={},Lt={type:"text",autocomplete:"off",value:"",placeholder:""},Y=e=>{let{value:t=Lt.value,type:o=Lt.type,placeholder:i=Lt.placeholder,autocomplete:n=Lt.autocomplete,disabled:r,readOnly:d,...c}=e;return(0,Vo.jsx)("input",{...c,type:o,className:a(e.className,Jt,y(Jt,e)),placeholder:i,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};Y.states=Zi;Y.options=ji;Y.className=Jt;var je=require("react/jsx-runtime"),Wt="k-input-inner",ea=[],ta={},Yt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:n,valueIconName:r,...d}=e;return(0,je.jsxs)("span",{...d,className:a(e.className,Wt,y(Wt,e)),children:[n,!n&&r&&(0,je.jsx)(g,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&(0,je.jsx)("span",{className:"k-input-value-text",children:t})]})};Yt.states=ea;Yt.options=ta;Yt.className=Wt;var Go=require("react/jsx-runtime"),Qt="k-input-inner",oa=[],na={},Fo={value:"",placeholder:""},Zt=e=>{let{value:t=Fo.value,placeholder:o=Fo.placeholder,rows:i,disabled:n,...r}=e;return(0,Go.jsx)("textarea",{...r,className:a(e.className,Qt,y(Qt,e)),placeholder:o,rows:i,defaultValue:t,disabled:n||void 0})};Zt.states=oa;Zt.options=na;Zt.className=Qt;var et=require("react/jsx-runtime"),Xo="k-input-loading-icon",ia=[s.disabled,s.loading],te=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,et.jsx)(et.Fragment,{}):(0,et.jsx)("span",{className:a(e.className,Xo,"k-icon k-i-loading")})};te.states=ia;te.className=Xo;var tt=require("react/jsx-runtime"),$o="k-input-validation-icon",aa=[s.valid,s.invalid,s.disabled,s.loading],sa={},Q=e=>{let{valid:t,invalid:o,disabled:i,loading:n}=e,r=o?"warning-circle":"check-circle";return i||n||!!!(t||o)?(0,tt.jsx)(tt.Fragment,{}):(0,tt.jsx)(g,{className:a($o),icon:r})};Q.states=aa;Q.options=sa;Q.className=$o;var ot=require("react/jsx-runtime"),ra="k-input-prefix",la={direction:"horizontal"},He=e=>{let{direction:t=la.direction,...o}=e;return e.children?(0,ot.jsx)("span",{...o,className:a(ra,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,ot.jsx)(ot.Fragment,{})};var nt=require("react/jsx-runtime"),ca="k-input-suffix",da={direction:"horizontal"},Pe=e=>{let{direction:t=da.direction,...o}=e;return e.children?(0,nt.jsx)("span",{...o,className:a(ca,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,nt.jsx)(nt.Fragment,{})};var pa=require("react/jsx-runtime");var ma=require("react/jsx-runtime");var Jo=require("react/jsx-runtime"),qo="k-input-separator",ua={direction:"vertical"},ae=e=>{let{direction:t=ua.direction,...o}=e;return(0,Jo.jsx)("span",{...o,className:a(qo,e.className,{[`${qo}-${t}`]:t})})};var jt="button",Wo=jt;var G=require("react/jsx-runtime"),it="k-button",ba=["icon-button"],fa=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],xa={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},eo={showArrow:!1,arrowIconName:"chevron-down"},L=e=>{let{as:t="button",size:o,rounded:i,fillMode:n,themeColor:r,showArrow:d=eo.showArrow,arrowIconName:c=eo.arrowIconName,variant:m,hover:b,focus:f,active:x,selected:h,disabled:_,togglable:M,ariaDisabled:C,icon:A,iconSize:O,text:z,iconClassName:ge,className:Xe,...ke}=e,$e=A!=null,qe=e.children!==void 0;return(0,G.jsxs)(t,{className:a(Xe,it,vo(it,m),y(it,{size:o,rounded:i,fillMode:n,themeColor:r}),T(it,{hover:b,focus:f,active:x,disabled:_||C,selected:h}),{"k-icon-button":!z&&!qe&&$e}),"aria-pressed":M?h?"true":"false":void 0,...ke,"aria-disabled":C?"true":void 0,disabled:_||void 0,children:[typeof A=="string"&&A&&(0,G.jsx)(g,{className:a(ge,"k-button-icon"),icon:A,size:O}),A&&typeof A!="string"&&(0,G.jsx)(G.Fragment,{children:A}),z?(0,G.jsxs)(G.Fragment,{children:[z&&(0,G.jsx)("span",{className:"k-button-text",children:z}),e.children]}):e.children&&(0,G.jsx)("span",{className:"k-button-text",children:e.children}),d&&(0,G.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,G.jsx)(g,{icon:c})})]})};L.states=fa;L.options=xa;L.variants=ba;L.className=it;L.defaultOptions=eo;L.moduleName=jt;L.folderName=Wo;L.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Yo=require("react/jsx-runtime"),Le=e=>(0,Yo.jsx)(L,{children:"Button",...e});var K=require("react/jsx-runtime"),ha=R.states,Na=R.defaultOptions,La=R.options,va=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],ga=[],we=e=>{let{modifiers:t,valid:o,invalid:i,loading:n,disabled:r,readonly:d,...c}=e,m=t==null?void 0:t.prefix,b=t==null?void 0:t.suffix,f=t==null?void 0:t["clear-button"],x=t==null?void 0:t["validation-icon"],h=t==null?void 0:t.separators;return(0,K.jsxs)(R,{...c,valid:o,invalid:i,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(He,{children:(0,K.jsx)(g,{icon:"lock"})}),h&&(0,K.jsx)(ae,{})]}),(0,K.jsx)(Y,{placeholder:"Placeholder",value:"Value"}),x&&(0,K.jsx)(Q,{valid:o,invalid:i,loading:n,disabled:r}),(0,K.jsx)(te,{loading:n,disabled:r}),f&&(0,K.jsx)(W,{loading:n,disabled:r,readonly:d,value:"Value"}),b&&(0,K.jsxs)(K.Fragment,{children:[h&&(0,K.jsx)(ae,{}),(0,K.jsx)(Pe,{children:(0,K.jsx)(Le,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};we.options=La;we.states=ha;we.variants=ga;we.defaultOptions=Na;we.modifiers=va;we.className=R.className;var Zo=require("react/jsx-runtime"),Qo=e=>(0,Zo.jsx)(L,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var en=require("react/jsx-runtime"),jo=e=>(0,en.jsx)(L,{icon:"folder",children:"Button",...e});var vt=require("react/jsx-runtime"),ka=L.options,Ia=L.states,Sa={...L.defaultOptions,variant:"text"},Ca=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Aa=[],De=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,vt.jsx)(Qo,{...o,icon:"star"});case"icon-and-text":return(0,vt.jsx)(jo,{...o,icon:"star",children:"Button"});default:return(0,vt.jsx)(Le,{...o,children:"Button"})}};De.options=ka;De.states=Ia;De.variants=Ca;De.defaultOptions=Sa;De.modifiers=Aa;De.className=L.className;var to="popup",tn=to;var no=require("react/jsx-runtime"),on="k-animation-container",ya=[],Ma={},oo={positionMode:"absolute",shown:!0},oe=e=>{let{positionMode:t=oo.positionMode,shown:o=oo.shown,animationStyle:i,offset:n,...r}=e;return(0,no.jsx)("div",{...r,style:{...n,...e.style},className:a(e.className,on,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,no.jsx)("div",{className:"k-child-animation-container",style:i,children:e.children})})};oe.states=ya;oe.options=Ma;oe.className=on;oe.defaultOptions=oo;oe.moduleName=to;oe.folderName=tn;var io="popup",nn=io;var ao=require("react/jsx-runtime"),an="k-popup",Ea=[],Oa={},sn={positionMode:"absolute"},se=e=>{let{offset:t,positionMode:o=sn.positionMode,animationStyle:i,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return(0,ao.jsx)(oe,{positionMode:o,offset:t,animationStyle:i,className:n,role:r,"aria-label":d,children:(0,ao.jsx)("div",{...c,className:a(e.className,an),children:e.children})})};se.states=Ea;se.options=Oa;se.className=an;se.defaultOptions=sn;se.moduleName=io;se.folderName=nn;se.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var so="action-buttons",rn=so;var ln=require("react/jsx-runtime"),gt="k-actions",Ta=[],Ra={},ro={alignment:"start",orientation:"horizontal"},ce=e=>{let{alignment:t=ro.alignment,orientation:o=ro.orientation,...i}=e;return(0,ln.jsx)("div",{...i,className:a(gt,{[`${gt}-${t}`]:t,[`${gt}-${o}`]:o},e.className),children:e.children})};ce.states=Ta;ce.options=Ra;ce.className=gt;ce.defaultOptions=ro;ce.moduleName=so;ce.folderName=rn;var dn=require("react/jsx-runtime"),Ka="k-actionsheet-footer",cn={alignment:"stretched",orientation:"horizontal"},ze=e=>{let{alignment:t=cn.alignment,orientation:o=cn.orientation,template:i,as:n=i?"div":ce,...r}=e;return(0,dn.jsx)(n,{...r,...!i&&{alignment:t,orientation:o},className:a(e.className,Ka),children:e.children})};var lo="searchbox",pn=lo;var de=require("react/jsx-runtime"),mn="k-searchbox",_a=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Ha={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},co={showIcon:!0,icon:"search"},pe=e=>{let{value:t,placeholder:o,size:i,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:b,required:f,loading:x,disabled:h,showIcon:_=co.showIcon,icon:M=co.icon,"aria-label":C,...A}=e;return(0,de.jsxs)(R,{...A,size:i,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:b,required:f,loading:x,disabled:h,className:a(e.className,mn),children:[_&&(0,de.jsx)(g,{className:"k-input-icon",icon:M}),(0,de.jsx)(Y,{placeholder:o,value:t,"aria-label":C}),(0,de.jsx)(te,{...e}),(0,de.jsx)(Q,{...e}),(0,de.jsx)(W,{...e})]})};pe.states=_a;pe.options=Ha;pe.className=mn;pe.defaultOptions=co;pe.moduleName=lo;pe.folderName=pn;var Pa=require("react/jsx-runtime");var po="textbox",un=po;var D=require("react/jsx-runtime"),bn="k-textbox",wa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Da={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},kt={showClearButton:!0,showValidationIcon:!0,separators:!0},V=e=>{let{size:t,rounded:o,fillMode:i,separators:n=kt.separators,showClearButton:r=kt.showClearButton,showValidationIcon:d=kt.showValidationIcon,prefix:c,suffix:m,type:b,value:f,placeholder:x,hover:h,focus:_,valid:M,invalid:C,required:A,loading:O,disabled:z,readonly:ge,id:Xe,"aria-label":ke,"aria-describedby":$e,...qe}=e;return(0,D.jsxs)(R,{...qe,size:t,rounded:o,fillMode:i,hover:h,focus:_,valid:M,invalid:C,required:A,loading:O,disabled:z,readonly:ge,className:a(e.className,bn),children:[c&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(He,{children:c}),n&&(0,D.jsx)(ae,{})]}),(0,D.jsx)(Y,{id:Xe,placeholder:x,value:f,type:b,disabled:z,"aria-label":ke,"aria-describedby":$e,"aria-invalid":C?"true":void 0}),d&&(0,D.jsx)(Q,{valid:M,invalid:C,loading:O,disabled:z}),(0,D.jsx)(te,{loading:O,disabled:z}),r&&(0,D.jsx)(W,{loading:O,disabled:z,readonly:ge,value:f}),m&&(0,D.jsxs)(D.Fragment,{children:[n&&(0,D.jsx)(ae,{}),(0,D.jsx)(Pe,{children:m})]})]})};V.states=wa;V.options=Da;V.className=bn;V.defaultOptions=kt;V.moduleName=po;V.folderName=un;V.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var at=V;var xn=require("react/jsx-runtime"),fn=e=>(0,xn.jsx)(at,{...e});var hn=require("react/jsx-runtime");var Nn=require("react/jsx-runtime");var za=require("react/jsx-runtime");var It=require("react/jsx-runtime"),Ba=V.states,Ua=V.defaultOptions,Va=V.options,Fa=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Ga=[],Be=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":i.prefix=t!=null&&t[n]?(0,It.jsx)(g,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t!=null&&t[n]?(0,It.jsx)(Le,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t==null?void 0:t[n];break;default:break}}),(0,It.jsx)(fn,{value:"Value",style:{width:300},...o,...i})};Be.options=Va;Be.states=Ba;Be.variants=Ga;Be.defaultOptions=Ua;Be.modifiers=Fa;Be.className=V.className;var X=require("react/jsx-runtime"),Ln="k-actionsheet-titlebar",Xa={},Z=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:b,titleId:f,children:x,...h}=e;return(0,X.jsxs)("div",{...h,className:a(e.className,Ln),children:[(0,X.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[i&&(0,X.jsx)("div",{className:"k-actionsheet-actions",children:i}),!x&&(0,X.jsxs)("div",{className:"k-actionsheet-title",id:f,children:[t&&(0,X.jsx)("div",{className:"k-text-center",children:t}),o&&(0,X.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&(0,X.jsx)("div",{className:"k-actionsheet-title",id:f,children:x}),n&&(0,X.jsx)("div",{className:"k-actionsheet-actions",children:n})]}),(d||r)&&(0,X.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?(0,X.jsx)(V,{value:c,placeholder:m,size:b?"large":"medium","aria-label":t||m||"Input"}):(0,X.jsx)(pe,{placeholder:"Filter",size:b?"large":"medium","aria-label":"Filter options"})})]})};Z.className=Ln;Z.defaultOptions=Xa;var Ue=require("react/jsx-runtime"),mo="k-actionsheet-view",$a=[],qa={},Ja={},Ve=e=>{let{adaptive:t,animated:o,children:i,header:n,footer:r,titleId:d,...c}=e,m=(n==null?void 0:n.type)===Z&&(0,Ue.jsx)(Z,{adaptive:t,titleId:d,...n==null?void 0:n.props}),b=(r==null?void 0:r.type)===ze&&(0,Ue.jsx)(ze,{...r==null?void 0:r.props});return(0,Ue.jsxs)("div",{...c,className:a(e.className,mo,{[`${mo}-animated`]:o}),children:[m,(0,Ue.jsx)("div",{className:"k-actionsheet-content",children:i}),b]})};Ve.states=$a;Ve.options=qa;Ve.className=mo;Ve.defaultOptions=Ja;var st="action-sheet",St=st;var uo="overlay",vn=uo;var kn=require("react/jsx-runtime"),gn="k-overlay",Wa=[],Ya={},Qa={},me=e=>{let{...t}=e;return(0,kn.jsx)("div",{...t,className:a(e.className,gn),children:e.children})};me.states=Wa;me.options=Ya;me.className=gn;me.defaultOptions=Qa;me.moduleName=uo;me.folderName=vn;var ve=require("react/jsx-runtime"),In="k-actionsheet",Za=[],ja={},rt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},P=e=>{let{side:t=rt.side,fullscreen:o=rt.fullscreen,adaptive:i=rt.adaptive,overlay:n=rt.overlay,template:r,children:d,header:c,footer:m,id:b,...f}=e,x=b&&!r&&c?`${b}-title`:void 0;return(0,ve.jsxs)("div",{className:"k-actionsheet-container",children:[n&&(0,ve.jsx)(me,{}),(0,ve.jsx)(oe,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:(0,ve.jsx)("div",{...f,id:b,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":x,className:a(e.className,In,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:r||(0,ve.jsx)(Ve,{header:c,footer:m,adaptive:i,titleId:x,...e,children:d})})})]})};P.states=Za;P.options=ja;P.className=In;P.defaultOptions=rt;P.moduleName=st;P.folderName=St;P.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};var Cn=require("react/jsx-runtime"),Sn="k-actionsheet-container",es=[],ts={},os={},Fe=e=>{let{children:t,...o}=e;return(0,Cn.jsx)("div",{...o,className:Sn,children:t})};Fe.states=es;Fe.options=ts;Fe.className=Sn;Fe.defaultOptions=os;Fe.moduleName=st;Fe.folderName=St;var An=require("react/jsx-runtime"),bo=e=>{let{...t}=e;return(0,An.jsx)("div",{...t,className:a(e.className,"k-list-ul"),children:e.children})};var $=require("react/jsx-runtime"),fo="k-actionsheet-item",ns=[s.hover,s.focus,s.selected,s.disabled],ue=e=>{let{iconName:t,text:o,description:i,hover:n,focus:r,selected:d,disabled:c,...m}=e;return(0,$.jsxs)("span",{...m,className:a(e.className,fo,T(fo,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&(0,$.jsx)($.Fragment,{children:(0,$.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,$.jsx)("span",{className:"k-icon-wrap",children:(0,$.jsx)(g,{className:"k-actionsheet-item-icon",icon:t})}),(0,$.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,$.jsx)("span",{className:"k-actionsheet-item-title",children:o}),i&&(0,$.jsx)("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};ue.states=ns;ue.className=fo;var yn=require("react/jsx-runtime");var is=require("react/jsx-runtime");var as=require("react/jsx-runtime");var ss=require("react/jsx-runtime");var S=require("react/jsx-runtime"),rs=P.options,ls=P.states,En={...P.defaultOptions,variant:"normal"},cs=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],ds=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Ge=e=>{let{variant:t,modifiers:o,...i}={...En,...e},n={},r=(0,S.jsxs)(bo,{children:[(0,S.jsx)(ue,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,S.jsx)(ue,{text:"Add to Favorites",iconName:"heart"}),(0,S.jsx)(ue,{text:"Upload New",iconName:"upload",disabled:!0}),(0,S.jsx)("hr",{className:"k-hr"}),(0,S.jsx)(ue,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!(o!=null&&o[m]),n.actionsEnd=!!(o!=null&&o[m]);break;case"subtitle":n.subtitle=o!=null&&o[m]?d:void 0;break;case"footer":n.footer=!!(o!=null&&o[m]);break;default:break}}),t==="adaptive"?(0,S.jsx)(P,{...i,adaptive:!0,fullscreen:n.fullScreen,header:(0,S.jsx)(Z,{actionsStart:n.actionsStart?(0,S.jsx)(L,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,S.jsx)(L,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?(0,S.jsxs)(ze,{alignment:"stretched",children:[(0,S.jsx)(L,{text:"Cancel",size:"large",themeColor:"base"}),(0,S.jsx)(L,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):(0,S.jsx)(P,{...i,fullscreen:n.fullScreen,header:(0,S.jsx)(Z,{actionsStart:n.actionsStart?(0,S.jsx)(L,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,S.jsx)(L,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?(0,S.jsxs)(ze,{alignment:"stretched",children:[(0,S.jsx)(L,{text:"Apply",themeColor:"primary"}),(0,S.jsx)(L,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Ge.options=rs;Ge.states=ls;Ge.variants=cs;Ge.defaultOptions=En;Ge.modifiers=ds;Ge.className=P.className;var xo="combobox",On=xo;var v=require("react/jsx-runtime"),Tn="k-combobox",ps=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],ms={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[N.undefined,N.solid,N.flat,N.outline]},Rn={separators:!0},be=e=>{let{size:t,rounded:o,fillMode:i,separators:n=Rn.separators,prefix:r,suffix:d,value:c,placeholder:m,hover:b,focus:f,valid:x,invalid:h,required:_,loading:M,disabled:C,popup:A,opened:O,readonly:z,adaptive:ge,adaptiveSettings:Xe,adaptiveTitle:ke,adaptiveSubtitle:$e,adaptiveCustomValue:qe,id:Je,autocomplete:_n,activeDescendant:ho,"aria-label":Hn,...Pn}=e,wn=Je?`${Je}-listbox`:void 0;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(R,{...Pn,size:t,rounded:o,fillMode:i,hover:b,focus:f,valid:x,invalid:h,required:_,loading:M,disabled:C,readonly:z,className:a(e.className,Tn),children:[r&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(He,{children:r}),n&&(0,v.jsx)(ae,{})]}),(0,v.jsx)(Y,{id:Je,placeholder:m,value:c,role:"combobox","aria-haspopup":"listbox","aria-expanded":O?"true":"false","aria-controls":O?wn:void 0,"aria-activedescendant":O&&ho?ho:void 0,"aria-autocomplete":_n,"aria-invalid":h?"true":void 0,"aria-busy":M?"true":void 0,"aria-label":Hn,disabled:C,readOnly:z}),(0,v.jsx)(Q,{valid:x,invalid:h,loading:M,disabled:C}),(0,v.jsx)(te,{loading:M,disabled:C}),(0,v.jsx)(W,{loading:M,disabled:C,readonly:z,value:c}),d&&(0,v.jsxs)(v.Fragment,{children:[n&&(0,v.jsx)(ae,{}),(0,v.jsx)(Pe,{children:d})]}),(0,v.jsx)(L,{className:"k-input-button",icon:"chevron-down",size:t,fillMode:i,"aria-label":"Open popup",tabIndex:-1,disabled:C})]}),O&&A&&(0,v.jsx)(se,{className:"k-list-container k-combobox-popup",containerRole:"region",containerAriaLabel:"Combobox suggestions",children:A}),ge&&(0,v.jsx)(P,{adaptive:!0,id:Je?`${Je}-adaptive`:void 0,...Xe,header:(0,v.jsx)(Z,{actionsEnd:(0,v.jsx)(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:c,inputPlaceholder:m,title:ke,subtitle:$e}),children:(0,v.jsx)("div",{className:"k-list-container",children:(0,v.jsx)(H,{customValue:qe?(0,v.jsx)(le,{text:`Use "${c}"`}):void 0,size:"large",children:(0,v.jsxs)(J,{"aria-label":ke||"Options",children:[(0,v.jsx)(I,{text:"List item"}),(0,v.jsx)(I,{text:"List item"}),(0,v.jsx)(I,{text:"List item"})]})})})})]})};be.states=ps;be.options=ms;be.className=Tn;be.defaultOptions=Rn;be.moduleName=xo;be.folderName=On;be.ariaSpec={selector:".k-combobox",rules:[{selector:".k-combobox > .k-input-inner",attribute:"role=combobox",usage:"Identifies the input as a combobox."},{selector:".k-combobox > .k-input-inner",attribute:"aria-haspopup=listbox",usage:"Indicates the combobox has a listbox popup."},{selector:".k-combobox > .k-input-inner",attribute:"aria-expanded",usage:"Indicates whether the popup is open."},{selector:".k-combobox > .k-input-inner",attribute:"aria-controls=${id}-listbox (when open)",usage:"Points to the listbox element when popup is open."},{selector:".k-combobox > .k-input-inner",attribute:"aria-activedescendant (when open)",usage:"Points to the focused item in the listbox."},{selector:".k-combobox > .k-input-inner",attribute:"aria-autocomplete=list|both|inline (when has autocomplete)",usage:"Indicates the autocomplete behavior."},{selector:".k-combobox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the combobox is in an invalid state."},{selector:".k-combobox > .k-input-inner",attribute:"aria-busy=true (when loading)",usage:"Rendered when the combobox is loading data."},{selector:".k-combobox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name provided by consuming app."},{selector:".k-combobox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the combobox is disabled."},{selector:".k-combobox .k-input-button",attribute:"role=button or nodeName=button",usage:"The dropdown toggle button."},{selector:".k-combobox .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-combobox .k-input-button",attribute:"tabindex=-1",usage:"Dropdown button is not in the tab order."},{selector:".k-combobox-popup .k-list-content, .k-combobox-popup .k-list-ul",attribute:"role=listbox",usage:"The popup list container has the listbox role."},{selector:'.k-combobox-popup .k-list-ul[role="listbox"], .k-combobox-popup .k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby",usage:"Popup listbox must have an accessible name. Consuming code is responsible for associating with the component label via aria-labelledby."},{selector:".k-combobox-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."},{selector:".k-combobox-popup .k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state."},{selector:".k-combobox-popup .k-no-data",attribute:"aria-live=polite",usage:"Announces no-data state to screen readers."}]};var Kn=be;var E=require("react/jsx-runtime"),us=({value:e="Custom value",...t})=>{let o=k("combobox"),i=k("combobox-group"),n=k("combobox-group");return(0,E.jsx)(Kn,{value:e,id:o,opened:!0,popup:(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(H,{header:"Group 1",customValue:(0,E.jsx)(le,{text:`Use "${e}"`}),children:(0,E.jsxs)(J,{grouping:!0,listboxId:`${o}-listbox`,"aria-label":"Options",children:[(0,E.jsxs)(re,{role:"group","aria-labelledby":i,children:[(0,E.jsx)(Re,{id:i,children:"Group 1"}),(0,E.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 1"}),(0,E.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 2"}),(0,E.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 3"})]}),(0,E.jsxs)(re,{role:"group","aria-labelledby":n,children:[(0,E.jsx)(Re,{id:n,children:"Group 2"}),(0,E.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 1"}),(0,E.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 2"}),(0,E.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 3"})]})]})})}),...t})};