@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 30.6 kB
JavaScript
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var I=(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"}),T=(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 n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},c={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},m={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"};import{Fragment as ko,jsx as Lt}from"react/jsx-runtime";var $e="k-icon k-font-icon",So=[],Io={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},go={},he=e=>{let{size:t,themeColor:o,icon:a,rotate:l,flip:r,...p}=e;return a?Lt("span",{...p,className:i(e.className,$e,I($e,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"})}):Lt(ko,{})};he.states=So;he.options=Io;he.className=$e;he.defaultOptions=go;var vt=he;import{Fragment as Ao,jsx as Ce}from"react/jsx-runtime";var _e="k-icon k-svg-icon",yo=[],Mo={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Nt={viewBox:"0 0 24 24"},be=e=>{let{size:t,themeColor:o,rotate:a,flip:l,viewBox:r=Nt.viewBox,icon:p,...x}=e;if(!p)return Ce(Ao,{});p==="none"&&{...x,className:i(e.className,_e,"k-none")};let d=typeof p=="object"&&p.name&&p.name;return Ce("span",{...x,className:i(e.className,_e,I("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:Ce("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})})};be.states=yo;be.options=Mo;be.className=_e;be.defaultOptions=Nt;var Xe=be;import*as St from"@progress/kendo-svg-icons";import{Fragment as It,jsx as Le}from"react/jsx-runtime";var Co=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),To=[],zo={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Fe={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:a,type:l=Fe.type,rotate:r,flip:p,viewBox:x=Fe.viewBox,...d}=e;if(!a)return Le(It,{});if(l==="svg"){if(a==="none")return Le(Xe,{...d,icon:a,size:t});let u=Co(`${a}-icon`);return St[u]?Le(Xe,{...d,icon:St[u],size:t,themeColor:o,rotate:r,flip:p,viewBox:x}):Le(It,{})}return Le(vt,{...d,icon:a,size:t,themeColor:o,rotate:r,flip:p})};k.states=To;k.options=zo;k.defaultOptions=Fe;import{Fragment as Eo,jsx as ve,jsxs as gt}from"react/jsx-runtime";var Te="k-button",wo=[s.hover,s.focus,s.active,s.selected,s.disabled],Oo={size:[n.small,n.medium,n.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},Q={size:n.medium,rounded:c.medium,fillMode:f.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},w=e=>{let{size:t=Q.size,rounded:o=Q.rounded,fillMode:a=Q.fillMode,themeColor:l=Q.themeColor,showArrow:r=Q.showArrow,arrowIconName:p=Q.arrowIconName,hover:x,focus:d,active:u,selected:b,disabled:v,icon:N,text:S,iconClassName:O,...E}=e,A=N!==void 0,C=e.children!==void 0;return gt("button",{...E,className:i(e.className,Te,I(Te,{size:t,rounded:o,fillMode:a,themeColor:l}),T(Te,{hover:x,focus:d,active:u,disabled:v,selected:b}),{"k-icon-button":!S&&!C&&A}),children:[N&&ve(k,{className:i(O,"k-button-icon"),icon:N}),S?gt(Eo,{children:[S&&ve("span",{className:"k-button-text",children:S}),e.children]}):e.children&&ve("span",{className:"k-button-text",children:e.children}),r&&ve("span",{className:"k-menu-button-arrow k-button-arrow",children:ve(k,{icon:p})})]})};w.states=wo;w.options=Oo;w.className=Te;w.defaultOptions=Q;import{jsx as en}from"react/jsx-runtime";import{jsx as nn}from"react/jsx-runtime";import{jsx as pn}from"react/jsx-runtime";import{jsx as Ro}from"react/jsx-runtime";var ze="k-input",Ho=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ko={size:[n.small,n.medium,n.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[f.solid,f.flat,f.outline]},we={size:n.medium,rounded:n.medium,fillMode:f.solid},y=e=>{let{hover:t,focus:o,disabled:a,invalid:l,valid:r,loading:p,readonly:x,size:d=we.size,rounded:u=we.rounded,fillMode:b=we.fillMode,...v}=e;return Ro("span",{...v,className:i(e.className,ze,I(ze,{size:d,rounded:u,fillMode:b}),T(ze,{hover:t,focus:o,disabled:a,invalid:l,valid:r,loading:p,readonly:x}))})};y.states=Ho;y.options=Ko;y.className=ze;y.defaultOptions=we;import{jsx as Go}from"react/jsx-runtime";var Oe="k-picker",Po=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Bo={size:[n.small,n.medium,n.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[f.solid,f.flat,f.outline]},Ee={size:n.medium,rounded:c.medium,fillMode:f.solid},se=e=>{let{hover:t,focus:o,disabled:a,invalid:l,valid:r,loading:p,readonly:x,size:d=Ee.size,rounded:u=Ee.rounded,fillMode:b=Ee.fillMode,...v}=e;return Go("span",{...v,className:i(e.className,Oe,I(Oe,{size:d,rounded:u,fillMode:b}),T(Oe,{hover:t,focus:o,disabled:a,invalid:l,valid:r,loading:p,readonly:x})),children:e.children})};se.states=Po;se.options=Bo;se.className=Oe;se.defaultOptions=Ee;import{Fragment as $o,jsx as Je}from"react/jsx-runtime";var kt="k-clear-value",Vo=[s.disabled,s.loading,s.readonly],Do={},G=e=>{let{disabled:t,loading:o,readonly:a,value:l}=e;return t||a||o||!l?Je($o,{}):Je("span",{className:i(e.className,kt),children:Je(k,{icon:"x"})})};G.states=Vo;G.options=Do;G.className=kt;import{jsx as Fo}from"react/jsx-runtime";var qe="k-input-inner",_o=[],Xo={},He={type:"text",autocomplete:"off",value:"",placeholder:""},V=e=>{let{value:t=He.value,type:o=He.type,placeholder:a=He.placeholder,autocomplete:l=He.autocomplete,...r}=e;return Fo("input",{...r,type:o,className:i(e.className,qe,I(qe,e)),placeholder:a,autoComplete:l,defaultValue:t})};V.states=_o;V.options=Xo;V.className=qe;import{jsx as yt,jsxs as Uo}from"react/jsx-runtime";var Ue="k-input-inner",Jo=[],qo={},Ne=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:l,valueIconName:r,...p}=e;return Uo("span",{...p,className:i(e.className,Ue,I(Ue,e)),children:[l,!l&&r&&yt(k,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&yt("span",{className:"k-input-value-text",children:t})]})};Ne.states=Jo;Ne.options=qo;Ne.className=Ue;import{jsx as Yo}from"react/jsx-runtime";var We="k-input-inner",Wo=[],Qo={},Mt={value:"",placeholder:""},Qe=e=>{let{value:t=Mt.value,placeholder:o=Mt.placeholder,rows:a,...l}=e;return Yo("textarea",{...l,className:i(e.className,We,I(We,e)),placeholder:o,rows:a,defaultValue:t})};Qe.states=Wo;Qe.options=Qo;Qe.className=We;import{Fragment as jo,jsx as At}from"react/jsx-runtime";var Ct="k-input-loading-icon",Zo=[s.disabled,s.loading],P=e=>{let{disabled:t,loading:o}=e;return t||!o?At(jo,{}):At("span",{className:i(e.className,Ct,"k-icon k-i-loading")})};P.states=Zo;P.className=Ct;import{Fragment as os,jsx as Tt}from"react/jsx-runtime";var zt="k-input-validation-icon",es=[s.valid,s.invalid,s.disabled,s.loading],ts={},R=e=>{let{valid:t,invalid:o,disabled:a,loading:l}=e,r=o?"warning-circle":"check-circle";return a||l||!!!(t||o)?Tt(os,{}):Tt(k,{className:i(zt),icon:r})};R.states=es;R.options=ts;R.className=zt;import{Fragment as ns,jsx as wt}from"react/jsx-runtime";var ss="k-input-prefix",is={direction:"horizontal"},ie=e=>{let{direction:t=is.direction,...o}=e;return e.children?wt("span",{...o,className:i(ss,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):wt(ns,{})};import{Fragment as rs,jsx as Ot}from"react/jsx-runtime";var as="k-input-suffix",ls={direction:"horizontal"},ne=e=>{let{direction:t=ls.direction,...o}=e;return e.children?Ot("span",{...o,className:i(as,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ot(rs,{})};import{jsx as Yn}from"react/jsx-runtime";import{jsx as ta}from"react/jsx-runtime";import{jsx as ms}from"react/jsx-runtime";var Et="k-input-separator",ps={direction:"vertical"},ae=e=>{let{direction:t=ps.direction,...o}=e;return ms("span",{...o,className:i(Et,e.className,{[`${Et}-${t}`]:t})})};import{jsx as Ht,jsxs as us}from"react/jsx-runtime";var Kt="k-spin-button",ds=[],cs={size:[n.small,n.medium,n.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ye={size:n.medium,fillMode:f.solid},le=e=>{let{size:t=Ye.size,fillMode:o=Ye.fillMode,...a}=e;return us("span",{...a,className:i(Kt,e.className),children:[Ht(w,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Ht(w,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};le.states=ds;le.options=cs;le.className=Kt;le.defaultOptions=Ye;import{Fragment as Rt,jsx as D,jsxs as Ze}from"react/jsx-runtime";var Pt="k-numerictextbox",fs=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],xs={size:[n.small,n.medium,n.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[f.solid,f.flat,f.outline]},Y={showSpinButton:!0,showClearButton:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},M=e=>{let{size:t=Y.size,rounded:o=Y.rounded,fillMode:a=Y.fillMode,separators:l=Y.separators,showClearButton:r=Y.showClearButton,showSpinButton:p=Y.showSpinButton,prefix:x,suffix:d,value:u,placeholder:b,hover:v,focus:N,valid:S,invalid:O,required:E,loading:A,disabled:C,readonly:B,...W}=e;return Ze(y,{...W,size:t,rounded:o,fillMode:a,hover:v,focus:N,valid:S,invalid:O,required:E,loading:A,disabled:C,readonly:B,className:i(e.className,Pt),children:[x&&Ze(Rt,{children:[D(ie,{children:x}),l&&D(ae,{})]}),D(V,{placeholder:b,value:u}),D(R,{valid:S,invalid:O,loading:A,disabled:C}),D(P,{loading:A,disabled:C}),r&&D(G,{loading:A,disabled:C,readonly:B,value:u}),d&&Ze(Rt,{children:[l&&D(ae,{}),D(ne,{children:d})]}),p&&D(le,{className:"k-input-spinner",size:t,fillMode:a})]})};M.states=fs;M.options=xs;M.className=Pt;M.defaultOptions=Y;import{jsx as Ea}from"react/jsx-runtime";import{jsx as Gt}from"react/jsx-runtime";var Vt="k-animation-container",hs=[],bs={},Dt={positionMode:"absolute"},_=e=>{let{positionMode:t=Dt.positionMode,animationStyle:o,offset:a,...l}=e;return Gt("div",{...l,style:{...a,...e.style},className:i(e.className,Vt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Gt("div",{className:"k-child-animation-container",style:o,children:e.children})})};_.states=hs;_.options=bs;_.className=Vt;_.defaultOptions=Dt;import{jsx as $t}from"react/jsx-runtime";var _t="k-popup",Ls=[],vs={},Xt={positionMode:"absolute"},re=e=>{let{offset:t,positionMode:o=Xt.positionMode,animationStyle:a,...l}=e;return $t(_,{positionMode:o,offset:t,animationStyle:a,children:$t("div",{...l,className:i(e.className,_t),children:e.children})})};re.states=Ls;re.options=vs;re.className=_t;re.defaultOptions=Xt;import{jsx as Is}from"react/jsx-runtime";var Ke="k-actions",Ns=[],Ss={},je={alignment:"start",orientation:"horizontal"},pe=e=>{let{alignment:t=je.alignment,orientation:o=je.orientation,...a}=e;return Is("div",{...a,className:i(Ke,{[`${Ke}-${t}`]:t,[`${Ke}-${o}`]:o},e.className),children:e.children})};pe.states=Ns;pe.options=Ss;pe.className=Ke;pe.defaultOptions=je;import{jsx as ks}from"react/jsx-runtime";var gs="k-actionsheet-footer",Ft={alignment:"stretched",orientation:"horizontal"},et=e=>{let{alignment:t=Ft.alignment,orientation:o=Ft.orientation,template:a,as:l=a?"div":pe,...r}=e;return ks(l,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,gs),children:e.children})};import{jsx as Se,jsxs as As}from"react/jsx-runtime";var Jt="k-searchbox",ys=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Ms={size:[n.small,n.medium,n.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[f.solid,f.flat,f.outline]},tt={showIcon:!0,icon:"search",size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode},$=e=>{let{value:t,placeholder:o,size:a,rounded:l,fillMode:r,hover:p,focus:x,valid:d,invalid:u,required:b,loading:v,disabled:N,showIcon:S=tt.showIcon,icon:O=tt.icon,...E}=e;return As(y,{...E,size:a,rounded:l,fillMode:r,hover:p,focus:x,valid:d,invalid:u,required:b,loading:v,disabled:N,className:i(e.className,Jt),children:[S&&Se(k,{className:"k-input-icon",icon:O}),Se(V,{placeholder:o,value:t}),Se(P,{...e}),Se(R,{...e}),Se(G,{...e})]})};$.states=ys;$.options=Ms;$.className=Jt;$.defaultOptions=tt;import{jsx as pl}from"react/jsx-runtime";import{Fragment as qt,jsx as X,jsxs as ot}from"react/jsx-runtime";var Ut="k-textbox",Cs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ts={size:[n.small,n.medium,n.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[f.solid,f.flat,f.outline]},Z={showClearButton:!0,showValidationIcon:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},F=e=>{let{size:t=Z.size,rounded:o=Z.rounded,fillMode:a=Z.fillMode,separators:l=Z.separators,showClearButton:r=Z.showClearButton,showValidationIcon:p=Z.showValidationIcon,prefix:x,suffix:d,type:u,value:b,placeholder:v,hover:N,focus:S,valid:O,invalid:E,required:A,loading:C,disabled:B,readonly:W,...De}=e;return ot(y,{...De,size:t,rounded:o,fillMode:a,hover:N,focus:S,valid:O,invalid:E,required:A,loading:C,disabled:B,readonly:W,className:i(e.className,Ut),children:[x&&ot(qt,{children:[X(ie,{children:x}),l&&X(ae,{})]}),X(V,{placeholder:v,value:b,type:u}),p&&X(R,{valid:O,invalid:E,loading:C,disabled:B}),X(P,{loading:C,disabled:B}),r&&X(G,{loading:C,disabled:B,readonly:W,value:b}),d&&ot(qt,{children:[l&&X(ae,{}),X(ne,{children:d})]})]})};F.states=Cs;F.options=Ts;F.className=Ut;F.defaultOptions=Z;import{jsx as Nl}from"react/jsx-runtime";import{Fragment as Ml,jsx as yl}from"react/jsx-runtime";import{Fragment as El,jsx as Ol}from"react/jsx-runtime";import{jsx as J,jsxs as st}from"react/jsx-runtime";var Qt="k-actionsheet-titlebar",zs={},q=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:l,filter:r,input:p,inputValue:x,inputPlaceholder:d,adaptive:u,children:b,...v}=e;return st("div",{...v,className:i(e.className,Qt),children:[st("div",{className:"k-actionsheet-titlebar-group",children:[a&&J("div",{className:"k-actionsheet-actions",children:a}),!b&&st("div",{className:"k-actionsheet-title",children:[t&&J("div",{className:"k-text-center",children:t}),o&&J("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&J("div",{className:"k-actionsheet-title",children:b}),l&&J("div",{className:"k-actionsheet-actions",children:l})]}),(p||r)&&J("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?J(F,{value:x,placeholder:d,size:u?"large":"medium"}):J($,{placeholder:"Filter",size:u?"large":"medium"})})]})};q.className=Qt;q.defaultOptions=zs;import{jsx as it,jsxs as Hs}from"react/jsx-runtime";var nt="k-actionsheet-view",ws=[],Os={},Es={},me=e=>{let{adaptive:t,animated:o,children:a,header:l,footer:r,...p}=e,x=l?.type===q&&it(q,{adaptive:t,...l?.props}),d=r?.type===et&&it(et,{...r?.props});return Hs("div",{...p,className:i(e.className,nt,{[`${nt}-animated`]:o}),children:[x,it("div",{className:"k-actionsheet-content",children:a}),d]})};me.states=ws;me.options=Os;me.className=nt;me.defaultOptions=Es;import{jsx as Re,jsxs as Ps}from"react/jsx-runtime";var Yt="k-actionsheet",Ks=[],Rs={},Ie={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},j=e=>{let{side:t=Ie.side,fullscreen:o=Ie.fullscreen,adaptive:a=Ie.adaptive,overlay:l=Ie.overlay,template:r,children:p,header:x,footer:d,...u}=e;return Ps("div",{className:"k-actionsheet-container",children:[l&&Re("div",{className:"k-overlay"}),Re(_,{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:Re("div",{...u,className:i(e.className,Yt,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||Re(me,{header:x,footer:d,adaptive:a,...e,children:p})})})]})};j.states=Ks;j.options=Rs;j.className=Yt;j.defaultOptions=Ie;import{jsx as sr}from"react/jsx-runtime";import{Fragment as Gs,jsx as ge,jsxs as at}from"react/jsx-runtime";var lt="k-actionsheet-item",Bs=[s.hover,s.focus,s.selected,s.disabled],rt=e=>{let{iconName:t,text:o,description:a,hover:l,focus:r,selected:p,disabled:x,...d}=e;return at("span",{...d,className:i(e.className,lt,T(lt,{hover:l,focus:r,selected:p,disabled:x})),children:[!e.children&&ge(Gs,{children:at("span",{className:"k-actionsheet-action",children:[t&&ge("span",{className:"k-icon-wrap",children:ge(k,{className:"k-actionsheet-item-icon",icon:t})}),at("span",{className:"k-actionsheet-item-text",children:[o&&ge("span",{className:"k-actionsheet-item-title",children:o}),a&&ge("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};rt.states=Bs;rt.className=lt;import{jsx as cr,jsxs as ur}from"react/jsx-runtime";import{jsx as br}from"react/jsx-runtime";import{jsx as Sr}from"react/jsx-runtime";import{jsx as yr}from"react/jsx-runtime";import{jsx as Ds}from"react/jsx-runtime";var Vs="k-no-data",ke=e=>Ds("span",{className:i(Vs,e.className),children:e.children});import{jsx as de,jsxs as jt}from"react/jsx-runtime";var pt="k-list",$s=[],_s={size:[n.small,n.medium,n.large]},eo={size:n.medium},z=e=>{let{size:t=eo.size,virtualization:o,children:a,optionLabel:l,customValue:r,screenReaders:p,...x}=e,d,u,b,v,N=[];return a?a.map((S,O)=>{S.type===H?(S.props.root===!0?(d=S.props.label,S.props.children.map((E,A)=>{N.push(de(L,{...E.props},`optChild-${A}-${new Date().getTime()}`))})):S.props.children.forEach((E,A)=>{let C="";A===0&&(C=S.props.label),N.push(de(L,{className:A===0?"k-first":"",...E.props,groupLabel:C},`groupLabel-${A}-${new Date().getTime()}`))}),u=de(H,{label:d,virtualization:o,children:N})):S.type===L&&(N.push(de(L,{...S.props},`${S.type}-${O}`)),b=de(ce,{virtualization:o,children:N}),p&&(v=jt(ke,{className:"k-sr-only",children:[N.length," items found."]})))}):v=de(ke,{children:"No data found."}),jt("div",{...x,className:i(e.className,pt,I(pt,{size:t}),{"k-virtual-list":o}),children:[l,r,u,b,v]})};z.states=$s;z.options=_s;z.className=pt;z.defaultOptions=eo;import{jsx as ee,jsxs as Js}from"react/jsx-runtime";var mt="k-list",Xs=[],Fs={size:[n.small,n.medium,n.large]},to={size:n.medium},te=e=>{let{size:t=to.size,virtualization:o,children:a,...l}=e,r,p,x,d=[];return a?a.map((u,b)=>{u.type===H?(u.props.root===!0?(r=u.props.label,u.props.children.map((v,N)=>{d.push(ee(L,{...v.props},`optChild-${N}-${new Date().getTime()}`))})):(d.push(ee(oo,{...u.props,children:u.props.label},`listChild-${b}`)),u.props.children.map((v,N)=>{d.push(ee(L,{...v.props},`fwOptChild-${N}-${new Date().getTime()}`))})),p=ee(H,{label:r,virtualization:o,children:d})):u.type===L&&(d.push(ee(L,{...u.props},`${u.type}-${b}`)),x=ee(ce,{virtualization:o,children:d}))}):x=ee(ke,{children:"No data found."}),Js("div",{...l,className:i(e.className,mt,I(mt,{size:t}),{"k-virtual-list":o}),children:[p,x]})};te.states=Xs;te.options=Fs;te.className=mt;te.defaultOptions=to;import{jsx as so}from"react/jsx-runtime";var Pe="k-checkbox",qs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Us={size:[n.small,n.medium,n.large],rounded:[c.small,c.medium,c.large,c.full]},dt={size:n.medium,rounded:c.medium},U=e=>{let{id:t,checked:o,indeterminate:a,hover:l,focus:r,disabled:p,invalid:x,valid:d,required:u,size:b=dt.size,rounded:v=dt.rounded,...N}=e;return so("span",{className:"k-checkbox-wrap",children:so("input",{...N,id:t,type:"checkbox",defaultChecked:o,required:u,className:i(e.className,Pe,I(Pe,{size:b,rounded:v}),T(Pe,{hover:l,focus:r,disabled:p,invalid:x,valid:d,indeterminate:a,checked:o}))})})};U.states=qs;U.options=Us;U.className=Pe;U.defaultOptions=dt;import{jsx as Ys}from"react/jsx-runtime";var io="k-checkbox-list",Ws=[],Qs={},no={layout:"vertical"},ue=e=>{let{layout:t=no.layout,...o}=e;return Ys("ul",{...o,className:i(e.className,io,{[`k-list-${t}`]:t}),children:e.children})};ue.states=Ws;ue.options=Qs;ue.className=io;ue.defaultOptions=no;import{jsx as ti}from"react/jsx-runtime";var ao="k-checkbox-list-item",Zs=[],js={},ei={},fe=e=>{let{...t}=e;return ti("li",{...t,className:i(e.className,ao),children:e.children})};fe.states=Zs;fe.options=js;fe.className=ao;fe.defaultOptions=ei;import{Fragment as dp,jsx as mp,jsxs as cp}from"react/jsx-runtime";import{Fragment as bp,jsx as hp,jsxs as Lp}from"react/jsx-runtime";import{Fragment as gp,jsx as Ip,jsxs as kp}from"react/jsx-runtime";import{Fragment as Tp,jsx as Cp,jsxs as zp}from"react/jsx-runtime";import{jsx as Hp}from"react/jsx-runtime";import{jsx as Bp}from"react/jsx-runtime";import{jsx as Be,jsxs as ni}from"react/jsx-runtime";var ut="k-list-item",oi=[s.hover,s.focus,s.selected,s.disabled],si={},ii={},L=e=>{let{text:t,groupLabel:o,group:a,showIcon:l,iconName:r,showCheckbox:p,checked:x,hover:d,focus:u,selected:b,disabled:v,...N}=e,S=t||e.children;return ni("li",{...N,className:i(e.className,a?"k-list-group-item":ut,T(ut,{hover:d,focus:u,disabled:v,selected:b})),children:[p&&Be(U,{checked:x}),l&&Be(k,{icon:r}),Be("span",{className:"k-list-item-text",children:S}),o&&o!==""&&Be("div",{className:"k-list-item-group-label",children:o})]})};L.states=oi;L.options=si;L.className=ut;L.defaultOptions=ii;import{jsx as ft,jsxs as li}from"react/jsx-runtime";var ai="k-list-content",ce=e=>{let{virtualization:t,...o}=e;return li("div",{...o,className:i(ai,e.className),children:[ft("ul",{className:i("k-list-ul"),children:e.children}),t&&ft("div",{className:"k-height-container",children:ft("div",{})})]})};import{jsx as lo}from"react/jsx-runtime";var ri="k-list-group-sticky-header",ro=e=>lo("div",{className:i(ri,e.className),children:lo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as pi,jsx as po,jsxs as mi}from"react/jsx-runtime";var H=e=>{let{virtualization:t,label:o}=e;return mi(pi,{children:[o&&po(ro,{children:o}),e.children&&po(ce,{virtualization:t,children:e.children})]})};import{jsx as mo}from"react/jsx-runtime";var di="k-list-group-item",oo=e=>mo("li",{className:i(di,e.className),children:mo("span",{className:"k-list-item-text",children:e.children})});import{jsx as xi}from"react/jsx-runtime";var xt="k-list-optionlabel",ci=[s.hover,s.focus,s.selected,s.disabled],ui={},fi={},Ge=e=>{let{text:t,hover:o,focus:a,selected:l,disabled:r,...p}=e;return xi("div",{...p,className:i(xt,T(xt,{hover:o,focus:a,selected:l,disabled:r})),children:t})};Ge.states=ci;Ge.options=ui;Ge.className=xt;Ge.defaultOptions=fi;import{jsx as vi}from"react/jsx-runtime";var ht="k-list-custom-value",hi=[s.hover,s.focus,s.selected,s.disabled],bi={},Li={},Ve=e=>{let{text:t,hover:o,focus:a,selected:l,disabled:r,...p}=e;return vi("div",{...p,className:i(ht,T(ht,{hover:o,focus:a,selected:l,disabled:r})),children:t})};Ve.states=hi;Ve.options=bi;Ve.className=ht;Ve.defaultOptions=Li;import{jsx as Sm}from"react/jsx-runtime";import{jsx as ym}from"react/jsx-runtime";import{jsx as Tm,jsxs as zm}from"react/jsx-runtime";import{jsx as Hm,jsxs as Km}from"react/jsx-runtime";import{jsx as Gm}from"react/jsx-runtime";import{jsx as _m,jsxs as Xm}from"react/jsx-runtime";import{jsx as Um,jsxs as Wm}from"react/jsx-runtime";import{Fragment as Ii,jsx as K,jsxs as bt}from"react/jsx-runtime";var co="k-dropdownlist",Ni=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Si={size:[n.small,n.medium,n.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[f.solid,f.flat,f.outline]},xe={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:c.medium,fillMode:f.solid},ye=e=>{let{size:t=xe.size,rounded:o=xe.rounded,fillMode:a=xe.fillMode,arrowIconName:l=xe.arrowIconName,showValue:r=xe.showValue,valueIconName:p,prefix:x,suffix:d,value:u,placeholder:b,hover:v,focus:N,valid:S,invalid:O,required:E,loading:A,disabled:C,readonly:B,popup:W,opened:De,adaptive:xo,adaptiveSettings:ho,adaptiveTitle:bo,adaptiveSubtitle:Lo,adaptiveFilter:vo,...No}=e;return bt(Ii,{children:[bt(se,{...No,size:t,rounded:o,fillMode:a,hover:v,focus:N,valid:S,invalid:O,required:E,loading:A,disabled:C,readonly:B,className:i(e.className,co,{"k-icon-picker":!r&&p}),children:[K(ie,{children:x}),K(Ne,{placeholder:b,value:u,showValue:r,valueIconName:p}),K(R,{valid:S,invalid:O,loading:A,disabled:C}),K(P,{loading:A,disabled:C}),K(ne,{children:d}),K(w,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),De&&W&&K(re,{className:"k-list-container k-dropdownlist-popup",children:W}),xo&&K(j,{adaptive:!0,...ho,header:K(q,{actionsEnd:K(w,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:vo,inputValue:u,inputPlaceholder:b,title:bo,subtitle:Lo}),children:K("div",{className:"k-list-container",children:bt(z,{size:"large",children:[K(L,{text:"List item"}),K(L,{text:"List item"}),K(L,{text:"List item"})]})})})]})};ye.states=Ni;ye.options=Si;ye.className=co;ye.defaultOptions=xe;import{jsx as yd}from"react/jsx-runtime";import{jsx as zd,jsxs as wd}from"react/jsx-runtime";import{Fragment as Gd,jsx as Pd,jsxs as Bd}from"react/jsx-runtime";import{jsx as _d}from"react/jsx-runtime";import{jsx as Ud,jsxs as Wd}from"react/jsx-runtime";import{jsx as ec,jsxs as tc}from"react/jsx-runtime";import{Fragment as pc,jsx as lc,jsxs as rc}from"react/jsx-runtime";import{Fragment as bc,jsx as xc,jsxs as hc}from"react/jsx-runtime";import{Fragment as Ec,jsx as Oc}from"react/jsx-runtime";import{Fragment as Vc,jsx as Gc}from"react/jsx-runtime";import{Fragment as Me,jsx as h,jsxs as g}from"react/jsx-runtime";var uo="k-colorgradient-inputs",gi=[],ki={size:[n.small,n.medium,n.large]},fo={mode:"rgba",size:n.medium},Ae=e=>{let{mode:t=fo.mode,size:o,...a}=e;return g("div",{...a,className:i(uo,"k-hstack"),children:[h("div",{className:"k-vstack",children:h(w,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&g(Me,{children:[g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),h("label",{className:"k-colorgradient-input-label",children:"R"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),h("label",{className:"k-colorgradient-input-label",children:"G"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),h("label",{className:"k-colorgradient-input-label",children:"B"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),h("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&g(Me,{children:[g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"R"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"G"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&g(Me,{children:[g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"H"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"S"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"V"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),h("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&g(Me,{children:[g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"H"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"S"})]}),g("div",{className:"k-vstack",children:[h(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),h("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&h(Me,{children:g("div",{className:"k-vstack k-flex-1",children:[h(F,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),h("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ae.states=gi;Ae.options=ki;Ae.className=uo;Ae.defaultOptions=fo;var Yc=Ae;export{Ae as ColorInput,Yc as default};