@react-spectrum/calendar 3.4.8 → 3.4.10

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.
Files changed (65) hide show
  1. package/dist/Calendar.main.js +1 -1
  2. package/dist/Calendar.main.js.map +1 -1
  3. package/dist/Calendar.mjs +2 -2
  4. package/dist/Calendar.module.js +1 -1
  5. package/dist/Calendar.module.js.map +1 -1
  6. package/dist/CalendarBase.main.js +17 -17
  7. package/dist/CalendarBase.main.js.map +1 -1
  8. package/dist/CalendarBase.mjs +18 -18
  9. package/dist/CalendarBase.module.js +17 -17
  10. package/dist/CalendarBase.module.js.map +1 -1
  11. package/dist/CalendarCell.main.js +19 -19
  12. package/dist/CalendarCell.main.js.map +1 -1
  13. package/dist/CalendarCell.mjs +20 -20
  14. package/dist/CalendarCell.module.js +19 -19
  15. package/dist/CalendarCell.module.js.map +1 -1
  16. package/dist/CalendarMonth.main.js +3 -3
  17. package/dist/CalendarMonth.mjs +4 -4
  18. package/dist/CalendarMonth.module.js +3 -3
  19. package/dist/RangeCalendar.main.js +1 -1
  20. package/dist/RangeCalendar.main.js.map +1 -1
  21. package/dist/RangeCalendar.mjs +2 -2
  22. package/dist/RangeCalendar.module.js +1 -1
  23. package/dist/RangeCalendar.module.js.map +1 -1
  24. package/dist/ar-AE.mjs +1 -1
  25. package/dist/bg-BG.mjs +1 -1
  26. package/dist/calendar_vars_css.mjs +1 -1
  27. package/dist/cs-CZ.mjs +1 -1
  28. package/dist/da-DK.mjs +1 -1
  29. package/dist/de-DE.mjs +1 -1
  30. package/dist/el-GR.mjs +1 -1
  31. package/dist/en-US.mjs +1 -1
  32. package/dist/es-ES.mjs +1 -1
  33. package/dist/et-EE.mjs +1 -1
  34. package/dist/fi-FI.mjs +1 -1
  35. package/dist/fr-FR.mjs +1 -1
  36. package/dist/he-IL.mjs +1 -1
  37. package/dist/hr-HR.mjs +1 -1
  38. package/dist/hu-HU.mjs +1 -1
  39. package/dist/intlStrings.mjs +1 -1
  40. package/dist/it-IT.mjs +1 -1
  41. package/dist/ja-JP.mjs +1 -1
  42. package/dist/ko-KR.mjs +1 -1
  43. package/dist/lt-LT.mjs +1 -1
  44. package/dist/lv-LV.mjs +1 -1
  45. package/dist/nb-NO.mjs +1 -1
  46. package/dist/nl-NL.mjs +1 -1
  47. package/dist/pl-PL.mjs +1 -1
  48. package/dist/pt-BR.mjs +1 -1
  49. package/dist/pt-PT.mjs +1 -1
  50. package/dist/ro-RO.mjs +1 -1
  51. package/dist/ru-RU.mjs +1 -1
  52. package/dist/sk-SK.mjs +1 -1
  53. package/dist/sl-SI.mjs +1 -1
  54. package/dist/sr-SP.mjs +1 -1
  55. package/dist/sv-SE.mjs +1 -1
  56. package/dist/tr-TR.mjs +1 -1
  57. package/dist/types.d.ts.map +1 -1
  58. package/dist/uk-UA.mjs +1 -1
  59. package/dist/zh-CN.mjs +1 -1
  60. package/dist/zh-TW.mjs +1 -1
  61. package/package.json +19 -19
  62. package/src/Calendar.tsx +1 -1
  63. package/src/CalendarBase.tsx +5 -5
  64. package/src/CalendarCell.tsx +1 -1
  65. package/src/RangeCalendar.tsx +1 -1
@@ -33,7 +33,7 @@ function $parcel$interopDefault(a) {
33
33
 
34
34
 
35
35
  function $453c556b9066da11$export$5d847498420df57b({ state: state, currentMonth: currentMonth, ...props }) {
36
- let ref = (0, $1nHC4$useRef)();
36
+ let ref = (0, $1nHC4$useRef)(null);
37
37
  let { cellProps: cellProps, buttonProps: buttonProps, isPressed: isPressed, isSelected: isSelected, isDisabled: isDisabled, isFocused: isFocused, isInvalid: isInvalid, formattedDate: formattedDate } = (0, $1nHC4$useCalendarCell)({
38
38
  ...props,
39
39
  isDisabled: !(0, $1nHC4$isSameMonth)(props.date, currentMonth)
@@ -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 = "highlightedRange" in state && state.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))), "spectrum-Calendar-tableCell")
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))), "spectrum-Calendar-date", {
66
- "is-today": (0, $1nHC4$isToday)(props.date, state.timeZone),
67
- "is-selected": isSelected,
68
- "is-focused": isFocused && isFocusVisible,
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
- "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
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))), "spectrum-Calendar-dateText")
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
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAkBM,SAAS,0CAAa,SAAC,KAAK,gBAAE,YAAY,EAAE,GAAG,OAAyB;IAC7E,IAAI,MAAM,CAAA,GAAA,aAAK;IACf,IAAI,aACF,SAAS,eACT,WAAW,aACX,SAAS,cACT,UAAU,cACV,UAAU,aACV,SAAS,aACT,SAAS,iBACT,aAAa,EACd,GAAG,CAAA,GAAA,sBAAc,EAAE;QAClB,GAAG,KAAK;QACR,YAAY,CAAC,CAAA,GAAA,kBAAU,EAAE,MAAM,IAAI,EAAE;IACvC,GAAG,OAAO;IACV,IAAI,gBAAgB,MAAM,iBAAiB,CAAC,MAAM,IAAI,KAAK,CAAC;IAC5D,IAAI,+BAA+B,CAAC,cAAc,CAAC,aAAa,MAAM,iBAAiB,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC;QAAC,MAAM;IAAC;IAC/G,IAAI,+BAA+B,CAAC,cAAc,CAAC,aAAa,MAAM,iBAAiB,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC;QAAC,MAAM;IAAC;IACpH,IAAI,mBAAmB,sBAAsB,SAAS,MAAM,gBAAgB;IAC5E,IAAI,mBAAmB,cAAc,oBAAoB,CAAA,GAAA,gBAAQ,EAAE,MAAM,IAAI,EAAE,iBAAiB,KAAK;IACrG,IAAI,iBAAiB,cAAc,oBAAoB,CAAA,GAAA,gBAAQ,EAAE,MAAM,IAAI,EAAE,iBAAiB,GAAG;IACjG,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IACvB,IAAI,YAAY,CAAA,GAAA,mBAAW,EAAE,MAAM,IAAI,EAAE;IACzC,IAAI,eAAe,cAAe,CAAA,gCAAgC,cAAc,KAAK,MAAM,IAAI,CAAC,GAAG,KAAK,CAAA;IACxG,IAAI,aAAa,cAAe,CAAA,gCAAgC,cAAc,KAAK,MAAM,IAAI,CAAC,GAAG,KAAK,aAAa,QAAQ,CAAC,cAAc,CAAC,aAAY;IACvJ,IAAI,cAAC,UAAU,kBAAE,cAAc,EAAC,GAAG,CAAA,GAAA,mBAAW;IAC9C,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAAC,YAAY,cAAc,iBAAiB,MAAM,UAAU;IAAA;IAEnG,qBACE,gCAAC;QACE,GAAG,SAAS;QACb,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAK,GAAG;qBAC9B,gCAAC;QACE,GAAG,CAAA,GAAA,iBAAS,EAAE,aAAa,YAAY,WAAW;QACnD,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAK,GAAG,0BAA0B;YACtD,YAAY,CAAA,GAAA,cAAM,EAAE,MAAM,IAAI,EAAE,MAAM,QAAQ;YAC9C,eAAe;YACf,cAAc,aAAa;YAC3B,gFAAgF;YAChF,2DAA2D;YAC3D,eAAe,cAAc,CAAC;YAC9B,kBAAkB,iBAAkB,aAAa;YACjD,mBAAmB,CAAC,CAAA,GAAA,kBAAU,EAAE,MAAM,IAAI,EAAE;YAC5C,kBAAkB;YAClB,gBAAgB;YAChB,sBAAsB,cAAc,sBAAsB;YAC1D,sBAAsB;YACtB,oBAAoB;YACpB,cAAc;YACd,cAAc,aAAa,CAAC,MAAM,UAAU;YAC5C,cAAc;QAChB;qBACA,gCAAC;QAAK,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAK,GAAG;qBAClC,gCAAC,cAAM;AAKjB","sources":["packages/@react-spectrum/calendar/src/CalendarCell.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaCalendarCellProps, useCalendarCell} from '@react-aria/calendar';\nimport {CalendarDate, getDayOfWeek, isSameDay, isSameMonth, isToday} from '@internationalized/date';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarCellProps extends AriaCalendarCellProps {\n state: CalendarState | RangeCalendarState,\n currentMonth: CalendarDate\n}\n\nexport function CalendarCell({state, currentMonth, ...props}: CalendarCellProps) {\n let ref = useRef<HTMLElement>();\n let {\n cellProps,\n buttonProps,\n isPressed,\n isSelected,\n isDisabled,\n isFocused,\n isInvalid,\n formattedDate\n } = useCalendarCell({\n ...props,\n isDisabled: !isSameMonth(props.date, currentMonth)\n }, state, ref);\n let isUnavailable = state.isCellUnavailable(props.date) && !isDisabled;\n let isLastSelectedBeforeDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.add({days: 1}));\n let isFirstSelectedAfterDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.subtract({days: 1}));\n let highlightedRange = 'highlightedRange' in state && state.highlightedRange;\n let isSelectionStart = isSelected && highlightedRange && isSameDay(props.date, highlightedRange.start);\n let isSelectionEnd = isSelected && highlightedRange && isSameDay(props.date, highlightedRange.end);\n let {locale} = useLocale();\n let dayOfWeek = getDayOfWeek(props.date, locale);\n let isRangeStart = isSelected && (isFirstSelectedAfterDisabled || dayOfWeek === 0 || props.date.day === 1);\n let isRangeEnd = isSelected && (isLastSelectedBeforeDisabled || dayOfWeek === 6 || props.date.day === currentMonth.calendar.getDaysInMonth(currentMonth));\n let {focusProps, isFocusVisible} = useFocusRing();\n let {hoverProps, isHovered} = useHover({isDisabled: isDisabled || isUnavailable || state.isReadOnly});\n\n return (\n <td\n {...cellProps}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span\n {...mergeProps(buttonProps, hoverProps, focusProps)}\n ref={ref}\n className={classNames(styles, 'spectrum-Calendar-date', {\n 'is-today': isToday(props.date, state.timeZone),\n 'is-selected': isSelected,\n 'is-focused': isFocused && isFocusVisible,\n // Style disabled (i.e. out of min/max range), but selected dates as unavailable\n // since it is more clear than trying to dim the selection.\n 'is-disabled': isDisabled && !isInvalid,\n 'is-unavailable': isUnavailable || (isInvalid && isDisabled),\n 'is-outsideMonth': !isSameMonth(props.date, currentMonth),\n 'is-range-start': isRangeStart,\n 'is-range-end': isRangeEnd,\n 'is-range-selection': isSelected && 'highlightedRange' in state,\n 'is-selection-start': isSelectionStart,\n 'is-selection-end': isSelectionEnd,\n 'is-hovered': isHovered,\n 'is-pressed': isPressed && !state.isReadOnly,\n 'is-invalid': isInvalid\n })}>\n <span className={classNames(styles, 'spectrum-Calendar-dateText')}>\n <span>{formattedDate}</span>\n </span>\n </span>\n </td>\n );\n}\n"],"names":[],"version":3,"file":"CalendarCell.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAkBM,SAAS,0CAAa,SAAC,KAAK,gBAAE,YAAY,EAAE,GAAG,OAAyB;IAC7E,IAAI,MAAM,CAAA,GAAA,aAAK,EAAe;IAC9B,IAAI,aACF,SAAS,eACT,WAAW,aACX,SAAS,cACT,UAAU,cACV,UAAU,aACV,SAAS,aACT,SAAS,iBACT,aAAa,EACd,GAAG,CAAA,GAAA,sBAAc,EAAE;QAClB,GAAG,KAAK;QACR,YAAY,CAAC,CAAA,GAAA,kBAAU,EAAE,MAAM,IAAI,EAAE;IACvC,GAAG,OAAO;IACV,IAAI,gBAAgB,MAAM,iBAAiB,CAAC,MAAM,IAAI,KAAK,CAAC;IAC5D,IAAI,+BAA+B,CAAC,cAAc,CAAC,aAAa,MAAM,iBAAiB,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC;QAAC,MAAM;IAAC;IAC/G,IAAI,+BAA+B,CAAC,cAAc,CAAC,aAAa,MAAM,iBAAiB,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC;QAAC,MAAM;IAAC;IACpH,IAAI,mBAAmB,sBAAsB,SAAS,MAAM,gBAAgB;IAC5E,IAAI,mBAAmB,cAAc,oBAAoB,CAAA,GAAA,gBAAQ,EAAE,MAAM,IAAI,EAAE,iBAAiB,KAAK;IACrG,IAAI,iBAAiB,cAAc,oBAAoB,CAAA,GAAA,gBAAQ,EAAE,MAAM,IAAI,EAAE,iBAAiB,GAAG;IACjG,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IACvB,IAAI,YAAY,CAAA,GAAA,mBAAW,EAAE,MAAM,IAAI,EAAE;IACzC,IAAI,eAAe,cAAe,CAAA,gCAAgC,cAAc,KAAK,MAAM,IAAI,CAAC,GAAG,KAAK,CAAA;IACxG,IAAI,aAAa,cAAe,CAAA,gCAAgC,cAAc,KAAK,MAAM,IAAI,CAAC,GAAG,KAAK,aAAa,QAAQ,CAAC,cAAc,CAAC,aAAY;IACvJ,IAAI,cAAC,UAAU,kBAAE,cAAc,EAAC,GAAG,CAAA,GAAA,mBAAW;IAC9C,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAAC,YAAY,cAAc,iBAAiB,MAAM,UAAU;IAAA;IAEnG,qBACE,gCAAC;QACE,GAAG,SAAS;QACb,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAK,GAAG;qBAC9B,gCAAC;QACE,GAAG,CAAA,GAAA,iBAAS,EAAE,aAAa,YAAY,WAAW;QACnD,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAK,GAAG,0BAA0B;YACtD,YAAY,CAAA,GAAA,cAAM,EAAE,MAAM,IAAI,EAAE,MAAM,QAAQ;YAC9C,eAAe;YACf,cAAc,aAAa;YAC3B,gFAAgF;YAChF,2DAA2D;YAC3D,eAAe,cAAc,CAAC;YAC9B,kBAAkB,iBAAkB,aAAa;YACjD,mBAAmB,CAAC,CAAA,GAAA,kBAAU,EAAE,MAAM,IAAI,EAAE;YAC5C,kBAAkB;YAClB,gBAAgB;YAChB,sBAAsB,cAAc,sBAAsB;YAC1D,sBAAsB;YACtB,oBAAoB;YACpB,cAAc;YACd,cAAc,aAAa,CAAC,MAAM,UAAU;YAC5C,cAAc;QAChB;qBACA,gCAAC;QAAK,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAK,GAAG;qBAClC,gCAAC,cAAM;AAKjB","sources":["packages/@react-spectrum/calendar/src/CalendarCell.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaCalendarCellProps, useCalendarCell} from '@react-aria/calendar';\nimport {CalendarDate, getDayOfWeek, isSameDay, isSameMonth, isToday} from '@internationalized/date';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarCellProps extends AriaCalendarCellProps {\n state: CalendarState | RangeCalendarState,\n currentMonth: CalendarDate\n}\n\nexport function CalendarCell({state, currentMonth, ...props}: CalendarCellProps) {\n let ref = useRef<HTMLElement>(null);\n let {\n cellProps,\n buttonProps,\n isPressed,\n isSelected,\n isDisabled,\n isFocused,\n isInvalid,\n formattedDate\n } = useCalendarCell({\n ...props,\n isDisabled: !isSameMonth(props.date, currentMonth)\n }, state, ref);\n let isUnavailable = state.isCellUnavailable(props.date) && !isDisabled;\n let isLastSelectedBeforeDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.add({days: 1}));\n let isFirstSelectedAfterDisabled = !isDisabled && !isInvalid && state.isCellUnavailable(props.date.subtract({days: 1}));\n let highlightedRange = 'highlightedRange' in state && state.highlightedRange;\n let isSelectionStart = isSelected && highlightedRange && isSameDay(props.date, highlightedRange.start);\n let isSelectionEnd = isSelected && highlightedRange && isSameDay(props.date, highlightedRange.end);\n let {locale} = useLocale();\n let dayOfWeek = getDayOfWeek(props.date, locale);\n let isRangeStart = isSelected && (isFirstSelectedAfterDisabled || dayOfWeek === 0 || props.date.day === 1);\n let isRangeEnd = isSelected && (isLastSelectedBeforeDisabled || dayOfWeek === 6 || props.date.day === currentMonth.calendar.getDaysInMonth(currentMonth));\n let {focusProps, isFocusVisible} = useFocusRing();\n let {hoverProps, isHovered} = useHover({isDisabled: isDisabled || isUnavailable || state.isReadOnly});\n\n return (\n <td\n {...cellProps}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span\n {...mergeProps(buttonProps, hoverProps, focusProps)}\n ref={ref}\n className={classNames(styles, 'spectrum-Calendar-date', {\n 'is-today': isToday(props.date, state.timeZone),\n 'is-selected': isSelected,\n 'is-focused': isFocused && isFocusVisible,\n // Style disabled (i.e. out of min/max range), but selected dates as unavailable\n // since it is more clear than trying to dim the selection.\n 'is-disabled': isDisabled && !isInvalid,\n 'is-unavailable': isUnavailable || (isInvalid && isDisabled),\n 'is-outsideMonth': !isSameMonth(props.date, currentMonth),\n 'is-range-start': isRangeStart,\n 'is-range-end': isRangeEnd,\n 'is-range-selection': isSelected && 'highlightedRange' in state,\n 'is-selection-start': isSelectionStart,\n 'is-selection-end': isSelectionEnd,\n 'is-hovered': isHovered,\n 'is-pressed': isPressed && !state.isReadOnly,\n 'is-invalid': isInvalid\n })}>\n <span className={classNames(styles, 'spectrum-Calendar-dateText')}>\n <span>{formattedDate}</span>\n </span>\n </span>\n </td>\n );\n}\n"],"names":[],"version":3,"file":"CalendarCell.module.js.map"}
@@ -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))), "spectrum-Calendar-body", "spectrum-Calendar-table")
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))), "spectrum-Calendar-tableCell")
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))), "spectrum-Calendar-dayOfWeek")
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", {
@@ -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))), "spectrum-Calendar-body", "spectrum-Calendar-table")
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))), "spectrum-Calendar-tableCell")
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))), "spectrum-Calendar-dayOfWeek")
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.mjs.map
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))), "spectrum-Calendar-body", "spectrum-Calendar-table")
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))), "spectrum-Calendar-tableCell")
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))), "spectrum-Calendar-dayOfWeek")
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", {
@@ -51,7 +51,7 @@ function $4d045066f2092e3b$var$RangeCalendar(props, ref) {
51
51
  visibleDuration: visibleDuration,
52
52
  createCalendar: $j3Qmk$internationalizeddate.createCalendar
53
53
  });
54
- let domRef = (0, $j3Qmk$react.useRef)();
54
+ let domRef = (0, $j3Qmk$react.useRef)(null);
55
55
  (0, $j3Qmk$react.useImperativeHandle)(ref, ()=>({
56
56
  ...(0, $j3Qmk$reactspectrumutils.createDOMRef)(domRef),
57
57
  focus () {
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AAaD,SAAS,oCAAmC,KAAoC,EAAE,GAA8B;IAC9G,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,iBAAC,gBAAgB,GAAE,GAAG;IAC1B,gBAAgB,KAAK,GAAG,CAAC,eAAe;IACxC,IAAI,kBAAkB,CAAA,GAAA,oBAAM,EAAE,IAAO,CAAA;YAAC,QAAQ;QAAa,CAAA,GAAI;QAAC;KAAc;IAC9E,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,8BAAQ;IACvB,IAAI,QAAQ,CAAA,GAAA,iDAAoB,EAAE;QAChC,GAAG,KAAK;gBACR;yBACA;wBACA;IACF;IAEA,IAAI,SAAS,CAAA,GAAA,mBAAK;IAClB,CAAA,GAAA,gCAAkB,EAAE,KAAK,IAAO,CAAA;YAC9B,GAAG,CAAA,GAAA,sCAAW,EAAE,OAAO;YACvB;gBACE,MAAM,UAAU,CAAC;YACnB;QACF,CAAA;IAEA,IAAI,iBAAC,aAAa,mBAAE,eAAe,mBAAE,eAAe,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,yCAAe,EAAE,OAAO,OAAO;IAE1G,qBACE,0DAAC,CAAA,GAAA,sCAAW;QACT,GAAG,KAAK;QACT,eAAe;QACf,OAAO;QACP,aAAa;QACb,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;;AAEzB;AAEA;;CAEC,GACD,MAAM,0DAAiB,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/calendar/src/RangeCalendar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarBase} from './CalendarBase';\nimport {createCalendar} from '@internationalized/date';\nimport {createDOMRef} from '@react-spectrum/utils';\nimport {DateValue, SpectrumRangeCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRangeCalendar} from '@react-aria/calendar';\nimport {useRangeCalendarState} from '@react-stately/calendar';\n\nfunction RangeCalendar<T extends DateValue>(props: SpectrumRangeCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n visibleMonths = Math.max(visibleMonths, 1);\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useRangeCalendarState({\n ...props,\n locale,\n visibleDuration,\n createCalendar\n });\n\n let domRef = useRef();\n useImperativeHandle(ref, () => ({\n ...createDOMRef(domRef),\n focus() {\n state.setFocused(true);\n }\n }));\n\n let {calendarProps, prevButtonProps, nextButtonProps, errorMessageProps} = useRangeCalendar(props, state, domRef);\n\n return (\n <CalendarBase\n {...props}\n visibleMonths={visibleMonths}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.\n */\nconst _RangeCalendar = React.forwardRef(RangeCalendar) as <T extends DateValue>(props: SpectrumRangeCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_RangeCalendar as RangeCalendar};\n"],"names":[],"version":3,"file":"RangeCalendar.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AAaD,SAAS,oCAAmC,KAAoC,EAAE,GAA8B;IAC9G,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,iBAAC,gBAAgB,GAAE,GAAG;IAC1B,gBAAgB,KAAK,GAAG,CAAC,eAAe;IACxC,IAAI,kBAAkB,CAAA,GAAA,oBAAM,EAAE,IAAO,CAAA;YAAC,QAAQ;QAAa,CAAA,GAAI;QAAC;KAAc;IAC9E,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,8BAAQ;IACvB,IAAI,QAAQ,CAAA,GAAA,iDAAoB,EAAE;QAChC,GAAG,KAAK;gBACR;yBACA;wBACA;IACF;IAEA,IAAI,SAAS,CAAA,GAAA,mBAAK,EAAE;IACpB,CAAA,GAAA,gCAAkB,EAAE,KAAK,IAAO,CAAA;YAC9B,GAAG,CAAA,GAAA,sCAAW,EAAE,OAAO;YACvB;gBACE,MAAM,UAAU,CAAC;YACnB;QACF,CAAA;IAEA,IAAI,iBAAC,aAAa,mBAAE,eAAe,mBAAE,eAAe,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,yCAAe,EAAE,OAAO,OAAO;IAE1G,qBACE,0DAAC,CAAA,GAAA,sCAAW;QACT,GAAG,KAAK;QACT,eAAe;QACf,OAAO;QACP,aAAa;QACb,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;;AAEzB;AAEA;;CAEC,GACD,MAAM,0DAAiB,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/calendar/src/RangeCalendar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarBase} from './CalendarBase';\nimport {createCalendar} from '@internationalized/date';\nimport {createDOMRef} from '@react-spectrum/utils';\nimport {DateValue, SpectrumRangeCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRangeCalendar} from '@react-aria/calendar';\nimport {useRangeCalendarState} from '@react-stately/calendar';\n\nfunction RangeCalendar<T extends DateValue>(props: SpectrumRangeCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n visibleMonths = Math.max(visibleMonths, 1);\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useRangeCalendarState({\n ...props,\n locale,\n visibleDuration,\n createCalendar\n });\n\n let domRef = useRef(null);\n useImperativeHandle(ref, () => ({\n ...createDOMRef(domRef),\n focus() {\n state.setFocused(true);\n }\n }));\n\n let {calendarProps, prevButtonProps, nextButtonProps, errorMessageProps} = useRangeCalendar(props, state, domRef);\n\n return (\n <CalendarBase\n {...props}\n visibleMonths={visibleMonths}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.\n */\nconst _RangeCalendar = React.forwardRef(RangeCalendar) as <T extends DateValue>(props: SpectrumRangeCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_RangeCalendar as RangeCalendar};\n"],"names":[],"version":3,"file":"RangeCalendar.main.js.map"}
@@ -41,7 +41,7 @@ function $8b1e8eddbf3b15de$var$RangeCalendar(props, ref) {
41
41
  visibleDuration: visibleDuration,
42
42
  createCalendar: $7I6vM$createCalendar
43
43
  });
44
- let domRef = (0, $7I6vM$useRef)();
44
+ let domRef = (0, $7I6vM$useRef)(null);
45
45
  (0, $7I6vM$useImperativeHandle)(ref, ()=>({
46
46
  ...(0, $7I6vM$createDOMRef)(domRef),
47
47
  focus () {
@@ -66,4 +66,4 @@ function $8b1e8eddbf3b15de$var$RangeCalendar(props, ref) {
66
66
 
67
67
 
68
68
  export {$8b1e8eddbf3b15de$export$a4f5c8b89d277a8d as RangeCalendar};
69
- //# sourceMappingURL=RangeCalendar.mjs.map
69
+ //# sourceMappingURL=RangeCalendar.module.js.map
@@ -41,7 +41,7 @@ function $8b1e8eddbf3b15de$var$RangeCalendar(props, ref) {
41
41
  visibleDuration: visibleDuration,
42
42
  createCalendar: $7I6vM$createCalendar
43
43
  });
44
- let domRef = (0, $7I6vM$useRef)();
44
+ let domRef = (0, $7I6vM$useRef)(null);
45
45
  (0, $7I6vM$useImperativeHandle)(ref, ()=>({
46
46
  ...(0, $7I6vM$createDOMRef)(domRef),
47
47
  focus () {
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AAaD,SAAS,oCAAmC,KAAoC,EAAE,GAA8B;IAC9G,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,iBAAC,gBAAgB,GAAE,GAAG;IAC1B,gBAAgB,KAAK,GAAG,CAAC,eAAe;IACxC,IAAI,kBAAkB,CAAA,GAAA,cAAM,EAAE,IAAO,CAAA;YAAC,QAAQ;QAAa,CAAA,GAAI;QAAC;KAAc;IAC9E,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IACvB,IAAI,QAAQ,CAAA,GAAA,4BAAoB,EAAE;QAChC,GAAG,KAAK;gBACR;yBACA;wBACA;IACF;IAEA,IAAI,SAAS,CAAA,GAAA,aAAK;IAClB,CAAA,GAAA,0BAAkB,EAAE,KAAK,IAAO,CAAA;YAC9B,GAAG,CAAA,GAAA,mBAAW,EAAE,OAAO;YACvB;gBACE,MAAM,UAAU,CAAC;YACnB;QACF,CAAA;IAEA,IAAI,iBAAC,aAAa,mBAAE,eAAe,mBAAE,eAAe,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,uBAAe,EAAE,OAAO,OAAO;IAE1G,qBACE,gCAAC,CAAA,GAAA,yCAAW;QACT,GAAG,KAAK;QACT,eAAe;QACf,OAAO;QACP,aAAa;QACb,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;;AAEzB;AAEA;;CAEC,GACD,MAAM,0DAAiB,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/calendar/src/RangeCalendar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarBase} from './CalendarBase';\nimport {createCalendar} from '@internationalized/date';\nimport {createDOMRef} from '@react-spectrum/utils';\nimport {DateValue, SpectrumRangeCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRangeCalendar} from '@react-aria/calendar';\nimport {useRangeCalendarState} from '@react-stately/calendar';\n\nfunction RangeCalendar<T extends DateValue>(props: SpectrumRangeCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n visibleMonths = Math.max(visibleMonths, 1);\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useRangeCalendarState({\n ...props,\n locale,\n visibleDuration,\n createCalendar\n });\n\n let domRef = useRef();\n useImperativeHandle(ref, () => ({\n ...createDOMRef(domRef),\n focus() {\n state.setFocused(true);\n }\n }));\n\n let {calendarProps, prevButtonProps, nextButtonProps, errorMessageProps} = useRangeCalendar(props, state, domRef);\n\n return (\n <CalendarBase\n {...props}\n visibleMonths={visibleMonths}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.\n */\nconst _RangeCalendar = React.forwardRef(RangeCalendar) as <T extends DateValue>(props: SpectrumRangeCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_RangeCalendar as RangeCalendar};\n"],"names":[],"version":3,"file":"RangeCalendar.module.js.map"}
1
+ {"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AAaD,SAAS,oCAAmC,KAAoC,EAAE,GAA8B;IAC9G,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,iBAAC,gBAAgB,GAAE,GAAG;IAC1B,gBAAgB,KAAK,GAAG,CAAC,eAAe;IACxC,IAAI,kBAAkB,CAAA,GAAA,cAAM,EAAE,IAAO,CAAA;YAAC,QAAQ;QAAa,CAAA,GAAI;QAAC;KAAc;IAC9E,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IACvB,IAAI,QAAQ,CAAA,GAAA,4BAAoB,EAAE;QAChC,GAAG,KAAK;gBACR;yBACA;wBACA;IACF;IAEA,IAAI,SAAS,CAAA,GAAA,aAAK,EAAE;IACpB,CAAA,GAAA,0BAAkB,EAAE,KAAK,IAAO,CAAA;YAC9B,GAAG,CAAA,GAAA,mBAAW,EAAE,OAAO;YACvB;gBACE,MAAM,UAAU,CAAC;YACnB;QACF,CAAA;IAEA,IAAI,iBAAC,aAAa,mBAAE,eAAe,mBAAE,eAAe,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,uBAAe,EAAE,OAAO,OAAO;IAE1G,qBACE,gCAAC,CAAA,GAAA,yCAAW;QACT,GAAG,KAAK;QACT,eAAe;QACf,OAAO;QACP,aAAa;QACb,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;;AAEzB;AAEA;;CAEC,GACD,MAAM,0DAAiB,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/calendar/src/RangeCalendar.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CalendarBase} from './CalendarBase';\nimport {createCalendar} from '@internationalized/date';\nimport {createDOMRef} from '@react-spectrum/utils';\nimport {DateValue, SpectrumRangeCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRangeCalendar} from '@react-aria/calendar';\nimport {useRangeCalendarState} from '@react-stately/calendar';\n\nfunction RangeCalendar<T extends DateValue>(props: SpectrumRangeCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n visibleMonths = Math.max(visibleMonths, 1);\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useRangeCalendarState({\n ...props,\n locale,\n visibleDuration,\n createCalendar\n });\n\n let domRef = useRef(null);\n useImperativeHandle(ref, () => ({\n ...createDOMRef(domRef),\n focus() {\n state.setFocused(true);\n }\n }));\n\n let {calendarProps, prevButtonProps, nextButtonProps, errorMessageProps} = useRangeCalendar(props, state, domRef);\n\n return (\n <CalendarBase\n {...props}\n visibleMonths={visibleMonths}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.\n */\nconst _RangeCalendar = React.forwardRef(RangeCalendar) as <T extends DateValue>(props: SpectrumRangeCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_RangeCalendar as RangeCalendar};\n"],"names":[],"version":3,"file":"RangeCalendar.module.js.map"}
package/dist/ar-AE.mjs CHANGED
@@ -8,4 +8,4 @@ $c1fdee2284f63122$exports = {
8
8
 
9
9
 
10
10
  export {$c1fdee2284f63122$exports as default};
11
- //# sourceMappingURL=ar-AE.mjs.map
11
+ //# sourceMappingURL=ar-AE.module.js.map
package/dist/bg-BG.mjs CHANGED
@@ -8,4 +8,4 @@ $81326fc5b8464f3e$exports = {
8
8
 
9
9
 
10
10
  export {$81326fc5b8464f3e$exports as default};
11
- //# sourceMappingURL=bg-BG.mjs.map
11
+ //# sourceMappingURL=bg-BG.module.js.map
@@ -115,4 +115,4 @@ $52c51313300b3b3e$export$fb184b623420d9be = `EuwYBq_title`;
115
115
 
116
116
 
117
117
  export {$52c51313300b3b3e$exports as default};
118
- //# sourceMappingURL=calendar_vars_css.mjs.map
118
+ //# sourceMappingURL=calendar_vars_css.module.js.map
package/dist/cs-CZ.mjs CHANGED
@@ -8,4 +8,4 @@ $61bec992b8f61b70$exports = {
8
8
 
9
9
 
10
10
  export {$61bec992b8f61b70$exports as default};
11
- //# sourceMappingURL=cs-CZ.mjs.map
11
+ //# sourceMappingURL=cs-CZ.module.js.map
package/dist/da-DK.mjs CHANGED
@@ -8,4 +8,4 @@ $92192aa23ec84b2d$exports = {
8
8
 
9
9
 
10
10
  export {$92192aa23ec84b2d$exports as default};
11
- //# sourceMappingURL=da-DK.mjs.map
11
+ //# sourceMappingURL=da-DK.module.js.map
package/dist/de-DE.mjs CHANGED
@@ -8,4 +8,4 @@ $4db8629ea44949b0$exports = {
8
8
 
9
9
 
10
10
  export {$4db8629ea44949b0$exports as default};
11
- //# sourceMappingURL=de-DE.mjs.map
11
+ //# sourceMappingURL=de-DE.module.js.map
package/dist/el-GR.mjs CHANGED
@@ -8,4 +8,4 @@ $d1795c2b69d00f6c$exports = {
8
8
 
9
9
 
10
10
  export {$d1795c2b69d00f6c$exports as default};
11
- //# sourceMappingURL=el-GR.mjs.map
11
+ //# sourceMappingURL=el-GR.module.js.map
package/dist/en-US.mjs CHANGED
@@ -8,4 +8,4 @@ $16d2015735d51a41$exports = {
8
8
 
9
9
 
10
10
  export {$16d2015735d51a41$exports as default};
11
- //# sourceMappingURL=en-US.mjs.map
11
+ //# sourceMappingURL=en-US.module.js.map
package/dist/es-ES.mjs CHANGED
@@ -8,4 +8,4 @@ $96cd1e101026681b$exports = {
8
8
 
9
9
 
10
10
  export {$96cd1e101026681b$exports as default};
11
- //# sourceMappingURL=es-ES.mjs.map
11
+ //# sourceMappingURL=es-ES.module.js.map
package/dist/et-EE.mjs CHANGED
@@ -8,4 +8,4 @@ $1133d3628ea10323$exports = {
8
8
 
9
9
 
10
10
  export {$1133d3628ea10323$exports as default};
11
- //# sourceMappingURL=et-EE.mjs.map
11
+ //# sourceMappingURL=et-EE.module.js.map
package/dist/fi-FI.mjs CHANGED
@@ -8,4 +8,4 @@ $53163229660d53e4$exports = {
8
8
 
9
9
 
10
10
  export {$53163229660d53e4$exports as default};
11
- //# sourceMappingURL=fi-FI.mjs.map
11
+ //# sourceMappingURL=fi-FI.module.js.map
package/dist/fr-FR.mjs CHANGED
@@ -8,4 +8,4 @@ $d0808f7b535fb9b6$exports = {
8
8
 
9
9
 
10
10
  export {$d0808f7b535fb9b6$exports as default};
11
- //# sourceMappingURL=fr-FR.mjs.map
11
+ //# sourceMappingURL=fr-FR.module.js.map
package/dist/he-IL.mjs CHANGED
@@ -8,4 +8,4 @@ $658f594fbca84b9b$exports = {
8
8
 
9
9
 
10
10
  export {$658f594fbca84b9b$exports as default};
11
- //# sourceMappingURL=he-IL.mjs.map
11
+ //# sourceMappingURL=he-IL.module.js.map
package/dist/hr-HR.mjs CHANGED
@@ -8,4 +8,4 @@ $0b62e8a6414bc20c$exports = {
8
8
 
9
9
 
10
10
  export {$0b62e8a6414bc20c$exports as default};
11
- //# sourceMappingURL=hr-HR.mjs.map
11
+ //# sourceMappingURL=hr-HR.module.js.map
package/dist/hu-HU.mjs CHANGED
@@ -8,4 +8,4 @@ $132d1b97de231314$exports = {
8
8
 
9
9
 
10
10
  export {$132d1b97de231314$exports as default};
11
- //# sourceMappingURL=hu-HU.mjs.map
11
+ //# sourceMappingURL=hu-HU.module.js.map
@@ -107,4 +107,4 @@ $3bf3e8635a799a6e$exports = {
107
107
 
108
108
 
109
109
  export {$3bf3e8635a799a6e$exports as default};
110
- //# sourceMappingURL=intlStrings.mjs.map
110
+ //# sourceMappingURL=intlStrings.module.js.map
package/dist/it-IT.mjs CHANGED
@@ -8,4 +8,4 @@ $5653a55498966c6c$exports = {
8
8
 
9
9
 
10
10
  export {$5653a55498966c6c$exports as default};
11
- //# sourceMappingURL=it-IT.mjs.map
11
+ //# sourceMappingURL=it-IT.module.js.map
package/dist/ja-JP.mjs CHANGED
@@ -8,4 +8,4 @@ $243f99057b9b0af0$exports = {
8
8
 
9
9
 
10
10
  export {$243f99057b9b0af0$exports as default};
11
- //# sourceMappingURL=ja-JP.mjs.map
11
+ //# sourceMappingURL=ja-JP.module.js.map
package/dist/ko-KR.mjs CHANGED
@@ -8,4 +8,4 @@ $9dbe802a4c1b47ed$exports = {
8
8
 
9
9
 
10
10
  export {$9dbe802a4c1b47ed$exports as default};
11
- //# sourceMappingURL=ko-KR.mjs.map
11
+ //# sourceMappingURL=ko-KR.module.js.map
package/dist/lt-LT.mjs CHANGED
@@ -8,4 +8,4 @@ $ed6bec4d46a5be1b$exports = {
8
8
 
9
9
 
10
10
  export {$ed6bec4d46a5be1b$exports as default};
11
- //# sourceMappingURL=lt-LT.mjs.map
11
+ //# sourceMappingURL=lt-LT.module.js.map
package/dist/lv-LV.mjs CHANGED
@@ -8,4 +8,4 @@ $e203254b4140c831$exports = {
8
8
 
9
9
 
10
10
  export {$e203254b4140c831$exports as default};
11
- //# sourceMappingURL=lv-LV.mjs.map
11
+ //# sourceMappingURL=lv-LV.module.js.map
package/dist/nb-NO.mjs CHANGED
@@ -8,4 +8,4 @@ $87004dc1feacb708$exports = {
8
8
 
9
9
 
10
10
  export {$87004dc1feacb708$exports as default};
11
- //# sourceMappingURL=nb-NO.mjs.map
11
+ //# sourceMappingURL=nb-NO.module.js.map
package/dist/nl-NL.mjs CHANGED
@@ -8,4 +8,4 @@ $fd392c0c0b12ff84$exports = {
8
8
 
9
9
 
10
10
  export {$fd392c0c0b12ff84$exports as default};
11
- //# sourceMappingURL=nl-NL.mjs.map
11
+ //# sourceMappingURL=nl-NL.module.js.map
package/dist/pl-PL.mjs CHANGED
@@ -8,4 +8,4 @@ $02f96c467435edbf$exports = {
8
8
 
9
9
 
10
10
  export {$02f96c467435edbf$exports as default};
11
- //# sourceMappingURL=pl-PL.mjs.map
11
+ //# sourceMappingURL=pl-PL.module.js.map
package/dist/pt-BR.mjs CHANGED
@@ -8,4 +8,4 @@ $a516ff2265dc1cde$exports = {
8
8
 
9
9
 
10
10
  export {$a516ff2265dc1cde$exports as default};
11
- //# sourceMappingURL=pt-BR.mjs.map
11
+ //# sourceMappingURL=pt-BR.module.js.map
package/dist/pt-PT.mjs CHANGED
@@ -8,4 +8,4 @@ $2a8fe7dc6b71b8d6$exports = {
8
8
 
9
9
 
10
10
  export {$2a8fe7dc6b71b8d6$exports as default};
11
- //# sourceMappingURL=pt-PT.mjs.map
11
+ //# sourceMappingURL=pt-PT.module.js.map
package/dist/ro-RO.mjs CHANGED
@@ -8,4 +8,4 @@ $459c636d0d282e8f$exports = {
8
8
 
9
9
 
10
10
  export {$459c636d0d282e8f$exports as default};
11
- //# sourceMappingURL=ro-RO.mjs.map
11
+ //# sourceMappingURL=ro-RO.module.js.map
package/dist/ru-RU.mjs CHANGED
@@ -8,4 +8,4 @@ $d49b96bc4e237385$exports = {
8
8
 
9
9
 
10
10
  export {$d49b96bc4e237385$exports as default};
11
- //# sourceMappingURL=ru-RU.mjs.map
11
+ //# sourceMappingURL=ru-RU.module.js.map
package/dist/sk-SK.mjs CHANGED
@@ -8,4 +8,4 @@ $14f44f430d85943b$exports = {
8
8
 
9
9
 
10
10
  export {$14f44f430d85943b$exports as default};
11
- //# sourceMappingURL=sk-SK.mjs.map
11
+ //# sourceMappingURL=sk-SK.module.js.map
package/dist/sl-SI.mjs CHANGED
@@ -8,4 +8,4 @@ $ced45866328d3850$exports = {
8
8
 
9
9
 
10
10
  export {$ced45866328d3850$exports as default};
11
- //# sourceMappingURL=sl-SI.mjs.map
11
+ //# sourceMappingURL=sl-SI.module.js.map
package/dist/sr-SP.mjs CHANGED
@@ -8,4 +8,4 @@ $46417484d64689f8$exports = {
8
8
 
9
9
 
10
10
  export {$46417484d64689f8$exports as default};
11
- //# sourceMappingURL=sr-SP.mjs.map
11
+ //# sourceMappingURL=sr-SP.module.js.map
package/dist/sv-SE.mjs CHANGED
@@ -8,4 +8,4 @@ $9d8ccb39096f4575$exports = {
8
8
 
9
9
 
10
10
  export {$9d8ccb39096f4575$exports as default};
11
- //# sourceMappingURL=sv-SE.mjs.map
11
+ //# sourceMappingURL=sv-SE.module.js.map
package/dist/tr-TR.mjs CHANGED
@@ -8,4 +8,4 @@ $8e9c1a10ed1cc18a$exports = {
8
8
 
9
9
 
10
10
  export {$8e9c1a10ed1cc18a$exports as default};
11
- //# sourceMappingURL=tr-TR.mjs.map
11
+ //# sourceMappingURL=tr-TR.module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;AG2DA;;GAEG;AACH,OAAA,MAAM;UAAyG,aAAa,WAAW,CAAC;MAAM,YAAY,CAAC;ACH3J;;GAEG;AACH,OAAA,MAAM;UAAwH,aAAa,WAAW,CAAC;MAAM,YAAY,CAAC;AC9C1K,YAAY,EAAC,qBAAqB,EAAE,0BAA0B,EAAC,MAAM,uBAAuB,CAAC","sources":["packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/CalendarCell.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/CalendarMonth.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/CalendarBase.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/Calendar.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/RangeCalendar.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/index.ts","packages/@react-spectrum/calendar/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Calendar} from './Calendar';\nexport {RangeCalendar} from './RangeCalendar';\nexport type {SpectrumCalendarProps, SpectrumRangeCalendarProps} from '@react-types/calendar';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;AG2DA;;GAEG;AACH,OAAA,MAAM,UAA0C,CAAC,CAAmB,SAAT,SAAS,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,aAAa,WAAW,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;ACH3J;;GAEG;AACH,OAAA,MAAM,eAAoD,CAAC,CAAmB,SAAT,SAAS,EAAE,KAAK,EAAE,2BAA2B,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,aAAa,WAAW,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;AC9C1K,YAAY,EAAC,qBAAqB,EAAE,0BAA0B,EAAC,MAAM,uBAAuB,CAAC","sources":["packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/CalendarCell.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/CalendarMonth.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/CalendarBase.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/Calendar.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/RangeCalendar.tsx","packages/@react-spectrum/calendar/src/packages/@react-spectrum/calendar/src/index.ts","packages/@react-spectrum/calendar/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Calendar} from './Calendar';\nexport {RangeCalendar} from './RangeCalendar';\nexport type {SpectrumCalendarProps, SpectrumRangeCalendarProps} from '@react-types/calendar';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/dist/uk-UA.mjs CHANGED
@@ -8,4 +8,4 @@ $84c3bf1d3eaf1f59$exports = {
8
8
 
9
9
 
10
10
  export {$84c3bf1d3eaf1f59$exports as default};
11
- //# sourceMappingURL=uk-UA.mjs.map
11
+ //# sourceMappingURL=uk-UA.module.js.map
package/dist/zh-CN.mjs CHANGED
@@ -8,4 +8,4 @@ $0212afd59952ac06$exports = {
8
8
 
9
9
 
10
10
  export {$0212afd59952ac06$exports as default};
11
- //# sourceMappingURL=zh-CN.mjs.map
11
+ //# sourceMappingURL=zh-CN.module.js.map
package/dist/zh-TW.mjs CHANGED
@@ -8,4 +8,4 @@ $87077630a4e30349$exports = {
8
8
 
9
9
 
10
10
  export {$87077630a4e30349$exports as default};
11
- //# sourceMappingURL=zh-TW.mjs.map
11
+ //# sourceMappingURL=zh-TW.module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/calendar",
3
- "version": "3.4.8",
3
+ "version": "3.4.10",
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.3",
40
- "@react-aria/calendar": "^3.5.7",
41
- "@react-aria/focus": "^3.17.0",
42
- "@react-aria/i18n": "^3.11.0",
43
- "@react-aria/interactions": "^3.21.2",
44
- "@react-aria/utils": "^3.24.0",
45
- "@react-aria/visually-hidden": "^3.8.11",
46
- "@react-spectrum/button": "^3.16.3",
47
- "@react-spectrum/label": "^3.16.5",
48
- "@react-spectrum/utils": "^3.11.6",
49
- "@react-stately/calendar": "^3.5.0",
50
- "@react-types/button": "^3.9.3",
51
- "@react-types/calendar": "^3.4.5",
52
- "@react-types/shared": "^3.23.0",
53
- "@spectrum-icons/ui": "^3.6.6",
39
+ "@internationalized/date": "^3.5.5",
40
+ "@react-aria/calendar": "^3.5.9",
41
+ "@react-aria/focus": "^3.18.0",
42
+ "@react-aria/i18n": "^3.12.0",
43
+ "@react-aria/interactions": "^3.22.0",
44
+ "@react-aria/utils": "^3.25.0",
45
+ "@react-aria/visually-hidden": "^3.8.13",
46
+ "@react-spectrum/button": "^3.16.5",
47
+ "@react-spectrum/label": "^3.16.7",
48
+ "@react-spectrum/utils": "^3.11.8",
49
+ "@react-stately/calendar": "^3.5.2",
50
+ "@react-types/button": "^3.9.5",
51
+ "@react-types/calendar": "^3.4.7",
52
+ "@react-types/shared": "^3.24.0",
53
+ "@spectrum-icons/ui": "^3.6.8",
54
54
  "@swc/helpers": "^0.5.0"
55
55
  },
56
56
  "devDependencies": {
@@ -59,11 +59,11 @@
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@react-spectrum/provider": "^3.0.0",
62
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
63
- "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
62
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",
63
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
68
+ "gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
69
69
  }
package/src/Calendar.tsx CHANGED
@@ -34,7 +34,7 @@ function Calendar<T extends DateValue>(props: SpectrumCalendarProps<T>, ref: Foc
34
34
  createCalendar
35
35
  });
36
36
 
37
- let domRef = useRef();
37
+ let domRef = useRef(null);
38
38
  useImperativeHandle(ref, () => ({
39
39
  ...createDOMRef(domRef),
40
40
  focus() {