@octanejs/day-picker 0.0.19 → 0.0.20
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/package.json +7 -7
- package/src/DayPicker.tsrx +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/day-picker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
"date-fns": "^4.1.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"octane": "^0.1.51 || ^0.2.0"
|
|
56
|
+
"octane": "^0.1.51 || ^0.2.0 || ^0.3.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@tsrx/react": "^0.
|
|
59
|
+
"@tsrx/react": "^0.3.0",
|
|
60
60
|
"@types/react": "^19.2.17",
|
|
61
61
|
"@types/react-dom": "^19.2.3",
|
|
62
62
|
"playwright": "^1.61.1",
|
|
63
|
-
"react": "
|
|
64
|
-
"react-dom": "
|
|
63
|
+
"react": "19.2.7",
|
|
64
|
+
"react-dom": "19.2.7",
|
|
65
65
|
"react-day-picker": "10.0.1",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"vite": "^8.1.5",
|
|
68
68
|
"vitest": "^4.1.10",
|
|
69
|
-
"@octanejs/testing-library": "0.1.
|
|
70
|
-
"octane": "0.
|
|
69
|
+
"@octanejs/testing-library": "0.1.52",
|
|
70
|
+
"octane": "0.3.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"test": "pnpm upstream:check && vitest run --root ../.. --project day-picker --project day-picker-ssr --project day-picker-browser --project day-picker-differential",
|
package/src/DayPicker.tsrx
CHANGED
|
@@ -27,7 +27,10 @@ import type {
|
|
|
27
27
|
import { DayFlag, SelectionState, UI } from './UI.js';
|
|
28
28
|
import { useAnimation } from './useAnimation.js';
|
|
29
29
|
import { useCalendar } from './useCalendar.js';
|
|
30
|
-
import {
|
|
30
|
+
import {
|
|
31
|
+
type DayPickerContext,
|
|
32
|
+
dayPickerContext as DayPickerContextProvider,
|
|
33
|
+
} from './useDayPicker.js';
|
|
31
34
|
import { useFocus } from './useFocus.js';
|
|
32
35
|
import { useSelection } from './useSelection.js';
|
|
33
36
|
import { convertMatchersToTimeZone } from './utils/convertMatchersToTimeZone.js';
|
|
@@ -384,7 +387,7 @@ export function DayPicker(initialProps: DayPickerProps) @{
|
|
|
384
387
|
formatters,
|
|
385
388
|
};
|
|
386
389
|
|
|
387
|
-
<
|
|
390
|
+
<DayPickerContextProvider value={contextValue}>
|
|
388
391
|
<components.Root
|
|
389
392
|
rootRef={props.animate ? rootElRef : undefined}
|
|
390
393
|
className={className}
|
|
@@ -712,5 +715,5 @@ export function DayPicker(initialProps: DayPickerProps) @{
|
|
|
712
715
|
aria-live="polite"
|
|
713
716
|
>{props.footer}</components.Footer>}
|
|
714
717
|
</components.Root>
|
|
715
|
-
</
|
|
718
|
+
</DayPickerContextProvider>
|
|
716
719
|
}
|