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