UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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