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