@react-spectrum/calendar 3.4.8 → 3.4.9
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/Calendar.mjs +1 -1
- package/dist/CalendarBase.main.js +17 -17
- package/dist/CalendarBase.mjs +18 -18
- package/dist/CalendarBase.module.js +17 -17
- package/dist/CalendarCell.main.js +18 -18
- package/dist/CalendarCell.mjs +19 -19
- package/dist/CalendarCell.module.js +18 -18
- package/dist/CalendarMonth.main.js +3 -3
- package/dist/CalendarMonth.mjs +4 -4
- package/dist/CalendarMonth.module.js +3 -3
- package/dist/RangeCalendar.mjs +1 -1
- package/dist/ar-AE.mjs +1 -1
- package/dist/bg-BG.mjs +1 -1
- package/dist/calendar_vars_css.mjs +1 -1
- package/dist/cs-CZ.mjs +1 -1
- package/dist/da-DK.mjs +1 -1
- package/dist/de-DE.mjs +1 -1
- package/dist/el-GR.mjs +1 -1
- package/dist/en-US.mjs +1 -1
- package/dist/es-ES.mjs +1 -1
- package/dist/et-EE.mjs +1 -1
- package/dist/fi-FI.mjs +1 -1
- package/dist/fr-FR.mjs +1 -1
- package/dist/he-IL.mjs +1 -1
- package/dist/hr-HR.mjs +1 -1
- package/dist/hu-HU.mjs +1 -1
- package/dist/intlStrings.mjs +1 -1
- package/dist/it-IT.mjs +1 -1
- package/dist/ja-JP.mjs +1 -1
- package/dist/ko-KR.mjs +1 -1
- package/dist/lt-LT.mjs +1 -1
- package/dist/lv-LV.mjs +1 -1
- package/dist/nb-NO.mjs +1 -1
- package/dist/nl-NL.mjs +1 -1
- package/dist/pl-PL.mjs +1 -1
- package/dist/pt-BR.mjs +1 -1
- package/dist/pt-PT.mjs +1 -1
- package/dist/ro-RO.mjs +1 -1
- package/dist/ru-RU.mjs +1 -1
- package/dist/sk-SK.mjs +1 -1
- package/dist/sl-SI.mjs +1 -1
- package/dist/sr-SP.mjs +1 -1
- package/dist/sv-SE.mjs +1 -1
- package/dist/tr-TR.mjs +1 -1
- package/dist/uk-UA.mjs +1 -1
- package/dist/zh-CN.mjs +1 -1
- package/dist/zh-TW.mjs +1 -1
- package/package.json +17 -17
package/dist/Calendar.mjs
CHANGED
|
@@ -45,13 +45,13 @@ $parcel$export(module.exports, "CalendarBase", () => $6d416018158e3a26$export$bf
|
|
|
45
45
|
function $6d416018158e3a26$export$bfd52a43017368fe(props) {
|
|
46
46
|
let { state: state, calendarProps: calendarProps, nextButtonProps: nextButtonProps, prevButtonProps: prevButtonProps, errorMessageProps: errorMessageProps, calendarRef: ref, visibleMonths: visibleMonths = 1 } = props;
|
|
47
47
|
let { styleProps: styleProps } = (0, $6ckm4$reactspectrumutils.useStyleProps)(props);
|
|
48
|
-
let stringFormatter = (0, $6ckm4$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($7e7c3b1f5233ce23$exports))),
|
|
48
|
+
let stringFormatter = (0, $6ckm4$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($7e7c3b1f5233ce23$exports))), '@react-spectrum/calendar');
|
|
49
49
|
let { direction: direction } = (0, $6ckm4$reactariai18n.useLocale)();
|
|
50
50
|
let currentMonth = state.visibleRange.start;
|
|
51
51
|
let monthDateFormatter = (0, $6ckm4$reactariai18n.useDateFormatter)({
|
|
52
|
-
month:
|
|
53
|
-
year:
|
|
54
|
-
era: currentMonth.calendar.identifier ===
|
|
52
|
+
month: 'long',
|
|
53
|
+
year: 'numeric',
|
|
54
|
+
era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,
|
|
55
55
|
calendar: currentMonth.calendar.identifier,
|
|
56
56
|
timeZone: state.timeZone
|
|
57
57
|
});
|
|
@@ -63,22 +63,22 @@ function $6d416018158e3a26$export$bfd52a43017368fe(props) {
|
|
|
63
63
|
});
|
|
64
64
|
titles.push(/*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement("div", {
|
|
65
65
|
key: i,
|
|
66
|
-
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
66
|
+
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-monthHeader')
|
|
67
67
|
}, i === 0 && /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, $6ckm4$reactspectrumbutton.ActionButton), {
|
|
68
68
|
...prevButtonProps,
|
|
69
|
-
UNSAFE_className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
69
|
+
UNSAFE_className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-prevMonth'),
|
|
70
70
|
isQuiet: true
|
|
71
|
-
}, direction ===
|
|
71
|
+
}, direction === 'rtl' ? /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, ($parcel$interopDefault($6ckm4$spectrumiconsuiChevronRightLarge))), null) : /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, ($parcel$interopDefault($6ckm4$spectrumiconsuiChevronLeftLarge))), null)), /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement("h2", {
|
|
72
72
|
// We have a visually hidden heading describing the entire visible range,
|
|
73
73
|
// and the calendar itself describes the individual month
|
|
74
74
|
// so we don't need to repeat that here for screen reader users.
|
|
75
75
|
"aria-hidden": true,
|
|
76
|
-
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
76
|
+
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-title')
|
|
77
77
|
}, monthDateFormatter.format(d.toDate(state.timeZone))), i === visibleMonths - 1 && /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, $6ckm4$reactspectrumbutton.ActionButton), {
|
|
78
78
|
...nextButtonProps,
|
|
79
|
-
UNSAFE_className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
79
|
+
UNSAFE_className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-nextMonth'),
|
|
80
80
|
isQuiet: true
|
|
81
|
-
}, direction ===
|
|
81
|
+
}, direction === 'rtl' ? /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, ($parcel$interopDefault($6ckm4$spectrumiconsuiChevronLeftLarge))), null) : /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, ($parcel$interopDefault($6ckm4$spectrumiconsuiChevronRightLarge))), null))));
|
|
82
82
|
calendars.push(/*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, $02c19eea15a72a7b$exports.CalendarMonth), {
|
|
83
83
|
...props,
|
|
84
84
|
key: i,
|
|
@@ -90,20 +90,20 @@ function $6d416018158e3a26$export$bfd52a43017368fe(props) {
|
|
|
90
90
|
...styleProps,
|
|
91
91
|
...calendarProps,
|
|
92
92
|
ref: ref,
|
|
93
|
-
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
94
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, $6ckm4$reactariavisuallyhidden.VisuallyHidden), null, /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement("h2", null, calendarProps[
|
|
95
|
-
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
93
|
+
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar', styleProps.className)
|
|
94
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, $6ckm4$reactariavisuallyhidden.VisuallyHidden), null, /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement("h2", null, calendarProps['aria-label'])), /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement("div", {
|
|
95
|
+
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-header')
|
|
96
96
|
}, titles), /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement("div", {
|
|
97
|
-
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
97
|
+
className: (0, $6ckm4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-months')
|
|
98
98
|
}, calendars), /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, $6ckm4$reactariavisuallyhidden.VisuallyHidden), null, /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement("button", {
|
|
99
|
-
"aria-label": nextButtonProps[
|
|
99
|
+
"aria-label": nextButtonProps['aria-label'],
|
|
100
100
|
disabled: nextButtonProps.isDisabled,
|
|
101
101
|
onClick: ()=>state.focusNextPage(),
|
|
102
102
|
tabIndex: -1
|
|
103
103
|
})), state.isValueInvalid && /*#__PURE__*/ (0, ($parcel$interopDefault($6ckm4$react))).createElement((0, $6ckm4$reactspectrumlabel.HelpText), {
|
|
104
104
|
showErrorIcon: true,
|
|
105
|
-
errorMessage: props.errorMessage || stringFormatter.format(
|
|
106
|
-
selectedCount:
|
|
105
|
+
errorMessage: props.errorMessage || stringFormatter.format('invalidSelection', {
|
|
106
|
+
selectedCount: 'highlightedRange' in state ? 2 : 1
|
|
107
107
|
}),
|
|
108
108
|
errorMessageProps: errorMessageProps,
|
|
109
109
|
isInvalid: true,
|
package/dist/CalendarBase.mjs
CHANGED
|
@@ -39,13 +39,13 @@ function $parcel$interopDefault(a) {
|
|
|
39
39
|
function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
|
|
40
40
|
let { state: state, calendarProps: calendarProps, nextButtonProps: nextButtonProps, prevButtonProps: prevButtonProps, errorMessageProps: errorMessageProps, calendarRef: ref, visibleMonths: visibleMonths = 1 } = props;
|
|
41
41
|
let { styleProps: styleProps } = (0, $bF3AV$useStyleProps)(props);
|
|
42
|
-
let stringFormatter = (0, $bF3AV$useLocalizedStringFormatter)((0, ($parcel$interopDefault($bF3AV$intlStringsmodulejs))),
|
|
42
|
+
let stringFormatter = (0, $bF3AV$useLocalizedStringFormatter)((0, ($parcel$interopDefault($bF3AV$intlStringsmodulejs))), '@react-spectrum/calendar');
|
|
43
43
|
let { direction: direction } = (0, $bF3AV$useLocale)();
|
|
44
44
|
let currentMonth = state.visibleRange.start;
|
|
45
45
|
let monthDateFormatter = (0, $bF3AV$useDateFormatter)({
|
|
46
|
-
month:
|
|
47
|
-
year:
|
|
48
|
-
era: currentMonth.calendar.identifier ===
|
|
46
|
+
month: 'long',
|
|
47
|
+
year: 'numeric',
|
|
48
|
+
era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,
|
|
49
49
|
calendar: currentMonth.calendar.identifier,
|
|
50
50
|
timeZone: state.timeZone
|
|
51
51
|
});
|
|
@@ -57,22 +57,22 @@ function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
|
|
|
57
57
|
});
|
|
58
58
|
titles.push(/*#__PURE__*/ (0, $bF3AV$react).createElement("div", {
|
|
59
59
|
key: i,
|
|
60
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
60
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-monthHeader')
|
|
61
61
|
}, i === 0 && /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$ActionButton), {
|
|
62
62
|
...prevButtonProps,
|
|
63
|
-
UNSAFE_className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
63
|
+
UNSAFE_className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-prevMonth'),
|
|
64
64
|
isQuiet: true
|
|
65
|
-
}, direction ===
|
|
65
|
+
}, direction === 'rtl' ? /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$spectrumiconsuiChevronRightLarge), null) : /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$spectrumiconsuiChevronLeftLarge), null)), /*#__PURE__*/ (0, $bF3AV$react).createElement("h2", {
|
|
66
66
|
// We have a visually hidden heading describing the entire visible range,
|
|
67
67
|
// and the calendar itself describes the individual month
|
|
68
68
|
// so we don't need to repeat that here for screen reader users.
|
|
69
69
|
"aria-hidden": true,
|
|
70
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
70
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-title')
|
|
71
71
|
}, monthDateFormatter.format(d.toDate(state.timeZone))), i === visibleMonths - 1 && /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$ActionButton), {
|
|
72
72
|
...nextButtonProps,
|
|
73
|
-
UNSAFE_className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
73
|
+
UNSAFE_className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-nextMonth'),
|
|
74
74
|
isQuiet: true
|
|
75
|
-
}, direction ===
|
|
75
|
+
}, direction === 'rtl' ? /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$spectrumiconsuiChevronLeftLarge), null) : /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$spectrumiconsuiChevronRightLarge), null))));
|
|
76
76
|
calendars.push(/*#__PURE__*/ (0, $bF3AV$react).createElement((0, $faa2f3867773cfe5$export$26e2752316b9a375), {
|
|
77
77
|
...props,
|
|
78
78
|
key: i,
|
|
@@ -84,20 +84,20 @@ function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
|
|
|
84
84
|
...styleProps,
|
|
85
85
|
...calendarProps,
|
|
86
86
|
ref: ref,
|
|
87
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
88
|
-
}, /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$VisuallyHidden), null, /*#__PURE__*/ (0, $bF3AV$react).createElement("h2", null, calendarProps[
|
|
89
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
87
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar', styleProps.className)
|
|
88
|
+
}, /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$VisuallyHidden), null, /*#__PURE__*/ (0, $bF3AV$react).createElement("h2", null, calendarProps['aria-label'])), /*#__PURE__*/ (0, $bF3AV$react).createElement("div", {
|
|
89
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-header')
|
|
90
90
|
}, titles), /*#__PURE__*/ (0, $bF3AV$react).createElement("div", {
|
|
91
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
91
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-months')
|
|
92
92
|
}, calendars), /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$VisuallyHidden), null, /*#__PURE__*/ (0, $bF3AV$react).createElement("button", {
|
|
93
|
-
"aria-label": nextButtonProps[
|
|
93
|
+
"aria-label": nextButtonProps['aria-label'],
|
|
94
94
|
disabled: nextButtonProps.isDisabled,
|
|
95
95
|
onClick: ()=>state.focusNextPage(),
|
|
96
96
|
tabIndex: -1
|
|
97
97
|
})), state.isValueInvalid && /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$HelpText), {
|
|
98
98
|
showErrorIcon: true,
|
|
99
|
-
errorMessage: props.errorMessage || stringFormatter.format(
|
|
100
|
-
selectedCount:
|
|
99
|
+
errorMessage: props.errorMessage || stringFormatter.format('invalidSelection', {
|
|
100
|
+
selectedCount: 'highlightedRange' in state ? 2 : 1
|
|
101
101
|
}),
|
|
102
102
|
errorMessageProps: errorMessageProps,
|
|
103
103
|
isInvalid: true,
|
|
@@ -108,4 +108,4 @@ function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
export {$62cd1e80f0dffb66$export$bfd52a43017368fe as CalendarBase};
|
|
111
|
-
//# sourceMappingURL=CalendarBase.
|
|
111
|
+
//# sourceMappingURL=CalendarBase.module.js.map
|
|
@@ -39,13 +39,13 @@ function $parcel$interopDefault(a) {
|
|
|
39
39
|
function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
|
|
40
40
|
let { state: state, calendarProps: calendarProps, nextButtonProps: nextButtonProps, prevButtonProps: prevButtonProps, errorMessageProps: errorMessageProps, calendarRef: ref, visibleMonths: visibleMonths = 1 } = props;
|
|
41
41
|
let { styleProps: styleProps } = (0, $bF3AV$useStyleProps)(props);
|
|
42
|
-
let stringFormatter = (0, $bF3AV$useLocalizedStringFormatter)((0, ($parcel$interopDefault($bF3AV$intlStringsmodulejs))),
|
|
42
|
+
let stringFormatter = (0, $bF3AV$useLocalizedStringFormatter)((0, ($parcel$interopDefault($bF3AV$intlStringsmodulejs))), '@react-spectrum/calendar');
|
|
43
43
|
let { direction: direction } = (0, $bF3AV$useLocale)();
|
|
44
44
|
let currentMonth = state.visibleRange.start;
|
|
45
45
|
let monthDateFormatter = (0, $bF3AV$useDateFormatter)({
|
|
46
|
-
month:
|
|
47
|
-
year:
|
|
48
|
-
era: currentMonth.calendar.identifier ===
|
|
46
|
+
month: 'long',
|
|
47
|
+
year: 'numeric',
|
|
48
|
+
era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,
|
|
49
49
|
calendar: currentMonth.calendar.identifier,
|
|
50
50
|
timeZone: state.timeZone
|
|
51
51
|
});
|
|
@@ -57,22 +57,22 @@ function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
|
|
|
57
57
|
});
|
|
58
58
|
titles.push(/*#__PURE__*/ (0, $bF3AV$react).createElement("div", {
|
|
59
59
|
key: i,
|
|
60
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
60
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-monthHeader')
|
|
61
61
|
}, i === 0 && /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$ActionButton), {
|
|
62
62
|
...prevButtonProps,
|
|
63
|
-
UNSAFE_className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
63
|
+
UNSAFE_className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-prevMonth'),
|
|
64
64
|
isQuiet: true
|
|
65
|
-
}, direction ===
|
|
65
|
+
}, direction === 'rtl' ? /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$spectrumiconsuiChevronRightLarge), null) : /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$spectrumiconsuiChevronLeftLarge), null)), /*#__PURE__*/ (0, $bF3AV$react).createElement("h2", {
|
|
66
66
|
// We have a visually hidden heading describing the entire visible range,
|
|
67
67
|
// and the calendar itself describes the individual month
|
|
68
68
|
// so we don't need to repeat that here for screen reader users.
|
|
69
69
|
"aria-hidden": true,
|
|
70
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
70
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-title')
|
|
71
71
|
}, monthDateFormatter.format(d.toDate(state.timeZone))), i === visibleMonths - 1 && /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$ActionButton), {
|
|
72
72
|
...nextButtonProps,
|
|
73
|
-
UNSAFE_className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
73
|
+
UNSAFE_className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-nextMonth'),
|
|
74
74
|
isQuiet: true
|
|
75
|
-
}, direction ===
|
|
75
|
+
}, direction === 'rtl' ? /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$spectrumiconsuiChevronLeftLarge), null) : /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$spectrumiconsuiChevronRightLarge), null))));
|
|
76
76
|
calendars.push(/*#__PURE__*/ (0, $bF3AV$react).createElement((0, $faa2f3867773cfe5$export$26e2752316b9a375), {
|
|
77
77
|
...props,
|
|
78
78
|
key: i,
|
|
@@ -84,20 +84,20 @@ function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
|
|
|
84
84
|
...styleProps,
|
|
85
85
|
...calendarProps,
|
|
86
86
|
ref: ref,
|
|
87
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
88
|
-
}, /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$VisuallyHidden), null, /*#__PURE__*/ (0, $bF3AV$react).createElement("h2", null, calendarProps[
|
|
89
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
87
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar', styleProps.className)
|
|
88
|
+
}, /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$VisuallyHidden), null, /*#__PURE__*/ (0, $bF3AV$react).createElement("h2", null, calendarProps['aria-label'])), /*#__PURE__*/ (0, $bF3AV$react).createElement("div", {
|
|
89
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-header')
|
|
90
90
|
}, titles), /*#__PURE__*/ (0, $bF3AV$react).createElement("div", {
|
|
91
|
-
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))),
|
|
91
|
+
className: (0, $bF3AV$classNames)((0, ($parcel$interopDefault($bF3AV$calendar_vars_cssmodulejs))), 'spectrum-Calendar-months')
|
|
92
92
|
}, calendars), /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$VisuallyHidden), null, /*#__PURE__*/ (0, $bF3AV$react).createElement("button", {
|
|
93
|
-
"aria-label": nextButtonProps[
|
|
93
|
+
"aria-label": nextButtonProps['aria-label'],
|
|
94
94
|
disabled: nextButtonProps.isDisabled,
|
|
95
95
|
onClick: ()=>state.focusNextPage(),
|
|
96
96
|
tabIndex: -1
|
|
97
97
|
})), state.isValueInvalid && /*#__PURE__*/ (0, $bF3AV$react).createElement((0, $bF3AV$HelpText), {
|
|
98
98
|
showErrorIcon: true,
|
|
99
|
-
errorMessage: props.errorMessage || stringFormatter.format(
|
|
100
|
-
selectedCount:
|
|
99
|
+
errorMessage: props.errorMessage || stringFormatter.format('invalidSelection', {
|
|
100
|
+
selectedCount: 'highlightedRange' in state ? 2 : 1
|
|
101
101
|
}),
|
|
102
102
|
errorMessageProps: errorMessageProps,
|
|
103
103
|
isInvalid: true,
|
|
@@ -51,7 +51,7 @@ function $52c7c3c887827b64$export$5d847498420df57b({ state: state, currentMonth:
|
|
|
51
51
|
let isFirstSelectedAfterDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.subtract({
|
|
52
52
|
days: 1
|
|
53
53
|
}));
|
|
54
|
-
let highlightedRange =
|
|
54
|
+
let highlightedRange = 'highlightedRange' in state && state.highlightedRange;
|
|
55
55
|
let isSelectionStart = isSelected && highlightedRange && (0, $1NqcN$internationalizeddate.isSameDay)(props.date, highlightedRange.start);
|
|
56
56
|
let isSelectionEnd = isSelected && highlightedRange && (0, $1NqcN$internationalizeddate.isSameDay)(props.date, highlightedRange.end);
|
|
57
57
|
let { locale: locale } = (0, $1NqcN$reactariai18n.useLocale)();
|
|
@@ -64,30 +64,30 @@ function $52c7c3c887827b64$export$5d847498420df57b({ state: state, currentMonth:
|
|
|
64
64
|
});
|
|
65
65
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($1NqcN$react))).createElement("td", {
|
|
66
66
|
...cellProps,
|
|
67
|
-
className: (0, $1NqcN$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
67
|
+
className: (0, $1NqcN$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-tableCell')
|
|
68
68
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($1NqcN$react))).createElement("span", {
|
|
69
69
|
...(0, $1NqcN$reactariautils.mergeProps)(buttonProps, hoverProps, focusProps),
|
|
70
70
|
ref: ref,
|
|
71
|
-
className: (0, $1NqcN$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
className: (0, $1NqcN$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-date', {
|
|
72
|
+
'is-today': (0, $1NqcN$internationalizeddate.isToday)(props.date, state.timeZone),
|
|
73
|
+
'is-selected': isSelected,
|
|
74
|
+
'is-focused': isFocused && isFocusVisible,
|
|
75
75
|
// Style disabled (i.e. out of min/max range), but selected dates as unavailable
|
|
76
76
|
// since it is more clear than trying to dim the selection.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
'is-disabled': isDisabled && !isInvalid,
|
|
78
|
+
'is-unavailable': isUnavailable || isInvalid && isDisabled,
|
|
79
|
+
'is-outsideMonth': !(0, $1NqcN$internationalizeddate.isSameMonth)(props.date, currentMonth),
|
|
80
|
+
'is-range-start': isRangeStart,
|
|
81
|
+
'is-range-end': isRangeEnd,
|
|
82
|
+
'is-range-selection': isSelected && 'highlightedRange' in state,
|
|
83
|
+
'is-selection-start': isSelectionStart,
|
|
84
|
+
'is-selection-end': isSelectionEnd,
|
|
85
|
+
'is-hovered': isHovered,
|
|
86
|
+
'is-pressed': isPressed && !state.isReadOnly,
|
|
87
|
+
'is-invalid': isInvalid
|
|
88
88
|
})
|
|
89
89
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($1NqcN$react))).createElement("span", {
|
|
90
|
-
className: (0, $1NqcN$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
90
|
+
className: (0, $1NqcN$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-dateText')
|
|
91
91
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($1NqcN$react))).createElement("span", null, formattedDate))));
|
|
92
92
|
}
|
|
93
93
|
|
package/dist/CalendarCell.mjs
CHANGED
|
@@ -45,7 +45,7 @@ function $453c556b9066da11$export$5d847498420df57b({ state: state, currentMonth:
|
|
|
45
45
|
let isFirstSelectedAfterDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.subtract({
|
|
46
46
|
days: 1
|
|
47
47
|
}));
|
|
48
|
-
let highlightedRange =
|
|
48
|
+
let highlightedRange = 'highlightedRange' in state && state.highlightedRange;
|
|
49
49
|
let isSelectionStart = isSelected && highlightedRange && (0, $1nHC4$isSameDay)(props.date, highlightedRange.start);
|
|
50
50
|
let isSelectionEnd = isSelected && highlightedRange && (0, $1nHC4$isSameDay)(props.date, highlightedRange.end);
|
|
51
51
|
let { locale: locale } = (0, $1nHC4$useLocale)();
|
|
@@ -58,33 +58,33 @@ function $453c556b9066da11$export$5d847498420df57b({ state: state, currentMonth:
|
|
|
58
58
|
});
|
|
59
59
|
return /*#__PURE__*/ (0, $1nHC4$react).createElement("td", {
|
|
60
60
|
...cellProps,
|
|
61
|
-
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))),
|
|
61
|
+
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))), 'spectrum-Calendar-tableCell')
|
|
62
62
|
}, /*#__PURE__*/ (0, $1nHC4$react).createElement("span", {
|
|
63
63
|
...(0, $1nHC4$mergeProps)(buttonProps, hoverProps, focusProps),
|
|
64
64
|
ref: ref,
|
|
65
|
-
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))), 'spectrum-Calendar-date', {
|
|
66
|
+
'is-today': (0, $1nHC4$isToday)(props.date, state.timeZone),
|
|
67
|
+
'is-selected': isSelected,
|
|
68
|
+
'is-focused': isFocused && isFocusVisible,
|
|
69
69
|
// Style disabled (i.e. out of min/max range), but selected dates as unavailable
|
|
70
70
|
// since it is more clear than trying to dim the selection.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
'is-disabled': isDisabled && !isInvalid,
|
|
72
|
+
'is-unavailable': isUnavailable || isInvalid && isDisabled,
|
|
73
|
+
'is-outsideMonth': !(0, $1nHC4$isSameMonth)(props.date, currentMonth),
|
|
74
|
+
'is-range-start': isRangeStart,
|
|
75
|
+
'is-range-end': isRangeEnd,
|
|
76
|
+
'is-range-selection': isSelected && 'highlightedRange' in state,
|
|
77
|
+
'is-selection-start': isSelectionStart,
|
|
78
|
+
'is-selection-end': isSelectionEnd,
|
|
79
|
+
'is-hovered': isHovered,
|
|
80
|
+
'is-pressed': isPressed && !state.isReadOnly,
|
|
81
|
+
'is-invalid': isInvalid
|
|
82
82
|
})
|
|
83
83
|
}, /*#__PURE__*/ (0, $1nHC4$react).createElement("span", {
|
|
84
|
-
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))),
|
|
84
|
+
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))), 'spectrum-Calendar-dateText')
|
|
85
85
|
}, /*#__PURE__*/ (0, $1nHC4$react).createElement("span", null, formattedDate))));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
export {$453c556b9066da11$export$5d847498420df57b as CalendarCell};
|
|
90
|
-
//# sourceMappingURL=CalendarCell.
|
|
90
|
+
//# sourceMappingURL=CalendarCell.module.js.map
|
|
@@ -45,7 +45,7 @@ function $453c556b9066da11$export$5d847498420df57b({ state: state, currentMonth:
|
|
|
45
45
|
let isFirstSelectedAfterDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.subtract({
|
|
46
46
|
days: 1
|
|
47
47
|
}));
|
|
48
|
-
let highlightedRange =
|
|
48
|
+
let highlightedRange = 'highlightedRange' in state && state.highlightedRange;
|
|
49
49
|
let isSelectionStart = isSelected && highlightedRange && (0, $1nHC4$isSameDay)(props.date, highlightedRange.start);
|
|
50
50
|
let isSelectionEnd = isSelected && highlightedRange && (0, $1nHC4$isSameDay)(props.date, highlightedRange.end);
|
|
51
51
|
let { locale: locale } = (0, $1nHC4$useLocale)();
|
|
@@ -58,30 +58,30 @@ function $453c556b9066da11$export$5d847498420df57b({ state: state, currentMonth:
|
|
|
58
58
|
});
|
|
59
59
|
return /*#__PURE__*/ (0, $1nHC4$react).createElement("td", {
|
|
60
60
|
...cellProps,
|
|
61
|
-
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))),
|
|
61
|
+
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))), 'spectrum-Calendar-tableCell')
|
|
62
62
|
}, /*#__PURE__*/ (0, $1nHC4$react).createElement("span", {
|
|
63
63
|
...(0, $1nHC4$mergeProps)(buttonProps, hoverProps, focusProps),
|
|
64
64
|
ref: ref,
|
|
65
|
-
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))), 'spectrum-Calendar-date', {
|
|
66
|
+
'is-today': (0, $1nHC4$isToday)(props.date, state.timeZone),
|
|
67
|
+
'is-selected': isSelected,
|
|
68
|
+
'is-focused': isFocused && isFocusVisible,
|
|
69
69
|
// Style disabled (i.e. out of min/max range), but selected dates as unavailable
|
|
70
70
|
// since it is more clear than trying to dim the selection.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
'is-disabled': isDisabled && !isInvalid,
|
|
72
|
+
'is-unavailable': isUnavailable || isInvalid && isDisabled,
|
|
73
|
+
'is-outsideMonth': !(0, $1nHC4$isSameMonth)(props.date, currentMonth),
|
|
74
|
+
'is-range-start': isRangeStart,
|
|
75
|
+
'is-range-end': isRangeEnd,
|
|
76
|
+
'is-range-selection': isSelected && 'highlightedRange' in state,
|
|
77
|
+
'is-selection-start': isSelectionStart,
|
|
78
|
+
'is-selection-end': isSelectionEnd,
|
|
79
|
+
'is-hovered': isHovered,
|
|
80
|
+
'is-pressed': isPressed && !state.isReadOnly,
|
|
81
|
+
'is-invalid': isInvalid
|
|
82
82
|
})
|
|
83
83
|
}, /*#__PURE__*/ (0, $1nHC4$react).createElement("span", {
|
|
84
|
-
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))),
|
|
84
|
+
className: (0, $1nHC4$classNames)((0, ($parcel$interopDefault($1nHC4$calendar_vars_cssmodulejs))), 'spectrum-Calendar-dateText')
|
|
85
85
|
}, /*#__PURE__*/ (0, $1nHC4$react).createElement("span", null, formattedDate))));
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -44,12 +44,12 @@ function $02c19eea15a72a7b$export$26e2752316b9a375(props) {
|
|
|
44
44
|
let weeksInMonth = (0, $4d66a$internationalizeddate.getWeeksInMonth)(startDate, locale);
|
|
45
45
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($4d66a$react))).createElement("table", {
|
|
46
46
|
...gridProps,
|
|
47
|
-
className: (0, $4d66a$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
47
|
+
className: (0, $4d66a$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-body', 'spectrum-Calendar-table')
|
|
48
48
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($4d66a$react))).createElement("thead", headerProps, /*#__PURE__*/ (0, ($parcel$interopDefault($4d66a$react))).createElement("tr", null, weekDays.map((day, index)=>/*#__PURE__*/ (0, ($parcel$interopDefault($4d66a$react))).createElement("th", {
|
|
49
49
|
key: index,
|
|
50
|
-
className: (0, $4d66a$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
50
|
+
className: (0, $4d66a$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-tableCell')
|
|
51
51
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($4d66a$react))).createElement("span", {
|
|
52
|
-
className: (0, $4d66a$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))),
|
|
52
|
+
className: (0, $4d66a$reactspectrumutils.classNames)((0, ($parcel$interopDefault($915891ae6206caad$exports))), 'spectrum-Calendar-dayOfWeek')
|
|
53
53
|
}, day))))), /*#__PURE__*/ (0, ($parcel$interopDefault($4d66a$react))).createElement("tbody", null, [
|
|
54
54
|
...new Array(weeksInMonth).keys()
|
|
55
55
|
].map((weekIndex)=>/*#__PURE__*/ (0, ($parcel$interopDefault($4d66a$react))).createElement("tr", {
|
package/dist/CalendarMonth.mjs
CHANGED
|
@@ -38,12 +38,12 @@ function $faa2f3867773cfe5$export$26e2752316b9a375(props) {
|
|
|
38
38
|
let weeksInMonth = (0, $d434x$getWeeksInMonth)(startDate, locale);
|
|
39
39
|
return /*#__PURE__*/ (0, $d434x$react).createElement("table", {
|
|
40
40
|
...gridProps,
|
|
41
|
-
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))),
|
|
41
|
+
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))), 'spectrum-Calendar-body', 'spectrum-Calendar-table')
|
|
42
42
|
}, /*#__PURE__*/ (0, $d434x$react).createElement("thead", headerProps, /*#__PURE__*/ (0, $d434x$react).createElement("tr", null, weekDays.map((day, index)=>/*#__PURE__*/ (0, $d434x$react).createElement("th", {
|
|
43
43
|
key: index,
|
|
44
|
-
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))),
|
|
44
|
+
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))), 'spectrum-Calendar-tableCell')
|
|
45
45
|
}, /*#__PURE__*/ (0, $d434x$react).createElement("span", {
|
|
46
|
-
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))),
|
|
46
|
+
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))), 'spectrum-Calendar-dayOfWeek')
|
|
47
47
|
}, day))))), /*#__PURE__*/ (0, $d434x$react).createElement("tbody", null, [
|
|
48
48
|
...new Array(weeksInMonth).keys()
|
|
49
49
|
].map((weekIndex)=>/*#__PURE__*/ (0, $d434x$react).createElement("tr", {
|
|
@@ -60,4 +60,4 @@ function $faa2f3867773cfe5$export$26e2752316b9a375(props) {
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
export {$faa2f3867773cfe5$export$26e2752316b9a375 as CalendarMonth};
|
|
63
|
-
//# sourceMappingURL=CalendarMonth.
|
|
63
|
+
//# sourceMappingURL=CalendarMonth.module.js.map
|
|
@@ -38,12 +38,12 @@ function $faa2f3867773cfe5$export$26e2752316b9a375(props) {
|
|
|
38
38
|
let weeksInMonth = (0, $d434x$getWeeksInMonth)(startDate, locale);
|
|
39
39
|
return /*#__PURE__*/ (0, $d434x$react).createElement("table", {
|
|
40
40
|
...gridProps,
|
|
41
|
-
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))),
|
|
41
|
+
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))), 'spectrum-Calendar-body', 'spectrum-Calendar-table')
|
|
42
42
|
}, /*#__PURE__*/ (0, $d434x$react).createElement("thead", headerProps, /*#__PURE__*/ (0, $d434x$react).createElement("tr", null, weekDays.map((day, index)=>/*#__PURE__*/ (0, $d434x$react).createElement("th", {
|
|
43
43
|
key: index,
|
|
44
|
-
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))),
|
|
44
|
+
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))), 'spectrum-Calendar-tableCell')
|
|
45
45
|
}, /*#__PURE__*/ (0, $d434x$react).createElement("span", {
|
|
46
|
-
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))),
|
|
46
|
+
className: (0, $d434x$classNames)((0, ($parcel$interopDefault($d434x$calendar_vars_cssmodulejs))), 'spectrum-Calendar-dayOfWeek')
|
|
47
47
|
}, day))))), /*#__PURE__*/ (0, $d434x$react).createElement("tbody", null, [
|
|
48
48
|
...new Array(weeksInMonth).keys()
|
|
49
49
|
].map((weekIndex)=>/*#__PURE__*/ (0, $d434x$react).createElement("tr", {
|
package/dist/RangeCalendar.mjs
CHANGED
package/dist/ar-AE.mjs
CHANGED
package/dist/bg-BG.mjs
CHANGED
package/dist/cs-CZ.mjs
CHANGED
package/dist/da-DK.mjs
CHANGED
package/dist/de-DE.mjs
CHANGED
package/dist/el-GR.mjs
CHANGED
package/dist/en-US.mjs
CHANGED
package/dist/es-ES.mjs
CHANGED
package/dist/et-EE.mjs
CHANGED
package/dist/fi-FI.mjs
CHANGED
package/dist/fr-FR.mjs
CHANGED
package/dist/he-IL.mjs
CHANGED
package/dist/hr-HR.mjs
CHANGED
package/dist/hu-HU.mjs
CHANGED
package/dist/intlStrings.mjs
CHANGED
package/dist/it-IT.mjs
CHANGED
package/dist/ja-JP.mjs
CHANGED
package/dist/ko-KR.mjs
CHANGED
package/dist/lt-LT.mjs
CHANGED
package/dist/lv-LV.mjs
CHANGED
package/dist/nb-NO.mjs
CHANGED
package/dist/nl-NL.mjs
CHANGED
package/dist/pl-PL.mjs
CHANGED
package/dist/pt-BR.mjs
CHANGED
package/dist/pt-PT.mjs
CHANGED
package/dist/ro-RO.mjs
CHANGED
package/dist/ru-RU.mjs
CHANGED
package/dist/sk-SK.mjs
CHANGED
package/dist/sl-SI.mjs
CHANGED
package/dist/sr-SP.mjs
CHANGED
package/dist/sv-SE.mjs
CHANGED
package/dist/tr-TR.mjs
CHANGED
package/dist/uk-UA.mjs
CHANGED
package/dist/zh-CN.mjs
CHANGED
package/dist/zh-TW.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/calendar",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.9",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@internationalized/date": "^3.5.
|
|
40
|
-
"@react-aria/calendar": "^3.5.
|
|
41
|
-
"@react-aria/focus": "^3.17.
|
|
42
|
-
"@react-aria/i18n": "^3.11.
|
|
43
|
-
"@react-aria/interactions": "^3.21.
|
|
44
|
-
"@react-aria/utils": "^3.24.
|
|
45
|
-
"@react-aria/visually-hidden": "^3.8.
|
|
46
|
-
"@react-spectrum/button": "^3.16.
|
|
47
|
-
"@react-spectrum/label": "^3.16.
|
|
48
|
-
"@react-spectrum/utils": "^3.11.
|
|
49
|
-
"@react-stately/calendar": "^3.5.
|
|
50
|
-
"@react-types/button": "^3.9.
|
|
51
|
-
"@react-types/calendar": "^3.4.
|
|
52
|
-
"@react-types/shared": "^3.23.
|
|
53
|
-
"@spectrum-icons/ui": "^3.6.
|
|
39
|
+
"@internationalized/date": "^3.5.4",
|
|
40
|
+
"@react-aria/calendar": "^3.5.8",
|
|
41
|
+
"@react-aria/focus": "^3.17.1",
|
|
42
|
+
"@react-aria/i18n": "^3.11.1",
|
|
43
|
+
"@react-aria/interactions": "^3.21.3",
|
|
44
|
+
"@react-aria/utils": "^3.24.1",
|
|
45
|
+
"@react-aria/visually-hidden": "^3.8.12",
|
|
46
|
+
"@react-spectrum/button": "^3.16.4",
|
|
47
|
+
"@react-spectrum/label": "^3.16.6",
|
|
48
|
+
"@react-spectrum/utils": "^3.11.7",
|
|
49
|
+
"@react-stately/calendar": "^3.5.1",
|
|
50
|
+
"@react-types/button": "^3.9.4",
|
|
51
|
+
"@react-types/calendar": "^3.4.6",
|
|
52
|
+
"@react-types/shared": "^3.23.1",
|
|
53
|
+
"@spectrum-icons/ui": "^3.6.7",
|
|
54
54
|
"@swc/helpers": "^0.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
|
|
69
69
|
}
|