UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 53.3 kB
var kn=Object.create;var gt=Object.defineProperty;var In=Object.getOwnPropertyDescriptor;var Sn=Object.getOwnPropertyNames;var yn=Object.getPrototypeOf,Mn=Object.prototype.hasOwnProperty;var En=(e,t)=>{for(var o in t)gt(e,o,{get:t[o],enumerable:!0})},Go=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Sn(t))!Mn.call(e,i)&&i!==o&&gt(e,i,{get:()=>t[i],enumerable:!(n=In(t,i))||n.enumerable});return e};var $o=(e,t,o)=>(o=e!=null?kn(yn(e)):{},Go(t||!e||!e.__esModule?gt(o,"default",{value:e,enumerable:!0}):o,e)),Tn=e=>Go(gt({},"__esModule",{value:!0}),e);var Mr={};En(Mr,{MultiSelectSelectAllCustomValue:()=>yr});module.exports=Tn(Mr);var kt=$o(require("react"));var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>s({[`${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"}),E=(e,t)=>{let{valid:o,invalid:n,hover:i,focus:r,checked:c,active:p,selected:u,disabled:f,indeterminate:b,loading:N,empty:L,readonly:g,highlighted:T,...y}=t;return s({"k-valid":o,"k-invalid":n,"k-hover":i,"k-focus":r,"k-checked":c,"k-active":p,"k-selected":u,"k-disabled":f,"k-indeterminate":b&&!c,"k-loading":N,"k-empty":L,"k-readonly":g,"k-highlighted":T},Object.keys(y).reduce((M,O)=>(O.startsWith("k-")?M[O]=y[O]:M[`k-${O}`]=y[O],M),{}))};function Xo(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},d={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},h={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},ie={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},m={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},a={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 Gt={};function k(e){return Gt[e]=(Gt[e]||0)+1,`k-${e}-${Gt[e]}`}var $t=require("react/jsx-runtime"),On="k-list-group-sticky-header",Xt=e=>(0,$t.jsx)("div",{className:s(On,e.className),children:(0,$t.jsx)("div",{className:"k-list-header-text",children:e.children})});var qo=require("react/jsx-runtime"),Rn="k-no-data",qt=e=>{let{live:t,...o}=e;return(0,qo.jsx)("span",{...o,className:s(Rn,e.className),"aria-live":t?"polite":void 0,children:e.children})};var ge="list",Te=ge;var Oe=require("react/jsx-runtime"),Jt="k-list",Kn=[],_n={size:[l.undefined,l.small,l.medium,l.large]},Pn={},H=e=>{var T;let{size:t,virtualization:o,children:n,header:i,selectAll:r,optionLabel:c,customValue:p,noData:u,screenReaders:f,...b}=e,L=kt.default.Children.toArray(n)[0],g=(T=L==null?void 0:L.props)!=null&&T.children?kt.default.Children.count(L.props.children):kt.default.Children.count(n);return(0,Oe.jsxs)("div",{...b,className:s(e.className,Jt,C(Jt,{size:t}),{"k-virtual-list":o}),children:[c,r,p,i&&(0,Oe.jsx)(Xt,{children:i}),n||(u!==void 0?u:(0,Oe.jsx)(qt,{live:!0,children:"No data found."})),f&&n&&(0,Oe.jsxs)(qt,{className:"k-sr-only",live:!0,children:[g," items found."]})]})};H.states=Kn;H.options=_n;H.className=Jt;H.defaultOptions=Pn;H.moduleName=ge;H.folderName=Te;H.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};var Wo=require("react/jsx-runtime"),Jo="k-list-container",Hn=[],wn={},Dn={},Re=e=>{let{...t}=e;return(0,Wo.jsx)("div",{...t,className:s(e.className,Jo),children:e.children})};Re.states=Hn;Re.options=wn;Re.className=Jo;Re.defaultOptions=Dn;Re.moduleName=ge;Re.folderName=Te;var ke="checkbox",Ke=ke;var Wt=require("react/jsx-runtime"),It="k-checkbox",zn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Bn={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full]},Un={},G=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:r,disabled:c,invalid:p,valid:u,required:f,size:b,rounded:N,wrapperRole:L,...g}=e;return(0,Wt.jsx)("span",{className:"k-checkbox-wrap",role:L,children:(0,Wt.jsx)("input",{...g,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:c||void 0,"aria-invalid":p?"true":void 0,className:s(e.className,It,C(It,{size:b,rounded:N}),E(It,{hover:i,focus:r,disabled:c,invalid:p,valid:u,indeterminate:n,checked:o}))})})};G.states=zn;G.options=Bn;G.className=It;G.defaultOptions=Un;G.moduleName=ke;G.folderName=Ke;G.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=G;var Zo=require("react/jsx-runtime"),Yo="k-checkbox-list",Vn=[],Fn={},Qo={layout:"vertical"},B=e=>{let{layout:t=Qo.layout,...o}=e;return(0,Zo.jsx)("ul",{...o,className:s(e.className,Yo,{[`k-list-${t}`]:t}),children:e.children})};B.states=Vn;B.options=Fn;B.className=Yo;B.defaultOptions=Qo;B.moduleName=ke;B.folderName=Ke;var ei=require("react/jsx-runtime"),jo="k-checkbox-list-item",Gn=[],$n={},Xn={},U=e=>{let{...t}=e;return(0,ei.jsx)("li",{...t,className:s(e.className,jo),children:e.children})};U.states=Gn;U.options=$n;U.className=jo;U.defaultOptions=Xn;U.moduleName=ke;U.folderName=Ke;var Ie=require("react/jsx-runtime"),re=({children:e="Label",id:t="cb-label-after",...o})=>(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(Q,{id:t,...o}),(0,Ie.jsx)("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});var Yt=require("react/jsx-runtime");var Qt=require("react/jsx-runtime");var Zt=require("react/jsx-runtime");var qn=require("react/jsx-runtime");var Jn=require("react/jsx-runtime");var Wn=require("react/jsx-runtime");var D=require("react/jsx-runtime"),Yn=B.options,Qn=B.states,Zn={...B.defaultOptions,variant:"vertical"},jn=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],ea=[],_e=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,D.jsxs)(B,{layout:"horizontal",...o,children:[(0,D.jsx)(U,{children:(0,D.jsx)(re,{id:k("cb"),defaultChecked:!0,children:"Label"})}),(0,D.jsx)(U,{children:(0,D.jsx)(re,{id:k("cb"),children:"Label"})}),(0,D.jsx)(U,{children:(0,D.jsx)(re,{id:k("cb"),children:"Label"})})]}):(0,D.jsxs)(B,{...o,children:[(0,D.jsx)(U,{children:(0,D.jsx)(re,{id:k("cb"),defaultChecked:!0,children:"Label"})}),(0,D.jsx)(U,{children:(0,D.jsx)(re,{id:k("cb"),children:"Label"})}),(0,D.jsx)(U,{children:(0,D.jsx)(re,{id:k("cb"),children:"Label"})})]})};_e.options=Yn;_e.states=Qn;_e.variants=jn;_e.defaultOptions=Zn;_e.modifiers=ea;_e.className=B.className;var ti=require("react/jsx-runtime"),ta=Q.options,oa=Q.states,ia=Q.defaultOptions,na=[],aa=[],Pe=e=>(0,ti.jsx)(re,{id:k("checkbox"),...e,defaultChecked:!0,children:"Label"});Pe.options=ta;Pe.states=oa;Pe.variants=na;Pe.defaultOptions=ia;Pe.modifiers=aa;Pe.className=Q.className;var at=require("react/jsx-runtime"),jt="k-font-icon",sa=[],ra={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info]},la={},st=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:r,...c}=e;return n?(0,at.jsx)("span",{...c,className:s(e.className,jt,C(jt,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):(0,at.jsx)(at.Fragment,{})};st.states=sa;st.options=ra;st.className=jt;st.defaultOptions=la;var oi=st;var Se=require("react/jsx-runtime"),eo="k-svg-icon",ca=[],pa={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info],variant:[ie.outline,ie.solid,ie.duotone]},to={viewBox:"0 0 24 24",variant:ie.outline},rt=e=>{var N,L;let{size:t,themeColor:o,rotate:n,flip:i,viewBox:r=to.viewBox,variant:c=to.variant,icon:p,...u}=e;if(!p)return(0,Se.jsx)(Se.Fragment,{});if(p==="none")return(0,Se.jsx)("span",{...u,className:s(e.className,eo,C("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof p=="object"&&p.name&&p.name,b=typeof p=="object"?c&&((N=p.variants)==null?void 0:N[c])||((L=p.variants)==null?void 0:L.outline)||p.content:void 0;return(0,Se.jsx)("span",{...u,className:s(e.className,eo,C("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:(0,Se.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:r,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:p?void 0:e.children})})};rt.states=ca;rt.options=pa;rt.className=eo;rt.defaultOptions=to;var oo=rt;var io=$o(require("@progress/kendo-svg-icons"));var ii="icon",ni="icons";var ri=require("react");var ai=require("react"),si=(0,ai.createContext)({iconsType:"svg"});var le=require("react/jsx-runtime"),St="k-icon",da=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ma=[],ua={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info],variant:[ie.outline,ie.solid,ie.duotone]},yt={viewBox:"0 0 24 24",type:"svg",variant:ie.outline},x=e=>{let{iconsType:t}=(0,ri.useContext)(si),{size:o,themeColor:n,icon:i,type:r=t||yt.type,rotate:c,flip:p,viewBox:u=yt.viewBox,variant:f=yt.variant,...b}=e;if(!i)return(0,le.jsx)(le.Fragment,{});if((t||r)==="svg"){if(i==="none")return(0,le.jsx)(oo,{...b,className:s(e.className,St),icon:i,size:o,variant:f});let L=io[i]?i:da(`${i}-icon`);return io[L]?(0,le.jsx)(oo,{...b,className:s(e.className,St),icon:io[L],size:o,themeColor:n,rotate:c,flip:p,viewBox:u,variant:f}):(0,le.jsx)(le.Fragment,{})}return(0,le.jsx)(oi,{...b,className:s(e.className,St),icon:i,size:o,themeColor:n,rotate:c,flip:p})};x.states=ma;x.options=ua;x.defaultOptions=yt;x.className=St;x.moduleName=ii;x.folderName=ni;x.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 ne=require("react/jsx-runtime"),no="k-list-item",fa=[a.hover,a.focus,a.selected,a.disabled],ha={},ba={},I=e=>{let{text:t,groupLabel:o,group:n,iconName:i,iconClassName:r,showCheckbox:c,checked:p,hover:u,focus:f,selected:b,disabled:N,actions:L,description:g,id:T,...y}=e,M=t||e.children;return(0,ne.jsxs)("li",{...y,id:T,role:n?"presentation":"option",tabIndex:n?void 0:f?0:-1,"aria-selected":!n&&b?"true":n?void 0:"false","aria-disabled":!n&&N?"true":void 0,className:s(e.className,n?"k-list-group-item":no,E(no,{hover:u,focus:f,disabled:N,selected:b})),children:[c&&(0,ne.jsx)(G,{checked:p}),i&&(0,ne.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,ne.jsx)(x,{icon:i,className:s("k-list-item-icon",r)})}),(0,ne.jsx)("span",{className:"k-list-item-text",children:M}),L&&(0,ne.jsx)("div",{className:"k-list-item-actions",children:L}),g&&(0,ne.jsx)("span",{className:"k-list-item-description",children:g}),o&&o!==""&&(0,ne.jsx)("div",{className:"k-list-item-group-label",children:o})]})};I.states=fa;I.options=ha;I.className=no;I.defaultOptions=ba;I.moduleName=ge;I.folderName=Te;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 li=require("react/jsx-runtime"),xa="k-list-ul",lt=e=>{let{children:t,role:o,id:n,...i}=e;return(0,li.jsx)("ul",{...i,id:n,role:o,className:s(xa,e.className),children:t})};lt.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 He=require("react/jsx-runtime"),Na="k-list-content",Z=e=>{let{virtualization:t,grouping:o,"aria-label":n,"aria-labelledby":i,listboxId:r,...c}=e;return(0,He.jsxs)("div",{...c,className:s(Na,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?n:void 0,"aria-labelledby":o?i:void 0,children:[o?e.children:(0,He.jsx)(lt,{role:"listbox",id:r,"aria-label":n,"aria-labelledby":i,children:e.children}),t&&(0,He.jsx)("div",{className:"k-height-container",children:(0,He.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 we=require("react/jsx-runtime"),Mt="k-list-sticky-header",va=[a.hover,a.focus,a.selected],La={},Aa={},De=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:n,indeterminate:i,hover:r,focus:c,selected:p,...u}=e;return(0,we.jsx)("div",{...u,className:s(Mt,e.className),children:(0,we.jsxs)("div",{className:s(`${Mt}-item`,E(`${Mt}-item`,{hover:r,focus:c,selected:p})),children:[o&&(0,we.jsx)(G,{checked:n,indeterminate:i,"aria-label":t}),(0,we.jsx)("span",{className:"k-list-item-text",children:t})]})})};De.states=va;De.options=La;De.className=Mt;De.defaultOptions=Aa;var ao=require("react/jsx-runtime");var ze=require("react/jsx-runtime"),Ca="k-list-group-item",so=e=>{let{groupIconName:t,...o}=e;return(0,ze.jsxs)("li",{...o,role:"presentation",className:s(Ca,e.className),children:[t&&(0,ze.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,ze.jsx)(x,{icon:t,className:"k-list-item-icon"})}),(0,ze.jsx)("span",{className:"k-list-item-text",children:e.children})]})};so.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 ci=require("react/jsx-runtime"),ro="k-list-optionlabel",ga=[a.hover,a.focus,a.selected,a.disabled],ka={},Ia={},Et=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:r,...c}=e;return(0,ci.jsx)("div",{...c,className:s(ro,E(ro,{hover:o,focus:n,selected:i,disabled:r})),children:t})};Et.states=ga;Et.options=ka;Et.className=ro;Et.defaultOptions=Ia;var pi=require("react/jsx-runtime"),lo="k-list-custom-value",Sa=[a.hover,a.focus,a.selected,a.disabled],ya={},Ma={},be=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:r,...c}=e;return(0,pi.jsx)("div",{...c,className:s(lo,E(lo,{hover:o,focus:n,selected:i,disabled:r})),children:t})};be.states=Sa;be.options=ya;be.className=lo;be.defaultOptions=Ma;var co=require("react/jsx-runtime");var po=require("react/jsx-runtime");var mo=require("react/jsx-runtime");var uo=require("react/jsx-runtime");var Ea=require("react/jsx-runtime");var fo=require("react/jsx-runtime");var ct="input",Tt=ct;var di=require("react/jsx-runtime"),Ot="k-input",Ta=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Oa={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Ra={},R=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:c,readonly:p,size:u,rounded:f,fillMode:b,...N}=e;return(0,di.jsx)("span",{...N,className:s(e.className,Ot,C(Ot,{size:u,rounded:f,fillMode:b}),E(Ot,{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:c,readonly:p}))})};R.states=Ta;R.options=Oa;R.className=Ot;R.defaultOptions=Ra;R.moduleName=ct;R.folderName=Tt;var mi=require("react/jsx-runtime"),Rt="k-picker",Ka=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],_a={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Pa={},Be=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:c,readonly:p,size:u,rounded:f,fillMode:b,...N}=e;return(0,mi.jsx)("span",{...N,className:s(e.className,Rt,C(Rt,{size:u,rounded:f,fillMode:b}),E(Rt,{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:c,readonly:p})),children:e.children})};Be.states=Ka;Be.options=_a;Be.className=Rt;Be.defaultOptions=Pa;Be.moduleName=ct;Be.folderName=Tt;var Ue=require("react/jsx-runtime"),ui="k-clear-value",Ha=[a.disabled,a.loading,a.readonly],wa={},j=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?(0,Ue.jsx)(Ue.Fragment,{}):(0,Ue.jsx)("span",{className:s(e.className,ui),children:(0,Ue.jsx)(x,{icon:"x"})})};j.states=Ha;j.options=wa;j.className=ui;var fi=require("react/jsx-runtime"),ho="k-input-inner",Da=[],za={},Kt={type:"text",autocomplete:"off",value:"",placeholder:""},ee=e=>{let{value:t=Kt.value,type:o=Kt.type,placeholder:n=Kt.placeholder,autocomplete:i=Kt.autocomplete,disabled:r,readOnly:c,...p}=e;return(0,fi.jsx)("input",{...p,type:o,className:s(e.className,ho,C(ho,e)),placeholder:n,autoComplete:i,defaultValue:t,disabled:r||void 0,readOnly:c||void 0})};ee.states=Da;ee.options=za;ee.className=ho;var pt=require("react/jsx-runtime"),bo="k-input-inner",Ba=[],Ua={},xo=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:r,...c}=e;return(0,pt.jsxs)("span",{...c,className:s(e.className,bo,C(bo,e)),children:[i,!i&&r&&(0,pt.jsx)(x,{className:"k-input-value-icon",icon:r}),n&&!t&&o,n&&t&&(0,pt.jsx)("span",{className:"k-input-value-text",children:t})]})};xo.states=Ba;xo.options=Ua;xo.className=bo;var bi=require("react/jsx-runtime"),No="k-input-inner",Va=[],Fa={},hi={value:"",placeholder:""},vo=e=>{let{value:t=hi.value,placeholder:o=hi.placeholder,rows:n,disabled:i,...r}=e;return(0,bi.jsx)("textarea",{...r,className:s(e.className,No,C(No,e)),placeholder:o,rows:n,defaultValue:t,disabled:i||void 0})};vo.states=Va;vo.options=Fa;vo.className=No;var dt=require("react/jsx-runtime"),xi="k-input-loading-icon",Ga=[a.disabled,a.loading],ae=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,dt.jsx)(dt.Fragment,{}):(0,dt.jsx)("span",{className:s(e.className,xi,"k-icon k-i-loading")})};ae.states=Ga;ae.className=xi;var mt=require("react/jsx-runtime"),Ni="k-input-validation-icon",$a=[a.valid,a.invalid,a.disabled,a.loading],Xa={},te=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,r=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?(0,mt.jsx)(mt.Fragment,{}):(0,mt.jsx)(x,{className:s(Ni),icon:r})};te.states=$a;te.options=Xa;te.className=Ni;var ut=require("react/jsx-runtime"),qa="k-input-prefix",Ja={direction:"horizontal"},Ve=e=>{let{direction:t=Ja.direction,...o}=e;return e.children?(0,ut.jsx)("span",{...o,className:s(qa,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,ut.jsx)(ut.Fragment,{})};var ft=require("react/jsx-runtime"),Wa="k-input-suffix",Ya={direction:"horizontal"},Fe=e=>{let{direction:t=Ya.direction,...o}=e;return e.children?(0,ft.jsx)("span",{...o,className:s(Wa,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,ft.jsx)(ft.Fragment,{})};var Qa=require("react/jsx-runtime");var Za=require("react/jsx-runtime");var Li=require("react/jsx-runtime"),vi="k-input-separator",ja={direction:"vertical"},ce=e=>{let{direction:t=ja.direction,...o}=e;return(0,Li.jsx)("span",{...o,className:s(vi,e.className,{[`${vi}-${t}`]:t})})};var Lo="button",Ai=Lo;var X=require("react/jsx-runtime"),ht="k-button",es=["icon-button"],ts=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],os={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.inverse]},Ao={showArrow:!1,arrowIconName:"chevron-down"},A=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:r,showArrow:c=Ao.showArrow,arrowIconName:p=Ao.arrowIconName,variant:u,hover:f,focus:b,active:N,selected:L,disabled:g,togglable:T,ariaDisabled:y,icon:M,iconSize:O,text:P,iconClassName:fe,className:he,...ot}=e,it=M!=null,nt=e.children!==void 0;return(0,X.jsxs)(t,{className:s(he,ht,Xo(ht,u),C(ht,{size:o,rounded:n,fillMode:i,themeColor:r}),E(ht,{hover:f,focus:b,active:N,disabled:g||y,selected:L}),{"k-icon-button":!P&&!nt&&it}),"aria-pressed":T?L?"true":"false":void 0,...ot,"aria-disabled":y?"true":void 0,disabled:g||void 0,children:[typeof M=="string"&&M&&(0,X.jsx)(x,{className:s(fe,"k-button-icon"),icon:M,size:O}),M&&typeof M!="string"&&(0,X.jsx)(X.Fragment,{children:M}),P?(0,X.jsxs)(X.Fragment,{children:[P&&(0,X.jsx)("span",{className:"k-button-text",children:P}),e.children]}):e.children&&(0,X.jsx)("span",{className:"k-button-text",children:e.children}),c&&(0,X.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,X.jsx)(x,{icon:p})})]})};A.states=ts;A.options=os;A.variants=es;A.className=ht;A.defaultOptions=Ao;A.moduleName=Lo;A.folderName=Ai;A.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 Ci=require("react/jsx-runtime"),ye=e=>(0,Ci.jsx)(A,{children:"Button",...e});var K=require("react/jsx-runtime"),is=R.states,ns=R.defaultOptions,as=R.options,ss=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],rs=[],Ge=e=>{let{modifiers:t,valid:o,invalid:n,loading:i,disabled:r,readonly:c,...p}=e,u=t==null?void 0:t.prefix,f=t==null?void 0:t.suffix,b=t==null?void 0:t["clear-button"],N=t==null?void 0:t["validation-icon"],L=t==null?void 0:t.separators;return(0,K.jsxs)(R,{...p,valid:o,invalid:n,loading:i,disabled:r,readonly:c,style:{width:300},children:[u&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Ve,{children:(0,K.jsx)(x,{icon:"lock"})}),L&&(0,K.jsx)(ce,{})]}),(0,K.jsx)(ee,{placeholder:"Placeholder",value:"Value"}),N&&(0,K.jsx)(te,{valid:o,invalid:n,loading:i,disabled:r}),(0,K.jsx)(ae,{loading:i,disabled:r}),b&&(0,K.jsx)(j,{loading:i,disabled:r,readonly:c,value:"Value"}),f&&(0,K.jsxs)(K.Fragment,{children:[L&&(0,K.jsx)(ce,{}),(0,K.jsx)(Fe,{children:(0,K.jsx)(ye,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};Ge.options=as;Ge.states=is;Ge.variants=rs;Ge.defaultOptions=ns;Ge.modifiers=ss;Ge.className=R.className;var ki=require("react/jsx-runtime"),gi=e=>(0,ki.jsx)(A,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Si=require("react/jsx-runtime"),Ii=e=>(0,Si.jsx)(A,{icon:"folder",children:"Button",...e});var _t=require("react/jsx-runtime"),ls=A.options,cs=A.states,ps={...A.defaultOptions,variant:"text"},ds=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ms=[],$e=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,_t.jsx)(gi,{...o,icon:"star"});case"icon-and-text":return(0,_t.jsx)(Ii,{...o,icon:"star",children:"Button"});default:return(0,_t.jsx)(ye,{...o,children:"Button"})}};$e.options=ls;$e.states=cs;$e.variants=ds;$e.defaultOptions=ps;$e.modifiers=ms;$e.className=A.className;var bt=require("react/jsx-runtime"),us="k-chip-action";var pe=e=>{let{type:t,...o}=e,n;switch(t){case"remove":n=(0,bt.jsx)(x,{icon:"x-circle",size:"small"});break;case"more":n=(0,bt.jsx)(x,{icon:"more-vertical",size:"small"});break;default:return(0,bt.jsx)(x,{icon:t,size:"small"})}return(0,bt.jsx)("span",{...o,className:s(e.className,us,`k-chip-${t}-action`),children:n})};var Co="avatar",yi=Co;var ko=require("react/jsx-runtime"),xt="k-avatar";var fs=[a.hover,a.focus,a.active,a.selected,a.disabled],hs={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary]},go={type:"text",border:!1},V=e=>{let{size:t,rounded:o,fillMode:n,themeColor:i,type:r=go.type,border:c=go.border,...p}=e;return(0,ko.jsx)("div",{...p,className:s(e.className,xt,C(xt,{size:t,rounded:o,fillMode:n,themeColor:i}),{[`${xt}-bordered`]:c}),children:(0,ko.jsx)("span",{className:`${xt}-${r}`,children:e.children})})};V.states=fs;V.options=hs;V.className=xt;V.defaultOptions=go;V.moduleName=Co;V.folderName=yi;V.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var Me=V;var Ei=require("react/jsx-runtime"),Mi=e=>(0,Ei.jsx)(Me,{type:"icon",...e});var Oi=require("react/jsx-runtime"),Ti=e=>(0,Oi.jsx)(Me,{type:"text",...e});var Ki=require("react/jsx-runtime"),Ri=e=>(0,Ki.jsx)(Me,{type:"image",...e});var bs=require("react/jsx-runtime");var Xe=require("react/jsx-runtime"),xs=V.options,Ns=V.states,vs={...V.defaultOptions,variant:"image"},Ls=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],As=[],qe=e=>{let{variant:t,...o}=e;switch(t){case"icon":return(0,Xe.jsx)(Mi,{...o,children:(0,Xe.jsx)(x,{icon:"star"})});case"text":return(0,Xe.jsx)(Ti,{...o,children:"JO"});default:return(0,Xe.jsx)(Ri,{...o,children:(0,Xe.jsx)("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};qe.options=xs;qe.states=Ns;qe.variants=Ls;qe.defaultOptions=vs;qe.modifiers=As;qe.className=V.className;var Nt="chip",Pt=Nt,Ht="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";var de=require("react/jsx-runtime"),wt="k-chip",Cs=[a.hover,a.focus,a.active,a.selected,a.disabled],gs={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[m.undefined,m.base,m.success,m.warning,m.error,m.info]},_i={avatarImage:"/packages/html/assets/avatar.jpg"},$=e=>{let{size:t,rounded:o,fillMode:n,themeColor:i,text:r,icon:c,actions:p,showAvatar:u,avatarImage:f=_i.avatarImage,hover:b,focus:N,active:L,selected:g,disabled:T,...y}=e;return(0,de.jsxs)("div",{...y,className:s(e.className,wt,C(wt,{size:t,rounded:o,fillMode:n,themeColor:i}),E(wt,{hover:b,focus:N,active:L,disabled:T,selected:g})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:g?"true":"false",...e.role==="option"&&g!==void 0&&{"aria-selected":g?"true":"false"},"aria-disabled":T?"true":void 0,children:[c&&(0,de.jsx)(x,{className:"k-chip-icon",icon:c,size:"small"}),u&&(0,de.jsx)(V,{className:"k-chip-avatar",type:"image",children:(0,de.jsx)("img",{src:f,alt:""})}),(0,de.jsx)("span",{className:"k-chip-content",children:e.children?e.children:r&&(0,de.jsx)("span",{className:"k-chip-label",children:r})}),p&&(0,de.jsx)("span",{className:"k-chip-actions",children:p})]})};$.states=Cs;$.options=gs;$.className=wt;$.defaultOptions=_i;$.moduleName=Nt;$.folderName=Pt;$.ariaSpec={selector:".k-chip",rules:[{selector:"*:not(.k-chip-list) > .k-chip",attribute:"role=button",usage:"Announces that the chip acts as a button when standalone."},{selector:"*:not(.k-chip-list) > .k-chip.k-selected",attribute:"aria-pressed=true",usage:"Announces that the Chip has been selected."},{selector:"*:not(.k-chip-list) > .k-chip:not(.k-selected)",attribute:"aria-pressed=false",usage:"Announces that the Chip has not been selected."},{selector:".k-chip",attribute:"aria-disabled=true (when disabled)",usage:"Announces that the Chip is disabled."}]};var J=$;var Pi=require("react/jsx-runtime"),Io="k-chip-list",ks=[],Is={size:[l.undefined,l.small,l.medium,l.large]},Ss={},_=e=>{let{size:t,multiselectable:o,ariaLabel:n,...i}=e;return(0,Pi.jsx)("div",{...i,className:s(e.className,Io,C(Io,{size:t})),role:e.role||"listbox","aria-label":e.role==="none"?void 0:n||"chip list","aria-orientation":e.role==="none"?void 0:"horizontal","aria-multiselectable":o?"true":void 0,children:e.children})};_.states=ks;_.options=Is;_.className=Io;_.defaultOptions=Ss;_.moduleName=Nt;_.folderName=Pt;_.ariaSpec={selector:".k-chip-list",rules:[{selector:".k-chip-list",attribute:"role=listbox",usage:"Announces the list role of the chip list."},{selector:".k-chip-list",attribute:"aria-label or aria-labelledby",usage:"Adds label to the ChipList element. ListBox element requires an accessible name."},{selector:".k-chip-list",attribute:"aria-orientation=horizontal",usage:"Specifies the horizontal orientation of the chiplist."},{selector:".k-chip-list",attribute:"aria-multiselectable=true (when multiple selection)",usage:"Announces the multiple selection ability of the chiplist."},{selector:".k-chip-list .k-chip",attribute:"role=option",usage:"Announces the chip is an option inner component of the chip list."},{selector:".k-chip-list .k-chip.k-selected",attribute:"aria-selected=true",usage:"Announces the chip is selected."},{selector:".k-chip-list .k-chip:not(.k-selected)",attribute:"aria-selected=false",usage:"Announces the chip is not selected."},{selector:".k-chip-list .k-chip:has(.k-i-x-circle), .k-chip-list .k-chip:has(.k-svg-i-x-circle)",attribute:"aria-keyshortcuts=Enter Delete",usage:"Announces the Delete action along with the default Enter key."}]};var ys=require("react/jsx-runtime");var Ms=require("react/jsx-runtime");var Hi=require("react/jsx-runtime"),Dt=e=>(0,Hi.jsx)(J,{text:"text",...e});var Es=require("react/jsx-runtime");var Ts=require("react/jsx-runtime");var So=require("react/jsx-runtime");var wi=require("react/jsx-runtime");var Di=require("react/jsx-runtime");var zi=require("react/jsx-runtime");var me=require("react/jsx-runtime"),Os={...J.options,..._.options},Rs=[],Ks=_.states,_s={...J.defaultOptions,..._.defaultOptions},Ps=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],Je=e=>{let{modifiers:t,className:o,...n}=e,i=t==null?void 0:t.icon,r=t==null?void 0:t.actions,c=t==null?void 0:t.avatar,p=c?Ht:void 0;return(0,me.jsxs)(_,{size:n.size,className:o,children:[(0,me.jsx)(Dt,{...n,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:r?(0,me.jsx)(pe,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"}),(0,me.jsx)(Dt,{...n,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:r?(0,me.jsx)(pe,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"}),(0,me.jsx)(Dt,{...n,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:r?(0,me.jsx)(pe,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"})]})};Je.options=Os;Je.states=Ks;Je.variants=Rs;Je.defaultOptions=_s;Je.modifiers=Ps;Je.className=_.className;var zt=require("react/jsx-runtime"),Hs=$.states,ws=$.defaultOptions,Ds=$.options,zs=[],Bs=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],We=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"icon":n.icon=t!=null&&t[i]?"arrow-down":void 0;break;case"avatar":n.showAvatar=!!(t!=null&&t[i]),n.avatarImage=t!=null&&t[i]?Ht:void 0;break;case"more-options":n.actions||(n.actions=[]),n.actions[0]=t!=null&&t[i]?(0,zt.jsx)(pe,{type:"more"}):void 0;break;case"remove-icon":n.actions||(n.actions=[]),n.actions[1]=t!=null&&t[i]?(0,zt.jsx)(pe,{type:"remove"}):void 0;break;default:break}}),(0,zt.jsx)($,{...o,...n,children:"Chip component"})};We.options=Ds;We.states=Hs;We.variants=zs;We.defaultOptions=ws;We.modifiers=Bs;We.className=$.className;var yo="popup",Bi=yo;var Eo=require("react/jsx-runtime"),Ui="k-animation-container",Us=[],Vs={},Mo={positionMode:"absolute",shown:!0},se=e=>{let{positionMode:t=Mo.positionMode,shown:o=Mo.shown,animationStyle:n,offset:i,...r}=e;return(0,Eo.jsx)("div",{...r,style:{...i,...e.style},className:s(e.className,Ui,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,Eo.jsx)("div",{className:"k-child-animation-container",style:n,children:e.children})})};se.states=Us;se.options=Vs;se.className=Ui;se.defaultOptions=Mo;se.moduleName=yo;se.folderName=Bi;var To="popup",Vi=To;var Oo=require("react/jsx-runtime"),Fi="k-popup",Fs=[],Gs={},Gi={positionMode:"absolute"},ue=e=>{let{offset:t,positionMode:o=Gi.positionMode,animationStyle:n,containerClassName:i,containerRole:r,containerAriaLabel:c,...p}=e;return(0,Oo.jsx)(se,{positionMode:o,offset:t,animationStyle:n,className:i,role:r,"aria-label":c,children:(0,Oo.jsx)("div",{...p,className:s(e.className,Fi),children:e.children})})};ue.states=Fs;ue.options=Gs;ue.className=Fi;ue.defaultOptions=Gi;ue.moduleName=To;ue.folderName=Vi;ue.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 Ro="action-buttons",$i=Ro;var Xi=require("react/jsx-runtime"),Bt="k-actions",$s=[],Xs={},Ko={alignment:"start",orientation:"horizontal"},xe=e=>{let{alignment:t=Ko.alignment,orientation:o=Ko.orientation,...n}=e;return(0,Xi.jsx)("div",{...n,className:s(Bt,{[`${Bt}-${t}`]:t,[`${Bt}-${o}`]:o},e.className),children:e.children})};xe.states=$s;xe.options=Xs;xe.className=Bt;xe.defaultOptions=Ko;xe.moduleName=Ro;xe.folderName=$i;var Ji=require("react/jsx-runtime"),qs="k-actionsheet-footer",qi={alignment:"stretched",orientation:"horizontal"},Ye=e=>{let{alignment:t=qi.alignment,orientation:o=qi.orientation,template:n,as:i=n?"div":xe,...r}=e;return(0,Ji.jsx)(i,{...r,...!n&&{alignment:t,orientation:o},className:s(e.className,qs),children:e.children})};var _o="searchbox",Wi=_o;var Ne=require("react/jsx-runtime"),Yi="k-searchbox",Js=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Ws={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Po={showIcon:!0,icon:"search"},ve=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:r,hover:c,focus:p,valid:u,invalid:f,required:b,loading:N,disabled:L,showIcon:g=Po.showIcon,icon:T=Po.icon,"aria-label":y,...M}=e;return(0,Ne.jsxs)(R,{...M,size:n,rounded:i,fillMode:r,hover:c,focus:p,valid:u,invalid:f,required:b,loading:N,disabled:L,className:s(e.className,Yi),children:[g&&(0,Ne.jsx)(x,{className:"k-input-icon",icon:T}),(0,Ne.jsx)(ee,{placeholder:o,value:t,"aria-label":y}),(0,Ne.jsx)(ae,{...e}),(0,Ne.jsx)(te,{...e}),(0,Ne.jsx)(j,{...e})]})};ve.states=Js;ve.options=Ws;ve.className=Yi;ve.defaultOptions=Po;ve.moduleName=_o;ve.folderName=Wi;var Ys=require("react/jsx-runtime");var Ho="textbox",Qi=Ho;var z=require("react/jsx-runtime"),Zi="k-textbox",Qs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Zs={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Ut={showClearButton:!0,showValidationIcon:!0,separators:!0},F=e=>{let{size:t,rounded:o,fillMode:n,separators:i=Ut.separators,showClearButton:r=Ut.showClearButton,showValidationIcon:c=Ut.showValidationIcon,prefix:p,suffix:u,type:f,value:b,placeholder:N,hover:L,focus:g,valid:T,invalid:y,required:M,loading:O,disabled:P,readonly:fe,id:he,"aria-label":ot,"aria-describedby":it,...nt}=e;return(0,z.jsxs)(R,{...nt,size:t,rounded:o,fillMode:n,hover:L,focus:g,valid:T,invalid:y,required:M,loading:O,disabled:P,readonly:fe,className:s(e.className,Zi),children:[p&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ve,{children:p}),i&&(0,z.jsx)(ce,{})]}),(0,z.jsx)(ee,{id:he,placeholder:N,value:b,type:f,disabled:P,"aria-label":ot,"aria-describedby":it,"aria-invalid":y?"true":void 0}),c&&(0,z.jsx)(te,{valid:T,invalid:y,loading:O,disabled:P}),(0,z.jsx)(ae,{loading:O,disabled:P}),r&&(0,z.jsx)(j,{loading:O,disabled:P,readonly:fe,value:b}),u&&(0,z.jsxs)(z.Fragment,{children:[i&&(0,z.jsx)(ce,{}),(0,z.jsx)(Fe,{children:u})]})]})};F.states=Qs;F.options=Zs;F.className=Zi;F.defaultOptions=Ut;F.moduleName=Ho;F.folderName=Qi;F.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 vt=F;var en=require("react/jsx-runtime"),ji=e=>(0,en.jsx)(vt,{...e});var tn=require("react/jsx-runtime");var on=require("react/jsx-runtime");var js=require("react/jsx-runtime");var Vt=require("react/jsx-runtime"),er=F.states,tr=F.defaultOptions,or=F.options,ir=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],nr=[],Qe=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t!=null&&t[i]?(0,Vt.jsx)(x,{icon:"lock"}):void 0;break;case"suffix":n.suffix=t!=null&&t[i]?(0,Vt.jsx)(ye,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":n.showClearButton=t==null?void 0:t[i];break;default:break}}),(0,Vt.jsx)(ji,{value:"Value",style:{width:300},...o,...n})};Qe.options=or;Qe.states=er;Qe.variants=nr;Qe.defaultOptions=tr;Qe.modifiers=ir;Qe.className=F.className;var q=require("react/jsx-runtime"),nn="k-actionsheet-titlebar",ar={},oe=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:r,input:c,inputValue:p,inputPlaceholder:u,adaptive:f,titleId:b,children:N,...L}=e;return(0,q.jsxs)("div",{...L,className:s(e.className,nn),children:[(0,q.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[n&&(0,q.jsx)("div",{className:"k-actionsheet-actions",children:n}),!N&&(0,q.jsxs)("div",{className:"k-actionsheet-title",id:b,children:[t&&(0,q.jsx)("div",{className:"k-text-center",children:t}),o&&(0,q.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&(0,q.jsx)("div",{className:"k-actionsheet-title",id:b,children:N}),i&&(0,q.jsx)("div",{className:"k-actionsheet-actions",children:i})]}),(c||r)&&(0,q.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?(0,q.jsx)(F,{value:p,placeholder:u,size:f?"large":"medium","aria-label":t||u||"Input"}):(0,q.jsx)(ve,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};oe.className=nn;oe.defaultOptions=ar;var Ze=require("react/jsx-runtime"),wo="k-actionsheet-view",sr=[],rr={},lr={},je=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:r,titleId:c,...p}=e,u=(i==null?void 0:i.type)===oe&&(0,Ze.jsx)(oe,{adaptive:t,titleId:c,...i==null?void 0:i.props}),f=(r==null?void 0:r.type)===Ye&&(0,Ze.jsx)(Ye,{...r==null?void 0:r.props});return(0,Ze.jsxs)("div",{...p,className:s(e.className,wo,{[`${wo}-animated`]:o}),children:[u,(0,Ze.jsx)("div",{className:"k-actionsheet-content",children:n}),f]})};je.states=sr;je.options=rr;je.className=wo;je.defaultOptions=lr;var Lt="action-sheet",Ft=Lt;var Do="overlay",an=Do;var rn=require("react/jsx-runtime"),sn="k-overlay",cr=[],pr={},dr={},Le=e=>{let{...t}=e;return(0,rn.jsx)("div",{...t,className:s(e.className,sn),children:e.children})};Le.states=cr;Le.options=pr;Le.className=sn;Le.defaultOptions=dr;Le.moduleName=Do;Le.folderName=an;var Ee=require("react/jsx-runtime"),ln="k-actionsheet",mr=[],ur={},At={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},w=e=>{let{side:t=At.side,fullscreen:o=At.fullscreen,adaptive:n=At.adaptive,overlay:i=At.overlay,template:r,children:c,header:p,footer:u,id:f,...b}=e,N=f&&!r&&p?`${f}-title`:void 0;return(0,Ee.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,Ee.jsx)(Le,{}),(0,Ee.jsx)(se,{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,Ee.jsx)("div",{...b,id:f,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":N,className:s(e.className,ln,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:r||(0,Ee.jsx)(je,{header:p,footer:u,adaptive:n,titleId:N,...e,children:c})})})]})};w.states=mr;w.options=ur;w.className=ln;w.defaultOptions=At;w.moduleName=Lt;w.folderName=Ft;w.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 pn=require("react/jsx-runtime"),cn="k-actionsheet-container",fr=[],hr={},br={},et=e=>{let{children:t,...o}=e;return(0,pn.jsx)("div",{...o,className:cn,children:t})};et.states=fr;et.options=hr;et.className=cn;et.defaultOptions=br;et.moduleName=Lt;et.folderName=Ft;var dn=require("react/jsx-runtime"),zo=e=>{let{...t}=e;return(0,dn.jsx)("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};var W=require("react/jsx-runtime"),Bo="k-actionsheet-item",xr=[a.hover,a.focus,a.selected,a.disabled],Ae=e=>{let{iconName:t,text:o,description:n,hover:i,focus:r,selected:c,disabled:p,...u}=e;return(0,W.jsxs)("span",{...u,className:s(e.className,Bo,E(Bo,{hover:i,focus:r,selected:c,disabled:p})),children:[!e.children&&(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,W.jsx)("span",{className:"k-icon-wrap",children:(0,W.jsx)(x,{className:"k-actionsheet-item-icon",icon:t})}),(0,W.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,W.jsx)("span",{className:"k-actionsheet-item-title",children:o}),n&&(0,W.jsx)("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Ae.states=xr;Ae.className=Bo;var mn=require("react/jsx-runtime");var Nr=require("react/jsx-runtime");var vr=require("react/jsx-runtime");var Lr=require("react/jsx-runtime");var S=require("react/jsx-runtime"),Ar=w.options,Cr=w.states,fn={...w.defaultOptions,variant:"normal"},gr=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],kr=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],tt=e=>{let{variant:t,modifiers:o,...n}={...fn,...e},i={},r=(0,S.jsxs)(zo,{children:[(0,S.jsx)(Ae,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,S.jsx)(Ae,{text:"Add to Favorites",iconName:"heart"}),(0,S.jsx)(Ae,{text:"Upload New",iconName:"upload",disabled:!0}),(0,S.jsx)("hr",{className:"k-hr"}),(0,S.jsx)(Ae,{text:"Cancel",iconName:"cancel"})]}),c="Choose from the items below",p="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":i.actionsStart=!!(o!=null&&o[u]),i.actionsEnd=!!(o!=null&&o[u]);break;case"subtitle":i.subtitle=o!=null&&o[u]?c:void 0;break;case"footer":i.footer=!!(o!=null&&o[u]);break;default:break}}),t==="adaptive"?(0,S.jsx)(w,{...n,adaptive:!0,fullscreen:i.fullScreen,header:(0,S.jsx)(oe,{actionsStart:i.actionsStart?(0,S.jsx)(A,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?(0,S.jsx)(A,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:p,subtitle:i.subtitle}),footer:i.footer?(0,S.jsxs)(Ye,{alignment:"stretched",children:[(0,S.jsx)(A,{text:"Cancel",size:"large",themeColor:"base"}),(0,S.jsx)(A,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):(0,S.jsx)(w,{...n,fullscreen:i.fullScreen,header:(0,S.jsx)(oe,{actionsStart:i.actionsStart?(0,S.jsx)(A,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?(0,S.jsx)(A,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?(0,S.jsxs)(Ye,{alignment:"stretched",children:[(0,S.jsx)(A,{text:"Apply",themeColor:"primary"}),(0,S.jsx)(A,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};tt.options=Ar;tt.states=Cr;tt.variants=gr;tt.defaultOptions=fn;tt.modifiers=kr;tt.className=w.className;var Uo="multiselect",hn=Uo;var v=require("react/jsx-runtime"),bn="k-multiselect",Ir=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Sr={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},xn={separators:!0},Ce=e=>{let{size:t,rounded:o,fillMode:n,separators:i=xn.separators,prefix:r,suffix:c,value:p,placeholder:u,tags:f,popup:b,showArrowButton:N,hover:L,focus:g,valid:T,invalid:y,required:M,loading:O,disabled:P,readonly:fe,opened:he,adaptive:ot,adaptiveSettings:it,adaptiveTitle:nt,adaptiveSubtitle:vn,adaptiveCustomValue:Ln,id:Ct,activeDescendant:Vo,"aria-label":An,...Cn}=e,gn=Ct?`${Ct}-listbox`:void 0,Fo=Ct?`${Ct}-taglist`:void 0;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(R,{...Cn,size:t,rounded:o,fillMode:n,hover:L,focus:g,valid:T,invalid:y,required:M,loading:O,disabled:P,readonly:fe,className:s(e.className,bn),children:[r&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Ve,{children:r}),i&&(0,v.jsx)(ce,{})]}),(0,v.jsxs)("div",{className:"k-input-values",children:[(0,v.jsx)(_,{size:t,id:Fo,children:(0,v.jsx)(v.Fragment,{children:f})}),(0,v.jsx)(ee,{placeholder:u,value:p,role:"combobox","aria-haspopup":"listbox","aria-expanded":he?"true":"false","aria-controls":he?gn:void 0,"aria-activedescendant":he&&Vo?Vo:void 0,"aria-autocomplete":"list","aria-describedby":f?Fo:void 0,"aria-invalid":y?"true":void 0,"aria-busy":O?"true":void 0,"aria-label":An,disabled:P,readOnly:fe})]}),(0,v.jsx)(te,{valid:T,invalid:y,loading:O,disabled:P}),(0,v.jsx)(ae,{loading:O,disabled:P}),(0,v.jsx)(j,{loading:O,disabled:P,readonly:fe,value:f?"value":""}),c&&(0,v.jsxs)(v.Fragment,{children:[i&&(0,v.jsx)(ce,{}),(0,v.jsx)(Fe,{children:c})]}),N&&(0,v.jsx)(A,{className:"k-input-button",icon:"chevron-down",size:t,fillMode:n,"aria-label":"Toggle dropdown",tabIndex:-1})]}),he&&b&&(0,v.jsx)(ue,{className:"k-list-container k-multiselect-popup",containerRole:"region",containerAriaLabel:"MultiSelect suggestions",children:b}),ot&&(0,v.jsx)(w,{adaptive:!0,...it,header:(0,v.jsx)(oe,{actionsEnd:(0,v.jsx)(A,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputVa