@fluentui/react-datepicker-compat 9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 → 9.74.3-experimental.esm.20260709-49ee7a20cf.0

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +188 -17
  2. package/dist/index.d.cts +244 -0
  3. package/dist/index.d.ts +3 -3
  4. package/lib/DatePicker.js +1 -1
  5. package/lib/DatePicker.js.map +1 -1
  6. package/lib/components/DatePicker/DatePicker.js +4 -4
  7. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  8. package/lib/components/DatePicker/DatePicker.types.js.map +1 -1
  9. package/lib/components/DatePicker/defaults.js +1 -1
  10. package/lib/components/DatePicker/index.js +5 -5
  11. package/lib/components/DatePicker/index.js.map +1 -1
  12. package/lib/components/DatePicker/renderDatePicker.js +2 -2
  13. package/lib/components/DatePicker/useDatePicker.js +16 -15
  14. package/lib/components/DatePicker/useDatePicker.js.map +1 -1
  15. package/lib/components/DatePicker/useDatePickerStyles.styles.js +5 -4
  16. package/lib/components/DatePicker/useDatePickerStyles.styles.js.map +1 -1
  17. package/lib/components/DatePicker/useDatePickerStyles.styles.raw.js +5 -3
  18. package/lib/components/DatePicker/useDatePickerStyles.styles.raw.js.map +1 -1
  19. package/lib/index.js +1 -1
  20. package/lib/index.js.map +1 -1
  21. package/lib/utils/usePopupPositioning.js +1 -2
  22. package/lib/utils/usePopupPositioning.js.map +1 -1
  23. package/lib-commonjs/{DatePicker.js → DatePicker.cjs} +1 -1
  24. package/lib-commonjs/{DatePicker.js.map → DatePicker.cjs.map} +1 -1
  25. package/lib-commonjs/components/DatePicker/{DatePicker.js → DatePicker.cjs} +3 -3
  26. package/lib-commonjs/components/DatePicker/{DatePicker.js.map → DatePicker.cjs.map} +1 -1
  27. package/lib-commonjs/components/DatePicker/DatePicker.types.cjs.map +1 -0
  28. package/lib-commonjs/components/DatePicker/{index.js → index.cjs} +5 -5
  29. package/lib-commonjs/components/DatePicker/{index.js.map → index.cjs.map} +1 -1
  30. package/lib-commonjs/components/DatePicker/{useDatePicker.js → useDatePicker.cjs} +7 -6
  31. package/lib-commonjs/components/DatePicker/useDatePicker.cjs.map +1 -0
  32. package/lib-commonjs/components/DatePicker/{useDatePickerStyles.styles.js → useDatePickerStyles.styles.cjs} +3 -1
  33. package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.cjs.map +1 -0
  34. package/lib-commonjs/components/DatePicker/{useDatePickerStyles.styles.raw.js → useDatePickerStyles.styles.raw.cjs} +3 -1
  35. package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.raw.cjs.map +1 -0
  36. package/lib-commonjs/{index.js → index.cjs} +1 -1
  37. package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
  38. package/lib-commonjs/utils/{usePopupPositioning.js → usePopupPositioning.cjs} +0 -2
  39. package/lib-commonjs/utils/usePopupPositioning.cjs.map +1 -0
  40. package/package.json +25 -19
  41. package/lib-commonjs/components/DatePicker/DatePicker.types.js.map +0 -1
  42. package/lib-commonjs/components/DatePicker/useDatePicker.js.map +0 -1
  43. package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.js.map +0 -1
  44. package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.raw.js.map +0 -1
  45. package/lib-commonjs/utils/usePopupPositioning.js.map +0 -1
  46. /package/lib-commonjs/components/DatePicker/{DatePicker.types.js → DatePicker.types.cjs} +0 -0
  47. /package/lib-commonjs/components/DatePicker/{defaults.js → defaults.cjs} +0 -0
  48. /package/lib-commonjs/components/DatePicker/{defaults.js.map → defaults.cjs.map} +0 -0
  49. /package/lib-commonjs/components/DatePicker/{renderDatePicker.js → renderDatePicker.cjs} +0 -0
  50. /package/lib-commonjs/components/DatePicker/{renderDatePicker.js.map → renderDatePicker.cjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,29 +1,200 @@
1
1
  # Change Log - @fluentui/react-datepicker-compat
2
2
 
3
- This log was last generated on Thu, 22 Jan 2026 16:12:34 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 09 Jul 2026 17:34:04 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.72.9-experimental.component-base-hooks.20260122-49fc330360.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0)
7
+ ## [9.74.3-experimental.esm.20260709-49ee7a20cf.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v9.74.3-experimental.esm.20260709-49ee7a20cf.0)
8
8
 
9
- Thu, 22 Jan 2026 16:12:34 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.21..@fluentui/react-datepicker-compat_v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0)
9
+ Thu, 09 Jul 2026 17:34:04 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.34..@fluentui/react-datepicker-compat_v9.74.3-experimental.esm.20260709-49ee7a20cf.0)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release 9.72.9-experimental.component-base-hooks.20260122-49fc330360 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/keyboard-keys to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
16
- - Bump @fluentui/react-calendar-compat to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
17
- - Bump @fluentui/react-field to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
18
- - Bump @fluentui/react-input to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
19
- - Bump @fluentui/react-jsx-runtime to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
20
- - Bump @fluentui/react-popover to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
21
- - Bump @fluentui/react-portal to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
22
- - Bump @fluentui/react-positioning to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
23
- - Bump @fluentui/react-shared-contexts to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
24
- - Bump @fluentui/react-tabster to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
25
- - Bump @fluentui/react-theme to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
26
- - Bump @fluentui/react-utilities to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
14
+ - Release 9.74.3-experimental.esm.20260709-49ee7a20cf ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
+ - Bump @fluentui/keyboard-keys to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
16
+ - Bump @fluentui/react-calendar-compat to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
17
+ - Bump @fluentui/react-field to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
18
+ - Bump @fluentui/react-input to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
19
+ - Bump @fluentui/react-jsx-runtime to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
20
+ - Bump @fluentui/react-popover to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
21
+ - Bump @fluentui/react-portal to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
22
+ - Bump @fluentui/react-positioning to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
23
+ - Bump @fluentui/react-shared-contexts to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
24
+ - Bump @fluentui/react-tabster to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
25
+ - Bump @fluentui/react-theme to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
26
+ - Bump @fluentui/react-utilities to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
27
+
28
+ ## [0.6.34](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.34)
29
+
30
+ Mon, 29 Jun 2026 15:15:07 GMT
31
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.33..@fluentui/react-datepicker-compat_v0.6.34)
32
+
33
+ ### Patches
34
+
35
+ - Bump @fluentui/react-calendar-compat to v0.4.4 ([commit](https://github.com/microsoft/fluentui/commit/aedc345f58bc16bb8540615b5afdf3d2d3569db4) by beachball)
36
+
37
+ ## [0.6.33](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.33)
38
+
39
+ Wed, 24 Jun 2026 11:09:42 GMT
40
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.32..@fluentui/react-datepicker-compat_v0.6.33)
41
+
42
+ ### Patches
43
+
44
+ - fix: remove redundant use no memo directives, and add justification to valid ones ([PR #36224](https://github.com/microsoft/fluentui/pull/36224) by martinhochel@microsoft.com)
45
+ - Bump @fluentui/react-calendar-compat to v0.4.3 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
46
+ - Bump @fluentui/react-field to v9.5.3 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
47
+ - Bump @fluentui/react-input to v9.8.4 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
48
+ - Bump @fluentui/react-jsx-runtime to v9.4.4 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
49
+ - Bump @fluentui/react-popover to v9.14.4 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
50
+ - Bump @fluentui/react-portal to v9.8.14 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
51
+ - Bump @fluentui/react-positioning to v9.22.3 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
52
+ - Bump @fluentui/react-tabster to v9.26.16 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
53
+ - Bump @fluentui/react-utilities to v9.26.5 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
54
+
55
+ ## [0.6.32](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.32)
56
+
57
+ Tue, 26 May 2026 09:39:55 GMT
58
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.31..@fluentui/react-datepicker-compat_v0.6.32)
59
+
60
+ ### Patches
61
+
62
+ - Bump @fluentui/react-calendar-compat to v0.4.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
63
+ - Bump @fluentui/react-field to v9.5.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
64
+ - Bump @fluentui/react-input to v9.8.3 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
65
+ - Bump @fluentui/react-jsx-runtime to v9.4.3 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
66
+ - Bump @fluentui/react-popover to v9.14.3 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
67
+ - Bump @fluentui/react-portal to v9.8.13 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
68
+ - Bump @fluentui/react-positioning to v9.22.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
69
+ - Bump @fluentui/react-tabster to v9.26.15 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
70
+ - Bump @fluentui/react-utilities to v9.26.4 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
71
+
72
+ ## [0.6.31](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.31)
73
+
74
+ Thu, 23 Apr 2026 14:21:15 GMT
75
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.30..@fluentui/react-datepicker-compat_v0.6.31)
76
+
77
+ ### Patches
78
+
79
+ - Bump @fluentui/react-calendar-compat to v0.4.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
80
+ - Bump @fluentui/react-field to v9.5.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
81
+ - Bump @fluentui/react-input to v9.8.2 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
82
+ - Bump @fluentui/react-jsx-runtime to v9.4.2 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
83
+ - Bump @fluentui/react-popover to v9.14.2 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
84
+ - Bump @fluentui/react-portal to v9.8.12 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
85
+ - Bump @fluentui/react-positioning to v9.22.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
86
+ - Bump @fluentui/react-tabster to v9.26.14 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
87
+ - Bump @fluentui/react-utilities to v9.26.3 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
88
+
89
+ ## [0.6.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.30)
90
+
91
+ Wed, 01 Apr 2026 15:52:43 GMT
92
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.29..@fluentui/react-datepicker-compat_v0.6.30)
93
+
94
+ ### Patches
95
+
96
+ - Bump @fluentui/react-field to v9.5.0 ([PR #35912](https://github.com/microsoft/fluentui/pull/35912) by beachball)
97
+ - Bump @fluentui/react-input to v9.8.1 ([PR #35912](https://github.com/microsoft/fluentui/pull/35912) by beachball)
98
+
99
+ ## [0.6.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.29)
100
+
101
+ Mon, 30 Mar 2026 14:37:41 GMT
102
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.28..@fluentui/react-datepicker-compat_v0.6.29)
103
+
104
+ ### Patches
105
+
106
+ - Bump @fluentui/react-popover to v9.14.1 ([PR #35907](https://github.com/microsoft/fluentui/pull/35907) by beachball)
107
+
108
+ ## [0.6.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.28)
109
+
110
+ Thu, 26 Mar 2026 08:12:54 GMT
111
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.27..@fluentui/react-datepicker-compat_v0.6.28)
112
+
113
+ ### Patches
114
+
115
+ - Bump @fluentui/react-input to v9.8.0 ([PR #35824](https://github.com/microsoft/fluentui/pull/35824) by beachball)
116
+
117
+ ## [0.6.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.27)
118
+
119
+ Wed, 11 Mar 2026 12:58:45 GMT
120
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.26..@fluentui/react-datepicker-compat_v0.6.27)
121
+
122
+ ### Patches
123
+
124
+ - Bump @fluentui/react-calendar-compat to v0.4.0 ([PR #35862](https://github.com/microsoft/fluentui/pull/35862) by beachball)
125
+
126
+ ## [0.6.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.26)
127
+
128
+ Wed, 11 Mar 2026 09:22:20 GMT
129
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.25..@fluentui/react-datepicker-compat_v0.6.26)
130
+
131
+ ### Patches
132
+
133
+ - fix: reorder event handling for Escape key ([PR #35839](https://github.com/microsoft/fluentui/pull/35839) by 85318654+JakubWieclaw@users.noreply.github.com)
134
+ - Bump @fluentui/react-calendar-compat to v0.3.21 ([PR #35859](https://github.com/microsoft/fluentui/pull/35859) by beachball)
135
+ - Bump @fluentui/react-field to v9.4.16 ([PR #35859](https://github.com/microsoft/fluentui/pull/35859) by beachball)
136
+ - Bump @fluentui/react-input to v9.7.16 ([PR #35859](https://github.com/microsoft/fluentui/pull/35859) by beachball)
137
+
138
+ ## [0.6.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.25)
139
+
140
+ Tue, 03 Mar 2026 09:43:43 GMT
141
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.24..@fluentui/react-datepicker-compat_v0.6.25)
142
+
143
+ ### Patches
144
+
145
+ - Bump @fluentui/react-calendar-compat to v0.3.20 ([commit](https://github.com/microsoft/fluentui/commit/81e1556b008bfbd07fe427d89af6142459d74c6f) by beachball)
146
+ - Bump @fluentui/react-popover to v9.14.0 ([commit](https://github.com/microsoft/fluentui/commit/81e1556b008bfbd07fe427d89af6142459d74c6f) by beachball)
147
+ - Bump @fluentui/react-positioning to v9.22.0 ([commit](https://github.com/microsoft/fluentui/commit/81e1556b008bfbd07fe427d89af6142459d74c6f) by beachball)
148
+
149
+ ## [0.6.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.24)
150
+
151
+ Wed, 25 Feb 2026 13:32:28 GMT
152
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.23..@fluentui/react-datepicker-compat_v0.6.24)
153
+
154
+ ### Patches
155
+
156
+ - Bump @fluentui/react-calendar-compat to v0.3.19 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
157
+ - Bump @fluentui/react-field to v9.4.15 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
158
+ - Bump @fluentui/react-input to v9.7.15 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
159
+ - Bump @fluentui/react-jsx-runtime to v9.4.1 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
160
+ - Bump @fluentui/react-popover to v9.13.2 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
161
+ - Bump @fluentui/react-portal to v9.8.11 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
162
+ - Bump @fluentui/react-positioning to v9.21.0 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
163
+ - Bump @fluentui/react-shared-contexts to v9.26.2 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
164
+ - Bump @fluentui/react-tabster to v9.26.13 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
165
+ - Bump @fluentui/react-utilities to v9.26.2 ([PR #35782](https://github.com/microsoft/fluentui/pull/35782) by beachball)
166
+
167
+ ## [0.6.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.23)
168
+
169
+ Thu, 12 Feb 2026 10:46:15 GMT
170
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.22..@fluentui/react-datepicker-compat_v0.6.23)
171
+
172
+ ### Patches
173
+
174
+ - Bump @fluentui/react-calendar-compat to v0.3.18 ([PR #35743](https://github.com/microsoft/fluentui/pull/35743) by beachball)
175
+ - Bump @fluentui/react-field to v9.4.14 ([PR #35743](https://github.com/microsoft/fluentui/pull/35743) by beachball)
176
+ - Bump @fluentui/react-input to v9.7.14 ([PR #35743](https://github.com/microsoft/fluentui/pull/35743) by beachball)
177
+ - Bump @fluentui/react-jsx-runtime to v9.4.0 ([PR #35743](https://github.com/microsoft/fluentui/pull/35743) by beachball)
178
+ - Bump @fluentui/react-popover to v9.13.1 ([PR #35743](https://github.com/microsoft/fluentui/pull/35743) by beachball)
179
+
180
+ ## [0.6.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.22)
181
+
182
+ Thu, 22 Jan 2026 17:06:52 GMT
183
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.21..@fluentui/react-datepicker-compat_v0.6.22)
184
+
185
+ ### Patches
186
+
187
+ - Bump @fluentui/react-calendar-compat to v0.3.17 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
188
+ - Bump @fluentui/react-field to v9.4.13 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
189
+ - Bump @fluentui/react-input to v9.7.13 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
190
+ - Bump @fluentui/react-jsx-runtime to v9.3.5 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
191
+ - Bump @fluentui/react-popover to v9.13.0 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
192
+ - Bump @fluentui/react-portal to v9.8.10 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
193
+ - Bump @fluentui/react-positioning to v9.20.12 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
194
+ - Bump @fluentui/react-shared-contexts to v9.26.1 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
195
+ - Bump @fluentui/react-tabster to v9.26.12 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
196
+ - Bump @fluentui/react-theme to v9.2.1 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
197
+ - Bump @fluentui/react-utilities to v9.26.1 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
27
198
 
28
199
  ## [0.6.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.21)
29
200
 
@@ -0,0 +1,244 @@
1
+ import type { CalendarProps } from '@fluentui/react-calendar-compat';
2
+ import { CalendarStrings } from '@fluentui/react-calendar-compat';
3
+ import type { ComponentProps } from '@fluentui/react-utilities';
4
+ import type { ComponentState } from '@fluentui/react-utilities';
5
+ import type { DateFormatting } from '@fluentui/react-calendar-compat';
6
+ import type { DayOfWeek } from '@fluentui/react-calendar-compat';
7
+ import type { FirstWeekOfYear } from '@fluentui/react-calendar-compat';
8
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
9
+ import type { Input } from '@fluentui/react-input';
10
+ import type { JSXElement } from '@fluentui/react-utilities';
11
+ import type { PortalProps } from '@fluentui/react-portal';
12
+ import type { PositioningProps } from '@fluentui/react-positioning';
13
+ import * as React_2 from 'react';
14
+ import type { Slot } from '@fluentui/react-utilities';
15
+ import type { SlotClassNames } from '@fluentui/react-utilities';
16
+
17
+ export { CalendarStrings }
18
+
19
+ export declare const DatePicker: ForwardRefComponent<DatePickerProps>;
20
+
21
+ export declare const datePickerClassNames: SlotClassNames<DatePickerSlots>;
22
+
23
+ /**
24
+ * Error types returned by the `onValidationResult` callback.
25
+ */
26
+ export declare type DatePickerErrorType = 'invalid-input' | 'out-of-bounds' | 'required-input';
27
+
28
+ export declare type DatePickerProps = Omit<ComponentProps<Partial<DatePickerSlots>>, 'defaultValue' | 'value'> & Pick<PortalProps, 'mountNode'> & {
29
+ /**
30
+ * Callback issued when a date is selected
31
+ */
32
+ onSelectDate?: (date: Date | null | undefined) => void;
33
+ /**
34
+ * Whether the DatePicker is a required field or not. When using `<Field>`, this prop is automatically set.
35
+ * @default false
36
+ */
37
+ required?: boolean;
38
+ /**
39
+ * Disabled state of the DatePicker.
40
+ * @default false
41
+ */
42
+ disabled?: boolean;
43
+ /**
44
+ * Whether or not the Input of the DatePicker is underlined.
45
+ * @default false
46
+ */
47
+ underlined?: boolean;
48
+ /**
49
+ * Whether the month picker is shown beside the day picker or hidden.
50
+ * @default true
51
+ */
52
+ isMonthPickerVisible?: boolean;
53
+ /**
54
+ * Show month picker on top of date picker when visible.
55
+ * @default false
56
+ */
57
+ showMonthPickerAsOverlay?: boolean;
58
+ /**
59
+ * Whether the DatePicker allows input a date string directly or not
60
+ * @default false
61
+ */
62
+ allowTextInput?: boolean;
63
+ /**
64
+ * Whether the DatePicker should open automatically when the control is focused
65
+ * WARNING: setting this to false creates an accessibility violation and is not recommended
66
+ * @default true
67
+ */
68
+ disableAutoFocus?: boolean;
69
+ /**
70
+ * Whether the DatePicker should open when the input is clicked
71
+ * @default true
72
+ */
73
+ openOnClick?: boolean;
74
+ /**
75
+ * Whether the DatePicker should be open by default
76
+ *
77
+ * @default false
78
+ */
79
+ defaultOpen?: boolean;
80
+ /**
81
+ * Whether the DatePicker is open or not
82
+ *
83
+ * @default false
84
+ */
85
+ open?: boolean;
86
+ /**
87
+ * Callback to run when the DatePicker's open state changes
88
+ */
89
+ onOpenChange?: (open: boolean) => void;
90
+ /**
91
+ * Callback to run after the DatePicker's input has been validated
92
+ */
93
+ onValidationResult?: (data: DatePickerValidationResultData) => void;
94
+ /**
95
+ * Whether the DatePicker should render the popup as inline or in a portal
96
+ *
97
+ * @default false
98
+ */
99
+ inlinePopup?: boolean;
100
+ /**
101
+ * Configure the positioning of the DatePicker dialog
102
+ *
103
+ * @default below
104
+ */
105
+ positioning?: PositioningProps;
106
+ /**
107
+ * Placeholder text for the DatePicker
108
+ */
109
+ placeholder?: string;
110
+ /**
111
+ * Value of today. If unspecified, current time in client machine will be used.
112
+ */
113
+ today?: Date;
114
+ /**
115
+ * Default value of the DatePicker, if any
116
+ *
117
+ * When the component is controlled, `null` should be used instead of `undefined` to avoid controlled vs. uncontrolled
118
+ * ambiguity.
119
+ */
120
+ value?: Date | null;
121
+ /**
122
+ * Optional method to format the chosen date to a string to display in the DatePicker
123
+ * @default date.toString()
124
+ */
125
+ formatDate?: (date?: Date) => string;
126
+ /**
127
+ * Optional method to parse the text input value to date, it is only useful when allowTextInput is set to true
128
+ * @default new Date(Date.parse(dateStr))
129
+ */
130
+ parseDateFromString?: (dateStr: string) => Date | null;
131
+ /**
132
+ * The first day of the week for your locale.
133
+ * @default DayOfWeek.Sunday
134
+ */
135
+ firstDayOfWeek?: DayOfWeek;
136
+ /**
137
+ * Localized strings to use in the Calendar
138
+ */
139
+ strings?: CalendarStrings;
140
+ /**
141
+ * Whether the month picker should highlight the current month
142
+ * @default false
143
+ */
144
+ highlightCurrentMonth?: boolean;
145
+ /**
146
+ * Whether the month picker should highlight the selected month
147
+ * @default false
148
+ */
149
+ highlightSelectedMonth?: boolean;
150
+ /**
151
+ * Whether the calendar should show the week number (weeks 1 to 53) before each week row
152
+ * @default false
153
+ */
154
+ showWeekNumbers?: boolean;
155
+ /**
156
+ * Defines when the first week of the year should start, FirstWeekOfYear.FirstDay,
157
+ * FirstWeekOfYear.FirstFullWeek or FirstWeekOfYear.FirstFourDayWeek are the possible values
158
+ * @default FirstWeekOfYear.FirstFullWeek
159
+ */
160
+ firstWeekOfYear?: FirstWeekOfYear;
161
+ /**
162
+ * Whether the "Go to today" link should be shown or not
163
+ */
164
+ showGoToToday?: boolean;
165
+ /**
166
+ * Determines if the DatePicker has a border.
167
+ * @default false
168
+ */
169
+ borderless?: boolean;
170
+ /**
171
+ * Apply additional formatting to dates, for example localized date formatting.
172
+ */
173
+ dateTimeFormatter?: DateFormatting;
174
+ /**
175
+ * The minimum allowable date.
176
+ */
177
+ minDate?: Date;
178
+ /**
179
+ * The maximum allowable date.
180
+ */
181
+ maxDate?: Date;
182
+ /**
183
+ * The initially highlighted date.
184
+ */
185
+ initialPickerDate?: Date;
186
+ /**
187
+ * Allows all elements to be focused, including disabled ones
188
+ * @default false
189
+ */
190
+ allFocusable?: boolean;
191
+ /**
192
+ * Whether the CalendarDay close button should be shown or not.
193
+ */
194
+ showCloseButton?: boolean;
195
+ };
196
+
197
+ declare type DatePickerSlots = {
198
+ root: NonNullable<Slot<typeof Input>>;
199
+ calendar: NonNullable<Slot<Partial<CalendarProps>>>;
200
+ popupSurface?: Slot<'div'>;
201
+ };
202
+
203
+ /**
204
+ * State used in rendering DatePicker.
205
+ */
206
+ declare type DatePickerState = ComponentState<DatePickerSlots> & Pick<DatePickerProps, 'mountNode'> & {
207
+ disabled: boolean;
208
+ inlinePopup: boolean;
209
+ };
210
+
211
+ /**
212
+ * Data passed to the `onValidationResult` callback.
213
+ */
214
+ export declare type DatePickerValidationResultData = {
215
+ /** The error found when validating the input. */
216
+ error?: DatePickerErrorType;
217
+ };
218
+
219
+ export declare const defaultDatePickerErrorStrings: Record<DatePickerErrorType, string>;
220
+
221
+ export declare const defaultDatePickerStrings: CalendarStrings;
222
+
223
+ /**
224
+ * Render the final JSX of DatePicker
225
+ */
226
+ export declare const renderDatePicker_unstable: (state: DatePickerState) => JSXElement;
227
+
228
+ /**
229
+ * Create the state required to render DatePicker.
230
+ *
231
+ * The returned state can be modified with hooks such as useDatePickerStyles_unstable,
232
+ * before being passed to renderDatePicker_unstable.
233
+ *
234
+ * @param props - props from this instance of DatePicker
235
+ * @param ref - reference to root Input slot
236
+ */
237
+ export declare const useDatePicker_unstable: (props: DatePickerProps, ref: React_2.Ref<HTMLInputElement>) => DatePickerState;
238
+
239
+ /**
240
+ * Apply styling to the DatePicker slots based on the state
241
+ */
242
+ export declare const useDatePickerStyles_unstable: (state: DatePickerState) => DatePickerState;
243
+
244
+ export { }
package/dist/index.d.ts CHANGED
@@ -3,10 +3,10 @@ import { CalendarStrings } from '@fluentui/react-calendar-compat';
3
3
  import type { ComponentProps } from '@fluentui/react-utilities';
4
4
  import type { ComponentState } from '@fluentui/react-utilities';
5
5
  import type { DateFormatting } from '@fluentui/react-calendar-compat';
6
- import { DayOfWeek } from '@fluentui/react-calendar-compat';
7
- import { FirstWeekOfYear } from '@fluentui/react-calendar-compat';
6
+ import type { DayOfWeek } from '@fluentui/react-calendar-compat';
7
+ import type { FirstWeekOfYear } from '@fluentui/react-calendar-compat';
8
8
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
9
- import { Input } from '@fluentui/react-input';
9
+ import type { Input } from '@fluentui/react-input';
10
10
  import type { JSXElement } from '@fluentui/react-utilities';
11
11
  import type { PortalProps } from '@fluentui/react-portal';
12
12
  import type { PositioningProps } from '@fluentui/react-positioning';
package/lib/DatePicker.js CHANGED
@@ -1 +1 @@
1
- export { DatePicker, datePickerClassNames, defaultDatePickerErrorStrings, defaultDatePickerStrings, renderDatePicker_unstable, useDatePickerStyles_unstable, useDatePicker_unstable } from './components/DatePicker/index';
1
+ export { DatePicker, datePickerClassNames, defaultDatePickerErrorStrings, defaultDatePickerStrings, renderDatePicker_unstable, useDatePickerStyles_unstable, useDatePicker_unstable } from "./components/DatePicker/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/DatePicker.ts"],"sourcesContent":["export type {\n DatePickerErrorType,\n DatePickerProps,\n DatePickerSlots,\n DatePickerState,\n DatePickerValidationResultData,\n} from './components/DatePicker/index';\nexport {\n DatePicker,\n datePickerClassNames,\n defaultDatePickerErrorStrings,\n defaultDatePickerStrings,\n renderDatePicker_unstable,\n useDatePickerStyles_unstable,\n useDatePicker_unstable,\n} from './components/DatePicker/index';\n"],"names":["DatePicker","datePickerClassNames","defaultDatePickerErrorStrings","defaultDatePickerStrings","renderDatePicker_unstable","useDatePickerStyles_unstable","useDatePicker_unstable"],"mappings":"AAOA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,6BAA6B,EAC7BC,wBAAwB,EACxBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,gCAAgC"}
1
+ {"version":3,"sources":["../src/DatePicker.ts"],"sourcesContent":["export type {\n DatePickerErrorType,\n DatePickerProps,\n DatePickerSlots,\n DatePickerState,\n DatePickerValidationResultData,\n} from './components/DatePicker/index';\nexport {\n DatePicker,\n datePickerClassNames,\n defaultDatePickerErrorStrings,\n defaultDatePickerStrings,\n renderDatePicker_unstable,\n useDatePickerStyles_unstable,\n useDatePicker_unstable,\n} from './components/DatePicker/index';\n"],"names":["DatePicker","datePickerClassNames","defaultDatePickerErrorStrings","defaultDatePickerStrings","renderDatePicker_unstable","useDatePickerStyles_unstable","useDatePicker_unstable"],"mappings":"AAOA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,6BAA6B,EAC7BC,wBAAwB,EACxBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,mCAAgC"}
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import * as React from 'react';
3
- import { renderDatePicker_unstable } from './renderDatePicker';
4
- import { useDatePicker_unstable } from './useDatePicker';
5
- import { useDatePickerStyles_unstable } from './useDatePickerStyles.styles';
2
+ import * as React from "react";
3
+ import { renderDatePicker_unstable } from "./renderDatePicker.js";
4
+ import { useDatePicker_unstable } from "./useDatePicker.js";
5
+ import { useDatePickerStyles_unstable } from "./useDatePickerStyles.styles.js";
6
6
  export const DatePicker = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
7
  const state = useDatePicker_unstable(props, ref);
8
8
  useDatePickerStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DatePicker/DatePicker.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { renderDatePicker_unstable } from './renderDatePicker';\nimport { useDatePicker_unstable } from './useDatePicker';\nimport { useDatePickerStyles_unstable } from './useDatePickerStyles.styles';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { DatePickerProps } from './DatePicker.types';\n\nexport const DatePicker: ForwardRefComponent<DatePickerProps> = React.forwardRef((props, ref) => {\n const state = useDatePicker_unstable(props, ref);\n\n useDatePickerStyles_unstable(state);\n return renderDatePicker_unstable(state);\n}) as ForwardRefComponent<DatePickerProps>;\nDatePicker.displayName = 'DatePicker';\n"],"names":["React","renderDatePicker_unstable","useDatePicker_unstable","useDatePickerStyles_unstable","DatePicker","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,4BAA4B,QAAQ,+BAA+B;AAI5E,OAAO,MAAMC,2BAAmDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,QAAQN,uBAAuBI,OAAOC;IAE5CJ,6BAA6BK;IAC7B,OAAOP,0BAA0BO;AACnC,GAA2C;AAC3CJ,WAAWK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/DatePicker/DatePicker.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { renderDatePicker_unstable } from './renderDatePicker';\nimport { useDatePicker_unstable } from './useDatePicker';\nimport { useDatePickerStyles_unstable } from './useDatePickerStyles.styles';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { DatePickerProps } from './DatePicker.types';\n\nexport const DatePicker: ForwardRefComponent<DatePickerProps> = React.forwardRef((props, ref) => {\n const state = useDatePicker_unstable(props, ref);\n\n useDatePickerStyles_unstable(state);\n return renderDatePicker_unstable(state);\n}) as ForwardRefComponent<DatePickerProps>;\nDatePicker.displayName = 'DatePicker';\n"],"names":["React","renderDatePicker_unstable","useDatePicker_unstable","useDatePickerStyles_unstable","DatePicker","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,yBAAyB,QAAQ,wBAAqB;AAC/D,SAASC,sBAAsB,QAAQ,qBAAkB;AACzD,SAASC,4BAA4B,QAAQ,kCAA+B;AAI5E,OAAO,MAAMC,2BAAmDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,QAAQN,uBAAuBI,OAAOC;IAE5CJ,6BAA6BK;IAC7B,OAAOP,0BAA0BO;AACnC,GAA2C;AAC3CJ,WAAWK,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DatePicker/DatePicker.types.ts"],"sourcesContent":["import { DayOfWeek, FirstWeekOfYear } from '@fluentui/react-calendar-compat';\nimport { Input } from '@fluentui/react-input';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { CalendarProps, CalendarStrings, DateFormatting } from '@fluentui/react-calendar-compat';\nimport type { PortalProps } from '@fluentui/react-portal';\nimport type { PositioningProps } from '@fluentui/react-positioning';\n\nexport type DatePickerSlots = {\n root: NonNullable<Slot<typeof Input>>;\n calendar: NonNullable<Slot<Partial<CalendarProps>>>;\n popupSurface?: Slot<'div'>;\n};\n\nexport type DatePickerProps = Omit<ComponentProps<Partial<DatePickerSlots>>, 'defaultValue' | 'value'> &\n Pick<PortalProps, 'mountNode'> & {\n /**\n * Callback issued when a date is selected\n */\n // eslint-disable-next-line @nx/workspace-consistent-callback-type -- can't change type of existing callback\n onSelectDate?: (date: Date | null | undefined) => void;\n\n /**\n * Whether the DatePicker is a required field or not. When using `<Field>`, this prop is automatically set.\n * @default false\n */\n required?: boolean;\n\n /**\n * Disabled state of the DatePicker.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Whether or not the Input of the DatePicker is underlined.\n * @default false\n */\n underlined?: boolean;\n\n /**\n * Whether the month picker is shown beside the day picker or hidden.\n * @default true\n */\n isMonthPickerVisible?: boolean;\n\n /**\n * Show month picker on top of date picker when visible.\n * @default false\n */\n showMonthPickerAsOverlay?: boolean;\n\n /**\n * Whether the DatePicker allows input a date string directly or not\n * @default false\n */\n allowTextInput?: boolean;\n\n /**\n * Whether the DatePicker should open automatically when the control is focused\n * WARNING: setting this to false creates an accessibility violation and is not recommended\n * @default true\n */\n disableAutoFocus?: boolean;\n\n /**\n * Whether the DatePicker should open when the input is clicked\n * @default true\n */\n openOnClick?: boolean;\n\n /**\n * Whether the DatePicker should be open by default\n *\n * @default false\n */\n defaultOpen?: boolean;\n\n /**\n * Whether the DatePicker is open or not\n *\n * @default false\n */\n open?: boolean;\n\n /**\n * Callback to run when the DatePicker's open state changes\n */\n // eslint-disable-next-line @nx/workspace-consistent-callback-type -- can't change type of existing callback\n onOpenChange?: (open: boolean) => void;\n\n /**\n * Callback to run after the DatePicker's input has been validated\n */\n // eslint-disable-next-line @nx/workspace-consistent-callback-type -- can't change type of existing callback\n onValidationResult?: (data: DatePickerValidationResultData) => void;\n\n /**\n * Whether the DatePicker should render the popup as inline or in a portal\n *\n * @default false\n */\n inlinePopup?: boolean;\n\n /**\n * Configure the positioning of the DatePicker dialog\n *\n * @default below\n */\n positioning?: PositioningProps;\n\n /**\n * Placeholder text for the DatePicker\n */\n placeholder?: string;\n\n /**\n * Value of today. If unspecified, current time in client machine will be used.\n */\n today?: Date;\n\n /**\n * Default value of the DatePicker, if any\n *\n * When the component is controlled, `null` should be used instead of `undefined` to avoid controlled vs. uncontrolled\n * ambiguity.\n */\n value?: Date | null;\n\n /**\n * Optional method to format the chosen date to a string to display in the DatePicker\n * @default date.toString()\n */\n formatDate?: (date?: Date) => string;\n\n /**\n * Optional method to parse the text input value to date, it is only useful when allowTextInput is set to true\n * @default new Date(Date.parse(dateStr))\n */\n parseDateFromString?: (dateStr: string) => Date | null;\n\n /**\n * The first day of the week for your locale.\n * @default DayOfWeek.Sunday\n */\n firstDayOfWeek?: DayOfWeek;\n\n /**\n * Localized strings to use in the Calendar\n */\n strings?: CalendarStrings;\n\n /**\n * Whether the month picker should highlight the current month\n * @default false\n */\n highlightCurrentMonth?: boolean;\n\n /**\n * Whether the month picker should highlight the selected month\n * @default false\n */\n highlightSelectedMonth?: boolean;\n\n /**\n * Whether the calendar should show the week number (weeks 1 to 53) before each week row\n * @default false\n */\n showWeekNumbers?: boolean;\n\n /**\n * Defines when the first week of the year should start, FirstWeekOfYear.FirstDay,\n * FirstWeekOfYear.FirstFullWeek or FirstWeekOfYear.FirstFourDayWeek are the possible values\n * @default FirstWeekOfYear.FirstFullWeek\n */\n firstWeekOfYear?: FirstWeekOfYear;\n\n /**\n * Whether the \"Go to today\" link should be shown or not\n */\n showGoToToday?: boolean;\n\n /**\n * Determines if the DatePicker has a border.\n * @default false\n */\n borderless?: boolean;\n\n /**\n * Apply additional formatting to dates, for example localized date formatting.\n */\n dateTimeFormatter?: DateFormatting;\n\n /**\n * The minimum allowable date.\n */\n minDate?: Date;\n\n /**\n * The maximum allowable date.\n */\n maxDate?: Date;\n\n /**\n * The initially highlighted date.\n */\n initialPickerDate?: Date;\n\n /**\n * Allows all elements to be focused, including disabled ones\n * @default false\n */\n allFocusable?: boolean;\n\n /**\n * Whether the CalendarDay close button should be shown or not.\n */\n showCloseButton?: boolean;\n };\n\n/**\n * State used in rendering DatePicker.\n */\nexport type DatePickerState = ComponentState<DatePickerSlots> &\n Pick<DatePickerProps, 'mountNode'> & {\n disabled: boolean;\n inlinePopup: boolean;\n };\n\n/**\n * Data passed to the `onValidationResult` callback.\n */\nexport type DatePickerValidationResultData = {\n /** The error found when validating the input. */\n error?: DatePickerErrorType;\n};\n\n/**\n * Error types returned by the `onValidationResult` callback.\n */\nexport type DatePickerErrorType = 'invalid-input' | 'out-of-bounds' | 'required-input';\n"],"names":[],"mappings":"AA4OA;;CAEC,GACD,WAAuF"}
1
+ {"version":3,"sources":["../src/components/DatePicker/DatePicker.types.ts"],"sourcesContent":["import type { DayOfWeek, FirstWeekOfYear } from '@fluentui/react-calendar-compat';\nimport type { Input } from '@fluentui/react-input';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { CalendarProps, CalendarStrings, DateFormatting } from '@fluentui/react-calendar-compat';\nimport type { PortalProps } from '@fluentui/react-portal';\nimport type { PositioningProps } from '@fluentui/react-positioning';\n\nexport type DatePickerSlots = {\n root: NonNullable<Slot<typeof Input>>;\n calendar: NonNullable<Slot<Partial<CalendarProps>>>;\n popupSurface?: Slot<'div'>;\n};\n\nexport type DatePickerProps = Omit<ComponentProps<Partial<DatePickerSlots>>, 'defaultValue' | 'value'> &\n Pick<PortalProps, 'mountNode'> & {\n /**\n * Callback issued when a date is selected\n */\n // eslint-disable-next-line @nx/workspace-consistent-callback-type -- can't change type of existing callback\n onSelectDate?: (date: Date | null | undefined) => void;\n\n /**\n * Whether the DatePicker is a required field or not. When using `<Field>`, this prop is automatically set.\n * @default false\n */\n required?: boolean;\n\n /**\n * Disabled state of the DatePicker.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Whether or not the Input of the DatePicker is underlined.\n * @default false\n */\n underlined?: boolean;\n\n /**\n * Whether the month picker is shown beside the day picker or hidden.\n * @default true\n */\n isMonthPickerVisible?: boolean;\n\n /**\n * Show month picker on top of date picker when visible.\n * @default false\n */\n showMonthPickerAsOverlay?: boolean;\n\n /**\n * Whether the DatePicker allows input a date string directly or not\n * @default false\n */\n allowTextInput?: boolean;\n\n /**\n * Whether the DatePicker should open automatically when the control is focused\n * WARNING: setting this to false creates an accessibility violation and is not recommended\n * @default true\n */\n disableAutoFocus?: boolean;\n\n /**\n * Whether the DatePicker should open when the input is clicked\n * @default true\n */\n openOnClick?: boolean;\n\n /**\n * Whether the DatePicker should be open by default\n *\n * @default false\n */\n defaultOpen?: boolean;\n\n /**\n * Whether the DatePicker is open or not\n *\n * @default false\n */\n open?: boolean;\n\n /**\n * Callback to run when the DatePicker's open state changes\n */\n // eslint-disable-next-line @nx/workspace-consistent-callback-type -- can't change type of existing callback\n onOpenChange?: (open: boolean) => void;\n\n /**\n * Callback to run after the DatePicker's input has been validated\n */\n // eslint-disable-next-line @nx/workspace-consistent-callback-type -- can't change type of existing callback\n onValidationResult?: (data: DatePickerValidationResultData) => void;\n\n /**\n * Whether the DatePicker should render the popup as inline or in a portal\n *\n * @default false\n */\n inlinePopup?: boolean;\n\n /**\n * Configure the positioning of the DatePicker dialog\n *\n * @default below\n */\n positioning?: PositioningProps;\n\n /**\n * Placeholder text for the DatePicker\n */\n placeholder?: string;\n\n /**\n * Value of today. If unspecified, current time in client machine will be used.\n */\n today?: Date;\n\n /**\n * Default value of the DatePicker, if any\n *\n * When the component is controlled, `null` should be used instead of `undefined` to avoid controlled vs. uncontrolled\n * ambiguity.\n */\n value?: Date | null;\n\n /**\n * Optional method to format the chosen date to a string to display in the DatePicker\n * @default date.toString()\n */\n formatDate?: (date?: Date) => string;\n\n /**\n * Optional method to parse the text input value to date, it is only useful when allowTextInput is set to true\n * @default new Date(Date.parse(dateStr))\n */\n parseDateFromString?: (dateStr: string) => Date | null;\n\n /**\n * The first day of the week for your locale.\n * @default DayOfWeek.Sunday\n */\n firstDayOfWeek?: DayOfWeek;\n\n /**\n * Localized strings to use in the Calendar\n */\n strings?: CalendarStrings;\n\n /**\n * Whether the month picker should highlight the current month\n * @default false\n */\n highlightCurrentMonth?: boolean;\n\n /**\n * Whether the month picker should highlight the selected month\n * @default false\n */\n highlightSelectedMonth?: boolean;\n\n /**\n * Whether the calendar should show the week number (weeks 1 to 53) before each week row\n * @default false\n */\n showWeekNumbers?: boolean;\n\n /**\n * Defines when the first week of the year should start, FirstWeekOfYear.FirstDay,\n * FirstWeekOfYear.FirstFullWeek or FirstWeekOfYear.FirstFourDayWeek are the possible values\n * @default FirstWeekOfYear.FirstFullWeek\n */\n firstWeekOfYear?: FirstWeekOfYear;\n\n /**\n * Whether the \"Go to today\" link should be shown or not\n */\n showGoToToday?: boolean;\n\n /**\n * Determines if the DatePicker has a border.\n * @default false\n */\n borderless?: boolean;\n\n /**\n * Apply additional formatting to dates, for example localized date formatting.\n */\n dateTimeFormatter?: DateFormatting;\n\n /**\n * The minimum allowable date.\n */\n minDate?: Date;\n\n /**\n * The maximum allowable date.\n */\n maxDate?: Date;\n\n /**\n * The initially highlighted date.\n */\n initialPickerDate?: Date;\n\n /**\n * Allows all elements to be focused, including disabled ones\n * @default false\n */\n allFocusable?: boolean;\n\n /**\n * Whether the CalendarDay close button should be shown or not.\n */\n showCloseButton?: boolean;\n };\n\n/**\n * State used in rendering DatePicker.\n */\nexport type DatePickerState = ComponentState<DatePickerSlots> &\n Pick<DatePickerProps, 'mountNode'> & {\n disabled: boolean;\n inlinePopup: boolean;\n };\n\n/**\n * Data passed to the `onValidationResult` callback.\n */\nexport type DatePickerValidationResultData = {\n /** The error found when validating the input. */\n error?: DatePickerErrorType;\n};\n\n/**\n * Error types returned by the `onValidationResult` callback.\n */\nexport type DatePickerErrorType = 'invalid-input' | 'out-of-bounds' | 'required-input';\n"],"names":[],"mappings":"AA4OA;;CAEC,GACD,WAAuF"}
@@ -1,4 +1,4 @@
1
- import { defaultCalendarStrings } from '@fluentui/react-calendar-compat';
1
+ import { defaultCalendarStrings } from "@fluentui/react-calendar-compat";
2
2
  export const defaultDatePickerStrings = {
3
3
  ...defaultCalendarStrings,
4
4
  prevMonthAriaLabel: 'Go to previous month',
@@ -1,5 +1,5 @@
1
- export { defaultDatePickerErrorStrings, defaultDatePickerStrings } from './defaults';
2
- export { DatePicker } from './DatePicker';
3
- export { renderDatePicker_unstable } from './renderDatePicker';
4
- export { useDatePicker_unstable } from './useDatePicker';
5
- export { datePickerClassNames, useDatePickerStyles_unstable } from './useDatePickerStyles.styles';
1
+ export { defaultDatePickerErrorStrings, defaultDatePickerStrings } from "./defaults.js";
2
+ export { DatePicker } from "./DatePicker.js";
3
+ export { renderDatePicker_unstable } from "./renderDatePicker.js";
4
+ export { useDatePicker_unstable } from "./useDatePicker.js";
5
+ export { datePickerClassNames, useDatePickerStyles_unstable } from "./useDatePickerStyles.styles.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DatePicker/index.ts"],"sourcesContent":["export { defaultDatePickerErrorStrings, defaultDatePickerStrings } from './defaults';\nexport { DatePicker } from './DatePicker';\nexport type {\n DatePickerErrorType,\n DatePickerProps,\n DatePickerSlots,\n DatePickerState,\n DatePickerValidationResultData,\n} from './DatePicker.types';\nexport { renderDatePicker_unstable } from './renderDatePicker';\nexport { useDatePicker_unstable } from './useDatePicker';\nexport { datePickerClassNames, useDatePickerStyles_unstable } from './useDatePickerStyles.styles';\n"],"names":["defaultDatePickerErrorStrings","defaultDatePickerStrings","DatePicker","renderDatePicker_unstable","useDatePicker_unstable","datePickerClassNames","useDatePickerStyles_unstable"],"mappings":"AAAA,SAASA,6BAA6B,EAAEC,wBAAwB,QAAQ,aAAa;AACrF,SAASC,UAAU,QAAQ,eAAe;AAQ1C,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,oBAAoB,EAAEC,4BAA4B,QAAQ,+BAA+B"}
1
+ {"version":3,"sources":["../src/components/DatePicker/index.ts"],"sourcesContent":["export { defaultDatePickerErrorStrings, defaultDatePickerStrings } from './defaults';\nexport { DatePicker } from './DatePicker';\nexport type {\n DatePickerErrorType,\n DatePickerProps,\n DatePickerSlots,\n DatePickerState,\n DatePickerValidationResultData,\n} from './DatePicker.types';\nexport { renderDatePicker_unstable } from './renderDatePicker';\nexport { useDatePicker_unstable } from './useDatePicker';\nexport { datePickerClassNames, useDatePickerStyles_unstable } from './useDatePickerStyles.styles';\n"],"names":["defaultDatePickerErrorStrings","defaultDatePickerStrings","DatePicker","renderDatePicker_unstable","useDatePicker_unstable","datePickerClassNames","useDatePickerStyles_unstable"],"mappings":"AAAA,SAASA,6BAA6B,EAAEC,wBAAwB,QAAQ,gBAAa;AACrF,SAASC,UAAU,QAAQ,kBAAe;AAQ1C,SAASC,yBAAyB,QAAQ,wBAAqB;AAC/D,SAASC,sBAAsB,QAAQ,qBAAkB;AACzD,SAASC,oBAAoB,EAAEC,4BAA4B,QAAQ,kCAA+B"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
- import { Portal } from '@fluentui/react-portal';
3
- import { assertSlots } from '@fluentui/react-utilities';
2
+ import { Portal } from "@fluentui/react-portal";
3
+ import { assertSlots } from "@fluentui/react-utilities";
4
4
  /**
5
5
  * Render the final JSX of DatePicker
6
6
  */ export const renderDatePicker_unstable = (state)=>{