react-day-picker 9.6.1 → 9.6.2

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/UI.d.ts CHANGED
@@ -13,7 +13,7 @@ export declare enum UI {
13
13
  Chevron = "chevron",
14
14
  /**
15
15
  * The grid cell with the day's date. Extended by {@link DayFlag} and
16
- * {@link SelectionFlag}.
16
+ * {@link SelectionState}.
17
17
  */
18
18
  Day = "day",
19
19
  /** The button containing the formatted day's date, inside the grid cell. */
package/dist/cjs/UI.js CHANGED
@@ -16,7 +16,7 @@ var UI;
16
16
  UI["Chevron"] = "chevron";
17
17
  /**
18
18
  * The grid cell with the day's date. Extended by {@link DayFlag} and
19
- * {@link SelectionFlag}.
19
+ * {@link SelectionState}.
20
20
  */
21
21
  UI["Day"] = "day";
22
22
  /** The button containing the formatted day's date, inside the grid cell. */
@@ -6,7 +6,7 @@ import type { Modifiers } from "../types/index.js";
6
6
  * the focus with they day.
7
7
  *
8
8
  * If you need to just change the content of the day cell, consider swapping the
9
- * `DayDate` component instead.
9
+ * `DayButton` component instead.
10
10
  *
11
11
  * @group Components
12
12
  * @see https://daypicker.dev/guides/custom-components
@@ -10,7 +10,7 @@ const react_1 = __importDefault(require("react"));
10
10
  * the focus with they day.
11
11
  *
12
12
  * If you need to just change the content of the day cell, consider swapping the
13
- * `DayDate` component instead.
13
+ * `DayButton` component instead.
14
14
  *
15
15
  * @group Components
16
16
  * @see https://daypicker.dev/guides/custom-components
@@ -204,7 +204,7 @@ export interface PropsBase {
204
204
  /**
205
205
  * Show the outside days (days falling in the next or the previous month).
206
206
  *
207
- * **Note:** when a broadcast {@link calendar} is set, this prop defaults to
207
+ * **Note:** when a {@link broadcastCalendar} is set, this prop defaults to
208
208
  * true.
209
209
  *
210
210
  * @see https://daypicker.dev/docs/customization#outside-days
package/dist/esm/UI.d.ts CHANGED
@@ -13,7 +13,7 @@ export declare enum UI {
13
13
  Chevron = "chevron",
14
14
  /**
15
15
  * The grid cell with the day's date. Extended by {@link DayFlag} and
16
- * {@link SelectionFlag}.
16
+ * {@link SelectionState}.
17
17
  */
18
18
  Day = "day",
19
19
  /** The button containing the formatted day's date, inside the grid cell. */
package/dist/esm/UI.js CHANGED
@@ -13,7 +13,7 @@ export var UI;
13
13
  UI["Chevron"] = "chevron";
14
14
  /**
15
15
  * The grid cell with the day's date. Extended by {@link DayFlag} and
16
- * {@link SelectionFlag}.
16
+ * {@link SelectionState}.
17
17
  */
18
18
  UI["Day"] = "day";
19
19
  /** The button containing the formatted day's date, inside the grid cell. */
@@ -6,7 +6,7 @@ import type { Modifiers } from "../types/index.js";
6
6
  * the focus with they day.
7
7
  *
8
8
  * If you need to just change the content of the day cell, consider swapping the
9
- * `DayDate` component instead.
9
+ * `DayButton` component instead.
10
10
  *
11
11
  * @group Components
12
12
  * @see https://daypicker.dev/guides/custom-components
@@ -4,7 +4,7 @@ import React from "react";
4
4
  * the focus with they day.
5
5
  *
6
6
  * If you need to just change the content of the day cell, consider swapping the
7
- * `DayDate` component instead.
7
+ * `DayButton` component instead.
8
8
  *
9
9
  * @group Components
10
10
  * @see https://daypicker.dev/guides/custom-components
@@ -204,7 +204,7 @@ export interface PropsBase {
204
204
  /**
205
205
  * Show the outside days (days falling in the next or the previous month).
206
206
  *
207
- * **Note:** when a broadcast {@link calendar} is set, this prop defaults to
207
+ * **Note:** when a {@link broadcastCalendar} is set, this prop defaults to
208
208
  * true.
209
209
  *
210
210
  * @see https://daypicker.dev/docs/customization#outside-days
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-day-picker",
3
- "version": "9.6.1",
3
+ "version": "9.6.2",
4
4
  "description": "Customizable Date Picker for React",
5
5
  "author": "Giampaolo Bellavite <io@gpbl.dev>",
6
6
  "homepage": "https://daypicker.dev",
@@ -176,9 +176,11 @@
176
176
  "dist",
177
177
  "src/style.css",
178
178
  "src/style.module.css",
179
- "src/style.css.d.ts",
179
+ "src/style.module.css.d.ts",
180
180
  "jalali.js",
181
181
  "jalali.d.ts",
182
+ "persian.js",
183
+ "persian.d.ts",
182
184
  "locale.js",
183
185
  "locale.d.ts"
184
186
  ],
@@ -189,42 +191,42 @@
189
191
  },
190
192
  "devDependencies": {
191
193
  "@jest/types": "^29.6.3",
192
- "@radix-ui/react-select": "^2.1.5",
193
- "@swc/core": "^1.10.8",
194
+ "@radix-ui/react-select": "^2.1.6",
195
+ "@swc/core": "^1.11.8",
194
196
  "@swc/jest": "^0.2.37",
195
197
  "@testing-library/dom": "^10.4.0",
196
198
  "@testing-library/jest-dom": "^6.6.3",
197
199
  "@testing-library/react": "^16.2.0",
198
- "@testing-library/user-event": "^14.6.0",
199
- "@trivago/prettier-plugin-sort-imports": "^5.2.1",
200
+ "@testing-library/user-event": "^14.6.1",
201
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
200
202
  "@types/jest": "^29.5.14",
201
- "@types/node": "^22.10.7",
202
- "@types/react": "^19.0.7",
203
- "@types/react-dom": "^19.0.3",
204
- "@typescript-eslint/eslint-plugin": "^8.21.0",
205
- "@typescript-eslint/parser": "^8.21.0",
203
+ "@types/node": "^22.13.10",
204
+ "@types/react": "^19.0.10",
205
+ "@types/react-dom": "^19.0.4",
206
+ "@typescript-eslint/eslint-plugin": "^8.26.0",
207
+ "@typescript-eslint/parser": "^8.26.0",
206
208
  "eslint": "^8.57.1",
207
- "eslint-config-prettier": "^9.1.0",
208
- "eslint-import-resolver-typescript": "^3.7.0",
209
+ "eslint-config-prettier": "^10.1.1",
210
+ "eslint-import-resolver-typescript": "^3.8.3",
209
211
  "eslint-plugin-import": "^2.31.0",
210
212
  "eslint-plugin-jest": "^28.11.0",
211
213
  "eslint-plugin-prettier": "^5.2.3",
212
214
  "eslint-plugin-react": "^7.37.4",
213
- "eslint-plugin-react-hooks": "^5.1.0",
215
+ "eslint-plugin-react-hooks": "^5.2.0",
214
216
  "eslint-plugin-require-extensions": "^0.1.3",
215
- "eslint-plugin-testing-library": "^6.5.0",
216
- "html-validate": "^9.1.3",
217
+ "eslint-plugin-testing-library": "^7.1.1",
218
+ "html-validate": "^9.4.2",
217
219
  "jest": "^29.7.0",
218
220
  "jest-environment-jsdom": "^29.7.0",
219
221
  "jest-transform-css": "^6.0.2",
220
222
  "mockdate": "^3.0.5",
221
- "prettier": "^3.4.2",
223
+ "prettier": "^3.5.3",
222
224
  "prettier-plugin-jsdoc": "^1.3.2",
223
225
  "react": "^19.0.0",
224
226
  "react-dom": "^19.0.0",
225
227
  "ts-node": "^10.9.2",
226
228
  "tslib": "^2.8.1",
227
- "typescript": "~5.7.3",
229
+ "typescript": "~5.8.2",
228
230
  "typescript-css-modules": "^1.0.4"
229
231
  },
230
232
  "peerDependencies": {
package/persian.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/cjs/persian.d.ts";
package/persian.js ADDED
@@ -0,0 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-require-imports */
2
+ /* eslint-disable no-undef */
3
+ const persian = require("./dist/cjs/persian.js");
4
+ module.exports = persian;
@@ -0,0 +1,29 @@
1
+ declare const styles: {
2
+ root: string;
3
+ day: string;
4
+ day_button: string;
5
+ caption_label: string;
6
+ button_next: string;
7
+ button_previous: string;
8
+ chevron: string;
9
+ dropdowns: string;
10
+ dropdown: string;
11
+ dropdown_root: string;
12
+ month_caption: string;
13
+ months: string;
14
+ month_grid: string;
15
+ nav: string;
16
+ weekday: string;
17
+ week_number: string;
18
+ today: string;
19
+ selected: string;
20
+ outside: string;
21
+ disabled: string;
22
+ hidden: string;
23
+ range_start: string;
24
+ range_middle: string;
25
+ range_end: string;
26
+ focusable: string;
27
+ };
28
+
29
+ export default styles;