UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 82.8 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 E=(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"}),I=(e,t)=>{let{valid:o,invalid:a,hover:i,focus:s,checked:d,active:c,selected:m,disabled:f,indeterminate:h,loading:x,empty:g,readonly:L,highlighted:y,...O}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":s,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":f,"k-indeterminate":h&&!d,"k-loading":x,"k-empty":g,"k-readonly":L,"k-highlighted":y},Object.keys(O).reduce((S,T)=>(T.startsWith("k-")?S[T]=O[T]:S[`k-${T}`]=O[T],S),{}))};function ma(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"},u={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"},fe={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},v={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 ro={};function K(e){return ro[e]=(ro[e]||0)+1,`k-${e}-${ro[e]}`}var no="action-buttons",ua=no;import{jsx as or}from"react/jsx-runtime";var _t="k-actions",er=[],tr={},so={alignment:"start",orientation:"horizontal"},be=e=>{let{alignment:t=so.alignment,orientation:o=so.orientation,...a}=e;return or("div",{...a,className:n(_t,{[`${_t}-${t}`]:t,[`${_t}-${o}`]:o},e.className),children:e.children})};be.states=er;be.options=tr;be.className=_t;be.defaultOptions=so;be.moduleName=no;be.folderName=ua;import{Fragment as nr,jsx as fa}from"react/jsx-runtime";var lo="k-font-icon",ar=[],ir={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[v.undefined,v.base,v.primary,v.secondary,v.tertiary,v.success,v.warning,v.error,v.info]},rr={},xt=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:s,...d}=e;return a?fa("span",{...d,className:n(e.className,lo,E(lo,{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"}):fa(nr,{})};xt.states=ar;xt.options=ir;xt.className=lo;xt.defaultOptions=rr;var ba=xt;import{Fragment as dr,jsx as Dt}from"react/jsx-runtime";var co="k-svg-icon",sr=[],lr={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[v.undefined,v.base,v.primary,v.secondary,v.tertiary,v.success,v.warning,v.error,v.info],variant:[fe.outline,fe.solid,fe.duotone]},po={viewBox:"0 0 24 24",variant:fe.outline},Nt=e=>{let{size:t,themeColor:o,rotate:a,flip:i,viewBox:s=po.viewBox,variant:d=po.variant,icon:c,...m}=e;if(!c)return Dt(dr,{});if(c==="none")return Dt("span",{...m,className:n(e.className,co,E("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Dt("span",{...m,className:n(e.className,co,E("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`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:Dt("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})})};Nt.states=sr;Nt.options=lr;Nt.className=co;Nt.defaultOptions=po;var mo=Nt;import*as uo from"@progress/kendo-svg-icons";var ha="icon",xa="icons";import{useContext as pr}from"react";import{createContext as cr}from"react";var Na=cr({iconsType:"svg"});import{Fragment as va,jsx as vt}from"react/jsx-runtime";var Ht="k-icon",mr=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ur=[],fr={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[v.undefined,v.base,v.primary,v.secondary,v.tertiary,v.success,v.warning,v.error,v.info],variant:[fe.outline,fe.solid,fe.duotone]},zt={viewBox:"0 0 24 24",type:"svg",variant:fe.outline},k=e=>{let{iconsType:t}=pr(Na),{size:o,themeColor:a,icon:i,type:s=t||zt.type,rotate:d,flip:c,viewBox:m=zt.viewBox,variant:f=zt.variant,...h}=e;if(!i)return vt(va,{});if((t||s)==="svg"){if(i==="none")return vt(mo,{...h,className:n(e.className,Ht),icon:i,size:o,variant:f});let g=uo[i]?i:mr(`${i}-icon`);return uo[g]?vt(mo,{...h,className:n(e.className,Ht),icon:uo[g],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:f}):vt(va,{})}return vt(ba,{...h,className:n(e.className,Ht),icon:i,size:o,themeColor:a,rotate:d,flip:c})};k.states=ur;k.options=fr;k.defaultOptions=zt;k.className=Ht;k.moduleName=ha;k.folderName=xa;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var fo="button",ga=fo;import{Fragment as ka,jsx as Ue,jsxs as La}from"react/jsx-runtime";var gt="k-button",br=["icon-button"],hr=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],xr={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[v.undefined,v.base,v.primary,v.secondary,v.tertiary,v.success,v.warning,v.error,v.info,v.inverse]},bo={showArrow:!1,arrowIconName:"chevron-down"},p=e=>{let{as:t="button",size:o,rounded:a,fillMode:i,themeColor:s,showArrow:d=bo.showArrow,arrowIconName:c=bo.arrowIconName,variant:m,hover:f,focus:h,active:x,selected:g,disabled:L,togglable:y,ariaDisabled:O,icon:S,iconSize:T,text:R,iconClassName:F,className:j,...ue}=e,le=S!=null,ge=e.children!==void 0;return La(t,{className:n(j,gt,ma(gt,m),E(gt,{size:o,rounded:a,fillMode:i,themeColor:s}),I(gt,{hover:f,focus:h,active:x,disabled:L||O,selected:g}),{"k-icon-button":!R&&!ge&&le}),"aria-pressed":y?g?"true":"false":void 0,...ue,"aria-disabled":O?"true":void 0,disabled:L||void 0,children:[typeof S=="string"&&S&&Ue(k,{className:n(F,"k-button-icon"),icon:S,size:T}),S&&typeof S!="string"&&Ue(ka,{children:S}),R?La(ka,{children:[R&&Ue("span",{className:"k-button-text",children:R}),e.children]}):e.children&&Ue("span",{className:"k-button-text",children:e.children}),d&&Ue("span",{className:"k-menu-button-arrow k-button-arrow",children:Ue(k,{icon:c})})]})};p.states=hr;p.options=xr;p.variants=br;p.className=gt;p.defaultOptions=bo;p.moduleName=fo;p.folderName=ga;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 Nr}from"react/jsx-runtime";var Sa=e=>Nr(p,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as vr}from"react/jsx-runtime";var Ca=e=>vr(p,{icon:"folder",children:"Button",...e});import{jsx as gr}from"react/jsx-runtime";var Ke=e=>gr(p,{children:"Button",...e});import{jsx as ho}from"react/jsx-runtime";var kr=p.options,Lr=p.states,Sr={...p.defaultOptions,variant:"text"},Cr=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ir=[],Fe=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return ho(Sa,{...o,icon:"star"});case"icon-and-text":return ho(Ca,{...o,icon:"star",children:"Button"});default:return ho(Ke,{...o,children:"Button"})}};Fe.options=kr;Fe.states=Lr;Fe.variants=Cr;Fe.defaultOptions=Sr;Fe.modifiers=Ir;Fe.className=p.className;var xo="button",Ia=xo;import{jsx as Ar}from"react/jsx-runtime";var kt="k-button-group",yr=[r.disabled],Tr={fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link]},Er={},P=e=>{let{fillMode:t,disabled:o,stretched:a,...i}=e;return Ar("div",{role:"group",...i,className:n(e.className,kt,E(kt,{fillMode:t}),I(kt,{disabled:o}),{[`${kt}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};P.states=yr;P.options=Tr;P.className=kt;P.defaultOptions=Er;P.moduleName=xo;P.folderName=Ia;P.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 Zc,jsx as Qc,jsxs as jc}from"react/jsx-runtime";import{Fragment as rp,jsx as ip,jsxs as np}from"react/jsx-runtime";import{Fragment as mp,jsx as pp,jsxs as up}from"react/jsx-runtime";import{Fragment as vp,jsx as Np,jsxs as gp}from"react/jsx-runtime";import{Fragment as yp,jsx as Ip,jsxs as Tp}from"react/jsx-runtime";import{Fragment as Rp,jsx as wp,jsxs as Pp}from"react/jsx-runtime";import{jsx as ke,jsxs as No}from"react/jsx-runtime";var Or={...p.options,...P.options},Mr=p.states,wr={...p.defaultOptions,...P.defaultOptions,variant:"text-button"},Rr=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Pr=[],Ve=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?No(P,{fillMode:a.fillMode,className:o,children:[ke(p,{...a,icon:"star"}),ke(p,{...a,icon:"star"}),ke(p,{...a,icon:"star"})]}):t==="icon-text-button"?No(P,{fillMode:a.fillMode,className:o,children:[ke(p,{...a,icon:"star",children:"First"}),ke(p,{...a,icon:"star",children:"Middle"}),ke(p,{...a,icon:"star",children:"Last"})]}):No(P,{fillMode:a.fillMode,className:o,children:[ke(p,{...a,children:"First"}),ke(p,{...a,children:"Middle"}),ke(p,{...a,children:"Last"})]})};Ve.options=Or;Ve.states=Mr;Ve.variants=Rr;Ve.defaultOptions=wr;Ve.modifiers=Pr;Ve.className=P.className;var vo="slider",ya=vo;import{jsx as Xe,jsxs as go}from"react/jsx-runtime";var Lt="k-slider",Kr=[r.hover,r.focus,r.active,r.disabled,r.readonly],Br={},ee={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=ee.type,orientation:o=ee.orientation,gradientType:a=ee.gradientType,readonly:i=ee.readonly,disabled:s=ee.disabled,handlePosition:d=ee.handlePosition,showButtons:c=ee.showButtons,showTicks:m=ee.showTicks,value:f=ee.value,min:h=ee.min,max:x=ee.max,startValue:g,endValue:L,hover:y,focus:O,active:S,trackStyle:T,dir:R,...F}=e,ue=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),le,ge;return o==="horizontal"?(le=R==="rtl"?"chevron-left":"chevron-right",ge=R==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(le="chevron-up",ge="chevron-down"),go("div",{...F,className:n(Lt,e.className,I(Lt,{readonly:i,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:R,children:[c&&Xe(p,{className:"k-button-decrease",rounded:"full",icon:ge,tabIndex:-1,title:"Decrease"}),go("div",{className:"k-slider-track-wrap",children:[m&&Xe("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),go("div",{className:"k-slider-track",style:T,children:[Xe("div",{className:"k-slider-selection"}),t==="range"&&Xe("span",{className:n("k-draghandle","k-draghandle-start",I(Lt,{hover:y,focus:O,active:S})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":g??h,"aria-valuemin":h,"aria-valuemax":L??x,"aria-orientation":ue,"aria-disabled":s?"true":void 0,"aria-readonly":i?"true":void 0,"aria-label":F["aria-label"]?`${F["aria-label"]} start`:"Range start"}),Xe("span",{className:n("k-draghandle",`k-draghandle-${d}`,I(Lt,{hover:y,focus:O,active:S})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?L??x:f,"aria-valuemin":t==="range"?g??h:h,"aria-valuemax":x,"aria-orientation":ue,"aria-disabled":s?"true":void 0,"aria-readonly":i?"true":void 0,"aria-label":t==="range"?F["aria-label"]?`${F["aria-label"]} end`:"Range end":F["aria-label"]})]})]}),c&&Xe(p,{className:"k-button-increase",rounded:"full",icon:le,tabIndex:-1,title:"Increase"})]})};M.states=Kr;M.options=Br;M.className=Lt;M.defaultOptions=ee;M.moduleName=vo;M.folderName=ya;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 Ta}from"react/jsx-runtime";var Ea="k-tick",_r=[],Dr={},Aa={label:!1},N=e=>{let{style:t,label:o=Aa.label,orientation:a,large:i,text:s,...d}=e;return Ta("li",{...d,role:"presentation",title:s||"Tick",className:n(e.className,Ea,{[`k-tick-${a}`]:a,"k-tick-large":i}),style:t,children:o&&Ta("span",{className:"k-label",children:s})})};N.states=_r;N.options=Dr;N.className=Ea;N.defaultOptions=Aa;import{Fragment as Hr,jsx as te,jsxs as zr}from"react/jsx-runtime";var Oa=e=>te(M,{"aria-label":e["aria-label"]||"Slider",children:zr(Hr,{children:[te(N,{className:"k-first",label:!0,large:!0,text:"0"}),te(N,{}),te(N,{}),te(N,{}),te(N,{}),te(N,{label:!0,large:!0,text:"5"}),te(N,{}),te(N,{}),te(N,{}),te(N,{}),te(N,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Gr,jsx as oe,jsxs as Ur}from"react/jsx-runtime";var Ma=e=>oe(M,{children:Ur(Gr,{children:[oe(N,{className:"k-first",label:!0,large:!0,text:"0"}),oe(N,{}),oe(N,{}),oe(N,{}),oe(N,{}),oe(N,{label:!0,large:!0,text:"5"}),oe(N,{}),oe(N,{}),oe(N,{}),oe(N,{}),oe(N,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as fm,jsx as um,jsxs as bm}from"react/jsx-runtime";import{Fragment as gm,jsx as vm,jsxs as km}from"react/jsx-runtime";import{jsx as Fr}from"react/jsx-runtime";var ko=e=>Fr(M,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Vr}from"react/jsx-runtime";var Lo=e=>Vr(M,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as wm,jsx as Mm,jsxs as Rm}from"react/jsx-runtime";import{Fragment as Dm,jsx as _m,jsxs as Hm}from"react/jsx-runtime";import{jsx as he,jsxs as wa}from"react/jsx-runtime";var Xr=M.options,$r=M.states,Ra={...M.defaultOptions,variant:"horizontal",label:!0},qr=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Wr=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],$e=e=>{let{variant:t,modifiers:o,...a}=e,i=Ra.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"?wa(Ma,{style:{height:"300px",...d},...a,...s,children:[he(N,{label:i,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),he(N,{label:i,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),he(N,{label:i,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),he(N,{label:i,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),he(N,{label:i,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):wa(Oa,{style:{width:"400px",...d},...a,...s,children:[he(N,{label:i,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),he(N,{label:i,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),he(N,{label:i,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),he(N,{label:i,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),he(N,{label:i,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};$e.options=Xr;$e.states=$r;$e.variants=qr;$e.defaultOptions=Ra;$e.modifiers=Wr;$e.className=M.className;var St="input",Gt=St;import{jsx as Zr}from"react/jsx-runtime";var Ut="k-input",Jr=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Yr={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Qr={},D=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c,size:m,rounded:f,fillMode:h,...x}=e;return Zr("span",{...x,className:n(e.className,Ut,E(Ut,{size:m,rounded:f,fillMode:h}),I(Ut,{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c}))})};D.states=Jr;D.options=Yr;D.className=Ut;D.defaultOptions=Qr;D.moduleName=St;D.folderName=Gt;import{jsx as on}from"react/jsx-runtime";var Ft="k-picker",jr=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],en={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},tn={},ye=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c,size:m,rounded:f,fillMode:h,...x}=e;return on("span",{...x,className:n(e.className,Ft,E(Ft,{size:m,rounded:f,fillMode:h}),I(Ft,{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c})),children:e.children})};ye.states=jr;ye.options=en;ye.className=Ft;ye.defaultOptions=tn;ye.moduleName=St;ye.folderName=Gt;import{Fragment as nn,jsx as So}from"react/jsx-runtime";var Pa="k-clear-value",an=[r.disabled,r.loading,r.readonly],rn={},de=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?So(nn,{}):So("span",{className:n(e.className,Pa),children:So(k,{icon:"x"})})};de.states=an;de.options=rn;de.className=Pa;import{jsx as dn}from"react/jsx-runtime";var Co="k-input-inner",sn=[],ln={},Vt={type:"text",autocomplete:"off",value:"",placeholder:""},ce=e=>{let{value:t=Vt.value,type:o=Vt.type,placeholder:a=Vt.placeholder,autocomplete:i=Vt.autocomplete,disabled:s,readOnly:d,...c}=e;return dn("input",{...c,type:o,className:n(e.className,Co,E(Co,e)),placeholder:a,autoComplete:i,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};ce.states=sn;ce.options=ln;ce.className=Co;import{jsx as Ka,jsxs as mn}from"react/jsx-runtime";var Io="k-input-inner",cn=[],pn={},Ct=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:s,...d}=e;return mn("span",{...d,className:n(e.className,Io,E(Io,e)),children:[i,!i&&s&&Ka(k,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&Ka("span",{className:"k-input-value-text",children:t})]})};Ct.states=cn;Ct.options=pn;Ct.className=Io;import{jsx as bn}from"react/jsx-runtime";var yo="k-input-inner",un=[],fn={},Ba={value:"",placeholder:""},To=e=>{let{value:t=Ba.value,placeholder:o=Ba.placeholder,rows:a,disabled:i,...s}=e;return bn("textarea",{...s,className:n(e.className,yo,E(yo,e)),placeholder:o,rows:a,defaultValue:t,disabled:i||void 0})};To.states=un;To.options=fn;To.className=yo;import{Fragment as xn,jsx as _a}from"react/jsx-runtime";var Da="k-input-loading-icon",hn=[r.disabled,r.loading],ae=e=>{let{disabled:t,loading:o}=e;return t||!o?_a(xn,{}):_a("span",{className:n(e.className,Da,"k-icon k-i-loading")})};ae.states=hn;ae.className=Da;import{Fragment as gn,jsx as Ha}from"react/jsx-runtime";var za="k-input-validation-icon",Nn=[r.valid,r.invalid,r.disabled,r.loading],vn={},Z=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,s=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?Ha(gn,{}):Ha(k,{className:n(za),icon:s})};Z.states=Nn;Z.options=vn;Z.className=za;import{Fragment as Sn,jsx as Ga}from"react/jsx-runtime";var kn="k-input-prefix",Ln={direction:"horizontal"},Te=e=>{let{direction:t=Ln.direction,...o}=e;return e.children?Ga("span",{...o,className:n(kn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ga(Sn,{})};import{Fragment as yn,jsx as Ua}from"react/jsx-runtime";var Cn="k-input-suffix",In={direction:"horizontal"},Ee=e=>{let{direction:t=In.direction,...o}=e;return e.children?Ua("span",{...o,className:n(Cn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ua(yn,{})};import{jsx as Vu}from"react/jsx-runtime";import{jsx as En}from"react/jsx-runtime";var Tn="k-input-suffix-text",Eo=e=>{let{children:t,...o}=e;return En("span",{...o,className:n(Tn,e.className),children:t})};import{jsx as On}from"react/jsx-runtime";var Fa="k-input-separator",An={direction:"vertical"},Le=e=>{let{direction:t=An.direction,...o}=e;return On("span",{...o,className:n(Fa,e.className,{[`${Fa}-${t}`]:t})})};import{Fragment as Va,jsx as xe,jsxs as Ao}from"react/jsx-runtime";var Mn=D.states,wn=D.defaultOptions,Rn=D.options,Pn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Kn=[],qe=e=>{let{modifiers:t,valid:o,invalid:a,loading:i,disabled:s,readonly:d,...c}=e,m=t?.prefix,f=t?.suffix,h=t?.["clear-button"],x=t?.["validation-icon"],g=t?.separators;return Ao(D,{...c,valid:o,invalid:a,loading:i,disabled:s,readonly:d,style:{width:300},children:[m&&Ao(Va,{children:[xe(Te,{children:xe(k,{icon:"lock"})}),g&&xe(Le,{})]}),xe(ce,{placeholder:"Placeholder",value:"Value"}),x&&xe(Z,{valid:o,invalid:a,loading:i,disabled:s}),xe(ae,{loading:i,disabled:s}),h&&xe(de,{loading:i,disabled:s,readonly:d,value:"Value"}),f&&Ao(Va,{children:[g&&xe(Le,{}),xe(Ee,{children:xe(Ke,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};qe.options=Rn;qe.states=Mn;qe.variants=Kn;qe.defaultOptions=wn;qe.modifiers=Pn;qe.className=D.className;import{jsx as Xa,jsxs as zn}from"react/jsx-runtime";var $a="k-spin-button",Dn=[],Hn={size:[l.undefined,l.small,l.medium,l.large],fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link]},Oo={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Ae=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:i=Oo.increaseLabel,decreaseLabel:s=Oo.decreaseLabel,...d}=e;return zn("span",{...d,className:n($a,e.className),children:[Xa(p,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":i}),Xa(p,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};Ae.states=Dn;Ae.options=Hn;Ae.className=$a;Ae.defaultOptions=Oo;Ae.moduleName=null;Ae.folderName=null;var qa="numeric-textbox",Wa="numerictextbox";import{Fragment as Ja,jsx as Se,jsxs as Mo}from"react/jsx-runtime";var Ya="k-numerictextbox",Gn=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],Un={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Xt={showSpinButton:!0,showClearButton:!0,separators:!0},A=e=>{let{size:t,rounded:o,fillMode:a,separators:i=Xt.separators,showClearButton:s=Xt.showClearButton,showSpinButton:d=Xt.showSpinButton,prefix:c,suffix:m,value:f,placeholder:h,hover:x,focus:g,valid:L,invalid:y,required:O,loading:S,disabled:T,readonly:R,id:F,"aria-label":j,"aria-describedby":ue,...le}=e;return Mo(D,{...le,size:t,rounded:o,fillMode:a,hover:x,focus:g,valid:L,invalid:y,required:O,loading:S,disabled:T,readonly:R,className:n(e.className,Ya),children:[c&&Mo(Ja,{children:[Se(Te,{children:c}),i&&Se(Le,{})]}),Se(ce,{id:F,placeholder:h,value:f,role:"spinbutton",disabled:T,"aria-label":j,"aria-describedby":ue,"aria-invalid":y?"true":void 0}),Se(Z,{valid:L,invalid:y,loading:S,disabled:T}),Se(ae,{loading:S,disabled:T}),s&&Se(de,{loading:S,disabled:T,readonly:R,value:f}),m&&Mo(Ja,{children:[i&&Se(Le,{}),Se(Ee,{children:m})]}),d&&Se(Ae,{className:"k-input-spinner",size:t,fillMode:a,disabled:T})]})};A.states=Gn;A.options=Un;A.className=Ya;A.defaultOptions=Xt;A.moduleName=qa;A.folderName=Wa;A.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 It=A;import{jsx as Fn}from"react/jsx-runtime";var Qa=e=>Fn(It,{...e});var wo="popup",Za=wo;import{jsx as ja}from"react/jsx-runtime";var ei="k-animation-container",Vn=[],Xn={},Ro={positionMode:"absolute",shown:!0},Ne=e=>{let{positionMode:t=Ro.positionMode,shown:o=Ro.shown,animationStyle:a,offset:i,...s}=e;return ja("div",{...s,style:{...i,...e.style},className:n(e.className,ei,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:ja("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ne.states=Vn;Ne.options=Xn;Ne.className=ei;Ne.defaultOptions=Ro;Ne.moduleName=wo;Ne.folderName=Za;var Po="popup",ti=Po;import{jsx as oi}from"react/jsx-runtime";var ai="k-popup",$n=[],qn={},ii={positionMode:"absolute"},Ce=e=>{let{offset:t,positionMode:o=ii.positionMode,animationStyle:a,containerClassName:i,containerRole:s,containerAriaLabel:d,...c}=e;return oi(Ne,{positionMode:o,offset:t,animationStyle:a,className:i,role:s,"aria-label":d,children:oi("div",{...c,className:n(e.className,ai),children:e.children})})};Ce.states=$n;Ce.options=qn;Ce.className=ai;Ce.defaultOptions=ii;Ce.moduleName=Po;Ce.folderName=ti;Ce.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 Jn}from"react/jsx-runtime";var Wn="k-actionsheet-footer",ri={alignment:"stretched",orientation:"horizontal"},We=e=>{let{alignment:t=ri.alignment,orientation:o=ri.orientation,template:a,as:i=a?"div":be,...s}=e;return Jn(i,{...s,...!a&&{alignment:t,orientation:o},className:n(e.className,Wn),children:e.children})};var Ko="searchbox",ni=Ko;import{jsx as yt,jsxs as Zn}from"react/jsx-runtime";var si="k-searchbox",Yn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],Qn={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Bo={showIcon:!0,icon:"search"},ie=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:s,hover:d,focus:c,valid:m,invalid:f,required:h,loading:x,disabled:g,showIcon:L=Bo.showIcon,icon:y=Bo.icon,"aria-label":O,...S}=e;return Zn(D,{...S,size:a,rounded:i,fillMode:s,hover:d,focus:c,valid:m,invalid:f,required:h,loading:x,disabled:g,className:n(e.className,si),children:[L&&yt(k,{className:"k-input-icon",icon:y}),yt(ce,{placeholder:o,value:t,"aria-label":O}),yt(ae,{...e}),yt(Z,{...e}),yt(de,{...e})]})};ie.states=Yn;ie.options=Qn;ie.className=si;ie.defaultOptions=Bo;ie.moduleName=Ko;ie.folderName=ni;import{jsx as kb}from"react/jsx-runtime";var _o="textbox",li=_o;import{Fragment as di,jsx as Oe,jsxs as Do}from"react/jsx-runtime";var ci="k-textbox",jn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],es={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},$t={showClearButton:!0,showValidationIcon:!0,separators:!0},z=e=>{let{size:t,rounded:o,fillMode:a,separators:i=$t.separators,showClearButton:s=$t.showClearButton,showValidationIcon:d=$t.showValidationIcon,prefix:c,suffix:m,type:f,value:h,placeholder:x,hover:g,focus:L,valid:y,invalid:O,required:S,loading:T,disabled:R,readonly:F,id:j,"aria-label":ue,"aria-describedby":le,...ge}=e;return Do(D,{...ge,size:t,rounded:o,fillMode:a,hover:g,focus:L,valid:y,invalid:O,required:S,loading:T,disabled:R,readonly:F,className:n(e.className,ci),children:[c&&Do(di,{children:[Oe(Te,{children:c}),i&&Oe(Le,{})]}),Oe(ce,{id:j,placeholder:x,value:h,type:f,disabled:R,"aria-label":ue,"aria-describedby":le,"aria-invalid":O?"true":void 0}),d&&Oe(Z,{valid:y,invalid:O,loading:T,disabled:R}),Oe(ae,{loading:T,disabled:R}),s&&Oe(de,{loading:T,disabled:R,readonly:F,value:h}),m&&Do(di,{children:[i&&Oe(Le,{}),Oe(Ee,{children:m})]})]})};z.states=jn;z.options=es;z.className=ci;z.defaultOptions=$t;z.moduleName=_o;z.folderName=li;z.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 Tt=z;import{jsx as ts}from"react/jsx-runtime";var pi=e=>ts(Tt,{...e});import{Fragment as Hb,jsx as Db}from"react/jsx-runtime";import{Fragment as Xb,jsx as Vb}from"react/jsx-runtime";import{jsx as Jb}from"react/jsx-runtime";import{jsx as Ho}from"react/jsx-runtime";var os=z.states,as=z.defaultOptions,is=z.options,rs=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ns=[],Je=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?Ho(k,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[i]?Ho(Ke,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;default:break}}),Ho(pi,{value:"Value",style:{width:300},...o,...a})};Je.options=is;Je.states=os;Je.variants=ns;Je.defaultOptions=as;Je.modifiers=rs;Je.className=z.className;import{jsx as Me,jsxs as zo}from"react/jsx-runtime";var mi="k-actionsheet-titlebar",ss={},pe=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:s,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,titleId:h,children:x,...g}=e;return zo("div",{...g,className:n(e.className,mi),children:[zo("div",{className:"k-actionsheet-titlebar-group",children:[a&&Me("div",{className:"k-actionsheet-actions",children:a}),!x&&zo("div",{className:"k-actionsheet-title",id:h,children:[t&&Me("div",{className:"k-text-center",children:t}),o&&Me("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Me("div",{className:"k-actionsheet-title",id:h,children:x}),i&&Me("div",{className:"k-actionsheet-actions",children:i})]}),(d||s)&&Me("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Me(z,{value:c,placeholder:m,size:f?"large":"medium","aria-label":t||m||"Input"}):Me(ie,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};pe.className=mi;pe.defaultOptions=ss;import{jsx as Go,jsxs as ps}from"react/jsx-runtime";var Uo="k-actionsheet-view",ls=[],ds={},cs={},Ye=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:s,titleId:d,...c}=e,m=i?.type===pe&&Go(pe,{adaptive:t,titleId:d,...i?.props}),f=s?.type===We&&Go(We,{...s?.props});return ps("div",{...c,className:n(e.className,Uo,{[`${Uo}-animated`]:o}),children:[m,Go("div",{className:"k-actionsheet-content",children:a}),f]})};Ye.states=ls;Ye.options=ds;Ye.className=Uo;Ye.defaultOptions=cs;var Et="action-sheet",qt=Et;var Fo="overlay",ui=Fo;import{jsx as bs}from"react/jsx-runtime";var fi="k-overlay",ms=[],us={},fs={},we=e=>{let{...t}=e;return bs("div",{...t,className:n(e.className,fi),children:e.children})};we.states=ms;we.options=us;we.className=fi;we.defaultOptions=fs;we.moduleName=Fo;we.folderName=ui;import{jsx as Wt,jsxs as Ns}from"react/jsx-runtime";var bi="k-actionsheet",hs=[],xs={},At={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},G=e=>{let{side:t=At.side,fullscreen:o=At.fullscreen,adaptive:a=At.adaptive,overlay:i=At.overlay,template:s,children:d,header:c,footer:m,id:f,...h}=e,x=f&&!s&&c?`${f}-title`:void 0;return Ns("div",{className:"k-actionsheet-container",children:[i&&Wt(we,{}),Wt(Ne,{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",{...h,id:f,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":x,className:n(e.className,bi,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||Wt(Ye,{header:c,footer:m,adaptive:a,titleId:x,...e,children:d})})})]})};G.states=hs;G.options=xs;G.className=bi;G.defaultOptions=At;G.moduleName=Et;G.folderName=qt;G.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as Ls}from"react/jsx-runtime";var hi="k-actionsheet-container",vs=[],gs={},ks={},Qe=e=>{let{children:t,...o}=e;return Ls("div",{...o,className:hi,children:t})};Qe.states=vs;Qe.options=gs;Qe.className=hi;Qe.defaultOptions=ks;Qe.moduleName=Et;Qe.folderName=qt;import{jsx as Ss}from"react/jsx-runtime";var Vo=e=>{let{...t}=e;return Ss("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Is,jsx as Ot,jsxs as Xo}from"react/jsx-runtime";var $o="k-actionsheet-item",Cs=[r.hover,r.focus,r.selected,r.disabled],Re=e=>{let{iconName:t,text:o,description:a,hover:i,focus:s,selected:d,disabled:c,...m}=e;return Xo("span",{...m,className:n(e.className,$o,I($o,{hover:i,focus:s,selected:d,disabled:c})),children:[!e.children&&Ot(Is,{children:Xo("span",{className:"k-actionsheet-action",children:[t&&Ot("span",{className:"k-icon-wrap",children:Ot(k,{className:"k-actionsheet-item-icon",icon:t})}),Xo("span",{className:"k-actionsheet-item-text",children:[o&&Ot("span",{className:"k-actionsheet-item-title",children:o}),a&&Ot("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Re.states=Cs;Re.className=$o;import{jsx as Wh,jsxs as Jh}from"react/jsx-runtime";import{jsx as jh}from"react/jsx-runtime";import{jsx as ax}from"react/jsx-runtime";import{jsx as sx}from"react/jsx-runtime";import{jsx as U,jsxs as qo}from"react/jsx-runtime";var ys=G.options,Ts=G.states,Ni={...G.defaultOptions,variant:"normal"},Es=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],As=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Ze=e=>{let{variant:t,modifiers:o,...a}={...Ni,...e},i={},s=qo(Vo,{children:[U(Re,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),U(Re,{text:"Add to Favorites",iconName:"heart"}),U(Re,{text:"Upload New",iconName:"upload",disabled:!0}),U("hr",{className:"k-hr"}),U(Re,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":i.actionsStart=!!o?.[m],i.actionsEnd=!!o?.[m];break;case"subtitle":i.subtitle=o?.[m]?d:void 0;break;case"footer":i.footer=!!o?.[m];break;default:break}}),t==="adaptive"?U(G,{...a,adaptive:!0,fullscreen:i.fullScreen,header:U(pe,{actionsStart:i.actionsStart?U(p,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?U(p,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:i.subtitle}),footer:i.footer?qo(We,{alignment:"stretched",children:[U(p,{text:"Cancel",size:"large",themeColor:"base"}),U(p,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):U(G,{...a,fullscreen:i.fullScreen,header:U(pe,{actionsStart:i.actionsStart?U(p,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?U(p,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?qo(We,{alignment:"stretched",children:[U(p,{text:"Apply",themeColor:"primary"}),U(p,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Ze.options=ys;Ze.states=Ts;Ze.variants=Es;Ze.defaultOptions=Ni;Ze.modifiers=As;Ze.className=G.className;import Yo from"react";import{jsx as vi}from"react/jsx-runtime";var Os="k-list-group-sticky-header",Wo=e=>vi("div",{className:n(Os,e.className),children:vi("div",{className:"k-list-header-text",children:e.children})});import{jsx as ws}from"react/jsx-runtime";var Ms="k-no-data",Jo=e=>{let{live:t,...o}=e;return ws("span",{...o,className:n(Ms,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Be="list",je=Be;import{jsx as gi,jsxs as ki}from"react/jsx-runtime";var Qo="k-list",Rs=[],Ps={size:[l.undefined,l.small,l.medium,l.large]},Ks={},B=e=>{let{size:t,virtualization:o,children:a,header:i,selectAll:s,optionLabel:d,customValue:c,noData:m,screenReaders:f,...h}=e,g=Yo.Children.toArray(a)[0],L=g?.props?.children?Yo.Children.count(g.props.children):Yo.Children.count(a);return ki("div",{...h,className:n(e.className,Qo,E(Qo,{size:t}),{"k-virtual-list":o}),children:[d,s,c,i&&gi(Wo,{children:i}),a||(m!==void 0?m:gi(Jo,{live:!0,children:"No data found."})),f&&a&&ki(Jo,{className:"k-sr-only",live:!0,children:[L," items found."]})]})};B.states=Rs;B.options=Ps;B.className=Qo;B.defaultOptions=Ks;B.moduleName=Be;B.folderName=je;B.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 Hs}from"react/jsx-runtime";var Li="k-list-container",Bs=[],_s={},Ds={},et=e=>{let{...t}=e;return Hs("div",{...t,className:n(e.className,Li),children:e.children})};et.states=Bs;et.options=_s;et.className=Li;et.defaultOptions=Ds;et.moduleName=Be;et.folderName=je;var _e="checkbox",tt=_e;import{jsx as Si}from"react/jsx-runtime";var Jt="k-checkbox",zs=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],Gs={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full]},Us={},Q=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:s,disabled:d,invalid:c,valid:m,required:f,size:h,rounded:x,wrapperRole:g,...L}=e;return Si("span",{className:"k-checkbox-wrap",role:g,children:Si("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,Jt,E(Jt,{size:h,rounded:x}),I(Jt,{hover:i,focus:s,disabled:d,invalid:c,valid:m,indeterminate:a,checked:o}))})})};Q.states=zs;Q.options=Gs;Q.className=Jt;Q.defaultOptions=Us;Q.moduleName=_e;Q.folderName=tt;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 me=Q;import{jsx as Xs}from"react/jsx-runtime";var Ci="k-checkbox-list",Fs=[],Vs={},Ii={layout:"vertical"},X=e=>{let{layout:t=Ii.layout,...o}=e;return Xs("ul",{...o,className:n(e.className,Ci,{[`k-list-${t}`]:t}),children:e.children})};X.states=Fs;X.options=Vs;X.className=Ci;X.defaultOptions=Ii;X.moduleName=_e;X.folderName=tt;import{jsx as Js}from"react/jsx-runtime";var yi="k-checkbox-list-item",$s=[],qs={},Ws={},$=e=>{let{...t}=e;return Js("li",{...t,className:n(e.className,yi),children:e.children})};$.states=$s;$.options=qs;$.className=yi;$.defaultOptions=Ws;$.moduleName=_e;$.folderName=tt;import{Fragment as Ys,jsx as Ti,jsxs as Qs}from"react/jsx-runtime";var Ie=({children:e="Label",id:t="cb-label-after",...o})=>Qs(Ys,{children:[Ti(me,{id:t,...o}),Ti("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as hN,jsx as bN,jsxs as xN}from"react/jsx-runtime";import{Fragment as LN,jsx as kN,jsxs as SN}from"react/jsx-runtime";import{Fragment as EN,jsx as TN,jsxs as AN}from"react/jsx-runtime";import{jsx as RN}from"react/jsx-runtime";import{jsx as _N}from"react/jsx-runtime";import{jsx as GN}from"react/jsx-runtime";import{jsx as re,jsxs as Ei}from"react/jsx-runtime";var Zs=X.options,js=X.states,el={...X.defaultOptions,variant:"vertical"},tl=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],ol=[],ot=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ei(X,{layout:"horizontal",...o,children:[re($,{children:re(Ie,{id:K("cb"),defaultChecked:!0,children:"Label"})}),re($,{children:re(Ie,{id:K("cb"),children:"Label"})}),re($,{children:re(Ie,{id:K("cb"),children:"Label"})})]}):Ei(X,{...o,children:[re($,{children:re(Ie,{id:K("cb"),defaultChecked:!0,children:"Label"})}),re($,{children:re(Ie,{id:K("cb"),children:"Label"})}),re($,{children:re(Ie,{id:K("cb"),children:"Label"})})]})};ot.options=Zs;ot.states=js;ot.variants=tl;ot.defaultOptions=el;ot.modifiers=ol;ot.className=X.className;import{jsx as ll}from"react/jsx-runtime";var al=me.options,il=me.states,rl=me.defaultOptions,nl=[],sl=[],at=e=>ll(Ie,{id:K("checkbox"),...e,defaultChecked:!0,children:"Label"});at.options=al;at.states=il;at.variants=nl;at.defaultOptions=rl;at.modifiers=sl;at.className=me.className;import{jsx as De,jsxs as ml}from"react/jsx-runtime";var Zo="k-list-item",dl=[r.hover,r.focus,r.selected,r.disabled],cl={},pl={},w=e=>{let{text:t,groupLabel:o,group:a,iconName:i,iconClassName:s,showCheckbox:d,checked:c,hover:m,focus:f,selected:h,disabled:x,actions:g,description:L,id:y,...O}=e,S=t||e.children;return ml("li",{...O,id:y,role:a?"presentation":"option",tabIndex:a?void 0:f?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":Zo,I(Zo,{hover:m,focus:f,disabled:x,selected:h})),children:[d&&De(Q,{checked:c}),i&&De("span",{className:"k-list-item-icon-wrapper",children:De(k,{icon:i,className:n("k-list-item-icon",s)})}),De("span",{className:"k-list-item-text",children:S}),g&&De("div",{className:"k-list-item-actions",children:g}),L&&De("span",{className:"k-list-item-description",children:L}),o&&o!==""&&De("div",{className:"k-list-item-group-label",children:o})]})};w.states=dl;w.options=cl;w.className=Zo;w.defaultOptions=pl;w.moduleName=Be;w.folderName=je;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 fl}from"react/jsx-runtime";var ul="k-list-ul",He=e=>{let{children:t,role:o,id:a,...i}=e;return fl("ul",{...i,id:a,role:o,className:n(ul,e.className),children:t})};He.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:"r