UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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