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