@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 36 kB
JavaScript
var Uo=Object.create;var Be=Object.defineProperty;var Vo=Object.getOwnPropertyDescriptor;var $o=Object.getOwnPropertyNames;var Xo=Object.getPrototypeOf,Jo=Object.prototype.hasOwnProperty;var qo=(e,t)=>{for(var o in t)Be(e,o,{get:t[o],enumerable:!0})},Lt=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $o(t))!Jo.call(e,n)&&n!==o&&Be(e,n,{get:()=>t[n],enumerable:!(a=Vo(t,n))||a.enumerable});return e};var Go=(e,t,o)=>(o=e!=null?Uo(Xo(e)):{},Lt(t||!e||!e.__esModule?Be(o,"default",{value:e,enumerable:!0}):o,e)),Yo=e=>Lt(Be({},"__esModule",{value:!0}),e);var za={};qo(za,{TimepickerDemo:()=>ae,default:()=>Ba});module.exports=Yo(za);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 g=(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"}),q=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:s,checked:d,active:c,selected:m,disabled:h,indeterminate:b,loading:N,empty:A,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":A,"k-readonly":_,"k-highlighted":O},Object.keys(C).reduce((k,L)=>(L.startsWith("k-")?k[L]=C[L]:k[`k-${L}`]=C[L],k),{}))};function Pt(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"},G={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 Ze={};function Rt(e){return Ze[e]=(Ze[e]||0)+1,`k-${e}-${Ze[e]}`}var Ee="input",ze=Ee;var Ht=require("react/jsx-runtime"),De="k-input",Wo=[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]},Zo={},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,Ht.jsx)("span",{...N,className:i(e.className,De,g(De,{size:m,rounded:h,fillMode:b}),q(De,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c}))})};E.states=Wo;E.options=Qo;E.className=De;E.defaultOptions=Zo;E.moduleName=Ee;E.folderName=ze;var _t=require("react/jsx-runtime"),Fe="k-picker",jo=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],en={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]},tn={},de=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,_t.jsx)("span",{...N,className:i(e.className,Fe,g(Fe,{size:m,rounded:h,fillMode:b}),q(Fe,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:c})),children:e.children})};de.states=jo;de.options=en;de.className=Fe;de.defaultOptions=tn;de.moduleName=Ee;de.folderName=ze;var Me=require("react/jsx-runtime"),je="k-font-icon",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]},an={},Ie=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,je,g(je,{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,{})};Ie.states=on;Ie.options=nn;Ie.className=je;Ie.defaultOptions=an;var Kt=Ie;var se=require("react/jsx-runtime"),et="k-svg-icon",sn=[],rn={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:[G.outline,G.solid,G.duotone]},tt={viewBox:"0 0 24 24",variant:G.outline},ye=e=>{var N,A;let{size:t,themeColor:o,rotate:a,flip:n,viewBox:s=tt.viewBox,variant:d=tt.variant,icon:c,...m}=e;if(!c)return(0,se.jsx)(se.Fragment,{});if(c==="none")return(0,se.jsx)("span",{...m,className:i(e.className,et,g("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])||((A=c.variants)==null?void 0:A.outline)||c.content:void 0;return(0,se.jsx)("span",{...m,className:i(e.className,et,g("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,se.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})})};ye.states=sn;ye.options=rn;ye.className=et;ye.defaultOptions=tt;var ot=ye;var nt=Go(require("@progress/kendo-svg-icons"));var wt="icon",Bt="icons";var Ft=require("react");var zt=require("react"),Dt=(0,zt.createContext)({iconsType:"svg"});var Z=require("react/jsx-runtime"),Ue="k-icon",ln=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),cn=[],dn={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:[G.outline,G.solid,G.duotone]},Ve={viewBox:"0 0 24 24",type:"svg",variant:G.outline},v=e=>{let{iconsType:t}=(0,Ft.useContext)(Dt),{size:o,themeColor:a,icon:n,type:s=t||Ve.type,rotate:d,flip:c,viewBox:m=Ve.viewBox,variant:h=Ve.variant,...b}=e;if(!n)return(0,Z.jsx)(Z.Fragment,{});if((t||s)==="svg"){if(n==="none")return(0,Z.jsx)(ot,{...b,className:i(e.className,Ue),icon:n,size:o,variant:h});let A=nt[n]?n:ln(`${n}-icon`);return nt[A]?(0,Z.jsx)(ot,{...b,className:i(e.className,Ue),icon:nt[A],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:h}):(0,Z.jsx)(Z.Fragment,{})}return(0,Z.jsx)(Kt,{...b,className:i(e.className,Ue),icon:n,size:o,themeColor:a,rotate:d,flip:c})};v.states=cn;v.options=dn;v.defaultOptions=Ve;v.className=Ue;v.moduleName=wt;v.folderName=Bt;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 me=require("react/jsx-runtime"),Ut="k-clear-value",mn=[r.disabled,r.loading,r.readonly],pn={},U=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?(0,me.jsx)(me.Fragment,{}):(0,me.jsx)("span",{className:i(e.className,Ut),children:(0,me.jsx)(v,{icon:"x"})})};U.states=mn;U.options=pn;U.className=Ut;var Vt=require("react/jsx-runtime"),at="k-input-inner",un=[],fn={},$e={type:"text",autocomplete:"off",value:"",placeholder:""},V=e=>{let{value:t=$e.value,type:o=$e.type,placeholder:a=$e.placeholder,autocomplete:n=$e.autocomplete,disabled:s,readOnly:d,...c}=e;return(0,Vt.jsx)("input",{...c,type:o,className:i(e.className,at,g(at,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};V.states=un;V.options=fn;V.className=at;var Oe=require("react/jsx-runtime"),it="k-input-inner",hn=[],bn={},st=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:s,...d}=e;return(0,Oe.jsxs)("span",{...d,className:i(e.className,it,g(it,e)),children:[n,!n&&s&&(0,Oe.jsx)(v,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&(0,Oe.jsx)("span",{className:"k-input-value-text",children:t})]})};st.states=hn;st.options=bn;st.className=it;var Xt=require("react/jsx-runtime"),rt="k-input-inner",xn=[],Nn={},$t={value:"",placeholder:""},lt=e=>{let{value:t=$t.value,placeholder:o=$t.placeholder,rows:a,disabled:n,...s}=e;return(0,Xt.jsx)("textarea",{...s,className:i(e.className,rt,g(rt,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};lt.states=xn;lt.options=Nn;lt.className=rt;var Ce=require("react/jsx-runtime"),Jt="k-input-loading-icon",Sn=[r.disabled,r.loading],Y=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Ce.jsx)(Ce.Fragment,{}):(0,Ce.jsx)("span",{className:i(e.className,Jt,"k-icon k-i-loading")})};Y.states=Sn;Y.className=Jt;var Le=require("react/jsx-runtime"),qt="k-input-validation-icon",vn=[r.valid,r.invalid,r.disabled,r.loading],Tn={},$=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,s=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?(0,Le.jsx)(Le.Fragment,{}):(0,Le.jsx)(v,{className:i(qt),icon:s})};$.states=vn;$.options=Tn;$.className=qt;var Pe=require("react/jsx-runtime"),An="k-input-prefix",kn={direction:"horizontal"},pe=e=>{let{direction:t=kn.direction,...o}=e;return e.children?(0,Pe.jsx)("span",{...o,className:i(An,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Pe.jsx)(Pe.Fragment,{})};var Re=require("react/jsx-runtime"),gn="k-input-suffix",En={direction:"horizontal"},ue=e=>{let{direction:t=En.direction,...o}=e;return e.children?(0,Re.jsx)("span",{...o,className:i(gn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Re.jsx)(Re.Fragment,{})};var Mn=require("react/jsx-runtime");var In=require("react/jsx-runtime");var Yt=require("react/jsx-runtime"),Gt="k-input-separator",yn={direction:"vertical"},fe=e=>{let{direction:t=yn.direction,...o}=e;return(0,Yt.jsx)("span",{...o,className:i(Gt,e.className,{[`${Gt}-${t}`]:t})})};var ct="button",Wt=ct;var K=require("react/jsx-runtime"),He="k-button",On=["icon-button"],Cn=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Ln={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]},dt={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:s,showArrow:d=dt.showArrow,arrowIconName:c=dt.arrowIconName,variant:m,hover:h,focus:b,active:N,selected:A,disabled:_,togglable:O,ariaDisabled:C,icon:k,iconSize:L,text:z,iconClassName:ce,className:ke,...ge}=e,ie=k!=null,Qe=e.children!==void 0;return(0,K.jsxs)(t,{className:i(ke,He,Pt(He,m),g(He,{size:o,rounded:a,fillMode:n,themeColor:s}),q(He,{hover:h,focus:b,active:N,disabled:_||C,selected:A}),{"k-icon-button":!z&&!Qe&&ie}),"aria-pressed":O?A?"true":"false":void 0,...ge,"aria-disabled":C?"true":void 0,disabled:_||void 0,children:[typeof k=="string"&&k&&(0,K.jsx)(v,{className:i(ce,"k-button-icon"),icon:k,size:L}),k&&typeof k!="string"&&(0,K.jsx)(K.Fragment,{children:k}),z?(0,K.jsxs)(K.Fragment,{children:[z&&(0,K.jsx)("span",{className:"k-button-text",children:z}),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=Cn;f.options=Ln;f.variants=On;f.className=He;f.defaultOptions=dt;f.moduleName=ct;f.folderName=Wt;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 Qt=require("react/jsx-runtime"),re=e=>(0,Qt.jsx)(f,{children:"Button",...e});var M=require("react/jsx-runtime"),Pn=E.states,Rn=E.defaultOptions,Hn=E.options,_n=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Kn=[],he=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"],A=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)(pe,{children:(0,M.jsx)(v,{icon:"lock"})}),A&&(0,M.jsx)(fe,{})]}),(0,M.jsx)(V,{placeholder:"Placeholder",value:"Value"}),N&&(0,M.jsx)($,{valid:o,invalid:a,loading:n,disabled:s}),(0,M.jsx)(Y,{loading:n,disabled:s}),b&&(0,M.jsx)(U,{loading:n,disabled:s,readonly:d,value:"Value"}),h&&(0,M.jsxs)(M.Fragment,{children:[A&&(0,M.jsx)(fe,{}),(0,M.jsx)(ue,{children:(0,M.jsx)(re,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};he.options=Hn;he.states=Pn;he.variants=Kn;he.defaultOptions=Rn;he.modifiers=_n;he.className=E.className;var jt=require("react/jsx-runtime"),Zt=e=>(0,jt.jsx)(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var to=require("react/jsx-runtime"),eo=e=>(0,to.jsx)(f,{icon:"folder",children:"Button",...e});var Xe=require("react/jsx-runtime"),wn=f.options,Bn=f.states,zn={...f.defaultOptions,variant:"text"},Dn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Fn=[],be=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,Xe.jsx)(Zt,{...o,icon:"star"});case"icon-and-text":return(0,Xe.jsx)(eo,{...o,icon:"star",children:"Button"});default:return(0,Xe.jsx)(re,{...o,children:"Button"})}};be.options=wn;be.states=Bn;be.variants=Dn;be.defaultOptions=zn;be.modifiers=Fn;be.className=f.className;var mt="popup",oo=mt;var ut=require("react/jsx-runtime"),no="k-animation-container",Un=[],Vn={},pt={positionMode:"absolute",shown:!0},W=e=>{let{positionMode:t=pt.positionMode,shown:o=pt.shown,animationStyle:a,offset:n,...s}=e;return(0,ut.jsx)("div",{...s,style:{...n,...e.style},className:i(e.className,no,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,ut.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};W.states=Un;W.options=Vn;W.className=no;W.defaultOptions=pt;W.moduleName=mt;W.folderName=oo;var ft="popup",ao=ft;var ht=require("react/jsx-runtime"),io="k-popup",$n=[],Xn={},so={positionMode:"absolute"},D=e=>{let{offset:t,positionMode:o=so.positionMode,animationStyle:a,containerClassName:n,containerRole:s,containerAriaLabel:d,...c}=e;return(0,ht.jsx)(W,{positionMode:o,offset:t,animationStyle:a,className:n,role:s,"aria-label":d,children:(0,ht.jsx)("div",{...c,className:i(e.className,io),children:e.children})})};D.states=$n;D.options=Xn;D.className=io;D.defaultOptions=so;D.moduleName=ft;D.folderName=ao;D.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 ro="time-selector",lo="timeselector";var X=require("react/jsx-runtime"),bt="k-timeselector",Jn=[],qn={size:[l.undefined,l.small,l.medium,l.large]},Gn={},Q=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,X.jsx)(xt,{type:m,focus:b,separator:N},h)});return(0,X.jsxs)("div",{...d,className:i(e.className,bt,g(bt,{size:t})),role:"group","aria-label":"Time selector",children:[(0,X.jsx)(X.Fragment,{children:o}),(0,X.jsx)(X.Fragment,{children:a}),(0,X.jsxs)("div",{className:"k-time-list-container",children:[(0,X.jsx)("span",{className:"k-time-highlight"}),c]})]})};Q.states=Jn;Q.options=qn;Q.className=bt;Q.defaultOptions=Gn;Q.moduleName=ro;Q.folderName=lo;Q.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"),Yn=[r.focus],xt=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",q("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"})]})})]})]})};xt.states=Yn;var Je=require("react/jsx-runtime"),Wn="k-time-header",xe=e=>{let{title:t,...o}=e;return(0,Je.jsxs)("div",{...o,className:i(e.className,Wn),children:[t!=null&&(0,Je.jsx)("span",{className:"k-title",children:t}),e.children]})};var Nt="action-buttons",co=Nt;var mo=require("react/jsx-runtime"),qe="k-actions",Qn=[],Zn={},St={alignment:"start",orientation:"horizontal"},H=e=>{let{alignment:t=St.alignment,orientation:o=St.orientation,...a}=e;return(0,mo.jsx)("div",{...a,className:i(qe,{[`${qe}-${t}`]:t,[`${qe}-${o}`]:o},e.className),children:e.children})};H.states=Qn;H.options=Zn;H.className=qe;H.defaultOptions=St;H.moduleName=Nt;H.folderName=co;var po=require("react/jsx-runtime");var vt=require("react/jsx-runtime");var Tt=require("react/jsx-runtime");var At=require("react/jsx-runtime");var ho=require("react/jsx-runtime"),jn="k-actionsheet-footer",fo={alignment:"stretched",orientation:"horizontal"},j=e=>{let{alignment:t=fo.alignment,orientation:o=fo.orientation,template:a,as:n=a?"div":H,...s}=e;return(0,ho.jsx)(n,{...s,...!a&&{alignment:t,orientation:o},className:i(e.className,jn),children:e.children})};var kt="searchbox",bo=kt;var ee=require("react/jsx-runtime"),xo="k-searchbox",ea=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],ta={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:A,showIcon:_=gt.showIcon,icon:O=gt.icon,"aria-label":C,...k}=e;return(0,ee.jsxs)(E,{...k,size:a,rounded:n,fillMode:s,hover:d,focus:c,valid:m,invalid:h,required:b,loading:N,disabled:A,className:i(e.className,xo),children:[_&&(0,ee.jsx)(v,{className:"k-input-icon",icon:O}),(0,ee.jsx)(V,{placeholder:o,value:t,"aria-label":C}),(0,ee.jsx)(Y,{...e}),(0,ee.jsx)($,{...e}),(0,ee.jsx)(U,{...e})]})};te.states=ea;te.options=ta;te.className=xo;te.defaultOptions=gt;te.moduleName=kt;te.folderName=bo;var oa=require("react/jsx-runtime");var Et="textbox",No=Et;var y=require("react/jsx-runtime"),So="k-textbox",na=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],aa={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]},Ge={showClearButton:!0,showValidationIcon:!0,separators:!0},P=e=>{let{size:t,rounded:o,fillMode:a,separators:n=Ge.separators,showClearButton:s=Ge.showClearButton,showValidationIcon:d=Ge.showValidationIcon,prefix:c,suffix:m,type:h,value:b,placeholder:N,hover:A,focus:_,valid:O,invalid:C,required:k,loading:L,disabled:z,readonly:ce,id:ke,"aria-label":ge,"aria-describedby":ie,...Qe}=e;return(0,y.jsxs)(E,{...Qe,size:t,rounded:o,fillMode:a,hover:A,focus:_,valid:O,invalid:C,required:k,loading:L,disabled:z,readonly:ce,className:i(e.className,So),children:[c&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(pe,{children:c}),n&&(0,y.jsx)(fe,{})]}),(0,y.jsx)(V,{id:ke,placeholder:N,value:b,type:h,disabled:z,"aria-label":ge,"aria-describedby":ie,"aria-invalid":C?"true":void 0}),d&&(0,y.jsx)($,{valid:O,invalid:C,loading:L,disabled:z}),(0,y.jsx)(Y,{loading:L,disabled:z}),s&&(0,y.jsx)(U,{loading:L,disabled:z,readonly:ce,value:b}),m&&(0,y.jsxs)(y.Fragment,{children:[n&&(0,y.jsx)(fe,{}),(0,y.jsx)(ue,{children:m})]})]})};P.states=na;P.options=aa;P.className=So;P.defaultOptions=Ge;P.moduleName=Et;P.folderName=No;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 _e=P;var To=require("react/jsx-runtime"),vo=e=>(0,To.jsx)(_e,{...e});var Ao=require("react/jsx-runtime");var ko=require("react/jsx-runtime");var ia=require("react/jsx-runtime");var Ye=require("react/jsx-runtime"),sa=P.states,ra=P.defaultOptions,la=P.options,ca=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],da=[],Ne=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t!=null&&t[n]?(0,Ye.jsx)(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[n]?(0,Ye.jsx)(re,{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,Ye.jsx)(vo,{value:"Value",style:{width:300},...o,...a})};Ne.options=la;Ne.states=sa;Ne.variants=da;Ne.defaultOptions=ra;Ne.modifiers=ca;Ne.className=P.className;var w=require("react/jsx-runtime"),go="k-actionsheet-titlebar",ma={},J=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:s,input:d,inputValue:c,inputPlaceholder:m,adaptive:h,titleId:b,children:N,...A}=e;return(0,w.jsxs)("div",{...A,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"})})]})};J.className=go;J.defaultOptions=ma;var Se=require("react/jsx-runtime"),Mt="k-actionsheet-view",pa=[],ua={},fa={},ve=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:s,titleId:d,...c}=e,m=(n==null?void 0:n.type)===J&&(0,Se.jsx)(J,{adaptive:t,titleId:d,...n==null?void 0:n.props}),h=(s==null?void 0:s.type)===j&&(0,Se.jsx)(j,{...s==null?void 0:s.props});return(0,Se.jsxs)("div",{...c,className:i(e.className,Mt,{[`${Mt}-animated`]:o}),children:[m,(0,Se.jsx)("div",{className:"k-actionsheet-content",children:a}),h]})};ve.states=pa;ve.options=ua;ve.className=Mt;ve.defaultOptions=fa;var Ke="action-sheet",We=Ke;var It="overlay",Eo=It;var Io=require("react/jsx-runtime"),Mo="k-overlay",ha=[],ba={},xa={},oe=e=>{let{...t}=e;return(0,Io.jsx)("div",{...t,className:i(e.className,Mo),children:e.children})};oe.states=ha;oe.options=ba;oe.className=Mo;oe.defaultOptions=xa;oe.moduleName=It;oe.folderName=Eo;var le=require("react/jsx-runtime"),yo="k-actionsheet",Na=[],Sa={},we={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},I=e=>{let{side:t=we.side,fullscreen:o=we.fullscreen,adaptive:a=we.adaptive,overlay:n=we.overlay,template:s,children:d,header:c,footer:m,id:h,...b}=e,N=h&&!s&&c?`${h}-title`:void 0;return(0,le.jsxs)("div",{className:"k-actionsheet-container",children:[n&&(0,le.jsx)(oe,{}),(0,le.jsx)(W,{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,le.jsx)("div",{...b,id:h,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:i(e.className,yo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||(0,le.jsx)(ve,{header:c,footer:m,adaptive:a,titleId:N,...e,children:d})})})]})};I.states=Na;I.options=Sa;I.className=yo;I.defaultOptions=we;I.moduleName=Ke;I.folderName=We;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 Co=require("react/jsx-runtime"),Oo="k-actionsheet-container",va=[],Ta={},Aa={},Te=e=>{let{children:t,...o}=e;return(0,Co.jsx)("div",{...o,className:Oo,children:t})};Te.states=va;Te.options=Ta;Te.className=Oo;Te.defaultOptions=Aa;Te.moduleName=Ke;Te.folderName=We;var Lo=require("react/jsx-runtime"),yt=e=>{let{...t}=e;return(0,Lo.jsx)("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};var F=require("react/jsx-runtime"),Ot="k-actionsheet-item",ka=[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,F.jsxs)("span",{...m,className:i(e.className,Ot,q(Ot,{hover:n,focus:s,selected:d,disabled:c})),children:[!e.children&&(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,F.jsx)("span",{className:"k-icon-wrap",children:(0,F.jsx)(v,{className:"k-actionsheet-item-icon",icon:t})}),(0,F.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,F.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,F.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};ne.states=ka;ne.className=Ot;var Po=require("react/jsx-runtime");var ga=require("react/jsx-runtime");var Ea=require("react/jsx-runtime");var Ma=require("react/jsx-runtime");var T=require("react/jsx-runtime"),Ia=I.options,ya=I.states,Ho={...I.defaultOptions,variant:"normal"},Oa=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ca=[{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}={...Ho,...e},n={},s=(0,T.jsxs)(yt,{children:[(0,T.jsx)(ne,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,T.jsx)(ne,{text:"Add to Favorites",iconName:"heart"}),(0,T.jsx)(ne,{text:"Upload New",iconName:"upload",disabled:!0}),(0,T.jsx)("hr",{className:"k-hr"}),(0,T.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,T.jsx)(I,{...a,adaptive:!0,fullscreen:n.fullScreen,header:(0,T.jsx)(J,{actionsStart:n.actionsStart?(0,T.jsx)(f,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,T.jsx)(f,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?(0,T.jsxs)(j,{alignment:"stretched",children:[(0,T.jsx)(f,{text:"Cancel",size:"large",themeColor:"base"}),(0,T.jsx)(f,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):(0,T.jsx)(I,{...a,fullscreen:n.fullScreen,header:(0,T.jsx)(J,{actionsStart:n.actionsStart?(0,T.jsx)(f,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,T.jsx)(f,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?(0,T.jsxs)(j,{alignment:"stretched",children:[(0,T.jsx)(f,{text:"Apply",themeColor:"primary"}),(0,T.jsx)(f,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Ae.options=Ia;Ae.states=ya;Ae.variants=Oa;Ae.defaultOptions=Ho;Ae.modifiers=Ca;Ae.className=I.className;var _o="time-picker",Ko="timepicker";var S=require("react/jsx-runtime"),wo="k-timepicker",La=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Pa={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]},Ra={},B=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:A,loading:_,disabled:O,readonly:C,opened:k,adaptive:L,adaptiveSettings:z,adaptiveTitle:ce,adaptiveSubtitle:ke,...ge}=e,ie=Rt("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:A,loading:_,disabled:O,readonly:C,className:i(e.className,wo),children:[(0,S.jsx)(pe,{children:n}),(0,S.jsx)(V,{placeholder:c,value:d,role:"combobox","aria-haspopup":"dialog","aria-expanded":k?"true":"false","aria-controls":k||L?ie:void 0,"aria-invalid":N?"true":void 0,"aria-label":"Select time",disabled:O}),(0,S.jsx)($,{valid:b,invalid:N,loading:_,disabled:O}),(0,S.jsx)(Y,{loading:_,disabled:O}),(0,S.jsx)(U,{loading:_,disabled:O,readonly:C,value:d}),(0,S.jsx)(ue,{children:s}),(0,S.jsx)(f,{className:"k-input-button",icon:"clock",size:t,fillMode:a,tabIndex:-1,"aria-label":"Select time",disabled:O})]}),k&&(0,S.jsxs)(D,{id:ie,className:"k-list-container k-timepicker-popup",children:[(0,S.jsx)(Q,{columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:(0,S.jsx)(xe,{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:ie,...z,header:(0,S.jsx)(J,{actionsEnd:(0,S.jsx)(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply"}),title:ce,subtitle:ke}),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)(Q,{size:"large",columns:["HH","mm","ss","tt"],focusedColumn:"HH",header:(0,S.jsx)(xe,{title:"10:00:00 \u0410\u041C",children:(0,S.jsx)(f,{size:"large",fillMode:"flat",className:"k-time-now",children:"Now"})})})})]})};B.states=La;B.options=Pa;B.className=wo;B.defaultOptions=Ra;B.moduleName=_o;B.folderName=Ko;B.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 Bo=B;var Do=require("react/jsx-runtime"),zo=e=>(0,Do.jsx)(Bo,{...e});var Ct=require("react/jsx-runtime"),Ha=B.options,_a=B.states,Fo=B.defaultOptions,Ka=[{name:"opened",title:"Opened"}],wa=[],ae=e=>{let{modifiers:t,...o}={...Fo,...e},a={};return Object.keys(t||{}).forEach(n=>{n==="opened"&&(a.opened=!!(t!=null&&t[n]))}),(0,Ct.jsx)("div",{style:a.opened?{height:"378px"}:{},children:(0,Ct.jsx)(zo,{style:{width:"300px"},value:"00:00:00 AM",...o,...a})})};ae.options=Ha;ae.states=_a;ae.variants=wa;ae.defaultOptions=Fo;ae.modifiers=Ka;ae.className=B.className;var Ba=ae;