UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 159 kB
var yc=Object.create;var $a=Object.defineProperty;var Ec=Object.getOwnPropertyDescriptor;var Oc=Object.getOwnPropertyNames;var Bc=Object.getPrototypeOf,Pc=Object.prototype.hasOwnProperty;var wc=(e,t)=>{for(var o in t)$a(e,o,{get:t[o],enumerable:!0})},Pi=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Oc(t))!Pc.call(e,n)&&n!==o&&$a(e,n,{get:()=>t[n],enumerable:!(a=Ec(t,n))||a.enumerable});return e};var Rn=(e,t,o)=>(o=e!=null?yc(Bc(e)):{},Pi(t||!e||!e.__esModule?$a(o,"default",{value:e,enumerable:!0}):o,e)),Rc=e=>Pi($a({},"__esModule",{value:!0}),e);var Ih={};wc(Ih,{PromptDemo:()=>no,default:()=>Ch});module.exports=Rc(Ih);var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...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 E=(e,t)=>r({[`${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"}),I=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:s,checked:d,active:p,selected:b,disabled:N,indeterminate:h,loading:k,empty:m,readonly:L,highlighted:v,...C}=t;return r({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":s,"k-checked":d,"k-active":p,"k-selected":b,"k-disabled":N,"k-indeterminate":h&&!d,"k-loading":k,"k-empty":m,"k-readonly":L,"k-highlighted":v},Object.keys(C).reduce((y,T)=>(T.startsWith("k-")?y[T]=C[T]:y[`k-${T}`]=C[T],y),{}))};function wi(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var c={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"},x={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Mt={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},g={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"},Ri={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Kn={};function A(e){return Kn[e]=(Kn[e]||0)+1,`k-${e}-${Kn[e]}`}var _n="prompt",Ki=_n;var xa=require("react/jsx-runtime"),_i="k-prompt",Kc=[],_c={},Dc={},Ke=e=>{let{...t}=e;return(0,xa.jsx)("div",{...t,className:r(e.className,_i),children:(0,xa.jsx)(xa.Fragment,{children:e.children})})};Ke.states=Kc;Ke.options=_c;Ke.className=_i;Ke.defaultOptions=Dc;Ke.moduleName=_n;Ke.folderName=Ki;Ke.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 ha=require("react/jsx-runtime"),Hc="k-prompt-content",Xa=e=>{let{...t}=e;return(0,ha.jsx)("div",{...t,className:r(e.className,Hc),children:(0,ha.jsx)(ha.Fragment,{children:e.children})})};var Hi=require("react/jsx-runtime"),zc="k-prompt-footer",Di=e=>{let{...t}=e;return(0,Hi.jsx)("div",{...t,className:r(e.className,zc),children:e.children})};var zi=require("react/jsx-runtime"),Fc="k-prompt-header",qa=e=>{let{...t}=e;return(0,zi.jsx)("div",{...t,className:r(e.className,Fc),children:e.children})};var Fi=require("react/jsx-runtime"),Uc="k-prompt-view",Wa=e=>{let{...t}=e;return(0,Fi.jsx)("div",{...t,className:r(e.className,Uc),children:e.children})};var Na=require("react/jsx-runtime"),Dn="k-font-icon",Gc=[],Vc={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info]},$c={},ka=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:s,...d}=e;return a?(0,Na.jsx)("span",{...d,className:r(e.className,Dn,E(Dn,{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,Na.jsx)(Na.Fragment,{})};ka.states=Gc;ka.options=Vc;ka.className=Dn;ka.defaultOptions=$c;var Ui=ka;var io=require("react/jsx-runtime"),Hn="k-svg-icon",Xc=[],qc={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info],variant:[Mt.outline,Mt.solid,Mt.duotone]},zn={viewBox:"0 0 24 24",variant:Mt.outline},va=e=>{var k,m;let{size:t,themeColor:o,rotate:a,flip:n,viewBox:s=zn.viewBox,variant:d=zn.variant,icon:p,...b}=e;if(!p)return(0,io.jsx)(io.Fragment,{});if(p==="none")return(0,io.jsx)("span",{...b,className:r(e.className,Hn,E("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof p=="object"&&p.name&&p.name,h=typeof p=="object"?d&&((k=p.variants)==null?void 0:k[d])||((m=p.variants)==null?void 0:m.outline)||p.content:void 0;return(0,io.jsx)("span",{...b,className:r(e.className,Hn,E("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`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,io.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:s,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:p?void 0:e.children})})};va.states=Xc;va.options=qc;va.className=Hn;va.defaultOptions=zn;var Fn=va;var Un=Rn(require("@progress/kendo-svg-icons"));var Gi="icon",Vi="icons";var qi=require("react");var $i=require("react"),Xi=(0,$i.createContext)({iconsType:"svg"});var Pt=require("react/jsx-runtime"),Ja="k-icon",Wc=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Jc=[],Yc={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info],variant:[Mt.outline,Mt.solid,Mt.duotone]},Ya={viewBox:"0 0 24 24",type:"svg",variant:Mt.outline},M=e=>{let{iconsType:t}=(0,qi.useContext)(Xi),{size:o,themeColor:a,icon:n,type:s=t||Ya.type,rotate:d,flip:p,viewBox:b=Ya.viewBox,variant:N=Ya.variant,...h}=e;if(!n)return(0,Pt.jsx)(Pt.Fragment,{});if((t||s)==="svg"){if(n==="none")return(0,Pt.jsx)(Fn,{...h,className:r(e.className,Ja),icon:n,size:o,variant:N});let m=Un[n]?n:Wc(`${n}-icon`);return Un[m]?(0,Pt.jsx)(Fn,{...h,className:r(e.className,Ja),icon:Un[m],size:o,themeColor:a,rotate:d,flip:p,viewBox:b,variant:N}):(0,Pt.jsx)(Pt.Fragment,{})}return(0,Pt.jsx)(Ui,{...h,className:r(e.className,Ja),icon:n,size:o,themeColor:a,rotate:d,flip:p})};M.states=Jc;M.options=Yc;M.defaultOptions=Ya;M.className=Ja;M.moduleName=Gi;M.folderName=Vi;M.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 Gn="button",Wi=Gn;var Ze=require("react/jsx-runtime"),ga="k-button",Qc=["icon-button"],Zc=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],jc={size:[c.undefined,c.xsmall,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[x.undefined,x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info,g.inverse]},Vn={showArrow:!1,arrowIconName:"chevron-down"},l=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:s,showArrow:d=Vn.showArrow,arrowIconName:p=Vn.arrowIconName,variant:b,hover:N,focus:h,active:k,selected:m,disabled:L,togglable:v,ariaDisabled:C,icon:y,iconSize:T,text:K,iconClassName:q,className:me,...xe}=e,he=y!=null,Ne=e.children!==void 0;return(0,Ze.jsxs)(t,{className:r(me,ga,wi(ga,b),E(ga,{size:o,rounded:a,fillMode:n,themeColor:s}),I(ga,{hover:N,focus:h,active:k,disabled:L||C,selected:m}),{"k-icon-button":!K&&!Ne&&he}),"aria-pressed":v?m?"true":"false":void 0,...xe,"aria-disabled":C?"true":void 0,disabled:L||void 0,children:[typeof y=="string"&&y&&(0,Ze.jsx)(M,{className:r(q,"k-button-icon"),icon:y,size:T}),y&&typeof y!="string"&&(0,Ze.jsx)(Ze.Fragment,{children:y}),K?(0,Ze.jsxs)(Ze.Fragment,{children:[K&&(0,Ze.jsx)("span",{className:"k-button-text",children:K}),e.children]}):e.children&&(0,Ze.jsx)("span",{className:"k-button-text",children:e.children}),d&&(0,Ze.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,Ze.jsx)(M,{icon:p})})]})};l.states=Zc;l.options=jc;l.variants=Qc;l.className=ga;l.defaultOptions=Vn;l.moduleName=Gn;l.folderName=Wi;l.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 Ji=require("react/jsx-runtime"),ke=e=>(0,Ji.jsx)(l,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Yi=require("react/jsx-runtime"),se=e=>(0,Yi.jsx)(l,{icon:"folder",children:"Button",...e});var Qi=require("react/jsx-runtime"),so=e=>(0,Qi.jsx)(l,{children:"Button",...e});var Qa=require("react/jsx-runtime"),ep=l.options,tp=l.states,op={...l.defaultOptions,variant:"text"},ap=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],np=[],vo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,Qa.jsx)(ke,{...o,icon:"star"});case"icon-and-text":return(0,Qa.jsx)(se,{...o,icon:"star",children:"Button"});default:return(0,Qa.jsx)(so,{...o,children:"Button"})}};vo.options=ep;vo.states=tp;vo.variants=ap;vo.defaultOptions=op;vo.modifiers=np;vo.className=l.className;var La=require("react/jsx-runtime"),rp="k-prompt-expander",Zi=e=>{let{title:t,children:o,expanded:a,...n}=e,s=A("prompt-expander-content");return(0,La.jsxs)("div",{...n,className:r(e.className,rp),children:[(0,La.jsx)(se,{fillMode:"flat",icon:a?"chevron-up":"chevron-down","aria-expanded":a?"true":"false","aria-controls":a?s:void 0,children:t}),a&&(0,La.jsx)("div",{className:"k-prompt-expander-content",id:s,children:o})]})};var Ma=require("react/jsx-runtime"),Za="k-fab",lp=[i.hover,i.focus,i.active,i.selected,i.disabled],dp={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary]},ji={type:"button"},oe=e=>{let{size:t,rounded:o,themeColor:a,text:n,icon:s,type:d=ji.type,position:p,hover:b,focus:N,active:h,selected:k,disabled:m,...L}=e;return(0,Ma.jsxs)("button",{...L,type:d,className:r(e.className,Za,E(Za,{size:t,rounded:o,themeColor:a}),I(Za,{hover:b,focus:N,active:h,disabled:m,selected:k}),{[`!k-pos-absolute k-${p}`]:p}),...!n&&s&&!e["aria-label"]&&{"aria-label":"Action"},...m&&{"aria-disabled":"true"},disabled:m||void 0,children:[s&&(0,Ma.jsx)(M,{className:"k-fab-icon",icon:s}),n&&(0,Ma.jsx)("span",{className:"k-fab-text",children:n})]})};oe.states=lp;oe.options=dp;oe.className=Za;oe.defaultOptions=ji;oe.moduleName="fab";oe.folderName="fab";oe.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 ts=require("react/jsx-runtime"),cp="k-fab-items",es=e=>{let{position:t,...o}=e;return(0,ts.jsx)("ul",{...o,className:r(e.className,cp,{[`k-fab-items-${t}`]:t}),children:e.children})};var Sa=require("react/jsx-runtime"),os="k-fab-item",pp=[i.hover,i.focus,i.active,i.disabled],$n=e=>{let{text:t,icon:o,align:a,hover:n,focus:s,active:d,disabled:p,...b}=e;return(0,Sa.jsxs)("li",{...b,className:r(e.className,os,{[`k-text-${a}`]:a},I(os,{hover:n,focus:s,active:d,disabled:p})),children:[(0,Sa.jsx)("span",{className:"k-fab-item-text",children:t}),(0,Sa.jsx)(M,{className:"k-fab-item-icon",icon:o})]})};$n.states=pp;var mp=require("react/jsx-runtime");var up=require("react/jsx-runtime");var fp=require("react/jsx-runtime");var bp=require("react/jsx-runtime");var wt=require("react/jsx-runtime"),xp=oe.options,hp=oe.states,Np={...oe.defaultOptions,variant:"text"},kp=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],vp=[{name:"opened",title:"Opened"}],go=e=>{let{variant:t,modifiers:o,...a}=e,{opened:n}=o||{},s=n?(0,wt.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,wt.jsx)(es,{position:"bottom",children:(0,wt.jsx)($n,{text:"Item",icon:"pencil",align:"right"})})}):null,d;switch(t){case"icon-only":d=(0,wt.jsx)(oe,{...a,icon:"star"});break;case"icon-and-text":d=(0,wt.jsx)(oe,{...a,icon:"star",text:"Action"});break;default:d=(0,wt.jsx)(oe,{...a,text:"Action"});break}return(0,wt.jsxs)("span",{style:{position:"relative"},children:[d,s]})};go.options=xp;go.states=hp;go.variants=kp;go.defaultOptions=Np;go.modifiers=vp;go.className=oe.className;var rs=require("react/jsx-runtime"),as="k-prompt-stop-fab",ns={generating:!0},Lo=e=>{let{generating:t=ns.generating,icon:o,...a}=e;return(0,rs.jsx)(oe,{...a,className:r(e.className,as,{"k-generating":t}),style:{bottom:"16px",right:"16px"},position:"bottom-end",icon:t?"stop-sm":o,active:t,"aria-label":t?"Stop generating":"Action"})};Lo.states=l.states;Lo.options=l.options;Lo.className=as;Lo.defaultOptions=ns;var Xn="action-buttons",is=Xn;var ss=require("react/jsx-runtime"),ja="k-actions",gp=[],Lp={},qn={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=qn.alignment,orientation:o=qn.orientation,...a}=e;return(0,ss.jsx)("div",{...a,className:r(ja,{[`${ja}-${t}`]:t,[`${ja}-${o}`]:o},e.className),children:e.children})};W.states=gp;W.options=Lp;W.className=ja;W.defaultOptions=qn;W.moduleName=Xn;W.folderName=is;var Wn="button",ls=Wn;var ds=require("react/jsx-runtime"),Ca="k-button-group",Mp=[i.disabled],Sp={fillMode:[x.undefined,x.solid,x.flat,x.outline,x.clear,x.link]},Cp={},w=e=>{let{fillMode:t,disabled:o,stretched:a,...n}=e;return(0,ds.jsx)("div",{role:"group",...n,className:r(e.className,Ca,E(Ca,{fillMode:t}),I(Ca,{disabled:o}),{[`${Ca}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};w.states=Mp;w.options=Sp;w.className=Ca;w.defaultOptions=Cp;w.moduleName=Wn;w.folderName=ls;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 Jn=require("react/jsx-runtime");var Yn=require("react/jsx-runtime");var Qn=require("react/jsx-runtime");var Zn=require("react/jsx-runtime");var jn=require("react/jsx-runtime");var er=require("react/jsx-runtime");var Ge=require("react/jsx-runtime"),Ip={...l.options,...w.options},Tp=l.states,Ap={...l.defaultOptions,...w.defaultOptions,variant:"text-button"},yp=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Ep=[],Mo=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?(0,Ge.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,Ge.jsx)(l,{...a,icon:"star"}),(0,Ge.jsx)(l,{...a,icon:"star"}),(0,Ge.jsx)(l,{...a,icon:"star"})]}):t==="icon-text-button"?(0,Ge.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,Ge.jsx)(l,{...a,icon:"star",children:"First"}),(0,Ge.jsx)(l,{...a,icon:"star",children:"Middle"}),(0,Ge.jsx)(l,{...a,icon:"star",children:"Last"})]}):(0,Ge.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,Ge.jsx)(l,{...a,children:"First"}),(0,Ge.jsx)(l,{...a,children:"Middle"}),(0,Ge.jsx)(l,{...a,children:"Last"})]})};Mo.options=Ip;Mo.states=Tp;Mo.variants=yp;Mo.defaultOptions=Ap;Mo.modifiers=Ep;Mo.className=w.className;var Ia="input",en=Ia;var cs=require("react/jsx-runtime"),tn="k-input",Op=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Bp={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},Pp={},J=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p,size:b,rounded:N,fillMode:h,...k}=e;return(0,cs.jsx)("span",{...k,className:r(e.className,tn,E(tn,{size:b,rounded:N,fillMode:h}),I(tn,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p}))})};J.states=Op;J.options=Bp;J.className=tn;J.defaultOptions=Pp;J.moduleName=Ia;J.folderName=en;var ps=require("react/jsx-runtime"),on="k-picker",wp=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Rp={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},Kp={},St=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p,size:b,rounded:N,fillMode:h,...k}=e;return(0,ps.jsx)("span",{...k,className:r(e.className,on,E(on,{size:b,rounded:N,fillMode:h}),I(on,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p})),children:e.children})};St.states=wp;St.options=Rp;St.className=on;St.defaultOptions=Kp;St.moduleName=Ia;St.folderName=en;var So=require("react/jsx-runtime"),ms="k-clear-value",_p=[i.disabled,i.loading,i.readonly],Dp={},je=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?(0,So.jsx)(So.Fragment,{}):(0,So.jsx)("span",{className:r(e.className,ms),children:(0,So.jsx)(M,{icon:"x"})})};je.states=_p;je.options=Dp;je.className=ms;var us=require("react/jsx-runtime"),tr="k-input-inner",Hp=[],zp={},an={type:"text",autocomplete:"off",value:"",placeholder:""},et=e=>{let{value:t=an.value,type:o=an.type,placeholder:a=an.placeholder,autocomplete:n=an.autocomplete,disabled:s,readOnly:d,...p}=e;return(0,us.jsx)("input",{...p,type:o,className:r(e.className,tr,E(tr,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};et.states=Hp;et.options=zp;et.className=tr;var Ta=require("react/jsx-runtime"),or="k-input-inner",Fp=[],Up={},lo=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:s,...d}=e;return(0,Ta.jsxs)("span",{...d,className:r(e.className,or,E(or,e)),children:[n,!n&&s&&(0,Ta.jsx)(M,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&(0,Ta.jsx)("span",{className:"k-input-value-text",children:t})]})};lo.states=Fp;lo.options=Up;lo.className=or;var bs=require("react/jsx-runtime"),ar="k-input-inner",Gp=[],Vp={},fs={value:"",placeholder:""},Aa=e=>{let{value:t=fs.value,placeholder:o=fs.placeholder,rows:a,disabled:n,...s}=e;return(0,bs.jsx)("textarea",{...s,className:r(e.className,ar,E(ar,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Aa.states=Gp;Aa.options=Vp;Aa.className=ar;var ya=require("react/jsx-runtime"),xs="k-input-loading-icon",$p=[i.disabled,i.loading],Ve=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,ya.jsx)(ya.Fragment,{}):(0,ya.jsx)("span",{className:r(e.className,xs,"k-icon k-i-loading")})};Ve.states=$p;Ve.className=xs;var Ea=require("react/jsx-runtime"),hs="k-input-validation-icon",Xp=[i.valid,i.invalid,i.disabled,i.loading],qp={},_e=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,s=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?(0,Ea.jsx)(Ea.Fragment,{}):(0,Ea.jsx)(M,{className:r(hs),icon:s})};_e.states=Xp;_e.options=qp;_e.className=hs;var Oa=require("react/jsx-runtime"),Wp="k-input-prefix",Jp={direction:"horizontal"},$e=e=>{let{direction:t=Jp.direction,...o}=e;return e.children?(0,Oa.jsx)("span",{...o,className:r(Wp,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Oa.jsx)(Oa.Fragment,{})};var Ba=require("react/jsx-runtime"),Yp="k-input-suffix",Qp={direction:"horizontal"},Xe=e=>{let{direction:t=Qp.direction,...o}=e;return e.children?(0,Ba.jsx)("span",{...o,className:r(Yp,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Ba.jsx)(Ba.Fragment,{})};var Zp=require("react/jsx-runtime");var Ns=require("react/jsx-runtime"),jp="k-input-suffix-text",nr=e=>{let{children:t,...o}=e;return(0,Ns.jsx)("span",{...o,className:r(jp,e.className),children:t})};var vs=require("react/jsx-runtime"),ks="k-input-separator",em={direction:"vertical"},De=e=>{let{direction:t=em.direction,...o}=e;return(0,vs.jsx)("span",{...o,className:r(ks,e.className,{[`${ks}-${t}`]:t})})};var ue=require("react/jsx-runtime"),tm=J.states,om=J.defaultOptions,am=J.options,nm=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],rm=[],Co=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:s,readonly:d,...p}=e,b=t==null?void 0:t.prefix,N=t==null?void 0:t.suffix,h=t==null?void 0:t["clear-button"],k=t==null?void 0:t["validation-icon"],m=t==null?void 0:t.separators;return(0,ue.jsxs)(J,{...p,valid:o,invalid:a,loading:n,disabled:s,readonly:d,style:{width:300},children:[b&&(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)($e,{children:(0,ue.jsx)(M,{icon:"lock"})}),m&&(0,ue.jsx)(De,{})]}),(0,ue.jsx)(et,{placeholder:"Placeholder",value:"Value"}),k&&(0,ue.jsx)(_e,{valid:o,invalid:a,loading:n,disabled:s}),(0,ue.jsx)(Ve,{loading:n,disabled:s}),h&&(0,ue.jsx)(je,{loading:n,disabled:s,readonly:d,value:"Value"}),N&&(0,ue.jsxs)(ue.Fragment,{children:[m&&(0,ue.jsx)(De,{}),(0,ue.jsx)(Xe,{children:(0,ue.jsx)(so,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};Co.options=am;Co.states=tm;Co.variants=rm;Co.defaultOptions=om;Co.modifiers=nm;Co.className=J.className;var Pa=require("react/jsx-runtime"),gs="k-color-preview",im=[],sm={},$t=e=>{let{color:t,iconName:o,...a}=e;return(0,Pa.jsxs)("span",{...a,className:r(e.className,gs,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,Pa.jsx)(M,{icon:o,className:"k-color-preview-icon"}),(0,Pa.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};$t.states=im;$t.options=sm;$t.className=gs;var rr="popup",Ls=rr;var sr=require("react/jsx-runtime"),Ms="k-animation-container",lm=[],dm={},ir={positionMode:"absolute",shown:!0},Ct=e=>{let{positionMode:t=ir.positionMode,shown:o=ir.shown,animationStyle:a,offset:n,...s}=e;return(0,sr.jsx)("div",{...s,style:{...n,...e.style},className:r(e.className,Ms,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,sr.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ct.states=lm;Ct.options=dm;Ct.className=Ms;Ct.defaultOptions=ir;Ct.moduleName=rr;Ct.folderName=Ls;var lr="popup",Ss=lr;var dr=require("react/jsx-runtime"),Cs="k-popup",cm=[],pm={},Is={positionMode:"absolute"},U=e=>{let{offset:t,positionMode:o=Is.positionMode,animationStyle:a,containerClassName:n,containerRole:s,containerAriaLabel:d,...p}=e;return(0,dr.jsx)(Ct,{positionMode:o,offset:t,animationStyle:a,className:n,role:s,"aria-label":d,children:(0,dr.jsx)("div",{...p,className:r(e.className,Cs),children:e.children})})};U.states=cm;U.options=pm;U.className=Cs;U.defaultOptions=Is;U.moduleName=lr;U.folderName=Ss;U.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 As=require("react/jsx-runtime"),mm="k-actionsheet-footer",Ts={alignment:"stretched",orientation:"horizontal"},Xt=e=>{let{alignment:t=Ts.alignment,orientation:o=Ts.orientation,template:a,as:n=a?"div":W,...s}=e;return(0,As.jsx)(n,{...s,...!a&&{alignment:t,orientation:o},className:r(e.className,mm),children:e.children})};var cr="searchbox",ys=cr;var qt=require("react/jsx-runtime"),Es="k-searchbox",um=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],fm={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},pr={showIcon:!0,icon:"search"},lt=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:s,hover:d,focus:p,valid:b,invalid:N,required:h,loading:k,disabled:m,showIcon:L=pr.showIcon,icon:v=pr.icon,"aria-label":C,...y}=e;return(0,qt.jsxs)(J,{...y,size:a,rounded:n,fillMode:s,hover:d,focus:p,valid:b,invalid:N,required:h,loading:k,disabled:m,className:r(e.className,Es),children:[L&&(0,qt.jsx)(M,{className:"k-input-icon",icon:v}),(0,qt.jsx)(et,{placeholder:o,value:t,"aria-label":C}),(0,qt.jsx)(Ve,{...e}),(0,qt.jsx)(_e,{...e}),(0,qt.jsx)(je,{...e})]})};lt.states=um;lt.options=fm;lt.className=Es;lt.defaultOptions=pr;lt.moduleName=cr;lt.folderName=ys;var bm=require("react/jsx-runtime");var mr="textbox",Os=mr;var Ae=require("react/jsx-runtime"),Bs="k-textbox",xm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],hm={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},nn={showClearButton:!0,showValidationIcon:!0,separators:!0},ve=e=>{let{size:t,rounded:o,fillMode:a,separators:n=nn.separators,showClearButton:s=nn.showClearButton,showValidationIcon:d=nn.showValidationIcon,prefix:p,suffix:b,type:N,value:h,placeholder:k,hover:m,focus:L,valid:v,invalid:C,required:y,loading:T,disabled:K,readonly:q,id:me,"aria-label":xe,"aria-describedby":he,...Ne}=e;return(0,Ae.jsxs)(J,{...Ne,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:v,invalid:C,required:y,loading:T,disabled:K,readonly:q,className:r(e.className,Bs),children:[p&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)($e,{children:p}),n&&(0,Ae.jsx)(De,{})]}),(0,Ae.jsx)(et,{id:me,placeholder:k,value:h,type:N,disabled:K,"aria-label":xe,"aria-describedby":he,"aria-invalid":C?"true":void 0}),d&&(0,Ae.jsx)(_e,{valid:v,invalid:C,loading:T,disabled:K}),(0,Ae.jsx)(Ve,{loading:T,disabled:K}),s&&(0,Ae.jsx)(je,{loading:T,disabled:K,readonly:q,value:h}),b&&(0,Ae.jsxs)(Ae.Fragment,{children:[n&&(0,Ae.jsx)(De,{}),(0,Ae.jsx)(Xe,{children:b})]})]})};ve.states=xm;ve.options=hm;ve.className=Bs;ve.defaultOptions=nn;ve.moduleName=mr;ve.folderName=Os;ve.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 wa=ve;var ws=require("react/jsx-runtime"),Ps=e=>(0,ws.jsx)(wa,{...e});var Rs=require("react/jsx-runtime");var Ks=require("react/jsx-runtime");var Nm=require("react/jsx-runtime");var rn=require("react/jsx-runtime"),km=ve.states,vm=ve.defaultOptions,gm=ve.options,Lm=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Mm=[],Io=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t!=null&&t[n]?(0,rn.jsx)(M,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[n]?(0,rn.jsx)(so,{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,rn.jsx)(Ps,{value:"Value",style:{width:300},...o,...a})};Io.options=gm;Io.states=km;Io.variants=Mm;Io.defaultOptions=vm;Io.modifiers=Lm;Io.className=ve.className;var tt=require("react/jsx-runtime"),_s="k-actionsheet-titlebar",Sm={},He=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:s,input:d,inputValue:p,inputPlaceholder:b,adaptive:N,titleId:h,children:k,...m}=e;return(0,tt.jsxs)("div",{...m,className:r(e.className,_s),children:[(0,tt.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,tt.jsx)("div",{className:"k-actionsheet-actions",children:a}),!k&&(0,tt.jsxs)("div",{className:"k-actionsheet-title",id:h,children:[t&&(0,tt.jsx)("div",{className:"k-text-center",children:t}),o&&(0,tt.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),k&&(0,tt.jsx)("div",{className:"k-actionsheet-title",id:h,children:k}),n&&(0,tt.jsx)("div",{className:"k-actionsheet-actions",children:n})]}),(d||s)&&(0,tt.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?(0,tt.jsx)(ve,{value:p,placeholder:b,size:N?"large":"medium","aria-label":t||b||"Input"}):(0,tt.jsx)(lt,{placeholder:"Filter",size:N?"large":"medium","aria-label":"Filter options"})})]})};He.className=_s;He.defaultOptions=Sm;var To=require("react/jsx-runtime"),ur="k-actionsheet-view",Cm=[],Im={},Tm={},Ao=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:s,titleId:d,...p}=e,b=(n==null?void 0:n.type)===He&&(0,To.jsx)(He,{adaptive:t,titleId:d,...n==null?void 0:n.props}),N=(s==null?void 0:s.type)===Xt&&(0,To.jsx)(Xt,{...s==null?void 0:s.props});return(0,To.jsxs)("div",{...p,className:r(e.className,ur,{[`${ur}-animated`]:o}),children:[b,(0,To.jsx)("div",{className:"k-actionsheet-content",children:a}),N]})};Ao.states=Cm;Ao.options=Im;Ao.className=ur;Ao.defaultOptions=Tm;var Ra="action-sheet",sn=Ra;var fr="overlay",Ds=fr;var zs=require("react/jsx-runtime"),Hs="k-overlay",Am=[],ym={},Em={},Wt=e=>{let{...t}=e;return(0,zs.jsx)("div",{...t,className:r(e.className,Hs),children:e.children})};Wt.states=Am;Wt.options=ym;Wt.className=Hs;Wt.defaultOptions=Em;Wt.moduleName=fr;Wt.folderName=Ds;var co=require("react/jsx-runtime"),Fs="k-actionsheet",Om=[],Bm={},Ka={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ae=e=>{let{side:t=Ka.side,fullscreen:o=Ka.fullscreen,adaptive:a=Ka.adaptive,overlay:n=Ka.overlay,template:s,children:d,header:p,footer:b,id:N,...h}=e,k=N&&!s&&p?`${N}-title`:void 0;return(0,co.jsxs)("div",{className:"k-actionsheet-container",children:[n&&(0,co.jsx)(Wt,{}),(0,co.jsx)(Ct,{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,co.jsx)("div",{...h,id:N,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":k,className:r(e.className,Fs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||(0,co.jsx)(Ao,{header:p,footer:b,adaptive:a,titleId:k,...e,children:d})})})]})};ae.states=Om;ae.options=Bm;ae.className=Fs;ae.defaultOptions=Ka;ae.moduleName=Ra;ae.folderName=sn;ae.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 Gs=require("react/jsx-runtime"),Us="k-actionsheet-container",Pm=[],wm={},Rm={},yo=e=>{let{children:t,...o}=e;return(0,Gs.jsx)("div",{...o,className:Us,children:t})};yo.states=Pm;yo.options=wm;yo.className=Us;yo.defaultOptions=Rm;yo.moduleName=Ra;yo.folderName=sn;var Vs=require("react/jsx-runtime"),br=e=>{let{...t}=e;return(0,Vs.jsx)("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};var dt=require("react/jsx-runtime"),xr="k-actionsheet-item",Km=[i.hover,i.focus,i.selected,i.disabled],Jt=e=>{let{iconName:t,text:o,description:a,hover:n,focus:s,selected:d,disabled:p,...b}=e;return(0,dt.jsxs)("span",{...b,className:r(e.className,xr,I(xr,{hover:n,focus:s,selected:d,disabled:p})),children:[!e.children&&(0,dt.jsx)(dt.Fragment,{children:(0,dt.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,dt.jsx)("span",{className:"k-icon-wrap",children:(0,dt.jsx)(M,{className:"k-actionsheet-item-icon",icon:t})}),(0,dt.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,dt.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,dt.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Jt.states=Km;Jt.className=xr;var $s=require("react/jsx-runtime");var _m=require("react/jsx-runtime");var Dm=require("react/jsx-runtime");var Hm=require("react/jsx-runtime");var Y=require("react/jsx-runtime"),zm=ae.options,Fm=ae.states,qs={...ae.defaultOptions,variant:"normal"},Um=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Gm=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Eo=e=>{let{variant:t,modifiers:o,...a}={...qs,...e},n={},s=(0,Y.jsxs)(br,{children:[(0,Y.jsx)(Jt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,Y.jsx)(Jt,{text:"Add to Favorites",iconName:"heart"}),(0,Y.jsx)(Jt,{text:"Upload New",iconName:"upload",disabled:!0}),(0,Y.jsx)("hr",{className:"k-hr"}),(0,Y.jsx)(Jt,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",p="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(b=>{switch(b){case"actions":n.actionsStart=!!(o!=null&&o[b]),n.actionsEnd=!!(o!=null&&o[b]);break;case"subtitle":n.subtitle=o!=null&&o[b]?d:void 0;break;case"footer":n.footer=!!(o!=null&&o[b]);break;default:break}}),t==="adaptive"?(0,Y.jsx)(ae,{...a,adaptive:!0,fullscreen:n.fullScreen,header:(0,Y.jsx)(He,{actionsStart:n.actionsStart?(0,Y.jsx)(l,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,Y.jsx)(l,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:p,subtitle:n.subtitle}),footer:n.footer?(0,Y.jsxs)(Xt,{alignment:"stretched",children:[(0,Y.jsx)(l,{text:"Cancel",size:"large",themeColor:"base"}),(0,Y.jsx)(l,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):(0,Y.jsx)(ae,{...a,fullscreen:n.fullScreen,header:(0,Y.jsx)(He,{actionsStart:n.actionsStart?(0,Y.jsx)(l,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,Y.jsx)(l,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?(0,Y.jsxs)(Xt,{alignment:"stretched",children:[(0,Y.jsx)(l,{text:"Apply",themeColor:"primary"}),(0,Y.jsx)(l,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Eo.options=zm;Eo.states=Fm;Eo.variants=Um;Eo.defaultOptions=qs;Eo.modifiers=Gm;Eo.className=ae.className;var hr="slider",Ws=hr;var bt=require("react/jsx-runtime"),_a="k-slider",Vm=[i.hover,i.focus,i.active,i.disabled,i.readonly],$m={},ct={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},X=e=>{let{type:t=ct.type,orientation:o=ct.orientation,gradientType:a=ct.gradientType,readonly:n=ct.readonly,disabled:s=ct.disabled,handlePosition:d=ct.handlePosition,showButtons:p=ct.showButtons,showTicks:b=ct.showTicks,value:N=ct.value,min:h=ct.min,max:k=ct.max,startValue:m,endValue:L,hover:v,focus:C,active:y,trackStyle:T,dir:K,...q}=e,xe=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),he,Ne;return o==="horizontal"?(he=K==="rtl"?"chevron-left":"chevron-right",Ne=K==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(he="chevron-up",Ne="chevron-down"),(0,bt.jsxs)("div",{...q,className:r(_a,e.className,I(_a,{readonly:n,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:K,children:[p&&(0,bt.jsx)(l,{className:"k-button-decrease",rounded:"full",icon:Ne,tabIndex:-1,title:"Decrease"}),(0,bt.jsxs)("div",{className:"k-slider-track-wrap",children:[b&&(0,bt.jsx)("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),(0,bt.jsxs)("div",{className:"k-slider-track",style:T,children:[(0,bt.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,bt.jsx)("span",{className:r("k-draghandle","k-draghandle-start",I(_a,{hover:v,focus:C,active:y})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":m??h,"aria-valuemin":h,"aria-valuemax":L??k,"aria-orientation":xe,"aria-disabled":s?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":q["aria-label"]?`${q["aria-label"]} start`:"Range start"}),(0,bt.jsx)("span",{className:r("k-draghandle",`k-draghandle-${d}`,I(_a,{hover:v,focus:C,active:y})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?L??k:N,"aria-valuemin":t==="range"?m??h:h,"aria-valuemax":k,"aria-orientation":xe,"aria-disabled":s?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":t==="range"?q["aria-label"]?`${q["aria-label"]} end`:"Range end":q["aria-label"]})]})]}),p&&(0,bt.jsx)(l,{className:"k-button-increase",rounded:"full",icon:he,tabIndex:-1,title:"Increase"})]})};X.states=Vm;X.options=$m;X.className=_a;X.defaultOptions=ct;X.moduleName=hr;X.folderName=Ws;X.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 Nr=require("react/jsx-runtime"),Js="k-tick",Xm=[],qm={},Ys={label:!1},B=e=>{let{style:t,label:o=Ys.label,orientation:a,large:n,text:s,...d}=e;return(0,Nr.jsx)("li",{...d,role:"presentation",title:s||"Tick",className:r(e.className,Js,{[`k-tick-${a}`]:a,"k-tick-large":n}),style:t,children:o&&(0,Nr.jsx)("span",{className:"k-label",children:s})})};B.states=Xm;B.options=qm;B.className=Js;B.defaultOptions=Ys;var ge=require("react/jsx-runtime"),Qs=e=>(0,ge.jsx)(X,{"aria-label":e["aria-label"]||"Slider",children:(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)(B,{className:"k-first",label:!0,large:!0,text:"0"}),(0,ge.jsx)(B,{}),(0,ge.jsx)(B,{}),(0,ge.jsx)(B,{}),(0,ge.jsx)(B,{}),(0,ge.jsx)(B,{label:!0,large:!0,text:"5"}),(0,ge.jsx)(B,{}),(0,ge.jsx)(B,{}),(0,ge.jsx)(B,{}),(0,ge.jsx)(B,{}),(0,ge.jsx)(B,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});var Le=require("react/jsx-runtime"),Zs=e=>(0,Le.jsx)(X,{children:(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(B,{className:"k-first",label:!0,large:!0,text:"0"}),(0,Le.jsx)(B,{}),(0,Le.jsx)(B,{}),(0,Le.jsx)(B,{}),(0,Le.jsx)(B,{}),(0,Le.jsx)(B,{label:!0,large:!0,text:"5"}),(0,Le.jsx)(B,{}),(0,Le.jsx)(B,{}),(0,Le.jsx)(B,{}),(0,Le.jsx)(B,{}),(0,Le.jsx)(B,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});var kr=require("react/jsx-runtime");var vr=require("react/jsx-runtime");var js=require("react/jsx-runtime"),gr=e=>(0,js.jsx)(X,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});var el=require("react/jsx-runtime"),Lr=e=>(0,el.jsx)(X,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});var Mr=require("react/jsx-runtime");var Sr=require("react/jsx-runtime");var qe=require("react/jsx-runtime"),Wm=X.options,Jm=X.states,tl={...X.defaultOptions,variant:"horizontal",label:!0},Ym=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Qm=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],Oo=e=>{let{variant:t,modifiers:o,...a}=e,n=tl.label,s={};Object.keys(o||{}).forEach(p=>{switch(p){case"button":{s.showButtons=!!(o!=null&&o[p]);break}case"label":{n=!!(o!=null&&o[p]);break}case"tick":{s.showTicks=!!(o!=null&&o[p]);break}}});let d={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?(0,qe.jsxs)(Zs,{style:{height:"300px",...d},...a,...s,children:[(0,qe.jsx)(B,{label:n,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),(0,qe.jsx)(B,{label:n,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),(0,qe.jsx)(B,{label:n,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),(0,qe.jsx)(B,{label:n,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),(0,qe.jsx)(B,{label:n,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):(0,qe.jsxs)(Qs,{style:{width:"400px",...d},...a,...s,children:[(0,qe.jsx)(B,{label:n,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),(0,qe.jsx)(B,{label:n,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),(0,qe.jsx)(B,{label:n,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),(0,qe.jsx)(B,{label:n,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),(0,qe.jsx)(B,{label:n,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};Oo.options=Wm;Oo.states=Jm;Oo.variants=Ym;Oo.defaultOptions=tl;Oo.modifiers=Qm;Oo.className=X.className;var Da=require("react/jsx-runtime"),ol="k-spin-button",eu=[],tu={size:[c.undefined,c.small,c.medium,c.large],fillMode:[x.undefined,x.solid,x.flat,x.outline,x.clear,x.link]},Cr={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Yt=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:n=Cr.increaseLabel,decreaseLabel:s=Cr.decreaseLabel,...d}=e;return(0,Da.jsxs)("span",{...d,className:r(ol,e.className),children:[(0,Da.jsx)(l,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":n}),(0,Da.jsx)(l,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};Yt.states=eu;Yt.options=tu;Yt.className=ol;Yt.defaultOptions=Cr;Yt.moduleName=null;Yt.folderName=null;var al="numeric-textbox",nl="numerictextbox";var Me=require("react/jsx-runtime"),rl="k-numerictextbox",ou=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],au={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},ln={showSpinButton:!0,showClearButton:!0,separators:!0},F=e=>{let{size:t,rounded:o,fillMode:a,separators:n=ln.separators,showClearButton:s=ln.showClearButton,showSpinButton:d=ln.showSpinButton,prefix:p,suffix:b,value:N,placeholder:h,hover:k,focus:m,valid:L,invalid:v,required:C,loading:y,disabled:T,readonly:K,id:q,"aria-label":me,"aria-describedby":xe,...he}=e;return(0,Me.jsxs)(J,{...he,size:t,rounded:o,fillMode:a,hover:k,focus:m,valid:L,invalid:v,required:C,loading:y,disabled:T,readonly:K,className:r(e.className,rl),children:[p&&(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsx)($e,{children:p}),n&&(0,Me.jsx)(De,{})]}),(0,Me.jsx)(et,{id:q,placeholder:h,value:N,role:"spinbutton",disabled:T,"aria-label":me,"aria-describedby":xe,"aria-invalid":v?"true":void 0}),(0,Me.jsx)(_e,{valid:L,invalid:v,loading:y,disabled:T}),(0,Me.jsx)(Ve,{loading:y,disabled:T}),s&&(0,Me.jsx)(je,{loading:y,disabled:T,readonly:K,value:N}),b&&(0,Me.jsxs)(Me.Fragment,{children:[n&&(0,Me.jsx)(De,{}),(0,Me.jsx)(Xe,{children:b})]}),d&&(0,Me.jsx)(Yt,{className:"k-input-spinner",size:t,fillMode:a,disabled:T})]})};F.states=ou;F.options=au;F.className=rl;F.defaultOptions=ln;F.moduleName=al;F.folderName=nl;F.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",attribute:"aria-valuemax (when has max)",usage:"Announces the maximum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the NumericTextBox is in an invalid state."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message."},{selector:".k-numerictextbox.k-disabled