UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 65.9 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var w=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),E=(e,t)=>{let{valid:o,invalid:i,hover:a,focus:r,checked:d,active:c,selected:m,disabled:f,indeterminate:u,loading:N,empty:k,readonly:I,highlighted:A,...T}=t;return s({"k-valid":o,"k-invalid":i,"k-hover":a,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":f,"k-indeterminate":u&&!d,"k-loading":N,"k-empty":k,"k-readonly":I,"k-highlighted":A},Object.keys(T).reduce((L,y)=>(y.startsWith("k-")?L[y]=T[y]:L[`k-${y}`]=T[y],L),{}))};function Fo(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!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"},ce={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},x={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},n={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 zt={};function K(e){return zt[e]=(zt[e]||0)+1,`k-${e}-${zt[e]}`}import{Fragment as Li,jsx as Go}from"react/jsx-runtime";var Ut="k-font-icon",Ni=[],gi={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info]},ki={},nt=e=>{let{size:t,themeColor:o,icon:i,rotate:a,flip:r,...d}=e;return i?Go("span",{...d,className:s(e.className,Ut,w(Ut,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):Go(Li,{})};nt.states=Ni;nt.options=gi;nt.className=Ut;nt.defaultOptions=ki;var Xo=nt;import{Fragment as yi,jsx as kt}from"react/jsx-runtime";var Vt="k-svg-icon",Si=[],Ii={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[ce.outline,ce.solid,ce.duotone]},Ft={viewBox:"0 0 24 24",variant:ce.outline},st=e=>{let{size:t,themeColor:o,rotate:i,flip:a,viewBox:r=Ft.viewBox,variant:d=Ft.variant,icon:c,...m}=e;if(!c)return kt(yi,{});if(c==="none")return kt("span",{...m,className:s(e.className,Vt,w("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof c=="object"&&c.name&&c.name,u=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return kt("span",{...m,className:s(e.className,Vt,w("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:kt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:u!==void 0?{__html:u}:void 0,children:c?void 0:e.children})})};st.states=Si;st.options=Ii;st.className=Vt;st.defaultOptions=Ft;var Gt=st;import*as Xt from"@progress/kendo-svg-icons";var $o="icon",qo="icons";import{useContext as Ai}from"react";import{createContext as Ci}from"react";var Wo=Ci({iconsType:"svg"});import{Fragment as Jo,jsx as rt}from"react/jsx-runtime";var Lt="k-icon",Ti=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ei=[],Mi={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[ce.outline,ce.solid,ce.duotone]},St={viewBox:"0 0 24 24",type:"svg",variant:ce.outline},g=e=>{let{iconsType:t}=Ai(Wo),{size:o,themeColor:i,icon:a,type:r=t||St.type,rotate:d,flip:c,viewBox:m=St.viewBox,variant:f=St.variant,...u}=e;if(!a)return rt(Jo,{});if((t||r)==="svg"){if(a==="none")return rt(Gt,{...u,className:s(e.className,Lt),icon:a,size:o,variant:f});let k=Xt[a]?a:Ti(`${a}-icon`);return Xt[k]?rt(Gt,{...u,className:s(e.className,Lt),icon:Xt[k],size:o,themeColor:i,rotate:d,flip:c,viewBox:m,variant:f}):rt(Jo,{})}return rt(Xo,{...u,className:s(e.className,Lt),icon:a,size:o,themeColor:i,rotate:d,flip:c})};g.states=Ei;g.options=Mi;g.defaultOptions=St;g.className=Lt;g.moduleName=$o;g.folderName=qo;g.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 $t="button",Yo=$t;import{Fragment as Qo,jsx as De,jsxs as Zo}from"react/jsx-runtime";var lt="k-button",Oi=["icon-button"],wi=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Ri={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:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info,x.inverse]},qt={showArrow:!1,arrowIconName:"chevron-down"},v=e=>{let{as:t="button",size:o,rounded:i,fillMode:a,themeColor:r,showArrow:d=qt.showArrow,arrowIconName:c=qt.arrowIconName,variant:m,hover:f,focus:u,active:N,selected:k,disabled:I,togglable:A,ariaDisabled:T,icon:L,iconSize:y,text:R,iconClassName:U,className:Y,...de}=e,ie=L!=null,be=e.children!==void 0;return Zo(t,{className:s(Y,lt,Fo(lt,m),w(lt,{size:o,rounded:i,fillMode:a,themeColor:r}),E(lt,{hover:f,focus:u,active:N,disabled:I||T,selected:k}),{"k-icon-button":!R&&!be&&ie}),"aria-pressed":A?k?"true":"false":void 0,...de,"aria-disabled":T?"true":void 0,disabled:I||void 0,children:[typeof L=="string"&&L&&De(g,{className:s(U,"k-button-icon"),icon:L,size:y}),L&&typeof L!="string"&&De(Qo,{children:L}),R?Zo(Qo,{children:[R&&De("span",{className:"k-button-text",children:R}),e.children]}):e.children&&De("span",{className:"k-button-text",children:e.children}),d&&De("span",{className:"k-menu-button-arrow k-button-arrow",children:De(g,{icon:c})})]})};v.states=wi;v.options=Ri;v.variants=Oi;v.className=lt;v.defaultOptions=qt;v.moduleName=$t;v.folderName=Yo;v.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Ki}from"react/jsx-runtime";var jo=e=>Ki(v,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Pi}from"react/jsx-runtime";var ea=e=>Pi(v,{icon:"folder",children:"Button",...e});import{jsx as _i}from"react/jsx-runtime";var Me=e=>_i(v,{children:"Button",...e});import{jsx as Wt}from"react/jsx-runtime";var Hi=v.options,Di=v.states,Bi={...v.defaultOptions,variant:"text"},zi=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ui=[],Be=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Wt(jo,{...o,icon:"star"});case"icon-and-text":return Wt(ea,{...o,icon:"star",children:"Button"});default:return Wt(Me,{...o,children:"Button"})}};Be.options=Hi;Be.states=Di;Be.variants=zi;Be.defaultOptions=Bi;Be.modifiers=Ui;Be.className=v.className;var Jt="slider",ta=Jt;import{jsx as ze,jsxs as Yt}from"react/jsx-runtime";var dt="k-slider",Vi=[n.hover,n.focus,n.active,n.disabled,n.readonly],Fi={},Q={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},M=e=>{let{type:t=Q.type,orientation:o=Q.orientation,gradientType:i=Q.gradientType,readonly:a=Q.readonly,disabled:r=Q.disabled,handlePosition:d=Q.handlePosition,showButtons:c=Q.showButtons,showTicks:m=Q.showTicks,value:f=Q.value,min:u=Q.min,max:N=Q.max,startValue:k,endValue:I,hover:A,focus:T,active:L,trackStyle:y,dir:R,...U}=e,de=(()=>{if(t==="gradient"&&i==="2d")return"undefined";if(o==="vertical")return"vertical"})(),ie,be;return o==="horizontal"?(ie=R==="rtl"?"chevron-left":"chevron-right",be=R==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(ie="chevron-up",be="chevron-down"),Yt("div",{...U,className:s(dt,e.className,E(dt,{readonly:a,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:R,children:[c&&ze(v,{className:"k-button-decrease",rounded:"full",icon:be,tabIndex:-1,title:"Decrease"}),Yt("div",{className:"k-slider-track-wrap",children:[m&&ze("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Yt("div",{className:"k-slider-track",style:y,children:[ze("div",{className:"k-slider-selection"}),t==="range"&&ze("span",{className:s("k-draghandle","k-draghandle-start",E(dt,{hover:A,focus:T,active:L})),role:"slider",tabIndex:r?void 0:0,"aria-valuenow":k??u,"aria-valuemin":u,"aria-valuemax":I??N,"aria-orientation":de,"aria-disabled":r?"true":void 0,"aria-readonly":a?"true":void 0,"aria-label":U["aria-label"]?`${U["aria-label"]} start`:"Range start"}),ze("span",{className:s("k-draghandle",`k-draghandle-${d}`,E(dt,{hover:A,focus:T,active:L})),role:"slider",tabIndex:r?void 0:0,"aria-valuenow":t==="range"?I??N:f,"aria-valuemin":t==="range"?k??u:u,"aria-valuemax":N,"aria-orientation":de,"aria-disabled":r?"true":void 0,"aria-readonly":a?"true":void 0,"aria-label":t==="range"?U["aria-label"]?`${U["aria-label"]} end`:"Range end":U["aria-label"]})]})]}),c&&ze(v,{className:"k-button-increase",rounded:"full",icon:ie,tabIndex:-1,title:"Increase"})]})};M.states=Vi;M.options=Fi;M.className=dt;M.defaultOptions=Q;M.moduleName=Jt;M.folderName=ta;M.ariaSpec={selector:".k-slider",rules:[{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"role=slider",usage:"Sets the proper role for Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-label or aria-labelledby or title",usage:"The Slider needs an accessible name to be assigned to it."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the Slider is in a form and announces the invalid state."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuetext (when has text alternative)",usage:"Specifies a human-readable text alternative to the numeric value. Provided by consuming applications."},{selector:".k-slider:not(.k-disabled) .k-draghandle:not(.k-hsv-draghandle)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled sliders are removed from tab order."},{selector:".k-slider-vertical .k-draghandle",attribute:"aria-orientation=vertical (when vertical)",usage:"Present only when slider is vertical."},{selector:".k-slider.k-disabled .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-disabled=true",usage:"Rendered only when the Slider is disabled."},{selector:".k-slider.k-readonly .k-draghandle",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Slider is readonly. Readonly sliders remain focusable but their value cannot be changed."},{selector:".k-slider .k-button",attribute:"tabindex=-1",usage:"Excludes the buttons from the natural tab order. Keyboard users use arrow keys on the drag handle."},{selector:".k-slider .k-button",attribute:"title",usage:'Provides a tooltip describing the button action (e.g., "Decrease" or "Increase").'},{selector:".k-slider .k-slider-items",attribute:"aria-hidden=true",usage:"Hides the tick list from assistive technologies. Tick values are redundant with the drag handle value attributes."},{selector:".k-slider .k-tick",attribute:"role=presentation",usage:"Removes semantic meaning from individual tick elements. Ticks are visual-only markers."},{selector:".k-slider .k-tick",attribute:"title",usage:"Represents the value associated with the respective tick."}]};import{jsx as oa}from"react/jsx-runtime";var aa="k-tick",Gi=[],Xi={},ia={label:!1},h=e=>{let{style:t,label:o=ia.label,orientation:i,large:a,text:r,...d}=e;return oa("li",{...d,role:"presentation",title:r||"Tick",className:s(e.className,aa,{[`k-tick-${i}`]:i,"k-tick-large":a}),style:t,children:o&&oa("span",{className:"k-label",children:r})})};h.states=Gi;h.options=Xi;h.className=aa;h.defaultOptions=ia;import{Fragment as $i,jsx as Z,jsxs as qi}from"react/jsx-runtime";var na=e=>Z(M,{"aria-label":e["aria-label"]||"Slider",children:qi($i,{children:[Z(h,{className:"k-first",label:!0,large:!0,text:"0"}),Z(h,{}),Z(h,{}),Z(h,{}),Z(h,{}),Z(h,{label:!0,large:!0,text:"5"}),Z(h,{}),Z(h,{}),Z(h,{}),Z(h,{}),Z(h,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Wi,jsx as j,jsxs as Ji}from"react/jsx-runtime";var sa=e=>j(M,{children:Ji(Wi,{children:[j(h,{className:"k-first",label:!0,large:!0,text:"0"}),j(h,{}),j(h,{}),j(h,{}),j(h,{}),j(h,{label:!0,large:!0,text:"5"}),j(h,{}),j(h,{}),j(h,{}),j(h,{}),j(h,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as Hd,jsx as _d,jsxs as Dd}from"react/jsx-runtime";import{Fragment as Fd,jsx as Vd,jsxs as Gd}from"react/jsx-runtime";import{jsx as Yi}from"react/jsx-runtime";var Qt=e=>Yi(M,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Qi}from"react/jsx-runtime";var Zt=e=>Qi(M,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as tc,jsx as ec,jsxs as oc}from"react/jsx-runtime";import{Fragment as rc,jsx as sc,jsxs as lc}from"react/jsx-runtime";import{jsx as pe,jsxs as ra}from"react/jsx-runtime";var Zi=M.options,ji=M.states,la={...M.defaultOptions,variant:"horizontal",label:!0},en=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],tn=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],Ue=e=>{let{variant:t,modifiers:o,...i}=e,a=la.label,r={};Object.keys(o||{}).forEach(c=>{switch(c){case"button":{r.showButtons=!!o?.[c];break}case"label":{a=!!o?.[c];break}case"tick":{r.showTicks=!!o?.[c];break}}});let d={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?ra(sa,{style:{height:"300px",...d},...i,...r,children:[pe(h,{label:a,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),pe(h,{label:a,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),pe(h,{label:a,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),pe(h,{label:a,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),pe(h,{label:a,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):ra(na,{style:{width:"400px",...d},...i,...r,children:[pe(h,{label:a,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),pe(h,{label:a,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),pe(h,{label:a,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),pe(h,{label:a,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),pe(h,{label:a,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};Ue.options=Zi;Ue.states=ji;Ue.variants=en;Ue.defaultOptions=la;Ue.modifiers=tn;Ue.className=M.className;var ct="input",It=ct;import{jsx as sn}from"react/jsx-runtime";var yt="k-input",on=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],an={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]},nn={},H=e=>{let{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:u,...N}=e;return sn("span",{...N,className:s(e.className,yt,w(yt,{size:m,rounded:f,fillMode:u}),E(yt,{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:d,readonly:c}))})};H.states=on;H.options=an;H.className=yt;H.defaultOptions=nn;H.moduleName=ct;H.folderName=It;import{jsx as cn}from"react/jsx-runtime";var Ct="k-picker",rn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ln={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},dn={},ge=e=>{let{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:u,...N}=e;return cn("span",{...N,className:s(e.className,Ct,w(Ct,{size:m,rounded:f,fillMode:u}),E(Ct,{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:d,readonly:c})),children:e.children})};ge.states=rn;ge.options=ln;ge.className=Ct;ge.defaultOptions=dn;ge.moduleName=ct;ge.folderName=It;import{Fragment as un,jsx as jt}from"react/jsx-runtime";var da="k-clear-value",pn=[n.disabled,n.loading,n.readonly],mn={},ne=e=>{let{disabled:t,loading:o,readonly:i,value:a}=e;return t||i||o||!a?jt(un,{}):jt("span",{className:s(e.className,da),children:jt(g,{icon:"x"})})};ne.states=pn;ne.options=mn;ne.className=da;import{jsx as hn}from"react/jsx-runtime";var eo="k-input-inner",fn=[],bn={},At={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=At.value,type:o=At.type,placeholder:i=At.placeholder,autocomplete:a=At.autocomplete,disabled:r,readOnly:d,...c}=e;return hn("input",{...c,type:o,className:s(e.className,eo,w(eo,e)),placeholder:i,autoComplete:a,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};se.states=fn;se.options=bn;se.className=eo;import{jsx as ca,jsxs as Nn}from"react/jsx-runtime";var to="k-input-inner",xn=[],vn={},pt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:a,valueIconName:r,...d}=e;return Nn("span",{...d,className:s(e.className,to,w(to,e)),children:[a,!a&&r&&ca(g,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&ca("span",{className:"k-input-value-text",children:t})]})};pt.states=xn;pt.options=vn;pt.className=to;import{jsx as Ln}from"react/jsx-runtime";var oo="k-input-inner",gn=[],kn={},pa={value:"",placeholder:""},ao=e=>{let{value:t=pa.value,placeholder:o=pa.placeholder,rows:i,disabled:a,...r}=e;return Ln("textarea",{...r,className:s(e.className,oo,w(oo,e)),placeholder:o,rows:i,defaultValue:t,disabled:a||void 0})};ao.states=gn;ao.options=kn;ao.className=oo;import{Fragment as In,jsx as ma}from"react/jsx-runtime";var ua="k-input-loading-icon",Sn=[n.disabled,n.loading],ee=e=>{let{disabled:t,loading:o}=e;return t||!o?ma(In,{}):ma("span",{className:s(e.className,ua,"k-icon k-i-loading")})};ee.states=Sn;ee.className=ua;import{Fragment as An,jsx as fa}from"react/jsx-runtime";var ba="k-input-validation-icon",yn=[n.valid,n.invalid,n.disabled,n.loading],Cn={},J=e=>{let{valid:t,invalid:o,disabled:i,loading:a}=e,r=o?"warning-circle":"check-circle";return i||a||!!!(t||o)?fa(An,{}):fa(g,{className:s(ba),icon:r})};J.states=yn;J.options=Cn;J.className=ba;import{Fragment as Mn,jsx as ha}from"react/jsx-runtime";var Tn="k-input-prefix",En={direction:"horizontal"},ke=e=>{let{direction:t=En.direction,...o}=e;return e.children?ha("span",{...o,className:s(Tn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ha(Mn,{})};import{Fragment as Rn,jsx as xa}from"react/jsx-runtime";var On="k-input-suffix",wn={direction:"horizontal"},Le=e=>{let{direction:t=wn.direction,...o}=e;return e.children?xa("span",{...o,className:s(On,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):xa(Rn,{})};import{jsx as up}from"react/jsx-runtime";import{jsx as Pn}from"react/jsx-runtime";var Kn="k-input-suffix-text",io=e=>{let{children:t,...o}=e;return Pn("span",{...o,className:s(Kn,e.className),children:t})};import{jsx as Hn}from"react/jsx-runtime";var va="k-input-separator",_n={direction:"vertical"},he=e=>{let{direction:t=_n.direction,...o}=e;return Hn("span",{...o,className:s(va,e.className,{[`${va}-${t}`]:t})})};import{Fragment as Na,jsx as me,jsxs as no}from"react/jsx-runtime";var Dn=H.states,Bn=H.defaultOptions,zn=H.options,Un=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Vn=[],Ve=e=>{let{modifiers:t,valid:o,invalid:i,loading:a,disabled:r,readonly:d,...c}=e,m=t?.prefix,f=t?.suffix,u=t?.["clear-button"],N=t?.["validation-icon"],k=t?.separators;return no(H,{...c,valid:o,invalid:i,loading:a,disabled:r,readonly:d,style:{width:300},children:[m&&no(Na,{children:[me(ke,{children:me(g,{icon:"lock"})}),k&&me(he,{})]}),me(se,{placeholder:"Placeholder",value:"Value"}),N&&me(J,{valid:o,invalid:i,loading:a,disabled:r}),me(ee,{loading:a,disabled:r}),u&&me(ne,{loading:a,disabled:r,readonly:d,value:"Value"}),f&&no(Na,{children:[k&&me(he,{}),me(Le,{children:me(Me,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Ve.options=zn;Ve.states=Dn;Ve.variants=Vn;Ve.defaultOptions=Bn;Ve.modifiers=Un;Ve.className=H.className;import{jsx as ga,jsxs as qn}from"react/jsx-runtime";var ka="k-spin-button",Xn=[],$n={size:[l.undefined,l.small,l.medium,l.large],fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link]},so={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Se=e=>{let{size:t,fillMode:o,disabled:i,increaseLabel:a=so.increaseLabel,decreaseLabel:r=so.decreaseLabel,...d}=e;return qn("span",{...d,className:s(ka,e.className),children:[ga(v,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:i,"aria-label":a}),ga(v,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:i,"aria-label":r})]})};Se.states=Xn;Se.options=$n;Se.className=ka;Se.defaultOptions=so;Se.moduleName=null;Se.folderName=null;var La="numeric-textbox",Sa="numerictextbox";import{Fragment as Ia,jsx as xe,jsxs as ro}from"react/jsx-runtime";var ya="k-numerictextbox",Wn=[n.hover,n.focus,n.valid,n.invalid,n.loading,n.required,n.disabled,n.readonly],Jn={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]},Tt={showSpinButton:!0,showClearButton:!0,separators:!0},C=e=>{let{size:t,rounded:o,fillMode:i,separators:a=Tt.separators,showClearButton:r=Tt.showClearButton,showSpinButton:d=Tt.showSpinButton,prefix:c,suffix:m,value:f,placeholder:u,hover:N,focus:k,valid:I,invalid:A,required:T,loading:L,disabled:y,readonly:R,id:U,"aria-label":Y,"aria-describedby":de,...ie}=e;return ro(H,{...ie,size:t,rounded:o,fillMode:i,hover:N,focus:k,valid:I,invalid:A,required:T,loading:L,disabled:y,readonly:R,className:s(e.className,ya),children:[c&&ro(Ia,{children:[xe(ke,{children:c}),a&&xe(he,{})]}),xe(se,{id:U,placeholder:u,value:f,role:"spinbutton",disabled:y,"aria-label":Y,"aria-describedby":de,"aria-invalid":A?"true":void 0}),xe(J,{valid:I,invalid:A,loading:L,disabled:y}),xe(ee,{loading:L,disabled:y}),r&&xe(ne,{loading:L,disabled:y,readonly:R,value:f}),m&&ro(Ia,{children:[a&&xe(he,{}),xe(Le,{children:m})]}),d&&xe(Se,{className:"k-input-spinner",size:t,fillMode:i,disabled:y})]})};C.states=Wn;C.options=Jn;C.className=ya;C.defaultOptions=Tt;C.moduleName=La;C.folderName=Sa;C.ariaSpec={selector:".k-numerictextbox",rules:[{selector:".k-numerictextbox > .k-input-inner",attribute:"role=spinbutton",usage:"Announces the spin button capabilities of the NumericTextBox."},{selector:".k-numerictextbox > .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-numerictextbox > .k-input-inner",attribute:"aria-valuenow (when has value)",usage:"Announces the current value of the component."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemin (when has min)",usage:"Announces the minimum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemax (when has max)",usage:"Announces the maximum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the NumericTextBox is in an invalid state."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message."},{selector:".k-numerictextbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"role=button or nodeName=button",usage:"Describes the role of the spin buttons."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"aria-label",usage:"The button element requires discernible text."},{selector:".k-numerictextbox.k-disabled .k-spin-button > .k-button",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."}]};var mt=C;import{jsx as Yn}from"react/jsx-runtime";var Ca=e=>Yn(mt,{...e});var lo="popup",Aa=lo;import{jsx as Ta}from"react/jsx-runtime";var Ea="k-animation-container",Qn=[],Zn={},co={positionMode:"absolute",shown:!0},ue=e=>{let{positionMode:t=co.positionMode,shown:o=co.shown,animationStyle:i,offset:a,...r}=e;return Ta("div",{...r,style:{...a,...e.style},className:s(e.className,Ea,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Ta("div",{className:"k-child-animation-container",style:i,children:e.children})})};ue.states=Qn;ue.options=Zn;ue.className=Ea;ue.defaultOptions=co;ue.moduleName=lo;ue.folderName=Aa;var po="popup",Ma=po;import{jsx as Oa}from"react/jsx-runtime";var wa="k-popup",jn=[],es={},Ra={positionMode:"absolute"},ve=e=>{let{offset:t,positionMode:o=Ra.positionMode,animationStyle:i,containerClassName:a,containerRole:r,containerAriaLabel:d,...c}=e;return Oa(ue,{positionMode:o,offset:t,animationStyle:i,className:a,role:r,"aria-label":d,children:Oa("div",{...c,className:s(e.className,wa),children:e.children})})};ve.states=jn;ve.options=es;ve.className=wa;ve.defaultOptions=Ra;ve.moduleName=po;ve.folderName=Ma;ve.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 mo="action-buttons",Ka=mo;import{jsx as as}from"react/jsx-runtime";var Et="k-actions",ts=[],os={},uo={alignment:"start",orientation:"horizontal"},Ie=e=>{let{alignment:t=uo.alignment,orientation:o=uo.orientation,...i}=e;return as("div",{...i,className:s(Et,{[`${Et}-${t}`]:t,[`${Et}-${o}`]:o},e.className),children:e.children})};Ie.states=ts;Ie.options=os;Ie.className=Et;Ie.defaultOptions=uo;Ie.moduleName=mo;Ie.folderName=Ka;import{jsx as ns}from"react/jsx-runtime";var is="k-actionsheet-footer",Pa={alignment:"stretched",orientation:"horizontal"},Fe=e=>{let{alignment:t=Pa.alignment,orientation:o=Pa.orientation,template:i,as:a=i?"div":Ie,...r}=e;return ns(a,{...r,...!i&&{alignment:t,orientation:o},className:s(e.className,is),children:e.children})};var fo="searchbox",_a=fo;import{jsx as ut,jsxs as ls}from"react/jsx-runtime";var Ha="k-searchbox",ss=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],rs={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]},bo={showIcon:!0,icon:"search"},te=e=>{let{value:t,placeholder:o,size:i,rounded:a,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:u,loading:N,disabled:k,showIcon:I=bo.showIcon,icon:A=bo.icon,"aria-label":T,...L}=e;return ls(H,{...L,size:i,rounded:a,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:u,loading:N,disabled:k,className:s(e.className,Ha),children:[I&&ut(g,{className:"k-input-icon",icon:A}),ut(se,{placeholder:o,value:t,"aria-label":T}),ut(ee,{...e}),ut(J,{...e}),ut(ne,{...e})]})};te.states=ss;te.options=rs;te.className=Ha;te.defaultOptions=bo;te.moduleName=fo;te.folderName=_a;import{jsx as Ym}from"react/jsx-runtime";var ho="textbox",Da=ho;import{Fragment as Ba,jsx as ye,jsxs as xo}from"react/jsx-runtime";var za="k-textbox",ds=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],cs={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},D=e=>{let{size:t,rounded:o,fillMode:i,separators:a=Mt.separators,showClearButton:r=Mt.showClearButton,showValidationIcon:d=Mt.showValidationIcon,prefix:c,suffix:m,type:f,value:u,placeholder:N,hover:k,focus:I,valid:A,invalid:T,required:L,loading:y,disabled:R,readonly:U,id:Y,"aria-label":de,"aria-describedby":ie,...be}=e;return xo(H,{...be,size:t,rounded:o,fillMode:i,hover:k,focus:I,valid:A,invalid:T,required:L,loading:y,disabled:R,readonly:U,className:s(e.className,za),children:[c&&xo(Ba,{children:[ye(ke,{children:c}),a&&ye(he,{})]}),ye(se,{id:Y,placeholder:N,value:u,type:f,disabled:R,"aria-label":de,"aria-describedby":ie,"aria-invalid":T?"true":void 0}),d&&ye(J,{valid:A,invalid:T,loading:y,disabled:R}),ye(ee,{loading:y,disabled:R}),r&&ye(ne,{loading:y,disabled:R,readonly:U,value:u}),m&&xo(Ba,{children:[a&&ye(he,{}),ye(Le,{children:m})]})]})};D.states=ds;D.options=cs;D.className=za;D.defaultOptions=Mt;D.moduleName=ho;D.folderName=Da;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 ft=D;import{jsx as ps}from"react/jsx-runtime";var Ua=e=>ps(ft,{...e});import{Fragment as fu,jsx as uu}from"react/jsx-runtime";import{Fragment as gu,jsx as Nu}from"react/jsx-runtime";import{jsx as Iu}from"react/jsx-runtime";import{jsx as vo}from"react/jsx-runtime";var ms=D.states,us=D.defaultOptions,fs=D.options,bs=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],hs=[],Ge=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(a=>{switch(a){case"prefix":i.prefix=t?.[a]?vo(g,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t?.[a]?vo(Me,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t?.[a];break;default:break}}),vo(Ua,{value:"Value",style:{width:300},...o,...i})};Ge.options=fs;Ge.states=ms;Ge.variants=hs;Ge.defaultOptions=us;Ge.modifiers=bs;Ge.className=D.className;import{jsx as Ce,jsxs as No}from"react/jsx-runtime";var Va="k-actionsheet-titlebar",xs={},re=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:a,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,titleId:u,children:N,...k}=e;return No("div",{...k,className:s(e.className,Va),children:[No("div",{className:"k-actionsheet-titlebar-group",children:[i&&Ce("div",{className:"k-actionsheet-actions",children:i}),!N&&No("div",{className:"k-actionsheet-title",id:u,children:[t&&Ce("div",{className:"k-text-center",children:t}),o&&Ce("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Ce("div",{className:"k-actionsheet-title",id:u,children:N}),a&&Ce("div",{className:"k-actionsheet-actions",children:a})]}),(d||r)&&Ce("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ce(D,{value:c,placeholder:m,size:f?"large":"medium","aria-label":t||m||"Input"}):Ce(te,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};re.className=Va;re.defaultOptions=xs;import{jsx as go,jsxs as ks}from"react/jsx-runtime";var ko="k-actionsheet-view",vs=[],Ns={},gs={},Xe=e=>{let{adaptive:t,animated:o,children:i,header:a,footer:r,titleId:d,...c}=e,m=a?.type===re&&go(re,{adaptive:t,titleId:d,...a?.props}),f=r?.type===Fe&&go(Fe,{...r?.props});return ks("div",{...c,className:s(e.className,ko,{[`${ko}-animated`]:o}),children:[m,go("div",{className:"k-actionsheet-content",children:i}),f]})};Xe.states=vs;Xe.options=Ns;Xe.className=ko;Xe.defaultOptions=gs;var bt="action-sheet",Ot=bt;var Lo="overlay",Fa=Lo;import{jsx as ys}from"react/jsx-runtime";var Ga="k-overlay",Ls=[],Ss={},Is={},Ae=e=>{let{...t}=e;return ys("div",{...t,className:s(e.className,Ga),children:e.children})};Ae.states=Ls;Ae.options=Ss;Ae.className=Ga;Ae.defaultOptions=Is;Ae.moduleName=Lo;Ae.folderName=Fa;import{jsx as wt,jsxs as Ts}from"react/jsx-runtime";var Xa="k-actionsheet",Cs=[],As={},ht={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},B=e=>{let{side:t=ht.side,fullscreen:o=ht.fullscreen,adaptive:i=ht.adaptive,overlay:a=ht.overlay,template:r,children:d,header:c,footer:m,id:f,...u}=e,N=f&&!r&&c?`${f}-title`:void 0;return Ts("div",{className:"k-actionsheet-container",children:[a&&wt(Ae,{}),wt(ue,{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:wt("div",{...u,id:f,role:"dialog","aria-modal":a?"true":void 0,"aria-labelledby":N,className:s(e.className,Xa,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:r||wt(Xe,{header:c,footer:m,adaptive:i,titleId:N,...e,children:d})})})]})};B.states=Cs;B.options=As;B.className=Xa;B.defaultOptions=ht;B.moduleName=bt;B.folderName=Ot;B.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 ws}from"react/jsx-runtime";var $a="k-actionsheet-container",Es=[],Ms={},Os={},$e=e=>{let{children:t,...o}=e;return ws("div",{...o,className:$a,children:t})};$e.states=Es;$e.options=Ms;$e.className=$a;$e.defaultOptions=Os;$e.moduleName=bt;$e.folderName=Ot;import{jsx as Rs}from"react/jsx-runtime";var So=e=>{let{...t}=e;return Rs("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};import{Fragment as Ps,jsx as xt,jsxs as Io}from"react/jsx-runtime";var yo="k-actionsheet-item",Ks=[n.hover,n.focus,n.selected,n.disabled],Te=e=>{let{iconName:t,text:o,description:i,hover:a,focus:r,selected:d,disabled:c,...m}=e;return Io("span",{...m,className:s(e.className,yo,E(yo,{hover:a,focus:r,selected:d,disabled:c})),children:[!e.children&&xt(Ps,{children:Io("span",{className:"k-actionsheet-action",children:[t&&xt("span",{className:"k-icon-wrap",children:xt(g,{className:"k-actionsheet-item-icon",icon:t})}),Io("span",{className:"k-actionsheet-item-text",children:[o&&xt("span",{className:"k-actionsheet-item-title",children:o}),i&&xt("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};Te.states=Ks;Te.className=yo;import{jsx as If,jsxs as yf}from"react/jsx-runtime";import{jsx as Ef}from"react/jsx-runtime";import{jsx as Rf}from"react/jsx-runtime";import{jsx as Hf}from"react/jsx-runtime";import{jsx as z,jsxs as Co}from"react/jsx-runtime";var _s=B.options,Hs=B.states,Wa={...B.defaultOptions,variant:"normal"},Ds=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Bs=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],qe=e=>{let{variant:t,modifiers:o,...i}={...Wa,...e},a={},r=Co(So,{children:[z(Te,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),z(Te,{text:"Add to Favorites",iconName:"heart"}),z(Te,{text:"Upload New",iconName:"upload",disabled:!0}),z("hr",{className:"k-hr"}),z(Te,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(a.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":a.actionsStart=!!o?.[m],a.actionsEnd=!!o?.[m];break;case"subtitle":a.subtitle=o?.[m]?d:void 0;break;case"footer":a.footer=!!o?.[m];break;default:break}}),t==="adaptive"?z(B,{...i,adaptive:!0,fullscreen:a.fullScreen,header:z(re,{actionsStart:a.actionsStart?z(v,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:a.actionsEnd?z(v,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:a.subtitle}),footer:a.footer?Co(Fe,{alignment:"stretched",children:[z(v,{text:"Cancel",size:"large",themeColor:"base"}),z(v,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):z(B,{...i,fullscreen:a.fullScreen,header:z(re,{actionsStart:a.actionsStart?z(v,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:a.actionsEnd?z(v,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:a.subtitle}),footer:a.footer?Co(Fe,{alignment:"stretched",children:[z(v,{text:"Apply",themeColor:"primary"}),z(v,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};qe.options=_s;qe.states=Hs;qe.variants=Ds;qe.defaultOptions=Wa;qe.modifiers=Bs;qe.className=B.className;import Eo from"react";import{jsx as Ja}from"react/jsx-runtime";var zs="k-list-group-sticky-header",Ao=e=>Ja("div",{className:s(zs,e.className),children:Ja("div",{className:"k-list-header-text",children:e.children})});import{jsx as Vs}from"react/jsx-runtime";var Us="k-no-data",To=e=>{let{live:t,...o}=e;return Vs("span",{...o,className:s(Us,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Oe="list",We=Oe;import{jsx as Ya,jsxs as Qa}from"react/jsx-runtime";var Mo="k-list",Fs=[],Gs={size:[l.undefined,l.small,l.medium,l.large]},Xs={},P=e=>{let{size:t,virtualization:o,children:i,header:a,selectAll:r,optionLabel:d,customValue:c,noData:m,screenReaders:f,...u}=e,k=Eo.Children.toArray(i)[0],I=k?.props?.children?Eo.Children.count(k.props.children):Eo.Children.count(i);return Qa("div",{...u,className:s(e.className,Mo,w(Mo,{size:t}),{"k-virtual-list":o}),children:[d,r,c,a&&Ya(Ao,{children:a}),i||(m!==void 0?m:Ya(To,{live:!0,children:"No data found."})),f&&i&&Qa(To,{className:"k-sr-only",live:!0,children:[I," items found."]})]})};P.states=Fs;P.options=Gs;P.className=Mo;P.defaultOptions=Xs;P.moduleName=Oe;P.folderName=We;P.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as Js}from"react/jsx-runtime";var Za="k-list-container",$s=[],qs={},Ws={},Je=e=>{let{...t}=e;return Js("div",{...t,className:s(e.className,Za),children:e.children})};Je.states=$s;Je.options=qs;Je.className=Za;Je.defaultOptions=Ws;Je.moduleName=Oe;Je.folderName=We;var we="checkbox",Ye=we;import{jsx as ja}from"react/jsx-runtime";var Rt="k-checkbox",Ys=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Qs={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},Zs={},q=e=>{let{id:t,checked:o,indeterminate:i,hover:a,focus:r,disabled:d,invalid:c,valid:m,required:f,size:u,rounded:N,wrapperRole:k,...I}=e;return ja("span",{className:"k-checkbox-wrap",role:k,children:ja("input",{...I,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:s(e.className,Rt,w(Rt,{size:u,rounded:N}),E(Rt,{hover:a,focus:r,disabled:d,invalid:c,valid:m,indeterminate:i,checked:o}))})})};q.states=Ys;q.options=Qs;q.className=Rt;q.defaultOptions=Zs;q.moduleName=we;q.folderName=Ye;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 le=q;import{jsx as tr}from"react/jsx-runtime";var ei="k-checkbox-list",js=[],er={},ti={layout:"vertical"},F=e=>{let{layout:t=ti.layout,...o}=e;return tr("ul",{...o,className:s(e.className,ei,{[`k-list-${t}`]:t}),children:e.children})};F.states=js;F.options=er;F.className=ei;F.defaultOptions=ti;F.moduleName=we;F.folderName=Ye;import{jsx as nr}from"react/jsx-runtime";var oi="k-checkbox-list-item",or=[],ar={},ir={},G=e=>{let{...t}=e;return nr("li",{...t,className:s(e.className,oi),children:e.children})};G.states=or;G.options=ar;G.className=oi;G.defaultOptions=ir;G.moduleName=we;G.folderName=Ye;import{Fragment as sr,jsx as ai,jsxs as rr}from"react/jsx-runtime";var Ne=({children:e="Label",id:t="cb-label-after",...o})=>rr(sr,{children:[ai(le,{id:t,...o}),ai("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as $b,jsx as Xb,jsxs as qb}from"react/jsx-runtime";import{Fragment as Zb,jsx as Qb,jsxs as jb}from"react/jsx-runtime";import{Fragment as ih,jsx as ah,jsxs as nh}from"react/jsx-runtime";import{jsx as dh}from"react/jsx-runtime";import{jsx as uh}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";import{jsx as oe,jsxs as ii}from"react/jsx-runtime";var lr=F.options,dr=F.states,cr={...F.defaultOptions,variant:"vertical"},pr=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],mr=[],Qe=e=>{let{variant:t,...o}=e;return t==="horizontal"?ii(F,{layout:"horizontal",...o,children:[oe(G,{children:oe(Ne,{id:K("cb"),defaultChecked:!0,children:"Label"})}),oe(G,{children:oe(Ne,{id:K("cb"),children:"Label"})}),oe(G,{children:oe(Ne,{id:K("cb"),children:"Label"})})]}):ii(F,{...o,children:[oe(G,{children:oe(Ne,{id:K("cb"),defaultChecked:!0,children:"Label"})}),oe(G,{children:oe(Ne,{id:K("cb"),children:"Label"})}),oe(G,{children:oe(Ne,{id:K("cb"),children:"Label"})})]})};Qe.options=lr;Qe.states=dr;Qe.variants=pr;Qe.defaultOptions=cr;Qe.modifiers=mr;Qe.className=F.className;import{jsx as vr}from"react/jsx-runtime";var ur=le.options,fr=le.states,br=le.defaultOptions,hr=[],xr=[],Ze=e=>vr(Ne,{id:K("checkbox"),...e,defaultChecked:!0,children:"Label"});Ze.options=ur;Ze.states=fr;Ze.variants=hr;Ze.defaultOptions=br;Ze.modifiers=xr;Ze.className=le.className;import{jsx as Re,jsxs as Lr}from"react/jsx-runtime";var Oo="k-list-item",Nr=[n.hover,n.focus,n.selected,n.disabled],gr={},kr={},O=e=>{let{text:t,groupLabel:o,group:i,iconName:a,iconClassName:r,showCheckbox:d,checked:c,hover:m,focus:f,selected:u,disabled:N,actions:k,description:I,id:A,...T}=e,L=t||e.children;return Lr("li",{...T,id:A,role:i?"presentation":"option",tabIndex:i?void 0:f?0:-1,"aria-selected":!i&&u?"true":i?void 0:"false","aria-disabled":!i&&N?"true":void 0,className:s(e.className,i?"k-list-group-item":Oo,E(Oo,{hover:m,focus:f,disabled:N,selected:u})),children:[d&&Re(q,{checked:c}),a&&Re("span",{className:"k-list-item-icon-wrapper",children:Re(g,{icon:a,className:s("k-list-item-icon",r)})}),Re("span",{className:"k-list-item-text",children:L}),k&&Re("div",{className:"k-list-item-actions",children:k}),I&&Re("span",{className:"k-list-item-description",children:I}),o&&o!==""&&Re("div",{className:"k-list-item-group-label",children:o})]})};O.states=Nr;O.options=gr;O.className=Oo;O.defaultOptions=kr;O.moduleName=Oe;O.folderName=We;O.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as Ir}from"react/jsx-runtime";var Sr="k-list-ul",Ke=e=>{let{children:t,role:o,id:i,...a}=e;return Ir("ul",{...a,id:i,role:o,className:s(Sr,e.className),children:t})};Ke.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};import{jsx as wo,jsxs as Cr}from"react/jsx-runtime";var yr="k-list-content",X=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":a,listboxId:r,...d}=e;return Cr("div",{...d,className:s(yr,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?i:void 0,"aria-labelledby":o?a:void 0,children:[o?e.children:wo(Ke,{role:"listbox",id:r,"aria-label":i,"aria-labelledby":a,children:e.children}),t&&wo("div",{className:"k-height-container",children:wo("div",{})})]})};X.ariaSpec={selector:".k-list-content",rules:[{selector:'.k-list-content[role="listbox"]',attribute:"role=listbox",usage:"For grouped lists, the list content container has the listbox role."},{selector:'.k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."}]};import{jsx as Ro,jsxs as Mr}from"react/jsx-runtime";var Kt="k-list-sticky-header",Ar=[n.hover,n.focus,n.selected],Tr={},Er={},Pt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:a,hover:r,focus:d,selected:c,...m}=e;return Ro("div",{...m,className:s(Kt,e.className),children:Mr("div",{className:s(`${Kt}-item`,E(`${Kt}-item`,{hover:r,focus:d,selected:c})),children:[o&&Ro(q,{checked:i,indeterminate:a,"aria-label":t}),Ro("span",{className:"k-list-item-text",children:t})]})})};Pt.states=Ar;Pt.options=Tr;Pt.className=Kt;Pt.defaultOptions=Er;import{Fragment as px,jsx as cx,jsxs as mx}from"react/jsx-runtime";import{jsx as Ko,jsxs as wr}from"react/jsx-runtime";var Or="k-list-group-item",vt=e=>{let{groupIconName:t,...o}=e;return wr("li",{...o,role:"presentation",className:s(Or,e.className),children:[t&&Ko("span",{className:"k-list-item-icon-wrapper",children:Ko(g,{icon:t,className:"k-list-item-icon"})}),Ko("span",{className:"k-list-item-text",children:e.children})]})};vt.ariaSpec={selector:".k-list-group-item",rules:[{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-group-item",attribute:"id (when referenced)",usage:"ID for aria-labelledby on the parent group UL."}]};import{jsx as _r}from"react/jsx-runtime";var Po="k-list-optionlabel",Rr=[n.hover,n.focus,n.selected,n.disabled],Kr={},Pr={},_t=e=>{let{text:t,hover:o,focus:i,selected:a,d