UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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