@fullcalendar/theme-monarch 7.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Adam Shaw
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+
2
+ # FullCalendar Monarch Theme
3
+
4
+ Display an event calendar with a [Material Design](https://m3.material.io/) inspired theme.
5
+
6
+ ## Installation
7
+
8
+ Install FullCalendar's core, the theme, and any other plugins you plan to use:
9
+
10
+ ```sh
11
+ npm install @fullcalendar/core @fullcalendar/theme-monarch @fullcalendar/daygrid
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ Instantiate a Calendar with the necessary plugin:
17
+
18
+ ```js
19
+ import { Calendar } from '@fullcalendar/core'
20
+ import monarchThemePlugin from '@fullcalendar/theme-monarch'
21
+ import dayGridPlugin from '@fullcalendar/daygrid'
22
+
23
+ import '@fullcalendar/core/skeleton.css'
24
+ import '@fullcalendar/theme-monarch/theme.css'
25
+ import '@fullcalendar/theme-monarch/palettes/purple.css'
26
+
27
+ const calendarEl = document.getElementById('calendar')
28
+ const calendar = new Calendar(calendarEl, {
29
+ plugins: [monarchThemePlugin, dayGridPlugin],
30
+ initialView: 'dayGridMonth',
31
+ events: [
32
+ { title: 'Meeting', start: new Date() }
33
+ ]
34
+ })
35
+
36
+ calendar.render()
37
+ ```
38
+
39
+ ## Colors
40
+
41
+ Future docs will explain how to customize this theme's colors, as well as light/dark mode.
42
+
43
+ ## React/Vue/Angular Usage
44
+
45
+ Future docs will explain how to use this theme with various front-end frameworks.
package/cjs/index.cjs ADDED
@@ -0,0 +1,360 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@fullcalendar/core');
6
+ var preact = require('@fullcalendar/core/preact');
7
+
8
+ // usually 11px font / 12px line-height
9
+ const xxsTextClass = "fc-monarch-vQz";
10
+ // outline
11
+ const outlineWidthClass = "fc-monarch-x7S";
12
+ const outlineWidthFocusClass = "fc-monarch-sOR";
13
+ const outlineWidthGroupFocusClass = "fc-monarch-a9l";
14
+ const outlineColorClass = "fc-monarch-MJY";
15
+ const outlineFocusClass = `${outlineColorClass} ${outlineWidthFocusClass}`;
16
+ // neutral buttons
17
+ const strongSolidPressableClass = core.joinClassNames("fc-monarch-9LE", "fc-monarch-r63", "fc-monarch-ljX");
18
+ const mutedHoverClass = "fc-monarch-v08";
19
+ const mutedHoverGroupClass = "fc-monarch-JQh";
20
+ const mutedHoverPressableClass = `${mutedHoverClass} fc-monarch-Yib fc-monarch-6MP`;
21
+ const mutedHoverPressableGroupClass = `${mutedHoverGroupClass} fc-monarch-4Pp fc-monarch-Hsn`;
22
+ // controls
23
+ const selectedClass = "fc-monarch-y37 fc-monarch-bIt";
24
+ const selectedPressableClasss = `${selectedClass} fc-monarch-SJz fc-monarch-MQC`;
25
+ const selectedButtonClass = `${selectedPressableClasss} fc-monarch-wsy fc-monarch-d0j ${outlineFocusClass} fc-monarch-07j`;
26
+ const unselectedButtonClass = `${mutedHoverPressableClass} fc-monarch-wsy fc-monarch-d0j ${outlineFocusClass} fc-monarch-07j`;
27
+ // primary
28
+ const primaryClass = "fc-monarch-zue fc-monarch-8ys";
29
+ const primaryPressableClass = `${primaryClass} fc-monarch-4bi fc-monarch-yEk`;
30
+ const primaryButtonClass = `${primaryPressableClass} fc-monarch-wsy fc-monarch-d0j ${outlineFocusClass}`;
31
+ // secondary *calendar content* (has muted color)
32
+ const secondaryClass = "fc-monarch-XMK fc-monarch-c3e";
33
+ const secondaryPressableClass = `${secondaryClass} fc-monarch-ISM fc-monarch-KwH ${outlineFocusClass}`;
34
+ // secondary *toolbar button* (neutral)
35
+ const secondaryButtonClass = `${mutedHoverPressableClass} fc-monarch-wsy fc-monarch-zOd ${outlineFocusClass} fc-monarch-07j`;
36
+ const secondaryButtonIconClass = `fc-monarch-XUJ fc-monarch-PVh fc-monarch-zn9 fc-monarch-Bpp`;
37
+ // tertiary
38
+ const tertiaryClass = "fc-monarch-4os fc-monarch-CCH";
39
+ const tertiaryPressableClass = `${tertiaryClass} fc-monarch-hbI fc-monarch-yo2`;
40
+ const tertiaryPressableGroupClass = `${tertiaryClass} fc-monarch-Yws fc-monarch-jc4 ${outlineFocusClass}`;
41
+ // interactive neutral foregrounds
42
+ const mutedFgPressableGroupClass = "fc-monarch-JMv fc-monarch-rih fc-monarch-8El";
43
+ // transparent resizer for mouse
44
+ const blockPointerResizerClass = "fc-monarch-1EY fc-monarch-pps fc-monarch-vs6";
45
+ const rowPointerResizerClass = `${blockPointerResizerClass} fc-monarch-AWB fc-monarch-hza`;
46
+ const columnPointerResizerClass = `${blockPointerResizerClass} fc-monarch-MaV fc-monarch-uuA`;
47
+ // circle resizer for touch
48
+ const blockTouchResizerClass = "fc-monarch-1EY fc-monarch-3wQ fc-monarch-wsy fc-monarch-lNM fc-monarch-MAH fc-monarch-AAA";
49
+ const rowTouchResizerClass = `${blockTouchResizerClass} fc-monarch-ERR fc-monarch-Dq8`;
50
+ const columnTouchResizerClass = `${blockTouchResizerClass} fc-monarch-1V6 fc-monarch-F99`;
51
+ const tallDayCellBottomClass = "fc-monarch-jgW";
52
+ const getShortDayCellBottomClass = (data) => core.joinClassNames(!data.isNarrow && "fc-monarch-toR");
53
+ const dayRowCommonClasses = {
54
+ /* Day Row > List-Item Event
55
+ ----------------------------------------------------------------------------------------------- */
56
+ listItemEventClass: (data) => core.joinClassNames("fc-monarch-Ika fc-monarch-7A6 fc-monarch-Fvv", data.isNarrow ? "fc-monarch-148" : "fc-monarch-cKZ"),
57
+ listItemEventBeforeClass: (data) => core.joinClassNames("fc-monarch-5JF", data.isNarrow ? "fc-monarch-Jzj" : "fc-monarch-Wga"),
58
+ listItemEventInnerClass: (data) => (data.isNarrow
59
+ ? `fc-monarch-z5u ${xxsTextClass}`
60
+ : "fc-monarch-2rx fc-monarch-a3B"),
61
+ listItemEventTimeClass: (data) => core.joinClassNames(data.isNarrow ? "fc-monarch-a7i" : "fc-monarch-C2j", "fc-monarch-TZ4 fc-monarch-pKG fc-monarch-1Zl"),
62
+ listItemEventTitleClass: (data) => core.joinClassNames(data.isNarrow ? "fc-monarch-oQ2" : "fc-monarch-aCI", "fc-monarch-DIS fc-monarch-TZ4 fc-monarch-pKG fc-monarch-OLq"),
63
+ /* Day Row > Row Event
64
+ ----------------------------------------------------------------------------------------------- */
65
+ rowEventClass: (data) => core.joinClassNames(data.isStart && "fc-monarch-qvL", data.isEnd && "fc-monarch-9hC"),
66
+ rowEventInnerClass: (data) => data.isNarrow ? "fc-monarch-z5u" : "fc-monarch-2rx",
67
+ /* Day Row > More-Link
68
+ ----------------------------------------------------------------------------------------------- */
69
+ rowMoreLinkClass: (data) => core.joinClassNames("fc-monarch-Ika fc-monarch-wsy fc-monarch-Fvv", data.isNarrow
70
+ ? "fc-monarch-148 fc-monarch-yF0"
71
+ : "fc-monarch-cKZ fc-monarch-d0j", mutedHoverPressableClass),
72
+ rowMoreLinkInnerClass: (data) => (data.isNarrow
73
+ ? `fc-monarch-oQ2 fc-monarch-z5u ${xxsTextClass}`
74
+ : "fc-monarch-aCI fc-monarch-2rx fc-monarch-a3B"),
75
+ };
76
+ const resourceDayHeaderClasses = {
77
+ dayHeaderInnerClass: "fc-monarch-vUo",
78
+ dayHeaderDividerClass: "fc-monarch-zi1 fc-monarch-jdl",
79
+ };
80
+ var index = core.createPlugin({
81
+ name: "@fullcalendar/theme-monarch",
82
+ optionDefaults: {
83
+ className: "fc-monarch-MAH fc-monarch-wsy fc-monarch-jdl fc-monarch-93y fc-monarch-pKG fc-monarch-R1q",
84
+ /* Toolbar
85
+ --------------------------------------------------------------------------------------------- */
86
+ toolbarClass: "fc-monarch-lqx fc-monarch-dl1 fc-monarch-1sP fc-monarch-dNl fc-monarch-XpK fc-monarch-N2M fc-monarch-wwb",
87
+ toolbarSectionClass: "fc-monarch-yi0 fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK fc-monarch-wwb",
88
+ toolbarTitleClass: "fc-monarch-AVD fc-monarch-DIS",
89
+ buttonGroupClass: (data) => core.joinClassNames("fc-monarch-AAA fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK", data.isSelectGroup && "fc-monarch-wsy fc-monarch-jdl"),
90
+ buttonClass: (data) => core.joinClassNames("fc-monarch-8cT fc-monarch-AAA fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK fc-monarch-9yp fc-monarch-Z9U", data.isIconOnly ? "fc-monarch-Eaq" : "fc-monarch-5su", data.inSelectGroup && "fc-monarch-CH7", (data.isIconOnly || (data.inSelectGroup && !data.isSelected))
91
+ ? unselectedButtonClass
92
+ : data.isSelected
93
+ ? selectedButtonClass
94
+ : data.isPrimary
95
+ ? primaryButtonClass
96
+ : secondaryButtonClass),
97
+ buttons: {
98
+ prev: {
99
+ iconContent: () => chevronDown(core.joinClassNames(secondaryButtonIconClass, "fc-monarch-z44 fc-monarch-keW"))
100
+ },
101
+ next: {
102
+ iconContent: () => chevronDown(core.joinClassNames(secondaryButtonIconClass, "fc-monarch-KxI fc-monarch-ZW3"))
103
+ },
104
+ prevYear: {
105
+ iconContent: () => chevronDoubleLeft(core.joinClassNames(secondaryButtonIconClass, "fc-monarch-asP"))
106
+ },
107
+ nextYear: {
108
+ iconContent: () => chevronDoubleLeft(core.joinClassNames(secondaryButtonIconClass, "fc-monarch-jmT fc-monarch-jY6"))
109
+ },
110
+ },
111
+ /* Abstract Event
112
+ --------------------------------------------------------------------------------------------- */
113
+ eventShortHeight: 50,
114
+ eventColor: "var(--fc-monarch-event)",
115
+ eventContrastColor: "var(--fc-monarch-event-contrast)",
116
+ eventClass: (data) => core.joinClassNames(data.isSelected
117
+ ? core.joinClassNames(outlineWidthClass, data.isDragging ? "fc-monarch-1kP" : "fc-monarch-tkw")
118
+ : outlineWidthFocusClass, outlineColorClass),
119
+ /* Background Event
120
+ --------------------------------------------------------------------------------------------- */
121
+ backgroundEventColor: "var(--fc-monarch-tertiary)",
122
+ backgroundEventClass: "fc-monarch-AhZ",
123
+ backgroundEventTitleClass: (data) => core.joinClassNames("fc-monarch-lMo fc-monarch-L1Y", data.isNarrow
124
+ ? `fc-monarch-aCI fc-monarch-End ${xxsTextClass}`
125
+ : "fc-monarch-Nca fc-monarch-8cT fc-monarch-a3B"),
126
+ /* List-Item Event
127
+ --------------------------------------------------------------------------------------------- */
128
+ listItemEventClass: (data) => core.joinClassNames("fc-monarch-XpK", data.isSelected
129
+ ? "fc-monarch-4Xm"
130
+ : data.isInteractive
131
+ ? mutedHoverPressableClass
132
+ : mutedHoverClass),
133
+ listItemEventBeforeClass: "fc-monarch-AAA fc-monarch-lNM",
134
+ listItemEventInnerClass: "fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK",
135
+ /* Block Event
136
+ --------------------------------------------------------------------------------------------- */
137
+ blockEventClass: (data) => core.joinClassNames("fc-monarch-bCs fc-monarch-eYX fc-monarch-d0j fc-monarch-DO7 fc-monarch-YjJ fc-monarch-Frw fc-monarch-vwH", data.isInteractive && "fc-monarch-st8", (!data.isSelected && data.isDragging) && "fc-monarch-iTG"),
138
+ blockEventInnerClass: "fc-monarch-i9F fc-monarch-cfp",
139
+ blockEventTimeClass: "fc-monarch-TZ4 fc-monarch-pKG",
140
+ blockEventTitleClass: "fc-monarch-TZ4 fc-monarch-pKG",
141
+ /* Row Event
142
+ --------------------------------------------------------------------------------------------- */
143
+ rowEventClass: (data) => core.joinClassNames("fc-monarch-Ika fc-monarch-JIC", data.isStart ? "fc-monarch-3J4 fc-monarch-kmj" : (!data.isNarrow && "fc-monarch-Mde"), data.isEnd ? "fc-monarch-USt fc-monarch-Skl" : (!data.isNarrow && "fc-monarch-FvP")),
144
+ rowEventBeforeClass: (data) => core.joinClassNames(data.isStartResizable && core.joinClassNames(data.isSelected ? rowTouchResizerClass : rowPointerResizerClass, "fc-monarch-11a"), (!data.isStart && !data.isNarrow) && "fc-monarch-1EY fc-monarch-0fm fc-monarch-hza fc-monarch-DGM fc-monarch-Uvq"),
145
+ rowEventBeforeContent: (data) => ((!data.isStart && !data.isNarrow) ? filledRightTriangle("fc-monarch-Pwv fc-monarch-jmT fc-monarch-jY6 fc-monarch-Mra") : preact.createElement(preact.Fragment, null)),
146
+ rowEventAfterClass: (data) => core.joinClassNames(data.isEndResizable && core.joinClassNames(data.isSelected ? rowTouchResizerClass : rowPointerResizerClass, "fc-monarch-Tuc"), (!data.isEnd && !data.isNarrow) && "fc-monarch-1EY fc-monarch-eDA fc-monarch-hza fc-monarch-DGM fc-monarch-Uvq"),
147
+ rowEventAfterContent: (data) => ((!data.isEnd && !data.isNarrow) ? filledRightTriangle("fc-monarch-Pwv fc-monarch-asP fc-monarch-Mra") : preact.createElement(preact.Fragment, null)),
148
+ rowEventInnerClass: (data) => core.joinClassNames("fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK", data.isNarrow ? xxsTextClass : "fc-monarch-a3B"),
149
+ rowEventTimeClass: (data) => core.joinClassNames("fc-monarch-DIS fc-monarch-1Zl", data.isNarrow ? "fc-monarch-a7i" : "fc-monarch-C2j"),
150
+ rowEventTitleClass: (data) => core.joinClassNames("fc-monarch-OLq", data.isNarrow ? "fc-monarch-oQ2" : "fc-monarch-aCI"),
151
+ /* Column Event
152
+ --------------------------------------------------------------------------------------------- */
153
+ columnEventTitleSticky: false,
154
+ columnEventClass: (data) => core.joinClassNames(`fc-monarch-1Wx fc-monarch-A3h fc-monarch-SC5`, data.isStart && "fc-monarch-ku3 fc-monarch-Z7Q", data.isEnd && "fc-monarch-Ika fc-monarch-zi1 fc-monarch-2qh"),
155
+ columnEventBeforeClass: (data) => core.joinClassNames(data.isStartResizable && core.joinClassNames(data.isSelected ? columnTouchResizerClass : columnPointerResizerClass, "fc-monarch-YDC")),
156
+ columnEventAfterClass: (data) => core.joinClassNames(data.isEndResizable && core.joinClassNames(data.isSelected ? columnTouchResizerClass : columnPointerResizerClass, "fc-monarch-fJL")),
157
+ columnEventInnerClass: (data) => core.joinClassNames("fc-monarch-dl1", data.isShort
158
+ ? "fc-monarch-1sP fc-monarch-XpK fc-monarch-iS4 fc-monarch-NWN"
159
+ : core.joinClassNames("fc-monarch-sgX", data.isNarrow ? "fc-monarch-aCI fc-monarch-2rx" : "fc-monarch-Nca fc-monarch-Jhn"), (data.isShort || data.isNarrow) ? xxsTextClass : "fc-monarch-a3B"),
160
+ columnEventTimeClass: (data) => core.joinClassNames("fc-monarch-NPw fc-monarch-OLq", !data.isShort && (data.isNarrow ? "fc-monarch-8ub" : "fc-monarch-x96")),
161
+ columnEventTitleClass: (data) => core.joinClassNames("fc-monarch-1Zl", !data.isShort && (data.isNarrow ? "fc-monarch-2rx" : "fc-monarch-Jhn")),
162
+ /* More-Link
163
+ --------------------------------------------------------------------------------------------- */
164
+ moreLinkClass: `${outlineWidthFocusClass} ${outlineColorClass}`,
165
+ moreLinkInnerClass: "fc-monarch-TZ4 fc-monarch-pKG",
166
+ columnMoreLinkClass: `fc-monarch-Ika fc-monarch-wsy fc-monarch-d0j fc-monarch-4MR fc-monarch-Fvv ${strongSolidPressableClass} fc-monarch-vwH fc-monarch-A3h fc-monarch-SC5`,
167
+ columnMoreLinkInnerClass: (data) => (data.isNarrow
168
+ ? `fc-monarch-KUX ${xxsTextClass}`
169
+ : "fc-monarch-iS4 fc-monarch-a3B"),
170
+ /* Day Header
171
+ --------------------------------------------------------------------------------------------- */
172
+ dayHeaderAlign: "center",
173
+ dayHeaderClass: (data) => core.joinClassNames("fc-monarch-E9P", data.isMajor && "fc-monarch-wsy fc-monarch-zOd", (data.isDisabled && !data.inPopover) && "fc-monarch-VTw"),
174
+ dayHeaderInnerClass: "fc-monarch-bCs fc-monarch-9Rk fc-monarch-fn8 fc-monarch-dl1 fc-monarch-sgX fc-monarch-XpK fc-monarch-hS8",
175
+ dayHeaderContent: (data) => (preact.createElement(preact.Fragment, null,
176
+ data.weekdayText && (preact.createElement("div", { className: "fc-monarch-a3B fc-monarch-XHd fc-monarch-JMv" }, data.weekdayText)),
177
+ data.dayNumberText && (preact.createElement("div", { className: core.joinClassNames("fc-monarch-XE0 fc-monarch-AAA fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK fc-monarch-E9P", data.isNarrow
178
+ ? "fc-monarch-IY5 fc-monarch-3zw"
179
+ : "fc-monarch-n6w fc-monarch-9ZS", data.isToday
180
+ ? (data.hasNavLink ? tertiaryPressableGroupClass : tertiaryClass)
181
+ : (data.hasNavLink && mutedHoverPressableGroupClass), data.hasNavLink && `${outlineWidthGroupFocusClass} ${outlineColorClass}`) }, data.dayNumberText)))),
182
+ /* Day Cell
183
+ --------------------------------------------------------------------------------------------- */
184
+ dayCellClass: (data) => core.joinClassNames("fc-monarch-wsy", data.isMajor ? "fc-monarch-zOd" : "fc-monarch-jdl", data.isDisabled && "fc-monarch-VTw"),
185
+ dayCellTopClass: (data) => core.joinClassNames("fc-monarch-dl1 fc-monarch-1sP", data.isNarrow
186
+ ? "fc-monarch-LMv fc-monarch-toR"
187
+ : "fc-monarch-E9P fc-monarch-84e"),
188
+ dayCellTopInnerClass: (data) => core.joinClassNames("fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK fc-monarch-E9P fc-monarch-TZ4 fc-monarch-AAA", data.isNarrow
189
+ ? `fc-monarch-TT0 fc-monarch-oM6 ${xxsTextClass}`
190
+ : "fc-monarch-cGD fc-monarch-TFV fc-monarch-9yp", data.text === data.dayNumberText
191
+ ? (data.isNarrow ? "fc-monarch-79F" : "fc-monarch-ilz")
192
+ : (data.isNarrow ? "fc-monarch-aCI" : "fc-monarch-Nca"), data.isToday
193
+ ? (data.hasNavLink ? tertiaryPressableClass : tertiaryClass)
194
+ : (data.hasNavLink && mutedHoverPressableClass), data.isOther && "fc-monarch-bZ0", data.monthText && "fc-monarch-DIS"),
195
+ dayCellInnerClass: (data) => core.joinClassNames(data.inPopover && "fc-monarch-3N5"),
196
+ /* Popover
197
+ --------------------------------------------------------------------------------------------- */
198
+ dayPopoverFormat: { day: "numeric", weekday: "short" },
199
+ popoverClass: "fc-monarch-wsy fc-monarch-jdl fc-monarch-hny fc-monarch-pKG fc-monarch-bvX fc-monarch-9Mx fc-monarch-sT2 fc-monarch-1kP fc-monarch-xcS fc-monarch-R1q",
200
+ popoverCloseClass: `fc-monarch-bCs fc-monarch-1EY fc-monarch-SKv fc-monarch-aYN fc-monarch-n6w fc-monarch-AAA fc-monarch-XpK fc-monarch-E9P ${mutedHoverPressableClass} ${outlineWidthFocusClass} ${outlineColorClass} fc-monarch-Z9U`,
201
+ popoverCloseContent: () => x(`fc-monarch-XUJ ${mutedFgPressableGroupClass}`),
202
+ /* Lane
203
+ --------------------------------------------------------------------------------------------- */
204
+ dayLaneClass: (data) => core.joinClassNames("fc-monarch-wsy", data.isMajor ? "fc-monarch-zOd" : "fc-monarch-jdl", data.isDisabled && "fc-monarch-VTw"),
205
+ dayLaneInnerClass: (data) => (data.isStack
206
+ ? "fc-monarch-gMS"
207
+ : data.isNarrow ? "fc-monarch-148" : "fc-monarch-Jzj fc-monarch-B3G"),
208
+ slotLaneClass: (data) => core.joinClassNames("fc-monarch-wsy fc-monarch-jdl", data.isMinor && "fc-monarch-TN2"),
209
+ /* List Day
210
+ --------------------------------------------------------------------------------------------- */
211
+ listDayFormat: { day: "numeric" },
212
+ listDaySideFormat: { month: "short", weekday: "short", forceCommas: true },
213
+ listDayClass: "fc-monarch-iCr fc-monarch-jdl fc-monarch-dl1 fc-monarch-1sP fc-monarch-EF4",
214
+ listDayHeaderClass: "fc-monarch-bvX fc-monarch-yi0 fc-monarch-CjM fc-monarch-0i7 fc-monarch-l5b fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK fc-monarch-tgZ",
215
+ listDayHeaderInnerClass: (data) => (!data.level
216
+ ? core.joinClassNames("fc-monarch-46Q fc-monarch-AAA fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK fc-monarch-9ZS", data.text === data.dayNumberText
217
+ ? "fc-monarch-Dhe fc-monarch-E9P"
218
+ : "fc-monarch-Apf", data.isToday
219
+ ? (data.hasNavLink ? tertiaryPressableClass : tertiaryClass)
220
+ : (data.hasNavLink && mutedHoverPressableClass))
221
+ : core.joinClassNames("fc-monarch-a3B fc-monarch-XHd", data.hasNavLink && "fc-monarch-Eu0")),
222
+ listDayEventsClass: "fc-monarch-1El fc-monarch-2KU fc-monarch-dl6 fc-monarch-NWN",
223
+ /* Single Month (in Multi-Month)
224
+ --------------------------------------------------------------------------------------------- */
225
+ singleMonthClass: "fc-monarch-jD5",
226
+ singleMonthHeaderClass: (data) => core.joinClassNames(data.isSticky && "fc-monarch-zi1 fc-monarch-jdl fc-monarch-MAH", data.colCount > 1 ? "fc-monarch-lTO" : "fc-monarch-Jhn", "fc-monarch-XpK"),
227
+ singleMonthHeaderInnerClass: (data) => core.joinClassNames("fc-monarch-Apf fc-monarch-Jhn fc-monarch-AAA fc-monarch-1Po fc-monarch-DIS", data.hasNavLink && mutedHoverPressableClass),
228
+ /* Misc Table
229
+ --------------------------------------------------------------------------------------------- */
230
+ tableHeaderClass: (data) => core.joinClassNames(data.isSticky && "fc-monarch-zi1 fc-monarch-jdl fc-monarch-MAH"),
231
+ fillerClass: (data) => core.joinClassNames("fc-monarch-lMo fc-monarch-wsy", data.isHeader ? "fc-monarch-d0j" : "fc-monarch-jdl"),
232
+ dayNarrowWidth: 100,
233
+ dayHeaderRowClass: "fc-monarch-wsy fc-monarch-jdl",
234
+ dayRowClass: "fc-monarch-wsy fc-monarch-jdl",
235
+ /* Misc Content
236
+ --------------------------------------------------------------------------------------------- */
237
+ navLinkClass: `${outlineWidthFocusClass} ${outlineColorClass}`,
238
+ inlineWeekNumberClass: (data) => core.joinClassNames("fc-monarch-1EY fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK fc-monarch-TZ4", data.isNarrow
239
+ ? `fc-monarch-2ik fc-monarch-rbS fc-monarch-SEP fc-monarch-9ml fc-monarch-Utm fc-monarch-dOc ${xxsTextClass}`
240
+ : "fc-monarch-1b8 fc-monarch-tHH fc-monarch-TFV fc-monarch-Nca fc-monarch-AAA fc-monarch-9yp", data.hasNavLink
241
+ ? secondaryPressableClass
242
+ : secondaryClass),
243
+ nonBusinessClass: "fc-monarch-VTw",
244
+ highlightClass: "fc-monarch-PHz",
245
+ nowIndicatorLineClass: "fc-monarch-CH7 fc-monarch-qQW fc-monarch-nKh",
246
+ nowIndicatorDotClass: "fc-monarch-aAW fc-monarch-Vpk fc-monarch-nKh fc-monarch-63n fc-monarch-AAA fc-monarch-GBJ fc-monarch-SC5",
247
+ /* Resource Day Header
248
+ --------------------------------------------------------------------------------------------- */
249
+ resourceDayHeaderAlign: "center",
250
+ resourceDayHeaderClass: (data) => core.joinClassNames("fc-monarch-wsy", data.isMajor ? "fc-monarch-zOd" : "fc-monarch-jdl"),
251
+ resourceDayHeaderInnerClass: (data) => core.joinClassNames("fc-monarch-3N5 fc-monarch-dl1 fc-monarch-sgX", data.isNarrow ? "fc-monarch-a3B" : "fc-monarch-9yp"),
252
+ /* Resource Data Grid
253
+ --------------------------------------------------------------------------------------------- */
254
+ resourceColumnHeaderClass: "fc-monarch-wsy fc-monarch-jdl fc-monarch-E9P",
255
+ resourceColumnHeaderInnerClass: "fc-monarch-3N5 fc-monarch-9yp",
256
+ resourceColumnResizerClass: "fc-monarch-1EY fc-monarch-AWB fc-monarch-4Tv fc-monarch-dnf",
257
+ resourceGroupHeaderClass: "fc-monarch-wsy fc-monarch-jdl fc-monarch-VTw",
258
+ resourceGroupHeaderInnerClass: "fc-monarch-3N5 fc-monarch-9yp",
259
+ resourceCellClass: "fc-monarch-wsy fc-monarch-jdl",
260
+ resourceCellInnerClass: "fc-monarch-3N5 fc-monarch-9yp",
261
+ resourceIndentClass: "fc-monarch-Wga fc-monarch-p9t fc-monarch-E9P",
262
+ resourceExpanderClass: `fc-monarch-bCs fc-monarch-iS4 fc-monarch-AAA ${mutedHoverPressableClass} ${outlineWidthFocusClass} ${outlineColorClass}`,
263
+ resourceExpanderContent: (data) => chevronDown(core.joinClassNames(`fc-monarch-vnf ${mutedFgPressableGroupClass}`, !data.isExpanded && "fc-monarch-KxI fc-monarch-ZW3")),
264
+ resourceHeaderRowClass: "fc-monarch-wsy fc-monarch-jdl",
265
+ resourceRowClass: "fc-monarch-wsy fc-monarch-jdl",
266
+ resourceColumnDividerClass: "fc-monarch-USt fc-monarch-zOd",
267
+ /* Timeline Lane
268
+ --------------------------------------------------------------------------------------------- */
269
+ resourceGroupLaneClass: "fc-monarch-wsy fc-monarch-jdl fc-monarch-VTw",
270
+ resourceLaneClass: "fc-monarch-wsy fc-monarch-jdl",
271
+ resourceLaneBottomClass: (data) => data.options.eventOverlap && "fc-monarch-uuA",
272
+ timelineBottomClass: "fc-monarch-uuA",
273
+ },
274
+ views: {
275
+ dayGrid: Object.assign(Object.assign({}, dayRowCommonClasses), { dayCellBottomClass: getShortDayCellBottomClass }),
276
+ multiMonth: Object.assign(Object.assign({}, dayRowCommonClasses), { dayCellBottomClass: getShortDayCellBottomClass, tableBodyClass: "fc-monarch-wsy fc-monarch-jdl fc-monarch-Fvv", dayHeaderInnerClass: (data) => !data.inPopover && "fc-monarch-ohi" }),
277
+ timeGrid: Object.assign(Object.assign({}, dayRowCommonClasses), { dayCellBottomClass: tallDayCellBottomClass,
278
+ /* TimeGrid > Week Number Header
279
+ ------------------------------------------------------------------------------------------- */
280
+ weekNumberHeaderClass: "fc-monarch-XpK fc-monarch-LMv", weekNumberHeaderInnerClass: (data) => core.joinClassNames("fc-monarch-Wga fc-monarch-2tF fc-monarch-dl1 fc-monarch-1sP fc-monarch-XpK fc-monarch-AAA", data.options.dayMinWidth !== undefined && "fc-monarch-KYn", data.isNarrow
281
+ ? "fc-monarch-oM6 fc-monarch-ZrE fc-monarch-a3B"
282
+ : "fc-monarch-TFV fc-monarch-Nca fc-monarch-9yp", data.hasNavLink
283
+ ? secondaryPressableClass
284
+ : secondaryClass),
285
+ /* TimeGrid > All-Day Header
286
+ ------------------------------------------------------------------------------------------- */
287
+ allDayHeaderClass: "fc-monarch-XpK fc-monarch-LMv", allDayHeaderInnerClass: (data) => core.joinClassNames("fc-monarch-3N5 fc-monarch-jm6 fc-monarch-2HE", data.isNarrow ? xxsTextClass : "fc-monarch-9yp"), allDayDividerClass: "fc-monarch-zi1 fc-monarch-jdl",
288
+ /* TimeGrid > Slot Header
289
+ ------------------------------------------------------------------------------------------- */
290
+ slotHeaderClass: (data) => core.joinClassNames("fc-monarch-hza fc-monarch-OBr fc-monarch-LMv fc-monarch-wsy fc-monarch-jdl", data.isMinor && "fc-monarch-TN2"), slotHeaderInnerClass: (data) => core.joinClassNames("fc-monarch-eYX fc-monarch-IjS fc-monarch-ja5 fc-monarch-dl6", data.isNarrow
291
+ ? `fc-monarch-uqG ${xxsTextClass}`
292
+ : "fc-monarch-Fn5 fc-monarch-9yp", data.isFirst && "fc-monarch-pps"), slotHeaderDividerClass: (data) => core.joinClassNames("fc-monarch-USt", (data.isHeader && data.options.dayMinWidth === undefined)
293
+ ? "fc-monarch-d0j"
294
+ : "fc-monarch-jdl") }),
295
+ list: {
296
+ /* List-View > List-Item Event
297
+ ------------------------------------------------------------------------------------------- */
298
+ listItemEventClass: "fc-monarch-bCs fc-monarch-3N5 fc-monarch-NYF fc-monarch-tgZ",
299
+ listItemEventBeforeClass: "fc-monarch-fn8 fc-monarch-yDA",
300
+ listItemEventInnerClass: "fc-monarch-tgZ fc-monarch-9yp",
301
+ listItemEventTimeClass: "fc-monarch-yi0 fc-monarch-roZ fc-monarch-aHX fc-monarch-TZ4 fc-monarch-pKG fc-monarch-IPx",
302
+ listItemEventTitleClass: (data) => core.joinClassNames("fc-monarch-1El fc-monarch-2KU fc-monarch-TZ4 fc-monarch-pKG", data.event.url && "fc-monarch-Ogp"),
303
+ /* No-Events Screen
304
+ ------------------------------------------------------------------------------------------- */
305
+ noEventsClass: "fc-monarch-1El fc-monarch-dl1 fc-monarch-sgX fc-monarch-XpK fc-monarch-E9P",
306
+ noEventsInnerClass: "fc-monarch-P9h",
307
+ },
308
+ resourceTimeGrid: resourceDayHeaderClasses,
309
+ resourceDayGrid: resourceDayHeaderClasses,
310
+ timeline: {
311
+ /* Timeline > Row Event
312
+ ------------------------------------------------------------------------------------------- */
313
+ rowEventClass: (data) => core.joinClassNames(data.isEnd && "fc-monarch-9hC"),
314
+ rowEventInnerClass: (data) => data.options.eventOverlap ? "fc-monarch-Jhn" : "fc-monarch-dl6",
315
+ /* Timeline > More-Link
316
+ ------------------------------------------------------------------------------------------- */
317
+ rowMoreLinkClass: `fc-monarch-9hC fc-monarch-Ika fc-monarch-Fvv fc-monarch-wsy fc-monarch-d0j fc-monarch-4MR ${strongSolidPressableClass} fc-monarch-vwH`,
318
+ rowMoreLinkInnerClass: "fc-monarch-iS4 fc-monarch-a3B",
319
+ /* Timeline > Slot Header
320
+ ------------------------------------------------------------------------------------------- */
321
+ slotHeaderSticky: "0.5rem",
322
+ slotHeaderAlign: (data) => ((data.level || data.isTime)
323
+ ? "start"
324
+ : "center"),
325
+ slotHeaderClass: (data) => core.joinClassNames("fc-monarch-wsy", data.level
326
+ ? "fc-monarch-d0j fc-monarch-Bsl"
327
+ : core.joinClassNames("fc-monarch-jdl", data.isTime
328
+ ? "fc-monarch-uuA fc-monarch-OBr fc-monarch-LMv"
329
+ : "fc-monarch-E9P")),
330
+ slotHeaderInnerClass: (data) => core.joinClassNames("fc-monarch-9yp", data.level
331
+ ? core.joinClassNames("fc-monarch-cJ3 fc-monarch-Nca fc-monarch-Jhn fc-monarch-AAA", data.hasNavLink
332
+ ? secondaryPressableClass
333
+ : secondaryClass)
334
+ : core.joinClassNames("fc-monarch-Nca", data.isTime
335
+ ? core.joinClassNames("fc-monarch-b0n fc-monarch-eYX fc-monarch-4oC", data.isFirst && "fc-monarch-pps")
336
+ : "fc-monarch-dl6", data.hasNavLink && "fc-monarch-Eu0")),
337
+ slotHeaderDividerClass: "fc-monarch-zi1 fc-monarch-jdl",
338
+ },
339
+ }
340
+ });
341
+ /* SVGs
342
+ ------------------------------------------------------------------------------------------------- */
343
+ function chevronDown(className) {
344
+ return preact.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, width: "20", height: "20", viewBox: "80 -880 800 800", fill: "currentColor" },
345
+ preact.createElement("path", { d: "M480-304 240-544l56-56 184 184 184-184 56 56-240 240Z" }));
346
+ }
347
+ function chevronDoubleLeft(className) {
348
+ return preact.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, width: "20", height: "20", viewBox: "80 -880 800 800", fill: "currentColor" },
349
+ preact.createElement("path", { d: "M440-240 200-480l240-240 56 56-183 184 183 184-56 56Zm264 0L464-480l240-240 56 56-183 184 183 184-56 56Z" }));
350
+ }
351
+ function x(className) {
352
+ return preact.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, width: "20", height: "20", viewBox: "80 -880 800 800", fill: "currentColor" },
353
+ preact.createElement("path", { d: "m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" }));
354
+ }
355
+ function filledRightTriangle(className) {
356
+ return (preact.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 800 2200", preserveAspectRatio: "none", className: className },
357
+ preact.createElement("polygon", { points: "0,0 66,0 800,1100 66,2200 0,2200", fill: "currentColor" })));
358
+ }
359
+
360
+ exports["default"] = index;
package/esm/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { PluginDef } from '@fullcalendar/core';
2
+
3
+ declare const _default: PluginDef;
4
+ //# sourceMappingURL=index.d.ts.map
5
+
6
+ export { _default as default };