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