UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 25.9 kB
var No=Object.create;var Te=Object.defineProperty;var Lo=Object.getOwnPropertyDescriptor;var vo=Object.getOwnPropertyNames;var So=Object.getPrototypeOf,Io=Object.prototype.hasOwnProperty;var go=(e,t)=>{for(var o in t)Te(e,o,{get:t[o],enumerable:!0})},St=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vo(t))!Io.call(e,a)&&a!==o&&Te(e,a,{get:()=>t[a],enumerable:!(i=Lo(t,a))||i.enumerable});return e};var ko=(e,t,o)=>(o=e!=null?No(So(e)):{},St(t||!e||!e.__esModule?Te(o,"default",{value:e,enumerable:!0}):o,e)),yo=e=>St(Te({},"__esModule",{value:!0}),e);var cn={};go(cn,{AUTOCOMPLETE_CLASSNAME:()=>vt,Autocomplete:()=>xe,default:()=>pn});module.exports=yo(cn);var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...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 I=(e,t)=>n({[`${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.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),y=(e,t)=>n({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var l={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={small:"small",medium:"medium",large:"large",full:"full"},h={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},c={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",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"};var It=require("react/jsx-runtime"),ze="k-input",Ao=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Co={size:[l.small,l.medium,l.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[h.solid,h.flat,h.outline]},Ee={size:l.medium,rounded:l.medium,fillMode:h.solid},g=e=>{let{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:p,readonly:m,size:d=Ee.size,rounded:f=Ee.rounded,fillMode:b=Ee.fillMode,...N}=e;return(0,It.jsx)("span",{...N,className:n(e.className,ze,I(ze,{size:d,rounded:f,fillMode:b}),y(ze,{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:p,readonly:m}))})};g.states=Ao;g.options=Co;g.className=ze;g.defaultOptions=Ee;var gt=require("react/jsx-runtime"),Oe="k-picker",Mo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],To={size:[l.small,l.medium,l.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[h.solid,h.flat,h.outline]},He={size:l.medium,rounded:u.medium,fillMode:h.solid},Ke=e=>{let{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:p,readonly:m,size:d=He.size,rounded:f=He.rounded,fillMode:b=He.fillMode,...N}=e;return(0,gt.jsx)("span",{...N,className:n(e.className,Oe,I(Oe,{size:d,rounded:f,fillMode:b}),y(Oe,{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:p,readonly:m})),children:e.children})};Ke.states=Mo;Ke.options=To;Ke.className=Oe;Ke.defaultOptions=He;var be=require("react/jsx-runtime"),Xe="k-icon k-font-icon",zo=[],Eo={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Oo={},Ne=e=>{let{size:t,themeColor:o,icon:i,rotate:a,flip:r,...p}=e;return i?(0,be.jsx)("span",{...p,className:n(e.className,Xe,I(Xe,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"})}):(0,be.jsx)(be.Fragment,{})};Ne.states=zo;Ne.options=Eo;Ne.className=Xe;Ne.defaultOptions=Oo;var kt=Ne;var W=require("react/jsx-runtime"),De="k-icon k-svg-icon",Ho=[],Ko={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},yt={viewBox:"0 0 24 24"},Le=e=>{let{size:t,themeColor:o,rotate:i,flip:a,viewBox:r=yt.viewBox,icon:p,...m}=e;if(!p)return(0,W.jsx)(W.Fragment,{});p==="none"&&{...m,className:n(e.className,De,"k-none")};let d=typeof p=="object"&&p.name&&p.name;return(0,W.jsx)("span",{...m,className:n(e.className,De,I("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),children:(0,W.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:r,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};Le.states=Ho;Le.options=Ko;Le.className=De;Le.defaultOptions=yt;var Fe=Le;var At=ko(require("@progress/kendo-svg-icons")),V=require("react/jsx-runtime"),Ro=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Po=[],wo={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Je={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:i,type:a=Je.type,rotate:r,flip:p,viewBox:m=Je.viewBox,...d}=e;if(!i)return(0,V.jsx)(V.Fragment,{});if(a==="svg"){if(i==="none")return(0,V.jsx)(Fe,{...d,icon:i,size:t});let f=Ro(`${i}-icon`);return At[f]?(0,V.jsx)(Fe,{...d,icon:At[f],size:t,themeColor:o,rotate:r,flip:p,viewBox:m}):(0,V.jsx)(V.Fragment,{})}return(0,V.jsx)(kt,{...d,icon:i,size:t,themeColor:o,rotate:r,flip:p})};k.states=Po;k.options=wo;k.defaultOptions=Je;var se=require("react/jsx-runtime"),Ct="k-clear-value",Vo=[s.disabled,s.loading,s.readonly],Go={},G=e=>{let{disabled:t,loading:o,readonly:i,value:a}=e;return t||i||o||!a?(0,se.jsx)(se.Fragment,{}):(0,se.jsx)("span",{className:n(e.className,Ct),children:(0,se.jsx)(k,{icon:"x"})})};G.states=Vo;G.options=Go;G.className=Ct;var Mt=require("react/jsx-runtime"),qe="k-input-inner",Bo=[],$o={},Re={type:"text",autocomplete:"off",value:"",placeholder:""},B=e=>{let{value:t=Re.value,type:o=Re.type,placeholder:i=Re.placeholder,autocomplete:a=Re.autocomplete,...r}=e;return(0,Mt.jsx)("input",{...r,type:o,className:n(e.className,qe,I(qe,e)),placeholder:i,autoComplete:a,defaultValue:t})};B.states=Bo;B.options=$o;B.className=qe;var ve=require("react/jsx-runtime"),Ue="k-input-inner",_o=[],Xo={},We=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:a,valueIconName:r,...p}=e;return(0,ve.jsxs)("span",{...p,className:n(e.className,Ue,I(Ue,e)),children:[a,!a&&r&&(0,ve.jsx)(k,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&(0,ve.jsx)("span",{className:"k-input-value-text",children:t})]})};We.states=_o;We.options=Xo;We.className=Ue;var zt=require("react/jsx-runtime"),Qe="k-input-inner",Do=[],Fo={},Tt={value:"",placeholder:""},Ye=e=>{let{value:t=Tt.value,placeholder:o=Tt.placeholder,rows:i,...a}=e;return(0,zt.jsx)("textarea",{...a,className:n(e.className,Qe,I(Qe,e)),placeholder:o,rows:i,defaultValue:t})};Ye.states=Do;Ye.options=Fo;Ye.className=Qe;var Se=require("react/jsx-runtime"),Et="k-input-loading-icon",Jo=[s.disabled,s.loading],X=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Se.jsx)(Se.Fragment,{}):(0,Se.jsx)("span",{className:n(e.className,Et,"k-icon k-i-loading")})};X.states=Jo;X.className=Et;var Ie=require("react/jsx-runtime"),Ot="k-input-validation-icon",qo=[s.valid,s.invalid,s.disabled,s.loading],Uo={},$=e=>{let{valid:t,invalid:o,disabled:i,loading:a}=e,r=o?"warning-circle":"check-circle";return i||a||!!!(t||o)?(0,Ie.jsx)(Ie.Fragment,{}):(0,Ie.jsx)(k,{className:n(Ot),icon:r})};$.states=qo;$.options=Uo;$.className=Ot;var ge=require("react/jsx-runtime"),Wo="k-input-prefix",Qo={direction:"horizontal"},Pe=e=>{let{direction:t=Qo.direction,...o}=e;return e.children?(0,ge.jsx)("span",{...o,className:n(Wo,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,ge.jsx)(ge.Fragment,{})};var ke=require("react/jsx-runtime"),Yo="k-input-suffix",Zo={direction:"horizontal"},we=e=>{let{direction:t=Zo.direction,...o}=e;return e.children?(0,ke.jsx)("span",{...o,className:n(Yo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,ke.jsx)(ke.Fragment,{})};var jo=require("react/jsx-runtime");var es=require("react/jsx-runtime");var Kt=require("react/jsx-runtime"),Ht="k-input-separator",ts={direction:"vertical"},ne=e=>{let{direction:t=ts.direction,...o}=e;return(0,Kt.jsx)("span",{...o,className:n(Ht,e.className,{[`${Ht}-${t}`]:t})})};var Ze=require("react/jsx-runtime"),Rt="k-animation-container",os=[],ss={},Pt={positionMode:"absolute"},D=e=>{let{positionMode:t=Pt.positionMode,animationStyle:o,offset:i,...a}=e;return(0,Ze.jsx)("div",{...a,style:{...i,...e.style},className:n(e.className,Rt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,Ze.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};D.states=os;D.options=ss;D.className=Rt;D.defaultOptions=Pt;var je=require("react/jsx-runtime"),wt="k-popup",ns=[],is={},Vt={positionMode:"absolute"},ie=e=>{let{offset:t,positionMode:o=Vt.positionMode,animationStyle:i,...a}=e;return(0,je.jsx)(D,{positionMode:o,offset:t,animationStyle:i,children:(0,je.jsx)("div",{...a,className:n(e.className,wt),children:e.children})})};ie.states=ns;ie.options=is;ie.className=wt;ie.defaultOptions=Vt;var Gt=require("react/jsx-runtime"),Ve="k-actions",as=[],ls={},et={alignment:"start",orientation:"horizontal"},ae=e=>{let{alignment:t=et.alignment,orientation:o=et.orientation,...i}=e;return(0,Gt.jsx)("div",{...i,className:n(Ve,{[`${Ve}-${t}`]:t,[`${Ve}-${o}`]:o},e.className),children:e.children})};ae.states=as;ae.options=ls;ae.className=Ve;ae.defaultOptions=et;var $t=require("react/jsx-runtime"),rs="k-actionsheet-footer",Bt={alignment:"stretched",orientation:"horizontal"},tt=e=>{let{alignment:t=Bt.alignment,orientation:o=Bt.orientation,template:i,as:a=i?"div":ae,...r}=e;return(0,$t.jsx)(a,{...r,...!i&&{alignment:t,orientation:o},className:n(e.className,rs),children:e.children})};var F=require("react/jsx-runtime"),_t="k-searchbox",ps=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],cs={size:[l.small,l.medium,l.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[h.solid,h.flat,h.outline]},ot={showIcon:!0,icon:"search",size:g.defaultOptions.size,rounded:g.defaultOptions.rounded,fillMode:g.defaultOptions.fillMode},le=e=>{let{value:t,placeholder:o,size:i,rounded:a,fillMode:r,hover:p,focus:m,valid:d,invalid:f,required:b,loading:N,disabled:L,showIcon:S=ot.showIcon,icon:M=ot.icon,...C}=e;return(0,F.jsxs)(g,{...C,size:i,rounded:a,fillMode:r,hover:p,focus:m,valid:d,invalid:f,required:b,loading:N,disabled:L,className:n(e.className,_t),children:[S&&(0,F.jsx)(k,{className:"k-input-icon",icon:M}),(0,F.jsx)(B,{placeholder:o,value:t}),(0,F.jsx)(X,{...e}),(0,F.jsx)($,{...e}),(0,F.jsx)(G,{...e})]})};le.states=ps;le.options=cs;le.className=_t;le.defaultOptions=ot;var ds=require("react/jsx-runtime");var A=require("react/jsx-runtime"),Xt="k-textbox",ms=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],us={size:[l.small,l.medium,l.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[h.solid,h.flat,h.outline]},Q={showClearButton:!0,showValidationIcon:!0,size:g.defaultOptions.size,rounded:g.defaultOptions.rounded,fillMode:g.defaultOptions.fillMode,separators:!0},re=e=>{let{size:t=Q.size,rounded:o=Q.rounded,fillMode:i=Q.fillMode,separators:a=Q.separators,showClearButton:r=Q.showClearButton,showValidationIcon:p=Q.showValidationIcon,prefix:m,suffix:d,type:f,value:b,placeholder:N,hover:L,focus:S,valid:M,invalid:C,required:z,loading:O,disabled:U,readonly:Me,..._e}=e;return(0,A.jsxs)(g,{..._e,size:t,rounded:o,fillMode:i,hover:L,focus:S,valid:M,invalid:C,required:z,loading:O,disabled:U,readonly:Me,className:n(e.className,Xt),children:[m&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Pe,{children:m}),a&&(0,A.jsx)(ne,{})]}),(0,A.jsx)(B,{placeholder:N,value:b,type:f}),p&&(0,A.jsx)($,{valid:M,invalid:C,loading:O,disabled:U}),(0,A.jsx)(X,{loading:O,disabled:U}),r&&(0,A.jsx)(G,{loading:O,disabled:U,readonly:Me,value:b}),d&&(0,A.jsxs)(A.Fragment,{children:[a&&(0,A.jsx)(ne,{}),(0,A.jsx)(we,{children:d})]})]})};re.states=ms;re.options=us;re.className=Xt;re.defaultOptions=Q;var fs=require("react/jsx-runtime");var Ft=require("react/jsx-runtime");var H=require("react/jsx-runtime"),Ge="k-button",hs=[s.hover,s.focus,s.active,s.selected,s.disabled],xs={size:[l.small,l.medium,l.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark,c.inverse]},Y={size:l.medium,rounded:u.medium,fillMode:h.solid,themeColor:c.base,showArrow:!1,arrowIconName:"caret-alt-down"},_=e=>{let{size:t=Y.size,rounded:o=Y.rounded,fillMode:i=Y.fillMode,themeColor:a=Y.themeColor,showArrow:r=Y.showArrow,arrowIconName:p=Y.arrowIconName,hover:m,focus:d,active:f,selected:b,disabled:N,icon:L,text:S,iconClassName:M,...C}=e,z=L!==void 0,O=e.children!==void 0;return(0,H.jsxs)("button",{...C,className:n(e.className,Ge,I(Ge,{size:t,rounded:o,fillMode:i,themeColor:a}),y(Ge,{hover:m,focus:d,active:f,disabled:N,selected:b}),{"k-icon-button":!S&&!O&&z}),children:[L&&(0,H.jsx)(k,{className:n(M,"k-button-icon"),icon:L}),S?(0,H.jsxs)(H.Fragment,{children:[S&&(0,H.jsx)("span",{className:"k-button-text",children:S}),e.children]}):e.children&&(0,H.jsx)("span",{className:"k-button-text",children:e.children}),r&&(0,H.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,H.jsx)(k,{icon:p})})]})};_.states=hs;_.options=xs;_.className=Ge;_.defaultOptions=Y;var bs=require("react/jsx-runtime");var Ns=require("react/jsx-runtime");var Ls=require("react/jsx-runtime");var Jt=require("react/jsx-runtime");var T=require("react/jsx-runtime"),qt="k-actionsheet-titlebar",vs={},J=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:a,filter:r,input:p,inputValue:m,inputPlaceholder:d,adaptive:f,children:b,...N}=e;return(0,T.jsxs)("div",{...N,className:n(e.className,qt),children:[(0,T.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[i&&(0,T.jsx)("div",{className:"k-actionsheet-actions",children:i}),!b&&(0,T.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,T.jsx)("div",{className:"k-text-center",children:t}),o&&(0,T.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&(0,T.jsx)("div",{className:"k-actionsheet-title",children:b}),a&&(0,T.jsx)("div",{className:"k-actionsheet-actions",children:a})]}),(p||r)&&(0,T.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,T.jsx)(re,{value:m,placeholder:d,size:f?"large":"medium"}):(0,T.jsx)(le,{placeholder:"Filter",size:f?"large":"medium"})})]})};J.className=qt;J.defaultOptions=vs;var pe=require("react/jsx-runtime"),st="k-actionsheet-view",Ss=[],Is={},gs={},ce=e=>{let{adaptive:t,animated:o,children:i,header:a,footer:r,...p}=e,m=(a==null?void 0:a.type)===J&&(0,pe.jsx)(J,{adaptive:t,...a==null?void 0:a.props}),d=(r==null?void 0:r.type)===tt&&(0,pe.jsx)(tt,{...r==null?void 0:r.props});return(0,pe.jsxs)("div",{...p,className:n(e.className,st,{[`${st}-animated`]:o}),children:[m,(0,pe.jsx)("div",{className:"k-actionsheet-content",children:i}),d]})};ce.states=Ss;ce.options=Is;ce.className=st;ce.defaultOptions=gs;var Z=require("react/jsx-runtime"),Ut="k-actionsheet",ks=[],ys={},ye={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},j=e=>{let{side:t=ye.side,fullscreen:o=ye.fullscreen,adaptive:i=ye.adaptive,overlay:a=ye.overlay,template:r,children:p,header:m,footer:d,...f}=e;return(0,Z.jsxs)("div",{className:"k-actionsheet-container",children:[a&&(0,Z.jsx)("div",{className:"k-overlay"}),(0,Z.jsx)(D,{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,Z.jsx)("div",{...f,className:n(e.className,Ut,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:r||(0,Z.jsx)(ce,{header:m,footer:d,adaptive:i,...e,children:p})})})]})};j.states=ks;j.options=ys;j.className=Ut;j.defaultOptions=ye;var As=require("react/jsx-runtime");var E=require("react/jsx-runtime"),nt="k-actionsheet-item",Cs=[s.hover,s.focus,s.selected,s.disabled],it=e=>{let{iconName:t,text:o,description:i,hover:a,focus:r,selected:p,disabled:m,...d}=e;return(0,E.jsxs)("span",{...d,className:n(e.className,nt,y(nt,{hover:a,focus:r,selected:p,disabled:m})),children:[!e.children&&(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,E.jsx)("span",{className:"k-icon-wrap",children:(0,E.jsx)(k,{className:"k-actionsheet-item-icon",icon:t})}),(0,E.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,E.jsx)("span",{className:"k-actionsheet-item-title",children:o}),i&&(0,E.jsx)("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};it.states=Cs;it.className=nt;var Wt=require("react/jsx-runtime");var Ms=require("react/jsx-runtime");var Ts=require("react/jsx-runtime");var zs=require("react/jsx-runtime");var Yt=require("react/jsx-runtime"),Es="k-no-data",Ae=e=>(0,Yt.jsx)("span",{className:n(Es,e.className),children:e.children});var K=require("react/jsx-runtime"),at="k-list",Os=[],Hs={size:[l.small,l.medium,l.large]},Zt={size:l.medium},P=e=>{let{size:t=Zt.size,virtualization:o,children:i,optionLabel:a,customValue:r,screenReaders:p,...m}=e,d,f,b,N,L=[];return i?i.map((S,M)=>{S.type===R?(S.props.root===!0?(d=S.props.label,S.props.children.map((C,z)=>{L.push((0,K.jsx)(v,{...C.props},`optChild-${z}-${new Date().getTime()}`))})):S.props.children.forEach((C,z)=>{let O="";z===0&&(O=S.props.label),L.push((0,K.jsx)(v,{className:z===0?"k-first":"",...C.props,groupLabel:O},`groupLabel-${z}-${new Date().getTime()}`))}),f=(0,K.jsx)(R,{label:d,virtualization:o,children:L})):S.type===v&&(L.push((0,K.jsx)(v,{...S.props},`${S.type}-${M}`)),b=(0,K.jsx)(de,{virtualization:o,children:L}),p&&(N=(0,K.jsxs)(Ae,{className:"k-sr-only",children:[L.length," items found."]})))}):N=(0,K.jsx)(Ae,{children:"No data found."}),(0,K.jsxs)("div",{...m,className:n(e.className,at,I(at,{size:t}),{"k-virtual-list":o}),children:[a,r,f,b,N]})};P.states=Os;P.options=Hs;P.className=at;P.defaultOptions=Zt;var w=require("react/jsx-runtime"),lt="k-list",Ks=[],Rs={size:[l.small,l.medium,l.large]},jt={size:l.medium},ee=e=>{let{size:t=jt.size,virtualization:o,children:i,...a}=e,r,p,m,d=[];return i?i.map((f,b)=>{f.type===R?(f.props.root===!0?(r=f.props.label,f.props.children.map((N,L)=>{d.push((0,w.jsx)(v,{...N.props},`optChild-${L}-${new Date().getTime()}`))})):(d.push((0,w.jsx)(eo,{...f.props,children:f.props.label},`listChild-${b}`)),f.props.children.map((N,L)=>{d.push((0,w.jsx)(v,{...N.props},`fwOptChild-${L}-${new Date().getTime()}`))})),p=(0,w.jsx)(R,{label:r,virtualization:o,children:d})):f.type===v&&(d.push((0,w.jsx)(v,{...f.props},`${f.type}-${b}`)),m=(0,w.jsx)(de,{virtualization:o,children:d}))}):m=(0,w.jsx)(Ae,{children:"No data found."}),(0,w.jsxs)("div",{...a,className:n(e.className,lt,I(lt,{size:t}),{"k-virtual-list":o}),children:[p,m]})};ee.states=Ks;ee.options=Rs;ee.className=lt;ee.defaultOptions=jt;var pt=require("react/jsx-runtime"),Be="k-checkbox",Ps=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],ws={size:[l.small,l.medium,l.large],rounded:[u.small,u.medium,u.large,u.full]},rt={size:l.medium,rounded:u.medium},q=e=>{let{id:t,checked:o,indeterminate:i,hover:a,focus:r,disabled:p,invalid:m,valid:d,required:f,size:b=rt.size,rounded:N=rt.rounded,...L}=e;return(0,pt.jsx)("span",{className:"k-checkbox-wrap",children:(0,pt.jsx)("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:f,className:n(e.className,Be,I(Be,{size:b,rounded:N}),y(Be,{hover:a,focus:r,disabled:p,invalid:m,valid:d,indeterminate:i,checked:o}))})})};q.states=Ps;q.options=ws;q.className=Be;q.defaultOptions=rt;var so=require("react/jsx-runtime"),to="k-checkbox-list",Vs=[],Gs={},oo={layout:"vertical"},me=e=>{let{layout:t=oo.layout,...o}=e;return(0,so.jsx)("ul",{...o,className:n(e.className,to,{[`k-list-${t}`]:t}),children:e.children})};me.states=Vs;me.options=Gs;me.className=to;me.defaultOptions=oo;var io=require("react/jsx-runtime"),no="k-checkbox-list-item",Bs=[],$s={},_s={},ue=e=>{let{...t}=e;return(0,io.jsx)("li",{...t,className:n(e.className,no),children:e.children})};ue.states=Bs;ue.options=$s;ue.className=no;ue.defaultOptions=_s;var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var ut=require("react/jsx-runtime");var ft=require("react/jsx-runtime");var Xs=require("react/jsx-runtime");var Ds=require("react/jsx-runtime");var te=require("react/jsx-runtime"),ht="k-list-item",Fs=[s.hover,s.focus,s.selected,s.disabled],Js={},qs={},v=e=>{let{text:t,groupLabel:o,group:i,showIcon:a,iconName:r,showCheckbox:p,checked:m,hover:d,focus:f,selected:b,disabled:N,...L}=e,S=t||e.children;return(0,te.jsxs)("li",{...L,className:n(e.className,i?"k-list-group-item":ht,y(ht,{hover:d,focus:f,disabled:N,selected:b})),children:[p&&(0,te.jsx)(q,{checked:m}),a&&(0,te.jsx)(k,{icon:r}),(0,te.jsx)("span",{className:"k-list-item-text",children:S}),o&&o!==""&&(0,te.jsx)("div",{className:"k-list-item-group-label",children:o})]})};v.states=Fs;v.options=Js;v.className=ht;v.defaultOptions=qs;var fe=require("react/jsx-runtime"),Us="k-list-content",de=e=>{let{virtualization:t,...o}=e;return(0,fe.jsxs)("div",{...o,className:n(Us,e.className),children:[(0,fe.jsx)("ul",{className:n("k-list-ul"),children:e.children}),t&&(0,fe.jsx)("div",{className:"k-height-container",children:(0,fe.jsx)("div",{})})]})};var xt=require("react/jsx-runtime"),Ws="k-list-group-sticky-header",ao=e=>(0,xt.jsx)("div",{className:n(Ws,e.className),children:(0,xt.jsx)("div",{className:"k-list-header-text",children:e.children})});var oe=require("react/jsx-runtime"),R=e=>{let{virtualization:t,label:o}=e;return(0,oe.jsxs)(oe.Fragment,{children:[o&&(0,oe.jsx)(ao,{children:o}),e.children&&(0,oe.jsx)(de,{virtualization:t,children:e.children})]})};var bt=require("react/jsx-runtime"),Qs="k-list-group-item",eo=e=>(0,bt.jsx)("li",{className:n(Qs,e.className),children:(0,bt.jsx)("span",{className:"k-list-item-text",children:e.children})});var lo=require("react/jsx-runtime"),Nt="k-list-optionlabel",Ys=[s.hover,s.focus,s.selected,s.disabled],Zs={},js={},$e=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:r,...p}=e;return(0,lo.jsx)("div",{...p,className:n(Nt,y(Nt,{hover:o,focus:i,selected:a,disabled:r})),children:t})};$e.states=Ys;$e.options=Zs;$e.className=Nt;$e.defaultOptions=js;var ro=require("react/jsx-runtime"),Lt="k-list-custom-value",en=[s.hover,s.focus,s.selected,s.disabled],tn={},on={},he=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:r,...p}=e;return(0,ro.jsx)("div",{...p,className:n(Lt,y(Lt,{hover:o,focus:i,selected:a,disabled:r})),children:t})};he.states=en;he.options=tn;he.className=Lt;he.defaultOptions=on;var sn=require("react/jsx-runtime");var nn=require("react/jsx-runtime");var po=require("react/jsx-runtime");var co=require("react/jsx-runtime");var an=require("react/jsx-runtime");var mo=require("react/jsx-runtime");var uo=require("react/jsx-runtime");var x=require("react/jsx-runtime"),vt="k-autocomplete",ln=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],rn={size:[l.small,l.medium,l.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[h.solid,h.flat,h.outline]},Ce={size:g.defaultOptions.size,rounded:g.defaultOptions.rounded,fillMode:g.defaultOptions.fillMode,separators:!0},xe=e=>{let{size:t=Ce.size,rounded:o=Ce.rounded,fillMode:i=Ce.fillMode,separators:a=Ce.separators,prefix:r,suffix:p,value:m,placeholder:d,hover:f,focus:b,valid:N,invalid:L,required:S,loading:M,disabled:C,popup:z,opened:O,readonly:U,adaptive:Me,adaptiveSettings:_e,adaptiveTitle:fo,adaptiveSubtitle:ho,adaptiveCustomValue:xo,...bo}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(g,{...bo,size:t,rounded:o,fillMode:i,hover:f,focus:b,valid:N,invalid:L,required:S,loading:M,disabled:C,readonly:U,className:n(e.className,vt),children:[r&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Pe,{children:r}),a&&(0,x.jsx)(ne,{})]}),(0,x.jsx)(B,{placeholder:d,value:m}),(0,x.jsx)($,{valid:N,invalid:L,loading:M,disabled:C}),(0,x.jsx)(X,{loading:M,disabled:C}),(0,x.jsx)(G,{loading:M,disabled:C,readonly:U,value:m}),p&&(0,x.jsxs)(x.Fragment,{children:[a&&(0,x.jsx)(ne,{}),(0,x.jsx)(we,{children:p})]})]}),O&&z&&(0,x.jsx)(ie,{className:"k-list-container k-autocomplete-popup",children:z}),Me&&(0,x.jsx)(j,{adaptive:!0,..._e,header:(0,x.jsx)(J,{actionsEnd:(0,x.jsx)(_,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:m,inputPlaceholder:d,title:fo,subtitle:ho}),children:(0,x.jsx)("div",{className:"k-list-container",children:(0,x.jsxs)(P,{customValue:xo?(0,x.jsx)(he,{text:`Use "${m}"`}):void 0,size:"large",children:[(0,x.jsx)(v,{text:"List item"}),(0,x.jsx)(v,{text:"List item"}),(0,x.jsx)(v,{text:"List item"})]})})})]})};xe.states=ln;xe.options=rn;xe.className=vt;xe.defaultOptions=Ce;var pn=xe;