@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 27.3 kB
JavaScript
var go=Object.create;var Me=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var Ao=Object.getOwnPropertyNames;var Mo=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty;var Lo=(e,t)=>{for(var o in t)Me(e,o,{get:t[o],enumerable:!0})},kt=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ao(t))!Eo.call(e,r)&&r!==o&&Me(e,r,{get:()=>t[r],enumerable:!(s=wo(t,r))||s.enumerable});return e};var zo=(e,t,o)=>(o=e!=null?go(Mo(e)):{},kt(t||!e||!e.__esModule?Me(o,"default",{value:e,enumerable:!0}):o,e)),Oo=e=>kt(Me({},"__esModule",{value:!0}),e);var Ci={};Lo(Ci,{MultiSelectTreeArrowButton:()=>yi});module.exports=Oo(Ci);var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var v=(e,t)=>i({[`${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)=>i({"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 a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},d={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},l={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},n={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 gt=require("react/jsx-runtime"),Ee="k-input",Ro=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ko={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},Le={size:a.medium,rounded:a.medium,fillMode:u.solid},C=e=>{let{hover:t,focus:o,disabled:s,invalid:r,valid:c,loading:p,readonly:m,size:h=Le.size,rounded:b=Le.rounded,fillMode:S=Le.fillMode,...y}=e;return(0,gt.jsx)("span",{...y,className:i(e.className,Ee,v(Ee,{size:h,rounded:b,fillMode:S}),k(Ee,{hover:t,focus:o,disabled:s,invalid:r,valid:c,loading:p,readonly:m}))})};C.states=Ro;C.options=Ko;C.className=Ee;C.defaultOptions=Le;var wt=require("react/jsx-runtime"),ze="k-picker",Ho=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Po={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},Oe={size:a.medium,rounded:d.medium,fillMode:u.solid},Re=e=>{let{hover:t,focus:o,disabled:s,invalid:r,valid:c,loading:p,readonly:m,size:h=Oe.size,rounded:b=Oe.rounded,fillMode:S=Oe.fillMode,...y}=e;return(0,wt.jsx)("span",{...y,className:i(e.className,ze,v(ze,{size:h,rounded:b,fillMode:S}),k(ze,{hover:t,focus:o,disabled:s,invalid:r,valid:c,loading:p,readonly:m})),children:e.children})};Re.states=Ho;Re.options=Po;Re.className=ze;Re.defaultOptions=Oe;var he=require("react/jsx-runtime"),De="k-icon k-font-icon",Bo=[],Vo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Go={},xe=e=>{let{size:t,themeColor:o,icon:s,rotate:r,flip:c,...p}=e;return s?(0,he.jsx)("span",{...p,className:i(e.className,De,v(De,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"})}):(0,he.jsx)(he.Fragment,{})};xe.states=Bo;xe.options=Vo;xe.className=De;xe.defaultOptions=Go;var At=xe;var Q=require("react/jsx-runtime"),Ue="k-icon k-svg-icon",$o=[],_o={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Mt={viewBox:"0 0 24 24"},ve=e=>{let{size:t,themeColor:o,rotate:s,flip:r,viewBox:c=Mt.viewBox,icon:p,...m}=e;if(!p)return(0,Q.jsx)(Q.Fragment,{});p==="none"&&{...m,className:i(e.className,Ue,"k-none")};let h=typeof p=="object"&&p.name&&p.name;return(0,Q.jsx)("span",{...m,className:i(e.className,Ue,v("k-icon",{size:t}),{[`k-svg-i-${h}`]:h,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:(0,Q.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:c,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};ve.states=$o;ve.options=_o;ve.className=Ue;ve.defaultOptions=Mt;var We=ve;var Et=zo(require("@progress/kendo-svg-icons")),G=require("react/jsx-runtime"),Xo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Fo=[],Jo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Qe={viewBox:"0 0 24 24",type:"svg"},N=e=>{let{size:t,themeColor:o,icon:s,type:r=Qe.type,rotate:c,flip:p,viewBox:m=Qe.viewBox,...h}=e;if(!s)return(0,G.jsx)(G.Fragment,{});if(r==="svg"){if(s==="none")return(0,G.jsx)(We,{...h,icon:s,size:t});let b=Xo(`${s}-icon`);return Et[b]?(0,G.jsx)(We,{...h,icon:Et[b],size:t,themeColor:o,rotate:c,flip:p,viewBox:m}):(0,G.jsx)(G.Fragment,{})}return(0,G.jsx)(At,{...h,icon:s,size:t,themeColor:o,rotate:c,flip:p})};N.states=Fo;N.options=Jo;N.defaultOptions=Qe;var ne=require("react/jsx-runtime"),Lt="k-clear-value",qo=[n.disabled,n.loading,n.readonly],Do={},$=e=>{let{disabled:t,loading:o,readonly:s,value:r}=e;return t||s||o||!r?(0,ne.jsx)(ne.Fragment,{}):(0,ne.jsx)("span",{className:i(e.className,Lt),children:(0,ne.jsx)(N,{icon:"x"})})};$.states=qo;$.options=Do;$.className=Lt;var zt=require("react/jsx-runtime"),Ye="k-input-inner",Uo=[],Wo={},Ke={type:"text",autocomplete:"off",value:"",placeholder:""},Y=e=>{let{value:t=Ke.value,type:o=Ke.type,placeholder:s=Ke.placeholder,autocomplete:r=Ke.autocomplete,...c}=e;return(0,zt.jsx)("input",{...c,type:o,className:i(e.className,Ye,v(Ye,e)),placeholder:s,autoComplete:r,defaultValue:t})};Y.states=Uo;Y.options=Wo;Y.className=Ye;var be=require("react/jsx-runtime"),Ze="k-input-inner",Qo=[],Yo={},je=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:r,valueIconName:c,...p}=e;return(0,be.jsxs)("span",{...p,className:i(e.className,Ze,v(Ze,e)),children:[r,!r&&c&&(0,be.jsx)(N,{className:"k-input-value-icon",icon:c}),s&&!t&&o,s&&t&&(0,be.jsx)("span",{className:"k-input-value-text",children:t})]})};je.states=Qo;je.options=Yo;je.className=Ze;var Rt=require("react/jsx-runtime"),et="k-input-inner",Zo=[],jo={},Ot={value:"",placeholder:""},tt=e=>{let{value:t=Ot.value,placeholder:o=Ot.placeholder,rows:s,...r}=e;return(0,Rt.jsx)("textarea",{...r,className:i(e.className,et,v(et,e)),placeholder:o,rows:s,defaultValue:t})};tt.states=Zo;tt.options=jo;tt.className=et;var Ne=require("react/jsx-runtime"),Kt="k-input-loading-icon",en=[n.disabled,n.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Ne.jsx)(Ne.Fragment,{}):(0,Ne.jsx)("span",{className:i(e.className,Kt,"k-icon k-i-loading")})};F.states=en;F.className=Kt;var Se=require("react/jsx-runtime"),Ht="k-input-validation-icon",tn=[n.valid,n.invalid,n.disabled,n.loading],on={},_=e=>{let{valid:t,invalid:o,disabled:s,loading:r}=e,c=o?"warning-circle":"check-circle";return s||r||!!!(t||o)?(0,Se.jsx)(Se.Fragment,{}):(0,Se.jsx)(N,{className:i(Ht),icon:c})};_.states=tn;_.options=on;_.className=Ht;var ye=require("react/jsx-runtime"),nn="k-input-prefix",sn={direction:"horizontal"},He=e=>{let{direction:t=sn.direction,...o}=e;return e.children?(0,ye.jsx)("span",{...o,className:i(nn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,ye.jsx)(ye.Fragment,{})};var Ce=require("react/jsx-runtime"),an="k-input-suffix",rn={direction:"horizontal"},Pe=e=>{let{direction:t=rn.direction,...o}=e;return e.children?(0,Ce.jsx)("span",{...o,className:i(an,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Ce.jsx)(Ce.Fragment,{})};var ln=require("react/jsx-runtime");var cn=require("react/jsx-runtime");var Bt=require("react/jsx-runtime"),Pt="k-input-separator",pn={direction:"vertical"},ot=e=>{let{direction:t=pn.direction,...o}=e;return(0,Bt.jsx)("span",{...o,className:i(Pt,e.className,{[`${Pt}-${t}`]:t})})};var K=require("react/jsx-runtime"),Be="k-button",dn=[n.hover,n.focus,n.active,n.selected,n.disabled],mn={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark,l.inverse]},Z={size:a.medium,rounded:d.medium,fillMode:u.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},P=e=>{let{size:t=Z.size,rounded:o=Z.rounded,fillMode:s=Z.fillMode,themeColor:r=Z.themeColor,showArrow:c=Z.showArrow,arrowIconName:p=Z.arrowIconName,hover:m,focus:h,active:b,selected:S,disabled:y,icon:g,text:I,iconClassName:M,...w}=e,L=g!==void 0,R=e.children!==void 0;return(0,K.jsxs)("button",{...w,className:i(e.className,Be,v(Be,{size:t,rounded:o,fillMode:s,themeColor:r}),k(Be,{hover:m,focus:h,active:b,disabled:y,selected:S}),{"k-icon-button":!I&&!R&&L}),children:[g&&(0,K.jsx)(N,{className:i(M,"k-button-icon"),icon:g}),I?(0,K.jsxs)(K.Fragment,{children:[I&&(0,K.jsx)("span",{className:"k-button-text",children:I}),e.children]}):e.children&&(0,K.jsx)("span",{className:"k-button-text",children:e.children}),c&&(0,K.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,K.jsx)(N,{icon:p})})]})};P.states=dn;P.options=mn;P.className=Be;P.defaultOptions=Z;var un=require("react/jsx-runtime");var fn=require("react/jsx-runtime");var hn=require("react/jsx-runtime");var xn=require("react/jsx-runtime");var nt=require("react/jsx-runtime"),Te="k-avatar";var vn=[n.hover,n.focus,n.active,n.selected,n.disabled],bn={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark,l.inverse]},j={type:"text",size:a.medium,rounded:d.full,fillMode:u.solid,themeColor:l.primary,border:!1},ie=e=>{let{size:t=j.size,rounded:o=j.rounded,fillMode:s=j.fillMode,themeColor:r=j.themeColor,type:c=j.type,border:p=j.border,...m}=e;return(0,nt.jsx)("div",{...m,className:i(e.className,Te,v(Te,{size:t,rounded:o,fillMode:s,themeColor:r}),{[`${Te}-bordered`]:p}),children:(0,nt.jsx)("span",{className:`${Te}-${c}`,children:e.children})})};ie.states=vn;ie.options=bn;ie.className=Te;ie.defaultOptions=j;var Nn=require("react/jsx-runtime");var Sn=require("react/jsx-runtime");var yn=require("react/jsx-runtime");var X=require("react/jsx-runtime"),Ve="k-chip",Cn=[n.hover,n.focus,n.active,n.selected,n.disabled],Tn={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.outline],themeColor:[l.base,l.success,l.warning,l.error,l.info]},se={size:a.medium,rounded:d.medium,fillMode:u.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ge=e=>{let{size:t=se.size,rounded:o=se.rounded,fillMode:s=se.fillMode,themeColor:r=se.themeColor,text:c,icon:p,actions:m,showAvatar:h,avatarImage:b=se.avatarImage,hover:S,focus:y,active:g,selected:I,disabled:M,...w}=e;return(0,X.jsxs)("div",{...w,className:i(e.className,Ve,v(Ve,{size:t,rounded:o,fillMode:s,themeColor:r}),k(Ve,{hover:S,focus:y,active:g,disabled:M,selected:I})),children:[p&&(0,X.jsx)(N,{className:"k-chip-icon",icon:p,size:"small"}),h&&(0,X.jsx)(ie,{className:"k-chip-avatar",type:"image",children:(0,X.jsx)("img",{src:b})}),(0,X.jsx)("span",{className:"k-chip-content",children:e.children?e.children:c&&(0,X.jsx)("span",{className:"k-chip-label",children:c})}),m&&(0,X.jsx)("span",{className:"k-chip-actions",children:m})]})};Ge.states=Cn;Ge.options=Tn;Ge.className=Ve;Ge.defaultOptions=se;var $t=require("react/jsx-runtime"),it="k-chip-list",In=[],kn={size:[a.small,a.medium,a.large]},Gt={size:a.medium},ae=e=>{let{size:t=Gt.size,...o}=e;return(0,$t.jsx)("div",{...o,className:i(e.className,it,v(it,{size:t})),children:e.children})};ae.states=In;ae.options=kn;ae.className=it;ae.defaultOptions=Gt;var gn=require("react/jsx-runtime");var wn=require("react/jsx-runtime");var An=require("react/jsx-runtime");var En=require("react/jsx-runtime");var st=require("react/jsx-runtime");var at=require("react/jsx-runtime"),_t="k-animation-container",Ln=[],zn={},Xt={positionMode:"absolute"},J=e=>{let{positionMode:t=Xt.positionMode,animationStyle:o,offset:s,...r}=e;return(0,at.jsx)("div",{...r,style:{...s,...e.style},className:i(e.className,_t,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,at.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};J.states=Ln;J.options=zn;J.className=_t;J.defaultOptions=Xt;var rt=require("react/jsx-runtime"),Ft="k-popup",On=[],Rn={},Jt={positionMode:"absolute"},re=e=>{let{offset:t,positionMode:o=Jt.positionMode,animationStyle:s,...r}=e;return(0,rt.jsx)(J,{positionMode:o,offset:t,animationStyle:s,children:(0,rt.jsx)("div",{...r,className:i(e.className,Ft),children:e.children})})};re.states=On;re.options=Rn;re.className=Ft;re.defaultOptions=Jt;var qt=require("react/jsx-runtime"),_e="k-actions",Kn=[],Hn={},lt={alignment:"start",orientation:"horizontal"},le=e=>{let{alignment:t=lt.alignment,orientation:o=lt.orientation,...s}=e;return(0,qt.jsx)("div",{...s,className:i(_e,{[`${_e}-${t}`]:t,[`${_e}-${o}`]:o},e.className),children:e.children})};le.states=Kn;le.options=Hn;le.className=_e;le.defaultOptions=lt;var Ut=require("react/jsx-runtime"),Pn="k-actionsheet-footer",Dt={alignment:"stretched",orientation:"horizontal"},ct=e=>{let{alignment:t=Dt.alignment,orientation:o=Dt.orientation,template:s,as:r=s?"div":le,...c}=e;return(0,Ut.jsx)(r,{...c,...!s&&{alignment:t,orientation:o},className:i(e.className,Pn),children:e.children})};var q=require("react/jsx-runtime"),Wt="k-searchbox",Bn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Vn={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},pt={showIcon:!0,icon:"search",size:C.defaultOptions.size,rounded:C.defaultOptions.rounded,fillMode:C.defaultOptions.fillMode},ce=e=>{let{value:t,placeholder:o,size:s,rounded:r,fillMode:c,hover:p,focus:m,valid:h,invalid:b,required:S,loading:y,disabled:g,showIcon:I=pt.showIcon,icon:M=pt.icon,...w}=e;return(0,q.jsxs)(C,{...w,size:s,rounded:r,fillMode:c,hover:p,focus:m,valid:h,invalid:b,required:S,loading:y,disabled:g,className:i(e.className,Wt),children:[I&&(0,q.jsx)(N,{className:"k-input-icon",icon:M}),(0,q.jsx)(Y,{placeholder:o,value:t}),(0,q.jsx)(F,{...e}),(0,q.jsx)(_,{...e}),(0,q.jsx)($,{...e})]})};ce.states=Bn;ce.options=Vn;ce.className=Wt;ce.defaultOptions=pt;var Gn=require("react/jsx-runtime");var A=require("react/jsx-runtime"),Qt="k-textbox",$n=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],_n={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},ee={showClearButton:!0,showValidationIcon:!0,size:C.defaultOptions.size,rounded:C.defaultOptions.rounded,fillMode:C.defaultOptions.fillMode,separators:!0},pe=e=>{let{size:t=ee.size,rounded:o=ee.rounded,fillMode:s=ee.fillMode,separators:r=ee.separators,showClearButton:c=ee.showClearButton,showValidationIcon:p=ee.showValidationIcon,prefix:m,suffix:h,type:b,value:S,placeholder:y,hover:g,focus:I,valid:M,invalid:w,required:L,loading:R,disabled:B,readonly:V,...W}=e;return(0,A.jsxs)(C,{...W,size:t,rounded:o,fillMode:s,hover:g,focus:I,valid:M,invalid:w,required:L,loading:R,disabled:B,readonly:V,className:i(e.className,Qt),children:[m&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(He,{children:m}),r&&(0,A.jsx)(ot,{})]}),(0,A.jsx)(Y,{placeholder:y,value:S,type:b}),p&&(0,A.jsx)(_,{valid:M,invalid:w,loading:R,disabled:B}),(0,A.jsx)(F,{loading:R,disabled:B}),c&&(0,A.jsx)($,{loading:R,disabled:B,readonly:V,value:S}),h&&(0,A.jsxs)(A.Fragment,{children:[r&&(0,A.jsx)(ot,{}),(0,A.jsx)(Pe,{children:h})]})]})};pe.states=$n;pe.options=_n;pe.className=Qt;pe.defaultOptions=ee;var Xn=require("react/jsx-runtime");var Zt=require("react/jsx-runtime");var jt=require("react/jsx-runtime");var E=require("react/jsx-runtime"),eo="k-actionsheet-titlebar",Fn={},D=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:r,filter:c,input:p,inputValue:m,inputPlaceholder:h,adaptive:b,children:S,...y}=e;return(0,E.jsxs)("div",{...y,className:i(e.className,eo),children:[(0,E.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[s&&(0,E.jsx)("div",{className:"k-actionsheet-actions",children:s}),!S&&(0,E.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,E.jsx)("div",{className:"k-text-center",children:t}),o&&(0,E.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),S&&(0,E.jsx)("div",{className:"k-actionsheet-title",children:S}),r&&(0,E.jsx)("div",{className:"k-actionsheet-actions",children:r})]}),(p||c)&&(0,E.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,E.jsx)(pe,{value:m,placeholder:h,size:b?"large":"medium"}):(0,E.jsx)(ce,{placeholder:"Filter",size:b?"large":"medium"})})]})};D.className=eo;D.defaultOptions=Fn;var de=require("react/jsx-runtime"),dt="k-actionsheet-view",Jn=[],qn={},Dn={},me=e=>{let{adaptive:t,animated:o,children:s,header:r,footer:c,...p}=e,m=(r==null?void 0:r.type)===D&&(0,de.jsx)(D,{adaptive:t,...r==null?void 0:r.props}),h=(c==null?void 0:c.type)===ct&&(0,de.jsx)(ct,{...c==null?void 0:c.props});return(0,de.jsxs)("div",{...p,className:i(e.className,dt,{[`${dt}-animated`]:o}),children:[m,(0,de.jsx)("div",{className:"k-actionsheet-content",children:s}),h]})};me.states=Jn;me.options=qn;me.className=dt;me.defaultOptions=Dn;var te=require("react/jsx-runtime"),to="k-actionsheet",Un=[],Wn={},Ie={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},oe=e=>{let{side:t=Ie.side,fullscreen:o=Ie.fullscreen,adaptive:s=Ie.adaptive,overlay:r=Ie.overlay,template:c,children:p,header:m,footer:h,...b}=e;return(0,te.jsxs)("div",{className:"k-actionsheet-container",children:[r&&(0,te.jsx)("div",{className:"k-overlay"}),(0,te.jsx)(J,{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,te.jsx)("div",{...b,className:i(e.className,to,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:c||(0,te.jsx)(me,{header:m,footer:h,adaptive:s,...e,children:p})})})]})};oe.states=Un;oe.options=Wn;oe.className=to;oe.defaultOptions=Ie;var Qn=require("react/jsx-runtime");var z=require("react/jsx-runtime"),mt="k-actionsheet-item",Yn=[n.hover,n.focus,n.selected,n.disabled],ut=e=>{let{iconName:t,text:o,description:s,hover:r,focus:c,selected:p,disabled:m,...h}=e;return(0,z.jsxs)("span",{...h,className:i(e.className,mt,k(mt,{hover:r,focus:c,selected:p,disabled:m})),children:[!e.children&&(0,z.jsx)(z.Fragment,{children:(0,z.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,z.jsx)("span",{className:"k-icon-wrap",children:(0,z.jsx)(N,{className:"k-actionsheet-item-icon",icon:t})}),(0,z.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,z.jsx)("span",{className:"k-actionsheet-item-title",children:o}),s&&(0,z.jsx)("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};ut.states=Yn;ut.className=mt;var oo=require("react/jsx-runtime");var Zn=require("react/jsx-runtime");var jn=require("react/jsx-runtime");var ei=require("react/jsx-runtime");var ke=require("react/jsx-runtime"),ht=require("react"),ft="k-treeview",ti=[],oi={size:[a.small,a.medium,a.large]},io={size:a.medium},H=e=>{let{size:t=io.size,children:o,dir:s,...r}=e,c=[];return o&&(Array.isArray(o)?o.map((p,m)=>{p.type===x&&c.push((0,ht.createElement)(x,{...p.props,dir:s,key:m})),p.type===T&&c.push((0,ht.createElement)(T,{...p.props,dir:s,key:m}))}):(o.type===x&&c.push((0,ke.jsx)(x,{...o.props,dir:s})),o.type===T&&c.push((0,ke.jsx)(T,{...o.props,dir:s})))),(0,ke.jsx)("div",{...r,dir:s,className:i(e.className,ft,v(ft,{size:t})),children:(0,ke.jsx)(T,{className:"k-treeview-lines",dir:s,children:c})})};H.states=ti;H.options=oi;H.className=ft;H.defaultOptions=io;var vt=require("react/jsx-runtime"),Xe="k-checkbox",ni=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],ii={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full]},xt={size:a.medium,rounded:d.medium},U=e=>{let{id:t,checked:o,indeterminate:s,hover:r,focus:c,disabled:p,invalid:m,valid:h,required:b,size:S=xt.size,rounded:y=xt.rounded,...g}=e;return(0,vt.jsx)("span",{className:"k-checkbox-wrap",children:(0,vt.jsx)("input",{...g,id:t,type:"checkbox",defaultChecked:o,required:b,className:i(e.className,Xe,v(Xe,{size:S,rounded:y}),k(Xe,{hover:r,focus:c,disabled:p,invalid:m,valid:h,indeterminate:s,checked:o}))})})};U.states=ni;U.options=ii;U.className=Xe;U.defaultOptions=xt;var ro=require("react/jsx-runtime"),so="k-checkbox-list",si=[],ai={},ao={layout:"vertical"},ue=e=>{let{layout:t=ao.layout,...o}=e;return(0,ro.jsx)("ul",{...o,className:i(e.className,so,{[`k-list-${t}`]:t}),children:e.children})};ue.states=si;ue.options=ai;ue.className=so;ue.defaultOptions=ao;var co=require("react/jsx-runtime"),lo="k-checkbox-list-item",ri=[],li={},ci={},fe=e=>{let{...t}=e;return(0,co.jsx)("li",{...t,className:i(e.className,lo),children:e.children})};fe.states=ri;fe.options=li;fe.className=lo;fe.defaultOptions=ci;var Nt=require("react/jsx-runtime");var St=require("react/jsx-runtime");var yt=require("react/jsx-runtime");var Ct=require("react/jsx-runtime");var pi=require("react/jsx-runtime");var di=require("react/jsx-runtime");var Tt=require("react/jsx-runtime"),po=require("react"),mi="k-treeview-group",T=e=>{let{children:t,dir:o}=e,s=[];return t&&(Array.isArray(t)?t.map((r,c)=>{r.type===ge&&s.push((0,po.createElement)(ge,{...r.props,dir:o,key:c}))}):t.type===ge&&s.push((0,Tt.jsx)(ge,{...t.props,dir:o}))),(0,Tt.jsx)("ul",{className:i(e.className,mi),children:s})};var we=require("react/jsx-runtime"),It="k-treeview-leaf",ui=[n.hover,n.focus,n.selected],fi={},Fe=e=>{let{text:t,showIcon:o,icon:s,hover:r,focus:c,selected:p,...m}=e;return(0,we.jsxs)("span",{...m,className:i(e.className,It,k(It,{hover:r,focus:c,selected:p})),children:[o&&(0,we.jsx)(N,{icon:s}),(0,we.jsx)("span",{className:"k-treeview-leaf-text",children:t})]})};Fe.states=ui;Fe.options=fi;Fe.className=It;var mo=Fe;var O=require("react/jsx-runtime"),fo=require("react"),uo="k-treeview-item",hi=[n.hover,n.focus,n.selected,n.disabled],xi={},vi={},x=e=>{let{leafClassName:t,children:o,hasChildren:s,expanded:r,text:c,showIcon:p,icon:m,showCheckbox:h,checked:b,hover:S,focus:y,selected:g,disabled:I,top:M,bottom:w,dir:L,...R}=e,B=s||o,V=[];return o&&(Array.isArray(o)?o.map((W,qe)=>{W.type===T&&V.push((0,fo.createElement)(T,{...W.props,dir:L,key:qe},W.props.children))}):o.type===T&&V.push((0,O.jsx)(T,{...o.props,dir:L,children:o.props.children}))),(0,O.jsxs)("li",{...R,className:i(e.className,uo),children:[(0,O.jsxs)("span",{className:i({"k-treeview-top":M,"k-treeview-bot":w,"k-treeview-mid":!M&&!w}),children:[B&&(0,O.jsx)("span",{className:i("k-treeview-toggle",k("k-treeview-toggle",{disabled:I})),children:(0,O.jsx)(N,{icon:r?"caret-alt-down":L==="rtl"?"caret-alt-left":"caret-alt-right"})}),h&&(0,O.jsx)(U,{checked:b,disabled:I}),(0,O.jsx)(mo,{className:i(t,k(t,{disabled:I})),text:c,showIcon:p,icon:m,hover:S,focus:y,selected:g})]}),r&&B&&(0,O.jsx)(O.Fragment,{children:V})]})};x.states=hi;x.options=xi;x.className=uo;x.defaultOptions=vi;var ge=x;var bi=require("react/jsx-runtime");var ho=require("react/jsx-runtime");var xo=require("react/jsx-runtime");var vo=require("react/jsx-runtime");var bo=require("react/jsx-runtime");var f=require("react/jsx-runtime"),No="k-multiselecttree",Ni=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Si={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},Je={size:C.defaultOptions.size,rounded:C.defaultOptions.rounded,fillMode:C.defaultOptions.fillMode},Ae=e=>{let{size:t=Je.size,rounded:o=Je.rounded,fillMode:s=Je.fillMode,prefix:r,suffix:c,placeholder:p,tags:m,popup:h,showArrowButton:b,hover:S,focus:y,valid:g,invalid:I,required:M,loading:w,disabled:L,readonly:R,opened:B,dir:V,adaptive:W,adaptiveSettings:qe,adaptiveTitle:Co,adaptiveSubtitle:To,adaptiveFilter:Io,...ko}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(C,{...ko,dir:V,size:t,rounded:o,fillMode:s,hover:S,focus:y,valid:g,invalid:I,required:M,loading:w,disabled:L,readonly:R,className:i(e.className,No),children:[(0,f.jsx)(He,{children:r}),(0,f.jsx)(ae,{size:t,className:"k-input-values",children:(0,f.jsx)(f.Fragment,{children:m})}),(0,f.jsx)("span",{className:"k-input-inner",children:!m&&(0,f.jsx)("span",{className:"k-input-value-text",children:p})}),(0,f.jsx)(_,{valid:g,invalid:I,loading:w,disabled:L}),(0,f.jsx)(F,{loading:w,disabled:L}),(0,f.jsx)($,{loading:w,disabled:L,readonly:R,value:m?"value":""}),(0,f.jsx)(Pe,{children:c}),b&&(0,f.jsx)(P,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),B&&h&&(0,f.jsx)(re,{className:"k-multiselecttree-popup",dir:V,children:h}),W&&(0,f.jsx)(oe,{adaptive:!0,...qe,header:(0,f.jsx)(D,{actionsEnd:(0,f.jsx)(P,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Io,inputPlaceholder:p,title:Co,subtitle:To}),children:(0,f.jsxs)(H,{size:"large",children:[(0,f.jsx)(x,{top:!0,text:"Root 1"}),(0,f.jsx)(x,{text:"Root 2",expanded:!0,children:(0,f.jsxs)(T,{children:[(0,f.jsx)(x,{top:!0,text:"Child 2.1"}),(0,f.jsx)(x,{text:"Child 2.2",children:(0,f.jsx)(T,{children:(0,f.jsx)(x,{bottom:!0,text:"Child 2.2.1"})})}),(0,f.jsx)(x,{text:"Child 2.3"}),(0,f.jsx)(x,{bottom:!0,leafClassName:"k-treeview-load-more-button",text:"Load more ..."})]})}),(0,f.jsx)(x,{bottom:!0,text:"Root 3",children:(0,f.jsxs)(T,{children:[(0,f.jsx)(x,{top:!0,text:"Child 3.1"}),(0,f.jsx)(x,{text:"Child 3.2"}),(0,f.jsx)(x,{bottom:!0,text:"Child 3.3"})]})})]})})]})};Ae.states=Ni;Ae.options=Si;Ae.className=No;Ae.defaultOptions=Je;var So=Ae;var yo=require("react/jsx-runtime"),yi=e=>(0,yo.jsx)(So,{showArrowButton:!0,...e});