UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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