UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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