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