@react-aria/calendar
Advanced tools
Comparing version 3.0.0-nightly.3134 to 3.0.0-nightly.3142
@@ -226,7 +226,7 @@ var $jzHdg$reactarialiveannouncer = require("@react-aria/live-announcer"); | ||
if ($jzHdg$internationalizeddate.isSameDay(start, end)) return formatMessage('selectedDateDescription', { | ||
date: $jzHdg$internationalizeddate.toDate(start, state.timeZone) | ||
date: start.toDate(state.timeZone) | ||
}); | ||
else return formatMessage('selectedRangeDescription', { | ||
start: $jzHdg$internationalizeddate.toDate(start, state.timeZone), | ||
end: $jzHdg$internationalizeddate.toDate(end, state.timeZone) | ||
start: start.toDate(state.timeZone), | ||
end: end.toDate(state.timeZone) | ||
}); | ||
@@ -233,0 +233,0 @@ } |
import {announce as $amWdn$announce} from "@react-aria/live-announcer"; | ||
import {useId as $amWdn$useId, useUpdateEffect as $amWdn$useUpdateEffect, useDescription as $amWdn$useDescription, mergeProps as $amWdn$mergeProps, useEvent as $amWdn$useEvent, useLabels as $amWdn$useLabels, focusWithoutScrolling as $amWdn$focusWithoutScrolling} from "@react-aria/utils"; | ||
import {useMessageFormatter as $amWdn$useMessageFormatter, useDateFormatter as $amWdn$useDateFormatter, useLocale as $amWdn$useLocale} from "@react-aria/i18n"; | ||
import {isSameDay as $amWdn$isSameDay, toDate as $amWdn$toDate, startOfMonth as $amWdn$startOfMonth, endOfMonth as $amWdn$endOfMonth, isEqualDay as $amWdn$isEqualDay, isToday as $amWdn$isToday, isSameMonth as $amWdn$isSameMonth} from "@internationalized/date"; | ||
import {isSameDay as $amWdn$isSameDay, startOfMonth as $amWdn$startOfMonth, endOfMonth as $amWdn$endOfMonth, isEqualDay as $amWdn$isEqualDay, isToday as $amWdn$isToday, isSameMonth as $amWdn$isSameMonth} from "@internationalized/date"; | ||
import {useMemo as $amWdn$useMemo, useRef as $amWdn$useRef, useEffect as $amWdn$useEffect} from "react"; | ||
@@ -210,7 +210,7 @@ import {usePress as $amWdn$usePress} from "@react-aria/interactions"; | ||
if ($amWdn$isSameDay(start, end)) return formatMessage('selectedDateDescription', { | ||
date: $amWdn$toDate(start, state.timeZone) | ||
date: start.toDate(state.timeZone) | ||
}); | ||
else return formatMessage('selectedRangeDescription', { | ||
start: $amWdn$toDate(start, state.timeZone), | ||
end: $amWdn$toDate(end, state.timeZone) | ||
start: start.toDate(state.timeZone), | ||
end: end.toDate(state.timeZone) | ||
}); | ||
@@ -217,0 +217,0 @@ } |
{ | ||
"name": "@react-aria/calendar", | ||
"version": "3.0.0-nightly.3134+6fa5706ef", | ||
"version": "3.0.0-nightly.3142+51ff50c6f", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,11 +21,11 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@internationalized/date": "3.0.0-nightly.3134+6fa5706ef", | ||
"@react-aria/i18n": "3.0.0-nightly.1438+6fa5706ef", | ||
"@react-aria/interactions": "3.0.0-nightly.1438+6fa5706ef", | ||
"@react-aria/live-announcer": "3.0.0-nightly.1438+6fa5706ef", | ||
"@react-aria/utils": "3.0.0-nightly.1438+6fa5706ef", | ||
"@react-stately/calendar": "3.0.0-nightly.1438+6fa5706ef", | ||
"@react-types/button": "3.4.4-nightly.3134+6fa5706ef", | ||
"@react-types/calendar": "3.0.0-nightly.3134+6fa5706ef", | ||
"@react-types/shared": "3.0.0-nightly.1438+6fa5706ef", | ||
"@internationalized/date": "3.0.0-nightly.3142+51ff50c6f", | ||
"@react-aria/i18n": "3.0.0-nightly.1446+51ff50c6f", | ||
"@react-aria/interactions": "3.0.0-nightly.1446+51ff50c6f", | ||
"@react-aria/live-announcer": "3.0.0-nightly.1446+51ff50c6f", | ||
"@react-aria/utils": "3.0.0-nightly.1446+51ff50c6f", | ||
"@react-stately/calendar": "3.0.0-nightly.1446+51ff50c6f", | ||
"@react-types/button": "3.4.4-nightly.3142+51ff50c6f", | ||
"@react-types/calendar": "3.0.0-nightly.3142+51ff50c6f", | ||
"@react-types/shared": "3.0.0-nightly.1446+51ff50c6f", | ||
"date-fns": "^1.30.1" | ||
@@ -40,3 +40,3 @@ }, | ||
}, | ||
"gitHead": "6fa5706efb7bb7d8c322b8f756c451378ca962ce" | ||
"gitHead": "51ff50c6fed6df76c22467622b17b2af2d9380e0" | ||
} |
@@ -13,3 +13,3 @@ /* | ||
import {CalendarDate, endOfMonth, isSameDay, startOfMonth, toDate} from '@internationalized/date'; | ||
import {CalendarDate, endOfMonth, isSameDay, startOfMonth} from '@internationalized/date'; | ||
import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; | ||
@@ -40,5 +40,5 @@ // @ts-ignore | ||
if (isSameDay(start, end)) { | ||
return formatMessage('selectedDateDescription', {date: toDate(start, state.timeZone)}); | ||
return formatMessage('selectedDateDescription', {date: start.toDate(state.timeZone)}); | ||
} else { | ||
return formatMessage('selectedRangeDescription', {start: toDate(start, state.timeZone), end: toDate(end, state.timeZone)}); | ||
return formatMessage('selectedRangeDescription', {start: start.toDate(state.timeZone), end: end.toDate(state.timeZone)}); | ||
} | ||
@@ -45,0 +45,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
264847