@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 45.4 kB
JavaScript
var Dn=Object.create;var lt=Object.defineProperty;var zn=Object.getOwnPropertyDescriptor;var Bn=Object.getOwnPropertyNames;var Un=Object.getPrototypeOf,Fn=Object.prototype.hasOwnProperty;var Vn=(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))!Fn.call(e,n)&&n!==o&<(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={};Vn(bs,{ComboboxGrouping:()=>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"}),O=(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:K,highlighted:E,...A}=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,"k-highlighted":E},Object.keys(A).reduce((C,M)=>(M.startsWith("k-")?C[M]=A[M]:C[`k-${M}`]=A[M],C),{}))};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 At={};function k(e){return At[e]=(At[e]||0)+1,`k-${e}-${At[e]}`}var Ct=require("react/jsx-runtime"),Xn="k-list-group-sticky-header",yt=e=>(0,Ct.jsx)("div",{className:a(Xn,e.className),children:(0,Ct.jsx)("div",{className:"k-list-header-text",children:e.children})});var go=require("react/jsx-runtime"),$n="k-no-data",Et=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 be="list",ke=be;var Ie=require("react/jsx-runtime"),Mt="k-list",qn=[],Jn={size:[l.undefined,l.small,l.medium,l.large]},Wn={},_=e=>{var E;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],K=(E=h==null?void 0:h.props)!=null&&E.children?ct.default.Children.count(h.props.children):ct.default.Children.count(i);return(0,Ie.jsxs)("div",{...f,className:a(e.className,Mt,y(Mt,{size:t}),{"k-virtual-list":o}),children:[d,r,c,n&&(0,Ie.jsx)(yt,{children:n}),i||(m!==void 0?m:(0,Ie.jsx)(Et,{live:!0,children:"No data found."})),b&&i&&(0,Ie.jsxs)(Et,{className:"k-sr-only",live:!0,children:[K," items found."]})]})};_.states=qn;_.options=Jn;_.className=Mt;_.defaultOptions=Wn;_.moduleName=be;_.folderName=ke;_.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={},Se=e=>{let{...t}=e;return(0,Io.jsx)("div",{...t,className:a(e.className,ko),children:e.children})};Se.states=Yn;Se.options=Qn;Se.className=ko;Se.defaultOptions=Zn;Se.moduleName=be;Se.folderName=ke;var fe="checkbox",Ae=fe;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={},V=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,...K}=e;return(0,Ot.jsx)("span",{className:"k-checkbox-wrap",role:h,children:(0,Ot.jsx)("input",{...K,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}),O(dt,{hover:n,focus:r,disabled:d,invalid:c,valid:m,indeterminate:i,checked:o}))})})};V.states=jn;V.options=ei;V.className=dt;V.defaultOptions=ti;V.moduleName=fe;V.folderName=Ae;V.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=V;var Co=require("react/jsx-runtime"),So="k-checkbox-list",oi=[],ni={},Ao={layout:"vertical"},z=e=>{let{layout:t=Ao.layout,...o}=e;return(0,Co.jsx)("ul",{...o,className:a(e.className,So,{[`k-list-${t}`]:t}),children:e.children})};z.states=oi;z.options=ni;z.className=So;z.defaultOptions=Ao;z.moduleName=fe;z.folderName=Ae;var Eo=require("react/jsx-runtime"),yo="k-checkbox-list-item",ii=[],ai={},si={},B=e=>{let{...t}=e;return(0,Eo.jsx)("li",{...t,className:a(e.className,yo),children:e.children})};B.states=ii;B.options=ai;B.className=yo;B.defaultOptions=si;B.moduleName=fe;B.folderName=Ae;var xe=require("react/jsx-runtime"),ne=({children:e="Label",id:t="cb-label-after",...o})=>(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(q,{id:t,...o}),(0,xe.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 P=require("react/jsx-runtime"),di=z.options,pi=z.states,mi={...z.defaultOptions,variant:"vertical"},ui=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],bi=[],Ce=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,P.jsxs)(z,{layout:"horizontal",...o,children:[(0,P.jsx)(B,{children:(0,P.jsx)(ne,{id:k("cb"),defaultChecked:!0,children:"Label"})}),(0,P.jsx)(B,{children:(0,P.jsx)(ne,{id:k("cb"),children:"Label"})}),(0,P.jsx)(B,{children:(0,P.jsx)(ne,{id:k("cb"),children:"Label"})})]}):(0,P.jsxs)(z,{...o,children:[(0,P.jsx)(B,{children:(0,P.jsx)(ne,{id:k("cb"),defaultChecked:!0,children:"Label"})}),(0,P.jsx)(B,{children:(0,P.jsx)(ne,{id:k("cb"),children:"Label"})}),(0,P.jsx)(B,{children:(0,P.jsx)(ne,{id:k("cb"),children:"Label"})})]})};Ce.options=di;Ce.states=pi;Ce.variants=ui;Ce.defaultOptions=mi;Ce.modifiers=bi;Ce.className=z.className;var Mo=require("react/jsx-runtime"),fi=q.options,xi=q.states,hi=q.defaultOptions,Ni=[],Li=[],ye=e=>(0,Mo.jsx)(ne,{id:k("checkbox"),...e,defaultChecked:!0,children:"Label"});ye.options=fi;ye.states=xi;ye.variants=Ni;ye.defaultOptions=hi;ye.modifiers=Li;ye.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 he=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,he.jsx)(he.Fragment,{});if(c==="none")return(0,he.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,he.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,he.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",Ai=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ci=[],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:Ai(`${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=Ci;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",Ei=[s.hover,s.focus,s.selected,s.disabled],Mi={},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:K,id:E,...A}=e,C=t||e.children;return(0,ee.jsxs)("li",{...A,id:E,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,O(zt,{hover:m,focus:b,disabled:x,selected:f})),children:[d&&(0,ee.jsx)(V,{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:C}),h&&(0,ee.jsx)("div",{className:"k-list-item-actions",children:h}),K&&(0,ee.jsx)("span",{className:"k-list-item-description",children:K}),o&&o!==""&&(0,ee.jsx)("div",{className:"k-list-item-group-label",children:o})]})};I.states=Ei;I.options=Mi;I.className=zt;I.defaultOptions=Oi;I.moduleName=be;I.folderName=ke;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 Me=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,Me.jsx)("div",{...m,className:a(ut,e.className),children:(0,Me.jsxs)("div",{className:a(`${ut}-item`,O(`${ut}-item`,{hover:r,focus:d,selected:c})),children:[o&&(0,Me.jsx)(V,{checked:i,indeterminate:n,"aria-label":t}),(0,Me.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 Oe=require("react/jsx-runtime"),Pi="k-list-group-item",Te=e=>{let{groupIconName:t,...o}=e;return(0,Oe.jsxs)("li",{...o,role:"presentation",className:a(Pi,e.className),children:[t&&(0,Oe.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,Oe.jsx)(g,{icon:t,className:"k-list-item-icon"})}),(0,Oe.jsx)("span",{className:"k-list-item-text",children:e.children})]})};Te.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,O(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"),Ft="k-list-custom-value",Bi=[s.hover,s.focus,s.selected,s.disabled],Ui={},Fi={},Re=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...d}=e;return(0,Do.jsx)("div",{...d,className:a(Ft,O(Ft,{hover:o,focus:i,selected:n,disabled:r})),children:t})};Re.states=Bi;Re.options=Ui;Re.className=Ft;Re.defaultOptions=Fi;var Vt=require("react/jsx-runtime");var Gt=require("react/jsx-runtime");var Xt=require("react/jsx-runtime");var $t=require("react/jsx-runtime");var Vi=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={},T=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}),O(ht,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c}))})};T.states=Gi;T.options=Xi;T.className=ht;T.defaultOptions=$i;T.moduleName=Ze;T.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}),O(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 Fo=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,Fo.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={},Vo={value:"",placeholder:""},Zt=e=>{let{value:t=Vo.value,placeholder:o=Vo.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:K,togglable:E,ariaDisabled:A,icon:C,iconSize:M,text:D,iconClassName:ve,className:Xe,...ge}=e,$e=C!=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}),O(it,{hover:b,focus:f,active:x,disabled:K||A,selected:h}),{"k-icon-button":!D&&!qe&&$e}),"aria-pressed":E?h?"true":"false":void 0,...ge,"aria-disabled":A?"true":void 0,disabled:K||void 0,children:[typeof C=="string"&&C&&(0,G.jsx)(g,{className:a(ve,"k-button-icon"),icon:C,size:M}),C&&typeof C!="string"&&(0,G.jsx)(G.Fragment,{children:C}),D?(0,G.jsxs)(G.Fragment,{children:[D&&(0,G.jsx)("span",{className:"k-button-text",children:D}),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"),Ne=e=>(0,Yo.jsx)(L,{children:"Button",...e});var R=require("react/jsx-runtime"),ha=T.states,Na=T.defaultOptions,La=T.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,R.jsxs)(T,{...c,valid:o,invalid:i,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(He,{children:(0,R.jsx)(g,{icon:"lock"})}),h&&(0,R.jsx)(ae,{})]}),(0,R.jsx)(Y,{placeholder:"Placeholder",value:"Value"}),x&&(0,R.jsx)(Q,{valid:o,invalid:i,loading:n,disabled:r}),(0,R.jsx)(te,{loading:n,disabled:r}),f&&(0,R.jsx)(W,{loading:n,disabled:r,readonly:d,value:"Value"}),b&&(0,R.jsxs)(R.Fragment,{children:[h&&(0,R.jsx)(ae,{}),(0,R.jsx)(Pe,{children:(0,R.jsx)(Ne,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};we.options=La;we.states=ha;we.variants=ga;we.defaultOptions=Na;we.modifiers=va;we.className=T.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"},Aa=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ca=[],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)(Ne,{...o,children:"Button"})}};De.options=ka;De.states=Ia;De.variants=Aa;De.defaultOptions=Sa;De.modifiers=Ca;De.className=L.className;var to="popup",tn=to;var no=require("react/jsx-runtime"),on="k-animation-container",ya=[],Ea={},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=Ea;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",Ma=[],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=Ma;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"},le=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})};le.states=Ta;le.options=Ra;le.className=gt;le.defaultOptions=ro;le.moduleName=so;le.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":le,...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 ce=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"},de=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:K=co.showIcon,icon:E=co.icon,"aria-label":A,...C}=e;return(0,ce.jsxs)(T,{...C,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:[K&&(0,ce.jsx)(g,{className:"k-input-icon",icon:E}),(0,ce.jsx)(Y,{placeholder:o,value:t,"aria-label":A}),(0,ce.jsx)(te,{...e}),(0,ce.jsx)(Q,{...e}),(0,ce.jsx)(W,{...e})]})};de.states=_a;de.options=Ha;de.className=mn;de.defaultOptions=co;de.moduleName=lo;de.folderName=pn;var Pa=require("react/jsx-runtime");var po="textbox",un=po;var w=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},U=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:K,valid:E,invalid:A,required:C,loading:M,disabled:D,readonly:ve,id:Xe,"aria-label":ge,"aria-describedby":$e,...qe}=e;return(0,w.jsxs)(T,{...qe,size:t,rounded:o,fillMode:i,hover:h,focus:K,valid:E,invalid:A,required:C,loading:M,disabled:D,readonly:ve,className:a(e.className,bn),children:[c&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(He,{children:c}),n&&(0,w.jsx)(ae,{})]}),(0,w.jsx)(Y,{id:Xe,placeholder:x,value:f,type:b,disabled:D,"aria-label":ge,"aria-describedby":$e,"aria-invalid":A?"true":void 0}),d&&(0,w.jsx)(Q,{valid:E,invalid:A,loading:M,disabled:D}),(0,w.jsx)(te,{loading:M,disabled:D}),r&&(0,w.jsx)(W,{loading:M,disabled:D,readonly:ve,value:f}),m&&(0,w.jsxs)(w.Fragment,{children:[n&&(0,w.jsx)(ae,{}),(0,w.jsx)(Pe,{children:m})]})]})};U.states=wa;U.options=Da;U.className=bn;U.defaultOptions=kt;U.moduleName=po;U.folderName=un;U.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=U;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=U.states,Ua=U.defaultOptions,Fa=U.options,Va=[{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)(Ne,{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=Fa;Be.states=Ba;Be.variants=Ga;Be.defaultOptions=Ua;Be.modifiers=Va;Be.className=U.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)(U,{value:c,placeholder:m,size:b?"large":"medium","aria-label":t||m||"Input"}):(0,X.jsx)(de,{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={},Fe=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]})};Fe.states=$a;Fe.options=qa;Fe.className=mo;Fe.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={},pe=e=>{let{...t}=e;return(0,kn.jsx)("div",{...t,className:a(e.className,gn),children:e.children})};pe.states=Wa;pe.options=Ya;pe.className=gn;pe.defaultOptions=Qa;pe.moduleName=uo;pe.folderName=vn;var Le=require("react/jsx-runtime"),In="k-actionsheet",Za=[],ja={},rt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},H=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,Le.jsxs)("div",{className:"k-actionsheet-container",children:[n&&(0,Le.jsx)(pe,{}),(0,Le.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,Le.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,Le.jsx)(Fe,{header:c,footer:m,adaptive:i,titleId:x,...e,children:d})})})]})};H.states=Za;H.options=ja;H.className=In;H.defaultOptions=rt;H.moduleName=st;H.folderName=St;H.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 An=require("react/jsx-runtime"),Sn="k-actionsheet-container",es=[],ts={},os={},Ve=e=>{let{children:t,...o}=e;return(0,An.jsx)("div",{...o,className:Sn,children:t})};Ve.states=es;Ve.options=ts;Ve.className=Sn;Ve.defaultOptions=os;Ve.moduleName=st;Ve.folderName=St;var Cn=require("react/jsx-runtime"),bo=e=>{let{...t}=e;return(0,Cn.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],me=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,O(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]})};me.states=ns;me.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=H.options,ls=H.states,Mn={...H.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}={...Mn,...e},n={},r=(0,S.jsxs)(bo,{children:[(0,S.jsx)(me,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,S.jsx)(me,{text:"Add to Favorites",iconName:"heart"}),(0,S.jsx)(me,{text:"Upload New",iconName:"upload",disabled:!0}),(0,S.jsx)("hr",{className:"k-hr"}),(0,S.jsx)(me,{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)(H,{...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)(H,{...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=Mn;Ge.modifiers=ds;Ge.className=H.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},ue=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:K,loading:E,disabled:A,popup:C,opened:M,readonly:D,adaptive:ve,adaptiveSettings:Xe,adaptiveTitle:ge,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)(T,{...Pn,size:t,rounded:o,fillMode:i,hover:b,focus:f,valid:x,invalid:h,required:K,loading:E,disabled:A,readonly:D,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":M?"true":"false","aria-controls":M?wn:void 0,"aria-activedescendant":M&&ho?ho:void 0,"aria-autocomplete":_n,"aria-invalid":h?"true":void 0,"aria-busy":E?"true":void 0,"aria-label":Hn,disabled:A,readOnly:D}),(0,v.jsx)(Q,{valid:x,invalid:h,loading:E,disabled:A}),(0,v.jsx)(te,{loading:E,disabled:A}),(0,v.jsx)(W,{loading:E,disabled:A,readonly:D,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:A})]}),M&&C&&(0,v.jsx)(se,{className:"k-list-container k-combobox-popup",containerRole:"region",containerAriaLabel:"Combobox suggestions",children:C}),ve&&(0,v.jsx)(H,{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:ge,subtitle:$e}),children:(0,v.jsx)("div",{className:"k-list-container",children:(0,v.jsx)(_,{customValue:qe?(0,v.jsx)(Re,{text:`Use "${c}"`}):void 0,size:"large",children:(0,v.jsxs)(J,{"aria-label":ge||"Options",children:[(0,v.jsx)(I,{text:"List item"}),(0,v.jsx)(I,{text:"List item"}),(0,v.jsx)(I,{text:"List item"})]})})})})]})};ue.states=ps;ue.options=ms;ue.className=Tn;ue.defaultOptions=Rn;ue.moduleName=xo;ue.folderName=On;ue.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=ue;var F=require("react/jsx-runtime"),us=e=>{let t=k("combobox"),o=k("combobox-group"),i=k("combobox-group");return(0,F.jsx)(Kn,{id:t,opened:!0,popup:(0,F.jsx)(_,{header:"Group 1",children:(0,F.jsxs)(J,{grouping:!0,listboxId:`${t}-listbox`,"aria-label":"Options",children:[(0,F.jsxs)(re,{role:"group","aria-labelledby":o,children:[(0,F.jsx)(Te,{id:o,children:"Group 1"}),(0,F.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 1"}),(0,F.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 2"}),(0,F.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 3"})]}),(0,F.jsxs)(re,{role:"group","aria-labelledby":i,children:[(0,F.jsx)(Te,{id:i,children:"Group 2"}),(0,F.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 1"}),(0,F.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 2"}),(0,F.jsx)(I,{id:k("combobox-item"),children:"List group 1 item 3"})]})]})}),...e})};