UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 51.6 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var T=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),w=(e,t)=>{let{valid:o,invalid:n,hover:i,focus:l,checked:d,active:c,selected:m,disabled:f,indeterminate:x,loading:L,empty:g,readonly:C,highlighted:K,...O}=t;return s({"k-valid":o,"k-invalid":n,"k-hover":i,"k-focus":l,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":f,"k-indeterminate":x&&!d,"k-loading":L,"k-empty":g,"k-readonly":C,"k-highlighted":K},Object.keys(O).reduce((I,S)=>(S.startsWith("k-")?I[S]=O[S]:I[`k-${S}`]=O[S],I),{}))};function Lo(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var r={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"},u={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},ee={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},b={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},a={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var gt={};function M(e){return gt[e]=(gt[e]||0)+1,`k-${e}-${gt[e]}`}import{Fragment as Ui,jsx as vo}from"react/jsx-runtime";var kt="k-font-icon",Di=[],Bi={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info]},zi={},Ve=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:l,...d}=e;return n?vo("span",{...d,className:s(e.className,kt,T(kt,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):vo(Ui,{})};Ve.states=Di;Ve.options=Bi;Ve.className=kt;Ve.defaultOptions=zi;var go=Ve;import{Fragment as Gi,jsx as nt}from"react/jsx-runtime";var It="k-svg-icon",Fi=[],Vi={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info],variant:[ee.outline,ee.solid,ee.duotone]},St={viewBox:"0 0 24 24",variant:ee.outline},Ge=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:l=St.viewBox,variant:d=St.variant,icon:c,...m}=e;if(!c)return nt(Gi,{});if(c==="none")return nt("span",{...m,className:s(e.className,It,T("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof c=="object"&&c.name&&c.name,x=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return nt("span",{...m,className:s(e.className,It,T("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:nt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:c?void 0:e.children})})};Ge.states=Fi;Ge.options=Vi;Ge.className=It;Ge.defaultOptions=St;var At=Ge;import*as Ct from"@progress/kendo-svg-icons";var ko="icon",Io="icons";import{useContext as $i}from"react";import{createContext as Xi}from"react";var So=Xi({iconsType:"svg"});import{Fragment as Ao,jsx as Xe}from"react/jsx-runtime";var at="k-icon",qi=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Wi=[],Ji={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info],variant:[ee.outline,ee.solid,ee.duotone]},st={viewBox:"0 0 24 24",type:"svg",variant:ee.outline},v=e=>{let{iconsType:t}=$i(So),{size:o,themeColor:n,icon:i,type:l=t||st.type,rotate:d,flip:c,viewBox:m=st.viewBox,variant:f=st.variant,...x}=e;if(!i)return Xe(Ao,{});if((t||l)==="svg"){if(i==="none")return Xe(At,{...x,className:s(e.className,at),icon:i,size:o,variant:f});let g=Ct[i]?i:qi(`${i}-icon`);return Ct[g]?Xe(At,{...x,className:s(e.className,at),icon:Ct[g],size:o,themeColor:n,rotate:d,flip:c,viewBox:m,variant:f}):Xe(Ao,{})}return Xe(go,{...x,className:s(e.className,at),icon:i,size:o,themeColor:n,rotate:d,flip:c})};v.states=Wi;v.options=Ji;v.defaultOptions=st;v.className=at;v.moduleName=ko;v.folderName=Io;v.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",Co=Tt;import{Fragment as To,jsx as Ae,jsxs as Mo}from"react/jsx-runtime";var $e="k-button",Yi=["icon-button"],Qi=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],Zi={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[u.undefined,u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.inverse]},Mt={showArrow:!1,arrowIconName:"chevron-down"},h=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:l,showArrow:d=Mt.showArrow,arrowIconName:c=Mt.arrowIconName,variant:m,hover:f,focus:x,active:L,selected:g,disabled:C,togglable:K,ariaDisabled:O,icon:I,iconSize:S,text:D,iconClassName:ie,className:J,...Ne}=e,Le=I!=null,Ue=e.children!==void 0;return Mo(t,{className:s(J,$e,Lo($e,m),T($e,{size:o,rounded:n,fillMode:i,themeColor:l}),w($e,{hover:f,focus:x,active:L,disabled:C||O,selected:g}),{"k-icon-button":!D&&!Ue&&Le}),"aria-pressed":K?g?"true":"false":void 0,...Ne,"aria-disabled":O?"true":void 0,disabled:C||void 0,children:[typeof I=="string"&&I&&Ae(v,{className:s(ie,"k-button-icon"),icon:I,size:S}),I&&typeof I!="string"&&Ae(To,{children:I}),D?Mo(To,{children:[D&&Ae("span",{className:"k-button-text",children:D}),e.children]}):e.children&&Ae("span",{className:"k-button-text",children:e.children}),d&&Ae("span",{className:"k-menu-button-arrow k-button-arrow",children:Ae(v,{icon:c})})]})};h.states=Qi;h.options=Zi;h.variants=Yi;h.className=$e;h.defaultOptions=Mt;h.moduleName=Tt;h.folderName=Co;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."}]};import{jsx as ji}from"react/jsx-runtime";var Eo=e=>ji(h,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as en}from"react/jsx-runtime";var yo=e=>en(h,{icon:"folder",children:"Button",...e});import{jsx as tn}from"react/jsx-runtime";var ve=e=>tn(h,{children:"Button",...e});import{jsx as Et}from"react/jsx-runtime";var on=h.options,nn=h.states,an={...h.defaultOptions,variant:"text"},sn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],rn=[],Ce=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Et(Eo,{...o,icon:"star"});case"icon-and-text":return Et(yo,{...o,icon:"star",children:"Button"});default:return Et(ve,{...o,children:"Button"})}};Ce.options=on;Ce.states=nn;Ce.variants=sn;Ce.defaultOptions=an;Ce.modifiers=rn;Ce.className=h.className;var qe="input",rt=qe;import{jsx as pn}from"react/jsx-runtime";var lt="k-input",ln=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],dn={size:[r.undefined,r.small,r.medium,r.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[u.undefined,u.solid,u.flat,u.outline]},cn={},R=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:d,readonly:c,size:m,rounded:f,fillMode:x,...L}=e;return pn("span",{...L,className:s(e.className,lt,T(lt,{size:m,rounded:f,fillMode:x}),w(lt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:d,readonly:c}))})};R.states=ln;R.options=dn;R.className=lt;R.defaultOptions=cn;R.moduleName=qe;R.folderName=rt;import{jsx as bn}from"react/jsx-runtime";var dt="k-picker",mn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],un={size:[r.undefined,r.small,r.medium,r.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[u.undefined,u.solid,u.flat,u.outline]},fn={},le=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:d,readonly:c,size:m,rounded:f,fillMode:x,...L}=e;return bn("span",{...L,className:s(e.className,dt,T(dt,{size:m,rounded:f,fillMode:x}),w(dt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:d,readonly:c})),children:e.children})};le.states=mn;le.options=un;le.className=dt;le.defaultOptions=fn;le.moduleName=qe;le.folderName=rt;import{Fragment as Nn,jsx as yt}from"react/jsx-runtime";var Oo="k-clear-value",xn=[a.disabled,a.loading,a.readonly],hn={},Y=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?yt(Nn,{}):yt("span",{className:s(e.className,Oo),children:yt(v,{icon:"x"})})};Y.states=xn;Y.options=hn;Y.className=Oo;import{jsx as gn}from"react/jsx-runtime";var Ot="k-input-inner",Ln=[],vn={},ct={type:"text",autocomplete:"off",value:"",placeholder:""},Q=e=>{let{value:t=ct.value,type:o=ct.type,placeholder:n=ct.placeholder,autocomplete:i=ct.autocomplete,disabled:l,readOnly:d,...c}=e;return gn("input",{...c,type:o,className:s(e.className,Ot,T(Ot,e)),placeholder:n,autoComplete:i,defaultValue:t,disabled:l||void 0,readOnly:d||void 0})};Q.states=Ln;Q.options=vn;Q.className=Ot;import{jsx as wo,jsxs as Sn}from"react/jsx-runtime";var wt="k-input-inner",kn=[],In={},We=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:l,...d}=e;return Sn("span",{...d,className:s(e.className,wt,T(wt,e)),children:[i,!i&&l&&wo(v,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&wo("span",{className:"k-input-value-text",children:t})]})};We.states=kn;We.options=In;We.className=wt;import{jsx as Tn}from"react/jsx-runtime";var Rt="k-input-inner",An=[],Cn={},Ro={value:"",placeholder:""},Kt=e=>{let{value:t=Ro.value,placeholder:o=Ro.placeholder,rows:n,disabled:i,...l}=e;return Tn("textarea",{...l,className:s(e.className,Rt,T(Rt,e)),placeholder:o,rows:n,defaultValue:t,disabled:i||void 0})};Kt.states=An;Kt.options=Cn;Kt.className=Rt;import{Fragment as En,jsx as Ko}from"react/jsx-runtime";var _o="k-input-loading-icon",Mn=[a.disabled,a.loading],$=e=>{let{disabled:t,loading:o}=e;return t||!o?Ko(En,{}):Ko("span",{className:s(e.className,_o,"k-icon k-i-loading")})};$.states=Mn;$.className=_o;import{Fragment as wn,jsx as Po}from"react/jsx-runtime";var Ho="k-input-validation-icon",yn=[a.valid,a.invalid,a.disabled,a.loading],On={},X=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,l=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?Po(wn,{}):Po(v,{className:s(Ho),icon:l})};X.states=yn;X.options=On;X.className=Ho;import{Fragment as _n,jsx as Do}from"react/jsx-runtime";var Rn="k-input-prefix",Kn={direction:"horizontal"},de=e=>{let{direction:t=Kn.direction,...o}=e;return e.children?Do("span",{...o,className:s(Rn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Do(_n,{})};import{Fragment as Dn,jsx as Bo}from"react/jsx-runtime";var Pn="k-input-suffix",Hn={direction:"horizontal"},ce=e=>{let{direction:t=Hn.direction,...o}=e;return e.children?Bo("span",{...o,className:s(Pn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Bo(Dn,{})};import{jsx as Ql}from"react/jsx-runtime";import{jsx as zn}from"react/jsx-runtime";var Bn="k-input-suffix-text",_t=e=>{let{children:t,...o}=e;return zn("span",{...o,className:s(Bn,e.className),children:t})};import{jsx as Fn}from"react/jsx-runtime";var zo="k-input-separator",Un={direction:"vertical"},ne=e=>{let{direction:t=Un.direction,...o}=e;return Fn("span",{...o,className:s(zo,e.className,{[`${zo}-${t}`]:t})})};import{Fragment as Uo,jsx as te,jsxs as Pt}from"react/jsx-runtime";var Vn=R.states,Gn=R.defaultOptions,Xn=R.options,$n=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],qn=[],Te=e=>{let{modifiers:t,valid:o,invalid:n,loading:i,disabled:l,readonly:d,...c}=e,m=t?.prefix,f=t?.suffix,x=t?.["clear-button"],L=t?.["validation-icon"],g=t?.separators;return Pt(R,{...c,valid:o,invalid:n,loading:i,disabled:l,readonly:d,style:{width:300},children:[m&&Pt(Uo,{children:[te(de,{children:te(v,{icon:"lock"})}),g&&te(ne,{})]}),te(Q,{placeholder:"Placeholder",value:"Value"}),L&&te(X,{valid:o,invalid:n,loading:i,disabled:l}),te($,{loading:i,disabled:l}),x&&te(Y,{loading:i,disabled:l,readonly:d,value:"Value"}),f&&Pt(Uo,{children:[g&&te(ne,{}),te(ce,{children:te(ve,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Te.options=Xn;Te.states=Vn;Te.variants=qn;Te.defaultOptions=Gn;Te.modifiers=$n;Te.className=R.className;import{jsx as Fo,jsxs as Zn}from"react/jsx-runtime";var Vo="k-spin-button",Yn=[],Qn={size:[r.undefined,r.small,r.medium,r.large],fillMode:[u.undefined,u.solid,u.flat,u.outline,u.clear,u.link]},Ht={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},pe=e=>{let{size:t,fillMode:o,disabled:n,increaseLabel:i=Ht.increaseLabel,decreaseLabel:l=Ht.decreaseLabel,...d}=e;return Zn("span",{...d,className:s(Vo,e.className),children:[Fo(h,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:n,"aria-label":i}),Fo(h,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:n,"aria-label":l})]})};pe.states=Yn;pe.options=Qn;pe.className=Vo;pe.defaultOptions=Ht;pe.moduleName=null;pe.folderName=null;var Go="numeric-textbox",Xo="numerictextbox";import{Fragment as $o,jsx as ae,jsxs as Dt}from"react/jsx-runtime";var qo="k-numerictextbox",jn=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],ea={size:[r.undefined,r.small,r.medium,r.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[u.undefined,u.solid,u.flat,u.outline]},pt={showSpinButton:!0,showClearButton:!0,separators:!0},k=e=>{let{size:t,rounded:o,fillMode:n,separators:i=pt.separators,showClearButton:l=pt.showClearButton,showSpinButton:d=pt.showSpinButton,prefix:c,suffix:m,value:f,placeholder:x,hover:L,focus:g,valid:C,invalid:K,required:O,loading:I,disabled:S,readonly:D,id:ie,"aria-label":J,"aria-describedby":Ne,...Le}=e;return Dt(R,{...Le,size:t,rounded:o,fillMode:n,hover:L,focus:g,valid:C,invalid:K,required:O,loading:I,disabled:S,readonly:D,className:s(e.className,qo),children:[c&&Dt($o,{children:[ae(de,{children:c}),i&&ae(ne,{})]}),ae(Q,{id:ie,placeholder:x,value:f,role:"spinbutton",disabled:S,"aria-label":J,"aria-describedby":Ne,"aria-invalid":K?"true":void 0}),ae(X,{valid:C,invalid:K,loading:I,disabled:S}),ae($,{loading:I,disabled:S}),l&&ae(Y,{loading:I,disabled:S,readonly:D,value:f}),m&&Dt($o,{children:[i&&ae(ne,{}),ae(ce,{children:m})]}),d&&ae(pe,{className:"k-input-spinner",size:t,fillMode:n,disabled:S})]})};k.states=jn;k.options=ea;k.className=qo;k.defaultOptions=pt;k.moduleName=Go;k.folderName=Xo;k.ariaSpec={selector:".k-numerictextbox",rules:[{selector:".k-numerictextbox > .k-input-inner",attribute:"role=spinbutton",usage:"Announces the spin button capabilities of the NumericTextBox."},{selector:".k-numerictextbox > .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-numerictextbox > .k-input-inner",attribute:"aria-valuenow (when has value)",usage:"Announces the current value of the component."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemin (when has min)",usage:"Announces the minimum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemax (when has max)",usage:"Announces the maximum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the NumericTextBox is in an invalid state."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message."},{selector:".k-numerictextbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"role=button or nodeName=button",usage:"Describes the role of the spin buttons."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"aria-label",usage:"The button element requires discernible text."},{selector:".k-numerictextbox.k-disabled .k-spin-button > .k-button",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."}]};var Je=k;import{jsx as ta}from"react/jsx-runtime";var Wo=e=>ta(Je,{...e});var Bt="popup",Jo=Bt;import{jsx as Yo}from"react/jsx-runtime";var Qo="k-animation-container",oa=[],ia={},zt={positionMode:"absolute",shown:!0},oe=e=>{let{positionMode:t=zt.positionMode,shown:o=zt.shown,animationStyle:n,offset:i,...l}=e;return Yo("div",{...l,style:{...i,...e.style},className:s(e.className,Qo,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Yo("div",{className:"k-child-animation-container",style:n,children:e.children})})};oe.states=oa;oe.options=ia;oe.className=Qo;oe.defaultOptions=zt;oe.moduleName=Bt;oe.folderName=Jo;var Ut="popup",Zo=Ut;import{jsx as jo}from"react/jsx-runtime";var ei="k-popup",na=[],aa={},ti={positionMode:"absolute"},se=e=>{let{offset:t,positionMode:o=ti.positionMode,animationStyle:n,containerClassName:i,containerRole:l,containerAriaLabel:d,...c}=e;return jo(oe,{positionMode:o,offset:t,animationStyle:n,className:i,role:l,"aria-label":d,children:jo("div",{...c,className:s(e.className,ei),children:e.children})})};se.states=na;se.options=aa;se.className=ei;se.defaultOptions=ti;se.moduleName=Ut;se.folderName=Zo;se.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 Ft="action-buttons",oi=Ft;import{jsx as la}from"react/jsx-runtime";var mt="k-actions",sa=[],ra={},Vt={alignment:"start",orientation:"horizontal"},me=e=>{let{alignment:t=Vt.alignment,orientation:o=Vt.orientation,...n}=e;return la("div",{...n,className:s(mt,{[`${mt}-${t}`]:t,[`${mt}-${o}`]:o},e.className),children:e.children})};me.states=sa;me.options=ra;me.className=mt;me.defaultOptions=Vt;me.moduleName=Ft;me.folderName=oi;import{jsx as ca}from"react/jsx-runtime";var da="k-actionsheet-footer",ii={alignment:"stretched",orientation:"horizontal"},Me=e=>{let{alignment:t=ii.alignment,orientation:o=ii.orientation,template:n,as:i=n?"div":me,...l}=e;return ca(i,{...l,...!n&&{alignment:t,orientation:o},className:s(e.className,da),children:e.children})};var Gt="searchbox",ni=Gt;import{jsx as Ye,jsxs as ua}from"react/jsx-runtime";var ai="k-searchbox",pa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],ma={size:[r.undefined,r.small,r.medium,r.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[u.undefined,u.solid,u.flat,u.outline]},Xt={showIcon:!0,icon:"search"},q=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:l,hover:d,focus:c,valid:m,invalid:f,required:x,loading:L,disabled:g,showIcon:C=Xt.showIcon,icon:K=Xt.icon,"aria-label":O,...I}=e;return ua(R,{...I,size:n,rounded:i,fillMode:l,hover:d,focus:c,valid:m,invalid:f,required:x,loading:L,disabled:g,className:s(e.className,ai),children:[C&&Ye(v,{className:"k-input-icon",icon:K}),Ye(Q,{placeholder:o,value:t,"aria-label":O}),Ye($,{...e}),Ye(X,{...e}),Ye(Y,{...e})]})};q.states=pa;q.options=ma;q.className=ai;q.defaultOptions=Xt;q.moduleName=Gt;q.folderName=ni;import{jsx as Kc}from"react/jsx-runtime";var $t="textbox",si=$t;import{Fragment as ri,jsx as ue,jsxs as qt}from"react/jsx-runtime";var li="k-textbox",fa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ba={size:[r.undefined,r.small,r.medium,r.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[u.undefined,u.solid,u.flat,u.outline]},ut={showClearButton:!0,showValidationIcon:!0,separators:!0},_=e=>{let{size:t,rounded:o,fillMode:n,separators:i=ut.separators,showClearButton:l=ut.showClearButton,showValidationIcon:d=ut.showValidationIcon,prefix:c,suffix:m,type:f,value:x,placeholder:L,hover:g,focus:C,valid:K,invalid:O,required:I,loading:S,disabled:D,readonly:ie,id:J,"aria-label":Ne,"aria-describedby":Le,...Ue}=e;return qt(R,{...Ue,size:t,rounded:o,fillMode:n,hover:g,focus:C,valid:K,invalid:O,required:I,loading:S,disabled:D,readonly:ie,className:s(e.className,li),children:[c&&qt(ri,{children:[ue(de,{children:c}),i&&ue(ne,{})]}),ue(Q,{id:J,placeholder:L,value:x,type:f,disabled:D,"aria-label":Ne,"aria-describedby":Le,"aria-invalid":O?"true":void 0}),d&&ue(X,{valid:K,invalid:O,loading:S,disabled:D}),ue($,{loading:S,disabled:D}),l&&ue(Y,{loading:S,disabled:D,readonly:ie,value:x}),m&&qt(ri,{children:[i&&ue(ne,{}),ue(ce,{children:m})]})]})};_.states=fa;_.options=ba;_.className=li;_.defaultOptions=ut;_.moduleName=$t;_.folderName=si;_.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 Qe=_;import{jsx as xa}from"react/jsx-runtime";var di=e=>xa(Qe,{...e});import{Fragment as Zc,jsx as Qc}from"react/jsx-runtime";import{Fragment as np,jsx as ip}from"react/jsx-runtime";import{jsx as lp}from"react/jsx-runtime";import{jsx as Wt}from"react/jsx-runtime";var ha=_.states,Na=_.defaultOptions,La=_.options,va=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ga=[],Ee=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t?.[i]?Wt(v,{icon:"lock"}):void 0;break;case"suffix":n.suffix=t?.[i]?Wt(ve,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":n.showClearButton=t?.[i];break;default:break}}),Wt(di,{value:"Value",style:{width:300},...o,...n})};Ee.options=La;Ee.states=ha;Ee.variants=ga;Ee.defaultOptions=Na;Ee.modifiers=va;Ee.className=_.className;import{jsx as fe,jsxs as Jt}from"react/jsx-runtime";var ci="k-actionsheet-titlebar",ka={},Z=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:l,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,titleId:x,children:L,...g}=e;return Jt("div",{...g,className:s(e.className,ci),children:[Jt("div",{className:"k-actionsheet-titlebar-group",children:[n&&fe("div",{className:"k-actionsheet-actions",children:n}),!L&&Jt("div",{className:"k-actionsheet-title",id:x,children:[t&&fe("div",{className:"k-text-center",children:t}),o&&fe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),L&&fe("div",{className:"k-actionsheet-title",id:x,children:L}),i&&fe("div",{className:"k-actionsheet-actions",children:i})]}),(d||l)&&fe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?fe(_,{value:c,placeholder:m,size:f?"large":"medium","aria-label":t||m||"Input"}):fe(q,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};Z.className=ci;Z.defaultOptions=ka;import{jsx as Yt,jsxs as Ca}from"react/jsx-runtime";var Qt="k-actionsheet-view",Ia=[],Sa={},Aa={},ye=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:l,titleId:d,...c}=e,m=i?.type===Z&&Yt(Z,{adaptive:t,titleId:d,...i?.props}),f=l?.type===Me&&Yt(Me,{...l?.props});return Ca("div",{...c,className:s(e.className,Qt,{[`${Qt}-animated`]:o}),children:[m,Yt("div",{className:"k-actionsheet-content",children:n}),f]})};ye.states=Ia;ye.options=Sa;ye.className=Qt;ye.defaultOptions=Aa;var Ze="action-sheet",ft=Ze;var Zt="overlay",pi=Zt;import{jsx as ya}from"react/jsx-runtime";var mi="k-overlay",Ta=[],Ma={},Ea={},be=e=>{let{...t}=e;return ya("div",{...t,className:s(e.className,mi),children:e.children})};be.states=Ta;be.options=Ma;be.className=mi;be.defaultOptions=Ea;be.moduleName=Zt;be.folderName=pi;import{jsx as bt,jsxs as Ra}from"react/jsx-runtime";var ui="k-actionsheet",Oa=[],wa={},je={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},P=e=>{let{side:t=je.side,fullscreen:o=je.fullscreen,adaptive:n=je.adaptive,overlay:i=je.overlay,template:l,children:d,header:c,footer:m,id:f,...x}=e,L=f&&!l&&c?`${f}-title`:void 0;return Ra("div",{className:"k-actionsheet-container",children:[i&&bt(be,{}),bt(oe,{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:bt("div",{...x,id:f,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":L,className:s(e.className,ui,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||bt(ye,{header:c,footer:m,adaptive:n,titleId:L,...e,children:d})})})]})};P.states=Oa;P.options=wa;P.className=ui;P.defaultOptions=je;P.moduleName=Ze;P.folderName=ft;P.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 Ha}from"react/jsx-runtime";var fi="k-actionsheet-container",Ka=[],_a={},Pa={},Oe=e=>{let{children:t,...o}=e;return Ha("div",{...o,className:fi,children:t})};Oe.states=Ka;Oe.options=_a;Oe.className=fi;Oe.defaultOptions=Pa;Oe.moduleName=Ze;Oe.folderName=ft;import{jsx as Da}from"react/jsx-runtime";var jt=e=>{let{...t}=e;return Da("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};import{Fragment as za,jsx as et,jsxs as eo}from"react/jsx-runtime";var to="k-actionsheet-item",Ba=[a.hover,a.focus,a.selected,a.disabled],xe=e=>{let{iconName:t,text:o,description:n,hover:i,focus:l,selected:d,disabled:c,...m}=e;return eo("span",{...m,className:s(e.className,to,w(to,{hover:i,focus:l,selected:d,disabled:c})),children:[!e.children&&et(za,{children:eo("span",{className:"k-actionsheet-action",children:[t&&et("span",{className:"k-icon-wrap",children:et(v,{className:"k-actionsheet-item-icon",icon:t})}),eo("span",{className:"k-actionsheet-item-text",children:[o&&et("span",{className:"k-actionsheet-item-title",children:o}),n&&et("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};xe.states=Ba;xe.className=to;import{jsx as rm,jsxs as lm}from"react/jsx-runtime";import{jsx as mm}from"react/jsx-runtime";import{jsx as xm}from"react/jsx-runtime";import{jsx as vm}from"react/jsx-runtime";import{jsx as H,jsxs as oo}from"react/jsx-runtime";var Ua=P.options,Fa=P.states,xi={...P.defaultOptions,variant:"normal"},Va=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ga=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],we=e=>{let{variant:t,modifiers:o,...n}={...xi,...e},i={},l=oo(jt,{children:[H(xe,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),H(xe,{text:"Add to Favorites",iconName:"heart"}),H(xe,{text:"Upload New",iconName:"upload",disabled:!0}),H("hr",{className:"k-hr"}),H(xe,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":i.actionsStart=!!o?.[m],i.actionsEnd=!!o?.[m];break;case"subtitle":i.subtitle=o?.[m]?d:void 0;break;case"footer":i.footer=!!o?.[m];break;default:break}}),t==="adaptive"?H(P,{...n,adaptive:!0,fullscreen:i.fullScreen,header:H(Z,{actionsStart:i.actionsStart?H(h,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?H(h,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:i.subtitle}),footer:i.footer?oo(Me,{alignment:"stretched",children:[H(h,{text:"Cancel",size:"large",themeColor:"base"}),H(h,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):H(P,{...n,fullscreen:i.fullScreen,header:H(Z,{actionsStart:i.actionsStart?H(h,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?H(h,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?oo(Me,{alignment:"stretched",children:[H(h,{text:"Apply",themeColor:"primary"}),H(h,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};we.options=Ua;we.states=Fa;we.variants=Va;we.defaultOptions=xi;we.modifiers=Ga;we.className=P.className;import ao from"react";import{jsx as hi}from"react/jsx-runtime";var Xa="k-list-group-sticky-header",io=e=>hi("div",{className:s(Xa,e.className),children:hi("div",{className:"k-list-header-text",children:e.children})});import{jsx as qa}from"react/jsx-runtime";var $a="k-no-data",no=e=>{let{live:t,...o}=e;return qa("span",{...o,className:s($a,e.className),"aria-live":t?"polite":void 0,children:e.children})};var ge="list",Re=ge;import{jsx as Ni,jsxs as Li}from"react/jsx-runtime";var so="k-list",Wa=[],Ja={size:[r.undefined,r.small,r.medium,r.large]},Ya={},E=e=>{let{size:t,virtualization:o,children:n,header:i,selectAll:l,optionLabel:d,customValue:c,noData:m,screenReaders:f,...x}=e,g=ao.Children.toArray(n)[0],C=g?.props?.children?ao.Children.count(g.props.children):ao.Children.count(n);return Li("div",{...x,className:s(e.className,so,T(so,{size:t}),{"k-virtual-list":o}),children:[d,l,c,i&&Ni(io,{children:i}),n||(m!==void 0?m:Ni(no,{live:!0,children:"No data found."})),f&&n&&Li(no,{className:"k-sr-only",live:!0,children:[C," items found."]})]})};E.states=Wa;E.options=Ja;E.className=so;E.defaultOptions=Ya;E.moduleName=ge;E.folderName=Re;E.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 es}from"react/jsx-runtime";var vi="k-list-container",Qa=[],Za={},ja={},Ke=e=>{let{...t}=e;return es("div",{...t,className:s(e.className,vi),children:e.children})};Ke.states=Qa;Ke.options=Za;Ke.className=vi;Ke.defaultOptions=ja;Ke.moduleName=ge;Ke.folderName=Re;var ke="checkbox",_e=ke;import{jsx as gi}from"react/jsx-runtime";var xt="k-checkbox",ts=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],os={size:[r.undefined,r.small,r.medium,r.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},is={},G=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:l,disabled:d,invalid:c,valid:m,required:f,size:x,rounded:L,wrapperRole:g,...C}=e;return gi("span",{className:"k-checkbox-wrap",role:g,children:gi("input",{...C,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:s(e.className,xt,T(xt,{size:x,rounded:L}),w(xt,{hover:i,focus:l,disabled:d,invalid:c,valid:m,indeterminate:n,checked:o}))})})};G.states=ts;G.options=os;G.className=xt;G.defaultOptions=is;G.moduleName=ke;G.folderName=_e;G.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 j=G;import{jsx as ss}from"react/jsx-runtime";var ki="k-checkbox-list",ns=[],as={},Ii={layout:"vertical"},z=e=>{let{layout:t=Ii.layout,...o}=e;return ss("ul",{...o,className:s(e.className,ki,{[`k-list-${t}`]:t}),children:e.children})};z.states=ns;z.options=as;z.className=ki;z.defaultOptions=Ii;z.moduleName=ke;z.folderName=_e;import{jsx as cs}from"react/jsx-runtime";var Si="k-checkbox-list-item",rs=[],ls={},ds={},U=e=>{let{...t}=e;return cs("li",{...t,className:s(e.className,Si),children:e.children})};U.states=rs;U.options=ls;U.className=Si;U.defaultOptions=ds;U.moduleName=ke;U.folderName=_e;import{Fragment as ps,jsx as Ai,jsxs as ms}from"react/jsx-runtime";var re=({children:e="Label",id:t="cb-label-after",...o})=>ms(ps,{children:[Ai(j,{id:t,...o}),Ai("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Eu,jsx as Mu,jsxs as yu}from"react/jsx-runtime";import{Fragment as _u,jsx as Ku,jsxs as Pu}from"react/jsx-runtime";import{Fragment as Uu,jsx as zu,jsxs as Fu}from"react/jsx-runtime";import{jsx as $u}from"react/jsx-runtime";import{jsx as Yu}from"react/jsx-runtime";import{jsx as ef}from"react/jsx-runtime";import{jsx as W,jsxs as Ci}from"react/jsx-runtime";var us=z.options,fs=z.states,bs={...z.defaultOptions,variant:"vertical"},xs=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],hs=[],Pe=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ci(z,{layout:"horizontal",...o,children:[W(U,{children:W(re,{id:M("cb"),defaultChecked:!0,children:"Label"})}),W(U,{children:W(re,{id:M("cb"),children:"Label"})}),W(U,{children:W(re,{id:M("cb"),children:"Label"})})]}):Ci(z,{...o,children:[W(U,{children:W(re,{id:M("cb"),defaultChecked:!0,children:"Label"})}),W(U,{children:W(re,{id:M("cb"),children:"Label"})}),W(U,{children:W(re,{id:M("cb"),children:"Label"})})]})};Pe.options=us;Pe.states=fs;Pe.variants=xs;Pe.defaultOptions=bs;Pe.modifiers=hs;Pe.className=z.className;import{jsx as Is}from"react/jsx-runtime";var Ns=j.options,Ls=j.states,vs=j.defaultOptions,gs=[],ks=[],He=e=>Is(re,{id:M("checkbox"),...e,defaultChecked:!0,children:"Label"});He.options=Ns;He.states=Ls;He.variants=gs;He.defaultOptions=vs;He.modifiers=ks;He.className=j.className;import{jsx as Ie,jsxs as Ts}from"react/jsx-runtime";var ro="k-list-item",Ss=[a.hover,a.focus,a.selected,a.disabled],As={},Cs={},A=e=>{let{text:t,groupLabel:o,group:n,iconName:i,iconClassName:l,showCheckbox:d,checked:c,hover:m,focus:f,selected:x,disabled:L,actions:g,description:C,id:K,...O}=e,I=t||e.children;return Ts("li",{...O,id:K,role:n?"presentation":"option",tabIndex:n?void 0:f?0:-1,"aria-selected":!n&&x?"true":n?void 0:"false","aria-disabled":!n&&L?"true":void 0,className:s(e.className,n?"k-list-group-item":ro,w(ro,{hover:m,focus:f,disabled:L,selected:x})),children:[d&&Ie(G,{checked:c}),i&&Ie("span",{className:"k-list-item-icon-wrapper",children:Ie(v,{icon:i,className:s("k-list-item-icon",l)})}),Ie("span",{className:"k-list-item-text",children:I}),g&&Ie("div",{className:"k-list-item-actions",children:g}),C&&Ie("span",{className:"k-list-item-description",children:C}),o&&o!==""&&Ie("div",{className:"k-list-item-group-label",children:o})]})};A.states=Ss;A.options=As;A.className=ro;A.defaultOptions=Cs;A.moduleName=ge;A.folderName=Re;A.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 Es}from"react/jsx-runtime";var Ms="k-list-ul",Se=e=>{let{children:t,role:o,id:n,...i}=e;return Es("ul",{...i,id:n,role:o,className:s(Ms,e.className),children:t})};Se.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 lo,jsxs as Os}from"react/jsx-runtime";var ys="k-list-content",F=e=>{let{virtualization:t,grouping:o,"aria-label":n,"aria-labelledby":i,listboxId:l,...d}=e;return Os("div",{...d,className:s(ys,e.className),role:o?"listbox":void 0,id:o?l:void 0,"aria-label":o?n:void 0,"aria-labelledby":o?i:void 0,children:[o?e.children:lo(Se,{role:"listbox",id:l,"aria-label":n,"aria-labelledby":i,children:e.children}),t&&lo("div",{className:"k-height-container",children:lo("div",{})})]})};F.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 co,jsxs as _s}from"react/jsx-runtime";var ht="k-list-sticky-header",ws=[a.hover,a.focus,a.selected],Rs={},Ks={},Nt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:n,indeterminate:i,hover:l,focus:d,selected:c,...m}=e;return co("div",{...m,className:s(ht,e.className),children:_s("div",{className:s(`${ht}-item`,w(`${ht}-item`,{hover:l,focus:d,selected:c})),children:[o&&co(G,{checked:n,indeterminate:i,"aria-label":t}),co("span",{className:"k-list-item-text",children:t})]})})};Nt.states=ws;Nt.options=Rs;Nt.className=ht;Nt.defaultOptions=Ks;import{Fragment as Jf,jsx as Wf,jsxs as Yf}from"react/jsx-runtime";import{jsx as po,jsxs as Hs}from"react/jsx-runtime";var Ps="k-list-group-item",tt=e=>{let{groupIconName:t,...o}=e;return Hs("li",{...o,role:"presentation",className:s(Ps,e.className),children:[t&&po("span",{className:"k-list-item-icon-wrapper",children:po(v,{icon:t,className:"k-list-item-icon"})}),po("span",{className:"k-list-item-text",children:e.children})]})};tt.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 Us}from"react/jsx-runtime";var mo="k-list-optionlabel",Ds=[a.hover,a.focus,a.selected,a.disabled],Bs={},zs={},Lt=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...d}=e;return Us("div",{...d,className:s(mo,w(mo,{hover:o,focus:n,selected:i,disabled:l})),children:t})};Lt.states=Ds;Lt.options=Bs;Lt.className=mo;Lt.defaultOptions=zs;import{jsx as Xs}from"react/jsx-runtime";var uo="k-list-custom-value",Fs=[a.hover,a.focus,a.selected,a.disabled],Vs={},Gs={},vt=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...d}=e;return Xs("div",{...d,className:s(uo,w(uo,{hover:o,focus:n,selected:i,disabled:l})),children:t})};vt.states=Fs;vt.options=Vs;vt.className=uo;vt.defaultOptions=Gs;import{Fragment as mb,jsx as pb,jsxs as ub}from"react/jsx-runtime";import{Fragment as Lb,jsx as Nb,jsxs as vb}from"react/jsx-runtime";import{Fragment as Tb,jsx as Ab,jsxs as Cb}from"react/jsx-runtime";import{Fragment as Kb,jsx as wb,jsxs as Rb}from"react/jsx-runtime";import{jsx as Db}from"react/jsx-runtime";import{Fragment as Gb,jsx as Vb,jsxs as Xb}from"react/jsx-runtime";var Ti="dropdown-list",Mi="dropdownlist";import{Fragment as Ws,jsx as V,jsxs as fo}from"react/jsx-runtime";var Ei="k-dropdownlist",$s=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],qs={size:[r.undefined,r.small,r.medium,r.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[u.undefined,u.solid,u.flat,u.outline]},bo={showValue:!0,arrowIconName:"chevron-down"},B=e=>{let{size:t,rounded:o,fillMode:n,arrowIconName:i=bo.arrowIconName,showValue:l=bo.showValue,valueIconName:d,prefix:c,suffix:m,value:f,placeholder:x,hover:L,focus:g,valid:C,invalid:K,required:O,loading:I,disabled:S,readonly:D,popup:ie,opened:J,adaptive:Ne,adaptiveSettings:Le,adaptiveTitle:Ue,adaptiveSubtitle:Ri,adaptiveFilter:Ki,id:Fe,activeDescendant:ho,"aria-label":_i,...Pi}=e,Hi=Fe?`${Fe}-listbox`:void 0,No=Fe?`${Fe}-value`:void 0;return fo(Ws,{children:[fo(le,{...Pi,id:Fe,size:t,rounded:o,fillMode:n,hover:L,focus:g,valid:C,invalid:K,required:O,loading:I,disabled:S,readonly:D,className:s(e.className,Ei,{"k-icon-picker":!l&&d}),role:"combobox","aria-haspopup":"listbox","aria-expanded":J?"true":"false","aria-controls":J?Hi:void 0,"aria-activedescendant":J&&ho?ho:void 0,"aria-describedby":J?No:void 0,"aria-disabled":S?"true":void 0,"aria-label":_i,tabIndex:0,children:[V(de,{children:c}),V(We,{placeholder:x,value:f,showValue:l,valueIconName:d,id:No}),V(X,{valid:C,invalid:K,loading:I,disabled:S}),V($,{loading:I,disabled:S}),V(ce,{children:m}),V(h,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":x||"Toggle dropdown",tabIndex:-1})]}),J&&ie&&V(se,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:ie}),Ne&&V(P,{adaptive:!0,...Le,header:V(Z,{actionsEnd:V(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:Ki,inputValue:f,inputPlaceholder:x,title:Ue,subtitle:Ri}),children:V("div",{className:"k-list-container",children:V(E,{size:"large",children:fo(F,{"aria-label":"Options",children:[V(A,{text:"List item"}),V(A,{text:"List item"}),V(A,{text:"List item"})]})})})})]})};B.states=$s;B.options=qs;B.className=Ei;B.defaultOptions=bo;B.moduleName=Ti;B.folderName=Mi;B.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."}]};import{jsx as Ax}from"react/jsx-runtime";import{jsx as Ox,jsxs as wx}from"react/jsx-runtime";import{Fragment as Ux,jsx as Bx,jsxs as zx}from"react/jsx-runtime";import{jsx as $x}from"react/jsx-runtime";import{jsx as Zx,jsxs as jx}from"react/jsx-runtime";import{Fragment as lh,jsx as sh,jsxs as rh}from"react/jsx-runtime";import{jsx as uh}from"react/jsx-runtime";import{Fragment as er,jsx as he,jsxs as yi}from"react/jsx-runtime";var Js=B.states,Ys=B.defaultOptions,Qs=B.options,Zs=[{name:"opened",title:"Opened"}],js=[],Be=e=>{let{modifiers:t,...o}=e,n={},i=yi(er,{children:[he("div",{className:"k-list-filter",children:he(q,{})}),he(E,{style:{width:300},size:o.size,children:yi(F,{children:[he(A,{children:"List item"}),he(A,{children:"List item"}),he(A,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(l=>{l==="opened"&&(n.opened=!!t?.[l],n.popup=t?.[l]?i:void 0)}),he("div",{children:he(B,{placeholder:"Value",style:{width:300},...o,...n})})};Be.options=Qs;Be.states=Js;Be.variants=js;Be.defaultOptions=Ys;Be.modifiers=Zs;Be.className=B.className;import{Fragment as _h,jsx as Kh}from"react/jsx-runtime";import{Fragment as Uh,jsx as zh}from"react/jsx-runtime";import{jsx as Xh}from"react/jsx-runtime";import{jsx as xo}from"react/jsx-runtime";var tr=k.states,or=k.defaultOptions,ir=k.options,nr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"spin-button",title:"`Spin` Button"}],ar=[],ze=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t?.[i]?xo(B,{size:o.size,fillMode:"flat",value:"mm"}):void 0;break;case"suffix":n.suffix=t?.[i]?xo(_t,{children:"mm"}):void 0;break;case"clear-button":n.showClearButton=t?.[i];break;case"spin-button":n.showSpinButton=t?.[i];break;default:break}}),xo(Wo,{value:"Value",style:{width:300},...o,...n})};ze.options=ir;ze.states=tr;ze.variants=ar;ze.defaultOptions=or;ze.modifiers=nr;ze.className=k.className;import{Fragment as ot,jsx as N,jsxs as y}from"react/jsx-runtime";var Oi="k-colorgradient-inputs",sr=[],rr={size:[r.undefined,r.small,r.medium,r.large]},wi={mode:"rgba"},it=e=>{let{mode:t=wi.mode,size:o,...n}=e;return y("div",{...n,className:s(Oi,"k-hstack"),children:[N("div",{className:"k-vstack",children:N(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o,"aria-label":"Toggle color input format"})}),t==="rgba"&&y(ot,{children:[y("div",{className:"k-vstack",children:[N(k,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Red channel"}),N("label",{className:"k-colorgradient-input-label",children:"R"})]}),y("div",{className:"k-vstack",children:[N(k,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Green channel"}),N("label",{className:"k-colorgradient-input-label",children:"G"})]}),y("div",{className:"k-vstack",children:[N(k,{showSpinButton:!1,showClearButton:!1,value:"132",size:o,"aria-label":"Blue channel"}),N("label",{className:"k-colorgradient-input-label",children:"B"})]}),y("div",{className:"k-vstack",children:[N(k,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o,"aria-label":"Alpha channel"}),N("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&y(ot,{children:[y("div",{className:"k-vstack",children:[N(k,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Red channel"}),N("label",{className:"k-colorgradient-input-label",children:"R"})]}),y("div",{className:"k-vstack",children:[N(k,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Green channel"}),N("label",{className:"k-colorgradient-input-label",children:"G"})]}),y("div",{className:"k-vstack",children:[N(k,{showSpinButton:!1,showClearButton:!1,value:"132","aria-label":"Blue channel"}),N("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&y(ot,{children:[y("div",{className:"k-vstack",children:[N(k,{showSpinButton:!1,showClearButton:!1,value:"132","aria