@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 53.5 kB
JavaScript
var fn=Object.create;var Nt=Object.defineProperty;var bn=Object.getOwnPropertyDescriptor;var xn=Object.getOwnPropertyNames;var hn=Object.getPrototypeOf,Nn=Object.prototype.hasOwnProperty;var Ln=(e,t)=>{for(var o in t)Nt(e,o,{get:t[o],enumerable:!0})},_o=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xn(t))!Nn.call(e,i)&&i!==o&&Nt(e,i,{get:()=>t[i],enumerable:!(n=bn(t,i))||n.enumerable});return e};var Po=(e,t,o)=>(o=e!=null?fn(hn(e)):{},_o(t||!e||!e.__esModule?Nt(o,"default",{value:e,enumerable:!0}):o,e)),vn=e=>_o(Nt({},"__esModule",{value:!0}),e);var mr={};Ln(mr,{ColorInput:()=>Ze,default:()=>pr});module.exports=vn(mr);var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var E=(e,t)=>s({[`${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"}),K=(e,t)=>{let{valid:o,invalid:n,hover:i,focus:r,checked:d,active:p,selected:u,disabled:b,indeterminate:h,loading:L,empty:v,readonly:M,highlighted:w,...R}=t;return s({"k-valid":o,"k-invalid":n,"k-hover":i,"k-focus":r,"k-checked":d,"k-active":p,"k-selected":u,"k-disabled":b,"k-indeterminate":h&&!d,"k-loading":L,"k-empty":v,"k-readonly":M,"k-highlighted":w},Object.keys(R).reduce((I,S)=>(S.startsWith("k-")?I[S]=R[S]:I[`k-${S}`]=R[S],I),{}))};function Ho(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!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"},se={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"},a={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 Dt={};function y(e){return Dt[e]=(Dt[e]||0)+1,`k-${e}-${Dt[e]}`}var tt=require("react/jsx-runtime"),Bt="k-font-icon",gn=[],kn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info]},In={},ot=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:r,...d}=e;return n?(0,tt.jsx)("span",{...d,className:s(e.className,Bt,E(Bt,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):(0,tt.jsx)(tt.Fragment,{})};ot.states=gn;ot.options=kn;ot.className=Bt;ot.defaultOptions=In;var Do=ot;var Se=require("react/jsx-runtime"),zt="k-svg-icon",Sn=[],An={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[se.outline,se.solid,se.duotone]},Ut={viewBox:"0 0 24 24",variant:se.outline},it=e=>{var L,v;let{size:t,themeColor:o,rotate:n,flip:i,viewBox:r=Ut.viewBox,variant:d=Ut.variant,icon:p,...u}=e;if(!p)return(0,Se.jsx)(Se.Fragment,{});if(p==="none")return(0,Se.jsx)("span",{...u,className:s(e.className,zt,E("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let b=typeof p=="object"&&p.name&&p.name,h=typeof p=="object"?d&&((L=p.variants)==null?void 0:L[d])||((v=p.variants)==null?void 0:v.outline)||p.content:void 0;return(0,Se.jsx)("span",{...u,className:s(e.className,zt,E("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:(0,Se.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:r,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:p?void 0:e.children})})};it.states=Sn;it.options=An;it.className=zt;it.defaultOptions=Ut;var Ft=it;var Vt=Po(require("@progress/kendo-svg-icons"));var Bo="icon",zo="icons";var Vo=require("react");var Uo=require("react"),Fo=(0,Uo.createContext)({iconsType:"svg"});var ce=require("react/jsx-runtime"),Lt="k-icon",Cn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Tn=[],Mn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[se.outline,se.solid,se.duotone]},vt={viewBox:"0 0 24 24",type:"svg",variant:se.outline},g=e=>{let{iconsType:t}=(0,Vo.useContext)(Fo),{size:o,themeColor:n,icon:i,type:r=t||vt.type,rotate:d,flip:p,viewBox:u=vt.viewBox,variant:b=vt.variant,...h}=e;if(!i)return(0,ce.jsx)(ce.Fragment,{});if((t||r)==="svg"){if(i==="none")return(0,ce.jsx)(Ft,{...h,className:s(e.className,Lt),icon:i,size:o,variant:b});let v=Vt[i]?i:Cn(`${i}-icon`);return Vt[v]?(0,ce.jsx)(Ft,{...h,className:s(e.className,Lt),icon:Vt[v],size:o,themeColor:n,rotate:d,flip:p,viewBox:u,variant:b}):(0,ce.jsx)(ce.Fragment,{})}return(0,ce.jsx)(Do,{...h,className:s(e.className,Lt),icon:i,size:o,themeColor:n,rotate:d,flip:p})};g.states=Tn;g.options=Mn;g.defaultOptions=vt;g.className=Lt;g.moduleName=Bo;g.folderName=zo;g.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 Gt="button",Go=Gt;var J=require("react/jsx-runtime"),nt="k-button",En=["icon-button"],yn=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],On={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:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info,x.inverse]},Xt={showArrow:!1,arrowIconName:"chevron-down"},N=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:r,showArrow:d=Xt.showArrow,arrowIconName:p=Xt.arrowIconName,variant:u,hover:b,focus:h,active:L,selected:v,disabled:M,togglable:w,ariaDisabled:R,icon:I,iconSize:S,text:z,iconClassName:de,className:te,...ke}=e,Ie=I!=null,je=e.children!==void 0;return(0,J.jsxs)(t,{className:s(te,nt,Ho(nt,u),E(nt,{size:o,rounded:n,fillMode:i,themeColor:r}),K(nt,{hover:b,focus:h,active:L,disabled:M||R,selected:v}),{"k-icon-button":!z&&!je&&Ie}),"aria-pressed":w?v?"true":"false":void 0,...ke,"aria-disabled":R?"true":void 0,disabled:M||void 0,children:[typeof I=="string"&&I&&(0,J.jsx)(g,{className:s(de,"k-button-icon"),icon:I,size:S}),I&&typeof I!="string"&&(0,J.jsx)(J.Fragment,{children:I}),z?(0,J.jsxs)(J.Fragment,{children:[z&&(0,J.jsx)("span",{className:"k-button-text",children:z}),e.children]}):e.children&&(0,J.jsx)("span",{className:"k-button-text",children:e.children}),d&&(0,J.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,J.jsx)(g,{icon:p})})]})};N.states=yn;N.options=On;N.variants=En;N.className=nt;N.defaultOptions=Xt;N.moduleName=Gt;N.folderName=Go;N.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."}]};var $o=require("react/jsx-runtime"),Xo=e=>(0,$o.jsx)(N,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Wo=require("react/jsx-runtime"),qo=e=>(0,Wo.jsx)(N,{icon:"folder",children:"Button",...e});var Jo=require("react/jsx-runtime"),Ae=e=>(0,Jo.jsx)(N,{children:"Button",...e});var gt=require("react/jsx-runtime"),wn=N.options,Rn=N.states,Kn={...N.defaultOptions,variant:"text"},_n=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Pn=[],Oe=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,gt.jsx)(Xo,{...o,icon:"star"});case"icon-and-text":return(0,gt.jsx)(qo,{...o,icon:"star",children:"Button"});default:return(0,gt.jsx)(Ae,{...o,children:"Button"})}};Oe.options=wn;Oe.states=Rn;Oe.variants=_n;Oe.defaultOptions=Kn;Oe.modifiers=Pn;Oe.className=N.className;var at="input",kt=at;var Yo=require("react/jsx-runtime"),It="k-input",Hn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Dn={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={},_=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:d,readonly:p,size:u,rounded:b,fillMode:h,...L}=e;return(0,Yo.jsx)("span",{...L,className:s(e.className,It,E(It,{size:u,rounded:b,fillMode:h}),K(It,{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:d,readonly:p}))})};_.states=Hn;_.options=Dn;_.className=It;_.defaultOptions=Bn;_.moduleName=at;_.folderName=kt;var Qo=require("react/jsx-runtime"),St="k-picker",zn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Un={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]},Fn={},fe=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:d,readonly:p,size:u,rounded:b,fillMode:h,...L}=e;return(0,Qo.jsx)("span",{...L,className:s(e.className,St,E(St,{size:u,rounded:b,fillMode:h}),K(St,{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:d,readonly:p})),children:e.children})};fe.states=zn;fe.options=Un;fe.className=St;fe.defaultOptions=Fn;fe.moduleName=at;fe.folderName=kt;var we=require("react/jsx-runtime"),Zo="k-clear-value",Vn=[a.disabled,a.loading,a.readonly],Gn={},oe=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?(0,we.jsx)(we.Fragment,{}):(0,we.jsx)("span",{className:s(e.className,Zo),children:(0,we.jsx)(g,{icon:"x"})})};oe.states=Vn;oe.options=Gn;oe.className=Zo;var jo=require("react/jsx-runtime"),$t="k-input-inner",Xn=[],$n={},At={type:"text",autocomplete:"off",value:"",placeholder:""},ie=e=>{let{value:t=At.value,type:o=At.type,placeholder:n=At.placeholder,autocomplete:i=At.autocomplete,disabled:r,readOnly:d,...p}=e;return(0,jo.jsx)("input",{...p,type:o,className:s(e.className,$t,E($t,e)),placeholder:n,autoComplete:i,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};ie.states=Xn;ie.options=$n;ie.className=$t;var st=require("react/jsx-runtime"),qt="k-input-inner",qn=[],Wn={},rt=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:r,...d}=e;return(0,st.jsxs)("span",{...d,className:s(e.className,qt,E(qt,e)),children:[i,!i&&r&&(0,st.jsx)(g,{className:"k-input-value-icon",icon:r}),n&&!t&&o,n&&t&&(0,st.jsx)("span",{className:"k-input-value-text",children:t})]})};rt.states=qn;rt.options=Wn;rt.className=qt;var ti=require("react/jsx-runtime"),Wt="k-input-inner",Jn=[],Yn={},ei={value:"",placeholder:""},Jt=e=>{let{value:t=ei.value,placeholder:o=ei.placeholder,rows:n,disabled:i,...r}=e;return(0,ti.jsx)("textarea",{...r,className:s(e.className,Wt,E(Wt,e)),placeholder:o,rows:n,defaultValue:t,disabled:i||void 0})};Jt.states=Jn;Jt.options=Yn;Jt.className=Wt;var lt=require("react/jsx-runtime"),oi="k-input-loading-icon",Qn=[a.disabled,a.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,lt.jsx)(lt.Fragment,{}):(0,lt.jsx)("span",{className:s(e.className,oi,"k-icon k-i-loading")})};Z.states=Qn;Z.className=oi;var dt=require("react/jsx-runtime"),ii="k-input-validation-icon",Zn=[a.valid,a.invalid,a.disabled,a.loading],jn={},Y=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,r=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?(0,dt.jsx)(dt.Fragment,{}):(0,dt.jsx)(g,{className:s(ii),icon:r})};Y.states=Zn;Y.options=jn;Y.className=ii;var ct=require("react/jsx-runtime"),ea="k-input-prefix",ta={direction:"horizontal"},be=e=>{let{direction:t=ta.direction,...o}=e;return e.children?(0,ct.jsx)("span",{...o,className:s(ea,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,ct.jsx)(ct.Fragment,{})};var pt=require("react/jsx-runtime"),oa="k-input-suffix",ia={direction:"horizontal"},xe=e=>{let{direction:t=ia.direction,...o}=e;return e.children?(0,pt.jsx)("span",{...o,className:s(oa,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,pt.jsx)(pt.Fragment,{})};var na=require("react/jsx-runtime");var ni=require("react/jsx-runtime"),aa="k-input-suffix-text",Yt=e=>{let{children:t,...o}=e;return(0,ni.jsx)("span",{...o,className:s(aa,e.className),children:t})};var si=require("react/jsx-runtime"),ai="k-input-separator",sa={direction:"vertical"},pe=e=>{let{direction:t=sa.direction,...o}=e;return(0,si.jsx)("span",{...o,className:s(ai,e.className,{[`${ai}-${t}`]:t})})};var P=require("react/jsx-runtime"),ra=_.states,la=_.defaultOptions,da=_.options,ca=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],pa=[],Re=e=>{let{modifiers:t,valid:o,invalid:n,loading:i,disabled:r,readonly:d,...p}=e,u=t==null?void 0:t.prefix,b=t==null?void 0:t.suffix,h=t==null?void 0:t["clear-button"],L=t==null?void 0:t["validation-icon"],v=t==null?void 0:t.separators;return(0,P.jsxs)(_,{...p,valid:o,invalid:n,loading:i,disabled:r,readonly:d,style:{width:300},children:[u&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(be,{children:(0,P.jsx)(g,{icon:"lock"})}),v&&(0,P.jsx)(pe,{})]}),(0,P.jsx)(ie,{placeholder:"Placeholder",value:"Value"}),L&&(0,P.jsx)(Y,{valid:o,invalid:n,loading:i,disabled:r}),(0,P.jsx)(Z,{loading:i,disabled:r}),h&&(0,P.jsx)(oe,{loading:i,disabled:r,readonly:d,value:"Value"}),b&&(0,P.jsxs)(P.Fragment,{children:[v&&(0,P.jsx)(pe,{}),(0,P.jsx)(xe,{children:(0,P.jsx)(Ae,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};Re.options=da;Re.states=ra;Re.variants=pa;Re.defaultOptions=la;Re.modifiers=ca;Re.className=_.className;var mt=require("react/jsx-runtime"),ri="k-spin-button",fa=[],ba={size:[l.undefined,l.small,l.medium,l.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Qt={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},he=e=>{let{size:t,fillMode:o,disabled:n,increaseLabel:i=Qt.increaseLabel,decreaseLabel:r=Qt.decreaseLabel,...d}=e;return(0,mt.jsxs)("span",{...d,className:s(ri,e.className),children:[(0,mt.jsx)(N,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:n,"aria-label":i}),(0,mt.jsx)(N,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:n,"aria-label":r})]})};he.states=fa;he.options=ba;he.className=ri;he.defaultOptions=Qt;he.moduleName=null;he.folderName=null;var li="numeric-textbox",di="numerictextbox";var H=require("react/jsx-runtime"),ci="k-numerictextbox",xa=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],ha={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]},Ct={showSpinButton:!0,showClearButton:!0,separators:!0},k=e=>{let{size:t,rounded:o,fillMode:n,separators:i=Ct.separators,showClearButton:r=Ct.showClearButton,showSpinButton:d=Ct.showSpinButton,prefix:p,suffix:u,value:b,placeholder:h,hover:L,focus:v,valid:M,invalid:w,required:R,loading:I,disabled:S,readonly:z,id:de,"aria-label":te,"aria-describedby":ke,...Ie}=e;return(0,H.jsxs)(_,{...Ie,size:t,rounded:o,fillMode:n,hover:L,focus:v,valid:M,invalid:w,required:R,loading:I,disabled:S,readonly:z,className:s(e.className,ci),children:[p&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(be,{children:p}),i&&(0,H.jsx)(pe,{})]}),(0,H.jsx)(ie,{id:de,placeholder:h,value:b,role:"spinbutton",disabled:S,"aria-label":te,"aria-describedby":ke,"aria-invalid":w?"true":void 0}),(0,H.jsx)(Y,{valid:M,invalid:w,loading:I,disabled:S}),(0,H.jsx)(Z,{loading:I,disabled:S}),r&&(0,H.jsx)(oe,{loading:I,disabled:S,readonly:z,value:b}),u&&(0,H.jsxs)(H.Fragment,{children:[i&&(0,H.jsx)(pe,{}),(0,H.jsx)(xe,{children:u})]}),d&&(0,H.jsx)(he,{className:"k-input-spinner",size:t,fillMode:n,disabled:S})]})};k.states=xa;k.options=ha;k.className=ci;k.defaultOptions=Ct;k.moduleName=li;k.folderName=di;k.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 ut=k;var mi=require("react/jsx-runtime"),pi=e=>(0,mi.jsx)(ut,{...e});var Zt="popup",ui=Zt;var eo=require("react/jsx-runtime"),fi="k-animation-container",Na=[],La={},jt={positionMode:"absolute",shown:!0},re=e=>{let{positionMode:t=jt.positionMode,shown:o=jt.shown,animationStyle:n,offset:i,...r}=e;return(0,eo.jsx)("div",{...r,style:{...i,...e.style},className:s(e.className,fi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,eo.jsx)("div",{className:"k-child-animation-container",style:n,children:e.children})})};re.states=Na;re.options=La;re.className=fi;re.defaultOptions=jt;re.moduleName=Zt;re.folderName=ui;var to="popup",bi=to;var oo=require("react/jsx-runtime"),xi="k-popup",va=[],ga={},hi={positionMode:"absolute"},me=e=>{let{offset:t,positionMode:o=hi.positionMode,animationStyle:n,containerClassName:i,containerRole:r,containerAriaLabel:d,...p}=e;return(0,oo.jsx)(re,{positionMode:o,offset:t,animationStyle:n,className:i,role:r,"aria-label":d,children:(0,oo.jsx)("div",{...p,className:s(e.className,xi),children:e.children})})};me.states=va;me.options=ga;me.className=xi;me.defaultOptions=hi;me.moduleName=to;me.folderName=bi;me.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.'}]};var io="action-buttons",Ni=io;var Li=require("react/jsx-runtime"),Tt="k-actions",ka=[],Ia={},no={alignment:"start",orientation:"horizontal"},Ne=e=>{let{alignment:t=no.alignment,orientation:o=no.orientation,...n}=e;return(0,Li.jsx)("div",{...n,className:s(Tt,{[`${Tt}-${t}`]:t,[`${Tt}-${o}`]:o},e.className),children:e.children})};Ne.states=ka;Ne.options=Ia;Ne.className=Tt;Ne.defaultOptions=no;Ne.moduleName=io;Ne.folderName=Ni;var gi=require("react/jsx-runtime"),Sa="k-actionsheet-footer",vi={alignment:"stretched",orientation:"horizontal"},Ke=e=>{let{alignment:t=vi.alignment,orientation:o=vi.orientation,template:n,as:i=n?"div":Ne,...r}=e;return(0,gi.jsx)(i,{...r,...!n&&{alignment:t,orientation:o},className:s(e.className,Sa),children:e.children})};var ao="searchbox",ki=ao;var Le=require("react/jsx-runtime"),Ii="k-searchbox",Aa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Ca={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]},so={showIcon:!0,icon:"search"},j=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:r,hover:d,focus:p,valid:u,invalid:b,required:h,loading:L,disabled:v,showIcon:M=so.showIcon,icon:w=so.icon,"aria-label":R,...I}=e;return(0,Le.jsxs)(_,{...I,size:n,rounded:i,fillMode:r,hover:d,focus:p,valid:u,invalid:b,required:h,loading:L,disabled:v,className:s(e.className,Ii),children:[M&&(0,Le.jsx)(g,{className:"k-input-icon",icon:w}),(0,Le.jsx)(ie,{placeholder:o,value:t,"aria-label":R}),(0,Le.jsx)(Z,{...e}),(0,Le.jsx)(Y,{...e}),(0,Le.jsx)(oe,{...e})]})};j.states=Aa;j.options=Ca;j.className=Ii;j.defaultOptions=so;j.moduleName=ao;j.folderName=ki;var Ta=require("react/jsx-runtime");var ro="textbox",Si=ro;var U=require("react/jsx-runtime"),Ai="k-textbox",Ma=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ea={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]},Mt={showClearButton:!0,showValidationIcon:!0,separators:!0},D=e=>{let{size:t,rounded:o,fillMode:n,separators:i=Mt.separators,showClearButton:r=Mt.showClearButton,showValidationIcon:d=Mt.showValidationIcon,prefix:p,suffix:u,type:b,value:h,placeholder:L,hover:v,focus:M,valid:w,invalid:R,required:I,loading:S,disabled:z,readonly:de,id:te,"aria-label":ke,"aria-describedby":Ie,...je}=e;return(0,U.jsxs)(_,{...je,size:t,rounded:o,fillMode:n,hover:v,focus:M,valid:w,invalid:R,required:I,loading:S,disabled:z,readonly:de,className:s(e.className,Ai),children:[p&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(be,{children:p}),i&&(0,U.jsx)(pe,{})]}),(0,U.jsx)(ie,{id:te,placeholder:L,value:h,type:b,disabled:z,"aria-label":ke,"aria-describedby":Ie,"aria-invalid":R?"true":void 0}),d&&(0,U.jsx)(Y,{valid:w,invalid:R,loading:S,disabled:z}),(0,U.jsx)(Z,{loading:S,disabled:z}),r&&(0,U.jsx)(oe,{loading:S,disabled:z,readonly:de,value:h}),u&&(0,U.jsxs)(U.Fragment,{children:[i&&(0,U.jsx)(pe,{}),(0,U.jsx)(xe,{children:u})]})]})};D.states=Ma;D.options=Ea;D.className=Ai;D.defaultOptions=Mt;D.moduleName=ro;D.folderName=Si;D.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 ft=D;var Ti=require("react/jsx-runtime"),Ci=e=>(0,Ti.jsx)(ft,{...e});var Mi=require("react/jsx-runtime");var Ei=require("react/jsx-runtime");var ya=require("react/jsx-runtime");var Et=require("react/jsx-runtime"),Oa=D.states,wa=D.defaultOptions,Ra=D.options,Ka=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],_a=[],_e=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t!=null&&t[i]?(0,Et.jsx)(g,{icon:"lock"}):void 0;break;case"suffix":n.suffix=t!=null&&t[i]?(0,Et.jsx)(Ae,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":n.showClearButton=t==null?void 0:t[i];break;default:break}}),(0,Et.jsx)(Ci,{value:"Value",style:{width:300},...o,...n})};_e.options=Ra;_e.states=Oa;_e.variants=_a;_e.defaultOptions=wa;_e.modifiers=Ka;_e.className=D.className;var Q=require("react/jsx-runtime"),yi="k-actionsheet-titlebar",Pa={},ne=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:r,input:d,inputValue:p,inputPlaceholder:u,adaptive:b,titleId:h,children:L,...v}=e;return(0,Q.jsxs)("div",{...v,className:s(e.className,yi),children:[(0,Q.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[n&&(0,Q.jsx)("div",{className:"k-actionsheet-actions",children:n}),!L&&(0,Q.jsxs)("div",{className:"k-actionsheet-title",id:h,children:[t&&(0,Q.jsx)("div",{className:"k-text-center",children:t}),o&&(0,Q.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),L&&(0,Q.jsx)("div",{className:"k-actionsheet-title",id:h,children:L}),i&&(0,Q.jsx)("div",{className:"k-actionsheet-actions",children:i})]}),(d||r)&&(0,Q.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?(0,Q.jsx)(D,{value:p,placeholder:u,size:b?"large":"medium","aria-label":t||u||"Input"}):(0,Q.jsx)(j,{placeholder:"Filter",size:b?"large":"medium","aria-label":"Filter options"})})]})};ne.className=yi;ne.defaultOptions=Pa;var Pe=require("react/jsx-runtime"),lo="k-actionsheet-view",Ha=[],Da={},Ba={},He=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:r,titleId:d,...p}=e,u=(i==null?void 0:i.type)===ne&&(0,Pe.jsx)(ne,{adaptive:t,titleId:d,...i==null?void 0:i.props}),b=(r==null?void 0:r.type)===Ke&&(0,Pe.jsx)(Ke,{...r==null?void 0:r.props});return(0,Pe.jsxs)("div",{...p,className:s(e.className,lo,{[`${lo}-animated`]:o}),children:[u,(0,Pe.jsx)("div",{className:"k-actionsheet-content",children:n}),b]})};He.states=Ha;He.options=Da;He.className=lo;He.defaultOptions=Ba;var bt="action-sheet",yt=bt;var co="overlay",Oi=co;var Ri=require("react/jsx-runtime"),wi="k-overlay",za=[],Ua={},Fa={},ve=e=>{let{...t}=e;return(0,Ri.jsx)("div",{...t,className:s(e.className,wi),children:e.children})};ve.states=za;ve.options=Ua;ve.className=wi;ve.defaultOptions=Fa;ve.moduleName=co;ve.folderName=Oi;var Ce=require("react/jsx-runtime"),Ki="k-actionsheet",Va=[],Ga={},xt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},B=e=>{let{side:t=xt.side,fullscreen:o=xt.fullscreen,adaptive:n=xt.adaptive,overlay:i=xt.overlay,template:r,children:d,header:p,footer:u,id:b,...h}=e,L=b&&!r&&p?`${b}-title`:void 0;return(0,Ce.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,Ce.jsx)(ve,{}),(0,Ce.jsx)(re,{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:(0,Ce.jsx)("div",{...h,id:b,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":L,className:s(e.className,Ki,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:r||(0,Ce.jsx)(He,{header:p,footer:u,adaptive:n,titleId:L,...e,children:d})})})]})};B.states=Va;B.options=Ga;B.className=Ki;B.defaultOptions=xt;B.moduleName=bt;B.folderName=yt;B.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."}]};var Pi=require("react/jsx-runtime"),_i="k-actionsheet-container",Xa=[],$a={},qa={},De=e=>{let{children:t,...o}=e;return(0,Pi.jsx)("div",{...o,className:_i,children:t})};De.states=Xa;De.options=$a;De.className=_i;De.defaultOptions=qa;De.moduleName=bt;De.folderName=yt;var Hi=require("react/jsx-runtime"),po=e=>{let{...t}=e;return(0,Hi.jsx)("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};var ee=require("react/jsx-runtime"),mo="k-actionsheet-item",Wa=[a.hover,a.focus,a.selected,a.disabled],ge=e=>{let{iconName:t,text:o,description:n,hover:i,focus:r,selected:d,disabled:p,...u}=e;return(0,ee.jsxs)("span",{...u,className:s(e.className,mo,K(mo,{hover:i,focus:r,selected:d,disabled:p})),children:[!e.children&&(0,ee.jsx)(ee.Fragment,{children:(0,ee.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,ee.jsx)("span",{className:"k-icon-wrap",children:(0,ee.jsx)(g,{className:"k-actionsheet-item-icon",icon:t})}),(0,ee.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,ee.jsx)("span",{className:"k-actionsheet-item-title",children:o}),n&&(0,ee.jsx)("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};ge.states=Wa;ge.className=mo;var Di=require("react/jsx-runtime");var Ja=require("react/jsx-runtime");var Ya=require("react/jsx-runtime");var Qa=require("react/jsx-runtime");var C=require("react/jsx-runtime"),Za=B.options,ja=B.states,zi={...B.defaultOptions,variant:"normal"},es=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],ts=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Be=e=>{let{variant:t,modifiers:o,...n}={...zi,...e},i={},r=(0,C.jsxs)(po,{children:[(0,C.jsx)(ge,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,C.jsx)(ge,{text:"Add to Favorites",iconName:"heart"}),(0,C.jsx)(ge,{text:"Upload New",iconName:"upload",disabled:!0}),(0,C.jsx)("hr",{className:"k-hr"}),(0,C.jsx)(ge,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",p="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":i.actionsStart=!!(o!=null&&o[u]),i.actionsEnd=!!(o!=null&&o[u]);break;case"subtitle":i.subtitle=o!=null&&o[u]?d:void 0;break;case"footer":i.footer=!!(o!=null&&o[u]);break;default:break}}),t==="adaptive"?(0,C.jsx)(B,{...n,adaptive:!0,fullscreen:i.fullScreen,header:(0,C.jsx)(ne,{actionsStart:i.actionsStart?(0,C.jsx)(N,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?(0,C.jsx)(N,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:p,subtitle:i.subtitle}),footer:i.footer?(0,C.jsxs)(Ke,{alignment:"stretched",children:[(0,C.jsx)(N,{text:"Cancel",size:"large",themeColor:"base"}),(0,C.jsx)(N,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):(0,C.jsx)(B,{...n,fullscreen:i.fullScreen,header:(0,C.jsx)(ne,{actionsStart:i.actionsStart?(0,C.jsx)(N,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?(0,C.jsx)(N,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?(0,C.jsxs)(Ke,{alignment:"stretched",children:[(0,C.jsx)(N,{text:"Apply",themeColor:"primary"}),(0,C.jsx)(N,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Be.options=Za;Be.states=ja;Be.variants=es;Be.defaultOptions=zi;Be.modifiers=ts;Be.className=B.className;var Ot=Po(require("react"));var uo=require("react/jsx-runtime"),os="k-list-group-sticky-header",fo=e=>(0,uo.jsx)("div",{className:s(os,e.className),children:(0,uo.jsx)("div",{className:"k-list-header-text",children:e.children})});var Ui=require("react/jsx-runtime"),is="k-no-data",bo=e=>{let{live:t,...o}=e;return(0,Ui.jsx)("span",{...o,className:s(is,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Te="list",ze=Te;var Ue=require("react/jsx-runtime"),xo="k-list",ns=[],as={size:[l.undefined,l.small,l.medium,l.large]},ss={},O=e=>{var w;let{size:t,virtualization:o,children:n,header:i,selectAll:r,optionLabel:d,customValue:p,noData:u,screenReaders:b,...h}=e,v=Ot.default.Children.toArray(n)[0],M=(w=v==null?void 0:v.props)!=null&&w.children?Ot.default.Children.count(v.props.children):Ot.default.Children.count(n);return(0,Ue.jsxs)("div",{...h,className:s(e.className,xo,E(xo,{size:t}),{"k-virtual-list":o}),children:[d,r,p,i&&(0,Ue.jsx)(fo,{children:i}),n||(u!==void 0?u:(0,Ue.jsx)(bo,{live:!0,children:"No data found."})),b&&n&&(0,Ue.jsxs)(bo,{className:"k-sr-only",live:!0,children:[M," items found."]})]})};O.states=ns;O.options=as;O.className=xo;O.defaultOptions=ss;O.moduleName=Te;O.folderName=ze;O.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};var Vi=require("react/jsx-runtime"),Fi="k-list-container",rs=[],ls={},ds={},Fe=e=>{let{...t}=e;return(0,Vi.jsx)("div",{...t,className:s(e.className,Fi),children:e.children})};Fe.states=rs;Fe.options=ls;Fe.className=Fi;Fe.defaultOptions=ds;Fe.moduleName=Te;Fe.folderName=ze;var Me="checkbox",Ve=Me;var ho=require("react/jsx-runtime"),wt="k-checkbox",cs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],ps={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},ms={},q=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:r,disabled:d,invalid:p,valid:u,required:b,size:h,rounded:L,wrapperRole:v,...M}=e;return(0,ho.jsx)("span",{className:"k-checkbox-wrap",role:v,children:(0,ho.jsx)("input",{...M,id:t,type:"checkbox",defaultChecked:o,required:b,disabled:d||void 0,"aria-invalid":p?"true":void 0,className:s(e.className,wt,E(wt,{size:h,rounded:L}),K(wt,{hover:i,focus:r,disabled:d,invalid:p,valid:u,indeterminate:n,checked:o}))})})};q.states=cs;q.options=ps;q.className=wt;q.defaultOptions=ms;q.moduleName=Me;q.folderName=Ve;q.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var ae=q;var $i=require("react/jsx-runtime"),Gi="k-checkbox-list",us=[],fs={},Xi={layout:"vertical"},G=e=>{let{layout:t=Xi.layout,...o}=e;return(0,$i.jsx)("ul",{...o,className:s(e.className,Gi,{[`k-list-${t}`]:t}),children:e.children})};G.states=us;G.options=fs;G.className=Gi;G.defaultOptions=Xi;G.moduleName=Me;G.folderName=Ve;var Wi=require("react/jsx-runtime"),qi="k-checkbox-list-item",bs=[],xs={},hs={},X=e=>{let{...t}=e;return(0,Wi.jsx)("li",{...t,className:s(e.className,qi),children:e.children})};X.states=bs;X.options=xs;X.className=qi;X.defaultOptions=hs;X.moduleName=Me;X.folderName=Ve;var Ee=require("react/jsx-runtime"),ue=({children:e="Label",id:t="cb-label-after",...o})=>(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(ae,{id:t,...o}),(0,Ee.jsx)("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});var No=require("react/jsx-runtime");var Lo=require("react/jsx-runtime");var vo=require("react/jsx-runtime");var Ns=require("react/jsx-runtime");var Ls=require("react/jsx-runtime");var vs=require("react/jsx-runtime");var F=require("react/jsx-runtime"),gs=G.options,ks=G.states,Is={...G.defaultOptions,variant:"vertical"},Ss=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],As=[],Ge=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,F.jsxs)(G,{layout:"horizontal",...o,children:[(0,F.jsx)(X,{children:(0,F.jsx)(ue,{id:y("cb"),defaultChecked:!0,children:"Label"})}),(0,F.jsx)(X,{children:(0,F.jsx)(ue,{id:y("cb"),children:"Label"})}),(0,F.jsx)(X,{children:(0,F.jsx)(ue,{id:y("cb"),children:"Label"})})]}):(0,F.jsxs)(G,{...o,children:[(0,F.jsx)(X,{children:(0,F.jsx)(ue,{id:y("cb"),defaultChecked:!0,children:"Label"})}),(0,F.jsx)(X,{children:(0,F.jsx)(ue,{id:y("cb"),children:"Label"})}),(0,F.jsx)(X,{children:(0,F.jsx)(ue,{id:y("cb"),children:"Label"})})]})};Ge.options=gs;Ge.states=ks;Ge.variants=Ss;Ge.defaultOptions=Is;Ge.modifiers=As;Ge.className=G.className;var Ji=require("react/jsx-runtime"),Cs=ae.options,Ts=ae.states,Ms=ae.defaultOptions,Es=[],ys=[],Xe=e=>(0,Ji.jsx)(ue,{id:y("checkbox"),...e,defaultChecked:!0,children:"Label"});Xe.options=Cs;Xe.states=Ts;Xe.variants=Es;Xe.defaultOptions=Ms;Xe.modifiers=ys;Xe.className=ae.className;var le=require("react/jsx-runtime"),go="k-list-item",Os=[a.hover,a.focus,a.selected,a.disabled],ws={},Rs={},A=e=>{let{text:t,groupLabel:o,group:n,iconName:i,iconClassName:r,showCheckbox:d,checked:p,hover:u,focus:b,selected:h,disabled:L,actions:v,description:M,id:w,...R}=e,I=t||e.children;return(0,le.jsxs)("li",{...R,id:w,role:n?"presentation":"option",tabIndex:n?void 0:b?0:-1,"aria-selected":!n&&h?"true":n?void 0:"false","aria-disabled":!n&&L?"true":void 0,className:s(e.className,n?"k-list-group-item":go,K(go,{hover:u,focus:b,disabled:L,selected:h})),children:[d&&(0,le.jsx)(q,{checked:p}),i&&(0,le.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,le.jsx)(g,{icon:i,className:s("k-list-item-icon",r)})}),(0,le.jsx)("span",{className:"k-list-item-text",children:I}),v&&(0,le.jsx)("div",{className:"k-list-item-actions",children:v}),M&&(0,le.jsx)("span",{className:"k-list-item-description",children:M}),o&&o!==""&&(0,le.jsx)("div",{className:"k-list-item-group-label",children:o})]})};A.states=Os;A.options=ws;A.className=go;A.defaultOptions=Rs;A.moduleName=Te;A.folderName=ze;A.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."}]};var Yi=require("react/jsx-runtime"),Ks="k-list-ul",ye=e=>{let{children:t,role:o,id:n,...i}=e;return(0,Yi.jsx)("ul",{...i,id:n,role:o,className:s(Ks,e.className),children:t})};ye.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."}]};var $e=require("react/jsx-runtime"),_s="k-list-content",$=e=>{let{virtualization:t,grouping:o,"aria-label":n,"aria-labelledby":i,listboxId:r,...d}=e;return(0,$e.jsxs)("div",{...d,className:s(_s,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?n:void 0,"aria-labelledby":o?i:void 0,children:[o?e.children:(0,$e.jsx)(ye,{role:"listbox",id:r,"aria-label":n,"aria-labelledby":i,children:e.children}),t&&(0,$e.jsx)("div",{className:"k-height-container",children:(0,$e.jsx)("div",{})})]})};$.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."}]};var qe=require("react/jsx-runtime"),Rt="k-list-sticky-header",Ps=[a.hover,a.focus,a.selected],Hs={},Ds={},Kt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:n,indeterminate:i,hover:r,focus:d,selected:p,...u}=e;return(0,qe.jsx)("div",{...u,className:s(Rt,e.className),children:(0,qe.jsxs)("div",{className:s(`${Rt}-item`,K(`${Rt}-item`,{hover:r,focus:d,selected:p})),children:[o&&(0,qe.jsx)(q,{checked:n,indeterminate:i,"aria-label":t}),(0,qe.jsx)("span",{className:"k-list-item-text",children:t})]})})};Kt.states=Ps;Kt.options=Hs;Kt.className=Rt;Kt.defaultOptions=Ds;var ko=require("react/jsx-runtime");var We=require("react/jsx-runtime"),Bs="k-list-group-item",ht=e=>{let{groupIconName:t,...o}=e;return(0,We.jsxs)("li",{...o,role:"presentation",className:s(Bs,e.className),children:[t&&(0,We.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,We.jsx)(g,{icon:t,className:"k-list-item-icon"})}),(0,We.jsx)("span",{className:"k-list-item-text",children:e.children})]})};ht.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."}]};var Qi=require("react/jsx-runtime"),Io="k-list-optionlabel",zs=[a.hover,a.focus,a.selected,a.disabled],Us={},Fs={},_t=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:r,...d}=e;return(0,Qi.jsx)("div",{...d,className:s(Io,K(Io,{hover:o,focus:n,selected:i,disabled:r})),children:t})};_t.states=zs;_t.options=Us;_t.className=Io;_t.defaultOptions=Fs;var Zi=require("react/jsx-runtime"),So="k-list-custom-value",Vs=[a.hover,a.focus,a.selected,a.disabled],Gs={},Xs={},Pt=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:r,...d}=e;return(0,Zi.jsx)("div",{...d,className:s(So,K(So,{hover:o,focus:n,selected:i,disabled:r})),children:t})};Pt.states=Vs;Pt.options=Gs;Pt.className=So;Pt.defaultOptions=Xs;var Ao=require("react/jsx-runtime");var Co=require("react/jsx-runtime");var To=require("react/jsx-runtime");var Mo=require("react/jsx-runtime");var $s=require("react/jsx-runtime");var Eo=require("react/jsx-runtime");var ji="dropdown-list",en="dropdownlist";var T=require("react/jsx-runtime"),tn="k-dropdownlist",qs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ws={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]},yo={showValue:!0,arrowIconName:"chevron-down"},V=e=>{let{size:t,rounded:o,fillMode:n,arrowIconName:i=yo.arrowIconName,showValue:r=yo.showValue,valueIconName:d,prefix:p,suffix:u,value:b,placeholder:h,hover:L,focus:v,valid:M,invalid:w,required:R,loading:I,disabled:S,readonly:z,popup:de,opened:te,adaptive:ke,adaptiveSettings:Ie,adaptiveTitle:je,adaptiveSubtitle:dn,adaptiveFilter:cn,id:et,activeDescendant:Ro,"aria-label":pn,...mn}=e,un=et?`${et}-listbox`:void 0,Ko=et?`${et}-value`:void 0;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(fe,{...mn,id:et,size:t,rounded:o,fillMode:n,hover:L,focus:v,valid:M,invalid:w,required:R,loading:I,disabled:S,readonly:z,className:s(e.className,tn,{"k-icon-picker":!r&&d}),role:"combobox","aria-haspopup":"listbox","aria-expanded":te?"true":"false","aria-controls":te?un:void 0,"aria-activedescendant":te&&Ro?Ro:void 0,"aria-describedby":te?Ko:void 0,"aria-disabled":S?"true":void 0,"aria-label":pn,tabIndex:0,children:[(0,T.jsx)(be,{children:p}),(0,T.jsx)(rt,{placeholder:h,value:b,showValue:r,valueIconName:d,id:Ko}),(0,T.jsx)(Y,{valid:M,invalid:w,loading:I,disabled:S}),(0,T.jsx)(Z,{loading:I,disabled:S}),(0,T.jsx)(xe,{children:u}),(0,T.jsx)(N,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":h||"Toggle dropdown",tabIndex:-1})]}),te&&de&&(0,T.jsx)(me,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:de}),ke&&(0,T.jsx)(B,{adaptive:!0,...Ie,header:(0,T.jsx)(ne,{actionsEnd:(0,T.jsx)(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:cn,inputValue:b,inputPlaceholder:h,title:je,subtitle:dn}),children:(0,T.jsx)("div",{className:"k-list-container",children:(0,T.jsx)(O,{size:"large",children:(0,T.jsxs)($,{"aria-label":"Options",children:[(0,T.jsx)(A,{text:"List item"}),(0,T.jsx)(A,{text:"List item"}),(0,T.jsx)(A,{text:"List item"})]})})})})]})};V.states=qs;V.options=Ws;V.className=tn;V.defaultOptions=yo;V.moduleName=ji;V.folderName=en;V.ariaSpec={rules:[{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"role=combobox",usage:"Announces the dropdown element."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-haspopup=listbox",usage:"Indicates the presence of a listbox popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-expanded",usage:"Announces the visibility state of the popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-label",usage:"Accessible name for the dropdown."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-dropdownlist.k-disabled",attribute:"aria-disabled=true",usage:"Rendered when the dropdown is disabled."},{selector:".k-dropdownlist .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-dropdownlist .k-input-button",attribute:"tabindex=-1",usage:"The button must not be focusable."},{selector:".k-dropdownlist-popup .k-list-content, .k-dropdownlist-popup .k-list-ul",attribute:"role=listbox",usage:"Popup list has listbox role."},{selector:'.k-dropdownlist-popup .k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby",usage:"Popup listbox must have an accessible name. Consuming code is responsible for associating with the component label via aria-labelledby."},{selector:".k-dropdownlist-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."}]};var Js=require("react/jsx-runtime");var on=require("react/jsx-runtime");var Oo=require("react/jsx-runtime");var Ys=require("react/jsx-runtime");var nn=require("react/jsx-runtime");var wo=require("react/jsx-runtime");var Qs=require("react/jsx-runtime");var W=require("react/jsx-runtime"),Zs=V.states,js=V.defaultOptions,er=V.options,tr=[{name:"opened",title:"Opened"}],or=[],Ye=e=>{let{modifiers:t,...o}=e,n={},i=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:"k-list-filter",children:(0,W.jsx)(j,{})}),(0,W.jsx)(O,{style:{width:300},size:o.size,children:(0,W.jsxs)($,{children:[(0,W.jsx)(A,{children:"List item"}),(0,W.jsx)(A,{children:"List item"}),(0,W.jsx)(A,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(r=>{r==="opened"&&(n.opened=!!(t!=null&&t[r]),n.popup=t!=null&&t[r]?i:void 0)}),(0,W.jsx)("div",{children:(0,W.jsx)(V,{placeholder:"Value",style:{width:300},...o,...n})})};Ye.options=er;Ye.states=Zs;Ye.variants=or;Ye.defaultOptions=js;Ye.modifiers=tr;Ye.className=V.className;var an=require("react/jsx-runtime");var sn=require("react/jsx-runtime");var ir=require("react/jsx-runtime");var Ht=require("react/jsx-runtime"),nr=k.states,ar=k.defaultOptions,sr=k.options,rr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"spin-button",title:"`Spin` Button"}],lr=[],Qe=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t!=null&&t[i]?(0,Ht.jsx)(V,{size:o.size,fillMode:"flat",value:"mm"}):void 0;break;case"suffix":n.suffix=t!=null&&t[i]?(0,Ht.jsx)(Yt,{children:"mm"}):void 0;break;case"clear-button":n.showClearButton=t==null?void 0:t[i];break;case"spin-button":n.showSpinButton=t==null?void 0:t[i];break;default:break}}),(0,Ht.jsx)(pi,{value:"Value",style:{width:300},...o,...n})};Qe.options=sr;Qe.states=nr;Qe.variants=lr;Qe.defaultOptions=ar;Qe.modifiers=rr;Qe.className=k.className;var c=require("react/jsx-runtime"),rn="k-colorgradient-inputs",dr=[],cr={size:[l.undefined,l.small,l.medium,l.large]},ln={mode:"rgba"},Ze=e=>{let{mode:t=ln.mode,size:o,...n}=e;return(0,c.jsxs)("div",{...n,className:s(rn,"k-hstack"),children:[(0,c.jsx)("div",{className:"k-vstack",children:(0,c.jsx)(N,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o,"aria-label":"Toggle color input format"})}),t==="rgba"&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"k-vstack",children:[(0