@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 43.5 kB
JavaScript
var C=(...a)=>a.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?C(...t):typeof t=="object"?Object.keys(t).map((n,d)=>t[d]||t[n]&&n||null).filter(n=>n!==null).join(" "):t).filter(t=>!!t).join(" ");var J=(a,t)=>C({[`${a}-xs`]:t.size==="xsmall",[`${a}-sm`]:t.size==="small",[`${a}-md`]:t.size==="medium",[`${a}-lg`]:t.size==="large",[`${a}-xl`]:t.size==="xlarge",[`${a}-xxl`]:t.size==="xxlarge",[`${a}-xxxl`]:t.size==="xxxlarge"},{[`${a}-${t.fillMode}`]:t.fillMode},{[`${a}-${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"}),Ve=(a,t)=>{let{valid:n,invalid:d,hover:s,focus:m,checked:f,active:p,selected:w,disabled:b,indeterminate:A,loading:K,empty:B,readonly:oe,highlighted:ke,...Q}=t;return C({"k-valid":n,"k-invalid":d,"k-hover":s,"k-focus":m,"k-checked":f,"k-active":p,"k-selected":w,"k-disabled":b,"k-indeterminate":A&&!f,"k-loading":K,"k-empty":B,"k-readonly":oe,"k-highlighted":ke},Object.keys(Q).reduce((z,U)=>(U.startsWith("k-")?z[U]=Q[U]:z[`k-${U}`]=Q[U],z),{}))};function Ct(a,t){if(!t)return{};let n=Array.isArray(t)?t:[t];return Object.fromEntries(n.map(d=>[`k-${d}`,!0]))}var i={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},ae={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},le={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Y={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},F={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var qe={};function de(a){return qe[a]=(qe[a]||0)+1,`k-${a}-${qe[a]}`}import{jsx as ra}from"react/jsx-runtime";var xt="k-calendar-view",Xe={orientation:"horizontal",calendarView:"month"},ze=a=>{let{orientation:t=Xe.orientation,calendarView:n=Xe.calendarView,gridRole:d,ariaLabelledBy:s,...m}=a;return ra("div",{...m,className:C(a.className,xt,`k-calendar-${n}view`,"k-align-items-start","k-justify-content-center",{"k-hstack":t==="horizontal","k-vstack":t==="vertical"}),...d?{role:"grid","aria-labelledby":s,tabIndex:0}:{},children:a.children})};ze.className=xt;ze.defaultOptions=Xe;import{Fragment as sa,jsx as mt}from"react/jsx-runtime";var Qe="k-font-icon",oa=[],da={size:[i.undefined,i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},ia={},ge=a=>{let{size:t,themeColor:n,icon:d,rotate:s,flip:m,...f}=a;return d?mt("span",{...f,className:C(a.className,Qe,J(Qe,{size:t}),{[`k-i-${d}`]:d,[`k-color-${n}`]:n,[`k-rotate-${s}`]:s,"k-flip-h":m==="h"||m==="both","k-flip-v":m==="v"||m==="both"}),"aria-hidden":"true"}):mt(sa,{})};ge.states=oa;ge.options=da;ge.className=Qe;ge.defaultOptions=ia;var pt=ge;import{Fragment as xa,jsx as He}from"react/jsx-runtime";var Ze="k-svg-icon",ca=[],Ca={size:[i.undefined,i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[Y.outline,Y.solid,Y.duotone]},je={viewBox:"0 0 24 24",variant:Y.outline},Ne=a=>{let{size:t,themeColor:n,rotate:d,flip:s,viewBox:m=je.viewBox,variant:f=je.variant,icon:p,...w}=a;if(!p)return He(xa,{});if(p==="none")return He("span",{...w,className:C(a.className,Ze,J("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let b=typeof p=="object"&&p.name&&p.name,A=typeof p=="object"?f&&p.variants?.[f]||p.variants?.outline||p.content:void 0;return He("span",{...w,className:C(a.className,Ze,J("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${n}`]:n,[`k-rotate-${d}`]:d,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:He("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:m,dangerouslySetInnerHTML:A!==void 0?{__html:A}:void 0,children:p?void 0:a.children})})};Ne.states=ca;Ne.options=Ca;Ne.className=Ze;Ne.defaultOptions=je;var et=Ne;import*as tt from"@progress/kendo-svg-icons";var ut="icon",bt="icons";import{useContext as pa}from"react";import{createContext as ma}from"react";var ft=ma({iconsType:"svg"});import{Fragment as wt,jsx as ve}from"react/jsx-runtime";var Ke="k-icon",ua=a=>a.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ba=[],fa={size:[i.undefined,i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[Y.outline,Y.solid,Y.duotone]},_e={viewBox:"0 0 24 24",type:"svg",variant:Y.outline},G=a=>{let{iconsType:t}=pa(ft),{size:n,themeColor:d,icon:s,type:m=t||_e.type,rotate:f,flip:p,viewBox:w=_e.viewBox,variant:b=_e.variant,...A}=a;if(!s)return ve(wt,{});if((t||m)==="svg"){if(s==="none")return ve(et,{...A,className:C(a.className,Ke),icon:s,size:n,variant:b});let B=tt[s]?s:ua(`${s}-icon`);return tt[B]?ve(et,{...A,className:C(a.className,Ke),icon:tt[B],size:n,themeColor:d,rotate:f,flip:p,viewBox:w,variant:b}):ve(wt,{})}return ve(pt,{...A,className:C(a.className,Ke),icon:s,size:n,themeColor:d,rotate:f,flip:p})};G.states=ba;G.options=fa;G.defaultOptions=_e;G.className=Ke;G.moduleName=ut;G.folderName=bt;G.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 at="button",kt=at;import{Fragment as yt,jsx as ie,jsxs as Tt}from"react/jsx-runtime";var Re="k-button",wa=["icon-button"],ka=[F.hover,F.focus,F.active,F.selected,F.disabled,F.generating],ya={size:[i.undefined,i.xsmall,i.small,i.medium,i.large],rounded:[ae.undefined,ae.none,ae.small,ae.medium,ae.large,ae.full],fillMode:[le.undefined,le.solid,le.flat,le.outline,le.clear,le.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},lt={showArrow:!1,arrowIconName:"chevron-down"},T=a=>{let{as:t="button",size:n,rounded:d,fillMode:s,themeColor:m,showArrow:f=lt.showArrow,arrowIconName:p=lt.arrowIconName,variant:w,hover:b,focus:A,active:K,selected:B,disabled:oe,togglable:ke,ariaDisabled:Q,icon:z,iconSize:U,text:ye,iconClassName:Se,className:Te,...Ge}=a,De=z!=null,na=a.children!==void 0;return Tt(t,{className:C(Te,Re,Ct(Re,w),J(Re,{size:n,rounded:d,fillMode:s,themeColor:m}),Ve(Re,{hover:b,focus:A,active:K,disabled:oe||Q,selected:B}),{"k-icon-button":!ye&&!na&&De}),"aria-pressed":ke?B?"true":"false":void 0,...Ge,"aria-disabled":Q?"true":void 0,disabled:oe||void 0,children:[typeof z=="string"&&z&&ie(G,{className:C(Se,"k-button-icon"),icon:z,size:U}),z&&typeof z!="string"&&ie(yt,{children:z}),ye?Tt(yt,{children:[ye&&ie("span",{className:"k-button-text",children:ye}),a.children]}):a.children&&ie("span",{className:"k-button-text",children:a.children}),f&&ie("span",{className:"k-menu-button-arrow k-button-arrow",children:ie(G,{icon:p})})]})};T.states=ka;T.options=ya;T.variants=wa;T.className=Re;T.defaultOptions=lt;T.moduleName=at;T.folderName=kt;T.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."}]};import{jsx as Ta}from"react/jsx-runtime";var gt=a=>Ta(T,{icon:"folder",...a,"aria-label":a["aria-label"]||"Folder",children:void 0});import{jsx as ga}from"react/jsx-runtime";var Nt=a=>ga(T,{icon:"folder",children:"Button",...a});import{jsx as Na}from"react/jsx-runtime";var vt=a=>Na(T,{children:"Button",...a});import{jsx as nt}from"react/jsx-runtime";var va=T.options,Ra=T.states,ha={...T.defaultOptions,variant:"text"},Aa=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ea=[],se=a=>{let{variant:t,...n}=a;switch(t){case"icon-only":return nt(gt,{...n,icon:"star"});case"icon-and-text":return nt(Nt,{...n,icon:"star",children:"Button"});default:return nt(vt,{...n,children:"Button"})}};se.options=va;se.states=Ra;se.variants=Aa;se.defaultOptions=ha;se.modifiers=Ea;se.className=T.className;import{jsx as he,jsxs as Rt}from"react/jsx-runtime";var ht="k-calendar-header",La={size:[i.undefined,i.small,i.medium,i.large]},Ae={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal"},ne=a=>{let{calendarTitleText:t=Ae.calendarTitleText,showToday:n=Ae.showToday,showNavigationButtons:d=Ae.showNavigationButtons,orientation:s=Ae.orientation,size:m,calendarView:f,dir:p,titleId:w,...b}=a,A=p==="rtl"?"chevron-right":"chevron-left",K=p==="rtl"?"chevron-left":"chevron-right",B=w||de("calendar-title");return Rt("div",{...b,className:C(a.className,ht,{"k-vstack":s==="vertical"}),children:[he(T,{disabled:f==="century",className:"k-calendar-title",text:t,size:m,fillMode:"flat",themeColor:"primary",id:B,tabIndex:-1,"aria-label":`Navigate to parent view: ${t}`,...f==="century"?{"aria-disabled":"true"}:{}}),he("span",{className:"k-spacer"}),Rt("span",{className:"k-calendar-nav",children:[d&&he(T,{className:"k-calendar-nav-prev",icon:A,size:m,fillMode:"flat",tabIndex:-1,"aria-label":"Navigate to previous view"}),n&&he(T,{size:m,fillMode:"flat",className:"k-calendar-nav-today",tabIndex:-1,children:"Today"}),d&&he(T,{className:"k-calendar-nav-next",icon:K,size:m,fillMode:"flat",tabIndex:-1,"aria-label":"Navigate to next view"})]})]})};ne.options=La;ne.className=ht;ne.defaultOptions=Ae;import{jsx as At}from"react/jsx-runtime";var Et="k-calendar-footer",Ia={size:[i.undefined,i.small,i.medium,i.large]},Lt={calendarFooterText:"Tuesday, October 12, 2021"},Ee=a=>{let{size:t,calendarFooterText:n=Lt.calendarFooterText,...d}=a;return At("div",{...d,className:C(a.className,Et),children:At(T,{size:t,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:n})})};Ee.options=Ia;Ee.className=Et;Ee.defaultOptions=Lt;var S="calendar",D=S;import{jsx as rt,jsxs as Da}from"react/jsx-runtime";var ot="k-calendar",Ma=[],Sa={size:[i.undefined,i.small,i.medium,i.large]},Le={showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},h=a=>{let{size:t,orientation:n=Le.orientation,calendarView:d=Le.calendarView,calendarTitleText:s=Le.calendarTitleText,showCalendarHeader:m=Le.showCalendarHeader,showWeek:f,showCalendarFooter:p,calendarFooterText:w,dir:b,...A}=a,K=de("calendar-title");return Da("div",{...A,dir:b,className:C(a.className,ot,J(ot,{size:t}),{"k-week-number":f}),children:[m&&rt(ne,{calendarView:d,showToday:!p,calendarTitleText:s,orientation:n,size:t,dir:b,titleId:K}),rt(ze,{calendarView:d,orientation:n,gridRole:!0,ariaLabelledBy:K,children:a.children}),p&&rt(Ee,{calendarFooterText:w,size:t})]})};h.states=Ma;h.options=Sa;h.className=ot;h.defaultOptions=Le;h.moduleName=S;h.folderName=D;h.ariaSpec={selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range)",rules:[{selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-view",attribute:"role=grid",usage:"Specifies the role of the Calendar view container."},{selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-view",attribute:"aria-labelledby",usage:"Pointing to the current view label (e.g. March 2022 or 2020-2029)."},{selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-view",attribute:"tabindex=0",usage:"Makes the grid focusable."},{selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-table",attribute:"role=none",usage:"Inner table has role removed \u2014 content belongs to the grid on the view."},{selector:".k-calendar-thead",attribute:"role=rowgroup",usage:"Groups header rows."},{selector:".k-calendar-tbody",attribute:"role=rowgroup",usage:"Groups body rows."},{selector:".k-calendar-tr",attribute:"role=row",usage:"Each row in the calendar table."},{selector:".k-calendar-thead .k-calendar-th",attribute:"role=columnheader",usage:"Column header for day names."},{selector:".k-calendar-thead .k-calendar-th",attribute:"scope=col",usage:"Specifies the header applies to a column."},{selector:".k-calendar-thead .k-calendar-th",attribute:"aria-label",usage:"Full name of the day of the week."},{selector:".k-calendar-td:not(.k-alt):not(.k-empty)",attribute:"role=gridcell",usage:"Date cells in the calendar body."},{selector:".k-calendar-td.k-selected",attribute:"aria-selected=true",usage:"Indicates the selected date."},{selector:".k-calendar-td.k-disabled",attribute:"aria-disabled=true",usage:"Indicates a disabled date."},{selector:".k-calendar-nav-next,.k-calendar-nav-prev",attribute:"tabindex=-1",usage:"Navigation buttons are not focusable."},{selector:".k-calendar-nav-next,.k-calendar-nav-prev",attribute:"aria-label",usage:"Describes the navigation button purpose."},{selector:".k-calendar-title",attribute:"tabindex=-1",usage:"Title button is not focusable."},{selector:".k-calendar-title",attribute:"aria-label",usage:"Describes the title button purpose."},{selector:".k-calendar-nav-today",attribute:"tabindex=-1",usage:"Today link/button is not focusable."}]};import{jsx as Ka}from"react/jsx-runtime";var It="k-calendar-container",Va=[],za={},Ha={},ce=a=>{let{...t}=a;return Ka("div",{...t,className:C(a.className,It),children:a.children})};ce.states=Va;ce.options=za;ce.className=It;ce.defaultOptions=Ha;ce.moduleName=S;ce.folderName=D;import{Fragment as Ba,jsx as Ce,jsxs as Fa}from"react/jsx-runtime";var _a=[F.hover,F.focus,F.active,F.selected,F.disabled],e=a=>{let{text:t,headerCell:n,today:d,weekend:s,showOtherMonth:m,weekCell:f,rangeStart:p,rangeMid:w,rangeEnd:b,dayIndicator:A,empty:K,hover:B,focus:oe,active:ke,selected:Q,disabled:z,...U}=a,Se=`k-calendar-${n?"th":"td"}`,Te=[a.className,Se,Ve(Se,{hover:B,focus:oe,active:ke,selected:Q,disabled:z}),{"k-today":d,"k-weekend":s,"k-other-month":m,"k-alt":f,"k-range-start":p,"k-range-mid":w,"k-range-end":b,"k-empty":K}],Ge={Su:"Sunday",Mo:"Monday",Tu:"Tuesday",We:"Wednesday",Th:"Thursday",Fr:"Friday",Sa:"Saturday",W:"Week number"};if(n){let De=t?Ge[t]||t:void 0;return Ce("th",{...U,className:C(Te),role:"columnheader",scope:"col","aria-label":De,children:f?Ce("span",{className:"k-sr-only",children:De}):t})}return f?Ce("td",{...U,className:C(Te),children:t}):Ce("td",{...U,className:C(Te),role:"gridcell",...Q?{"aria-selected":"true"}:{},...z?{"aria-disabled":"true"}:{},children:K&&!m?Ce(Ba,{children:"\xA0"}):Fa("span",{className:"k-link",children:[t,A&&Ce("span",{className:"k-day-indicator"})]})})};e.states=_a;import{jsx as dt,jsxs as Pa}from"react/jsx-runtime";var Mt="k-calendar-thead",St={cellsText:["Su","Mo","Tu","We","Th","Fr","Sa"]},xe=a=>{let{showWeek:t,cellsText:n=St.cellsText,...d}=a;return dt("thead",{...d,className:C(a.className,Mt),role:"rowgroup",children:Pa("tr",{className:"k-calendar-tr",role:"row",children:[t&&dt(e,{weekCell:!0,headerCell:!0,text:"W"}),n.map((s,m)=>dt(e,{text:s,headerCell:!0},m))]})})};xe.className=Mt;xe.defaultOptions=St;import{jsx as Oa}from"react/jsx-runtime";var Dt="k-calendar-tbody",M=a=>{let{...t}=a;return Oa("tbody",{...t,className:C(a.className,Dt),role:"rowgroup",children:a.children})};M.className=Dt;M.moduleName=S;M.folderName=D;import{jsx as it,jsxs as Ua}from"react/jsx-runtime";var Wa="k-calendar-table",g=a=>{let{calendarCaption:t,showTableHead:n,showWeek:d,ariaLabelledBy:s,ariaActiveDescendant:m,gridRole:f,...p}=a;return Ua("table",{...p,className:C(a.className,Wa),...f?{role:"grid","aria-labelledby":s,"aria-activedescendant":m,tabIndex:0}:{role:"none"},children:[t&&it("caption",{className:"k-calendar-caption",children:t}),n&&it(xe,{showWeek:d}),it(M,{children:a.children})]})};import{jsx as st,jsxs as Vt}from"react/jsx-runtime";var zt="k-calendar-navigation",Ie=a=>Vt("div",{...a,className:C(a.className,zt),children:[st("span",{className:"k-calendar-navigation-highlight"}),Vt("div",{className:"k-content k-scrollable",children:[st("ul",{className:"k-reset",children:a.children}),st("div",{className:"k-scrollable-placeholder",style:{height:"1000px"}})]})]});Ie.className=zt;Ie.moduleName=S;Ie.folderName=D;import{jsx as $a}from"react/jsx-runtime";var Ja="k-calendar-table",ct=a=>{let{tableRole:t="none",ariaLabelledBy:n,...d}=a;return $a("table",{...d,className:C(a.className,Ja),role:t,...n?{"aria-labelledby":n}:{},...t==="grid"?{tabIndex:0}:{},children:a.children})};import{jsx as $,jsxs as Be}from"react/jsx-runtime";var Ht="k-calendar-view",me={orientation:"vertical",calendarView:"month",headerText:"April 2018",showWeekdays:!0,showNavigationButtons:!1},pe=a=>{let{orientation:t=me.orientation,calendarView:n=me.calendarView,headerText:d=me.headerText,showWeekdays:s=me.showWeekdays,showNavigationButtons:m=me.showNavigationButtons,showWeekNumbers:f,weekdayCellsText:p,gridLabelledBy:w,...b}=a;return Be("div",{...b,className:C(Ht,`k-calendar-${n}view`,a.className,{"k-hstack":t==="horizontal","k-vstack":t==="vertical"}),children:[$(ne,{showNavigationButtons:m,calendarTitleText:d,orientation:"horizontal"}),s&&Be(ct,{className:"k-calendar-weekdays",tableRole:"table",children:[Be("colgroup",{children:[$("col",{}),$("col",{}),$("col",{}),$("col",{}),$("col",{}),$("col",{}),$("col",{})]}),$(xe,{cellsText:p,showWeek:f})]}),Be("div",{className:"k-content k-scrollable",role:"none",children:[$(ct,{tableRole:"grid",ariaLabelledBy:w,children:a.children}),$("div",{className:"k-scrollable-placeholder",style:{height:"1000px"}})]})]})};pe.className=Ht;pe.defaultOptions=me;pe.moduleName=S;pe.folderName=D;import{jsx as Fe,jsxs as Qa}from"react/jsx-runtime";var Kt="k-calendar-infinite",Ya={size:[i.undefined,i.small,i.medium,i.large]},Ga=["Aug","Sep","Oct","Nov","Dec","2021","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","2022","Feb","Mar","Apr","May","Jun","Jul"],qa={2021:"marker",2022:"marker"},Xa=(a,t)=>a.map((n,d)=>Fe("li",{children:Fe("span",{className:t[n]==="marker"?"k-calendar-navigation-marker":void 0,children:n})},d)),Me={showNavigation:!0,calendarView:"month",navigationItems:Ga,navigationMarkerConfig:qa},L=a=>{let{size:t,showNavigation:n=Me.showNavigation,calendarView:d=Me.calendarView,navigationItems:s=Me.navigationItems,navigationMarkerConfig:m=Me.navigationMarkerConfig,calendarTitleText:f,showWeekdays:p,showWeekNumbers:w,showNavigationButtons:b,calendarWeekdays:A,...K}=a,B=de("calendar-infinite-title");return Qa("div",{...K,className:C(a.className,"k-calendar",Kt,J("k-calendar",{size:t})),children:[n&&Fe(Ie,{children:Xa(s,m)}),Fe(pe,{calendarView:d,headerText:f,showWeekdays:p,showWeekNumbers:w,showNavigationButtons:b,orientation:"vertical",weekdayCellsText:A,gridLabelledBy:B,children:a.children})]})};L.options=Ya;L.className=Kt;L.defaultOptions=Me;L.moduleName=S;L.folderName=D;L.ariaSpec={selector:".k-calendar-infinite",rules:[{selector:".k-calendar-infinite .k-content .k-calendar-table",attribute:"role=grid",usage:"The content table is the grid element for the infinite calendar."},{selector:".k-calendar-infinite .k-content .k-calendar-table",attribute:"aria-labelledby",usage:"Pointing to the current view title element."},{selector:".k-calendar-infinite .k-content .k-calendar-table",attribute:"tabindex=0",usage:"Makes the grid focusable."},{selector:".k-calendar-infinite .k-calendar-weekdays",attribute:"role=table",usage:"Weekday header table keeps table semantics (not part of grid)."},{selector:".k-calendar-view div.k-content.k-scrollable",attribute:"role=none",usage:"Scrollable wrapper is transparent to a11y tree."},{selector:".k-calendar-infinite .k-calendar-tbody",attribute:"role=rowgroup",usage:"Explicit rowgroup role on tbody."},{selector:".k-calendar-infinite .k-calendar-tr",attribute:"role=row",usage:"Explicit row role on tr."},{selector:".k-calendar-infinite .k-calendar-weekdays .k-calendar-th",attribute:"role=columnheader",usage:"Explicit columnheader role on weekday headers."},{selector:".k-calendar-infinite .k-calendar-weekdays .k-calendar-th",attribute:"scope=col",usage:"Specifies that the header applies to a column."},{selector:".k-calendar-infinite .k-calendar-weekdays .k-calendar-th",attribute:"aria-label",usage:"Full name of the day of the week."},{selector:".k-calendar-infinite .k-calendar-td:not(.k-alt):not(.k-empty)",attribute:"role=gridcell",usage:"Date cells in the calendar body."},{selector:".k-calendar-td.k-selected",attribute:"aria-selected=true",usage:"Specifies whether the date is selected."},{selector:".k-calendar-td.k-disabled",attribute:"aria-disabled=true",usage:"Specifies a disabled date."},{selector:".k-calendar-title",attribute:"tabindex=-1",usage:"Title button is not focusable."},{selector:".k-calendar-nav-today",attribute:"tabindex=-1",usage:"Today link is not focusable."}]};import{jsx as Za}from"react/jsx-runtime";var _t="k-calendar-tr",l=a=>{let{...t}=a;return Za("tr",{...t,className:C(a.className,_t),role:"row",children:a.children})};l.className=_t;l.moduleName=S;l.folderName=D;import{jsx as ja}from"react/jsx-runtime";var Bt="k-calendar-caption",V=a=>{let{text:t,scope:n,colSpan:d,rowSpan:s,...m}=a;return ja("th",{...m,scope:n,colSpan:d,rowSpan:s,className:C(a.className,Bt),children:t})};V.className=Bt;V.moduleName=S;V.folderName=D;import{jsx as P,jsxs as Pe}from"react/jsx-runtime";var Ft=({showOtherCentury:a,...t})=>P(h,{calendarView:"century",calendarTitleText:"2000 - 2099",children:Pe(g,{children:[Pe(l,{children:[P(e,{text:"1990 - 1999"}),P(e,{text:"2000 - 2009"}),P(e,{text:"2010 - 2019",today:!0}),P(e,{text:"2020 - 2029"})]}),Pe(l,{children:[P(e,{text:"2030 - 2039"}),P(e,{text:"2040 - 2049"}),P(e,{text:"2050 - 2059"}),P(e,{text:"2060 - 2069"})]}),Pe(l,{children:[P(e,{text:"2070 - 2079"}),P(e,{text:"2080 - 2089"}),P(e,{text:"2090 - 2099"}),P(e,{text:"2100 - 2109",empty:!a})]})]}),...t});import{jsx as O,jsxs as Oe}from"react/jsx-runtime";var Pt=({showOtherDecade:a,...t})=>O(h,{calendarView:"decade",calendarTitleText:"2020 - 2029",children:Oe(g,{children:[Oe(l,{children:[O(e,{text:"2019",empty:!a}),O(e,{text:"2020"}),O(e,{text:"2021",today:!0}),O(e,{text:"2022"})]}),Oe(l,{children:[O(e,{text:"2023"}),O(e,{text:"2024"}),O(e,{text:"2025"}),O(e,{text:"2026"})]}),Oe(l,{children:[O(e,{text:"2027"}),O(e,{text:"2028"}),O(e,{text:"2029"}),O(e,{text:"2030",empty:!a})]})]}),...t});import{jsx as x,jsxs as re}from"react/jsx-runtime";var Ot=({showCaptions:a,showOtherMonth:t,...n})=>x(h,{calendarView:"month",children:re(g,{calendarCaption:a&&"October 2021",showTableHead:!0,children:[re(l,{children:[x(e,{text:"26",showOtherMonth:t,empty:!t,weekend:t}),x(e,{text:"27",showOtherMonth:t,empty:!t}),x(e,{text:"28",showOtherMonth:t,empty:!t}),x(e,{text:"29",showOtherMonth:t,empty:!t}),x(e,{text:"30",showOtherMonth:t,empty:!t}),x(e,{text:"1"}),x(e,{text:"2",weekend:!0})]}),re(l,{children:[x(e,{text:"3",weekend:!0}),x(e,{text:"4"}),x(e,{text:"5"}),x(e,{text:"6"}),x(e,{text:"7"}),x(e,{text:"8"}),x(e,{text:"9",weekend:!0})]}),re(l,{children:[x(e,{text:"10",weekend:!0}),x(e,{text:"11"}),x(e,{text:"12",today:!0}),x(e,{text:"13"}),x(e,{text:"14"}),x(e,{text:"15"}),x(e,{text:"16",weekend:!0})]}),re(l,{children:[x(e,{text:"17",weekend:!0}),x(e,{text:"18"}),x(e,{text:"19"}),x(e,{text:"20"}),x(e,{text:"21"}),x(e,{text:"22"}),x(e,{text:"23",weekend:!0})]}),re(l,{children:[x(e,{text:"24",weekend:!0}),x(e,{text:"25"}),x(e,{text:"26"}),x(e,{text:"27"}),x(e,{text:"28"}),x(e,{text:"29"}),x(e,{text:"30",weekend:!0})]}),re(l,{children:[x(e,{text:"31",weekend:!0}),x(e,{text:"1",showOtherMonth:t,empty:!t}),x(e,{text:"2",showOtherMonth:t,empty:!t}),x(e,{text:"3",showOtherMonth:t,empty:!t}),x(e,{text:"4",showOtherMonth:t,empty:!t}),x(e,{text:"5",showOtherMonth:t,empty:!t}),x(e,{text:"6",showOtherMonth:t,empty:!t,weekend:t})]})]}),...n});import{jsx as ao,jsxs as lo}from"react/jsx-runtime";import{jsx as W,jsxs as We}from"react/jsx-runtime";var Wt=a=>W(h,{calendarView:"year",calendarTitleText:"2019",children:We(g,{children:[We(l,{children:[W(e,{text:"Jan"}),W(e,{text:"Feb"}),W(e,{text:"Mar"}),W(e,{text:"Apr"})]}),We(l,{children:[W(e,{text:"May"}),W(e,{text:"Jun"}),W(e,{text:"Jul"}),W(e,{text:"Au"})]}),We(l,{children:[W(e,{text:"Sep"}),W(e,{text:"Oct",today:!0}),W(e,{text:"Nov"}),W(e,{text:"Dec"})]})]}),...a});import{Fragment as el,jsx as c,jsxs as Z}from"react/jsx-runtime";var Ut=({firstCaption:a="January 2021",secondCaption:t="February 2021",...n})=>c(L,{calendarTitleText:"January 2021",children:Z(el,{children:[Z("colgroup",{children:[c("col",{}),c("col",{}),c("col",{}),c("col",{}),c("col",{}),c("col",{}),c("col",{})]}),Z(M,{children:[c(l,{"aria-hidden":"true",children:c(V,{scope:"col",colSpan:7,text:a})}),Z(l,{children:[c(e,{empty:!0}),c(e,{empty:!0}),c(e,{empty:!0}),c(e,{empty:!0}),c(e,{empty:!0}),c(e,{text:"1"}),c(e,{text:"2",weekend:!0})]}),Z(l,{children:[c(e,{text:"3",weekend:!0}),c(e,{text:"4"}),c(e,{text:"5"}),c(e,{text:"6"}),c(e,{text:"7"}),c(e,{text:"8"}),c(e,{text:"9",weekend:!0})]}),Z(l,{children:[c(e,{text:"10",weekend:!0}),c(e,{text:"11"}),c(e,{text:"12"}),c(e,{text:"13"}),c(e,{text:"14"}),c(e,{text:"15"}),c(e,{text:"16",weekend:!0})]}),Z(l,{children:[c(e,{text:"17",weekend:!0}),c(e,{text:"18"}),c(e,{text:"19"}),c(e,{text:"20"}),c(e,{text:"21"}),c(e,{text:"22"}),c(e,{text:"23",weekend:!0})]}),Z(l,{children:[c(e,{text:"24",weekend:!0}),c(e,{text:"25"}),c(e,{text:"26"}),c(e,{text:"27"}),c(e,{text:"28"}),c(e,{text:"29"}),c(e,{text:"30",weekend:!0})]}),Z(l,{children:[c(e,{text:"31",weekend:!0}),c(e,{empty:!0}),c(e,{empty:!0}),c(e,{empty:!0}),c(e,{empty:!0}),c(e,{empty:!0}),c(e,{empty:!0})]})]}),c(M,{children:c(l,{"aria-hidden":"true",children:c(V,{scope:"col",colSpan:7,text:t})})})]}),...n});import{Fragment as tl,jsx as k,jsxs as q}from"react/jsx-runtime";var Jt=({firstCaption:a="2021",secondCaption:t="2022",...n})=>k(L,{calendarView:"year",showWeekdays:!1,calendarTitleText:"2021",navigationItems:["2016","2017","2018","2019","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042"],navigationMarkerConfig:{2021:"marker",2030:"marker",2040:"marker"},children:q(tl,{children:[q("colgroup",{children:[k("col",{}),k("col",{}),k("col",{}),k("col",{})]}),q(M,{children:[k(l,{"aria-hidden":"true",children:k(V,{scope:"col",colSpan:4,text:a})}),q(l,{children:[k(e,{text:"Jan",today:!0}),k(e,{text:"Feb"}),k(e,{text:"Mar"}),k(e,{text:"Apr"})]}),q(l,{children:[k(e,{text:"May"}),k(e,{text:"Jun"}),k(e,{text:"Jul"}),k(e,{text:"Aug"})]}),q(l,{children:[k(e,{text:"Sep"}),k(e,{text:"Oct"}),k(e,{text:"Nov"}),k(e,{text:"Dec"})]})]}),q(M,{children:[k(l,{"aria-hidden":"true",children:k(V,{scope:"col",colSpan:4,text:t})}),q(l,{children:[k(e,{text:"Jan"}),k(e,{text:"Feb"}),k(e,{text:"Mar"}),k(e,{text:"Apr"})]}),q(l,{children:[k(e,{text:"May"}),k(e,{text:"Jun"}),k(e,{text:"Jul"}),k(e,{text:"Aug"})]}),q(l,{children:[k(e,{text:"Sep"}),k(e,{text:"Oct"}),k(e,{text:"Nov"}),k(e,{text:"Dec"})]})]})]}),...n});import{Fragment as al,jsx as y,jsxs as X}from"react/jsx-runtime";var $t=({firstCaption:a="2020 - 2029",secondCaption:t="2030 - 2039",...n})=>y(L,{calendarView:"decade",showWeekdays:!1,calendarTitleText:"2020 - 2029",navigationItems:["1970","1980","1990","2000","2010","2020","2030","2040","2050","2060","2070","2080","2090"],navigationMarkerConfig:{2020:"marker"},children:X(al,{children:[X("colgroup",{children:[y("col",{}),y("col",{}),y("col",{}),y("col",{})]}),X(M,{children:[y(l,{"aria-hidden":"true",children:y(V,{scope:"col",colSpan:4,text:a})}),X(l,{children:[y(e,{text:"2020",today:!0}),y(e,{text:"2021"}),y(e,{text:"2022"}),y(e,{text:"2023"})]}),X(l,{children:[y(e,{text:"2024"}),y(e,{text:"2025"}),y(e,{text:"2026"}),y(e,{text:"2027"})]}),X(l,{children:[y(e,{text:"2028"}),y(e,{text:"2029"}),y(e,{empty:!0}),y(e,{empty:!0})]})]}),X(M,{children:[y(l,{"aria-hidden":"true",children:y(V,{scope:"col",colSpan:4,text:t})}),X(l,{children:[y(e,{text:"2030"}),y(e,{text:"2031"}),y(e,{text:"2032"}),y(e,{text:"2033"})]}),X(l,{children:[y(e,{text:"2034"}),y(e,{text:"2035"}),y(e,{text:"2036"}),y(e,{text:"2037"})]}),X(l,{children:[y(e,{text:"2038"}),y(e,{text:"2039"}),y(e,{empty:!0}),y(e,{empty:!0})]})]})]}),...n});import{Fragment as ll,jsx as I,jsxs as ue}from"react/jsx-runtime";var Yt=({firstCaption:a="2000 - 2099",...t})=>I(L,{calendarView:"century",showWeekdays:!1,calendarTitleText:"2000 - 2099",navigationItems:["1900","2000"],navigationMarkerConfig:{2e3:"marker"},children:ue(ll,{children:[ue("colgroup",{children:[I("col",{}),I("col",{}),I("col",{}),I("col",{})]}),ue(M,{children:[I(l,{"aria-hidden":"true",children:I(V,{scope:"col",colSpan:4,text:a})}),ue(l,{children:[I(e,{text:"1900 - 1999"}),I(e,{text:"2000 - 2009"}),I(e,{text:"2010 - 2019"}),I(e,{text:"2020 - 2029"})]}),ue(l,{children:[I(e,{text:"2030 - 2039"}),I(e,{text:"2040 - 2049"}),I(e,{text:"2050 - 2059"}),I(e,{text:"2060 - 2069"})]}),ue(l,{children:[I(e,{text:"2070 - 2079"}),I(e,{text:"2080 - 2089"}),I(e,{text:"2090 - 2099"}),I(e,{empty:!0})]})]})]}),...t});import{Fragment as Ro,jsx as No,jsxs as vo}from"react/jsx-runtime";import{jsx as Lo,jsxs as Io}from"react/jsx-runtime";import{Fragment as Ho,jsx as Vo,jsxs as zo}from"react/jsx-runtime";import{jsx as Ue}from"react/jsx-runtime";var nl=h.options,rl=h.states,Gt={...h.defaultOptions,variant:"month"},ol=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],dl=[{name:"footer",title:"Calendar Footer"},{name:"other",title:"Show other cells"}],be=a=>{let{variant:t,modifiers:n,...d}={...Gt,...a},s={showCalendarFooter:!1};Object.keys(n||{}).forEach(b=>{switch(b){case"other":s.showOtherMonth=!!n?.[b],s.showOtherCentury=!!n?.[b],s.showOtherDecade=!!n?.[b];break;case"footer":s.showCalendarFooter=!!n?.[b];break;default:return}});let{showOtherMonth:m,showOtherDecade:f,showOtherCentury:p,showCalendarFooter:w}=s;switch(t){case"century":return Ue(Ft,{size:d.size,showOtherCentury:p,showCalendarFooter:w});case"decade":return Ue(Pt,{size:d.size,showOtherDecade:f,showCalendarFooter:w});case"year":return Ue(Wt,{calendarTitleText:"2021",size:d.size,showCalendarFooter:w});default:return Ue(Ot,{size:d.size,showOtherMonth:m,showCalendarFooter:w})}};be.options=nl;be.states=rl;be.variants=ol;be.defaultOptions=Gt;be.modifiers=dl;be.className=h.className;import{jsx as Je}from"react/jsx-runtime";var il=L.options,sl=L.states,qt={...L.defaultOptions,variant:"month"},cl=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],Cl=[{name:"footer",title:"Calendar Footer"},{name:"other",title:"Show other cells"}],fe=a=>{let{variant:t,modifiers:n,...d}={...qt,...a},s={showCalendarFooter:!1};Object.keys(n||{}).forEach(b=>{switch(b){case"other":s.showOtherMonth=!!n?.[b],s.showOtherCentury=!!n?.[b],s.showOtherDecade=!!n?.[b];break;case"footer":s.showCalendarFooter=!!n?.[b];break;default:return}});let{showOtherMonth:m,showOtherDecade:f,showOtherCentury:p,showCalendarFooter:w}=s;switch(t){case"century":return Je(Yt,{size:d.size,showOtherCentury:p,showCalendarFooter:w});case"decade":return Je($t,{size:d.size,showOtherDecade:f,showCalendarFooter:w});case"year":return Je(Jt,{size:d.size,showCalendarFooter:w});default:return Je(Ut,{size:d.size,showOtherMonth:m,showCalendarFooter:w})}};fe.options=il;fe.states=sl;fe.variants=cl;fe.defaultOptions=qt;fe.modifiers=Cl;fe.className=L.className;var Xt="calendar",Qt="calendar";import{jsx as pl}from"react/jsx-runtime";var Zt="k-calendar-range",xl=[],ml={size:[i.undefined,i.small,i.medium,i.large]},$e={calendarTitleText:"October 2021 - November 2021",orientation:"horizontal",calendarView:"month"},E=a=>{let{size:t,orientation:n=$e.orientation,calendarView:d=$e.calendarView,calendarTitleText:s=$e.calendarTitleText,showCalendarFooter:m,showWeek:f,dir:p,...w}=a;return pl(h,{...w,className:C(a.className,Zt),size:t,calendarTitleText:s,calendarView:d,orientation:n,showCalendarFooter:m,showWeek:f,dir:p})};E.states=xl;E.options=ml;E.className=Zt;E.defaultOptions=$e;E.moduleName=Xt;E.folderName=Qt;E.ariaSpec={selector:".k-calendar-range",rules:[{selector:".k-calendar-range .k-calendar-view",attribute:"role=grid",usage:"Specifies the role of the multi-view calendar wrapper."},{selector:".k-calendar-range .k-calendar-view",attribute:"aria-labelledby",usage:"Pointing to the k-calendar-title element."},{selector:".k-calendar-range .k-calendar-view",attribute:"tabindex=0",usage:"Makes the grid focusable."},{selector:".k-calendar-range .k-calendar-table",attribute:"role=none",usage:"Inner tables have role removed \u2014 content belongs to single grid."},{selector:".k-calendar-thead",attribute:"role=rowgroup",usage:"Explicit rowgroup role."},{selector:".k-calendar-tbody",attribute:"role=rowgroup",usage:"Explicit rowgroup role."},{selector:".k-calendar-tr",attribute:"role=row",usage:"Explicit row role."},{selector:".k-calendar-thead .k-calendar-th",attribute:"role=columnheader",usage:"Column header for day names."},{selector:".k-calendar-thead .k-calendar-th",attribute:"scope=col",usage:"Specifies the header applies to a column."},{selector:".k-calendar-thead .k-calendar-th",attribute:"aria-label",usage:"Full name of the day of the week."},{selector:".k-calendar-td:not(.k-alt):not(.k-empty)",attribute:"role=gridcell",usage:"Date cells in the calendar body."},{selector:".k-calendar-td.k-selected",attribute:"aria-selected=true",usage:"Indicates the selected date."},{selector:".k-calendar-td.k-disabled",attribute:"aria-disabled=true",usage:"Indicates a disabled date."},{selector:".k-calendar-nav-prev,.k-calendar-nav-next",attribute:"tabindex=-1",usage:"Navigation buttons are not focusable."},{selector:".k-calendar-title",attribute:"tabindex=-1",usage:"Title button is not focusable."},{selector:".k-calendar-nav-today",attribute:"tabindex=-1",usage:"Today link is not focusable."}]};import{Fragment as ul,jsx as N,jsxs as j}from"react/jsx-runtime";var jt=({showCaptions:a,showOtherCentury:t,...n})=>N(E,{calendarView:"century",calendarTitleText:"1900 - 2099",children:j(ul,{children:[j(g,{calendarCaption:a&&"1900 - 1999",children:[j(l,{children:[N(e,{text:"1890 - 1899",empty:!t}),N(e,{text:"1900 - 1909"}),N(e,{text:"1910 - 1919"}),N(e,{text:"1920 - 1929"})]}),j(l,{children:[N(e,{text:"1930 - 1939"}),N(e,{text:"1940 - 1949"}),N(e,{text:"1950 - 1959"}),N(e,{text:"1960 - 1969"})]}),j(l,{children:[N(e,{text:"1970 - 1979"}),N(e,{text:"1980 - 1989"}),N(e,{text:"1990 - 1999"}),N(e,{text:"2000 - 2009",empty:!t})]})]}),j(g,{calendarCaption:a&&"2000 - 2099",children:[j(l,{children:[N(e,{text:"1990 - 1999",empty:!t}),N(e,{text:"2000 - 2009"}),N(e,{text:"2010 - 2019"}),N(e,{text:"2020 - 2029",today:!0})]}),j(l,{children:[N(e,{text:"2030 - 2039"}),N(e,{text:"2040 - 2049"}),N(e,{text:"2050 - 2059"}),N(e,{text:"2060 - 2069"})]}),j(l,{children:[N(e,{text:"2070 - 2079"}),N(e,{text:"2080 - 2089"}),N(e,{text:"2090 - 2099"}),N(e,{text:"2100 - 2109",empty:!t})]})]})]}),...n});import{Fragment as bl,jsx as v,jsxs as ee}from"react/jsx-runtime";var ea=({showCaptions:a,showOtherDecade:t,...n})=>v(E,{calendarView:"decade",calendarTitleText:"2020 - 2039",children:ee(bl,{children:[ee(g,{calendarCaption:a&&"2020 - 2029",children:[ee(l,{children:[v(e,{text:"2019",empty:!t}),v(e,{text:"2020"}),v(e,{text:"2021",today:!0}),v(e,{text:"2022"})]}),ee(l,{children:[v(e,{text:"2023"}),v(e,{text:"2024"}),v(e,{text:"2025"}),v(e,{text:"2026"})]}),ee(l,{children:[v(e,{text:"2027"}),v(e,{text:"2028"}),v(e,{text:"2029"}),v(e,{text:"2030",empty:!t})]})]}),ee(g,{calendarCaption:a&&"2030 - 2039",children:[ee(l,{children:[v(e,{text:"2029",empty:!t}),v(e,{text:"2030"}),v(e,{text:"2031"}),v(e,{text:"2032"})]}),ee(l,{children:[v(e,{text:"2033"}),v(e,{text:"2034"}),v(e,{text:"2035"}),v(e,{text:"2036"})]}),ee(l,{children:[v(e,{text:"2037"}),v(e,{text:"2038"}),v(e,{text:"2039"}),v(e,{text:"2040",empty:!t})]})]})]}),...n});import{Fragment as fl,jsx as r,jsxs as H}from"react/jsx-runtime";var ta=({showCaptions:a,showOtherMonth:t,...n})=>r(E,{calendarView:"month",children:H(fl,{children:[H(g,{calendarCaption:a&&"October 2021",showTableHead:!0,children:[H(l,{children:[r(e,{text:"26",showOtherMonth:t,empty:!t,weekend:t}),r(e,{text:"27",showOtherMonth:t,empty:!t}),r(e,{text:"28",showOtherMonth:t,empty:!t}),r(e,{text:"29",showOtherMonth:t,empty:!t}),r(e,{text:"30",showOtherMonth:t,empty:!t}),r(e,{text:"1"}),r(e,{text:"2",weekend:!0})]}),H(l,{children:[r(e,{text:"3",weekend:!0}),r(e,{text:"4"}),r(e,{text:"5"}),r(e,{text:"6"}),r(e,{text:"7"}),r(e,{text:"8"}),r(e,{text:"9",weekend:!0})]}),H(l,{children:[r(e,{text:"10",weekend:!0}),r(e,{text:"11"}),r(e,{text:"12",today:!0}),r(e,{text:"13"}),r(e,{text:"14"}),r(e,{text:"15"}),r(e,{text:"16",weekend:!0})]}),H(l,{children:[r(e,{text:"17",weekend:!0}),r(e,{text:"18"}),r(e,{text:"19"}),r(e,{text:"20"}),r(e,{text:"21"}),r(e,{text:"22"}),r(e,{text:"23",weekend:!0})]}),H(l,{children:[r(e,{text:"24",weekend:!0}),r(e,{text:"25"}),r(e,{text:"26"}),r(e,{text:"27"}),r(e,{text:"28"}),r(e,{text:"29"}),r(e,{text:"30",weekend:!0})]}),H(l,{children:[r(e,{text:"31",weekend:!0}),r(e,{text:"1",showOtherMonth:t,empty:!t}),r(e,{text:"2",showOtherMonth:t,empty:!t}),r(e,{text:"3",showOtherMonth:t,empty:!t}),r(e,{text:"4",showOtherMonth:t,empty:!t}),r(e,{text:"5",showOtherMonth:t,empty:!t}),r(e,{text:"6",showOtherMonth:t,empty:!t,weekend:t})]})]}),H(g,{calendarCaption:a&&"November 2021",showTableHead:!0,children:[H(l,{children:[r(e,{text:"31",showOtherMonth:t,empty:!t,weekend:t}),r(e,{text:"1"}),r(e,{text:"2"}),r(e,{text:"3"}),r(e,{text:"4"}),r(e,{text:"5"}),r(e,{text:"6",weekend:!0})]}),H(l,{children:[r(e,{text:"7",weekend:!0}),r(e,{text:"8"}),r(e,{text:"9"}),r(e,{text:"10"}),r(e,{text:"11"}),r(e,{text:"12"}),r(e,{text:"13",weekend:!0})]}),H(l,{children:[r(e,{text:"14",weekend:!0}),r(e,{text:"15"}),r(e,{text:"16"}),r(e,{text:"17"}),r(e,{text:"18"}),r(e,{text:"19"}),r(e,{text:"20",weekend:!0})]}),H(l,{children:[r(e,{text:"21",weekend:!0}),r(e,{text:"22"}),r(e,{text:"23"}),r(e,{text:"24"}),r(e,{text:"25"}),r(e,{text:"26"}),r(e,{text:"27",weekend:!0})]}),H(l,{children:[r(e,{text:"28",weekend:!0}),r(e,{text:"29"}),r(e,{text:"30"}),r(e,{text:"1",showOtherMonth:t,empty:!t}),r(e,{text:"2",showOtherMonth:t,empty:!t}),r(e,{text:"3",showOtherMonth:t,empty:!t}),r(e,{text:"4",showOtherMonth:t,empty:!t,weekend:t})]}),H(l,{children:[r(e,{text:"5",showOtherMonth:t,empty:!t,weekend:t}),r(e,{text:"6",showOtherMonth:t,empty:!t}),r(e,{text:"7",showOtherMonth:t,empty:!t}),r(e,{text:"8",showOtherMonth:t,empty:!t}),r(e,{text:"9",showOtherMonth:t,empty:!t}),r(e,{text:"10",showOtherMonth:t,empty:!t}),r(e,{text:"11",showOtherMonth:t,empty:!t,weekend:t})]})]})]}),...n});import{Fragment as jd,jsx as Qd,jsxs as Zd}from"react/jsx-runtime";import{Fragment as wl,jsx as R,jsxs as te}from"react/jsx-runtime";var aa=({showCaptions:a,...t})=>R(E,{calendarView:"year",calendarTitleText:"2021",children:te(wl,{children:[te(g,{calendarCaption:a&&"2021",children:[te(l,{children:[R(e,{text:"Jan"}),R(e,{text:"Feb"}),R(e,{text:"Mar"}),R(e,{text:"Apr"})]}),te(l,{children:[R(e,{text:"May"}),R(e,{text:"Jun"}),R(e,{text:"Jul"}),R(e,{text:"Au"})]}),te(l,{children:[R(e,{text:"Sep"}),R(e,{text:"Oct",today:!0}),R(e,{text:"Nov"}),R(e,{text:"Dec"})]})]}),te(g,{calendarCaption:a&&"2022",children:[te(l,{children:[R(e,{text:"Jan"}),R(e,{text:"Feb"}),R(e,{text:"Mar"}),R(e,{text:"Apr"})]}),te(l,{children:[R(e,{text:"May"}),R(e,{text:"Jun"}),R(e,{text:"Jul"}),R(e,{text:"Au"})]}),te(l,{children:[R(e,{text:"Sep"}),R(e,{text:"Oct"}),R(e,{text:"Nov"}),R(e,{text:"Dec"})]})]})]}),...t});import{jsx as Ye}from"react/jsx-runtime";var kl=E.options,yl=E.states,la={...E.defaultOptions,variant:"month"},Tl=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],gl=[{name:"vertical",title:"Vertical Orientation"}],we=a=>{let{variant:t,modifiers:n,...d}={...la,...a},s={showCalendarFooter:!1};Object.keys(n||{}).forEach(A=>{switch(A){case"footer":s.showCalendarFooter=!!n?.[A];break;case"vertical":s.orientation=n?.[A]?"vertical":"horizontal",s.height=n?.[A]?"inherit":void 0;break;default:return}});let{showOtherMonth:m,showOtherDecade:f,showOtherCentury:p,height:w,...b}=s;switch(t){case"century":return Ye(jt,{style:{height:w},size:d.size,showOtherCentury:p,...b});case"decade":return Ye(ea,{style:{height:w},size:d.size,showOtherDecade:f,...b});case"year":return Ye(aa,{style:{height:w},size:d.size,...b});default:return Ye(ta,{style:{height:w},size:d.size,showOtherMonth:m,...b})}};we.options=kl;we.states=yl;we.variants=Tl;we.defaultOptions=la;we.modifiers=gl;we.className=E.className;import{Fragment as Nl,jsx as o,jsxs as _}from"react/jsx-runtime";var vi=a=>o(E,{calendarView:"month",children:_(Nl,{children:[_(g,{showTableHead:!0,children:[_(l,{children:[o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{text:"1"}),o(e,{text:"2",weekend:!0})]}),_(l,{children:[o(e,{text:"3",weekend:!0}),o(e,{text:"4"}),o(e,{text:"5"}),o(e,{text:"6"}),o(e,{text:"7"}),o(e,{text:"8"}),o(e,{text:"9",weekend:!0})]}),_(l,{children:[o(e,{text:"10",weekend:!0}),o(e,{text:"11"}),o(e,{text:"12",today:!0}),o(e,{text:"13"}),o(e,{text:"14",selected:!0}),o(e,{text:"15"}),o(e,{text:"16",weekend:!0})]}),_(l,{children:[o(e,{text:"17",weekend:!0}),o(e,{text:"18"}),o(e,{text:"19"}),o(e,{text:"20"}),o(e,{text:"21"}),o(e,{text:"22"}),o(e,{text:"23",weekend:!0})]}),_(l,{children:[o(e,{text:"24",weekend:!0}),o(e,{text:"25"}),o(e,{text:"26"}),o(e,{text:"27",disabled:!0}),o(e,{text:"28",disabled:!0}),o(e,{text:"29",disabled:!0}),o(e,{text:"30",weekend:!0,disabled:!0})]}),_(l,{children:[o(e,{text:"31",weekend:!0,disabled:!0}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0})]})]}),_(g,{showTableHead:!0,children:[_(l,{children:[o(e,{empty:!0}),o(e,{text:"1"}),o(e,{text:"2"}),o(e,{text:"3"}),o(e,{text:"4"}),o(e,{text:"5"}),o(e,{text:"6",weekend:!0})]}),_(l,{children:[o(e,{text:"7",weekend:!0}),o(e,{text:"8"}),o(e,{text:"9"}),o(e,{text:"10"}),o(e,{text:"11"}),o(e,{text:"12"}),o(e,{text:"13",weekend:!0})]}),_(l,{children:[o(e,{text:"14",weekend:!0}),o(e,{text:"15"}),o(e,{text:"16"}),o(e,{text:"17"}),o(e,{text:"18"}),o(e,{text:"19"}),o(e,{text:"20",weekend:!0})]}),_(l,{children:[o(e,{text:"21",weekend:!0}),o(e,{text:"22"}),o(e,{text:"23"}),o(e,{text:"24"}),o(e,{text:"25"}),o(e,{text:"26"}),o(e,{text:"27",weekend:!0})]}),_(l,{children:[o(e,{text:"28",weekend:!0}),o(e,{text:"29"}),o(e,{text:"30"}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0}),o(e,{empty:!0})]})]})]}),...a});export{vi as MultiViewCalendarSelected};