@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 22.7 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,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"}),C=(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 oo}from"react/jsx-runtime";var fe="k-input",eo=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],to={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 oo("span",{...A,className:n(e.className,fe,E(fe,{size:p,rounded:N,fillMode:x}),C(fe,{hover:t,focus:o,disabled:s,invalid:r,valid:l,loading:c,readonly:u}))})};S.states=eo;S.options=to;S.className=fe;S.defaultOptions=Ne;S.moduleName=j;S.folderName=ue;import{jsx as so}from"react/jsx-runtime";var he="k-picker",no=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ao={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 so("span",{...A,className:n(e.className,he,E(he,{size:p,rounded:N,fillMode:x}),C(he,{hover:t,focus:o,disabled:s,invalid:r,valid:l,loading:c,readonly:u})),children:e.children})};W.states=no;W.options=ao;W.className=he;W.defaultOptions=xe;W.moduleName=j;W.folderName=ue;import{Fragment as co,jsx as it}from"react/jsx-runtime";var ye="k-font-icon",io=[],ro={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]},lo={},ee=e=>{let{size:t,themeColor:o,icon:s,rotate:r,flip:l,...c}=e;return s?it("span",{...c,className:n(e.className,ye,E(ye,{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(co,{})};ee.states=io;ee.options=ro;ee.className=ye;ee.defaultOptions=lo;var rt=ee;import{Fragment as uo,jsx as Se}from"react/jsx-runtime";var Ce="k-svg-icon",mo=[],po={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(uo,{});c==="none"&&{...u,className:n(e.className,Ce,"k-none")};let p=typeof c=="object"&&c.name&&c.name;return Se("span",{...u,className:n(e.className,Ce,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=mo;te.options=po;te.className=Ce;te.defaultOptions=lt;var ke=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",fo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),No=[],ho={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(ke,{...p,className:n(e.className,Me),icon:s,size:t});let N=Le[s]?s:fo(`${s}-icon`);return Le[N]?oe(ke,{...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=No;M.options=ho;M.defaultOptions=He;M.className=Me;M.moduleName=ct;M.folderName=mt;import{Fragment as Mo,jsx as _e}from"react/jsx-runtime";var dt="k-clear-value",xo=[a.disabled,a.loading,a.readonly],So={},_=e=>{let{disabled:t,loading:o,readonly:s,value:r}=e;return t||s||o||!r?_e(Mo,{}):_e("span",{className:n(e.className,dt),children:_e(M,{icon:"x"})})};_.states=xo;_.options=So;_.className=dt;import{jsx as Eo}from"react/jsx-runtime";var Re="k-input-inner",To=[],Ao={},Te={type:"text",autocomplete:"off",value:"",placeholder:""},R=e=>{let{value:t=Te.value,type:o=Te.type,placeholder:s=Te.placeholder,autocomplete:r=Te.autocomplete,...l}=e;return Eo("input",{...l,type:o,className:n(e.className,Re,E(Re,e)),placeholder:s,autoComplete:r,defaultValue:t})};R.states=To;R.options=Ao;R.className=Re;import{jsx as ut,jsxs as Io}from"react/jsx-runtime";var Pe="k-input-inner",bo=[],vo={},Ke=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:r,valueIconName:l,...c}=e;return Io("span",{...c,className:n(e.className,Pe,E(Pe,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=bo;Ke.options=vo;Ke.className=Pe;import{jsx as yo}from"react/jsx-runtime";var ze="k-input-inner",go=[],Oo={},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=go;Be.options=Oo;Be.className=ze;import{Fragment as ko,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(ko,{}):Nt("span",{className:n(e.className,ht,"k-icon k-i-loading")})};w.states=Co;w.className=ht;import{Fragment as _o,jsx as xt}from"react/jsx-runtime";var St="k-input-validation-icon",Lo=[a.valid,a.invalid,a.disabled,a.loading],Ho={},P=e=>{let{valid:t,invalid:o,disabled:s,loading:r}=e,l=o?"warning-circle":"check-circle";return s||r||!!!(t||o)?xt(_o,{}):xt(M,{className:n(St),icon:l})};P.states=Lo;P.options=Ho;P.className=St;import{Fragment as Ko,jsx as Mt}from"react/jsx-runtime";var Ro="k-input-prefix",Po={direction:"horizontal"},Ae=e=>{let{direction:t=Po.direction,...o}=e;return e.children?Mt("span",{...o,className:n(Ro,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Mt(Ko,{})};import{Fragment as wo,jsx as Tt}from"react/jsx-runtime";var zo="k-input-suffix",Bo={direction:"horizontal"},Ee=e=>{let{direction:t=Bo.direction,...o}=e;return e.children?Tt("span",{...o,className:n(zo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Tt(wo,{})};import{jsx as wa}from"react/jsx-runtime";import{jsx as Va}from"react/jsx-runtime";import{jsx as Fo}from"react/jsx-runtime";var At="k-input-separator",Do={direction:"vertical"},we=e=>{let{direction:t=Do.direction,...o}=e;return Fo("span",{...o,className:n(At,e.className,{[`${At}-${t}`]:t})})};var De="button",Et=De;import{Fragment as Xo,jsx as ne,jsxs as bt}from"react/jsx-runtime";var ae="k-button",Uo=["icon-button"],Vo=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],$o={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}),C(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(Xo,{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=Vo;h.options=$o;h.variants=Uo;h.className=ae;h.defaultOptions=J;h.moduleName=De;h.folderName=Et;import{jsx as hs}from"react/jsx-runtime";import{jsx as Ts}from"react/jsx-runtime";import{jsx as vs}from"react/jsx-runtime";var Fe="popup",vt=Fe;import{jsx as It}from"react/jsx-runtime";var gt="k-animation-container",Jo=[],qo={},Ot={positionMode:"absolute"},k=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})})};k.states=Jo;k.options=qo;k.className=gt;k.defaultOptions=Ot;k.moduleName=Fe;k.folderName=vt;var Ue="popup",yt=Ue;import{jsx as Ct}from"react/jsx-runtime";var kt="k-popup",Go=[],Wo={},Lt={positionMode:"absolute"},y=e=>{let{offset:t,positionMode:o=Lt.positionMode,animationStyle:s,...r}=e;return Ct(k,{positionMode:o,offset:t,animationStyle:s,children:Ct("div",{...r,className:n(e.className,kt),children:e.children})})};y.states=Go;y.options=Wo;y.className=kt;y.defaultOptions=Lt;y.moduleName=Ue;y.folderName=yt;var Ht="time-selector",_t="timeselector";import{Fragment as Ve,jsx as se,jsxs as Rt}from"react/jsx-runtime";var $e="k-timeselector",Yo=[],Qo={size:[i.small,i.medium,i.large]},Pt={size:i.medium},K=e=>{let{size:t=Pt.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 Rt("div",{...c,className:n(e.className,$e,E($e,{size:t})),children:[se(Ve,{children:o}),se(Ve,{children:s}),Rt("div",{className:"k-time-list-container",children:[se("span",{className:"k-time-highlight"}),u]})]})};K.states=Yo;K.options=Qo;K.className=$e;K.defaultOptions=Pt;K.moduleName=Ht;K.folderName=_t;import{Fragment as Kt,jsx as D,jsxs as Je}from"react/jsx-runtime";var Zo=[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",C("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=Zo;import{jsx as en,jsxs as tn}from"react/jsx-runtime";var jo="k-time-header",Y=e=>{let{title:t,...o}=e;return tn("div",{...o,className:n(e.className,jo),children:[t!=null&&en("span",{className:"k-title",children:t}),e.children]})};var qe="action-buttons",zt=qe;import{jsx as an}from"react/jsx-runtime";var be="k-actions",on=[],nn={},Ge={alignment:"start",orientation:"horizontal"},g=e=>{let{alignment:t=Ge.alignment,orientation:o=Ge.orientation,...s}=e;return an("div",{...s,className:n(be,{[`${be}-${t}`]:t,[`${be}-${o}`]:o},e.className),children:e.children})};g.states=on;g.options=nn;g.className=be;g.defaultOptions=Ge;g.moduleName=qe;g.folderName=zt;import{jsx as Ni,jsxs as hi}from"react/jsx-runtime";import{Fragment as gi,jsx as vi,jsxs as Ii}from"react/jsx-runtime";import{Fragment as Ki,jsx as Ri,jsxs as Pi}from"react/jsx-runtime";import{Fragment as Ji,jsx as $i,jsxs as Xi}from"react/jsx-runtime";import{jsx as rn}from"react/jsx-runtime";var sn="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 rn(r,{...l,...!s&&{alignment:t,orientation:o},className:n(e.className,sn),children:e.children})};var We="searchbox",Dt=We;import{jsx as re,jsxs as mn}from"react/jsx-runtime";var Ft="k-searchbox",ln=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],cn={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 mn(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(R,{placeholder:o,value:t}),re(w,{...e}),re(P,{...e}),re(_,{...e})]})};F.states=ln;F.options=cn;F.className=Ft;F.defaultOptions=Ye;F.moduleName=We;F.folderName=Dt;import{jsx as hr}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",pn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],dn={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(R,{placeholder:A,value:x,type:N}),c&&U(P,{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=pn;V.options=dn;V.className=$t;V.defaultOptions=q;V.moduleName=Qe;V.folderName=Ut;import{jsx as Cr}from"react/jsx-runtime";import{Fragment as Pr,jsx as Rr}from"react/jsx-runtime";import{Fragment as Ur,jsx as Fr}from"react/jsx-runtime";import{jsx as $,jsxs as je}from"react/jsx-runtime";var Jt="k-actionsheet-titlebar",un={},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=un;import{jsx as et,jsxs as xn}from"react/jsx-runtime";var tt="k-actionsheet-view",fn=[],Nn={},hn={},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 xn("div",{...c,className:n(e.className,tt,{[`${tt}-animated`]:o}),children:[u,et("div",{className:"k-actionsheet-content",children:s}),p]})};Q.states=fn;Q.options=Nn;Q.className=tt;Q.defaultOptions=hn;var le="action-sheet",ve=le;import{jsx as Ie,jsxs as Tn}from"react/jsx-runtime";var qt="k-actionsheet",Sn=[],Mn={},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 Tn("div",{className:"k-actionsheet-container",children:[r&&Ie("div",{className:"k-overlay"}),Ie(k,{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=Sn;z.options=Mn;z.className=qt;z.defaultOptions=ce;z.moduleName=le;z.folderName=ve;import{jsx as vn}from"react/jsx-runtime";var Gt="k-actionsheet-container",An=[],En={},bn={},Z=e=>{let{children:t,...o}=e;return vn("div",{...o,className:Gt,children:t})};Z.states=An;Z.options=En;Z.className=Gt;Z.defaultOptions=bn;Z.moduleName=le;Z.folderName=ve;import{jsx as xl}from"react/jsx-runtime";import{Fragment as gn,jsx as me,jsxs as ot}from"react/jsx-runtime";var nt="k-actionsheet-item",In=[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,C(nt,{hover:r,focus:l,selected:c,disabled:u})),children:[!e.children&&me(gn,{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=In;at.className=nt;import{jsx as gl,jsxs as Ol}from"react/jsx-runtime";import{jsx as Ll}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{jsx as wl}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",On=[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,...jt}=e;return pe(Cn,{children:[pe(S,{...jt,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(R,{placeholder:u,value:c}),T(P,{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(y,{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=On;G.options=yn;G.className=Zt;G.defaultOptions=ge;G.moduleName=Yt;G.folderName=Qt;var cc=G;export{Zt as TIMEPICKER_CLASSNAME,G as TimePicker,cc as default};