UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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