UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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