UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 39.7 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,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var S=(e,t)=>r({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),K=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:s,checked:d,active:c,selected:u,disabled:h,indeterminate:x,loading:T,empty:C,readonly:R,highlighted:O,...E}=t;return r({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":s,"k-checked":d,"k-active":c,"k-selected":u,"k-disabled":h,"k-indeterminate":x&&!d,"k-loading":T,"k-empty":C,"k-readonly":R,"k-highlighted":O},Object.keys(E).reduce((k,A)=>(A.startsWith("k-")?k[A]=E[A]:k[`k-${A}`]=E[A],k),{}))};function Jt(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={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"},b={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 rt={};function Z(e){return rt[e]=(rt[e]||0)+1,`k-${e}-${rt[e]}`}import{Fragment as pn,jsx as Yt}from"react/jsx-runtime";var st="k-font-icon",ln=[],dn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info]},cn={},Le=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:s,...d}=e;return a?Yt("span",{...d,className:r(e.className,st,S(st,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):Yt(pn,{})};Le.states=ln;Le.options=dn;Le.className=st;Le.defaultOptions=cn;var Qt=Le;import{Fragment as fn,jsx as $e}from"react/jsx-runtime";var lt="k-svg-icon",mn=[],un={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.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]},dt={viewBox:"0 0 24 24",variant:q.outline},Re=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:s=dt.viewBox,variant:d=dt.variant,icon:c,...u}=e;if(!c)return $e(fn,{});if(c==="none")return $e("span",{...u,className:r(e.className,lt,S("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let h=typeof c=="object"&&c.name&&c.name,x=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return $e("span",{...u,className:r(e.className,lt,S("k-icon",{size:t}),{[`k-svg-i-${h}`]:h,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:$e("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:c?void 0:e.children})})};Re.states=mn;Re.options=un;Re.className=lt;Re.defaultOptions=dt;var ct=Re;import*as pt from"@progress/kendo-svg-icons";var Zt="icon",jt="icons";import{useContext as xn}from"react";import{createContext as hn}from"react";var eo=hn({iconsType:"svg"});import{Fragment as to,jsx as Ke}from"react/jsx-runtime";var We="k-icon",bn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),vn=[],Nn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.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]},qe={viewBox:"0 0 24 24",type:"svg",variant:q.outline},N=e=>{let{iconsType:t}=xn(eo),{size:o,themeColor:a,icon:n,type:s=t||qe.type,rotate:d,flip:c,viewBox:u=qe.viewBox,variant:h=qe.variant,...x}=e;if(!n)return Ke(to,{});if((t||s)==="svg"){if(n==="none")return Ke(ct,{...x,className:r(e.className,We),icon:n,size:o,variant:h});let C=pt[n]?n:bn(`${n}-icon`);return pt[C]?Ke(ct,{...x,className:r(e.className,We),icon:pt[C],size:o,themeColor:a,rotate:d,flip:c,viewBox:u,variant:h}):Ke(to,{})}return Ke(Qt,{...x,className:r(e.className,We),icon:n,size:o,themeColor:a,rotate:d,flip:c})};N.states=vn;N.options=Nn;N.defaultOptions=qe;N.className=We;N.moduleName=Zt;N.folderName=jt;N.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var mt="button",oo=mt;import{Fragment as no,jsx as he,jsxs as ao}from"react/jsx-runtime";var _e="k-button",Tn=["icon-button"],kn=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],In={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.inverse]},ut={showArrow:!1,arrowIconName:"chevron-down"},v=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:s,showArrow:d=ut.showArrow,arrowIconName:c=ut.arrowIconName,variant:u,hover:h,focus:x,active:T,selected:C,disabled:R,togglable:O,ariaDisabled:E,icon:k,iconSize:A,text:D,iconClassName:U,className:B,...ce}=e,Me=k!=null,Oe=e.children!==void 0;return ao(t,{className:r(B,_e,Jt(_e,u),S(_e,{size:o,rounded:a,fillMode:n,themeColor:s}),K(_e,{hover:h,focus:x,active:T,disabled:R||E,selected:C}),{"k-icon-button":!D&&!Oe&&Me}),"aria-pressed":O?C?"true":"false":void 0,...ce,"aria-disabled":E?"true":void 0,disabled:R||void 0,children:[typeof k=="string"&&k&&he(N,{className:r(U,"k-button-icon"),icon:k,size:A}),k&&typeof k!="string"&&he(no,{children:k}),D?ao(no,{children:[D&&he("span",{className:"k-button-text",children:D}),e.children]}):e.children&&he("span",{className:"k-button-text",children:e.children}),d&&he("span",{className:"k-menu-button-arrow k-button-arrow",children:he(N,{icon:c})})]})};v.states=kn;v.options=In;v.variants=Tn;v.className=_e;v.defaultOptions=ut;v.moduleName=mt;v.folderName=oo;v.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 Cn}from"react/jsx-runtime";var io=e=>Cn(v,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Sn}from"react/jsx-runtime";var ro=e=>Sn(v,{icon:"folder",children:"Button",...e});import{jsx as wn}from"react/jsx-runtime";var pe=e=>wn(v,{children:"Button",...e});import{jsx as ft}from"react/jsx-runtime";var An=v.options,En=v.states,yn={...v.defaultOptions,variant:"text"},gn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Mn=[],xe=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return ft(io,{...o,icon:"star"});case"icon-and-text":return ft(ro,{...o,icon:"star",children:"Button"});default:return ft(pe,{...o,children:"Button"})}};xe.options=An;xe.states=En;xe.variants=gn;xe.defaultOptions=yn;xe.modifiers=Mn;xe.className=v.className;var Pe="input",Je=Pe;import{jsx as Kn}from"react/jsx-runtime";var Ye="k-input",On=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Ln={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Rn={},L=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c,size:u,rounded:h,fillMode:x,...T}=e;return Kn("span",{...T,className:r(e.className,Ye,S(Ye,{size:u,rounded:h,fillMode:x}),K(Ye,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c}))})};L.states=On;L.options=Ln;L.className=Ye;L.defaultOptions=Rn;L.moduleName=Pe;L.folderName=Je;import{jsx as Dn}from"react/jsx-runtime";var Qe="k-picker",_n=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Pn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Hn={},ne=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c,size:u,rounded:h,fillMode:x,...T}=e;return Dn("span",{...T,className:r(e.className,Qe,S(Qe,{size:u,rounded:h,fillMode:x}),K(Qe,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c})),children:e.children})};ne.states=_n;ne.options=Pn;ne.className=Qe;ne.defaultOptions=Hn;ne.moduleName=Pe;ne.folderName=Je;import{Fragment as Fn,jsx as ht}from"react/jsx-runtime";var so="k-clear-value",zn=[i.disabled,i.loading,i.readonly],Bn={},j=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?ht(Fn,{}):ht("span",{className:r(e.className,so),children:ht(N,{icon:"x"})})};j.states=zn;j.options=Bn;j.className=so;import{jsx as Gn}from"react/jsx-runtime";var xt="k-input-inner",Vn=[],Un={},Ze={type:"text",autocomplete:"off",value:"",placeholder:""},ee=e=>{let{value:t=Ze.value,type:o=Ze.type,placeholder:a=Ze.placeholder,autocomplete:n=Ze.autocomplete,disabled:s,readOnly:d,...c}=e;return Gn("input",{...c,type:o,className:r(e.className,xt,S(xt,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};ee.states=Vn;ee.options=Un;ee.className=xt;import{jsx as lo,jsxs as Wn}from"react/jsx-runtime";var bt="k-input-inner",Xn=[],$n={},He=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:s,...d}=e;return Wn("span",{...d,className:r(e.className,bt,S(bt,e)),children:[n,!n&&s&&lo(N,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&lo("span",{className:"k-input-value-text",children:t})]})};He.states=Xn;He.options=$n;He.className=bt;import{jsx as Yn}from"react/jsx-runtime";var vt="k-input-inner",qn=[],Jn={},co={value:"",placeholder:""},Nt=e=>{let{value:t=co.value,placeholder:o=co.placeholder,rows:a,disabled:n,...s}=e;return Yn("textarea",{...s,className:r(e.className,vt,S(vt,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Nt.states=qn;Nt.options=Jn;Nt.className=vt;import{Fragment as Zn,jsx as po}from"react/jsx-runtime";var mo="k-input-loading-icon",Qn=[i.disabled,i.loading],J=e=>{let{disabled:t,loading:o}=e;return t||!o?po(Zn,{}):po("span",{className:r(e.className,mo,"k-icon k-i-loading")})};J.states=Qn;J.className=mo;import{Fragment as ta,jsx as uo}from"react/jsx-runtime";var fo="k-input-validation-icon",jn=[i.valid,i.invalid,i.disabled,i.loading],ea={},G=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,s=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?uo(ta,{}):uo(N,{className:r(fo),icon:s})};G.states=jn;G.options=ea;G.className=fo;import{Fragment as aa,jsx as ho}from"react/jsx-runtime";var oa="k-input-prefix",na={direction:"horizontal"},be=e=>{let{direction:t=na.direction,...o}=e;return e.children?ho("span",{...o,className:r(oa,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ho(aa,{})};import{Fragment as sa,jsx as xo}from"react/jsx-runtime";var ia="k-input-suffix",ra={direction:"horizontal"},ve=e=>{let{direction:t=ra.direction,...o}=e;return e.children?xo("span",{...o,className:r(ia,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):xo(sa,{})};import{jsx as Bs}from"react/jsx-runtime";import{jsx as Gs}from"react/jsx-runtime";import{jsx as da}from"react/jsx-runtime";var bo="k-input-separator",la={direction:"vertical"},Ne=e=>{let{direction:t=la.direction,...o}=e;return da("span",{...o,className:r(bo,e.className,{[`${bo}-${t}`]:t})})};import{Fragment as vo,jsx as Y,jsxs as Tt}from"react/jsx-runtime";var ca=L.states,pa=L.defaultOptions,ma=L.options,ua=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],fa=[],Te=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:s,readonly:d,...c}=e,u=t?.prefix,h=t?.suffix,x=t?.["clear-button"],T=t?.["validation-icon"],C=t?.separators;return Tt(L,{...c,valid:o,invalid:a,loading:n,disabled:s,readonly:d,style:{width:300},children:[u&&Tt(vo,{children:[Y(be,{children:Y(N,{icon:"lock"})}),C&&Y(Ne,{})]}),Y(ee,{placeholder:"Placeholder",value:"Value"}),T&&Y(G,{valid:o,invalid:a,loading:n,disabled:s}),Y(J,{loading:n,disabled:s}),x&&Y(j,{loading:n,disabled:s,readonly:d,value:"Value"}),h&&Tt(vo,{children:[C&&Y(Ne,{}),Y(ve,{children:Y(pe,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Te.options=ma;Te.states=ca;Te.variants=fa;Te.defaultOptions=pa;Te.modifiers=ua;Te.className=L.className;var kt="popup",No=kt;import{jsx as To}from"react/jsx-runtime";var ko="k-animation-container",ha=[],xa={},It={positionMode:"absolute",shown:!0},Q=e=>{let{positionMode:t=It.positionMode,shown:o=It.shown,animationStyle:a,offset:n,...s}=e;return To("div",{...s,style:{...n,...e.style},className:r(e.className,ko,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:To("div",{className:"k-child-animation-container",style:a,children:e.children})})};Q.states=ha;Q.options=xa;Q.className=ko;Q.defaultOptions=It;Q.moduleName=kt;Q.folderName=No;var Ct="popup",Io=Ct;import{jsx as Co}from"react/jsx-runtime";var So="k-popup",ba=[],va={},wo={positionMode:"absolute"},te=e=>{let{offset:t,positionMode:o=wo.positionMode,animationStyle:a,containerClassName:n,containerRole:s,containerAriaLabel:d,...c}=e;return Co(Q,{positionMode:o,offset:t,animationStyle:a,className:n,role:s,"aria-label":d,children:Co("div",{...c,className:r(e.className,So),children:e.children})})};te.states=ba;te.options=va;te.className=So;te.defaultOptions=wo;te.moduleName=Ct;te.folderName=Io;te.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 St="action-buttons",Ao=St;import{jsx as ka}from"react/jsx-runtime";var je="k-actions",Na=[],Ta={},wt={alignment:"start",orientation:"horizontal"},ae=e=>{let{alignment:t=wt.alignment,orientation:o=wt.orientation,...a}=e;return ka("div",{...a,className:r(je,{[`${je}-${t}`]:t,[`${je}-${o}`]:o},e.className),children:e.children})};ae.states=Na;ae.options=Ta;ae.className=je;ae.defaultOptions=wt;ae.moduleName=St;ae.folderName=Ao;import{jsx as Ca}from"react/jsx-runtime";var Ia="k-actionsheet-footer",Eo={alignment:"stretched",orientation:"horizontal"},ke=e=>{let{alignment:t=Eo.alignment,orientation:o=Eo.orientation,template:a,as:n=a?"div":ae,...s}=e;return Ca(n,{...s,...!a&&{alignment:t,orientation:o},className:r(e.className,Ia),children:e.children})};var At="searchbox",yo=At;import{jsx as De,jsxs as Aa}from"react/jsx-runtime";var go="k-searchbox",Sa=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],wa={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Et={showIcon:!0,icon:"search"},ie=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:s,hover:d,focus:c,valid:u,invalid:h,required:x,loading:T,disabled:C,showIcon:R=Et.showIcon,icon:O=Et.icon,"aria-label":E,...k}=e;return Aa(L,{...k,size:a,rounded:n,fillMode:s,hover:d,focus:c,valid:u,invalid:h,required:x,loading:T,disabled:C,className:r(e.className,go),children:[R&&De(N,{className:"k-input-icon",icon:O}),De(ee,{placeholder:o,value:t,"aria-label":E}),De(J,{...e}),De(G,{...e}),De(j,{...e})]})};ie.states=Sa;ie.options=wa;ie.className=go;ie.defaultOptions=Et;ie.moduleName=At;ie.folderName=yo;import{jsx as rd}from"react/jsx-runtime";var yt="textbox",Mo=yt;import{Fragment as Oo,jsx as re,jsxs as gt}from"react/jsx-runtime";var Lo="k-textbox",Ea=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],ya={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},et={showClearButton:!0,showValidationIcon:!0,separators:!0},_=e=>{let{size:t,rounded:o,fillMode:a,separators:n=et.separators,showClearButton:s=et.showClearButton,showValidationIcon:d=et.showValidationIcon,prefix:c,suffix:u,type:h,value:x,placeholder:T,hover:C,focus:R,valid:O,invalid:E,required:k,loading:A,disabled:D,readonly:U,id:B,"aria-label":ce,"aria-describedby":Me,...Oe}=e;return gt(L,{...Oe,size:t,rounded:o,fillMode:a,hover:C,focus:R,valid:O,invalid:E,required:k,loading:A,disabled:D,readonly:U,className:r(e.className,Lo),children:[c&&gt(Oo,{children:[re(be,{children:c}),n&&re(Ne,{})]}),re(ee,{id:B,placeholder:T,value:x,type:h,disabled:D,"aria-label":ce,"aria-describedby":Me,"aria-invalid":E?"true":void 0}),d&&re(G,{valid:O,invalid:E,loading:A,disabled:D}),re(J,{loading:A,disabled:D}),s&&re(j,{loading:A,disabled:D,readonly:U,value:x}),u&&gt(Oo,{children:[n&&re(Ne,{}),re(ve,{children:u})]})]})};_.states=Ea;_.options=ya;_.className=Lo;_.defaultOptions=et;_.moduleName=yt;_.folderName=Mo;_.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 ze=_;import{jsx as ga}from"react/jsx-runtime";var Ro=e=>ga(ze,{...e});import{Fragment as Sd,jsx as Cd}from"react/jsx-runtime";import{Fragment as Md,jsx as gd}from"react/jsx-runtime";import{jsx as Kd}from"react/jsx-runtime";import{jsx as Mt}from"react/jsx-runtime";var Ma=_.states,Oa=_.defaultOptions,La=_.options,Ra=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Ka=[],Ie=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?Mt(N,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?Mt(pe,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),Mt(Ro,{value:"Value",style:{width:300},...o,...a})};Ie.options=La;Ie.states=Ma;Ie.variants=Ka;Ie.defaultOptions=Oa;Ie.modifiers=Ra;Ie.className=_.className;import{jsx as se,jsxs as Ot}from"react/jsx-runtime";var Ko="k-actionsheet-titlebar",_a={},X=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:s,input:d,inputValue:c,inputPlaceholder:u,adaptive:h,titleId:x,children:T,...C}=e;return Ot("div",{...C,className:r(e.className,Ko),children:[Ot("div",{className:"k-actionsheet-titlebar-group",children:[a&&se("div",{className:"k-actionsheet-actions",children:a}),!T&&Ot("div",{className:"k-actionsheet-title",id:x,children:[t&&se("div",{className:"k-text-center",children:t}),o&&se("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),T&&se("div",{className:"k-actionsheet-title",id:x,children:T}),n&&se("div",{className:"k-actionsheet-actions",children:n})]}),(d||s)&&se("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?se(_,{value:c,placeholder:u,size:h?"large":"medium","aria-label":t||u||"Input"}):se(ie,{placeholder:"Filter",size:h?"large":"medium","aria-label":"Filter options"})})]})};X.className=Ko;X.defaultOptions=_a;import{jsx as Lt,jsxs as za}from"react/jsx-runtime";var Rt="k-actionsheet-view",Pa=[],Ha={},Da={},Ce=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:s,titleId:d,...c}=e,u=n?.type===X&&Lt(X,{adaptive:t,titleId:d,...n?.props}),h=s?.type===ke&&Lt(ke,{...s?.props});return za("div",{...c,className:r(e.className,Rt,{[`${Rt}-animated`]:o}),children:[u,Lt("div",{className:"k-actionsheet-content",children:a}),h]})};Ce.states=Pa;Ce.options=Ha;Ce.className=Rt;Ce.defaultOptions=Da;var Be="action-sheet",tt=Be;var Kt="overlay",_o=Kt;import{jsx as Ua}from"react/jsx-runtime";var Po="k-overlay",Ba=[],Fa={},Va={},le=e=>{let{...t}=e;return Ua("div",{...t,className:r(e.className,Po),children:e.children})};le.states=Ba;le.options=Fa;le.className=Po;le.defaultOptions=Va;le.moduleName=Kt;le.folderName=_o;import{jsx as ot,jsxs as $a}from"react/jsx-runtime";var Ho="k-actionsheet",Ga=[],Xa={},Fe={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},y=e=>{let{side:t=Fe.side,fullscreen:o=Fe.fullscreen,adaptive:a=Fe.adaptive,overlay:n=Fe.overlay,template:s,children:d,header:c,footer:u,id:h,...x}=e,T=h&&!s&&c?`${h}-title`:void 0;return $a("div",{className:"k-actionsheet-container",children:[n&&ot(le,{}),ot(Q,{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:ot("div",{...x,id:h,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":T,className:r(e.className,Ho,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||ot(Ce,{header:c,footer:u,adaptive:a,titleId:T,...e,children:d})})})]})};y.states=Ga;y.options=Xa;y.className=Ho;y.defaultOptions=Fe;y.moduleName=Be;y.folderName=tt;y.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 Ya}from"react/jsx-runtime";var Do="k-actionsheet-container",Wa=[],qa={},Ja={},Se=e=>{let{children:t,...o}=e;return Ya("div",{...o,className:Do,children:t})};Se.states=Wa;Se.options=qa;Se.className=Do;Se.defaultOptions=Ja;Se.moduleName=Be;Se.folderName=tt;import{jsx as Qa}from"react/jsx-runtime";var _t=e=>{let{...t}=e;return Qa("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};import{Fragment as ja,jsx as Ve,jsxs as Pt}from"react/jsx-runtime";var Ht="k-actionsheet-item",Za=[i.hover,i.focus,i.selected,i.disabled],de=e=>{let{iconName:t,text:o,description:a,hover:n,focus:s,selected:d,disabled:c,...u}=e;return Pt("span",{...u,className:r(e.className,Ht,K(Ht,{hover:n,focus:s,selected:d,disabled:c})),children:[!e.children&&Ve(ja,{children:Pt("span",{className:"k-actionsheet-action",children:[t&&Ve("span",{className:"k-icon-wrap",children:Ve(N,{className:"k-actionsheet-item-icon",icon:t})}),Pt("span",{className:"k-actionsheet-item-text",children:[o&&Ve("span",{className:"k-actionsheet-item-title",children:o}),a&&Ve("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};de.states=Za;de.className=Ht;import{jsx as Rc,jsxs as Kc}from"react/jsx-runtime";import{jsx as Dc}from"react/jsx-runtime";import{jsx as Vc}from"react/jsx-runtime";import{jsx as $c}from"react/jsx-runtime";import{jsx as g,jsxs as Dt}from"react/jsx-runtime";var ei=y.options,ti=y.states,Bo={...y.defaultOptions,variant:"normal"},oi=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],ni=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],we=e=>{let{variant:t,modifiers:o,...a}={...Bo,...e},n={},s=Dt(_t,{children:[g(de,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),g(de,{text:"Add to Favorites",iconName:"heart"}),g(de,{text:"Upload New",iconName:"upload",disabled:!0}),g("hr",{className:"k-hr"}),g(de,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":n.actionsStart=!!o?.[u],n.actionsEnd=!!o?.[u];break;case"subtitle":n.subtitle=o?.[u]?d:void 0;break;case"footer":n.footer=!!o?.[u];break;default:break}}),t==="adaptive"?g(y,{...a,adaptive:!0,fullscreen:n.fullScreen,header:g(X,{actionsStart:n.actionsStart?g(v,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(v,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Dt(ke,{alignment:"stretched",children:[g(v,{text:"Cancel",size:"large",themeColor:"base"}),g(v,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):g(y,{...a,fullscreen:n.fullScreen,header:g(X,{actionsStart:n.actionsStart?g(v,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?g(v,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Dt(ke,{alignment:"stretched",children:[g(v,{text:"Apply",themeColor:"primary"}),g(v,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};we.options=ei;we.states=ti;we.variants=oi;we.defaultOptions=Bo;we.modifiers=ni;we.className=y.className;import Bt from"react";import zt from"react";import{jsx as ii}from"react/jsx-runtime";var ai="k-treeview-group",M=e=>{let{children:t,dir:o,level:a=1,role:n="group",...s}=e;return ii("ul",{...s,className:r(e.className,ai),role:n,children:zt.Children.map(t,(d,c)=>zt.isValidElement(d)?zt.cloneElement(d,{dir:o,level:a,key:c}):d)})};var Ue="treeview",nt=Ue;import{jsx as Fo}from"react/jsx-runtime";var Ft="k-treeview",ri=[],si={size:[l.undefined,l.small,l.medium,l.large]},li={},I=e=>{let{size:t,children:o,dir:a,...n}=e;return Fo("div",{...n,dir:a,className:r(e.className,Ft,S(Ft,{size:t})),children:Fo(M,{className:"k-treeview-lines",role:"tree",dir:a,children:Bt.Children.map(o,(s,d)=>Bt.isValidElement(s)?Bt.cloneElement(s,{dir:a,key:d}):s)})})};I.states=ri;I.options=si;I.className=Ft;I.defaultOptions=li;I.moduleName=Ue;I.folderName=nt;I.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 Ut from"react";var me="checkbox",Ae=me;import{jsx as Vo}from"react/jsx-runtime";var at="k-checkbox",di=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],ci={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},pi={},F=e=>{let{id:t,checked:o,indeterminate:a,hover:n,focus:s,disabled:d,invalid:c,valid:u,required:h,size:x,rounded:T,wrapperRole:C,...R}=e;return Vo("span",{className:"k-checkbox-wrap",role:C,children:Vo("input",{...R,id:t,type:"checkbox",defaultChecked:o,required:h,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:r(e.className,at,S(at,{size:x,rounded:T}),K(at,{hover:n,focus:s,disabled:d,invalid:c,valid:u,indeterminate:a,checked:o}))})})};F.states=di;F.options=ci;F.className=at;F.defaultOptions=pi;F.moduleName=me;F.folderName=Ae;F.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 $=F;import{jsx as fi}from"react/jsx-runtime";var Uo="k-checkbox-list",mi=[],ui={},Go={layout:"vertical"},P=e=>{let{layout:t=Go.layout,...o}=e;return fi("ul",{...o,className:r(e.className,Uo,{[`k-list-${t}`]:t}),children:e.children})};P.states=mi;P.options=ui;P.className=Uo;P.defaultOptions=Go;P.moduleName=me;P.folderName=Ae;import{jsx as vi}from"react/jsx-runtime";var Xo="k-checkbox-list-item",hi=[],xi={},bi={},H=e=>{let{...t}=e;return vi("li",{...t,className:r(e.className,Xo),children:e.children})};H.states=hi;H.options=xi;H.className=Xo;H.defaultOptions=bi;H.moduleName=me;H.folderName=Ae;import{Fragment as Ni,jsx as $o,jsxs as Ti}from"react/jsx-runtime";var oe=({children:e="Label",id:t="cb-label-after",...o})=>Ti(Ni,{children:[$o($,{id:t,...o}),$o("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as $p,jsx as Xp,jsxs as Wp}from"react/jsx-runtime";import{Fragment as Zp,jsx as Qp,jsxs as jp}from"react/jsx-runtime";import{Fragment as am,jsx as nm,jsxs as im}from"react/jsx-runtime";import{jsx as dm}from"react/jsx-runtime";import{jsx as um}from"react/jsx-runtime";import{jsx as bm}from"react/jsx-runtime";import{jsx as V,jsxs as Wo}from"react/jsx-runtime";var ki=P.options,Ii=P.states,Ci={...P.defaultOptions,variant:"vertical"},Si=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],wi=[],Ee=e=>{let{variant:t,...o}=e;return t==="horizontal"?Wo(P,{layout:"horizontal",...o,children:[V(H,{children:V(oe,{id:Z("cb"),defaultChecked:!0,children:"Label"})}),V(H,{children:V(oe,{id:Z("cb"),children:"Label"})}),V(H,{children:V(oe,{id:Z("cb"),children:"Label"})})]}):Wo(P,{...o,children:[V(H,{children:V(oe,{id:Z("cb"),defaultChecked:!0,children:"Label"})}),V(H,{children:V(oe,{id:Z("cb"),children:"Label"})}),V(H,{children:V(oe,{id:Z("cb"),children:"Label"})})]})};Ee.options=ki;Ee.states=Ii;Ee.variants=Si;Ee.defaultOptions=Ci;Ee.modifiers=wi;Ee.className=P.className;import{jsx as Oi}from"react/jsx-runtime";var Ai=$.options,Ei=$.states,yi=$.defaultOptions,gi=[],Mi=[],ye=e=>Oi(oe,{id:Z("checkbox"),...e,defaultChecked:!0,children:"Label"});ye.options=Ai;ye.states=Ei;ye.variants=gi;ye.defaultOptions=yi;ye.modifiers=Mi;ye.className=$.className;import{jsx as qo,jsxs as Ki}from"react/jsx-runtime";var Vt="k-treeview-leaf",Li=[i.hover,i.focus,i.selected],Ri={},it=e=>{let{text:t,showIcon:o,icon:a,hover:n,focus:s,selected:d,...c}=e;return Ki("span",{...c,className:r(e.className,Vt,K(Vt,{hover:n,focus:s,selected:d})),children:[o&&qo(N,{icon:a}),qo("span",{className:"k-treeview-leaf-text",children:t})]})};it.states=Li;it.options=Ri;it.className=Vt;var Jo=it;import{jsx as Ge,jsxs as Yo}from"react/jsx-runtime";var Qo="k-treeview-item",_i=[i.hover,i.focus,i.selected,i.disabled],Pi={},Hi={},f=e=>{let{leafClassName:t,children:o,hasChildren:a,expanded:n,loading:s,text:d,showIcon:c,icon:u,showCheckbox:h,checked:x,hover:T,focus:C,selected:R,disabled:O,dir:E,level:k=1,ariaSelected:A,...D}=e,U=a||o||s;return Yo("li",{...D,className:r(e.className,Qo),style:{"--kendo-treeview-level":k},role:"treeitem","aria-expanded":U?n?"true":"false":void 0,"aria-checked":h?x?"true":"false":void 0,"aria-selected":A?"true":void 0,"aria-disabled":O?"true":void 0,children:[Yo("span",{className:r("k-treeview-item-content",K("k-treeview-item-content",{hover:T,focus:C,selected:R,disabled:O})),children:[U&&Ge("span",{className:r("k-treeview-toggle",K("k-treeview-toggle",{disabled:O})),children:s?Ge("span",{className:"k-icon k-i-loading"}):Ge(N,{icon:n?"chevron-down":E==="rtl"?"chevron-left":"chevron-right"})}),h&&Ge(F,{checked:x,disabled:O,"aria-label":d,tabIndex:-1}),Ge(Jo,{className:t,text:d,showIcon:c,icon:u})]}),n&&U&&Ut.Children.map(o,(B,ce)=>Ut.isValidElement(B)?Ut.cloneElement(B,{dir:E,level:k+1,key:ce}):B)]})};f.states=_i;f.options=Pi;f.className=Qo;f.defaultOptions=Hi;f.moduleName=Ue;f.folderName=nt;import{jsx as iu}from"react/jsx-runtime";import{jsx as du,jsxs as cu}from"react/jsx-runtime";import{jsx as fu,jsxs as hu}from"react/jsx-runtime";import{jsx as Nu,jsxs as Tu}from"react/jsx-runtime";import{jsx as Su,jsxs as wu}from"react/jsx-runtime";import{jsx as gu,jsxs as Mu}from"react/jsx-runtime";import{jsx as ue,jsxs as Gt}from"react/jsx-runtime";var Di=I.options,zi=I.states,Bi=I.defaultOptions,Fi=[{name:"checkboxes",title:"Show `Checkbox`",default:!1}],Vi=[],ge=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{n==="checkboxes"&&(a.showCheckbox=t?.[n])}),Gt(I,{...o,children:[ue(f,{text:"Furniture",expanded:!0,...a,children:Gt(M,{children:[ue(f,{text:"Tables & Chairs",...a}),ue(f,{text:"Sofas",...a}),ue(f,{text:"Occasional Furniture",...a})]})}),Gt(f,{text:"Decor",expanded:!1,...a,children:[ue(f,{text:"Bed Linen",...a}),ue(f,{text:"Curtains & Blinds",...a}),ue(f,{text:"Carpets",...a})]})]})};ge.options=Di;ge.states=zi;ge.variants=Vi;ge.defaultOptions=Bi;ge.modifiers=Fi;ge.className=I.className;var Zo="dropdown-tree",jo="dropdowntree";import{Fragment as Xi,jsx as w,jsxs as Xe}from"react/jsx-runtime";var en="k-dropdowntree",Ui=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Gi={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Xt={showValue:!0,arrowIconName:"chevron-down"},z=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:n=Xt.arrowIconName,showValue:s=Xt.showValue,valueIconName:d,prefix:c,suffix:u,value:h,placeholder:x,hover:T,focus:C,valid:R,invalid:O,required:E,loading:k,disabled:A,readonly:D,popup:U,opened:B,adaptive:ce,adaptiveSettings:Me,adaptiveTitle:Oe,adaptiveSubtitle:on,adaptiveFilter:nn,dir:$t,id:Wt,treeviewId:an,"aria-label":rn,...sn}=e,qt=Wt?`${Wt}-value`:void 0;return Xe(Xi,{children:[Xe(ne,{...sn,dir:$t,size:t,rounded:o,fillMode:a,hover:T,focus:C,valid:R,invalid:O,required:E,loading:k,disabled:A,readonly:D,className:r(e.className,en,{"k-icon-picker":!s&&d}),role:"combobox","aria-haspopup":"tree","aria-expanded":B?"true":"false","aria-controls":B?an:void 0,"aria-describedby":B?qt:void 0,"aria-disabled":A?"true":void 0,"aria-label":rn,tabIndex:0,children:[w(be,{children:c}),w(He,{placeholder:x,value:h,showValue:s,valueIconName:d,id:qt}),w(G,{valid:R,invalid:O,loading:k,disabled:A}),w(J,{loading:k,disabled:A}),w(ve,{children:u}),w(v,{className:"k-input-button",icon:n,size:e.size,fillMode:e.fillMode,"aria-label":"Open popup",tabIndex:-1})]}),B&&U&&w(te,{className:"k-list-container k-dropdowntree-popup",dir:$t,containerRole:"region",containerAriaLabel:"DropdownTree options",children:U}),ce&&w(y,{adaptive:!0,...Me,header:w(X,{actionsEnd:w(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:nn,inputValue:h,inputPlaceholder:x,title:Oe,subtitle:on}),children:Xe(I,{size:"large",children:[w(f,{text:"Root 1"}),w(f,{text:"Root 2",expanded:!0,children:Xe(M,{children:[w(f,{text:"Child 2.1"}),w(f,{text:"Child 2.2",children:w(M,{children:w(f,{text:"Child 2.2.1"})})}),w(f,{text:"Child 2.3"})]})}),w(f,{text:"Root 3",children:Xe(M,{children:[w(f,{text:"Child 3.1"}),w(f,{text:"Child 3.2"}),w(f,{text:"Child 3.3"})]})})]})})]})};z.states=Ui;z.options=Gi;z.className=en;z.defaultOptions=Xt;z.moduleName=Zo;z.folderName=jo;z.ariaSpec={rules:[{selector:".k-dropdowntree",attribute:"role=combobox",usage:"Announces the dropdown tree element."},{selector:".k-dropdowntree",attribute:"aria-haspopup=tree",usage:"Indicates the presence of a tree popup."},{selector:".k-dropdowntree",attribute:"aria-expanded",usage:"Announces the popup visibility state."},{selector:".k-dropdowntree",attribute:"aria-label",usage:"Accessible name for the dropdown tree."},{selector:".k-dropdowntree",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-dropdowntree.k-disabled",attribute:"aria-disabled=true",usage:"Rendered when the dropdown tree is disabled."},{selector:".k-dropdowntree .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-dropdowntree .k-input-button",attribute:"tabindex=-1",usage:"The button must not be focusable."}]};import{jsx as W,jsxs as tn}from"react/jsx-runtime";var $i=z.states,Wi=z.defaultOptions,qi=z.options,Ji=[{name:"opened",title:"Opened"}],Yi=[],fe=e=>{let{modifiers:t,...o}=e,a={},n=tn(I,{size:o.size,style:{width:300},children:[W(f,{text:"Root Item",expanded:!0,children:tn(M,{children:[W(f,{text:"Child Item"}),W(f,{text:"Child Item"}),W(f,{text:"Child Item",children:W(M,{children:W(f,{text:"Child Item Nested"})})})]})}),W(f,{text:"Root Item",children:W(M,{children:W(f,{text:"Child Item"})})})]});return Object.keys(t||{}).forEach(s=>{s==="opened"&&(a.opened=!!t?.[s],a.popup=t?.[s]?n:void 0)}),W("div",{children:W(z,{placeholder:"Value",style:{width:300},...o,...a})})};fe.options=qi;fe.states=$i;fe.variants=Yi;fe.defaultOptions=Wi;fe.modifiers=Ji;fe.className=z.className;var pf=fe;export{fe as DropdowntreeDemo,pf as default};