UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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