Socket
Socket
Sign inDemoInstall

@react-aria/calendar

Package Overview
Dependencies
Maintainers
2
Versions
555
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/calendar - npm Package Compare versions

Comparing version 3.0.0-nightly.3148 to 3.0.0-nightly.3156

7

dist/main.js

@@ -552,2 +552,6 @@ var $jzHdg$reactarialiveannouncer = require("@react-aria/live-announcer");

onPressStart (e) {
if (state.isReadOnly) {
state.setFocusedDate(date);
return;
}
if ('highlightedRange' in state && !state.anchorDate && (e.pointerType === 'mouse' || e.pointerType === 'touch')) {

@@ -592,3 +596,3 @@ // Allow dragging the start or end date of a range to modify it

// For non-range selection, always select on press up.
if (!('anchorDate' in state)) {
if (!('anchorDate' in state) && !state.isReadOnly) {
state.selectDate(date);

@@ -599,2 +603,3 @@ state.setFocusedDate(date);

onPressUp (e) {
if (state.isReadOnly) return;
// If the user tapped quickly, the date won't be selected yet and the

@@ -601,0 +606,0 @@ // timer will still be in progress. In this case, select the date on touch up.

@@ -536,2 +536,6 @@ import {announce as $amWdn$announce} from "@react-aria/live-announcer";

onPressStart (e) {
if (state.isReadOnly) {
state.setFocusedDate(date);
return;
}
if ('highlightedRange' in state && !state.anchorDate && (e.pointerType === 'mouse' || e.pointerType === 'touch')) {

@@ -576,3 +580,3 @@ // Allow dragging the start or end date of a range to modify it

// For non-range selection, always select on press up.
if (!('anchorDate' in state)) {
if (!('anchorDate' in state) && !state.isReadOnly) {
state.selectDate(date);

@@ -583,2 +587,3 @@ state.setFocusedDate(date);

onPressUp (e) {
if (state.isReadOnly) return;
// If the user tapped quickly, the date won't be selected yet and the

@@ -585,0 +590,0 @@ // timer will still be in progress. In this case, select the date on touch up.

22

package.json
{
"name": "@react-aria/calendar",
"version": "3.0.0-nightly.3148+320c69908",
"version": "3.0.0-nightly.3156+2c25922e2",
"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.3148+320c69908",
"@react-aria/i18n": "3.0.0-nightly.1452+320c69908",
"@react-aria/interactions": "3.0.0-nightly.1452+320c69908",
"@react-aria/live-announcer": "3.0.0-nightly.1452+320c69908",
"@react-aria/utils": "3.0.0-nightly.1452+320c69908",
"@react-stately/calendar": "3.0.0-nightly.1452+320c69908",
"@react-types/button": "3.4.4-nightly.3148+320c69908",
"@react-types/calendar": "3.0.0-nightly.3148+320c69908",
"@react-types/shared": "3.0.0-nightly.1452+320c69908",
"@internationalized/date": "3.0.0-nightly.3156+2c25922e2",
"@react-aria/i18n": "3.0.0-nightly.1460+2c25922e2",
"@react-aria/interactions": "3.0.0-nightly.1460+2c25922e2",
"@react-aria/live-announcer": "3.0.0-nightly.1460+2c25922e2",
"@react-aria/utils": "3.0.0-nightly.1460+2c25922e2",
"@react-stately/calendar": "3.0.0-nightly.1460+2c25922e2",
"@react-types/button": "3.4.4-nightly.3156+2c25922e2",
"@react-types/calendar": "3.0.0-nightly.3156+2c25922e2",
"@react-types/shared": "3.0.0-nightly.1460+2c25922e2",
"date-fns": "^1.30.1"

@@ -40,3 +40,3 @@ },

},
"gitHead": "320c69908b41be47a3abb2878d04f90384e54321"
"gitHead": "2c25922e23ec51bd487b7838adb48a60c558dc36"
}

@@ -132,2 +132,7 @@ /*

onPressStart(e) {
if (state.isReadOnly) {
state.setFocusedDate(date);
return;
}
if ('highlightedRange' in state && !state.anchorDate && (e.pointerType === 'mouse' || e.pointerType === 'touch')) {

@@ -178,3 +183,3 @@ // Allow dragging the start or end date of a range to modify it

// For non-range selection, always select on press up.
if (!('anchorDate' in state)) {
if (!('anchorDate' in state) && !state.isReadOnly) {
state.selectDate(date);

@@ -185,2 +190,6 @@ state.setFocusedDate(date);

onPressUp(e) {
if (state.isReadOnly) {
return;
}
// If the user tapped quickly, the date won't be selected yet and the

@@ -187,0 +196,0 @@ // timer will still be in progress. In this case, select the date on touch up.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc