@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 170 kB
JavaScript
var Ic=Object.create;var br=Object.defineProperty;var yc=Object.getOwnPropertyDescriptor;var Tc=Object.getOwnPropertyNames;var Ec=Object.getPrototypeOf,Oc=Object.prototype.hasOwnProperty;var Bc=(e,t)=>{for(var o in t)br(e,o,{get:t[o],enumerable:!0})},bs=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Tc(t))!Oc.call(e,r)&&r!==o&&br(e,r,{get:()=>t[r],enumerable:!(a=yc(t,r))||a.enumerable});return e};var sn=(e,t,o)=>(o=e!=null?Ic(Ec(e)):{},bs(t||!e||!e.__esModule?br(o,"default",{value:e,enumerable:!0}):o,e)),Pc=e=>bs(br({},"__esModule",{value:!0}),e);var ak={};Bc(ak,{PromptInlineInputOnly:()=>ok});module.exports=Pc(ak);var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...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 I=(e,t)=>n({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.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"}),A=(e,t)=>{let{valid:o,invalid:a,hover:r,focus:s,checked:l,active:c,selected:h,disabled:k,indeterminate:x,loading:g,empty:m,readonly:C,highlighted:v,...M}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":r,"k-focus":s,"k-checked":l,"k-active":c,"k-selected":h,"k-disabled":k,"k-indeterminate":x&&!l,"k-loading":g,"k-empty":m,"k-readonly":C,"k-highlighted":v},Object.keys(M).reduce((E,y)=>(y.startsWith("k-")?E[y]=M[y]:E[`k-${y}`]=M[y],E),{}))};function hs(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var p={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Bt={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},N={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={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"},xs={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var ln={};function T(e){return ln[e]=(ln[e]||0)+1,`k-${e}-${ln[e]}`}var Ka=require("react/jsx-runtime"),dn="k-font-icon",wc=[],Rc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info]},Kc={},_a=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:s,...l}=e;return a?(0,Ka.jsx)("span",{...l,className:n(e.className,dn,I(dn,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):(0,Ka.jsx)(Ka.Fragment,{})};_a.states=wc;_a.options=Rc;_a.className=dn;_a.defaultOptions=Kc;var Ns=_a;var ko=require("react/jsx-runtime"),pn="k-svg-icon",_c=[],Dc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[Bt.outline,Bt.solid,Bt.duotone]},cn={viewBox:"0 0 24 24",variant:Bt.outline},Da=e=>{var g,m;let{size:t,themeColor:o,rotate:a,flip:r,viewBox:s=cn.viewBox,variant:l=cn.variant,icon:c,...h}=e;if(!c)return(0,ko.jsx)(ko.Fragment,{});if(c==="none")return(0,ko.jsx)("span",{...h,className:n(e.className,pn,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let k=typeof c=="object"&&c.name&&c.name,x=typeof c=="object"?l&&((g=c.variants)==null?void 0:g[l])||((m=c.variants)==null?void 0:m.outline)||c.content:void 0;return(0,ko.jsx)("span",{...h,className:n(e.className,pn,I("k-icon",{size:t}),{[`k-svg-i-${k}`]:k,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:(0,ko.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:c?void 0:e.children})})};Da.states=_c;Da.options=Dc;Da.className=pn;Da.defaultOptions=cn;var mn=Da;var un=sn(require("@progress/kendo-svg-icons"));var ks="icon",gs="icons";var Ls=require("react");var vs=require("react"),Cs=(0,vs.createContext)({iconsType:"svg"});var Gt=require("react/jsx-runtime"),hr="k-icon",Hc=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),zc=[],Fc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[Bt.outline,Bt.solid,Bt.duotone]},xr={viewBox:"0 0 24 24",type:"svg",variant:Bt.outline},L=e=>{let{iconsType:t}=(0,Ls.useContext)(Cs),{size:o,themeColor:a,icon:r,type:s=t||xr.type,rotate:l,flip:c,viewBox:h=xr.viewBox,variant:k=xr.variant,...x}=e;if(!r)return(0,Gt.jsx)(Gt.Fragment,{});if((t||s)==="svg"){if(r==="none")return(0,Gt.jsx)(mn,{...x,className:n(e.className,hr),icon:r,size:o,variant:k});let m=un[r]?r:Hc(`${r}-icon`);return un[m]?(0,Gt.jsx)(mn,{...x,className:n(e.className,hr),icon:un[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:h,variant:k}):(0,Gt.jsx)(Gt.Fragment,{})}return(0,Gt.jsx)(Ns,{...x,className:n(e.className,hr),icon:r,size:o,themeColor:a,rotate:l,flip:c})};L.states=zc;L.options=Fc;L.defaultOptions=xr;L.className=hr;L.moduleName=ks;L.folderName=gs;L.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 fn="button",Ms=fn;var it=require("react/jsx-runtime"),Ha="k-button",Gc=["icon-button"],Uc=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Vc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info,N.inverse]},bn={showArrow:!1,arrowIconName:"chevron-down"},d=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:s,showArrow:l=bn.showArrow,arrowIconName:c=bn.arrowIconName,variant:h,hover:k,focus:x,active:g,selected:m,disabled:C,togglable:v,ariaDisabled:M,icon:E,iconSize:y,text:K,iconClassName:j,className:xe,...ve}=e,Ce=E!=null,Le=e.children!==void 0;return(0,it.jsxs)(t,{className:n(xe,Ha,hs(Ha,h),I(Ha,{size:o,rounded:a,fillMode:r,themeColor:s}),A(Ha,{hover:k,focus:x,active:g,disabled:C||M,selected:m}),{"k-icon-button":!K&&!Le&&Ce}),"aria-pressed":v?m?"true":"false":void 0,...ve,"aria-disabled":M?"true":void 0,disabled:C||void 0,children:[typeof E=="string"&&E&&(0,it.jsx)(L,{className:n(j,"k-button-icon"),icon:E,size:y}),E&&typeof E!="string"&&(0,it.jsx)(it.Fragment,{children:E}),K?(0,it.jsxs)(it.Fragment,{children:[K&&(0,it.jsx)("span",{className:"k-button-text",children:K}),e.children]}):e.children&&(0,it.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,it.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,it.jsx)(L,{icon:c})})]})};d.states=Uc;d.options=Vc;d.variants=Gc;d.className=Ha;d.defaultOptions=bn;d.moduleName=fn;d.folderName=Ms;d.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 Ss=require("react/jsx-runtime"),X=e=>(0,Ss.jsx)(d,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var As=require("react/jsx-runtime"),z=e=>(0,As.jsx)(d,{icon:"folder",children:"Button",...e});var Is=require("react/jsx-runtime"),go=e=>(0,Is.jsx)(d,{children:"Button",...e});var Nr=require("react/jsx-runtime"),$c=d.options,Xc=d.states,qc={...d.defaultOptions,variant:"text"},Wc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Jc=[],wo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,Nr.jsx)(X,{...o,icon:"star"});case"icon-and-text":return(0,Nr.jsx)(z,{...o,icon:"star",children:"Button"});default:return(0,Nr.jsx)(go,{...o,children:"Button"})}};wo.options=$c;wo.states=Xc;wo.variants=Wc;wo.defaultOptions=qc;wo.modifiers=Jc;wo.className=d.className;var hn="prompt",ys=hn;var za=require("react/jsx-runtime"),Ts="k-prompt",Yc=[],Qc={},Zc={},G=e=>{let{...t}=e;return(0,za.jsx)("div",{...t,className:n(e.className,Ts),children:(0,za.jsx)(za.Fragment,{children:e.children})})};G.states=Yc;G.options=Qc;G.className=Ts;G.defaultOptions=Zc;G.moduleName=hn;G.folderName=ys;G.ariaSpec={selector:".k-prompt",rules:[{selector:".k-input-prefix > .k-button",attribute:"role=button or nodeName=button",usage:"The buttons must have appropriate role."},{selector:".k-input-prefix > .k-button",attribute:"aria-label or title",usage:"The buttons must be properly labelled."},{selector:".k-input-suffix > .k-button",attribute:"role=button or nodeName=button",usage:"The buttons must have appropriate role."},{selector:".k-input-suffix > .k-button",attribute:"aria-label or title",usage:"The buttons must be properly labelled."},{selector:".k-input-suffix > .k-prompt-send.k-disabled",attribute:"disabled",usage:"Announces send action as disabled if necessary."},{selector:".k-prompt-expander .k-button",attribute:"aria-controls (when present)",usage:"Points to the controlled element based on the given id."},{selector:".k-prompt-expander .k-button",attribute:"aria-expanded",usage:"Indicates the expanded state of the prompt expander content."},{selector:".k-prompt-expander .k-suggestion-group",attribute:"role=group",usage:"Indicates that the suggestion container element is a group."},{selector:".k-prompt-expander .k-suggestion",attribute:"role=button",usage:"Indicates that the suggestion element is a button."},{selector:".k-prompt-expander .k-suggestion",attribute:"aria-label or title",usage:"The suggestion elements must be properly labelled."},{selector:".k-prompt-expander .k-suggestion",attribute:"tabindex=0",usage:"The suggestion element should be focusable."}]};var Es=require("react/jsx-runtime"),jc="k-prompt-header",Pt=e=>{let{...t}=e;return(0,Es.jsx)("div",{...t,className:n(e.className,jc),children:e.children})};var Fa=require("react/jsx-runtime"),em="k-prompt-content",ze=e=>{let{...t}=e;return(0,Fa.jsx)("div",{...t,className:n(e.className,em),children:(0,Fa.jsx)(Fa.Fragment,{children:e.children})})};var Os=require("react/jsx-runtime"),tm="k-prompt-view",Fe=e=>{let{...t}=e;return(0,Os.jsx)("div",{...t,className:n(e.className,tm),children:e.children})};var Ga=require("react/jsx-runtime"),om="k-prompt-expander",kr=e=>{let{title:t,children:o,expanded:a,...r}=e,s=T("prompt-expander-content");return(0,Ga.jsxs)("div",{...r,className:n(e.className,om),children:[(0,Ga.jsx)(z,{fillMode:"flat",icon:a?"chevron-up":"chevron-down","aria-expanded":a?"true":"false","aria-controls":a?s:void 0,children:t}),a&&(0,Ga.jsx)("div",{className:"k-prompt-expander-content",id:s,children:o})]})};var Bs=require("react/jsx-runtime"),am="k-prompt-footer",Ro=e=>{let{...t}=e;return(0,Bs.jsx)("div",{...t,className:n(e.className,am),children:e.children})};var rm=require("react/jsx-runtime");var Rs=require("react/jsx-runtime"),Ps="k-prompt-send",ws={generating:!1},Ut=e=>{let{generating:t=ws.generating,...o}=e;return(0,Rs.jsx)(d,{...o,className:n(e.className,Ps,{"k-generating":t}),icon:t?"stop-sm":"paper-plane",active:t,fillMode:"flat","aria-label":t?"Stop generating":"Send prompt"})};Ut.states=d.states;Ut.options=d.options;Ut.className=Ps;Ut.defaultOptions=ws;var Ua=require("react/jsx-runtime"),gr="k-fab",sm=[i.hover,i.focus,i.active,i.selected,i.disabled],lm={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary]},Ks={type:"button"},le=e=>{let{size:t,rounded:o,themeColor:a,text:r,icon:s,type:l=Ks.type,position:c,hover:h,focus:k,active:x,selected:g,disabled:m,...C}=e;return(0,Ua.jsxs)("button",{...C,type:l,className:n(e.className,gr,I(gr,{size:t,rounded:o,themeColor:a}),A(gr,{hover:h,focus:k,active:x,disabled:m,selected:g}),{[`!k-pos-absolute k-${c}`]:c}),...!r&&s&&!e["aria-label"]&&{"aria-label":"Action"},...m&&{"aria-disabled":"true"},disabled:m||void 0,children:[s&&(0,Ua.jsx)(L,{className:"k-fab-icon",icon:s}),r&&(0,Ua.jsx)("span",{className:"k-fab-text",children:r})]})};le.states=sm;le.options=lm;le.className=gr;le.defaultOptions=Ks;le.moduleName="fab";le.folderName="fab";le.ariaSpec={selector:".k-fab",rules:[{selector:".k-fab",attribute:"role=button or nodeName=button",usage:"Omitted if the <button> DOM element is used."},{selector:".k-fab",attribute:"aria-label or title (when icon-only)",usage:"The attribute must be present when no text is initially visible in the button."},{selector:".k-fab.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the button is disabled."}]};var Ds=require("react/jsx-runtime"),dm="k-fab-items",_s=e=>{let{position:t,...o}=e;return(0,Ds.jsx)("ul",{...o,className:n(e.className,dm,{[`k-fab-items-${t}`]:t}),children:e.children})};var Va=require("react/jsx-runtime"),Hs="k-fab-item",pm=[i.hover,i.focus,i.active,i.disabled],xn=e=>{let{text:t,icon:o,align:a,hover:r,focus:s,active:l,disabled:c,...h}=e;return(0,Va.jsxs)("li",{...h,className:n(e.className,Hs,{[`k-text-${a}`]:a},A(Hs,{hover:r,focus:s,active:l,disabled:c})),children:[(0,Va.jsx)("span",{className:"k-fab-item-text",children:t}),(0,Va.jsx)(L,{className:"k-fab-item-icon",icon:o})]})};xn.states=pm;var cm=require("react/jsx-runtime");var mm=require("react/jsx-runtime");var um=require("react/jsx-runtime");var fm=require("react/jsx-runtime");var Vt=require("react/jsx-runtime"),bm=le.options,hm=le.states,xm={...le.defaultOptions,variant:"text"},Nm=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],km=[{name:"opened",title:"Opened"}],Ko=e=>{let{variant:t,modifiers:o,...a}=e,{opened:r}=o||{},s=r?(0,Vt.jsx)("div",{className:"k-fab-popup k-popup k-popup-transparent",style:{position:"absolute",top:"calc(16px + 36px)",right:"calc(16px + calc(36px / 2) - calc(36px /2))"},children:(0,Vt.jsx)(_s,{position:"bottom",children:(0,Vt.jsx)(xn,{text:"Item",icon:"pencil",align:"right"})})}):null,l;switch(t){case"icon-only":l=(0,Vt.jsx)(le,{...a,icon:"star"});break;case"icon-and-text":l=(0,Vt.jsx)(le,{...a,icon:"star",text:"Action"});break;default:l=(0,Vt.jsx)(le,{...a,text:"Action"});break}return(0,Vt.jsxs)("span",{style:{position:"relative"},children:[l,s]})};Ko.options=bm;Ko.states=hm;Ko.variants=Nm;Ko.defaultOptions=xm;Ko.modifiers=km;Ko.className=le.className;var Gs=require("react/jsx-runtime"),zs="k-prompt-stop-fab",Fs={generating:!0},vo=e=>{let{generating:t=Fs.generating,icon:o,...a}=e;return(0,Gs.jsx)(le,{...a,className:n(e.className,zs,{"k-generating":t}),style:{bottom:"16px",right:"16px"},position:"bottom-end",icon:t?"stop-sm":o,active:t,"aria-label":t?"Stop generating":"Action"})};vo.states=d.states;vo.options=d.options;vo.className=zs;vo.defaultOptions=Fs;var Nn="action-buttons",Us=Nn;var Vs=require("react/jsx-runtime"),vr="k-actions",gm=[],vm={},kn={alignment:"start",orientation:"horizontal"},U=e=>{let{alignment:t=kn.alignment,orientation:o=kn.orientation,...a}=e;return(0,Vs.jsx)("div",{...a,className:n(vr,{[`${vr}-${t}`]:t,[`${vr}-${o}`]:o},e.className),children:e.children})};U.states=gm;U.options=vm;U.className=vr;U.defaultOptions=kn;U.moduleName=Nn;U.folderName=Us;var gn="button",$s=gn;var Xs=require("react/jsx-runtime"),$a="k-button-group",Cm=[i.disabled],Lm={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Mm={},w=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return(0,Xs.jsx)("div",{role:"group",...r,className:n(e.className,$a,I($a,{fillMode:t}),A($a,{disabled:o}),{[`${$a}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};w.states=Cm;w.options=Lm;w.className=$a;w.defaultOptions=Mm;w.moduleName=gn;w.folderName=$s;w.ariaSpec={selector:".k-button-group",rules:[{selector:".k-button-group:not(.k-split-button)",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-button-group.k-disabled",attribute:"aria-disabled=true",usage:"The attribute is rendered only when the entire button group is disabled."},{selector:".k-button-group:not(.k-split-button):not(.k-scheduler-navigation):not(.k-zoom-control) .k-button",attribute:"aria-pressed (when selected)",usage:"Specifies the current state of the ButtonGroup. Only the selected button within the group will have this attribute set to true."}]};var vn=require("react/jsx-runtime");var Cn=require("react/jsx-runtime");var Ln=require("react/jsx-runtime");var Mn=require("react/jsx-runtime");var Sn=require("react/jsx-runtime");var An=require("react/jsx-runtime");var Ze=require("react/jsx-runtime"),Sm={...d.options,...w.options},Am=d.states,Im={...d.defaultOptions,...w.defaultOptions,variant:"text-button"},ym=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Tm=[],_o=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?(0,Ze.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,Ze.jsx)(d,{...a,icon:"star"}),(0,Ze.jsx)(d,{...a,icon:"star"}),(0,Ze.jsx)(d,{...a,icon:"star"})]}):t==="icon-text-button"?(0,Ze.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,Ze.jsx)(d,{...a,icon:"star",children:"First"}),(0,Ze.jsx)(d,{...a,icon:"star",children:"Middle"}),(0,Ze.jsx)(d,{...a,icon:"star",children:"Last"})]}):(0,Ze.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,Ze.jsx)(d,{...a,children:"First"}),(0,Ze.jsx)(d,{...a,children:"Middle"}),(0,Ze.jsx)(d,{...a,children:"Last"})]})};_o.options=Sm;_o.states=Am;_o.variants=ym;_o.defaultOptions=Im;_o.modifiers=Tm;_o.className=w.className;var Xa="input",Cr=Xa;var qs=require("react/jsx-runtime"),Lr="k-input",Em=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Om={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Bm={},te=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c,size:h,rounded:k,fillMode:x,...g}=e;return(0,qs.jsx)("span",{...g,className:n(e.className,Lr,I(Lr,{size:h,rounded:k,fillMode:x}),A(Lr,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c}))})};te.states=Em;te.options=Om;te.className=Lr;te.defaultOptions=Bm;te.moduleName=Xa;te.folderName=Cr;var Ws=require("react/jsx-runtime"),Mr="k-picker",Pm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],wm={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Rm={},wt=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c,size:h,rounded:k,fillMode:x,...g}=e;return(0,Ws.jsx)("span",{...g,className:n(e.className,Mr,I(Mr,{size:h,rounded:k,fillMode:x}),A(Mr,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c})),children:e.children})};wt.states=Pm;wt.options=wm;wt.className=Mr;wt.defaultOptions=Rm;wt.moduleName=Xa;wt.folderName=Cr;var Do=require("react/jsx-runtime"),Js="k-clear-value",Km=[i.disabled,i.loading,i.readonly],_m={},st=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?(0,Do.jsx)(Do.Fragment,{}):(0,Do.jsx)("span",{className:n(e.className,Js),children:(0,Do.jsx)(L,{icon:"x"})})};st.states=Km;st.options=_m;st.className=Js;var Ys=require("react/jsx-runtime"),In="k-input-inner",Dm=[],Hm={},Sr={type:"text",autocomplete:"off",value:"",placeholder:""},lt=e=>{let{value:t=Sr.value,type:o=Sr.type,placeholder:a=Sr.placeholder,autocomplete:r=Sr.autocomplete,disabled:s,readOnly:l,...c}=e;return(0,Ys.jsx)("input",{...c,type:o,className:n(e.className,In,I(In,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:s||void 0,readOnly:l||void 0})};lt.states=Dm;lt.options=Hm;lt.className=In;var qa=require("react/jsx-runtime"),yn="k-input-inner",zm=[],Fm={},Co=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:s,...l}=e;return(0,qa.jsxs)("span",{...l,className:n(e.className,yn,I(yn,e)),children:[r,!r&&s&&(0,qa.jsx)(L,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&(0,qa.jsx)("span",{className:"k-input-value-text",children:t})]})};Co.states=zm;Co.options=Fm;Co.className=yn;var Zs=require("react/jsx-runtime"),Tn="k-input-inner",Gm=[],Um={},Qs={value:"",placeholder:""},Wa=e=>{let{value:t=Qs.value,placeholder:o=Qs.placeholder,rows:a,disabled:r,...s}=e;return(0,Zs.jsx)("textarea",{...s,className:n(e.className,Tn,I(Tn,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};Wa.states=Gm;Wa.options=Um;Wa.className=Tn;var Ja=require("react/jsx-runtime"),js="k-input-loading-icon",Vm=[i.disabled,i.loading],je=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Ja.jsx)(Ja.Fragment,{}):(0,Ja.jsx)("span",{className:n(e.className,js,"k-icon k-i-loading")})};je.states=Vm;je.className=js;var Ya=require("react/jsx-runtime"),el="k-input-validation-icon",$m=[i.valid,i.invalid,i.disabled,i.loading],Xm={},Ge=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,s=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?(0,Ya.jsx)(Ya.Fragment,{}):(0,Ya.jsx)(L,{className:n(el),icon:s})};Ge.states=$m;Ge.options=Xm;Ge.className=el;var Qa=require("react/jsx-runtime"),qm="k-input-prefix",Wm={direction:"horizontal"},et=e=>{let{direction:t=Wm.direction,...o}=e;return e.children?(0,Qa.jsx)("span",{...o,className:n(qm,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Qa.jsx)(Qa.Fragment,{})};var Za=require("react/jsx-runtime"),Jm="k-input-suffix",Ym={direction:"horizontal"},tt=e=>{let{direction:t=Ym.direction,...o}=e;return e.children?(0,Za.jsx)("span",{...o,className:n(Jm,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Za.jsx)(Za.Fragment,{})};var Qm=require("react/jsx-runtime");var tl=require("react/jsx-runtime"),Zm="k-input-suffix-text",En=e=>{let{children:t,...o}=e;return(0,tl.jsx)("span",{...o,className:n(Zm,e.className),children:t})};var al=require("react/jsx-runtime"),ol="k-input-separator",jm={direction:"vertical"},Ue=e=>{let{direction:t=jm.direction,...o}=e;return(0,al.jsx)("span",{...o,className:n(ol,e.className,{[`${ol}-${t}`]:t})})};var Ne=require("react/jsx-runtime"),eu=te.states,tu=te.defaultOptions,ou=te.options,au=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],ru=[],Ho=e=>{let{modifiers:t,valid:o,invalid:a,loading:r,disabled:s,readonly:l,...c}=e,h=t==null?void 0:t.prefix,k=t==null?void 0:t.suffix,x=t==null?void 0:t["clear-button"],g=t==null?void 0:t["validation-icon"],m=t==null?void 0:t.separators;return(0,Ne.jsxs)(te,{...c,valid:o,invalid:a,loading:r,disabled:s,readonly:l,style:{width:300},children:[h&&(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)(et,{children:(0,Ne.jsx)(L,{icon:"lock"})}),m&&(0,Ne.jsx)(Ue,{})]}),(0,Ne.jsx)(lt,{placeholder:"Placeholder",value:"Value"}),g&&(0,Ne.jsx)(Ge,{valid:o,invalid:a,loading:r,disabled:s}),(0,Ne.jsx)(je,{loading:r,disabled:s}),x&&(0,Ne.jsx)(st,{loading:r,disabled:s,readonly:l,value:"Value"}),k&&(0,Ne.jsxs)(Ne.Fragment,{children:[m&&(0,Ne.jsx)(Ue,{}),(0,Ne.jsx)(tt,{children:(0,Ne.jsx)(go,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Ho.options=ou;Ho.states=eu;Ho.variants=ru;Ho.defaultOptions=tu;Ho.modifiers=au;Ho.className=te.className;var ja=require("react/jsx-runtime"),rl="k-color-preview",nu=[],iu={},no=e=>{let{color:t,iconName:o,...a}=e;return(0,ja.jsxs)("span",{...a,className:n(e.className,rl,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,ja.jsx)(L,{icon:o,className:"k-color-preview-icon"}),(0,ja.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};no.states=nu;no.options=iu;no.className=rl;var On="popup",nl=On;var Pn=require("react/jsx-runtime"),il="k-animation-container",su=[],lu={},Bn={positionMode:"absolute",shown:!0},Rt=e=>{let{positionMode:t=Bn.positionMode,shown:o=Bn.shown,animationStyle:a,offset:r,...s}=e;return(0,Pn.jsx)("div",{...s,style:{...r,...e.style},className:n(e.className,il,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,Pn.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};Rt.states=su;Rt.options=lu;Rt.className=il;Rt.defaultOptions=Bn;Rt.moduleName=On;Rt.folderName=nl;var wn="popup",sl=wn;var Rn=require("react/jsx-runtime"),ll="k-popup",du=[],pu={},dl={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=dl.positionMode,animationStyle:a,containerClassName:r,containerRole:s,containerAriaLabel:l,...c}=e;return(0,Rn.jsx)(Rt,{positionMode:o,offset:t,animationStyle:a,className:r,role:s,"aria-label":l,children:(0,Rn.jsx)("div",{...c,className:n(e.className,ll),children:e.children})})};V.states=du;V.options=pu;V.className=ll;V.defaultOptions=dl;V.moduleName=wn;V.folderName=sl;V.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 cl=require("react/jsx-runtime"),cu="k-actionsheet-footer",pl={alignment:"stretched",orientation:"horizontal"},io=e=>{let{alignment:t=pl.alignment,orientation:o=pl.orientation,template:a,as:r=a?"div":U,...s}=e;return(0,cl.jsx)(r,{...s,...!a&&{alignment:t,orientation:o},className:n(e.className,cu),children:e.children})};var Kn="searchbox",ml=Kn;var so=require("react/jsx-runtime"),ul="k-searchbox",mu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],uu={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},_n={showIcon:!0,icon:"search"},ht=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:s,hover:l,focus:c,valid:h,invalid:k,required:x,loading:g,disabled:m,showIcon:C=_n.showIcon,icon:v=_n.icon,"aria-label":M,...E}=e;return(0,so.jsxs)(te,{...E,size:a,rounded:r,fillMode:s,hover:l,focus:c,valid:h,invalid:k,required:x,loading:g,disabled:m,className:n(e.className,ul),children:[C&&(0,so.jsx)(L,{className:"k-input-icon",icon:v}),(0,so.jsx)(lt,{placeholder:o,value:t,"aria-label":M}),(0,so.jsx)(je,{...e}),(0,so.jsx)(Ge,{...e}),(0,so.jsx)(st,{...e})]})};ht.states=mu;ht.options=uu;ht.className=ul;ht.defaultOptions=_n;ht.moduleName=Kn;ht.folderName=ml;var fu=require("react/jsx-runtime");var Dn="textbox",fl=Dn;var Pe=require("react/jsx-runtime"),bl="k-textbox",bu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],hu={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Ar={showClearButton:!0,showValidationIcon:!0,separators:!0},Me=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Ar.separators,showClearButton:s=Ar.showClearButton,showValidationIcon:l=Ar.showValidationIcon,prefix:c,suffix:h,type:k,value:x,placeholder:g,hover:m,focus:C,valid:v,invalid:M,required:E,loading:y,disabled:K,readonly:j,id:xe,"aria-label":ve,"aria-describedby":Ce,...Le}=e;return(0,Pe.jsxs)(te,{...Le,size:t,rounded:o,fillMode:a,hover:m,focus:C,valid:v,invalid:M,required:E,loading:y,disabled:K,readonly:j,className:n(e.className,bl),children:[c&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(et,{children:c}),r&&(0,Pe.jsx)(Ue,{})]}),(0,Pe.jsx)(lt,{id:xe,placeholder:g,value:x,type:k,disabled:K,"aria-label":ve,"aria-describedby":Ce,"aria-invalid":M?"true":void 0}),l&&(0,Pe.jsx)(Ge,{valid:v,invalid:M,loading:y,disabled:K}),(0,Pe.jsx)(je,{loading:y,disabled:K}),s&&(0,Pe.jsx)(st,{loading:y,disabled:K,readonly:j,value:x}),h&&(0,Pe.jsxs)(Pe.Fragment,{children:[r&&(0,Pe.jsx)(Ue,{}),(0,Pe.jsx)(tt,{children:h})]})]})};Me.states=bu;Me.options=hu;Me.className=bl;Me.defaultOptions=Ar;Me.moduleName=Dn;Me.folderName=fl;Me.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 er=Me;var xl=require("react/jsx-runtime"),hl=e=>(0,xl.jsx)(er,{...e});var Nl=require("react/jsx-runtime");var kl=require("react/jsx-runtime");var xu=require("react/jsx-runtime");var Ir=require("react/jsx-runtime"),Nu=Me.states,ku=Me.defaultOptions,gu=Me.options,vu=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Cu=[],zo=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t!=null&&t[r]?(0,Ir.jsx)(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[r]?(0,Ir.jsx)(go,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t==null?void 0:t[r];break;default:break}}),(0,Ir.jsx)(hl,{value:"Value",style:{width:300},...o,...a})};zo.options=gu;zo.states=Nu;zo.variants=Cu;zo.defaultOptions=ku;zo.modifiers=vu;zo.className=Me.className;var dt=require("react/jsx-runtime"),gl="k-actionsheet-titlebar",Lu={},Ve=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:s,input:l,inputValue:c,inputPlaceholder:h,adaptive:k,titleId:x,children:g,...m}=e;return(0,dt.jsxs)("div",{...m,className:n(e.className,gl),children:[(0,dt.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,dt.jsx)("div",{className:"k-actionsheet-actions",children:a}),!g&&(0,dt.jsxs)("div",{className:"k-actionsheet-title",id:x,children:[t&&(0,dt.jsx)("div",{className:"k-text-center",children:t}),o&&(0,dt.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),g&&(0,dt.jsx)("div",{className:"k-actionsheet-title",id:x,children:g}),r&&(0,dt.jsx)("div",{className:"k-actionsheet-actions",children:r})]}),(l||s)&&(0,dt.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?(0,dt.jsx)(Me,{value:c,placeholder:h,size:k?"large":"medium","aria-label":t||h||"Input"}):(0,dt.jsx)(ht,{placeholder:"Filter",size:k?"large":"medium","aria-label":"Filter options"})})]})};Ve.className=gl;Ve.defaultOptions=Lu;var Fo=require("react/jsx-runtime"),Hn="k-actionsheet-view",Mu=[],Su={},Au={},Go=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:s,titleId:l,...c}=e,h=(r==null?void 0:r.type)===Ve&&(0,Fo.jsx)(Ve,{adaptive:t,titleId:l,...r==null?void 0:r.props}),k=(s==null?void 0:s.type)===io&&(0,Fo.jsx)(io,{...s==null?void 0:s.props});return(0,Fo.jsxs)("div",{...c,className:n(e.className,Hn,{[`${Hn}-animated`]:o}),children:[h,(0,Fo.jsx)("div",{className:"k-actionsheet-content",children:a}),k]})};Go.states=Mu;Go.options=Su;Go.className=Hn;Go.defaultOptions=Au;var tr="action-sheet",yr=tr;var zn="overlay",vl=zn;var Ll=require("react/jsx-runtime"),Cl="k-overlay",Iu=[],yu={},Tu={},lo=e=>{let{...t}=e;return(0,Ll.jsx)("div",{...t,className:n(e.className,Cl),children:e.children})};lo.states=Iu;lo.options=yu;lo.className=Cl;lo.defaultOptions=Tu;lo.moduleName=zn;lo.folderName=vl;var Lo=require("react/jsx-runtime"),Ml="k-actionsheet",Eu=[],Ou={},or={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},de=e=>{let{side:t=or.side,fullscreen:o=or.fullscreen,adaptive:a=or.adaptive,overlay:r=or.overlay,template:s,children:l,header:c,footer:h,id:k,...x}=e,g=k&&!s&&c?`${k}-title`:void 0;return(0,Lo.jsxs)("div",{className:"k-actionsheet-container",children:[r&&(0,Lo.jsx)(lo,{}),(0,Lo.jsx)(Rt,{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,Lo.jsx)("div",{...x,id:k,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":g,className:n(e.className,Ml,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||(0,Lo.jsx)(Go,{header:c,footer:h,adaptive:a,titleId:g,...e,children:l})})})]})};de.states=Eu;de.options=Ou;de.className=Ml;de.defaultOptions=or;de.moduleName=tr;de.folderName=yr;de.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 Al=require("react/jsx-runtime"),Sl="k-actionsheet-container",Bu=[],Pu={},wu={},Uo=e=>{let{children:t,...o}=e;return(0,Al.jsx)("div",{...o,className:Sl,children:t})};Uo.states=Bu;Uo.options=Pu;Uo.className=Sl;Uo.defaultOptions=wu;Uo.moduleName=tr;Uo.folderName=yr;var Il=require("react/jsx-runtime"),Fn=e=>{let{...t}=e;return(0,Il.jsx)("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};var xt=require("react/jsx-runtime"),Gn="k-actionsheet-item",Ru=[i.hover,i.focus,i.selected,i.disabled],po=e=>{let{iconName:t,text:o,description:a,hover:r,focus:s,selected:l,disabled:c,...h}=e;return(0,xt.jsxs)("span",{...h,className:n(e.className,Gn,A(Gn,{hover:r,focus:s,selected:l,disabled:c})),children:[!e.children&&(0,xt.jsx)(xt.Fragment,{children:(0,xt.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,xt.jsx)("span",{className:"k-icon-wrap",children:(0,xt.jsx)(L,{className:"k-actionsheet-item-icon",icon:t})}),(0,xt.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,xt.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,xt.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};po.states=Ru;po.className=Gn;var yl=require("react/jsx-runtime");var Ku=require("react/jsx-runtime");var _u=require("react/jsx-runtime");var Du=require("react/jsx-runtime");var oe=require("react/jsx-runtime"),Hu=de.options,zu=de.states,El={...de.defaultOptions,variant:"normal"},Fu=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Gu=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Vo=e=>{let{variant:t,modifiers:o,...a}={...El,...e},r={},s=(0,oe.jsxs)(Fn,{children:[(0,oe.jsx)(po,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,oe.jsx)(po,{text:"Add to Favorites",iconName:"heart"}),(0,oe.jsx)(po,{text:"Upload New",iconName:"upload",disabled:!0}),(0,oe.jsx)("hr",{className:"k-hr"}),(0,oe.jsx)(po,{text:"Cancel",iconName:"cancel"})]}),l="Choose from the items below",c="Select Item";return t==="fullScreen"&&(r.fullScreen=!0),Object.keys(o||{}).forEach(h=>{switch(h){case"actions":r.actionsStart=!!(o!=null&&o[h]),r.actionsEnd=!!(o!=null&&o[h]);break;case"subtitle":r.subtitle=o!=null&&o[h]?l:void 0;break;case"footer":r.footer=!!(o!=null&&o[h]);break;default:break}}),t==="adaptive"?(0,oe.jsx)(de,{...a,adaptive:!0,fullscreen:r.fullScreen,header:(0,oe.jsx)(Ve,{actionsStart:r.actionsStart?(0,oe.jsx)(d,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?(0,oe.jsx)(d,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:r.subtitle}),footer:r.footer?(0,oe.jsxs)(io,{alignment:"stretched",children:[(0,oe.jsx)(d,{text:"Cancel",size:"large",themeColor:"base"}),(0,oe.jsx)(d,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):(0,oe.jsx)(de,{...a,fullscreen:r.fullScreen,header:(0,oe.jsx)(Ve,{actionsStart:r.actionsStart?(0,oe.jsx)(d,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?(0,oe.jsx)(d,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?(0,oe.jsxs)(io,{alignment:"stretched",children:[(0,oe.jsx)(d,{text:"Apply",themeColor:"primary"}),(0,oe.jsx)(d,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Vo.options=Hu;Vo.states=zu;Vo.variants=Fu;Vo.defaultOptions=El;Vo.modifiers=Gu;Vo.className=de.className;var Un="slider",Ol=Un;var St=require("react/jsx-runtime"),ar="k-slider",Uu=[i.hover,i.focus,i.active,i.disabled,i.readonly],Vu={},Nt={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},Q=e=>{let{type:t=Nt.type,orientation:o=Nt.orientation,gradientType:a=Nt.gradientType,readonly:r=Nt.readonly,disabled:s=Nt.disabled,handlePosition:l=Nt.handlePosition,showButtons:c=Nt.showButtons,showTicks:h=Nt.showTicks,value:k=Nt.value,min:x=Nt.min,max:g=Nt.max,startValue:m,endValue:C,hover:v,focus:M,active:E,trackStyle:y,dir:K,...j}=e,ve=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),Ce,Le;return o==="horizontal"?(Ce=K==="rtl"?"chevron-left":"chevron-right",Le=K==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(Ce="chevron-up",Le="chevron-down"),(0,St.jsxs)("div",{...j,className:n(ar,e.className,A(ar,{readonly:r,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:K,children:[c&&(0,St.jsx)(d,{className:"k-button-decrease",rounded:"full",icon:Le,tabIndex:-1,title:"Decrease"}),(0,St.jsxs)("div",{className:"k-slider-track-wrap",children:[h&&(0,St.jsx)("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),(0,St.jsxs)("div",{className:"k-slider-track",style:y,children:[(0,St.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,St.jsx)("span",{className:n("k-draghandle","k-draghandle-start",A(ar,{hover:v,focus:M,active:E})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":m??x,"aria-valuemin":x,"aria-valuemax":C??g,"aria-orientation":ve,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":j["aria-label"]?`${j["aria-label"]} start`:"Range start"}),(0,St.jsx)("span",{className:n("k-draghandle",`k-draghandle-${l}`,A(ar,{hover:v,focus:M,active:E})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?C??g:k,"aria-valuemin":t==="range"?m??x:x,"aria-valuemax":g,"aria-orientation":ve,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?j["aria-label"]?`${j["aria-label"]} end`:"Range end":j["aria-label"]})]})]}),c&&(0,St.jsx)(d,{className:"k-button-increase",rounded:"full",icon:Ce,tabIndex:-1,title:"Increase"})]})};Q.states=Uu;Q.options=Vu;Q.className=ar;Q.defaultOptions=Nt;Q.moduleName=Un;Q.folderName=Ol;Q.ariaSpec={selector:".k-slider",rules:[{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"role=slider",usage:"Sets the proper role for Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-label or aria-labelledby or title",usage:"The Slider needs an accessible name to be assigned to it."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the Slider is in a form and announces the invalid state."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuetext (when has text alternative)",usage:"Specifies a human-readable text alternative to the numeric value. Provided by consuming applications."},{selector:".k-slider:not(.k-disabled) .k-draghandle:not(.k-hsv-draghandle)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled sliders are removed from tab order."},{selector:".k-slider-vertical .k-draghandle",attribute:"aria-orientation=vertical (when vertical)",usage:"Present only when slider is vertical."},{selector:".k-slider.k-disabled .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-disabled=true",usage:"Rendered only when the Slider is disabled."},{selector:".k-slider.k-readonly .k-draghandle",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Slider is readonly. Readonly sliders remain focusable but their value cannot be changed."},{selector:".k-slider .k-button",attribute:"tabindex=-1",usage:"Excludes the buttons from the natural tab order. Keyboard users use arrow keys on the drag handle."},{selector:".k-slider .k-button",attribute:"title",usage:'Provides a tooltip describing the button action (e.g., "Decrease" or "Increase").'},{selector:".k-slider .k-slider-items",attribute:"aria-hidden=true",usage:"Hides the tick list from assistive technologies. Tick values are redundant with the drag handle value attributes."},{selector:".k-slider .k-tick",attribute:"role=presentation",usage:"Removes semantic meaning from individual tick elements. Ticks are visual-only markers."},{selector:".k-slider .k-tick",attribute:"title",usage:"Represents the value associated with the respective tick."}]};var Vn=require("react/jsx-runtime"),Bl="k-tick",$u=[],Xu={},Pl={label:!1},B=e=>{let{style:t,label:o=Pl.label,orientation:a,large:r,text:s,...l}=e;return(0,Vn.jsx)("li",{...l,role:"presentation",title:s||"Tick",className:n(e.className,Bl,{[`k-tick-${a}`]:a,"k-tick-large":r}),style:t,children:o&&(0,Vn.jsx)("span",{className:"k-label",children:s})})};B.states=$u;B.options=Xu;B.className=Bl;B.defaultOptions=Pl;var Se=require("react/jsx-runtime"),wl=e=>(0,Se.jsx)(Q,{"aria-label":e["aria-label"]||"Slider",children:(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(B,{className:"k-first",label:!0,large:!0,text:"0"}),(0,Se.jsx)(B,{}),(0,Se.jsx)(B,{}),(0,Se.jsx)(B,{}),(0,Se.jsx)(B,{}),(0,Se.jsx)(B,{label:!0,large:!0,text:"5"}),(0,Se.jsx)(B,{}),(0,Se.jsx)(B,{}),(0,Se.jsx)(B,{}),(0,Se.jsx)(B,{}),(0,Se.jsx)(B,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});var Ae=require("react/jsx-runtime"),Rl=e=>(0,Ae.jsx)(Q,{children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(B,{className:"k-first",label:!0,large:!0,text:"0"}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(B,{label:!0,large:!0,text:"5"}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(B,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});var $n=require("react/jsx-runtime");var Xn=require("react/jsx-runtime");var Kl=require("react/jsx-runtime"),qn=e=>(0,Kl.jsx)(Q,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});var _l=require("react/jsx-runtime"),Wn=e=>(0,_l.jsx)(Q,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});var Jn=require("react/jsx-runtime");var Yn=require("react/jsx-runtime");var ot=require("react/jsx-runtime"),qu=Q.options,Wu=Q.states,Dl={...Q.defaultOptions,variant:"horizontal",label:!0},Ju=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Yu=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],$o=e=>{let{variant:t,modifiers:o,...a}=e,r=Dl.label,s={};Object.keys(o||{}).forEach(c=>{switch(c){case"button":{s.showButtons=!!(o!=null&&o[c]);break}case"label":{r=!!(o!=null&&o[c]);break}case"tick":{s.showTicks=!!(o!=null&&o[c]);break}}});let l={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?(0,ot.jsxs)(Rl,{style:{height:"300px",...l},...a,...s,children:[(0,ot.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),(0,ot.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),(0,ot.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),(0,ot.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),(0,ot.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):(0,ot.jsxs)(wl,{style:{width:"400px",...l},...a,...s,children:[(0,ot.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),(0,ot.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),(0,ot.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),(0,ot.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),(0,ot.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};$o.options=qu;$o.states=Wu;$o.variants=Ju;$o.defaultOptions=Dl;$o.modifiers=Yu;$o.className=Q.className;var rr=require("react/jsx-runtime"),Hl="k-spin-button",ju=[],ef={size:[p.undefined,p.small,p.medium,p.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Qn={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},co=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:r=Qn.increaseLabel,decreaseLabel:s=Qn.decreaseLabel,...l}=e;return(0,rr.jsxs)("span",{...l,className:n(Hl,e.className),children:[(0,rr.jsx)(d,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":r}),(0,rr.jsx)(d,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};co.states=ju;co.options=ef;co.className=Hl;co.defaultOptions=Qn;co.moduleName=null;co.folderName=null;var zl="numeric-textbox",Fl="numerictextbox";var Ie=require("react/jsx-runtime"),Gl="k-numerictextbox",tf=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],of={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Tr={showSpinButton:!0,showClearButton:!0,separators:!0},q=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Tr.separators,showClearButton:s=Tr.showClearButton,showSpinButton:l=Tr.showSpinButton,prefix:c,suffix:h,value:k,placeholder:x,hover:g,focus:m,valid:C,invalid:v,required:M,loading:E,disabled:y,readonly:K,id:j,"aria-label":xe,"aria-describedby":ve,...Ce}=e;return(0,Ie.jsxs)(te,{...Ce,size:t,rounded:o,fillMode:a,hover:g,focus:m,valid:C,invalid:v,required:M,loading:E,disabled:y,readonly:K,className:n(e.className,Gl),children:[c&&(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(et,{children:c}),r&&(0,Ie.jsx)(Ue,{})]}),(0,Ie.jsx)(lt,{id:j,placeholder:x,value:k,role:"spinbutton",disabled:y,"aria-label":xe,"aria-describedby":ve,"aria-invalid":v?"true":void 0}),(0,Ie.jsx)(Ge,{valid:C,invalid:v,loading:E,disabled:y}),(0,Ie.jsx)(je,{loading:E,disabled:y}),s&&(0,Ie.jsx)(st,{loading:E,disabled:y,readonly:K,value:k}),h&&(0,Ie.jsxs)(Ie.Fragment,{children:[r&&(0,Ie.jsx)(Ue,{}),(0,Ie.jsx)(tt,{children:h})]}),l&&(0,Ie.jsx)(co,{className:"k-input-spinner",size:t,fillMode:a,disabled:y})]})};q.states=tf;q.options=of;q.className=Gl;q.defaultOptions=Tr;q.moduleName=zl;q.folderName=Fl;q.ariaSpec={selector:".k-numerictextbox",rules:[{selector:".k-numerictextbox > .k-input-inner",attribute:"role=spinbutton",usage:"Announces the spin button capabilities of the NumericTextBox."},{selector:".k-numerictextbox > .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-numerictextbox > .k-input-inner",attribute:"aria-valuenow (when has value)",usage:"Announces the current value of the component."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemin (when has min)",usage:"Announces the minimum allowed value."},{selector:".k-numerictextbox > .k-input-inner",at