UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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