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