UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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