@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 47.1 kB
JavaScript
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"}),y=(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,...E}=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(E).reduce((I,g)=>(g.startsWith("k-")?I[g]=E[g]:I[`k-${g}`]=E[g],I),{}))};function mo(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"},Q={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 bt={};function C(e){return bt[e]=(bt[e]||0)+1,`k-${e}-${bt[e]}`}var ze="input",Ze=ze;import{jsx as wi}from"react/jsx-runtime";var je="k-input",yi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ti={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]},Oi={},T=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 wi("span",{...N,className:s(e.className,je,A(je,{size:m,rounded:f,fillMode:x}),y(je,{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:d,readonly:c}))})};T.states=yi;T.options=Ti;T.className=je;T.defaultOptions=Oi;T.moduleName=ze;T.folderName=Ze;import{jsx as Pi}from"react/jsx-runtime";var et="k-picker",Ri=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ki={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]},_i={},ae=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 Pi("span",{...N,className:s(e.className,et,A(et,{size:m,rounded:f,fillMode:x}),y(et,{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:d,readonly:c})),children:e.children})};ae.states=Ri;ae.options=Ki;ae.className=et;ae.defaultOptions=_i;ae.moduleName=ze;ae.folderName=Ze;import{Fragment as zi,jsx as uo}from"react/jsx-runtime";var xt="k-font-icon",Hi=[],Di={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]},Bi={},Ue=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:r,...d}=e;return n?uo("span",{...d,className:s(e.className,xt,A(xt,{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"}):uo(zi,{})};Ue.states=Hi;Ue.options=Di;Ue.className=xt;Ue.defaultOptions=Bi;var fo=Ue;import{Fragment as Vi,jsx as tt}from"react/jsx-runtime";var ht="k-svg-icon",Ui=[],Fi={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:[Q.outline,Q.solid,Q.duotone]},Nt={viewBox:"0 0 24 24",variant:Q.outline},Fe=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:r=Nt.viewBox,variant:d=Nt.variant,icon:c,...m}=e;if(!c)return tt(Vi,{});if(c==="none")return tt("span",{...m,className:s(e.className,ht,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 tt("span",{...m,className:s(e.className,ht,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:tt("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})})};Fe.states=Ui;Fe.options=Fi;Fe.className=ht;Fe.defaultOptions=Nt;var Lt=Fe;import*as vt from"@progress/kendo-svg-icons";var bo="icon",xo="icons";import{useContext as Xi}from"react";import{createContext as Gi}from"react";var ho=Gi({iconsType:"svg"});import{Fragment as No,jsx as Ve}from"react/jsx-runtime";var ot="k-icon",$i=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),qi=[],Wi={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:[Q.outline,Q.solid,Q.duotone]},it={viewBox:"0 0 24 24",type:"svg",variant:Q.outline},L=e=>{let{iconsType:t}=Xi(ho),{size:o,themeColor:n,icon:i,type:r=t||it.type,rotate:d,flip:c,viewBox:m=it.viewBox,variant:f=it.variant,...x}=e;if(!i)return Ve(No,{});if((t||r)==="svg"){if(i==="none")return Ve(Lt,{...x,className:s(e.className,ot),icon:i,size:o,variant:f});let v=vt[i]?i:$i(`${i}-icon`);return vt[v]?Ve(Lt,{...x,className:s(e.className,ot),icon:vt[v],size:o,themeColor:n,rotate:d,flip:c,viewBox:m,variant:f}):Ve(No,{})}return Ve(fo,{...x,className:s(e.className,ot),icon:i,size:o,themeColor:n,rotate:d,flip:c})};L.states=qi;L.options=Wi;L.defaultOptions=it;L.className=ot;L.moduleName=bo;L.folderName=xo;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 Qi,jsx as It}from"react/jsx-runtime";var Lo="k-clear-value",Ji=[a.disabled,a.loading,a.readonly],Yi={},q=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?It(Qi,{}):It("span",{className:s(e.className,Lo),children:It(L,{icon:"x"})})};q.states=Ji;q.options=Yi;q.className=Lo;import{jsx as en}from"react/jsx-runtime";var gt="k-input-inner",Zi=[],ji={},nt={type:"text",autocomplete:"off",value:"",placeholder:""},W=e=>{let{value:t=nt.value,type:o=nt.type,placeholder:n=nt.placeholder,autocomplete:i=nt.autocomplete,disabled:r,readOnly:d,...c}=e;return en("input",{...c,type:o,className:s(e.className,gt,A(gt,e)),placeholder:n,autoComplete:i,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};W.states=Zi;W.options=ji;W.className=gt;import{jsx as vo,jsxs as nn}from"react/jsx-runtime";var kt="k-input-inner",tn=[],on={},Ge=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:r,...d}=e;return nn("span",{...d,className:s(e.className,kt,A(kt,e)),children:[i,!i&&r&&vo(L,{className:"k-input-value-icon",icon:r}),n&&!t&&o,n&&t&&vo("span",{className:"k-input-value-text",children:t})]})};Ge.states=tn;Ge.options=on;Ge.className=kt;import{jsx as rn}from"react/jsx-runtime";var St="k-input-inner",an=[],sn={},Io={value:"",placeholder:""},At=e=>{let{value:t=Io.value,placeholder:o=Io.placeholder,rows:n,disabled:i,...r}=e;return rn("textarea",{...r,className:s(e.className,St,A(St,e)),placeholder:o,rows:n,defaultValue:t,disabled:i||void 0})};At.states=an;At.options=sn;At.className=St;import{Fragment as dn,jsx as go}from"react/jsx-runtime";var ko="k-input-loading-icon",ln=[a.disabled,a.loading],V=e=>{let{disabled:t,loading:o}=e;return t||!o?go(dn,{}):go("span",{className:s(e.className,ko,"k-icon k-i-loading")})};V.states=ln;V.className=ko;import{Fragment as mn,jsx as So}from"react/jsx-runtime";var Ao="k-input-validation-icon",cn=[a.valid,a.invalid,a.disabled,a.loading],pn={},F=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,r=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?So(mn,{}):So(L,{className:s(Ao),icon:r})};F.states=cn;F.options=pn;F.className=Ao;import{Fragment as bn,jsx as Co}from"react/jsx-runtime";var un="k-input-prefix",fn={direction:"horizontal"},se=e=>{let{direction:t=fn.direction,...o}=e;return e.children?Co("span",{...o,className:s(un,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Co(bn,{})};import{Fragment as Nn,jsx as Mo}from"react/jsx-runtime";var xn="k-input-suffix",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-suffix-${t}`]:t}),children:e.children}):Mo(Nn,{})};import{jsx as al}from"react/jsx-runtime";import{jsx as dl}from"react/jsx-runtime";import{jsx as vn}from"react/jsx-runtime";var Eo="k-input-separator",Ln={direction:"vertical"},te=e=>{let{direction:t=Ln.direction,...o}=e;return vn("span",{...o,className:s(Eo,e.className,{[`${Eo}-${t}`]:t})})};var Ct="button",yo=Ct;import{Fragment as To,jsx as ke,jsxs as Oo}from"react/jsx-runtime";var Xe="k-button",In=["icon-button"],gn=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],kn={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]},Mt={showArrow:!1,arrowIconName:"chevron-down"},h=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:r,showArrow:d=Mt.showArrow,arrowIconName:c=Mt.arrowIconName,variant:m,hover:f,focus:x,active:N,selected:v,disabled:S,togglable:O,ariaDisabled:E,icon:I,iconSize:g,text:K,iconClassName:ee,className:$,...xe}=e,he=I!=null,De=e.children!==void 0;return Oo(t,{className:s($,Xe,mo(Xe,m),A(Xe,{size:o,rounded:n,fillMode:i,themeColor:r}),y(Xe,{hover:f,focus:x,active:N,disabled:S||E,selected:v}),{"k-icon-button":!K&&!De&&he}),"aria-pressed":O?v?"true":"false":void 0,...xe,"aria-disabled":E?"true":void 0,disabled:S||void 0,children:[typeof I=="string"&&I&&ke(L,{className:s(ee,"k-button-icon"),icon:I,size:g}),I&&typeof I!="string"&&ke(To,{children:I}),K?Oo(To,{children:[K&&ke("span",{className:"k-button-text",children:K}),e.children]}):e.children&&ke("span",{className:"k-button-text",children:e.children}),d&&ke("span",{className:"k-menu-button-arrow k-button-arrow",children:ke(L,{icon:c})})]})};h.states=gn;h.options=kn;h.variants=In;h.className=Xe;h.defaultOptions=Mt;h.moduleName=Ct;h.folderName=yo;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 Sn}from"react/jsx-runtime";var Ne=e=>Sn(h,{children:"Button",...e});import{Fragment as wo,jsx as Z,jsxs as Et}from"react/jsx-runtime";var An=T.states,Cn=T.defaultOptions,Mn=T.options,En=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],yn=[],Se=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(T,{...c,valid:o,invalid:n,loading:i,disabled:r,readonly:d,style:{width:300},children:[m&&Et(wo,{children:[Z(se,{children:Z(L,{icon:"lock"})}),v&&Z(te,{})]}),Z(W,{placeholder:"Placeholder",value:"Value"}),N&&Z(F,{valid:o,invalid:n,loading:i,disabled:r}),Z(V,{loading:i,disabled:r}),x&&Z(q,{loading:i,disabled:r,readonly:d,value:"Value"}),f&&Et(wo,{children:[v&&Z(te,{}),Z(re,{children:Z(Ne,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Se.options=Mn;Se.states=An;Se.variants=yn;Se.defaultOptions=Cn;Se.modifiers=En;Se.className=T.className;import{jsx as Tn}from"react/jsx-runtime";var Ro=e=>Tn(h,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as On}from"react/jsx-runtime";var Ko=e=>On(h,{icon:"folder",children:"Button",...e});import{jsx as yt}from"react/jsx-runtime";var wn=h.options,Rn=h.states,Kn={...h.defaultOptions,variant:"text"},_n=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Pn=[],Ae=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return yt(Ro,{...o,icon:"star"});case"icon-and-text":return yt(Ko,{...o,icon:"star",children:"Button"});default:return yt(Ne,{...o,children:"Button"})}};Ae.options=wn;Ae.states=Rn;Ae.variants=_n;Ae.defaultOptions=Kn;Ae.modifiers=Pn;Ae.className=h.className;import{jsx as _o,jsxs as Un}from"react/jsx-runtime";var Po="k-spin-button",Bn=[],zn={size:[l.undefined,l.small,l.medium,l.large],fillMode:[u.undefined,u.solid,u.flat,u.outline,u.clear,u.link]},Tt={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},le=e=>{let{size:t,fillMode:o,disabled:n,increaseLabel:i=Tt.increaseLabel,decreaseLabel:r=Tt.decreaseLabel,...d}=e;return Un("span",{...d,className:s(Po,e.className),children:[_o(h,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:n,"aria-label":i}),_o(h,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:n,"aria-label":r})]})};le.states=Bn;le.options=zn;le.className=Po;le.defaultOptions=Tt;le.moduleName=null;le.folderName=null;var Ho="numeric-textbox",Do="numerictextbox";import{Fragment as Bo,jsx as oe,jsxs as Ot}from"react/jsx-runtime";var zo="k-numerictextbox",Fn=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Vn={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]},at={showSpinButton:!0,showClearButton:!0,separators:!0},de=e=>{let{size:t,rounded:o,fillMode:n,separators:i=at.separators,showClearButton:r=at.showClearButton,showSpinButton:d=at.showSpinButton,prefix:c,suffix:m,value:f,placeholder:x,hover:N,focus:v,valid:S,invalid:O,required:E,loading:I,disabled:g,readonly:K,id:ee,"aria-label":$,"aria-describedby":xe,...he}=e;return Ot(T,{...he,size:t,rounded:o,fillMode:n,hover:N,focus:v,valid:S,invalid:O,required:E,loading:I,disabled:g,readonly:K,className:s(e.className,zo),children:[c&&Ot(Bo,{children:[oe(se,{children:c}),i&&oe(te,{})]}),oe(W,{id:ee,placeholder:x,value:f,role:"spinbutton",disabled:g,"aria-label":$,"aria-describedby":xe,"aria-invalid":O?"true":void 0}),oe(F,{valid:S,invalid:O,loading:I,disabled:g}),oe(V,{loading:I,disabled:g}),r&&oe(q,{loading:I,disabled:g,readonly:K,value:f}),m&&Ot(Bo,{children:[i&&oe(te,{}),oe(re,{children:m})]}),d&&oe(le,{className:"k-input-spinner",size:t,fillMode:n,disabled:g})]})};de.states=Fn;de.options=Vn;de.className=zo;de.defaultOptions=at;de.moduleName=Ho;de.folderName=Do;de.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 Uo=de;var wt="popup",Fo=wt;import{jsx as Vo}from"react/jsx-runtime";var Go="k-animation-container",Gn=[],Xn={},Rt={positionMode:"absolute",shown:!0},j=e=>{let{positionMode:t=Rt.positionMode,shown:o=Rt.shown,animationStyle:n,offset:i,...r}=e;return Vo("div",{...r,style:{...i,...e.style},className:s(e.className,Go,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Vo("div",{className:"k-child-animation-container",style:n,children:e.children})})};j.states=Gn;j.options=Xn;j.className=Go;j.defaultOptions=Rt;j.moduleName=wt;j.folderName=Fo;var Kt="popup",Xo=Kt;import{jsx as $o}from"react/jsx-runtime";var qo="k-popup",$n=[],qn={},Wo={positionMode:"absolute"},ie=e=>{let{offset:t,positionMode:o=Wo.positionMode,animationStyle:n,containerClassName:i,containerRole:r,containerAriaLabel:d,...c}=e;return $o(j,{positionMode:o,offset:t,animationStyle:n,className:i,role:r,"aria-label":d,children:$o("div",{...c,className:s(e.className,qo),children:e.children})})};ie.states=$n;ie.options=qn;ie.className=qo;ie.defaultOptions=Wo;ie.moduleName=Kt;ie.folderName=Xo;ie.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 _t="action-buttons",Jo=_t;import{jsx as Yn}from"react/jsx-runtime";var st="k-actions",Wn=[],Jn={},Pt={alignment:"start",orientation:"horizontal"},ce=e=>{let{alignment:t=Pt.alignment,orientation:o=Pt.orientation,...n}=e;return Yn("div",{...n,className:s(st,{[`${st}-${t}`]:t,[`${st}-${o}`]:o},e.className),children:e.children})};ce.states=Wn;ce.options=Jn;ce.className=st;ce.defaultOptions=Pt;ce.moduleName=_t;ce.folderName=Jo;import{jsx as Zn}from"react/jsx-runtime";var Qn="k-actionsheet-footer",Yo={alignment:"stretched",orientation:"horizontal"},Ce=e=>{let{alignment:t=Yo.alignment,orientation:o=Yo.orientation,template:n,as:i=n?"div":ce,...r}=e;return Zn(i,{...r,...!n&&{alignment:t,orientation:o},className:s(e.className,Qn),children:e.children})};var Ht="searchbox",Qo=Ht;import{jsx as $e,jsxs as ta}from"react/jsx-runtime";var Zo="k-searchbox",jn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],ea={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]},Dt={showIcon:!0,icon:"search"},G=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=Dt.showIcon,icon:O=Dt.icon,"aria-label":E,...I}=e;return ta(T,{...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,Zo),children:[S&&$e(L,{className:"k-input-icon",icon:O}),$e(W,{placeholder:o,value:t,"aria-label":E}),$e(V,{...e}),$e(F,{...e}),$e(q,{...e})]})};G.states=jn;G.options=ea;G.className=Zo;G.defaultOptions=Dt;G.moduleName=Ht;G.folderName=Qo;import{jsx as fc}from"react/jsx-runtime";var Bt="textbox",jo=Bt;import{Fragment as ei,jsx as pe,jsxs as zt}from"react/jsx-runtime";var ti="k-textbox",oa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ia={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]},rt={showClearButton:!0,showValidationIcon:!0,separators:!0},_=e=>{let{size:t,rounded:o,fillMode:n,separators:i=rt.separators,showClearButton:r=rt.showClearButton,showValidationIcon:d=rt.showValidationIcon,prefix:c,suffix:m,type:f,value:x,placeholder:N,hover:v,focus:S,valid:O,invalid:E,required:I,loading:g,disabled:K,readonly:ee,id:$,"aria-label":xe,"aria-describedby":he,...De}=e;return zt(T,{...De,size:t,rounded:o,fillMode:n,hover:v,focus:S,valid:O,invalid:E,required:I,loading:g,disabled:K,readonly:ee,className:s(e.className,ti),children:[c&&zt(ei,{children:[pe(se,{children:c}),i&&pe(te,{})]}),pe(W,{id:$,placeholder:N,value:x,type:f,disabled:K,"aria-label":xe,"aria-describedby":he,"aria-invalid":E?"true":void 0}),d&&pe(F,{valid:O,invalid:E,loading:g,disabled:K}),pe(V,{loading:g,disabled:K}),r&&pe(q,{loading:g,disabled:K,readonly:ee,value:x}),m&&zt(ei,{children:[i&&pe(te,{}),pe(re,{children:m})]})]})};_.states=oa;_.options=ia;_.className=ti;_.defaultOptions=rt;_.moduleName=Bt;_.folderName=jo;_.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 qe=_;import{jsx as na}from"react/jsx-runtime";var oi=e=>na(qe,{...e});import{Fragment as wc,jsx as Oc}from"react/jsx-runtime";import{Fragment as Dc,jsx as Hc}from"react/jsx-runtime";import{jsx as Fc}from"react/jsx-runtime";import{jsx as Ut}from"react/jsx-runtime";var aa=_.states,sa=_.defaultOptions,ra=_.options,la=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],da=[],Me=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t?.[i]?Ut(L,{icon:"lock"}):void 0;break;case"suffix":n.suffix=t?.[i]?Ut(Ne,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":n.showClearButton=t?.[i];break;default:break}}),Ut(oi,{value:"Value",style:{width:300},...o,...n})};Me.options=ra;Me.states=aa;Me.variants=da;Me.defaultOptions=sa;Me.modifiers=la;Me.className=_.className;import{jsx as me,jsxs as Ft}from"react/jsx-runtime";var ii="k-actionsheet-titlebar",ca={},J=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 Ft("div",{...v,className:s(e.className,ii),children:[Ft("div",{className:"k-actionsheet-titlebar-group",children:[n&&me("div",{className:"k-actionsheet-actions",children:n}),!N&&Ft("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(G,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};J.className=ii;J.defaultOptions=ca;import{jsx as Vt,jsxs as fa}from"react/jsx-runtime";var Gt="k-actionsheet-view",pa=[],ma={},ua={},Ee=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:r,titleId:d,...c}=e,m=i?.type===J&&Vt(J,{adaptive:t,titleId:d,...i?.props}),f=r?.type===Ce&&Vt(Ce,{...r?.props});return fa("div",{...c,className:s(e.className,Gt,{[`${Gt}-animated`]:o}),children:[m,Vt("div",{className:"k-actionsheet-content",children:n}),f]})};Ee.states=pa;Ee.options=ma;Ee.className=Gt;Ee.defaultOptions=ua;var We="action-sheet",lt=We;var Xt="overlay",ni=Xt;import{jsx as Na}from"react/jsx-runtime";var ai="k-overlay",ba=[],xa={},ha={},ue=e=>{let{...t}=e;return Na("div",{...t,className:s(e.className,ai),children:e.children})};ue.states=ba;ue.options=xa;ue.className=ai;ue.defaultOptions=ha;ue.moduleName=Xt;ue.folderName=ni;import{jsx as dt,jsxs as Ia}from"react/jsx-runtime";var si="k-actionsheet",La=[],va={},Je={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},w=e=>{let{side:t=Je.side,fullscreen:o=Je.fullscreen,adaptive:n=Je.adaptive,overlay:i=Je.overlay,template:r,children:d,header:c,footer:m,id:f,...x}=e,N=f&&!r&&c?`${f}-title`:void 0;return Ia("div",{className:"k-actionsheet-container",children:[i&&dt(ue,{}),dt(j,{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:dt("div",{...x,id:f,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":N,className:s(e.className,si,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:r||dt(Ee,{header:c,footer:m,adaptive:n,titleId:N,...e,children:d})})})]})};w.states=La;w.options=va;w.className=si;w.defaultOptions=Je;w.moduleName=We;w.folderName=lt;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 Aa}from"react/jsx-runtime";var ri="k-actionsheet-container",ga=[],ka={},Sa={},ye=e=>{let{children:t,...o}=e;return Aa("div",{...o,className:ri,children:t})};ye.states=ga;ye.options=ka;ye.className=ri;ye.defaultOptions=Sa;ye.moduleName=We;ye.folderName=lt;import{jsx as Ca}from"react/jsx-runtime";var $t=e=>{let{...t}=e;return Ca("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};import{Fragment as Ea,jsx as Ye,jsxs as qt}from"react/jsx-runtime";var Wt="k-actionsheet-item",Ma=[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 qt("span",{...m,className:s(e.className,Wt,y(Wt,{hover:i,focus:r,selected:d,disabled:c})),children:[!e.children&&Ye(Ea,{children:qt("span",{className:"k-actionsheet-action",children:[t&&Ye("span",{className:"k-icon-wrap",children:Ye(L,{className:"k-actionsheet-item-icon",icon:t})}),qt("span",{className:"k-actionsheet-item-text",children:[o&&Ye("span",{className:"k-actionsheet-item-title",children:o}),n&&Ye("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};fe.states=Ma;fe.className=Wt;import{jsx as Up,jsxs as Fp}from"react/jsx-runtime";import{jsx as $p}from"react/jsx-runtime";import{jsx as Yp}from"react/jsx-runtime";import{jsx as em}from"react/jsx-runtime";import{jsx as R,jsxs as Jt}from"react/jsx-runtime";var ya=w.options,Ta=w.states,di={...w.defaultOptions,variant:"normal"},Oa=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],wa=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Te=e=>{let{variant:t,modifiers:o,...n}={...di,...e},i={},r=Jt($t,{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(J,{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?Jt(Ce,{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(J,{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?Jt(Ce,{alignment:"stretched",children:[R(h,{text:"Apply",themeColor:"primary"}),R(h,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Te.options=ya;Te.states=Ta;Te.variants=Oa;Te.defaultOptions=di;Te.modifiers=wa;Te.className=w.className;import Zt from"react";import{jsx as ci}from"react/jsx-runtime";var Ra="k-list-group-sticky-header",Yt=e=>ci("div",{className:s(Ra,e.className),children:ci("div",{className:"k-list-header-text",children:e.children})});import{jsx as _a}from"react/jsx-runtime";var Ka="k-no-data",Qt=e=>{let{live:t,...o}=e;return _a("span",{...o,className:s(Ka,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Le="list",Oe=Le;import{jsx as pi,jsxs as mi}from"react/jsx-runtime";var jt="k-list",Pa=[],Ha={size:[l.undefined,l.small,l.medium,l.large]},Da={},M=e=>{let{size:t,virtualization:o,children:n,header:i,selectAll:r,optionLabel:d,customValue:c,noData:m,screenReaders:f,...x}=e,v=Zt.Children.toArray(n)[0],S=v?.props?.children?Zt.Children.count(v.props.children):Zt.Children.count(n);return mi("div",{...x,className:s(e.className,jt,A(jt,{size:t}),{"k-virtual-list":o}),children:[d,r,c,i&&pi(Yt,{children:i}),n||(m!==void 0?m:pi(Qt,{live:!0,children:"No data found."})),f&&n&&mi(Qt,{className:"k-sr-only",live:!0,children:[S," items found."]})]})};M.states=Pa;M.options=Ha;M.className=jt;M.defaultOptions=Da;M.moduleName=Le;M.folderName=Oe;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 Fa}from"react/jsx-runtime";var ui="k-list-container",Ba=[],za={},Ua={},we=e=>{let{...t}=e;return Fa("div",{...t,className:s(e.className,ui),children:e.children})};we.states=Ba;we.options=za;we.className=ui;we.defaultOptions=Ua;we.moduleName=Le;we.folderName=Oe;var ve="checkbox",Re=ve;import{jsx as fi}from"react/jsx-runtime";var ct="k-checkbox",Va=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Ga={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},Xa={},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 fi("span",{className:"k-checkbox-wrap",role:v,children:fi("input",{...S,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:s(e.className,ct,A(ct,{size:x,rounded:N}),y(ct,{hover:i,focus:r,disabled:d,invalid:c,valid:m,indeterminate:n,checked:o}))})})};U.states=Va;U.options=Ga;U.className=ct;U.defaultOptions=Xa;U.moduleName=ve;U.folderName=Re;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 Y=U;import{jsx as Wa}from"react/jsx-runtime";var bi="k-checkbox-list",$a=[],qa={},xi={layout:"vertical"},P=e=>{let{layout:t=xi.layout,...o}=e;return Wa("ul",{...o,className:s(e.className,bi,{[`k-list-${t}`]:t}),children:e.children})};P.states=$a;P.options=qa;P.className=bi;P.defaultOptions=xi;P.moduleName=ve;P.folderName=Re;import{jsx as Za}from"react/jsx-runtime";var hi="k-checkbox-list-item",Ja=[],Ya={},Qa={},H=e=>{let{...t}=e;return Za("li",{...t,className:s(e.className,hi),children:e.children})};H.states=Ja;H.options=Ya;H.className=hi;H.defaultOptions=Qa;H.moduleName=ve;H.folderName=Re;import{Fragment as ja,jsx as Ni,jsxs as es}from"react/jsx-runtime";var ne=({children:e="Label",id:t="cb-label-after",...o})=>es(ja,{children:[Ni(Y,{id:t,...o}),Ni("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as du,jsx as lu,jsxs as cu}from"react/jsx-runtime";import{Fragment as bu,jsx as fu,jsxs as xu}from"react/jsx-runtime";import{Fragment as Iu,jsx as vu,jsxs as gu}from"react/jsx-runtime";import{jsx as Cu}from"react/jsx-runtime";import{jsx as Tu}from"react/jsx-runtime";import{jsx as Ku}from"react/jsx-runtime";import{jsx as X,jsxs as Li}from"react/jsx-runtime";var ts=P.options,os=P.states,is={...P.defaultOptions,variant:"vertical"},ns=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],as=[],Ke=e=>{let{variant:t,...o}=e;return t==="horizontal"?Li(P,{layout:"horizontal",...o,children:[X(H,{children:X(ne,{id:C("cb"),defaultChecked:!0,children:"Label"})}),X(H,{children:X(ne,{id:C("cb"),children:"Label"})}),X(H,{children:X(ne,{id:C("cb"),children:"Label"})})]}):Li(P,{...o,children:[X(H,{children:X(ne,{id:C("cb"),defaultChecked:!0,children:"Label"})}),X(H,{children:X(ne,{id:C("cb"),children:"Label"})}),X(H,{children:X(ne,{id:C("cb"),children:"Label"})})]})};Ke.options=ts;Ke.states=os;Ke.variants=ns;Ke.defaultOptions=is;Ke.modifiers=as;Ke.className=P.className;import{jsx as ps}from"react/jsx-runtime";var ss=Y.options,rs=Y.states,ls=Y.defaultOptions,ds=[],cs=[],_e=e=>ps(ne,{id:C("checkbox"),...e,defaultChecked:!0,children:"Label"});_e.options=ss;_e.states=rs;_e.variants=ds;_e.defaultOptions=ls;_e.modifiers=cs;_e.className=Y.className;import{jsx as Ie,jsxs as bs}from"react/jsx-runtime";var eo="k-list-item",ms=[a.hover,a.focus,a.selected,a.disabled],us={},fs={},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,...E}=e,I=t||e.children;return bs("li",{...E,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":eo,y(eo,{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=ms;k.options=us;k.className=eo;k.defaultOptions=fs;k.moduleName=Le;k.folderName=Oe;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 hs}from"react/jsx-runtime";var xs="k-list-ul",ge=e=>{let{children:t,role:o,id:n,...i}=e;return hs("ul",{...i,id:n,role:o,className:s(xs,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 to,jsxs as Ls}from"react/jsx-runtime";var Ns="k-list-content",D=e=>{let{virtualization:t,grouping:o,"aria-label":n,"aria-labelledby":i,listboxId:r,...d}=e;return Ls("div",{...d,className:s(Ns,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:to(ge,{role:"listbox",id:r,"aria-label":n,"aria-labelledby":i,children:e.children}),t&&to("div",{className:"k-height-container",children:to("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 oo,jsxs as ks}from"react/jsx-runtime";var pt="k-list-sticky-header",vs=[a.hover,a.focus,a.selected],Is={},gs={},mt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:n,indeterminate:i,hover:r,focus:d,selected:c,...m}=e;return oo("div",{...m,className:s(pt,e.className),children:ks("div",{className:s(`${pt}-item`,y(`${pt}-item`,{hover:r,focus:d,selected:c})),children:[o&&oo(U,{checked:n,indeterminate:i,"aria-label":t}),oo("span",{className:"k-list-item-text",children:t})]})})};mt.states=vs;mt.options=Is;mt.className=pt;mt.defaultOptions=gs;import{Fragment as yf,jsx as Ef,jsxs as Tf}from"react/jsx-runtime";import{jsx as io,jsxs as As}from"react/jsx-runtime";var Ss="k-list-group-item",Qe=e=>{let{groupIconName:t,...o}=e;return As("li",{...o,role:"presentation",className:s(Ss,e.className),children:[t&&io("span",{className:"k-list-item-icon-wrapper",children:io(L,{icon:t,className:"k-list-item-icon"})}),io("span",{className:"k-list-item-text",children:e.children})]})};Qe.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 ys}from"react/jsx-runtime";var no="k-list-optionlabel",Cs=[a.hover,a.focus,a.selected,a.disabled],Ms={},Es={},ut=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:r,...d}=e;return ys("div",{...d,className:s(no,y(no,{hover:o,focus:n,selected:i,disabled:r})),children:t})};ut.states=Cs;ut.options=Ms;ut.className=no;ut.defaultOptions=Es;import{jsx as Rs}from"react/jsx-runtime";var ao="k-list-custom-value",Ts=[a.hover,a.focus,a.selected,a.disabled],Os={},ws={},ft=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:r,...d}=e;return Rs("div",{...d,className:s(ao,y(ao,{hover:o,focus:n,selected:i,disabled:r})),children:t})};ft.states=Ts;ft.options=Os;ft.className=ao;ft.defaultOptions=ws;import{Fragment as $f,jsx as Xf,jsxs as qf}from"react/jsx-runtime";import{Fragment as jf,jsx as Zf,jsxs as eb}from"react/jsx-runtime";import{Fragment as rb,jsx as ab,jsxs as sb}from"react/jsx-runtime";import{Fragment as fb,jsx as mb,jsxs as ub}from"react/jsx-runtime";import{jsx as Nb}from"react/jsx-runtime";import{Fragment as Sb,jsx as kb,jsxs as Ab}from"react/jsx-runtime";var vi="dropdown-list",Ii="dropdownlist";import{Fragment as Ps,jsx as B,jsxs as so}from"react/jsx-runtime";var gi="k-dropdownlist",Ks=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],_s={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]},ro={showValue:!0,arrowIconName:"chevron-down"},z=e=>{let{size:t,rounded:o,fillMode:n,arrowIconName:i=ro.arrowIconName,showValue:r=ro.showValue,valueIconName:d,prefix:c,suffix:m,value:f,placeholder:x,hover:N,focus:v,valid:S,invalid:O,required:E,loading:I,disabled:g,readonly:K,popup:ee,opened:$,adaptive:xe,adaptiveSettings:he,adaptiveTitle:De,adaptiveSubtitle:Si,adaptiveFilter:Ai,id:Be,activeDescendant:co,"aria-label":Ci,...Mi}=e,Ei=Be?`${Be}-listbox`:void 0,po=Be?`${Be}-value`:void 0;return so(Ps,{children:[so(ae,{...Mi,id:Be,size:t,rounded:o,fillMode:n,hover:N,focus:v,valid:S,invalid:O,required:E,loading:I,disabled:g,readonly:K,className:s(e.className,gi,{"k-icon-picker":!r&&d}),role:"combobox","aria-haspopup":"listbox","aria-expanded":$?"true":"false","aria-controls":$?Ei:void 0,"aria-activedescendant":$&&co?co:void 0,"aria-describedby":$?po:void 0,"aria-disabled":g?"true":void 0,"aria-label":Ci,tabIndex:0,children:[B(se,{children:c}),B(Ge,{placeholder:x,value:f,showValue:r,valueIconName:d,id:po}),B(F,{valid:S,invalid:O,loading:I,disabled:g}),B(V,{loading:I,disabled:g}),B(re,{children:m}),B(h,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":x||"Toggle dropdown",tabIndex:-1})]}),$&&ee&&B(ie,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:ee}),xe&&B(w,{adaptive:!0,...he,header:B(J,{actionsEnd:B(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:Ai,inputValue:f,inputPlaceholder:x,title:De,subtitle:Si}),children:B("div",{className:"k-list-container",children:B(M,{size:"large",children:so(D,{"aria-label":"Options",children:[B(k,{text:"List item"}),B(k,{text:"List item"}),B(k,{text:"List item"})]})})})})]})};z.states=Ks;z.options=_s;z.className=gi;z.defaultOptions=ro;z.moduleName=vi;z.folderName=Ii;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 ax}from"react/jsx-runtime";import{jsx as px,jsxs as mx}from"react/jsx-runtime";import{Fragment as Ix,jsx as Lx,jsxs as vx}from"react/jsx-runtime";import{jsx as Cx}from"react/jsx-runtime";import{jsx as wx,jsxs as Rx}from"react/jsx-runtime";import{Fragment as Fx,jsx as zx,jsxs as Ux}from"react/jsx-runtime";import{jsx as qx}from"react/jsx-runtime";import{Fragment as Fs,jsx as be,jsxs as ki}from"react/jsx-runtime";var Hs=z.states,Ds=z.defaultOptions,Bs=z.options,zs=[{name:"opened",title:"Opened"}],Us=[],He=e=>{let{modifiers:t,...o}=e,n={},i=ki(Fs,{children:[be("div",{className:"k-list-filter",children:be(G,{})}),be(M,{style:{width:300},size:o.size,children:ki(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})})};He.options=Bs;He.states=Hs;He.variants=Us;He.defaultOptions=Ds;He.modifiers=zs;He.className=z.className;import{Fragment as Vs,jsx as lo}from"react/jsx-runtime";var uh=e=>lo(Uo,{prefix:lo(Vs,{children:lo(z,{fillMode:"flat",value:"mm","aria-label":"Unit selector"})}),...e});export{uh as NumericTextboxPrefix};