@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 27 kB
JavaScript
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...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 A=(e,t)=>s({[`${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)=>{let{valid:o,invalid:i,hover:r,focus:l,checked:p,active:f,selected:c,disabled:d,indeterminate:x,loading:L,empty:b,readonly:S,highlighted:v,...C}=t;return s({"k-valid":o,"k-invalid":i,"k-hover":r,"k-focus":l,"k-checked":p,"k-active":f,"k-selected":c,"k-disabled":d,"k-indeterminate":x&&!p,"k-loading":L,"k-empty":b,"k-readonly":S,"k-highlighted":v},Object.keys(C).reduce((I,E)=>(E.startsWith("k-")?I[E]=C[E]:I[`k-${E}`]=C[E],I),{}))};function Ct(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!0]))}var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={small:"small",medium:"medium",large:"large",full:"full"},N={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"},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",generating:"generating",expanded:"expanded"};import{jsx as Po}from"react/jsx-runtime";var Ho="k-no-data",ue=e=>Po("span",{className:s(Ho,e.className),children:e.children});var H="list",B=H;import{jsx as ie,jsxs as Tt}from"react/jsx-runtime";var Ge="k-list",zo=[],Do={size:[a.small,a.medium,a.large]},Ot={size:a.medium},g=e=>{let{size:t=Ot.size,virtualization:o,children:i,optionLabel:r,customValue:l,screenReaders:p,...f}=e,c,d,x,L,b=[];return i?i.map((S,v)=>{S.type===_?(S.props.root===!0?(c=S.props.label,S.props.children.map((C,I)=>{b.push(ie(h,{...C.props},`optChild-${I}-${new Date().getTime()}`))})):S.props.children.forEach((C,I)=>{let E="";I===0&&(E=S.props.label),b.push(ie(h,{className:I===0?"k-first":"",...C.props,groupLabel:E},`groupLabel-${I}-${new Date().getTime()}`))}),d=ie(_,{label:c,virtualization:o,children:b})):S.type===h&&(b.push(ie(h,{...S.props},`${S.type}-${v}`)),x=ie(ae,{virtualization:o,children:b}),p&&(L=Tt(ue,{className:"k-sr-only",children:[b.length," items found."]})))}):L=ie(ue,{children:"No data found."}),Tt("div",{...f,className:s(e.className,Ge,A(Ge,{size:t}),{"k-virtual-list":o}),children:[r,l,d,x,L]})};g.states=zo;g.options=Do;g.className=Ge;g.defaultOptions=Ot;g.moduleName=H;g.folderName=B;import{jsx as Fo}from"react/jsx-runtime";var gt="k-list-container",wo=[],Bo={},Uo={},re=e=>{let{...t}=e;return Fo("div",{...t,className:s(e.className,gt),children:e.children})};re.states=wo;re.options=Bo;re.className=gt;re.defaultOptions=Uo;re.moduleName=H;re.folderName=B;import{jsx as Z,jsxs as Xo}from"react/jsx-runtime";var Xe="k-list",Vo=[],Go={size:[a.small,a.medium,a.large]},kt={size:a.medium},P=e=>{let{size:t=kt.size,virtualization:o,children:i,...r}=e,l,p,f,c=[];return i?i.map((d,x)=>{d.type===_?(d.props.root===!0?(l=d.props.label,d.props.children.map((L,b)=>{c.push(Z(h,{...L.props},`optChild-${b}-${new Date().getTime()}`))})):(c.push(Z(yt,{...d.props,children:d.props.label},`listChild-${x}`)),d.props.children.map((L,b)=>{c.push(Z(h,{...L.props},`fwOptChild-${b}-${new Date().getTime()}`))})),p=Z(_,{label:l,virtualization:o,children:c})):d.type===h&&(c.push(Z(h,{...d.props},`${d.type}-${x}`)),f=Z(ae,{virtualization:o,children:c}))}):f=Z(ue,{children:"No data found."}),Xo("div",{...r,className:s(e.className,Xe,A(Xe,{size:t}),{"k-virtual-list":o}),children:[p,f]})};P.states=Vo;P.options=Go;P.className=Xe;P.defaultOptions=kt;P.moduleName=H;P.folderName=B;var j="checkbox",le=j;import{jsx as _t}from"react/jsx-runtime";var ve="k-checkbox",$o=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Jo={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full]},$e={size:a.medium,rounded:u.medium},K=e=>{let{id:t,checked:o,indeterminate:i,hover:r,focus:l,disabled:p,invalid:f,valid:c,required:d,size:x=$e.size,rounded:L=$e.rounded,...b}=e;return _t("span",{className:"k-checkbox-wrap",children:_t("input",{...b,id:t,type:"checkbox",defaultChecked:o,required:d,className:s(e.className,ve,A(ve,{size:x,rounded:L}),T(ve,{hover:r,focus:l,disabled:p,invalid:f,valid:c,indeterminate:i,checked:o}))})})};K.states=$o;K.options=Jo;K.className=ve;K.defaultOptions=$e;K.moduleName=j;K.folderName=le;import{jsx as Qo}from"react/jsx-runtime";var Kt="k-checkbox-list",qo=[],Wo={},Rt={layout:"vertical"},U=e=>{let{layout:t=Rt.layout,...o}=e;return Qo("ul",{...o,className:s(e.className,Kt,{[`k-list-${t}`]:t}),children:e.children})};U.states=qo;U.options=Wo;U.className=Kt;U.defaultOptions=Rt;U.moduleName=j;U.folderName=le;import{jsx as en}from"react/jsx-runtime";var Ht="k-checkbox-list-item",Yo=[],Zo={},jo={},F=e=>{let{...t}=e;return en("li",{...t,className:s(e.className,Ht),children:e.children})};F.states=Yo;F.options=Zo;F.className=Ht;F.defaultOptions=jo;F.moduleName=j;F.folderName=le;import{Fragment as Hi,jsx as Ri,jsxs as Pi}from"react/jsx-runtime";import{Fragment as Ui,jsx as Bi,jsxs as Fi}from"react/jsx-runtime";import{Fragment as Ji,jsx as $i,jsxs as qi}from"react/jsx-runtime";import{Fragment as ji,jsx as Zi,jsxs as ea}from"react/jsx-runtime";import{jsx as sa}from"react/jsx-runtime";import{jsx as la}from"react/jsx-runtime";import{Fragment as sn,jsx as Pt}from"react/jsx-runtime";var qe="k-font-icon",tn=[],on={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},nn={},fe=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...p}=e;return i?Pt("span",{...p,className:s(e.className,qe,A(qe,{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"})}):Pt(sn,{})};fe.states=tn;fe.options=on;fe.className=qe;fe.defaultOptions=nn;var zt=fe;import{Fragment as ln,jsx as Ce}from"react/jsx-runtime";var We="k-svg-icon",an=[],rn={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Dt={viewBox:"0 0 24 24"},Ne=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=Dt.viewBox,icon:p,...f}=e;if(!p)return Ce(ln,{});p==="none"&&{...f,className:s(e.className,We,"k-none")};let c=typeof p=="object"&&p.name&&p.name;return Ce("span",{...f,className:s(e.className,We,A("k-icon",{size:t}),{[`k-svg-i-${c}`]:c,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Ce("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};Ne.states=an;Ne.options=rn;Ne.className=We;Ne.defaultOptions=Dt;var Qe=Ne;import*as Ye from"@progress/kendo-svg-icons";var wt="icon",Bt="icons";import{Fragment as Ut,jsx as xe}from"react/jsx-runtime";var Te="k-icon",pn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),mn=[],cn={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Ze={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:i,type:r=Ze.type,rotate:l,flip:p,viewBox:f=Ze.viewBox,...c}=e;if(!i)return xe(Ut,{});if(r==="svg"){if(i==="none")return xe(Qe,{...c,className:s(e.className,Te),icon:i,size:t});let d=Ye[i]?i:pn(`${i}-icon`);return Ye[d]?xe(Qe,{...c,className:s(e.className,Te),icon:Ye[d],size:t,themeColor:o,rotate:l,flip:p,viewBox:f}):xe(Ut,{})}return xe(zt,{...c,className:s(e.className,Te),icon:i,size:t,themeColor:o,rotate:l,flip:p})};M.states=mn;M.options=cn;M.defaultOptions=Ze;M.className=Te;M.moduleName=wt;M.folderName=Bt;import{jsx as Oe,jsxs as Nn}from"react/jsx-runtime";var je="k-list-item",dn=[n.hover,n.focus,n.selected,n.disabled],un={},fn={},h=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:p,checked:f,hover:c,focus:d,selected:x,disabled:L,...b}=e,S=t||e.children;return Nn("li",{...b,className:s(e.className,i?"k-list-group-item":je,T(je,{hover:c,focus:d,disabled:L,selected:x})),children:[p&&Oe(K,{checked:f}),r&&Oe(M,{icon:l}),Oe("span",{className:"k-list-item-text",children:S}),o&&o!==""&&Oe("div",{className:"k-list-item-group-label",children:o})]})};h.states=dn;h.options=un;h.className=je;h.defaultOptions=fn;h.moduleName=H;h.folderName=B;import{jsx as et,jsxs as hn}from"react/jsx-runtime";var xn="k-list-content",ae=e=>{let{virtualization:t,...o}=e;return hn("div",{...o,className:s(xn,e.className),children:[et("ul",{className:s("k-list-ul"),children:e.children}),t&&et("div",{className:"k-height-container",children:et("div",{})})]})};import{jsx as Ft}from"react/jsx-runtime";var Ln="k-list-group-sticky-header",Vt=e=>Ft("div",{className:s(Ln,e.className),children:Ft("div",{className:"k-list-header-text",children:e.children})});import{Fragment as bn,jsx as Gt,jsxs as Sn}from"react/jsx-runtime";var _=e=>{let{virtualization:t,label:o}=e;return Sn(bn,{children:[o&&Gt(Vt,{children:o}),e.children&&Gt(ae,{virtualization:t,children:e.children})]})};import{jsx as Xt}from"react/jsx-runtime";var An="k-list-group-item",yt=e=>Xt("li",{className:s(An,e.className),children:Xt("span",{className:"k-list-item-text",children:e.children})});import{jsx as vn}from"react/jsx-runtime";var tt="k-list-optionlabel",Mn=[n.hover,n.focus,n.selected,n.disabled],En={},In={},ge=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return vn("div",{...p,className:s(tt,T(tt,{hover:o,focus:i,selected:r,disabled:l})),children:t})};ge.states=Mn;ge.options=En;ge.className=tt;ge.defaultOptions=In;import{jsx as gn}from"react/jsx-runtime";var ot="k-list-custom-value",Cn=[n.hover,n.focus,n.selected,n.disabled],Tn={},On={},ke=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return gn("div",{...p,className:s(ot,T(ot,{hover:o,focus:i,selected:r,disabled:l})),children:t})};ke.states=Cn;ke.options=Tn;ke.className=ot;ke.defaultOptions=On;import{jsx as pr}from"react/jsx-runtime";import{jsx as ur}from"react/jsx-runtime";import{jsx as hr,jsxs as Lr}from"react/jsx-runtime";import{jsx as Mr,jsxs as Er}from"react/jsx-runtime";import{jsx as Tr}from"react/jsx-runtime";import{jsx as yr,jsxs as _r}from"react/jsx-runtime";import{jsx as Pr,jsxs as zr}from"react/jsx-runtime";var nt="button",$t=nt;import{Fragment as Kn,jsx as he,jsxs as Jt}from"react/jsx-runtime";var Le="k-button",kn=["icon-button"],yn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],_n={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},ee={size:a.medium,rounded:u.medium,fillMode:N.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},y=e=>{let{size:t=ee.size,rounded:o=ee.rounded,fillMode:i=ee.fillMode,themeColor:r=ee.themeColor,showArrow:l=ee.showArrow,arrowIconName:p=ee.arrowIconName,variant:f,hover:c,focus:d,active:x,selected:L,disabled:b,icon:S,text:v,iconClassName:C,...I}=e,E=S!==void 0,w=e.children!==void 0;return Jt("button",{...I,className:s(e.className,Le,Ct(Le,f),A(Le,{size:t,rounded:o,fillMode:i,themeColor:r}),T(Le,{hover:c,focus:d,active:x,disabled:b,selected:L}),{"k-icon-button":!v&&!w&&E}),children:[S&&he(M,{className:s(C,"k-button-icon"),icon:S}),v?Jt(Kn,{children:[v&&he("span",{className:"k-button-text",children:v}),e.children]}):e.children&&he("span",{className:"k-button-text",children:e.children}),l&&he("span",{className:"k-menu-button-arrow k-button-arrow",children:he(M,{icon:p})})]})};y.states=yn;y.options=_n;y.variants=kn;y.className=Le;y.defaultOptions=ee;y.moduleName=nt;y.folderName=$t;import{jsx as cl}from"react/jsx-runtime";import{jsx as Nl}from"react/jsx-runtime";import{jsx as bl}from"react/jsx-runtime";var be="input",ye=be;import{jsx as Pn}from"react/jsx-runtime";var _e="k-input",Rn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Hn={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},Ke={size:a.medium,rounded:a.medium,fillMode:N.solid},O=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f,size:c=Ke.size,rounded:d=Ke.rounded,fillMode:x=Ke.fillMode,...L}=e;return Pn("span",{...L,className:s(e.className,_e,A(_e,{size:c,rounded:d,fillMode:x}),T(_e,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f}))})};O.states=Rn;O.options=Hn;O.className=_e;O.defaultOptions=Ke;O.moduleName=be;O.folderName=ye;import{jsx as wn}from"react/jsx-runtime";var Re="k-picker",zn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Dn={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},He={size:a.medium,rounded:u.medium,fillMode:N.solid},V=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f,size:c=He.size,rounded:d=He.rounded,fillMode:x=He.fillMode,...L}=e;return wn("span",{...L,className:s(e.className,Re,A(Re,{size:c,rounded:d,fillMode:x}),T(Re,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f})),children:e.children})};V.states=zn;V.options=Dn;V.className=Re;V.defaultOptions=He;V.moduleName=be;V.folderName=ye;import{Fragment as Fn,jsx as st}from"react/jsx-runtime";var qt="k-clear-value",Bn=[n.disabled,n.loading,n.readonly],Un={},te=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?st(Fn,{}):st("span",{className:s(e.className,qt),children:st(M,{icon:"x"})})};te.states=Bn;te.options=Un;te.className=qt;import{jsx as Xn}from"react/jsx-runtime";var it="k-input-inner",Vn=[],Gn={},Pe={type:"text",autocomplete:"off",value:"",placeholder:""},oe=e=>{let{value:t=Pe.value,type:o=Pe.type,placeholder:i=Pe.placeholder,autocomplete:r=Pe.autocomplete,...l}=e;return Xn("input",{...l,type:o,className:s(e.className,it,A(it,e)),placeholder:i,autoComplete:r,defaultValue:t})};oe.states=Vn;oe.options=Gn;oe.className=it;import{jsx as Wt,jsxs as qn}from"react/jsx-runtime";var at="k-input-inner",$n=[],Jn={},Se=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...p}=e;return qn("span",{...p,className:s(e.className,at,A(at,e)),children:[r,!r&&l&&Wt(M,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&Wt("span",{className:"k-input-value-text",children:t})]})};Se.states=$n;Se.options=Jn;Se.className=at;import{jsx as Yn}from"react/jsx-runtime";var rt="k-input-inner",Wn=[],Qn={},Qt={value:"",placeholder:""},lt=e=>{let{value:t=Qt.value,placeholder:o=Qt.placeholder,rows:i,...r}=e;return Yn("textarea",{...r,className:s(e.className,rt,A(rt,e)),placeholder:o,rows:i,defaultValue:t})};lt.states=Wn;lt.options=Qn;lt.className=rt;import{Fragment as jn,jsx as Yt}from"react/jsx-runtime";var Zt="k-input-loading-icon",Zn=[n.disabled,n.loading],G=e=>{let{disabled:t,loading:o}=e;return t||!o?Yt(jn,{}):Yt("span",{className:s(e.className,Zt,"k-icon k-i-loading")})};G.states=Zn;G.className=Zt;import{Fragment as os,jsx as jt}from"react/jsx-runtime";var eo="k-input-validation-icon",es=[n.valid,n.invalid,n.disabled,n.loading],ts={},z=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?jt(os,{}):jt(M,{className:s(eo),icon:l})};z.states=es;z.options=ts;z.className=eo;import{Fragment as is,jsx as to}from"react/jsx-runtime";var ns="k-input-prefix",ss={direction:"horizontal"},ze=e=>{let{direction:t=ss.direction,...o}=e;return e.children?to("span",{...o,className:s(ns,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):to(is,{})};import{Fragment as ls,jsx as oo}from"react/jsx-runtime";var as="k-input-suffix",rs={direction:"horizontal"},De=e=>{let{direction:t=rs.direction,...o}=e;return e.children?oo("span",{...o,className:s(as,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):oo(ls,{})};import{jsx as mp}from"react/jsx-runtime";import{jsx as fp}from"react/jsx-runtime";import{jsx as ms}from"react/jsx-runtime";var no="k-input-separator",ps={direction:"vertical"},pt=e=>{let{direction:t=ps.direction,...o}=e;return ms("span",{...o,className:s(no,e.className,{[`${no}-${t}`]:t})})};var mt="popup",so=mt;import{jsx as io}from"react/jsx-runtime";var ao="k-animation-container",cs=[],ds={},ro={positionMode:"absolute"},R=e=>{let{positionMode:t=ro.positionMode,animationStyle:o,offset:i,...r}=e;return io("div",{...r,style:{...i,...e.style},className:s(e.className,ao,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:io("div",{className:"k-child-animation-container",style:o,children:e.children})})};R.states=cs;R.options=ds;R.className=ao;R.defaultOptions=ro;R.moduleName=mt;R.folderName=so;var ct="popup",lo=ct;import{jsx as po}from"react/jsx-runtime";var mo="k-popup",us=[],fs={},co={positionMode:"absolute"},X=e=>{let{offset:t,positionMode:o=co.positionMode,animationStyle:i,...r}=e;return po(R,{positionMode:o,offset:t,animationStyle:i,children:po("div",{...r,className:s(e.className,mo),children:e.children})})};X.states=us;X.options=fs;X.className=mo;X.defaultOptions=co;X.moduleName=ct;X.folderName=lo;var dt="action-buttons",uo=dt;import{jsx as hs}from"react/jsx-runtime";var we="k-actions",Ns=[],xs={},ut={alignment:"start",orientation:"horizontal"},$=e=>{let{alignment:t=ut.alignment,orientation:o=ut.orientation,...i}=e;return hs("div",{...i,className:s(we,{[`${we}-${t}`]:t,[`${we}-${o}`]:o},e.className),children:e.children})};$.states=Ns;$.options=xs;$.className=we;$.defaultOptions=ut;$.moduleName=dt;$.folderName=uo;import{jsx as bs}from"react/jsx-runtime";var Ls="k-actionsheet-footer",fo={alignment:"stretched",orientation:"horizontal"},ft=e=>{let{alignment:t=fo.alignment,orientation:o=fo.orientation,template:i,as:r=i?"div":$,...l}=e;return bs(r,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,Ls),children:e.children})};var Nt="searchbox",No=Nt;import{jsx as Ae,jsxs as Ms}from"react/jsx-runtime";var xo="k-searchbox",Ss=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],As={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},xt={showIcon:!0,icon:"search",size:O.defaultOptions.size,rounded:O.defaultOptions.rounded,fillMode:O.defaultOptions.fillMode},J=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:l,hover:p,focus:f,valid:c,invalid:d,required:x,loading:L,disabled:b,showIcon:S=xt.showIcon,icon:v=xt.icon,...C}=e;return Ms(O,{...C,size:i,rounded:r,fillMode:l,hover:p,focus:f,valid:c,invalid:d,required:x,loading:L,disabled:b,className:s(e.className,xo),children:[S&&Ae(M,{className:"k-input-icon",icon:v}),Ae(oe,{placeholder:o,value:t}),Ae(G,{...e}),Ae(z,{...e}),Ae(te,{...e})]})};J.states=Ss;J.options=As;J.className=xo;J.defaultOptions=xt;J.moduleName=Nt;J.folderName=No;import{jsx as Nm}from"react/jsx-runtime";var ht="textbox",ho=ht;import{Fragment as Lo,jsx as q,jsxs as Lt}from"react/jsx-runtime";var bo="k-textbox",Es=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Is={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},ne={showClearButton:!0,showValidationIcon:!0,size:O.defaultOptions.size,rounded:O.defaultOptions.rounded,fillMode:O.defaultOptions.fillMode,separators:!0},W=e=>{let{size:t=ne.size,rounded:o=ne.rounded,fillMode:i=ne.fillMode,separators:r=ne.separators,showClearButton:l=ne.showClearButton,showValidationIcon:p=ne.showValidationIcon,prefix:f,suffix:c,type:d,value:x,placeholder:L,hover:b,focus:S,valid:v,invalid:C,required:I,loading:E,disabled:w,readonly:de,...Ve}=e;return Lt(O,{...Ve,size:t,rounded:o,fillMode:i,hover:b,focus:S,valid:v,invalid:C,required:I,loading:E,disabled:w,readonly:de,className:s(e.className,bo),children:[f&&Lt(Lo,{children:[q(ze,{children:f}),r&&q(pt,{})]}),q(oe,{placeholder:L,value:x,type:d}),p&&q(z,{valid:v,invalid:C,loading:E,disabled:w}),q(G,{loading:E,disabled:w}),l&&q(te,{loading:E,disabled:w,readonly:de,value:x}),c&&Lt(Lo,{children:[r&&q(pt,{}),q(De,{children:c})]})]})};W.states=Es;W.options=Is;W.className=bo;W.defaultOptions=ne;W.moduleName=ht;W.folderName=ho;import{jsx as Om}from"react/jsx-runtime";import{Fragment as Rm,jsx as Km}from"react/jsx-runtime";import{Fragment as Um,jsx as Bm}from"react/jsx-runtime";import{jsx as Q,jsxs as bt}from"react/jsx-runtime";var Ao="k-actionsheet-titlebar",vs={},Y=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:l,input:p,inputValue:f,inputPlaceholder:c,adaptive:d,children:x,...L}=e;return bt("div",{...L,className:s(e.className,Ao),children:[bt("div",{className:"k-actionsheet-titlebar-group",children:[i&&Q("div",{className:"k-actionsheet-actions",children:i}),!x&&bt("div",{className:"k-actionsheet-title",children:[t&&Q("div",{className:"k-text-center",children:t}),o&&Q("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Q("div",{className:"k-actionsheet-title",children:x}),r&&Q("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&Q("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?Q(W,{value:f,placeholder:c,size:d?"large":"medium"}):Q(J,{placeholder:"Filter",size:d?"large":"medium"})})]})};Y.className=Ao;Y.defaultOptions=vs;import{jsx as St,jsxs as gs}from"react/jsx-runtime";var At="k-actionsheet-view",Cs=[],Ts={},Os={},pe=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...p}=e,f=r?.type===Y&&St(Y,{adaptive:t,...r?.props}),c=l?.type===ft&&St(ft,{...l?.props});return gs("div",{...p,className:s(e.className,At,{[`${At}-animated`]:o}),children:[f,St("div",{className:"k-actionsheet-content",children:i}),c]})};pe.states=Cs;pe.options=Ts;pe.className=At;pe.defaultOptions=Os;var Me="action-sheet",Be=Me;import{jsx as Ue,jsxs as _s}from"react/jsx-runtime";var Mo="k-actionsheet",ks=[],ys={},Ee={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},D=e=>{let{side:t=Ee.side,fullscreen:o=Ee.fullscreen,adaptive:i=Ee.adaptive,overlay:r=Ee.overlay,template:l,children:p,header:f,footer:c,...d}=e;return _s("div",{className:"k-actionsheet-container",children:[r&&Ue("div",{className:"k-overlay"}),Ue(R,{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:Ue("div",{...d,className:s(e.className,Mo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:l||Ue(pe,{header:f,footer:c,adaptive:i,...e,children:p})})})]})};D.states=ks;D.options=ys;D.className=Mo;D.defaultOptions=Ee;D.moduleName=Me;D.folderName=Be;import{jsx as Ps}from"react/jsx-runtime";var Eo="k-actionsheet-container",Ks=[],Rs={},Hs={},me=e=>{let{children:t,...o}=e;return Ps("div",{...o,className:Eo,children:t})};me.states=Ks;me.options=Rs;me.className=Eo;me.defaultOptions=Hs;me.moduleName=Me;me.folderName=Be;import{jsx as xc}from"react/jsx-runtime";import{Fragment as Ds,jsx as Ie,jsxs as Mt}from"react/jsx-runtime";var Et="k-actionsheet-item",zs=[n.hover,n.focus,n.selected,n.disabled],It=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:p,disabled:f,...c}=e;return Mt("span",{...c,className:s(e.className,Et,T(Et,{hover:r,focus:l,selected:p,disabled:f})),children:[!e.children&&Ie(Ds,{children:Mt("span",{className:"k-actionsheet-action",children:[t&&Ie("span",{className:"k-icon-wrap",children:Ie(M,{className:"k-actionsheet-item-icon",icon:t})}),Mt("span",{className:"k-actionsheet-item-text",children:[o&&Ie("span",{className:"k-actionsheet-item-title",children:o}),i&&Ie("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};It.states=zs;It.className=Et;import{jsx as vc,jsxs as Cc}from"react/jsx-runtime";import{jsx as kc}from"react/jsx-runtime";import{jsx as Rc}from"react/jsx-runtime";import{jsx as Dc}from"react/jsx-runtime";var vo="dropdown-list",Co="dropdownlist";import{Fragment as Us,jsx as k,jsxs as vt}from"react/jsx-runtime";var To="k-dropdownlist",ws=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Bs={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},ce={showValue:!0,arrowIconName:"caret-alt-down",size:a.medium,rounded:u.medium,fillMode:N.solid},se=e=>{let{size:t=ce.size,rounded:o=ce.rounded,fillMode:i=ce.fillMode,arrowIconName:r=ce.arrowIconName,showValue:l=ce.showValue,valueIconName:p,prefix:f,suffix:c,value:d,placeholder:x,hover:L,focus:b,valid:S,invalid:v,required:C,loading:I,disabled:E,readonly:w,popup:de,opened:Ve,adaptive:go,adaptiveSettings:ko,adaptiveTitle:yo,adaptiveSubtitle:_o,adaptiveFilter:Ko,...Ro}=e;return vt(Us,{children:[vt(V,{...Ro,size:t,rounded:o,fillMode:i,hover:L,focus:b,valid:S,invalid:v,required:C,loading:I,disabled:E,readonly:w,className:s(e.className,To,{"k-icon-picker":!l&&p}),children:[k(ze,{children:f}),k(Se,{placeholder:x,value:d,showValue:l,valueIconName:p}),k(z,{valid:S,invalid:v,loading:I,disabled:E}),k(G,{loading:I,disabled:E}),k(De,{children:c}),k(y,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ve&&de&&k(X,{className:"k-list-container k-dropdownlist-popup",children:de}),go&&k(D,{adaptive:!0,...ko,header:k(Y,{actionsEnd:k(y,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ko,inputValue:d,inputPlaceholder:x,title:yo,subtitle:_o}),children:k("div",{className:"k-list-container",children:vt(g,{size:"large",children:[k(h,{text:"List item"}),k(h,{text:"List item"}),k(h,{text:"List item"})]})})})]})};se.states=ws;se.options=Bs;se.className=To;se.defaultOptions=ce;se.moduleName=vo;se.folderName=Co;var Oo=se;import{jsx as Fe,jsxs as Fs}from"react/jsx-runtime";var cd=e=>Fe(Oo,{opened:!0,popup:Fs(g,{children:[Fe(h,{children:"List item"}),Fe(h,{children:"List item"}),Fe(h,{children:"List item"})]}),...e});export{cd as DropdownListPopup};