UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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