UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 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:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};import{jsx as jo,jsxs as hl}from"react/jsx-runtime";var bl="k-list-content",q=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":i,listboxId:s,...d}=e;return hl("div",{...d,className:n(bl,e.className),role:o?"listbox":void 0,id:o?s:void 0,"aria-label":o?a:void 0,"aria-labelledby":o?i:void 0,children:[o?e.children:jo(He,{role:"listbox",id:s,"aria-label":a,"aria-labelledby":i,children:e.children}),t&&jo("div",{className:"k-height-container",children:jo("div",{})})]})};q.ariaSpec={selector:".k-list-content",rules:[{selector:'.k-list-content[role="listbox"]',attribute:"role=listbox",usage:"For grouped lists, the list content container has the listbox role."},{selector:'.k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."}]};import{jsx as ea,jsxs as gl}from"react/jsx-runtime";var Yt="k-list-sticky-header",xl=[r.hover,r.focus,r.selected],Nl={},vl={},Qt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:i,hover:s,focus:d,selected:c,...m}=e;return ea("div",{...m,className:n(Yt,e.className),children:gl("div",{className:n(`${Yt}-item`,I(`${Yt}-item`,{hover:s,focus:d,selected:c})),children:[o&&ea(Q,{checked:a,indeterminate:i,"aria-label":t}),ea("span",{className:"k-list-item-text",children:t})]})})};Qt.states=xl;Qt.options=Nl;Qt.className=Yt;Qt.defaultOptions=vl;import{Fragment as Kv,jsx as Pv,jsxs as Bv}from"react/jsx-runtime";import{jsx as ta,jsxs as Ll}from"react/jsx-runtime";var kl="k-list-group-item",Mt=e=>{let{groupIconName:t,...o}=e;return Ll("li",{...o,role:"presentation",className:n(kl,e.className),children:[t&&ta("span",{className:"k-list-item-icon-wrapper",children:ta(k,{icon:t,className:"k-list-item-icon"})}),ta("span",{className:"k-list-item-text",children:e.children})]})};Mt.ariaSpec={selector:".k-list-group-item",rules:[{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-group-item",attribute:"id (when referenced)",usage:"ID for aria-labelledby on the parent group UL."}]};import{jsx as yl}from"react/jsx-runtime";var oa="k-list-optionlabel",Sl=[r.hover,r.focus,r.selected,r.disabled],Cl={},Il={},Zt=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:s,...d}=e;return yl("div",{...d,className:n(oa,I(oa,{hover:o,focus:a,selected:i,disabled:s})),children:t})};Zt.states=Sl;Zt.options=Cl;Zt.className=oa;Zt.defaultOptions=Il;import{jsx as Ol}from"react/jsx-runtime";var aa="k-list-custom-value",Tl=[r.hover,r.focus,r.selected,r.disabled],El={},Al={},jt=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:s,...d}=e;return Ol("div",{...d,className:n(aa,I(aa,{hover:o,focus:a,selected:i,disabled:s})),children:t})};jt.states=Tl;jt.options=El;jt.className=aa;jt.defaultOptions=Al;import{Fragment as Zv,jsx as Qv,jsxs as jv}from"react/jsx-runtime";import{Fragment as rg,jsx as ig,jsxs as ng}from"react/jsx-runtime";import{Fragment as ug,jsx as pg,jsxs as mg}from"react/jsx-runtime";import{Fragment as gg,jsx as Ng,jsxs as vg}from"react/jsx-runtime";import{jsx as Cg}from"react/jsx-runtime";import{Fragment as Og,jsx as Ag,jsxs as Mg}from"react/jsx-runtime";var Ai="dropdown-list",Oi="dropdownlist";import{Fragment as Rl,jsx as W,jsxs as ia}from"react/jsx-runtime";var Mi="k-dropdownlist",Ml=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],wl={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]},ra={showValue:!0,arrowIconName:"chevron-down"},V=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:i=ra.arrowIconName,showValue:s=ra.showValue,valueIconName:d,prefix:c,suffix:m,value:f,placeholder:h,hover:x,focus:g,valid:L,invalid:y,required:O,loading:S,disabled:T,readonly:R,popup:F,opened:j,adaptive:ue,adaptiveSettings:le,adaptiveTitle:ge,adaptiveSubtitle:Ji,adaptiveFilter:Yi,id:ht,activeDescendant:ca,"aria-label":Qi,...Zi}=e,ji=ht?`${ht}-listbox`:void 0,pa=ht?`${ht}-value`:void 0;return ia(Rl,{children:[ia(ye,{...Zi,id:ht,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,Mi,{"k-icon-picker":!s&&d}),role:"combobox","aria-haspopup":"listbox","aria-expanded":j?"true":"false","aria-controls":j?ji:void 0,"aria-activedescendant":j&&ca?ca:void 0,"aria-describedby":j?pa:void 0,"aria-disabled":T?"true":void 0,"aria-label":Qi,tabIndex:0,children:[W(Te,{children:c}),W(Ct,{placeholder:h,value:f,showValue:s,valueIconName:d,id:pa}),W(Z,{valid:L,invalid:y,loading:S,disabled:T}),W(ae,{loading:S,disabled:T}),W(Ee,{children:m}),W(p,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":h||"Toggle dropdown",tabIndex:-1})]}),j&&F&&W(Ce,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:F}),ue&&W(G,{adaptive:!0,...le,header:W(pe,{actionsEnd:W(p,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:Yi,inputValue:f,inputPlaceholder:h,title:ge,subtitle:Ji}),children:W("div",{className:"k-list-container",children:W(B,{size:"large",children:ia(q,{"aria-label":"Options",children:[W(w,{text:"List item"}),W(w,{text:"List item"}),W(w,{text:"List item"})]})})})})]})};V.states=Ml;V.options=wl;V.className=Mi;V.defaultOptions=ra;V.moduleName=Ai;V.folderName=Oi;V.ariaSpec={rules:[{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"role=combobox",usage:"Announces the dropdown element."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-haspopup=listbox",usage:"Indicates the presence of a listbox popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-expanded",usage:"Announces the visibility state of the popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-label",usage:"Accessible name for the dropdown."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-dropdownlist.k-disabled",attribute:"aria-disabled=true",usage:"Rendered when the dropdown is disabled."},{selector:".k-dropdownlist .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-dropdownlist .k-input-button",attribute:"tabindex=-1",usage:"The button must not be focusable."},{selector:".k-dropdownlist-popup .k-list-content, .k-dropdownlist-popup .k-list-ul",attribute:"role=listbox",usage:"Popup list has listbox role."},{selector:'.k-dropdownlist-popup .k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby",usage:"Popup listbox must have an accessible name. Consuming code is responsible for associating with the component label via aria-labelledby."},{selector:".k-dropdownlist-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."}]};import{jsx as pk}from"react/jsx-runtime";import{jsx as xk,jsxs as Nk}from"react/jsx-runtime";import{Fragment as Tk,jsx as Ik,jsxs as yk}from"react/jsx-runtime";import{jsx as wk}from"react/jsx-runtime";import{jsx as Dk,jsxs as Hk}from"react/jsx-runtime";import{Fragment as Wk,jsx as $k,jsxs as qk}from"react/jsx-runtime";import{jsx as jk}from"react/jsx-runtime";import{Fragment as Hl,jsx as Pe,jsxs as wi}from"react/jsx-runtime";var Pl=V.states,Kl=V.defaultOptions,Bl=V.options,_l=[{name:"opened",title:"Opened"}],Dl=[],rt=e=>{let{modifiers:t,...o}=e,a={},i=wi(Hl,{children:[Pe("div",{className:"k-list-filter",children:Pe(ie,{})}),Pe(B,{style:{width:300},size:o.size,children:wi(q,{children:[Pe(w,{children:"List item"}),Pe(w,{children:"List item"}),Pe(w,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(s=>{s==="opened"&&(a.opened=!!t?.[s],a.popup=t?.[s]?i:void 0)}),Pe("div",{children:Pe(V,{placeholder:"Value",style:{width:300},...o,...a})})};rt.options=Bl;rt.states=Pl;rt.variants=Dl;rt.defaultOptions=Kl;rt.modifiers=_l;rt.className=V.className;import{Fragment as kL,jsx as gL}from"react/jsx-runtime";import{Fragment as TL,jsx as yL}from"react/jsx-runtime";import{jsx as ML}from"react/jsx-runtime";import{jsx as na}from"react/jsx-runtime";var zl=A.states,Gl=A.defaultOptions,Ul=A.options,Fl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"spin-button",title:"`Spin` Button"}],Vl=[],nt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?na(V,{size:o.size,fillMode:"flat",value:"mm"}):void 0;break;case"suffix":a.suffix=t?.[i]?na(Eo,{children:"mm"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;case"spin-button":a.showSpinButton=t?.[i];break;default:break}}),na(Qa,{value:"Value",style:{width:300},...o,...a})};nt.options=Ul;nt.states=zl;nt.variants=Vl;nt.defaultOptions=Gl;nt.modifiers=Fl;nt.className=A.className;import{Fragment as wt,jsx as C,jsxs as _}from"react/jsx-runtime";var Ri="k-colorgradient-inputs",Xl=[],$l={size:[l.undefined,l.small,l.medium,l.large]},Pi={mode:"rgba"},st=e=>{let{mode:t=Pi.mode,size:o,...a}=e;return _("div",{...a,className:n(Ri,"k-hstack"),children:[C("div",{className:"k-vstack",children:C(p,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o,"aria-label":"Toggle color input format"})}),t==="rgba"&&_(wt,{children:[_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Red channel"}),C("label",{className:"k-colorgradient-input-label",children:"R"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Green channel"}),C("label",{className:"k-colorgradient-input-label",children:"G"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Blue channel"}),C("label",{className:"k-colorgradient-input-label",children:"B"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o,"aria-label":"Alpha channel"}),C("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&_(wt,{children:[_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Red channel"}),C("label",{className:"k-colorgradient-input-label",children:"R"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Green channel"}),C("label",{className:"k-colorgradient-input-label",children:"G"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Blue channel"}),C("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&_(wt,{children:[_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Hue channel"}),C("label",{className:"k-colorgradient-input-label",children:"H"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Saturation channel"}),C("label",{className:"k-colorgradient-input-label",children:"S"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Value channel"}),C("label",{className:"k-colorgradient-input-label",children:"V"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"1.00","aria-label":"Alpha channel"}),C("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&_(wt,{children:[_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Hue channel"}),C("label",{className:"k-colorgradient-input-label",children:"H"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Saturation channel"}),C("label",{className:"k-colorgradient-input-label",children:"S"})]}),_("div",{className:"k-vstack",children:[C(A,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Value channel"}),C("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&C(wt,{children:_("div",{className:"k-vstack k-flex-1",children:[C(z,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),C("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};st.states=Xl;st.options=$l;st.className=Ri;st.defaultOptions=Pi;import{jsx as ze,jsxs as Ge}from"react/jsx-runtime";var Ki="k-colorgradient-color-contrast",ql=[],Wl={},Jl={},lt=()=>Ge("div",{className:n(Ki,"k-vbox"),children:[Ge("div",{className:"k-contrast-ratio",children:[ze("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ge("span",{className:"k-contrast-validation !k-text-success",children:[ze(k,{icon:"check"}),ze(k,{icon:"check"})]})]}),Ge("div",{children:[ze("span",{children:"AA: 4.5"}),Ge("span",{className:"k-contrast-validation !k-text-success",children:["Pass",ze(k,{icon:"check"})]})]}),Ge("div",{children:[ze("span",{children:"AAA: 7.0"}),Ge("span",{className:"k-contrast-validation !k-text-error",children:["Fail",ze(k,{icon:"x"})]})]})]});lt.states=ql;lt.options=Wl;lt.className=Ki;lt.defaultOptions=Jl;var Bi="color-gradient",_i="colorgradient";import{jsx as ne,jsxs as Rt}from"react/jsx-runtime";var eo="k-colorgradient",Yl=[r.hover,r.focus,r.readonly,r.disabled],Ql={size:[l.undefined,l.small,l.medium,l.large]},ve={mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},H=e=>{let{size:t,mode:o=ve.mode,readonly:a=ve.readonly,disabled:i=ve.disabled,gradientStyle:s=ve.gradientStyle,dragHandleStyle:d=ve.dragHandleStyle,alphaStyle:c=ve.alphaStyle,alphaStyleHorizontal:m=ve.alphaStyleHorizontal,contrast:f=ve.contrast,dir:h,hover:x,focus:g,hoverHandle:L,focusHandle:y,canvasOrientation:O=ve.canvasOrientation,role:S,tabIndex:T,...R}=e;return Rt("div",{...R,role:S??"textbox","aria-label":S==="none"?void 0:"Color gradient",tabIndex:T??0,"aria-disabled":i?"true":void 0,className:n(e.className,eo,E(eo,{size:t}),I(eo,{hover:x,focus:g,readonly:a,disabled:i})),dir:h,children:[!O||O==="horizontal"&&Rt("div",{className:"k-colorgradient-canvas k-hstack",children:[ne("div",{className:"k-hsv-rectangle",style:s,children:ne("div",{className:"k-hsv-gradient",children:ne("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":L,"k-focus":y}),style:d,role:"slider","aria-orientation":"undefined","aria-label":"Color well with two-dimensional slider for selecting saturation and lightness","aria-valuetext":"X: 73, Y: 50","aria-valuenow":50,"aria-valuemin":0,"aria-valuemax":100})})}),Rt("div",{className:"k-hsv-controls k-hstack",children:[ne(Lo,{className:"k-hue-slider",hover:L,focus:y}),o!=="rgb"&&o!=="hsv"&&ne(Lo,{className:"k-alpha-slider",hover:L,focus:y,trackStyle:c})]})]}),O==="vertical"&&Rt("div",{className:"k-colorgradient-canvas k-vstack",children:[ne("div",{className:"k-hsv-rectangle",style:s,children:ne("div",{className:"k-hsv-gradient",children:ne("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":L,"k-focus":y}),style:d,role:"slider","aria-orientation":"undefined","aria-label":"Color well with two-dimensional slider for selecting saturation and lightness","aria-valuetext":"X: 73, Y: 50","aria-valuenow":50,"aria-valuemin":0,"aria-valuemax":100})})}),Rt("div",{className:"k-hsv-controls k-vstack",children:[ne(ko,{className:"k-hue-slider",hover:L,focus:y}),o!=="rgb"&&o!=="hsv"&&ne(ko,{className:"k-alpha-slider",hover:L,focus:y,trackStyle:m})]})]}),ne(st,{mode:e.mode,size:t}),f&&ne(lt,{})]})};H.states=Yl;H.options=Ql;H.className=eo;H.defaultOptions=ve;H.moduleName=Bi;H.folderName=_i;H.ariaSpec={selector:".k-colorgradient",rules:[{selector:".k-colorgradient",attribute:"role=textbox",usage:"The focusable wrapper should be considered a textbox with a value that could be submitted."},{selector:".k-colorgradient",attribute:"aria-label or aria-labelledby",usage:"The component needs an accessible name including the currently selected value."},{selector:".k-colorgradient",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-colorgradient.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the ColorGradient is disabled."},{selector:".k-hsv-draghandle",attribute:"role=slider",usage:"The 2D draghandle must have slider role for ARIA-allowed attributes."},{selector:".k-hsv-draghandle",attribute:"aria-orientation=undefined",usage:"The implicit orientation for the slider must be removed for the 2D handle."},{selector:".k-hsv-draghandle",attribute:"aria-label",usage:"Must provide information about the purpose of the slider and the currently selected color."},{selector:".k-hsv-draghandle",attribute:"aria-valuetext",usage:"Must specify the values on both X and Y axis."},{selector:".k-hsv-draghandle",attribute:"aria-valuenow",usage:"Required by the slider role."},{selector:".k-hsv-draghandle",attribute:"aria-valuemin",usage:"Required by the slider role."},{selector:".k-hsv-draghandle",attribute:"aria-valuemax",usage:"Required by the slider role."},{selector:".k-numerictextbox>.k-input-inner",attribute:"aria-label",usage:"Must provide the name of the channel (red, green, blue, or alpha)."}]};import{jsx as Zl}from"react/jsx-runtime";var to=e=>Zl(H,{...e});import{jsx as hS}from"react/jsx-runtime";import{jsx as gS}from"react/jsx-runtime";import{jsx as sa}from"react/jsx-runtime";var jl=H.options,ed=H.states,td={...H.defaultOptions,variant:"rgba"},od=[{name:"rgba",title:"RGBA"},{name:"rgb",title:"RGB"},{name:"hex",title:"HEX"}],ad=[],dt=e=>{let{variant:t,...o}=e;switch(t){case"hex":return sa(to,{...o,mode:t});case"rgb":return sa(to,{...o,mode:t});default:return sa(to,{...o,mode:t})}};dt.options=jl;dt.states=ed;dt.variants=od;dt.defaultOptions=td;dt.modifiers=ad;dt.className=H.className;import{jsx as id}from"react/jsx-runtime";var la=e=>id("tr",{role:"row",children:e.children});import{jsx as sd}from"react/jsx-runtime";var da="k-colorpalette-tile",rd=[r.hover,r.focus,r.selected],nd={},ct=e=>{let{color:t,tileSize:o,hover:a,focus:i,selected:s,...d}=e,c={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return sd("td",{...d,role:"gridcell","aria-label":t,"aria-selected":s?"true":void 0,className:n(e.className,da,I(da,{hover:a,focus:i,selected:s})),style:c})};ct.states=rd;ct.options=nd;ct.className=da;var Di="color-palette",Hi="colorpalette";import{jsx as Pt}from"react/jsx-runtime";var oo="k-colorpalette",ld=[r.disabled],dd={size:[l.undefined,l.small,l.medium,l.large]},zi={columns:10},J=e=>{let{size:t,palette:o,columns:a=zi.columns,tileSize:i,disabled:s,...d}=e,c=[];if(o){let m=a||o.columns,f=o.colors?o.colors:o;Array.isArray(f)&&Array.from({length:Math.ceil(f.length/m)},(h,x)=>{let g=[];f.slice(x*m,(x+1)*m).map((y,O)=>{g.push(Pt(ct,{color:y,tileSize:i},O))});let L=Pt(la,{children:g},x);c.push(L)})}return Pt("div",{...d,role:"grid","aria-label":"Color palette",tabIndex:0,"aria-disabled":s?"true":void 0,className:n(e.className,oo,I(oo,{disabled:s}),E(oo,{size:t})),children:Pt("table",{className:"k-colorpalette-table",role:"none",children:Pt("tbody",{children:c.length>0?c:e.children})})})};J.states=ld;J.options=dd;J.className=oo;J.defaultOptions=zi;J.moduleName=Di;J.folderName=Hi;J.ariaSpec={selector:".k-colorpalette",rules:[{selector:".k-colorpalette",attribute:"role=grid",usage:"The focusable wrapper announces its role as a grid."},{selector:".k-colorpalette",attribute:"aria-label or aria-labelledby",usage:"The component needs an accessible name including the currently selected value."},{selector:".k-colorpalette",attribute:"aria-activedescendant",usage:"Points to the focused cell in the table."},{selector:".k-colorpalette",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-colorpalette.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the ColorPalette is disabled."},{selector:".k-colorpalette-table",attribute:"role=none or role=presentation",usage:"Negates the default role of the table element."},{selector:".k-colorpalette-table>tbody>tr",attribute:"role=row",usage:"Required as the semantic role of the parent table has been removed."},{selector:".k-colorpalette-tile",attribute:"role=gridcell",usage:"Required as the semantic role of the parent table has been removed."},{selector:".k-colorpalette-tile",attribute:"aria-label or title",usage:"The text representation of the color value for the current cell."},{selector:".k-colorpalette-tile.k-selected",attribute:"aria-selected=true",usage:"Present on the currently selected cell."}]};var ao=J;var Kt={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}};import{jsx as cd}from"react/jsx-runtime";var Gi=e=>cd(ao,{palette:Kt.basic,...e});import{jsx as tC}from"react/jsx-runtime";import{jsx as sC,jsxs as lC}from"react/jsx-runtime";import{jsx as xd}from"react/jsx-runtime";var pd=J.options,md=J.states,ud={...J.defaultOptions,variant:"basic"},fd=[{name:"basic",title:"Basic"},{name:"monochrome",title:"Monochrome"}],bd={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},hd=[],pt=e=>{let{variant:t="basic",...o}=e,a=bd[t];return xd(Gi,{columns:a.columns,palette:a,...o})};pt.options=pd;pt.states=md;pt.variants=fd;pt.defaultOptions=ud;pt.modifiers=hd;pt.className=J.className;import{jsx as Ui,jsxs as gd}from"react/jsx-runtime";var Fi="k-color-preview",Nd=[],vd={},mt=e=>{let{color:t,iconName:o,...a}=e;return gd("span",{...a,className:n(e.className,Fi,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Ui(k,{icon:o,className:"k-color-preview-icon"}),Ui("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};mt.states=Nd;mt.options=vd;mt.className=Fi;var Vi="color-editor",Xi="coloreditor";import{jsx as se,jsxs as ut}from"react/jsx-runtime";var io="k-coloreditor",kd=[r.focus],Ld={size:[l.undefined,l.small,l.medium,l.large]},Bt={view:"gradient",palette:Kt.office,actionButtons:!0,canvasOrientation:"horizontal"},Y=e=>{let{size:t,view:o=Bt.view,palette:a=Bt.palette,color:i,currentColor:s,focus:d,focusView:c,dir:m,group:f,actionButtons:h=Bt.actionButtons,canvasOrientation:x=Bt.canvasOrientation,...g}=e;return ut("div",{...g,role:"textbox","aria-label":"Color editor",tabIndex:0,className:n(e.className,"k-flatcolorpicker",io,E(io,{size:t}),I(io,{focus:d})),dir:m,children:[ut("div",{className:"k-coloreditor-header k-hstack",children:[se("div",{className:"k-coloreditor-header-actions k-hstack",children:f&&ut(P,{fillMode:"flat",children:[se(p,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient","aria-label":"Color gradient view"}),se(p,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette","aria-label":"Color palette view"})]})}),se("div",{className:"k-spacer"}),ut("div",{className:"k-coloreditor-header-actions k-hstack",children:[se(p,{fillMode:"flat",icon:"droplet-slash",size:t,"aria-label":"Reset color"}),ut("div",{className:"k-coloreditor-preview k-vstack",children:[se(mt,{className:"k-coloreditor-preview-color",color:i}),se(mt,{className:"k-coloreditor-current-color",color:s})]})]})]}),se("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?se(H,{focus:c,size:t,canvasOrientation:x,role:"none",tabIndex:-1}):se(J,{palette:a,size:t})}),h&&ut(be,{className:"k-coloreditor-footer",alignment:"start",children:[se(p,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),se(p,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};Y.states=kd;Y.options=Ld;Y.className=io;Y.defaultOptions=Bt;Y.moduleName=Vi;Y.folderName=Xi;Y.ariaSpec={selector:".k-flatcolorpicker",rules:[{selector:".k-flatcolorpicker",attribute:"role=textbox",usage:"The focusable wrapper should be considered a textbox with a submittable value."},{selector:".k-flatcolorpicker",attribute:"aria-label or aria-labelledby",usage:"The component needs an accessible name including the currently selected value."},{selector:".k-flatcolorpicker",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-flatcolorpicker.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the FlatColorPicker is disabled."},{selector:".k-colorgradient",attribute:"role=none",usage:"The inner ColorGradient must have its role removed."},{selector:".k-colorgradient",attribute:"tabindex=-1",usage:"The inner ColorGradient must be removed from the page tab sequence."}]};var ft=Y;import{jsx as FC}from"react/jsx-runtime";import{jsx as qC}from"react/jsx-runtime";import{jsx as Sd}from"react/jsx-runtime";var $i=e=>Sd(ft,{group:!0,currentColor:"fuchsia",...e});import{jsx as Cd}from"react/jsx-runtime";var qi=e=>Cd(ft,{view:"palette",group:!0,currentColor:"fuchsia",...e});import{jsx as Wi}from"react/jsx-runtime";var Id=Y.options,yd=Y.states,Td={...Y.defaultOptions,variant:"gradient"},Ed=[{name:"gradient",title:"Gradient"},{name:"palette",title:"Palette"}],Ad=[],bt=e=>{let{variant:t,...o}=e;return t==="palette"?Wi(qi,{...o,color:"white"}):Wi($i,{...o,color:"rgba(183, 118 , 118, 1.00)"})};bt.options=Id;bt.states=yd;bt.variants=Ed;bt.defaultOptions=Td;bt.modifiers=Ad;bt.className=Y.className;import{jsx as Od}from"react/jsx-runtime";var uI=({color:e,currentColor:t,...o})=>Od(Y,{group:!0,view:"palette",color:e,currentColor:t,...o});export{uI as ColorPickerAdaptivePalette};