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