@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 166 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"}),M=(e,t)=>{let{valid:o,invalid:a,hover:r,focus:s,checked:l,active:c,selected:b,disabled:N,indeterminate:h,loading:k,empty:m,readonly:L,highlighted:C,...S}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":r,"k-focus":s,"k-checked":l,"k-active":c,"k-selected":b,"k-disabled":N,"k-indeterminate":h&&!l,"k-loading":k,"k-empty":m,"k-readonly":L,"k-highlighted":C},Object.keys(S).reduce((T,I)=>(I.startsWith("k-")?T[I]=S[I]:T[`k-${I}`]=S[I],T),{}))};function Pi(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var p={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"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},bt={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},x={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={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"},wi={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Ur={};function y(e){return Ur[e]=(Ur[e]||0)+1,`k-${e}-${Ur[e]}`}var Vr="action-buttons",Ri=Vr;import{jsx as Qd}from"react/jsx-runtime";var Ya="k-actions",Jd=[],Yd={},$r={alignment:"start",orientation:"horizontal"},z=e=>{let{alignment:t=$r.alignment,orientation:o=$r.orientation,...a}=e;return Qd("div",{...a,className:n(Ya,{[`${Ya}-${t}`]:t,[`${Ya}-${o}`]:o},e.className),children:e.children})};z.states=Jd;z.options=Yd;z.className=Ya;z.defaultOptions=$r;z.moduleName=Vr;z.folderName=Ri;import{Fragment as tp,jsx as Ki}from"react/jsx-runtime";var Xr="k-font-icon",Zd=[],jd={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info]},ep={},xa=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:s,...l}=e;return a?Ki("span",{...l,className:n(e.className,Xr,A(Xr,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):Ki(tp,{})};xa.states=Zd;xa.options=jd;xa.className=Xr;xa.defaultOptions=ep;var _i=xa;import{Fragment as rp,jsx as Qa}from"react/jsx-runtime";var qr="k-svg-icon",op=[],ap={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[bt.outline,bt.solid,bt.duotone]},Wr={viewBox:"0 0 24 24",variant:bt.outline},Na=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:s=Wr.viewBox,variant:l=Wr.variant,icon:c,...b}=e;if(!c)return Qa(rp,{});if(c==="none")return Qa("span",{...b,className:n(e.className,qr,A("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?l&&c.variants?.[l]||c.variants?.outline||c.content:void 0;return Qa("span",{...b,className:n(e.className,qr,A("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:Qa("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})})};Na.states=op;Na.options=ap;Na.className=qr;Na.defaultOptions=Wr;var Jr=Na;import*as Yr from"@progress/kendo-svg-icons";var Di="icon",Hi="icons";import{useContext as ip}from"react";import{createContext as np}from"react";var zi=np({iconsType:"svg"});import{Fragment as Fi,jsx as ka}from"react/jsx-runtime";var Za="k-icon",sp=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),lp=[],dp={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[bt.outline,bt.solid,bt.duotone]},ja={viewBox:"0 0 24 24",type:"svg",variant:bt.outline},v=e=>{let{iconsType:t}=ip(zi),{size:o,themeColor:a,icon:r,type:s=t||ja.type,rotate:l,flip:c,viewBox:b=ja.viewBox,variant:N=ja.variant,...h}=e;if(!r)return ka(Fi,{});if((t||s)==="svg"){if(r==="none")return ka(Jr,{...h,className:n(e.className,Za),icon:r,size:o,variant:N});let m=Yr[r]?r:sp(`${r}-icon`);return Yr[m]?ka(Jr,{...h,className:n(e.className,Za),icon:Yr[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:b,variant:N}):ka(Fi,{})}return ka(_i,{...h,className:n(e.className,Za),icon:r,size:o,themeColor:a,rotate:l,flip:c})};v.states=lp;v.options=dp;v.defaultOptions=ja;v.className=Za;v.moduleName=Di;v.folderName=Hi;v.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 Qr="button",Gi=Qr;import{Fragment as Ui,jsx as bo,jsxs as Vi}from"react/jsx-runtime";var ga="k-button",pp=["icon-button"],cp=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],mp={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info,x.inverse]},Zr={showArrow:!1,arrowIconName:"chevron-down"},d=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:s,showArrow:l=Zr.showArrow,arrowIconName:c=Zr.arrowIconName,variant:b,hover:N,focus:h,active:k,selected:m,disabled:L,togglable:C,ariaDisabled:S,icon:T,iconSize:I,text:w,iconClassName:Q,className:ue,...he}=e,xe=T!=null,Ne=e.children!==void 0;return Vi(t,{className:n(ue,ga,Pi(ga,b),A(ga,{size:o,rounded:a,fillMode:r,themeColor:s}),M(ga,{hover:N,focus:h,active:k,disabled:L||S,selected:m}),{"k-icon-button":!w&&!Ne&&xe}),"aria-pressed":C?m?"true":"false":void 0,...he,"aria-disabled":S?"true":void 0,disabled:L||void 0,children:[typeof T=="string"&&T&&bo(v,{className:n(Q,"k-button-icon"),icon:T,size:I}),T&&typeof T!="string"&&bo(Ui,{children:T}),w?Vi(Ui,{children:[w&&bo("span",{className:"k-button-text",children:w}),e.children]}):e.children&&bo("span",{className:"k-button-text",children:e.children}),l&&bo("span",{className:"k-menu-button-arrow k-button-arrow",children:bo(v,{icon:c})})]})};d.states=cp;d.options=mp;d.variants=pp;d.className=ga;d.defaultOptions=Zr;d.moduleName=Qr;d.folderName=Gi;d.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 up}from"react/jsx-runtime";var V=e=>up(d,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as fp}from"react/jsx-runtime";var R=e=>fp(d,{icon:"folder",children:"Button",...e});import{jsx as bp}from"react/jsx-runtime";var Yt=e=>bp(d,{children:"Button",...e});import{jsx as jr}from"react/jsx-runtime";var hp=d.options,xp=d.states,Np={...d.defaultOptions,variant:"text"},kp=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],gp=[],ho=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return jr(V,{...o,icon:"star"});case"icon-and-text":return jr(R,{...o,icon:"star",children:"Button"});default:return jr(Yt,{...o,children:"Button"})}};ho.options=hp;ho.states=xp;ho.variants=kp;ho.defaultOptions=Np;ho.modifiers=gp;ho.className=d.className;import{jsx as er}from"react/jsx-runtime";var vp="k-chip-action";var Ct=e=>{let{type:t,...o}=e,a;switch(t){case"remove":a=er(v,{icon:"x-circle",size:"small"});break;case"more":a=er(v,{icon:"more-vertical",size:"small"});break;default:return er(v,{icon:t,size:"small"})}return er("span",{...o,className:n(e.className,vp,`k-chip-${t}-action`),children:a})};var en="avatar",$i=en;import{jsx as Xi}from"react/jsx-runtime";var va="k-avatar";var Cp=[i.hover,i.focus,i.active,i.selected,i.disabled],Lp={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.outline],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary]},tn={type:"text",border:!1},Se=e=>{let{size:t,rounded:o,fillMode:a,themeColor:r,type:s=tn.type,border:l=tn.border,...c}=e;return Xi("div",{...c,className:n(e.className,va,A(va,{size:t,rounded:o,fillMode:a,themeColor:r}),{[`${va}-bordered`]:l}),children:Xi("span",{className:`${va}-${s}`,children:e.children})})};Se.states=Cp;Se.options=Lp;Se.className=va;Se.defaultOptions=tn;Se.moduleName=en;Se.folderName=$i;Se.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var Qt=Se;import{jsx as Mp}from"react/jsx-runtime";var qi=e=>Mp(Qt,{type:"icon",...e});import{jsx as Sp}from"react/jsx-runtime";var Wi=e=>Sp(Qt,{type:"text",...e});import{jsx as Ap}from"react/jsx-runtime";var Ji=e=>Ap(Qt,{type:"image",...e});import{jsx as Lg}from"react/jsx-runtime";import{jsx as Ca}from"react/jsx-runtime";var Ip=Se.options,yp=Se.states,Tp={...Se.defaultOptions,variant:"image"},Ep=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Op=[],xo=e=>{let{variant:t,...o}=e;switch(t){case"icon":return Ca(qi,{...o,children:Ca(v,{icon:"star"})});case"text":return Ca(Wi,{...o,children:"JO"});default:return Ca(Ji,{...o,children:Ca("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};xo.options=Ip;xo.states=yp;xo.variants=Ep;xo.defaultOptions=Tp;xo.modifiers=Op;xo.className=Se.className;var La="chip",tr=La,or="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as No,jsxs as wp}from"react/jsx-runtime";var ar="k-chip",Bp=[i.hover,i.focus,i.active,i.selected,i.disabled],Pp={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.outline],themeColor:[x.undefined,x.base,x.success,x.warning,x.error,x.info]},Yi={avatarImage:"/packages/html/assets/avatar.jpg"},Z=e=>{let{size:t,rounded:o,fillMode:a,themeColor:r,text:s,icon:l,actions:c,showAvatar:b,avatarImage:N=Yi.avatarImage,hover:h,focus:k,active:m,selected:L,disabled:C,...S}=e;return wp("div",{...S,className:n(e.className,ar,A(ar,{size:t,rounded:o,fillMode:a,themeColor:r}),M(ar,{hover:h,focus:k,active:m,disabled:C,selected:L})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:L?"true":"false",...e.role==="option"&&L!==void 0&&{"aria-selected":L?"true":"false"},"aria-disabled":C?"true":void 0,children:[l&&No(v,{className:"k-chip-icon",icon:l,size:"small"}),b&&No(Se,{className:"k-chip-avatar",type:"image",children:No("img",{src:N,alt:""})}),No("span",{className:"k-chip-content",children:e.children?e.children:s&&No("span",{className:"k-chip-label",children:s})}),c&&No("span",{className:"k-chip-actions",children:c})]})};Z.states=Bp;Z.options=Pp;Z.className=ar;Z.defaultOptions=Yi;Z.moduleName=La;Z.folderName=tr;Z.ariaSpec={selector:".k-chip",rules:[{selector:"*:not(.k-chip-list) > .k-chip",attribute:"role=button",usage:"Announces that the chip acts as a button when standalone."},{selector:"*:not(.k-chip-list) > .k-chip.k-selected",attribute:"aria-pressed=true",usage:"Announces that the Chip has been selected."},{selector:"*:not(.k-chip-list) > .k-chip:not(.k-selected)",attribute:"aria-pressed=false",usage:"Announces that the Chip has not been selected."},{selector:".k-chip",attribute:"aria-disabled=true (when disabled)",usage:"Announces that the Chip is disabled."}]};var Ze=Z;import{jsx as Dp}from"react/jsx-runtime";var on="k-chip-list",Rp=[],Kp={size:[p.undefined,p.small,p.medium,p.large]},_p={},se=e=>{let{size:t,multiselectable:o,ariaLabel:a,...r}=e;return Dp("div",{...r,className:n(e.className,on,A(on,{size:t})),role:e.role||"listbox","aria-label":e.role==="none"?void 0:a||"chip list","aria-orientation":e.role==="none"?void 0:"horizontal","aria-multiselectable":o?"true":void 0,children:e.children})};se.states=Rp;se.options=Kp;se.className=on;se.defaultOptions=_p;se.moduleName=La;se.folderName=tr;se.ariaSpec={selector:".k-chip-list",rules:[{selector:".k-chip-list",attribute:"role=listbox",usage:"Announces the list role of the chip list."},{selector:".k-chip-list",attribute:"aria-label or aria-labelledby",usage:"Adds label to the ChipList element. ListBox element requires an accessible name."},{selector:".k-chip-list",attribute:"aria-orientation=horizontal",usage:"Specifies the horizontal orientation of the chiplist."},{selector:".k-chip-list",attribute:"aria-multiselectable=true (when multiple selection)",usage:"Announces the multiple selection ability of the chiplist."},{selector:".k-chip-list .k-chip",attribute:"role=option",usage:"Announces the chip is an option inner component of the chip list."},{selector:".k-chip-list .k-chip.k-selected",attribute:"aria-selected=true",usage:"Announces the chip is selected."},{selector:".k-chip-list .k-chip:not(.k-selected)",attribute:"aria-selected=false",usage:"Announces the chip is not selected."},{selector:".k-chip-list .k-chip:has(.k-i-x-circle), .k-chip-list .k-chip:has(.k-svg-i-x-circle)",attribute:"aria-keyshortcuts=Enter Delete",usage:"Announces the Delete action along with the default Enter key."}]};import{jsx as jg}from"react/jsx-runtime";import{jsx as av}from"react/jsx-runtime";import{jsx as Hp}from"react/jsx-runtime";var rr=e=>Hp(Ze,{text:"text",...e});import{jsx as cv}from"react/jsx-runtime";import{jsx as bv}from"react/jsx-runtime";import{Fragment as vv,jsx as gv,jsxs as Cv}from"react/jsx-runtime";import{jsx as Iv,jsxs as yv}from"react/jsx-runtime";import{jsx as Pv,jsxs as wv}from"react/jsx-runtime";import{jsx as zv,jsxs as Fv}from"react/jsx-runtime";import{jsx as ko,jsxs as $p}from"react/jsx-runtime";var zp={...Ze.options,...se.options},Fp=[],Gp=se.states,Up={...Ze.defaultOptions,...se.defaultOptions},Vp=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],go=e=>{let{modifiers:t,className:o,...a}=e,r=t?.icon,s=t?.actions,l=t?.avatar,c=l?or:void 0;return $p(se,{size:a.size,className:o,children:[ko(rr,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:r?"star":void 0,actions:s?ko(Ct,{type:"remove"}):void 0,showAvatar:l,avatarImage:c,children:"Chip"}),ko(rr,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:r?"star":void 0,actions:s?ko(Ct,{type:"remove"}):void 0,showAvatar:l,avatarImage:c,children:"Chip"}),ko(rr,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:r?"star":void 0,actions:s?ko(Ct,{type:"remove"}):void 0,showAvatar:l,avatarImage:c,children:"Chip"})]})};go.options=zp;go.states=Gp;go.variants=Fp;go.defaultOptions=Up;go.modifiers=Vp;go.className=se.className;import{jsx as an}from"react/jsx-runtime";var Xp=Z.states,qp=Z.defaultOptions,Wp=Z.options,Jp=[],Yp=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],vo=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"icon":a.icon=t?.[r]?"arrow-down":void 0;break;case"avatar":a.showAvatar=!!t?.[r],a.avatarImage=t?.[r]?or:void 0;break;case"more-options":a.actions||(a.actions=[]),a.actions[0]=t?.[r]?an(Ct,{type:"more"}):void 0;break;case"remove-icon":a.actions||(a.actions=[]),a.actions[1]=t?.[r]?an(Ct,{type:"remove"}):void 0;break;default:break}}),an(Z,{...o,...a,children:"Chip component"})};vo.options=Wp;vo.states=Xp;vo.variants=Jp;vo.defaultOptions=qp;vo.modifiers=Yp;vo.className=Z.className;var rn="button",Qi=rn;import{jsx as ec}from"react/jsx-runtime";var Ma="k-button-group",Qp=[i.disabled],Zp={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},jp={},B=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return ec("div",{role:"group",...r,className:n(e.className,Ma,A(Ma,{fillMode:t}),M(Ma,{disabled:o}),{[`${Ma}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};B.states=Qp;B.options=Zp;B.className=Ma;B.defaultOptions=jp;B.moduleName=rn;B.folderName=Qi;B.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 yC,jsx as IC,jsxs as TC}from"react/jsx-runtime";import{Fragment as RC,jsx as wC,jsxs as KC}from"react/jsx-runtime";import{Fragment as GC,jsx as FC,jsxs as UC}from"react/jsx-runtime";import{Fragment as JC,jsx as WC,jsxs as YC}from"react/jsx-runtime";import{Fragment as oL,jsx as tL,jsxs as aL}from"react/jsx-runtime";import{Fragment as dL,jsx as lL,jsxs as pL}from"react/jsx-runtime";import{jsx as Lt,jsxs as nn}from"react/jsx-runtime";var tc={...d.options,...B.options},oc=d.states,ac={...d.defaultOptions,...B.defaultOptions,variant:"text-button"},rc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],nc=[],Co=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?nn(B,{fillMode:a.fillMode,className:o,children:[Lt(d,{...a,icon:"star"}),Lt(d,{...a,icon:"star"}),Lt(d,{...a,icon:"star"})]}):t==="icon-text-button"?nn(B,{fillMode:a.fillMode,className:o,children:[Lt(d,{...a,icon:"star",children:"First"}),Lt(d,{...a,icon:"star",children:"Middle"}),Lt(d,{...a,icon:"star",children:"Last"})]}):nn(B,{fillMode:a.fillMode,className:o,children:[Lt(d,{...a,children:"First"}),Lt(d,{...a,children:"Middle"}),Lt(d,{...a,children:"Last"})]})};Co.options=tc;Co.states=oc;Co.variants=rc;Co.defaultOptions=ac;Co.modifiers=nc;Co.className=B.className;var Sa="input",nr=Sa;import{jsx as dc}from"react/jsx-runtime";var ir="k-input",ic=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],sc={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},lc={},ee=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c,size:b,rounded:N,fillMode:h,...k}=e;return dc("span",{...k,className:n(e.className,ir,A(ir,{size:b,rounded:N,fillMode:h}),M(ir,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c}))})};ee.states=ic;ee.options=sc;ee.className=ir;ee.defaultOptions=lc;ee.moduleName=Sa;ee.folderName=nr;import{jsx as uc}from"react/jsx-runtime";var sr="k-picker",pc=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],cc={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},mc={},ht=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c,size:b,rounded:N,fillMode:h,...k}=e;return uc("span",{...k,className:n(e.className,sr,A(sr,{size:b,rounded:N,fillMode:h}),M(sr,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c})),children:e.children})};ht.states=pc;ht.options=cc;ht.className=sr;ht.defaultOptions=mc;ht.moduleName=Sa;ht.folderName=nr;import{Fragment as hc,jsx as sn}from"react/jsx-runtime";var Zi="k-clear-value",fc=[i.disabled,i.loading,i.readonly],bc={},Ve=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?sn(hc,{}):sn("span",{className:n(e.className,Zi),children:sn(v,{icon:"x"})})};Ve.states=fc;Ve.options=bc;Ve.className=Zi;import{jsx as kc}from"react/jsx-runtime";var ln="k-input-inner",xc=[],Nc={},lr={type:"text",autocomplete:"off",value:"",placeholder:""},$e=e=>{let{value:t=lr.value,type:o=lr.type,placeholder:a=lr.placeholder,autocomplete:r=lr.autocomplete,disabled:s,readOnly:l,...c}=e;return kc("input",{...c,type:o,className:n(e.className,ln,A(ln,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:s||void 0,readOnly:l||void 0})};$e.states=xc;$e.options=Nc;$e.className=ln;import{jsx as ji,jsxs as Cc}from"react/jsx-runtime";var dn="k-input-inner",gc=[],vc={},Zt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:s,...l}=e;return Cc("span",{...l,className:n(e.className,dn,A(dn,e)),children:[r,!r&&s&&ji(v,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&ji("span",{className:"k-input-value-text",children:t})]})};Zt.states=gc;Zt.options=vc;Zt.className=dn;import{jsx as Sc}from"react/jsx-runtime";var pn="k-input-inner",Lc=[],Mc={},es={value:"",placeholder:""},Aa=e=>{let{value:t=es.value,placeholder:o=es.placeholder,rows:a,disabled:r,...s}=e;return Sc("textarea",{...s,className:n(e.className,pn,A(pn,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};Aa.states=Lc;Aa.options=Mc;Aa.className=pn;import{Fragment as Ic,jsx as ts}from"react/jsx-runtime";var os="k-input-loading-icon",Ac=[i.disabled,i.loading],He=e=>{let{disabled:t,loading:o}=e;return t||!o?ts(Ic,{}):ts("span",{className:n(e.className,os,"k-icon k-i-loading")})};He.states=Ac;He.className=os;import{Fragment as Ec,jsx as as}from"react/jsx-runtime";var rs="k-input-validation-icon",yc=[i.valid,i.invalid,i.disabled,i.loading],Tc={},Ae=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,s=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?as(Ec,{}):as(v,{className:n(rs),icon:s})};Ae.states=yc;Ae.options=Tc;Ae.className=rs;import{Fragment as Pc,jsx as ns}from"react/jsx-runtime";var Oc="k-input-prefix",Bc={direction:"horizontal"},ze=e=>{let{direction:t=Bc.direction,...o}=e;return e.children?ns("span",{...o,className:n(Oc,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ns(Pc,{})};import{Fragment as Kc,jsx as is}from"react/jsx-runtime";var wc="k-input-suffix",Rc={direction:"horizontal"},Fe=e=>{let{direction:t=Rc.direction,...o}=e;return e.children?is("span",{...o,className:n(wc,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):is(Kc,{})};import{jsx as pM}from"react/jsx-runtime";import{jsx as Dc}from"react/jsx-runtime";var _c="k-input-suffix-text",cn=e=>{let{children:t,...o}=e;return Dc("span",{...o,className:n(_c,e.className),children:t})};import{jsx as zc}from"react/jsx-runtime";var ss="k-input-separator",Hc={direction:"vertical"},Ie=e=>{let{direction:t=Hc.direction,...o}=e;return zc("span",{...o,className:n(ss,e.className,{[`${ss}-${t}`]:t})})};import{Fragment as ls,jsx as xt,jsxs as mn}from"react/jsx-runtime";var Fc=ee.states,Gc=ee.defaultOptions,Uc=ee.options,Vc=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],$c=[],Lo=e=>{let{modifiers:t,valid:o,invalid:a,loading:r,disabled:s,readonly:l,...c}=e,b=t?.prefix,N=t?.suffix,h=t?.["clear-button"],k=t?.["validation-icon"],m=t?.separators;return mn(ee,{...c,valid:o,invalid:a,loading:r,disabled:s,readonly:l,style:{width:300},children:[b&&mn(ls,{children:[xt(ze,{children:xt(v,{icon:"lock"})}),m&&xt(Ie,{})]}),xt($e,{placeholder:"Placeholder",value:"Value"}),k&&xt(Ae,{valid:o,invalid:a,loading:r,disabled:s}),xt(He,{loading:r,disabled:s}),h&&xt(Ve,{loading:r,disabled:s,readonly:l,value:"Value"}),N&&mn(ls,{children:[m&&xt(Ie,{}),xt(Fe,{children:xt(Yt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Lo.options=Uc;Lo.states=Fc;Lo.variants=$c;Lo.defaultOptions=Gc;Lo.modifiers=Vc;Lo.className=ee.className;import{jsx as ds,jsxs as Wc}from"react/jsx-runtime";var ps="k-color-preview",Xc=[],qc={},Pt=e=>{let{color:t,iconName:o,...a}=e;return Wc("span",{...a,className:n(e.className,ps,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ds(v,{icon:o,className:"k-color-preview-icon"}),ds("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Pt.states=Xc;Pt.options=qc;Pt.className=ps;var un="popup",cs=un;import{jsx as ms}from"react/jsx-runtime";var us="k-animation-container",Jc=[],Yc={},fn={positionMode:"absolute",shown:!0},Nt=e=>{let{positionMode:t=fn.positionMode,shown:o=fn.shown,animationStyle:a,offset:r,...s}=e;return ms("div",{...s,style:{...r,...e.style},className:n(e.className,us,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:ms("div",{className:"k-child-animation-container",style:a,children:e.children})})};Nt.states=Jc;Nt.options=Yc;Nt.className=us;Nt.defaultOptions=fn;Nt.moduleName=un;Nt.folderName=cs;var bn="popup",fs=bn;import{jsx as bs}from"react/jsx-runtime";var hs="k-popup",Qc=[],Zc={},xs={positionMode:"absolute"},G=e=>{let{offset:t,positionMode:o=xs.positionMode,animationStyle:a,containerClassName:r,containerRole:s,containerAriaLabel:l,...c}=e;return bs(Nt,{positionMode:o,offset:t,animationStyle:a,className:r,role:s,"aria-label":l,children:bs("div",{...c,className:n(e.className,hs),children:e.children})})};G.states=Qc;G.options=Zc;G.className=hs;G.defaultOptions=xs;G.moduleName=bn;G.folderName=fs;G.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 em}from"react/jsx-runtime";var jc="k-actionsheet-footer",Ns={alignment:"stretched",orientation:"horizontal"},wt=e=>{let{alignment:t=Ns.alignment,orientation:o=Ns.orientation,template:a,as:r=a?"div":z,...s}=e;return em(r,{...s,...!a&&{alignment:t,orientation:o},className:n(e.className,jc),children:e.children})};var hn="searchbox",ks=hn;import{jsx as Ia,jsxs as am}from"react/jsx-runtime";var gs="k-searchbox",tm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],om={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},xn={showIcon:!0,icon:"search"},je=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:s,hover:l,focus:c,valid:b,invalid:N,required:h,loading:k,disabled:m,showIcon:L=xn.showIcon,icon:C=xn.icon,"aria-label":S,...T}=e;return am(ee,{...T,size:a,rounded:r,fillMode:s,hover:l,focus:c,valid:b,invalid:N,required:h,loading:k,disabled:m,className:n(e.className,gs),children:[L&&Ia(v,{className:"k-input-icon",icon:C}),Ia($e,{placeholder:o,value:t,"aria-label":S}),Ia(He,{...e}),Ia(Ae,{...e}),Ia(Ve,{...e})]})};je.states=tm;je.options=om;je.className=gs;je.defaultOptions=xn;je.moduleName=hn;je.folderName=ks;import{jsx as yS}from"react/jsx-runtime";var Nn="textbox",vs=Nn;import{Fragment as Cs,jsx as Rt,jsxs as kn}from"react/jsx-runtime";var Ls="k-textbox",rm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],nm={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},dr={showClearButton:!0,showValidationIcon:!0,separators:!0},ke=e=>{let{size:t,rounded:o,fillMode:a,separators:r=dr.separators,showClearButton:s=dr.showClearButton,showValidationIcon:l=dr.showValidationIcon,prefix:c,suffix:b,type:N,value:h,placeholder:k,hover:m,focus:L,valid:C,invalid:S,required:T,loading:I,disabled:w,readonly:Q,id:ue,"aria-label":he,"aria-describedby":xe,...Ne}=e;return kn(ee,{...Ne,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:C,invalid:S,required:T,loading:I,disabled:w,readonly:Q,className:n(e.className,Ls),children:[c&&kn(Cs,{children:[Rt(ze,{children:c}),r&&Rt(Ie,{})]}),Rt($e,{id:ue,placeholder:k,value:h,type:N,disabled:w,"aria-label":he,"aria-describedby":xe,"aria-invalid":S?"true":void 0}),l&&Rt(Ae,{valid:C,invalid:S,loading:I,disabled:w}),Rt(He,{loading:I,disabled:w}),s&&Rt(Ve,{loading:I,disabled:w,readonly:Q,value:h}),b&&kn(Cs,{children:[r&&Rt(Ie,{}),Rt(Fe,{children:b})]})]})};ke.states=rm;ke.options=nm;ke.className=Ls;ke.defaultOptions=dr;ke.moduleName=Nn;ke.folderName=vs;ke.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 ya=ke;import{jsx as im}from"react/jsx-runtime";var Ms=e=>im(ya,{...e});import{Fragment as XS,jsx as $S}from"react/jsx-runtime";import{Fragment as ZS,jsx as QS}from"react/jsx-runtime";import{jsx as oA}from"react/jsx-runtime";import{jsx as gn}from"react/jsx-runtime";var sm=ke.states,lm=ke.defaultOptions,dm=ke.options,pm=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],cm=[],Mo=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t?.[r]?gn(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[r]?gn(Yt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[r];break;default:break}}),gn(Ms,{value:"Value",style:{width:300},...o,...a})};Mo.options=dm;Mo.states=sm;Mo.variants=cm;Mo.defaultOptions=lm;Mo.modifiers=pm;Mo.className=ke.className;import{jsx as Kt,jsxs as vn}from"react/jsx-runtime";var Ss="k-actionsheet-titlebar",mm={},ye=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:s,input:l,inputValue:c,inputPlaceholder:b,adaptive:N,titleId:h,children:k,...m}=e;return vn("div",{...m,className:n(e.className,Ss),children:[vn("div",{className:"k-actionsheet-titlebar-group",children:[a&&Kt("div",{className:"k-actionsheet-actions",children:a}),!k&&vn("div",{className:"k-actionsheet-title",id:h,children:[t&&Kt("div",{className:"k-text-center",children:t}),o&&Kt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),k&&Kt("div",{className:"k-actionsheet-title",id:h,children:k}),r&&Kt("div",{className:"k-actionsheet-actions",children:r})]}),(l||s)&&Kt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Kt(ke,{value:c,placeholder:b,size:N?"large":"medium","aria-label":t||b||"Input"}):Kt(je,{placeholder:"Filter",size:N?"large":"medium","aria-label":"Filter options"})})]})};ye.className=Ss;ye.defaultOptions=mm;import{jsx as Cn,jsxs as hm}from"react/jsx-runtime";var Ln="k-actionsheet-view",um=[],fm={},bm={},So=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:s,titleId:l,...c}=e,b=r?.type===ye&&Cn(ye,{adaptive:t,titleId:l,...r?.props}),N=s?.type===wt&&Cn(wt,{...s?.props});return hm("div",{...c,className:n(e.className,Ln,{[`${Ln}-animated`]:o}),children:[b,Cn("div",{className:"k-actionsheet-content",children:a}),N]})};So.states=um;So.options=fm;So.className=Ln;So.defaultOptions=bm;var Ta="action-sheet",pr=Ta;var Mn="overlay",As=Mn;import{jsx as gm}from"react/jsx-runtime";var Is="k-overlay",xm=[],Nm={},km={},_t=e=>{let{...t}=e;return gm("div",{...t,className:n(e.className,Is),children:e.children})};_t.states=xm;_t.options=Nm;_t.className=Is;_t.defaultOptions=km;_t.moduleName=Mn;_t.folderName=As;import{jsx as cr,jsxs as Lm}from"react/jsx-runtime";var ys="k-actionsheet",vm=[],Cm={},Ea={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ae=e=>{let{side:t=Ea.side,fullscreen:o=Ea.fullscreen,adaptive:a=Ea.adaptive,overlay:r=Ea.overlay,template:s,children:l,header:c,footer:b,id:N,...h}=e,k=N&&!s&&c?`${N}-title`:void 0;return Lm("div",{className:"k-actionsheet-container",children:[r&&cr(_t,{}),cr(Nt,{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:cr("div",{...h,id:N,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":k,className:n(e.className,ys,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||cr(So,{header:c,footer:b,adaptive:a,titleId:k,...e,children:l})})})]})};ae.states=vm;ae.options=Cm;ae.className=ys;ae.defaultOptions=Ea;ae.moduleName=Ta;ae.folderName=pr;ae.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 Im}from"react/jsx-runtime";var Ts="k-actionsheet-container",Mm=[],Sm={},Am={},Ao=e=>{let{children:t,...o}=e;return Im("div",{...o,className:Ts,children:t})};Ao.states=Mm;Ao.options=Sm;Ao.className=Ts;Ao.defaultOptions=Am;Ao.moduleName=Ta;Ao.folderName=pr;import{jsx as ym}from"react/jsx-runtime";var Sn=e=>{let{...t}=e;return ym("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Em,jsx as Oa,jsxs as An}from"react/jsx-runtime";var In="k-actionsheet-item",Tm=[i.hover,i.focus,i.selected,i.disabled],Dt=e=>{let{iconName:t,text:o,description:a,hover:r,focus:s,selected:l,disabled:c,...b}=e;return An("span",{...b,className:n(e.className,In,M(In,{hover:r,focus:s,selected:l,disabled:c})),children:[!e.children&&Oa(Em,{children:An("span",{className:"k-actionsheet-action",children:[t&&Oa("span",{className:"k-icon-wrap",children:Oa(v,{className:"k-actionsheet-item-icon",icon:t})}),An("span",{className:"k-actionsheet-item-text",children:[o&&Oa("span",{className:"k-actionsheet-item-title",children:o}),a&&Oa("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Dt.states=Tm;Dt.className=In;import{jsx as tI,jsxs as oI}from"react/jsx-runtime";import{jsx as iI}from"react/jsx-runtime";import{jsx as pI}from"react/jsx-runtime";import{jsx as fI}from"react/jsx-runtime";import{jsx as ge,jsxs as yn}from"react/jsx-runtime";var Om=ae.options,Bm=ae.states,Os={...ae.defaultOptions,variant:"normal"},Pm=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],wm=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Io=e=>{let{variant:t,modifiers:o,...a}={...Os,...e},r={},s=yn(Sn,{children:[ge(Dt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),ge(Dt,{text:"Add to Favorites",iconName:"heart"}),ge(Dt,{text:"Upload New",iconName:"upload",disabled:!0}),ge("hr",{className:"k-hr"}),ge(Dt,{text:"Cancel",iconName:"cancel"})]}),l="Choose from the items below",c="Select Item";return t==="fullScreen"&&(r.fullScreen=!0),Object.keys(o||{}).forEach(b=>{switch(b){case"actions":r.actionsStart=!!o?.[b],r.actionsEnd=!!o?.[b];break;case"subtitle":r.subtitle=o?.[b]?l:void 0;break;case"footer":r.footer=!!o?.[b];break;default:break}}),t==="adaptive"?ge(ae,{...a,adaptive:!0,fullscreen:r.fullScreen,header:ge(ye,{actionsStart:r.actionsStart?ge(d,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?ge(d,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:r.subtitle}),footer:r.footer?yn(wt,{alignment:"stretched",children:[ge(d,{text:"Cancel",size:"large",themeColor:"base"}),ge(d,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):ge(ae,{...a,fullscreen:r.fullScreen,header:ge(ye,{actionsStart:r.actionsStart?ge(d,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?ge(d,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?yn(wt,{alignment:"stretched",children:[ge(d,{text:"Apply",themeColor:"primary"}),ge(d,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Io.options=Om;Io.states=Bm;Io.variants=Pm;Io.defaultOptions=Os;Io.modifiers=wm;Io.className=ae.className;var Tn="slider",Bs=Tn;import{jsx as yo,jsxs as En}from"react/jsx-runtime";var Ba="k-slider",Rm=[i.hover,i.focus,i.active,i.disabled,i.readonly],Km={},et={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},J=e=>{let{type:t=et.type,orientation:o=et.orientation,gradientType:a=et.gradientType,readonly:r=et.readonly,disabled:s=et.disabled,handlePosition:l=et.handlePosition,showButtons:c=et.showButtons,showTicks:b=et.showTicks,value:N=et.value,min:h=et.min,max:k=et.max,startValue:m,endValue:L,hover:C,focus:S,active:T,trackStyle:I,dir:w,...Q}=e,he=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),xe,Ne;return o==="horizontal"?(xe=w==="rtl"?"chevron-left":"chevron-right",Ne=w==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(xe="chevron-up",Ne="chevron-down"),En("div",{...Q,className:n(Ba,e.className,M(Ba,{readonly:r,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:w,children:[c&&yo(d,{className:"k-button-decrease",rounded:"full",icon:Ne,tabIndex:-1,title:"Decrease"}),En("div",{className:"k-slider-track-wrap",children:[b&&yo("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),En("div",{className:"k-slider-track",style:I,children:[yo("div",{className:"k-slider-selection"}),t==="range"&&yo("span",{className:n("k-draghandle","k-draghandle-start",M(Ba,{hover:C,focus:S,active:T})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":m??h,"aria-valuemin":h,"aria-valuemax":L??k,"aria-orientation":he,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":Q["aria-label"]?`${Q["aria-label"]} start`:"Range start"}),yo("span",{className:n("k-draghandle",`k-draghandle-${l}`,M(Ba,{hover:C,focus:S,active:T})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?L??k:N,"aria-valuemin":t==="range"?m??h:h,"aria-valuemax":k,"aria-orientation":he,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?Q["aria-label"]?`${Q["aria-label"]} end`:"Range end":Q["aria-label"]})]})]}),c&&yo(d,{className:"k-button-increase",rounded:"full",icon:xe,tabIndex:-1,title:"Increase"})]})};J.states=Rm;J.options=Km;J.className=Ba;J.defaultOptions=et;J.moduleName=Tn;J.folderName=Bs;J.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 Ps}from"react/jsx-runtime";var ws="k-tick",_m=[],Dm={},Rs={label:!1},O=e=>{let{style:t,label:o=Rs.label,orientation:a,large:r,text:s,...l}=e;return Ps("li",{...l,role:"presentation",title:s||"Tick",className:n(e.className,ws,{[`k-tick-${a}`]:a,"k-tick-large":r}),style:t,children:o&&Ps("span",{className:"k-label",children:s})})};O.states=_m;O.options=Dm;O.className=ws;O.defaultOptions=Rs;import{Fragment as Hm,jsx as tt,jsxs as zm}from"react/jsx-runtime";var Ks=e=>tt(J,{"aria-label":e["aria-label"]||"Slider",children:zm(Hm,{children:[tt(O,{className:"k-first",label:!0,large:!0,text:"0"}),tt(O,{}),tt(O,{}),tt(O,{}),tt(O,{}),tt(O,{label:!0,large:!0,text:"5"}),tt(O,{}),tt(O,{}),tt(O,{}),tt(O,{}),tt(O,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Fm,jsx as ot,jsxs as Gm}from"react/jsx-runtime";var _s=e=>ot(J,{children:Gm(Fm,{children:[ot(O,{className:"k-first",label:!0,large:!0,text:"0"}),ot(O,{}),ot(O,{}),ot(O,{}),ot(O,{}),ot(O,{label:!0,large:!0,text:"5"}),ot(O,{}),ot(O,{}),ot(O,{}),ot(O,{}),ot(O,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as oy,jsx as ty,jsxs as ay}from"react/jsx-runtime";import{Fragment as ly,jsx as sy,jsxs as dy}from"react/jsx-runtime";import{jsx as Um}from"react/jsx-runtime";var On=e=>Um(J,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Vm}from"react/jsx-runtime";var Bn=e=>Vm(J,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as gy,jsx as ky,jsxs as vy}from"react/jsx-runtime";import{Fragment as Ay,jsx as Sy,jsxs as Iy}from"react/jsx-runtime";import{jsx as kt,jsxs as Ds}from"react/jsx-runtime";var $m=J.options,Xm=J.states,Hs={...J.defaultOptions,variant:"horizontal",label:!0},qm=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Wm=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],To=e=>{let{variant:t,modifiers:o,...a}=e,r=Hs.label,s={};Object.keys(o||{}).forEach(c=>{switch(c){case"button":{s.showButtons=!!o?.[c];break}case"label":{r=!!o?.[c];break}case"tick":{s.showTicks=!!o?.[c];break}}});let l={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?Ds(_s,{style:{height:"300px",...l},...a,...s,children:[kt(O,{label:r,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),kt(O,{label:r,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),kt(O,{label:r,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),kt(O,{label:r,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),kt(O,{label:r,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):Ds(Ks,{style:{width:"400px",...l},...a,...s,children:[kt(O,{label:r,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),kt(O,{label:r,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),kt(O,{label:r,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),kt(O,{label:r,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),kt(O,{label:r,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};To.options=$m;To.states=Xm;To.variants=qm;To.defaultOptions=Hs;To.modifiers=Wm;To.className=J.className;import{jsx as zs,jsxs as jm}from"react/jsx-runtime";var Fs="k-spin-button",Qm=[],Zm={size:[p.undefined,p.small,p.medium,p.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Pn={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Ht=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:r=Pn.increaseLabel,decreaseLabel:s=Pn.decreaseLabel,...l}=e;return jm("span",{...l,className:n(Fs,e.className),children:[zs(d,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":r}),zs(d,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};Ht.states=Qm;Ht.options=Zm;Ht.className=Fs;Ht.defaultOptions=Pn;Ht.moduleName=null;Ht.folderName=null;var Gs="numeric-textbox",Us="numerictextbox";import{Fragment as Vs,jsx as Mt,jsxs as wn}from"react/jsx-runtime";var $s="k-numerictextbox",eu=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],tu={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},mr={showSpinButton:!0,showClearButton:!0,separators:!0},$=e=>{let{size:t,rounded:o,fillMode:a,separators:r=mr.separators,showClearButton:s=mr.showClearButton,showSpinButton:l=mr.showSpinButton,prefix:c,suffix:b,value:N,placeholder:h,hover:k,focus:m,valid:L,invalid:C,required:S,loading:T,disabled:I,readonly:w,id:Q,"aria-label":ue,"aria-describedby":he,...xe}=e;return wn(ee,{...xe,size:t,rounded:o,fillMode:a,hover:k,focus:m,valid:L,invalid:C,required:S,loading:T,disabled:I,readonly:w,className:n(e.className,$s),children:[c&&wn(Vs,{children:[Mt(ze,{children:c}),r&&Mt(Ie,{})]}),Mt($e,{id:Q,placeholder:h,value:N,role:"spinbutton",disabled:I,"aria-label":ue,"aria-describedby":he,"aria-invalid":C?"true":void 0}),Mt(Ae,{valid:L,invalid:C,loading:T,disabled:I}),Mt(He,{loading:T,disabled:I}),s&&Mt(Ve,{loading:T,disabled:I,readonly:w,value:N}),b&&wn(Vs,{children:[r&&Mt(Ie,{}),Mt(Fe,{children:b})]}),l&&Mt(Ht,{className:"k-input-spinner",size:t,fillMode:a,disabled:I})]})};$.states=eu;$.options=tu;$.className=$s;$.defaultOptions=mr;$.moduleName=Gs;$.folderName=Us;$.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 whe