@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 39.4 kB
JavaScript
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"}),_=(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:M,...w}=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":M},Object.keys(w).reduce((k,E)=>(E.startsWith("k-")?k[E]=w[E]:k[`k-${E}`]=w[E],k),{}))};function qt(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"},W={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 it={};function z(e){return it[e]=(it[e]||0)+1,`k-${e}-${it[e]}`}import{Fragment as pn,jsx as Jt}from"react/jsx-runtime";var rt="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={},Oe=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:s,...d}=e;return a?Jt("span",{...d,className:r(e.className,rt,S(rt,{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"}):Jt(pn,{})};Oe.states=ln;Oe.options=dn;Oe.className=rt;Oe.defaultOptions=cn;var Yt=Oe;import{Fragment as fn,jsx as Xe}from"react/jsx-runtime";var st="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:[W.outline,W.solid,W.duotone]},lt={viewBox:"0 0 24 24",variant:W.outline},Le=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:s=lt.viewBox,variant:d=lt.variant,icon:c,...u}=e;if(!c)return Xe(fn,{});if(c==="none")return Xe("span",{...u,className:r(e.className,st,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 Xe("span",{...u,className:r(e.className,st,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:Xe("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})})};Le.states=mn;Le.options=un;Le.className=st;Le.defaultOptions=lt;var dt=Le;import*as ct from"@progress/kendo-svg-icons";var Qt="icon",Zt="icons";import{useContext as xn}from"react";import{createContext as hn}from"react";var jt=hn({iconsType:"svg"});import{Fragment as eo,jsx as Re}from"react/jsx-runtime";var $e="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:[W.outline,W.solid,W.duotone]},We={viewBox:"0 0 24 24",type:"svg",variant:W.outline},N=e=>{let{iconsType:t}=xn(jt),{size:o,themeColor:a,icon:n,type:s=t||We.type,rotate:d,flip:c,viewBox:u=We.viewBox,variant:h=We.variant,...x}=e;if(!n)return Re(eo,{});if((t||s)==="svg"){if(n==="none")return Re(dt,{...x,className:r(e.className,$e),icon:n,size:o,variant:h});let C=ct[n]?n:bn(`${n}-icon`);return ct[C]?Re(dt,{...x,className:r(e.className,$e),icon:ct[C],size:o,themeColor:a,rotate:d,flip:c,viewBox:u,variant:h}):Re(eo,{})}return Re(Yt,{...x,className:r(e.className,$e),icon:n,size:o,themeColor:a,rotate:d,flip:c})};N.states=vn;N.options=Nn;N.defaultOptions=We;N.className=$e;N.moduleName=Qt;N.folderName=Zt;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 pt="button",to=pt;import{Fragment as oo,jsx as fe,jsxs as no}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]},mt={showArrow:!1,arrowIconName:"chevron-down"},v=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:s,showArrow:d=mt.showArrow,arrowIconName:c=mt.arrowIconName,variant:u,hover:h,focus:x,active:T,selected:C,disabled:R,togglable:M,ariaDisabled:w,icon:k,iconSize:E,text:D,iconClassName:U,className:B,...ce}=e,ge=k!=null,Me=e.children!==void 0;return no(t,{className:r(B,_e,qt(_e,u),S(_e,{size:o,rounded:a,fillMode:n,themeColor:s}),_(_e,{hover:h,focus:x,active:T,disabled:R||w,selected:C}),{"k-icon-button":!D&&!Me&&ge}),"aria-pressed":M?C?"true":"false":void 0,...ce,"aria-disabled":w?"true":void 0,disabled:R||void 0,children:[typeof k=="string"&&k&&fe(N,{className:r(U,"k-button-icon"),icon:k,size:E}),k&&typeof k!="string"&&fe(oo,{children:k}),D?no(oo,{children:[D&&fe("span",{className:"k-button-text",children:D}),e.children]}):e.children&&fe("span",{className:"k-button-text",children:e.children}),d&&fe("span",{className:"k-menu-button-arrow k-button-arrow",children:fe(N,{icon:c})})]})};v.states=kn;v.options=In;v.variants=Tn;v.className=_e;v.defaultOptions=mt;v.moduleName=pt;v.folderName=to;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 ao=e=>Cn(v,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Sn}from"react/jsx-runtime";var io=e=>Sn(v,{icon:"folder",children:"Button",...e});import{jsx as An}from"react/jsx-runtime";var pe=e=>An(v,{children:"Button",...e});import{jsx as ut}from"react/jsx-runtime";var En=v.options,wn=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=[],he=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return ut(ao,{...o,icon:"star"});case"icon-and-text":return ut(io,{...o,icon:"star",children:"Button"});default:return ut(pe,{...o,children:"Button"})}};he.options=En;he.states=wn;he.variants=gn;he.defaultOptions=yn;he.modifiers=Mn;he.className=v.className;var Ke="input",qe=Ke;import{jsx as _n}from"react/jsx-runtime";var Je="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={},O=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 _n("span",{...T,className:r(e.className,Je,S(Je,{size:u,rounded:h,fillMode:x}),_(Je,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c}))})};O.states=On;O.options=Ln;O.className=Je;O.defaultOptions=Rn;O.moduleName=Ke;O.folderName=qe;import{jsx as Dn}from"react/jsx-runtime";var Ye="k-picker",Kn=[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={},oe=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,Ye,S(Ye,{size:u,rounded:h,fillMode:x}),_(Ye,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c})),children:e.children})};oe.states=Kn;oe.options=Pn;oe.className=Ye;oe.defaultOptions=Hn;oe.moduleName=Ke;oe.folderName=qe;import{Fragment as Fn,jsx as ft}from"react/jsx-runtime";var ro="k-clear-value",Bn=[i.disabled,i.loading,i.readonly],zn={},Q=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?ft(Fn,{}):ft("span",{className:r(e.className,ro),children:ft(N,{icon:"x"})})};Q.states=Bn;Q.options=zn;Q.className=ro;import{jsx as Gn}from"react/jsx-runtime";var ht="k-input-inner",Vn=[],Un={},Qe={type:"text",autocomplete:"off",value:"",placeholder:""},Z=e=>{let{value:t=Qe.value,type:o=Qe.type,placeholder:a=Qe.placeholder,autocomplete:n=Qe.autocomplete,disabled:s,readOnly:d,...c}=e;return Gn("input",{...c,type:o,className:r(e.className,ht,S(ht,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};Z.states=Vn;Z.options=Un;Z.className=ht;import{jsx as so,jsxs as Wn}from"react/jsx-runtime";var xt="k-input-inner",Xn=[],$n={},Pe=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:s,...d}=e;return Wn("span",{...d,className:r(e.className,xt,S(xt,e)),children:[n,!n&&s&&so(N,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&so("span",{className:"k-input-value-text",children:t})]})};Pe.states=Xn;Pe.options=$n;Pe.className=xt;import{jsx as Yn}from"react/jsx-runtime";var bt="k-input-inner",qn=[],Jn={},lo={value:"",placeholder:""},vt=e=>{let{value:t=lo.value,placeholder:o=lo.placeholder,rows:a,disabled:n,...s}=e;return Yn("textarea",{...s,className:r(e.className,bt,S(bt,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};vt.states=qn;vt.options=Jn;vt.className=bt;import{Fragment as Zn,jsx as co}from"react/jsx-runtime";var po="k-input-loading-icon",Qn=[i.disabled,i.loading],q=e=>{let{disabled:t,loading:o}=e;return t||!o?co(Zn,{}):co("span",{className:r(e.className,po,"k-icon k-i-loading")})};q.states=Qn;q.className=po;import{Fragment as ta,jsx as mo}from"react/jsx-runtime";var uo="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)?mo(ta,{}):mo(N,{className:r(uo),icon:s})};G.states=jn;G.options=ea;G.className=uo;import{Fragment as aa,jsx as fo}from"react/jsx-runtime";var oa="k-input-prefix",na={direction:"horizontal"},xe=e=>{let{direction:t=na.direction,...o}=e;return e.children?fo("span",{...o,className:r(oa,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):fo(aa,{})};import{Fragment as sa,jsx as ho}from"react/jsx-runtime";var ia="k-input-suffix",ra={direction:"horizontal"},be=e=>{let{direction:t=ra.direction,...o}=e;return e.children?ho("span",{...o,className:r(ia,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ho(sa,{})};import{jsx as Ps}from"react/jsx-runtime";import{jsx as zs}from"react/jsx-runtime";import{jsx as da}from"react/jsx-runtime";var xo="k-input-separator",la={direction:"vertical"},ve=e=>{let{direction:t=la.direction,...o}=e;return da("span",{...o,className:r(xo,e.className,{[`${xo}-${t}`]:t})})};import{Fragment as bo,jsx as J,jsxs as Nt}from"react/jsx-runtime";var ca=O.states,pa=O.defaultOptions,ma=O.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=[],Ne=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 Nt(O,{...c,valid:o,invalid:a,loading:n,disabled:s,readonly:d,style:{width:300},children:[u&&Nt(bo,{children:[J(xe,{children:J(N,{icon:"lock"})}),C&&J(ve,{})]}),J(Z,{placeholder:"Placeholder",value:"Value"}),T&&J(G,{valid:o,invalid:a,loading:n,disabled:s}),J(q,{loading:n,disabled:s}),x&&J(Q,{loading:n,disabled:s,readonly:d,value:"Value"}),h&&Nt(bo,{children:[C&&J(ve,{}),J(be,{children:J(pe,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Ne.options=ma;Ne.states=ca;Ne.variants=fa;Ne.defaultOptions=pa;Ne.modifiers=ua;Ne.className=O.className;var Tt="popup",vo=Tt;import{jsx as No}from"react/jsx-runtime";var To="k-animation-container",ha=[],xa={},kt={positionMode:"absolute",shown:!0},Y=e=>{let{positionMode:t=kt.positionMode,shown:o=kt.shown,animationStyle:a,offset:n,...s}=e;return No("div",{...s,style:{...n,...e.style},className:r(e.className,To,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:No("div",{className:"k-child-animation-container",style:a,children:e.children})})};Y.states=ha;Y.options=xa;Y.className=To;Y.defaultOptions=kt;Y.moduleName=Tt;Y.folderName=vo;var It="popup",ko=It;import{jsx as Io}from"react/jsx-runtime";var Co="k-popup",ba=[],va={},So={positionMode:"absolute"},j=e=>{let{offset:t,positionMode:o=So.positionMode,animationStyle:a,containerClassName:n,containerRole:s,containerAriaLabel:d,...c}=e;return Io(Y,{positionMode:o,offset:t,animationStyle:a,className:n,role:s,"aria-label":d,children:Io("div",{...c,className:r(e.className,Co),children:e.children})})};j.states=ba;j.options=va;j.className=Co;j.defaultOptions=So;j.moduleName=It;j.folderName=ko;j.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 Ct="action-buttons",Ao=Ct;import{jsx as ka}from"react/jsx-runtime";var Ze="k-actions",Na=[],Ta={},St={alignment:"start",orientation:"horizontal"},ne=e=>{let{alignment:t=St.alignment,orientation:o=St.orientation,...a}=e;return ka("div",{...a,className:r(Ze,{[`${Ze}-${t}`]:t,[`${Ze}-${o}`]:o},e.className),children:e.children})};ne.states=Na;ne.options=Ta;ne.className=Ze;ne.defaultOptions=St;ne.moduleName=Ct;ne.folderName=Ao;import{jsx as Ca}from"react/jsx-runtime";var Ia="k-actionsheet-footer",Eo={alignment:"stretched",orientation:"horizontal"},Te=e=>{let{alignment:t=Eo.alignment,orientation:o=Eo.orientation,template:a,as:n=a?"div":ne,...s}=e;return Ca(n,{...s,...!a&&{alignment:t,orientation:o},className:r(e.className,Ia),children:e.children})};var At="searchbox",wo=At;import{jsx as He,jsxs as Ea}from"react/jsx-runtime";var yo="k-searchbox",Sa=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Aa={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"},ae=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:M=Et.icon,"aria-label":w,...k}=e;return Ea(O,{...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,yo),children:[R&&He(N,{className:"k-input-icon",icon:M}),He(Z,{placeholder:o,value:t,"aria-label":w}),He(q,{...e}),He(G,{...e}),He(Q,{...e})]})};ae.states=Sa;ae.options=Aa;ae.className=yo;ae.defaultOptions=Et;ae.moduleName=At;ae.folderName=wo;import{jsx as od}from"react/jsx-runtime";var wt="textbox",go=wt;import{Fragment as Mo,jsx as ie,jsxs as yt}from"react/jsx-runtime";var Oo="k-textbox",wa=[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]},je={showClearButton:!0,showValidationIcon:!0,separators:!0},K=e=>{let{size:t,rounded:o,fillMode:a,separators:n=je.separators,showClearButton:s=je.showClearButton,showValidationIcon:d=je.showValidationIcon,prefix:c,suffix:u,type:h,value:x,placeholder:T,hover:C,focus:R,valid:M,invalid:w,required:k,loading:E,disabled:D,readonly:U,id:B,"aria-label":ce,"aria-describedby":ge,...Me}=e;return yt(O,{...Me,size:t,rounded:o,fillMode:a,hover:C,focus:R,valid:M,invalid:w,required:k,loading:E,disabled:D,readonly:U,className:r(e.className,Oo),children:[c&&yt(Mo,{children:[ie(xe,{children:c}),n&&ie(ve,{})]}),ie(Z,{id:B,placeholder:T,value:x,type:h,disabled:D,"aria-label":ce,"aria-describedby":ge,"aria-invalid":w?"true":void 0}),d&&ie(G,{valid:M,invalid:w,loading:E,disabled:D}),ie(q,{loading:E,disabled:D}),s&&ie(Q,{loading:E,disabled:D,readonly:U,value:x}),u&&yt(Mo,{children:[n&&ie(ve,{}),ie(be,{children:u})]})]})};K.states=wa;K.options=ya;K.className=Oo;K.defaultOptions=je;K.moduleName=wt;K.folderName=go;K.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 De=K;import{jsx as ga}from"react/jsx-runtime";var Lo=e=>ga(De,{...e});import{Fragment as Td,jsx as Nd}from"react/jsx-runtime";import{Fragment as Ed,jsx as Ad}from"react/jsx-runtime";import{jsx as Md}from"react/jsx-runtime";import{jsx as gt}from"react/jsx-runtime";var Ma=K.states,Oa=K.defaultOptions,La=K.options,Ra=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],_a=[],ke=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?gt(N,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?gt(pe,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),gt(Lo,{value:"Value",style:{width:300},...o,...a})};ke.options=La;ke.states=Ma;ke.variants=_a;ke.defaultOptions=Oa;ke.modifiers=Ra;ke.className=K.className;import{jsx as re,jsxs as Mt}from"react/jsx-runtime";var Ro="k-actionsheet-titlebar",Ka={},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 Mt("div",{...C,className:r(e.className,Ro),children:[Mt("div",{className:"k-actionsheet-titlebar-group",children:[a&&re("div",{className:"k-actionsheet-actions",children:a}),!T&&Mt("div",{className:"k-actionsheet-title",id:x,children:[t&&re("div",{className:"k-text-center",children:t}),o&&re("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),T&&re("div",{className:"k-actionsheet-title",id:x,children:T}),n&&re("div",{className:"k-actionsheet-actions",children:n})]}),(d||s)&&re("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?re(K,{value:c,placeholder:u,size:h?"large":"medium","aria-label":t||u||"Input"}):re(ae,{placeholder:"Filter",size:h?"large":"medium","aria-label":"Filter options"})})]})};X.className=Ro;X.defaultOptions=Ka;import{jsx as Ot,jsxs as Ba}from"react/jsx-runtime";var Lt="k-actionsheet-view",Pa=[],Ha={},Da={},Ie=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:s,titleId:d,...c}=e,u=n?.type===X&&Ot(X,{adaptive:t,titleId:d,...n?.props}),h=s?.type===Te&&Ot(Te,{...s?.props});return Ba("div",{...c,className:r(e.className,Lt,{[`${Lt}-animated`]:o}),children:[u,Ot("div",{className:"k-actionsheet-content",children:a}),h]})};Ie.states=Pa;Ie.options=Ha;Ie.className=Lt;Ie.defaultOptions=Da;var Be="action-sheet",et=Be;var Rt="overlay",_o=Rt;import{jsx as Ua}from"react/jsx-runtime";var Ko="k-overlay",za=[],Fa={},Va={},se=e=>{let{...t}=e;return Ua("div",{...t,className:r(e.className,Ko),children:e.children})};se.states=za;se.options=Fa;se.className=Ko;se.defaultOptions=Va;se.moduleName=Rt;se.folderName=_o;import{jsx as tt,jsxs as $a}from"react/jsx-runtime";var Po="k-actionsheet",Ga=[],Xa={},ze={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},y=e=>{let{side:t=ze.side,fullscreen:o=ze.fullscreen,adaptive:a=ze.adaptive,overlay:n=ze.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&&tt(se,{}),tt(Y,{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:tt("div",{...x,id:h,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":T,className:r(e.className,Po,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||tt(Ie,{header:c,footer:u,adaptive:a,titleId:T,...e,children:d})})})]})};y.states=Ga;y.options=Xa;y.className=Po;y.defaultOptions=ze;y.moduleName=Be;y.folderName=et;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 Ho="k-actionsheet-container",Wa=[],qa={},Ja={},Ce=e=>{let{children:t,...o}=e;return Ya("div",{...o,className:Ho,children:t})};Ce.states=Wa;Ce.options=qa;Ce.className=Ho;Ce.defaultOptions=Ja;Ce.moduleName=Be;Ce.folderName=et;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 Fe,jsxs as Kt}from"react/jsx-runtime";var Pt="k-actionsheet-item",Za=[i.hover,i.focus,i.selected,i.disabled],le=e=>{let{iconName:t,text:o,description:a,hover:n,focus:s,selected:d,disabled:c,...u}=e;return Kt("span",{...u,className:r(e.className,Pt,_(Pt,{hover:n,focus:s,selected:d,disabled:c})),children:[!e.children&&Fe(ja,{children:Kt("span",{className:"k-actionsheet-action",children:[t&&Fe("span",{className:"k-icon-wrap",children:Fe(N,{className:"k-actionsheet-item-icon",icon:t})}),Kt("span",{className:"k-actionsheet-item-text",children:[o&&Fe("span",{className:"k-actionsheet-item-title",children:o}),a&&Fe("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};le.states=Za;le.className=Pt;import{jsx as gc,jsxs as Mc}from"react/jsx-runtime";import{jsx as _c}from"react/jsx-runtime";import{jsx as Dc}from"react/jsx-runtime";import{jsx as Vc}from"react/jsx-runtime";import{jsx as g,jsxs as Ht}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"}],Se=e=>{let{variant:t,modifiers:o,...a}={...Bo,...e},n={},s=Ht(_t,{children:[g(le,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),g(le,{text:"Add to Favorites",iconName:"heart"}),g(le,{text:"Upload New",iconName:"upload",disabled:!0}),g("hr",{className:"k-hr"}),g(le,{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?Ht(Te,{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?Ht(Te,{alignment:"stretched",children:[g(v,{text:"Apply",themeColor:"primary"}),g(v,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Se.options=ei;Se.states=ti;Se.variants=oi;Se.defaultOptions=Bo;Se.modifiers=ni;Se.className=y.className;import Bt from"react";import Dt from"react";import{jsx as ii}from"react/jsx-runtime";var ai="k-treeview-group",L=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:Dt.Children.map(t,(d,c)=>Dt.isValidElement(d)?Dt.cloneElement(d,{dir:o,level:a,key:c}):d)})};var Ve="treeview",ot=Ve;import{jsx as zo}from"react/jsx-runtime";var zt="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 zo("div",{...n,dir:a,className:r(e.className,zt,S(zt,{size:t})),children:zo(L,{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=zt;I.defaultOptions=li;I.moduleName=Ve;I.folderName=ot;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 Vt from"react";var me="checkbox",Ae=me;import{jsx as Fo}from"react/jsx-runtime";var nt="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 Fo("span",{className:"k-checkbox-wrap",role:C,children:Fo("input",{...R,id:t,type:"checkbox",defaultChecked:o,required:h,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:r(e.className,nt,S(nt,{size:x,rounded:T}),_(nt,{hover:n,focus:s,disabled:d,invalid:c,valid:u,indeterminate:a,checked:o}))})})};F.states=di;F.options=ci;F.className=nt;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 Vo="k-checkbox-list",mi=[],ui={},Uo={layout:"vertical"},P=e=>{let{layout:t=Uo.layout,...o}=e;return fi("ul",{...o,className:r(e.className,Vo,{[`k-list-${t}`]:t}),children:e.children})};P.states=mi;P.options=ui;P.className=Vo;P.defaultOptions=Uo;P.moduleName=me;P.folderName=Ae;import{jsx as vi}from"react/jsx-runtime";var Go="k-checkbox-list-item",hi=[],xi={},bi={},H=e=>{let{...t}=e;return vi("li",{...t,className:r(e.className,Go),children:e.children})};H.states=hi;H.options=xi;H.className=Go;H.defaultOptions=bi;H.moduleName=me;H.folderName=Ae;import{Fragment as Ni,jsx as Xo,jsxs as Ti}from"react/jsx-runtime";var ee=({children:e="Label",id:t="cb-label-after",...o})=>Ti(Ni,{children:[Xo($,{id:t,...o}),Xo("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Vp,jsx as Fp,jsxs as Up}from"react/jsx-runtime";import{Fragment as qp,jsx as Wp,jsxs as Jp}from"react/jsx-runtime";import{Fragment as em,jsx as jp,jsxs as tm}from"react/jsx-runtime";import{jsx 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 V,jsxs as $o}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"}],Ai=[],Ee=e=>{let{variant:t,...o}=e;return t==="horizontal"?$o(P,{layout:"horizontal",...o,children:[V(H,{children:V(ee,{id:z("cb"),defaultChecked:!0,children:"Label"})}),V(H,{children:V(ee,{id:z("cb"),children:"Label"})}),V(H,{children:V(ee,{id:z("cb"),children:"Label"})})]}):$o(P,{...o,children:[V(H,{children:V(ee,{id:z("cb"),defaultChecked:!0,children:"Label"})}),V(H,{children:V(ee,{id:z("cb"),children:"Label"})}),V(H,{children:V(ee,{id:z("cb"),children:"Label"})})]})};Ee.options=ki;Ee.states=Ii;Ee.variants=Si;Ee.defaultOptions=Ci;Ee.modifiers=Ai;Ee.className=P.className;import{jsx as Oi}from"react/jsx-runtime";var Ei=$.options,wi=$.states,yi=$.defaultOptions,gi=[],Mi=[],we=e=>Oi(ee,{id:z("checkbox"),...e,defaultChecked:!0,children:"Label"});we.options=Ei;we.states=wi;we.variants=gi;we.defaultOptions=yi;we.modifiers=Mi;we.className=$.className;import{jsx as Wo,jsxs as _i}from"react/jsx-runtime";var Ft="k-treeview-leaf",Li=[i.hover,i.focus,i.selected],Ri={},at=e=>{let{text:t,showIcon:o,icon:a,hover:n,focus:s,selected:d,...c}=e;return _i("span",{...c,className:r(e.className,Ft,_(Ft,{hover:n,focus:s,selected:d})),children:[o&&Wo(N,{icon:a}),Wo("span",{className:"k-treeview-leaf-text",children:t})]})};at.states=Li;at.options=Ri;at.className=Ft;var qo=at;import{jsx as Ue,jsxs as Jo}from"react/jsx-runtime";var Yo="k-treeview-item",Ki=[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:M,dir:w,level:k=1,ariaSelected:E,...D}=e,U=a||o||s;return Jo("li",{...D,className:r(e.className,Yo),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":E?"true":void 0,"aria-disabled":M?"true":void 0,children:[Jo("span",{className:r("k-treeview-item-content",_("k-treeview-item-content",{hover:T,focus:C,selected:R,disabled:M})),children:[U&&Ue("span",{className:r("k-treeview-toggle",_("k-treeview-toggle",{disabled:M})),children:s?Ue("span",{className:"k-icon k-i-loading"}):Ue(N,{icon:n?"chevron-down":w==="rtl"?"chevron-left":"chevron-right"})}),h&&Ue(F,{checked:x,disabled:M,"aria-label":d,tabIndex:-1}),Ue(qo,{className:t,text:d,showIcon:c,icon:u})]}),n&&U&&Vt.Children.map(o,(B,ce)=>Vt.isValidElement(B)?Vt.cloneElement(B,{dir:w,level:k+1,key:ce}):B)]})};f.states=Ki;f.options=Pi;f.className=Yo;f.defaultOptions=Hi;f.moduleName=Ve;f.folderName=ot;import{jsx as tu}from"react/jsx-runtime";import{jsx as iu,jsxs as ru}from"react/jsx-runtime";import{jsx as cu,jsxs as pu}from"react/jsx-runtime";import{jsx as hu,jsxs as xu}from"react/jsx-runtime";import{jsx as Tu,jsxs as ku}from"react/jsx-runtime";import{jsx as Au,jsxs as Eu}from"react/jsx-runtime";import{jsx as ue,jsxs as Ut}from"react/jsx-runtime";var Di=I.options,Bi=I.states,zi=I.defaultOptions,Fi=[{name:"checkboxes",title:"Show `Checkbox`",default:!1}],Vi=[],ye=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{n==="checkboxes"&&(a.showCheckbox=t?.[n])}),Ut(I,{...o,children:[ue(f,{text:"Furniture",expanded:!0,...a,children:Ut(L,{children:[ue(f,{text:"Tables & Chairs",...a}),ue(f,{text:"Sofas",...a}),ue(f,{text:"Occasional Furniture",...a})]})}),Ut(f,{text:"Decor",expanded:!1,...a,children:[ue(f,{text:"Bed Linen",...a}),ue(f,{text:"Curtains & Blinds",...a}),ue(f,{text:"Carpets",...a})]})]})};ye.options=Di;ye.states=Bi;ye.variants=Vi;ye.defaultOptions=zi;ye.modifiers=Fi;ye.className=I.className;var Qo="dropdown-tree",Zo="dropdowntree";import{Fragment as Xi,jsx as A,jsxs as Ge}from"react/jsx-runtime";var jo="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]},Gt={showValue:!0,arrowIconName:"chevron-down"},de=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:n=Gt.arrowIconName,showValue:s=Gt.showValue,valueIconName:d,prefix:c,suffix:u,value:h,placeholder:x,hover:T,focus:C,valid:R,invalid:M,required:w,loading:k,disabled:E,readonly:D,popup:U,opened:B,adaptive:ce,adaptiveSettings:ge,adaptiveTitle:Me,adaptiveSubtitle:on,adaptiveFilter:nn,dir:Xt,id:$t,treeviewId:an,"aria-label":rn,...sn}=e,Wt=$t?`${$t}-value`:void 0;return Ge(Xi,{children:[Ge(oe,{...sn,dir:Xt,size:t,rounded:o,fillMode:a,hover:T,focus:C,valid:R,invalid:M,required:w,loading:k,disabled:E,readonly:D,className:r(e.className,jo,{"k-icon-picker":!s&&d}),role:"combobox","aria-haspopup":"tree","aria-expanded":B?"true":"false","aria-controls":B?an:void 0,"aria-describedby":B?Wt:void 0,"aria-disabled":E?"true":void 0,"aria-label":rn,tabIndex:0,children:[A(xe,{children:c}),A(Pe,{placeholder:x,value:h,showValue:s,valueIconName:d,id:Wt}),A(G,{valid:R,invalid:M,loading:k,disabled:E}),A(q,{loading:k,disabled:E}),A(be,{children:u}),A(v,{className:"k-input-button",icon:n,size:e.size,fillMode:e.fillMode,"aria-label":"Open popup",tabIndex:-1})]}),B&&U&&A(j,{className:"k-list-container k-dropdowntree-popup",dir:Xt,containerRole:"region",containerAriaLabel:"DropdownTree options",children:U}),ce&&A(y,{adaptive:!0,...ge,header:A(X,{actionsEnd:A(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:nn,inputValue:h,inputPlaceholder:x,title:Me,subtitle:on}),children:Ge(I,{size:"large",children:[A(f,{text:"Root 1"}),A(f,{text:"Root 2",expanded:!0,children:Ge(L,{children:[A(f,{text:"Child 2.1"}),A(f,{text:"Child 2.2",children:A(L,{children:A(f,{text:"Child 2.2.1"})})}),A(f,{text:"Child 2.3"})]})}),A(f,{text:"Root 3",children:Ge(L,{children:[A(f,{text:"Child 3.1"}),A(f,{text:"Child 3.2"}),A(f,{text:"Child 3.3"})]})})]})})]})};de.states=Ui;de.options=Gi;de.className=jo;de.defaultOptions=Gt;de.moduleName=Qo;de.folderName=Zo;de.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."}]};var en=de;import{Fragment as $i,jsx as te,jsxs as tn}from"react/jsx-runtime";var sf=e=>{let t=z("ddt"),o=z("ddt-tv");return te(en,{id:t,"aria-label":"Select item",opened:!0,treeviewId:o,popup:te($i,{children:tn(I,{dir:e.dir,children:[te(f,{text:"Root 1"}),te(f,{text:"Root 2",expanded:!0,children:tn(L,{children:[te(f,{text:"Child 2.1",expanded:!0,children:te(L,{children:te(f,{text:"Child 2.1.1"})})}),te(f,{text:"Child 2.2"}),te(f,{leafClassName:"k-treeview-load-more-button",text:"Load more ..."})]})})]})}),...e})};export{sf as DropdownTreePopup};