@epilot/zenith-react 0.2.0-next.0 → 0.2.0-next.3
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/dist/components/accordion/accordion.js +57 -48
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +120 -92
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar-group.js +38 -35
- package/dist/components/avatar/avatar-group.js.map +1 -1
- package/dist/components/avatar/avatar.js +78 -71
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +60 -55
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +99 -54
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +87 -77
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +36 -32
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/callout/callout.js +105 -98
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/card/card.js +62 -52
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +22 -19
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/code-block/code-block.js +135 -123
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-editor/code-editor.js +276 -260
- package/dist/components/code-editor/code-editor.js.map +1 -1
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +62 -56
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
- package/dist/components/command/command.js +116 -105
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/data-table/data-table-body.js +38 -34
- package/dist/components/data-table/data-table-body.js.map +1 -1
- package/dist/components/data-table/data-table-column-header.js +30 -26
- package/dist/components/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/data-table/data-table-column-order.js +79 -73
- package/dist/components/data-table/data-table-column-order.js.map +1 -1
- package/dist/components/data-table/data-table-column-visibility.js +25 -22
- package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
- package/dist/components/data-table/data-table-content.js +47 -44
- package/dist/components/data-table/data-table-content.js.map +1 -1
- package/dist/components/data-table/data-table-error.js +36 -32
- package/dist/components/data-table/data-table-error.js.map +1 -1
- package/dist/components/data-table/data-table-footer.js +10 -8
- package/dist/components/data-table/data-table-footer.js.map +1 -1
- package/dist/components/data-table/data-table-header-draggable.js +40 -36
- package/dist/components/data-table/data-table-header-draggable.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +113 -99
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-loading.js +21 -18
- package/dist/components/data-table/data-table-loading.js.map +1 -1
- package/dist/components/data-table/data-table-resize-handle.js +13 -11
- package/dist/components/data-table/data-table-resize-handle.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +71 -59
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/data-table/data-table-toolbar.js +9 -7
- package/dist/components/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/data-table/data-table.js +48 -46
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +173 -164
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-range-picker/range-calendar.js +36 -34
- package/dist/components/date-range-picker/range-calendar.js.map +1 -1
- package/dist/components/date-time-picker/calendar.js +290 -272
- package/dist/components/date-time-picker/calendar.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +22 -20
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-panel.js +126 -120
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +42 -40
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/date-time-picker/time-picker.js +95 -87
- package/dist/components/date-time-picker/time-picker.js.map +1 -1
- package/dist/components/dialog/dialog.js +115 -95
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +144 -109
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +141 -112
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +196 -176
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field.js +137 -126
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/list/list.js +237 -219
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +129 -116
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +55 -51
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +53 -36
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio.js +38 -34
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +38 -35
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +166 -151
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +93 -85
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +149 -128
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js +19 -16
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +34 -30
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/spinner/spinner.js +22 -17
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/surface/surface.js +25 -22
- package/dist/components/surface/surface.js.map +1 -1
- package/dist/components/switch/switch.js +66 -57
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +139 -129
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/table/table.js +104 -90
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.js +206 -128
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/toast/toast.js +112 -100
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle.js +32 -30
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +59 -46
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/lib/clear-button.js +18 -17
- package/dist/lib/clear-button.js.map +1 -1
- package/dist/styles/host-reset.js +47 -0
- package/dist/styles/host-reset.js.map +1 -0
- package/dist/styles/overlay-layer.js +5 -0
- package/dist/styles/overlay-layer.js.map +1 -0
- package/dist/tokens.json +1 -1
- package/package.json +8 -6
- package/scripts/migration-diagnostics.mjs +42 -7
- package/scripts/migration-sweep.mjs +9 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as n, Fragment as ue } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { createElement as
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { makeZenithStyles as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
3
|
+
import { createElement as F } from "react";
|
|
4
|
+
import { mergeClasses as u, SLOT_ATTR as i, shorthands as l } from "@epilot/zenith-runtime/v1";
|
|
5
|
+
import { Button as ae } from "../button/button.js";
|
|
6
|
+
import { makeZenithStyles as Xe } from "../../styles/make-styles.js";
|
|
7
|
+
import { nativeControl as ne, boxModel as s } from "../../styles/host-reset.js";
|
|
8
|
+
import { leadingSm as X, textSm as _, spacingElement2 as Y, grayA12 as I, accentA3 as _e, accent3 as Ue, accentSolidHover as U, fontWeightSemibold as L, accentContrast as V, accentSolid as q, radiusMd as R, grayA8 as Ve, accentA11 as me, grayA4 as ye, grayA11 as fe, fontWeightMedium as pe, leadingXs as be, textXs as ke, spacingElement1 as Be, grayA3 as qe } from "../../tokens/index.js";
|
|
9
|
+
import { getWeekDays as Je, getCalendarDays as Ke, getMonthNames as Qe, goToPreviousMonth as et, goToNextMonth as tt, adjustTimeIfPast as Ce, isDateDisabled as we, formatMonth as at, getWeekLabel as nt, isDayInCurrentMonth as Me, getWeekNumber as Re, isDaySelected as rt, isDayToday as ot, isDateInRange as dt, normalizeRange as lt, getDecadeStart as st } from "./date-time-picker-utils.js";
|
|
10
|
+
import { isSameDay as re } from "../../vendor/.bun/date-fns@4.1.0/vendor/date-fns/isSameDay.js";
|
|
11
|
+
const it = (A) => /* @__PURE__ */ n(
|
|
11
12
|
"svg",
|
|
12
13
|
{
|
|
13
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15,10 +16,10 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
15
16
|
viewBox: "0 -960 960 960",
|
|
16
17
|
width: "16px",
|
|
17
18
|
fill: "currentColor",
|
|
18
|
-
...
|
|
19
|
+
...A,
|
|
19
20
|
children: /* @__PURE__ */ n("path", { d: "M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z" })
|
|
20
21
|
}
|
|
21
|
-
),
|
|
22
|
+
), ct = (A) => /* @__PURE__ */ n(
|
|
22
23
|
"svg",
|
|
23
24
|
{
|
|
24
25
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -26,41 +27,44 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
26
27
|
viewBox: "0 -960 960 960",
|
|
27
28
|
width: "16px",
|
|
28
29
|
fill: "currentColor",
|
|
29
|
-
...
|
|
30
|
+
...A,
|
|
30
31
|
children: /* @__PURE__ */ n("path", { d: "M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" })
|
|
31
32
|
}
|
|
32
|
-
),
|
|
33
|
+
), ht = Xe({
|
|
33
34
|
root: {
|
|
35
|
+
...s,
|
|
34
36
|
width: "100%"
|
|
35
37
|
},
|
|
36
38
|
header: {
|
|
37
39
|
display: "flex",
|
|
38
40
|
alignItems: "center",
|
|
39
41
|
justifyContent: "space-between",
|
|
40
|
-
marginBottom:
|
|
42
|
+
marginBottom: Y
|
|
41
43
|
},
|
|
42
44
|
buttonSpacer: {
|
|
45
|
+
...s,
|
|
43
46
|
width: "1.75rem",
|
|
44
47
|
height: "1.75rem"
|
|
45
48
|
},
|
|
46
49
|
headerCenter: {
|
|
47
50
|
display: "flex",
|
|
48
51
|
alignItems: "center",
|
|
49
|
-
...l.gap(
|
|
52
|
+
...l.gap(Be)
|
|
50
53
|
},
|
|
51
54
|
headerBtn: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
...ne,
|
|
56
|
+
fontWeight: L,
|
|
57
|
+
fontSize: _,
|
|
58
|
+
lineHeight: X,
|
|
59
|
+
color: I,
|
|
60
|
+
backgroundColor: qe,
|
|
57
61
|
":hover": {
|
|
58
|
-
backgroundColor:
|
|
62
|
+
backgroundColor: ye
|
|
59
63
|
},
|
|
60
64
|
transitionProperty: "background-color, color",
|
|
61
65
|
transitionDuration: "150ms",
|
|
62
66
|
cursor: "pointer",
|
|
63
|
-
...l.padding("0.25rem",
|
|
67
|
+
...l.padding("0.25rem", Y),
|
|
64
68
|
...l.borderRadius(R),
|
|
65
69
|
...l.border("0"),
|
|
66
70
|
outlineStyle: "none"
|
|
@@ -69,11 +73,12 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
69
73
|
textTransform: "capitalize"
|
|
70
74
|
},
|
|
71
75
|
decadeLabel: {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
...s,
|
|
77
|
+
fontWeight: L,
|
|
78
|
+
fontSize: _,
|
|
79
|
+
lineHeight: X,
|
|
80
|
+
color: I,
|
|
81
|
+
...l.padding("0.25rem", Y)
|
|
77
82
|
},
|
|
78
83
|
grid: {
|
|
79
84
|
display: "grid",
|
|
@@ -85,41 +90,45 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
85
90
|
gridTemplateColumns: "auto repeat(7, minmax(0, 1fr))"
|
|
86
91
|
},
|
|
87
92
|
gridRange: {
|
|
88
|
-
rowGap:
|
|
93
|
+
rowGap: Be,
|
|
89
94
|
columnGap: "0"
|
|
90
95
|
},
|
|
91
96
|
weekLabel: {
|
|
97
|
+
...s,
|
|
92
98
|
display: "flex",
|
|
93
99
|
alignItems: "center",
|
|
94
100
|
justifyContent: "center",
|
|
95
|
-
fontSize:
|
|
96
|
-
lineHeight:
|
|
97
|
-
fontWeight:
|
|
98
|
-
color:
|
|
101
|
+
fontSize: ke,
|
|
102
|
+
lineHeight: be,
|
|
103
|
+
fontWeight: pe,
|
|
104
|
+
color: fe,
|
|
99
105
|
height: "1.75rem",
|
|
100
106
|
width: "2rem"
|
|
101
107
|
},
|
|
102
108
|
weekNumber: {
|
|
109
|
+
...s,
|
|
103
110
|
display: "flex",
|
|
104
111
|
alignItems: "center",
|
|
105
112
|
justifyContent: "center",
|
|
106
|
-
fontSize:
|
|
107
|
-
lineHeight:
|
|
108
|
-
fontWeight:
|
|
109
|
-
color:
|
|
113
|
+
fontSize: ke,
|
|
114
|
+
lineHeight: be,
|
|
115
|
+
fontWeight: pe,
|
|
116
|
+
color: fe,
|
|
110
117
|
height: "2rem",
|
|
111
118
|
width: "2rem"
|
|
112
119
|
},
|
|
113
120
|
cellPlaceholder: {
|
|
121
|
+
...s,
|
|
114
122
|
height: "2rem",
|
|
115
123
|
width: "2rem"
|
|
116
124
|
},
|
|
117
125
|
dayBtn: {
|
|
126
|
+
...ne,
|
|
118
127
|
display: "flex",
|
|
119
128
|
alignItems: "center",
|
|
120
129
|
justifyContent: "center",
|
|
121
|
-
fontSize:
|
|
122
|
-
lineHeight:
|
|
130
|
+
fontSize: _,
|
|
131
|
+
lineHeight: X,
|
|
123
132
|
transitionProperty: "background-color, color",
|
|
124
133
|
transitionDuration: "150ms",
|
|
125
134
|
cursor: "pointer",
|
|
@@ -129,6 +138,7 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
129
138
|
outlineStyle: "none"
|
|
130
139
|
},
|
|
131
140
|
dayBtnSingle: {
|
|
141
|
+
...s,
|
|
132
142
|
...l.borderRadius(R)
|
|
133
143
|
},
|
|
134
144
|
dayBtnTransparent: {
|
|
@@ -136,29 +146,29 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
136
146
|
},
|
|
137
147
|
dayBtnHover: {
|
|
138
148
|
":hover": {
|
|
139
|
-
backgroundColor:
|
|
149
|
+
backgroundColor: ye
|
|
140
150
|
}
|
|
141
151
|
},
|
|
142
152
|
dayBtnToday: {
|
|
143
|
-
color:
|
|
153
|
+
color: me,
|
|
144
154
|
textDecorationLine: "underline",
|
|
145
155
|
textUnderlineOffset: "4px",
|
|
146
156
|
textDecorationThickness: "1.5px",
|
|
147
|
-
textDecorationColor:
|
|
157
|
+
textDecorationColor: me
|
|
148
158
|
},
|
|
149
159
|
dayBtnSelected: {
|
|
150
|
-
fontWeight:
|
|
151
|
-
backgroundColor:
|
|
152
|
-
color:
|
|
160
|
+
fontWeight: L,
|
|
161
|
+
backgroundColor: q,
|
|
162
|
+
color: V,
|
|
153
163
|
":hover": {
|
|
154
|
-
backgroundColor:
|
|
164
|
+
backgroundColor: U
|
|
155
165
|
}
|
|
156
166
|
},
|
|
157
167
|
dayBtnOutOfMonth: {
|
|
158
|
-
color:
|
|
168
|
+
color: Ve
|
|
159
169
|
},
|
|
160
170
|
dayBtnInMonth: {
|
|
161
|
-
color:
|
|
171
|
+
color: I
|
|
162
172
|
},
|
|
163
173
|
dayBtnDisabled: {
|
|
164
174
|
opacity: 0.5,
|
|
@@ -166,57 +176,64 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
166
176
|
},
|
|
167
177
|
// Range styles
|
|
168
178
|
dayBtnRangeSingleDay: {
|
|
179
|
+
...s,
|
|
169
180
|
...l.borderRadius(R),
|
|
170
|
-
backgroundColor:
|
|
171
|
-
color:
|
|
172
|
-
fontWeight:
|
|
181
|
+
backgroundColor: q,
|
|
182
|
+
color: V,
|
|
183
|
+
fontWeight: L,
|
|
173
184
|
":hover": {
|
|
174
|
-
backgroundColor:
|
|
185
|
+
backgroundColor: U
|
|
175
186
|
}
|
|
176
187
|
},
|
|
177
188
|
dayBtnRangeStart: {
|
|
189
|
+
...s,
|
|
178
190
|
borderTopLeftRadius: R,
|
|
179
191
|
borderBottomLeftRadius: R,
|
|
180
192
|
borderTopRightRadius: 0,
|
|
181
193
|
borderBottomRightRadius: 0,
|
|
182
|
-
backgroundColor:
|
|
183
|
-
color:
|
|
184
|
-
fontWeight:
|
|
194
|
+
backgroundColor: q,
|
|
195
|
+
color: V,
|
|
196
|
+
fontWeight: L,
|
|
185
197
|
":hover": {
|
|
186
|
-
backgroundColor:
|
|
198
|
+
backgroundColor: U
|
|
187
199
|
}
|
|
188
200
|
},
|
|
189
201
|
dayBtnRangeEnd: {
|
|
202
|
+
...s,
|
|
190
203
|
borderTopRightRadius: R,
|
|
191
204
|
borderBottomRightRadius: R,
|
|
192
205
|
borderTopLeftRadius: 0,
|
|
193
206
|
borderBottomLeftRadius: 0,
|
|
194
|
-
backgroundColor:
|
|
195
|
-
color:
|
|
196
|
-
fontWeight:
|
|
207
|
+
backgroundColor: q,
|
|
208
|
+
color: V,
|
|
209
|
+
fontWeight: L,
|
|
197
210
|
":hover": {
|
|
198
|
-
backgroundColor:
|
|
211
|
+
backgroundColor: U
|
|
199
212
|
}
|
|
200
213
|
},
|
|
201
214
|
dayBtnRangeMiddle: {
|
|
215
|
+
...s,
|
|
202
216
|
...l.borderRadius(0),
|
|
203
|
-
backgroundColor:
|
|
204
|
-
color:
|
|
217
|
+
backgroundColor: Ue,
|
|
218
|
+
color: I
|
|
205
219
|
},
|
|
206
220
|
dayBtnRangeMiddlePreview: {
|
|
221
|
+
...s,
|
|
207
222
|
...l.borderRadius(0),
|
|
208
|
-
backgroundColor:
|
|
209
|
-
color:
|
|
223
|
+
backgroundColor: _e,
|
|
224
|
+
color: I
|
|
210
225
|
},
|
|
211
226
|
todayContainer: {
|
|
227
|
+
...s,
|
|
212
228
|
display: "flex",
|
|
213
229
|
justifyContent: "center",
|
|
214
|
-
paddingTop:
|
|
230
|
+
paddingTop: Y
|
|
215
231
|
},
|
|
216
232
|
monthsYearsGrid: {
|
|
233
|
+
...s,
|
|
217
234
|
display: "grid",
|
|
218
|
-
...l.gap(
|
|
219
|
-
...l.padding(
|
|
235
|
+
...l.gap(Y),
|
|
236
|
+
...l.padding(Y, 0)
|
|
220
237
|
},
|
|
221
238
|
monthsGridCols: {
|
|
222
239
|
gridTemplateColumns: "repeat(3, 1fr)"
|
|
@@ -225,11 +242,12 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
225
242
|
gridTemplateColumns: "repeat(2, 1fr)"
|
|
226
243
|
},
|
|
227
244
|
monthYearBtn: {
|
|
245
|
+
...ne,
|
|
228
246
|
display: "flex",
|
|
229
247
|
alignItems: "center",
|
|
230
248
|
justifyContent: "center",
|
|
231
|
-
fontSize:
|
|
232
|
-
lineHeight:
|
|
249
|
+
fontSize: _,
|
|
250
|
+
lineHeight: X,
|
|
233
251
|
...l.borderRadius(R),
|
|
234
252
|
transitionProperty: "background-color, color",
|
|
235
253
|
transitionDuration: "150ms",
|
|
@@ -241,289 +259,289 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
241
259
|
monthBtnCapitalize: {
|
|
242
260
|
textTransform: "capitalize"
|
|
243
261
|
}
|
|
244
|
-
}),
|
|
262
|
+
}), Ct = d.forwardRef(
|
|
245
263
|
function({
|
|
246
264
|
value: o,
|
|
247
|
-
onChange:
|
|
248
|
-
onDateSelect:
|
|
249
|
-
disablePast:
|
|
250
|
-
locale:
|
|
251
|
-
previousMonthLabel:
|
|
252
|
-
nextMonthLabel:
|
|
253
|
-
showTodayButton:
|
|
254
|
-
todayLabel:
|
|
255
|
-
currentTimeInTimezone:
|
|
256
|
-
showWeekNumbers:
|
|
257
|
-
rangeStart:
|
|
258
|
-
rangeEnd:
|
|
259
|
-
hoveredDate:
|
|
260
|
-
onDayHover:
|
|
261
|
-
onDayClick:
|
|
262
|
-
showPreviousButton:
|
|
263
|
-
showNextButton:
|
|
264
|
-
controlledViewDate:
|
|
265
|
-
onViewDateChange:
|
|
266
|
-
hideOutOfMonthDays:
|
|
267
|
-
className:
|
|
268
|
-
},
|
|
269
|
-
const e =
|
|
270
|
-
() => o ||
|
|
271
|
-
), [
|
|
265
|
+
onChange: G,
|
|
266
|
+
onDateSelect: k,
|
|
267
|
+
disablePast: B = !1,
|
|
268
|
+
locale: D = "de",
|
|
269
|
+
previousMonthLabel: Se = "Previous month",
|
|
270
|
+
nextMonthLabel: ve = "Next month",
|
|
271
|
+
showTodayButton: Ne = !1,
|
|
272
|
+
todayLabel: De = "Today",
|
|
273
|
+
currentTimeInTimezone: m,
|
|
274
|
+
showWeekNumbers: J = !1,
|
|
275
|
+
rangeStart: x,
|
|
276
|
+
rangeEnd: oe,
|
|
277
|
+
hoveredDate: de,
|
|
278
|
+
onDayHover: O,
|
|
279
|
+
onDayClick: K,
|
|
280
|
+
showPreviousButton: xe = !0,
|
|
281
|
+
showNextButton: He = !0,
|
|
282
|
+
controlledViewDate: Ye,
|
|
283
|
+
onViewDateChange: E,
|
|
284
|
+
hideOutOfMonthDays: le = !1,
|
|
285
|
+
className: Le
|
|
286
|
+
}, Te) {
|
|
287
|
+
const e = ht(), [We, je] = d.useState(
|
|
288
|
+
() => o || m || /* @__PURE__ */ new Date()
|
|
289
|
+
), [c, P] = d.useState("days"), H = x !== void 0, S = Ye || We, g = d.useCallback(
|
|
272
290
|
(t) => {
|
|
273
|
-
|
|
291
|
+
E ? E(typeof t == "function" ? t(S) : t) : je(t);
|
|
274
292
|
},
|
|
275
|
-
[
|
|
276
|
-
),
|
|
277
|
-
() =>
|
|
278
|
-
[
|
|
279
|
-
),
|
|
280
|
-
|
|
281
|
-
}, [
|
|
282
|
-
|
|
283
|
-
}, [
|
|
284
|
-
const t = new Date(
|
|
293
|
+
[E, S]
|
|
294
|
+
), Fe = Je(D), se = Ke(S, D), Ie = d.useMemo(() => Qe(D), [D]), T = d.useMemo(
|
|
295
|
+
() => m || /* @__PURE__ */ new Date(),
|
|
296
|
+
[m]
|
|
297
|
+
), W = T.getFullYear(), ie = T.getMonth(), v = S.getFullYear(), Q = st(v), Ae = d.useCallback(() => {
|
|
298
|
+
g((t) => c === "days" ? et(t) : c === "months" ? new Date(t.getFullYear() - 1, t.getMonth(), 1) : new Date(t.getFullYear() - 10, t.getMonth(), 1));
|
|
299
|
+
}, [c, g]), Ge = d.useCallback(() => {
|
|
300
|
+
g((t) => c === "days" ? tt(t) : c === "months" ? new Date(t.getFullYear() + 1, t.getMonth(), 1) : new Date(t.getFullYear() + 10, t.getMonth(), 1));
|
|
301
|
+
}, [c, g]), Oe = d.useCallback(() => {
|
|
302
|
+
const t = new Date(T);
|
|
285
303
|
o ? t.setHours(o.getHours(), o.getMinutes(), 0, 0) : t.setHours(0, 0, 0, 0);
|
|
286
|
-
const a =
|
|
304
|
+
const a = Ce(
|
|
287
305
|
t,
|
|
288
|
-
|
|
289
|
-
|
|
306
|
+
B,
|
|
307
|
+
m
|
|
290
308
|
);
|
|
291
|
-
|
|
309
|
+
g(T), G(a), k == null || k();
|
|
292
310
|
}, [
|
|
293
|
-
|
|
294
|
-
b,
|
|
295
|
-
o,
|
|
311
|
+
G,
|
|
296
312
|
k,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
313
|
+
o,
|
|
314
|
+
B,
|
|
315
|
+
m,
|
|
316
|
+
T,
|
|
317
|
+
g
|
|
318
|
+
]), Ee = d.useCallback(
|
|
301
319
|
(t) => {
|
|
302
|
-
if (
|
|
303
|
-
if (
|
|
304
|
-
|
|
320
|
+
if (we(t, B, m)) return;
|
|
321
|
+
if (K) {
|
|
322
|
+
K(t);
|
|
305
323
|
return;
|
|
306
324
|
}
|
|
307
325
|
const a = new Date(t);
|
|
308
326
|
o ? a.setHours(o.getHours(), o.getMinutes(), 0, 0) : a.setHours(0, 0, 0, 0);
|
|
309
|
-
const r =
|
|
327
|
+
const r = Ce(
|
|
310
328
|
a,
|
|
311
|
-
|
|
312
|
-
|
|
329
|
+
B,
|
|
330
|
+
m
|
|
313
331
|
);
|
|
314
|
-
|
|
332
|
+
G(r), k == null || k();
|
|
315
333
|
},
|
|
316
334
|
[
|
|
317
|
-
|
|
318
|
-
b,
|
|
319
|
-
J,
|
|
320
|
-
o,
|
|
335
|
+
G,
|
|
321
336
|
k,
|
|
322
|
-
|
|
337
|
+
K,
|
|
338
|
+
o,
|
|
339
|
+
B,
|
|
340
|
+
m
|
|
323
341
|
]
|
|
324
|
-
),
|
|
342
|
+
), Pe = d.useCallback(
|
|
325
343
|
(t) => {
|
|
326
|
-
|
|
344
|
+
g((a) => new Date(a.getFullYear(), t, 1)), P("days");
|
|
327
345
|
},
|
|
328
|
-
[
|
|
329
|
-
),
|
|
346
|
+
[g]
|
|
347
|
+
), ze = d.useCallback(
|
|
330
348
|
(t) => {
|
|
331
|
-
|
|
349
|
+
g((a) => new Date(t, a.getMonth(), 1)), P("months");
|
|
332
350
|
},
|
|
333
|
-
[
|
|
334
|
-
),
|
|
335
|
-
|
|
336
|
-
}, []),
|
|
337
|
-
|
|
351
|
+
[g]
|
|
352
|
+
), $e = d.useCallback(() => {
|
|
353
|
+
P("months");
|
|
354
|
+
}, []), ce = d.useCallback(() => {
|
|
355
|
+
P("years");
|
|
338
356
|
}, []);
|
|
339
|
-
return /* @__PURE__ */
|
|
357
|
+
return /* @__PURE__ */ b(
|
|
340
358
|
"div",
|
|
341
359
|
{
|
|
342
|
-
ref:
|
|
343
|
-
className:
|
|
360
|
+
ref: Te,
|
|
361
|
+
className: u(e.root, Le),
|
|
344
362
|
"data-slot": "calendar",
|
|
345
|
-
[
|
|
346
|
-
onMouseLeave:
|
|
363
|
+
[i]: "calendar",
|
|
364
|
+
onMouseLeave: O ? () => O(null) : void 0,
|
|
347
365
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
|
|
350
|
-
|
|
366
|
+
/* @__PURE__ */ b("div", { className: e.header, children: [
|
|
367
|
+
xe ? /* @__PURE__ */ n(
|
|
368
|
+
ae,
|
|
351
369
|
{
|
|
352
|
-
"aria-label":
|
|
353
|
-
onClick:
|
|
370
|
+
"aria-label": Se,
|
|
371
|
+
onClick: Ae,
|
|
354
372
|
size: "icon",
|
|
355
373
|
variant: "tertiary",
|
|
356
|
-
children: /* @__PURE__ */ n(
|
|
374
|
+
children: /* @__PURE__ */ n(it, {})
|
|
357
375
|
}
|
|
358
376
|
) : /* @__PURE__ */ n("div", { className: e.buttonSpacer }),
|
|
359
|
-
/* @__PURE__ */
|
|
360
|
-
|
|
377
|
+
/* @__PURE__ */ b("div", { className: e.headerCenter, children: [
|
|
378
|
+
c === "days" && /* @__PURE__ */ b(ue, { children: [
|
|
361
379
|
/* @__PURE__ */ n(
|
|
362
380
|
"button",
|
|
363
381
|
{
|
|
364
|
-
className:
|
|
382
|
+
className: u(
|
|
365
383
|
e.headerBtn,
|
|
366
384
|
e.monthHeaderBtn
|
|
367
385
|
),
|
|
368
|
-
onClick:
|
|
386
|
+
onClick: $e,
|
|
369
387
|
type: "button",
|
|
370
|
-
children:
|
|
388
|
+
children: at(S, D)
|
|
371
389
|
}
|
|
372
390
|
),
|
|
373
391
|
/* @__PURE__ */ n(
|
|
374
392
|
"button",
|
|
375
393
|
{
|
|
376
394
|
className: e.headerBtn,
|
|
377
|
-
onClick:
|
|
395
|
+
onClick: ce,
|
|
378
396
|
type: "button",
|
|
379
|
-
children:
|
|
397
|
+
children: v
|
|
380
398
|
}
|
|
381
399
|
)
|
|
382
400
|
] }),
|
|
383
|
-
|
|
401
|
+
c === "months" && /* @__PURE__ */ n(
|
|
384
402
|
"button",
|
|
385
403
|
{
|
|
386
404
|
className: e.headerBtn,
|
|
387
|
-
onClick:
|
|
405
|
+
onClick: ce,
|
|
388
406
|
type: "button",
|
|
389
|
-
children:
|
|
407
|
+
children: v
|
|
390
408
|
}
|
|
391
409
|
),
|
|
392
|
-
|
|
410
|
+
c === "years" && /* @__PURE__ */ n("span", { className: e.decadeLabel, children: `${Q} – ${Q + 9}` })
|
|
393
411
|
] }),
|
|
394
|
-
|
|
395
|
-
|
|
412
|
+
He ? /* @__PURE__ */ n(
|
|
413
|
+
ae,
|
|
396
414
|
{
|
|
397
|
-
"aria-label":
|
|
398
|
-
onClick:
|
|
415
|
+
"aria-label": ve,
|
|
416
|
+
onClick: Ge,
|
|
399
417
|
size: "icon",
|
|
400
418
|
variant: "tertiary",
|
|
401
|
-
children: /* @__PURE__ */ n(
|
|
419
|
+
children: /* @__PURE__ */ n(ct, {})
|
|
402
420
|
}
|
|
403
421
|
) : /* @__PURE__ */ n("div", { className: e.buttonSpacer })
|
|
404
422
|
] }),
|
|
405
|
-
/* @__PURE__ */
|
|
406
|
-
|
|
407
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ b("div", { children: [
|
|
424
|
+
c === "days" && /* @__PURE__ */ b(ue, { children: [
|
|
425
|
+
/* @__PURE__ */ b(
|
|
408
426
|
"div",
|
|
409
427
|
{
|
|
410
|
-
className:
|
|
428
|
+
className: u(
|
|
411
429
|
e.grid,
|
|
412
|
-
|
|
413
|
-
|
|
430
|
+
H && e.gridRange,
|
|
431
|
+
J && e.gridWithWeeks
|
|
414
432
|
),
|
|
415
433
|
"data-slot": "calendar-grid",
|
|
416
|
-
[
|
|
434
|
+
[i]: "calendar-grid",
|
|
417
435
|
children: [
|
|
418
|
-
|
|
436
|
+
J && /* @__PURE__ */ n(
|
|
419
437
|
"div",
|
|
420
438
|
{
|
|
421
439
|
className: e.weekLabel,
|
|
422
440
|
"data-slot": "calendar-week-label",
|
|
423
|
-
[
|
|
424
|
-
children:
|
|
441
|
+
[i]: "calendar-week-label",
|
|
442
|
+
children: nt(D)
|
|
425
443
|
}
|
|
426
444
|
),
|
|
427
|
-
|
|
445
|
+
Fe.map((t) => /* @__PURE__ */ F(
|
|
428
446
|
"div",
|
|
429
447
|
{
|
|
430
448
|
className: e.weekLabel,
|
|
431
449
|
"data-slot": "calendar-weekday",
|
|
432
|
-
[
|
|
450
|
+
[i]: "calendar-weekday",
|
|
433
451
|
key: t
|
|
434
452
|
},
|
|
435
453
|
t
|
|
436
454
|
)),
|
|
437
|
-
|
|
438
|
-
const r =
|
|
455
|
+
se.map((t, a) => {
|
|
456
|
+
const r = J && a % 7 === 0, h = le && r && se.slice(a, a + 7).every((Z) => !Me(Z, S)), y = r && !h ? /* @__PURE__ */ F(
|
|
439
457
|
"div",
|
|
440
458
|
{
|
|
441
459
|
className: e.weekNumber,
|
|
442
460
|
"data-slot": "calendar-week-number",
|
|
443
|
-
[
|
|
444
|
-
"data-week":
|
|
461
|
+
[i]: "calendar-week-number",
|
|
462
|
+
"data-week": Re(t),
|
|
445
463
|
key: `wk-${a}`
|
|
446
464
|
},
|
|
447
|
-
|
|
448
|
-
) : r ? /* @__PURE__ */
|
|
465
|
+
Re(t)
|
|
466
|
+
) : r ? /* @__PURE__ */ F(
|
|
449
467
|
"div",
|
|
450
468
|
{
|
|
451
469
|
"aria-hidden": "true",
|
|
452
470
|
className: e.cellPlaceholder,
|
|
453
471
|
"data-slot": "calendar-week-number-placeholder",
|
|
454
|
-
[
|
|
472
|
+
[i]: "calendar-week-number-placeholder",
|
|
455
473
|
key: `wk-${a}`
|
|
456
474
|
}
|
|
457
|
-
) : null,
|
|
458
|
-
if (
|
|
459
|
-
return /* @__PURE__ */
|
|
460
|
-
|
|
475
|
+
) : null, f = Me(t, S);
|
|
476
|
+
if (le && !f)
|
|
477
|
+
return /* @__PURE__ */ b(d.Fragment, { children: [
|
|
478
|
+
y,
|
|
461
479
|
/* @__PURE__ */ n(
|
|
462
480
|
"div",
|
|
463
481
|
{
|
|
464
482
|
"aria-hidden": "true",
|
|
465
483
|
className: e.cellPlaceholder,
|
|
466
484
|
"data-slot": "calendar-day-placeholder",
|
|
467
|
-
[
|
|
485
|
+
[i]: "calendar-day-placeholder"
|
|
468
486
|
}
|
|
469
487
|
)
|
|
470
488
|
] }, a);
|
|
471
|
-
const
|
|
489
|
+
const C = we(
|
|
472
490
|
t,
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
),
|
|
476
|
-
let
|
|
477
|
-
if (
|
|
478
|
-
const
|
|
479
|
-
|
|
480
|
-
|
|
491
|
+
B,
|
|
492
|
+
m
|
|
493
|
+
), w = !H && o !== null && rt(t, o), z = ot(t), ee = oe || de || null, he = H && x && ee, Ze = he ? dt(t, x, ee) : !1;
|
|
494
|
+
let M = !1, j = !1, $ = !1;
|
|
495
|
+
if (he) {
|
|
496
|
+
const Z = lt(
|
|
497
|
+
x,
|
|
498
|
+
ee
|
|
481
499
|
);
|
|
482
|
-
|
|
483
|
-
} else
|
|
484
|
-
const
|
|
485
|
-
let
|
|
486
|
-
return
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
!
|
|
493
|
-
!
|
|
494
|
-
!
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
!
|
|
498
|
-
|
|
499
|
-
) :
|
|
500
|
+
M = re(t, Z.start), j = re(t, Z.end), $ = M && j;
|
|
501
|
+
} else H && x && (M = re(t, x), $ = M);
|
|
502
|
+
const p = M || j, N = Ze && !M && !j, ge = H && !oe && !!de;
|
|
503
|
+
let te = null;
|
|
504
|
+
return H ? te = u(
|
|
505
|
+
$ && p && e.dayBtnRangeSingleDay,
|
|
506
|
+
M && !$ && e.dayBtnRangeStart,
|
|
507
|
+
j && !M && e.dayBtnRangeEnd,
|
|
508
|
+
N && !ge && e.dayBtnRangeMiddle,
|
|
509
|
+
N && ge && e.dayBtnRangeMiddlePreview,
|
|
510
|
+
!p && !N && e.dayBtnSingle,
|
|
511
|
+
!p && !N && e.dayBtnTransparent,
|
|
512
|
+
!p && !N && e.dayBtnHover,
|
|
513
|
+
z && !p && !N && e.dayBtnToday,
|
|
514
|
+
C && e.dayBtnDisabled,
|
|
515
|
+
!f && !C && !p && e.dayBtnOutOfMonth,
|
|
516
|
+
f && !p && !C && e.dayBtnInMonth
|
|
517
|
+
) : te = u(
|
|
500
518
|
e.dayBtnSingle,
|
|
501
|
-
!
|
|
502
|
-
!
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
!
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
), /* @__PURE__ */
|
|
509
|
-
|
|
519
|
+
!w && !z && e.dayBtnTransparent,
|
|
520
|
+
!w && e.dayBtnHover,
|
|
521
|
+
z && !w && e.dayBtnToday,
|
|
522
|
+
C && e.dayBtnDisabled,
|
|
523
|
+
!f && !C && !w && e.dayBtnOutOfMonth,
|
|
524
|
+
w && e.dayBtnSelected,
|
|
525
|
+
f && !w && !C && e.dayBtnInMonth
|
|
526
|
+
), /* @__PURE__ */ b(d.Fragment, { children: [
|
|
527
|
+
y,
|
|
510
528
|
/* @__PURE__ */ n(
|
|
511
529
|
"button",
|
|
512
530
|
{
|
|
513
|
-
"aria-disabled":
|
|
514
|
-
"aria-pressed":
|
|
515
|
-
className:
|
|
531
|
+
"aria-disabled": C,
|
|
532
|
+
"aria-pressed": w || p,
|
|
533
|
+
className: u(
|
|
516
534
|
e.dayBtn,
|
|
517
|
-
|
|
535
|
+
te
|
|
518
536
|
),
|
|
519
|
-
"data-in-range":
|
|
520
|
-
"data-selected":
|
|
537
|
+
"data-in-range": N || void 0,
|
|
538
|
+
"data-selected": w || p,
|
|
521
539
|
"data-slot": "calendar-day",
|
|
522
|
-
[
|
|
523
|
-
"data-today":
|
|
524
|
-
disabled:
|
|
525
|
-
onClick: () =>
|
|
526
|
-
onMouseEnter:
|
|
540
|
+
[i]: "calendar-day",
|
|
541
|
+
"data-today": z,
|
|
542
|
+
disabled: C,
|
|
543
|
+
onClick: () => Ee(t),
|
|
544
|
+
onMouseEnter: O ? () => O(t) : void 0,
|
|
527
545
|
type: "button",
|
|
528
546
|
children: t.getDate()
|
|
529
547
|
}
|
|
@@ -533,54 +551,54 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
533
551
|
]
|
|
534
552
|
}
|
|
535
553
|
),
|
|
536
|
-
|
|
554
|
+
Ne && /* @__PURE__ */ n(
|
|
537
555
|
"div",
|
|
538
556
|
{
|
|
539
557
|
className: e.todayContainer,
|
|
540
558
|
"data-slot": "calendar-today",
|
|
541
|
-
[
|
|
559
|
+
[i]: "calendar-today",
|
|
542
560
|
children: /* @__PURE__ */ n(
|
|
543
|
-
|
|
561
|
+
ae,
|
|
544
562
|
{
|
|
545
|
-
onClick:
|
|
563
|
+
onClick: Oe,
|
|
546
564
|
size: "xs",
|
|
547
565
|
variant: "tertiary",
|
|
548
|
-
children:
|
|
566
|
+
children: De
|
|
549
567
|
}
|
|
550
568
|
)
|
|
551
569
|
}
|
|
552
570
|
)
|
|
553
571
|
] }),
|
|
554
|
-
|
|
572
|
+
c === "months" && /* @__PURE__ */ n(
|
|
555
573
|
"div",
|
|
556
574
|
{
|
|
557
|
-
className:
|
|
575
|
+
className: u(
|
|
558
576
|
e.monthsYearsGrid,
|
|
559
577
|
e.monthsGridCols
|
|
560
578
|
),
|
|
561
579
|
"data-slot": "calendar-months",
|
|
562
|
-
[
|
|
563
|
-
children:
|
|
564
|
-
const r = o !== null &&
|
|
565
|
-
return /* @__PURE__ */
|
|
580
|
+
[i]: "calendar-months",
|
|
581
|
+
children: Ie.map((t, a) => {
|
|
582
|
+
const r = o !== null && v === o.getFullYear() && a === o.getMonth(), h = v === W && a === ie, y = B && (v < W || v === W && a < ie);
|
|
583
|
+
return /* @__PURE__ */ F(
|
|
566
584
|
"button",
|
|
567
585
|
{
|
|
568
|
-
className:
|
|
586
|
+
className: u(
|
|
569
587
|
e.monthYearBtn,
|
|
570
588
|
e.monthBtnCapitalize,
|
|
571
|
-
!r && !
|
|
589
|
+
!r && !h && e.dayBtnTransparent,
|
|
572
590
|
!r && e.dayBtnHover,
|
|
573
|
-
|
|
574
|
-
|
|
591
|
+
h && !r && e.dayBtnToday,
|
|
592
|
+
y && e.dayBtnDisabled,
|
|
575
593
|
r && e.dayBtnSelected,
|
|
576
|
-
!r && !
|
|
594
|
+
!r && !y && e.dayBtnInMonth
|
|
577
595
|
),
|
|
578
596
|
"data-selected": r,
|
|
579
597
|
"data-slot": "calendar-month",
|
|
580
|
-
[
|
|
581
|
-
disabled:
|
|
598
|
+
[i]: "calendar-month",
|
|
599
|
+
disabled: y,
|
|
582
600
|
key: a,
|
|
583
|
-
onClick: () =>
|
|
601
|
+
onClick: () => Pe(a),
|
|
584
602
|
type: "button"
|
|
585
603
|
},
|
|
586
604
|
t
|
|
@@ -588,35 +606,35 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
588
606
|
})
|
|
589
607
|
}
|
|
590
608
|
),
|
|
591
|
-
|
|
609
|
+
c === "years" && /* @__PURE__ */ n(
|
|
592
610
|
"div",
|
|
593
611
|
{
|
|
594
|
-
className:
|
|
612
|
+
className: u(
|
|
595
613
|
e.monthsYearsGrid,
|
|
596
614
|
e.yearsGridCols
|
|
597
615
|
),
|
|
598
616
|
"data-slot": "calendar-years",
|
|
599
|
-
[
|
|
617
|
+
[i]: "calendar-years",
|
|
600
618
|
children: Array.from({ length: 10 }, (t, a) => {
|
|
601
|
-
const r =
|
|
602
|
-
return /* @__PURE__ */
|
|
619
|
+
const r = Q + a, h = o !== null && r === o.getFullYear(), y = r === W, f = B && r < W;
|
|
620
|
+
return /* @__PURE__ */ F(
|
|
603
621
|
"button",
|
|
604
622
|
{
|
|
605
|
-
className:
|
|
623
|
+
className: u(
|
|
606
624
|
e.monthYearBtn,
|
|
607
|
-
!
|
|
608
|
-
!
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
!
|
|
625
|
+
!h && !y && e.dayBtnTransparent,
|
|
626
|
+
!h && e.dayBtnHover,
|
|
627
|
+
y && !h && e.dayBtnToday,
|
|
628
|
+
f && e.dayBtnDisabled,
|
|
629
|
+
h && e.dayBtnSelected,
|
|
630
|
+
!h && !f && e.dayBtnInMonth
|
|
613
631
|
),
|
|
614
|
-
"data-selected":
|
|
632
|
+
"data-selected": h,
|
|
615
633
|
"data-slot": "calendar-year",
|
|
616
|
-
[
|
|
617
|
-
disabled:
|
|
634
|
+
[i]: "calendar-year",
|
|
635
|
+
disabled: f,
|
|
618
636
|
key: r,
|
|
619
|
-
onClick: () =>
|
|
637
|
+
onClick: () => ze(r),
|
|
620
638
|
type: "button"
|
|
621
639
|
},
|
|
622
640
|
r
|
|
@@ -631,6 +649,6 @@ const lt = (I) => /* @__PURE__ */ n(
|
|
|
631
649
|
}
|
|
632
650
|
);
|
|
633
651
|
export {
|
|
634
|
-
|
|
652
|
+
Ct as Calendar
|
|
635
653
|
};
|
|
636
654
|
//# sourceMappingURL=calendar.js.map
|