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