@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines • 87.1 kB
JavaScript
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var A=(e,t)=>n({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),E=(e,t)=>{let{valid:o,invalid:a,hover:i,focus:s,checked:d,active:c,selected:u,disabled:b,indeterminate:h,loading:x,empty:k,readonly:S,highlighted:C,...T}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":s,"k-checked":d,"k-active":c,"k-selected":u,"k-disabled":b,"k-indeterminate":h&&!d,"k-loading":x,"k-empty":k,"k-readonly":S,"k-highlighted":C},Object.keys(T).reduce((g,I)=>(I.startsWith("k-")?g[I]=T[I]:g[`k-${I}`]=T[I],g),{}))};function Na(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},ve={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},N={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},r={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var mo={};function B(e){return mo[e]=(mo[e]||0)+1,`k-${e}-${mo[e]}`}var uo="action-buttons",ka=uo;import{jsx as br}from"react/jsx-runtime";var Ut="k-actions",ur=[],fr={},fo={alignment:"start",orientation:"horizontal"},Ne=e=>{let{alignment:t=fo.alignment,orientation:o=fo.orientation,...a}=e;return br("div",{...a,className:n(Ut,{[`${Ut}-${t}`]:t,[`${Ut}-${o}`]:o},e.className),children:e.children})};Ne.states=ur;Ne.options=fr;Ne.className=Ut;Ne.defaultOptions=fo;Ne.moduleName=uo;Ne.folderName=ka;import{Fragment as Nr,jsx as ga}from"react/jsx-runtime";var bo="k-font-icon",hr=[],xr={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info]},vr={},St=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:s,...d}=e;return a?ga("span",{...d,className:n(e.className,bo,A(bo,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):ga(Nr,{})};St.states=hr;St.options=xr;St.className=bo;St.defaultOptions=vr;var La=St;import{Fragment as Lr,jsx as Ft}from"react/jsx-runtime";var ho="k-svg-icon",kr=[],gr={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[ve.outline,ve.solid,ve.duotone]},xo={viewBox:"0 0 24 24",variant:ve.outline},Ct=e=>{let{size:t,themeColor:o,rotate:a,flip:i,viewBox:s=xo.viewBox,variant:d=xo.variant,icon:c,...u}=e;if(!c)return Ft(Lr,{});if(c==="none")return Ft("span",{...u,className:n(e.className,ho,A("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let b=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Ft("span",{...u,className:n(e.className,ho,A("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:Ft("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Ct.states=kr;Ct.options=gr;Ct.className=ho;Ct.defaultOptions=xo;var vo=Ct;import*as No from"@progress/kendo-svg-icons";var Sa="icon",Ca="icons";import{useContext as Cr}from"react";import{createContext as Sr}from"react";var Ia=Sr({iconsType:"svg"});import{Fragment as ya,jsx as It}from"react/jsx-runtime";var Vt="k-icon",Ir=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),yr=[],Er={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[ve.outline,ve.solid,ve.duotone]},Xt={viewBox:"0 0 24 24",type:"svg",variant:ve.outline},L=e=>{let{iconsType:t}=Cr(Ia),{size:o,themeColor:a,icon:i,type:s=t||Xt.type,rotate:d,flip:c,viewBox:u=Xt.viewBox,variant:b=Xt.variant,...h}=e;if(!i)return It(ya,{});if((t||s)==="svg"){if(i==="none")return It(vo,{...h,className:n(e.className,Vt),icon:i,size:o,variant:b});let k=No[i]?i:Ir(`${i}-icon`);return No[k]?It(vo,{...h,className:n(e.className,Vt),icon:No[k],size:o,themeColor:a,rotate:d,flip:c,viewBox:u,variant:b}):It(ya,{})}return It(La,{...h,className:n(e.className,Vt),icon:i,size:o,themeColor:a,rotate:d,flip:c})};L.states=yr;L.options=Er;L.defaultOptions=Xt;L.className=Vt;L.moduleName=Sa;L.folderName=Ca;L.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var ko="button",Ea=ko;import{Fragment as Ta,jsx as We,jsxs as Aa}from"react/jsx-runtime";var yt="k-button",Tr=["icon-button"],Ar=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Or={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info,N.inverse]},go={showArrow:!1,arrowIconName:"chevron-down"},p=e=>{let{as:t="button",size:o,rounded:a,fillMode:i,themeColor:s,showArrow:d=go.showArrow,arrowIconName:c=go.arrowIconName,variant:u,hover:b,focus:h,active:x,selected:k,disabled:S,togglable:C,ariaDisabled:T,icon:g,iconSize:I,text:M,iconClassName:z,className:Q,...ae}=e,j=g!=null,ee=e.children!==void 0;return Aa(t,{className:n(Q,yt,Na(yt,u),A(yt,{size:o,rounded:a,fillMode:i,themeColor:s}),E(yt,{hover:b,focus:h,active:x,disabled:S||T,selected:k}),{"k-icon-button":!M&&!ee&&j}),"aria-pressed":C?k?"true":"false":void 0,...ae,"aria-disabled":T?"true":void 0,disabled:S||void 0,children:[typeof g=="string"&&g&&We(L,{className:n(z,"k-button-icon"),icon:g,size:I}),g&&typeof g!="string"&&We(Ta,{children:g}),M?Aa(Ta,{children:[M&&We("span",{className:"k-button-text",children:M}),e.children]}):e.children&&We("span",{className:"k-button-text",children:e.children}),d&&We("span",{className:"k-menu-button-arrow k-button-arrow",children:We(L,{icon:c})})]})};p.states=Ar;p.options=Or;p.variants=Tr;p.className=yt;p.defaultOptions=go;p.moduleName=ko;p.folderName=Ea;p.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Mr}from"react/jsx-runtime";var Oa=e=>Mr(p,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Pr}from"react/jsx-runtime";var Ma=e=>Pr(p,{icon:"folder",children:"Button",...e});import{jsx as wr}from"react/jsx-runtime";var ze=e=>wr(p,{children:"Button",...e});import{jsx as Lo}from"react/jsx-runtime";var Rr=p.options,Kr=p.states,Br={...p.defaultOptions,variant:"text"},_r=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Dr=[],Ye=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Lo(Oa,{...o,icon:"star"});case"icon-and-text":return Lo(Ma,{...o,icon:"star",children:"Button"});default:return Lo(ze,{...o,children:"Button"})}};Ye.options=Rr;Ye.states=Kr;Ye.variants=_r;Ye.defaultOptions=Br;Ye.modifiers=Dr;Ye.className=p.className;var So="button",Pa=So;import{jsx as Ur}from"react/jsx-runtime";var Et="k-button-group",Hr=[r.disabled],zr={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Gr={},R=e=>{let{fillMode:t,disabled:o,stretched:a,...i}=e;return Ur("div",{role:"group",...i,className:n(e.className,Et,A(Et,{fillMode:t}),E(Et,{disabled:o}),{[`${Et}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};R.states=Hr;R.options=zr;R.className=Et;R.defaultOptions=Gr;R.moduleName=So;R.folderName=Pa;R.ariaSpec={selector:".k-button-group",rules:[{selector:".k-button-group:not(.k-split-button)",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-button-group.k-disabled",attribute:"aria-disabled=true",usage:"The attribute is rendered only when the entire button group is disabled."},{selector:".k-button-group:not(.k-split-button):not(.k-scheduler-navigation):not(.k-zoom-control) .k-button",attribute:"aria-pressed (when selected)",usage:"Specifies the current state of the ButtonGroup. Only the selected button within the group will have this attribute set to true."}]};import{Fragment as vp,jsx as xp,jsxs as Np}from"react/jsx-runtime";import{Fragment as Ip,jsx as Cp,jsxs as yp}from"react/jsx-runtime";import{Fragment as Pp,jsx as Mp,jsxs as wp}from"react/jsx-runtime";import{Fragment as Hp,jsx as Dp,jsxs as zp}from"react/jsx-runtime";import{Fragment as $p,jsx as Xp,jsxs as qp}from"react/jsx-runtime";import{Fragment as jp,jsx as Zp,jsxs as em}from"react/jsx-runtime";import{jsx as Ee,jsxs as Co}from"react/jsx-runtime";var Fr={...p.options,...R.options},Vr=p.states,Xr={...p.defaultOptions,...R.defaultOptions,variant:"text-button"},$r=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],qr=[],Qe=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?Co(R,{fillMode:a.fillMode,className:o,children:[Ee(p,{...a,icon:"star"}),Ee(p,{...a,icon:"star"}),Ee(p,{...a,icon:"star"})]}):t==="icon-text-button"?Co(R,{fillMode:a.fillMode,className:o,children:[Ee(p,{...a,icon:"star",children:"First"}),Ee(p,{...a,icon:"star",children:"Middle"}),Ee(p,{...a,icon:"star",children:"Last"})]}):Co(R,{fillMode:a.fillMode,className:o,children:[Ee(p,{...a,children:"First"}),Ee(p,{...a,children:"Middle"}),Ee(p,{...a,children:"Last"})]})};Qe.options=Fr;Qe.states=Vr;Qe.variants=$r;Qe.defaultOptions=Xr;Qe.modifiers=qr;Qe.className=R.className;var Io="slider",wa=Io;import{jsx as Ze,jsxs as yo}from"react/jsx-runtime";var Tt="k-slider",Jr=[r.hover,r.focus,r.active,r.disabled,r.readonly],Wr={},ie={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},P=e=>{let{type:t=ie.type,orientation:o=ie.orientation,gradientType:a=ie.gradientType,readonly:i=ie.readonly,disabled:s=ie.disabled,handlePosition:d=ie.handlePosition,showButtons:c=ie.showButtons,showTicks:u=ie.showTicks,value:b=ie.value,min:h=ie.min,max:x=ie.max,startValue:k,endValue:S,hover:C,focus:T,active:g,trackStyle:I,dir:M,...z}=e,ae=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),j,ee;return o==="horizontal"?(j=M==="rtl"?"chevron-left":"chevron-right",ee=M==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(j="chevron-up",ee="chevron-down"),yo("div",{...z,className:n(Tt,e.className,E(Tt,{readonly:i,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:M,children:[c&&Ze(p,{className:"k-button-decrease",rounded:"full",icon:ee,tabIndex:-1,title:"Decrease"}),yo("div",{className:"k-slider-track-wrap",children:[u&&Ze("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),yo("div",{className:"k-slider-track",style:I,children:[Ze("div",{className:"k-slider-selection"}),t==="range"&&Ze("span",{className:n("k-draghandle","k-draghandle-start",E(Tt,{hover:C,focus:T,active:g})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":k??h,"aria-valuemin":h,"aria-valuemax":S??x,"aria-orientation":ae,"aria-disabled":s?"true":void 0,"aria-readonly":i?"true":void 0,"aria-label":z["aria-label"]?`${z["aria-label"]} start`:"Range start"}),Ze("span",{className:n("k-draghandle",`k-draghandle-${d}`,E(Tt,{hover:C,focus:T,active:g})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?S??x:b,"aria-valuemin":t==="range"?k??h:h,"aria-valuemax":x,"aria-orientation":ae,"aria-disabled":s?"true":void 0,"aria-readonly":i?"true":void 0,"aria-label":t==="range"?z["aria-label"]?`${z["aria-label"]} end`:"Range end":z["aria-label"]})]})]}),c&&Ze(p,{className:"k-button-increase",rounded:"full",icon:j,tabIndex:-1,title:"Increase"})]})};P.states=Jr;P.options=Wr;P.className=Tt;P.defaultOptions=ie;P.moduleName=Io;P.folderName=wa;P.ariaSpec={selector:".k-slider",rules:[{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"role=slider",usage:"Sets the proper role for Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-label or aria-labelledby or title",usage:"The Slider needs an accessible name to be assigned to it."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the Slider is in a form and announces the invalid state."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuetext (when has text alternative)",usage:"Specifies a human-readable text alternative to the numeric value. Provided by consuming applications."},{selector:".k-slider:not(.k-disabled) .k-draghandle:not(.k-hsv-draghandle)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled sliders are removed from tab order."},{selector:".k-slider-vertical .k-draghandle",attribute:"aria-orientation=vertical (when vertical)",usage:"Present only when slider is vertical."},{selector:".k-slider.k-disabled .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-disabled=true",usage:"Rendered only when the Slider is disabled."},{selector:".k-slider.k-readonly .k-draghandle",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Slider is readonly. Readonly sliders remain focusable but their value cannot be changed."},{selector:".k-slider .k-button",attribute:"tabindex=-1",usage:"Excludes the buttons from the natural tab order. Keyboard users use arrow keys on the drag handle."},{selector:".k-slider .k-button",attribute:"title",usage:'Provides a tooltip describing the button action (e.g., "Decrease" or "Increase").'},{selector:".k-slider .k-slider-items",attribute:"aria-hidden=true",usage:"Hides the tick list from assistive technologies. Tick values are redundant with the drag handle value attributes."},{selector:".k-slider .k-tick",attribute:"role=presentation",usage:"Removes semantic meaning from individual tick elements. Ticks are visual-only markers."},{selector:".k-slider .k-tick",attribute:"title",usage:"Represents the value associated with the respective tick."}]};import{jsx as Ra}from"react/jsx-runtime";var Ka="k-tick",Yr=[],Qr={},Ba={label:!1},v=e=>{let{style:t,label:o=Ba.label,orientation:a,large:i,text:s,...d}=e;return Ra("li",{...d,role:"presentation",title:s||"Tick",className:n(e.className,Ka,{[`k-tick-${a}`]:a,"k-tick-large":i}),style:t,children:o&&Ra("span",{className:"k-label",children:s})})};v.states=Yr;v.options=Qr;v.className=Ka;v.defaultOptions=Ba;import{Fragment as Zr,jsx as re,jsxs as jr}from"react/jsx-runtime";var _a=e=>re(P,{"aria-label":e["aria-label"]||"Slider",children:jr(Zr,{children:[re(v,{className:"k-first",label:!0,large:!0,text:"0"}),re(v,{}),re(v,{}),re(v,{}),re(v,{}),re(v,{label:!0,large:!0,text:"5"}),re(v,{}),re(v,{}),re(v,{}),re(v,{}),re(v,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as en,jsx as ne,jsxs as tn}from"react/jsx-runtime";var Da=e=>ne(P,{children:tn(en,{children:[ne(v,{className:"k-first",label:!0,large:!0,text:"0"}),ne(v,{}),ne(v,{}),ne(v,{}),ne(v,{}),ne(v,{label:!0,large:!0,text:"5"}),ne(v,{}),ne(v,{}),ne(v,{}),ne(v,{}),ne(v,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as Rm,jsx as wm,jsxs as Km}from"react/jsx-runtime";import{Fragment as zm,jsx as Hm,jsxs as Gm}from"react/jsx-runtime";import{jsx as on}from"react/jsx-runtime";var Eo=e=>on(P,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as an}from"react/jsx-runtime";var To=e=>an(P,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as Zm,jsx as Qm,jsxs as jm}from"react/jsx-runtime";import{Fragment as iu,jsx as au,jsxs as ru}from"react/jsx-runtime";import{jsx as ke,jsxs as Ha}from"react/jsx-runtime";var rn=P.options,nn=P.states,za={...P.defaultOptions,variant:"horizontal",label:!0},sn=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],ln=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],je=e=>{let{variant:t,modifiers:o,...a}=e,i=za.label,s={};Object.keys(o||{}).forEach(c=>{switch(c){case"button":{s.showButtons=!!o?.[c];break}case"label":{i=!!o?.[c];break}case"tick":{s.showTicks=!!o?.[c];break}}});let d={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?Ha(Da,{style:{height:"300px",...d},...a,...s,children:[ke(v,{label:i,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),ke(v,{label:i,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),ke(v,{label:i,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),ke(v,{label:i,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),ke(v,{label:i,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):Ha(_a,{style:{width:"400px",...d},...a,...s,children:[ke(v,{label:i,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),ke(v,{label:i,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),ke(v,{label:i,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),ke(v,{label:i,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),ke(v,{label:i,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};je.options=rn;je.states=nn;je.variants=sn;je.defaultOptions=za;je.modifiers=ln;je.className=P.className;var At="input",$t=At;import{jsx as mn}from"react/jsx-runtime";var qt="k-input",dn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],cn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},pn={},G=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c,size:u,rounded:b,fillMode:h,...x}=e;return mn("span",{...x,className:n(e.className,qt,A(qt,{size:u,rounded:b,fillMode:h}),E(qt,{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c}))})};G.states=dn;G.options=cn;G.className=qt;G.defaultOptions=pn;G.moduleName=At;G.folderName=$t;import{jsx as hn}from"react/jsx-runtime";var Jt="k-picker",un=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],fn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},bn={},ge=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c,size:u,rounded:b,fillMode:h,...x}=e;return hn("span",{...x,className:n(e.className,Jt,A(Jt,{size:u,rounded:b,fillMode:h}),E(Jt,{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c})),children:e.children})};ge.states=un;ge.options=fn;ge.className=Jt;ge.defaultOptions=bn;ge.moduleName=At;ge.folderName=$t;import{Fragment as Nn,jsx as Ao}from"react/jsx-runtime";var Ga="k-clear-value",xn=[r.disabled,r.loading,r.readonly],vn={},ue=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?Ao(Nn,{}):Ao("span",{className:n(e.className,Ga),children:Ao(L,{icon:"x"})})};ue.states=xn;ue.options=vn;ue.className=Ga;import{jsx as Ln}from"react/jsx-runtime";var Oo="k-input-inner",kn=[],gn={},Wt={type:"text",autocomplete:"off",value:"",placeholder:""},fe=e=>{let{value:t=Wt.value,type:o=Wt.type,placeholder:a=Wt.placeholder,autocomplete:i=Wt.autocomplete,disabled:s,readOnly:d,...c}=e;return Ln("input",{...c,type:o,className:n(e.className,Oo,A(Oo,e)),placeholder:a,autoComplete:i,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};fe.states=kn;fe.options=gn;fe.className=Oo;import{jsx as Ua,jsxs as In}from"react/jsx-runtime";var Mo="k-input-inner",Sn=[],Cn={},Ge=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:s,...d}=e;return In("span",{...d,className:n(e.className,Mo,A(Mo,e)),children:[i,!i&&s&&Ua(L,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&Ua("span",{className:"k-input-value-text",children:t})]})};Ge.states=Sn;Ge.options=Cn;Ge.className=Mo;import{jsx as Tn}from"react/jsx-runtime";var Po="k-input-inner",yn=[],En={},Fa={value:"",placeholder:""},wo=e=>{let{value:t=Fa.value,placeholder:o=Fa.placeholder,rows:a,disabled:i,...s}=e;return Tn("textarea",{...s,className:n(e.className,Po,A(Po,e)),placeholder:o,rows:a,defaultValue:t,disabled:i||void 0})};wo.states=yn;wo.options=En;wo.className=Po;import{Fragment as On,jsx as Va}from"react/jsx-runtime";var Xa="k-input-loading-icon",An=[r.disabled,r.loading],se=e=>{let{disabled:t,loading:o}=e;return t||!o?Va(On,{}):Va("span",{className:n(e.className,Xa,"k-icon k-i-loading")})};se.states=An;se.className=Xa;import{Fragment as wn,jsx as $a}from"react/jsx-runtime";var qa="k-input-validation-icon",Mn=[r.valid,r.invalid,r.disabled,r.loading],Pn={},te=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,s=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?$a(wn,{}):$a(L,{className:n(qa),icon:s})};te.states=Mn;te.options=Pn;te.className=qa;import{Fragment as Bn,jsx as Ja}from"react/jsx-runtime";var Rn="k-input-prefix",Kn={direction:"horizontal"},Le=e=>{let{direction:t=Kn.direction,...o}=e;return e.children?Ja("span",{...o,className:n(Rn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ja(Bn,{})};import{Fragment as Hn,jsx as Wa}from"react/jsx-runtime";var _n="k-input-suffix",Dn={direction:"horizontal"},Se=e=>{let{direction:t=Dn.direction,...o}=e;return e.children?Wa("span",{...o,className:n(_n,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Wa(Hn,{})};import{jsx as pf}from"react/jsx-runtime";import{jsx as Gn}from"react/jsx-runtime";var zn="k-input-suffix-text",Ro=e=>{let{children:t,...o}=e;return Gn("span",{...o,className:n(zn,e.className),children:t})};import{jsx as Fn}from"react/jsx-runtime";var Ya="k-input-separator",Un={direction:"vertical"},Te=e=>{let{direction:t=Un.direction,...o}=e;return Fn("span",{...o,className:n(Ya,e.className,{[`${Ya}-${t}`]:t})})};import{Fragment as Qa,jsx as Ce,jsxs as Ko}from"react/jsx-runtime";var Vn=G.states,Xn=G.defaultOptions,$n=G.options,qn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Jn=[],et=e=>{let{modifiers:t,valid:o,invalid:a,loading:i,disabled:s,readonly:d,...c}=e,u=t?.prefix,b=t?.suffix,h=t?.["clear-button"],x=t?.["validation-icon"],k=t?.separators;return Ko(G,{...c,valid:o,invalid:a,loading:i,disabled:s,readonly:d,style:{width:300},children:[u&&Ko(Qa,{children:[Ce(Le,{children:Ce(L,{icon:"lock"})}),k&&Ce(Te,{})]}),Ce(fe,{placeholder:"Placeholder",value:"Value"}),x&&Ce(te,{valid:o,invalid:a,loading:i,disabled:s}),Ce(se,{loading:i,disabled:s}),h&&Ce(ue,{loading:i,disabled:s,readonly:d,value:"Value"}),b&&Ko(Qa,{children:[k&&Ce(Te,{}),Ce(Se,{children:Ce(ze,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};et.options=$n;et.states=Vn;et.variants=Jn;et.defaultOptions=Xn;et.modifiers=qn;et.className=G.className;import{jsx as Za,jsxs as jn}from"react/jsx-runtime";var ja="k-spin-button",Qn=[],Zn={size:[l.undefined,l.small,l.medium,l.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Bo={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Pe=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:i=Bo.increaseLabel,decreaseLabel:s=Bo.decreaseLabel,...d}=e;return jn("span",{...d,className:n(ja,e.className),children:[Za(p,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":i}),Za(p,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};Pe.states=Qn;Pe.options=Zn;Pe.className=ja;Pe.defaultOptions=Bo;Pe.moduleName=null;Pe.folderName=null;var ei="numeric-textbox",ti="numerictextbox";import{Fragment as oi,jsx as Ae,jsxs as _o}from"react/jsx-runtime";var ai="k-numerictextbox",es=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],ts={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Yt={showSpinButton:!0,showClearButton:!0,separators:!0},O=e=>{let{size:t,rounded:o,fillMode:a,separators:i=Yt.separators,showClearButton:s=Yt.showClearButton,showSpinButton:d=Yt.showSpinButton,prefix:c,suffix:u,value:b,placeholder:h,hover:x,focus:k,valid:S,invalid:C,required:T,loading:g,disabled:I,readonly:M,id:z,"aria-label":Q,"aria-describedby":ae,...j}=e;return _o(G,{...j,size:t,rounded:o,fillMode:a,hover:x,focus:k,valid:S,invalid:C,required:T,loading:g,disabled:I,readonly:M,className:n(e.className,ai),children:[c&&_o(oi,{children:[Ae(Le,{children:c}),i&&Ae(Te,{})]}),Ae(fe,{id:z,placeholder:h,value:b,role:"spinbutton",disabled:I,"aria-label":Q,"aria-describedby":ae,"aria-invalid":C?"true":void 0}),Ae(te,{valid:S,invalid:C,loading:g,disabled:I}),Ae(se,{loading:g,disabled:I}),s&&Ae(ue,{loading:g,disabled:I,readonly:M,value:b}),u&&_o(oi,{children:[i&&Ae(Te,{}),Ae(Se,{children:u})]}),d&&Ae(Pe,{className:"k-input-spinner",size:t,fillMode:a,disabled:I})]})};O.states=es;O.options=ts;O.className=ai;O.defaultOptions=Yt;O.moduleName=ei;O.folderName=ti;O.ariaSpec={selector:".k-numerictextbox",rules:[{selector:".k-numerictextbox > .k-input-inner",attribute:"role=spinbutton",usage:"Announces the spin button capabilities of the NumericTextBox."},{selector:".k-numerictextbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuenow (when has value)",usage:"Announces the current value of the component."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemin (when has min)",usage:"Announces the minimum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemax (when has max)",usage:"Announces the maximum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the NumericTextBox is in an invalid state."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message."},{selector:".k-numerictextbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"role=button or nodeName=button",usage:"Describes the role of the spin buttons."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"aria-label",usage:"The button element requires discernible text."},{selector:".k-numerictextbox.k-disabled .k-spin-button > .k-button",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."}]};var Ot=O;import{jsx as os}from"react/jsx-runtime";var ii=e=>os(Ot,{...e});var Do="popup",ri=Do;import{jsx as ni}from"react/jsx-runtime";var si="k-animation-container",as=[],is={},Ho={positionMode:"absolute",shown:!0},Ie=e=>{let{positionMode:t=Ho.positionMode,shown:o=Ho.shown,animationStyle:a,offset:i,...s}=e;return ni("div",{...s,style:{...i,...e.style},className:n(e.className,si,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:ni("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ie.states=as;Ie.options=is;Ie.className=si;Ie.defaultOptions=Ho;Ie.moduleName=Do;Ie.folderName=ri;var zo="popup",li=zo;import{jsx as di}from"react/jsx-runtime";var ci="k-popup",rs=[],ns={},pi={positionMode:"absolute"},be=e=>{let{offset:t,positionMode:o=pi.positionMode,animationStyle:a,containerClassName:i,containerRole:s,containerAriaLabel:d,...c}=e;return di(Ie,{positionMode:o,offset:t,animationStyle:a,className:i,role:s,"aria-label":d,children:di("div",{...c,className:n(e.className,ci),children:e.children})})};be.states=rs;be.options=ns;be.className=ci;be.defaultOptions=pi;be.moduleName=zo;be.folderName=li;be.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};import{jsx as ls}from"react/jsx-runtime";var ss="k-actionsheet-footer",mi={alignment:"stretched",orientation:"horizontal"},we=e=>{let{alignment:t=mi.alignment,orientation:o=mi.orientation,template:a,as:i=a?"div":Ne,...s}=e;return ls(i,{...s,...!a&&{alignment:t,orientation:o},className:n(e.className,ss),children:e.children})};var Go="searchbox",ui=Go;import{jsx as Mt,jsxs as ps}from"react/jsx-runtime";var fi="k-searchbox",ds=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],cs={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Uo={showIcon:!0,icon:"search"},le=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:s,hover:d,focus:c,valid:u,invalid:b,required:h,loading:x,disabled:k,showIcon:S=Uo.showIcon,icon:C=Uo.icon,"aria-label":T,...g}=e;return ps(G,{...g,size:a,rounded:i,fillMode:s,hover:d,focus:c,valid:u,invalid:b,required:h,loading:x,disabled:k,className:n(e.className,fi),children:[S&&Mt(L,{className:"k-input-icon",icon:C}),Mt(fe,{placeholder:o,value:t,"aria-label":T}),Mt(se,{...e}),Mt(te,{...e}),Mt(ue,{...e})]})};le.states=ds;le.options=cs;le.className=fi;le.defaultOptions=Uo;le.moduleName=Go;le.folderName=ui;import{jsx as Gb}from"react/jsx-runtime";var Fo="textbox",bi=Fo;import{Fragment as hi,jsx as Re,jsxs as Vo}from"react/jsx-runtime";var xi="k-textbox",ms=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],us={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Qt={showClearButton:!0,showValidationIcon:!0,separators:!0},F=e=>{let{size:t,rounded:o,fillMode:a,separators:i=Qt.separators,showClearButton:s=Qt.showClearButton,showValidationIcon:d=Qt.showValidationIcon,prefix:c,suffix:u,type:b,value:h,placeholder:x,hover:k,focus:S,valid:C,invalid:T,required:g,loading:I,disabled:M,readonly:z,id:Q,"aria-label":ae,"aria-describedby":j,...ee}=e;return Vo(G,{...ee,size:t,rounded:o,fillMode:a,hover:k,focus:S,valid:C,invalid:T,required:g,loading:I,disabled:M,readonly:z,className:n(e.className,xi),children:[c&&Vo(hi,{children:[Re(Le,{children:c}),i&&Re(Te,{})]}),Re(fe,{id:Q,placeholder:x,value:h,type:b,disabled:M,"aria-label":ae,"aria-describedby":j,"aria-invalid":T?"true":void 0}),d&&Re(te,{valid:C,invalid:T,loading:I,disabled:M}),Re(se,{loading:I,disabled:M}),s&&Re(ue,{loading:I,disabled:M,readonly:z,value:h}),u&&Vo(hi,{children:[i&&Re(Te,{}),Re(Se,{children:u})]})]})};F.states=ms;F.options=us;F.className=xi;F.defaultOptions=Qt;F.moduleName=Fo;F.folderName=bi;F.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var Pt=F;import{jsx as fs}from"react/jsx-runtime";var vi=e=>fs(Pt,{...e});import{Fragment as rh,jsx as ih}from"react/jsx-runtime";import{Fragment as ph,jsx as ch}from"react/jsx-runtime";import{jsx as bh}from"react/jsx-runtime";import{jsx as Xo}from"react/jsx-runtime";var bs=F.states,hs=F.defaultOptions,xs=F.options,vs=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Ns=[],tt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?Xo(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[i]?Xo(ze,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;default:break}}),Xo(vi,{value:"Value",style:{width:300},...o,...a})};tt.options=xs;tt.states=bs;tt.variants=Ns;tt.defaultOptions=hs;tt.modifiers=vs;tt.className=F.className;import{jsx as Ke,jsxs as $o}from"react/jsx-runtime";var Ni="k-actionsheet-titlebar",ks={},oe=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:s,input:d,inputValue:c,inputPlaceholder:u,adaptive:b,titleId:h,children:x,...k}=e;return $o("div",{...k,className:n(e.className,Ni),children:[$o("div",{className:"k-actionsheet-titlebar-group",children:[a&&Ke("div",{className:"k-actionsheet-actions",children:a}),!x&&$o("div",{className:"k-actionsheet-title",id:h,children:[t&&Ke("div",{className:"k-text-center",children:t}),o&&Ke("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Ke("div",{className:"k-actionsheet-title",id:h,children:x}),i&&Ke("div",{className:"k-actionsheet-actions",children:i})]}),(d||s)&&Ke("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ke(F,{value:c,placeholder:u,size:b?"large":"medium","aria-label":t||u||"Input"}):Ke(le,{placeholder:"Filter",size:b?"large":"medium","aria-label":"Filter options"})})]})};oe.className=Ni;oe.defaultOptions=ks;import{jsx as qo,jsxs as Cs}from"react/jsx-runtime";var Jo="k-actionsheet-view",gs=[],Ls={},Ss={},ot=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:s,titleId:d,...c}=e,u=i?.type===oe&&qo(oe,{adaptive:t,titleId:d,...i?.props}),b=s?.type===we&&qo(we,{...s?.props});return Cs("div",{...c,className:n(e.className,Jo,{[`${Jo}-animated`]:o}),children:[u,qo("div",{className:"k-actionsheet-content",children:a}),b]})};ot.states=gs;ot.options=Ls;ot.className=Jo;ot.defaultOptions=Ss;var wt="action-sheet",Zt=wt;var Wo="overlay",ki=Wo;import{jsx as Ts}from"react/jsx-runtime";var gi="k-overlay",Is=[],ys={},Es={},Be=e=>{let{...t}=e;return Ts("div",{...t,className:n(e.className,gi),children:e.children})};Be.states=Is;Be.options=ys;Be.className=gi;Be.defaultOptions=Es;Be.moduleName=Wo;Be.folderName=ki;import{jsx as jt,jsxs as Ms}from"react/jsx-runtime";var Li="k-actionsheet",As=[],Os={},Rt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},H=e=>{let{side:t=Rt.side,fullscreen:o=Rt.fullscreen,adaptive:a=Rt.adaptive,overlay:i=Rt.overlay,template:s,children:d,header:c,footer:u,id:b,...h}=e,x=b&&!s&&c?`${b}-title`:void 0;return Ms("div",{className:"k-actionsheet-container",children:[i&&jt(Be,{}),jt(Ie,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:jt("div",{...h,id:b,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":x,className:n(e.className,Li,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||jt(ot,{header:c,footer:u,adaptive:a,titleId:x,...e,children:d})})})]})};H.states=As;H.options=Os;H.className=Li;H.defaultOptions=Rt;H.moduleName=wt;H.folderName=Zt;H.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as Ks}from"react/jsx-runtime";var Si="k-actionsheet-container",Ps=[],ws={},Rs={},at=e=>{let{children:t,...o}=e;return Ks("div",{...o,className:Si,children:t})};at.states=Ps;at.options=ws;at.className=Si;at.defaultOptions=Rs;at.moduleName=wt;at.folderName=Zt;import{jsx as Bs}from"react/jsx-runtime";var Yo=e=>{let{...t}=e;return Bs("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Ds,jsx as Kt,jsxs as Qo}from"react/jsx-runtime";var Zo="k-actionsheet-item",_s=[r.hover,r.focus,r.selected,r.disabled],_e=e=>{let{iconName:t,text:o,description:a,hover:i,focus:s,selected:d,disabled:c,...u}=e;return Qo("span",{...u,className:n(e.className,Zo,E(Zo,{hover:i,focus:s,selected:d,disabled:c})),children:[!e.children&&Kt(Ds,{children:Qo("span",{className:"k-actionsheet-action",children:[t&&Kt("span",{className:"k-icon-wrap",children:Kt(L,{className:"k-actionsheet-item-icon",icon:t})}),Qo("span",{className:"k-actionsheet-item-text",children:[o&&Kt("span",{className:"k-actionsheet-item-title",children:o}),a&&Kt("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};_e.states=_s;_e.className=Zo;import{jsx as fx,jsxs as bx}from"react/jsx-runtime";import{jsx as Nx}from"react/jsx-runtime";import{jsx as Sx}from"react/jsx-runtime";import{jsx as Ex}from"react/jsx-runtime";import{jsx as V,jsxs as jo}from"react/jsx-runtime";var Hs=H.options,zs=H.states,Ii={...H.defaultOptions,variant:"normal"},Gs=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Us=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],it=e=>{let{variant:t,modifiers:o,...a}={...Ii,...e},i={},s=jo(Yo,{children:[V(_e,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),V(_e,{text:"Add to Favorites",iconName:"heart"}),V(_e,{text:"Upload New",iconName:"upload",disabled:!0}),V("hr",{className:"k-hr"}),V(_e,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":i.actionsStart=!!o?.[u],i.actionsEnd=!!o?.[u];break;case"subtitle":i.subtitle=o?.[u]?d:void 0;break;case"footer":i.footer=!!o?.[u];break;default:break}}),t==="adaptive"?V(H,{...a,adaptive:!0,fullscreen:i.fullScreen,header:V(oe,{actionsStart:i.actionsStart?V(p,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?V(p,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:i.subtitle}),footer:i.footer?jo(we,{alignment:"stretched",children:[V(p,{text:"Cancel",size:"large",themeColor:"base"}),V(p,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):V(H,{...a,fullscreen:i.fullScreen,header:V(oe,{actionsStart:i.actionsStart?V(p,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?V(p,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?jo(we,{alignment:"stretched",children:[V(p,{text:"Apply",themeColor:"primary"}),V(p,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};it.options=Hs;it.states=zs;it.variants=Gs;it.defaultOptions=Ii;it.modifiers=Us;it.className=H.className;import oa from"react";import{jsx as yi}from"react/jsx-runtime";var Fs="k-list-group-sticky-header",ea=e=>yi("div",{className:n(Fs,e.className),children:yi("div",{className:"k-list-header-text",children:e.children})});import{jsx as Xs}from"react/jsx-runtime";var Vs="k-no-data",ta=e=>{let{live:t,...o}=e;return Xs("span",{...o,className:n(Vs,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Ue="list",rt=Ue;import{jsx as Ei,jsxs as Ti}from"react/jsx-runtime";var aa="k-list",$s=[],qs={size:[l.undefined,l.small,l.medium,l.large]},Js={},_=e=>{let{size:t,virtualization:o,children:a,header:i,selectAll:s,optionLabel:d,customValue:c,noData:u,screenReaders:b,...h}=e,k=oa.Children.toArray(a)[0],S=k?.props?.children?oa.Children.count(k.props.children):oa.Children.count(a);return Ti("div",{...h,className:n(e.className,aa,A(aa,{size:t}),{"k-virtual-list":o}),children:[d,s,c,i&&Ei(ea,{children:i}),a||(u!==void 0?u:Ei(ta,{live:!0,children:"No data found."})),b&&a&&Ti(ta,{className:"k-sr-only",live:!0,children:[S," items found."]})]})};_.states=$s;_.options=qs;_.className=aa;_.defaultOptions=Js;_.moduleName=Ue;_.folderName=rt;_.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as Zs}from"react/jsx-runtime";var Ai="k-list-container",Ws=[],Ys={},Qs={},nt=e=>{let{...t}=e;return Zs("div",{...t,className:n(e.className,Ai),children:e.children})};nt.states=Ws;nt.options=Ys;nt.className=Ai;nt.defaultOptions=Qs;nt.moduleName=Ue;nt.folderName=rt;var Fe="checkbox",st=Fe;import{jsx as Oi}from"react/jsx-runtime";var eo="k-checkbox",js=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],el={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},tl={},Z=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:s,disabled:d,invalid:c,valid:u,required:b,size:h,rounded:x,wrapperRole:k,...S}=e;return Oi("span",{className:"k-checkbox-wrap",role:k,children:Oi("input",{...S,id:t,type:"checkbox",defaultChecked:o,required:b,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,eo,A(eo,{size:h,rounded:x}),E(eo,{hover:i,focus:s,disabled:d,invalid:c,valid:u,indeterminate:a,checked:o}))})})};Z.states=js;Z.options=el;Z.className=eo;Z.defaultOptions=tl;Z.moduleName=Fe;Z.folderName=st;Z.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var he=Z;import{jsx as il}from"react/jsx-runtime";var Mi="k-checkbox-list",ol=[],al={},Pi={layout:"vertical"},$=e=>{let{layout:t=Pi.layout,...o}=e;return il("ul",{...o,className:n(e.className,Mi,{[`k-list-${t}`]:t}),children:e.children})};$.states=ol;$.options=al;$.className=Mi;$.defaultOptions=Pi;$.moduleName=Fe;$.folderName=st;import{jsx as ll}from"react/jsx-runtime";var wi="k-checkbox-list-item",rl=[],nl={},sl={},q=e=>{let{...t}=e;return ll("li",{...t,className:n(e.className,wi),children:e.children})};q.states=rl;q.options=nl;q.className=wi;q.defaultOptions=sl;q.moduleName=Fe;q.folderName=st;import{Fragment as dl,jsx as Ri,jsxs as cl}from"react/jsx-runtime";var Oe=({children:e="Label",id:t="cb-label-after",...o})=>cl(dl,{children:[Ri(he,{id:t,...o}),Ri("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Bv,jsx as Kv,jsxs as _v}from"react/jsx-runtime";import{Fragment as Uv,jsx as Gv,jsxs as Fv}from"react/jsx-runtime";import{Fragment as Jv,jsx as qv,jsxs as Wv}from"react/jsx-runtime";import{jsx as jv}from"react/jsx-runtime";import{jsx as aN}from"react/jsx-runtime";import{jsx as sN}from"react/jsx-runtime";import{jsx as de,jsxs as Ki}from"react/jsx-runtime";var pl=$.options,ml=$.states,ul={...$.defaultOptions,variant:"vertical"},fl=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],bl=[],lt=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ki($,{layout:"horizontal",...o,children:[de(q,{children:de(Oe,{id:B("cb"),defaultChecked:!0,children:"Label"})}),de(q,{children:de(Oe,{id:B("cb"),children:"Label"})}),de(q,{children:de(Oe,{id:B("cb"),children:"Label"})})]}):Ki($,{...o,children:[de(q,{children:de(Oe,{id:B("cb"),defaultChecked:!0,children:"Label"})}),de(q,{children:de(Oe,{id:B("cb"),children:"Label"})}),de(q,{children:de(Oe,{id:B("cb"),children:"Label"})})]})};lt.options=pl;lt.states=ml;lt.variants=fl;lt.defaultOptions=ul;lt.modifiers=bl;lt.className=$.className;import{jsx as gl}from"react/jsx-runtime";var hl=he.options,xl=he.states,vl=he.defaultOptions,Nl=[],kl=[],dt=e=>gl(Oe,{id:B("checkbox"),...e,defaultChecked:!0,children:"Label"});dt.options=hl;dt.states=xl;dt.variants=Nl;dt.defaultOptions=vl;dt.modifiers=kl;dt.className=he.className;import{jsx as Ve,jsxs as Il}from"react/jsx-runtime";var ia="k-list-item",Ll=[r.hover,r.focus,r.selected,r.disabled],Sl={},Cl={},w=e=>{let{text:t,groupLabel:o,group:a,iconName:i,iconClassName:s,showCheckbox:d,checked:c,hover:u,focus:b,selected:h,disabled:x,actions:k,description:S,id:C,...T}=e,g=t||e.children;return Il("li",{...T,id:C,role:a?"presentation":"option",tabIndex:a?void 0:b?0:-1,"aria-selected":!a&&h?"true":a?void 0:"false","aria-disabled":!a&&x?"true":void 0,className:n(e.className,a?"k-list-group-item":ia,E(ia,{hover:u,focus:b,disabled:x,selected:h})),children:[d&&Ve(Z,{checked:c}),i&&Ve("span",{className:"k-list-item-icon-wrapper",children:Ve(L,{icon:i,className:n("k-list-item-icon",s)})}),Ve("span",{className:"k-list-item-text",children:g}),k&&Ve("div",{className:"k-list-item-actions",children:k}),S&&Ve("span",{className:"k-list-item-description",children:S}),o&&o!==""&&Ve("div",{className:"k-list-item-group-label",children:o})]})};w.states=Ll;w.options=Sl;w.className=ia;w.defaultOptions=Cl;w.moduleName=Ue;w.folderName=rt;w.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as El}from"react/jsx-runtime";var yl="k-list-ul",Xe=e=>{let{children:t,role:o,id:a,...i}=e;return El("ul",{...i,id:a,role:o,className:n(yl,e.className),children:t})};Xe.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"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 ra,jsxs as Al}from"react/jsx-runtime";var Tl="k-list-content",J=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":i,listboxId:s,...d}=e;return Al("div",{...d,className:n(Tl,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:ra(Xe,{role:"listbox",id:s,"aria-label":a,"aria-labelledby":i,children:e.children}),t&&ra("div",{className:"k-height-container",children:ra("div",{})})]})};J.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 na,jsxs as wl}from"react/jsx-runtime";var to="k-list-sticky-header",Ol=[r.hover,r.focus,r.selected],Ml={},Pl={},oo=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:i,hover:s,focus:d,selected:c,...u}=e;return na("div",{...u,className:n(to,e.className),children:wl("div",{className:n(`${to}-item`,E(`${to}-item`,{hover:s,focus:d,selected:c})),children:[o&&na(Z,{checked:a,indeterminate:i,"aria-label":t}),na("span",{className:"k-list-item-text",children:t})]})})};oo.states=Ol;oo.options=Ml;oo.className=to;oo.defaultOptions=Pl;import{Fragment as tk,jsx as ek,jsxs as ok}from"react/jsx-runtime";import{jsx as sa,jsxs as Kl}from"react/jsx-runtime";var Rl="k-list-group-item",Bt=e=>{let{groupIconName:t,...o}=e;return Kl("li",{...o,role:"presentation",className:n(Rl,e.className),children:[t&&sa("span",{className:"k-list-item-icon-wrapper",children:sa(L,{icon:t,className:"k-list-item-icon"})}),sa("span",{className:"k-list-item-text",children:e.children})]})};Bt.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 Hl}from"react/jsx-runtime";var la="k-list-optionlabel",Bl=[r.hover,r.focus,r.selected,r.disabled],_l={},Dl={},ao=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:s,...d}=e;return Hl("div",{...d,className:n(la,E(la,{hover:o,focus:a,selected:i,disabled:s})),children:t})};ao.states=Bl;ao.options=_l;ao.className=la;ao.defaultOptions=Dl;import{jsx as Fl}from"react/jsx-runtime";var da="k-list-custom-value",zl=[r.hover,r.focus,r.selected,r.disabled],Gl={},Ul={},io=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:s,...d}=e;return Fl("div",{...d,className:n(da,E(da,{hover:o,focus:a,selected:i,disabled:s})),children:t})};io.states=zl;io.options=Gl;io.className=da;io.defaultOptions=Ul;import{Fragment as vk,jsx as xk,jsxs as Nk}from"react/jsx-runtime";import{Fragment as Ik,jsx as Ck,jsxs as yk}from"react/jsx-runtime";import{Fragment as wk,jsx as Mk,jsxs as Pk}from"react/jsx-runtime";import{Fragment as zk,jsx as Dk,jsxs as Hk}from"react/jsx-runtime";import{jsx as Vk}from"react/jsx-runtime";import{Fragment as Yk,jsx as Wk,jsxs as Qk}from"react/jsx-runtime";var Bi="dropdown-list",_i="dropdownlist";import{Fragment as $l,jsx as W,jsxs as ca}from"react/jsx-runtime";var Di="k-dropdownlist",Vl=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Xl={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},pa={showValue:!0,arrowIconName:"chevron-down"},X=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:i=pa.arrowIconName,showValue:s=pa.showValue,valueIconName:d,prefix:c,suffix:u,value:b,placeholder:h,hover:x,focus:k,valid:S,invalid:C,required:T,loading:g,disabled:I,readonly:M,popup:z,opened:Q,adaptive:ae,adaptiveSettings:j,adaptiveTitle:ee,adaptiveSubtitle:lr,adaptiveFilter:dr,id:Lt,activeDescendant:xa,"aria-label":cr,...pr}=e,mr=Lt?`${Lt}-listbox`:void 0,va=Lt?`${Lt}-value`:void 0;return ca($l,{children:[ca(ge,{...pr,id:Lt,size:t,rounded:o,fillMode:a,hover:x,focus:k,valid:S,invalid:C,required:T,loading:g,disabled:I,readonly:M,className:n(e.className,Di,{"k-icon-picker":!s&&d}),role:"combobox","aria-haspopup":"listbox","aria-expanded":Q?"true":"false","aria-controls":Q?mr:void 0,"aria-activedescendant":Q&&xa?xa:void 0,"aria-describedby":Q?va:void 0,"aria-disabled":I?"true":void 0,"aria-label":cr,tabIndex:0,children:[W(Le,{children:c}),W(Ge,{placeholder:h,value:b,showValue:s,valueIconName:d,id:va}),W(te,{valid:S,invalid:C,loading:g,disabled:I}),W(se,{loading:g,disabled:I}),W(Se,{children:u}),W(p,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":h||"Toggle dropdown",tabIndex:-1})]}),Q&&z&&W(be,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:z}),ae&&W(H,{adaptive:!0,...j,header:W(oe,{actionsEnd:W(p,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:dr,inputValue:b,inputPlaceholder:h,title:ee,subtitle:lr}),children:W("div",{className:"k-list-container",children:W(_,{size:"large",children:ca(J,{"aria-label":"Options",children:[W(w,{text:"List item"}),W(w,{text:"List item"}),W(w,{text:"List item"})]})})})})]})};X.states=Vl;X.options=Xl;X.className=Di;X.defaultOptions=pa;X.moduleName=Bi;X.folderName=_i;X.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 Mg}from"react/jsx-runtime";import{jsx as _g,jsxs as Dg}from"react/jsx-runtime";import{Fragment as qg,jsx as Xg,jsxs as $g}from"react/jsx-runtime";import{jsx as Zg}from"react/jsx-runtime";import{jsx as iL,jsxs as rL}from"react/jsx-runtime";import{Fragment as fL,jsx as mL,jsxs as uL}from"react/jsx-runtime";import{jsx as NL}from"react/jsx-runtime";import{Fragment as Zl,jsx as De,jsxs as Hi}from"react/jsx-runtime";var ql=X.states,Jl=X.defaultOptions,Wl=X.options,Yl=[{name:"opened",title:"Opened"}],Ql=[],pt=e=>{let{modifiers:t,...o}=e,a={},i=Hi(Zl,{children:[De("div",{className:"k-list-filter",children:De(le,{})}),De(_,{style:{width:300},size:o.size,children:Hi(J,{children:[De(w,{children:"List item"}),De(w,{children:"List item"}),De(w,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(s=>{s==="opened"&&(a.opened=!!t?.[s],a.popup=t?.[s]?i:void 0)}),De("div",{children:De(X,{placeholder:"Value",style:{width:300},...o,...a})})};pt.options=Wl;pt.states=ql;pt.variants=Ql;pt.defaultOptions=Jl;pt.modifiers=Yl;pt.className=X.className;import{Fragment as GL,jsx as zL}from"react/jsx-runtime";import{Fragment as qL,jsx as $L}from"react/jsx-runtime";import{jsx as QL}from"react/jsx-runtime";import{jsx as ma}from"react/jsx-runtime";var jl=O.states,ed=O.defaultOptions,td=O.options,od=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"spin-button",title:"`Spin` Button"}],ad=[],mt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?ma(X,{size:o.size,fillMode:"flat",value:"mm"}):void 0;break;case"suffix":a.suffix=t?.[i]?ma(Ro,{children:"mm"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;case"spin-button":a.showSpinButton=t?.[i];break;default:break}}),ma(ii,{value:"Value",style:{width:300},...o,...a})};mt.options=td;mt.states=jl;mt.variants=ad;mt.defaultOptions=ed;mt.modifiers=od;mt.className=O.className;import{Fragment as _t,jsx as y,jsxs as D}from"react/jsx-runtime";var zi="k-colorgradient-inputs",id=[],rd={size:[l.undefined,l.small,l.medium,l.large]},Gi={mode:"rgba"},ut=e=>{let{mode:t=Gi.mode,size:o,...a}=e;return D("div",{...a,className:n(zi,"k-hstack"),children:[y("div",{className:"k-vstack",children:y(p,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o,"aria-label":"Toggle color input format"})}),t==="rgba"&&D(_t,{children:[D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Red channel"}),y("label",{className:"k-colorgradient-input-label",children:"R"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Green channel"}),y("label",{className:"k-colorgradient-input-label",children:"G"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Blue channel"}),y("label",{className:"k-colorgradient-input-label",children:"B"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o,"aria-label":"Alpha channel"}),y("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&D(_t,{children:[D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Red channel"}),y("label",{className:"k-colorgradient-input-label",children:"R"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Green channel"}),y("label",{className:"k-colorgradient-input-label",children:"G"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Blue channel"}),y("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&D(_t,{children:[D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Hue channel"}),y("label",{className:"k-colorgradient-input-label",children:"H"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Saturation channel"}),y("label",{className:"k-colorgradient-input-label",children:"S"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Value channel"}),y("label",{className:"k-colorgradient-input-label",children:"V"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"1.00","aria-label":"Alpha channel"}),y("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&D(_t,{children:[D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Hue channel"}),y("label",{className:"k-colorgradient-input-label",children:"H"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Saturation channel"}),y("label",{className:"k-colorgradient-input-label",children:"S"})]}),D("div",{className:"k-vstack",children:[y(O,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Value channel"}),y("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&y(_t,{children:D("div",{className:"k-vstack k-flex-1",children:[y(F,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),y("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};ut.states=id;ut.options=rd;ut.className=zi;ut.defaultOptions=Gi;import{jsx as $e,jsxs as qe}from"react/jsx-runtime";var Ui="k-colorgradient-color-contrast",nd=[],sd={},ld={},ft=()=>qe("div",{className:n(Ui,"k-vbox"),children:[qe("div",{className:"k-contrast-ratio",children:[$e("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),qe("span",{className:"k-contrast-validation !k-text-success",children:[$e(L,{icon:"check"}),$e(L,{icon:"check"})]})]}),qe("div",{children:[$e("span",{children:"AA: 4.5"}),qe("span",{className:"k-contrast-validation !k-text-success",children:["Pass",$e(L,{icon:"check"})]})]}),qe("div",{children:[$e("span",{children:"AAA: 7.0"}),qe("span",{className:"k-contrast-validation !k-text-error",children:["Fail",$e(L,{icon:"x"})]})]})]});ft.states=nd;ft.options=sd;ft.className=Ui;ft.defaultOptions=ld;var Fi="color-gradient",Vi="colorgradient";import{jsx as ce,jsxs as Dt}from"react/jsx-runtime";var ro="k-colorgradient",dd=[r.hover,r.focus,r.readonly,r.disabled],cd={size:[l.undefined,l.small,l.medium,l.large]},ye={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"},U=e=>{let{size:t,mode:o=ye.mode,readonly:a=ye.readonly,disabled:i=ye.disabled,gradientStyle:s=ye.gradientStyle,dragHandleStyle:d=ye.dragHandleStyle,alphaStyle:c=ye.alphaStyle,alphaStyleHorizontal:u=ye.alphaStyleHorizontal,contrast:b=ye.contrast,dir:h,hover:x,focus:k,hoverHandle:S,focusHandle:C,canvasOrientation:T=ye.canvasOrientation,role:g,tabIndex:I,...M}=e;return Dt("div",{...M,role:g??"textbox","aria-label":g==="none"?void 0:"Color gradient",tabIndex:I??0,"aria-disabled":i?"true":void 0,className:n(e.className,ro,A(ro,{size:t}),E(ro,{hover:x,focus:k,readonly:a,disabled:i})),dir:h,children:[!T||T==="horizontal"&&Dt("div",{className:"k-colorgradient-canvas k-hstack",children:[ce("div",{className:"k-hsv-rectangle",style:s,children:ce("div",{className:"k-hsv-gradient",children:ce("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":S,"k-focus":C}),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})})}),Dt("div",{className:"k-hsv-controls k-hstack",children:[ce(To,{className:"k-hue-slider",hover:S,focus:C}),o!=="rgb"&&o!=="hsv"&&ce(To,{className:"k-alpha-slider",hover:S,focus:C,trackStyle:c})]})]}),T==="vertical"&&Dt("div",{className:"k-colorgradient-canvas k-vstack",children:[ce("div",{className:"k-hsv-rectangle",style:s,children:ce("div",{className:"k-hsv-gradient",children:ce("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":S,"k-focus":C}),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})})}),Dt("div",{className:"k-hsv-controls k-vstack",children:[ce(Eo,{className:"k-hue-slider",hover:S,focus:C}),o!=="rgb"&&o!=="hsv"&&ce(Eo,{className:"k-alpha-slider",hover:S,focus:C,trackStyle:u})]})]}),ce(ut,{mode:e.mode,size:t}),b&&ce(ft,{})]})};U.states=dd;U.options=cd;U.className=ro;U.defaultOptions=ye;U.moduleName=Fi;U.folderName=Vi;U.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 pd}from"react/jsx-runtime";var no=e=>pd(U,{...e});import{jsx as BS}from"react/jsx-runtime";import{jsx as zS}from"react/jsx-runtime";import{jsx as ua}from"react/jsx-runtime";var md=U.options,ud=U.states,fd={...U.defaultOptions,variant:"rgba"},bd=[{name:"rgba",title:"RGBA"},{name:"rgb",title:"RGB"},{name:"hex",title:"HEX"}],hd=[],bt=e=>{let{variant:t,...o}=e;switch(t){case"hex":return ua(no,{...o,mode:t});case"rgb":return ua(no,{...o,mode:t});default:return ua(no,{...o,mode:t})}};bt.options=md;bt.states=ud;bt.variants=bd;bt.defaultOptions=fd;bt.modifiers=hd;bt.className=U.className;import{jsx as xd}from"react/jsx-runtime";var fa=e=>xd("tr",{role:"row",children:e.children});import{jsx as kd}from"react/jsx-runtime";var ba="k-colorpalette-tile",vd=[r.hover,r.focus,r.selected],Nd={},ht=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 kd("td",{...d,role:"gridcell","aria-label":t,"aria-selected":s?"true":void 0,className:n(e.className,ba,E(ba,{hover:a,focus:i,selected:s})),style:c})};ht.states=vd;ht.options=Nd;ht.className=ba;var Xi="color-palette",$i="colorpalette";import{jsx as Ht}from"react/jsx-runtime";var so="k-colorpalette",gd=[r.disabled],Ld={size:[l.undefined,l.small,l.medium,l.large]},qi={columns:10},Y=e=>{let{size:t,palette:o,columns:a=qi.columns,tileSize:i,disabled:s,...d}=e,c=[];if(o){let u=a||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/u)},(h,x)=>{let k=[];b.slice(x*u,(x+1)*u).map((C,T)=>{k.push(Ht(ht,{color:C,tileSize:i},T))});let S=Ht(fa,{children:k},x);c.push(S)})}return Ht("div",{...d,role:"grid","aria-label":"Color palette",tabIndex:0,"aria-disabled":s?"true":void 0,className:n(e.className,so,E(so,{disabled:s}),A(so,{size:t})),children:Ht("table",{className:"k-colorpalette-table",role:"none",children:Ht("tbody",{children:c.length>0?c:e.children})})})};Y.states=gd;Y.options=Ld;Y.className=so;Y.defaultOptions=qi;Y.moduleName=Xi;Y.folderName=$i;Y.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 lo=Y;var zt={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 Sd}from"react/jsx-runtime";var Ji=e=>Sd(lo,{palette:zt.basic,...e});import{jsx as gC}from"react/jsx-runtime";import{jsx as EC,jsxs as TC}from"react/jsx-runtime";import{jsx as Od}from"react/jsx-runtime";var Cd=Y.options,Id=Y.states,yd={...Y.defaultOptions,variant:"basic"},Ed=[{name:"basic",title:"Basic"},{name:"monochrome",title:"Monochrome"}],Td={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}},Ad=[],xt=e=>{let{variant:t="basic",...o}=e,a=Td[t];return Od(Ji,{columns:a.columns,palette:a,...o})};xt.options=Cd;xt.states=Id;xt.variants=Ed;xt.defaultOptions=yd;xt.modifiers=Ad;xt.className=Y.className;import{jsx as Wi,jsxs as wd}from"react/jsx-runtime";var Yi="k-color-preview",Md=[],Pd={},He=e=>{let{color:t,iconName:o,...a}=e;return wd("span",{...a,className:n(e.className,Yi,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Wi(L,{icon:o,className:"k-color-preview-icon"}),Wi("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};He.states=Md;He.options=Pd;He.className=Yi;var Qi="color-editor",Zi="coloreditor";import{jsx as pe,jsxs as vt}from"react/jsx-runtime";var co="k-coloreditor",Rd=[r.focus],Kd={size:[l.undefined,l.small,l.medium,l.large]},Gt={view:"gradient",palette:zt.office,actionButtons:!0,canvasOrientation:"horizontal"},K=e=>{let{size:t,view:o=Gt.view,palette:a=Gt.palette,color:i,currentColor:s,focus:d,focusView:c,dir:u,group:b,actionButtons:h=Gt.actionButtons,canvasOrientation:x=Gt.canvasOrientation,...k}=e;return vt("div",{...k,role:"textbox","aria-label":"Color editor",tabIndex:0,className:n(e.className,"k-flatcolorpicker",co,A(co,{size:t}),E(co,{focus:d})),dir:u,children:[vt("div",{className:"k-coloreditor-header k-hstack",children:[pe("div",{className:"k-coloreditor-header-actions k-hstack",children:b&&vt(R,{fillMode:"flat",children:[pe(p,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient","aria-label":"Color gradient view"}),pe(p,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette","aria-label":"Color palette view"})]})}),pe("div",{className:"k-spacer"}),vt("div",{className:"k-coloreditor-header-actions k-hstack",children:[pe(p,{fillMode:"flat",icon:"droplet-slash",size:t,"aria-label":"Reset color"}),vt("div",{className:"k-coloreditor-preview k-vstack",children:[pe(He,{className:"k-coloreditor-preview-color",color:i}),pe(He,{className:"k-coloreditor-current-color",color:s})]})]})]}),pe("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?pe(U,{focus:c,size:t,canvasOrientation:x,role:"none",tabIndex:-1}):pe(Y,{palette:a,size:t})}),h&&vt(Ne,{className:"k-coloreditor-footer",alignment:"start",children:[pe(p,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),pe(p,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};K.states=Rd;K.options=Kd;K.className=co;K.defaultOptions=Gt;K.moduleName=Qi;K.folderName=Zi;K.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 Nt=K;import{jsx as dI}from"react/jsx-runtime";import{jsx as uI}from"react/jsx-runtime";import{jsx as Bd}from"react/jsx-runtime";var ji=e=>Bd(Nt,{group:!0,currentColor:"fuchsia",...e});import{jsx as _d}from"react/jsx-runtime";var er=e=>_d(Nt,{view:"palette",group:!0,currentColor:"fuchsia",...e});import{jsx as tr}from"react/jsx-runtime";var Dd=K.options,Hd=K.states,zd={...K.defaultOptions,variant:"gradient"},Gd=[{name:"gradient",title:"Gradient"},{name:"palette",title:"Palette"}],Ud=[],kt=e=>{let{variant:t,...o}=e;return t==="palette"?tr(er,{...o,color:"white"}):tr(ji,{...o,color:"rgba(183, 118 , 118, 1.00)"})};kt.options=Dd;kt.states=Hd;kt.variants=Gd;kt.defaultOptions=zd;kt.modifiers=Ud;kt.className=K.className;var or="color-picker",ar="colorpicker";import{Fragment as Xd,jsx as me,jsxs as ha}from"react/jsx-runtime";var ir="k-colorpicker",Fd=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled],Vd={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},rr={arrowIconName:"chevron-down"},xe=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:i=rr.arrowIconName,prefix:s,suffix:d,value:c,placeholder:u,hover:b,focus:h,valid:x,invalid:k,required:S,disabled:C,valueIconName:T,popup:g,opened:I,adaptive:M,adaptiveSettings:z,adaptiveTitle:Q,adaptiveSubtitle:ae,...j}=e,ee="colorpicker-popup";return ha(Xd,{children:[ha(ge,{...j,size:t,rounded:o,fillMode:a,hover:b,focus:h,valid:x,invalid:k,required:S,disabled:C,role:"combobox","aria-haspopup":"dialog","aria-expanded":I?"true":"false","aria-controls":I||M?ee:void 0,"aria-label":"Color picker",tabIndex:0,"aria-disabled":C?"true":void 0,className:n(e.className,ir,"k-icon-picker"),children:[me(Le,{children:s}),me(Ge,{placeholder:u,value:c,showValue:!1,valueIcon:me(He,{className:"k-value-icon",color:c,iconName:T}),valueIconName:T}),me(Se,{children:d}),me(p,{className:"k-input-button",icon:i,size:t,fillMode:a,tabIndex:-1,"aria-label":"Open color picker",disabled:C})]}),I&&g&&me(be,{id:ee,className:"k-colorpicker-popup",children:g}),M&&me(H,{adaptive:!0,id:ee,...z,header:me(oe,{actionsEnd:me(p,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:Q,subtitle:ae}),footer:ha(we,{children:[me(p,{text:"Cancel",size:"large"}),me(p,{text:"Set",size:"large",themeColor:"primary"})]}),children:me(K,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};xe.states=Fd;xe.options=Vd;xe.className=ir;xe.defaultOptions=rr;xe.moduleName=or;xe.folderName=ar;xe.ariaSpec={selector:".k-colorpicker",rules:[{selector:".k-colorpicker",attribute:"role=combobox",usage:"The focusable element should have role combobox (input with popup)."},{selector:".k-colorpicker",attribute:"aria-label or aria-labelledby",usage:"The component needs an accessible name including the currently selected value."},{selector:".k-colorpicker",attribute:"aria-haspopup=dialog",usage:"Indicates the component has a Dialog Popup."},{selector:".k-colorpicker",attribute:"aria-expanded=true/false",usage:"Announces the visibility state of the popup."},{selector:".k-colorpicker",attribute:"aria-controls (when open)",usage:"Points to the popup element."},{selector:".k-colorpicker",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-colorpicker.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the picker is disabled."},{selector:".k-colorpicker.k-disabled .k-button",attribute:"disabled or aria-disabled=true",usage:"Rendered only when the picker is disabled."},{selector:".k-colorgradient",attribute:"tabindex=-1",usage:"The inner ColorGradient must be removed from the page tab sequence."}]};var Me=xe;import{jsx as $d}from"react/jsx-runtime";var po=e=>$d(Me,{...e});import{jsx as YI}from"react/jsx-runtime";import{jsx as ey}from"react/jsx-runtime";import{jsx as iy}from"react/jsx-runtime";import{jsx as ly}from"react/jsx-runtime";import{jsx as my}from"react/jsx-runtime";import{jsx as Je}from"react/jsx-runtime";var qd=Me.options,Jd=Me.states,nr={...Me.defaultOptions,variant:"color"},Wd=[{name:"color",title:"Color",default:!0},{name:"no color",title:"No color"},{name:"icon",title:"Icon"}],Yd=[{name:"opened",title:"Opened"}],gt=e=>{let{variant:t,modifiers:o,...a}={...nr,...e},i={};Object.keys(o||{}).forEach(d=>{d==="opened"&&(i.opened=!!o?.[d],i.popup=o?.[d]?Je(K,{size:a.size,color:"rgba(183, 118 , 118, 1.00)",group:!0}):"")});let s=i.opened?{width:"272px",height:"390px"}:{};switch(t){case"no color":return Je("div",{style:s,children:Je(po,{...a,...i})});case"icon":return Je("div",{style:s,children:Je(po,{value:"rgba(183, 118 , 118, 1.00)",valueIconName:"edit-tools",...a,...i})});default:return Je("div",{style:s,children:Je(po,{value:"rgba(183, 118 , 118, 1.00)",...a,...i})})}};gt.options=qd;gt.states=Jd;gt.variants=Wd;gt.defaultOptions=nr;gt.modifiers=Yd;gt.className=Me.className;import{jsx as sr}from"react/jsx-runtime";var Py=({value:e="fuchsia",color:t="fuchsia",currentColor:o="fuchsia",...a})=>sr(xe,{value:e,opened:!0,popup:sr(K,{group:!0,view:"palette",color:t,currentColor:o}),...a});export{Py as ColorPickerPopupPalette};