@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 180 kB
JavaScript
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var M=(e,t)=>i({[`${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"}),I=(e,t)=>{let{valid:o,invalid:a,hover:r,focus:l,checked:p,active:m,selected:f,disabled:x,indeterminate:b,loading:g,empty:u,readonly:S,highlighted:N,...y}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":r,"k-focus":l,"k-checked":p,"k-active":m,"k-selected":f,"k-disabled":x,"k-indeterminate":b&&!p,"k-loading":g,"k-empty":u,"k-readonly":S,"k-highlighted":N},Object.keys(y).reduce((w,A)=>(A.startsWith("k-")?w[A]=y[A]:w[`k-${A}`]=y[A],w),{}))};function Ti(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var c={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},v={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"},Ye={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},k={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"},Ei={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var qa={};function R(e){return qa[e]=(qa[e]||0)+1,`k-${e}-${qa[e]}`}var zo="spreadsheet",ua=zo;import{jsx as Tl}from"react/jsx-runtime";var Ci="k-spreadsheet",Al=[],wl={},Il={},Be=e=>{let{children:t,...o}=e;return Tl("div",{...o,className:i(Ci,e.className),role:"application",children:t})};Be.states=Al;Be.options=wl;Be.className=Ci;Be.defaultOptions=Il;Be.moduleName=zo;Be.folderName=ua;Be.ariaSpec={selector:".k-spreadsheet",rules:[{selector:".k-spreadsheet",attribute:"role=application",usage:"Indicates the Spreadsheets' role as an application."},{selector:".k-spreadsheet-menu",attribute:"role=menubar",usage:"Follows Menu spec: announces the Menu menubar role."},{selector:".k-spreadsheet-menu .k-menu-item",attribute:"role=menuitem",usage:"Follows Menu spec: announces the Menu item role."},{selector:".k-spreadsheet-toolbar",attribute:"role=toolbar",usage:"Follows Toolbar spec: the component role."},{selector:".k-spreadsheet-toolbar",attribute:"aria-label or title",usage:"Each ToolBar must have a label specifying its purpose."},{selector:".k-spreadsheet-name-editor .k-combobox > .k-input-inner",attribute:"role=combobox",usage:"Follows ComboBox spec: identifies the input as a combobox."},{selector:".k-spreadsheet-formula-bar .k-spreadsheet-formula-input",attribute:"role=combobox",usage:"The focusable element of the component should have role combobox (an input with popup)."},{selector:".k-spreadsheet-formula-bar .k-spreadsheet-formula-input",attribute:"aria-haspopup=menu",usage:"Specifies that the formula input opens a popup."},{selector:".k-spreadsheet-formula-bar .k-spreadsheet-formula-input",attribute:"aria-controls=.k-spreadsheet-formula-list id (when present)",usage:"Points to the formulas list with role menu. Signifies that the formula input element controls the popup."},{selector:".k-spreadsheet-formula-bar .k-spreadsheet-formula-input",attribute:"aria-expanded=true/false",usage:"Announces the state of the popup visibility."},{selector:".k-spreadsheet-formula-bar .k-spreadsheet-formula-input",attribute:"title",usage:"The Formula input must have a title specifying its purpose."},{selector:".k-spreadsheet-formula-list",attribute:"id",usage:"Unique and deterministic id linked to the aria-controls attribute of the corresponding formula input."},{selector:".k-spreadsheet-formula-list",attribute:"role=menu",usage:"Announces the menu role of the popup."},{selector:".k-spreadsheet-formula-list .k-list-item",attribute:"role=menuitem",usage:"Announces the menuitem role of the popup items."},{selector:".k-spreadsheet-sheet-add",attribute:"role=button or nodeName=button",usage:"The add new sheet element is a button."},{selector:".k-spreadsheet-sheet-add",attribute:"aria-label or title",usage:"The add new sheet element must have a label as it does not have text content."},{selector:".k-spreadsheet-sheet-add",attribute:"aria-controls=.k-tabstrip-items id (when present)",usage:"Points to the ul element of the TabStrip that contains all tabs."},{selector:".k-spreadsheet-sheets-menu",attribute:"role=button or nodeName=button",usage:"Follows DropDownButton spec: omitted if the button DOM element is used."},{selector:".k-spreadsheet-sheets-menu",attribute:"aria-label or title",usage:"Follows DropDownButton spec: required when no text is visible."},{selector:".k-spreadsheet-sheets-menu",attribute:"aria-controls=.k-tabstrip-items id (when present)",usage:"Points to the ul element of the TabStrip that contains all tabs."},{selector:".k-spreadsheet-sheets .k-tabstrip-items",attribute:"role=tablist",usage:"Follows TabStrip spec: indicates the tablist role for the ul element."},{selector:".k-spreadsheet-sheets .k-tabstrip-item",attribute:"role=tab",usage:"Follows TabStrip spec: the tab li element."},{selector:".k-spreadsheet-sheets .k-tabstrip-item .k-menu-button",attribute:"aria-label or title",usage:"Follows DropDownButton spec: required when no text is visible in the tab menu button."}]};import{Fragment as Bl,jsx as Oi}from"react/jsx-runtime";var Ya="k-font-icon",El=[],Cl={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info]},Ol={},Ho=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:l,...p}=e;return a?Oi("span",{...p,className:i(e.className,Ya,M(Ya,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):Oi(Bl,{})};Ho.states=El;Ho.options=Cl;Ho.className=Ya;Ho.defaultOptions=Ol;var Bi=Ho;import{Fragment as Kl,jsx as fa}from"react/jsx-runtime";var Qa="k-svg-icon",Pl=[],Rl={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info],variant:[Ye.outline,Ye.solid,Ye.duotone]},Za={viewBox:"0 0 24 24",variant:Ye.outline},Fo=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:l=Za.viewBox,variant:p=Za.variant,icon:m,...f}=e;if(!m)return fa(Kl,{});if(m==="none")return fa("span",{...f,className:i(e.className,Qa,M("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof m=="object"&&m.name&&m.name,b=typeof m=="object"?p&&m.variants?.[p]||m.variants?.outline||m.content:void 0;return fa("span",{...f,className:i(e.className,Qa,M("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:fa("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:l,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:m?void 0:e.children})})};Fo.states=Pl;Fo.options=Rl;Fo.className=Qa;Fo.defaultOptions=Za;var ja=Fo;import*as er from"@progress/kendo-svg-icons";var Pi="icon",Ri="icons";import{useContext as _l}from"react";import{createContext as Dl}from"react";var Ki=Dl({iconsType:"svg"});import{Fragment as Di,jsx as Uo}from"react/jsx-runtime";var ba="k-icon",zl=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Hl=[],Fl={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info],variant:[Ye.outline,Ye.solid,Ye.duotone]},ha={viewBox:"0 0 24 24",type:"svg",variant:Ye.outline},L=e=>{let{iconsType:t}=_l(Ki),{size:o,themeColor:a,icon:r,type:l=t||ha.type,rotate:p,flip:m,viewBox:f=ha.viewBox,variant:x=ha.variant,...b}=e;if(!r)return Uo(Di,{});if((t||l)==="svg"){if(r==="none")return Uo(ja,{...b,className:i(e.className,ba),icon:r,size:o,variant:x});let u=er[r]?r:zl(`${r}-icon`);return er[u]?Uo(ja,{...b,className:i(e.className,ba),icon:er[u],size:o,themeColor:a,rotate:p,flip:m,viewBox:f,variant:x}):Uo(Di,{})}return Uo(Bi,{...b,className:i(e.className,ba),icon:r,size:o,themeColor:a,rotate:p,flip:m})};L.states=Hl;L.options=Fl;L.defaultOptions=ha;L.className=ba;L.moduleName=Pi;L.folderName=Ri;L.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var tr="button",_i=tr;import{Fragment as zi,jsx as Xt,jsxs as Hi}from"react/jsx-runtime";var Go="k-button",Ul=["icon-button"],Gl=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],$l={size:[c.undefined,c.xsmall,c.small,c.medium,c.large],rounded:[v.undefined,v.none,v.small,v.medium,v.large,v.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info,k.inverse]},or={showArrow:!1,arrowIconName:"chevron-down"},d=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:l,showArrow:p=or.showArrow,arrowIconName:m=or.arrowIconName,variant:f,hover:x,focus:b,active:g,selected:u,disabled:S,togglable:N,ariaDisabled:y,icon:w,iconSize:A,text:P,iconClassName:Z,className:de,...ue}=e,fe=w!=null,be=e.children!==void 0;return Hi(t,{className:i(de,Go,Ti(Go,f),M(Go,{size:o,rounded:a,fillMode:r,themeColor:l}),I(Go,{hover:x,focus:b,active:g,disabled:S||y,selected:u}),{"k-icon-button":!P&&!be&&fe}),"aria-pressed":N?u?"true":"false":void 0,...ue,"aria-disabled":y?"true":void 0,disabled:S||void 0,children:[typeof w=="string"&&w&&Xt(L,{className:i(Z,"k-button-icon"),icon:w,size:A}),w&&typeof w!="string"&&Xt(zi,{children:w}),P?Hi(zi,{children:[P&&Xt("span",{className:"k-button-text",children:P}),e.children]}):e.children&&Xt("span",{className:"k-button-text",children:e.children}),p&&Xt("span",{className:"k-menu-button-arrow k-button-arrow",children:Xt(L,{icon:m})})]})};d.states=Gl;d.options=$l;d.variants=Ul;d.className=Go;d.defaultOptions=or;d.moduleName=tr;d.folderName=_i;d.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var $o="input",xa=$o;import{jsx as Jl}from"react/jsx-runtime";var va="k-input",Vl=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Wl={size:[c.undefined,c.small,c.medium,c.large],rounded:[v.undefined,v.none,v.small,v.medium,v.large,v.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Xl={},j=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:m,size:f,rounded:x,fillMode:b,...g}=e;return Jl("span",{...g,className:i(e.className,va,M(va,{size:f,rounded:x,fillMode:b}),I(va,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:m}))})};j.states=Vl;j.options=Wl;j.className=va;j.defaultOptions=Xl;j.moduleName=$o;j.folderName=xa;import{jsx as Zl}from"react/jsx-runtime";var ga="k-picker",ql=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Yl={size:[c.undefined,c.small,c.medium,c.large],rounded:[v.undefined,v.none,v.small,v.medium,v.large,v.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Ql={},Qe=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:m,size:f,rounded:x,fillMode:b,...g}=e;return Zl("span",{...g,className:i(e.className,ga,M(ga,{size:f,rounded:x,fillMode:b}),I(ga,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:m})),children:e.children})};Qe.states=ql;Qe.options=Yl;Qe.className=ga;Qe.defaultOptions=Ql;Qe.moduleName=$o;Qe.folderName=xa;import{Fragment as tp,jsx as ar}from"react/jsx-runtime";var Fi="k-clear-value",jl=[s.disabled,s.loading,s.readonly],ep={},we=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?ar(tp,{}):ar("span",{className:i(e.className,Fi),children:ar(L,{icon:"x"})})};we.states=jl;we.options=ep;we.className=Fi;import{jsx as rp}from"react/jsx-runtime";var rr="k-input-inner",op=[],ap={},ka={type:"text",autocomplete:"off",value:"",placeholder:""},Ie=e=>{let{value:t=ka.value,type:o=ka.type,placeholder:a=ka.placeholder,autocomplete:r=ka.autocomplete,disabled:l,readOnly:p,...m}=e;return rp("input",{...m,type:o,className:i(e.className,rr,M(rr,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:l||void 0,readOnly:p||void 0})};Ie.states=op;Ie.options=ap;Ie.className=rr;import{jsx as Ui,jsxs as sp}from"react/jsx-runtime";var ir="k-input-inner",ip=[],np={},Bt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:l,...p}=e;return sp("span",{...p,className:i(e.className,ir,M(ir,e)),children:[r,!r&&l&&Ui(L,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&Ui("span",{className:"k-input-value-text",children:t})]})};Bt.states=ip;Bt.options=np;Bt.className=ir;import{jsx as dp}from"react/jsx-runtime";var nr="k-input-inner",lp=[],pp={},Gi={value:"",placeholder:""},sr=e=>{let{value:t=Gi.value,placeholder:o=Gi.placeholder,rows:a,disabled:r,...l}=e;return dp("textarea",{...l,className:i(e.className,nr,M(nr,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};sr.states=lp;sr.options=pp;sr.className=nr;import{Fragment as mp,jsx as $i}from"react/jsx-runtime";var Vi="k-input-loading-icon",cp=[s.disabled,s.loading],ye=e=>{let{disabled:t,loading:o}=e;return t||!o?$i(mp,{}):$i("span",{className:i(e.className,Vi,"k-icon k-i-loading")})};ye.states=cp;ye.className=Vi;import{Fragment as bp,jsx as Wi}from"react/jsx-runtime";var Xi="k-input-validation-icon",up=[s.valid,s.invalid,s.disabled,s.loading],fp={},he=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,l=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?Wi(bp,{}):Wi(L,{className:i(Xi),icon:l})};he.states=up;he.options=fp;he.className=Xi;import{Fragment as vp,jsx as Ji}from"react/jsx-runtime";var hp="k-input-prefix",xp={direction:"horizontal"},Pe=e=>{let{direction:t=xp.direction,...o}=e;return e.children?Ji("span",{...o,className:i(hp,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ji(vp,{})};import{Fragment as Np,jsx as qi}from"react/jsx-runtime";var gp="k-input-suffix",kp={direction:"horizontal"},Re=e=>{let{direction:t=kp.direction,...o}=e;return e.children?qi("span",{...o,className:i(gp,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):qi(Np,{})};import{jsx as nx}from"react/jsx-runtime";import{jsx as Lp}from"react/jsx-runtime";var Sp="k-input-suffix-text",lr=e=>{let{children:t,...o}=e;return Lp("span",{...o,className:i(Sp,e.className),children:t})};import{jsx as Mp}from"react/jsx-runtime";var Yi="k-input-separator",yp={direction:"vertical"},Ke=e=>{let{direction:t=yp.direction,...o}=e;return Mp("span",{...o,className:i(Yi,e.className,{[`${Yi}-${t}`]:t})})};import{jsx as Ap}from"react/jsx-runtime";var Pt=e=>Ap(d,{children:"Button",...e});import{Fragment as Qi,jsx as Ze,jsxs as pr}from"react/jsx-runtime";var wp=j.states,Ip=j.defaultOptions,Tp=j.options,Ep=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Cp=[],Jt=e=>{let{modifiers:t,valid:o,invalid:a,loading:r,disabled:l,readonly:p,...m}=e,f=t?.prefix,x=t?.suffix,b=t?.["clear-button"],g=t?.["validation-icon"],u=t?.separators;return pr(j,{...m,valid:o,invalid:a,loading:r,disabled:l,readonly:p,style:{width:300},children:[f&&pr(Qi,{children:[Ze(Pe,{children:Ze(L,{icon:"lock"})}),u&&Ze(Ke,{})]}),Ze(Ie,{placeholder:"Placeholder",value:"Value"}),g&&Ze(he,{valid:o,invalid:a,loading:r,disabled:l}),Ze(ye,{loading:r,disabled:l}),b&&Ze(we,{loading:r,disabled:l,readonly:p,value:"Value"}),x&&pr(Qi,{children:[u&&Ze(Ke,{}),Ze(Re,{children:Ze(Pt,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Jt.options=Tp;Jt.states=wp;Jt.variants=Cp;Jt.defaultOptions=Ip;Jt.modifiers=Ep;Jt.className=j.className;import{jsx as Op}from"react/jsx-runtime";var vt=e=>Op(d,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Bp}from"react/jsx-runtime";var Vo=e=>Bp(d,{icon:"folder",children:"Button",...e});import{jsx as dr}from"react/jsx-runtime";var Pp=d.options,Rp=d.states,Kp={...d.defaultOptions,variant:"text"},Dp=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_p=[],qt=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return dr(vt,{...o,icon:"star"});case"icon-and-text":return dr(Vo,{...o,icon:"star",children:"Button"});default:return dr(Pt,{...o,children:"Button"})}};qt.options=Pp;qt.states=Rp;qt.variants=Dp;qt.defaultOptions=Kp;qt.modifiers=_p;qt.className=d.className;var cr="popup",Zi=cr;import{jsx as ji}from"react/jsx-runtime";var en="k-animation-container",zp=[],Hp={},mr={positionMode:"absolute",shown:!0},De=e=>{let{positionMode:t=mr.positionMode,shown:o=mr.shown,animationStyle:a,offset:r,...l}=e;return ji("div",{...l,style:{...r,...e.style},className:i(e.className,en,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:ji("div",{className:"k-child-animation-container",style:a,children:e.children})})};De.states=zp;De.options=Hp;De.className=en;De.defaultOptions=mr;De.moduleName=cr;De.folderName=Zi;var ur="popup",tn=ur;import{jsx as on}from"react/jsx-runtime";var an="k-popup",Fp=[],Up={},rn={positionMode:"absolute"},X=e=>{let{offset:t,positionMode:o=rn.positionMode,animationStyle:a,containerClassName:r,containerRole:l,containerAriaLabel:p,...m}=e;return on(De,{positionMode:o,offset:t,animationStyle:a,className:r,role:l,"aria-label":p,children:on("div",{...m,className:i(e.className,an),children:e.children})})};X.states=Fp;X.options=Up;X.className=an;X.defaultOptions=rn;X.moduleName=ur;X.folderName=tn;X.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 fr="action-buttons",nn=fr;import{jsx as Vp}from"react/jsx-runtime";var Na="k-actions",Gp=[],$p={},br={alignment:"start",orientation:"horizontal"},je=e=>{let{alignment:t=br.alignment,orientation:o=br.orientation,...a}=e;return Vp("div",{...a,className:i(Na,{[`${Na}-${t}`]:t,[`${Na}-${o}`]:o},e.className),children:e.children})};je.states=Gp;je.options=$p;je.className=Na;je.defaultOptions=br;je.moduleName=fr;je.folderName=nn;import{jsx as Xp}from"react/jsx-runtime";var Wp="k-actionsheet-footer",sn={alignment:"stretched",orientation:"horizontal"},gt=e=>{let{alignment:t=sn.alignment,orientation:o=sn.orientation,template:a,as:r=a?"div":je,...l}=e;return Xp(r,{...l,...!a&&{alignment:t,orientation:o},className:i(e.className,Wp),children:e.children})};var hr="searchbox",ln=hr;import{jsx as Wo,jsxs as Yp}from"react/jsx-runtime";var pn="k-searchbox",Jp=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],qp={size:[c.undefined,c.small,c.medium,c.large],rounded:[v.undefined,v.none,v.small,v.medium,v.large,v.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},xr={showIcon:!0,icon:"search"},_e=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:l,hover:p,focus:m,valid:f,invalid:x,required:b,loading:g,disabled:u,showIcon:S=xr.showIcon,icon:N=xr.icon,"aria-label":y,...w}=e;return Yp(j,{...w,size:a,rounded:r,fillMode:l,hover:p,focus:m,valid:f,invalid:x,required:b,loading:g,disabled:u,className:i(e.className,pn),children:[S&&Wo(L,{className:"k-input-icon",icon:N}),Wo(Ie,{placeholder:o,value:t,"aria-label":y}),Wo(ye,{...e}),Wo(he,{...e}),Wo(we,{...e})]})};_e.states=Jp;_e.options=qp;_e.className=pn;_e.defaultOptions=xr;_e.moduleName=hr;_e.folderName=ln;import{jsx as Xv}from"react/jsx-runtime";var vr="textbox",dn=vr;import{Fragment as cn,jsx as kt,jsxs as gr}from"react/jsx-runtime";var mn="k-textbox",Qp=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Zp={size:[c.undefined,c.small,c.medium,c.large],rounded:[v.undefined,v.none,v.small,v.medium,v.large,v.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Sa={showClearButton:!0,showValidationIcon:!0,separators:!0},le=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Sa.separators,showClearButton:l=Sa.showClearButton,showValidationIcon:p=Sa.showValidationIcon,prefix:m,suffix:f,type:x,value:b,placeholder:g,hover:u,focus:S,valid:N,invalid:y,required:w,loading:A,disabled:P,readonly:Z,id:de,"aria-label":ue,"aria-describedby":fe,...be}=e;return gr(j,{...be,size:t,rounded:o,fillMode:a,hover:u,focus:S,valid:N,invalid:y,required:w,loading:A,disabled:P,readonly:Z,className:i(e.className,mn),children:[m&&gr(cn,{children:[kt(Pe,{children:m}),r&&kt(Ke,{})]}),kt(Ie,{id:de,placeholder:g,value:b,type:x,disabled:P,"aria-label":ue,"aria-describedby":fe,"aria-invalid":y?"true":void 0}),p&&kt(he,{valid:N,invalid:y,loading:A,disabled:P}),kt(ye,{loading:A,disabled:P}),l&&kt(we,{loading:A,disabled:P,readonly:Z,value:b}),f&&gr(cn,{children:[r&&kt(Ke,{}),kt(Re,{children:f})]})]})};le.states=Qp;le.options=Zp;le.className=mn;le.defaultOptions=Sa;le.moduleName=vr;le.folderName=dn;le.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 Xo=le;import{jsx as jp}from"react/jsx-runtime";var un=e=>jp(Xo,{...e});import{Fragment as cg,jsx as dg}from"react/jsx-runtime";import{Fragment as xg,jsx as hg}from"react/jsx-runtime";import{jsx as Ng}from"react/jsx-runtime";import{jsx as kr}from"react/jsx-runtime";var ed=le.states,td=le.defaultOptions,od=le.options,ad=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],rd=[],Yt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t?.[r]?kr(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[r]?kr(Pt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[r];break;default:break}}),kr(un,{value:"Value",style:{width:300},...o,...a})};Yt.options=od;Yt.states=ed;Yt.variants=rd;Yt.defaultOptions=td;Yt.modifiers=ad;Yt.className=le.className;import{jsx as Nt,jsxs as Nr}from"react/jsx-runtime";var fn="k-actionsheet-titlebar",id={},xe=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:l,input:p,inputValue:m,inputPlaceholder:f,adaptive:x,titleId:b,children:g,...u}=e;return Nr("div",{...u,className:i(e.className,fn),children:[Nr("div",{className:"k-actionsheet-titlebar-group",children:[a&&Nt("div",{className:"k-actionsheet-actions",children:a}),!g&&Nr("div",{className:"k-actionsheet-title",id:b,children:[t&&Nt("div",{className:"k-text-center",children:t}),o&&Nt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),g&&Nt("div",{className:"k-actionsheet-title",id:b,children:g}),r&&Nt("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&Nt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?Nt(le,{value:m,placeholder:f,size:x?"large":"medium","aria-label":t||f||"Input"}):Nt(_e,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};xe.className=fn;xe.defaultOptions=id;import{jsx as Sr,jsxs as pd}from"react/jsx-runtime";var Lr="k-actionsheet-view",nd=[],sd={},ld={},Qt=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:l,titleId:p,...m}=e,f=r?.type===xe&&Sr(xe,{adaptive:t,titleId:p,...r?.props}),x=l?.type===gt&&Sr(gt,{...l?.props});return pd("div",{...m,className:i(e.className,Lr,{[`${Lr}-animated`]:o}),children:[f,Sr("div",{className:"k-actionsheet-content",children:a}),x]})};Qt.states=nd;Qt.options=sd;Qt.className=Lr;Qt.defaultOptions=ld;var Jo="action-sheet",La=Jo;var yr="overlay",bn=yr;import{jsx as ud}from"react/jsx-runtime";var hn="k-overlay",dd=[],cd={},md={},St=e=>{let{...t}=e;return ud("div",{...t,className:i(e.className,hn),children:e.children})};St.states=dd;St.options=cd;St.className=hn;St.defaultOptions=md;St.moduleName=yr;St.folderName=bn;import{jsx as ya,jsxs as hd}from"react/jsx-runtime";var xn="k-actionsheet",fd=[],bd={},qo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Y=e=>{let{side:t=qo.side,fullscreen:o=qo.fullscreen,adaptive:a=qo.adaptive,overlay:r=qo.overlay,template:l,children:p,header:m,footer:f,id:x,...b}=e,g=x&&!l&&m?`${x}-title`:void 0;return hd("div",{className:"k-actionsheet-container",children:[r&&ya(St,{}),ya(De,{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:ya("div",{...b,id:x,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":g,className:i(e.className,xn,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||ya(Qt,{header:m,footer:f,adaptive:a,titleId:g,...e,children:p})})})]})};Y.states=fd;Y.options=bd;Y.className=xn;Y.defaultOptions=qo;Y.moduleName=Jo;Y.folderName=La;Y.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 kd}from"react/jsx-runtime";var vn="k-actionsheet-container",xd=[],vd={},gd={},Zt=e=>{let{children:t,...o}=e;return kd("div",{...o,className:vn,children:t})};Zt.states=xd;Zt.options=vd;Zt.className=vn;Zt.defaultOptions=gd;Zt.moduleName=Jo;Zt.folderName=La;import{jsx as Nd}from"react/jsx-runtime";var Mr=e=>{let{...t}=e;return Nd("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as Ld,jsx as Yo,jsxs as Ar}from"react/jsx-runtime";var wr="k-actionsheet-item",Sd=[s.hover,s.focus,s.selected,s.disabled],Lt=e=>{let{iconName:t,text:o,description:a,hover:r,focus:l,selected:p,disabled:m,...f}=e;return Ar("span",{...f,className:i(e.className,wr,I(wr,{hover:r,focus:l,selected:p,disabled:m})),children:[!e.children&&Yo(Ld,{children:Ar("span",{className:"k-actionsheet-action",children:[t&&Yo("span",{className:"k-icon-wrap",children:Yo(L,{className:"k-actionsheet-item-icon",icon:t})}),Ar("span",{className:"k-actionsheet-item-text",children:[o&&Yo("span",{className:"k-actionsheet-item-title",children:o}),a&&Yo("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Lt.states=Sd;Lt.className=wr;import{jsx as kk,jsxs as Nk}from"react/jsx-runtime";import{jsx as Mk}from"react/jsx-runtime";import{jsx as Tk}from"react/jsx-runtime";import{jsx as Bk}from"react/jsx-runtime";import{jsx as pe,jsxs as Ir}from"react/jsx-runtime";var yd=Y.options,Md=Y.states,kn={...Y.defaultOptions,variant:"normal"},Ad=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],wd=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],jt=e=>{let{variant:t,modifiers:o,...a}={...kn,...e},r={},l=Ir(Mr,{children:[pe(Lt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),pe(Lt,{text:"Add to Favorites",iconName:"heart"}),pe(Lt,{text:"Upload New",iconName:"upload",disabled:!0}),pe("hr",{className:"k-hr"}),pe(Lt,{text:"Cancel",iconName:"cancel"})]}),p="Choose from the items below",m="Select Item";return t==="fullScreen"&&(r.fullScreen=!0),Object.keys(o||{}).forEach(f=>{switch(f){case"actions":r.actionsStart=!!o?.[f],r.actionsEnd=!!o?.[f];break;case"subtitle":r.subtitle=o?.[f]?p:void 0;break;case"footer":r.footer=!!o?.[f];break;default:break}}),t==="adaptive"?pe(Y,{...a,adaptive:!0,fullscreen:r.fullScreen,header:pe(xe,{actionsStart:r.actionsStart?pe(d,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?pe(d,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:m,subtitle:r.subtitle}),footer:r.footer?Ir(gt,{alignment:"stretched",children:[pe(d,{text:"Cancel",size:"large",themeColor:"base"}),pe(d,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):pe(Y,{...a,fullscreen:r.fullScreen,header:pe(xe,{actionsStart:r.actionsStart?pe(d,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?pe(d,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Ir(gt,{alignment:"stretched",children:[pe(d,{text:"Apply",themeColor:"primary"}),pe(d,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};jt.options=yd;jt.states=Md;jt.variants=Ad;jt.defaultOptions=kn;jt.modifiers=wd;jt.className=Y.className;import Er from"react";import{jsx as Nn}from"react/jsx-runtime";var Id="k-list-group-sticky-header",Tr=e=>Nn("div",{className:i(Id,e.className),children:Nn("div",{className:"k-list-header-text",children:e.children})});import{jsx as Ed}from"react/jsx-runtime";var Td="k-no-data",Ma=e=>{let{live:t,...o}=e;return Ed("span",{...o,className:i(Td,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Rt="list",eo=Rt;import{jsx as Sn,jsxs as Ln}from"react/jsx-runtime";var Cr="k-list",Cd=[],Od={size:[c.undefined,c.small,c.medium,c.large]},Bd={},_=e=>{let{size:t,virtualization:o,children:a,header:r,selectAll:l,optionLabel:p,customValue:m,noData:f,screenReaders:x,...b}=e,u=Er.Children.toArray(a)[0],S=u?.props?.children?Er.Children.count(u.props.children):Er.Children.count(a);return Ln("div",{...b,className:i(e.className,Cr,M(Cr,{size:t}),{"k-virtual-list":o}),children:[p,l,m,r&&Sn(Tr,{children:r}),a||(f!==void 0?f:Sn(Ma,{live:!0,children:"No data found."})),x&&a&&Ln(Ma,{className:"k-sr-only",live:!0,children:[S," items found."]})]})};_.states=Cd;_.options=Od;_.className=Cr;_.defaultOptions=Bd;_.moduleName=Rt;_.folderName=eo;_.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 Dd}from"react/jsx-runtime";var yn="k-list-container",Pd=[],Rd={},Kd={},to=e=>{let{...t}=e;return Dd("div",{...t,className:i(e.className,yn),children:e.children})};to.states=Pd;to.options=Rd;to.className=yn;to.defaultOptions=Kd;to.moduleName=Rt;to.folderName=eo;var Kt="checkbox",oo=Kt;import{jsx as Mn}from"react/jsx-runtime";var Aa="k-checkbox",_d=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],zd={size:[c.undefined,c.small,c.medium,c.large],rounded:[v.undefined,v.none,v.small,v.medium,v.large,v.full]},Hd={},Me=e=>{let{id:t,checked:o,indeterminate:a,hover:r,focus:l,disabled:p,invalid:m,valid:f,required:x,size:b,rounded:g,wrapperRole:u,...S}=e;return Mn("span",{className:"k-checkbox-wrap",role:u,children:Mn("input",{...S,id:t,type:"checkbox",defaultChecked:o,required:x,disabled:p||void 0,"aria-invalid":m?"true":void 0,className:i(e.className,Aa,M(Aa,{size:b,rounded:g}),I(Aa,{hover:r,focus:l,disabled:p,invalid:m,valid:f,indeterminate:a,checked:o}))})})};Me.states=_d;Me.options=zd;Me.className=Aa;Me.defaultOptions=Hd;Me.moduleName=Kt;Me.folderName=oo;Me.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 Xe=Me;import{jsx as Gd}from"react/jsx-runtime";var An="k-checkbox-list",Fd=[],Ud={},wn={layout:"vertical"},ve=e=>{let{layout:t=wn.layout,...o}=e;return Gd("ul",{...o,className:i(e.className,An,{[`k-list-${t}`]:t}),children:e.children})};ve.states=Fd;ve.options=Ud;ve.className=An;ve.defaultOptions=wn;ve.moduleName=Kt;ve.folderName=oo;import{jsx as Xd}from"react/jsx-runtime";var In="k-checkbox-list-item",$d=[],Vd={},Wd={},ge=e=>{let{...t}=e;return Xd("li",{...t,className:i(e.className,In),children:e.children})};ge.states=$d;ge.options=Vd;ge.className=In;ge.defaultOptions=Wd;ge.moduleName=Kt;ge.folderName=oo;import{Fragment as Jd,jsx as Tn,jsxs as qd}from"react/jsx-runtime";var at=({children:e="Label",id:t="cb-label-after",...o})=>qd(Jd,{children:[Tn(Xe,{id:t,...o}),Tn("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as UN,jsx as FN,jsxs as GN}from"react/jsx-runtime";import{Fragment as JN,jsx as XN,jsxs as qN}from"react/jsx-runtime";import{Fragment as eS,jsx as jN,jsxs as tS}from"react/jsx-runtime";import{jsx as iS}from"react/jsx-runtime";import{jsx as pS}from"react/jsx-runtime";import{jsx as uS}from"react/jsx-runtime";import{jsx as ze,jsxs as En}from"react/jsx-runtime";var Yd=ve.options,Qd=ve.states,Zd={...ve.defaultOptions,variant:"vertical"},jd=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],ec=[],ao=e=>{let{variant:t,...o}=e;return t==="horizontal"?En(ve,{layout:"horizontal",...o,children:[ze(ge,{children:ze(at,{id:R("cb"),defaultChecked:!0,children:"Label"})}),ze(ge,{children:ze(at,{id:R("cb"),children:"Label"})}),ze(ge,{children:ze(at,{id:R("cb"),children:"Label"})})]}):En(ve,{...o,children:[ze(ge,{children:ze(at,{id:R("cb"),defaultChecked:!0,children:"Label"})}),ze(ge,{children:ze(at,{id:R("cb"),children:"Label"})}),ze(ge,{children:ze(at,{id:R("cb"),children:"Label"})})]})};ao.options=Yd;ao.states=Qd;ao.variants=jd;ao.defaultOptions=Zd;ao.modifiers=ec;ao.className=ve.className;import{jsx as nc}from"react/jsx-runtime";var tc=Xe.options,oc=Xe.states,ac=Xe.defaultOptions,rc=[],ic=[],ro=e=>nc(at,{id:R("checkbox"),...e,defaultChecked:!0,children:"Label"});ro.options=tc;ro.states=oc;ro.variants=rc;ro.defaultOptions=ac;ro.modifiers=ic;ro.className=Xe.className;import{jsx as Dt,jsxs as dc}from"react/jsx-runtime";var Or="k-list-item",sc=[s.hover,s.focus,s.selected,s.disabled],lc={},pc={},O=e=>{let{text:t,groupLabel:o,group:a,iconName:r,iconClassName:l,showCheckbox:p,checked:m,hover:f,focus:x,selected:b,disabled:g,actions:u,description:S,id:N,...y}=e,w=t||e.children;return dc("li",{...y,id:N,role:a?"presentation":"option",tabIndex:a?void 0:x?0:-1,"aria-selected":!a&&b?"true":a?void 0:"false","aria-disabled":!a&&g?"true":void 0,className:i(e.className,a?"k-list-group-item":Or,I(Or,{hover:f,focus:x,disabled:g,selected:b})),children:[p&&Dt(Me,{checked:m}),r&&Dt("span",{className:"k-list-item-icon-wrapper",children:Dt(L,{icon:r,className:i("k-list-item-icon",l)})}),Dt("span",{className:"k-list-item-text",children:w}),u&&Dt("div",{className:"k-list-item-actions",children:u}),S&&Dt("span",{className:"k-list-item-description",children:S}),o&&o!==""&&Dt("div",{className:"k-list-item-group-label",children:o})]})};O.states=sc;O.options=lc;O.className=Or;O.defaultOptions=pc;O.moduleName=Rt;O.folderName=eo;O.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 mc}from"react/jsx-runtime";var cc="k-list-ul",rt=e=>{let{children:t,role:o,id:a,...r}=e;return mc("ul",{...r,id:a,role:o,className:i(cc,e.className),children:t})};rt.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 Br,jsxs as fc}from"react/jsx-runtime";var uc="k-list-content",U=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":r,listboxId:l,...p}=e;return fc("div",{...p,className:i(uc,e.className),role:o?"listbox":void 0,id:o?l:void 0,"aria-label":o?a:void 0,"aria-labelledby":o?r:void 0,children:[o?e.children:Br(rt,{role:"listbox",id:l,"aria-label":a,"aria-labelledby":r,children:e.children}),t&&Br("div",{className:"k-height-container",children:Br("div",{})})]})};U.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 Pr,jsxs as vc}from"react/jsx-runtime";var wa="k-list-sticky-header",bc=[s.hover,s.focus,s.selected],hc={},xc={},Ia=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:r,hover:l,focus:p,selected:m,...f}=e;return Pr("div",{...f,className:i(wa,e.className),children:vc("div",{className:i(`${wa}-item`,I(`${wa}-item`,{hover:l,focus:p,selected:m})),children:[o&&Pr(Me,{checked:a,indeterminate:r,"aria-label":t}),Pr("span",{className:"k-list-item-text",children:t})]})})};Ia.states=bc;Ia.options=hc;Ia.className=wa;Ia.defaultOptions=xc;import{Fragment as sL,jsx as nL,jsxs as lL}from"react/jsx-runtime";import{jsx as Rr,jsxs as kc}from"react/jsx-runtime";var gc="k-list-group-item",_t=e=>{let{groupIconName:t,...o}=e;return kc("li",{...o,role:"presentation",className:i(gc,e.className),children:[t&&Rr("span",{className:"k-list-item-icon-wrapper",children:Rr(L,{icon:t,className:"k-list-item-icon"})}),Rr("span",{className:"k-list-item-text",children:e.children})]})};_t.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 yc}from"react/jsx-runtime";var Kr="k-list-optionlabel",Nc=[s.hover,s.focus,s.selected,s.disabled],Sc={},Lc={},Ta=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...p}=e;return yc("div",{...p,className:i(Kr,I(Kr,{hover:o,focus:a,selected:r,disabled:l})),children:t})};Ta.states=Nc;Ta.options=Sc;Ta.className=Kr;Ta.defaultOptions=Lc;import{jsx as Ic}from"react/jsx-runtime";var Dr="k-list-custom-value",Mc=[s.hover,s.focus,s.selected,s.disabled],Ac={},wc={},yt=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...p}=e;return Ic("div",{...p,className:i(Dr,I(Dr,{hover:o,focus:a,selected:r,disabled:l})),children:t})};yt.states=Mc;yt.options=Ac;yt.className=Dr;yt.defaultOptions=wc;import{Fragment as yL,jsx as LL,jsxs as ML}from"react/jsx-runtime";import{Fragment as CL,jsx as EL,jsxs as OL}from"react/jsx-runtime";import{Fragment as zL,jsx as DL,jsxs as _L}from"react/jsx-runtime";import{Fragment as WL,jsx as $L,jsxs as VL}from"react/jsx-runtime";import{jsx as YL}from"react/jsx-runtime";import{Fragment as oy,jsx as ty,jsxs as ay}from"react/jsx-runtime";var _r="combobox",Cn=_r;import{Fragment as zr,jsx as re,jsxs as Qo}from"react/jsx-runtime";var On="k-combobox",Tc=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Ec={size:[c.undefined,c.small,c.medium,c.large],rounded:[v.undefined,v.none,v.small,v.medium,v.large,v.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Bn={separators:!0},ne=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Bn.separators,prefix:l,suffix:p,value:m,placeholder:f,hover:x,focus:b,valid:g,invalid:u,required:S,loading:N,disabled:y,popup:w,opened:A,readonly:P,adaptive:Z,adaptiveSettings:de,adaptiveTitle:ue,adaptiveSubtitle:fe,adaptiveCustomValue:be,id:Ot,autocomplete:Wa,activeDescendant:xt,"aria-label":ma,...Xa}=e,Ja=Ot?`${Ot}-listbox`:void 0;return Qo(zr,{children:[Qo(j,{...Xa,size:t,rounded:o,fillMode:a,hover:x,focus:b,valid:g,invalid:u,required:S,loading:N,disabled:y,readonly:P,className:i(e.className,On),children:[l&&Qo(zr,{children:[re(Pe,{children:l}),r&&re(Ke,{})]}),re(Ie,{id:Ot,placeholder:f,value:m,role:"combobox","aria-haspopup":"listbox","aria-expanded":A?"true":"false","aria-controls":A?Ja:void 0,"aria-activedescendant":A&&xt?xt:void 0,"aria-autocomplete":Wa,"aria-invalid":u?"true":void 0,"aria-busy":N?"true":void 0,"aria-label":ma,disabled:y,readOnly:P}),re(he,{valid:g,invalid:u,loading:N,disabled:y}),re(ye,{loading:N,disabled:y}),re(we,{loading:N,disabled:y,readonly:P,value:m}),p&&Qo(zr,{children:[r&&re(Ke,{}),re(Re,{children:p})]}),re(d,{className:"k-input-button",icon:"chevron-down",size:t,fillMode:a,"aria-label":"Open popup",tabIndex:-1,disabled:y})]}),A&&w&&re(X,{className:"k-list-container k-combobox-popup",containerRole:"region",containerAriaLabel:"Combobox suggestions",children:w}),Z&&re(Y,{adaptive:!0,id:Ot?`${Ot}-adaptive`:void 0,...de,header:re(xe,{actionsEnd:re(d,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:m,inputPlaceholder:f,title:ue,subtitle:fe}),children:re("div",{className:"k-list-container",children:re(_,{customValue:be?re(yt,{text:`Use "${m}"`}):void 0,size:"large",children:Qo(U,{"aria-label":ue||"Options",children:[re(O,{text:"List item"}),re(O,{text:"List item"}),re(O,{text:"List item"})]})})})})]})};ne.states=Tc;ne.options=Ec;ne.className=On;ne.defaultOptions=Bn;ne.moduleName=_r;ne.folderName=Cn;ne.ariaSpec={selector:".k-combobox",rules:[{selector:".k-combobox > .k-input-inner",attribute:"role=combobox",usage:"Identifies the input as a combobox."},{selector:".k-combobox > .k-input-inner",attribute:"aria-haspopup=listbox",usage:"Indicates the combobox has a listbox popup."},{selector:".k-combobox > .k-input-inner",attribute:"aria-expanded",usage:"Indicates whether the popup is open."},{selector:".k-combobox > .k-input-inner",attribute:"aria-controls=${id}-listbox (when open)",usage:"Points to the listbox element when popup is open."},{selector:".k-combobox > .k-input-inner",attribute:"aria-activedescendant (when open)",usage:"Points to the focused item in the listbox."},{selector:".k-combobox > .k-input-inner",attribute:"aria-autocomplete=list|both|inline (when has autocomplete)",usage:"Indicates the autocomplete behavior."},{selector:".k-combobox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the combobox is in an invalid state."},{selector:".k-combobox > .k-input-inner",attribute:"aria-busy=true (when loading)",usage:"Rendered when the combobox is loading data."},{selector:".k-combobox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name provided by consuming app."},{selector:".k-combobox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the combobox is disabled."},{selector:".k-combobox .k-input-button",attribute:"role=button or nodeName=button",usage:"The dropdown toggle button."},{selector:".k-combobox .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-combobox .k-input-button",attribute:"tabindex=-1",usage:"Dropdown button is not in the tab order."},{selector:".k-combobox-popup .k-list-content, .k-combobox-popup .k-list-ul",attribute:"role=listbox",usage:"The popup list container has the listbox role."},{selector:'.k-combobox-popup .k-list-ul[role="listbox"], .k-combobox-popup .k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby",usage:"Popup listbox must have an accessible name. Consuming code is responsible for associating with the component label via aria-labelledby."},{selector:".k-combobox-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."},{selector:".k-combobox-popup .k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state."},{selector:".k-combobox-popup .k-no-data",attribute:"aria-live=polite",usage:"Announces no-data state to screen readers."}]};var Te=ne;import{Fragment as Rn,jsx as ie,jsxs as Ea}from"react/jsx-runtime";var Pn="k-spreadsheet-action-bar",Cc=[],Oc={},Bc=Ea(Rn,{children:[ie("span",{className:"k-syntax-startexp",children:"="}),ie("span",{className:"k-syntax-ref k-series-a",children:"B6"}),ie("span",{className:"k-syntax-op",children:"+"}),ie("span",{className:"k-syntax-ref k-series-b",children:"C6"}),ie("span",{className:"k-syntax-op",children:"+"}),ie("span",{className:"k-syntax-ref k-series-c",children:"C3"})]}),Hr={formula:Bc,cellName:"B6"},it=e=>{let{formula:t=Hr.formula,cellName:o=Hr.cellName,formulaExpanded:a=!1,formulaListItems:r,...l}=e,p=a?R("spreadsheet-formula-list"):void 0,m=Ea(Rn,{children:[ie("li",{className:"k-list-item",role:"menuitem",children:ie("span",{className:"k-list-item-text",children:"SUM"})}),ie("li",{className:"k-list-item",role:"menuitem",children:ie("span",{className:"k-list-item-text",children:"AVERAGE"})}),ie("li",{className:"k-list-item",role:"menuitem",children:ie("span",{className:"k-list-item-text",children:"COUNT"})})]});return Ea("div",{...l,className:i(Pn,e.className),children:[ie("div",{className:"k-spreadsheet-name-editor",children:ie(ne,{placeholder:o,fillMode:"flat","aria-label":"Name editor"})}),Ea("div",{className:"k-spreadsheet-formula-bar",children:[ie("span",{className:"k-separator k-separator-vertical"}),ie(d,{icon:"formula-fx",fillMode:"flat","aria-label":"Formula"}),ie("span",{className:"k-separator k-separator-vertical"}),ie("div",{className:"k-spreadsheet-formula-input k-textbox k-input k-input-flat",role:"combobox",title:"Formula input","aria-haspopup":"menu","aria-expanded":a?"true":"false",...p&&{"aria-controls":p},children:t}),a&&ie("ul",{className:"k-spreadsheet-formula-list",id:p,role:"menu",children:r||m})]})]})};it.states=Cc;it.options=Oc;it.className=Pn;it.defaultOptions=Hr;var Fr="button",Kn=Fr;import{jsx as Dc}from"react/jsx-runtime";var Zo="k-button-group",Pc=[s.disabled],Rc={fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link]},Kc={},T=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return Dc("div",{role:"group",...r,className:i(e.className,Zo,M(Zo,{fillMode:t}),I(Zo,{disabled:o}),{[`${Zo}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};T.states=Pc;T.options=Rc;T.className=Zo;T.defaultOptions=Kc;T.moduleName=Fr;T.folderName=Kn;T.ariaSpec={selector:".k-button-group",rules:[{selector:".k-button-group:not(.k-split-button)",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-button-group.k-disabled",attribute:"aria-disabled=true",usage:"The attribute is rendered only when the entire button group is disabled."},{selector:".k-b