UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 48.2 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 ho(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"},Y={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 kt={};function te(e){return kt[e]=(kt[e]||0)+1,`k-${e}-${kt[e]}`}var Fe="input",nt=Fe;import{jsx as _n}from"react/jsx-runtime";var at="k-input",On=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Rn={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]},Kn={},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 _n("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=On;M.options=Rn;M.className=at;M.defaultOptions=Kn;M.moduleName=Fe;M.folderName=nt;import{jsx as Dn}from"react/jsx-runtime";var it="k-picker",Pn=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Hn={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]},zn={},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 Dn("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=Pn;ve.options=Hn;ve.className=it;ve.defaultOptions=zn;ve.moduleName=Fe;ve.folderName=nt;import{Fragment as Vn,jsx as xo}from"react/jsx-runtime";var Tt="k-font-icon",Bn=[],Fn={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]},Un={},Ue=e=>{let{size:t,themeColor:o,icon:n,rotate:a,flip:l,...d}=e;return n?xo("span",{...d,className:r(e.className,Tt,A(Tt,{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"}):xo(Vn,{})};Ue.states=Bn;Ue.options=Fn;Ue.className=Tt;Ue.defaultOptions=Un;var bo=Ue;import{Fragment as $n,jsx as rt}from"react/jsx-runtime";var It="k-svg-icon",Gn=[],Xn={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:[Y.outline,Y.solid,Y.duotone]},Et={viewBox:"0 0 24 24",variant:Y.outline},Ve=e=>{let{size:t,themeColor:o,rotate:n,flip:a,viewBox:l=Et.viewBox,variant:d=Et.variant,icon:c,...u}=e;if(!c)return rt($n,{});if(c==="none")return rt("span",{...u,className:r(e.className,It,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,It,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})})};Ve.states=Gn;Ve.options=Xn;Ve.className=It;Ve.defaultOptions=Et;var St=Ve;import*as yt from"@progress/kendo-svg-icons";var vo="icon",No="icons";import{useContext as qn}from"react";import{createContext as Wn}from"react";var Co=Wn({iconsType:"svg"});import{Fragment as Ao,jsx as Ge}from"react/jsx-runtime";var st="k-icon",Jn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Yn=[],Qn={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:[Y.outline,Y.solid,Y.duotone]},lt={viewBox:"0 0 24 24",type:"svg",variant:Y.outline},x=e=>{let{iconsType:t}=qn(Co),{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(Ao,{});if((t||l)==="svg"){if(a==="none")return Ge(St,{...b,className:r(e.className,st),icon:a,size:o,variant:h});let T=yt[a]?a:Jn(`${a}-icon`);return yt[T]?Ge(St,{...b,className:r(e.className,st),icon:yt[T],size:o,themeColor:n,rotate:d,flip:c,viewBox:u,variant:h}):Ge(Ao,{})}return Ge(bo,{...b,className:r(e.className,st),icon:a,size:o,themeColor:n,rotate:d,flip:c})};x.states=Yn;x.options=Qn;x.defaultOptions=lt;x.className=st;x.moduleName=vo;x.folderName=No;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 ea,jsx as gt}from"react/jsx-runtime";var ko="k-clear-value",Zn=[i.disabled,i.loading,i.readonly],jn={},$=e=>{let{disabled:t,loading:o,readonly:n,value:a}=e;return t||n||o||!a?gt(ea,{}):gt("span",{className:r(e.className,ko),children:gt(x,{icon:"x"})})};$.states=Zn;$.options=jn;$.className=ko;import{jsx as na}from"react/jsx-runtime";var Mt="k-input-inner",ta=[],oa={},ct={type:"text",autocomplete:"off",value:"",placeholder:""},oe=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 na("input",{...c,type:o,className:r(e.className,Mt,A(Mt,e)),placeholder:n,autoComplete:a,defaultValue:t,disabled:l||void 0,readOnly:d||void 0})};oe.states=ta;oe.options=oa;oe.className=Mt;import{jsx as To,jsxs as ra}from"react/jsx-runtime";var wt="k-input-inner",aa=[],ia={},Lt=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:a,valueIconName:l,...d}=e;return ra("span",{...d,className:r(e.className,wt,A(wt,e)),children:[a,!a&&l&&To(x,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&To("span",{className:"k-input-value-text",children:t})]})};Lt.states=aa;Lt.options=ia;Lt.className=wt;import{jsx as ca}from"react/jsx-runtime";var Ot="k-input-inner",sa=[],la={},Io={value:"",placeholder:""},Rt=e=>{let{value:t=Io.value,placeholder:o=Io.placeholder,rows:n,disabled:a,...l}=e;return ca("textarea",{...l,className:r(e.className,Ot,A(Ot,e)),placeholder:o,rows:n,defaultValue:t,disabled:a||void 0})};Rt.states=sa;Rt.options=la;Rt.className=Ot;import{Fragment as pa,jsx as Eo}from"react/jsx-runtime";var So="k-input-loading-icon",da=[i.disabled,i.loading],Q=e=>{let{disabled:t,loading:o}=e;return t||!o?Eo(pa,{}):Eo("span",{className:r(e.className,So,"k-icon k-i-loading")})};Q.states=da;Q.className=So;import{Fragment as fa,jsx as yo}from"react/jsx-runtime";var go="k-input-validation-icon",ma=[i.valid,i.invalid,i.disabled,i.loading],ua={},W=e=>{let{valid:t,invalid:o,disabled:n,loading:a}=e,l=o?"warning-circle":"check-circle";return n||a||!!!(t||o)?yo(fa,{}):yo(x,{className:r(go),icon:l})};W.states=ma;W.options=ua;W.className=go;import{Fragment as ba,jsx as Mo}from"react/jsx-runtime";var ha="k-input-prefix",xa={direction:"horizontal"},Ne=e=>{let{direction:t=xa.direction,...o}=e;return e.children?Mo("span",{...o,className:r(ha,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Mo(ba,{})};import{Fragment as Ca,jsx as wo}from"react/jsx-runtime";var va="k-input-suffix",Na={direction:"horizontal"},Ce=e=>{let{direction:t=Na.direction,...o}=e;return e.children?wo("span",{...o,className:r(va,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):wo(Ca,{})};import{jsx as sl}from"react/jsx-runtime";import{jsx as pl}from"react/jsx-runtime";import{jsx as ka}from"react/jsx-runtime";var Lo="k-input-separator",Aa={direction:"vertical"},Ae=e=>{let{direction:t=Aa.direction,...o}=e;return ka("span",{...o,className:r(Lo,e.className,{[`${Lo}-${t}`]:t})})};var Kt="button",Oo=Kt;import{Fragment as Ro,jsx as ke,jsxs as Ko}from"react/jsx-runtime";var Xe="k-button",Ta=["icon-button"],Ia=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Ea={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]},_t={showArrow:!1,arrowIconName:"chevron-down"},N=e=>{let{as:t="button",size:o,rounded:n,fillMode:a,themeColor:l,showArrow:d=_t.showArrow,arrowIconName:c=_t.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:ee,...ue}=e,De=I!=null,Be=e.children!==void 0;return Ko(t,{className:r(ee,Xe,ho(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(Ro,{children:I}),_?Ko(Ro,{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=Ia;N.options=Ea;N.variants=Ta;N.className=Xe;N.defaultOptions=_t;N.moduleName=Kt;N.folderName=Oo;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 Sa}from"react/jsx-runtime";var fe=e=>Sa(N,{children:"Button",...e});import{Fragment as _o,jsx as Z,jsxs as Pt}from"react/jsx-runtime";var ya=M.states,ga=M.defaultOptions,Ma=M.options,wa=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],La=[],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 Pt(M,{...c,valid:o,invalid:n,loading:a,disabled:l,readonly:d,style:{width:300},children:[u&&Pt(_o,{children:[Z(Ne,{children:Z(x,{icon:"lock"})}),T&&Z(Ae,{})]}),Z(oe,{placeholder:"Placeholder",value:"Value"}),C&&Z(W,{valid:o,invalid:n,loading:a,disabled:l}),Z(Q,{loading:a,disabled:l}),b&&Z($,{loading:a,disabled:l,readonly:d,value:"Value"}),h&&Pt(_o,{children:[T&&Z(Ae,{}),Z(Ce,{children:Z(fe,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Te.options=Ma;Te.states=ya;Te.variants=La;Te.defaultOptions=ga;Te.modifiers=wa;Te.className=M.className;import{jsx as Oa}from"react/jsx-runtime";var Po=e=>Oa(N,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Ra}from"react/jsx-runtime";var Ho=e=>Ra(N,{icon:"folder",children:"Button",...e});import{jsx as Ht}from"react/jsx-runtime";var Ka=N.options,_a=N.states,Pa={...N.defaultOptions,variant:"text"},Ha=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],za=[],Ie=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Ht(Po,{...o,icon:"star"});case"icon-and-text":return Ht(Ho,{...o,icon:"star",children:"Button"});default:return Ht(fe,{...o,children:"Button"})}};Ie.options=Ka;Ie.states=_a;Ie.variants=Ha;Ie.defaultOptions=Pa;Ie.modifiers=za;Ie.className=N.className;import{jsx as dt}from"react/jsx-runtime";var Da="k-chip-action";var ne=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,Da,`k-chip-${t}-action`),children:n})};var zt="avatar",zo=zt;import{jsx as Do}from"react/jsx-runtime";var $e="k-avatar";var Ba=[i.hover,i.focus,i.active,i.selected,i.disabled],Fa={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]},Dt={type:"text",border:!1},P=e=>{let{size:t,rounded:o,fillMode:n,themeColor:a,type:l=Dt.type,border:d=Dt.border,...c}=e;return Do("div",{...c,className:r(e.className,$e,A($e,{size:t,rounded:o,fillMode:n,themeColor:a}),{[`${$e}-bordered`]:d}),children:Do("span",{className:`${$e}-${l}`,children:e.children})})};P.states=Ba;P.options=Fa;P.className=$e;P.defaultOptions=Dt;P.moduleName=zt;P.folderName=zo;P.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var he=P;import{jsx as Ua}from"react/jsx-runtime";var Bo=e=>Ua(he,{type:"icon",...e});import{jsx as Va}from"react/jsx-runtime";var Fo=e=>Va(he,{type:"text",...e});import{jsx as Ga}from"react/jsx-runtime";var Uo=e=>Ga(he,{type:"image",...e});import{jsx as Dc}from"react/jsx-runtime";import{jsx as We}from"react/jsx-runtime";var Xa=P.options,$a=P.states,Wa={...P.defaultOptions,variant:"image"},qa=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Ja=[],Ee=e=>{let{variant:t,...o}=e;switch(t){case"icon":return We(Bo,{...o,children:We(x,{icon:"star"})});case"text":return We(Fo,{...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=Xa;Ee.states=$a;Ee.variants=qa;Ee.defaultOptions=Wa;Ee.modifiers=Ja;Ee.className=P.className;var qe="chip",pt=qe,mt="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as Se,jsxs as Za}from"react/jsx-runtime";var ut="k-chip",Ya=[i.hover,i.focus,i.active,i.selected,i.disabled],Qa={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]},Vo={avatarImage:"/packages/html/assets/avatar.jpg"},B=e=>{let{size:t,rounded:o,fillMode:n,themeColor:a,text:l,icon:d,actions:c,showAvatar:u,avatarImage:h=Vo.avatarImage,hover:b,focus:C,active:T,selected:y,disabled:g,...E}=e;return Za("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(P,{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})]})};B.states=Ya;B.options=Qa;B.className=ut;B.defaultOptions=Vo;B.moduleName=qe;B.folderName=pt;B.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 U=B;import{jsx as oi}from"react/jsx-runtime";var Bt="k-chip-list",ja=[],ei={size:[s.undefined,s.small,s.medium,s.large]},ti={},w=e=>{let{size:t,multiselectable:o,ariaLabel:n,...a}=e;return oi("div",{...a,className:r(e.className,Bt,A(Bt,{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=ja;w.options=ei;w.className=Bt;w.defaultOptions=ti;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 hd}from"react/jsx-runtime";import{jsx as Nd}from"react/jsx-runtime";import{jsx as ni}from"react/jsx-runtime";var ft=e=>ni(U,{text:"text",...e});import{jsx as yd}from"react/jsx-runtime";import{jsx as Ld}from"react/jsx-runtime";import{Fragment as Hd,jsx as Pd,jsxs as zd}from"react/jsx-runtime";import{jsx as Vd,jsxs as Gd}from"react/jsx-runtime";import{jsx as Jd,jsxs as Yd}from"react/jsx-runtime";import{jsx as op,jsxs as np}from"react/jsx-runtime";import{jsx as ye,jsxs as ci}from"react/jsx-runtime";var ai={...U.options,...w.options},ii=[],ri=w.states,si={...U.defaultOptions,...w.defaultOptions},li=[{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 ci(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(ne,{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(ne,{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(ne,{type:"remove"}):void 0,showAvatar:d,avatarImage:c,children:"Chip"})]})};ge.options=ai;ge.states=ri;ge.variants=ii;ge.defaultOptions=si;ge.modifiers=li;ge.className=w.className;import{jsx as Ft}from"react/jsx-runtime";var di=B.states,pi=B.defaultOptions,mi=B.options,ui=[],fi=[{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]?Ft(ne,{type:"more"}):void 0;break;case"remove-icon":n.actions||(n.actions=[]),n.actions[1]=t?.[a]?Ft(ne,{type:"remove"}):void 0;break;default:break}}),Ft(B,{...o,...n,children:"Chip component"})};Me.options=mi;Me.states=di;Me.variants=ui;Me.defaultOptions=pi;Me.modifiers=fi;Me.className=B.className;var Ut="popup",Go=Ut;import{jsx as Xo}from"react/jsx-runtime";var $o="k-animation-container",hi=[],xi={},Vt={positionMode:"absolute",shown:!0},j=e=>{let{positionMode:t=Vt.positionMode,shown:o=Vt.shown,animationStyle:n,offset:a,...l}=e;return Xo("div",{...l,style:{...a,...e.style},className:r(e.className,$o,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Xo("div",{className:"k-child-animation-container",style:n,children:e.children})})};j.states=hi;j.options=xi;j.className=$o;j.defaultOptions=Vt;j.moduleName=Ut;j.folderName=Go;var Gt="popup",Wo=Gt;import{jsx as qo}from"react/jsx-runtime";var Jo="k-popup",bi=[],vi={},Yo={positionMode:"absolute"},ae=e=>{let{offset:t,positionMode:o=Yo.positionMode,animationStyle:n,containerClassName:a,containerRole:l,containerAriaLabel:d,...c}=e;return qo(j,{positionMode:o,offset:t,animationStyle:n,className:a,role:l,"aria-label":d,children:qo("div",{...c,className:r(e.className,Jo),children:e.children})})};ae.states=bi;ae.options=vi;ae.className=Jo;ae.defaultOptions=Yo;ae.moduleName=Gt;ae.folderName=Wo;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 Xt="action-buttons",Qo=Xt;import{jsx as Ai}from"react/jsx-runtime";var ht="k-actions",Ni=[],Ci={},$t={alignment:"start",orientation:"horizontal"},re=e=>{let{alignment:t=$t.alignment,orientation:o=$t.orientation,...n}=e;return Ai("div",{...n,className:r(ht,{[`${ht}-${t}`]:t,[`${ht}-${o}`]:o},e.className),children:e.children})};re.states=Ni;re.options=Ci;re.className=ht;re.defaultOptions=$t;re.moduleName=Xt;re.folderName=Qo;import{jsx as Ti}from"react/jsx-runtime";var ki="k-actionsheet-footer",Zo={alignment:"stretched",orientation:"horizontal"},we=e=>{let{alignment:t=Zo.alignment,orientation:o=Zo.orientation,template:n,as:a=n?"div":re,...l}=e;return Ti(a,{...l,...!n&&{alignment:t,orientation:o},className:r(e.className,ki),children:e.children})};var Wt="searchbox",jo=Wt;import{jsx as Je,jsxs as Si}from"react/jsx-runtime";var en="k-searchbox",Ii=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Ei={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]},qt={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=qt.showIcon,icon:g=qt.icon,"aria-label":E,...I}=e;return Si(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,en),children:[y&&Je(x,{className:"k-input-icon",icon:g}),Je(oe,{placeholder:o,value:t,"aria-label":E}),Je(Q,{...e}),Je(W,{...e}),Je($,{...e})]})};se.states=Ii;se.options=Ei;se.className=en;se.defaultOptions=qt;se.moduleName=Wt;se.folderName=jo;import{jsx as bm}from"react/jsx-runtime";var Jt="textbox",tn=Jt;import{Fragment as on,jsx as le,jsxs as Yt}from"react/jsx-runtime";var nn="k-textbox",yi=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],gi={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},H=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:ee,"aria-label":ue,"aria-describedby":De,...Be}=e;return Yt(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,nn),children:[c&&Yt(on,{children:[le(Ne,{children:c}),a&&le(Ae,{})]}),le(oe,{id:ee,placeholder:C,value:b,type:h,disabled:_,"aria-label":ue,"aria-describedby":De,"aria-invalid":E?"true":void 0}),d&&le(W,{valid:g,invalid:E,loading:L,disabled:_}),le(Q,{loading:L,disabled:_}),l&&le($,{loading:L,disabled:_,readonly:X,value:b}),u&&Yt(on,{children:[a&&le(Ae,{}),le(Ce,{children:u})]})]})};H.states=yi;H.options=gi;H.className=nn;H.defaultOptions=xt;H.moduleName=Jt;H.folderName=tn;H.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=H;import{jsx as Mi}from"react/jsx-runtime";var an=e=>Mi(Ye,{...e});import{Fragment as _m,jsx as Km}from"react/jsx-runtime";import{Fragment as Fm,jsx as Bm}from"react/jsx-runtime";import{jsx as Xm}from"react/jsx-runtime";import{jsx as Qt}from"react/jsx-runtime";var wi=H.states,Li=H.defaultOptions,Oi=H.options,Ri=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Ki=[],Le=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(a=>{switch(a){case"prefix":n.prefix=t?.[a]?Qt(x,{icon:"lock"}):void 0;break;case"suffix":n.suffix=t?.[a]?Qt(fe,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":n.showClearButton=t?.[a];break;default:break}}),Qt(an,{value:"Value",style:{width:300},...o,...n})};Le.options=Oi;Le.states=wi;Le.variants=Ki;Le.defaultOptions=Li;Le.modifiers=Ri;Le.className=H.className;import{jsx as ce,jsxs as Zt}from"react/jsx-runtime";var rn="k-actionsheet-titlebar",_i={},q=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 Zt("div",{...T,className:r(e.className,rn),children:[Zt("div",{className:"k-actionsheet-titlebar-group",children:[n&&ce("div",{className:"k-actionsheet-actions",children:n}),!C&&Zt("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(H,{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"})})]})};q.className=rn;q.defaultOptions=_i;import{jsx as jt,jsxs as Di}from"react/jsx-runtime";var eo="k-actionsheet-view",Pi=[],Hi={},zi={},Oe=e=>{let{adaptive:t,animated:o,children:n,header:a,footer:l,titleId:d,...c}=e,u=a?.type===q&&jt(q,{adaptive:t,titleId:d,...a?.props}),h=l?.type===we&&jt(we,{...l?.props});return Di("div",{...c,className:r(e.className,eo,{[`${eo}-animated`]:o}),children:[u,jt("div",{className:"k-actionsheet-content",children:n}),h]})};Oe.states=Pi;Oe.options=Hi;Oe.className=eo;Oe.defaultOptions=zi;var Qe="action-sheet",bt=Qe;var to="overlay",sn=to;import{jsx as Vi}from"react/jsx-runtime";var ln="k-overlay",Bi=[],Fi={},Ui={},de=e=>{let{...t}=e;return Vi("div",{...t,className:r(e.className,ln),children:e.children})};de.states=Bi;de.options=Fi;de.className=ln;de.defaultOptions=Ui;de.moduleName=to;de.folderName=sn;import{jsx as vt,jsxs as $i}from"react/jsx-runtime";var cn="k-actionsheet",Gi=[],Xi={},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 $i("div",{className:"k-actionsheet-container",children:[a&&vt(de,{}),vt(j,{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,cn,{[`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=Gi;R.options=Xi;R.className=cn;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 Yi}from"react/jsx-runtime";var dn="k-actionsheet-container",Wi=[],qi={},Ji={},Re=e=>{let{children:t,...o}=e;return Yi("div",{...o,className:dn,children:t})};Re.states=Wi;Re.options=qi;Re.className=dn;Re.defaultOptions=Ji;Re.moduleName=Qe;Re.folderName=bt;import{jsx as Qi}from"react/jsx-runtime";var oo=e=>{let{...t}=e;return Qi("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};import{Fragment as ji,jsx as je,jsxs as no}from"react/jsx-runtime";var ao="k-actionsheet-item",Zi=[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 no("span",{...u,className:r(e.className,ao,O(ao,{hover:a,focus:l,selected:d,disabled:c})),children:[!e.children&&je(ji,{children:no("span",{className:"k-actionsheet-action",children:[t&&je("span",{className:"k-icon-wrap",children:je(x,{className:"k-actionsheet-item-icon",icon:t})}),no("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=Zi;pe.className=ao;import{jsx as Gu,jsxs as Xu}from"react/jsx-runtime";import{jsx as Ju}from"react/jsx-runtime";import{jsx as ju}from"react/jsx-runtime";import{jsx as nf}from"react/jsx-runtime";import{jsx as K,jsxs as io}from"react/jsx-runtime";var er=R.options,tr=R.states,mn={...R.defaultOptions,variant:"normal"},or=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],nr=[{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}={...mn,...e},a={},l=io(oo,{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(q,{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?io(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(q,{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?io(we,{alignment:"stretched",children:[K(N,{text:"Apply",themeColor:"primary"}),K(N,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};Ke.options=er;Ke.states=tr;Ke.variants=or;Ke.defaultOptions=mn;Ke.modifiers=nr;Ke.className=R.className;import so from"react";import ro from"react";import{jsx as ir}from"react/jsx-runtime";var ar="k-treeview-group",F=e=>{let{children:t,dir:o,level:n=1,role:a="group",...l}=e;return ir("ul",{...l,className:r(e.className,ar),role:a,children:ro.Children.map(t,(d,c)=>ro.isValidElement(d)?ro.cloneElement(d,{dir:o,level:n,key:c}):d)})};var et="treeview",Nt=et;import{jsx as un}from"react/jsx-runtime";var lo="k-treeview",rr=[],sr={size:[s.undefined,s.small,s.medium,s.large]},lr={},S=e=>{let{size:t,children:o,dir:n,...a}=e;return un("div",{...a,dir:n,className:r(e.className,lo,A(lo,{size:t})),children:un(F,{className:"k-treeview-lines",role:"tree",dir:n,children:so.Children.map(o,(l,d)=>so.isValidElement(l)?so.cloneElement(l,{dir:n,key:d}):l)})})};S.states=rr;S.options=sr;S.className=lo;S.defaultOptions=lr;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 po from"react";var xe="checkbox",_e=xe;import{jsx as fn}from"react/jsx-runtime";var Ct="k-checkbox",cr=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],dr={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},pr={},V=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 fn("span",{className:"k-checkbox-wrap",role:T,children:fn("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}))})})};V.states=cr;V.options=dr;V.className=Ct;V.defaultOptions=pr;V.moduleName=xe;V.folderName=_e;V.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 J=V;import{jsx as fr}from"react/jsx-runtime";var hn="k-checkbox-list",mr=[],ur={},xn={layout:"vertical"},z=e=>{let{layout:t=xn.layout,...o}=e;return fr("ul",{...o,className:r(e.className,hn,{[`k-list-${t}`]:t}),children:e.children})};z.states=mr;z.options=ur;z.className=hn;z.defaultOptions=xn;z.moduleName=xe;z.folderName=_e;import{jsx as vr}from"react/jsx-runtime";var bn="k-checkbox-list-item",hr=[],xr={},br={},D=e=>{let{...t}=e;return vr("li",{...t,className:r(e.className,bn),children:e.children})};D.states=hr;D.options=xr;D.className=bn;D.defaultOptions=br;D.moduleName=xe;D.folderName=_e;import{Fragment as Nr,jsx as vn,jsxs as Cr}from"react/jsx-runtime";var ie=({children:e="Label",id:t="cb-label-after",...o})=>Cr(Nr,{children:[vn(J,{id:t,...o}),vn("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as ah,jsx as nh,jsxs as ih}from"react/jsx-runtime";import{Fragment as dh,jsx as ch,jsxs as ph}from"react/jsx-runtime";import{Fragment as xh,jsx as hh,jsxs as bh}from"react/jsx-runtime";import{jsx as Ah}from"react/jsx-runtime";import{jsx as Eh}from"react/jsx-runtime";import{jsx as Mh}from"react/jsx-runtime";import{jsx as G,jsxs as Nn}from"react/jsx-runtime";var Ar=z.options,kr=z.states,Tr={...z.defaultOptions,variant:"vertical"},Ir=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Er=[],Pe=e=>{let{variant:t,...o}=e;return t==="horizontal"?Nn(z,{layout:"horizontal",...o,children:[G(D,{children:G(ie,{id:te("cb"),defaultChecked:!0,children:"Label"})}),G(D,{children:G(ie,{id:te("cb"),children:"Label"})}),G(D,{children:G(ie,{id:te("cb"),children:"Label"})})]}):Nn(z,{...o,children:[G(D,{children:G(ie,{id:te("cb"),defaultChecked:!0,children:"Label"})}),G(D,{children:G(ie,{id:te("cb"),children:"Label"})}),G(D,{children:G(ie,{id:te("cb"),children:"Label"})})]})};Pe.options=Ar;Pe.states=kr;Pe.variants=Ir;Pe.defaultOptions=Tr;Pe.modifiers=Er;Pe.className=z.className;import{jsx as Lr}from"react/jsx-runtime";var Sr=J.options,yr=J.states,gr=J.defaultOptions,Mr=[],wr=[],He=e=>Lr(ie,{id:te("checkbox"),...e,defaultChecked:!0,children:"Label"});He.options=Sr;He.states=yr;He.variants=Mr;He.defaultOptions=gr;He.modifiers=wr;He.className=J.className;import{jsx as Cn,jsxs as Kr}from"react/jsx-runtime";var co="k-treeview-leaf",Or=[i.hover,i.focus,i.selected],Rr={},At=e=>{let{text:t,showIcon:o,icon:n,hover:a,focus:l,selected:d,...c}=e;return Kr("span",{...c,className:r(e.className,co,O(co,{hover:a,focus:l,selected:d})),children:[o&&Cn(x,{icon:n}),Cn("span",{className:"k-treeview-leaf-text",children:t})]})};At.states=Or;At.options=Rr;At.className=co;var An=At;import{jsx as tt,jsxs as kn}from"react/jsx-runtime";var Tn="k-treeview-item",_r=[i.hover,i.focus,i.selected,i.disabled],Pr={},Hr={},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 kn("li",{..._,className:r(e.className,Tn),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:[kn("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(V,{checked:b,disabled:g,"aria-label":d,tabIndex:-1}),tt(An,{className:t,text:d,showIcon:c,icon:u})]}),a&&X&&po.Children.map(o,(ee,ue)=>po.isValidElement(ee)?po.cloneElement(ee,{dir:E,level:I+1,key:ue}):ee)]})};v.states=_r;v.options=Pr;v.className=Tn;v.defaultOptions=Hr;v.moduleName=et;v.folderName=Nt;import{jsx as bx}from"react/jsx-runtime";import{jsx as Ax,jsxs as kx}from"react/jsx-runtime";import{jsx as Sx,jsxs as yx}from"react/jsx-runtime";import{jsx as Lx,jsxs as Ox}from"react/jsx-runtime";import{jsx as Px,jsxs as Hx}from"react/jsx-runtime";import{jsx as Fx,jsxs as Ux}from"react/jsx-runtime";import{jsx as be,jsxs as mo}from"react/jsx-runtime";var zr=S.options,Dr=S.states,Br=S.defaultOptions,Fr=[{name:"checkboxes",title:"Show `Checkbox`",default:!1}],Ur=[],ze=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(a=>{a==="checkboxes"&&(n.showCheckbox=t?.[a])}),mo(S,{...o,children:[be(v,{text:"Furniture",expanded:!0,...n,children:mo(F,{children:[be(v,{text:"Tables & Chairs",...n}),be(v,{text:"Sofas",...n}),be(v,{text:"Occasional Furniture",...n})]})}),mo(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=zr;ze.states=Dr;ze.variants=Ur;ze.defaultOptions=Br;ze.modifiers=Fr;ze.className=S.className;var In="dropdown-tree",En="dropdowntree";import{Fragment as Sn,jsx as k,jsxs as ot}from"react/jsx-runtime";var yn="k-multiselecttree",Vr=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Gr={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]},Xr={},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:ee,adaptiveSettings:ue,adaptiveTitle:De,adaptiveSubtitle:Be,adaptiveFilter:gn,id:uo,treeviewId:Mn,"aria-label":wn,...Ln}=e,fo=uo?`${uo}-taglist`:void 0;return ot(Sn,{children:[ot(M,{...Ln,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,yn),children:[k(Ne,{children:a}),k(w,{size:t,className:"k-input-values",id:fo,children:k(Sn,{children:c})}),k("span",{className:"k-input-inner",role:"combobox","aria-haspopup":"tree","aria-expanded":_?"true":"false","aria-controls":_?Mn:void 0,"aria-autocomplete":"list","aria-describedby":c?fo:void 0,"aria-disabled":I?"true":void 0,"aria-label":wn,tabIndex:0,children:!c&&k("span",{className:"k-input-value-text",children:d})}),k(W,{valid:T,invalid:y,loading:E,disabled:I}),k(Q,{loading:E,disabled:I}),k($,{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}),ee&&k(R,{adaptive:!0,...ue,header:k(q,{actionsEnd:k(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:gn,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=Vr;me.options=Gr;me.className=yn;me.defaultOptions=Xr;me.moduleName=In;me.folderName=En;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 vb=me;export{yn as MULTISELECTTREE_CLASSNAME,me as MultiSelectTree,vb as default};