@react-spectrum/calendar 3.2.2 → 3.3.1

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/import.mjs CHANGED
@@ -264,7 +264,7 @@ function $faa2f3867773cfe5$export$26e2752316b9a375(props) {
264
264
 
265
265
 
266
266
 
267
- var $e0a80792abac0d48$exports = {};
267
+ var $3bf3e8635a799a6e$exports = {};
268
268
  var $c1fdee2284f63122$exports = {};
269
269
  $c1fdee2284f63122$exports = {
270
270
  "invalidSelection": (args, formatter)=>`${formatter.plural(args.selectedCount, {
@@ -571,7 +571,7 @@ $87077630a4e30349$exports = {
571
571
  };
572
572
 
573
573
 
574
- $e0a80792abac0d48$exports = {
574
+ $3bf3e8635a799a6e$exports = {
575
575
  "ar-AE": $c1fdee2284f63122$exports,
576
576
  "bg-BG": $81326fc5b8464f3e$exports,
577
577
  "cs-CZ": $61bec992b8f61b70$exports,
@@ -616,7 +616,7 @@ $e0a80792abac0d48$exports = {
616
616
  function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
617
617
  let { state: state , calendarProps: calendarProps , nextButtonProps: nextButtonProps , prevButtonProps: prevButtonProps , errorMessageProps: errorMessageProps , calendarRef: ref , visibleMonths: visibleMonths = 1 } = props;
618
618
  let { styleProps: styleProps } = (0, $40VnT$useStyleProps)(props);
619
- let stringFormatter = (0, $40VnT$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($e0a80792abac0d48$exports))));
619
+ let stringFormatter = (0, $40VnT$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($3bf3e8635a799a6e$exports))));
620
620
  let { direction: direction } = (0, $40VnT$useLocale)();
621
621
  let currentMonth = state.visibleRange.start;
622
622
  let monthDateFormatter = (0, $40VnT$useDateFormatter)({
@@ -694,6 +694,7 @@ function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
694
694
  function $d2b8d4577dd88671$var$Calendar(props, ref) {
695
695
  props = (0, $40VnT$useProviderProps)(props);
696
696
  let { visibleMonths: visibleMonths = 1 } = props;
697
+ visibleMonths = Math.max(visibleMonths, 1);
697
698
  let visibleDuration = (0, $40VnT$useMemo)(()=>({
698
699
  months: visibleMonths
699
700
  }), [
@@ -716,6 +717,7 @@ function $d2b8d4577dd88671$var$Calendar(props, ref) {
716
717
  let { calendarProps: calendarProps , prevButtonProps: prevButtonProps , nextButtonProps: nextButtonProps , errorMessageProps: errorMessageProps } = (0, $40VnT$useCalendar)(props, state);
717
718
  return /*#__PURE__*/ (0, $40VnT$react).createElement((0, $62cd1e80f0dffb66$export$bfd52a43017368fe), {
718
719
  ...props,
720
+ visibleMonths: visibleMonths,
719
721
  state: state,
720
722
  calendarRef: domRef,
721
723
  calendarProps: calendarProps,
@@ -750,6 +752,7 @@ function $d2b8d4577dd88671$var$Calendar(props, ref) {
750
752
  function $8b1e8eddbf3b15de$var$RangeCalendar(props, ref) {
751
753
  props = (0, $40VnT$useProviderProps)(props);
752
754
  let { visibleMonths: visibleMonths = 1 } = props;
755
+ visibleMonths = Math.max(visibleMonths, 1);
753
756
  let visibleDuration = (0, $40VnT$useMemo)(()=>({
754
757
  months: visibleMonths
755
758
  }), [
@@ -772,6 +775,7 @@ function $8b1e8eddbf3b15de$var$RangeCalendar(props, ref) {
772
775
  let { calendarProps: calendarProps , prevButtonProps: prevButtonProps , nextButtonProps: nextButtonProps , errorMessageProps: errorMessageProps } = (0, $40VnT$useRangeCalendar)(props, state, domRef);
773
776
  return /*#__PURE__*/ (0, $40VnT$react).createElement((0, $62cd1e80f0dffb66$export$bfd52a43017368fe), {
774
777
  ...props,
778
+ visibleMonths: visibleMonths,
775
779
  state: state,
776
780
  calendarRef: domRef,
777
781
  calendarProps: calendarProps,
package/dist/main.js CHANGED
@@ -267,7 +267,7 @@ function $02c19eea15a72a7b$export$26e2752316b9a375(props) {
267
267
 
268
268
 
269
269
 
270
- var $b2ddf7aa92a6115d$exports = {};
270
+ var $7e7c3b1f5233ce23$exports = {};
271
271
  var $ce42e12d543b7e38$exports = {};
272
272
  $ce42e12d543b7e38$exports = {
273
273
  "invalidSelection": (args, formatter)=>`${formatter.plural(args.selectedCount, {
@@ -574,7 +574,7 @@ $fdf4dbfb11dfcef7$exports = {
574
574
  };
575
575
 
576
576
 
577
- $b2ddf7aa92a6115d$exports = {
577
+ $7e7c3b1f5233ce23$exports = {
578
578
  "ar-AE": $ce42e12d543b7e38$exports,
579
579
  "bg-BG": $cf1746301f7b3a2c$exports,
580
580
  "cs-CZ": $2314514bf1e3a606$exports,
@@ -619,7 +619,7 @@ $b2ddf7aa92a6115d$exports = {
619
619
  function $6d416018158e3a26$export$bfd52a43017368fe(props) {
620
620
  let { state: state , calendarProps: calendarProps , nextButtonProps: nextButtonProps , prevButtonProps: prevButtonProps , errorMessageProps: errorMessageProps , calendarRef: ref , visibleMonths: visibleMonths = 1 } = props;
621
621
  let { styleProps: styleProps } = (0, $4BAFd$reactspectrumutils.useStyleProps)(props);
622
- let stringFormatter = (0, $4BAFd$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($b2ddf7aa92a6115d$exports))));
622
+ let stringFormatter = (0, $4BAFd$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7e7c3b1f5233ce23$exports))));
623
623
  let { direction: direction } = (0, $4BAFd$reactariai18n.useLocale)();
624
624
  let currentMonth = state.visibleRange.start;
625
625
  let monthDateFormatter = (0, $4BAFd$reactariai18n.useDateFormatter)({
@@ -697,6 +697,7 @@ function $6d416018158e3a26$export$bfd52a43017368fe(props) {
697
697
  function $d9490b77e8681e44$var$Calendar(props, ref) {
698
698
  props = (0, $4BAFd$reactspectrumprovider.useProviderProps)(props);
699
699
  let { visibleMonths: visibleMonths = 1 } = props;
700
+ visibleMonths = Math.max(visibleMonths, 1);
700
701
  let visibleDuration = (0, $4BAFd$react.useMemo)(()=>({
701
702
  months: visibleMonths
702
703
  }), [
@@ -719,6 +720,7 @@ function $d9490b77e8681e44$var$Calendar(props, ref) {
719
720
  let { calendarProps: calendarProps , prevButtonProps: prevButtonProps , nextButtonProps: nextButtonProps , errorMessageProps: errorMessageProps } = (0, $4BAFd$reactariacalendar.useCalendar)(props, state);
720
721
  return /*#__PURE__*/ (0, ($parcel$interopDefault($4BAFd$react))).createElement((0, $6d416018158e3a26$export$bfd52a43017368fe), {
721
722
  ...props,
723
+ visibleMonths: visibleMonths,
722
724
  state: state,
723
725
  calendarRef: domRef,
724
726
  calendarProps: calendarProps,
@@ -753,6 +755,7 @@ function $d9490b77e8681e44$var$Calendar(props, ref) {
753
755
  function $4d045066f2092e3b$var$RangeCalendar(props, ref) {
754
756
  props = (0, $4BAFd$reactspectrumprovider.useProviderProps)(props);
755
757
  let { visibleMonths: visibleMonths = 1 } = props;
758
+ visibleMonths = Math.max(visibleMonths, 1);
756
759
  let visibleDuration = (0, $4BAFd$react.useMemo)(()=>({
757
760
  months: visibleMonths
758
761
  }), [
@@ -775,6 +778,7 @@ function $4d045066f2092e3b$var$RangeCalendar(props, ref) {
775
778
  let { calendarProps: calendarProps , prevButtonProps: prevButtonProps , nextButtonProps: nextButtonProps , errorMessageProps: errorMessageProps } = (0, $4BAFd$reactariacalendar.useRangeCalendar)(props, state, domRef);
776
779
  return /*#__PURE__*/ (0, ($parcel$interopDefault($4BAFd$react))).createElement((0, $6d416018158e3a26$export$bfd52a43017368fe), {
777
780
  ...props,
781
+ visibleMonths: visibleMonths,
778
782
  state: state,
779
783
  calendarRef: domRef,
780
784
  calendarProps: calendarProps,
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;ACAA;;;;;;;;;;CAUC,GAED;ACZA;;;;;;;;;;ACAA;;;;;;;;;;CAUC,GAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACZA,IAAA;AACA,IAAA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S,AAAD;IACvB,IAAI,QAAQ,CAAA,GAAA,iDAAoB,EAAE;QAChC,GAAG,KAAK;gBACR;yBACA;wBACA;IACF;IAEA,IAAI,SAAS,CAAA,GAAA,mBAAM,AAAD;IAClB,CAAA,GAAA,gCAAkB,EAAE,KAAK,IAAO,CAAA;YAC9B,GAAG,CAAA,GAAA,sCAAY,AAAD,EAAE,OAAO;YACvB,SAAQ;gBACN,MAAM,UAAU,CAAC,IAAI;YACvB;QACF,CAAA;IAEA,IAAI,iBAAC,cAAa,mBAAE,gBAAe,mBAAE,gBAAe,qBAAE,kBAAiB,EAAC,GAAG,CAAA,GAAA,yCAAgB,AAAD,EAAE,OAAO,OAAO;IAE1G,qBACE,0DAAC,CAAA,GAAA,yCAAY,AAAD;QACT,GAAG,KAAK;QACT,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/index.ts","packages/@react-spectrum/calendar/src/Calendar.tsx","packages/@react-spectrum/calendar/src/CalendarBase.tsx","packages/@react-spectrum/calendar/src/CalendarMonth.tsx","packages/@react-spectrum/calendar/src/CalendarCell.tsx","packages/@adobe/spectrum-css-temp/components/calendar/vars.css","packages/@react-spectrum/calendar/intl/*.js","packages/@react-spectrum/calendar/intl/ar-AE.json","packages/@react-spectrum/calendar/intl/bg-BG.json","packages/@react-spectrum/calendar/intl/cs-CZ.json","packages/@react-spectrum/calendar/intl/da-DK.json","packages/@react-spectrum/calendar/intl/de-DE.json","packages/@react-spectrum/calendar/intl/el-GR.json","packages/@react-spectrum/calendar/intl/en-US.json","packages/@react-spectrum/calendar/intl/es-ES.json","packages/@react-spectrum/calendar/intl/et-EE.json","packages/@react-spectrum/calendar/intl/fi-FI.json","packages/@react-spectrum/calendar/intl/fr-FR.json","packages/@react-spectrum/calendar/intl/he-IL.json","packages/@react-spectrum/calendar/intl/hr-HR.json","packages/@react-spectrum/calendar/intl/hu-HU.json","packages/@react-spectrum/calendar/intl/it-IT.json","packages/@react-spectrum/calendar/intl/ja-JP.json","packages/@react-spectrum/calendar/intl/ko-KR.json","packages/@react-spectrum/calendar/intl/lt-LT.json","packages/@react-spectrum/calendar/intl/lv-LV.json","packages/@react-spectrum/calendar/intl/nb-NO.json","packages/@react-spectrum/calendar/intl/nl-NL.json","packages/@react-spectrum/calendar/intl/pl-PL.json","packages/@react-spectrum/calendar/intl/pt-BR.json","packages/@react-spectrum/calendar/intl/pt-PT.json","packages/@react-spectrum/calendar/intl/ro-RO.json","packages/@react-spectrum/calendar/intl/ru-RU.json","packages/@react-spectrum/calendar/intl/sk-SK.json","packages/@react-spectrum/calendar/intl/sl-SI.json","packages/@react-spectrum/calendar/intl/sr-SP.json","packages/@react-spectrum/calendar/intl/sv-SE.json","packages/@react-spectrum/calendar/intl/tr-TR.json","packages/@react-spectrum/calendar/intl/uk-UA.json","packages/@react-spectrum/calendar/intl/zh-CN.json","packages/@react-spectrum/calendar/intl/zh-TW.json","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\n/// <reference types=\"css-module-types\" />\n\nexport {Calendar} from './Calendar';\nexport {RangeCalendar} from './RangeCalendar';\nexport type {SpectrumCalendarProps, SpectrumRangeCalendarProps} from '@react-types/calendar';\n","/*\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, SpectrumCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useCalendar} from '@react-aria/calendar';\nimport {useCalendarState} from '@react-stately/calendar';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Calendar<T extends DateValue>(props: SpectrumCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useCalendarState({\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} = useCalendar(props, state);\n\n return (\n <CalendarBase\n {...props}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n */\nconst _Calendar = React.forwardRef(Calendar) as <T extends DateValue>(props: SpectrumCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_Calendar as Calendar};\n","/*\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 {ActionButton} from '@react-spectrum/button';\nimport {AriaButtonProps} from '@react-types/button';\nimport {CalendarMonth} from './CalendarMonth';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport ChevronLeft from '@spectrum-icons/ui/ChevronLeftLarge';\nimport ChevronRight from '@spectrum-icons/ui/ChevronRightLarge';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport {HelpText} from '@react-spectrum/label';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {HTMLAttributes, RefObject} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useDateFormatter, useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {VisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface CalendarBaseProps<T extends CalendarState | RangeCalendarState> extends CalendarPropsBase, DOMProps, StyleProps {\n state: T,\n visibleMonths?: number,\n calendarProps: HTMLAttributes<HTMLElement>,\n nextButtonProps: AriaButtonProps,\n prevButtonProps: AriaButtonProps,\n errorMessageProps: HTMLAttributes<HTMLElement>,\n calendarRef: RefObject<HTMLDivElement>\n}\n\nexport function CalendarBase<T extends CalendarState | RangeCalendarState>(props: CalendarBaseProps<T>) {\n let {\n state,\n calendarProps,\n nextButtonProps,\n prevButtonProps,\n errorMessageProps,\n calendarRef: ref,\n visibleMonths = 1\n } = props;\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {direction} = useLocale();\n let currentMonth = state.visibleRange.start;\n let monthDateFormatter = useDateFormatter({\n month: 'long',\n year: 'numeric',\n era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,\n calendar: currentMonth.calendar.identifier,\n timeZone: state.timeZone\n });\n\n let titles = [];\n let calendars = [];\n for (let i = 0; i < visibleMonths; i++) {\n let d = currentMonth.add({months: i});\n titles.push(\n <div key={i} className={classNames(styles, 'spectrum-Calendar-monthHeader')}>\n {i === 0 &&\n <ActionButton\n {...prevButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-prevMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronRight /> : <ChevronLeft />}\n </ActionButton>\n }\n <h2\n // We have a visually hidden heading describing the entire visible range,\n // and the calendar itself describes the individual month\n // so we don't need to repeat that here for screen reader users.\n aria-hidden\n className={classNames(styles, 'spectrum-Calendar-title')}>\n {monthDateFormatter.format(d.toDate(state.timeZone))}\n </h2>\n {i === visibleMonths - 1 &&\n <ActionButton\n {...nextButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-nextMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronLeft /> : <ChevronRight />}\n </ActionButton>\n }\n </div>\n );\n\n calendars.push(\n <CalendarMonth\n {...props}\n key={i}\n state={state}\n startDate={d} />\n );\n }\n\n return (\n <div\n {...styleProps}\n {...calendarProps}\n ref={ref}\n className={\n classNames(styles,\n 'spectrum-Calendar',\n styleProps.className\n )\n }>\n {/* Add a screen reader only description of the entire visible range rather than\n * a separate heading above each month grid. This is placed first in the DOM order\n * so that it is the first thing a touch screen reader user encounters.\n * In addition, VoiceOver on iOS does not announce the aria-label of the grid\n * elements, so the aria-label of the Calendar is included here as well. */}\n <VisuallyHidden>\n <h2>{calendarProps['aria-label']}</h2>\n </VisuallyHidden>\n <div className={classNames(styles, 'spectrum-Calendar-header')}>\n {titles}\n </div>\n <div className={classNames(styles, 'spectrum-Calendar-months')}>\n {calendars}\n </div>\n {/* For touch screen readers, add a visually hidden next button after the month grid\n * so it's easy to navigate after reaching the end without going all the way\n * back to the start of the month. */}\n <VisuallyHidden>\n <button\n aria-label={nextButtonProps['aria-label']}\n disabled={nextButtonProps.isDisabled}\n onClick={() => state.focusNextPage()}\n tabIndex={-1} />\n </VisuallyHidden>\n {state.validationState === 'invalid' &&\n <HelpText\n showErrorIcon\n errorMessage={props.errorMessage || stringFormatter.format('invalidSelection', {selectedCount: 'highlightedRange' in state ? 2 : 1})}\n errorMessageProps={errorMessageProps}\n validationState=\"invalid\"\n // Intentionally a global class name so it can be targeted in DatePicker CSS...\n UNSAFE_className=\"spectrum-Calendar-helpText\" />\n }\n </div>\n );\n}\n","/*\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 {CalendarCell} from './CalendarCell';\nimport {CalendarDate, endOfMonth, getWeeksInMonth} from '@internationalized/date';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useCalendarGrid} from '@react-aria/calendar';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarMonthProps extends CalendarPropsBase, DOMProps, StyleProps {\n state: CalendarState | RangeCalendarState,\n startDate: CalendarDate\n}\n\nexport function CalendarMonth(props: CalendarMonthProps) {\n let {\n state,\n startDate\n } = props;\n let {\n gridProps,\n headerProps,\n weekDays\n } = useCalendarGrid({\n ...props,\n endDate: endOfMonth(startDate)\n }, state);\n\n let {locale} = useLocale();\n let weeksInMonth = getWeeksInMonth(startDate, locale);\n\n return (\n <table\n {...gridProps}\n className={classNames(styles, 'spectrum-Calendar-body', 'spectrum-Calendar-table')}>\n <thead {...headerProps}>\n <tr>\n {weekDays.map((day, index) => (\n <th\n key={index}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span className={classNames(styles, 'spectrum-Calendar-dayOfWeek')}>\n {day}\n </span>\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {[...new Array(weeksInMonth).keys()].map(weekIndex => (\n <tr key={weekIndex}>\n {state.getDatesInWeek(weekIndex, startDate).map((date, i) => (\n date ? (\n <CalendarCell\n key={i}\n state={state}\n date={date}\n currentMonth={startDate} />\n ) : <td key={i} />\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n}\n","/*\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","/*\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@import './index.css';\n@import './skin.css';\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"invalidSelection\": \"{selectedCount, plural, one {التاريخ} other {التواريخ}} المحدد/المحددة غير متوفرة.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Избраната дата не е налична} other {Избраните дати не са налични}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybrané datum není} other {Vybraná data nejsou}} k dispozici.\"\n}\n","{\n \"invalidSelection\": \"Valgte {selectedCount, plural, one {dato} other {datoer}} ikke ledige.\"\n}\n","{\n \"invalidSelection\": \"Ausgewählte(s) {selectedCount, plural, one {Datum} other {Daten}} nicht verfügbar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη} other {Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες}}.\"\n}\n","{\n \"invalidSelection\": \"Selected {selectedCount, plural, one {date} other {dates}} unavailable.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La fecha seleccionada no está disponible} other {Las fechas seleccionadas no están disponibles}}.\"\n}\n","{\n \"invalidSelection\": \"Valitud {selectedCount, plural, one {kuupäev} other {kuupäevad}} pole saadaval.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valittu päivämäärä ei ole} other {Valitut päivämäärät eivät ole}} saatavilla.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La date sélectionnée est indisponible} other {Les dates sélectionnées sont indisponibles}}.\"\n}\n","{\n \"invalidSelection\": \"נבחר {selectedCount, plural, one {תאריך} other {תאריכים}} אינו זמין.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Odabrani datum nije dostupan} other {Odabrani datumi nisu dostupni}}.\"\n}\n","{\n \"invalidSelection\": \"A kijelölt {selectedCount, plural, one {dátum nem érhető el} other {dátumok nem érhetőek el}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selezionata non disponibile} other {Date selezionate non disponibili}}.\"\n}\n","{\n \"invalidSelection\": \"選択した{selectedCount, plural, one {日付} other {日付}}は使用できません。\"\n}\n","{\n \"invalidSelection\": \"선택한 {selectedCount, plural, one {일자를} other {일자를}} 사용할 수 없습니다.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Datos} other {Datų}} pasirinkimas negalimas.\"\n}\n","{\n \"invalidSelection\": \"Atlasītais(-ie) {selectedCount, plural, one {date} other {dates}} nav pieejams(-i).\"\n}\n","{\n \"invalidSelection\": \"Valgt(e) {selectedCount, plural, one {dato} other {datoer}} er utilgjengelig.\"\n}\n","{\n \"invalidSelection\": \"Geselecteerde {selectedCount, plural, one {datum} other {datums}} niet beschikbaar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Wybrana data jest niedostępna} other {Wybrane daty są niedostępne}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data} other {Datas}} selecionada(s) indisponível(is).\"\n}\n","{\n \"invalidSelection\": \"A(s) {selectedCount, plural, one {data} other {datas}} selecionada(s) não está(ão) disponível/disponível(eis).\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selectată nu este disponibilă} other {Datele selectate nu sunt disponibile}}.\"\n}\n","{\n \"invalidSelection\": \"Выбранные {selectedCount, plural, one {дата} other {даты}} недоступны.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybratý dátum} other {Vybraté dátumy}}: nedostupné.\"\n}\n","{\n \"invalidSelection\": \"Izbrano {selectedCount, plural, one {date} other {dates}} ni na voljo.\"\n}\n","{\n \"invalidSelection\": \"Izabrani {selectedCount, plural, one {date} other {dates}} nije dostupan.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valt datum är inte tillgängligt.} other {Valda datum är inte tillgängliga.}}\"\n}\n","{\n \"invalidSelection\": \"Seçilen {selectedCount, plural, one {tarih} other {tarihler}} müsait değil.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Вибрана дата недоступна} other {Вибрані дати недоступні}}.\"\n}\n","{\n \"invalidSelection\": \"选定的 {selectedCount, plural, one {个日期} other {个日期}} 不可用。\"\n}\n","{\n \"invalidSelection\": \"所選的{selectedCount, plural, one {日期} other {日期}}無法使用。\"\n}\n","/*\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 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 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":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;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;;;;;;;;CAUC;;;;;;;;AAaD,SAAS,oCAAmC,KAAoC,EAAE,GAA8B;IAC9G,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,iBAAC,gBAAgB,IAAE,GAAG;IAC1B,gBAAgB,KAAK,IAAI,eAAe;IACxC,IAAI,kBAAkB,CAAA,GAAA,oBAAM,EAAE,IAAO,CAAA;YAAC,QAAQ;QAAa,CAAA,GAAI;QAAC;KAAc;IAC9E,IAAI,UAAC,OAAM,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,WAAW;YACnB;QACF,CAAA;IAEA,IAAI,iBAAC,cAAa,mBAAE,gBAAe,mBAAE,gBAAe,qBAAE,kBAAiB,EAAC,GAAG,CAAA,GAAA,yCAAe,EAAE,OAAO,OAAO;IAE1G,qBACE,0DAAC,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,sCAAI,EAAE,WAAW;;","sources":["packages/@react-spectrum/calendar/src/index.ts","packages/@react-spectrum/calendar/src/Calendar.tsx","packages/@react-spectrum/calendar/src/CalendarBase.tsx","packages/@react-spectrum/calendar/src/CalendarMonth.tsx","packages/@react-spectrum/calendar/src/CalendarCell.tsx","packages/@adobe/spectrum-css-temp/components/calendar/vars.css","packages/@react-spectrum/calendar/src/*.js","packages/@react-spectrum/calendar/intl/ar-AE.json","packages/@react-spectrum/calendar/intl/bg-BG.json","packages/@react-spectrum/calendar/intl/cs-CZ.json","packages/@react-spectrum/calendar/intl/da-DK.json","packages/@react-spectrum/calendar/intl/de-DE.json","packages/@react-spectrum/calendar/intl/el-GR.json","packages/@react-spectrum/calendar/intl/en-US.json","packages/@react-spectrum/calendar/intl/es-ES.json","packages/@react-spectrum/calendar/intl/et-EE.json","packages/@react-spectrum/calendar/intl/fi-FI.json","packages/@react-spectrum/calendar/intl/fr-FR.json","packages/@react-spectrum/calendar/intl/he-IL.json","packages/@react-spectrum/calendar/intl/hr-HR.json","packages/@react-spectrum/calendar/intl/hu-HU.json","packages/@react-spectrum/calendar/intl/it-IT.json","packages/@react-spectrum/calendar/intl/ja-JP.json","packages/@react-spectrum/calendar/intl/ko-KR.json","packages/@react-spectrum/calendar/intl/lt-LT.json","packages/@react-spectrum/calendar/intl/lv-LV.json","packages/@react-spectrum/calendar/intl/nb-NO.json","packages/@react-spectrum/calendar/intl/nl-NL.json","packages/@react-spectrum/calendar/intl/pl-PL.json","packages/@react-spectrum/calendar/intl/pt-BR.json","packages/@react-spectrum/calendar/intl/pt-PT.json","packages/@react-spectrum/calendar/intl/ro-RO.json","packages/@react-spectrum/calendar/intl/ru-RU.json","packages/@react-spectrum/calendar/intl/sk-SK.json","packages/@react-spectrum/calendar/intl/sl-SI.json","packages/@react-spectrum/calendar/intl/sr-SP.json","packages/@react-spectrum/calendar/intl/sv-SE.json","packages/@react-spectrum/calendar/intl/tr-TR.json","packages/@react-spectrum/calendar/intl/uk-UA.json","packages/@react-spectrum/calendar/intl/zh-CN.json","packages/@react-spectrum/calendar/intl/zh-TW.json","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\n/// <reference types=\"css-module-types\" />\n\nexport {Calendar} from './Calendar';\nexport {RangeCalendar} from './RangeCalendar';\nexport type {SpectrumCalendarProps, SpectrumRangeCalendarProps} from '@react-types/calendar';\n","/*\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, SpectrumCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useCalendar} from '@react-aria/calendar';\nimport {useCalendarState} from '@react-stately/calendar';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Calendar<T extends DateValue>(props: SpectrumCalendarProps<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 = useCalendarState({\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} = useCalendar(props, state);\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 * Calendars display a grid of days in one or more months and allow users to select a single date.\n */\nconst _Calendar = React.forwardRef(Calendar) as <T extends DateValue>(props: SpectrumCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_Calendar as Calendar};\n","/*\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 {ActionButton} from '@react-spectrum/button';\nimport {AriaButtonProps} from '@react-types/button';\nimport {CalendarMonth} from './CalendarMonth';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport ChevronLeft from '@spectrum-icons/ui/ChevronLeftLarge';\nimport ChevronRight from '@spectrum-icons/ui/ChevronRightLarge';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport {HelpText} from '@react-spectrum/label';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {HTMLAttributes, RefObject} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useDateFormatter, useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {VisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface CalendarBaseProps<T extends CalendarState | RangeCalendarState> extends CalendarPropsBase, DOMProps, StyleProps {\n state: T,\n visibleMonths?: number,\n calendarProps: HTMLAttributes<HTMLElement>,\n nextButtonProps: AriaButtonProps,\n prevButtonProps: AriaButtonProps,\n errorMessageProps: HTMLAttributes<HTMLElement>,\n calendarRef: RefObject<HTMLDivElement>\n}\n\nexport function CalendarBase<T extends CalendarState | RangeCalendarState>(props: CalendarBaseProps<T>) {\n let {\n state,\n calendarProps,\n nextButtonProps,\n prevButtonProps,\n errorMessageProps,\n calendarRef: ref,\n visibleMonths = 1\n } = props;\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {direction} = useLocale();\n let currentMonth = state.visibleRange.start;\n let monthDateFormatter = useDateFormatter({\n month: 'long',\n year: 'numeric',\n era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,\n calendar: currentMonth.calendar.identifier,\n timeZone: state.timeZone\n });\n\n let titles = [];\n let calendars = [];\n for (let i = 0; i < visibleMonths; i++) {\n let d = currentMonth.add({months: i});\n titles.push(\n <div key={i} className={classNames(styles, 'spectrum-Calendar-monthHeader')}>\n {i === 0 &&\n <ActionButton\n {...prevButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-prevMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronRight /> : <ChevronLeft />}\n </ActionButton>\n }\n <h2\n // We have a visually hidden heading describing the entire visible range,\n // and the calendar itself describes the individual month\n // so we don't need to repeat that here for screen reader users.\n aria-hidden\n className={classNames(styles, 'spectrum-Calendar-title')}>\n {monthDateFormatter.format(d.toDate(state.timeZone))}\n </h2>\n {i === visibleMonths - 1 &&\n <ActionButton\n {...nextButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-nextMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronLeft /> : <ChevronRight />}\n </ActionButton>\n }\n </div>\n );\n\n calendars.push(\n <CalendarMonth\n {...props}\n key={i}\n state={state}\n startDate={d} />\n );\n }\n\n return (\n <div\n {...styleProps}\n {...calendarProps}\n ref={ref}\n className={\n classNames(styles,\n 'spectrum-Calendar',\n styleProps.className\n )\n }>\n {/* Add a screen reader only description of the entire visible range rather than\n * a separate heading above each month grid. This is placed first in the DOM order\n * so that it is the first thing a touch screen reader user encounters.\n * In addition, VoiceOver on iOS does not announce the aria-label of the grid\n * elements, so the aria-label of the Calendar is included here as well. */}\n <VisuallyHidden>\n <h2>{calendarProps['aria-label']}</h2>\n </VisuallyHidden>\n <div className={classNames(styles, 'spectrum-Calendar-header')}>\n {titles}\n </div>\n <div className={classNames(styles, 'spectrum-Calendar-months')}>\n {calendars}\n </div>\n {/* For touch screen readers, add a visually hidden next button after the month grid\n * so it's easy to navigate after reaching the end without going all the way\n * back to the start of the month. */}\n <VisuallyHidden>\n <button\n aria-label={nextButtonProps['aria-label']}\n disabled={nextButtonProps.isDisabled}\n onClick={() => state.focusNextPage()}\n tabIndex={-1} />\n </VisuallyHidden>\n {state.validationState === 'invalid' &&\n <HelpText\n showErrorIcon\n errorMessage={props.errorMessage || stringFormatter.format('invalidSelection', {selectedCount: 'highlightedRange' in state ? 2 : 1})}\n errorMessageProps={errorMessageProps}\n validationState=\"invalid\"\n // Intentionally a global class name so it can be targeted in DatePicker CSS...\n UNSAFE_className=\"spectrum-Calendar-helpText\" />\n }\n </div>\n );\n}\n","/*\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 {CalendarCell} from './CalendarCell';\nimport {CalendarDate, endOfMonth, getWeeksInMonth} from '@internationalized/date';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useCalendarGrid} from '@react-aria/calendar';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarMonthProps extends CalendarPropsBase, DOMProps, StyleProps {\n state: CalendarState | RangeCalendarState,\n startDate: CalendarDate\n}\n\nexport function CalendarMonth(props: CalendarMonthProps) {\n let {\n state,\n startDate\n } = props;\n let {\n gridProps,\n headerProps,\n weekDays\n } = useCalendarGrid({\n ...props,\n endDate: endOfMonth(startDate)\n }, state);\n\n let {locale} = useLocale();\n let weeksInMonth = getWeeksInMonth(startDate, locale);\n\n return (\n <table\n {...gridProps}\n className={classNames(styles, 'spectrum-Calendar-body', 'spectrum-Calendar-table')}>\n <thead {...headerProps}>\n <tr>\n {weekDays.map((day, index) => (\n <th\n key={index}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span className={classNames(styles, 'spectrum-Calendar-dayOfWeek')}>\n {day}\n </span>\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {[...new Array(weeksInMonth).keys()].map(weekIndex => (\n <tr key={weekIndex}>\n {state.getDatesInWeek(weekIndex, startDate).map((date, i) => (\n date ? (\n <CalendarCell\n key={i}\n state={state}\n date={date}\n currentMonth={startDate} />\n ) : <td key={i} />\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n}\n","/*\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","/*\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@import './index.css';\n@import './skin.css';\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"invalidSelection\": \"{selectedCount, plural, one {التاريخ} other {التواريخ}} المحدد/المحددة غير متوفرة.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Избраната дата не е налична} other {Избраните дати не са налични}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybrané datum není} other {Vybraná data nejsou}} k dispozici.\"\n}\n","{\n \"invalidSelection\": \"Valgte {selectedCount, plural, one {dato} other {datoer}} ikke ledige.\"\n}\n","{\n \"invalidSelection\": \"Ausgewählte(s) {selectedCount, plural, one {Datum} other {Daten}} nicht verfügbar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη} other {Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες}}.\"\n}\n","{\n \"invalidSelection\": \"Selected {selectedCount, plural, one {date} other {dates}} unavailable.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La fecha seleccionada no está disponible} other {Las fechas seleccionadas no están disponibles}}.\"\n}\n","{\n \"invalidSelection\": \"Valitud {selectedCount, plural, one {kuupäev} other {kuupäevad}} pole saadaval.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valittu päivämäärä ei ole} other {Valitut päivämäärät eivät ole}} saatavilla.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La date sélectionnée est indisponible} other {Les dates sélectionnées sont indisponibles}}.\"\n}\n","{\n \"invalidSelection\": \"נבחר {selectedCount, plural, one {תאריך} other {תאריכים}} אינו זמין.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Odabrani datum nije dostupan} other {Odabrani datumi nisu dostupni}}.\"\n}\n","{\n \"invalidSelection\": \"A kijelölt {selectedCount, plural, one {dátum nem érhető el} other {dátumok nem érhetőek el}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selezionata non disponibile} other {Date selezionate non disponibili}}.\"\n}\n","{\n \"invalidSelection\": \"選択した{selectedCount, plural, one {日付} other {日付}}は使用できません。\"\n}\n","{\n \"invalidSelection\": \"선택한 {selectedCount, plural, one {일자를} other {일자를}} 사용할 수 없습니다.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Datos} other {Datų}} pasirinkimas negalimas.\"\n}\n","{\n \"invalidSelection\": \"Atlasītais(-ie) {selectedCount, plural, one {date} other {dates}} nav pieejams(-i).\"\n}\n","{\n \"invalidSelection\": \"Valgt(e) {selectedCount, plural, one {dato} other {datoer}} er utilgjengelig.\"\n}\n","{\n \"invalidSelection\": \"Geselecteerde {selectedCount, plural, one {datum} other {datums}} niet beschikbaar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Wybrana data jest niedostępna} other {Wybrane daty są niedostępne}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data} other {Datas}} selecionada(s) indisponível(is).\"\n}\n","{\n \"invalidSelection\": \"A(s) {selectedCount, plural, one {data} other {datas}} selecionada(s) não está(ão) disponível/disponível(eis).\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selectată nu este disponibilă} other {Datele selectate nu sunt disponibile}}.\"\n}\n","{\n \"invalidSelection\": \"Выбранные {selectedCount, plural, one {дата} other {даты}} недоступны.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybratý dátum} other {Vybraté dátumy}}: nedostupné.\"\n}\n","{\n \"invalidSelection\": \"Izbrano {selectedCount, plural, one {date} other {dates}} ni na voljo.\"\n}\n","{\n \"invalidSelection\": \"Izabrani {selectedCount, plural, one {date} other {dates}} nije dostupan.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valt datum är inte tillgängligt.} other {Valda datum är inte tillgängliga.}}\"\n}\n","{\n \"invalidSelection\": \"Seçilen {selectedCount, plural, one {tarih} other {tarihler}} müsait değil.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Вибрана дата недоступна} other {Вибрані дати недоступні}}.\"\n}\n","{\n \"invalidSelection\": \"选定的 {selectedCount, plural, one {个日期} other {个日期}} 不可用。\"\n}\n","{\n \"invalidSelection\": \"所選的{selectedCount, plural, one {日期} other {日期}}無法使用。\"\n}\n","/*\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":"main.js.map"}
package/dist/module.js CHANGED
@@ -264,7 +264,7 @@ function $faa2f3867773cfe5$export$26e2752316b9a375(props) {
264
264
 
265
265
 
266
266
 
267
- var $e0a80792abac0d48$exports = {};
267
+ var $3bf3e8635a799a6e$exports = {};
268
268
  var $c1fdee2284f63122$exports = {};
269
269
  $c1fdee2284f63122$exports = {
270
270
  "invalidSelection": (args, formatter)=>`${formatter.plural(args.selectedCount, {
@@ -571,7 +571,7 @@ $87077630a4e30349$exports = {
571
571
  };
572
572
 
573
573
 
574
- $e0a80792abac0d48$exports = {
574
+ $3bf3e8635a799a6e$exports = {
575
575
  "ar-AE": $c1fdee2284f63122$exports,
576
576
  "bg-BG": $81326fc5b8464f3e$exports,
577
577
  "cs-CZ": $61bec992b8f61b70$exports,
@@ -616,7 +616,7 @@ $e0a80792abac0d48$exports = {
616
616
  function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
617
617
  let { state: state , calendarProps: calendarProps , nextButtonProps: nextButtonProps , prevButtonProps: prevButtonProps , errorMessageProps: errorMessageProps , calendarRef: ref , visibleMonths: visibleMonths = 1 } = props;
618
618
  let { styleProps: styleProps } = (0, $40VnT$useStyleProps)(props);
619
- let stringFormatter = (0, $40VnT$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($e0a80792abac0d48$exports))));
619
+ let stringFormatter = (0, $40VnT$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($3bf3e8635a799a6e$exports))));
620
620
  let { direction: direction } = (0, $40VnT$useLocale)();
621
621
  let currentMonth = state.visibleRange.start;
622
622
  let monthDateFormatter = (0, $40VnT$useDateFormatter)({
@@ -694,6 +694,7 @@ function $62cd1e80f0dffb66$export$bfd52a43017368fe(props) {
694
694
  function $d2b8d4577dd88671$var$Calendar(props, ref) {
695
695
  props = (0, $40VnT$useProviderProps)(props);
696
696
  let { visibleMonths: visibleMonths = 1 } = props;
697
+ visibleMonths = Math.max(visibleMonths, 1);
697
698
  let visibleDuration = (0, $40VnT$useMemo)(()=>({
698
699
  months: visibleMonths
699
700
  }), [
@@ -716,6 +717,7 @@ function $d2b8d4577dd88671$var$Calendar(props, ref) {
716
717
  let { calendarProps: calendarProps , prevButtonProps: prevButtonProps , nextButtonProps: nextButtonProps , errorMessageProps: errorMessageProps } = (0, $40VnT$useCalendar)(props, state);
717
718
  return /*#__PURE__*/ (0, $40VnT$react).createElement((0, $62cd1e80f0dffb66$export$bfd52a43017368fe), {
718
719
  ...props,
720
+ visibleMonths: visibleMonths,
719
721
  state: state,
720
722
  calendarRef: domRef,
721
723
  calendarProps: calendarProps,
@@ -750,6 +752,7 @@ function $d2b8d4577dd88671$var$Calendar(props, ref) {
750
752
  function $8b1e8eddbf3b15de$var$RangeCalendar(props, ref) {
751
753
  props = (0, $40VnT$useProviderProps)(props);
752
754
  let { visibleMonths: visibleMonths = 1 } = props;
755
+ visibleMonths = Math.max(visibleMonths, 1);
753
756
  let visibleDuration = (0, $40VnT$useMemo)(()=>({
754
757
  months: visibleMonths
755
758
  }), [
@@ -772,6 +775,7 @@ function $8b1e8eddbf3b15de$var$RangeCalendar(props, ref) {
772
775
  let { calendarProps: calendarProps , prevButtonProps: prevButtonProps , nextButtonProps: nextButtonProps , errorMessageProps: errorMessageProps } = (0, $40VnT$useRangeCalendar)(props, state, domRef);
773
776
  return /*#__PURE__*/ (0, $40VnT$react).createElement((0, $62cd1e80f0dffb66$export$bfd52a43017368fe), {
774
777
  ...props,
778
+ visibleMonths: visibleMonths,
775
779
  state: state,
776
780
  calendarRef: domRef,
777
781
  calendarProps: calendarProps,
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;ACAA;;;;;;;;;;CAUC,GAED;ACZA;;;;;;;;;;ACAA;;;;;;;;;;CAUC,GAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACZA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AA3BA,4CAAsC;AACtC,4CAA8C;AAC9C,4CAA6C;AAC7C,4CAAkD;AAClD,4CAA4C;AAC5C,4CAAgD;AAChD,4CAAgD;AAChD,4CAA6C;AAC7C,4CAAgD;AAChD,4CAA2C;AAC3C,4CAA4C;AAC5C,4CAAgD;AAChD,4CAA2C;AAC3C,4CAA+C;AAC/C,4CAAgC;AAChC,4CAAmC;AACnC,4CAAoC;AACpC,4CAA+B;AAC/B,4CAAuC;AACvC,4CAAmC;AACnC,4CAAuC;AACvC,2CAAiC;AACjC,4CAAqC;AACrC,4CAA+B;AAC/B,4CAA6B;AAC7B,4CAAgC;AAChC,4CAA+B;AAC/B,4CAA+B;;;;;;ADCxB,SAAS,0CAAa,SAAC,MAAK,gBAAE,aAAY,EAAE,GAAG,OAAyB,EAAE;IAC/E,IAAI,MAAM,CAAA,GAAA,aAAM,AAAD;IACf,IAAI,aACF,UAA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AAA,GAAA,YAAI,EAAE,UAAU,CAAC;;AD9CnC;AyCdA;;;;;;;;;;CAUC,GAED;;;;;;;;AAWA,SAAS,oCAAmC,KAAoC,EAAE,GAA8B,EAAE;IAChH,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,iBAAC,gBAAgB,IAAE,GAAG;IAC1B,IAAI,kBAAkB,CAAA,GAAA,cAAO,AAAD,EAAE,IAAO,CAAA;YAAC,QAAQ;QAAa,CAAA,GAAI;QAAC;KAAc;IAC9E,IAAI,UAAC,OAAM,EAAC,GAAG,CAAA,GAAA,gBAAS,AAAD;IACvB,IAAI,QAAQ,CAAA,GAAA,4BAAoB,EAAE;QAChC,GAAG,KAAK;gBACR;yBACA;wBACA;IACF;IAEA,IAAI,SAAS,CAAA,GAAA,aAAM,AAAD;IAClB,CAAA,GAAA,0BAAkB,EAAE,KAAK,IAAO,CAAA;YAC9B,GAAG,CAAA,GAAA,mBAAY,AAAD,EAAE,OAAO;YACvB,SAAQ;gBACN,MAAM,UAAU,CAAC,IAAI;YACvB;QACF,CAAA;IAEA,IAAI,iBAAC,cAAa,mBAAE,gBAAe,mBAAE,gBAAe,qBAAE,kBAAiB,EAAC,GAAG,CAAA,GAAA,uBAAgB,AAAD,EAAE,OAAO,OAAO;IAE1G,qBACE,gCAAC,CAAA,GAAA,yCAAY,AAAD;QACT,GAAG,KAAK;QACT,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/index.ts","packages/@react-spectrum/calendar/src/Calendar.tsx","packages/@react-spectrum/calendar/src/CalendarBase.tsx","packages/@react-spectrum/calendar/src/CalendarMonth.tsx","packages/@react-spectrum/calendar/src/CalendarCell.tsx","packages/@adobe/spectrum-css-temp/components/calendar/vars.css","packages/@react-spectrum/calendar/intl/*.js","packages/@react-spectrum/calendar/intl/ar-AE.json","packages/@react-spectrum/calendar/intl/bg-BG.json","packages/@react-spectrum/calendar/intl/cs-CZ.json","packages/@react-spectrum/calendar/intl/da-DK.json","packages/@react-spectrum/calendar/intl/de-DE.json","packages/@react-spectrum/calendar/intl/el-GR.json","packages/@react-spectrum/calendar/intl/en-US.json","packages/@react-spectrum/calendar/intl/es-ES.json","packages/@react-spectrum/calendar/intl/et-EE.json","packages/@react-spectrum/calendar/intl/fi-FI.json","packages/@react-spectrum/calendar/intl/fr-FR.json","packages/@react-spectrum/calendar/intl/he-IL.json","packages/@react-spectrum/calendar/intl/hr-HR.json","packages/@react-spectrum/calendar/intl/hu-HU.json","packages/@react-spectrum/calendar/intl/it-IT.json","packages/@react-spectrum/calendar/intl/ja-JP.json","packages/@react-spectrum/calendar/intl/ko-KR.json","packages/@react-spectrum/calendar/intl/lt-LT.json","packages/@react-spectrum/calendar/intl/lv-LV.json","packages/@react-spectrum/calendar/intl/nb-NO.json","packages/@react-spectrum/calendar/intl/nl-NL.json","packages/@react-spectrum/calendar/intl/pl-PL.json","packages/@react-spectrum/calendar/intl/pt-BR.json","packages/@react-spectrum/calendar/intl/pt-PT.json","packages/@react-spectrum/calendar/intl/ro-RO.json","packages/@react-spectrum/calendar/intl/ru-RU.json","packages/@react-spectrum/calendar/intl/sk-SK.json","packages/@react-spectrum/calendar/intl/sl-SI.json","packages/@react-spectrum/calendar/intl/sr-SP.json","packages/@react-spectrum/calendar/intl/sv-SE.json","packages/@react-spectrum/calendar/intl/tr-TR.json","packages/@react-spectrum/calendar/intl/uk-UA.json","packages/@react-spectrum/calendar/intl/zh-CN.json","packages/@react-spectrum/calendar/intl/zh-TW.json","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\n/// <reference types=\"css-module-types\" />\n\nexport {Calendar} from './Calendar';\nexport {RangeCalendar} from './RangeCalendar';\nexport type {SpectrumCalendarProps, SpectrumRangeCalendarProps} from '@react-types/calendar';\n","/*\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, SpectrumCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useCalendar} from '@react-aria/calendar';\nimport {useCalendarState} from '@react-stately/calendar';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Calendar<T extends DateValue>(props: SpectrumCalendarProps<T>, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n let {visibleMonths = 1} = props;\n let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);\n let {locale} = useLocale();\n let state = useCalendarState({\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} = useCalendar(props, state);\n\n return (\n <CalendarBase\n {...props}\n state={state}\n calendarRef={domRef}\n calendarProps={calendarProps}\n prevButtonProps={prevButtonProps}\n nextButtonProps={nextButtonProps}\n errorMessageProps={errorMessageProps} />\n );\n}\n\n/**\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n */\nconst _Calendar = React.forwardRef(Calendar) as <T extends DateValue>(props: SpectrumCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_Calendar as Calendar};\n","/*\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 {ActionButton} from '@react-spectrum/button';\nimport {AriaButtonProps} from '@react-types/button';\nimport {CalendarMonth} from './CalendarMonth';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport ChevronLeft from '@spectrum-icons/ui/ChevronLeftLarge';\nimport ChevronRight from '@spectrum-icons/ui/ChevronRightLarge';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport {HelpText} from '@react-spectrum/label';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {HTMLAttributes, RefObject} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useDateFormatter, useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {VisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface CalendarBaseProps<T extends CalendarState | RangeCalendarState> extends CalendarPropsBase, DOMProps, StyleProps {\n state: T,\n visibleMonths?: number,\n calendarProps: HTMLAttributes<HTMLElement>,\n nextButtonProps: AriaButtonProps,\n prevButtonProps: AriaButtonProps,\n errorMessageProps: HTMLAttributes<HTMLElement>,\n calendarRef: RefObject<HTMLDivElement>\n}\n\nexport function CalendarBase<T extends CalendarState | RangeCalendarState>(props: CalendarBaseProps<T>) {\n let {\n state,\n calendarProps,\n nextButtonProps,\n prevButtonProps,\n errorMessageProps,\n calendarRef: ref,\n visibleMonths = 1\n } = props;\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {direction} = useLocale();\n let currentMonth = state.visibleRange.start;\n let monthDateFormatter = useDateFormatter({\n month: 'long',\n year: 'numeric',\n era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,\n calendar: currentMonth.calendar.identifier,\n timeZone: state.timeZone\n });\n\n let titles = [];\n let calendars = [];\n for (let i = 0; i < visibleMonths; i++) {\n let d = currentMonth.add({months: i});\n titles.push(\n <div key={i} className={classNames(styles, 'spectrum-Calendar-monthHeader')}>\n {i === 0 &&\n <ActionButton\n {...prevButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-prevMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronRight /> : <ChevronLeft />}\n </ActionButton>\n }\n <h2\n // We have a visually hidden heading describing the entire visible range,\n // and the calendar itself describes the individual month\n // so we don't need to repeat that here for screen reader users.\n aria-hidden\n className={classNames(styles, 'spectrum-Calendar-title')}>\n {monthDateFormatter.format(d.toDate(state.timeZone))}\n </h2>\n {i === visibleMonths - 1 &&\n <ActionButton\n {...nextButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-nextMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronLeft /> : <ChevronRight />}\n </ActionButton>\n }\n </div>\n );\n\n calendars.push(\n <CalendarMonth\n {...props}\n key={i}\n state={state}\n startDate={d} />\n );\n }\n\n return (\n <div\n {...styleProps}\n {...calendarProps}\n ref={ref}\n className={\n classNames(styles,\n 'spectrum-Calendar',\n styleProps.className\n )\n }>\n {/* Add a screen reader only description of the entire visible range rather than\n * a separate heading above each month grid. This is placed first in the DOM order\n * so that it is the first thing a touch screen reader user encounters.\n * In addition, VoiceOver on iOS does not announce the aria-label of the grid\n * elements, so the aria-label of the Calendar is included here as well. */}\n <VisuallyHidden>\n <h2>{calendarProps['aria-label']}</h2>\n </VisuallyHidden>\n <div className={classNames(styles, 'spectrum-Calendar-header')}>\n {titles}\n </div>\n <div className={classNames(styles, 'spectrum-Calendar-months')}>\n {calendars}\n </div>\n {/* For touch screen readers, add a visually hidden next button after the month grid\n * so it's easy to navigate after reaching the end without going all the way\n * back to the start of the month. */}\n <VisuallyHidden>\n <button\n aria-label={nextButtonProps['aria-label']}\n disabled={nextButtonProps.isDisabled}\n onClick={() => state.focusNextPage()}\n tabIndex={-1} />\n </VisuallyHidden>\n {state.validationState === 'invalid' &&\n <HelpText\n showErrorIcon\n errorMessage={props.errorMessage || stringFormatter.format('invalidSelection', {selectedCount: 'highlightedRange' in state ? 2 : 1})}\n errorMessageProps={errorMessageProps}\n validationState=\"invalid\"\n // Intentionally a global class name so it can be targeted in DatePicker CSS...\n UNSAFE_className=\"spectrum-Calendar-helpText\" />\n }\n </div>\n );\n}\n","/*\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 {CalendarCell} from './CalendarCell';\nimport {CalendarDate, endOfMonth, getWeeksInMonth} from '@internationalized/date';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useCalendarGrid} from '@react-aria/calendar';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarMonthProps extends CalendarPropsBase, DOMProps, StyleProps {\n state: CalendarState | RangeCalendarState,\n startDate: CalendarDate\n}\n\nexport function CalendarMonth(props: CalendarMonthProps) {\n let {\n state,\n startDate\n } = props;\n let {\n gridProps,\n headerProps,\n weekDays\n } = useCalendarGrid({\n ...props,\n endDate: endOfMonth(startDate)\n }, state);\n\n let {locale} = useLocale();\n let weeksInMonth = getWeeksInMonth(startDate, locale);\n\n return (\n <table\n {...gridProps}\n className={classNames(styles, 'spectrum-Calendar-body', 'spectrum-Calendar-table')}>\n <thead {...headerProps}>\n <tr>\n {weekDays.map((day, index) => (\n <th\n key={index}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span className={classNames(styles, 'spectrum-Calendar-dayOfWeek')}>\n {day}\n </span>\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {[...new Array(weeksInMonth).keys()].map(weekIndex => (\n <tr key={weekIndex}>\n {state.getDatesInWeek(weekIndex, startDate).map((date, i) => (\n date ? (\n <CalendarCell\n key={i}\n state={state}\n date={date}\n currentMonth={startDate} />\n ) : <td key={i} />\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n}\n","/*\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","/*\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@import './index.css';\n@import './skin.css';\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"invalidSelection\": \"{selectedCount, plural, one {التاريخ} other {التواريخ}} المحدد/المحددة غير متوفرة.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Избраната дата не е налична} other {Избраните дати не са налични}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybrané datum není} other {Vybraná data nejsou}} k dispozici.\"\n}\n","{\n \"invalidSelection\": \"Valgte {selectedCount, plural, one {dato} other {datoer}} ikke ledige.\"\n}\n","{\n \"invalidSelection\": \"Ausgewählte(s) {selectedCount, plural, one {Datum} other {Daten}} nicht verfügbar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη} other {Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες}}.\"\n}\n","{\n \"invalidSelection\": \"Selected {selectedCount, plural, one {date} other {dates}} unavailable.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La fecha seleccionada no está disponible} other {Las fechas seleccionadas no están disponibles}}.\"\n}\n","{\n \"invalidSelection\": \"Valitud {selectedCount, plural, one {kuupäev} other {kuupäevad}} pole saadaval.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valittu päivämäärä ei ole} other {Valitut päivämäärät eivät ole}} saatavilla.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La date sélectionnée est indisponible} other {Les dates sélectionnées sont indisponibles}}.\"\n}\n","{\n \"invalidSelection\": \"נבחר {selectedCount, plural, one {תאריך} other {תאריכים}} אינו זמין.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Odabrani datum nije dostupan} other {Odabrani datumi nisu dostupni}}.\"\n}\n","{\n \"invalidSelection\": \"A kijelölt {selectedCount, plural, one {dátum nem érhető el} other {dátumok nem érhetőek el}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selezionata non disponibile} other {Date selezionate non disponibili}}.\"\n}\n","{\n \"invalidSelection\": \"選択した{selectedCount, plural, one {日付} other {日付}}は使用できません。\"\n}\n","{\n \"invalidSelection\": \"선택한 {selectedCount, plural, one {일자를} other {일자를}} 사용할 수 없습니다.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Datos} other {Datų}} pasirinkimas negalimas.\"\n}\n","{\n \"invalidSelection\": \"Atlasītais(-ie) {selectedCount, plural, one {date} other {dates}} nav pieejams(-i).\"\n}\n","{\n \"invalidSelection\": \"Valgt(e) {selectedCount, plural, one {dato} other {datoer}} er utilgjengelig.\"\n}\n","{\n \"invalidSelection\": \"Geselecteerde {selectedCount, plural, one {datum} other {datums}} niet beschikbaar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Wybrana data jest niedostępna} other {Wybrane daty są niedostępne}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data} other {Datas}} selecionada(s) indisponível(is).\"\n}\n","{\n \"invalidSelection\": \"A(s) {selectedCount, plural, one {data} other {datas}} selecionada(s) não está(ão) disponível/disponível(eis).\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selectată nu este disponibilă} other {Datele selectate nu sunt disponibile}}.\"\n}\n","{\n \"invalidSelection\": \"Выбранные {selectedCount, plural, one {дата} other {даты}} недоступны.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybratý dátum} other {Vybraté dátumy}}: nedostupné.\"\n}\n","{\n \"invalidSelection\": \"Izbrano {selectedCount, plural, one {date} other {dates}} ni na voljo.\"\n}\n","{\n \"invalidSelection\": \"Izabrani {selectedCount, plural, one {date} other {dates}} nije dostupan.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valt datum är inte tillgängligt.} other {Valda datum är inte tillgängliga.}}\"\n}\n","{\n \"invalidSelection\": \"Seçilen {selectedCount, plural, one {tarih} other {tarihler}} müsait değil.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Вибрана дата недоступна} other {Вибрані дати недоступні}}.\"\n}\n","{\n \"invalidSelection\": \"选定的 {selectedCount, plural, one {个日期} other {个日期}} 不可用。\"\n}\n","{\n \"invalidSelection\": \"所選的{selectedCount, plural, one {日期} other {日期}}無法使用。\"\n}\n","/*\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 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 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":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;ACAA;;;;;;;;;;CAUC;ACVD;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AA3BA,4CAAsC;AACtC,4CAA8C;AAC9C,4CAA6C;AAC7C,4CAAkD;AAClD,4CAA4C;AAC5C,4CAAgD;AAChD,4CAAgD;AAChD,4CAA6C;AAC7C,4CAAgD;AAChD,4CAA2C;AAC3C,4CAA4C;AAC5C,4CAAgD;AAChD,4CAA2C;AAC3C,4CAA+C;AAC/C,4CAAgC;AAChC,4CAAmC;AACnC,4CAAoC;AACpC,4CAA+B;AAC/B,4CAAuC;AACvC,4CAAmC;AACnC,4CAAuC;AACvC,2CAAiC;AACjC,4CAAqC;AACrC,4CAA+B;AAC/B,4CAA6B;AAC7B,4CAAgC;AAChC,4CAA+B;AAC/B,4CAA+B;;;;;;ADCxB,SAAS,0CAAa,SAAC,MAAK,gBA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ACD,MAAM,0DAAiB,CAAA,GAAA,YAAI,EAAE,WAAW;;","sources":["packages/@react-spectrum/calendar/src/index.ts","packages/@react-spectrum/calendar/src/Calendar.tsx","packages/@react-spectrum/calendar/src/CalendarBase.tsx","packages/@react-spectrum/calendar/src/CalendarMonth.tsx","packages/@react-spectrum/calendar/src/CalendarCell.tsx","packages/@adobe/spectrum-css-temp/components/calendar/vars.css","packages/@react-spectrum/calendar/src/*.js","packages/@react-spectrum/calendar/intl/ar-AE.json","packages/@react-spectrum/calendar/intl/bg-BG.json","packages/@react-spectrum/calendar/intl/cs-CZ.json","packages/@react-spectrum/calendar/intl/da-DK.json","packages/@react-spectrum/calendar/intl/de-DE.json","packages/@react-spectrum/calendar/intl/el-GR.json","packages/@react-spectrum/calendar/intl/en-US.json","packages/@react-spectrum/calendar/intl/es-ES.json","packages/@react-spectrum/calendar/intl/et-EE.json","packages/@react-spectrum/calendar/intl/fi-FI.json","packages/@react-spectrum/calendar/intl/fr-FR.json","packages/@react-spectrum/calendar/intl/he-IL.json","packages/@react-spectrum/calendar/intl/hr-HR.json","packages/@react-spectrum/calendar/intl/hu-HU.json","packages/@react-spectrum/calendar/intl/it-IT.json","packages/@react-spectrum/calendar/intl/ja-JP.json","packages/@react-spectrum/calendar/intl/ko-KR.json","packages/@react-spectrum/calendar/intl/lt-LT.json","packages/@react-spectrum/calendar/intl/lv-LV.json","packages/@react-spectrum/calendar/intl/nb-NO.json","packages/@react-spectrum/calendar/intl/nl-NL.json","packages/@react-spectrum/calendar/intl/pl-PL.json","packages/@react-spectrum/calendar/intl/pt-BR.json","packages/@react-spectrum/calendar/intl/pt-PT.json","packages/@react-spectrum/calendar/intl/ro-RO.json","packages/@react-spectrum/calendar/intl/ru-RU.json","packages/@react-spectrum/calendar/intl/sk-SK.json","packages/@react-spectrum/calendar/intl/sl-SI.json","packages/@react-spectrum/calendar/intl/sr-SP.json","packages/@react-spectrum/calendar/intl/sv-SE.json","packages/@react-spectrum/calendar/intl/tr-TR.json","packages/@react-spectrum/calendar/intl/uk-UA.json","packages/@react-spectrum/calendar/intl/zh-CN.json","packages/@react-spectrum/calendar/intl/zh-TW.json","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\n/// <reference types=\"css-module-types\" />\n\nexport {Calendar} from './Calendar';\nexport {RangeCalendar} from './RangeCalendar';\nexport type {SpectrumCalendarProps, SpectrumRangeCalendarProps} from '@react-types/calendar';\n","/*\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, SpectrumCalendarProps} from '@react-types/calendar';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react';\nimport {useCalendar} from '@react-aria/calendar';\nimport {useCalendarState} from '@react-stately/calendar';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Calendar<T extends DateValue>(props: SpectrumCalendarProps<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 = useCalendarState({\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} = useCalendar(props, state);\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 * Calendars display a grid of days in one or more months and allow users to select a single date.\n */\nconst _Calendar = React.forwardRef(Calendar) as <T extends DateValue>(props: SpectrumCalendarProps<T> & {ref?: FocusableRef<HTMLElement>}) => ReactElement;\nexport {_Calendar as Calendar};\n","/*\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 {ActionButton} from '@react-spectrum/button';\nimport {AriaButtonProps} from '@react-types/button';\nimport {CalendarMonth} from './CalendarMonth';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport ChevronLeft from '@spectrum-icons/ui/ChevronLeftLarge';\nimport ChevronRight from '@spectrum-icons/ui/ChevronRightLarge';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport {HelpText} from '@react-spectrum/label';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {HTMLAttributes, RefObject} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useDateFormatter, useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {VisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface CalendarBaseProps<T extends CalendarState | RangeCalendarState> extends CalendarPropsBase, DOMProps, StyleProps {\n state: T,\n visibleMonths?: number,\n calendarProps: HTMLAttributes<HTMLElement>,\n nextButtonProps: AriaButtonProps,\n prevButtonProps: AriaButtonProps,\n errorMessageProps: HTMLAttributes<HTMLElement>,\n calendarRef: RefObject<HTMLDivElement>\n}\n\nexport function CalendarBase<T extends CalendarState | RangeCalendarState>(props: CalendarBaseProps<T>) {\n let {\n state,\n calendarProps,\n nextButtonProps,\n prevButtonProps,\n errorMessageProps,\n calendarRef: ref,\n visibleMonths = 1\n } = props;\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {direction} = useLocale();\n let currentMonth = state.visibleRange.start;\n let monthDateFormatter = useDateFormatter({\n month: 'long',\n year: 'numeric',\n era: currentMonth.calendar.identifier === 'gregory' && currentMonth.era === 'BC' ? 'short' : undefined,\n calendar: currentMonth.calendar.identifier,\n timeZone: state.timeZone\n });\n\n let titles = [];\n let calendars = [];\n for (let i = 0; i < visibleMonths; i++) {\n let d = currentMonth.add({months: i});\n titles.push(\n <div key={i} className={classNames(styles, 'spectrum-Calendar-monthHeader')}>\n {i === 0 &&\n <ActionButton\n {...prevButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-prevMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronRight /> : <ChevronLeft />}\n </ActionButton>\n }\n <h2\n // We have a visually hidden heading describing the entire visible range,\n // and the calendar itself describes the individual month\n // so we don't need to repeat that here for screen reader users.\n aria-hidden\n className={classNames(styles, 'spectrum-Calendar-title')}>\n {monthDateFormatter.format(d.toDate(state.timeZone))}\n </h2>\n {i === visibleMonths - 1 &&\n <ActionButton\n {...nextButtonProps}\n UNSAFE_className={classNames(styles, 'spectrum-Calendar-nextMonth')}\n isQuiet>\n {direction === 'rtl' ? <ChevronLeft /> : <ChevronRight />}\n </ActionButton>\n }\n </div>\n );\n\n calendars.push(\n <CalendarMonth\n {...props}\n key={i}\n state={state}\n startDate={d} />\n );\n }\n\n return (\n <div\n {...styleProps}\n {...calendarProps}\n ref={ref}\n className={\n classNames(styles,\n 'spectrum-Calendar',\n styleProps.className\n )\n }>\n {/* Add a screen reader only description of the entire visible range rather than\n * a separate heading above each month grid. This is placed first in the DOM order\n * so that it is the first thing a touch screen reader user encounters.\n * In addition, VoiceOver on iOS does not announce the aria-label of the grid\n * elements, so the aria-label of the Calendar is included here as well. */}\n <VisuallyHidden>\n <h2>{calendarProps['aria-label']}</h2>\n </VisuallyHidden>\n <div className={classNames(styles, 'spectrum-Calendar-header')}>\n {titles}\n </div>\n <div className={classNames(styles, 'spectrum-Calendar-months')}>\n {calendars}\n </div>\n {/* For touch screen readers, add a visually hidden next button after the month grid\n * so it's easy to navigate after reaching the end without going all the way\n * back to the start of the month. */}\n <VisuallyHidden>\n <button\n aria-label={nextButtonProps['aria-label']}\n disabled={nextButtonProps.isDisabled}\n onClick={() => state.focusNextPage()}\n tabIndex={-1} />\n </VisuallyHidden>\n {state.validationState === 'invalid' &&\n <HelpText\n showErrorIcon\n errorMessage={props.errorMessage || stringFormatter.format('invalidSelection', {selectedCount: 'highlightedRange' in state ? 2 : 1})}\n errorMessageProps={errorMessageProps}\n validationState=\"invalid\"\n // Intentionally a global class name so it can be targeted in DatePicker CSS...\n UNSAFE_className=\"spectrum-Calendar-helpText\" />\n }\n </div>\n );\n}\n","/*\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 {CalendarCell} from './CalendarCell';\nimport {CalendarDate, endOfMonth, getWeeksInMonth} from '@internationalized/date';\nimport {CalendarPropsBase} from '@react-types/calendar';\nimport {CalendarState, RangeCalendarState} from '@react-stately/calendar';\nimport {classNames} from '@react-spectrum/utils';\nimport {DOMProps, StyleProps} from '@react-types/shared';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/calendar/vars.css';\nimport {useCalendarGrid} from '@react-aria/calendar';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface CalendarMonthProps extends CalendarPropsBase, DOMProps, StyleProps {\n state: CalendarState | RangeCalendarState,\n startDate: CalendarDate\n}\n\nexport function CalendarMonth(props: CalendarMonthProps) {\n let {\n state,\n startDate\n } = props;\n let {\n gridProps,\n headerProps,\n weekDays\n } = useCalendarGrid({\n ...props,\n endDate: endOfMonth(startDate)\n }, state);\n\n let {locale} = useLocale();\n let weeksInMonth = getWeeksInMonth(startDate, locale);\n\n return (\n <table\n {...gridProps}\n className={classNames(styles, 'spectrum-Calendar-body', 'spectrum-Calendar-table')}>\n <thead {...headerProps}>\n <tr>\n {weekDays.map((day, index) => (\n <th\n key={index}\n className={classNames(styles, 'spectrum-Calendar-tableCell')}>\n <span className={classNames(styles, 'spectrum-Calendar-dayOfWeek')}>\n {day}\n </span>\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {[...new Array(weeksInMonth).keys()].map(weekIndex => (\n <tr key={weekIndex}>\n {state.getDatesInWeek(weekIndex, startDate).map((date, i) => (\n date ? (\n <CalendarCell\n key={i}\n state={state}\n date={date}\n currentMonth={startDate} />\n ) : <td key={i} />\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n );\n}\n","/*\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","/*\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@import './index.css';\n@import './skin.css';\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"invalidSelection\": \"{selectedCount, plural, one {التاريخ} other {التواريخ}} المحدد/المحددة غير متوفرة.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Избраната дата не е налична} other {Избраните дати не са налични}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybrané datum není} other {Vybraná data nejsou}} k dispozici.\"\n}\n","{\n \"invalidSelection\": \"Valgte {selectedCount, plural, one {dato} other {datoer}} ikke ledige.\"\n}\n","{\n \"invalidSelection\": \"Ausgewählte(s) {selectedCount, plural, one {Datum} other {Daten}} nicht verfügbar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη} other {Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες}}.\"\n}\n","{\n \"invalidSelection\": \"Selected {selectedCount, plural, one {date} other {dates}} unavailable.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La fecha seleccionada no está disponible} other {Las fechas seleccionadas no están disponibles}}.\"\n}\n","{\n \"invalidSelection\": \"Valitud {selectedCount, plural, one {kuupäev} other {kuupäevad}} pole saadaval.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valittu päivämäärä ei ole} other {Valitut päivämäärät eivät ole}} saatavilla.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {La date sélectionnée est indisponible} other {Les dates sélectionnées sont indisponibles}}.\"\n}\n","{\n \"invalidSelection\": \"נבחר {selectedCount, plural, one {תאריך} other {תאריכים}} אינו זמין.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Odabrani datum nije dostupan} other {Odabrani datumi nisu dostupni}}.\"\n}\n","{\n \"invalidSelection\": \"A kijelölt {selectedCount, plural, one {dátum nem érhető el} other {dátumok nem érhetőek el}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selezionata non disponibile} other {Date selezionate non disponibili}}.\"\n}\n","{\n \"invalidSelection\": \"選択した{selectedCount, plural, one {日付} other {日付}}は使用できません。\"\n}\n","{\n \"invalidSelection\": \"선택한 {selectedCount, plural, one {일자를} other {일자를}} 사용할 수 없습니다.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Datos} other {Datų}} pasirinkimas negalimas.\"\n}\n","{\n \"invalidSelection\": \"Atlasītais(-ie) {selectedCount, plural, one {date} other {dates}} nav pieejams(-i).\"\n}\n","{\n \"invalidSelection\": \"Valgt(e) {selectedCount, plural, one {dato} other {datoer}} er utilgjengelig.\"\n}\n","{\n \"invalidSelection\": \"Geselecteerde {selectedCount, plural, one {datum} other {datums}} niet beschikbaar.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Wybrana data jest niedostępna} other {Wybrane daty są niedostępne}}.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data} other {Datas}} selecionada(s) indisponível(is).\"\n}\n","{\n \"invalidSelection\": \"A(s) {selectedCount, plural, one {data} other {datas}} selecionada(s) não está(ão) disponível/disponível(eis).\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Data selectată nu este disponibilă} other {Datele selectate nu sunt disponibile}}.\"\n}\n","{\n \"invalidSelection\": \"Выбранные {selectedCount, plural, one {дата} other {даты}} недоступны.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Vybratý dátum} other {Vybraté dátumy}}: nedostupné.\"\n}\n","{\n \"invalidSelection\": \"Izbrano {selectedCount, plural, one {date} other {dates}} ni na voljo.\"\n}\n","{\n \"invalidSelection\": \"Izabrani {selectedCount, plural, one {date} other {dates}} nije dostupan.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Valt datum är inte tillgängligt.} other {Valda datum är inte tillgängliga.}}\"\n}\n","{\n \"invalidSelection\": \"Seçilen {selectedCount, plural, one {tarih} other {tarihler}} müsait değil.\"\n}\n","{\n \"invalidSelection\": \"{selectedCount, plural, one {Вибрана дата недоступна} other {Вибрані дати недоступні}}.\"\n}\n","{\n \"invalidSelection\": \"选定的 {selectedCount, plural, one {个日期} other {个日期}} 不可用。\"\n}\n","{\n \"invalidSelection\": \"所選的{selectedCount, plural, one {日期} other {日期}}無法使用。\"\n}\n","/*\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":"module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;AGyDA;;GAEG;AACH,OAAA,MAAM;UAAyG,aAAa,WAAW,CAAC;MAAM,YAAY,CAAC;ACH3J;;GAEG;AACH,OAAA,MAAM;UAAwH,aAAa,WAAW,CAAC;MAAM,YAAY,CAAC;AC5C1K,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;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/calendar",
3
- "version": "3.2.2",
3
+ "version": "3.3.1",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,22 +36,22 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@internationalized/date": "^3.2.0",
40
- "@react-aria/calendar": "^3.3.0",
41
- "@react-aria/focus": "^3.12.1",
42
- "@react-aria/i18n": "^3.7.2",
43
- "@react-aria/interactions": "^3.15.1",
44
- "@react-aria/utils": "^3.17.0",
45
- "@react-aria/visually-hidden": "^3.8.1",
46
- "@react-spectrum/button": "^3.12.2",
47
- "@react-spectrum/label": "^3.12.1",
48
- "@react-spectrum/utils": "^3.9.2",
49
- "@react-stately/calendar": "^3.2.1",
50
- "@react-types/button": "^3.7.3",
51
- "@react-types/calendar": "^3.2.1",
52
- "@react-types/shared": "^3.18.1",
53
- "@spectrum-icons/ui": "^3.5.2",
54
- "@swc/helpers": "^0.4.14"
39
+ "@internationalized/date": "^3.4.0",
40
+ "@react-aria/calendar": "^3.4.1",
41
+ "@react-aria/focus": "^3.14.0",
42
+ "@react-aria/i18n": "^3.8.1",
43
+ "@react-aria/interactions": "^3.17.0",
44
+ "@react-aria/utils": "^3.19.0",
45
+ "@react-aria/visually-hidden": "^3.8.3",
46
+ "@react-spectrum/button": "^3.12.4",
47
+ "@react-spectrum/label": "^3.13.1",
48
+ "@react-spectrum/utils": "^3.10.1",
49
+ "@react-stately/calendar": "^3.3.1",
50
+ "@react-types/button": "^3.7.4",
51
+ "@react-types/calendar": "^3.3.1",
52
+ "@react-types/shared": "^3.19.0",
53
+ "@spectrum-icons/ui": "^3.5.4",
54
+ "@swc/helpers": "^0.5.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@adobe/spectrum-css-temp": "3.0.0-alpha.1",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "5911ed21de4b76d66f6254c02302519e02d50e16"
68
+ "gitHead": "d4dfe4bb842a914f10045ee63fc6b92f034c5b30"
69
69
  }
package/src/Calendar.tsx CHANGED
@@ -24,6 +24,7 @@ import {useProviderProps} from '@react-spectrum/provider';
24
24
  function Calendar<T extends DateValue>(props: SpectrumCalendarProps<T>, ref: FocusableRef<HTMLElement>) {
25
25
  props = useProviderProps(props);
26
26
  let {visibleMonths = 1} = props;
27
+ visibleMonths = Math.max(visibleMonths, 1);
27
28
  let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);
28
29
  let {locale} = useLocale();
29
30
  let state = useCalendarState({
@@ -46,6 +47,7 @@ function Calendar<T extends DateValue>(props: SpectrumCalendarProps<T>, ref: Foc
46
47
  return (
47
48
  <CalendarBase
48
49
  {...props}
50
+ visibleMonths={visibleMonths}
49
51
  state={state}
50
52
  calendarRef={domRef}
51
53
  calendarProps={calendarProps}
@@ -24,6 +24,7 @@ import {useRangeCalendarState} from '@react-stately/calendar';
24
24
  function RangeCalendar<T extends DateValue>(props: SpectrumRangeCalendarProps<T>, ref: FocusableRef<HTMLElement>) {
25
25
  props = useProviderProps(props);
26
26
  let {visibleMonths = 1} = props;
27
+ visibleMonths = Math.max(visibleMonths, 1);
27
28
  let visibleDuration = useMemo(() => ({months: visibleMonths}), [visibleMonths]);
28
29
  let {locale} = useLocale();
29
30
  let state = useRangeCalendarState({
@@ -46,6 +47,7 @@ function RangeCalendar<T extends DateValue>(props: SpectrumRangeCalendarProps<T>
46
47
  return (
47
48
  <CalendarBase
48
49
  {...props}
50
+ visibleMonths={visibleMonths}
49
51
  state={state}
50
52
  calendarRef={domRef}
51
53
  calendarProps={calendarProps}