UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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