New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-stately/calendar

Package Overview
Dependencies
Maintainers
2
Versions
724
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-stately/calendar - npm Package Compare versions

Comparing version

to
3.0.0-nightly-e7053dd8f-250108

2

dist/useCalendarState.main.js

@@ -231,3 +231,3 @@ var $4301262d71f567b9$exports = require("./utils.main.js");

selectFocusedDate () {
setValue(focusedDate);
if (!(isDateUnavailable && isDateUnavailable(focusedDate))) setValue(focusedDate);
},

@@ -234,0 +234,0 @@ selectDate (date) {

@@ -225,3 +225,3 @@ import {alignCenter as $f62d864046160412$export$f4a51ff076cc9a09, alignEnd as $f62d864046160412$export$530edbfc915b2b04, alignStart as $f62d864046160412$export$144a00ba6044eb9, constrainStart as $f62d864046160412$export$5bb865b12696a77d, constrainValue as $f62d864046160412$export$4f5203c0d889109e, isInvalid as $f62d864046160412$export$eac50920cf2fd59a, previousAvailableDate as $f62d864046160412$export$a1d3911297b952d7} from "./utils.module.js";

selectFocusedDate () {
setValue(focusedDate);
if (!(isDateUnavailable && isDateUnavailable(focusedDate))) setValue(focusedDate);
},

@@ -228,0 +228,0 @@ selectDate (date) {

{
"name": "@react-stately/calendar",
"version": "3.0.0-nightly-e60fb427c-240930",
"version": "3.0.0-nightly-e7053dd8f-250108",
"description": "Spectrum UI components in React",

@@ -25,15 +25,14 @@ "license": "Apache-2.0",

"dependencies": {
"@internationalized/date": "^3.0.0-nightly-e60fb427c-240930",
"@react-stately/utils": "^3.0.0-nightly-e60fb427c-240930",
"@react-types/calendar": "^3.0.0-nightly-e60fb427c-240930",
"@react-types/shared": "^3.0.0-nightly-e60fb427c-240930",
"@internationalized/date": "3.0.0-nightly-e7053dd8f-250108",
"@react-stately/utils": "3.0.0-nightly-e7053dd8f-250108",
"@react-types/calendar": "3.0.0-nightly-e7053dd8f-250108",
"@react-types/shared": "3.0.0-nightly-e7053dd8f-250108",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
},
"stableVersion": "3.5.4"
}
}

@@ -294,3 +294,5 @@ /*

selectFocusedDate() {
setValue(focusedDate);
if (!(isDateUnavailable && isDateUnavailable(focusedDate))) {
setValue(focusedDate);
}
},

@@ -297,0 +299,0 @@ selectDate(date) {

@@ -16,3 +16,3 @@ /*

import {CalendarState, RangeCalendarState} from './types';
import {DateValue, RangeCalendarProps} from '@react-types/calendar';
import {DateValue, MappedDateValue, RangeCalendarProps} from '@react-types/calendar';
import {RangeValue, ValidationState} from '@react-types/shared';

@@ -46,3 +46,3 @@ import {useCalendarState} from './useCalendarState';

let {value: valueProp, defaultValue, onChange, createCalendar, locale, visibleDuration = {months: 1}, minValue, maxValue, ...calendarProps} = props;
let [value, setValue] = useControlledState<RangeValue<T> | null, RangeValue<T>>(
let [value, setValue] = useControlledState<RangeValue<T> | null, RangeValue<MappedDateValue<T>>>(
valueProp!,

@@ -49,0 +49,0 @@ defaultValue || null!,

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

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