UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 87 kB
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...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)=>n({[`${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:a,hover:i,focus:s,checked:d,active:c,selected:u,disabled:b,indeterminate:h,loading:x,empty:k,readonly:S,highlighted:C,...T}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":s,"k-checked":d,"k-active":c,"k-selected":u,"k-disabled":b,"k-indeterminate":h&&!d,"k-loading":x,"k-empty":k,"k-readonly":S,"k-highlighted":C},Object.keys(T).reduce((g,I)=>(I.startsWith("k-")?g[I]=T[I]:g[`k-${I}`]=T[I],g),{}))};function Na(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"},m={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},ve={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},N={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},r={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 mo={};function B(e){return mo[e]=(mo[e]||0)+1,`k-${e}-${mo[e]}`}var uo="action-buttons",ka=uo;import{jsx as br}from"react/jsx-runtime";var Ut="k-actions",ur=[],fr={},fo={alignment:"start",orientation:"horizontal"},Ne=e=>{let{alignment:t=fo.alignment,orientation:o=fo.orientation,...a}=e;return br("div",{...a,className:n(Ut,{[`${Ut}-${t}`]:t,[`${Ut}-${o}`]:o},e.className),children:e.children})};Ne.states=ur;Ne.options=fr;Ne.className=Ut;Ne.defaultOptions=fo;Ne.moduleName=uo;Ne.folderName=ka;import{Fragment as Nr,jsx as ga}from"react/jsx-runtime";var bo="k-font-icon",hr=[],xr={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info]},vr={},St=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:s,...d}=e;return a?ga("span",{...d,className:n(e.className,bo,A(bo,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):ga(Nr,{})};St.states=hr;St.options=xr;St.className=bo;St.defaultOptions=vr;var La=St;import{Fragment as Lr,jsx as Ft}from"react/jsx-runtime";var ho="k-svg-icon",kr=[],gr={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[ve.outline,ve.solid,ve.duotone]},xo={viewBox:"0 0 24 24",variant:ve.outline},Ct=e=>{let{size:t,themeColor:o,rotate:a,flip:i,viewBox:s=xo.viewBox,variant:d=xo.variant,icon:c,...u}=e;if(!c)return Ft(Lr,{});if(c==="none")return Ft("span",{...u,className:n(e.className,ho,A("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let b=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Ft("span",{...u,className:n(e.className,ho,A("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:Ft("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Ct.states=kr;Ct.options=gr;Ct.className=ho;Ct.defaultOptions=xo;var vo=Ct;import*as No from"@progress/kendo-svg-icons";var Sa="icon",Ca="icons";import{useContext as Cr}from"react";import{createContext as Sr}from"react";var Ia=Sr({iconsType:"svg"});import{Fragment as ya,jsx as It}from"react/jsx-runtime";var Vt="k-icon",Ir=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),yr=[],Er={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[ve.outline,ve.solid,ve.duotone]},Xt={viewBox:"0 0 24 24",type:"svg",variant:ve.outline},L=e=>{let{iconsType:t}=Cr(Ia),{size:o,themeColor:a,icon:i,type:s=t||Xt.type,rotate:d,flip:c,viewBox:u=Xt.viewBox,variant:b=Xt.variant,...h}=e;if(!i)return It(ya,{});if((t||s)==="svg"){if(i==="none")return It(vo,{...h,className:n(e.className,Vt),icon:i,size:o,variant:b});let k=No[i]?i:Ir(`${i}-icon`);return No[k]?It(vo,{...h,className:n(e.className,Vt),icon:No[k],size:o,themeColor:a,rotate:d,flip:c,viewBox:u,variant:b}):It(ya,{})}return It(La,{...h,className:n(e.className,Vt),icon:i,size:o,themeColor:a,rotate:d,flip:c})};L.states=yr;L.options=Er;L.defaultOptions=Xt;L.className=Vt;L.moduleName=Sa;L.folderName=Ca;L.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 ko="button",Ea=ko;import{Fragment as Ta,jsx as We,jsxs as Aa}from"react/jsx-runtime";var yt="k-button",Tr=["icon-button"],Ar=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Or={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info,N.inverse]},go={showArrow:!1,arrowIconName:"chevron-down"},p=e=>{let{as:t="button",size:o,rounded:a,fillMode:i,themeColor:s,showArrow:d=go.showArrow,arrowIconName:c=go.arrowIconName,variant:u,hover:b,focus:h,active:x,selected:k,disabled:S,togglable:C,ariaDisabled:T,icon:g,iconSize:I,text:M,iconClassName:z,className:Q,...ae}=e,j=g!=null,ee=e.children!==void 0;return Aa(t,{className:n(Q,yt,Na(yt,u),A(yt,{size:o,rounded:a,fillMode:i,themeColor:s}),E(yt,{hover:b,focus:h,active:x,disabled:S||T,selected:k}),{"k-icon-button":!M&&!ee&&j}),"aria-pressed":C?k?"true":"false":void 0,...ae,"aria-disabled":T?"true":void 0,disabled:S||void 0,children:[typeof g=="string"&&g&&We(L,{className:n(z,"k-button-icon"),icon:g,size:I}),g&&typeof g!="string"&&We(Ta,{children:g}),M?Aa(Ta,{children:[M&&We("span",{className:"k-button-text",children:M}),e.children]}):e.children&&We("span",{className:"k-button-text",children:e.children}),d&&We("span",{className:"k-menu-button-arrow k-button-arrow",children:We(L,{icon:c})})]})};p.states=Ar;p.options=Or;p.variants=Tr;p.className=yt;p.defaultOptions=go;p.moduleName=ko;p.folderName=Ea;p.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 Mr}from"react/jsx-runtime";var Oa=e=>Mr(p,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Pr}from"react/jsx-runtime";var Ma=e=>Pr(p,{icon:"folder",children:"Button",...e});import{jsx as wr}from"react/jsx-runtime";var ze=e=>wr(p,{children:"Button",...e});import{jsx as Lo}from"react/jsx-runtime";var Rr=p.options,Kr=p.states,Br={...p.defaultOptions,variant:"text"},_r=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Dr=[],Ye=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Lo(Oa,{...o,icon:"star"});case"icon-and-text":return Lo(Ma,{...o,icon:"star",children:"Button"});default:return Lo(ze,{...o,children:"Button"})}};Ye.options=Rr;Ye.states=Kr;Ye.variants=_r;Ye.defaultOptions=Br;Ye.modifiers=Dr;Ye.className=p.className;var So="button",Pa=So;import{jsx as Ur}from"react/jsx-runtime";var Et="k-button-group",Hr=[r.disabled],zr={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Gr={},R=e=>{let{fillMode:t,disabled:o,stretched:a,...i}=e;return Ur("div",{role:"group",...i,className:n(e.className,Et,A(Et,{fillMode:t}),E(Et,{disabled:o}),{[`${Et}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};R.states=Hr;R.options=zr;R.className=Et;R.defaultOptions=Gr;R.moduleName=So;R.folderName=Pa;R.ariaSpec={selector:".k-button-group",rules:[{selector:".k-button-group:not(.k-split-button)",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-button-group.k-disabled",attribute:"aria-disabled=true",usage:"The attribute is rendered only when the entire button group is disabled."},{selector:".k-button-group:not(.k-split-button):not(.k-scheduler-navigation):not(.k-zoom-control) .k-button",attribute:"aria-pressed (when selected)",usage:"Specifies the current state of the ButtonGroup. Only the selected button within the group will have this attribute set to true."}]};import{Fragment as vp,jsx as xp,jsxs as Np}from"react/jsx-runtime";import{Fragment as Ip,jsx as Cp,jsxs as yp}from"react/jsx-runtime";import{Fragment as Pp,jsx as Mp,jsxs as wp}from"react/jsx-runtime";import{Fragment as Hp,jsx as Dp,jsxs as zp}from"react/jsx-runtime";import{Fragment as $p,jsx as Xp,jsxs as qp}from"react/jsx-runtime";import{Fragment as jp,jsx as Zp,jsxs as em}from"react/jsx-runtime";import{jsx as Ee,jsxs as Co}from"react/jsx-runtime";var Fr={...p.options,...R.options},Vr=p.states,Xr={...p.defaultOptions,...R.defaultOptions,variant:"text-button"},$r=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],qr=[],Qe=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?Co(R,{fillMode:a.fillMode,className:o,children:[Ee(p,{...a,icon:"star"}),Ee(p,{...a,icon:"star"}),Ee(p,{...a,icon:"star"})]}):t==="icon-text-button"?Co(R,{fillMode:a.fillMode,className:o,children:[Ee(p,{...a,icon:"star",children:"First"}),Ee(p,{...a,icon:"star",children:"Middle"}),Ee(p,{...a,icon:"star",children:"Last"})]}):Co(R,{fillMode:a.fillMode,className:o,children:[Ee(p,{...a,children:"First"}),Ee(p,{...a,children:"Middle"}),Ee(p,{...a,children:"Last"})]})};Qe.options=Fr;Qe.states=Vr;Qe.variants=$r;Qe.defaultOptions=Xr;Qe.modifiers=qr;Qe.className=R.className;var Io="slider",wa=Io;import{jsx as Ze,jsxs as yo}from"react/jsx-runtime";var Tt="k-slider",Jr=[r.hover,r.focus,r.active,r.disabled,r.readonly],Wr={},ie={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},P=e=>{let{type:t=ie.type,orientation:o=ie.orientation,gradientType:a=ie.gradientType,readonly:i=ie.readonly,disabled:s=ie.disabled,handlePosition:d=ie.handlePosition,showButtons:c=ie.showButtons,showTicks:u=ie.showTicks,value:b=ie.value,min:h=ie.min,max:x=ie.max,startValue:k,endValue:S,hover:C,focus:T,active:g,trackStyle:I,dir:M,...z}=e,ae=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),j,ee;return o==="horizontal"?(j=M==="rtl"?"chevron-left":"chevron-right",ee=M==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(j="chevron-up",ee="chevron-down"),yo("div",{...z,className:n(Tt,e.className,E(Tt,{readonly:i,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:M,children:[c&&Ze(p,{className:"k-button-decrease",rounded:"full",icon:ee,tabIndex:-1,title:"Decrease"}),yo("div",{className:"k-slider-track-wrap",children:[u&&Ze("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),yo("div",{className:"k-slider-track",style:I,children:[Ze("div",{className:"k-slider-selection"}),t==="range"&&Ze("span",{className:n("k-draghandle","k-draghandle-start",E(Tt,{hover:C,focus:T,active:g})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":k??h,"aria-valuemin":h,"aria-valuemax":S??x,"aria-orientation":ae,"aria-disabled":s?"true":void 0,"aria-readonly":i?"true":void 0,"aria-label":z["aria-label"]?`${z["aria-label"]} start`:"Range start"}),Ze("span",{className:n("k-draghandle",`k-draghandle-${d}`,E(Tt,{hover:C,focus:T,active:g})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?S??x:b,"aria-valuemin":t==="range"?k??h:h,"aria-valuemax":x,"aria-orientation":ae,"aria-disabled":s?"true":void 0,"aria-readonly":i?"true":void 0,"aria-label":t==="range"?z["aria-label"]?`${z["aria-label"]} end`:"Range end":z["aria-label"]})]})]}),c&&Ze(p,{className:"k-button-increase",rounded:"full",icon:j,tabIndex:-1,title:"Increase"})]})};P.states=Jr;P.options=Wr;P.className=Tt;P.defaultOptions=ie;P.moduleName=Io;P.folderName=wa;P.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 Ra}from"react/jsx-runtime";var Ka="k-tick",Yr=[],Qr={},Ba={label:!1},v=e=>{let{style:t,label:o=Ba.label,orientation:a,large:i,text:s,...d}=e;return Ra("li",{...d,role:"presentation",title:s||"Tick",className:n(e.className,Ka,{[`k-tick-${a}`]:a,"k-tick-large":i}),style:t,children:o&&Ra("span",{className:"k-label",children:s})})};v.states=Yr;v.options=Qr;v.className=Ka;v.defaultOptions=Ba;import{Fragment as Zr,jsx as re,jsxs as jr}from"react/jsx-runtime";var _a=e=>re(P,{"aria-label":e["aria-label"]||"Slider",children:jr(Zr,{children:[re(v,{className:"k-first",label:!0,large:!0,text:"0"}),re(v,{}),re(v,{}),re(v,{}),re(v,{}),re(v,{label:!0,large:!0,text:"5"}),re(v,{}),re(v,{}),re(v,{}),re(v,{}),re(v,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as en,jsx as ne,jsxs as tn}from"react/jsx-runtime";var Da=e=>ne(P,{children:tn(en,{children:[ne(v,{className:"k-first",label:!0,large:!0,text:"0"}),ne(v,{}),ne(v,{}),ne(v,{}),ne(v,{}),ne(v,{label:!0,large:!0,text:"5"}),ne(v,{}),ne(v,{}),ne(v,{}),ne(v,{}),ne(v,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as Rm,jsx as wm,jsxs as Km}from"react/jsx-runtime";import{Fragment as zm,jsx as Hm,jsxs as Gm}from"react/jsx-runtime";import{jsx as on}from"react/jsx-runtime";var Eo=e=>on(P,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as an}from"react/jsx-runtime";var To=e=>an(P,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as Zm,jsx as Qm,jsxs as jm}from"react/jsx-runtime";import{Fragment as iu,jsx as au,jsxs as ru}from"react/jsx-runtime";import{jsx as ke,jsxs as Ha}from"react/jsx-runtime";var rn=P.options,nn=P.states,za={...P.defaultOptions,variant:"horizontal",label:!0},sn=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],ln=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],je=e=>{let{variant:t,modifiers:o,...a}=e,i=za.label,s={};Object.keys(o||{}).forEach(c=>{switch(c){case"button":{s.showButtons=!!o?.[c];break}case"label":{i=!!o?.[c];break}case"tick":{s.showTicks=!!o?.[c];break}}});let d={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?Ha(Da,{style:{height:"300px",...d},...a,...s,children:[ke(v,{label:i,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),ke(v,{label:i,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),ke(v,{label:i,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),ke(v,{label:i,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),ke(v,{label:i,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):Ha(_a,{style:{width:"400px",...d},...a,...s,children:[ke(v,{label:i,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),ke(v,{label:i,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),ke(v,{label:i,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),ke(v,{label:i,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),ke(v,{label:i,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};je.options=rn;je.states=nn;je.variants=sn;je.defaultOptions=za;je.modifiers=ln;je.className=P.className;var At="input",$t=At;import{jsx as mn}from"react/jsx-runtime";var qt="k-input",dn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],cn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},pn={},G=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c,size:u,rounded:b,fillMode:h,...x}=e;return mn("span",{...x,className:n(e.className,qt,A(qt,{size:u,rounded:b,fillMode:h}),E(qt,{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c}))})};G.states=dn;G.options=cn;G.className=qt;G.defaultOptions=pn;G.moduleName=At;G.folderName=$t;import{jsx as hn}from"react/jsx-runtime";var Jt="k-picker",un=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],fn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},bn={},ge=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c,size:u,rounded:b,fillMode:h,...x}=e;return hn("span",{...x,className:n(e.className,Jt,A(Jt,{size:u,rounded:b,fillMode:h}),E(Jt,{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c})),children:e.children})};ge.states=un;ge.options=fn;ge.className=Jt;ge.defaultOptions=bn;ge.moduleName=At;ge.folderName=$t;import{Fragment as Nn,jsx as Ao}from"react/jsx-runtime";var Ga="k-clear-value",xn=[r.disabled,r.loading,r.readonly],vn={},ue=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?Ao(Nn,{}):Ao("span",{className:n(e.className,Ga),children:Ao(L,{icon:"x"})})};ue.states=xn;ue.options=vn;ue.className=Ga;import{jsx as Ln}from"react/jsx-runtime";var Oo="k-input-inner",kn=[],gn={},Wt={type:"text",autocomplete:"off",value:"",placeholder:""},fe=e=>{let{value:t=Wt.value,type:o=Wt.type,placeholder:a=Wt.placeholder,autocomplete:i=Wt.autocomplete,disabled:s,readOnly:d,...c}=e;return Ln("input",{...c,type:o,className:n(e.className,Oo,A(Oo,e)),placeholder:a,autoComplete:i,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};fe.states=kn;fe.options=gn;fe.className=Oo;import{jsx as Ua,jsxs as In}from"react/jsx-runtime";var Mo="k-input-inner",Sn=[],Cn={},Ge=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:s,...d}=e;return In("span",{...d,className:n(e.className,Mo,A(Mo,e)),children:[i,!i&&s&&Ua(L,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&Ua("span",{className:"k-input-value-text",children:t})]})};Ge.states=Sn;Ge.options=Cn;Ge.className=Mo;import{jsx as Tn}from"react/jsx-runtime";var Po="k-input-inner",yn=[],En={},Fa={value:"",placeholder:""},wo=e=>{let{value:t=Fa.value,placeholder:o=Fa.placeholder,rows:a,disabled:i,...s}=e;return Tn("textarea",{...s,className:n(e.className,Po,A(Po,e)),placeholder:o,rows:a,defaultValue:t,disabled:i||void 0})};wo.states=yn;wo.options=En;wo.className=Po;import{Fragment as On,jsx as Va}from"react/jsx-runtime";var Xa="k-input-loading-icon",An=[r.disabled,r.loading],se=e=>{let{disabled:t,loading:o}=e;return t||!o?Va(On,{}):Va("span",{className:n(e.className,Xa,"k-icon k-i-loading")})};se.states=An;se.className=Xa;import{Fragment as wn,jsx as $a}from"react/jsx-runtime";var qa="k-input-validation-icon",Mn=[r.valid,r.invalid,r.disabled,r.loading],Pn={},te=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,s=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?$a(wn,{}):$a(L,{className:n(qa),icon:s})};te.states=Mn;te.options=Pn;te.className=qa;import{Fragment as Bn,jsx as Ja}from"react/jsx-runtime";var Rn="k-input-prefix",Kn={direction:"horizontal"},Le=e=>{let{direction:t=Kn.direction,...o}=e;return e.children?Ja("span",{...o,className:n(Rn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ja(Bn,{})};import{Fragment as Hn,jsx as Wa}from"react/jsx-runtime";var _n="k-input-suffix",Dn={direction:"horizontal"},Se=e=>{let{direction:t=Dn.direction,...o}=e;return e.children?Wa("span",{...o,className:n(_n,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Wa(Hn,{})};import{jsx as pf}from"react/jsx-runtime";import{jsx as Gn}from"react/jsx-runtime";var zn="k-input-suffix-text",Ro=e=>{let{children:t,...o}=e;return Gn("span",{...o,className:n(zn,e.className),children:t})};import{jsx as Fn}from"react/jsx-runtime";var Ya="k-input-separator",Un={direction:"vertical"},Te=e=>{let{direction:t=Un.direction,...o}=e;return Fn("span",{...o,className:n(Ya,e.className,{[`${Ya}-${t}`]:t})})};import{Fragment as Qa,jsx as Ce,jsxs as Ko}from"react/jsx-runtime";var Vn=G.states,Xn=G.defaultOptions,$n=G.options,qn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Jn=[],et=e=>{let{modifiers:t,valid:o,invalid:a,loading:i,disabled:s,readonly:d,...c}=e,u=t?.prefix,b=t?.suffix,h=t?.["clear-button"],x=t?.["validation-icon"],k=t?.separators;return Ko(G,{...c,valid:o,invalid:a,loading:i,disabled:s,readonly:d,style:{width:300},children:[u&&Ko(Qa,{children:[Ce(Le,{children:Ce(L,{icon:"lock"})}),k&&Ce(Te,{})]}),Ce(fe,{placeholder:"Placeholder",value:"Value"}),x&&Ce(te,{valid:o,invalid:a,loading:i,disabled:s}),Ce(se,{loading:i,disabled:s}),h&&Ce(ue,{loading:i,disabled:s,readonly:d,value:"Value"}),b&&Ko(Qa,{children:[k&&Ce(Te,{}),Ce(Se,{children:Ce(ze,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};et.options=$n;et.states=Vn;et.variants=Jn;et.defaultOptions=Xn;et.modifiers=qn;et.className=G.className;import{jsx as Za,jsxs as jn}from"react/jsx-runtime";var ja="k-spin-button",Qn=[],Zn={size:[l.undefined,l.small,l.medium,l.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Bo={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Pe=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:i=Bo.increaseLabel,decreaseLabel:s=Bo.decreaseLabel,...d}=e;return jn("span",{...d,className:n(ja,e.className),children:[Za(p,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":i}),Za(p,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};Pe.states=Qn;Pe.options=Zn;Pe.className=ja;Pe.defaultOptions=Bo;Pe.moduleName=null;Pe.folderName=null;var ei="numeric-textbox",ti="numerictextbox";import{Fragment as oi,jsx as Ae,jsxs as _o}from"react/jsx-runtime";var ai="k-numerictextbox",es=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],ts={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Yt={showSpinButton:!0,showClearButton:!0,separators:!0},O=e=>{let{size:t,rounded:o,fillMode:a,separators:i=Yt.separators,showClearButton:s=Yt.showClearButton,showSpinButton:d=Yt.showSpinButton,prefix:c,suffix:u,value:b,placeholder:h,hover:x,focus:k,valid:S,invalid:C,required:T,loading:g,disabled:I,readonly:M,id:z,"aria-label":Q,"aria-describedby":ae,...j}=e;return _o(G,{...j,size:t,rounded:o,fillMode:a,hover:x,focus:k,valid:S,invalid:C,required:T,loading:g,disabled:I,readonly:M,className:n(e.className,ai),children:[c&&_o(oi,{children:[Ae(Le,{children:c}),i&&Ae(Te,{})]}),Ae(fe,{id:z,placeholder:h,value:b,role:"spinbutton",disabled:I,"aria-label":Q,"aria-describedby":ae,"aria-invalid":C?"true":void 0}),Ae(te,{valid:S,invalid:C,loading:g,disabled:I}),Ae(se,{loading:g,disabled:I}),s&&Ae(ue,{loading:g,disabled:I,readonly:M,value:b}),u&&_o(oi,{children:[i&&Ae(Te,{}),Ae(Se,{children:u})]}),d&&Ae(Pe,{className:"k-input-spinner",size:t,fillMode:a,disabled:I})]})};O.states=es;O.options=ts;O.className=ai;O.defaultOptions=Yt;O.moduleName=ei;O.folderName=ti;O.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 Ot=O;import{jsx as os}from"react/jsx-runtime";var ii=e=>os(Ot,{...e});var Do="popup",ri=Do;import{jsx as ni}from"react/jsx-runtime";var si="k-animation-container",as=[],is={},Ho={positionMode:"absolute",shown:!0},Ie=e=>{let{positionMode:t=Ho.positionMode,shown:o=Ho.shown,animationStyle:a,offset:i,...s}=e;return ni("div",{...s,style:{...i,...e.style},className:n(e.className,si,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:ni("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ie.states=as;Ie.options=is;Ie.className=si;Ie.defaultOptions=Ho;Ie.moduleName=Do;Ie.folderName=ri;var zo="popup",li=zo;import{jsx as di}from"react/jsx-runtime";var ci="k-popup",rs=[],ns={},pi={positionMode:"absolute"},be=e=>{let{offset:t,positionMode:o=pi.positionMode,animationStyle:a,containerClassName:i,containerRole:s,containerAriaLabel:d,...c}=e;return di(Ie,{positionMode:o,offset:t,animationStyle:a,className:i,role:s,"aria-label":d,children:di("div",{...c,className:n(e.className,ci),children:e.children})})};be.states=rs;be.options=ns;be.className=ci;be.defaultOptions=pi;be.moduleName=zo;be.folderName=li;be.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.'}]};import{jsx as ls}from"react/jsx-runtime";var ss="k-actionsheet-footer",mi={alignment:"stretched",orientation:"horizontal"},we=e=>{let{alignment:t=mi.alignment,orientation:o=mi.orientation,template:a,as:i=a?"div":Ne,...s}=e;return ls(i,{...s,...!a&&{alignment:t,orientation:o},className:n(e.className,ss),children:e.children})};var Go="searchbox",ui=Go;import{jsx as Mt,jsxs as ps}from"react/jsx-runtime";var fi="k-searchbox",ds=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],cs={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Uo={showIcon:!0,icon:"search"},le=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:s,hover:d,focus:c,valid:u,invalid:b,required:h,loading:x,disabled:k,showIcon:S=Uo.showIcon,icon:C=Uo.icon,"aria-label":T,...g}=e;return ps(G,{...g,size:a,rounded:i,fillMode:s,hover:d,focus:c,valid:u,invalid:b,required:h,loading:x,disabled:k,className:n(e.className,fi),children:[S&&Mt(L,{className:"k-input-icon",icon:C}),Mt(fe,{placeholder:o,value:t,"aria-label":T}),Mt(se,{...e}),Mt(te,{...e}),Mt(ue,{...e})]})};le.states=ds;le.options=cs;le.className=fi;le.defaultOptions=Uo;le.moduleName=Go;le.folderName=ui;import{jsx as Gb}from"react/jsx-runtime";var Fo="textbox",bi=Fo;import{Fragment as hi,jsx as Re,jsxs as Vo}from"react/jsx-runtime";var xi="k-textbox",ms=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],us={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Qt={showClearButton:!0,showValidationIcon:!0,separators:!0},F=e=>{let{size:t,rounded:o,fillMode:a,separators:i=Qt.separators,showClearButton:s=Qt.showClearButton,showValidationIcon:d=Qt.showValidationIcon,prefix:c,suffix:u,type:b,value:h,placeholder:x,hover:k,focus:S,valid:C,invalid:T,required:g,loading:I,disabled:M,readonly:z,id:Q,"aria-label":ae,"aria-describedby":j,...ee}=e;return Vo(G,{...ee,size:t,rounded:o,fillMode:a,hover:k,focus:S,valid:C,invalid:T,required:g,loading:I,disabled:M,readonly:z,className:n(e.className,xi),children:[c&&Vo(hi,{children:[Re(Le,{children:c}),i&&Re(Te,{})]}),Re(fe,{id:Q,placeholder:x,value:h,type:b,disabled:M,"aria-label":ae,"aria-describedby":j,"aria-invalid":T?"true":void 0}),d&&Re(te,{valid:C,invalid:T,loading:I,disabled:M}),Re(se,{loading:I,disabled:M}),s&&Re(ue,{loading:I,disabled:M,readonly:z,value:h}),u&&Vo(hi,{children:[i&&Re(Te,{}),Re(Se,{children:u})]})]})};F.states=ms;F.options=us;F.className=xi;F.defaultOptions=Qt;F.moduleName=Fo;F.folderName=bi;F.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 Pt=F;import{jsx as fs}from"react/jsx-runtime";var vi=e=>fs(Pt,{...e});import{Fragment as rh,jsx as ih}from"react/jsx-runtime";import{Fragment as ph,jsx as ch}from"react/jsx-runtime";import{jsx as bh}from"react/jsx-runtime";import{jsx as Xo}from"react/jsx-runtime";var bs=F.states,hs=F.defaultOptions,xs=F.options,vs=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Ns=[],tt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?Xo(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[i]?Xo(ze,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;default:break}}),Xo(vi,{value:"Value",style:{width:300},...o,...a})};tt.options=xs;tt.states=bs;tt.variants=Ns;tt.defaultOptions=hs;tt.modifiers=vs;tt.className=F.className;import{jsx as Ke,jsxs as $o}from"react/jsx-runtime";var Ni="k-actionsheet-titlebar",ks={},oe=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:s,input:d,inputValue:c,inputPlaceholder:u,adaptive:b,titleId:h,children:x,...k}=e;return $o("div",{...k,className:n(e.className,Ni),children:[$o("div",{className:"k-actionsheet-titlebar-group",children:[a&&Ke("div",{className:"k-actionsheet-actions",children:a}),!x&&$o("div",{className:"k-actionsheet-title",id:h,children:[t&&Ke("div",{className:"k-text-center",children:t}),o&&Ke("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Ke("div",{className:"k-actionsheet-title",id:h,children:x}),i&&Ke("div",{className:"k-actionsheet-actions",children:i})]}),(d||s)&&Ke("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ke(F,{value:c,placeholder:u,size:b?"large":"medium","aria-label":t||u||"Input"}):Ke(le,{placeholder:"Filter",size:b?"large":"medium","aria-label":"Filter options"})})]})};oe.className=Ni;oe.defaultOptions=ks;import{jsx as qo,jsxs as Cs}from"react/jsx-runtime";var Jo="k-actionsheet-view",gs=[],Ls={},Ss={},ot=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:s,titleId:d,...c}=e,u=i?.type===oe&&qo(oe,{adaptive:t,titleId:d,...i?.props}),b=s?.type===we&&qo(we,{...s?.props});return Cs("div",{...c,className:n(e.className,Jo,{[`${Jo}-animated`]:o}),children:[u,qo("div",{className:"k-actionsheet-content",children:a}),b]})};ot.states=gs;ot.options=Ls;ot.className=Jo;ot.defaultOptions=Ss;var wt="action-sheet",Zt=wt;var Wo="overlay",ki=Wo;import{jsx as Ts}from"react/jsx-runtime";var gi="k-overlay",Is=[],ys={},Es={},Be=e=>{let{...t}=e;return Ts("div",{...t,className:n(e.className,gi),children:e.children})};Be.states=Is;Be.options=ys;Be.className=gi;Be.defaultOptions=Es;Be.moduleName=Wo;Be.folderName=ki;import{jsx as jt,jsxs as Ms}from"react/jsx-runtime";var Li="k-actionsheet",As=[],Os={},Rt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},H=e=>{let{side:t=Rt.side,fullscreen:o=Rt.fullscreen,adaptive:a=Rt.adaptive,overlay:i=Rt.overlay,template:s,children:d,header:c,footer:u,id:b,...h}=e,x=b&&!s&&c?`${b}-title`:void 0;return Ms("div",{className:"k-actionsheet-container",children:[i&&jt(Be,{}),jt(Ie,{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:jt("div",{...h,id:b,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":x,className:n(e.className,Li,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||jt(ot,{header:c,footer:u,adaptive:a,titleId:x,...e,children:d})})})]})};H.states=As;H.options=Os;H.className=Li;H.defaultOptions=Rt;H.moduleName=wt;H.folderName=Zt;H.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 Ks}from"react/jsx-runtime";var Si="k-actionsheet-container",Ps=[],ws={},Rs={},at=e=>{let{children:t,...o}=e;return Ks("div",{...o,className:Si,children:t})};at.states=Ps;at.options=ws;at.className=Si;at.defaultOptions=Rs;at.moduleName=wt;at.folderName=Zt;import{jsx as Bs}from"react/jsx-runtime";var Yo=e=>{let{...t}=e;return Bs("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Ds,jsx as Kt,jsxs as Qo}from"react/jsx-runtime";var Zo="k-actionsheet-item",_s=[r.hover,r.focus,r.selected,r.disabled],_e=e=>{let{iconName:t,text:o,description:a,hover:i,focus:s,selected:d,disabled:c,...u}=e;return Qo("span",{...u,className:n(e.className,Zo,E(Zo,{hover:i,focus:s,selected:d,disabled:c})),children:[!e.children&&Kt(Ds,{children:Qo("span",{className:"k-actionsheet-action",children:[t&&Kt("span",{className:"k-icon-wrap",children:Kt(L,{className:"k-actionsheet-item-icon",icon:t})}),Qo("span",{className:"k-actionsheet-item-text",children:[o&&Kt("span",{className:"k-actionsheet-item-title",children:o}),a&&Kt("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};_e.states=_s;_e.className=Zo;import{jsx as fx,jsxs as bx}from"react/jsx-runtime";import{jsx as Nx}from"react/jsx-runtime";import{jsx as Sx}from"react/jsx-runtime";import{jsx as Ex}from"react/jsx-runtime";import{jsx as V,jsxs as jo}from"react/jsx-runtime";var Hs=H.options,zs=H.states,Ii={...H.defaultOptions,variant:"normal"},Gs=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Us=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],it=e=>{let{variant:t,modifiers:o,...a}={...Ii,...e},i={},s=jo(Yo,{children:[V(_e,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),V(_e,{text:"Add to Favorites",iconName:"heart"}),V(_e,{text:"Upload New",iconName:"upload",disabled:!0}),V("hr",{className:"k-hr"}),V(_e,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":i.actionsStart=!!o?.[u],i.actionsEnd=!!o?.[u];break;case"subtitle":i.subtitle=o?.[u]?d:void 0;break;case"footer":i.footer=!!o?.[u];break;default:break}}),t==="adaptive"?V(H,{...a,adaptive:!0,fullscreen:i.fullScreen,header:V(oe,{actionsStart:i.actionsStart?V(p,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?V(p,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:i.subtitle}),footer:i.footer?jo(we,{alignment:"stretched",children:[V(p,{text:"Cancel",size:"large",themeColor:"base"}),V(p,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):V(H,{...a,fullscreen:i.fullScreen,header:V(oe,{actionsStart:i.actionsStart?V(p,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?V(p,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?jo(we,{alignment:"stretched",children:[V(p,{text:"Apply",themeColor:"primary"}),V(p,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};it.options=Hs;it.states=zs;it.variants=Gs;it.defaultOptions=Ii;it.modifiers=Us;it.className=H.className;import oa from"react";import{jsx as yi}from"react/jsx-runtime";var Fs="k-list-group-sticky-header",ea=e=>yi("div",{className:n(Fs,e.className),children:yi("div",{className:"k-list-header-text",children:e.children})});import{jsx as Xs}from"react/jsx-runtime";var Vs="k-no-data",ta=e=>{let{live:t,...o}=e;return Xs("span",{...o,className:n(Vs,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Ue="list",rt=Ue;import{jsx as Ei,jsxs as Ti}from"react/jsx-runtime";var aa="k-list",$s=[],qs={size:[l.undefined,l.small,l.medium,l.large]},Js={},_=e=>{let{size:t,virtualization:o,children:a,header:i,selectAll:s,optionLabel:d,customValue:c,noData:u,screenReaders:b,...h}=e,k=oa.Children.toArray(a)[0],S=k?.props?.children?oa.Children.count(k.props.children):oa.Children.count(a);return Ti("div",{...h,className:n(e.className,aa,A(aa,{size:t}),{"k-virtual-list":o}),children:[d,s,c,i&&Ei(ea,{children:i}),a||(u!==void 0?u:Ei(ta,{live:!0,children:"No data found."})),b&&a&&Ti(ta,{className:"k-sr-only",live:!0,children:[S," items found."]})]})};_.states=$s;_.options=qs;_.className=aa;_.defaultOptions=Js;_.moduleName=Ue;_.folderName=rt;_.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 Zs}from"react/jsx-runtime";var Ai="k-list-container",Ws=[],Ys={},Qs={},nt=e=>{let{...t}=e;return Zs("div",{...t,className:n(e.className,Ai),children:e.children})};nt.states=Ws;nt.options=Ys;nt.className=Ai;nt.defaultOptions=Qs;nt.moduleName=Ue;nt.folderName=rt;var Fe="checkbox",st=Fe;import{jsx as Oi}from"react/jsx-runtime";var eo="k-checkbox",js=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],el={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},tl={},Z=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:s,disabled:d,invalid:c,valid:u,required:b,size:h,rounded:x,wrapperRole:k,...S}=e;return Oi("span",{className:"k-checkbox-wrap",role:k,children:Oi("input",{...S,id:t,type:"checkbox",defaultChecked:o,required:b,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,eo,A(eo,{size:h,rounded:x}),E(eo,{hover:i,focus:s,disabled:d,invalid:c,valid:u,indeterminate:a,checked:o}))})})};Z.states=js;Z.options=el;Z.className=eo;Z.defaultOptions=tl;Z.moduleName=Fe;Z.folderName=st;Z.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 he=Z;import{jsx as il}from"react/jsx-runtime";var Mi="k-checkbox-list",ol=[],al={},Pi={layout:"vertical"},$=e=>{let{layout:t=Pi.layout,...o}=e;return il("ul",{...o,className:n(e.className,Mi,{[`k-list-${t}`]:t}),children:e.children})};$.states=ol;$.options=al;$.className=Mi;$.defaultOptions=Pi;$.moduleName=Fe;$.folderName=st;import{jsx as ll}from"react/jsx-runtime";var wi="k-checkbox-list-item",rl=[],nl={},sl={},q=e=>{let{...t}=e;return ll("li",{...t,className:n(e.className,wi),children:e.children})};q.states=rl;q.options=nl;q.className=wi;q.defaultOptions=sl;q.moduleName=Fe;q.folderName=st;import{Fragment as dl,jsx as Ri,jsxs as cl}from"react/jsx-runtime";var Oe=({children:e="Label",id:t="cb-label-after",...o})=>cl(dl,{children:[Ri(he,{id:t,...o}),Ri("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Bv,jsx as Kv,jsxs as _v}from"react/jsx-runtime";import{Fragment as Uv,jsx as Gv,jsxs as Fv}from"react/jsx-runtime";import{Fragment as Jv,jsx as qv,jsxs as Wv}from"react/jsx-runtime";import{jsx as jv}from"react/jsx-runtime";import{jsx as aN}from"react/jsx-runtime";import{jsx as sN}from"react/jsx-runtime";import{jsx as de,jsxs as Ki}from"react/jsx-runtime";var pl=$.options,ml=$.states,ul={...$.defaultOptions,variant:"vertical"},fl=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],bl=[],lt=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ki($,{layout:"horizontal",...o,children:[de(q,{children:de(Oe,{id:B("cb"),defaultChecked:!0,children:"Label"})}),de(q,{children:de(Oe,{id:B("cb"),children:"Label"})}),de(q,{children:de(Oe,{id:B("cb"),children:"Label"})})]}):Ki($,{...o,children:[de(q,{children:de(Oe,{id:B("cb"),defaultChecked:!0,children:"Label"})}),de(q,{children:de(Oe,{id:B("cb"),children:"Label"})}),de(q,{children:de(Oe,{id:B("cb"),children:"Label"})})]})};lt.options=pl;lt.states=ml;lt.variants=fl;lt.defaultOptions=ul;lt.modifiers=bl;lt.className=$.className;import{jsx as gl}from"react/jsx-runtime";var hl=he.options,xl=he.states,vl=he.defaultOptions,Nl=[],kl=[],dt=e=>gl(Oe,{id:B("checkbox"),...e,defaultChecked:!0,children:"Label"});dt.options=hl;dt.states=xl;dt.variants=Nl;dt.defaultOptions=vl;dt.modifiers=kl;dt.className=he.className;import{jsx as Ve,jsxs as Il}from"react/jsx-runtime";var ia="k-list-item",Ll=[r.hover,r.focus,r.selected,r.disabled],Sl={},Cl={},w=e=>{let{text:t,groupLabel:o,group:a,iconName:i,iconClassName:s,showCheckbox:d,checked:c,hover:u,focus:b,selected:h,disabled:x,actions:k,description:S,id:C,...T}=e,g=t||e.children;return Il("li",{...T,id:C,role:a?"presentation":"option",tabIndex:a?void 0:b?0:-1,"aria-selected":!a&&h?"true":a?void 0:"false","aria-disabled":!a&&x?"true":void 0,className:n(e.className,a?"k-list-group-item":ia,E(ia,{hover:u,focus:b,disabled:x,selected:h})),children:[d&&Ve(Z,{checked:c}),i&&Ve("span",{className:"k-list-item-icon-wrapper",children:Ve(L,{icon:i,className:n("k-list-item-icon",s)})}),Ve("span",{className:"k-list-item-text",children:g}),k&&Ve("div",{className:"k-list-item-actions",children:k}),S&&Ve("span",{className:"k-list-item-description",children:S}),o&&o!==""&&Ve("div",{className:"k-list-item-group-label",children:o})]})};w.states=Ll;w.options=Sl;w.className=ia;w.defaultOptions=Cl;w.moduleName=Ue;w.folderName=rt;w.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 El}from"react/jsx-runtime";var yl="k-list-ul",Xe=e=>{let{children:t,role:o,id:a,...i}=e;return El("ul",{...i,id:a,role:o,className:n(yl,e.className),children:t})};Xe.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:"rol