UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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