UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 35.5 kB
var Ko=Object.create;var we=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var Bo=Object.getOwnPropertyNames;var zo=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty;var Fo=(e,t)=>{for(var o in t)we(e,o,{get:t[o],enumerable:!0})},Ct=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Bo(t))!Do.call(e,n)&&n!==o&&we(e,n,{get:()=>t[n],enumerable:!(a=wo(t,n))||a.enumerable});return e};var Uo=(e,t,o)=>(o=e!=null?Ko(zo(e)):{},Ct(t||!e||!e.__esModule?we(o,"default",{value:e,enumerable:!0}):o,e)),Vo=e=>Ct(we({},"__esModule",{value:!0}),e);var Oa={};Fo(Oa,{TIMEPICKER_CLASSNAME:()=>Ot,TimePicker:()=>Z,default:()=>ya});module.exports=Vo(Oa);var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var k=(e,t)=>i({[`${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.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),J=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:s,checked:d,active:c,selected:m,disabled:h,indeterminate:b,loading:N,empty:T,readonly:_,highlighted:O,...C}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":s,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":h,"k-indeterminate":b&&!d,"k-loading":N,"k-empty":T,"k-readonly":_,"k-highlighted":O},Object.keys(C).reduce((g,L)=>(L.startsWith("k-")?g[L]=C[L]:g[`k-${L}`]=C[L],g),{}))};function Lt(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},x={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},q={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},r={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 Qe={};function Pt(e){return Qe[e]=(Qe[e]||0)+1,`k-${e}-${Qe[e]}`}var ke="input",Be=ke;var Rt=require("react/jsx-runtime"),ze="k-input",$o=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Xo={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},Jo={},E=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c,size:m,rounded:h,fillMode:b,...N}=e;return(0,Rt.jsx)("span",{...N,className:i(e.className,ze,k(ze,{size:m,rounded:h,fillMode:b}),J(ze,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c}))})};E.states=$o;E.options=Xo;E.className=ze;E.defaultOptions=Jo;E.moduleName=ke;E.folderName=Be;var Ht=require("react/jsx-runtime"),De="k-picker",qo=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Go={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},Yo={},ce=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c,size:m,rounded:h,fillMode:b,...N}=e;return(0,Ht.jsx)("span",{...N,className:i(e.className,De,k(De,{size:m,rounded:h,fillMode:b}),J(De,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c})),children:e.children})};ce.states=qo;ce.options=Go;ce.className=De;ce.defaultOptions=Yo;ce.moduleName=ke;ce.folderName=Be;var Ee=require("react/jsx-runtime"),Ze="k-font-icon",Wo=[],Qo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Zo={},Me=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:s,...d}=e;return a?(0,Ee.jsx)("span",{...d,className:i(e.className,Ze,k(Ze,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):(0,Ee.jsx)(Ee.Fragment,{})};Me.states=Wo;Me.options=Qo;Me.className=Ze;Me.defaultOptions=Zo;var _t=Me;var ie=require("react/jsx-runtime"),je="k-svg-icon",jo=[],en={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[q.outline,q.solid,q.duotone]},et={viewBox:"0 0 24 24",variant:q.outline},Ie=e=>{var N,T;let{size:t,themeColor:o,rotate:a,flip:n,viewBox:s=et.viewBox,variant:d=et.variant,icon:c,...m}=e;if(!c)return(0,ie.jsx)(ie.Fragment,{});if(c==="none")return(0,ie.jsx)("span",{...m,className:i(e.className,je,k("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let h=typeof c=="object"&&c.name&&c.name,b=typeof c=="object"?d&&((N=c.variants)==null?void 0:N[d])||((T=c.variants)==null?void 0:T.outline)||c.content:void 0;return(0,ie.jsx)("span",{...m,className:i(e.className,je,k("k-icon",{size:t}),{[`k-svg-i-${h}`]:h,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:(0,ie.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:c?void 0:e.children})})};Ie.states=jo;Ie.options=en;Ie.className=je;Ie.defaultOptions=et;var tt=Ie;var ot=Uo(require("@progress/kendo-svg-icons"));var Kt="icon",wt="icons";var Dt=require("react");var Bt=require("react"),zt=(0,Bt.createContext)({iconsType:"svg"});var Q=require("react/jsx-runtime"),Fe="k-icon",tn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),on=[],nn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[q.outline,q.solid,q.duotone]},Ue={viewBox:"0 0 24 24",type:"svg",variant:q.outline},v=e=>{let{iconsType:t}=(0,Dt.useContext)(zt),{size:o,themeColor:a,icon:n,type:s=t||Ue.type,rotate:d,flip:c,viewBox:m=Ue.viewBox,variant:h=Ue.variant,...b}=e;if(!n)return(0,Q.jsx)(Q.Fragment,{});if((t||s)==="svg"){if(n==="none")return(0,Q.jsx)(tt,{...b,className:i(e.className,Fe),icon:n,size:o,variant:h});let T=ot[n]?n:tn(`${n}-icon`);return ot[T]?(0,Q.jsx)(tt,{...b,className:i(e.className,Fe),icon:ot[T],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:h}):(0,Q.jsx)(Q.Fragment,{})}return(0,Q.jsx)(_t,{...b,className:i(e.className,Fe),icon:n,size:o,themeColor:a,rotate:d,flip:c})};v.states=on;v.options=nn;v.defaultOptions=Ue;v.className=Fe;v.moduleName=Kt;v.folderName=wt;v.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var de=require("react/jsx-runtime"),Ft="k-clear-value",an=[r.disabled,r.loading,r.readonly],sn={},F=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?(0,de.jsx)(de.Fragment,{}):(0,de.jsx)("span",{className:i(e.className,Ft),children:(0,de.jsx)(v,{icon:"x"})})};F.states=an;F.options=sn;F.className=Ft;var Ut=require("react/jsx-runtime"),nt="k-input-inner",rn=[],ln={},Ve={type:"text",autocomplete:"off",value:"",placeholder:""},U=e=>{let{value:t=Ve.value,type:o=Ve.type,placeholder:a=Ve.placeholder,autocomplete:n=Ve.autocomplete,disabled:s,readOnly:d,...c}=e;return(0,Ut.jsx)("input",{...c,type:o,className:i(e.className,nt,k(nt,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};U.states=rn;U.options=ln;U.className=nt;var ye=require("react/jsx-runtime"),at="k-input-inner",cn=[],dn={},it=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:s,...d}=e;return(0,ye.jsxs)("span",{...d,className:i(e.className,at,k(at,e)),children:[n,!n&&s&&(0,ye.jsx)(v,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&(0,ye.jsx)("span",{className:"k-input-value-text",children:t})]})};it.states=cn;it.options=dn;it.className=at;var $t=require("react/jsx-runtime"),st="k-input-inner",mn=[],pn={},Vt={value:"",placeholder:""},rt=e=>{let{value:t=Vt.value,placeholder:o=Vt.placeholder,rows:a,disabled:n,...s}=e;return(0,$t.jsx)("textarea",{...s,className:i(e.className,st,k(st,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};rt.states=mn;rt.options=pn;rt.className=st;var Oe=require("react/jsx-runtime"),Xt="k-input-loading-icon",un=[r.disabled,r.loading],G=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Oe.jsx)(Oe.Fragment,{}):(0,Oe.jsx)("span",{className:i(e.className,Xt,"k-icon k-i-loading")})};G.states=un;G.className=Xt;var Ce=require("react/jsx-runtime"),Jt="k-input-validation-icon",fn=[r.valid,r.invalid,r.disabled,r.loading],hn={},V=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,s=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?(0,Ce.jsx)(Ce.Fragment,{}):(0,Ce.jsx)(v,{className:i(Jt),icon:s})};V.states=fn;V.options=hn;V.className=Jt;var Le=require("react/jsx-runtime"),bn="k-input-prefix",xn={direction:"horizontal"},me=e=>{let{direction:t=xn.direction,...o}=e;return e.children?(0,Le.jsx)("span",{...o,className:i(bn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Le.jsx)(Le.Fragment,{})};var Pe=require("react/jsx-runtime"),Nn="k-input-suffix",Sn={direction:"horizontal"},pe=e=>{let{direction:t=Sn.direction,...o}=e;return e.children?(0,Pe.jsx)("span",{...o,className:i(Nn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Pe.jsx)(Pe.Fragment,{})};var vn=require("react/jsx-runtime");var An=require("react/jsx-runtime");var Gt=require("react/jsx-runtime"),qt="k-input-separator",Tn={direction:"vertical"},ue=e=>{let{direction:t=Tn.direction,...o}=e;return(0,Gt.jsx)("span",{...o,className:i(qt,e.className,{[`${qt}-${t}`]:t})})};var lt="button",Yt=lt;var K=require("react/jsx-runtime"),Re="k-button",gn=["icon-button"],kn=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],En={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[x.undefined,x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},ct={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:s,showArrow:d=ct.showArrow,arrowIconName:c=ct.arrowIconName,variant:m,hover:h,focus:b,active:N,selected:T,disabled:_,togglable:O,ariaDisabled:C,icon:g,iconSize:L,text:B,iconClassName:le,className:Te,...ge}=e,ae=g!=null,We=e.children!==void 0;return(0,K.jsxs)(t,{className:i(Te,Re,Lt(Re,m),k(Re,{size:o,rounded:a,fillMode:n,themeColor:s}),J(Re,{hover:h,focus:b,active:N,disabled:_||C,selected:T}),{"k-icon-button":!B&&!We&&ae}),"aria-pressed":O?T?"true":"false":void 0,...ge,"aria-disabled":C?"true":void 0,disabled:_||void 0,children:[typeof g=="string"&&g&&(0,K.jsx)(v,{className:i(le,"k-button-icon"),icon:g,size:L}),g&&typeof g!="string"&&(0,K.jsx)(K.Fragment,{children:g}),B?(0,K.jsxs)(K.Fragment,{children:[B&&(0,K.jsx)("span",{className:"k-button-text",children:B}),e.children]}):e.children&&(0,K.jsx)("span",{className:"k-button-text",children:e.children}),d&&(0,K.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,K.jsx)(v,{icon:c})})]})};f.states=kn;f.options=En;f.variants=gn;f.className=Re;f.defaultOptions=ct;f.moduleName=lt;f.folderName=Yt;f.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Wt=require("react/jsx-runtime"),se=e=>(0,Wt.jsx)(f,{children:"Button",...e});var M=require("react/jsx-runtime"),Mn=E.states,In=E.defaultOptions,yn=E.options,On=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Cn=[],fe=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:s,readonly:d,...c}=e,m=t==null?void 0:t.prefix,h=t==null?void 0:t.suffix,b=t==null?void 0:t["clear-button"],N=t==null?void 0:t["validation-icon"],T=t==null?void 0:t.separators;return(0,M.jsxs)(E,{...c,valid:o,invalid:a,loading:n,disabled:s,readonly:d,style:{width:300},children:[m&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(me,{children:(0,M.jsx)(v,{icon:"lock"})}),T&&(0,M.jsx)(ue,{})]}),(0,M.jsx)(U,{placeholder:"Placeholder",value:"Value"}),N&&(0,M.jsx)(V,{valid:o,invalid:a,loading:n,disabled:s}),(0,M.jsx)(G,{loading:n,disabled:s}),b&&(0,M.jsx)(F,{loading:n,disabled:s,readonly:d,value:"Value"}),h&&(0,M.jsxs)(M.Fragment,{children:[T&&(0,M.jsx)(ue,{}),(0,M.jsx)(pe,{children:(0,M.jsx)(se,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};fe.options=yn;fe.states=Mn;fe.variants=Cn;fe.defaultOptions=In;fe.modifiers=On;fe.className=E.className;var Zt=require("react/jsx-runtime"),Qt=e=>(0,Zt.jsx)(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var eo=require("react/jsx-runtime"),jt=e=>(0,eo.jsx)(f,{icon:"folder",children:"Button",...e});var $e=require("react/jsx-runtime"),Ln=f.options,Pn=f.states,Rn={...f.defaultOptions,variant:"text"},Hn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_n=[],he=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,$e.jsx)(Qt,{...o,icon:"star"});case"icon-and-text":return(0,$e.jsx)(jt,{...o,icon:"star",children:"Button"});default:return(0,$e.jsx)(se,{...o,children:"Button"})}};he.options=Ln;he.states=Pn;he.variants=Hn;he.defaultOptions=Rn;he.modifiers=_n;he.className=f.className;var dt="popup",to=dt;var pt=require("react/jsx-runtime"),oo="k-animation-container",Kn=[],wn={},mt={positionMode:"absolute",shown:!0},Y=e=>{let{positionMode:t=mt.positionMode,shown:o=mt.shown,animationStyle:a,offset:n,...s}=e;return(0,pt.jsx)("div",{...s,style:{...n,...e.style},className:i(e.className,oo,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,pt.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};Y.states=Kn;Y.options=wn;Y.className=oo;Y.defaultOptions=mt;Y.moduleName=dt;Y.folderName=to;var ut="popup",no=ut;var ft=require("react/jsx-runtime"),ao="k-popup",Bn=[],zn={},io={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:o=io.positionMode,animationStyle:a,containerClassName:n,containerRole:s,containerAriaLabel:d,...c}=e;return(0,ft.jsx)(Y,{positionMode:o,offset:t,animationStyle:a,className:n,role:s,"aria-label":d,children:(0,ft.jsx)("div",{...c,className:i(e.className,ao),children:e.children})})};z.states=Bn;z.options=zn;z.className=ao;z.defaultOptions=io;z.moduleName=ut;z.folderName=no;z.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var so="time-selector",ro="timeselector";var $=require("react/jsx-runtime"),ht="k-timeselector",Dn=[],Fn={size:[l.undefined,l.small,l.medium,l.large]},Un={},W=e=>{let{size:t,header:o,fastSelection:a,columns:n,focusedColumn:s,...d}=e,c=n.map(function(m,h){let b=!1,N=!0;return m===s&&(b=!0),(h===0||m==="tt")&&(N=!1),(0,$.jsx)(bt,{type:m,focus:b,separator:N},h)});return(0,$.jsxs)("div",{...d,className:i(e.className,ht,k(ht,{size:t})),role:"group","aria-label":"Time selector",children:[(0,$.jsx)($.Fragment,{children:o}),(0,$.jsx)($.Fragment,{children:a}),(0,$.jsxs)("div",{className:"k-time-list-container",children:[(0,$.jsx)("span",{className:"k-time-highlight"}),c]})]})};W.states=Dn;W.options=Fn;W.className=ht;W.defaultOptions=Un;W.moduleName=so;W.folderName=ro;W.ariaSpec={selector:".k-timeselector",rules:[{selector:".k-timeselector",attribute:"role=group",usage:"Groups the time selection columns."},{selector:".k-timeselector",attribute:"aria-label",usage:"Describes the time selector purpose."},{selector:".k-time-list",attribute:"role=listbox",usage:"Each time column list acts as a listbox."},{selector:".k-time-list",attribute:"aria-label",usage:"Describes which time unit the column selects."},{selector:".k-time-list-wrapper .k-reset",attribute:"role=none",usage:"Removes semantic meaning from the ul element."},{selector:".k-time-list-wrapper .k-item",attribute:"role=option",usage:"Each item in the time list is an option."}]};var R=require("react/jsx-runtime"),Vn=[r.focus],bt=e=>{let{type:t,focus:o,separator:a,...n}=e,s,d=["00","01","02","03","04","05","06","07","08","09"];switch(t){case"dd":s="Day";break;case"HH":s="Hour";break;case"mm":s="Minute";break;case"ss":s="Second";break;case"SSS":s="Millisecond",d=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":s="AM/PM",d=["AM","PM"];break;default:s="Column Name";break}let c=d.map((m,h)=>(0,R.jsx)("li",{className:"k-item",role:"option","aria-selected":"false",children:(0,R.jsx)("span",{children:m})},h));return(0,R.jsxs)(R.Fragment,{children:[a&&(0,R.jsx)("div",{className:"k-time-separator",children:":"}),(0,R.jsxs)("div",{...n,className:i(e.className,"k-time-list-wrapper",J("k-time-list-wrapper",{focus:o})),children:[(0,R.jsx)("span",{className:"k-title",children:s}),(0,R.jsx)("div",{className:"k-time-list",role:"listbox","aria-label":s,children:(0,R.jsxs)("div",{className:"k-content k-scrollable k-time-container",children:[(0,R.jsx)("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),(0,R.jsx)("div",{className:"k-scrollable-placeholder"})]})})]})]})};bt.states=Vn;var Xe=require("react/jsx-runtime"),$n="k-time-header",be=e=>{let{title:t,...o}=e;return(0,Xe.jsxs)("div",{...o,className:i(e.className,$n),children:[t!=null&&(0,Xe.jsx)("span",{className:"k-title",children:t}),e.children]})};var xt="action-buttons",lo=xt;var co=require("react/jsx-runtime"),Je="k-actions",Xn=[],Jn={},Nt={alignment:"start",orientation:"horizontal"},H=e=>{let{alignment:t=Nt.alignment,orientation:o=Nt.orientation,...a}=e;return(0,co.jsx)("div",{...a,className:i(Je,{[`${Je}-${t}`]:t,[`${Je}-${o}`]:o},e.className),children:e.children})};H.states=Xn;H.options=Jn;H.className=Je;H.defaultOptions=Nt;H.moduleName=xt;H.folderName=lo;var mo=require("react/jsx-runtime");var St=require("react/jsx-runtime");var vt=require("react/jsx-runtime");var At=require("react/jsx-runtime");var fo=require("react/jsx-runtime"),qn="k-actionsheet-footer",uo={alignment:"stretched",orientation:"horizontal"},j=e=>{let{alignment:t=uo.alignment,orientation:o=uo.orientation,template:a,as:n=a?"div":H,...s}=e;return(0,fo.jsx)(n,{...s,...!a&&{alignment:t,orientation:o},className:i(e.className,qn),children:e.children})};var Tt="searchbox",ho=Tt;var ee=require("react/jsx-runtime"),bo="k-searchbox",Gn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],Yn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},gt={showIcon:!0,icon:"search"},te=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:s,hover:d,focus:c,valid:m,invalid:h,required:b,loading:N,disabled:T,showIcon:_=gt.showIcon,icon:O=gt.icon,"aria-label":C,...g}=e;return(0,ee.jsxs)(E,{...g,size:a,rounded:n,fillMode:s,hover:d,focus:c,valid:m,invalid:h,required:b,loading:N,disabled:T,className:i(e.className,bo),children:[_&&(0,ee.jsx)(v,{className:"k-input-icon",icon:O}),(0,ee.jsx)(U,{placeholder:o,value:t,"aria-label":C}),(0,ee.jsx)(G,{...e}),(0,ee.jsx)(V,{...e}),(0,ee.jsx)(F,{...e})]})};te.states=Gn;te.options=Yn;te.className=bo;te.defaultOptions=gt;te.moduleName=Tt;te.folderName=ho;var Wn=require("react/jsx-runtime");var kt="textbox",xo=kt;var y=require("react/jsx-runtime"),No="k-textbox",Qn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Zn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},qe={showClearButton:!0,showValidationIcon:!0,separators:!0},P=e=>{let{size:t,rounded:o,fillMode:a,separators:n=qe.separators,showClearButton:s=qe.showClearButton,showValidationIcon:d=qe.showValidationIcon,prefix:c,suffix:m,type:h,value:b,placeholder:N,hover:T,focus:_,valid:O,invalid:C,required:g,loading:L,disabled:B,readonly:le,id:Te,"aria-label":ge,"aria-describedby":ae,...We}=e;return(0,y.jsxs)(E,{...We,size:t,rounded:o,fillMode:a,hover:T,focus:_,valid:O,invalid:C,required:g,loading:L,disabled:B,readonly:le,className:i(e.className,No),children:[c&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(me,{children:c}),n&&(0,y.jsx)(ue,{})]}),(0,y.jsx)(U,{id:Te,placeholder:N,value:b,type:h,disabled:B,"aria-label":ge,"aria-describedby":ae,"aria-invalid":C?"true":void 0}),d&&(0,y.jsx)(V,{valid:O,invalid:C,loading:L,disabled:B}),(0,y.jsx)(G,{loading:L,disabled:B}),s&&(0,y.jsx)(F,{loading:L,disabled:B,readonly:le,value:b}),m&&(0,y.jsxs)(y.Fragment,{children:[n&&(0,y.jsx)(ue,{}),(0,y.jsx)(pe,{children:m})]})]})};P.states=Qn;P.options=Zn;P.className=No;P.defaultOptions=qe;P.moduleName=kt;P.folderName=xo;P.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var He=P;var vo=require("react/jsx-runtime"),So=e=>(0,vo.jsx)(He,{...e});var Ao=require("react/jsx-runtime");var To=require("react/jsx-runtime");var jn=require("react/jsx-runtime");var Ge=require("react/jsx-runtime"),ea=P.states,ta=P.defaultOptions,oa=P.options,na=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],aa=[],xe=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t!=null&&t[n]?(0,Ge.jsx)(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[n]?(0,Ge.jsx)(se,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t==null?void 0:t[n];break;default:break}}),(0,Ge.jsx)(So,{value:"Value",style:{width:300},...o,...a})};xe.options=oa;xe.states=ea;xe.variants=aa;xe.defaultOptions=ta;xe.modifiers=na;xe.className=P.className;var w=require("react/jsx-runtime"),go="k-actionsheet-titlebar",ia={},X=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:s,input:d,inputValue:c,inputPlaceholder:m,adaptive:h,titleId:b,children:N,...T}=e;return(0,w.jsxs)("div",{...T,className:i(e.className,go),children:[(0,w.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,w.jsx)("div",{className:"k-actionsheet-actions",children:a}),!N&&(0,w.jsxs)("div",{className:"k-actionsheet-title",id:b,children:[t&&(0,w.jsx)("div",{className:"k-text-center",children:t}),o&&(0,w.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&(0,w.jsx)("div",{className:"k-actionsheet-title",id:b,children:N}),n&&(0,w.jsx)("div",{className:"k-actionsheet-actions",children:n})]}),(d||s)&&(0,w.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?(0,w.jsx)(P,{value:c,placeholder:m,size:h?"large":"medium","aria-label":t||m||"Input"}):(0,w.jsx)(te,{placeholder:"Filter",size:h?"large":"medium","aria-label":"Filter options"})})]})};X.className=go;X.defaultOptions=ia;var Ne=require("react/jsx-runtime"),Et="k-actionsheet-view",sa=[],ra={},la={},Se=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:s,titleId:d,...c}=e,m=(n==null?void 0:n.type)===X&&(0,Ne.jsx)(X,{adaptive:t,titleId:d,...n==null?void 0:n.props}),h=(s==null?void 0:s.type)===j&&(0,Ne.jsx)(j,{...s==null?void 0:s.props});return(0,Ne.jsxs)("div",{...c,className:i(e.className,Et,{[`${Et}-animated`]:o}),children:[m,(0,Ne.jsx)("div",{className:"k-actionsheet-content",children:a}),h]})};Se.states=sa;Se.options=ra;Se.className=Et;Se.defaultOptions=la;var _e="action-sheet",Ye=_e;var Mt="overlay",ko=Mt;var Mo=require("react/jsx-runtime"),Eo="k-overlay",ca=[],da={},ma={},oe=e=>{let{...t}=e;return(0,Mo.jsx)("div",{...t,className:i(e.className,Eo),children:e.children})};oe.states=ca;oe.options=da;oe.className=Eo;oe.defaultOptions=ma;oe.moduleName=Mt;oe.folderName=ko;var re=require("react/jsx-runtime"),Io="k-actionsheet",pa=[],ua={},Ke={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},I=e=>{let{side:t=Ke.side,fullscreen:o=Ke.fullscreen,adaptive:a=Ke.adaptive,overlay:n=Ke.overlay,template:s,children:d,header:c,footer:m,id:h,...b}=e,N=h&&!s&&c?`${h}-title`:void 0;return(0,re.jsxs)("div",{className:"k-actionsheet-container",children:[n&&(0,re.jsx)(oe,{}),(0,re.jsx)(Y,{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,re.jsx)("div",{...b,id:h,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:i(e.className,Io,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||(0,re.jsx)(Se,{header:c,footer:m,adaptive:a,titleId:N,...e,children:d})})})]})};I.states=pa;I.options=ua;I.className=Io;I.defaultOptions=Ke;I.moduleName=_e;I.folderName=Ye;I.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};var Oo=require("react/jsx-runtime"),yo="k-actionsheet-container",fa=[],ha={},ba={},ve=e=>{let{children:t,...o}=e;return(0,Oo.jsx)("div",{...o,className:yo,children:t})};ve.states=fa;ve.options=ha;ve.className=yo;ve.defaultOptions=ba;ve.moduleName=_e;ve.folderName=Ye;var Co=require("react/jsx-runtime"),It=e=>{let{...t}=e;return(0,Co.jsx)("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};var D=require("react/jsx-runtime"),yt="k-actionsheet-item",xa=[r.hover,r.focus,r.selected,r.disabled],ne=e=>{let{iconName:t,text:o,description:a,hover:n,focus:s,selected:d,disabled:c,...m}=e;return(0,D.jsxs)("span",{...m,className:i(e.className,yt,J(yt,{hover:n,focus:s,selected:d,disabled:c})),children:[!e.children&&(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,D.jsx)("span",{className:"k-icon-wrap",children:(0,D.jsx)(v,{className:"k-actionsheet-item-icon",icon:t})}),(0,D.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,D.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,D.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};ne.states=xa;ne.className=yt;var Lo=require("react/jsx-runtime");var Na=require("react/jsx-runtime");var Sa=require("react/jsx-runtime");var va=require("react/jsx-runtime");var A=require("react/jsx-runtime"),Aa=I.options,Ta=I.states,Ro={...I.defaultOptions,variant:"normal"},ga=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],ka=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Ae=e=>{let{variant:t,modifiers:o,...a}={...Ro,...e},n={},s=(0,A.jsxs)(It,{children:[(0,A.jsx)(ne,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,A.jsx)(ne,{text:"Add to Favorites",iconName:"heart"}),(0,A.jsx)(ne,{text:"Upload New",iconName:"upload",disabled:!0}),(0,A.jsx)("hr",{className:"k-hr"}),(0,A.jsx)(ne,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!(o!=null&&o[m]),n.actionsEnd=!!(o!=null&&o[m]);break;case"subtitle":n.subtitle=o!=null&&o[m]?d:void 0;break;case"footer":n.footer=!!(o!=null&&o[m]);break;default:break}}),t==="adaptive"?(0,A.jsx)(I,{...a,adaptive:!0,fullscreen:n.fullScreen,header:(0,A.jsx)(X,{actionsStart:n.actionsStart?(0,A.jsx)(f,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,A.jsx)(f,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?(0,A.jsxs)(j,{alignment:"stretched",children:[(0,A.jsx)(f,{text:"Cancel",size:"large",themeColor:"base"}),(0,A.jsx)(f,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):(0,A.jsx)(I,{...a,fullscreen:n.fullScreen,header:(0,A.jsx)(X,{actionsStart:n.actionsStart?(0,A.jsx)(f,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,A.jsx)(f,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?(0,A.jsxs)(j,{alignment:"stretched",children:[(0,A.jsx)(f,{text:"Apply",themeColor:"primary"}),(0,A.jsx)(f,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Ae.options=Aa;Ae.states=Ta;Ae.variants=ga;Ae.defaultOptions=Ro;Ae.modifiers=ka;Ae.className=I.className;var Ho="time-picker",_o="timepicker";var S=require("react/jsx-runtime"),Ot="k-timepicker",Ea=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Ma={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},Ia={},Z=e=>{let{size:t,rounded:o,fillMode:a,prefix:n,suffix:s,value:d,placeholder:c,hover:m,focus:h,valid:b,invalid:N,required:T,loading:_,disabled:O,readonly:C,opened:g,adaptive:L,adaptiveSettings:B,adaptiveTitle:le,adaptiveSubtitle:Te,...ge}=e,ae=Pt("timepicker-popup");return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(E,{...ge,size:t,rounded:o,fillMode:a,hover:m,focus:h,valid:b,invalid:N,required:T,loading:_,disabled:O,readonly:C,className:i(e.className,Ot),children:[(0,S.jsx)(me,{children:n}),(0,S.jsx)(U,{placeholder:c,value:d,role:"combobox","aria-haspopup":"dialog","aria-expanded":g?"true":"false","aria-controls":g||L?ae:void 0,"aria-invalid":N?"true":void 0,"aria-label":"Select time",disabled:O}),(0,S.jsx)(V,{valid:b,invalid:N,loading:_,disabled:O}),(0,S.jsx)(G,{loading:_,disabled:O}),(0,S.jsx)(F,{loading:_,disabled:O,readonly:C,value:d}),(0,S.jsx)(pe,{children:s}),(0,S.jsx)(f,{className:"k-input-button",icon:"clock",size:t,fillMode:a,tabIndex:-1,"aria-label":"Select time",disabled:O})]}),g&&(0,S.jsxs)(z,{id:ae,className:"k-list-container k-timepicker-popup",children:[(0,S.jsx)(W,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:(0,S.jsx)(be,{title:"10:00:00 AM",children:(0,S.jsx)(f,{fillMode:"flat",className:"k-time-now",children:"Now"})})}),(0,S.jsxs)(H,{alignment:"stretched",className:"k-time-footer",children:[(0,S.jsx)(f,{themeColor:"primary",className:"k-time-accept",children:"Set"}),(0,S.jsx)(f,{className:"k-time-cancel",children:"Cancel"})]})]}),L&&(0,S.jsx)(I,{adaptive:!0,id:ae,...B,header:(0,S.jsx)(X,{actionsEnd:(0,S.jsx)(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:le,subtitle:Te}),footer:(0,S.jsxs)(j,{children:[(0,S.jsx)(f,{text:"Cancel",size:"large"}),(0,S.jsx)(f,{text:"Set time",size:"large",themeColor:"primary"})]}),children:(0,S.jsx)(W,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:(0,S.jsx)(be,{title:"10:00:00 \u0410\u041C",children:(0,S.jsx)(f,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};Z.states=Ea;Z.options=Ma;Z.className=Ot;Z.defaultOptions=Ia;Z.moduleName=Ho;Z.folderName=_o;Z.ariaSpec={selector:".k-timepicker",rules:[{selector:".k-timepicker .k-input-inner",attribute:"role=combobox",usage:"The input element follows the combobox specification."},{selector:".k-timepicker .k-input-inner",attribute:"aria-haspopup=dialog",usage:"Indicates the component has a Dialog Popup."},{selector:".k-timepicker .k-input-inner",attribute:"aria-expanded=true/false",usage:"Announces whether the Popup is visible or not."},{selector:".k-timepicker .k-input-inner",attribute:"aria-controls (when open)",usage:"Points to the popup element."},{selector:".k-timepicker .k-input-inner",attribute:"label for or aria-label or aria-labelledby",usage:"The input needs an accessible name."},{selector:".k-invalid .k-input-inner",attribute:"aria-invalid=true",usage:"Rendered only when the picker is in form and announces invalid state."},{selector:".k-disabled .k-input-inner",attribute:"disabled or aria-disabled=true",usage:"Rendered only when the picker is disabled."},{selector:".k-timepicker .k-input-button",attribute:"tabindex=-1",usage:"Button element must not be focusable."},{selector:".k-timepicker .k-input-button",attribute:"aria-label",usage:"The button needs an accessible name."},{selector:".k-timepicker.k-disabled .k-button",attribute:"disabled or aria-disabled",usage:"Rendered only when the picker is disabled."},{selector:".k-time-list",attribute:"role=listbox",usage:"The timelist elements must have listbox role."},{selector:".k-time-list",attribute:"aria-label or aria-labelledby",usage:"The listbox needs an accessible name."},{selector:".k-time-list-wrapper .k-reset",attribute:"role=none",usage:"The ul element semantic meaning must be removed."},{selector:".k-time-list-wrapper .k-item",attribute:"role=option",usage:"The available options must be marked as such."}]};var ya=Z;