@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 70.9 kB
JavaScript
var ss=Object.create;var io=Object.defineProperty;var rs=Object.getOwnPropertyDescriptor;var ls=Object.getOwnPropertyNames;var ps=Object.getPrototypeOf,ms=Object.prototype.hasOwnProperty;var cs=(e,t)=>{for(var o in t)io(e,o,{get:t[o],enumerable:!0})},ti=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ls(t))!ms.call(e,n)&&n!==o&&io(e,n,{get:()=>t[n],enumerable:!(a=rs(t,n))||a.enumerable});return e};var oi=(e,t,o)=>(o=e!=null?ss(ps(e)):{},ti(t||!e||!e.__esModule?io(o,"default",{value:e,enumerable:!0}):o,e)),ds=e=>ti(io({},"__esModule",{value:!0}),e);var bm={};cs(bm,{ColumnMenuTabbed:()=>fm});module.exports=ds(bm);var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var I=(e,t)=>i({[`${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"}),v=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:r,checked:p,active:m,selected:c,disabled:f,indeterminate:d,loading:h,empty:M,readonly:S,highlighted:k,...A}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":r,"k-checked":p,"k-active":m,"k-selected":c,"k-disabled":f,"k-indeterminate":d&&!p,"k-loading":h,"k-empty":M,"k-readonly":S,"k-highlighted":k},Object.keys(A).reduce((g,C)=>(C.startsWith("k-")?g[C]=A[C]:g[`k-${C}`]=A[C],g),{}))};function ni(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},L={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Me={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},x={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 Co={};function E(e){return Co[e]=(Co[e]||0)+1,`k-${e}-${Co[e]}`}var q="column-menu",ee=q;var ai=require("react/jsx-runtime"),Eo="k-column-menu",us=[],fs={size:[l.undefined,l.small,l.medium,l.large]},ii={view:"list"},Le=e=>{let{view:t=ii.view,size:o,...a}=e;return(0,ai.jsx)("div",{...a,className:i(e.className,Eo,I(Eo,{size:o}),{"k-column-menu-tabbed":t==="tabbed"}),children:e.children})};Le.states=us;Le.options=fs;Le.className=Eo;Le.defaultOptions=ii;Le.moduleName=q;Le.folderName=ee;Le.ariaSpec={selector:".k-column-menu",rules:[{selector:".k-columnmenu-item",attribute:"role=button",usage:"Sets column menu item role to button."},{selector:".k-columnmenu-item",attribute:"tabindex=0",usage:"Sets column menu item tabindex."},{selector:".k-expander .k-columnmenu-item",attribute:"aria-expanded=true/false",usage:"Sets the expanded state of an expandable item."},{selector:".k-expander .k-columnmenu-item",attribute:"aria-controls",usage:"Points to id attribute of the content whose visibility the expandable item controls."},{selector:".k-expander .k-columnmenu-item-content",attribute:"id",usage:"Unique and deterministic id linked to the aria-controls attribute of the corresponding expandable item."},{selector:".k-column-list",attribute:"role=listbox",usage:"Sets the listbox role of the list of columns wrapper."},{selector:".k-column-list",attribute:"aria-multiselectable=true",usage:"Specifies that the list is multiselectable."},{selector:".k-column-list",attribute:"aria-label",usage:"Accessible name for the column list."},{selector:".k-column-list .k-column-list-item",attribute:"role=option",usage:"Sets the option role of the list item."},{selector:".k-column-list .k-column-list-item",attribute:"aria-checked=true/false",usage:"Sets the checked state of list item."}]};var Oo=require("react/jsx-runtime"),To="k-column-list",bs=[],hs={size:[l.undefined,l.small,l.medium,l.large]},xs={},$e=e=>{let{size:t,...o}=e;return(0,Oo.jsx)("div",{className:"k-column-list-wrapper",children:(0,Oo.jsx)("div",{...o,className:i(e.className,To,I(To,{size:t})),role:"listbox","aria-multiselectable":"true",children:e.children})})};$e.states=bs;$e.options=hs;$e.className=To;$e.defaultOptions=xs;$e.moduleName=q;$e.folderName=ee;var Xe="checkbox",ot=Xe;var yo=require("react/jsx-runtime"),ao="k-checkbox",Ns=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Ms={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full]},Ls={},R=e=>{let{id:t,checked:o,indeterminate:a,hover:n,focus:r,disabled:p,invalid:m,valid:c,required:f,size:d,rounded:h,wrapperRole:M,...S}=e;return(0,yo.jsx)("span",{className:"k-checkbox-wrap",role:M,children:(0,yo.jsx)("input",{...S,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:p||void 0,"aria-invalid":m?"true":void 0,className:i(e.className,ao,I(ao,{size:d,rounded:h}),v(ao,{hover:n,focus:r,disabled:p,invalid:m,valid:c,indeterminate:a,checked:o}))})})};R.states=Ns;R.options=Ms;R.className=ao;R.defaultOptions=Ls;R.moduleName=Xe;R.folderName=ot;R.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 ue=R;var li=require("react/jsx-runtime"),si="k-checkbox-list",Is=[],vs={},ri={layout:"vertical"},Y=e=>{let{layout:t=ri.layout,...o}=e;return(0,li.jsx)("ul",{...o,className:i(e.className,si,{[`k-list-${t}`]:t}),children:e.children})};Y.states=Is;Y.options=vs;Y.className=si;Y.defaultOptions=ri;Y.moduleName=Xe;Y.folderName=ot;var mi=require("react/jsx-runtime"),pi="k-checkbox-list-item",Ss=[],ks={},gs={},Q=e=>{let{...t}=e;return(0,mi.jsx)("li",{...t,className:i(e.className,pi),children:e.children})};Q.states=Ss;Q.options=ks;Q.className=pi;Q.defaultOptions=gs;Q.moduleName=Xe;Q.folderName=ot;var We=require("react/jsx-runtime"),Te=({children:e="Label",id:t="cb-label-after",...o})=>(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(ue,{id:t,...o}),(0,We.jsx)("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});var Ko=require("react/jsx-runtime");var Ro=require("react/jsx-runtime");var wo=require("react/jsx-runtime");var As=require("react/jsx-runtime");var Cs=require("react/jsx-runtime");var Es=require("react/jsx-runtime");var F=require("react/jsx-runtime"),Ts=Y.options,Os=Y.states,ys={...Y.defaultOptions,variant:"vertical"},Ks=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Rs=[],nt=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,F.jsxs)(Y,{layout:"horizontal",...o,children:[(0,F.jsx)(Q,{children:(0,F.jsx)(Te,{id:E("cb"),defaultChecked:!0,children:"Label"})}),(0,F.jsx)(Q,{children:(0,F.jsx)(Te,{id:E("cb"),children:"Label"})}),(0,F.jsx)(Q,{children:(0,F.jsx)(Te,{id:E("cb"),children:"Label"})})]}):(0,F.jsxs)(Y,{...o,children:[(0,F.jsx)(Q,{children:(0,F.jsx)(Te,{id:E("cb"),defaultChecked:!0,children:"Label"})}),(0,F.jsx)(Q,{children:(0,F.jsx)(Te,{id:E("cb"),children:"Label"})}),(0,F.jsx)(Q,{children:(0,F.jsx)(Te,{id:E("cb"),children:"Label"})})]})};nt.options=Ts;nt.states=Os;nt.variants=Ks;nt.defaultOptions=ys;nt.modifiers=Rs;nt.className=Y.className;var ci=require("react/jsx-runtime"),ws=ue.options,_s=ue.states,Ps=ue.defaultOptions,Hs=[],Ds=[],it=e=>(0,ci.jsx)(Te,{id:E("checkbox"),...e,defaultChecked:!0,children:"Label"});it.options=ws;it.states=_s;it.variants=Hs;it.defaultOptions=Ps;it.modifiers=Ds;it.className=ue.className;var Ht=require("react/jsx-runtime"),_o="k-column-list-item",Us=[s.focus,s.disabled,s.hover],Bs={},zs={},Dt=e=>{let{label:t,checked:o,focus:a,hover:n,disabled:r,...p}=e;return(0,Ht.jsxs)("span",{...p,className:i(e.className,_o,v(_o,{focus:a,hover:n,disabled:r})),role:"option","aria-checked":o?"true":"false",children:[(0,Ht.jsx)(R,{disabled:r,checked:o,"aria-label":t}),(0,Ht.jsx)("span",{className:"k-checkbox-label",children:t})]})};Dt.states=Us;Dt.options=Bs;Dt.className=_o;Dt.defaultOptions=zs;var Ut=require("react/jsx-runtime"),Po="k-font-icon",Fs=[],Gs={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info]},Vs={},Bt=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:r,...p}=e;return a?(0,Ut.jsx)("span",{...p,className:i(e.className,Po,I(Po,{size:t}),{[`k-i-${a}`]:a,[`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,Ut.jsx)(Ut.Fragment,{})};Bt.states=Fs;Bt.options=Gs;Bt.className=Po;Bt.defaultOptions=Vs;var di=Bt;var Je=require("react/jsx-runtime"),Ho="k-svg-icon",$s=[],Xs={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[Me.outline,Me.solid,Me.duotone]},Do={viewBox:"0 0 24 24",variant:Me.outline},zt=e=>{var h,M;let{size:t,themeColor:o,rotate:a,flip:n,viewBox:r=Do.viewBox,variant:p=Do.variant,icon:m,...c}=e;if(!m)return(0,Je.jsx)(Je.Fragment,{});if(m==="none")return(0,Je.jsx)("span",{...c,className:i(e.className,Ho,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof m=="object"&&m.name&&m.name,d=typeof m=="object"?p&&((h=m.variants)==null?void 0:h[p])||((M=m.variants)==null?void 0:M.outline)||m.content:void 0;return(0,Je.jsx)("span",{...c,className:i(e.className,Ho,I("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:(0,Je.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:r,dangerouslySetInnerHTML:d!==void 0?{__html:d}:void 0,children:m?void 0:e.children})})};zt.states=$s;zt.options=Xs;zt.className=Ho;zt.defaultOptions=Do;var Uo=zt;var Bo=oi(require("@progress/kendo-svg-icons"));var ui="icon",fi="icons";var xi=require("react");var bi=require("react"),hi=(0,bi.createContext)({iconsType:"svg"});var Oe=require("react/jsx-runtime"),so="k-icon",Ws=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Js=[],qs={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[Me.outline,Me.solid,Me.duotone]},ro={viewBox:"0 0 24 24",type:"svg",variant:Me.outline},u=e=>{let{iconsType:t}=(0,xi.useContext)(hi),{size:o,themeColor:a,icon:n,type:r=t||ro.type,rotate:p,flip:m,viewBox:c=ro.viewBox,variant:f=ro.variant,...d}=e;if(!n)return(0,Oe.jsx)(Oe.Fragment,{});if((t||r)==="svg"){if(n==="none")return(0,Oe.jsx)(Uo,{...d,className:i(e.className,so),icon:n,size:o,variant:f});let M=Bo[n]?n:Ws(`${n}-icon`);return Bo[M]?(0,Oe.jsx)(Uo,{...d,className:i(e.className,so),icon:Bo[M],size:o,themeColor:a,rotate:p,flip:m,viewBox:c,variant:f}):(0,Oe.jsx)(Oe.Fragment,{})}return(0,Oe.jsx)(di,{...d,className:i(e.className,so),icon:n,size:o,themeColor:a,rotate:p,flip:m})};u.states=Js;u.options=qs;u.defaultOptions=ro;u.className=so;u.moduleName=ui;u.folderName=fi;u.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 qe=require("react/jsx-runtime"),zo="k-columnmenu-item",Ys=[s.focus,s.selected],Qs={},Zs={},ye=e=>{let{focus:t,selected:o,text:a,startIcon:n,endIcon:r,sortIndex:p,...m}=e;return(0,qe.jsxs)("div",{...m,className:i(e.className,zo,v(zo,{focus:t,selected:o})),role:"button",tabIndex:0,children:[n&&(0,qe.jsx)(u,{icon:n}),a,r&&(0,qe.jsxs)("span",{className:"k-columnmenu-indicators",children:[(0,qe.jsx)(u,{icon:r}),p&&(0,qe.jsx)("span",{className:"k-sort-index",children:p})]}),e.children]})};ye.states=Ys;ye.options=Qs;ye.className=zo;ye.defaultOptions=Zs;ye.moduleName=q;ye.folderName=ee;var js=require("react/jsx-runtime");var Mi=require("react/jsx-runtime"),er="k-columnmenu-item-content",Ni=e=>(0,Mi.jsx)("div",{...e,className:i(e.className,er,"k-columns-item"),children:e.children});var Fo=require("react/jsx-runtime"),Li="k-filter-menu",tr=[],or={},nr={},He=e=>{let{...t}=e;return(0,Fo.jsx)("form",{...t,className:i(e.className,Li),children:(0,Fo.jsx)("div",{className:"k-filter-menu-container",children:e.children})})};He.states=tr;He.options=or;He.className=Li;He.defaultOptions=nr;He.moduleName=q;He.folderName=ee;var ir=require("react/jsx-runtime");var at=require("react/jsx-runtime"),ar="k-item",sr={size:[l.undefined,l.small,l.medium,l.large]},rr=[],Go=e=>{let{text:t,size:o,...a}=e;return(0,at.jsx)("li",{...a,className:i(e.className,ar),children:(0,at.jsxs)("label",{className:"k-label k-checkbox-label",children:[(0,at.jsx)(R,{size:o}),(0,at.jsx)("span",{children:t})]})})};Go.states=rr;Go.options=sr;var Ie=require("react/jsx-runtime"),Ii="k-expander",lr=[],pr={},mr={},Ye=e=>{let{itemText:t,itemStartIcon:o,itemEndIcon:a,itemSortIndex:n,expanded:r,itemContent:p,expanderIcon:m,contentId:c,...f}=e,d=c||E("columnmenu-content"),h=!r&&!m?(0,Ie.jsx)(u,{icon:"chevron-down"}):r&&!m?(0,Ie.jsx)(u,{icon:"chevron-up"}):(0,Ie.jsx)(u,{icon:m});return(0,Ie.jsxs)("div",{...f,className:i(e.className,Ii),children:[(0,Ie.jsxs)(ye,{text:t,startIcon:o,endIcon:a,sortIndex:n,"aria-expanded":r?"true":"false","aria-controls":d,children:[(0,Ie.jsx)("span",{className:"k-spacer"}),(0,Ie.jsx)("span",{className:"k-expander-indicator",children:h})]}),r&&(0,Ie.jsx)(Ni,{id:d,children:p}),e.children]})};Ye.states=lr;Ye.options=pr;Ye.className=Ii;Ye.defaultOptions=mr;Ye.moduleName=q;Ye.folderName=ee;var vi=require("react/jsx-runtime"),Vo="k-group-menu",cr=[],dr={size:[l.undefined,l.small,l.medium,l.large]},ur={},st=e=>{let{size:t,...o}=e;return(0,vi.jsx)("div",{...o,className:i(e.className,Vo,I(Vo,{size:t})),children:e.children})};st.states=cr;st.options=dr;st.className=Vo;st.defaultOptions=ur;st.moduleName=q;st.folderName=ee;var ve=require("react/jsx-runtime"),$o="k-group-menu-item",fr=[s.hover,s.selected],br={},hr={},rt=e=>{let{hover:t,selected:o,text:a,actionsStart:n,actionsEnd:r,...p}=e;return(0,ve.jsxs)("div",{...p,className:i(e.className,$o,v($o,{hover:t,selected:o})),children:[n&&(0,ve.jsx)("span",{className:"k-group-menu-item-actions",children:n}),(0,ve.jsx)("span",{className:"k-group-item-text",children:a}),r&&(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("span",{className:"k-spacer"}),(0,ve.jsx)("span",{className:"k-group-menu-item-actions",children:r})]}),e.children]})};rt.states=fr;rt.options=br;rt.className=$o;rt.defaultOptions=hr;rt.moduleName=q;rt.folderName=ee;var De=require("react/jsx-runtime"),Xo="k-group-menu-item-action",xr=[s.hover,s.disabled,s.selected],Nr={size:[l.undefined,l.small,l.medium,l.large]};var Wo=e=>{let{hover:t,disabled:o,selected:a,size:n,type:r,...p}=e,m;switch(r){case"remove":m=(0,De.jsx)(u,{icon:"x-circle",size:n});break;case"add":m=(0,De.jsx)(u,{icon:"plus-circle",size:n});break;case"drag":m=(0,De.jsx)(u,{icon:"handle-drag-dots",size:n});break;case"up":m=(0,De.jsx)(u,{icon:"chevron-up",size:n});break;case"down":m=(0,De.jsx)(u,{icon:"chevron-down",size:n});break;default:m=(0,De.jsx)(u,{icon:r,size:n});break}return(0,De.jsx)("span",{...p,className:i(e.className,Xo,v(Xo,{selected:a,hover:t,disabled:o}),`k-group-menu-item-${r}-action`),children:m})};Wo.options=xr;Wo.options=Nr;Wo.className=Xo;var Mr=require("react/jsx-runtime");var Jo=require("react/jsx-runtime");var qo="button",Si=qo;var ie=require("react/jsx-runtime"),Ft="k-button",Lr=["icon-button"],Ir=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],vr={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[L.undefined,L.solid,L.flat,L.outline,L.clear,L.link],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info,x.inverse]},Yo={showArrow:!1,arrowIconName:"chevron-down"},N=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:r,showArrow:p=Yo.showArrow,arrowIconName:m=Yo.arrowIconName,variant:c,hover:f,focus:d,active:h,selected:M,disabled:S,togglable:k,ariaDisabled:A,icon:g,iconSize:C,text:P,iconClassName:Ve,className:Ee,...Rt}=e,wt=g!=null,_t=e.children!==void 0;return(0,ie.jsxs)(t,{className:i(Ee,Ft,ni(Ft,c),I(Ft,{size:o,rounded:a,fillMode:n,themeColor:r}),v(Ft,{hover:f,focus:d,active:h,disabled:S||A,selected:M}),{"k-icon-button":!P&&!_t&&wt}),"aria-pressed":k?M?"true":"false":void 0,...Rt,"aria-disabled":A?"true":void 0,disabled:S||void 0,children:[typeof g=="string"&&g&&(0,ie.jsx)(u,{className:i(Ve,"k-button-icon"),icon:g,size:C}),g&&typeof g!="string"&&(0,ie.jsx)(ie.Fragment,{children:g}),P?(0,ie.jsxs)(ie.Fragment,{children:[P&&(0,ie.jsx)("span",{className:"k-button-text",children:P}),e.children]}):e.children&&(0,ie.jsx)("span",{className:"k-button-text",children:e.children}),p&&(0,ie.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,ie.jsx)(u,{icon:m})})]})};N.states=Ir;N.options=vr;N.variants=Lr;N.className=Ft;N.defaultOptions=Yo;N.moduleName=qo;N.folderName=Si;N.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 gi=require("react/jsx-runtime"),ki=e=>(0,gi.jsx)(N,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Ci=require("react/jsx-runtime"),Ai=e=>(0,Ci.jsx)(N,{icon:"folder",children:"Button",...e});var Ei=require("react/jsx-runtime"),Qe=e=>(0,Ei.jsx)(N,{children:"Button",...e});var lo=require("react/jsx-runtime"),Sr=N.options,kr=N.states,gr={...N.defaultOptions,variant:"text"},Ar=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Cr=[],lt=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,lo.jsx)(ki,{...o,icon:"star"});case"icon-and-text":return(0,lo.jsx)(Ai,{...o,icon:"star",children:"Button"});default:return(0,lo.jsx)(Qe,{...o,children:"Button"})}};lt.options=Sr;lt.states=kr;lt.variants=Ar;lt.defaultOptions=gr;lt.modifiers=Cr;lt.className=N.className;var Gt="input",po=Gt;var Ti=require("react/jsx-runtime"),mo="k-input",Er=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Tr={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},Or={},G=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:p,readonly:m,size:c,rounded:f,fillMode:d,...h}=e;return(0,Ti.jsx)("span",{...h,className:i(e.className,mo,I(mo,{size:c,rounded:f,fillMode:d}),v(mo,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:p,readonly:m}))})};G.states=Er;G.options=Tr;G.className=mo;G.defaultOptions=Or;G.moduleName=Gt;G.folderName=po;var Oi=require("react/jsx-runtime"),co="k-picker",yr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Kr={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},Rr={},Ue=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:p,readonly:m,size:c,rounded:f,fillMode:d,...h}=e;return(0,Oi.jsx)("span",{...h,className:i(e.className,co,I(co,{size:c,rounded:f,fillMode:d}),v(co,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:p,readonly:m})),children:e.children})};Ue.states=yr;Ue.options=Kr;Ue.className=co;Ue.defaultOptions=Rr;Ue.moduleName=Gt;Ue.folderName=po;var pt=require("react/jsx-runtime"),yi="k-clear-value",wr=[s.disabled,s.loading,s.readonly],_r={},Ke=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?(0,pt.jsx)(pt.Fragment,{}):(0,pt.jsx)("span",{className:i(e.className,yi),children:(0,pt.jsx)(u,{icon:"x"})})};Ke.states=wr;Ke.options=_r;Ke.className=yi;var Ki=require("react/jsx-runtime"),Qo="k-input-inner",Pr=[],Hr={},uo={type:"text",autocomplete:"off",value:"",placeholder:""},Re=e=>{let{value:t=uo.value,type:o=uo.type,placeholder:a=uo.placeholder,autocomplete:n=uo.autocomplete,disabled:r,readOnly:p,...m}=e;return(0,Ki.jsx)("input",{...m,type:o,className:i(e.className,Qo,I(Qo,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:p||void 0})};Re.states=Pr;Re.options=Hr;Re.className=Qo;var Vt=require("react/jsx-runtime"),Zo="k-input-inner",Dr=[],Ur={},$t=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:r,...p}=e;return(0,Vt.jsxs)("span",{...p,className:i(e.className,Zo,I(Zo,e)),children:[n,!n&&r&&(0,Vt.jsx)(u,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&(0,Vt.jsx)("span",{className:"k-input-value-text",children:t})]})};$t.states=Dr;$t.options=Ur;$t.className=Zo;var wi=require("react/jsx-runtime"),jo="k-input-inner",Br=[],zr={},Ri={value:"",placeholder:""},en=e=>{let{value:t=Ri.value,placeholder:o=Ri.placeholder,rows:a,disabled:n,...r}=e;return(0,wi.jsx)("textarea",{...r,className:i(e.className,jo,I(jo,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};en.states=Br;en.options=zr;en.className=jo;var Xt=require("react/jsx-runtime"),_i="k-input-loading-icon",Fr=[s.disabled,s.loading],Se=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Xt.jsx)(Xt.Fragment,{}):(0,Xt.jsx)("span",{className:i(e.className,_i,"k-icon k-i-loading")})};Se.states=Fr;Se.className=_i;var Wt=require("react/jsx-runtime"),Pi="k-input-validation-icon",Gr=[s.valid,s.invalid,s.disabled,s.loading],Vr={},fe=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,r=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?(0,Wt.jsx)(Wt.Fragment,{}):(0,Wt.jsx)(u,{className:i(Pi),icon:r})};fe.states=Gr;fe.options=Vr;fe.className=Pi;var Jt=require("react/jsx-runtime"),$r="k-input-prefix",Xr={direction:"horizontal"},mt=e=>{let{direction:t=Xr.direction,...o}=e;return e.children?(0,Jt.jsx)("span",{...o,className:i($r,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Jt.jsx)(Jt.Fragment,{})};var qt=require("react/jsx-runtime"),Wr="k-input-suffix",Jr={direction:"horizontal"},ct=e=>{let{direction:t=Jr.direction,...o}=e;return e.children?(0,qt.jsx)("span",{...o,className:i(Wr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,qt.jsx)(qt.Fragment,{})};var qr=require("react/jsx-runtime");var Yr=require("react/jsx-runtime");var Di=require("react/jsx-runtime"),Hi="k-input-separator",Qr={direction:"vertical"},dt=e=>{let{direction:t=Qr.direction,...o}=e;return(0,Di.jsx)("span",{...o,className:i(Hi,e.className,{[`${Hi}-${t}`]:t})})};var w=require("react/jsx-runtime"),Zr=G.states,jr=G.defaultOptions,el=G.options,tl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],ol=[],ut=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:r,readonly:p,...m}=e,c=t==null?void 0:t.prefix,f=t==null?void 0:t.suffix,d=t==null?void 0:t["clear-button"],h=t==null?void 0:t["validation-icon"],M=t==null?void 0:t.separators;return(0,w.jsxs)(G,{...m,valid:o,invalid:a,loading:n,disabled:r,readonly:p,style:{width:300},children:[c&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(mt,{children:(0,w.jsx)(u,{icon:"lock"})}),M&&(0,w.jsx)(dt,{})]}),(0,w.jsx)(Re,{placeholder:"Placeholder",value:"Value"}),h&&(0,w.jsx)(fe,{valid:o,invalid:a,loading:n,disabled:r}),(0,w.jsx)(Se,{loading:n,disabled:r}),d&&(0,w.jsx)(Ke,{loading:n,disabled:r,readonly:p,value:"Value"}),f&&(0,w.jsxs)(w.Fragment,{children:[M&&(0,w.jsx)(dt,{}),(0,w.jsx)(ct,{children:(0,w.jsx)(Qe,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};ut.options=el;ut.states=Zr;ut.variants=ol;ut.defaultOptions=jr;ut.modifiers=tl;ut.className=G.className;var tn="popup",Ui=tn;var nn=require("react/jsx-runtime"),Bi="k-animation-container",nl=[],il={},on={positionMode:"absolute",shown:!0},ke=e=>{let{positionMode:t=on.positionMode,shown:o=on.shown,animationStyle:a,offset:n,...r}=e;return(0,nn.jsx)("div",{...r,style:{...n,...e.style},className:i(e.className,Bi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,nn.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};ke.states=nl;ke.options=il;ke.className=Bi;ke.defaultOptions=on;ke.moduleName=tn;ke.folderName=Ui;var an="popup",zi=an;var sn=require("react/jsx-runtime"),Fi="k-popup",al=[],sl={},Gi={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=Gi.positionMode,animationStyle:a,containerClassName:n,containerRole:r,containerAriaLabel:p,...m}=e;return(0,sn.jsx)(ke,{positionMode:o,offset:t,animationStyle:a,className:n,role:r,"aria-label":p,children:(0,sn.jsx)("div",{...m,className:i(e.className,Fi),children:e.children})})};V.states=al;V.options=sl;V.className=Fi;V.defaultOptions=Gi;V.moduleName=an;V.folderName=zi;V.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 rn="action-buttons",Vi=rn;var $i=require("react/jsx-runtime"),fo="k-actions",rl=[],ll={},ln={alignment:"start",orientation:"horizontal"},ge=e=>{let{alignment:t=ln.alignment,orientation:o=ln.orientation,...a}=e;return(0,$i.jsx)("div",{...a,className:i(fo,{[`${fo}-${t}`]:t,[`${fo}-${o}`]:o},e.className),children:e.children})};ge.states=rl;ge.options=ll;ge.className=fo;ge.defaultOptions=ln;ge.moduleName=rn;ge.folderName=Vi;var Wi=require("react/jsx-runtime"),pl="k-actionsheet-footer",Xi={alignment:"stretched",orientation:"horizontal"},ft=e=>{let{alignment:t=Xi.alignment,orientation:o=Xi.orientation,template:a,as:n=a?"div":ge,...r}=e;return(0,Wi.jsx)(n,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,pl),children:e.children})};var pn="searchbox",Ji=pn;var Be=require("react/jsx-runtime"),qi="k-searchbox",ml=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],cl={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},mn={showIcon:!0,icon:"search"},ae=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:r,hover:p,focus:m,valid:c,invalid:f,required:d,loading:h,disabled:M,showIcon:S=mn.showIcon,icon:k=mn.icon,"aria-label":A,...g}=e;return(0,Be.jsxs)(G,{...g,size:a,rounded:n,fillMode:r,hover:p,focus:m,valid:c,invalid:f,required:d,loading:h,disabled:M,className:i(e.className,qi),children:[S&&(0,Be.jsx)(u,{className:"k-input-icon",icon:k}),(0,Be.jsx)(Re,{placeholder:o,value:t,"aria-label":A}),(0,Be.jsx)(Se,{...e}),(0,Be.jsx)(fe,{...e}),(0,Be.jsx)(Ke,{...e})]})};ae.states=ml;ae.options=cl;ae.className=qi;ae.defaultOptions=mn;ae.moduleName=pn;ae.folderName=Ji;var dl=require("react/jsx-runtime");var cn="textbox",Yi=cn;var $=require("react/jsx-runtime"),Qi="k-textbox",ul=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],fl={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},bo={showClearButton:!0,showValidationIcon:!0,separators:!0},X=e=>{let{size:t,rounded:o,fillMode:a,separators:n=bo.separators,showClearButton:r=bo.showClearButton,showValidationIcon:p=bo.showValidationIcon,prefix:m,suffix:c,type:f,value:d,placeholder:h,hover:M,focus:S,valid:k,invalid:A,required:g,loading:C,disabled:P,readonly:Ve,id:Ee,"aria-label":Rt,"aria-describedby":wt,..._t}=e;return(0,$.jsxs)(G,{..._t,size:t,rounded:o,fillMode:a,hover:M,focus:S,valid:k,invalid:A,required:g,loading:C,disabled:P,readonly:Ve,className:i(e.className,Qi),children:[m&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(mt,{children:m}),n&&(0,$.jsx)(dt,{})]}),(0,$.jsx)(Re,{id:Ee,placeholder:h,value:d,type:f,disabled:P,"aria-label":Rt,"aria-describedby":wt,"aria-invalid":A?"true":void 0}),p&&(0,$.jsx)(fe,{valid:k,invalid:A,loading:C,disabled:P}),(0,$.jsx)(Se,{loading:C,disabled:P}),r&&(0,$.jsx)(Ke,{loading:C,disabled:P,readonly:Ve,value:d}),c&&(0,$.jsxs)($.Fragment,{children:[n&&(0,$.jsx)(dt,{}),(0,$.jsx)(ct,{children:c})]})]})};X.states=ul;X.options=fl;X.className=Qi;X.defaultOptions=bo;X.moduleName=cn;X.folderName=Yi;X.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 Yt=X;var ji=require("react/jsx-runtime"),Zi=e=>(0,ji.jsx)(Yt,{...e});var ea=require("react/jsx-runtime");var ta=require("react/jsx-runtime");var bl=require("react/jsx-runtime");var ho=require("react/jsx-runtime"),hl=X.states,xl=X.defaultOptions,Nl=X.options,Ml=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Ll=[],bt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t!=null&&t[n]?(0,ho.jsx)(u,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[n]?(0,ho.jsx)(Qe,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t==null?void 0:t[n];break;default:break}}),(0,ho.jsx)(Zi,{value:"Value",style:{width:300},...o,...a})};bt.options=Nl;bt.states=hl;bt.variants=Ll;bt.defaultOptions=xl;bt.modifiers=Ml;bt.className=X.className;var se=require("react/jsx-runtime"),oa="k-actionsheet-titlebar",Il={},be=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:r,input:p,inputValue:m,inputPlaceholder:c,adaptive:f,titleId:d,children:h,...M}=e;return(0,se.jsxs)("div",{...M,className:i(e.className,oa),children:[(0,se.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,se.jsx)("div",{className:"k-actionsheet-actions",children:a}),!h&&(0,se.jsxs)("div",{className:"k-actionsheet-title",id:d,children:[t&&(0,se.jsx)("div",{className:"k-text-center",children:t}),o&&(0,se.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&(0,se.jsx)("div",{className:"k-actionsheet-title",id:d,children:h}),n&&(0,se.jsx)("div",{className:"k-actionsheet-actions",children:n})]}),(p||r)&&(0,se.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,se.jsx)(X,{value:m,placeholder:c,size:f?"large":"medium","aria-label":t||c||"Input"}):(0,se.jsx)(ae,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};be.className=oa;be.defaultOptions=Il;var ht=require("react/jsx-runtime"),dn="k-actionsheet-view",vl=[],Sl={},kl={},xt=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:r,titleId:p,...m}=e,c=(n==null?void 0:n.type)===be&&(0,ht.jsx)(be,{adaptive:t,titleId:p,...n==null?void 0:n.props}),f=(r==null?void 0:r.type)===ft&&(0,ht.jsx)(ft,{...r==null?void 0:r.props});return(0,ht.jsxs)("div",{...m,className:i(e.className,dn,{[`${dn}-animated`]:o}),children:[c,(0,ht.jsx)("div",{className:"k-actionsheet-content",children:a}),f]})};xt.states=vl;xt.options=Sl;xt.className=dn;xt.defaultOptions=kl;var Qt="action-sheet",xo=Qt;var un="overlay",na=un;var aa=require("react/jsx-runtime"),ia="k-overlay",gl=[],Al={},Cl={},ze=e=>{let{...t}=e;return(0,aa.jsx)("div",{...t,className:i(e.className,ia),children:e.children})};ze.states=gl;ze.options=Al;ze.className=ia;ze.defaultOptions=Cl;ze.moduleName=un;ze.folderName=na;var Ze=require("react/jsx-runtime"),sa="k-actionsheet",El=[],Tl={},Zt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},H=e=>{let{side:t=Zt.side,fullscreen:o=Zt.fullscreen,adaptive:a=Zt.adaptive,overlay:n=Zt.overlay,template:r,children:p,header:m,footer:c,id:f,...d}=e,h=f&&!r&&m?`${f}-title`:void 0;return(0,Ze.jsxs)("div",{className:"k-actionsheet-container",children:[n&&(0,Ze.jsx)(ze,{}),(0,Ze.jsx)(ke,{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,Ze.jsx)("div",{...d,id:f,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":h,className:i(e.className,sa,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||(0,Ze.jsx)(xt,{header:m,footer:c,adaptive:a,titleId:h,...e,children:p})})})]})};H.states=El;H.options=Tl;H.className=sa;H.defaultOptions=Zt;H.moduleName=Qt;H.folderName=xo;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 la=require("react/jsx-runtime"),ra="k-actionsheet-container",Ol=[],yl={},Kl={},Nt=e=>{let{children:t,...o}=e;return(0,la.jsx)("div",{...o,className:ra,children:t})};Nt.states=Ol;Nt.options=yl;Nt.className=ra;Nt.defaultOptions=Kl;Nt.moduleName=Qt;Nt.folderName=xo;var pa=require("react/jsx-runtime"),fn=e=>{let{...t}=e;return(0,pa.jsx)("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};var me=require("react/jsx-runtime"),bn="k-actionsheet-item",Rl=[s.hover,s.focus,s.selected,s.disabled],Fe=e=>{let{iconName:t,text:o,description:a,hover:n,focus:r,selected:p,disabled:m,...c}=e;return(0,me.jsxs)("span",{...c,className:i(e.className,bn,v(bn,{hover:n,focus:r,selected:p,disabled:m})),children:[!e.children&&(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,me.jsx)("span",{className:"k-icon-wrap",children:(0,me.jsx)(u,{className:"k-actionsheet-item-icon",icon:t})}),(0,me.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,me.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,me.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Fe.states=Rl;Fe.className=bn;var ma=require("react/jsx-runtime");var wl=require("react/jsx-runtime");var _l=require("react/jsx-runtime");var Pl=require("react/jsx-runtime");var O=require("react/jsx-runtime"),Hl=H.options,Dl=H.states,da={...H.defaultOptions,variant:"normal"},Ul=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Bl=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Mt=e=>{let{variant:t,modifiers:o,...a}={...da,...e},n={},r=(0,O.jsxs)(fn,{children:[(0,O.jsx)(Fe,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,O.jsx)(Fe,{text:"Add to Favorites",iconName:"heart"}),(0,O.jsx)(Fe,{text:"Upload New",iconName:"upload",disabled:!0}),(0,O.jsx)("hr",{className:"k-hr"}),(0,O.jsx)(Fe,{text:"Cancel",iconName:"cancel"})]}),p="Choose from the items below",m="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(c=>{switch(c){case"actions":n.actionsStart=!!(o!=null&&o[c]),n.actionsEnd=!!(o!=null&&o[c]);break;case"subtitle":n.subtitle=o!=null&&o[c]?p:void 0;break;case"footer":n.footer=!!(o!=null&&o[c]);break;default:break}}),t==="adaptive"?(0,O.jsx)(H,{...a,adaptive:!0,fullscreen:n.fullScreen,header:(0,O.jsx)(be,{actionsStart:n.actionsStart?(0,O.jsx)(N,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,O.jsx)(N,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:m,subtitle:n.subtitle}),footer:n.footer?(0,O.jsxs)(ft,{alignment:"stretched",children:[(0,O.jsx)(N,{text:"Cancel",size:"large",themeColor:"base"}),(0,O.jsx)(N,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):(0,O.jsx)(H,{...a,fullscreen:n.fullScreen,header:(0,O.jsx)(be,{actionsStart:n.actionsStart?(0,O.jsx)(N,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,O.jsx)(N,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?(0,O.jsxs)(ft,{alignment:"stretched",children:[(0,O.jsx)(N,{text:"Apply",themeColor:"primary"}),(0,O.jsx)(N,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Mt.options=Hl;Mt.states=Dl;Mt.variants=Ul;Mt.defaultOptions=da;Mt.modifiers=Bl;Mt.className=H.className;var No=oi(require("react"));var hn=require("react/jsx-runtime"),zl="k-list-group-sticky-header",xn=e=>(0,hn.jsx)("div",{className:i(zl,e.className),children:(0,hn.jsx)("div",{className:"k-list-header-text",children:e.children})});var ua=require("react/jsx-runtime"),Fl="k-no-data",Nn=e=>{let{live:t,...o}=e;return(0,ua.jsx)("span",{...o,className:i(Fl,e.className),"aria-live":t?"polite":void 0,children:e.children})};var je="list",Lt=je;var It=require("react/jsx-runtime"),Mn="k-list",Gl=[],Vl={size:[l.undefined,l.small,l.medium,l.large]},$l={},K=e=>{var k;let{size:t,virtualization:o,children:a,header:n,selectAll:r,optionLabel:p,customValue:m,noData:c,screenReaders:f,...d}=e,M=No.default.Children.toArray(a)[0],S=(k=M==null?void 0:M.props)!=null&&k.children?No.default.Children.count(M.props.children):No.default.Children.count(a);return(0,It.jsxs)("div",{...d,className:i(e.className,Mn,I(Mn,{size:t}),{"k-virtual-list":o}),children:[p,r,m,n&&(0,It.jsx)(xn,{children:n}),a||(c!==void 0?c:(0,It.jsx)(Nn,{live:!0,children:"No data found."})),f&&a&&(0,It.jsxs)(Nn,{className:"k-sr-only",live:!0,children:[S," items found."]})]})};K.states=Gl;K.options=Vl;K.className=Mn;K.defaultOptions=$l;K.moduleName=je;K.folderName=Lt;K.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};var ba=require("react/jsx-runtime"),fa="k-list-container",Xl=[],Wl={},Jl={},vt=e=>{let{...t}=e;return(0,ba.jsx)("div",{...t,className:i(e.className,fa),children:e.children})};vt.states=Xl;vt.options=Wl;vt.className=fa;vt.defaultOptions=Jl;vt.moduleName=je;vt.folderName=Lt;var Ae=require("react/jsx-runtime"),Ln="k-list-item",ql=[s.hover,s.focus,s.selected,s.disabled],Yl={},Ql={},T=e=>{let{text:t,groupLabel:o,group:a,iconName:n,iconClassName:r,showCheckbox:p,checked:m,hover:c,focus:f,selected:d,disabled:h,actions:M,description:S,id:k,...A}=e,g=t||e.children;return(0,Ae.jsxs)("li",{...A,id:k,role:a?"presentation":"option",tabIndex:a?void 0:f?0:-1,"aria-selected":!a&&d?"true":a?void 0:"false","aria-disabled":!a&&h?"true":void 0,className:i(e.className,a?"k-list-group-item":Ln,v(Ln,{hover:c,focus:f,disabled:h,selected:d})),children:[p&&(0,Ae.jsx)(R,{checked:m}),n&&(0,Ae.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,Ae.jsx)(u,{icon:n,className:i("k-list-item-icon",r)})}),(0,Ae.jsx)("span",{className:"k-list-item-text",children:g}),M&&(0,Ae.jsx)("div",{className:"k-list-item-actions",children:M}),S&&(0,Ae.jsx)("span",{className:"k-list-item-description",children:S}),o&&o!==""&&(0,Ae.jsx)("div",{className:"k-list-item-group-label",children:o})]})};T.states=ql;T.options=Yl;T.className=Ln;T.defaultOptions=Ql;T.moduleName=je;T.folderName=Lt;T.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 ha=require("react/jsx-runtime"),Zl="k-list-ul",et=e=>{let{children:t,role:o,id:a,...n}=e;return(0,ha.jsx)("ul",{...n,id:a,role:o,className:i(Zl,e.className),children:t})};et.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 St=require("react/jsx-runtime"),jl="k-list-content",Z=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":n,listboxId:r,...p}=e;return(0,St.jsxs)("div",{...p,className:i(jl,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?a:void 0,"aria-labelledby":o?n:void 0,children:[o?e.children:(0,St.jsx)(et,{role:"listbox",id:r,"aria-label":a,"aria-labelledby":n,children:e.children}),t&&(0,St.jsx)("div",{className:"k-height-container",children:(0,St.jsx)("div",{})})]})};Z.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 kt=require("react/jsx-runtime"),Mo="k-list-sticky-header",ep=[s.hover,s.focus,s.selected],tp={},op={},Lo=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:n,hover:r,focus:p,selected:m,...c}=e;return(0,kt.jsx)("div",{...c,className:i(Mo,e.className),children:(0,kt.jsxs)("div",{className:i(`${Mo}-item`,v(`${Mo}-item`,{hover:r,focus:p,selected:m})),children:[o&&(0,kt.jsx)(R,{checked:a,indeterminate:n,"aria-label":t}),(0,kt.jsx)("span",{className:"k-list-item-text",children:t})]})})};Lo.states=ep;Lo.options=tp;Lo.className=Mo;Lo.defaultOptions=op;var In=require("react/jsx-runtime");var gt=require("react/jsx-runtime"),np="k-list-group-item",jt=e=>{let{groupIconName:t,...o}=e;return(0,gt.jsxs)("li",{...o,role:"presentation",className:i(np,e.className),children:[t&&(0,gt.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,gt.jsx)(u,{icon:t,className:"k-list-item-icon"})}),(0,gt.jsx)("span",{className:"k-list-item-text",children:e.children})]})};jt.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 xa=require("react/jsx-runtime"),vn="k-list-optionlabel",ip=[s.hover,s.focus,s.selected,s.disabled],ap={},sp={},Io=e=>{let{text:t,hover:o,focus:a,selected:n,disabled:r,...p}=e;return(0,xa.jsx)("div",{...p,className:i(vn,v(vn,{hover:o,focus:a,selected:n,disabled:r})),children:t})};Io.states=ip;Io.options=ap;Io.className=vn;Io.defaultOptions=sp;var Na=require("react/jsx-runtime"),Sn="k-list-custom-value",rp=[s.hover,s.focus,s.selected,s.disabled],lp={},pp={},vo=e=>{let{text:t,hover:o,focus:a,selected:n,disabled:r,...p}=e;return(0,Na.jsx)("div",{...p,className:i(Sn,v(Sn,{hover:o,focus:a,selected:n,disabled:r})),children:t})};vo.states=rp;vo.options=lp;vo.className=Sn;vo.defaultOptions=pp;var kn=require("react/jsx-runtime");var gn=require("react/jsx-runtime");var An=require("react/jsx-runtime");var Cn=require("react/jsx-runtime");var mp=require("react/jsx-runtime");var En=require("react/jsx-runtime");var Ma="dropdown-list",La="dropdownlist";var y=require("react/jsx-runtime"),Ia="k-dropdownlist",cp=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],dp={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},Tn={showValue:!0,arrowIconName:"chevron-down"},te=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:n=Tn.arrowIconName,showValue:r=Tn.showValue,valueIconName:p,prefix:m,suffix:c,value:f,placeholder:d,hover:h,focus:M,valid:S,invalid:k,required:A,loading:g,disabled:C,readonly:P,popup:Ve,opened:Ee,adaptive:Rt,adaptiveSettings:wt,adaptiveTitle:_t,adaptiveSubtitle:ts,adaptiveFilter:os,id:Pt,activeDescendant:jn,"aria-label":ns,...is}=e,as=Pt?`${Pt}-listbox`:void 0,ei=Pt?`${Pt}-value`:void 0;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Ue,{...is,id:Pt,size:t,rounded:o,fillMode:a,hover:h,focus:M,valid:S,invalid:k,required:A,loading:g,disabled:C,readonly:P,className:i(e.className,Ia,{"k-icon-picker":!r&&p}),role:"combobox","aria-haspopup":"listbox","aria-expanded":Ee?"true":"false","aria-controls":Ee?as:void 0,"aria-activedescendant":Ee&&jn?jn:void 0,"aria-describedby":Ee?ei:void 0,"aria-disabled":C?"true":void 0,"aria-label":ns,tabIndex:0,children:[(0,y.jsx)(mt,{children:m}),(0,y.jsx)($t,{placeholder:d,value:f,showValue:r,valueIconName:p,id:ei}),(0,y.jsx)(fe,{valid:S,invalid:k,loading:g,disabled:C}),(0,y.jsx)(Se,{loading:g,disabled:C}),(0,y.jsx)(ct,{children:c}),(0,y.jsx)(N,{className:"k-input-button",icon:n,size:e.size,fillMode:e.fillMode,"aria-label":d||"Toggle dropdown",tabIndex:-1})]}),Ee&&Ve&&(0,y.jsx)(V,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:Ve}),Rt&&(0,y.jsx)(H,{adaptive:!0,...wt,header:(0,y.jsx)(be,{actionsEnd:(0,y.jsx)(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:os,inputValue:f,inputPlaceholder:d,title:_t,subtitle:ts}),children:(0,y.jsx)("div",{className:"k-list-container",children:(0,y.jsx)(K,{size:"large",children:(0,y.jsxs)(Z,{"aria-label":"Options",children:[(0,y.jsx)(T,{text:"List item"}),(0,y.jsx)(T,{text:"List item"}),(0,y.jsx)(T,{text:"List item"})]})})})})]})};te.states=cp;te.options=dp;te.className=Ia;te.defaultOptions=Tn;te.moduleName=Ma;te.folderName=La;te.ariaSpec={rules:[{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"role=combobox",usage:"Announces the dropdown element."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-haspopup=listbox",usage:"Indicates the presence of a listbox popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-expanded",usage:"Announces the visibility state of the popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-label",usage:"Accessible name for the dropdown."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-dropdownlist.k-disabled",attribute:"aria-disabled=true",usage:"Rendered when the dropdown is disabled."},{selector:".k-dropdownlist .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-dropdownlist .k-input-button",attribute:"tabindex=-1",usage:"The button must not be focusable."},{selector:".k-dropdownlist-popup .k-list-content, .k-dropdownlist-popup .k-list-ul",attribute:"role=listbox",usage:"Popup list has listbox role."},{selector:'.k-dropdownlist-popup .k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby",usage:"Popup listbox must have an accessible name. Consuming code is responsible for associating