UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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