UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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