UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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