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 Bo=Object.create;var we=Object.defineProperty;var zo=Object.getOwnPropertyDescriptor;var Do=Object.getOwnPropertyNames;var Fo=Object.getPrototypeOf,Uo=Object.prototype.hasOwnProperty;var Vo=(e,t)=>{for(var o in t)we(e,o,{get:t[o],enumerable:!0})},Ot=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Do(t))!Uo.call(e,n)&&n!==o&&we(e,n,{get:()=>t[n],enumerable:!(a=zo(t,n))||a.enumerable});return e};var $o=(e,t,o)=>(o=e!=null?Bo(Fo(e)):{},Ot(t||!e||!e.__esModule?we(o,"default",{value:e,enumerable:!0}):o,e)),Xo=e=>Ot(we({},"__esModule",{value:!0}),e);var La={};Vo(La,{TimePickerInvalid:()=>Ca});module.exports=Xo(La);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 Ct(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 Lt(e){return Qe[e]=(Qe[e]||0)+1,`k-${e}-${Qe[e]}`}var ke="input",Be=ke;var Pt=require("react/jsx-runtime"),ze="k-input",Jo=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],qo={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]},Go={},M=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,Pt.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}))})};M.states=Jo;M.options=qo;M.className=ze;M.defaultOptions=Go;M.moduleName=ke;M.folderName=Be;var Rt=require("react/jsx-runtime"),De="k-picker",Yo=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Wo={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]},Qo={},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,Rt.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=Yo;ce.options=Wo;ce.className=De;ce.defaultOptions=Qo;ce.moduleName=ke;ce.folderName=Be;var Me=require("react/jsx-runtime"),Ze="k-font-icon",Zo=[],jo={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]},en={},Ee=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:s,...d}=e;return a?(0,Me.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,Me.jsx)(Me.Fragment,{})};Ee.states=Zo;Ee.options=jo;Ee.className=Ze;Ee.defaultOptions=en;var Ht=Ee;var ie=require("react/jsx-runtime"),je="k-svg-icon",tn=[],on={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=tn;Ie.options=on;Ie.className=je;Ie.defaultOptions=et;var tt=Ie;var ot=$o(require("@progress/kendo-svg-icons"));var _t="icon",Kt="icons";var zt=require("react");var wt=require("react"),Bt=(0,wt.createContext)({iconsType:"svg"});var Q=require("react/jsx-runtime"),Fe="k-icon",nn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),an=[],sn={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,zt.useContext)(Bt),{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:nn(`${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)(Ht,{...b,className:i(e.className,Fe),icon:n,size:o,themeColor:a,rotate:d,flip:c})};v.states=an;v.options=sn;v.defaultOptions=Ue;v.className=Fe;v.moduleName=_t;v.folderName=Kt;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"),Dt="k-clear-value",rn=[r.disabled,r.loading,r.readonly],ln={},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,Dt),children:(0,de.jsx)(v,{icon:"x"})})};F.states=rn;F.options=ln;F.className=Dt;var Ft=require("react/jsx-runtime"),nt="k-input-inner",cn=[],dn={},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,Ft.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=cn;U.options=dn;U.className=nt;var ye=require("react/jsx-runtime"),at="k-input-inner",mn=[],pn={},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=mn;it.options=pn;it.className=at;var Vt=require("react/jsx-runtime"),st="k-input-inner",un=[],fn={},Ut={value:"",placeholder:""},rt=e=>{let{value:t=Ut.value,placeholder:o=Ut.placeholder,rows:a,disabled:n,...s}=e;return(0,Vt.jsx)("textarea",{...s,className:i(e.className,st,k(st,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};rt.states=un;rt.options=fn;rt.className=st;var Oe=require("react/jsx-runtime"),$t="k-input-loading-icon",hn=[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,$t,"k-icon k-i-loading")})};G.states=hn;G.className=$t;var Ce=require("react/jsx-runtime"),Xt="k-input-validation-icon",bn=[r.valid,r.invalid,r.disabled,r.loading],xn={},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(Xt),icon:s})};V.states=bn;V.options=xn;V.className=Xt;var Le=require("react/jsx-runtime"),Nn="k-input-prefix",Sn={direction:"horizontal"},me=e=>{let{direction:t=Sn.direction,...o}=e;return e.children?(0,Le.jsx)("span",{...o,className:i(Nn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Le.jsx)(Le.Fragment,{})};var Pe=require("react/jsx-runtime"),vn="k-input-suffix",An={direction:"horizontal"},pe=e=>{let{direction:t=An.direction,...o}=e;return e.children?(0,Pe.jsx)("span",{...o,className:i(vn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Pe.jsx)(Pe.Fragment,{})};var Tn=require("react/jsx-runtime");var gn=require("react/jsx-runtime");var qt=require("react/jsx-runtime"),Jt="k-input-separator",kn={direction:"vertical"},ue=e=>{let{direction:t=kn.direction,...o}=e;return(0,qt.jsx)("span",{...o,className:i(Jt,e.className,{[`${Jt}-${t}`]:t})})};var lt="button",Gt=lt;var K=require("react/jsx-runtime"),Re="k-button",Mn=["icon-button"],En=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],In={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,Ct(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=En;f.options=In;f.variants=Mn;f.className=Re;f.defaultOptions=ct;f.moduleName=lt;f.folderName=Gt;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 Yt=require("react/jsx-runtime"),se=e=>(0,Yt.jsx)(f,{children:"Button",...e});var E=require("react/jsx-runtime"),yn=M.states,On=M.defaultOptions,Cn=M.options,Ln=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Pn=[],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,E.jsxs)(M,{...c,valid:o,invalid:a,loading:n,disabled:s,readonly:d,style:{width:300},children:[m&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(me,{children:(0,E.jsx)(v,{icon:"lock"})}),T&&(0,E.jsx)(ue,{})]}),(0,E.jsx)(U,{placeholder:"Placeholder",value:"Value"}),N&&(0,E.jsx)(V,{valid:o,invalid:a,loading:n,disabled:s}),(0,E.jsx)(G,{loading:n,disabled:s}),b&&(0,E.jsx)(F,{loading:n,disabled:s,readonly:d,value:"Value"}),h&&(0,E.jsxs)(E.Fragment,{children:[T&&(0,E.jsx)(ue,{}),(0,E.jsx)(pe,{children:(0,E.jsx)(se,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};fe.options=Cn;fe.states=yn;fe.variants=Pn;fe.defaultOptions=On;fe.modifiers=Ln;fe.className=M.className;var Qt=require("react/jsx-runtime"),Wt=e=>(0,Qt.jsx)(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var jt=require("react/jsx-runtime"),Zt=e=>(0,jt.jsx)(f,{icon:"folder",children:"Button",...e});var $e=require("react/jsx-runtime"),Rn=f.options,Hn=f.states,_n={...f.defaultOptions,variant:"text"},Kn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],wn=[],he=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,$e.jsx)(Wt,{...o,icon:"star"});case"icon-and-text":return(0,$e.jsx)(Zt,{...o,icon:"star",children:"Button"});default:return(0,$e.jsx)(se,{...o,children:"Button"})}};he.options=Rn;he.states=Hn;he.variants=Kn;he.defaultOptions=_n;he.modifiers=wn;he.className=f.className;var dt="popup",eo=dt;var pt=require("react/jsx-runtime"),to="k-animation-container",Bn=[],zn={},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,to,{"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=Bn;Y.options=zn;Y.className=to;Y.defaultOptions=mt;Y.moduleName=dt;Y.folderName=eo;var ut="popup",oo=ut;var ft=require("react/jsx-runtime"),no="k-popup",Dn=[],Fn={},ao={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:o=ao.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,no),children:e.children})})};z.states=Dn;z.options=Fn;z.className=no;z.defaultOptions=ao;z.moduleName=ut;z.folderName=oo;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 io="time-selector",so="timeselector";var $=require("react/jsx-runtime"),ht="k-timeselector",Un=[],Vn={size:[l.undefined,l.small,l.medium,l.large]},$n={},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=Un;W.options=Vn;W.className=ht;W.defaultOptions=$n;W.moduleName=io;W.folderName=so;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"),Xn=[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=Xn;var Xe=require("react/jsx-runtime"),Jn="k-time-header",be=e=>{let{title:t,...o}=e;return(0,Xe.jsxs)("div",{...o,className:i(e.className,Jn),children:[t!=null&&(0,Xe.jsx)("span",{className:"k-title",children:t}),e.children]})};var xt="action-buttons",ro=xt;var lo=require("react/jsx-runtime"),Je="k-actions",qn=[],Gn={},Nt={alignment:"start",orientation:"horizontal"},H=e=>{let{alignment:t=Nt.alignment,orientation:o=Nt.orientation,...a}=e;return(0,lo.jsx)("div",{...a,className:i(Je,{[`${Je}-${t}`]:t,[`${Je}-${o}`]:o},e.className),children:e.children})};H.states=qn;H.options=Gn;H.className=Je;H.defaultOptions=Nt;H.moduleName=xt;H.folderName=ro;var co=require("react/jsx-runtime");var St=require("react/jsx-runtime");var vt=require("react/jsx-runtime");var At=require("react/jsx-runtime");var uo=require("react/jsx-runtime"),Yn="k-actionsheet-footer",po={alignment:"stretched",orientation:"horizontal"},Z=e=>{let{alignment:t=po.alignment,orientation:o=po.orientation,template:a,as:n=a?"div":H,...s}=e;return(0,uo.jsx)(n,{...s,...!a&&{alignment:t,orientation:o},className:i(e.className,Yn),children:e.children})};var Tt="searchbox",fo=Tt;var j=require("react/jsx-runtime"),ho="k-searchbox",Wn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],Qn={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"},ee=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,j.jsxs)(M,{...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,ho),children:[_&&(0,j.jsx)(v,{className:"k-input-icon",icon:O}),(0,j.jsx)(U,{placeholder:o,value:t,"aria-label":C}),(0,j.jsx)(G,{...e}),(0,j.jsx)(V,{...e}),(0,j.jsx)(F,{...e})]})};ee.states=Wn;ee.options=Qn;ee.className=ho;ee.defaultOptions=gt;ee.moduleName=Tt;ee.folderName=fo;var Zn=require("react/jsx-runtime");var kt="textbox",bo=kt;var y=require("react/jsx-runtime"),xo="k-textbox",jn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ea={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)(M,{...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,xo),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=jn;P.options=ea;P.className=xo;P.defaultOptions=qe;P.moduleName=kt;P.folderName=bo;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 So=require("react/jsx-runtime"),No=e=>(0,So.jsx)(He,{...e});var vo=require("react/jsx-runtime");var Ao=require("react/jsx-runtime");var ta=require("react/jsx-runtime");var Ge=require("react/jsx-runtime"),oa=P.states,na=P.defaultOptions,aa=P.options,ia=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],sa=[],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)(No,{value:"Value",style:{width:300},...o,...a})};xe.options=aa;xe.states=oa;xe.variants=sa;xe.defaultOptions=na;xe.modifiers=ia;xe.className=P.className;var w=require("react/jsx-runtime"),To="k-actionsheet-titlebar",ra={},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,To),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)(ee,{placeholder:"Filter",size:h?"large":"medium","aria-label":"Filter options"})})]})};X.className=To;X.defaultOptions=ra;var Ne=require("react/jsx-runtime"),Mt="k-actionsheet-view",la=[],ca={},da={},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)===Z&&(0,Ne.jsx)(Z,{...s==null?void 0:s.props});return(0,Ne.jsxs)("div",{...c,className:i(e.className,Mt,{[`${Mt}-animated`]:o}),children:[m,(0,Ne.jsx)("div",{className:"k-actionsheet-content",children:a}),h]})};Se.states=la;Se.options=ca;Se.className=Mt;Se.defaultOptions=da;var _e="action-sheet",Ye=_e;var Et="overlay",go=Et;var Mo=require("react/jsx-runtime"),ko="k-overlay",ma=[],pa={},ua={},te=e=>{let{...t}=e;return(0,Mo.jsx)("div",{...t,className:i(e.className,ko),children:e.children})};te.states=ma;te.options=pa;te.className=ko;te.defaultOptions=ua;te.moduleName=Et;te.folderName=go;var re=require("react/jsx-runtime"),Eo="k-actionsheet",fa=[],ha={},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)(te,{}),(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,Eo,{[`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=fa;I.options=ha;I.className=Eo;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 yo=require("react/jsx-runtime"),Io="k-actionsheet-container",ba=[],xa={},Na={},ve=e=>{let{children:t,...o}=e;return(0,yo.jsx)("div",{...o,className:Io,children:t})};ve.states=ba;ve.options=xa;ve.className=Io;ve.defaultOptions=Na;ve.moduleName=_e;ve.folderName=Ye;var Oo=require("react/jsx-runtime"),It=e=>{let{...t}=e;return(0,Oo.jsx)("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};var D=require("react/jsx-runtime"),yt="k-actionsheet-item",Sa=[r.hover,r.focus,r.selected,r.disabled],oe=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]})};oe.states=Sa;oe.className=yt;var Co=require("react/jsx-runtime");var va=require("react/jsx-runtime");var Aa=require("react/jsx-runtime");var Ta=require("react/jsx-runtime");var A=require("react/jsx-runtime"),ga=I.options,ka=I.states,Po={...I.defaultOptions,variant:"normal"},Ma=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ea=[{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}={...Po,...e},n={},s=(0,A.jsxs)(It,{children:[(0,A.jsx)(oe,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,A.jsx)(oe,{text:"Add to Favorites",iconName:"heart"}),(0,A.jsx)(oe,{text:"Upload New",iconName:"upload",disabled:!0}),(0,A.jsx)("hr",{className:"k-hr"}),(0,A.jsx)(oe,{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)(Z,{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)(Z,{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=ga;Ae.states=ka;Ae.variants=Ma;Ae.defaultOptions=Po;Ae.modifiers=Ea;Ae.className=I.className;var Ro="time-picker",Ho="timepicker";var S=require("react/jsx-runtime"),_o="k-timepicker",Ia=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ya={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]},Oa={},ne=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=Lt("timepicker-popup");return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(M,{...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,_o),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)(Z,{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"})})})})]})};ne.states=Ia;ne.options=ya;ne.className=_o;ne.defaultOptions=Oa;ne.moduleName=Ro;ne.folderName=Ho;ne.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 Ko=ne;var wo=require("react/jsx-runtime"),Ca=e=>(0,wo.jsx)(Ko,{invalid:!0,value:"10:00 AM",...e});