react-day-picker 10.0.0-next.0 → 10.0.0-next.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/cjs/components/Chevron.js +1 -3
- package/dist/cjs/formatters/formatWeekNumber.d.ts +1 -1
- package/dist/cjs/useAnimation.js +1 -2
- package/dist/cjs/utils/rangeIncludesDate.d.ts +1 -1
- package/dist/cjs/utils/rangeOverlaps.d.ts +1 -1
- package/dist/esm/components/Chevron.js +1 -3
- package/dist/esm/formatters/formatWeekNumber.d.ts +1 -1
- package/dist/esm/useAnimation.js +1 -2
- package/dist/esm/utils/rangeIncludesDate.d.ts +1 -1
- package/dist/esm/utils/rangeOverlaps.d.ts +1 -1
- package/package.json +13 -13
|
@@ -13,9 +13,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
13
13
|
*/
|
|
14
14
|
function Chevron(props) {
|
|
15
15
|
const { size = 24, orientation = "left", className } = props;
|
|
16
|
-
return (
|
|
17
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
18
|
-
react_1.default.createElement("svg", { className: className, width: size, height: size, viewBox: "0 0 24 24" },
|
|
16
|
+
return (react_1.default.createElement("svg", { className: className, width: size, height: size, viewBox: "0 0 24 24" },
|
|
19
17
|
orientation === "up" && (react_1.default.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" })),
|
|
20
18
|
orientation === "down" && (react_1.default.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" })),
|
|
21
19
|
orientation === "left" && (react_1.default.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" })),
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* @group Formatters
|
|
10
10
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
11
11
|
*/
|
|
12
|
-
export declare function formatWeekNumber(weekNumber: number, dateLib?: import("../
|
|
12
|
+
export declare function formatWeekNumber(weekNumber: number, dateLib?: import("../index.js").DateLib): string;
|
package/dist/cjs/useAnimation.js
CHANGED
|
@@ -97,8 +97,7 @@ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib
|
|
|
97
97
|
: [];
|
|
98
98
|
const currentMonthEls = queryMonthEls(rootElRef.current);
|
|
99
99
|
if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&
|
|
100
|
-
previousMonthEls
|
|
101
|
-
previousMonthEls.every((el) => el instanceof HTMLElement)) {
|
|
100
|
+
previousMonthEls?.every((el) => el instanceof HTMLElement)) {
|
|
102
101
|
animatingRef.current = true;
|
|
103
102
|
const cleanUpFunctions = [];
|
|
104
103
|
// set isolation to isolate to isolate the stacking context during animation
|
|
@@ -10,4 +10,4 @@ import type { DateRange } from "../types/index.js";
|
|
|
10
10
|
* @returns `true` if the date is within the range, otherwise `false`.
|
|
11
11
|
* @group Utilities
|
|
12
12
|
*/
|
|
13
|
-
export declare function rangeIncludesDate(range: DateRange, date: Date, excludeEnds?: boolean, dateLib?: import("../
|
|
13
|
+
export declare function rangeIncludesDate(range: DateRange, date: Date, excludeEnds?: boolean, dateLib?: import("../index.js").DateLib): boolean;
|
|
@@ -7,9 +7,7 @@ import React from "react";
|
|
|
7
7
|
*/
|
|
8
8
|
export function Chevron(props) {
|
|
9
9
|
const { size = 24, orientation = "left", className } = props;
|
|
10
|
-
return (
|
|
11
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
12
|
-
React.createElement("svg", { className: className, width: size, height: size, viewBox: "0 0 24 24" },
|
|
10
|
+
return (React.createElement("svg", { className: className, width: size, height: size, viewBox: "0 0 24 24" },
|
|
13
11
|
orientation === "up" && (React.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" })),
|
|
14
12
|
orientation === "down" && (React.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" })),
|
|
15
13
|
orientation === "left" && (React.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" })),
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* @group Formatters
|
|
10
10
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
11
11
|
*/
|
|
12
|
-
export declare function formatWeekNumber(weekNumber: number, dateLib?: import("../
|
|
12
|
+
export declare function formatWeekNumber(weekNumber: number, dateLib?: import("../index.js").DateLib): string;
|
package/dist/esm/useAnimation.js
CHANGED
|
@@ -94,8 +94,7 @@ export function useAnimation(rootElRef, enabled, { classNames, months, focused,
|
|
|
94
94
|
: [];
|
|
95
95
|
const currentMonthEls = queryMonthEls(rootElRef.current);
|
|
96
96
|
if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&
|
|
97
|
-
previousMonthEls
|
|
98
|
-
previousMonthEls.every((el) => el instanceof HTMLElement)) {
|
|
97
|
+
previousMonthEls?.every((el) => el instanceof HTMLElement)) {
|
|
99
98
|
animatingRef.current = true;
|
|
100
99
|
const cleanUpFunctions = [];
|
|
101
100
|
// set isolation to isolate to isolate the stacking context during animation
|
|
@@ -10,4 +10,4 @@ import type { DateRange } from "../types/index.js";
|
|
|
10
10
|
* @returns `true` if the date is within the range, otherwise `false`.
|
|
11
11
|
* @group Utilities
|
|
12
12
|
*/
|
|
13
|
-
export declare function rangeIncludesDate(range: DateRange, date: Date, excludeEnds?: boolean, dateLib?: import("../
|
|
13
|
+
export declare function rangeIncludesDate(range: DateRange, date: Date, excludeEnds?: boolean, dateLib?: import("../index.js").DateLib): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-day-picker",
|
|
3
|
-
"version": "10.0.0-next.
|
|
3
|
+
"version": "10.0.0-next.1",
|
|
4
4
|
"description": "Customizable Date Picker for React",
|
|
5
5
|
"author": "Giampaolo Bellavite <io@gpbl.dev>",
|
|
6
6
|
"homepage": "https://daypicker.dev",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"build:css": "./scripts/build-css.sh ./src/style.css ./src/style.module.css",
|
|
208
208
|
"format": "prettier -w \"**/*.{md,mdx,ts,tsx}\"",
|
|
209
209
|
"lint": "biome check",
|
|
210
|
-
"test": "jest --selectProjects examples --selectProjects src",
|
|
210
|
+
"test": "jest --selectProjects examples --selectProjects src --selectProjects scripts",
|
|
211
211
|
"test:tz": "TZ=Australia/Adelaide jest --selectProjects examples/timezone",
|
|
212
212
|
"test:build": "jest --selectProjects examples/built",
|
|
213
213
|
"test-watch": "jest --watch",
|
|
@@ -238,30 +238,30 @@
|
|
|
238
238
|
"date-fns-jalali": "4.1.0-0"
|
|
239
239
|
},
|
|
240
240
|
"devDependencies": {
|
|
241
|
-
"@biomejs/biome": "2.
|
|
242
|
-
"@jest/types": "^30.
|
|
241
|
+
"@biomejs/biome": "2.4.12",
|
|
242
|
+
"@jest/types": "^30.3.0",
|
|
243
243
|
"@radix-ui/react-select": "^2.2.6",
|
|
244
|
-
"@swc/core": "^1.15.
|
|
244
|
+
"@swc/core": "^1.15.26",
|
|
245
245
|
"@swc/jest": "^0.2.39",
|
|
246
246
|
"@testing-library/dom": "^10.4.1",
|
|
247
247
|
"@testing-library/jest-dom": "^6.9.1",
|
|
248
248
|
"@testing-library/react": "^16.3.2",
|
|
249
249
|
"@testing-library/user-event": "^14.6.1",
|
|
250
250
|
"@types/jest": "^30.0.0",
|
|
251
|
-
"@types/node": "^25.
|
|
252
|
-
"@types/react": "^19.2.
|
|
251
|
+
"@types/node": "^25.6.0",
|
|
252
|
+
"@types/react": "^19.2.14",
|
|
253
253
|
"@types/react-dom": "^19.2.3",
|
|
254
|
-
"jest": "^30.
|
|
255
|
-
"jest-environment-jsdom": "^30.
|
|
254
|
+
"jest": "^30.3.0",
|
|
255
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
256
256
|
"jest-transform-css": "^6.0.3",
|
|
257
257
|
"mockdate": "^3.0.5",
|
|
258
|
-
"prettier": "^3.8.
|
|
258
|
+
"prettier": "^3.8.3",
|
|
259
259
|
"prettier-plugin-jsdoc": "^1.8.0",
|
|
260
|
-
"react": "^19.2.
|
|
261
|
-
"react-dom": "^19.2.
|
|
260
|
+
"react": "^19.2.5",
|
|
261
|
+
"react-dom": "^19.2.5",
|
|
262
262
|
"ts-node": "^10.9.2",
|
|
263
263
|
"tslib": "^2.8.1",
|
|
264
|
-
"typescript": "^
|
|
264
|
+
"typescript": "^6.0.3",
|
|
265
265
|
"typescript-css-modules": "^1.0.4"
|
|
266
266
|
},
|
|
267
267
|
"peerDependencies": {
|