UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 22.8 kB
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var E=(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"}),y=(e,t)=>{let{valid:o,invalid:s,hover:r,focus:l,checked:c,active:u,selected:p,disabled:N,indeterminate:x,loading:A,empty:L,readonly:v,highlighted:b,...O}=t;return n({"k-valid":o,"k-invalid":s,"k-hover":r,"k-focus":l,"k-checked":c,"k-active":u,"k-selected":p,"k-disabled":N,"k-indeterminate":x&&!c,"k-loading":A,"k-empty":L,"k-readonly":v,"k-highlighted":b},Object.keys(O).reduce((H,I)=>(I.startsWith("k-")?H[I]=O[I]:H[`k-${I}`]=O[I],H),{}))};function st(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(s=>[`k-${s}`,!0]))}var i={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},d={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"},a={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"};var j="input",ue=j;import{jsx as no}from"react/jsx-runtime";var fe="k-input",to=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],oo={size:[i.small,i.medium,i.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[f.solid,f.flat,f.outline]},Ne={size:i.medium,rounded:i.medium,fillMode:f.solid},S=e=>{let{hover:t,focus:o,disabled:s,invalid:r,valid:l,loading:c,readonly:u,size:p=Ne.size,rounded:N=Ne.rounded,fillMode:x=Ne.fillMode,...A}=e;return no("span",{...A,className:n(e.className,fe,E(fe,{size:p,rounded:N,fillMode:x}),y(fe,{hover:t,focus:o,disabled:s,invalid:r,valid:l,loading:c,readonly:u}))})};S.states=to;S.options=oo;S.className=fe;S.defaultOptions=Ne;S.moduleName=j;S.folderName=ue;import{jsx as io}from"react/jsx-runtime";var he="k-picker",ao=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],so={size:[i.small,i.medium,i.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[f.solid,f.flat,f.outline]},xe={size:i.medium,rounded:d.medium,fillMode:f.solid},W=e=>{let{hover:t,focus:o,disabled:s,invalid:r,valid:l,loading:c,readonly:u,size:p=xe.size,rounded:N=xe.rounded,fillMode:x=xe.fillMode,...A}=e;return io("span",{...A,className:n(e.className,he,E(he,{size:p,rounded:N,fillMode:x}),y(he,{hover:t,focus:o,disabled:s,invalid:r,valid:l,loading:c,readonly:u})),children:e.children})};W.states=ao;W.options=so;W.className=he;W.defaultOptions=xe;W.moduleName=j;W.folderName=ue;import{Fragment as mo,jsx as it}from"react/jsx-runtime";var ke="k-font-icon",ro=[],lo={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},co={},ee=e=>{let{size:t,themeColor:o,icon:s,rotate:r,flip:l,...c}=e;return s?it("span",{...c,className:n(e.className,ke,E(ke,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):it(mo,{})};ee.states=ro;ee.options=lo;ee.className=ke;ee.defaultOptions=co;var rt=ee;import{Fragment as fo,jsx as Se}from"react/jsx-runtime";var ye="k-svg-icon",po=[],uo={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},lt={viewBox:"0 0 24 24"},te=e=>{let{size:t,themeColor:o,rotate:s,flip:r,viewBox:l=lt.viewBox,icon:c,...u}=e;if(!c)return Se(fo,{});c==="none"&&{...u,className:n(e.className,ye,"k-none")};let p=typeof c=="object"&&c.name&&c.name;return Se("span",{...u,className:n(e.className,ye,E("k-icon",{size:t}),{[`k-svg-i-${p}`]:p,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Se("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})})};te.states=po;te.options=uo;te.className=ye;te.defaultOptions=lt;var Ce=te;import*as Le from"@progress/kendo-svg-icons";var ct="icon",mt="icons";import{Fragment as pt,jsx as oe}from"react/jsx-runtime";var Me="k-icon",No=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ho=[],xo={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},He={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:s,type:r=He.type,rotate:l,flip:c,viewBox:u=He.viewBox,...p}=e;if(!s)return oe(pt,{});if(r==="svg"){if(s==="none")return oe(Ce,{...p,className:n(e.className,Me),icon:s,size:t});let N=Le[s]?s:No(`${s}-icon`);return Le[N]?oe(Ce,{...p,className:n(e.className,Me),icon:Le[N],size:t,themeColor:o,rotate:l,flip:c,viewBox:u}):oe(pt,{})}return oe(rt,{...p,className:n(e.className,Me),icon:s,size:t,themeColor:o,rotate:l,flip:c})};M.states=ho;M.options=xo;M.defaultOptions=He;M.className=Me;M.moduleName=ct;M.folderName=mt;import{Fragment as To,jsx as _e}from"react/jsx-runtime";var dt="k-clear-value",So=[a.disabled,a.loading,a.readonly],Mo={},_=e=>{let{disabled:t,loading:o,readonly:s,value:r}=e;return t||s||o||!r?_e(To,{}):_e("span",{className:n(e.className,dt),children:_e(M,{icon:"x"})})};_.states=So;_.options=Mo;_.className=dt;import{jsx as bo}from"react/jsx-runtime";var Pe="k-input-inner",Ao=[],Eo={},Te={type:"text",autocomplete:"off",value:"",placeholder:""},P=e=>{let{value:t=Te.value,type:o=Te.type,placeholder:s=Te.placeholder,autocomplete:r=Te.autocomplete,...l}=e;return bo("input",{...l,type:o,className:n(e.className,Pe,E(Pe,e)),placeholder:s,autoComplete:r,defaultValue:t})};P.states=Ao;P.options=Eo;P.className=Pe;import{jsx as ut,jsxs as go}from"react/jsx-runtime";var Re="k-input-inner",vo=[],Io={},Ke=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:r,valueIconName:l,...c}=e;return go("span",{...c,className:n(e.className,Re,E(Re,e)),children:[r,!r&&l&&ut(M,{className:"k-input-value-icon",icon:l}),s&&!t&&o,s&&t&&ut("span",{className:"k-input-value-text",children:t})]})};Ke.states=vo;Ke.options=Io;Ke.className=Re;import{jsx as yo}from"react/jsx-runtime";var ze="k-input-inner",Oo=[],ko={},ft={value:"",placeholder:""},Be=e=>{let{value:t=ft.value,placeholder:o=ft.placeholder,rows:s,...r}=e;return yo("textarea",{...r,className:n(e.className,ze,E(ze,e)),placeholder:o,rows:s,defaultValue:t})};Be.states=Oo;Be.options=ko;Be.className=ze;import{Fragment as Lo,jsx as Nt}from"react/jsx-runtime";var ht="k-input-loading-icon",Co=[a.disabled,a.loading],w=e=>{let{disabled:t,loading:o}=e;return t||!o?Nt(Lo,{}):Nt("span",{className:n(e.className,ht,"k-icon k-i-loading")})};w.states=Co;w.className=ht;import{Fragment as Po,jsx as xt}from"react/jsx-runtime";var St="k-input-validation-icon",Ho=[a.valid,a.invalid,a.disabled,a.loading],_o={},R=e=>{let{valid:t,invalid:o,disabled:s,loading:r}=e,l=o?"warning-circle":"check-circle";return s||r||!!!(t||o)?xt(Po,{}):xt(M,{className:n(St),icon:l})};R.states=Ho;R.options=_o;R.className=St;import{Fragment as zo,jsx as Mt}from"react/jsx-runtime";var Ro="k-input-prefix",Ko={direction:"horizontal"},Ae=e=>{let{direction:t=Ko.direction,...o}=e;return e.children?Mt("span",{...o,className:n(Ro,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Mt(zo,{})};import{Fragment as Do,jsx as Tt}from"react/jsx-runtime";var Bo="k-input-suffix",wo={direction:"horizontal"},Ee=e=>{let{direction:t=wo.direction,...o}=e;return e.children?Tt("span",{...o,className:n(Bo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Tt(Do,{})};import{jsx as Fa}from"react/jsx-runtime";import{jsx as Xa}from"react/jsx-runtime";import{jsx as Uo}from"react/jsx-runtime";var At="k-input-separator",Fo={direction:"vertical"},we=e=>{let{direction:t=Fo.direction,...o}=e;return Uo("span",{...o,className:n(At,e.className,{[`${At}-${t}`]:t})})};var De="button",Et=De;import{Fragment as Jo,jsx as ne,jsxs as bt}from"react/jsx-runtime";var ae="k-button",Vo=["icon-button"],$o=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],Xo={size:[i.small,i.medium,i.large],rounded:[d.small,d.medium,d.large,d.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]},J={size:i.medium,rounded:d.medium,fillMode:f.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=J.size,rounded:o=J.rounded,fillMode:s=J.fillMode,themeColor:r=J.themeColor,showArrow:l=J.showArrow,arrowIconName:c=J.arrowIconName,variant:u,hover:p,focus:N,active:x,selected:A,disabled:L,icon:v,text:b,iconClassName:O,...H}=e,I=v!==void 0,B=e.children!==void 0;return bt("button",{...H,className:n(e.className,ae,st(ae,u),E(ae,{size:t,rounded:o,fillMode:s,themeColor:r}),y(ae,{hover:p,focus:N,active:x,disabled:L,selected:A}),{"k-icon-button":!b&&!B&&I}),children:[v&&ne(M,{className:n(O,"k-button-icon"),icon:v}),b?bt(Jo,{children:[b&&ne("span",{className:"k-button-text",children:b}),e.children]}):e.children&&ne("span",{className:"k-button-text",children:e.children}),l&&ne("span",{className:"k-menu-button-arrow k-button-arrow",children:ne(M,{icon:c})})]})};h.states=$o;h.options=Xo;h.variants=Vo;h.className=ae;h.defaultOptions=J;h.moduleName=De;h.folderName=Et;import{jsx as Ss}from"react/jsx-runtime";import{jsx as Es}from"react/jsx-runtime";import{jsx as gs}from"react/jsx-runtime";var Fe="popup",vt=Fe;import{jsx as It}from"react/jsx-runtime";var gt="k-animation-container",qo=[],Go={},Ot={positionMode:"absolute"},C=e=>{let{positionMode:t=Ot.positionMode,animationStyle:o,offset:s,...r}=e;return It("div",{...r,style:{...s,...e.style},className:n(e.className,gt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:It("div",{className:"k-child-animation-container",style:o,children:e.children})})};C.states=qo;C.options=Go;C.className=gt;C.defaultOptions=Ot;C.moduleName=Fe;C.folderName=vt;var Ue="popup",kt=Ue;import{jsx as yt}from"react/jsx-runtime";var Ct="k-popup",Wo=[],Yo={},Lt={positionMode:"absolute"},k=e=>{let{offset:t,positionMode:o=Lt.positionMode,animationStyle:s,...r}=e;return yt(C,{positionMode:o,offset:t,animationStyle:s,children:yt("div",{...r,className:n(e.className,Ct),children:e.children})})};k.states=Wo;k.options=Yo;k.className=Ct;k.defaultOptions=Lt;k.moduleName=Ue;k.folderName=kt;var Ht="time-selector",_t="timeselector";import{Fragment as Ve,jsx as se,jsxs as Pt}from"react/jsx-runtime";var $e="k-timeselector",Qo=[],Zo={size:[i.small,i.medium,i.large]},Rt={size:i.medium},K=e=>{let{size:t=Rt.size,header:o,fastSelection:s,columns:r,focusedColumn:l,...c}=e,u=r.map(function(p,N){let x=!1,A=!0;return p===l&&(x=!0),(N===0||p==="tt")&&(A=!1),se(Ve,{children:se(Xe,{type:p,focus:x,separator:A})})});return Pt("div",{...c,className:n(e.className,$e,E($e,{size:t})),children:[se(Ve,{children:o}),se(Ve,{children:s}),Pt("div",{className:"k-time-list-container",children:[se("span",{className:"k-time-highlight"}),u]})]})};K.states=Qo;K.options=Zo;K.className=$e;K.defaultOptions=Rt;K.moduleName=Ht;K.folderName=_t;import{Fragment as Kt,jsx as D,jsxs as Je}from"react/jsx-runtime";var jo=[a.focus],Xe=e=>{let{type:t,focus:o,separator:s,...r}=e,l,c=["00","01","02","03","04","05","06","07","08","09"];switch(t){case"dd":l="Day";break;case"HH":l="Hour";break;case"mm":l="Minute";break;case"ss":l="Second";break;case"SSS":l="Millisecond",c=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":l="AM/PM",c=["AM","PM"];break;default:l="Column Name";break}let u=c.map(p=>D(Kt,{children:D("li",{className:"k-item",children:D("span",{children:p})})}));return Je(Kt,{children:[s&&D("div",{className:"k-time-separator",children:":"}),Je("div",{...r,className:n(e.className,"k-time-list-wrapper",y("k-time-list-wrapper",{focus:o})),children:[D("span",{className:"k-title",children:l}),D("div",{className:"k-time-list",children:Je("div",{className:"k-content k-scrollable k-time-container",children:[D("ul",{className:"k-reset",style:{transform:"translateY(97px)"},children:u}),D("div",{className:"k-scrollable-placeholder"})]})})]})]})};Xe.states=jo;import{jsx as tn,jsxs as on}from"react/jsx-runtime";var en="k-time-header",Y=e=>{let{title:t,...o}=e;return on("div",{...o,className:n(e.className,en),children:[t!=null&&tn("span",{className:"k-title",children:t}),e.children]})};var qe="action-buttons",zt=qe;import{jsx as sn}from"react/jsx-runtime";var be="k-actions",nn=[],an={},Ge={alignment:"start",orientation:"horizontal"},g=e=>{let{alignment:t=Ge.alignment,orientation:o=Ge.orientation,...s}=e;return sn("div",{...s,className:n(be,{[`${be}-${t}`]:t,[`${be}-${o}`]:o},e.className),children:e.children})};g.states=nn;g.options=an;g.className=be;g.defaultOptions=Ge;g.moduleName=qe;g.folderName=zt;import{jsx as xi,jsxs as Si}from"react/jsx-runtime";import{Fragment as ki,jsx as gi,jsxs as Oi}from"react/jsx-runtime";import{Fragment as Bi,jsx as Ki,jsxs as zi}from"react/jsx-runtime";import{Fragment as Gi,jsx as Ji,jsxs as qi}from"react/jsx-runtime";import{jsx as ln}from"react/jsx-runtime";var rn="k-actionsheet-footer",wt={alignment:"stretched",orientation:"horizontal"},ie=e=>{let{alignment:t=wt.alignment,orientation:o=wt.orientation,template:s,as:r=s?"div":g,...l}=e;return ln(r,{...l,...!s&&{alignment:t,orientation:o},className:n(e.className,rn),children:e.children})};var We="searchbox",Dt=We;import{jsx as re,jsxs as pn}from"react/jsx-runtime";var Ft="k-searchbox",cn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],mn={size:[i.small,i.medium,i.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[f.solid,f.flat,f.outline]},Ye={showIcon:!0,icon:"search",size:S.defaultOptions.size,rounded:S.defaultOptions.rounded,fillMode:S.defaultOptions.fillMode},F=e=>{let{value:t,placeholder:o,size:s,rounded:r,fillMode:l,hover:c,focus:u,valid:p,invalid:N,required:x,loading:A,disabled:L,showIcon:v=Ye.showIcon,icon:b=Ye.icon,...O}=e;return pn(S,{...O,size:s,rounded:r,fillMode:l,hover:c,focus:u,valid:p,invalid:N,required:x,loading:A,disabled:L,className:n(e.className,Ft),children:[v&&re(M,{className:"k-input-icon",icon:b}),re(P,{placeholder:o,value:t}),re(w,{...e}),re(R,{...e}),re(_,{...e})]})};F.states=cn;F.options=mn;F.className=Ft;F.defaultOptions=Ye;F.moduleName=We;F.folderName=Dt;import{jsx as Sr}from"react/jsx-runtime";var Qe="textbox",Ut=Qe;import{Fragment as Vt,jsx as U,jsxs as Ze}from"react/jsx-runtime";var $t="k-textbox",dn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],un={size:[i.small,i.medium,i.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[f.solid,f.flat,f.outline]},q={showClearButton:!0,showValidationIcon:!0,size:S.defaultOptions.size,rounded:S.defaultOptions.rounded,fillMode:S.defaultOptions.fillMode,separators:!0},V=e=>{let{size:t=q.size,rounded:o=q.rounded,fillMode:s=q.fillMode,separators:r=q.separators,showClearButton:l=q.showClearButton,showValidationIcon:c=q.showValidationIcon,prefix:u,suffix:p,type:N,value:x,placeholder:A,hover:L,focus:v,valid:b,invalid:O,required:H,loading:I,disabled:B,readonly:de,...Oe}=e;return Ze(S,{...Oe,size:t,rounded:o,fillMode:s,hover:L,focus:v,valid:b,invalid:O,required:H,loading:I,disabled:B,readonly:de,className:n(e.className,$t),children:[u&&Ze(Vt,{children:[U(Ae,{children:u}),r&&U(we,{})]}),U(P,{placeholder:A,value:x,type:N}),c&&U(R,{valid:b,invalid:O,loading:I,disabled:B}),U(w,{loading:I,disabled:B}),l&&U(_,{loading:I,disabled:B,readonly:de,value:x}),p&&Ze(Vt,{children:[r&&U(we,{}),U(Ee,{children:p})]})]})};V.states=dn;V.options=un;V.className=$t;V.defaultOptions=q;V.moduleName=Qe;V.folderName=Ut;import{jsx as Lr}from"react/jsx-runtime";import{Fragment as zr,jsx as Kr}from"react/jsx-runtime";import{Fragment as $r,jsx as Vr}from"react/jsx-runtime";import{jsx as $,jsxs as je}from"react/jsx-runtime";var Jt="k-actionsheet-titlebar",fn={},X=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:r,filter:l,input:c,inputValue:u,inputPlaceholder:p,adaptive:N,children:x,...A}=e;return je("div",{...A,className:n(e.className,Jt),children:[je("div",{className:"k-actionsheet-titlebar-group",children:[s&&$("div",{className:"k-actionsheet-actions",children:s}),!x&&je("div",{className:"k-actionsheet-title",children:[t&&$("div",{className:"k-text-center",children:t}),o&&$("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&$("div",{className:"k-actionsheet-title",children:x}),r&&$("div",{className:"k-actionsheet-actions",children:r})]}),(c||l)&&$("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?$(V,{value:u,placeholder:p,size:N?"large":"medium"}):$(F,{placeholder:"Filter",size:N?"large":"medium"})})]})};X.className=Jt;X.defaultOptions=fn;import{jsx as et,jsxs as Sn}from"react/jsx-runtime";var tt="k-actionsheet-view",Nn=[],hn={},xn={},Q=e=>{let{adaptive:t,animated:o,children:s,header:r,footer:l,...c}=e,u=r?.type===X&&et(X,{adaptive:t,...r?.props}),p=l?.type===ie&&et(ie,{...l?.props});return Sn("div",{...c,className:n(e.className,tt,{[`${tt}-animated`]:o}),children:[u,et("div",{className:"k-actionsheet-content",children:s}),p]})};Q.states=Nn;Q.options=hn;Q.className=tt;Q.defaultOptions=xn;var le="action-sheet",ve=le;import{jsx as Ie,jsxs as An}from"react/jsx-runtime";var qt="k-actionsheet",Mn=[],Tn={},ce={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},z=e=>{let{side:t=ce.side,fullscreen:o=ce.fullscreen,adaptive:s=ce.adaptive,overlay:r=ce.overlay,template:l,children:c,header:u,footer:p,...N}=e;return An("div",{className:"k-actionsheet-container",children:[r&&Ie("div",{className:"k-overlay"}),Ie(C,{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:Ie("div",{...N,className:n(e.className,qt,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:l||Ie(Q,{header:u,footer:p,adaptive:s,...e,children:c})})})]})};z.states=Mn;z.options=Tn;z.className=qt;z.defaultOptions=ce;z.moduleName=le;z.folderName=ve;import{jsx as In}from"react/jsx-runtime";var Gt="k-actionsheet-container",En=[],bn={},vn={},Z=e=>{let{children:t,...o}=e;return In("div",{...o,className:Gt,children:t})};Z.states=En;Z.options=bn;Z.className=Gt;Z.defaultOptions=vn;Z.moduleName=le;Z.folderName=ve;import{jsx as Ml}from"react/jsx-runtime";import{Fragment as On,jsx as me,jsxs as ot}from"react/jsx-runtime";var nt="k-actionsheet-item",gn=[a.hover,a.focus,a.selected,a.disabled],at=e=>{let{iconName:t,text:o,description:s,hover:r,focus:l,selected:c,disabled:u,...p}=e;return ot("span",{...p,className:n(e.className,nt,y(nt,{hover:r,focus:l,selected:c,disabled:u})),children:[!e.children&&me(On,{children:ot("span",{className:"k-actionsheet-action",children:[t&&me("span",{className:"k-icon-wrap",children:me(M,{className:"k-actionsheet-item-icon",icon:t})}),ot("span",{className:"k-actionsheet-item-text",children:[o&&me("span",{className:"k-actionsheet-item-title",children:o}),s&&me("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};at.states=gn;at.className=nt;import{jsx as kl,jsxs as yl}from"react/jsx-runtime";import{jsx as _l}from"react/jsx-runtime";import{jsx as zl}from"react/jsx-runtime";import{jsx as Fl}from"react/jsx-runtime";var Yt="time-picker",Qt="timepicker";import{Fragment as Cn,jsx as T,jsxs as pe}from"react/jsx-runtime";var Zt="k-timepicker",kn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],yn={size:[i.small,i.medium,i.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[f.solid,f.flat,f.outline]},ge={size:S.defaultOptions.size,rounded:S.defaultOptions.rounded,fillMode:S.defaultOptions.fillMode},G=e=>{let{size:t=ge.size,rounded:o=ge.rounded,fillMode:s=ge.fillMode,prefix:r,suffix:l,value:c,placeholder:u,hover:p,focus:N,valid:x,invalid:A,required:L,loading:v,disabled:b,readonly:O,opened:H,adaptive:I,adaptiveSettings:B,adaptiveTitle:de,adaptiveSubtitle:Oe,...eo}=e;return pe(Cn,{children:[pe(S,{...eo,size:t,rounded:o,fillMode:s,hover:p,focus:N,valid:x,invalid:A,required:L,loading:v,disabled:b,readonly:O,className:n(e.className,Zt),children:[T(Ae,{children:r}),T(P,{placeholder:u,value:c}),T(R,{valid:x,invalid:A,loading:v,disabled:b}),T(w,{loading:v,disabled:b}),T(_,{loading:v,disabled:b,readonly:O,value:c}),T(Ee,{children:l}),T(h,{className:"k-input-button",icon:"clock",rounded:null,size:t,fillMode:s})]}),H&&pe(k,{className:"k-list-container k-timepicker-popup",children:[T(K,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:T(Y,{title:"10:00:00 AM",children:T(h,{fillMode:"flat",className:"k-time-now",children:"Now"})})}),pe(g,{alignment:"stretched",className:"k-time-footer",children:[T(h,{themeColor:"primary",className:"k-time-accept",children:"Set"}),T(h,{className:"k-time-cancel",children:"Cancel"})]})]}),I&&T(z,{adaptive:!0,...B,header:T(X,{actionsEnd:T(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:de,subtitle:Oe}),footer:pe(ie,{children:[T(h,{text:"Cancel",size:"large",themeColor:"base"}),T(h,{text:"Set time",size:"large",themeColor:"primary"})]}),children:T(K,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:T(Y,{title:"10:00:00 \u0410\u041C",children:T(h,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};G.states=kn;G.options=yn;G.className=Zt;G.defaultOptions=ge;G.moduleName=Yt;G.folderName=Qt;var jt=G;import{jsx as Ln}from"react/jsx-runtime";var fc=e=>Ln(jt,{opened:!0,...e});export{fc as TimePickerPopup};