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