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