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