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