UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 50.7 kB
var la=Object.create;var xt=Object.defineProperty;var ca=Object.getOwnPropertyDescriptor;var da=Object.getOwnPropertyNames;var pa=Object.getPrototypeOf,ma=Object.prototype.hasOwnProperty;var ua=(e,t)=>{for(var o in t)xt(e,o,{get:t[o],enumerable:!0})},go=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of da(t))!ma.call(e,n)&&n!==o&&xt(e,n,{get:()=>t[n],enumerable:!(a=ca(t,n))||a.enumerable});return e};var bt=(e,t,o)=>(o=e!=null?la(pa(e)):{},go(t||!e||!e.__esModule?xt(o,"default",{value:e,enumerable:!0}):o,e)),fa=e=>go(xt({},"__esModule",{value:!0}),e);var as={};ua(as,{MultiSelectTreePopup:()=>ns});module.exports=fa(as);var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...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 T=(e,t)=>r({[`${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,t)=>{let{valid:o,invalid:a,hover:n,focus:l,checked:d,active:c,selected:u,disabled:x,indeterminate:N,loading:C,empty:A,readonly:g,highlighted:w,...S}=t;return r({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":l,"k-checked":d,"k-active":c,"k-selected":u,"k-disabled":x,"k-indeterminate":N&&!d,"k-loading":C,"k-empty":A,"k-readonly":g,"k-highlighted":w},Object.keys(S).reduce((I,K)=>(K.startsWith("k-")?I[K]=S[K]:I[`k-${K}`]=S[K],I),{}))};function Mo(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},h={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},ae={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"},i={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 Bt={};function J(e){return Bt[e]=(Bt[e]||0)+1,`k-${e}-${Bt[e]}`}var Te="checkbox",Me=Te;var Ft=require("react/jsx-runtime"),vt="k-checkbox",ha=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],xa={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},ba={},X=e=>{let{id:t,checked:o,indeterminate:a,hover:n,focus:l,disabled:d,invalid:c,valid:u,required:x,size:N,rounded:C,wrapperRole:A,...g}=e;return(0,Ft.jsx)("span",{className:"k-checkbox-wrap",role:A,children:(0,Ft.jsx)("input",{...g,id:t,type:"checkbox",defaultChecked:o,required:x,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:r(e.className,vt,T(vt,{size:N,rounded:C}),_(vt,{hover:n,focus:l,disabled:d,invalid:c,valid:u,indeterminate:a,checked:o}))})})};X.states=ha;X.options=xa;X.className=vt;X.defaultOptions=ba;X.moduleName=Te;X.folderName=Me;X.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 ee=X;var Oo=require("react/jsx-runtime"),wo="k-checkbox-list",va=[],Na={},Lo={layout:"vertical"},F=e=>{let{layout:t=Lo.layout,...o}=e;return(0,Oo.jsx)("ul",{...o,className:r(e.className,wo,{[`k-list-${t}`]:t}),children:e.children})};F.states=va;F.options=Na;F.className=wo;F.defaultOptions=Lo;F.moduleName=Te;F.folderName=Me;var Ko=require("react/jsx-runtime"),Ro="k-checkbox-list-item",Ca=[],ka={},Aa={},U=e=>{let{...t}=e;return(0,Ko.jsx)("li",{...t,className:r(e.className,Ro),children:e.children})};U.states=Ca;U.options=ka;U.className=Ro;U.defaultOptions=Aa;U.moduleName=Te;U.folderName=Me;var Ie=require("react/jsx-runtime"),le=({children:e="Label",id:t="cb-label-after",...o})=>(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(ee,{id:t,...o}),(0,Ie.jsx)("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});var Ut=require("react/jsx-runtime");var Vt=require("react/jsx-runtime");var Gt=require("react/jsx-runtime");var Ta=require("react/jsx-runtime");var Ia=require("react/jsx-runtime");var Ea=require("react/jsx-runtime");var z=require("react/jsx-runtime"),Sa=F.options,ya=F.states,ga={...F.defaultOptions,variant:"vertical"},Ma=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],wa=[],we=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,z.jsxs)(F,{layout:"horizontal",...o,children:[(0,z.jsx)(U,{children:(0,z.jsx)(le,{id:J("cb"),defaultChecked:!0,children:"Label"})}),(0,z.jsx)(U,{children:(0,z.jsx)(le,{id:J("cb"),children:"Label"})}),(0,z.jsx)(U,{children:(0,z.jsx)(le,{id:J("cb"),children:"Label"})})]}):(0,z.jsxs)(F,{...o,children:[(0,z.jsx)(U,{children:(0,z.jsx)(le,{id:J("cb"),defaultChecked:!0,children:"Label"})}),(0,z.jsx)(U,{children:(0,z.jsx)(le,{id:J("cb"),children:"Label"})}),(0,z.jsx)(U,{children:(0,z.jsx)(le,{id:J("cb"),children:"Label"})})]})};we.options=Sa;we.states=ya;we.variants=Ma;we.defaultOptions=ga;we.modifiers=wa;we.className=F.className;var _o=require("react/jsx-runtime"),La=ee.options,Oa=ee.states,Ra=ee.defaultOptions,Ka=[],_a=[],Le=e=>(0,_o.jsx)(le,{id:J("checkbox"),...e,defaultChecked:!0,children:"Label"});Le.options=La;Le.states=Oa;Le.variants=Ka;Le.defaultOptions=Ra;Le.modifiers=_a;Le.className=ee.className;var kt=bt(require("react"));var Nt=bt(require("react"));var Po=require("react/jsx-runtime"),Pa="k-treeview-group",D=e=>{let{children:t,dir:o,level:a=1,role:n="group",...l}=e;return(0,Po.jsx)("ul",{...l,className:r(e.className,Pa),role:n,children:Nt.default.Children.map(t,(d,c)=>Nt.default.isValidElement(d)?Nt.default.cloneElement(d,{dir:o,level:a,key:c}):d)})};var Ze="treeview",Ct=Ze;var $t=require("react/jsx-runtime"),Xt="k-treeview",Ha=[],za={size:[s.undefined,s.small,s.medium,s.large]},Da={},E=e=>{let{size:t,children:o,dir:a,...n}=e;return(0,$t.jsx)("div",{...n,dir:a,className:r(e.className,Xt,T(Xt,{size:t})),children:(0,$t.jsx)(D,{className:"k-treeview-lines",role:"tree",dir:a,children:kt.default.Children.map(o,(l,d)=>kt.default.isValidElement(l)?kt.default.cloneElement(l,{dir:a,key:d}):l)})})};E.states=Ha;E.options=za;E.className=Xt;E.defaultOptions=Da;E.moduleName=Ze;E.folderName=Ct;E.ariaSpec={selector:".k-treeview",rules:[{selector:".k-treeview-lines",attribute:"role=tree",usage:"The root list element of the treeview."},{selector:".k-treeview-group:not(.k-treeview-lines)",attribute:"role=group",usage:"The ul element that wraps child nodes."},{selector:".k-treeview-item",attribute:"role=treeitem",usage:"The li element rendered for a tree node."},{selector:".k-treeview-item",attribute:"aria-expanded=true/false (when present)",usage:"Announces the expanded state of the node."},{selector:".k-treeview-item",attribute:"aria-checked=true/false (when present)",usage:"Announces the checked state of the node when checkboxes are enabled."},{selector:".k-treeview-item",attribute:"aria-selected=true (when present)",usage:"Announces the selected state of the node when selection is enabled."},{selector:".k-treeview-item .k-checkbox",attribute:"aria-label",usage:"The checkbox input must have an accessible name matching the treeview item text."},{selector:".k-treeview-item .k-checkbox",attribute:"tabindex=-1",usage:"The checkbox input must not be in the tab order. Keyboard interaction is handled by the treeitem."}]};var Et=bt(require("react"));var je=require("react/jsx-runtime"),Wt="k-font-icon",Ba=[],Fa={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info]},Ua={},et=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:l,...d}=e;return a?(0,je.jsx)("span",{...d,className:r(e.className,Wt,T(Wt,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):(0,je.jsx)(je.Fragment,{})};et.states=Ba;et.options=Fa;et.className=Wt;et.defaultOptions=Ua;var Ho=et;var Ee=require("react/jsx-runtime"),qt="k-svg-icon",Va=[],Ga={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info],variant:[ae.outline,ae.solid,ae.duotone]},Jt={viewBox:"0 0 24 24",variant:ae.outline},tt=e=>{var C,A;let{size:t,themeColor:o,rotate:a,flip:n,viewBox:l=Jt.viewBox,variant:d=Jt.variant,icon:c,...u}=e;if(!c)return(0,Ee.jsx)(Ee.Fragment,{});if(c==="none")return(0,Ee.jsx)("span",{...u,className:r(e.className,qt,T("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,N=typeof c=="object"?d&&((C=c.variants)==null?void 0:C[d])||((A=c.variants)==null?void 0:A.outline)||c.content:void 0;return(0,Ee.jsx)("span",{...u,className:r(e.className,qt,T("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`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,Ee.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:N!==void 0?{__html:N}:void 0,children:c?void 0:e.children})})};tt.states=Va;tt.options=Ga;tt.className=qt;tt.defaultOptions=Jt;var Yt=tt;var Qt=bt(require("@progress/kendo-svg-icons"));var zo="icon",Do="icons";var Uo=require("react");var Bo=require("react"),Fo=(0,Bo.createContext)({iconsType:"svg"});var ce=require("react/jsx-runtime"),At="k-icon",Xa=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),$a=[],Wa={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info],variant:[ae.outline,ae.solid,ae.duotone]},Tt={viewBox:"0 0 24 24",type:"svg",variant:ae.outline},b=e=>{let{iconsType:t}=(0,Uo.useContext)(Fo),{size:o,themeColor:a,icon:n,type:l=t||Tt.type,rotate:d,flip:c,viewBox:u=Tt.viewBox,variant:x=Tt.variant,...N}=e;if(!n)return(0,ce.jsx)(ce.Fragment,{});if((t||l)==="svg"){if(n==="none")return(0,ce.jsx)(Yt,{...N,className:r(e.className,At),icon:n,size:o,variant:x});let A=Qt[n]?n:Xa(`${n}-icon`);return Qt[A]?(0,ce.jsx)(Yt,{...N,className:r(e.className,At),icon:Qt[A],size:o,themeColor:a,rotate:d,flip:c,viewBox:u,variant:x}):(0,ce.jsx)(ce.Fragment,{})}return(0,ce.jsx)(Ho,{...N,className:r(e.className,At),icon:n,size:o,themeColor:a,rotate:d,flip:c})};b.states=$a;b.options=Wa;b.defaultOptions=Tt;b.className=At;b.moduleName=zo;b.folderName=Do;b.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 ot=require("react/jsx-runtime"),Zt="k-treeview-leaf",qa=[i.hover,i.focus,i.selected],Ja={},It=e=>{let{text:t,showIcon:o,icon:a,hover:n,focus:l,selected:d,...c}=e;return(0,ot.jsxs)("span",{...c,className:r(e.className,Zt,_(Zt,{hover:n,focus:l,selected:d})),children:[o&&(0,ot.jsx)(b,{icon:a}),(0,ot.jsx)("span",{className:"k-treeview-leaf-text",children:t})]})};It.states=qa;It.options=Ja;It.className=Zt;var Vo=It;var de=require("react/jsx-runtime"),Go="k-treeview-item",Ya=[i.hover,i.focus,i.selected,i.disabled],Qa={},Za={},f=e=>{let{leafClassName:t,children:o,hasChildren:a,expanded:n,loading:l,text:d,showIcon:c,icon:u,showCheckbox:x,checked:N,hover:C,focus:A,selected:g,disabled:w,dir:S,level:I=1,ariaSelected:K,...H}=e,j=a||o||l;return(0,de.jsxs)("li",{...H,className:r(e.className,Go),style:{"--kendo-treeview-level":I},role:"treeitem","aria-expanded":j?n?"true":"false":void 0,"aria-checked":x?N?"true":"false":void 0,"aria-selected":K?"true":void 0,"aria-disabled":w?"true":void 0,children:[(0,de.jsxs)("span",{className:r("k-treeview-item-content",_("k-treeview-item-content",{hover:C,focus:A,selected:g,disabled:w})),children:[j&&(0,de.jsx)("span",{className:r("k-treeview-toggle",_("k-treeview-toggle",{disabled:w})),children:l?(0,de.jsx)("span",{className:"k-icon k-i-loading"}):(0,de.jsx)(b,{icon:n?"chevron-down":S==="rtl"?"chevron-left":"chevron-right"})}),x&&(0,de.jsx)(X,{checked:N,disabled:w,"aria-label":d,tabIndex:-1}),(0,de.jsx)(Vo,{className:t,text:d,showIcon:c,icon:u})]}),n&&j&&Et.default.Children.map(o,(se,Ae)=>Et.default.isValidElement(se)?Et.default.cloneElement(se,{dir:S,level:I+1,key:Ae}):se)]})};f.states=Ya;f.options=Qa;f.className=Go;f.defaultOptions=Za;f.moduleName=Ze;f.folderName=Ct;var ja=require("react/jsx-runtime");var Xo=require("react/jsx-runtime");var $o=require("react/jsx-runtime");var Wo=require("react/jsx-runtime");var qo=require("react/jsx-runtime");var Jo=require("react/jsx-runtime");var Y=require("react/jsx-runtime"),ei=E.options,ti=E.states,oi=E.defaultOptions,ni=[{name:"checkboxes",title:"Show `Checkbox`",default:!1}],ai=[],Oe=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{n==="checkboxes"&&(a.showCheckbox=t==null?void 0:t[n])}),(0,Y.jsxs)(E,{...o,children:[(0,Y.jsx)(f,{text:"Furniture",expanded:!0,...a,children:(0,Y.jsxs)(D,{children:[(0,Y.jsx)(f,{text:"Tables & Chairs",...a}),(0,Y.jsx)(f,{text:"Sofas",...a}),(0,Y.jsx)(f,{text:"Occasional Furniture",...a})]})}),(0,Y.jsxs)(f,{text:"Decor",expanded:!1,...a,children:[(0,Y.jsx)(f,{text:"Bed Linen",...a}),(0,Y.jsx)(f,{text:"Curtains & Blinds",...a}),(0,Y.jsx)(f,{text:"Carpets",...a})]})]})};Oe.options=ei;Oe.states=ti;Oe.variants=ai;Oe.defaultOptions=oi;Oe.modifiers=ni;Oe.className=E.className;var nt="input",St=nt;var Yo=require("react/jsx-runtime"),yt="k-input",ii=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],ri={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},si={},L=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:l,loading:d,readonly:c,size:u,rounded:x,fillMode:N,...C}=e;return(0,Yo.jsx)("span",{...C,className:r(e.className,yt,T(yt,{size:u,rounded:x,fillMode:N}),_(yt,{hover:t,focus:o,disabled:a,invalid:n,valid:l,loading:d,readonly:c}))})};L.states=ii;L.options=ri;L.className=yt;L.defaultOptions=si;L.moduleName=nt;L.folderName=St;var Qo=require("react/jsx-runtime"),gt="k-picker",li=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],ci={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},di={},Re=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:l,loading:d,readonly:c,size:u,rounded:x,fillMode:N,...C}=e;return(0,Qo.jsx)("span",{...C,className:r(e.className,gt,T(gt,{size:u,rounded:x,fillMode:N}),_(gt,{hover:t,focus:o,disabled:a,invalid:n,valid:l,loading:d,readonly:c})),children:e.children})};Re.states=li;Re.options=ci;Re.className=gt;Re.defaultOptions=di;Re.moduleName=nt;Re.folderName=St;var Ke=require("react/jsx-runtime"),Zo="k-clear-value",pi=[i.disabled,i.loading,i.readonly],mi={},te=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?(0,Ke.jsx)(Ke.Fragment,{}):(0,Ke.jsx)("span",{className:r(e.className,Zo),children:(0,Ke.jsx)(b,{icon:"x"})})};te.states=pi;te.options=mi;te.className=Zo;var jo=require("react/jsx-runtime"),jt="k-input-inner",ui=[],fi={},Mt={type:"text",autocomplete:"off",value:"",placeholder:""},pe=e=>{let{value:t=Mt.value,type:o=Mt.type,placeholder:a=Mt.placeholder,autocomplete:n=Mt.autocomplete,disabled:l,readOnly:d,...c}=e;return(0,jo.jsx)("input",{...c,type:o,className:r(e.className,jt,T(jt,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:l||void 0,readOnly:d||void 0})};pe.states=ui;pe.options=fi;pe.className=jt;var at=require("react/jsx-runtime"),eo="k-input-inner",hi=[],xi={},to=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:l,...d}=e;return(0,at.jsxs)("span",{...d,className:r(e.className,eo,T(eo,e)),children:[n,!n&&l&&(0,at.jsx)(b,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&(0,at.jsx)("span",{className:"k-input-value-text",children:t})]})};to.states=hi;to.options=xi;to.className=eo;var tn=require("react/jsx-runtime"),oo="k-input-inner",bi=[],vi={},en={value:"",placeholder:""},no=e=>{let{value:t=en.value,placeholder:o=en.placeholder,rows:a,disabled:n,...l}=e;return(0,tn.jsx)("textarea",{...l,className:r(e.className,oo,T(oo,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};no.states=bi;no.options=vi;no.className=oo;var it=require("react/jsx-runtime"),on="k-input-loading-icon",Ni=[i.disabled,i.loading],ie=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,it.jsx)(it.Fragment,{}):(0,it.jsx)("span",{className:r(e.className,on,"k-icon k-i-loading")})};ie.states=Ni;ie.className=on;var rt=require("react/jsx-runtime"),nn="k-input-validation-icon",Ci=[i.valid,i.invalid,i.disabled,i.loading],ki={},oe=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,l=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?(0,rt.jsx)(rt.Fragment,{}):(0,rt.jsx)(b,{className:r(nn),icon:l})};oe.states=Ci;oe.options=ki;oe.className=nn;var st=require("react/jsx-runtime"),Ai="k-input-prefix",Ti={direction:"horizontal"},_e=e=>{let{direction:t=Ti.direction,...o}=e;return e.children?(0,st.jsx)("span",{...o,className:r(Ai,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,st.jsx)(st.Fragment,{})};var lt=require("react/jsx-runtime"),Ii="k-input-suffix",Ei={direction:"horizontal"},Pe=e=>{let{direction:t=Ei.direction,...o}=e;return e.children?(0,lt.jsx)("span",{...o,className:r(Ii,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,lt.jsx)(lt.Fragment,{})};var Si=require("react/jsx-runtime");var yi=require("react/jsx-runtime");var rn=require("react/jsx-runtime"),an="k-input-separator",gi={direction:"vertical"},He=e=>{let{direction:t=gi.direction,...o}=e;return(0,rn.jsx)("span",{...o,className:r(an,e.className,{[`${an}-${t}`]:t})})};var ao="button",sn=ao;var W=require("react/jsx-runtime"),ct="k-button",Mi=["icon-button"],wi=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Li={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.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]},io={showArrow:!1,arrowIconName:"chevron-down"},k=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:l,showArrow:d=io.showArrow,arrowIconName:c=io.arrowIconName,variant:u,hover:x,focus:N,active:C,selected:A,disabled:g,togglable:w,ariaDisabled:S,icon:I,iconSize:K,text:H,iconClassName:j,className:se,...Ae}=e,Ye=I!=null,Qe=e.children!==void 0;return(0,W.jsxs)(t,{className:r(se,ct,Mo(ct,u),T(ct,{size:o,rounded:a,fillMode:n,themeColor:l}),_(ct,{hover:x,focus:N,active:C,disabled:g||S,selected:A}),{"k-icon-button":!H&&!Qe&&Ye}),"aria-pressed":w?A?"true":"false":void 0,...Ae,"aria-disabled":S?"true":void 0,disabled:g||void 0,children:[typeof I=="string"&&I&&(0,W.jsx)(b,{className:r(j,"k-button-icon"),icon:I,size:K}),I&&typeof I!="string"&&(0,W.jsx)(W.Fragment,{children:I}),H?(0,W.jsxs)(W.Fragment,{children:[H&&(0,W.jsx)("span",{className:"k-button-text",children:H}),e.children]}):e.children&&(0,W.jsx)("span",{className:"k-button-text",children:e.children}),d&&(0,W.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,W.jsx)(b,{icon:c})})]})};k.states=wi;k.options=Li;k.variants=Mi;k.className=ct;k.defaultOptions=io;k.moduleName=ao;k.folderName=sn;k.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 ln=require("react/jsx-runtime"),Se=e=>(0,ln.jsx)(k,{children:"Button",...e});var O=require("react/jsx-runtime"),Oi=L.states,Ri=L.defaultOptions,Ki=L.options,_i=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Pi=[],ze=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:l,readonly:d,...c}=e,u=t==null?void 0:t.prefix,x=t==null?void 0:t.suffix,N=t==null?void 0:t["clear-button"],C=t==null?void 0:t["validation-icon"],A=t==null?void 0:t.separators;return(0,O.jsxs)(L,{...c,valid:o,invalid:a,loading:n,disabled:l,readonly:d,style:{width:300},children:[u&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(_e,{children:(0,O.jsx)(b,{icon:"lock"})}),A&&(0,O.jsx)(He,{})]}),(0,O.jsx)(pe,{placeholder:"Placeholder",value:"Value"}),C&&(0,O.jsx)(oe,{valid:o,invalid:a,loading:n,disabled:l}),(0,O.jsx)(ie,{loading:n,disabled:l}),N&&(0,O.jsx)(te,{loading:n,disabled:l,readonly:d,value:"Value"}),x&&(0,O.jsxs)(O.Fragment,{children:[A&&(0,O.jsx)(He,{}),(0,O.jsx)(Pe,{children:(0,O.jsx)(Se,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};ze.options=Ki;ze.states=Oi;ze.variants=Pi;ze.defaultOptions=Ri;ze.modifiers=_i;ze.className=L.className;var dn=require("react/jsx-runtime"),cn=e=>(0,dn.jsx)(k,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var mn=require("react/jsx-runtime"),pn=e=>(0,mn.jsx)(k,{icon:"folder",children:"Button",...e});var wt=require("react/jsx-runtime"),Hi=k.options,zi=k.states,Di={...k.defaultOptions,variant:"text"},Bi=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Fi=[],De=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,wt.jsx)(cn,{...o,icon:"star"});case"icon-and-text":return(0,wt.jsx)(pn,{...o,icon:"star",children:"Button"});default:return(0,wt.jsx)(Se,{...o,children:"Button"})}};De.options=Hi;De.states=zi;De.variants=Bi;De.defaultOptions=Di;De.modifiers=Fi;De.className=k.className;var dt=require("react/jsx-runtime"),Ui="k-chip-action";var me=e=>{let{type:t,...o}=e,a;switch(t){case"remove":a=(0,dt.jsx)(b,{icon:"x-circle",size:"small"});break;case"more":a=(0,dt.jsx)(b,{icon:"more-vertical",size:"small"});break;default:return(0,dt.jsx)(b,{icon:t,size:"small"})}return(0,dt.jsx)("span",{...o,className:r(e.className,Ui,`k-chip-${t}-action`),children:a})};var ro="avatar",un=ro;var lo=require("react/jsx-runtime"),pt="k-avatar";var Vi=[i.hover,i.focus,i.active,i.selected,i.disabled],Gi={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary]},so={type:"text",border:!1},V=e=>{let{size:t,rounded:o,fillMode:a,themeColor:n,type:l=so.type,border:d=so.border,...c}=e;return(0,lo.jsx)("div",{...c,className:r(e.className,pt,T(pt,{size:t,rounded:o,fillMode:a,themeColor:n}),{[`${pt}-bordered`]:d}),children:(0,lo.jsx)("span",{className:`${pt}-${l}`,children:e.children})})};V.states=Vi;V.options=Gi;V.className=pt;V.defaultOptions=so;V.moduleName=ro;V.folderName=un;V.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var ye=V;var hn=require("react/jsx-runtime"),fn=e=>(0,hn.jsx)(ye,{type:"icon",...e});var bn=require("react/jsx-runtime"),xn=e=>(0,bn.jsx)(ye,{type:"text",...e});var Nn=require("react/jsx-runtime"),vn=e=>(0,Nn.jsx)(ye,{type:"image",...e});var Xi=require("react/jsx-runtime");var Be=require("react/jsx-runtime"),$i=V.options,Wi=V.states,qi={...V.defaultOptions,variant:"image"},Ji=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Yi=[],Fe=e=>{let{variant:t,...o}=e;switch(t){case"icon":return(0,Be.jsx)(fn,{...o,children:(0,Be.jsx)(b,{icon:"star"})});case"text":return(0,Be.jsx)(xn,{...o,children:"JO"});default:return(0,Be.jsx)(vn,{...o,children:(0,Be.jsx)("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Fe.options=$i;Fe.states=Wi;Fe.variants=Ji;Fe.defaultOptions=qi;Fe.modifiers=Yi;Fe.className=V.className;var mt="chip",Lt=mt,Ot="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";var ue=require("react/jsx-runtime"),Rt="k-chip",Qi=[i.hover,i.focus,i.active,i.selected,i.disabled],Zi={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[m.undefined,m.base,m.success,m.warning,m.error,m.info]},Cn={avatarImage:"/packages/html/assets/avatar.jpg"},$=e=>{let{size:t,rounded:o,fillMode:a,themeColor:n,text:l,icon:d,actions:c,showAvatar:u,avatarImage:x=Cn.avatarImage,hover:N,focus:C,active:A,selected:g,disabled:w,...S}=e;return(0,ue.jsxs)("div",{...S,className:r(e.className,Rt,T(Rt,{size:t,rounded:o,fillMode:a,themeColor:n}),_(Rt,{hover:N,focus:C,active:A,disabled:w,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":w?"true":void 0,children:[d&&(0,ue.jsx)(b,{className:"k-chip-icon",icon:d,size:"small"}),u&&(0,ue.jsx)(V,{className:"k-chip-avatar",type:"image",children:(0,ue.jsx)("img",{src:x,alt:""})}),(0,ue.jsx)("span",{className:"k-chip-content",children:e.children?e.children:l&&(0,ue.jsx)("span",{className:"k-chip-label",children:l})}),c&&(0,ue.jsx)("span",{className:"k-chip-actions",children:c})]})};$.states=Qi;$.options=Zi;$.className=Rt;$.defaultOptions=Cn;$.moduleName=mt;$.folderName=Lt;$.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 Q=$;var kn=require("react/jsx-runtime"),co="k-chip-list",ji=[],er={size:[s.undefined,s.small,s.medium,s.large]},tr={},R=e=>{let{size:t,multiselectable:o,ariaLabel:a,...n}=e;return(0,kn.jsx)("div",{...n,className:r(e.className,co,T(co,{size:t})),role:e.role||"listbox","aria-label":e.role==="none"?void 0:a||"chip list","aria-orientation":e.role==="none"?void 0:"horizontal","aria-multiselectable":o?"true":void 0,children:e.children})};R.states=ji;R.options=er;R.className=co;R.defaultOptions=tr;R.moduleName=mt;R.folderName=Lt;R.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 or=require("react/jsx-runtime");var nr=require("react/jsx-runtime");var An=require("react/jsx-runtime"),Kt=e=>(0,An.jsx)(Q,{text:"text",...e});var ar=require("react/jsx-runtime");var ir=require("react/jsx-runtime");var po=require("react/jsx-runtime");var Tn=require("react/jsx-runtime");var In=require("react/jsx-runtime");var En=require("react/jsx-runtime");var fe=require("react/jsx-runtime"),rr={...Q.options,...R.options},sr=[],lr=R.states,cr={...Q.defaultOptions,...R.defaultOptions},dr=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],Ue=e=>{let{modifiers:t,className:o,...a}=e,n=t==null?void 0:t.icon,l=t==null?void 0:t.actions,d=t==null?void 0:t.avatar,c=d?Ot:void 0;return(0,fe.jsxs)(R,{size:a.size,className:o,children:[(0,fe.jsx)(Kt,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:n?"star":void 0,actions:l?(0,fe.jsx)(me,{type:"remove"}):void 0,showAvatar:d,avatarImage:c,children:"Chip"}),(0,fe.jsx)(Kt,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:n?"star":void 0,actions:l?(0,fe.jsx)(me,{type:"remove"}):void 0,showAvatar:d,avatarImage:c,children:"Chip"}),(0,fe.jsx)(Kt,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:n?"star":void 0,actions:l?(0,fe.jsx)(me,{type:"remove"}):void 0,showAvatar:d,avatarImage:c,children:"Chip"})]})};Ue.options=rr;Ue.states=lr;Ue.variants=sr;Ue.defaultOptions=cr;Ue.modifiers=dr;Ue.className=R.className;var _t=require("react/jsx-runtime"),pr=$.states,mr=$.defaultOptions,ur=$.options,fr=[],hr=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],Ve=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"icon":a.icon=t!=null&&t[n]?"arrow-down":void 0;break;case"avatar":a.showAvatar=!!(t!=null&&t[n]),a.avatarImage=t!=null&&t[n]?Ot:void 0;break;case"more-options":a.actions||(a.actions=[]),a.actions[0]=t!=null&&t[n]?(0,_t.jsx)(me,{type:"more"}):void 0;break;case"remove-icon":a.actions||(a.actions=[]),a.actions[1]=t!=null&&t[n]?(0,_t.jsx)(me,{type:"remove"}):void 0;break;default:break}}),(0,_t.jsx)($,{...o,...a,children:"Chip component"})};Ve.options=ur;Ve.states=pr;Ve.variants=fr;Ve.defaultOptions=mr;Ve.modifiers=hr;Ve.className=$.className;var mo="popup",Sn=mo;var fo=require("react/jsx-runtime"),yn="k-animation-container",xr=[],br={},uo={positionMode:"absolute",shown:!0},re=e=>{let{positionMode:t=uo.positionMode,shown:o=uo.shown,animationStyle:a,offset:n,...l}=e;return(0,fo.jsx)("div",{...l,style:{...n,...e.style},className:r(e.className,yn,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,fo.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};re.states=xr;re.options=br;re.className=yn;re.defaultOptions=uo;re.moduleName=mo;re.folderName=Sn;var ho="popup",gn=ho;var xo=require("react/jsx-runtime"),Mn="k-popup",vr=[],Nr={},wn={positionMode:"absolute"},he=e=>{let{offset:t,positionMode:o=wn.positionMode,animationStyle:a,containerClassName:n,containerRole:l,containerAriaLabel:d,...c}=e;return(0,xo.jsx)(re,{positionMode:o,offset:t,animationStyle:a,className:n,role:l,"aria-label":d,children:(0,xo.jsx)("div",{...c,className:r(e.className,Mn),children:e.children})})};he.states=vr;he.options=Nr;he.className=Mn;he.defaultOptions=wn;he.moduleName=ho;he.folderName=gn;he.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 bo="action-buttons",Ln=bo;var On=require("react/jsx-runtime"),Pt="k-actions",Cr=[],kr={},vo={alignment:"start",orientation:"horizontal"},xe=e=>{let{alignment:t=vo.alignment,orientation:o=vo.orientation,...a}=e;return(0,On.jsx)("div",{...a,className:r(Pt,{[`${Pt}-${t}`]:t,[`${Pt}-${o}`]:o},e.className),children:e.children})};xe.states=Cr;xe.options=kr;xe.className=Pt;xe.defaultOptions=vo;xe.moduleName=bo;xe.folderName=Ln;var Kn=require("react/jsx-runtime"),Ar="k-actionsheet-footer",Rn={alignment:"stretched",orientation:"horizontal"},Ge=e=>{let{alignment:t=Rn.alignment,orientation:o=Rn.orientation,template:a,as:n=a?"div":xe,...l}=e;return(0,Kn.jsx)(n,{...l,...!a&&{alignment:t,orientation:o},className:r(e.className,Ar),children:e.children})};var No="searchbox",_n=No;var be=require("react/jsx-runtime"),Pn="k-searchbox",Tr=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Ir={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Co={showIcon:!0,icon:"search"},ve=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:l,hover:d,focus:c,valid:u,invalid:x,required:N,loading:C,disabled:A,showIcon:g=Co.showIcon,icon:w=Co.icon,"aria-label":S,...I}=e;return(0,be.jsxs)(L,{...I,size:a,rounded:n,fillMode:l,hover:d,focus:c,valid:u,invalid:x,required:N,loading:C,disabled:A,className:r(e.className,Pn),children:[g&&(0,be.jsx)(b,{className:"k-input-icon",icon:w}),(0,be.jsx)(pe,{placeholder:o,value:t,"aria-label":S}),(0,be.jsx)(ie,{...e}),(0,be.jsx)(oe,{...e}),(0,be.jsx)(te,{...e})]})};ve.states=Tr;ve.options=Ir;ve.className=Pn;ve.defaultOptions=Co;ve.moduleName=No;ve.folderName=_n;var Er=require("react/jsx-runtime");var ko="textbox",Hn=ko;var B=require("react/jsx-runtime"),zn="k-textbox",Sr=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],yr={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Ht={showClearButton:!0,showValidationIcon:!0,separators:!0},G=e=>{let{size:t,rounded:o,fillMode:a,separators:n=Ht.separators,showClearButton:l=Ht.showClearButton,showValidationIcon:d=Ht.showValidationIcon,prefix:c,suffix:u,type:x,value:N,placeholder:C,hover:A,focus:g,valid:w,invalid:S,required:I,loading:K,disabled:H,readonly:j,id:se,"aria-label":Ae,"aria-describedby":Ye,...Qe}=e;return(0,B.jsxs)(L,{...Qe,size:t,rounded:o,fillMode:a,hover:A,focus:g,valid:w,invalid:S,required:I,loading:K,disabled:H,readonly:j,className:r(e.className,zn),children:[c&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(_e,{children:c}),n&&(0,B.jsx)(He,{})]}),(0,B.jsx)(pe,{id:se,placeholder:C,value:N,type:x,disabled:H,"aria-label":Ae,"aria-describedby":Ye,"aria-invalid":S?"true":void 0}),d&&(0,B.jsx)(oe,{valid:w,invalid:S,loading:K,disabled:H}),(0,B.jsx)(ie,{loading:K,disabled:H}),l&&(0,B.jsx)(te,{loading:K,disabled:H,readonly:j,value:N}),u&&(0,B.jsxs)(B.Fragment,{children:[n&&(0,B.jsx)(He,{}),(0,B.jsx)(Pe,{children:u})]})]})};G.states=Sr;G.options=yr;G.className=zn;G.defaultOptions=Ht;G.moduleName=ko;G.folderName=Hn;G.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 ut=G;var Bn=require("react/jsx-runtime"),Dn=e=>(0,Bn.jsx)(ut,{...e});var Fn=require("react/jsx-runtime");var Un=require("react/jsx-runtime");var gr=require("react/jsx-runtime");var zt=require("react/jsx-runtime"),Mr=G.states,wr=G.defaultOptions,Lr=G.options,Or=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Rr=[],Xe=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t!=null&&t[n]?(0,zt.jsx)(b,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[n]?(0,zt.jsx)(Se,{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,zt.jsx)(Dn,{value:"Value",style:{width:300},...o,...a})};Xe.options=Lr;Xe.states=Mr;Xe.variants=Rr;Xe.defaultOptions=wr;Xe.modifiers=Or;Xe.className=G.className;var q=require("react/jsx-runtime"),Vn="k-actionsheet-titlebar",Kr={},ne=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:l,input:d,inputValue:c,inputPlaceholder:u,adaptive:x,titleId:N,children:C,...A}=e;return(0,q.jsxs)("div",{...A,className:r(e.className,Vn),children:[(0,q.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,q.jsx)("div",{className:"k-actionsheet-actions",children:a}),!C&&(0,q.jsxs)("div",{className:"k-actionsheet-title",id:N,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})]}),C&&(0,q.jsx)("div",{className:"k-actionsheet-title",id:N,children:C}),n&&(0,q.jsx)("div",{className:"k-actionsheet-actions",children:n})]}),(d||l)&&(0,q.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?(0,q.jsx)(G,{value:c,placeholder:u,size:x?"large":"medium","aria-label":t||u||"Input"}):(0,q.jsx)(ve,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};ne.className=Vn;ne.defaultOptions=Kr;var $e=require("react/jsx-runtime"),Ao="k-actionsheet-view",_r=[],Pr={},Hr={},We=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:l,titleId:d,...c}=e,u=(n==null?void 0:n.type)===ne&&(0,$e.jsx)(ne,{adaptive:t,titleId:d,...n==null?void 0:n.props}),x=(l==null?void 0:l.type)===Ge&&(0,$e.jsx)(Ge,{...l==null?void 0:l.props});return(0,$e.jsxs)("div",{...c,className:r(e.className,Ao,{[`${Ao}-animated`]:o}),children:[u,(0,$e.jsx)("div",{className:"k-actionsheet-content",children:a}),x]})};We.states=_r;We.options=Pr;We.className=Ao;We.defaultOptions=Hr;var ft="action-sheet",Dt=ft;var To="overlay",Gn=To;var $n=require("react/jsx-runtime"),Xn="k-overlay",zr=[],Dr={},Br={},Ne=e=>{let{...t}=e;return(0,$n.jsx)("div",{...t,className:r(e.className,Xn),children:e.children})};Ne.states=zr;Ne.options=Dr;Ne.className=Xn;Ne.defaultOptions=Br;Ne.moduleName=To;Ne.folderName=Gn;var ge=require("react/jsx-runtime"),Wn="k-actionsheet",Fr=[],Ur={},ht={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},P=e=>{let{side:t=ht.side,fullscreen:o=ht.fullscreen,adaptive:a=ht.adaptive,overlay:n=ht.overlay,template:l,children:d,header:c,footer:u,id:x,...N}=e,C=x&&!l&&c?`${x}-title`:void 0;return(0,ge.jsxs)("div",{className:"k-actionsheet-container",children:[n&&(0,ge.jsx)(Ne,{}),(0,ge.jsx)(re,{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,ge.jsx)("div",{...N,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":C,className:r(e.className,Wn,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||(0,ge.jsx)(We,{header:c,footer:u,adaptive:a,titleId:C,...e,children:d})})})]})};P.states=Fr;P.options=Ur;P.className=Wn;P.defaultOptions=ht;P.moduleName=ft;P.folderName=Dt;P.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};var Jn=require("react/jsx-runtime"),qn="k-actionsheet-container",Vr=[],Gr={},Xr={},qe=e=>{let{children:t,...o}=e;return(0,Jn.jsx)("div",{...o,className:qn,children:t})};qe.states=Vr;qe.options=Gr;qe.className=qn;qe.defaultOptions=Xr;qe.moduleName=ft;qe.folderName=Dt;var Yn=require("react/jsx-runtime"),Io=e=>{let{...t}=e;return(0,Yn.jsx)("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};var Z=require("react/jsx-runtime"),Eo="k-actionsheet-item",$r=[i.hover,i.focus,i.selected,i.disabled],Ce=e=>{let{iconName:t,text:o,description:a,hover:n,focus:l,selected:d,disabled:c,...u}=e;return(0,Z.jsxs)("span",{...u,className:r(e.className,Eo,_(Eo,{hover:n,focus:l,selected:d,disabled:c})),children:[!e.children&&(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,Z.jsx)("span",{className:"k-icon-wrap",children:(0,Z.jsx)(b,{className:"k-actionsheet-item-icon",icon:t})}),(0,Z.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,Z.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,Z.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Ce.states=$r;Ce.className=Eo;var Qn=require("react/jsx-runtime");var Wr=require("react/jsx-runtime");var qr=require("react/jsx-runtime");var Jr=require("react/jsx-runtime");var y=require("react/jsx-runtime"),Yr=P.options,Qr=P.states,jn={...P.defaultOptions,variant:"normal"},Zr=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],jr=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Je=e=>{let{variant:t,modifiers:o,...a}={...jn,...e},n={},l=(0,y.jsxs)(Io,{children:[(0,y.jsx)(Ce,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,y.jsx)(Ce,{text:"Add to Favorites",iconName:"heart"}),(0,y.jsx)(Ce,{text:"Upload New",iconName:"upload",disabled:!0}),(0,y.jsx)("hr",{className:"k-hr"}),(0,y.jsx)(Ce,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":n.actionsStart=!!(o!=null&&o[u]),n.actionsEnd=!!(o!=null&&o[u]);break;case"subtitle":n.subtitle=o!=null&&o[u]?d:void 0;break;case"footer":n.footer=!!(o!=null&&o[u]);break;default:break}}),t==="adaptive"?(0,y.jsx)(P,{...a,adaptive:!0,fullscreen:n.fullScreen,header:(0,y.jsx)(ne,{actionsStart:n.actionsStart?(0,y.jsx)(k,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,y.jsx)(k,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?(0,y.jsxs)(Ge,{alignment:"stretched",children:[(0,y.jsx)(k,{text:"Cancel",size:"large",themeColor:"base"}),(0,y.jsx)(k,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):(0,y.jsx)(P,{...a,fullscreen:n.fullScreen,header:(0,y.jsx)(ne,{actionsStart:n.actionsStart?(0,y.jsx)(k,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,y.jsx)(k,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?(0,y.jsxs)(Ge,{alignment:"stretched",children:[(0,y.jsx)(k,{text:"Apply",themeColor:"primary"}),(0,y.jsx)(k,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};Je.options=Yr;Je.states=Qr;Je.variants=Zr;Je.defaultOptions=jn;Je.modifiers=jr;Je.className=P.className;var ea="dropdown-tree",ta="dropdowntree";var v=require("react/jsx-runtime"),oa="k-multiselecttree",es=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],ts={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},os={},ke=e=>{let{size:t,rounded:o,fillMode:a,prefix:n,suffix:l,placeholder:d,tags:c,popup:u,showArrowButton:x,hover:N,focus:C,valid:A,invalid:g,required:w,loading:S,disabled:I,readonly:K,opened:H,dir:j,adaptive:se,adaptiveSettings:Ae,adaptiveTitle:Ye,adaptiveSubtitle:Qe,adaptiveFilter:aa,id:So,treeviewId:ia,"aria-label":ra,...sa}=e,yo=So?`${So}-taglist`:void 0;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(L,{...sa,dir:j,size:t,rounded:o,fillMode:a,hover:N,focus:C,valid:A,invalid:g,required:w,loading:S,disabled:I,readonly:K,className:r(e.className,oa),children:[(0,v.jsx)(_e,{children:n}),(0,v.jsx)(R,{size:t,className:"k-input-values",id:yo,children:(0,v.jsx)(v.Fragment,{children:c})}),(0,v.jsx)("span",{className:"k-input-inner",role:"combobox","aria-haspopup":"tree","aria-expanded":H?"true":"false","aria-controls":H?ia:void 0,"aria-autocomplete":"list","aria-describedby":c?yo:void 0,"aria-disabled":I?"true":void 0,"aria-label":ra,tabIndex:0,children:!c&&(0,v.jsx)("span",{className:"k-input-value-text",children:d})}),(0,v.jsx)(oe,{valid:A,invalid:g,loading:S,disabled:I}),(0,v.jsx)(ie,{loading:S,disabled:I}),(0,v.jsx)(te,{loading:S,disabled:I,readonly:K,value:c?"value":""}),(0,v.jsx)(Pe,{children:l}),x&&(0,v.jsx)(k,{className:"k-input-button",icon:"chevron-down",size:t,fillMode:a,"aria-label":"Toggle dropdown",tabIndex:-1})]}),H&&u&&(0,v.jsx)(he,{className:"k-multiselecttree-popup",dir:j,containerRole:"region",containerAriaLabel:"MultiSelectTree options",children:u}),se&&(0,v.jsx)(P,{adaptive:!0,...Ae,header:(0,v.jsx)(ne,{actionsEnd:(0,v.jsx)(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:aa,inputPlaceholder:d,title:Ye,subtitle:Qe}),children:(0,v.jsxs)(E,{size:"large",children:[(0,v.jsx)(f,{text:"Root 1"}),(0,v.jsx)(f,{text:"Root 2",expanded:!0,children:(0,v.jsxs)(D,{children:[(0,v.jsx)(f,{text:"Child 2.1"}),(0,v.jsx)(f,{text:"Child 2.2",children:(0,v.jsx)(D,{children:(0,v.jsx)(f,{text:"Child 2.2.1"})})}),(0,v.jsx)(f,{text:"Child 2.3"}),(0,v.jsx)(f,{leafClassName:"k-treeview-load-more-button",text:"Load more ..."})]})}),(0,v.jsx)(f,{text:"Root 3",children:(0,v.jsxs)(D,{children:[(0,v.jsx)(f,{text:"Child 3.1"}),(0,v.jsx)(f,{text:"Child 3.2"}),(0,v.jsx)(f,{text:"Child 3.3"})]})})]})})]})};ke.states=es;ke.options=ts;ke.className=oa;ke.defaultOptions=os;ke.moduleName=ea;ke.folderName=ta;ke.ariaSpec={rules:[{selector:".k-multiselecttree .k-input-inner",attribute:"role=combobox",usage:"Announces the multiselect tree input."},{selector:".k-multiselecttree .k-input-inner",attribute:"aria-haspopup=tree",usage:"Indicates the presence of a tree popup."},{selector:".k-multiselecttree .k-input-inner",attribute:"aria-expanded",usage:"Announces the popup visibility."},{selector:".k-multiselecttree .k-input-inner",attribute:"aria-label",usage:"Accessible name for the multiselect tree."},{selector:".k-multiselecttree .k-input-inner",attribute:"aria-autocomplete=list",usage:"Indicates list filtering capability when filtering is enabled."},{selector:".k-multiselecttree .k-input-inner",attribute:"aria-describedby",usage:"Points to the taglist element that contains the selected items."},{selector:".k-multiselecttree .k-input-inner",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-multiselecttree.k-disabled .k-input-inner",attribute:"aria-disabled=true",usage:"Rendered when the multiselect tree is disabled."},{selector:".k-multiselecttree .k-chip-list",attribute:"role=listbox",usage:"The taglist has listbox role for selected items."},{selector:".k-multiselecttree .k-chip-list",attribute:"aria-label or aria-labelledby",usage:"The taglist needs an accessible name."},{selector:".k-multiselecttree .k-chip-list",attribute:"aria-orientation=horizontal",usage:"Specifies horizontal orientation of the taglist."},{selector:".k-multiselecttree .k-chip-list .k-chip",attribute:"role=option",usage:"Each tag chip is an option within the taglist listbox."},{selector:".k-multiselecttree .k-chip-list .k-chip",attribute:"aria-selected=true",usage:"Tags represent selected items and must have aria-selected=true."}]};var na=ke;var M=require("react/jsx-runtime"),ns=e=>{let t=J("mst"),o=J("mst-tv");return(0,M.j