UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 172 kB
var Tc=Object.create;var hr=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)hr(e,o,{get:t[o],enumerable:!0})},hs=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Oc(t))!Pc.call(e,r)&&r!==o&&hr(e,r,{get:()=>t[r],enumerable:!(a=Ec(t,r))||a.enumerable});return e};var sn=(e,t,o)=>(o=e!=null?Tc(Bc(e)):{},hs(t||!e||!e.__esModule?hr(o,"default",{value:e,enumerable:!0}):o,e)),Rc=e=>hs(hr({},"__esModule",{value:!0}),e);var nk={};wc(nk,{PromptSettings:()=>rk});module.exports=Rc(nk);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 xs(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"},Pt={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"},Ns={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 dn="action-buttons",ks=dn;var gs=require("react/jsx-runtime"),xr="k-actions",Kc=[],_c={},pn={alignment:"start",orientation:"horizontal"},F=e=>{let{alignment:t=pn.alignment,orientation:o=pn.orientation,...a}=e;return(0,gs.jsx)("div",{...a,className:n(xr,{[`${xr}-${t}`]:t,[`${xr}-${o}`]:o},e.className),children:e.children})};F.states=Kc;F.options=_c;F.className=xr;F.defaultOptions=pn;F.moduleName=dn;F.folderName=ks;var Ka=require("react/jsx-runtime"),cn="k-font-icon",Dc=[],Hc={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]},zc={},_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,cn,I(cn,{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=Dc;_a.options=Hc;_a.className=cn;_a.defaultOptions=zc;var vs=_a;var ko=require("react/jsx-runtime"),mn="k-svg-icon",Fc=[],Gc={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:[Pt.outline,Pt.solid,Pt.duotone]},un={viewBox:"0 0 24 24",variant:Pt.outline},Da=e=>{var g,m;let{size:t,themeColor:o,rotate:a,flip:r,viewBox:s=un.viewBox,variant:l=un.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,mn,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,mn,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=Fc;Da.options=Gc;Da.className=mn;Da.defaultOptions=un;var fn=Da;var bn=sn(require("@progress/kendo-svg-icons"));var Cs="icon",Ls="icons";var As=require("react");var Ms=require("react"),Ss=(0,Ms.createContext)({iconsType:"svg"});var Gt=require("react/jsx-runtime"),Nr="k-icon",Uc=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Vc=[],$c={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:[Pt.outline,Pt.solid,Pt.duotone]},kr={viewBox:"0 0 24 24",type:"svg",variant:Pt.outline},L=e=>{let{iconsType:t}=(0,As.useContext)(Ss),{size:o,themeColor:a,icon:r,type:s=t||kr.type,rotate:l,flip:c,viewBox:h=kr.viewBox,variant:k=kr.variant,...x}=e;if(!r)return(0,Gt.jsx)(Gt.Fragment,{});if((t||s)==="svg"){if(r==="none")return(0,Gt.jsx)(fn,{...x,className:n(e.className,Nr),icon:r,size:o,variant:k});let m=bn[r]?r:Uc(`${r}-icon`);return bn[m]?(0,Gt.jsx)(fn,{...x,className:n(e.className,Nr),icon:bn[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:h,variant:k}):(0,Gt.jsx)(Gt.Fragment,{})}return(0,Gt.jsx)(vs,{...x,className:n(e.className,Nr),icon:r,size:o,themeColor:a,rotate:l,flip:c})};L.states=Vc;L.options=$c;L.defaultOptions=kr;L.className=Nr;L.moduleName=Cs;L.folderName=Ls;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 hn="button",Is=hn;var it=require("react/jsx-runtime"),Ha="k-button",Xc=["icon-button"],qc=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Wc={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]},xn={showArrow:!1,arrowIconName:"chevron-down"},d=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:s,showArrow:l=xn.showArrow,arrowIconName:c=xn.arrowIconName,variant:h,hover:k,focus:x,active:g,selected:m,disabled:C,togglable:v,ariaDisabled:M,icon:E,iconSize:y,text:K,iconClassName:ee,className:ge,...Me}=e,Se=E!=null,Ae=e.children!==void 0;return(0,it.jsxs)(t,{className:n(ge,Ha,xs(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&&!Ae&&Se}),"aria-pressed":v?m?"true":"false":void 0,...Me,"aria-disabled":M?"true":void 0,disabled:C||void 0,children:[typeof E=="string"&&E&&(0,it.jsx)(L,{className:n(ee,"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=qc;d.options=Wc;d.variants=Xc;d.className=Ha;d.defaultOptions=xn;d.moduleName=hn;d.folderName=Is;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 ys=require("react/jsx-runtime"),q=e=>(0,ys.jsx)(d,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Ts=require("react/jsx-runtime"),_=e=>(0,Ts.jsx)(d,{icon:"folder",children:"Button",...e});var Es=require("react/jsx-runtime"),go=e=>(0,Es.jsx)(d,{children:"Button",...e});var gr=require("react/jsx-runtime"),Jc=d.options,Yc=d.states,Qc={...d.defaultOptions,variant:"text"},Zc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],jc=[],Ro=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,gr.jsx)(q,{...o,icon:"star"});case"icon-and-text":return(0,gr.jsx)(_,{...o,icon:"star",children:"Button"});default:return(0,gr.jsx)(go,{...o,children:"Button"})}};Ro.options=Jc;Ro.states=Yc;Ro.variants=Zc;Ro.defaultOptions=Qc;Ro.modifiers=jc;Ro.className=d.className;var za=require("react/jsx-runtime"),em="k-chip-action";var Ut=e=>{let{type:t,...o}=e,a;switch(t){case"remove":a=(0,za.jsx)(L,{icon:"x-circle",size:"small"});break;case"more":a=(0,za.jsx)(L,{icon:"more-vertical",size:"small"});break;default:return(0,za.jsx)(L,{icon:t,size:"small"})}return(0,za.jsx)("span",{...o,className:n(e.className,em,`k-chip-${t}-action`),children:a})};var Nn="avatar",Os=Nn;var gn=require("react/jsx-runtime"),Fa="k-avatar";var tm=[i.hover,i.focus,i.active,i.selected,i.disabled],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.outline],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary]},kn={type:"text",border:!1},Ge=e=>{let{size:t,rounded:o,fillMode:a,themeColor:r,type:s=kn.type,border:l=kn.border,...c}=e;return(0,gn.jsx)("div",{...c,className:n(e.className,Fa,I(Fa,{size:t,rounded:o,fillMode:a,themeColor:r}),{[`${Fa}-bordered`]:l}),children:(0,gn.jsx)("span",{className:`${Fa}-${s}`,children:e.children})})};Ge.states=tm;Ge.options=om;Ge.className=Fa;Ge.defaultOptions=kn;Ge.moduleName=Nn;Ge.folderName=Os;Ge.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var vo=Ge;var Ps=require("react/jsx-runtime"),Bs=e=>(0,Ps.jsx)(vo,{type:"icon",...e});var Rs=require("react/jsx-runtime"),ws=e=>(0,Rs.jsx)(vo,{type:"text",...e});var _s=require("react/jsx-runtime"),Ks=e=>(0,_s.jsx)(vo,{type:"image",...e});var am=require("react/jsx-runtime");var Ko=require("react/jsx-runtime"),rm=Ge.options,nm=Ge.states,im={...Ge.defaultOptions,variant:"image"},sm=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],lm=[],_o=e=>{let{variant:t,...o}=e;switch(t){case"icon":return(0,Ko.jsx)(Bs,{...o,children:(0,Ko.jsx)(L,{icon:"star"})});case"text":return(0,Ko.jsx)(ws,{...o,children:"JO"});default:return(0,Ko.jsx)(Ks,{...o,children:(0,Ko.jsx)("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};_o.options=rm;_o.states=nm;_o.variants=sm;_o.defaultOptions=im;_o.modifiers=lm;_o.className=Ge.className;var Ga="chip",vr=Ga,Cr="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";var Vt=require("react/jsx-runtime"),Lr="k-chip",dm=[i.hover,i.focus,i.active,i.selected,i.disabled],pm={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.outline],themeColor:[N.undefined,N.base,N.success,N.warning,N.error,N.info]},Ds={avatarImage:"/packages/html/assets/avatar.jpg"},te=e=>{let{size:t,rounded:o,fillMode:a,themeColor:r,text:s,icon:l,actions:c,showAvatar:h,avatarImage:k=Ds.avatarImage,hover:x,focus:g,active:m,selected:C,disabled:v,...M}=e;return(0,Vt.jsxs)("div",{...M,className:n(e.className,Lr,I(Lr,{size:t,rounded:o,fillMode:a,themeColor:r}),A(Lr,{hover:x,focus:g,active:m,disabled:v,selected:C})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:C?"true":"false",...e.role==="option"&&C!==void 0&&{"aria-selected":C?"true":"false"},"aria-disabled":v?"true":void 0,children:[l&&(0,Vt.jsx)(L,{className:"k-chip-icon",icon:l,size:"small"}),h&&(0,Vt.jsx)(Ge,{className:"k-chip-avatar",type:"image",children:(0,Vt.jsx)("img",{src:k,alt:""})}),(0,Vt.jsx)("span",{className:"k-chip-content",children:e.children?e.children:s&&(0,Vt.jsx)("span",{className:"k-chip-label",children:s})}),c&&(0,Vt.jsx)("span",{className:"k-chip-actions",children:c})]})};te.states=dm;te.options=pm;te.className=Lr;te.defaultOptions=Ds;te.moduleName=Ga;te.folderName=vr;te.ariaSpec={selector:".k-chip",rules:[{selector:"*:not(.k-chip-list) > .k-chip",attribute:"role=button",usage:"Announces that the chip acts as a button when standalone."},{selector:"*:not(.k-chip-list) > .k-chip.k-selected",attribute:"aria-pressed=true",usage:"Announces that the Chip has been selected."},{selector:"*:not(.k-chip-list) > .k-chip:not(.k-selected)",attribute:"aria-pressed=false",usage:"Announces that the Chip has not been selected."},{selector:".k-chip",attribute:"aria-disabled=true (when disabled)",usage:"Announces that the Chip is disabled."}]};var ht=te;var Hs=require("react/jsx-runtime"),vn="k-chip-list",cm=[],mm={size:[p.undefined,p.small,p.medium,p.large]},um={},be=e=>{let{size:t,multiselectable:o,ariaLabel:a,...r}=e;return(0,Hs.jsx)("div",{...r,className:n(e.className,vn,I(vn,{size:t})),role:e.role||"listbox","aria-label":e.role==="none"?void 0:a||"chip list","aria-orientation":e.role==="none"?void 0:"horizontal","aria-multiselectable":o?"true":void 0,children:e.children})};be.states=cm;be.options=mm;be.className=vn;be.defaultOptions=um;be.moduleName=Ga;be.folderName=vr;be.ariaSpec={selector:".k-chip-list",rules:[{selector:".k-chip-list",attribute:"role=listbox",usage:"Announces the list role of the chip list."},{selector:".k-chip-list",attribute:"aria-label or aria-labelledby",usage:"Adds label to the ChipList element. ListBox element requires an accessible name."},{selector:".k-chip-list",attribute:"aria-orientation=horizontal",usage:"Specifies the horizontal orientation of the chiplist."},{selector:".k-chip-list",attribute:"aria-multiselectable=true (when multiple selection)",usage:"Announces the multiple selection ability of the chiplist."},{selector:".k-chip-list .k-chip",attribute:"role=option",usage:"Announces the chip is an option inner component of the chip list."},{selector:".k-chip-list .k-chip.k-selected",attribute:"aria-selected=true",usage:"Announces the chip is selected."},{selector:".k-chip-list .k-chip:not(.k-selected)",attribute:"aria-selected=false",usage:"Announces the chip is not selected."},{selector:".k-chip-list .k-chip:has(.k-i-x-circle), .k-chip-list .k-chip:has(.k-svg-i-x-circle)",attribute:"aria-keyshortcuts=Enter Delete",usage:"Announces the Delete action along with the default Enter key."}]};var fm=require("react/jsx-runtime");var bm=require("react/jsx-runtime");var zs=require("react/jsx-runtime"),Mr=e=>(0,zs.jsx)(ht,{text:"text",...e});var hm=require("react/jsx-runtime");var xm=require("react/jsx-runtime");var Cn=require("react/jsx-runtime");var Fs=require("react/jsx-runtime");var Gs=require("react/jsx-runtime");var Us=require("react/jsx-runtime");var $t=require("react/jsx-runtime"),Nm={...ht.options,...be.options},km=[],gm=be.states,vm={...ht.defaultOptions,...be.defaultOptions},Cm=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],Do=e=>{let{modifiers:t,className:o,...a}=e,r=t==null?void 0:t.icon,s=t==null?void 0:t.actions,l=t==null?void 0:t.avatar,c=l?Cr:void 0;return(0,$t.jsxs)(be,{size:a.size,className:o,children:[(0,$t.jsx)(Mr,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:r?"star":void 0,actions:s?(0,$t.jsx)(Ut,{type:"remove"}):void 0,showAvatar:l,avatarImage:c,children:"Chip"}),(0,$t.jsx)(Mr,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:r?"star":void 0,actions:s?(0,$t.jsx)(Ut,{type:"remove"}):void 0,showAvatar:l,avatarImage:c,children:"Chip"}),(0,$t.jsx)(Mr,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:r?"star":void 0,actions:s?(0,$t.jsx)(Ut,{type:"remove"}):void 0,showAvatar:l,avatarImage:c,children:"Chip"})]})};Do.options=Nm;Do.states=gm;Do.variants=km;Do.defaultOptions=vm;Do.modifiers=Cm;Do.className=be.className;var Sr=require("react/jsx-runtime"),Lm=te.states,Mm=te.defaultOptions,Sm=te.options,Am=[],Im=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],Ho=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"icon":a.icon=t!=null&&t[r]?"arrow-down":void 0;break;case"avatar":a.showAvatar=!!(t!=null&&t[r]),a.avatarImage=t!=null&&t[r]?Cr:void 0;break;case"more-options":a.actions||(a.actions=[]),a.actions[0]=t!=null&&t[r]?(0,Sr.jsx)(Ut,{type:"more"}):void 0;break;case"remove-icon":a.actions||(a.actions=[]),a.actions[1]=t!=null&&t[r]?(0,Sr.jsx)(Ut,{type:"remove"}):void 0;break;default:break}}),(0,Sr.jsx)(te,{...o,...a,children:"Chip component"})};Ho.options=Sm;Ho.states=Lm;Ho.variants=Am;Ho.defaultOptions=Mm;Ho.modifiers=Im;Ho.className=te.className;var Ln="button",Vs=Ln;var $s=require("react/jsx-runtime"),Ua="k-button-group",ym=[i.disabled],Tm={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Em={},w=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return(0,$s.jsx)("div",{role:"group",...r,className:n(e.className,Ua,I(Ua,{fillMode:t}),A(Ua,{disabled:o}),{[`${Ua}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};w.states=ym;w.options=Tm;w.className=Ua;w.defaultOptions=Em;w.moduleName=Ln;w.folderName=Vs;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 Mn=require("react/jsx-runtime");var Sn=require("react/jsx-runtime");var An=require("react/jsx-runtime");var In=require("react/jsx-runtime");var yn=require("react/jsx-runtime");var Tn=require("react/jsx-runtime");var je=require("react/jsx-runtime"),Om={...d.options,...w.options},Bm=d.states,Pm={...d.defaultOptions,...w.defaultOptions,variant:"text-button"},wm=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Rm=[],zo=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?(0,je.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,je.jsx)(d,{...a,icon:"star"}),(0,je.jsx)(d,{...a,icon:"star"}),(0,je.jsx)(d,{...a,icon:"star"})]}):t==="icon-text-button"?(0,je.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,je.jsx)(d,{...a,icon:"star",children:"First"}),(0,je.jsx)(d,{...a,icon:"star",children:"Middle"}),(0,je.jsx)(d,{...a,icon:"star",children:"Last"})]}):(0,je.jsxs)(w,{fillMode:a.fillMode,className:o,children:[(0,je.jsx)(d,{...a,children:"First"}),(0,je.jsx)(d,{...a,children:"Middle"}),(0,je.jsx)(d,{...a,children:"Last"})]})};zo.options=Om;zo.states=Bm;zo.variants=wm;zo.defaultOptions=Pm;zo.modifiers=Rm;zo.className=w.className;var Va="input",Ar=Va;var Xs=require("react/jsx-runtime"),Ir="k-input",Km=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],_m={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]},Dm={},ae=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,Xs.jsx)("span",{...g,className:n(e.className,Ir,I(Ir,{size:h,rounded:k,fillMode:x}),A(Ir,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c}))})};ae.states=Km;ae.options=_m;ae.className=Ir;ae.defaultOptions=Dm;ae.moduleName=Va;ae.folderName=Ar;var qs=require("react/jsx-runtime"),yr="k-picker",Hm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],zm={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]},Fm={},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,qs.jsx)("span",{...g,className:n(e.className,yr,I(yr,{size:h,rounded:k,fillMode:x}),A(yr,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c})),children:e.children})};wt.states=Hm;wt.options=zm;wt.className=yr;wt.defaultOptions=Fm;wt.moduleName=Va;wt.folderName=Ar;var Fo=require("react/jsx-runtime"),Ws="k-clear-value",Gm=[i.disabled,i.loading,i.readonly],Um={},st=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?(0,Fo.jsx)(Fo.Fragment,{}):(0,Fo.jsx)("span",{className:n(e.className,Ws),children:(0,Fo.jsx)(L,{icon:"x"})})};st.states=Gm;st.options=Um;st.className=Ws;var Js=require("react/jsx-runtime"),En="k-input-inner",Vm=[],$m={},Tr={type:"text",autocomplete:"off",value:"",placeholder:""},lt=e=>{let{value:t=Tr.value,type:o=Tr.type,placeholder:a=Tr.placeholder,autocomplete:r=Tr.autocomplete,disabled:s,readOnly:l,...c}=e;return(0,Js.jsx)("input",{...c,type:o,className:n(e.className,En,I(En,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:s||void 0,readOnly:l||void 0})};lt.states=Vm;lt.options=$m;lt.className=En;var $a=require("react/jsx-runtime"),On="k-input-inner",Xm=[],qm={},Co=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:s,...l}=e;return(0,$a.jsxs)("span",{...l,className:n(e.className,On,I(On,e)),children:[r,!r&&s&&(0,$a.jsx)(L,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&(0,$a.jsx)("span",{className:"k-input-value-text",children:t})]})};Co.states=Xm;Co.options=qm;Co.className=On;var Qs=require("react/jsx-runtime"),Bn="k-input-inner",Wm=[],Jm={},Ys={value:"",placeholder:""},Xa=e=>{let{value:t=Ys.value,placeholder:o=Ys.placeholder,rows:a,disabled:r,...s}=e;return(0,Qs.jsx)("textarea",{...s,className:n(e.className,Bn,I(Bn,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};Xa.states=Wm;Xa.options=Jm;Xa.className=Bn;var qa=require("react/jsx-runtime"),Zs="k-input-loading-icon",Ym=[i.disabled,i.loading],et=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,qa.jsx)(qa.Fragment,{}):(0,qa.jsx)("span",{className:n(e.className,Zs,"k-icon k-i-loading")})};et.states=Ym;et.className=Zs;var Wa=require("react/jsx-runtime"),js="k-input-validation-icon",Qm=[i.valid,i.invalid,i.disabled,i.loading],Zm={},Ue=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,s=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?(0,Wa.jsx)(Wa.Fragment,{}):(0,Wa.jsx)(L,{className:n(js),icon:s})};Ue.states=Qm;Ue.options=Zm;Ue.className=js;var Ja=require("react/jsx-runtime"),jm="k-input-prefix",eu={direction:"horizontal"},tt=e=>{let{direction:t=eu.direction,...o}=e;return e.children?(0,Ja.jsx)("span",{...o,className:n(jm,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Ja.jsx)(Ja.Fragment,{})};var Ya=require("react/jsx-runtime"),tu="k-input-suffix",ou={direction:"horizontal"},ot=e=>{let{direction:t=ou.direction,...o}=e;return e.children?(0,Ya.jsx)("span",{...o,className:n(tu,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Ya.jsx)(Ya.Fragment,{})};var au=require("react/jsx-runtime");var el=require("react/jsx-runtime"),ru="k-input-suffix-text",Pn=e=>{let{children:t,...o}=e;return(0,el.jsx)("span",{...o,className:n(ru,e.className),children:t})};var ol=require("react/jsx-runtime"),tl="k-input-separator",nu={direction:"vertical"},Ve=e=>{let{direction:t=nu.direction,...o}=e;return(0,ol.jsx)("span",{...o,className:n(tl,e.className,{[`${tl}-${t}`]:t})})};var ve=require("react/jsx-runtime"),iu=ae.states,su=ae.defaultOptions,lu=ae.options,du=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],pu=[],Go=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,ve.jsxs)(ae,{...c,valid:o,invalid:a,loading:r,disabled:s,readonly:l,style:{width:300},children:[h&&(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(tt,{children:(0,ve.jsx)(L,{icon:"lock"})}),m&&(0,ve.jsx)(Ve,{})]}),(0,ve.jsx)(lt,{placeholder:"Placeholder",value:"Value"}),g&&(0,ve.jsx)(Ue,{valid:o,invalid:a,loading:r,disabled:s}),(0,ve.jsx)(et,{loading:r,disabled:s}),x&&(0,ve.jsx)(st,{loading:r,disabled:s,readonly:l,value:"Value"}),k&&(0,ve.jsxs)(ve.Fragment,{children:[m&&(0,ve.jsx)(Ve,{}),(0,ve.jsx)(ot,{children:(0,ve.jsx)(go,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Go.options=lu;Go.states=iu;Go.variants=pu;Go.defaultOptions=su;Go.modifiers=du;Go.className=ae.className;var Qa=require("react/jsx-runtime"),al="k-color-preview",cu=[],mu={},ro=e=>{let{color:t,iconName:o,...a}=e;return(0,Qa.jsxs)("span",{...a,className:n(e.className,al,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,Qa.jsx)(L,{icon:o,className:"k-color-preview-icon"}),(0,Qa.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};ro.states=cu;ro.options=mu;ro.className=al;var wn="popup",rl=wn;var Kn=require("react/jsx-runtime"),nl="k-animation-container",uu=[],fu={},Rn={positionMode:"absolute",shown:!0},Rt=e=>{let{positionMode:t=Rn.positionMode,shown:o=Rn.shown,animationStyle:a,offset:r,...s}=e;return(0,Kn.jsx)("div",{...s,style:{...r,...e.style},className:n(e.className,nl,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,Kn.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};Rt.states=uu;Rt.options=fu;Rt.className=nl;Rt.defaultOptions=Rn;Rt.moduleName=wn;Rt.folderName=rl;var _n="popup",il=_n;var Dn=require("react/jsx-runtime"),sl="k-popup",bu=[],hu={},ll={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=ll.positionMode,animationStyle:a,containerClassName:r,containerRole:s,containerAriaLabel:l,...c}=e;return(0,Dn.jsx)(Rt,{positionMode:o,offset:t,animationStyle:a,className:r,role:s,"aria-label":l,children:(0,Dn.jsx)("div",{...c,className:n(e.className,sl),children:e.children})})};V.states=bu;V.options=hu;V.className=sl;V.defaultOptions=ll;V.moduleName=_n;V.folderName=il;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 pl=require("react/jsx-runtime"),xu="k-actionsheet-footer",dl={alignment:"stretched",orientation:"horizontal"},no=e=>{let{alignment:t=dl.alignment,orientation:o=dl.orientation,template:a,as:r=a?"div":F,...s}=e;return(0,pl.jsx)(r,{...s,...!a&&{alignment:t,orientation:o},className:n(e.className,xu),children:e.children})};var Hn="searchbox",cl=Hn;var io=require("react/jsx-runtime"),ml="k-searchbox",Nu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],ku={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]},zn={showIcon:!0,icon:"search"},xt=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=zn.showIcon,icon:v=zn.icon,"aria-label":M,...E}=e;return(0,io.jsxs)(ae,{...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,ml),children:[C&&(0,io.jsx)(L,{className:"k-input-icon",icon:v}),(0,io.jsx)(lt,{placeholder:o,value:t,"aria-label":M}),(0,io.jsx)(et,{...e}),(0,io.jsx)(Ue,{...e}),(0,io.jsx)(st,{...e})]})};xt.states=Nu;xt.options=ku;xt.className=ml;xt.defaultOptions=zn;xt.moduleName=Hn;xt.folderName=cl;var gu=require("react/jsx-runtime");var Fn="textbox",ul=Fn;var Re=require("react/jsx-runtime"),fl="k-textbox",vu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Cu={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]},Er={showClearButton:!0,showValidationIcon:!0,separators:!0},Ie=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Er.separators,showClearButton:s=Er.showClearButton,showValidationIcon:l=Er.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:ee,id:ge,"aria-label":Me,"aria-describedby":Se,...Ae}=e;return(0,Re.jsxs)(ae,{...Ae,size:t,rounded:o,fillMode:a,hover:m,focus:C,valid:v,invalid:M,required:E,loading:y,disabled:K,readonly:ee,className:n(e.className,fl),children:[c&&(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(tt,{children:c}),r&&(0,Re.jsx)(Ve,{})]}),(0,Re.jsx)(lt,{id:ge,placeholder:g,value:x,type:k,disabled:K,"aria-label":Me,"aria-describedby":Se,"aria-invalid":M?"true":void 0}),l&&(0,Re.jsx)(Ue,{valid:v,invalid:M,loading:y,disabled:K}),(0,Re.jsx)(et,{loading:y,disabled:K}),s&&(0,Re.jsx)(st,{loading:y,disabled:K,readonly:ee,value:x}),h&&(0,Re.jsxs)(Re.Fragment,{children:[r&&(0,Re.jsx)(Ve,{}),(0,Re.jsx)(ot,{children:h})]})]})};Ie.states=vu;Ie.options=Cu;Ie.className=fl;Ie.defaultOptions=Er;Ie.moduleName=Fn;Ie.folderName=ul;Ie.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 Za=Ie;var hl=require("react/jsx-runtime"),bl=e=>(0,hl.jsx)(Za,{...e});var xl=require("react/jsx-runtime");var Nl=require("react/jsx-runtime");var Lu=require("react/jsx-runtime");var Or=require("react/jsx-runtime"),Mu=Ie.states,Su=Ie.defaultOptions,Au=Ie.options,Iu=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],yu=[],Uo=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t!=null&&t[r]?(0,Or.jsx)(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[r]?(0,Or.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,Or.jsx)(bl,{value:"Value",style:{width:300},...o,...a})};Uo.options=Au;Uo.states=Mu;Uo.variants=yu;Uo.defaultOptions=Su;Uo.modifiers=Iu;Uo.className=Ie.className;var dt=require("react/jsx-runtime"),kl="k-actionsheet-titlebar",Tu={},$e=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,kl),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)(Ie,{value:c,placeholder:h,size:k?"large":"medium","aria-label":t||h||"Input"}):(0,dt.jsx)(xt,{placeholder:"Filter",size:k?"large":"medium","aria-label":"Filter options"})})]})};$e.className=kl;$e.defaultOptions=Tu;var Vo=require("react/jsx-runtime"),Gn="k-actionsheet-view",Eu=[],Ou={},Bu={},$o=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:s,titleId:l,...c}=e,h=(r==null?void 0:r.type)===$e&&(0,Vo.jsx)($e,{adaptive:t,titleId:l,...r==null?void 0:r.props}),k=(s==null?void 0:s.type)===no&&(0,Vo.jsx)(no,{...s==null?void 0:s.props});return(0,Vo.jsxs)("div",{...c,className:n(e.className,Gn,{[`${Gn}-animated`]:o}),children:[h,(0,Vo.jsx)("div",{className:"k-actionsheet-content",children:a}),k]})};$o.states=Eu;$o.options=Ou;$o.className=Gn;$o.defaultOptions=Bu;var ja="action-sheet",Br=ja;var Un="overlay",gl=Un;var Cl=require("react/jsx-runtime"),vl="k-overlay",Pu=[],wu={},Ru={},so=e=>{let{...t}=e;return(0,Cl.jsx)("div",{...t,className:n(e.className,vl),children:e.children})};so.states=Pu;so.options=wu;so.className=vl;so.defaultOptions=Ru;so.moduleName=Un;so.folderName=gl;var Lo=require("react/jsx-runtime"),Ll="k-actionsheet",Ku=[],_u={},er={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},pe=e=>{let{side:t=er.side,fullscreen:o=er.fullscreen,adaptive:a=er.adaptive,overlay:r=er.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)(so,{}),(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,Ll,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||(0,Lo.jsx)($o,{header:c,footer:h,adaptive:a,titleId:g,...e,children:l})})})]})};pe.states=Ku;pe.options=_u;pe.className=Ll;pe.defaultOptions=er;pe.moduleName=ja;pe.folderName=Br;pe.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 Sl=require("react/jsx-runtime"),Ml="k-actionsheet-container",Du=[],Hu={},zu={},Xo=e=>{let{children:t,...o}=e;return(0,Sl.jsx)("div",{...o,className:Ml,children:t})};Xo.states=Du;Xo.options=Hu;Xo.className=Ml;Xo.defaultOptions=zu;Xo.moduleName=ja;Xo.folderName=Br;var Al=require("react/jsx-runtime"),Vn=e=>{let{...t}=e;return(0,Al.jsx)("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};var Nt=require("react/jsx-runtime"),$n="k-actionsheet-item",Fu=[i.hover,i.focus,i.selected,i.disabled],lo=e=>{let{iconName:t,text:o,description:a,hover:r,focus:s,selected:l,disabled:c,...h}=e;return(0,Nt.jsxs)("span",{...h,className:n(e.className,$n,A($n,{hover:r,focus:s,selected:l,disabled:c})),children:[!e.children&&(0,Nt.jsx)(Nt.Fragment,{children:(0,Nt.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,Nt.jsx)("span",{className:"k-icon-wrap",children:(0,Nt.jsx)(L,{className:"k-actionsheet-item-icon",icon:t})}),(0,Nt.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,Nt.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,Nt.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};lo.states=Fu;lo.className=$n;var Il=require("react/jsx-runtime");var Gu=require("react/jsx-runtime");var Uu=require("react/jsx-runtime");var Vu=require("react/jsx-runtime");var re=require("react/jsx-runtime"),$u=pe.options,Xu=pe.states,Tl={...pe.defaultOptions,variant:"normal"},qu=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Wu=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],qo=e=>{let{variant:t,modifiers:o,...a}={...Tl,...e},r={},s=(0,re.jsxs)(Vn,{children:[(0,re.jsx)(lo,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,re.jsx)(lo,{text:"Add to Favorites",iconName:"heart"}),(0,re.jsx)(lo,{text:"Upload New",iconName:"upload",disabled:!0}),(0,re.jsx)("hr",{className:"k-hr"}),(0,re.jsx)(lo,{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,re.jsx)(pe,{...a,adaptive:!0,fullscreen:r.fullScreen,header:(0,re.jsx)($e,{actionsStart:r.actionsStart?(0,re.jsx)(d,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?(0,re.jsx)(d,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:r.subtitle}),footer:r.footer?(0,re.jsxs)(no,{alignment:"stretched",children:[(0,re.jsx)(d,{text:"Cancel",size:"large",themeColor:"base"}),(0,re.jsx)(d,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):(0,re.jsx)(pe,{...a,fullscreen:r.fullScreen,header:(0,re.jsx)($e,{actionsStart:r.actionsStart?(0,re.jsx)(d,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?(0,re.jsx)(d,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?(0,re.jsxs)(no,{alignment:"stretched",children:[(0,re.jsx)(d,{text:"Apply",themeColor:"primary"}),(0,re.jsx)(d,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};qo.options=$u;qo.states=Xu;qo.variants=qu;qo.defaultOptions=Tl;qo.modifiers=Wu;qo.className=pe.className;var Xn="slider",El=Xn;var St=require("react/jsx-runtime"),tr="k-slider",Ju=[i.hover,i.focus,i.active,i.disabled,i.readonly],Yu={},kt={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},Z=e=>{let{type:t=kt.type,orientation:o=kt.orientation,gradientType:a=kt.gradientType,readonly:r=kt.readonly,disabled:s=kt.disabled,handlePosition:l=kt.handlePosition,showButtons:c=kt.showButtons,showTicks:h=kt.showTicks,value:k=kt.value,min:x=kt.min,max:g=kt.max,startValue:m,endValue:C,hover:v,focus:M,active:E,trackStyle:y,dir:K,...ee}=e,Me=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),Se,Ae;return o==="horizontal"?(Se=K==="rtl"?"chevron-left":"chevron-right",Ae=K==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(Se="chevron-up",Ae="chevron-down"),(0,St.jsxs)("div",{...ee,className:n(tr,e.className,A(tr,{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:Ae,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(tr,{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":Me,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":ee["aria-label"]?`${ee["aria-label"]} start`:"Range start"}),(0,St.jsx)("span",{className:n("k-draghandle",`k-draghandle-${l}`,A(tr,{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":Me,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?ee["aria-label"]?`${ee["aria-label"]} end`:"Range end":ee["aria-label"]})]})]}),c&&(0,St.jsx)(d,{className:"k-button-increase",rounded:"full",icon:Se,tabIndex:-1,title:"Increase"})]})};Z.states=Ju;Z.options=Yu;Z.className=tr;Z.defaultOptions=kt;Z.moduleName=Xn;Z.folderName=El;Z.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 qn=require("react/jsx-runtime"),Ol="k-tick",Qu=[],Zu={},Bl={label:!1},B=e=>{let{style:t,label:o=Bl.label,orientation:a,large:r,text:s,...l}=e;return(0,qn.jsx)("li",{...l,role:"presentation",title:s||"Tick",className:n(e.className,Ol,{[`k-tick-${a}`]:a,"k-tick-large":r}),style:t,children:o&&(0,qn.jsx)("span",{className:"k-label",children:s})})};B.states=Qu;B.options=Zu;B.className=Ol;B.defaultOptions=Bl;var ye=require("react/jsx-runtime"),Pl=e=>(0,ye.jsx)(Z,{"aria-label":e["aria-label"]||"Slider",children:(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)(B,{className:"k-first",label:!0,large:!0,text:"0"}),(0,ye.jsx)(B,{}),(0,ye.jsx)(B,{}),(0,ye.jsx)(B,{}),(0,ye.jsx)(B,{}),(0,ye.jsx)(B,{label:!0,large:!0,text:"5"}),(0,ye.jsx)(B,{}),(0,ye.jsx)(B,{}),(0,ye.jsx)(B,{}),(0,ye.jsx)(B,{}),(0,ye.jsx)(B,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});var Te=require("react/jsx-runtime"),wl=e=>(0,Te.jsx)(Z,{children:(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(B,{className:"k-first",label:!0,large:!0,text:"0"}),(0,Te.jsx)(B,{}),(0,Te.jsx)(B,{}),(0,Te.jsx)(B,{}),(0,Te.jsx)(B,{}),(0,Te.jsx)(B,{label:!0,large:!0,text:"5"}),(0,Te.jsx)(B,{}),(0,Te.jsx)(B,{}),(0,Te.jsx)(B,{}),(0,Te.jsx)(B,{}),(0,Te.jsx)(B,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});var Wn=require("react/jsx-runtime");var Jn=require("react/jsx-runtime");var Rl=require("react/jsx-runtime"),Yn=e=>(0,Rl.jsx)(Z,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});var Kl=require("react/jsx-runtime"),Qn=e=>(0,Kl.jsx)(Z,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});var Zn=require("react/jsx-runtime");var jn=require("react/jsx-runtime");var at=require("react/jsx-runtime"),ju=Z.options,ef=Z.states,_l={...Z.defaultOptions,variant:"horizontal",label:!0},tf=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],of=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],Wo=e=>{let{variant:t,modifiers:o,...a}=e,r=_l.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,at.jsxs)(wl,{style:{height:"300px",...l},...a,...s,children:[(0,at.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),(0,at.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),(0,at.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),(0,at.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),(0,at.jsx)(B,{label:r,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):(0,at.jsxs)(Pl,{style:{width:"400px",...l},...a,...s,children:[(0,at.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),(0,at.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),(0,at.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),(0,at.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),(0,at.jsx)(B,{label:r,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};Wo.options=ju;Wo.states=ef;Wo.variants=tf;Wo.defaultOptions=_l;Wo.modifiers=of;Wo.className=Z.className;var or=require("react/jsx-runtime"),Dl="k-spin-button",nf=[],sf={size:[p.undefined,p.small,p.medium,p.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},ei={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},po=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:r=ei.increaseLabel,decreaseLabel:s=ei.decreaseLabel,...l}=e;return(0,or.jsxs)("span",{...l,className:n(Dl,e.className),children:[(0,or.jsx)(d,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":r}),(0,or.jsx)(d,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};po.states=nf;po.options=sf;po.className=Dl;po.defaultOptions=ei;po.moduleName=null;po.folderName=null;var Hl="numeric-textbox",zl="numerictextbox";var Ee=require("react/jsx-runtime"),Fl="k-numerictextbox",lf=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],df={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]},Pr={showSpinButton:!0,showClearButton:!0,separators:!0},W=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Pr.separators,showClearButton:s=Pr.showClearButton,showSpinButton:l=Pr.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:ee,"aria-label":ge,"aria-describedby":Me,...Se}=e;return(0,Ee.jsxs)(ae,{...Se,size