@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 51.5 kB
JavaScript
import Ot from"react";var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...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)=>s({[`${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:p,selected:u,disabled:f,indeterminate:b,loading:N,empty:L,readonly:C,highlighted:H,...S}=t;return s({"k-valid":o,"k-invalid":i,"k-hover":n,"k-focus":r,"k-checked":c,"k-active":p,"k-selected":u,"k-disabled":f,"k-indeterminate":b&&!c,"k-loading":N,"k-empty":L,"k-readonly":C,"k-highlighted":H},Object.keys(S).reduce((y,E)=>(E.startsWith("k-")?y[E]=S[E]:y[`k-${E}`]=S[E],y),{}))};function yo(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"},d={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},h={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Q={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},m={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},a={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 Mt={};function g(e){return Mt[e]=(Mt[e]||0)+1,`k-${e}-${Mt[e]}`}import{jsx as Mo}from"react/jsx-runtime";var Fi="k-list-group-sticky-header",Et=e=>Mo("div",{className:s(Fi,e.className),children:Mo("div",{className:"k-list-header-text",children:e.children})});import{jsx as $i}from"react/jsx-runtime";var Gi="k-no-data",Tt=e=>{let{live:t,...o}=e;return $i("span",{...o,className:s(Gi,e.className),"aria-live":t?"polite":void 0,children:e.children})};var fe="list",ve=fe;import{jsx as Eo,jsxs as To}from"react/jsx-runtime";var Rt="k-list",Xi=[],qi={size:[l.undefined,l.small,l.medium,l.large]},Ji={},K=e=>{let{size:t,virtualization:o,children:i,header:n,selectAll:r,optionLabel:c,customValue:p,noData:u,screenReaders:f,...b}=e,L=Ot.Children.toArray(i)[0],C=L?.props?.children?Ot.Children.count(L.props.children):Ot.Children.count(i);return To("div",{...b,className:s(e.className,Rt,A(Rt,{size:t}),{"k-virtual-list":o}),children:[c,r,p,n&&Eo(Et,{children:n}),i||(u!==void 0?u:Eo(Tt,{live:!0,children:"No data found."})),f&&i&&To(Tt,{className:"k-sr-only",live:!0,children:[C," items found."]})]})};K.states=Xi;K.options=qi;K.className=Rt;K.defaultOptions=Ji;K.moduleName=fe;K.folderName=ve;K.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as Zi}from"react/jsx-runtime";var Oo="k-list-container",Wi=[],Yi={},Qi={},Le=e=>{let{...t}=e;return Zi("div",{...t,className:s(e.className,Oo),children:e.children})};Le.states=Wi;Le.options=Yi;Le.className=Oo;Le.defaultOptions=Qi;Le.moduleName=fe;Le.folderName=ve;var he="checkbox",Ae=he;import{jsx as Ro}from"react/jsx-runtime";var rt="k-checkbox",ji=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],en={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full]},tn={},U=e=>{let{id:t,checked:o,indeterminate:i,hover:n,focus:r,disabled:c,invalid:p,valid:u,required:f,size:b,rounded:N,wrapperRole:L,...C}=e;return Ro("span",{className:"k-checkbox-wrap",role:L,children:Ro("input",{...C,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:c||void 0,"aria-invalid":p?"true":void 0,className:s(e.className,rt,A(rt,{size:b,rounded:N}),M(rt,{hover:n,focus:r,disabled:c,invalid:p,valid:u,indeterminate:i,checked:o}))})})};U.states=ji;U.options=en;U.className=rt;U.defaultOptions=tn;U.moduleName=he;U.folderName=Ae;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 $=U;import{jsx as an}from"react/jsx-runtime";var Ko="k-checkbox-list",on=[],nn={},_o={layout:"vertical"},w=e=>{let{layout:t=_o.layout,...o}=e;return an("ul",{...o,className:s(e.className,Ko,{[`k-list-${t}`]:t}),children:e.children})};w.states=on;w.options=nn;w.className=Ko;w.defaultOptions=_o;w.moduleName=he;w.folderName=Ae;import{jsx as cn}from"react/jsx-runtime";var Po="k-checkbox-list-item",sn=[],rn={},ln={},D=e=>{let{...t}=e;return cn("li",{...t,className:s(e.className,Po),children:e.children})};D.states=sn;D.options=rn;D.className=Po;D.defaultOptions=ln;D.moduleName=he;D.folderName=Ae;import{Fragment as pn,jsx as Ho,jsxs as dn}from"react/jsx-runtime";var te=({children:e="Label",id:t="cb-label-after",...o})=>dn(pn,{children:[Ho($,{id:t,...o}),Ho("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as hl,jsx as fl,jsxs as bl}from"react/jsx-runtime";import{Fragment as Al,jsx as Ll,jsxs as Cl}from"react/jsx-runtime";import{Fragment as yl,jsx as Sl,jsxs as Ml}from"react/jsx-runtime";import{jsx as Rl}from"react/jsx-runtime";import{jsx as Hl}from"react/jsx-runtime";import{jsx as Bl}from"react/jsx-runtime";import{jsx as F,jsxs as wo}from"react/jsx-runtime";var mn=w.options,un=w.states,fn={...w.defaultOptions,variant:"vertical"},hn=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],bn=[],Ce=e=>{let{variant:t,...o}=e;return t==="horizontal"?wo(w,{layout:"horizontal",...o,children:[F(D,{children:F(te,{id:g("cb"),defaultChecked:!0,children:"Label"})}),F(D,{children:F(te,{id:g("cb"),children:"Label"})}),F(D,{children:F(te,{id:g("cb"),children:"Label"})})]}):wo(w,{...o,children:[F(D,{children:F(te,{id:g("cb"),defaultChecked:!0,children:"Label"})}),F(D,{children:F(te,{id:g("cb"),children:"Label"})}),F(D,{children:F(te,{id:g("cb"),children:"Label"})})]})};Ce.options=mn;Ce.states=un;Ce.variants=hn;Ce.defaultOptions=fn;Ce.modifiers=bn;Ce.className=w.className;import{jsx as Cn}from"react/jsx-runtime";var xn=$.options,Nn=$.states,vn=$.defaultOptions,Ln=[],An=[],ge=e=>Cn(te,{id:g("checkbox"),...e,defaultChecked:!0,children:"Label"});ge.options=xn;ge.states=Nn;ge.variants=Ln;ge.defaultOptions=vn;ge.modifiers=An;ge.className=$.className;import{Fragment as Sn,jsx as Do}from"react/jsx-runtime";var Kt="k-font-icon",gn=[],kn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info]},In={},Xe=e=>{let{size:t,themeColor:o,icon:i,rotate:n,flip:r,...c}=e;return i?Do("span",{...c,className:s(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"}):Do(Sn,{})};Xe.states=gn;Xe.options=kn;Xe.className=Kt;Xe.defaultOptions=In;var zo=Xe;import{Fragment as En,jsx as lt}from"react/jsx-runtime";var _t="k-svg-icon",yn=[],Mn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info],variant:[Q.outline,Q.solid,Q.duotone]},Pt={viewBox:"0 0 24 24",variant:Q.outline},qe=e=>{let{size:t,themeColor:o,rotate:i,flip:n,viewBox:r=Pt.viewBox,variant:c=Pt.variant,icon:p,...u}=e;if(!p)return lt(En,{});if(p==="none")return lt("span",{...u,className:s(e.className,_t,A("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof p=="object"&&p.name&&p.name,b=typeof p=="object"?c&&p.variants?.[c]||p.variants?.outline||p.content:void 0;return lt("span",{...u,className:s(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:lt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:r,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:p?void 0:e.children})})};qe.states=yn;qe.options=Mn;qe.className=_t;qe.defaultOptions=Pt;var Ht=qe;import*as wt from"@progress/kendo-svg-icons";var Bo="icon",Uo="icons";import{useContext as On}from"react";import{createContext as Tn}from"react";var Vo=Tn({iconsType:"svg"});import{Fragment as Fo,jsx as Je}from"react/jsx-runtime";var ct="k-icon",Rn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Kn=[],_n={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info],variant:[Q.outline,Q.solid,Q.duotone]},pt={viewBox:"0 0 24 24",type:"svg",variant:Q.outline},x=e=>{let{iconsType:t}=On(Vo),{size:o,themeColor:i,icon:n,type:r=t||pt.type,rotate:c,flip:p,viewBox:u=pt.viewBox,variant:f=pt.variant,...b}=e;if(!n)return Je(Fo,{});if((t||r)==="svg"){if(n==="none")return Je(Ht,{...b,className:s(e.className,ct),icon:n,size:o,variant:f});let L=wt[n]?n:Rn(`${n}-icon`);return wt[L]?Je(Ht,{...b,className:s(e.className,ct),icon:wt[L],size:o,themeColor:i,rotate:c,flip:p,viewBox:u,variant:f}):Je(Fo,{})}return Je(zo,{...b,className:s(e.className,ct),icon:n,size:o,themeColor:i,rotate:c,flip:p})};x.states=Kn;x.options=_n;x.defaultOptions=pt;x.className=ct;x.moduleName=Bo;x.folderName=Uo;x.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{jsx as be,jsxs as Dn}from"react/jsx-runtime";var Dt="k-list-item",Pn=[a.hover,a.focus,a.selected,a.disabled],Hn={},wn={},k=e=>{let{text:t,groupLabel:o,group:i,iconName:n,iconClassName:r,showCheckbox:c,checked:p,hover:u,focus:f,selected:b,disabled:N,actions:L,description:C,id:H,...S}=e,y=t||e.children;return Dn("li",{...S,id:H,role:i?"presentation":"option",tabIndex:i?void 0:f?0:-1,"aria-selected":!i&&b?"true":i?void 0:"false","aria-disabled":!i&&N?"true":void 0,className:s(e.className,i?"k-list-group-item":Dt,M(Dt,{hover:u,focus:f,disabled:N,selected:b})),children:[c&&be(U,{checked:p}),n&&be("span",{className:"k-list-item-icon-wrapper",children:be(x,{icon:n,className:s("k-list-item-icon",r)})}),be("span",{className:"k-list-item-text",children:y}),L&&be("div",{className:"k-list-item-actions",children:L}),C&&be("span",{className:"k-list-item-description",children:C}),o&&o!==""&&be("div",{className:"k-list-item-group-label",children:o})]})};k.states=Pn;k.options=Hn;k.className=Dt;k.defaultOptions=wn;k.moduleName=fe;k.folderName=ve;k.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as Bn}from"react/jsx-runtime";var zn="k-list-ul",We=e=>{let{children:t,role:o,id:i,...n}=e;return Bn("ul",{...n,id:i,role:o,className:s(zn,e.className),children:t})};We.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};import{jsx as zt,jsxs as Vn}from"react/jsx-runtime";var Un="k-list-content",X=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":n,listboxId:r,...c}=e;return Vn("div",{...c,className:s(Un,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:zt(We,{role:"listbox",id:r,"aria-label":i,"aria-labelledby":n,children:e.children}),t&&zt("div",{className:"k-height-container",children:zt("div",{})})]})};X.ariaSpec={selector:".k-list-content",rules:[{selector:'.k-list-content[role="listbox"]',attribute:"role=listbox",usage:"For grouped lists, the list content container has the listbox role."},{selector:'.k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."}]};import{jsx as Bt,jsxs as Xn}from"react/jsx-runtime";var dt="k-list-sticky-header",Fn=[a.hover,a.focus,a.selected],Gn={},$n={},mt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:n,hover:r,focus:c,selected:p,...u}=e;return Bt("div",{...u,className:s(dt,e.className),children:Xn("div",{className:s(`${dt}-item`,M(`${dt}-item`,{hover:r,focus:c,selected:p})),children:[o&&Bt(U,{checked:i,indeterminate:n,"aria-label":t}),Bt("span",{className:"k-list-item-text",children:t})]})})};mt.states=Fn;mt.options=Gn;mt.className=dt;mt.defaultOptions=$n;import{Fragment as tp,jsx as ep,jsxs as op}from"react/jsx-runtime";import{jsx as Ut,jsxs as Jn}from"react/jsx-runtime";var qn="k-list-group-item",Vt=e=>{let{groupIconName:t,...o}=e;return Jn("li",{...o,role:"presentation",className:s(qn,e.className),children:[t&&Ut("span",{className:"k-list-item-icon-wrapper",children:Ut(x,{icon:t,className:"k-list-item-icon"})}),Ut("span",{className:"k-list-item-text",children:e.children})]})};Vt.ariaSpec={selector:".k-list-group-item",rules:[{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-group-item",attribute:"id (when referenced)",usage:"ID for aria-labelledby on the parent group UL."}]};import{jsx as Zn}from"react/jsx-runtime";var Ft="k-list-optionlabel",Wn=[a.hover,a.focus,a.selected,a.disabled],Yn={},Qn={},ut=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...c}=e;return Zn("div",{...c,className:s(Ft,M(Ft,{hover:o,focus:i,selected:n,disabled:r})),children:t})};ut.states=Wn;ut.options=Yn;ut.className=Ft;ut.defaultOptions=Qn;import{jsx as oa}from"react/jsx-runtime";var Gt="k-list-custom-value",jn=[a.hover,a.focus,a.selected,a.disabled],ea={},ta={},ke=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...c}=e;return oa("div",{...c,className:s(Gt,M(Gt,{hover:o,focus:i,selected:n,disabled:r})),children:t})};ke.states=jn;ke.options=ea;ke.className=Gt;ke.defaultOptions=ta;import{Fragment as Np,jsx as xp,jsxs as vp}from"react/jsx-runtime";import{Fragment as Ip,jsx as kp,jsxs as Sp}from"react/jsx-runtime";import{Fragment as Kp,jsx as Op,jsxs as Rp}from"react/jsx-runtime";import{Fragment as Bp,jsx as Dp,jsxs as zp}from"react/jsx-runtime";import{jsx as Gp}from"react/jsx-runtime";import{Fragment as Yp,jsx as Wp,jsxs as Qp}from"react/jsx-runtime";var Ye="input",ft=Ye;import{jsx as sa}from"react/jsx-runtime";var ht="k-input",ia=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],na={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},aa={},T=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:c,readonly:p,size:u,rounded:f,fillMode:b,...N}=e;return sa("span",{...N,className:s(e.className,ht,A(ht,{size:u,rounded:f,fillMode:b}),M(ht,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:c,readonly:p}))})};T.states=ia;T.options=na;T.className=ht;T.defaultOptions=aa;T.moduleName=Ye;T.folderName=ft;import{jsx as pa}from"react/jsx-runtime";var bt="k-picker",ra=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],la={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},ca={},Ie=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:c,readonly:p,size:u,rounded:f,fillMode:b,...N}=e;return pa("span",{...N,className:s(e.className,bt,A(bt,{size:u,rounded:f,fillMode:b}),M(bt,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:c,readonly:p})),children:e.children})};Ie.states=ra;Ie.options=la;Ie.className=bt;Ie.defaultOptions=ca;Ie.moduleName=Ye;Ie.folderName=ft;import{Fragment as ua,jsx as $t}from"react/jsx-runtime";var Go="k-clear-value",da=[a.disabled,a.loading,a.readonly],ma={},q=e=>{let{disabled:t,loading:o,readonly:i,value:n}=e;return t||i||o||!n?$t(ua,{}):$t("span",{className:s(e.className,Go),children:$t(x,{icon:"x"})})};q.states=da;q.options=ma;q.className=Go;import{jsx as ba}from"react/jsx-runtime";var Xt="k-input-inner",fa=[],ha={},xt={type:"text",autocomplete:"off",value:"",placeholder:""},J=e=>{let{value:t=xt.value,type:o=xt.type,placeholder:i=xt.placeholder,autocomplete:n=xt.autocomplete,disabled:r,readOnly:c,...p}=e;return ba("input",{...p,type:o,className:s(e.className,Xt,A(Xt,e)),placeholder:i,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:c||void 0})};J.states=fa;J.options=ha;J.className=Xt;import{jsx as $o,jsxs as va}from"react/jsx-runtime";var qt="k-input-inner",xa=[],Na={},Jt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:n,valueIconName:r,...c}=e;return va("span",{...c,className:s(e.className,qt,A(qt,e)),children:[n,!n&&r&&$o(x,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&$o("span",{className:"k-input-value-text",children:t})]})};Jt.states=xa;Jt.options=Na;Jt.className=qt;import{jsx as Ca}from"react/jsx-runtime";var Wt="k-input-inner",La=[],Aa={},Xo={value:"",placeholder:""},Yt=e=>{let{value:t=Xo.value,placeholder:o=Xo.placeholder,rows:i,disabled:n,...r}=e;return Ca("textarea",{...r,className:s(e.className,Wt,A(Wt,e)),placeholder:o,rows:i,defaultValue:t,disabled:n||void 0})};Yt.states=La;Yt.options=Aa;Yt.className=Wt;import{Fragment as ka,jsx as qo}from"react/jsx-runtime";var Jo="k-input-loading-icon",ga=[a.disabled,a.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?qo(ka,{}):qo("span",{className:s(e.className,Jo,"k-icon k-i-loading")})};Z.states=ga;Z.className=Jo;import{Fragment as ya,jsx as Wo}from"react/jsx-runtime";var Yo="k-input-validation-icon",Ia=[a.valid,a.invalid,a.disabled,a.loading],Sa={},W=e=>{let{valid:t,invalid:o,disabled:i,loading:n}=e,r=o?"warning-circle":"check-circle";return i||n||!!!(t||o)?Wo(ya,{}):Wo(x,{className:s(Yo),icon:r})};W.states=Ia;W.options=Sa;W.className=Yo;import{Fragment as Ta,jsx as Qo}from"react/jsx-runtime";var Ma="k-input-prefix",Ea={direction:"horizontal"},Se=e=>{let{direction:t=Ea.direction,...o}=e;return e.children?Qo("span",{...o,className:s(Ma,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Qo(Ta,{})};import{Fragment as Ka,jsx as Zo}from"react/jsx-runtime";var Oa="k-input-suffix",Ra={direction:"horizontal"},ye=e=>{let{direction:t=Ra.direction,...o}=e;return e.children?Zo("span",{...o,className:s(Oa,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Zo(Ka,{})};import{jsx as tm}from"react/jsx-runtime";import{jsx as am}from"react/jsx-runtime";import{jsx as Pa}from"react/jsx-runtime";var jo="k-input-separator",_a={direction:"vertical"},oe=e=>{let{direction:t=_a.direction,...o}=e;return Pa("span",{...o,className:s(jo,e.className,{[`${jo}-${t}`]:t})})};var Qt="button",ei=Qt;import{Fragment as ti,jsx as Me,jsxs as oi}from"react/jsx-runtime";var Qe="k-button",Ha=["icon-button"],wa=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],Da={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.inverse]},Zt={showArrow:!1,arrowIconName:"chevron-down"},v=e=>{let{as:t="button",size:o,rounded:i,fillMode:n,themeColor:r,showArrow:c=Zt.showArrow,arrowIconName:p=Zt.arrowIconName,variant:u,hover:f,focus:b,active:N,selected:L,disabled:C,togglable:H,ariaDisabled:S,icon:y,iconSize:E,text:R,iconClassName:ae,className:se,...Fe}=e,Ge=y!=null,$e=e.children!==void 0;return oi(t,{className:s(se,Qe,yo(Qe,u),A(Qe,{size:o,rounded:i,fillMode:n,themeColor:r}),M(Qe,{hover:f,focus:b,active:N,disabled:C||S,selected:L}),{"k-icon-button":!R&&!$e&&Ge}),"aria-pressed":H?L?"true":"false":void 0,...Fe,"aria-disabled":S?"true":void 0,disabled:C||void 0,children:[typeof y=="string"&&y&&Me(x,{className:s(ae,"k-button-icon"),icon:y,size:E}),y&&typeof y!="string"&&Me(ti,{children:y}),R?oi(ti,{children:[R&&Me("span",{className:"k-button-text",children:R}),e.children]}):e.children&&Me("span",{className:"k-button-text",children:e.children}),c&&Me("span",{className:"k-menu-button-arrow k-button-arrow",children:Me(x,{icon:p})})]})};v.states=wa;v.options=Da;v.variants=Ha;v.className=Qe;v.defaultOptions=Zt;v.moduleName=Qt;v.folderName=ei;v.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as za}from"react/jsx-runtime";var xe=e=>za(v,{children:"Button",...e});import{Fragment as ii,jsx as j,jsxs as jt}from"react/jsx-runtime";var Ba=T.states,Ua=T.defaultOptions,Va=T.options,Fa=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Ga=[],Ee=e=>{let{modifiers:t,valid:o,invalid:i,loading:n,disabled:r,readonly:c,...p}=e,u=t?.prefix,f=t?.suffix,b=t?.["clear-button"],N=t?.["validation-icon"],L=t?.separators;return jt(T,{...p,valid:o,invalid:i,loading:n,disabled:r,readonly:c,style:{width:300},children:[u&&jt(ii,{children:[j(Se,{children:j(x,{icon:"lock"})}),L&&j(oe,{})]}),j(J,{placeholder:"Placeholder",value:"Value"}),N&&j(W,{valid:o,invalid:i,loading:n,disabled:r}),j(Z,{loading:n,disabled:r}),b&&j(q,{loading:n,disabled:r,readonly:c,value:"Value"}),f&&jt(ii,{children:[L&&j(oe,{}),j(ye,{children:j(xe,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};Ee.options=Va;Ee.states=Ba;Ee.variants=Ga;Ee.defaultOptions=Ua;Ee.modifiers=Fa;Ee.className=T.className;import{jsx as $a}from"react/jsx-runtime";var ni=e=>$a(v,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Xa}from"react/jsx-runtime";var ai=e=>Xa(v,{icon:"folder",children:"Button",...e});import{jsx as eo}from"react/jsx-runtime";var qa=v.options,Ja=v.states,Wa={...v.defaultOptions,variant:"text"},Ya=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Qa=[],Te=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return eo(ni,{...o,icon:"star"});case"icon-and-text":return eo(ai,{...o,icon:"star",children:"Button"});default:return eo(xe,{...o,children:"Button"})}};Te.options=qa;Te.states=Ja;Te.variants=Ya;Te.defaultOptions=Wa;Te.modifiers=Qa;Te.className=v.className;import{jsx as Nt}from"react/jsx-runtime";var Za="k-chip-action";var ie=e=>{let{type:t,...o}=e,i;switch(t){case"remove":i=Nt(x,{icon:"x-circle",size:"small"});break;case"more":i=Nt(x,{icon:"more-vertical",size:"small"});break;default:return Nt(x,{icon:t,size:"small"})}return Nt("span",{...o,className:s(e.className,Za,`k-chip-${t}-action`),children:i})};var to="avatar",si=to;import{jsx as ri}from"react/jsx-runtime";var Ze="k-avatar";var ja=[a.hover,a.focus,a.active,a.selected,a.disabled],es={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[m.undefined,m.base,m.primary,m.secondary,m.tertiary]},oo={type:"text",border:!1},z=e=>{let{size:t,rounded:o,fillMode:i,themeColor:n,type:r=oo.type,border:c=oo.border,...p}=e;return ri("div",{...p,className:s(e.className,Ze,A(Ze,{size:t,rounded:o,fillMode:i,themeColor:n}),{[`${Ze}-bordered`]:c}),children:ri("span",{className:`${Ze}-${r}`,children:e.children})})};z.states=ja;z.options=es;z.className=Ze;z.defaultOptions=oo;z.moduleName=to;z.folderName=si;z.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var Ne=z;import{jsx as ts}from"react/jsx-runtime";var li=e=>ts(Ne,{type:"icon",...e});import{jsx as os}from"react/jsx-runtime";var ci=e=>os(Ne,{type:"text",...e});import{jsx as is}from"react/jsx-runtime";var pi=e=>is(Ne,{type:"image",...e});import{jsx as Ku}from"react/jsx-runtime";import{jsx as je}from"react/jsx-runtime";var ns=z.options,as=z.states,ss={...z.defaultOptions,variant:"image"},rs=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],ls=[],Oe=e=>{let{variant:t,...o}=e;switch(t){case"icon":return je(li,{...o,children:je(x,{icon:"star"})});case"text":return je(ci,{...o,children:"JO"});default:return je(pi,{...o,children:je("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Oe.options=ns;Oe.states=as;Oe.variants=rs;Oe.defaultOptions=ss;Oe.modifiers=ls;Oe.className=z.className;var et="chip",vt=et,Lt="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as Re,jsxs as ds}from"react/jsx-runtime";var At="k-chip",cs=[a.hover,a.focus,a.active,a.selected,a.disabled],ps={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[m.undefined,m.base,m.success,m.warning,m.error,m.info]},di={avatarImage:"/packages/html/assets/avatar.jpg"},V=e=>{let{size:t,rounded:o,fillMode:i,themeColor:n,text:r,icon:c,actions:p,showAvatar:u,avatarImage:f=di.avatarImage,hover:b,focus:N,active:L,selected:C,disabled:H,...S}=e;return ds("div",{...S,className:s(e.className,At,A(At,{size:t,rounded:o,fillMode:i,themeColor:n}),M(At,{hover:b,focus:N,active:L,disabled:H,selected:C})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:C?"true":"false",...e.role==="option"&&C!==void 0&&{"aria-selected":C?"true":"false"},"aria-disabled":H?"true":void 0,children:[c&&Re(x,{className:"k-chip-icon",icon:c,size:"small"}),u&&Re(z,{className:"k-chip-avatar",type:"image",children:Re("img",{src:f,alt:""})}),Re("span",{className:"k-chip-content",children:e.children?e.children:r&&Re("span",{className:"k-chip-label",children:r})}),p&&Re("span",{className:"k-chip-actions",children:p})]})};V.states=cs;V.options=ps;V.className=At;V.defaultOptions=di;V.moduleName=et;V.folderName=vt;V.ariaSpec={selector:".k-chip",rules:[{selector:"*:not(.k-chip-list) > .k-chip",attribute:"role=button",usage:"Announces that the chip acts as a button when standalone."},{selector:"*:not(.k-chip-list) > .k-chip.k-selected",attribute:"aria-pressed=true",usage:"Announces that the Chip has been selected."},{selector:"*:not(.k-chip-list) > .k-chip:not(.k-selected)",attribute:"aria-pressed=false",usage:"Announces that the Chip has not been selected."},{selector:".k-chip",attribute:"aria-disabled=true (when disabled)",usage:"Announces that the Chip is disabled."}]};var G=V;import{jsx as hs}from"react/jsx-runtime";var io="k-chip-list",ms=[],us={size:[l.undefined,l.small,l.medium,l.large]},fs={},O=e=>{let{size:t,multiselectable:o,ariaLabel:i,...n}=e;return hs("div",{...n,className:s(e.className,io,A(io,{size:t})),role:e.role||"listbox","aria-label":e.role==="none"?void 0:i||"chip list","aria-orientation":e.role==="none"?void 0:"horizontal","aria-multiselectable":o?"true":void 0,children:e.children})};O.states=ms;O.options=us;O.className=io;O.defaultOptions=fs;O.moduleName=et;O.folderName=vt;O.ariaSpec={selector:".k-chip-list",rules:[{selector:".k-chip-list",attribute:"role=listbox",usage:"Announces the list role of the chip list."},{selector:".k-chip-list",attribute:"aria-label or aria-labelledby",usage:"Adds label to the ChipList element. ListBox element requires an accessible name."},{selector:".k-chip-list",attribute:"aria-orientation=horizontal",usage:"Specifies the horizontal orientation of the chiplist."},{selector:".k-chip-list",attribute:"aria-multiselectable=true (when multiple selection)",usage:"Announces the multiple selection ability of the chiplist."},{selector:".k-chip-list .k-chip",attribute:"role=option",usage:"Announces the chip is an option inner component of the chip list."},{selector:".k-chip-list .k-chip.k-selected",attribute:"aria-selected=true",usage:"Announces the chip is selected."},{selector:".k-chip-list .k-chip:not(.k-selected)",attribute:"aria-selected=false",usage:"Announces the chip is not selected."},{selector:".k-chip-list .k-chip:has(.k-i-x-circle), .k-chip-list .k-chip:has(.k-svg-i-x-circle)",attribute:"aria-keyshortcuts=Enter Delete",usage:"Announces the Delete action along with the default Enter key."}]};import{jsx as pf}from"react/jsx-runtime";import{jsx as ff}from"react/jsx-runtime";import{jsx as bs}from"react/jsx-runtime";var Ct=e=>bs(G,{text:"text",...e});import{jsx as Cf}from"react/jsx-runtime";import{jsx as Sf}from"react/jsx-runtime";import{Fragment as Rf,jsx as Of,jsxs as Kf}from"react/jsx-runtime";import{jsx as Df,jsxs as zf}from"react/jsx-runtime";import{jsx as Gf,jsxs as $f}from"react/jsx-runtime";import{jsx as Qf,jsxs as Zf}from"react/jsx-runtime";import{jsx as Ke,jsxs as Cs}from"react/jsx-runtime";var xs={...G.options,...O.options},Ns=[],vs=O.states,Ls={...G.defaultOptions,...O.defaultOptions},As=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],_e=e=>{let{modifiers:t,className:o,...i}=e,n=t?.icon,r=t?.actions,c=t?.avatar,p=c?Lt:void 0;return Cs(O,{size:i.size,className:o,children:[Ke(Ct,{...i,role:"option","aria-selected":"false","aria-pressed":void 0,icon:n?"star":void 0,actions:r?Ke(ie,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"}),Ke(Ct,{...i,role:"option","aria-selected":"false","aria-pressed":void 0,icon:n?"star":void 0,actions:r?Ke(ie,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"}),Ke(Ct,{...i,role:"option","aria-selected":"false","aria-pressed":void 0,icon:n?"star":void 0,actions:r?Ke(ie,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"})]})};_e.options=xs;_e.states=vs;_e.variants=Ns;_e.defaultOptions=Ls;_e.modifiers=As;_e.className=O.className;import{jsx as no}from"react/jsx-runtime";var gs=V.states,ks=V.defaultOptions,Is=V.options,Ss=[],ys=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],Pe=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(n=>{switch(n){case"icon":i.icon=t?.[n]?"arrow-down":void 0;break;case"avatar":i.showAvatar=!!t?.[n],i.avatarImage=t?.[n]?Lt:void 0;break;case"more-options":i.actions||(i.actions=[]),i.actions[0]=t?.[n]?no(ie,{type:"more"}):void 0;break;case"remove-icon":i.actions||(i.actions=[]),i.actions[1]=t?.[n]?no(ie,{type:"remove"}):void 0;break;default:break}}),no(V,{...o,...i,children:"Chip component"})};Pe.options=Is;Pe.states=gs;Pe.variants=Ss;Pe.defaultOptions=ks;Pe.modifiers=ys;Pe.className=V.className;var ao="popup",mi=ao;import{jsx as ui}from"react/jsx-runtime";var fi="k-animation-container",Ms=[],Es={},so={positionMode:"absolute",shown:!0},ee=e=>{let{positionMode:t=so.positionMode,shown:o=so.shown,animationStyle:i,offset:n,...r}=e;return ui("div",{...r,style:{...n,...e.style},className:s(e.className,fi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:ui("div",{className:"k-child-animation-container",style:i,children:e.children})})};ee.states=Ms;ee.options=Es;ee.className=fi;ee.defaultOptions=so;ee.moduleName=ao;ee.folderName=mi;var ro="popup",hi=ro;import{jsx as bi}from"react/jsx-runtime";var xi="k-popup",Ts=[],Os={},Ni={positionMode:"absolute"},ne=e=>{let{offset:t,positionMode:o=Ni.positionMode,animationStyle:i,containerClassName:n,containerRole:r,containerAriaLabel:c,...p}=e;return bi(ee,{positionMode:o,offset:t,animationStyle:i,className:n,role:r,"aria-label":c,children:bi("div",{...p,className:s(e.className,xi),children:e.children})})};ne.states=Ts;ne.options=Os;ne.className=xi;ne.defaultOptions=Ni;ne.moduleName=ro;ne.folderName=hi;ne.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 lo="action-buttons",vi=lo;import{jsx as _s}from"react/jsx-runtime";var gt="k-actions",Rs=[],Ks={},co={alignment:"start",orientation:"horizontal"},re=e=>{let{alignment:t=co.alignment,orientation:o=co.orientation,...i}=e;return _s("div",{...i,className:s(gt,{[`${gt}-${t}`]:t,[`${gt}-${o}`]:o},e.className),children:e.children})};re.states=Rs;re.options=Ks;re.className=gt;re.defaultOptions=co;re.moduleName=lo;re.folderName=vi;import{jsx as Hs}from"react/jsx-runtime";var Ps="k-actionsheet-footer",Li={alignment:"stretched",orientation:"horizontal"},He=e=>{let{alignment:t=Li.alignment,orientation:o=Li.orientation,template:i,as:n=i?"div":re,...r}=e;return Hs(n,{...r,...!i&&{alignment:t,orientation:o},className:s(e.className,Ps),children:e.children})};var po="searchbox",Ai=po;import{jsx as tt,jsxs as zs}from"react/jsx-runtime";var Ci="k-searchbox",ws=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Ds={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},mo={showIcon:!0,icon:"search"},le=e=>{let{value:t,placeholder:o,size:i,rounded:n,fillMode:r,hover:c,focus:p,valid:u,invalid:f,required:b,loading:N,disabled:L,showIcon:C=mo.showIcon,icon:H=mo.icon,"aria-label":S,...y}=e;return zs(T,{...y,size:i,rounded:n,fillMode:r,hover:c,focus:p,valid:u,invalid:f,required:b,loading:N,disabled:L,className:s(e.className,Ci),children:[C&&tt(x,{className:"k-input-icon",icon:H}),tt(J,{placeholder:o,value:t,"aria-label":S}),tt(Z,{...e}),tt(W,{...e}),tt(q,{...e})]})};le.states=ws;le.options=Ds;le.className=Ci;le.defaultOptions=mo;le.moduleName=po;le.folderName=Ai;import{jsx as mb}from"react/jsx-runtime";var uo="textbox",gi=uo;import{Fragment as ki,jsx as ce,jsxs as fo}from"react/jsx-runtime";var Ii="k-textbox",Bs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Us={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.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:p,suffix:u,type:f,value:b,placeholder:N,hover:L,focus:C,valid:H,invalid:S,required:y,loading:E,disabled:R,readonly:ae,id:se,"aria-label":Fe,"aria-describedby":Ge,...$e}=e;return fo(T,{...$e,size:t,rounded:o,fillMode:i,hover:L,focus:C,valid:H,invalid:S,required:y,loading:E,disabled:R,readonly:ae,className:s(e.className,Ii),children:[p&&fo(ki,{children:[ce(Se,{children:p}),n&&ce(oe,{})]}),ce(J,{id:se,placeholder:N,value:b,type:f,disabled:R,"aria-label":Fe,"aria-describedby":Ge,"aria-invalid":S?"true":void 0}),c&&ce(W,{valid:H,invalid:S,loading:E,disabled:R}),ce(Z,{loading:E,disabled:R}),r&&ce(q,{loading:E,disabled:R,readonly:ae,value:b}),u&&fo(ki,{children:[n&&ce(oe,{}),ce(ye,{children:u})]})]})};B.states=Bs;B.options=Us;B.className=Ii;B.defaultOptions=kt;B.moduleName=uo;B.folderName=gi;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 ot=B;import{jsx as Vs}from"react/jsx-runtime";var Si=e=>Vs(ot,{...e});import{Fragment as Tb,jsx as Eb}from"react/jsx-runtime";import{Fragment as Hb,jsx as Pb}from"react/jsx-runtime";import{jsx as Bb}from"react/jsx-runtime";import{jsx as ho}from"react/jsx-runtime";var Fs=B.states,Gs=B.defaultOptions,$s=B.options,Xs=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],qs=[],we=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":i.prefix=t?.[n]?ho(x,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t?.[n]?ho(xe,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t?.[n];break;default:break}}),ho(Si,{value:"Value",style:{width:300},...o,...i})};we.options=$s;we.states=Fs;we.variants=qs;we.defaultOptions=Gs;we.modifiers=Xs;we.className=B.className;import{jsx as pe,jsxs as bo}from"react/jsx-runtime";var yi="k-actionsheet-titlebar",Js={},Y=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:n,filter:r,input:c,inputValue:p,inputPlaceholder:u,adaptive:f,titleId:b,children:N,...L}=e;return bo("div",{...L,className:s(e.className,yi),children:[bo("div",{className:"k-actionsheet-titlebar-group",children:[i&&pe("div",{className:"k-actionsheet-actions",children:i}),!N&&bo("div",{className:"k-actionsheet-title",id:b,children:[t&&pe("div",{className:"k-text-center",children:t}),o&&pe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&pe("div",{className:"k-actionsheet-title",id:b,children:N}),n&&pe("div",{className:"k-actionsheet-actions",children:n})]}),(c||r)&&pe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?pe(B,{value:p,placeholder:u,size:f?"large":"medium","aria-label":t||u||"Input"}):pe(le,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};Y.className=yi;Y.defaultOptions=Js;import{jsx as xo,jsxs as Zs}from"react/jsx-runtime";var No="k-actionsheet-view",Ws=[],Ys={},Qs={},De=e=>{let{adaptive:t,animated:o,children:i,header:n,footer:r,titleId:c,...p}=e,u=n?.type===Y&&xo(Y,{adaptive:t,titleId:c,...n?.props}),f=r?.type===He&&xo(He,{...r?.props});return Zs("div",{...p,className:s(e.className,No,{[`${No}-animated`]:o}),children:[u,xo("div",{className:"k-actionsheet-content",children:i}),f]})};De.states=Ws;De.options=Ys;De.className=No;De.defaultOptions=Qs;var it="action-sheet",It=it;var vo="overlay",Mi=vo;import{jsx as or}from"react/jsx-runtime";var Ei="k-overlay",js=[],er={},tr={},de=e=>{let{...t}=e;return or("div",{...t,className:s(e.className,Ei),children:e.children})};de.states=js;de.options=er;de.className=Ei;de.defaultOptions=tr;de.moduleName=vo;de.folderName=Mi;import{jsx as St,jsxs as ar}from"react/jsx-runtime";var Ti="k-actionsheet",ir=[],nr={},nt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},_=e=>{let{side:t=nt.side,fullscreen:o=nt.fullscreen,adaptive:i=nt.adaptive,overlay:n=nt.overlay,template:r,children:c,header:p,footer:u,id:f,...b}=e,N=f&&!r&&p?`${f}-title`:void 0;return ar("div",{className:"k-actionsheet-container",children:[n&&St(de,{}),St(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:St("div",{...b,id:f,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:s(e.className,Ti,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:r||St(De,{header:p,footer:u,adaptive:i,titleId:N,...e,children:c})})})]})};_.states=ir;_.options=nr;_.className=Ti;_.defaultOptions=nt;_.moduleName=it;_.folderName=It;_.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as cr}from"react/jsx-runtime";var Oi="k-actionsheet-container",sr=[],rr={},lr={},ze=e=>{let{children:t,...o}=e;return cr("div",{...o,className:Oi,children:t})};ze.states=sr;ze.options=rr;ze.className=Oi;ze.defaultOptions=lr;ze.moduleName=it;ze.folderName=It;import{jsx as pr}from"react/jsx-runtime";var Lo=e=>{let{...t}=e;return pr("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};import{Fragment as mr,jsx as at,jsxs as Ao}from"react/jsx-runtime";var Co="k-actionsheet-item",dr=[a.hover,a.focus,a.selected,a.disabled],me=e=>{let{iconName:t,text:o,description:i,hover:n,focus:r,selected:c,disabled:p,...u}=e;return Ao("span",{...u,className:s(e.className,Co,M(Co,{hover:n,focus:r,selected:c,disabled:p})),children:[!e.children&&at(mr,{children:Ao("span",{className:"k-actionsheet-action",children:[t&&at("span",{className:"k-icon-wrap",children:at(x,{className:"k-actionsheet-item-icon",icon:t})}),Ao("span",{className:"k-actionsheet-item-text",children:[o&&at("span",{className:"k-actionsheet-item-title",children:o}),i&&at("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};me.states=dr;me.className=Co;import{jsx as zx,jsxs as Bx}from"react/jsx-runtime";import{jsx as Gx}from"react/jsx-runtime";import{jsx as Jx}from"react/jsx-runtime";import{jsx as Zx}from"react/jsx-runtime";import{jsx as P,jsxs as go}from"react/jsx-runtime";var ur=_.options,fr=_.states,Ki={..._.defaultOptions,variant:"normal"},hr=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],br=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Be=e=>{let{variant:t,modifiers:o,...i}={...Ki,...e},n={},r=go(Lo,{children:[P(me,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),P(me,{text:"Add to Favorites",iconName:"heart"}),P(me,{text:"Upload New",iconName:"upload",disabled:!0}),P("hr",{className:"k-hr"}),P(me,{text:"Cancel",iconName:"cancel"})]}),c="Choose from the items below",p="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":n.actionsStart=!!o?.[u],n.actionsEnd=!!o?.[u];break;case"subtitle":n.subtitle=o?.[u]?c:void 0;break;case"footer":n.footer=!!o?.[u];break;default:break}}),t==="adaptive"?P(_,{...i,adaptive:!0,fullscreen:n.fullScreen,header:P(Y,{actionsStart:n.actionsStart?P(v,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?P(v,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:p,subtitle:n.subtitle}),footer:n.footer?go(He,{alignment:"stretched",children:[P(v,{text:"Cancel",size:"large",themeColor:"base"}),P(v,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):P(_,{...i,fullscreen:n.fullScreen,header:P(Y,{actionsStart:n.actionsStart?P(v,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?P(v,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?go(He,{alignment:"stretched",children:[P(v,{text:"Apply",themeColor:"primary"}),P(v,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Be.options=ur;Be.states=fr;Be.variants=hr;Be.defaultOptions=Ki;Be.modifiers=br;Be.className=_.className;var ko="multiselect",_i=ko;import{Fragment as yt,jsx as I,jsxs as Ue}from"react/jsx-runtime";var Pi="k-multiselect",xr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Nr={size:[l.undefined,l.small,l.medium,l.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Hi={separators:!0},ue=e=>{let{size:t,rounded:o,fillMode:i,separators:n=Hi.separators,prefix:r,suffix:c,value:p,placeholder:u,tags:f,popup:b,showArrowButton:N,hover:L,focus:C,valid:H,invalid:S,required:y,loading:E,disabled:R,readonly:ae,opened:se,adaptive:Fe,adaptiveSettings:Ge,adaptiveTitle:$e,adaptiveSubtitle:Di,adaptiveCustomValue:zi,id:st,activeDescendant:Io,"aria-label":Bi,...Ui}=e,Vi=st?`${st}-listbox`:void 0,So=st?`${st}-taglist`:void 0;return Ue(yt,{children:[Ue(T,{...Ui,size:t,rounded:o,fillMode:i,hover:L,focus:C,valid:H,invalid:S,required:y,loading:E,disabled:R,readonly:ae,className:s(e.className,Pi),children:[r&&Ue(yt,{children:[I(Se,{children:r}),n&&I(oe,{})]}),Ue("div",{className:"k-input-values",children:[I(O,{size:t,id:So,children:I(yt,{children:f})}),I(J,{placeholder:u,value:p,role:"combobox","aria-haspopup":"listbox","aria-expanded":se?"true":"false","aria-controls":se?Vi:void 0,"aria-activedescendant":se&&Io?Io:void 0,"aria-autocomplete":"list","aria-describedby":f?So:void 0,"aria-invalid":S?"true":void 0,"aria-busy":E?"true":void 0,"aria-label":Bi,disabled:R,readOnly:ae})]}),I(W,{valid:H,invalid:S,loading:E,disabled:R}),I(Z,{loading:E,disabled:R}),I(q,{loading:E,disabled:R,readonly:ae,value:f?"value":""}),c&&Ue(yt,{children:[n&&I(oe,{}),I(ye,{children:c})]}),N&&I(v,{className:"k-input-button",icon:"chevron-down",size:t,fillMode:i,"aria-label":"Toggle dropdown",tabIndex:-1})]}),se&&b&&I(ne,{className:"k-list-container k-multiselect-popup",containerRole:"region",containerAriaLabel:"MultiSelect suggestions",children:b}),Fe&&I(_,{adaptive:!0,...Ge,header:I(Y,{actionsEnd:I(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:p,inputPlaceholder:u,title:$e,subtitle:Di}),children:I("div",{className:"k-list-container",children:I(K,{customValue:zi?I(ke,{text:`Use "${p}"`}):void 0,size:"large",children:Ue(X,{"aria-label":"Options",children:[I(k,{text:"List item"}),I(k,{text:"List item"}),I(k,{text:"List item"})]})})})})]})};ue.states=xr;ue.options=Nr;ue.className=Pi;ue.defaultOptions=Hi;ue.moduleName=ko;ue.folderName=_i;ue.ariaSpec={rules:[{selector:".k-multiselect .k-input-inner",attribute:"role=combobox",usage:"Announces the multiselect input."},{selector:".k-multiselect .k-input-inner",attribute:"aria-haspopup=listbox",usage:"Indicates the component has a listbox popup."},{selector:".k-multiselect .k-input-inner",attribute:"aria-expanded",usage:"Announces the popup visibility."},{selector:".k-multiselect .k-input-inner",attribute:"aria-label",usage:"Accessible name for the multiselect."},{selector:".k-multiselect .k-input-inner",attribute:"aria-autocomplete=list",usage:"Indicates list filtering capability."},{selector:".k-multiselect .k-input-inner",attribute:"aria-describedby",usage:"Points to the taglist element that contains the selected items."},{selector:".k-multiselect.k-disabled .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the multiselect is disabled."},{selector:".k-multiselect .k-chip-list",attribute:"role=listbox",usage:"The taglist has listbox role for selected items."},{selector:".k-multiselect .k-chip-list",attribute:"aria-label or aria-labelledby",usage:"The taglist needs an accessible name."},{selector:".k-multiselect .k-chip-list",attribute