UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 48.3 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"},Q={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 $(e){return kt[e]=(kt[e]||0)+1,`k-${e}-${kt[e]}`}var Fe="input",nt=Fe;import{jsx as Pn}from"react/jsx-runtime";var at="k-input",Rn=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Kn={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]},_n={},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 Pn("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=Rn;M.options=Kn;M.className=at;M.defaultOptions=_n;M.moduleName=Fe;M.folderName=nt;import{jsx as Bn}from"react/jsx-runtime";var it="k-picker",Hn=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],zn={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]},Dn={},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 Bn("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=Hn;ve.options=zn;ve.className=it;ve.defaultOptions=Dn;ve.moduleName=Fe;ve.folderName=nt;import{Fragment as Gn,jsx as xo}from"react/jsx-runtime";var Tt="k-font-icon",Fn=[],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]},Vn={},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(Gn,{})};Ue.states=Fn;Ue.options=Un;Ue.className=Tt;Ue.defaultOptions=Vn;var bo=Ue;import{Fragment as Wn,jsx as rt}from"react/jsx-runtime";var It="k-svg-icon",Xn=[],$n={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:[Q.outline,Q.solid,Q.duotone]},Et={viewBox:"0 0 24 24",variant:Q.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(Wn,{});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=Xn;Ve.options=$n;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 Jn}from"react";import{createContext as qn}from"react";var Co=qn({iconsType:"svg"});import{Fragment as Ao,jsx as Ge}from"react/jsx-runtime";var st="k-icon",Yn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Qn=[],Zn={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:[Q.outline,Q.solid,Q.duotone]},lt={viewBox:"0 0 24 24",type:"svg",variant:Q.outline},x=e=>{let{iconsType:t}=Jn(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:Yn(`${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=Qn;x.options=Zn;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 ta,jsx as gt}from"react/jsx-runtime";var ko="k-clear-value",jn=[i.disabled,i.loading,i.readonly],ea={},W=e=>{let{disabled:t,loading:o,readonly:n,value:a}=e;return t||n||o||!a?gt(ta,{}):gt("span",{className:r(e.className,ko),children:gt(x,{icon:"x"})})};W.states=jn;W.options=ea;W.className=ko;import{jsx as aa}from"react/jsx-runtime";var Mt="k-input-inner",oa=[],na={},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 aa("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=oa;oe.options=na;oe.className=Mt;import{jsx as To,jsxs as sa}from"react/jsx-runtime";var wt="k-input-inner",ia=[],ra={},Lt=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:a,valueIconName:l,...d}=e;return sa("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=ia;Lt.options=ra;Lt.className=wt;import{jsx as da}from"react/jsx-runtime";var Ot="k-input-inner",la=[],ca={},Io={value:"",placeholder:""},Rt=e=>{let{value:t=Io.value,placeholder:o=Io.placeholder,rows:n,disabled:a,...l}=e;return da("textarea",{...l,className:r(e.className,Ot,A(Ot,e)),placeholder:o,rows:n,defaultValue:t,disabled:a||void 0})};Rt.states=la;Rt.options=ca;Rt.className=Ot;import{Fragment as ma,jsx as Eo}from"react/jsx-runtime";var So="k-input-loading-icon",pa=[i.disabled,i.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?Eo(ma,{}):Eo("span",{className:r(e.className,So,"k-icon k-i-loading")})};Z.states=pa;Z.className=So;import{Fragment as ha,jsx as yo}from"react/jsx-runtime";var go="k-input-validation-icon",ua=[i.valid,i.invalid,i.disabled,i.loading],fa={},q=e=>{let{valid:t,invalid:o,disabled:n,loading:a}=e,l=o?"warning-circle":"check-circle";return n||a||!!!(t||o)?yo(ha,{}):yo(x,{className:r(go),icon:l})};q.states=ua;q.options=fa;q.className=go;import{Fragment as va,jsx as Mo}from"react/jsx-runtime";var xa="k-input-prefix",ba={direction:"horizontal"},Ne=e=>{let{direction:t=ba.direction,...o}=e;return e.children?Mo("span",{...o,className:r(xa,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Mo(va,{})};import{Fragment as Aa,jsx as wo}from"react/jsx-runtime";var Na="k-input-suffix",Ca={direction:"horizontal"},Ce=e=>{let{direction:t=Ca.direction,...o}=e;return e.children?wo("span",{...o,className:r(Na,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):wo(Aa,{})};import{jsx as cl}from"react/jsx-runtime";import{jsx as ul}from"react/jsx-runtime";import{jsx as Ta}from"react/jsx-runtime";var Lo="k-input-separator",ka={direction:"vertical"},Ae=e=>{let{direction:t=ka.direction,...o}=e;return Ta("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",Ia=["icon-button"],Ea=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Sa={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:te,...ue}=e,De=I!=null,Be=e.children!==void 0;return Ko(t,{className:r(te,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=Ea;N.options=Sa;N.variants=Ia;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 ya}from"react/jsx-runtime";var fe=e=>ya(N,{children:"Button",...e});import{Fragment as _o,jsx as j,jsxs as Pt}from"react/jsx-runtime";var ga=M.states,Ma=M.defaultOptions,wa=M.options,La=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Oa=[],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:[j(Ne,{children:j(x,{icon:"lock"})}),T&&j(Ae,{})]}),j(oe,{placeholder:"Placeholder",value:"Value"}),C&&j(q,{valid:o,invalid:n,loading:a,disabled:l}),j(Z,{loading:a,disabled:l}),b&&j(W,{loading:a,disabled:l,readonly:d,value:"Value"}),h&&Pt(_o,{children:[T&&j(Ae,{}),j(Ce,{children:j(fe,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Te.options=wa;Te.states=ga;Te.variants=Oa;Te.defaultOptions=Ma;Te.modifiers=La;Te.className=M.className;import{jsx as Ra}from"react/jsx-runtime";var Po=e=>Ra(N,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Ka}from"react/jsx-runtime";var Ho=e=>Ka(N,{icon:"folder",children:"Button",...e});import{jsx as Ht}from"react/jsx-runtime";var _a=N.options,Pa=N.states,Ha={...N.defaultOptions,variant:"text"},za=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Da=[],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=_a;Ie.states=Pa;Ie.variants=za;Ie.defaultOptions=Ha;Ie.modifiers=Da;Ie.className=N.className;import{jsx as dt}from"react/jsx-runtime";var Ba="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,Ba,`k-chip-${t}-action`),children:n})};var zt="avatar",zo=zt;import{jsx as Do}from"react/jsx-runtime";var $e="k-avatar";var Fa=[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]},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=Fa;P.options=Ua;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 Va}from"react/jsx-runtime";var Bo=e=>Va(he,{type:"icon",...e});import{jsx as Ga}from"react/jsx-runtime";var Fo=e=>Ga(he,{type:"text",...e});import{jsx as Xa}from"react/jsx-runtime";var Uo=e=>Xa(he,{type:"image",...e});import{jsx as Fc}from"react/jsx-runtime";import{jsx as We}from"react/jsx-runtime";var $a=P.options,Wa=P.states,qa={...P.defaultOptions,variant:"image"},Ja=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Ya=[],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=$a;Ee.states=Wa;Ee.variants=Ja;Ee.defaultOptions=qa;Ee.modifiers=Ya;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 ja}from"react/jsx-runtime";var ut="k-chip",Qa=[i.hover,i.focus,i.active,i.selected,i.disabled],Za={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 ja("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=Qa;B.options=Za;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 ni}from"react/jsx-runtime";var Bt="k-chip-list",ei=[],ti={size:[s.undefined,s.small,s.medium,s.large]},oi={},w=e=>{let{size:t,multiselectable:o,ariaLabel:n,...a}=e;return ni("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=ei;w.options=ti;w.className=Bt;w.defaultOptions=oi;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 bd}from"react/jsx-runtime";import{jsx as Ad}from"react/jsx-runtime";import{jsx as ai}from"react/jsx-runtime";var ft=e=>ai(U,{text:"text",...e});import{jsx as Md}from"react/jsx-runtime";import{jsx as Rd}from"react/jsx-runtime";import{Fragment as Dd,jsx as zd,jsxs as Bd}from"react/jsx-runtime";import{jsx as Xd,jsxs as $d}from"react/jsx-runtime";import{jsx as Qd,jsxs as Zd}from"react/jsx-runtime";import{jsx as ap,jsxs as ip}from"react/jsx-runtime";import{jsx as ye,jsxs as di}from"react/jsx-runtime";var ii={...U.options,...w.options},ri=[],si=w.states,li={...U.defaultOptions,...w.defaultOptions},ci=[{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 di(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=ii;ge.states=si;ge.variants=ri;ge.defaultOptions=li;ge.modifiers=ci;ge.className=w.className;import{jsx as Ft}from"react/jsx-runtime";var pi=B.states,mi=B.defaultOptions,ui=B.options,fi=[],hi=[{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=ui;Me.states=pi;Me.variants=fi;Me.defaultOptions=mi;Me.modifiers=hi;Me.className=B.className;var Ut="popup",Go=Ut;import{jsx as Xo}from"react/jsx-runtime";var $o="k-animation-container",xi=[],bi={},Vt={positionMode:"absolute",shown:!0},ee=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})})};ee.states=xi;ee.options=bi;ee.className=$o;ee.defaultOptions=Vt;ee.moduleName=Ut;ee.folderName=Go;var Gt="popup",Wo=Gt;import{jsx as qo}from"react/jsx-runtime";var Jo="k-popup",vi=[],Ni={},Yo={positionMode:"absolute"},ae=e=>{let{offset:t,positionMode:o=Yo.positionMode,animationStyle:n,containerClassName:a,containerRole:l,containerAriaLabel:d,...c}=e;return qo(ee,{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=vi;ae.options=Ni;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 ki}from"react/jsx-runtime";var ht="k-actions",Ci=[],Ai={},$t={alignment:"start",orientation:"horizontal"},re=e=>{let{alignment:t=$t.alignment,orientation:o=$t.orientation,...n}=e;return ki("div",{...n,className:r(ht,{[`${ht}-${t}`]:t,[`${ht}-${o}`]:o},e.className),children:e.children})};re.states=Ci;re.options=Ai;re.className=ht;re.defaultOptions=$t;re.moduleName=Xt;re.folderName=Qo;import{jsx as Ii}from"react/jsx-runtime";var Ti="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 Ii(a,{...l,...!n&&{alignment:t,orientation:o},className:r(e.className,Ti),children:e.children})};var Wt="searchbox",jo=Wt;import{jsx as Je,jsxs as yi}from"react/jsx-runtime";var en="k-searchbox",Ei=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Si={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 yi(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(Z,{...e}),Je(q,{...e}),Je(W,{...e})]})};se.states=Ei;se.options=Si;se.className=en;se.defaultOptions=qt;se.moduleName=Wt;se.folderName=jo;import{jsx as Nm}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",gi=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Mi={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:te,"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:te,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(Z,{loading:L,disabled:_}),l&&le(W,{loading:L,disabled:_,readonly:X,value:b}),u&&Yt(on,{children:[a&&le(Ae,{}),le(Ce,{children:u})]})]})};H.states=gi;H.options=Mi;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 wi}from"react/jsx-runtime";var an=e=>wi(Ye,{...e});import{Fragment as Hm,jsx as Pm}from"react/jsx-runtime";import{Fragment as Vm,jsx as Um}from"react/jsx-runtime";import{jsx as Wm}from"react/jsx-runtime";import{jsx as Qt}from"react/jsx-runtime";var Li=H.states,Oi=H.defaultOptions,Ri=H.options,Ki=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],_i=[],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=Ri;Le.states=Li;Le.variants=_i;Le.defaultOptions=Oi;Le.modifiers=Ki;Le.className=H.className;import{jsx as ce,jsxs as Zt}from"react/jsx-runtime";var rn="k-actionsheet-titlebar",Pi={},J=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"})})]})};J.className=rn;J.defaultOptions=Pi;import{jsx as jt,jsxs as Bi}from"react/jsx-runtime";var eo="k-actionsheet-view",Hi=[],zi={},Di={},Oe=e=>{let{adaptive:t,animated:o,children:n,header:a,footer:l,titleId:d,...c}=e,u=a?.type===J&&jt(J,{adaptive:t,titleId:d,...a?.props}),h=l?.type===we&&jt(we,{...l?.props});return Bi("div",{...c,className:r(e.className,eo,{[`${eo}-animated`]:o}),children:[u,jt("div",{className:"k-actionsheet-content",children:n}),h]})};Oe.states=Hi;Oe.options=zi;Oe.className=eo;Oe.defaultOptions=Di;var Qe="action-sheet",bt=Qe;var to="overlay",sn=to;import{jsx as Gi}from"react/jsx-runtime";var ln="k-overlay",Fi=[],Ui={},Vi={},de=e=>{let{...t}=e;return Gi("div",{...t,className:r(e.className,ln),children:e.children})};de.states=Fi;de.options=Ui;de.className=ln;de.defaultOptions=Vi;de.moduleName=to;de.folderName=sn;import{jsx as vt,jsxs as Wi}from"react/jsx-runtime";var cn="k-actionsheet",Xi=[],$i={},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 Wi("div",{className:"k-actionsheet-container",children:[a&&vt(de,{}),vt(ee,{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=Xi;R.options=$i;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 Qi}from"react/jsx-runtime";var dn="k-actionsheet-container",qi=[],Ji={},Yi={},Re=e=>{let{children:t,...o}=e;return Qi("div",{...o,className:dn,children:t})};Re.states=qi;Re.options=Ji;Re.className=dn;Re.defaultOptions=Yi;Re.moduleName=Qe;Re.folderName=bt;import{jsx as Zi}from"react/jsx-runtime";var oo=e=>{let{...t}=e;return Zi("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};import{Fragment as er,jsx as je,jsxs as no}from"react/jsx-runtime";var ao="k-actionsheet-item",ji=[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(er,{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=ji;pe.className=ao;import{jsx as $u,jsxs as Wu}from"react/jsx-runtime";import{jsx as Qu}from"react/jsx-runtime";import{jsx as tf}from"react/jsx-runtime";import{jsx as rf}from"react/jsx-runtime";import{jsx as K,jsxs as io}from"react/jsx-runtime";var tr=R.options,or=R.states,mn={...R.defaultOptions,variant:"normal"},nr=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],ar=[{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(J,{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(J,{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=tr;Ke.states=or;Ke.variants=nr;Ke.defaultOptions=mn;Ke.modifiers=ar;Ke.className=R.className;import so from"react";import ro from"react";import{jsx as rr}from"react/jsx-runtime";var ir="k-treeview-group",F=e=>{let{children:t,dir:o,level:n=1,role:a="group",...l}=e;return rr("ul",{...l,className:r(e.className,ir),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",sr=[],lr={size:[s.undefined,s.small,s.medium,s.large]},cr={},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=sr;S.options=lr;S.className=lo;S.defaultOptions=cr;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",dr=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],pr={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},mr={},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=dr;V.options=pr;V.className=Ct;V.defaultOptions=mr;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 Y=V;import{jsx as hr}from"react/jsx-runtime";var hn="k-checkbox-list",ur=[],fr={},xn={layout:"vertical"},z=e=>{let{layout:t=xn.layout,...o}=e;return hr("ul",{...o,className:r(e.className,hn,{[`k-list-${t}`]:t}),children:e.children})};z.states=ur;z.options=fr;z.className=hn;z.defaultOptions=xn;z.moduleName=xe;z.folderName=_e;import{jsx as Nr}from"react/jsx-runtime";var bn="k-checkbox-list-item",xr=[],br={},vr={},D=e=>{let{...t}=e;return Nr("li",{...t,className:r(e.className,bn),children:e.children})};D.states=xr;D.options=br;D.className=bn;D.defaultOptions=vr;D.moduleName=xe;D.folderName=_e;import{Fragment as Cr,jsx as vn,jsxs as Ar}from"react/jsx-runtime";var ie=({children:e="Label",id:t="cb-label-after",...o})=>Ar(Cr,{children:[vn(Y,{id:t,...o}),vn("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as rh,jsx as ih,jsxs as sh}from"react/jsx-runtime";import{Fragment as mh,jsx as ph,jsxs as uh}from"react/jsx-runtime";import{Fragment as vh,jsx as bh,jsxs as Nh}from"react/jsx-runtime";import{jsx as Th}from"react/jsx-runtime";import{jsx as yh}from"react/jsx-runtime";import{jsx as Lh}from"react/jsx-runtime";import{jsx as G,jsxs as Nn}from"react/jsx-runtime";var kr=z.options,Tr=z.states,Ir={...z.defaultOptions,variant:"vertical"},Er=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Sr=[],Pe=e=>{let{variant:t,...o}=e;return t==="horizontal"?Nn(z,{layout:"horizontal",...o,children:[G(D,{children:G(ie,{id:$("cb"),defaultChecked:!0,children:"Label"})}),G(D,{children:G(ie,{id:$("cb"),children:"Label"})}),G(D,{children:G(ie,{id:$("cb"),children:"Label"})})]}):Nn(z,{...o,children:[G(D,{children:G(ie,{id:$("cb"),defaultChecked:!0,children:"Label"})}),G(D,{children:G(ie,{id:$("cb"),children:"Label"})}),G(D,{children:G(ie,{id:$("cb"),children:"Label"})})]})};Pe.options=kr;Pe.states=Tr;Pe.variants=Er;Pe.defaultOptions=Ir;Pe.modifiers=Sr;Pe.className=z.className;import{jsx as Or}from"react/jsx-runtime";var yr=Y.options,gr=Y.states,Mr=Y.defaultOptions,wr=[],Lr=[],He=e=>Or(ie,{id:$("checkbox"),...e,defaultChecked:!0,children:"Label"});He.options=yr;He.states=gr;He.variants=wr;He.defaultOptions=Mr;He.modifiers=Lr;He.className=Y.className;import{jsx as Cn,jsxs as _r}from"react/jsx-runtime";var co="k-treeview-leaf",Rr=[i.hover,i.focus,i.selected],Kr={},At=e=>{let{text:t,showIcon:o,icon:n,hover:a,focus:l,selected:d,...c}=e;return _r("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=Rr;At.options=Kr;At.className=co;var An=At;import{jsx as tt,jsxs as kn}from"react/jsx-runtime";var Tn="k-treeview-item",Pr=[i.hover,i.focus,i.selected,i.disabled],Hr={},zr={},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,(te,ue)=>po.isValidElement(te)?po.cloneElement(te,{dir:E,level:I+1,key:ue}):te)]})};v.states=Pr;v.options=Hr;v.className=Tn;v.defaultOptions=zr;v.moduleName=et;v.folderName=Nt;import{jsx as Nx}from"react/jsx-runtime";import{jsx as Tx,jsxs as Ix}from"react/jsx-runtime";import{jsx as gx,jsxs as Mx}from"react/jsx-runtime";import{jsx as Rx,jsxs as Kx}from"react/jsx-runtime";import{jsx as zx,jsxs as Dx}from"react/jsx-runtime";import{jsx as Vx,jsxs as Gx}from"react/jsx-runtime";import{jsx as be,jsxs as mo}from"react/jsx-runtime";var Dr=S.options,Br=S.states,Fr=S.defaultOptions,Ur=[{name:"checkboxes",title:"Show `Checkbox`",default:!1}],Vr=[],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=Dr;ze.states=Br;ze.variants=Vr;ze.defaultOptions=Fr;ze.modifiers=Ur;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",Gr=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Xr={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]},$r={},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:te,adaptiveSettings:ue,adaptiveTitle:De,adaptiveSubtitle:Be,adaptiveFilter:Mn,id:uo,treeviewId:wn,"aria-label":Ln,...On}=e,fo=uo?`${uo}-taglist`:void 0;return ot(Sn,{children:[ot(M,{...On,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":_?wn:void 0,"aria-autocomplete":"list","aria-describedby":c?fo:void 0,"aria-disabled":I?"true":void 0,"aria-label":Ln,tabIndex:0,children:!c&&k("span",{className:"k-input-value-text",children:d})}),k(q,{valid:T,invalid:y,loading:E,disabled:I}),k(Z,{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}),te&&k(R,{adaptive:!0,...ue,header:k(J,{actionsEnd:k(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:Mn,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=Gr;me.options=Xr;me.className=yn;me.defaultOptions=$r;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 gn=me;import{jsx as Wr}from"react/jsx-runtime";var Ib=e=>Wr(gn,{id:$("mst"),"aria-label":"Select options",showArrowButton:!0,...e});export{Ib as MultiSelectTreeArrowButton};