@fluentui/react-drawer 9.4.0 → 9.5.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.
- package/CHANGELOG.md +89 -75
- package/dist/index.d.ts +12 -15
- package/lib/components/Drawer/Drawer.types.js.map +1 -1
- package/lib/components/Drawer/useDrawer.js +2 -2
- package/lib/components/Drawer/useDrawer.js.map +1 -1
- package/lib/components/InlineDrawer/InlineDrawer.types.js.map +1 -1
- package/lib/components/InlineDrawer/useInlineDrawer.js.map +1 -1
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.js.map +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawer.types.js.map +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js +9 -1
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js.map +1 -1
- package/lib/components/OverlayDrawer/useOverlayDrawer.js +6 -5
- package/lib/components/OverlayDrawer/useOverlayDrawer.js.map +1 -1
- package/lib/shared/DrawerBase.types.js.map +1 -1
- package/lib/shared/useDrawerBaseStyles.styles.js.map +1 -1
- package/lib-commonjs/components/Drawer/useDrawer.js +2 -2
- package/lib-commonjs/components/Drawer/useDrawer.js.map +1 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js +9 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map +1 -1
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawer.js +5 -4
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawer.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-drawer
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu,
|
|
3
|
+
This log was last generated on Thu, 06 Jun 2024 15:22:15 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.5.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.5.0)
|
|
8
|
+
|
|
9
|
+
Thu, 06 Jun 2024 15:22:15 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.4.0..@fluentui/react-drawer_v9.5.0)
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- feat: allow aside as tag for Drawer components ([PR #31434](https://github.com/microsoft/fluentui/pull/31434) by marcosvmmoura@gmail.com)
|
|
15
|
+
- Bump @fluentui/react-dialog to v9.11.0 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
16
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.39 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
17
|
+
- Bump @fluentui/react-motion-preview to v0.5.22 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
18
|
+
- Bump @fluentui/react-tabster to v9.21.5 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
19
|
+
- Bump @fluentui/react-utilities to v9.18.10 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
|
|
20
|
+
|
|
7
21
|
## [9.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.4.0)
|
|
8
22
|
|
|
9
|
-
Thu, 23 May 2024
|
|
23
|
+
Thu, 23 May 2024 08:02:43 GMT
|
|
10
24
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.3.2..@fluentui/react-drawer_v9.4.0)
|
|
11
25
|
|
|
12
26
|
### Minor changes
|
|
13
27
|
|
|
14
28
|
- deprecate: defaultOpen as it is not being used ([PR #31435](https://github.com/microsoft/fluentui/pull/31435) by marcosvmmoura@gmail.com)
|
|
15
|
-
- Bump @fluentui/react-dialog to v9.10.7 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
16
|
-
- Bump @fluentui/react-tabster to v9.21.4 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
29
|
+
- Bump @fluentui/react-dialog to v9.10.7 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
|
|
30
|
+
- Bump @fluentui/react-tabster to v9.21.4 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
|
|
17
31
|
|
|
18
32
|
### Patches
|
|
19
33
|
|
|
@@ -22,7 +36,7 @@ Thu, 23 May 2024 07:57:54 GMT
|
|
|
22
36
|
|
|
23
37
|
## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.3.2)
|
|
24
38
|
|
|
25
|
-
Mon, 20 May 2024 12:44:55 GMT
|
|
39
|
+
Mon, 20 May 2024 12:44:55 GMT
|
|
26
40
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.3.1..@fluentui/react-drawer_v9.3.2)
|
|
27
41
|
|
|
28
42
|
### Patches
|
|
@@ -37,7 +51,7 @@ Mon, 20 May 2024 12:44:55 GMT
|
|
|
37
51
|
|
|
38
52
|
## [9.3.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.3.1)
|
|
39
53
|
|
|
40
|
-
Thu, 16 May 2024 09:25:14 GMT
|
|
54
|
+
Thu, 16 May 2024 09:25:14 GMT
|
|
41
55
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.3.0..@fluentui/react-drawer_v9.3.1)
|
|
42
56
|
|
|
43
57
|
### Patches
|
|
@@ -47,7 +61,7 @@ Thu, 16 May 2024 09:25:14 GMT
|
|
|
47
61
|
|
|
48
62
|
## [9.3.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.3.0)
|
|
49
63
|
|
|
50
|
-
Mon, 13 May 2024 12:34:19 GMT
|
|
64
|
+
Mon, 13 May 2024 12:34:19 GMT
|
|
51
65
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.2.2..@fluentui/react-drawer_v9.3.0)
|
|
52
66
|
|
|
53
67
|
### Minor changes
|
|
@@ -56,7 +70,7 @@ Mon, 13 May 2024 12:34:19 GMT
|
|
|
56
70
|
|
|
57
71
|
## [9.2.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.2.2)
|
|
58
72
|
|
|
59
|
-
Thu, 09 May 2024 19:35:12 GMT
|
|
73
|
+
Thu, 09 May 2024 19:35:12 GMT
|
|
60
74
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.2.1..@fluentui/react-drawer_v9.2.2)
|
|
61
75
|
|
|
62
76
|
### Patches
|
|
@@ -66,7 +80,7 @@ Thu, 09 May 2024 19:35:12 GMT
|
|
|
66
80
|
|
|
67
81
|
## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.2.1)
|
|
68
82
|
|
|
69
|
-
Mon, 06 May 2024 12:55:02 GMT
|
|
83
|
+
Mon, 06 May 2024 12:55:02 GMT
|
|
70
84
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.2.0..@fluentui/react-drawer_v9.2.1)
|
|
71
85
|
|
|
72
86
|
### Patches
|
|
@@ -80,7 +94,7 @@ Mon, 06 May 2024 12:55:02 GMT
|
|
|
80
94
|
|
|
81
95
|
## [9.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.2.0)
|
|
82
96
|
|
|
83
|
-
Thu, 02 May 2024 11:36:33 GMT
|
|
97
|
+
Thu, 02 May 2024 11:36:33 GMT
|
|
84
98
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.12..@fluentui/react-drawer_v9.2.0)
|
|
85
99
|
|
|
86
100
|
### Minor changes
|
|
@@ -91,7 +105,7 @@ Thu, 02 May 2024 11:36:33 GMT
|
|
|
91
105
|
|
|
92
106
|
## [9.1.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.12)
|
|
93
107
|
|
|
94
|
-
Tue, 23 Apr 2024 08:17:49 GMT
|
|
108
|
+
Tue, 23 Apr 2024 08:17:49 GMT
|
|
95
109
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.11..@fluentui/react-drawer_v9.1.12)
|
|
96
110
|
|
|
97
111
|
### Patches
|
|
@@ -105,18 +119,18 @@ Tue, 23 Apr 2024 08:17:49 GMT
|
|
|
105
119
|
|
|
106
120
|
## [9.1.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.11)
|
|
107
121
|
|
|
108
|
-
Wed, 17 Apr 2024 21:53:52 GMT
|
|
122
|
+
Wed, 17 Apr 2024 21:53:52 GMT
|
|
109
123
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.10..@fluentui/react-drawer_v9.1.11)
|
|
110
124
|
|
|
111
125
|
### Patches
|
|
112
126
|
|
|
113
|
-
- chore: refactor styles defined in makeResetStyles() to avoid shorthands
|
|
127
|
+
- chore: refactor styles defined in makeResetStyles() to avoid shorthands.\*() ([PR #30996](https://github.com/microsoft/fluentui/pull/30996) by olfedias@microsoft.com)
|
|
114
128
|
- Bump @fluentui/react-dialog to v9.10.0 ([PR #31100](https://github.com/microsoft/fluentui/pull/31100) by beachball)
|
|
115
129
|
- Bump @fluentui/react-tabster to v9.20.0 ([PR #31100](https://github.com/microsoft/fluentui/pull/31100) by beachball)
|
|
116
130
|
|
|
117
131
|
## [9.1.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.10)
|
|
118
132
|
|
|
119
|
-
Tue, 02 Apr 2024 09:48:01 GMT
|
|
133
|
+
Tue, 02 Apr 2024 09:48:01 GMT
|
|
120
134
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.9..@fluentui/react-drawer_v9.1.10)
|
|
121
135
|
|
|
122
136
|
### Patches
|
|
@@ -130,7 +144,7 @@ Tue, 02 Apr 2024 09:48:01 GMT
|
|
|
130
144
|
|
|
131
145
|
## [9.1.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.9)
|
|
132
146
|
|
|
133
|
-
Mon, 18 Mar 2024 19:50:46 GMT
|
|
147
|
+
Mon, 18 Mar 2024 19:50:46 GMT
|
|
134
148
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.8..@fluentui/react-drawer_v9.1.9)
|
|
135
149
|
|
|
136
150
|
### Patches
|
|
@@ -145,7 +159,7 @@ Mon, 18 Mar 2024 19:50:46 GMT
|
|
|
145
159
|
|
|
146
160
|
## [9.1.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.8)
|
|
147
161
|
|
|
148
|
-
Fri, 15 Mar 2024 21:43:49 GMT
|
|
162
|
+
Fri, 15 Mar 2024 21:43:49 GMT
|
|
149
163
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.7..@fluentui/react-drawer_v9.1.8)
|
|
150
164
|
|
|
151
165
|
### Patches
|
|
@@ -160,7 +174,7 @@ Fri, 15 Mar 2024 21:43:49 GMT
|
|
|
160
174
|
|
|
161
175
|
## [9.1.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.7)
|
|
162
176
|
|
|
163
|
-
Thu, 07 Mar 2024 19:33:27 GMT
|
|
177
|
+
Thu, 07 Mar 2024 19:33:27 GMT
|
|
164
178
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.6..@fluentui/react-drawer_v9.1.7)
|
|
165
179
|
|
|
166
180
|
### Patches
|
|
@@ -175,7 +189,7 @@ Thu, 07 Mar 2024 19:33:27 GMT
|
|
|
175
189
|
|
|
176
190
|
## [9.1.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.6)
|
|
177
191
|
|
|
178
|
-
Wed, 28 Feb 2024 02:34:19 GMT
|
|
192
|
+
Wed, 28 Feb 2024 02:34:19 GMT
|
|
179
193
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.5..@fluentui/react-drawer_v9.1.6)
|
|
180
194
|
|
|
181
195
|
### Patches
|
|
@@ -189,7 +203,7 @@ Wed, 28 Feb 2024 02:34:19 GMT
|
|
|
189
203
|
|
|
190
204
|
## [9.1.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.5)
|
|
191
205
|
|
|
192
|
-
Tue, 20 Feb 2024 14:22:30 GMT
|
|
206
|
+
Tue, 20 Feb 2024 14:22:30 GMT
|
|
193
207
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.4..@fluentui/react-drawer_v9.1.5)
|
|
194
208
|
|
|
195
209
|
### Patches
|
|
@@ -202,7 +216,7 @@ Tue, 20 Feb 2024 14:22:30 GMT
|
|
|
202
216
|
|
|
203
217
|
## [9.1.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.4)
|
|
204
218
|
|
|
205
|
-
Tue, 06 Feb 2024 17:55:21 GMT
|
|
219
|
+
Tue, 06 Feb 2024 17:55:21 GMT
|
|
206
220
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.3..@fluentui/react-drawer_v9.1.4)
|
|
207
221
|
|
|
208
222
|
### Patches
|
|
@@ -212,7 +226,7 @@ Tue, 06 Feb 2024 17:55:21 GMT
|
|
|
212
226
|
|
|
213
227
|
## [9.1.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.3)
|
|
214
228
|
|
|
215
|
-
Tue, 30 Jan 2024 23:16:54 GMT
|
|
229
|
+
Tue, 30 Jan 2024 23:16:54 GMT
|
|
216
230
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.2..@fluentui/react-drawer_v9.1.3)
|
|
217
231
|
|
|
218
232
|
### Patches
|
|
@@ -225,7 +239,7 @@ Tue, 30 Jan 2024 23:16:54 GMT
|
|
|
225
239
|
|
|
226
240
|
## [9.1.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.2)
|
|
227
241
|
|
|
228
|
-
Tue, 23 Jan 2024 15:11:00 GMT
|
|
242
|
+
Tue, 23 Jan 2024 15:11:00 GMT
|
|
229
243
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.1..@fluentui/react-drawer_v9.1.2)
|
|
230
244
|
|
|
231
245
|
### Patches
|
|
@@ -238,7 +252,7 @@ Tue, 23 Jan 2024 15:11:00 GMT
|
|
|
238
252
|
|
|
239
253
|
## [9.1.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.1)
|
|
240
254
|
|
|
241
|
-
Thu, 18 Jan 2024 14:25:03 GMT
|
|
255
|
+
Thu, 18 Jan 2024 14:25:03 GMT
|
|
242
256
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.1.0..@fluentui/react-drawer_v9.1.1)
|
|
243
257
|
|
|
244
258
|
### Patches
|
|
@@ -252,7 +266,7 @@ Thu, 18 Jan 2024 14:25:03 GMT
|
|
|
252
266
|
|
|
253
267
|
## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.1.0)
|
|
254
268
|
|
|
255
|
-
Wed, 17 Jan 2024 16:18:49 GMT
|
|
269
|
+
Wed, 17 Jan 2024 16:18:49 GMT
|
|
256
270
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.9..@fluentui/react-drawer_v9.1.0)
|
|
257
271
|
|
|
258
272
|
### Minor changes
|
|
@@ -266,7 +280,7 @@ Wed, 17 Jan 2024 16:18:49 GMT
|
|
|
266
280
|
|
|
267
281
|
## [9.0.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.9)
|
|
268
282
|
|
|
269
|
-
Tue, 16 Jan 2024 13:14:18 GMT
|
|
283
|
+
Tue, 16 Jan 2024 13:14:18 GMT
|
|
270
284
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.8..@fluentui/react-drawer_v9.0.9)
|
|
271
285
|
|
|
272
286
|
### Patches
|
|
@@ -280,7 +294,7 @@ Tue, 16 Jan 2024 13:14:18 GMT
|
|
|
280
294
|
|
|
281
295
|
## [9.0.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.8)
|
|
282
296
|
|
|
283
|
-
Thu, 11 Jan 2024 09:04:29 GMT
|
|
297
|
+
Thu, 11 Jan 2024 09:04:29 GMT
|
|
284
298
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.7..@fluentui/react-drawer_v9.0.8)
|
|
285
299
|
|
|
286
300
|
### Patches
|
|
@@ -289,7 +303,7 @@ Thu, 11 Jan 2024 09:04:29 GMT
|
|
|
289
303
|
|
|
290
304
|
## [9.0.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.7)
|
|
291
305
|
|
|
292
|
-
Mon, 08 Jan 2024 16:24:28 GMT
|
|
306
|
+
Mon, 08 Jan 2024 16:24:28 GMT
|
|
293
307
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.6..@fluentui/react-drawer_v9.0.7)
|
|
294
308
|
|
|
295
309
|
### Patches
|
|
@@ -302,7 +316,7 @@ Mon, 08 Jan 2024 16:24:28 GMT
|
|
|
302
316
|
|
|
303
317
|
## [9.0.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.6)
|
|
304
318
|
|
|
305
|
-
Wed, 03 Jan 2024 09:26:44 GMT
|
|
319
|
+
Wed, 03 Jan 2024 09:26:44 GMT
|
|
306
320
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.5..@fluentui/react-drawer_v9.0.6)
|
|
307
321
|
|
|
308
322
|
### Patches
|
|
@@ -315,7 +329,7 @@ Wed, 03 Jan 2024 09:26:44 GMT
|
|
|
315
329
|
|
|
316
330
|
## [9.0.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.5)
|
|
317
331
|
|
|
318
|
-
Mon, 18 Dec 2023 14:40:46 GMT
|
|
332
|
+
Mon, 18 Dec 2023 14:40:46 GMT
|
|
319
333
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.4..@fluentui/react-drawer_v9.0.5)
|
|
320
334
|
|
|
321
335
|
### Patches
|
|
@@ -329,7 +343,7 @@ Mon, 18 Dec 2023 14:40:46 GMT
|
|
|
329
343
|
|
|
330
344
|
## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.4)
|
|
331
345
|
|
|
332
|
-
Thu, 14 Dec 2023 09:58:43 GMT
|
|
346
|
+
Thu, 14 Dec 2023 09:58:43 GMT
|
|
333
347
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.3..@fluentui/react-drawer_v9.0.4)
|
|
334
348
|
|
|
335
349
|
### Patches
|
|
@@ -344,7 +358,7 @@ Thu, 14 Dec 2023 09:58:43 GMT
|
|
|
344
358
|
|
|
345
359
|
## [9.0.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.3)
|
|
346
360
|
|
|
347
|
-
Thu, 30 Nov 2023 13:42:08 GMT
|
|
361
|
+
Thu, 30 Nov 2023 13:42:08 GMT
|
|
348
362
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.2..@fluentui/react-drawer_v9.0.3)
|
|
349
363
|
|
|
350
364
|
### Patches
|
|
@@ -356,7 +370,7 @@ Thu, 30 Nov 2023 13:42:08 GMT
|
|
|
356
370
|
|
|
357
371
|
## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.2)
|
|
358
372
|
|
|
359
|
-
Mon, 20 Nov 2023 09:55:10 GMT
|
|
373
|
+
Mon, 20 Nov 2023 09:55:10 GMT
|
|
360
374
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.1..@fluentui/react-drawer_v9.0.2)
|
|
361
375
|
|
|
362
376
|
### Patches
|
|
@@ -368,7 +382,7 @@ Mon, 20 Nov 2023 09:55:10 GMT
|
|
|
368
382
|
|
|
369
383
|
## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.1)
|
|
370
384
|
|
|
371
|
-
Tue, 14 Nov 2023 17:51:27 GMT
|
|
385
|
+
Tue, 14 Nov 2023 17:51:27 GMT
|
|
372
386
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0..@fluentui/react-drawer_v9.0.1)
|
|
373
387
|
|
|
374
388
|
### Patches
|
|
@@ -378,7 +392,7 @@ Tue, 14 Nov 2023 17:51:27 GMT
|
|
|
378
392
|
|
|
379
393
|
## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0)
|
|
380
394
|
|
|
381
|
-
Thu, 09 Nov 2023 17:29:35 GMT
|
|
395
|
+
Thu, 09 Nov 2023 17:29:35 GMT
|
|
382
396
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.41..@fluentui/react-drawer_v9.0.0)
|
|
383
397
|
|
|
384
398
|
### Minor changes
|
|
@@ -398,7 +412,7 @@ Thu, 09 Nov 2023 17:29:35 GMT
|
|
|
398
412
|
|
|
399
413
|
## [9.0.0-beta.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.41)
|
|
400
414
|
|
|
401
|
-
Mon, 06 Nov 2023 13:16:04 GMT
|
|
415
|
+
Mon, 06 Nov 2023 13:16:04 GMT
|
|
402
416
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.40..@fluentui/react-drawer_v9.0.0-beta.41)
|
|
403
417
|
|
|
404
418
|
### Changes
|
|
@@ -407,16 +421,16 @@ Mon, 06 Nov 2023 13:16:04 GMT
|
|
|
407
421
|
|
|
408
422
|
## [9.0.0-beta.40](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.40)
|
|
409
423
|
|
|
410
|
-
Thu, 02 Nov 2023 17:38:45 GMT
|
|
424
|
+
Thu, 02 Nov 2023 17:38:45 GMT
|
|
411
425
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.39..@fluentui/react-drawer_v9.0.0-beta.40)
|
|
412
426
|
|
|
413
427
|
### Changes
|
|
414
428
|
|
|
415
|
-
- breaking: open prop now only accepts a boolean instead of MotionShorthand
|
|
429
|
+
- breaking: open prop now only accepts a boolean instead of MotionShorthand ([PR #29736](https://github.com/microsoft/fluentui/pull/29736) by marcosvmmoura@gmail.com)
|
|
416
430
|
|
|
417
431
|
## [9.0.0-beta.39](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.39)
|
|
418
432
|
|
|
419
|
-
Wed, 01 Nov 2023 12:55:59 GMT
|
|
433
|
+
Wed, 01 Nov 2023 12:55:59 GMT
|
|
420
434
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.38..@fluentui/react-drawer_v9.0.0-beta.39)
|
|
421
435
|
|
|
422
436
|
### Changes
|
|
@@ -429,7 +443,7 @@ Wed, 01 Nov 2023 12:55:59 GMT
|
|
|
429
443
|
|
|
430
444
|
## [9.0.0-beta.38](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.38)
|
|
431
445
|
|
|
432
|
-
Sat, 28 Oct 2023 23:35:56 GMT
|
|
446
|
+
Sat, 28 Oct 2023 23:35:56 GMT
|
|
433
447
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.37..@fluentui/react-drawer_v9.0.0-beta.38)
|
|
434
448
|
|
|
435
449
|
### Changes
|
|
@@ -446,7 +460,7 @@ Sat, 28 Oct 2023 23:35:56 GMT
|
|
|
446
460
|
|
|
447
461
|
## [9.0.0-beta.37](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.37)
|
|
448
462
|
|
|
449
|
-
Mon, 23 Oct 2023 09:51:57 GMT
|
|
463
|
+
Mon, 23 Oct 2023 09:51:57 GMT
|
|
450
464
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.36..@fluentui/react-drawer_v9.0.0-beta.37)
|
|
451
465
|
|
|
452
466
|
### Changes
|
|
@@ -456,7 +470,7 @@ Mon, 23 Oct 2023 09:51:57 GMT
|
|
|
456
470
|
|
|
457
471
|
## [9.0.0-beta.36](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.36)
|
|
458
472
|
|
|
459
|
-
Wed, 18 Oct 2023 17:54:08 GMT
|
|
473
|
+
Wed, 18 Oct 2023 17:54:08 GMT
|
|
460
474
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.35..@fluentui/react-drawer_v9.0.0-beta.36)
|
|
461
475
|
|
|
462
476
|
### Changes
|
|
@@ -469,7 +483,7 @@ Wed, 18 Oct 2023 17:54:08 GMT
|
|
|
469
483
|
|
|
470
484
|
## [9.0.0-beta.35](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.35)
|
|
471
485
|
|
|
472
|
-
Thu, 12 Oct 2023 14:55:43 GMT
|
|
486
|
+
Thu, 12 Oct 2023 14:55:43 GMT
|
|
473
487
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.34..@fluentui/react-drawer_v9.0.0-beta.35)
|
|
474
488
|
|
|
475
489
|
### Changes
|
|
@@ -481,7 +495,7 @@ Thu, 12 Oct 2023 14:55:43 GMT
|
|
|
481
495
|
|
|
482
496
|
## [9.0.0-beta.34](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.34)
|
|
483
497
|
|
|
484
|
-
Wed, 11 Oct 2023 13:54:26 GMT
|
|
498
|
+
Wed, 11 Oct 2023 13:54:26 GMT
|
|
485
499
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.33..@fluentui/react-drawer_v9.0.0-beta.34)
|
|
486
500
|
|
|
487
501
|
### Changes
|
|
@@ -494,7 +508,7 @@ Wed, 11 Oct 2023 13:54:26 GMT
|
|
|
494
508
|
|
|
495
509
|
## [9.0.0-beta.33](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.33)
|
|
496
510
|
|
|
497
|
-
Mon, 09 Oct 2023 20:45:41 GMT
|
|
511
|
+
Mon, 09 Oct 2023 20:45:41 GMT
|
|
498
512
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.32..@fluentui/react-drawer_v9.0.0-beta.33)
|
|
499
513
|
|
|
500
514
|
### Changes
|
|
@@ -509,7 +523,7 @@ Mon, 09 Oct 2023 20:45:41 GMT
|
|
|
509
523
|
|
|
510
524
|
## [9.0.0-beta.32](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.32)
|
|
511
525
|
|
|
512
|
-
Thu, 05 Oct 2023 15:25:35 GMT
|
|
526
|
+
Thu, 05 Oct 2023 15:25:35 GMT
|
|
513
527
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.31..@fluentui/react-drawer_v9.0.0-beta.32)
|
|
514
528
|
|
|
515
529
|
### Changes
|
|
@@ -521,7 +535,7 @@ Thu, 05 Oct 2023 15:25:35 GMT
|
|
|
521
535
|
|
|
522
536
|
## [9.0.0-beta.31](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.31)
|
|
523
537
|
|
|
524
|
-
Wed, 04 Oct 2023 08:45:47 GMT
|
|
538
|
+
Wed, 04 Oct 2023 08:45:47 GMT
|
|
525
539
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.30..@fluentui/react-drawer_v9.0.0-beta.31)
|
|
526
540
|
|
|
527
541
|
### Changes
|
|
@@ -533,7 +547,7 @@ Wed, 04 Oct 2023 08:45:47 GMT
|
|
|
533
547
|
|
|
534
548
|
## [9.0.0-beta.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.30)
|
|
535
549
|
|
|
536
|
-
Mon, 02 Oct 2023 08:56:05 GMT
|
|
550
|
+
Mon, 02 Oct 2023 08:56:05 GMT
|
|
537
551
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.29..@fluentui/react-drawer_v9.0.0-beta.30)
|
|
538
552
|
|
|
539
553
|
### Changes
|
|
@@ -544,7 +558,7 @@ Mon, 02 Oct 2023 08:56:05 GMT
|
|
|
544
558
|
|
|
545
559
|
## [9.0.0-beta.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.29)
|
|
546
560
|
|
|
547
|
-
Tue, 26 Sep 2023 17:49:05 GMT
|
|
561
|
+
Tue, 26 Sep 2023 17:49:05 GMT
|
|
548
562
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.28..@fluentui/react-drawer_v9.0.0-beta.29)
|
|
549
563
|
|
|
550
564
|
### Changes
|
|
@@ -559,7 +573,7 @@ Tue, 26 Sep 2023 17:49:05 GMT
|
|
|
559
573
|
|
|
560
574
|
## [9.0.0-beta.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.28)
|
|
561
575
|
|
|
562
|
-
Tue, 26 Sep 2023 15:31:59 GMT
|
|
576
|
+
Tue, 26 Sep 2023 15:31:59 GMT
|
|
563
577
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.27..@fluentui/react-drawer_v9.0.0-beta.28)
|
|
564
578
|
|
|
565
579
|
### Changes
|
|
@@ -579,7 +593,7 @@ Tue, 26 Sep 2023 15:31:59 GMT
|
|
|
579
593
|
|
|
580
594
|
## [9.0.0-beta.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.27)
|
|
581
595
|
|
|
582
|
-
Wed, 20 Sep 2023 17:47:37 GMT
|
|
596
|
+
Wed, 20 Sep 2023 17:47:37 GMT
|
|
583
597
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.26..@fluentui/react-drawer_v9.0.0-beta.27)
|
|
584
598
|
|
|
585
599
|
### Changes
|
|
@@ -592,7 +606,7 @@ Wed, 20 Sep 2023 17:47:37 GMT
|
|
|
592
606
|
|
|
593
607
|
## [9.0.0-beta.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.26)
|
|
594
608
|
|
|
595
|
-
Wed, 20 Sep 2023 14:59:52 GMT
|
|
609
|
+
Wed, 20 Sep 2023 14:59:52 GMT
|
|
596
610
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.25..@fluentui/react-drawer_v9.0.0-beta.26)
|
|
597
611
|
|
|
598
612
|
### Changes
|
|
@@ -606,7 +620,7 @@ Wed, 20 Sep 2023 14:59:52 GMT
|
|
|
606
620
|
|
|
607
621
|
## [9.0.0-beta.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.25)
|
|
608
622
|
|
|
609
|
-
Thu, 14 Sep 2023 16:44:47 GMT
|
|
623
|
+
Thu, 14 Sep 2023 16:44:47 GMT
|
|
610
624
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.24..@fluentui/react-drawer_v9.0.0-beta.25)
|
|
611
625
|
|
|
612
626
|
### Changes
|
|
@@ -617,7 +631,7 @@ Thu, 14 Sep 2023 16:44:47 GMT
|
|
|
617
631
|
|
|
618
632
|
## [9.0.0-beta.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.24)
|
|
619
633
|
|
|
620
|
-
Tue, 12 Sep 2023 08:51:34 GMT
|
|
634
|
+
Tue, 12 Sep 2023 08:51:34 GMT
|
|
621
635
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.23..@fluentui/react-drawer_v9.0.0-beta.24)
|
|
622
636
|
|
|
623
637
|
### Changes
|
|
@@ -628,7 +642,7 @@ Tue, 12 Sep 2023 08:51:34 GMT
|
|
|
628
642
|
|
|
629
643
|
## [9.0.0-beta.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.23)
|
|
630
644
|
|
|
631
|
-
Wed, 06 Sep 2023 13:31:31 GMT
|
|
645
|
+
Wed, 06 Sep 2023 13:31:31 GMT
|
|
632
646
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.22..@fluentui/react-drawer_v9.0.0-beta.23)
|
|
633
647
|
|
|
634
648
|
### Changes
|
|
@@ -640,7 +654,7 @@ Wed, 06 Sep 2023 13:31:31 GMT
|
|
|
640
654
|
|
|
641
655
|
## [9.0.0-beta.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.22)
|
|
642
656
|
|
|
643
|
-
Tue, 05 Sep 2023 15:39:03 GMT
|
|
657
|
+
Tue, 05 Sep 2023 15:39:03 GMT
|
|
644
658
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.21..@fluentui/react-drawer_v9.0.0-beta.22)
|
|
645
659
|
|
|
646
660
|
### Changes
|
|
@@ -654,7 +668,7 @@ Tue, 05 Sep 2023 15:39:03 GMT
|
|
|
654
668
|
|
|
655
669
|
## [9.0.0-beta.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.21)
|
|
656
670
|
|
|
657
|
-
Tue, 05 Sep 2023 13:29:22 GMT
|
|
671
|
+
Tue, 05 Sep 2023 13:29:22 GMT
|
|
658
672
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.20..@fluentui/react-drawer_v9.0.0-beta.21)
|
|
659
673
|
|
|
660
674
|
### Changes
|
|
@@ -673,7 +687,7 @@ Tue, 05 Sep 2023 13:29:22 GMT
|
|
|
673
687
|
|
|
674
688
|
## [9.0.0-beta.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.20)
|
|
675
689
|
|
|
676
|
-
Tue, 29 Aug 2023 12:57:36 GMT
|
|
690
|
+
Tue, 29 Aug 2023 12:57:36 GMT
|
|
677
691
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.19..@fluentui/react-drawer_v9.0.0-beta.20)
|
|
678
692
|
|
|
679
693
|
### Changes
|
|
@@ -684,7 +698,7 @@ Tue, 29 Aug 2023 12:57:36 GMT
|
|
|
684
698
|
|
|
685
699
|
## [9.0.0-beta.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.19)
|
|
686
700
|
|
|
687
|
-
Thu, 24 Aug 2023 10:26:35 GMT
|
|
701
|
+
Thu, 24 Aug 2023 10:26:35 GMT
|
|
688
702
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.18..@fluentui/react-drawer_v9.0.0-beta.19)
|
|
689
703
|
|
|
690
704
|
### Changes
|
|
@@ -695,7 +709,7 @@ Thu, 24 Aug 2023 10:26:35 GMT
|
|
|
695
709
|
|
|
696
710
|
## [9.0.0-beta.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.18)
|
|
697
711
|
|
|
698
|
-
Wed, 23 Aug 2023 12:01:49 GMT
|
|
712
|
+
Wed, 23 Aug 2023 12:01:49 GMT
|
|
699
713
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.17..@fluentui/react-drawer_v9.0.0-beta.18)
|
|
700
714
|
|
|
701
715
|
### Changes
|
|
@@ -706,7 +720,7 @@ Wed, 23 Aug 2023 12:01:49 GMT
|
|
|
706
720
|
|
|
707
721
|
## [9.0.0-beta.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.17)
|
|
708
722
|
|
|
709
|
-
Mon, 21 Aug 2023 11:38:00 GMT
|
|
723
|
+
Mon, 21 Aug 2023 11:38:00 GMT
|
|
710
724
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.16..@fluentui/react-drawer_v9.0.0-beta.17)
|
|
711
725
|
|
|
712
726
|
### Changes
|
|
@@ -715,7 +729,7 @@ Mon, 21 Aug 2023 11:38:00 GMT
|
|
|
715
729
|
|
|
716
730
|
## [9.0.0-beta.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.16)
|
|
717
731
|
|
|
718
|
-
Wed, 16 Aug 2023 17:41:08 GMT
|
|
732
|
+
Wed, 16 Aug 2023 17:41:08 GMT
|
|
719
733
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.15..@fluentui/react-drawer_v9.0.0-beta.16)
|
|
720
734
|
|
|
721
735
|
### Changes
|
|
@@ -725,7 +739,7 @@ Wed, 16 Aug 2023 17:41:08 GMT
|
|
|
725
739
|
|
|
726
740
|
## [9.0.0-beta.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.15)
|
|
727
741
|
|
|
728
|
-
Wed, 16 Aug 2023 11:38:33 GMT
|
|
742
|
+
Wed, 16 Aug 2023 11:38:33 GMT
|
|
729
743
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.14..@fluentui/react-drawer_v9.0.0-beta.15)
|
|
730
744
|
|
|
731
745
|
### Changes
|
|
@@ -735,7 +749,7 @@ Wed, 16 Aug 2023 11:38:33 GMT
|
|
|
735
749
|
|
|
736
750
|
## [9.0.0-beta.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.14)
|
|
737
751
|
|
|
738
|
-
Fri, 11 Aug 2023 12:14:26 GMT
|
|
752
|
+
Fri, 11 Aug 2023 12:14:26 GMT
|
|
739
753
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.13..@fluentui/react-drawer_v9.0.0-beta.14)
|
|
740
754
|
|
|
741
755
|
### Changes
|
|
@@ -746,7 +760,7 @@ Fri, 11 Aug 2023 12:14:26 GMT
|
|
|
746
760
|
|
|
747
761
|
## [9.0.0-beta.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.13)
|
|
748
762
|
|
|
749
|
-
Wed, 09 Aug 2023 13:16:55 GMT
|
|
763
|
+
Wed, 09 Aug 2023 13:16:55 GMT
|
|
750
764
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.12..@fluentui/react-drawer_v9.0.0-beta.13)
|
|
751
765
|
|
|
752
766
|
### Changes
|
|
@@ -760,7 +774,7 @@ Wed, 09 Aug 2023 13:16:55 GMT
|
|
|
760
774
|
|
|
761
775
|
## [9.0.0-beta.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.12)
|
|
762
776
|
|
|
763
|
-
Fri, 04 Aug 2023 08:52:58 GMT
|
|
777
|
+
Fri, 04 Aug 2023 08:52:58 GMT
|
|
764
778
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.11..@fluentui/react-drawer_v9.0.0-beta.12)
|
|
765
779
|
|
|
766
780
|
### Changes
|
|
@@ -773,7 +787,7 @@ Fri, 04 Aug 2023 08:52:58 GMT
|
|
|
773
787
|
|
|
774
788
|
## [9.0.0-beta.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.11)
|
|
775
789
|
|
|
776
|
-
Tue, 01 Aug 2023 10:17:21 GMT
|
|
790
|
+
Tue, 01 Aug 2023 10:17:21 GMT
|
|
777
791
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.10..@fluentui/react-drawer_v9.0.0-beta.11)
|
|
778
792
|
|
|
779
793
|
### Changes
|
|
@@ -783,7 +797,7 @@ Tue, 01 Aug 2023 10:17:21 GMT
|
|
|
783
797
|
|
|
784
798
|
## [9.0.0-beta.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.10)
|
|
785
799
|
|
|
786
|
-
Tue, 25 Jul 2023 13:29:23 GMT
|
|
800
|
+
Tue, 25 Jul 2023 13:29:23 GMT
|
|
787
801
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.9..@fluentui/react-drawer_v9.0.0-beta.10)
|
|
788
802
|
|
|
789
803
|
### Changes
|
|
@@ -792,7 +806,7 @@ Tue, 25 Jul 2023 13:29:23 GMT
|
|
|
792
806
|
|
|
793
807
|
## [9.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.9)
|
|
794
808
|
|
|
795
|
-
Thu, 20 Jul 2023 18:27:36 GMT
|
|
809
|
+
Thu, 20 Jul 2023 18:27:36 GMT
|
|
796
810
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.8..@fluentui/react-drawer_v9.0.0-beta.9)
|
|
797
811
|
|
|
798
812
|
### Changes
|
|
@@ -802,7 +816,7 @@ Thu, 20 Jul 2023 18:27:36 GMT
|
|
|
802
816
|
|
|
803
817
|
## [9.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.8)
|
|
804
818
|
|
|
805
|
-
Tue, 11 Jul 2023 18:46:36 GMT
|
|
819
|
+
Tue, 11 Jul 2023 18:46:36 GMT
|
|
806
820
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.7..@fluentui/react-drawer_v9.0.0-beta.8)
|
|
807
821
|
|
|
808
822
|
### Changes
|
|
@@ -813,7 +827,7 @@ Tue, 11 Jul 2023 18:46:36 GMT
|
|
|
813
827
|
|
|
814
828
|
## [9.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.7)
|
|
815
829
|
|
|
816
|
-
Mon, 03 Jul 2023 13:34:28 GMT
|
|
830
|
+
Mon, 03 Jul 2023 13:34:28 GMT
|
|
817
831
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.6..@fluentui/react-drawer_v9.0.0-beta.7)
|
|
818
832
|
|
|
819
833
|
### Changes
|
|
@@ -822,7 +836,7 @@ Mon, 03 Jul 2023 13:34:28 GMT
|
|
|
822
836
|
|
|
823
837
|
## [9.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.6)
|
|
824
838
|
|
|
825
|
-
Mon, 03 Jul 2023 11:57:14 GMT
|
|
839
|
+
Mon, 03 Jul 2023 11:57:14 GMT
|
|
826
840
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.5..@fluentui/react-drawer_v9.0.0-beta.6)
|
|
827
841
|
|
|
828
842
|
### Changes
|
|
@@ -834,7 +848,7 @@ Mon, 03 Jul 2023 11:57:14 GMT
|
|
|
834
848
|
|
|
835
849
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.5)
|
|
836
850
|
|
|
837
|
-
Wed, 28 Jun 2023 11:12:26 GMT
|
|
851
|
+
Wed, 28 Jun 2023 11:12:26 GMT
|
|
838
852
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.4..@fluentui/react-drawer_v9.0.0-beta.5)
|
|
839
853
|
|
|
840
854
|
### Changes
|
|
@@ -845,7 +859,7 @@ Wed, 28 Jun 2023 11:12:26 GMT
|
|
|
845
859
|
|
|
846
860
|
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.4)
|
|
847
861
|
|
|
848
|
-
Tue, 27 Jun 2023 11:21:23 GMT
|
|
862
|
+
Tue, 27 Jun 2023 11:21:23 GMT
|
|
849
863
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.3..@fluentui/react-drawer_v9.0.0-beta.4)
|
|
850
864
|
|
|
851
865
|
### Changes
|
|
@@ -854,7 +868,7 @@ Tue, 27 Jun 2023 11:21:23 GMT
|
|
|
854
868
|
|
|
855
869
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.3)
|
|
856
870
|
|
|
857
|
-
Mon, 26 Jun 2023 09:53:54 GMT
|
|
871
|
+
Mon, 26 Jun 2023 09:53:54 GMT
|
|
858
872
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.2..@fluentui/react-drawer_v9.0.0-beta.3)
|
|
859
873
|
|
|
860
874
|
### Changes
|
|
@@ -866,7 +880,7 @@ Mon, 26 Jun 2023 09:53:54 GMT
|
|
|
866
880
|
|
|
867
881
|
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.2)
|
|
868
882
|
|
|
869
|
-
Tue, 20 Jun 2023 12:39:07 GMT
|
|
883
|
+
Tue, 20 Jun 2023 12:39:07 GMT
|
|
870
884
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.1..@fluentui/react-drawer_v9.0.0-beta.2)
|
|
871
885
|
|
|
872
886
|
### Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare type DrawerBaseProps = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
declare type DrawerBaseState = Required<Pick<DrawerBaseProps, 'position' | 'size'>> & {
|
|
47
|
-
motion: MotionState<
|
|
47
|
+
motion: MotionState<HTMLElement>;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -186,18 +186,13 @@ export declare type DrawerProps = ComponentProps<DrawerSlots> & {
|
|
|
186
186
|
* @default overlay
|
|
187
187
|
*/
|
|
188
188
|
type?: 'inline' | 'overlay';
|
|
189
|
-
};
|
|
189
|
+
} & (OverlayDrawerProps | InlineDrawerProps);
|
|
190
190
|
|
|
191
191
|
export declare const DrawerProvider: React_2.Provider<DrawerContextValue | undefined>;
|
|
192
192
|
|
|
193
193
|
declare type DrawerScrollState = 'none' | 'top' | 'middle' | 'bottom';
|
|
194
194
|
|
|
195
|
-
export declare type DrawerSlots =
|
|
196
|
-
/**
|
|
197
|
-
* Root slot of the Drawer.
|
|
198
|
-
*/
|
|
199
|
-
root: Slot<OverlayDrawerProps | InlineDrawerProps>;
|
|
200
|
-
};
|
|
195
|
+
export declare type DrawerSlots = OverlayDrawerSlots | InlineDrawerSlots;
|
|
201
196
|
|
|
202
197
|
/**
|
|
203
198
|
* State used in rendering Drawer
|
|
@@ -225,7 +220,7 @@ export declare type InlineDrawerProps = ComponentProps<InlineDrawerSlots> & Draw
|
|
|
225
220
|
};
|
|
226
221
|
|
|
227
222
|
export declare type InlineDrawerSlots = {
|
|
228
|
-
root: Slot<'div'>;
|
|
223
|
+
root: Slot<'div', 'aside'>;
|
|
229
224
|
};
|
|
230
225
|
|
|
231
226
|
/**
|
|
@@ -304,17 +299,19 @@ export declare type OverlayDrawerSlots = {
|
|
|
304
299
|
/**
|
|
305
300
|
* State used in rendering OverlayDrawer
|
|
306
301
|
*/
|
|
307
|
-
export declare type OverlayDrawerState =
|
|
302
|
+
export declare type OverlayDrawerState = ComponentState<OverlayDrawerInternalSlots> & Required<DrawerBaseState>;
|
|
308
303
|
|
|
309
304
|
/**
|
|
310
305
|
* OverlayDrawerSurface Props
|
|
311
306
|
*/
|
|
312
|
-
declare type OverlayDrawerSurfaceProps = DialogSurfaceProps
|
|
307
|
+
declare type OverlayDrawerSurfaceProps = ComponentProps<OverlayDrawerSurfaceSlots> & Pick<DialogSurfaceProps, 'mountNode'>;
|
|
313
308
|
|
|
314
309
|
/**
|
|
315
310
|
* OverlayDrawerSurface slots
|
|
316
311
|
*/
|
|
317
|
-
declare type OverlayDrawerSurfaceSlots = DialogSurfaceSlots
|
|
312
|
+
declare type OverlayDrawerSurfaceSlots = Pick<DialogSurfaceSlots, 'backdrop'> & {
|
|
313
|
+
root: Slot<'div', 'aside'>;
|
|
314
|
+
};
|
|
318
315
|
|
|
319
316
|
/**
|
|
320
317
|
* Render the final JSX of Drawer
|
|
@@ -465,7 +462,7 @@ export declare const useDrawerStyles_unstable: (state: DrawerState) => DrawerSta
|
|
|
465
462
|
* @param props - props from this instance of InlineDrawer
|
|
466
463
|
* @param ref - reference to root HTMLElement of InlineDrawer
|
|
467
464
|
*/
|
|
468
|
-
export declare const useInlineDrawer_unstable: (props: InlineDrawerProps, ref: React_2.Ref<
|
|
465
|
+
export declare const useInlineDrawer_unstable: (props: InlineDrawerProps, ref: React_2.Ref<HTMLElement>) => InlineDrawerState;
|
|
469
466
|
|
|
470
467
|
/**
|
|
471
468
|
* Apply styling to the InlineDrawer slots based on the state
|
|
@@ -479,9 +476,9 @@ export declare const useInlineDrawerStyles_unstable: (state: InlineDrawerState)
|
|
|
479
476
|
* before being passed to renderOverlayDrawer_unstable.
|
|
480
477
|
*
|
|
481
478
|
* @param props - props from this instance of OverlayDrawer
|
|
482
|
-
* @param ref - reference to root
|
|
479
|
+
* @param ref - reference to root HTMLElement of OverlayDrawer
|
|
483
480
|
*/
|
|
484
|
-
export declare const useOverlayDrawer_unstable: (props: OverlayDrawerProps, ref: React_2.Ref<
|
|
481
|
+
export declare const useOverlayDrawer_unstable: (props: OverlayDrawerProps, ref: React_2.Ref<HTMLElement>) => OverlayDrawerState;
|
|
485
482
|
|
|
486
483
|
/**
|
|
487
484
|
* Apply styling to the OverlayDrawer slots based on the state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Drawer.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState
|
|
1
|
+
{"version":3,"sources":["Drawer.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState } from '@fluentui/react-utilities';\n\nimport type { OverlayDrawerProps, OverlayDrawerSlots } from '../OverlayDrawer';\nimport type { InlineDrawerProps, InlineDrawerSlots } from '../InlineDrawer';\n\nexport type DrawerSlots = OverlayDrawerSlots | InlineDrawerSlots;\n\n/**\n * Drawer Props\n */\nexport type DrawerProps = ComponentProps<DrawerSlots> & {\n /**\n * Type of the drawer.\n *\n * - 'overlay' - Drawer is hidden by default and can be opened by clicking on the trigger.\n * - 'inline' - Drawer is stacked with the content\n *\n * @default overlay\n */\n type?: 'inline' | 'overlay';\n} & (OverlayDrawerProps | InlineDrawerProps);\n\n/**\n * State used in rendering Drawer\n */\nexport type DrawerState = ComponentState<DrawerSlots>;\n"],"names":[],"mappings":"AAAA,WAyBsD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDrawer.ts"],"sourcesContent":["import * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\n\nimport type { DrawerProps, DrawerState } from './Drawer.types';\nimport { OverlayDrawer } from '../OverlayDrawer';\nimport { InlineDrawer } from '../InlineDrawer';\n\n/**\n * Create the state required to render Drawer.\n *\n * The returned state can be modified with hooks such as useDrawerStyles_unstable,\n * before being passed to renderDrawer_unstable.\n *\n * @param props - props from this instance of Drawer\n * @param ref - reference to root HTMLElement of Drawer\n */\nexport const useDrawer_unstable = (props: DrawerProps, ref: React.Ref<HTMLElement>): DrawerState => {\n const elementType = props.type === 'inline' ? InlineDrawer : OverlayDrawer;\n\n return {\n components: {\n root: elementType,\n },\n\n root: slot.always
|
|
1
|
+
{"version":3,"sources":["useDrawer.ts"],"sourcesContent":["import * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\n\nimport type { DrawerProps, DrawerState } from './Drawer.types';\nimport { OverlayDrawer } from '../OverlayDrawer';\nimport { InlineDrawer } from '../InlineDrawer';\n\n/**\n * Create the state required to render Drawer.\n *\n * The returned state can be modified with hooks such as useDrawerStyles_unstable,\n * before being passed to renderDrawer_unstable.\n *\n * @param props - props from this instance of Drawer\n * @param ref - reference to root HTMLElement of Drawer\n */\nexport const useDrawer_unstable = (props: DrawerProps, ref: React.Ref<HTMLElement>): DrawerState => {\n const elementType = props.type === 'inline' ? InlineDrawer : OverlayDrawer;\n\n return {\n components: {\n root: elementType,\n },\n\n root: slot.always(\n {\n ref,\n ...props,\n },\n {\n elementType,\n },\n ),\n };\n};\n"],"names":["React","slot","OverlayDrawer","InlineDrawer","useDrawer_unstable","props","ref","elementType","type","components","root","always"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,IAAI,QAAQ,4BAA4B;AAGjD,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,YAAY,QAAQ,kBAAkB;AAE/C;;;;;;;;CAQC,GACD,OAAO,MAAMC,qBAAqB,CAACC,OAAoBC;IACrD,MAAMC,cAAcF,MAAMG,IAAI,KAAK,WAAWL,eAAeD;IAE7D,OAAO;QACLO,YAAY;YACVC,MAAMH;QACR;QAEAG,MAAMT,KAAKU,MAAM,CACf;YACEL;YACA,GAAGD,KAAK;QACV,GACA;YACEE;QACF;IAEJ;AACF,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["InlineDrawer.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nimport { DrawerBaseProps, DrawerBaseState } from '../../shared/DrawerBase.types';\n\nexport type InlineDrawerSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * InlineDrawer Props\n */\nexport type InlineDrawerProps = ComponentProps<InlineDrawerSlots> &\n DrawerBaseProps & {\n /**\n * Whether the drawer has a separator line.\n *\n * @default false\n */\n separator?: boolean;\n };\n\n/**\n * State used in rendering InlineDrawer\n */\nexport type InlineDrawerState = Required<\n ComponentState<InlineDrawerSlots> & DrawerBaseState & Pick<InlineDrawerProps, 'separator'>\n>;\n"],"names":[],"mappings":"AAAA,WA0BE"}
|
|
1
|
+
{"version":3,"sources":["InlineDrawer.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nimport { DrawerBaseProps, DrawerBaseState } from '../../shared/DrawerBase.types';\n\nexport type InlineDrawerSlots = {\n root: Slot<'div', 'aside'>;\n};\n\n/**\n * InlineDrawer Props\n */\nexport type InlineDrawerProps = ComponentProps<InlineDrawerSlots> &\n DrawerBaseProps & {\n /**\n * Whether the drawer has a separator line.\n *\n * @default false\n */\n separator?: boolean;\n };\n\n/**\n * State used in rendering InlineDrawer\n */\nexport type InlineDrawerState = Required<\n ComponentState<InlineDrawerSlots> & DrawerBaseState & Pick<InlineDrawerProps, 'separator'>\n>;\n"],"names":[],"mappings":"AAAA,WA0BE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useInlineDrawer.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { useMotion } from '@fluentui/react-motion-preview';\n\nimport type { InlineDrawerProps, InlineDrawerState } from './InlineDrawer.types';\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\n\n/**\n * Create the state required to render InlineDrawer.\n *\n * The returned state can be modified with hooks such as useInlineDrawerStyles_unstable,\n * before being passed to renderInlineDrawer_unstable.\n *\n * @param props - props from this instance of InlineDrawer\n * @param ref - reference to root HTMLElement of InlineDrawer\n */\nexport const useInlineDrawer_unstable = (
|
|
1
|
+
{"version":3,"sources":["useInlineDrawer.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { useMotion } from '@fluentui/react-motion-preview';\n\nimport type { InlineDrawerProps, InlineDrawerState } from './InlineDrawer.types';\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\n\n/**\n * Create the state required to render InlineDrawer.\n *\n * The returned state can be modified with hooks such as useInlineDrawerStyles_unstable,\n * before being passed to renderInlineDrawer_unstable.\n *\n * @param props - props from this instance of InlineDrawer\n * @param ref - reference to root HTMLElement of InlineDrawer\n */\nexport const useInlineDrawer_unstable = (props: InlineDrawerProps, ref: React.Ref<HTMLElement>): InlineDrawerState => {\n const { size, position, open } = useDrawerDefaultProps(props);\n const { separator = false } = props;\n\n const motion = useMotion<HTMLElement>(open);\n\n return {\n components: {\n root: 'div',\n },\n\n root: slot.always(\n getIntrinsicElementProps('div', {\n ...props,\n ref: useMergedRefs(ref, motion.ref),\n }),\n { elementType: 'div' },\n ),\n\n size,\n position,\n separator,\n motion,\n };\n};\n"],"names":["React","getIntrinsicElementProps","slot","useMergedRefs","useMotion","useDrawerDefaultProps","useInlineDrawer_unstable","props","ref","size","position","open","separator","motion","components","root","always","elementType"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,EAAEC,aAAa,QAAQ,4BAA4B;AAC1F,SAASC,SAAS,QAAQ,iCAAiC;AAG3D,SAASC,qBAAqB,QAAQ,qCAAqC;AAE3E;;;;;;;;CAQC,GACD,OAAO,MAAMC,2BAA2B,CAACC,OAA0BC;IACjE,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGN,sBAAsBE;IACvD,MAAM,EAAEK,YAAY,KAAK,EAAE,GAAGL;IAE9B,MAAMM,SAAST,UAAuBO;IAEtC,OAAO;QACLG,YAAY;YACVC,MAAM;QACR;QAEAA,MAAMb,KAAKc,MAAM,CACff,yBAAyB,OAAO;YAC9B,GAAGM,KAAK;YACRC,KAAKL,cAAcK,KAAKK,OAAOL,GAAG;QACpC,IACA;YAAES,aAAa;QAAM;QAGvBR;QACAC;QACAE;QACAC;IACF;AACF,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__resetStyles","__styles","mergeClasses","tokens","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","useMotionClassNames","inlineDrawerClassNames","root","useDrawerResetStyles","borderValue","colorNeutralBackground3","useDrawerRootStyles","separatorStart","h3c5rm","vrafjx","Bekrc4i","u1mtju","separatorEnd","zhjwy3","wvpqe5","ibv6hh","B4g9neb","separatorBottom","g2u3we","icvyot","B4j52fo","i8vvqc","start","Bz10aip","end","bottom","a9b677","Bqenvij","d","p","useDrawerMotionStyles","abs64n","Bmy1vo4","Es3by","enter","getSeparatorClass","state","classNames","separator","undefined","position","useInlineDrawerStyles_unstable","resetStyles","baseClassNames","rootStyles","motionClassNames","motion","className"],"sources":["useInlineDrawerStyles.styles.js"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\nimport { useMotionClassNames } from '@fluentui/react-motion-preview';\nexport const inlineDrawerClassNames = {\n root: 'fui-InlineDrawer'\n};\nconst useDrawerResetStyles = makeResetStyles({\n ...drawerDefaultStyles,\n position: 'relative'\n});\n/**\n * Styles for the root slot\n */ const borderValue = `1px solid ${tokens.colorNeutralBackground3}`;\nconst useDrawerRootStyles = makeStyles({\n /* Separator */ separatorStart: {\n borderRight: borderValue\n },\n separatorEnd: {\n borderLeft: borderValue\n },\n separatorBottom: {\n borderTop: borderValue\n },\n /* Positioning */ start: {\n transform: `translate3D(calc(var(${drawerCSSVars.drawerSizeVar}) * -1), 0, 0)`\n },\n end: {\n transform: `translate3D(var(${drawerCSSVars.drawerSizeVar}), 0, 0)`\n },\n bottom: {\n transform: `translate3D(0, var(${drawerCSSVars.drawerSizeVar}), 0)`,\n width: '100%',\n height: `var(${drawerCSSVars.drawerSizeVar})`\n }\n});\nconst useDrawerMotionStyles = makeStyles({\n default: {\n opacity: 0,\n transitionProperty: 'opacity, transform',\n willChange: 'opacity, transform'\n },\n enter: {\n opacity: 1,\n transform: 'translate3D(0, 0, 0)'\n }\n});\nfunction getSeparatorClass(state, classNames) {\n if (!state.separator) {\n return undefined;\n }\n switch(state.position){\n case 'start':\n return classNames.separatorStart;\n case 'end':\n return classNames.separatorEnd;\n case 'bottom':\n return classNames.separatorBottom;\n default:\n return undefined;\n }\n}\n/**\n * Apply styling to the InlineDrawer slots based on the state\n */ export const useInlineDrawerStyles_unstable = (state)=>{\n const resetStyles = useDrawerResetStyles();\n const baseClassNames = useDrawerBaseClassNames(state);\n const rootStyles = useDrawerRootStyles();\n const motionClassNames = useMotionClassNames(state.motion, useDrawerMotionStyles());\n state.root.className = mergeClasses(inlineDrawerClassNames.root, resetStyles, baseClassNames, getSeparatorClass(state, rootStyles), rootStyles[state.position], motionClassNames, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,aAAA,EAAAC,QAAA,EAAsCC,YAAY,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,uBAAuB,QAAQ,yCAAyC;AACrH,SAASC,mBAAmB,QAAQ,gCAAgC;AACpE,OAAO,MAAMC,sBAAsB,GAAG;EAClCC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,oBAAoB,gBAAGV,aAAA,6UAG5B,CAAC;AACF;AACA;AACA;AAAI,MAAMW,WAAW,
|
|
1
|
+
{"version":3,"names":["__resetStyles","__styles","mergeClasses","tokens","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","useMotionClassNames","inlineDrawerClassNames","root","useDrawerResetStyles","borderValue","colorNeutralBackground3","useDrawerRootStyles","separatorStart","h3c5rm","vrafjx","Bekrc4i","u1mtju","separatorEnd","zhjwy3","wvpqe5","ibv6hh","B4g9neb","separatorBottom","g2u3we","icvyot","B4j52fo","i8vvqc","start","Bz10aip","end","bottom","a9b677","Bqenvij","d","p","useDrawerMotionStyles","abs64n","Bmy1vo4","Es3by","enter","getSeparatorClass","state","classNames","separator","undefined","position","useInlineDrawerStyles_unstable","resetStyles","baseClassNames","rootStyles","motionClassNames","motion","className"],"sources":["useInlineDrawerStyles.styles.js"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\nimport { useMotionClassNames } from '@fluentui/react-motion-preview';\nexport const inlineDrawerClassNames = {\n root: 'fui-InlineDrawer'\n};\nconst useDrawerResetStyles = makeResetStyles({\n ...drawerDefaultStyles,\n position: 'relative'\n});\n/**\n * Styles for the root slot\n */ const borderValue = `1px solid ${tokens.colorNeutralBackground3}`;\nconst useDrawerRootStyles = makeStyles({\n /* Separator */ separatorStart: {\n borderRight: borderValue\n },\n separatorEnd: {\n borderLeft: borderValue\n },\n separatorBottom: {\n borderTop: borderValue\n },\n /* Positioning */ start: {\n transform: `translate3D(calc(var(${drawerCSSVars.drawerSizeVar}) * -1), 0, 0)`\n },\n end: {\n transform: `translate3D(var(${drawerCSSVars.drawerSizeVar}), 0, 0)`\n },\n bottom: {\n transform: `translate3D(0, var(${drawerCSSVars.drawerSizeVar}), 0)`,\n width: '100%',\n height: `var(${drawerCSSVars.drawerSizeVar})`\n }\n});\nconst useDrawerMotionStyles = makeStyles({\n default: {\n opacity: 0,\n transitionProperty: 'opacity, transform',\n willChange: 'opacity, transform'\n },\n enter: {\n opacity: 1,\n transform: 'translate3D(0, 0, 0)'\n }\n});\nfunction getSeparatorClass(state, classNames) {\n if (!state.separator) {\n return undefined;\n }\n switch(state.position){\n case 'start':\n return classNames.separatorStart;\n case 'end':\n return classNames.separatorEnd;\n case 'bottom':\n return classNames.separatorBottom;\n default:\n return undefined;\n }\n}\n/**\n * Apply styling to the InlineDrawer slots based on the state\n */ export const useInlineDrawerStyles_unstable = (state)=>{\n const resetStyles = useDrawerResetStyles();\n const baseClassNames = useDrawerBaseClassNames(state);\n const rootStyles = useDrawerRootStyles();\n const motionClassNames = useMotionClassNames(state.motion, useDrawerMotionStyles());\n state.root.className = mergeClasses(inlineDrawerClassNames.root, resetStyles, baseClassNames, getSeparatorClass(state, rootStyles), rootStyles[state.position], motionClassNames, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,aAAA,EAAAC,QAAA,EAAsCC,YAAY,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,uBAAuB,QAAQ,yCAAyC;AACrH,SAASC,mBAAmB,QAAQ,gCAAgC;AACpE,OAAO,MAAMC,sBAAsB,GAAG;EAClCC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,oBAAoB,gBAAGV,aAAA,6UAG5B,CAAC;AACF;AACA;AACA;AAAI,MAAMW,WAAW,GAAG,aAAaR,MAAM,CAACS,uBAAuB,EAAE;AACrE,MAAMC,mBAAmB,gBAAGZ,QAAA;EAAAa,cAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,YAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,eAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,KAAA;IAAAC,OAAA;EAAA;EAAAC,GAAA;IAAAD,OAAA;EAAA;EAAAE,MAAA;IAAAF,OAAA;IAAAG,MAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;IAAAC,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,CAqB3B,CAAC;AACF,MAAMC,qBAAqB,gBAAGpC,QAAA;EAAA;IAAAqC,MAAA;IAAAC,OAAA;IAAAC,KAAA;EAAA;EAAAC,KAAA;IAAAH,MAAA;IAAAR,OAAA;EAAA;AAAA;EAAAK,CAAA;AAAA,CAU7B,CAAC;AACF,SAASO,iBAAiBA,CAACC,KAAK,EAAEC,UAAU,EAAE;EAC1C,IAAI,CAACD,KAAK,CAACE,SAAS,EAAE;IAClB,OAAOC,SAAS;EACpB;EACA,QAAOH,KAAK,CAACI,QAAQ;IACjB,KAAK,OAAO;MACR,OAAOH,UAAU,CAAC9B,cAAc;IACpC,KAAK,KAAK;MACN,OAAO8B,UAAU,CAACzB,YAAY;IAClC,KAAK,QAAQ;MACT,OAAOyB,UAAU,CAACpB,eAAe;IACrC;MACI,OAAOsB,SAAS;EACxB;AACJ;AACA;AACA;AACA;AAAI,OAAO,MAAME,8BAA8B,GAAIL,KAAK,IAAG;EACvD,MAAMM,WAAW,GAAGvC,oBAAoB,CAAC,CAAC;EAC1C,MAAMwC,cAAc,GAAG5C,uBAAuB,CAACqC,KAAK,CAAC;EACrD,MAAMQ,UAAU,GAAGtC,mBAAmB,CAAC,CAAC;EACxC,MAAMuC,gBAAgB,GAAG7C,mBAAmB,CAACoC,KAAK,CAACU,MAAM,EAAEhB,qBAAqB,CAAC,CAAC,CAAC;EACnFM,KAAK,CAAClC,IAAI,CAAC6C,SAAS,GAAGpD,YAAY,CAACM,sBAAsB,CAACC,IAAI,EAAEwC,WAAW,EAAEC,cAAc,EAAER,iBAAiB,CAACC,KAAK,EAAEQ,UAAU,CAAC,EAAEA,UAAU,CAACR,KAAK,CAACI,QAAQ,CAAC,EAAEK,gBAAgB,EAAET,KAAK,CAAClC,IAAI,CAAC6C,SAAS,CAAC;EACvM,OAAOX,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["OverlayDrawer.types.ts"],"sourcesContent":["import type { DialogProps } from '@fluentui/react-dialog';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nimport type { DrawerBaseProps, DrawerBaseState } from '../../shared/DrawerBase.types';\nimport { OverlayDrawerSurfaceProps } from './OverlayDrawerSurface';\n\n/**\n * OverlayDrawer slots\n */\nexport type OverlayDrawerSlots = {\n /**\n * Slot for the root element.\n */\n root: Slot<OverlayDrawerSurfaceProps>;\n};\n\n/**\n * OverlayDrawer internal slots for when using with composition API\n */\nexport type OverlayDrawerInternalSlots = OverlayDrawerSlots & {\n /**\n * Slot for the dialog component that wraps the drawer.\n */\n dialog: Slot<DialogProps>;\n};\n\n/**\n * OverlayDrawer Props\n */\nexport type OverlayDrawerProps = ComponentProps<OverlayDrawerSlots> &\n Pick<DialogProps, 'modalType' | 'onOpenChange' | 'inertTrapFocus'> &\n DrawerBaseProps & {\n /**\n * @deprecated OverlayDrawer can work only as a controlled component\n * and does not support uncontrolled mode i.e. defaultOpen prop\n */\n defaultOpen?: boolean;\n };\n\n/**\n * State used in rendering OverlayDrawer\n */\nexport type OverlayDrawerState =
|
|
1
|
+
{"version":3,"sources":["OverlayDrawer.types.ts"],"sourcesContent":["import type { DialogProps } from '@fluentui/react-dialog';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nimport type { DrawerBaseProps, DrawerBaseState } from '../../shared/DrawerBase.types';\nimport { OverlayDrawerSurfaceProps } from './OverlayDrawerSurface';\n\n/**\n * OverlayDrawer slots\n */\nexport type OverlayDrawerSlots = {\n /**\n * Slot for the root element.\n */\n root: Slot<OverlayDrawerSurfaceProps>;\n};\n\n/**\n * OverlayDrawer internal slots for when using with composition API\n */\nexport type OverlayDrawerInternalSlots = OverlayDrawerSlots & {\n /**\n * Slot for the dialog component that wraps the drawer.\n */\n dialog: Slot<DialogProps>;\n};\n\n/**\n * OverlayDrawer Props\n */\nexport type OverlayDrawerProps = ComponentProps<OverlayDrawerSlots> &\n Pick<DialogProps, 'modalType' | 'onOpenChange' | 'inertTrapFocus'> &\n DrawerBaseProps & {\n /**\n * @deprecated OverlayDrawer can work only as a controlled component\n * and does not support uncontrolled mode i.e. defaultOpen prop\n */\n defaultOpen?: boolean;\n };\n\n/**\n * State used in rendering OverlayDrawer\n */\nexport type OverlayDrawerState = ComponentState<OverlayDrawerInternalSlots> & Required<DrawerBaseState>;\n"],"names":[],"mappings":"AAAA,WA0CwG"}
|
|
@@ -5,7 +5,15 @@ import { useOverlayDrawerSurfaceStyles_unstable } from './useOverlayDrawerSurfac
|
|
|
5
5
|
* @internal
|
|
6
6
|
* OverlayDrawerSurface is a proxy for DialogSurface as is only meant to be used internally for Drawer.
|
|
7
7
|
*/ export const OverlayDrawerSurface = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
|
-
const dialogSurfaceState = useDialogSurface_unstable(
|
|
8
|
+
const dialogSurfaceState = useDialogSurface_unstable({
|
|
9
|
+
...props,
|
|
10
|
+
/**
|
|
11
|
+
* Drawer accepts a `div` or `aside` element type, but Dialog only accepts a `div` element type.
|
|
12
|
+
* We need to cast the ref to a `div` element type to not break Dialog's ref type.
|
|
13
|
+
*
|
|
14
|
+
* FIXME: Evaluate the possibility to remove this cast when Dialog is refactored to accept `aside` elements.
|
|
15
|
+
*/ as: props.as
|
|
16
|
+
}, ref);
|
|
9
17
|
const dialogSurfaceContextValues = useDialogSurfaceContextValues_unstable(dialogSurfaceState);
|
|
10
18
|
useOverlayDrawerSurfaceStyles_unstable(dialogSurfaceState);
|
|
11
19
|
return renderDialogSurface_unstable(dialogSurfaceState, dialogSurfaceContextValues);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["OverlayDrawerSurface.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport {\n useDialogSurface_unstable,\n useDialogSurfaceContextValues_unstable,\n renderDialogSurface_unstable,\n} from '@fluentui/react-dialog';\n\nimport { useOverlayDrawerSurfaceStyles_unstable } from './useOverlayDrawerSurfaceStyles.styles';\nimport type { OverlayDrawerSurfaceProps } from './OverlayDrawerSurface.types';\n\n/**\n * @internal\n * OverlayDrawerSurface is a proxy for DialogSurface as is only meant to be used internally for Drawer.\n */\nexport const OverlayDrawerSurface: ForwardRefComponent<OverlayDrawerSurfaceProps> = React.forwardRef((props, ref) => {\n const dialogSurfaceState = useDialogSurface_unstable(props, ref);\n const dialogSurfaceContextValues = useDialogSurfaceContextValues_unstable(dialogSurfaceState);\n\n useOverlayDrawerSurfaceStyles_unstable(dialogSurfaceState);\n\n return renderDialogSurface_unstable(dialogSurfaceState, dialogSurfaceContextValues);\n});\n\nOverlayDrawerSurface.displayName = 'OverlayDrawerSurface';\n"],"names":["React","useDialogSurface_unstable","useDialogSurfaceContextValues_unstable","renderDialogSurface_unstable","useOverlayDrawerSurfaceStyles_unstable","OverlayDrawerSurface","forwardRef","props","ref","dialogSurfaceState","dialogSurfaceContextValues","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SACEC,yBAAyB,EACzBC,sCAAsC,EACtCC,4BAA4B,QACvB,yBAAyB;AAEhC,SAASC,sCAAsC,QAAQ,yCAAyC;AAGhG;;;CAGC,GACD,OAAO,MAAMC,qCAAuEL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC3G,MAAMC,qBAAqBR,
|
|
1
|
+
{"version":3,"sources":["OverlayDrawerSurface.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport {\n useDialogSurface_unstable,\n useDialogSurfaceContextValues_unstable,\n renderDialogSurface_unstable,\n} from '@fluentui/react-dialog';\n\nimport { useOverlayDrawerSurfaceStyles_unstable } from './useOverlayDrawerSurfaceStyles.styles';\nimport type { OverlayDrawerSurfaceProps } from './OverlayDrawerSurface.types';\n\n/**\n * @internal\n * OverlayDrawerSurface is a proxy for DialogSurface as is only meant to be used internally for Drawer.\n */\nexport const OverlayDrawerSurface: ForwardRefComponent<OverlayDrawerSurfaceProps> = React.forwardRef((props, ref) => {\n const dialogSurfaceState = useDialogSurface_unstable(\n {\n ...props,\n /**\n * Drawer accepts a `div` or `aside` element type, but Dialog only accepts a `div` element type.\n * We need to cast the ref to a `div` element type to not break Dialog's ref type.\n *\n * FIXME: Evaluate the possibility to remove this cast when Dialog is refactored to accept `aside` elements.\n */\n as: props.as as 'div',\n },\n ref,\n );\n const dialogSurfaceContextValues = useDialogSurfaceContextValues_unstable(dialogSurfaceState);\n\n useOverlayDrawerSurfaceStyles_unstable(dialogSurfaceState);\n\n return renderDialogSurface_unstable(dialogSurfaceState, dialogSurfaceContextValues);\n});\n\nOverlayDrawerSurface.displayName = 'OverlayDrawerSurface';\n"],"names":["React","useDialogSurface_unstable","useDialogSurfaceContextValues_unstable","renderDialogSurface_unstable","useOverlayDrawerSurfaceStyles_unstable","OverlayDrawerSurface","forwardRef","props","ref","dialogSurfaceState","as","dialogSurfaceContextValues","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SACEC,yBAAyB,EACzBC,sCAAsC,EACtCC,4BAA4B,QACvB,yBAAyB;AAEhC,SAASC,sCAAsC,QAAQ,yCAAyC;AAGhG;;;CAGC,GACD,OAAO,MAAMC,qCAAuEL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC3G,MAAMC,qBAAqBR,0BACzB;QACE,GAAGM,KAAK;QACR;;;;;OAKC,GACDG,IAAIH,MAAMG,EAAE;IACd,GACAF;IAEF,MAAMG,6BAA6BT,uCAAuCO;IAE1EL,uCAAuCK;IAEvC,OAAON,6BAA6BM,oBAAoBE;AAC1D,GAAG;AAEHN,qBAAqBO,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["OverlayDrawerSurface.types.ts"],"sourcesContent":["import type { DialogSurfaceProps, DialogSurfaceSlots
|
|
1
|
+
{"version":3,"sources":["OverlayDrawerSurface.types.ts"],"sourcesContent":["import type { DialogSurfaceProps, DialogSurfaceSlots } from '@fluentui/react-dialog';\nimport type { ComponentProps, Slot } from '@fluentui/react-utilities';\n\n/**\n * OverlayDrawerSurface slots\n */\nexport type OverlayDrawerSurfaceSlots = Pick<DialogSurfaceSlots, 'backdrop'> & {\n root: Slot<'div', 'aside'>;\n};\n\n/**\n * OverlayDrawerSurface Props\n */\nexport type OverlayDrawerSurfaceProps = ComponentProps<OverlayDrawerSurfaceSlots> &\n Pick<DialogSurfaceProps, 'mountNode'>;\n"],"names":[],"mappings":"AAAA,WAcwC"}
|
|
@@ -11,7 +11,7 @@ import { OverlayDrawerSurface } from './OverlayDrawerSurface';
|
|
|
11
11
|
* before being passed to renderOverlayDrawer_unstable.
|
|
12
12
|
*
|
|
13
13
|
* @param props - props from this instance of OverlayDrawer
|
|
14
|
-
* @param ref - reference to root
|
|
14
|
+
* @param ref - reference to root HTMLElement of OverlayDrawer
|
|
15
15
|
*/ export const useOverlayDrawer_unstable = (props, ref)=>{
|
|
16
16
|
const { open, size, position } = useDrawerDefaultProps(props);
|
|
17
17
|
const { modalType = 'modal', inertTrapFocus, onOpenChange } = props;
|
|
@@ -20,14 +20,15 @@ import { OverlayDrawerSurface } from './OverlayDrawerSurface';
|
|
|
20
20
|
const hasCustomBackdrop = modalType !== 'non-modal' && backdropProps !== null;
|
|
21
21
|
const root = slot.always({
|
|
22
22
|
...props,
|
|
23
|
+
ref: useMergedRefs(ref, motion.ref),
|
|
23
24
|
backdrop: hasCustomBackdrop ? {
|
|
24
25
|
...backdropProps
|
|
25
26
|
} : null
|
|
26
27
|
}, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Drawer accepts a `div` or `aside` element type, but Dialog only accepts a `div` element type.
|
|
30
|
+
* We need to cast the ref to a `div` element type to not break Dialog's ref type.
|
|
31
|
+
*/ elementType: OverlayDrawerSurface
|
|
31
32
|
});
|
|
32
33
|
const dialog = slot.always({
|
|
33
34
|
open,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useOverlayDrawer.ts"],"sourcesContent":["import * as React from 'react';\nimport { slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { useMotion } from '@fluentui/react-motion-preview';\n\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\nimport type { OverlayDrawerProps, OverlayDrawerState } from './OverlayDrawer.types';\nimport { OverlayDrawerDialog } from './OverlayDrawerDialog';\nimport { OverlayDrawerSurface } from './OverlayDrawerSurface';\n\n/**\n * Create the state required to render OverlayDrawer.\n *\n * The returned state can be modified with hooks such as useOverlayDrawerStyles_unstable,\n * before being passed to renderOverlayDrawer_unstable.\n *\n * @param props - props from this instance of OverlayDrawer\n * @param ref - reference to root
|
|
1
|
+
{"version":3,"sources":["useOverlayDrawer.ts"],"sourcesContent":["import * as React from 'react';\nimport { slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { useMotion } from '@fluentui/react-motion-preview';\n\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\nimport type { OverlayDrawerProps, OverlayDrawerState } from './OverlayDrawer.types';\nimport { OverlayDrawerDialog } from './OverlayDrawerDialog';\nimport { OverlayDrawerSurface } from './OverlayDrawerSurface';\n\n/**\n * Create the state required to render OverlayDrawer.\n *\n * The returned state can be modified with hooks such as useOverlayDrawerStyles_unstable,\n * before being passed to renderOverlayDrawer_unstable.\n *\n * @param props - props from this instance of OverlayDrawer\n * @param ref - reference to root HTMLElement of OverlayDrawer\n */\nexport const useOverlayDrawer_unstable = (\n props: OverlayDrawerProps,\n ref: React.Ref<HTMLElement>,\n): OverlayDrawerState => {\n const { open, size, position } = useDrawerDefaultProps(props);\n const { modalType = 'modal', inertTrapFocus, onOpenChange } = props;\n\n const motion = useMotion<HTMLElement>(open);\n\n const backdropProps = slot.resolveShorthand(props.backdrop);\n const hasCustomBackdrop = modalType !== 'non-modal' && backdropProps !== null;\n\n const root = slot.always(\n {\n ...props,\n ref: useMergedRefs(ref, motion.ref),\n backdrop: hasCustomBackdrop ? { ...backdropProps } : null,\n },\n {\n /**\n * Drawer accepts a `div` or `aside` element type, but Dialog only accepts a `div` element type.\n * We need to cast the ref to a `div` element type to not break Dialog's ref type.\n */\n elementType: OverlayDrawerSurface as unknown as 'div',\n },\n );\n\n const dialog = slot.always(\n {\n open,\n onOpenChange,\n inertTrapFocus,\n modalType,\n /**\n * children is not needed here because we construct the children in the render function,\n * but it's required by DialogProps\n */\n children: null as unknown as JSX.Element,\n },\n {\n elementType: OverlayDrawerDialog,\n },\n );\n\n return {\n components: {\n root: OverlayDrawerSurface,\n dialog: OverlayDrawerDialog,\n },\n\n root,\n dialog,\n\n size,\n position,\n motion,\n };\n};\n"],"names":["React","slot","useMergedRefs","useMotion","useDrawerDefaultProps","OverlayDrawerDialog","OverlayDrawerSurface","useOverlayDrawer_unstable","props","ref","open","size","position","modalType","inertTrapFocus","onOpenChange","motion","backdropProps","resolveShorthand","backdrop","hasCustomBackdrop","root","always","elementType","dialog","children","components"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,IAAI,EAAEC,aAAa,QAAQ,4BAA4B;AAChE,SAASC,SAAS,QAAQ,iCAAiC;AAE3D,SAASC,qBAAqB,QAAQ,qCAAqC;AAE3E,SAASC,mBAAmB,QAAQ,wBAAwB;AAC5D,SAASC,oBAAoB,QAAQ,yBAAyB;AAE9D;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC;IAEA,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGR,sBAAsBI;IACvD,MAAM,EAAEK,YAAY,OAAO,EAAEC,cAAc,EAAEC,YAAY,EAAE,GAAGP;IAE9D,MAAMQ,SAASb,UAAuBO;IAEtC,MAAMO,gBAAgBhB,KAAKiB,gBAAgB,CAACV,MAAMW,QAAQ;IAC1D,MAAMC,oBAAoBP,cAAc,eAAeI,kBAAkB;IAEzE,MAAMI,OAAOpB,KAAKqB,MAAM,CACtB;QACE,GAAGd,KAAK;QACRC,KAAKP,cAAcO,KAAKO,OAAOP,GAAG;QAClCU,UAAUC,oBAAoB;YAAE,GAAGH,aAAa;QAAC,IAAI;IACvD,GACA;QACE;;;OAGC,GACDM,aAAajB;IACf;IAGF,MAAMkB,SAASvB,KAAKqB,MAAM,CACxB;QACEZ;QACAK;QACAD;QACAD;QACA;;;OAGC,GACDY,UAAU;IACZ,GACA;QACEF,aAAalB;IACf;IAGF,OAAO;QACLqB,YAAY;YACVL,MAAMf;YACNkB,QAAQnB;QACV;QAEAgB;QACAG;QAEAb;QACAC;QACAI;IACF;AACF,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["DrawerBase.types.ts"],"sourcesContent":["import * as React from 'react';\n\ntype MotionType = 'entering' | 'entered' | 'idle' | 'exiting' | 'exited' | 'unmounted';\n\ntype MotionState<Element extends HTMLElement = HTMLElement> = {\n /**\n * Ref to the element.\n */\n ref: React.Ref<Element>;\n\n /**\n * Current state of the element.\n *\n * - `unmounted` - The element is not yet rendered or can be safely removed from the DOM.\n * - `entering` - The element is performing enter animation.\n * - `entered` - The element has finished enter animation.\n * - `idle` - The element is currently not animating, but rendered on screen.\n * - `exiting` - The element is performing exit animation.\n * - `exited` - The element has finished exit animation.\n */\n type: MotionType;\n\n /**\n * Indicates whether the component can be rendered.\n * Useful to render the element before animating it or to remove it from the DOM after exit animation.\n */\n canRender: boolean;\n\n /**\n * Indicates whether the component is ready to receive a CSS transition className.\n * Useful to apply CSS transitions when the element is mounted and ready to be animated.\n */\n active: boolean;\n};\n\nexport type DrawerBaseProps = {\n /**\n * Position of the drawer.\n *\n * Note: 'bottom' does not supports size, but it supports customized height.\n *\n * @default 'start'\n */\n position?: 'start' | 'end' | 'bottom';\n\n /**\n * Size of the drawer.\n *\n * - 'small' - Drawer is 320px wide.\n * - 'medium' - Drawer is 592px wide.\n * - 'large' - Drawer is 940px wide.\n * - 'full' - Drawer is 100vw wide.\n *\n * @default 'small'\n */\n size?: 'small' | 'medium' | 'large' | 'full';\n\n /**\n * Controls the open state of the Drawer\n *\n * @default false\n */\n open?: boolean;\n};\n\nexport type DrawerBaseState = Required<Pick<DrawerBaseProps, 'position' | 'size'>> & {\n motion: MotionState<
|
|
1
|
+
{"version":3,"sources":["DrawerBase.types.ts"],"sourcesContent":["import * as React from 'react';\n\ntype MotionType = 'entering' | 'entered' | 'idle' | 'exiting' | 'exited' | 'unmounted';\n\ntype MotionState<Element extends HTMLElement = HTMLElement> = {\n /**\n * Ref to the element.\n */\n ref: React.Ref<Element>;\n\n /**\n * Current state of the element.\n *\n * - `unmounted` - The element is not yet rendered or can be safely removed from the DOM.\n * - `entering` - The element is performing enter animation.\n * - `entered` - The element has finished enter animation.\n * - `idle` - The element is currently not animating, but rendered on screen.\n * - `exiting` - The element is performing exit animation.\n * - `exited` - The element has finished exit animation.\n */\n type: MotionType;\n\n /**\n * Indicates whether the component can be rendered.\n * Useful to render the element before animating it or to remove it from the DOM after exit animation.\n */\n canRender: boolean;\n\n /**\n * Indicates whether the component is ready to receive a CSS transition className.\n * Useful to apply CSS transitions when the element is mounted and ready to be animated.\n */\n active: boolean;\n};\n\nexport type DrawerBaseProps = {\n /**\n * Position of the drawer.\n *\n * Note: 'bottom' does not supports size, but it supports customized height.\n *\n * @default 'start'\n */\n position?: 'start' | 'end' | 'bottom';\n\n /**\n * Size of the drawer.\n *\n * - 'small' - Drawer is 320px wide.\n * - 'medium' - Drawer is 592px wide.\n * - 'large' - Drawer is 940px wide.\n * - 'full' - Drawer is 100vw wide.\n *\n * @default 'small'\n */\n size?: 'small' | 'medium' | 'large' | 'full';\n\n /**\n * Controls the open state of the Drawer\n *\n * @default false\n */\n open?: boolean;\n};\n\nexport type DrawerBaseState = Required<Pick<DrawerBaseProps, 'position' | 'size'>> & {\n motion: MotionState<HTMLElement>;\n};\n\nexport type DrawerScrollState = 'none' | 'top' | 'middle' | 'bottom';\n"],"names":["React"],"mappings":"AAAA,YAAYA,WAAW,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__styles","mergeClasses","tokens","drawerCSSVars","drawerSizeVar","drawerDefaultStyles","overflow","width","maxWidth","height","maxHeight","boxSizing","display","flexDirection","alignItems","justifyContent","backgroundColor","colorNeutralBackground1","color","colorNeutralForeground1","useDrawerStyles","entering","Bkqvd7p","exiting","reducedMotion","Hwfdqs","start","h3c5rm","vrafjx","Bekrc4i","u1mtju","oyh7mz","j35jbq","end","zhjwy3","wvpqe5","ibv6hh","B4g9neb","bottom","B5kzvoi","Bhzewxz","small","Bjr0ffy","medium","large","full","d","p","m","useDrawerBottomBaseStyles","useDrawerDurationStyles","B3o57yi","useDrawerBaseClassNames","position","size","motion","baseStyles","bottomBaseStyles","durationStyles","type"],"sources":["useDrawerBaseStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\n/**\n * CSS variable names used internally for uniform styling in Drawer.\n */ export const drawerCSSVars = {\n drawerSizeVar: '--fui-Drawer--size'\n};\n/**\n * Default shared styles for the Drawer component\n */ export const drawerDefaultStyles = {\n overflow: 'hidden',\n width: `var(${drawerCSSVars.drawerSizeVar})`,\n maxWidth: '100vw',\n height: 'auto',\n maxHeight: '100vh',\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1\n};\n/**\n * Shared dynamic styles for the Drawer component\n */ const useDrawerStyles = makeStyles({\n /* Motion */ entering: {\n transitionTimingFunction: tokens.curveDecelerateMid\n },\n exiting: {\n transitionTimingFunction: tokens.curveAccelerateMin\n },\n reducedMotion: {\n '@media screen and (prefers-reduced-motion: reduce)': {\n transitionDuration: '0.001ms'\n }\n },\n /* Positioning */ start: {\n borderRight: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n left: 0,\n right: 'auto'\n },\n end: {\n borderLeft: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n right: 0,\n left: 'auto'\n },\n bottom: {\n bottom: 0,\n top: 'auto'\n },\n /* Sizes */ small: {\n [drawerCSSVars.drawerSizeVar]: '320px'\n },\n medium: {\n [drawerCSSVars.drawerSizeVar]: '592px'\n },\n large: {\n [drawerCSSVars.drawerSizeVar]: '940px'\n },\n full: {\n [drawerCSSVars.drawerSizeVar]: '100vw'\n }\n});\nexport const useDrawerBottomBaseStyles = makeStyles({\n /* Sizes for position bottom */ small: {\n [drawerCSSVars.drawerSizeVar]: '320px'\n },\n medium: {\n [drawerCSSVars.drawerSizeVar]: '592px'\n },\n large: {\n [drawerCSSVars.drawerSizeVar]: '940px'\n },\n full: {\n [drawerCSSVars.drawerSizeVar]: '100vh'\n }\n});\nexport const useDrawerDurationStyles = makeStyles({\n small: {\n transitionDuration: tokens.durationGentle\n },\n medium: {\n transitionDuration: tokens.durationSlow\n },\n large: {\n transitionDuration: tokens.durationSlower\n },\n full: {\n transitionDuration: tokens.durationUltraSlow\n }\n});\nexport const useDrawerBaseClassNames = ({ position, size, motion })=>{\n const baseStyles = useDrawerStyles();\n const bottomBaseStyles = useDrawerBottomBaseStyles();\n const durationStyles = useDrawerDurationStyles();\n return mergeClasses(baseStyles[position], position === 'bottom' && bottomBaseStyles[size], durationStyles[size], position !== 'bottom' && baseStyles[size], baseStyles.reducedMotion, motion.type === 'entering' && baseStyles.entering, motion.type === 'exiting' && baseStyles.exiting);\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C;AACA;AACA;AAAI,OAAO,MAAMC,aAAa,GAAG;EAC7BC,aAAa,EAAE;AACnB,CAAC;AACD;AACA;AACA;AAAI,OAAO,MAAMC,mBAAmB,GAAG;EACnCC,QAAQ,EAAE,QAAQ;EAClBC,KAAK,
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","tokens","drawerCSSVars","drawerSizeVar","drawerDefaultStyles","overflow","width","maxWidth","height","maxHeight","boxSizing","display","flexDirection","alignItems","justifyContent","backgroundColor","colorNeutralBackground1","color","colorNeutralForeground1","useDrawerStyles","entering","Bkqvd7p","exiting","reducedMotion","Hwfdqs","start","h3c5rm","vrafjx","Bekrc4i","u1mtju","oyh7mz","j35jbq","end","zhjwy3","wvpqe5","ibv6hh","B4g9neb","bottom","B5kzvoi","Bhzewxz","small","Bjr0ffy","medium","large","full","d","p","m","useDrawerBottomBaseStyles","useDrawerDurationStyles","B3o57yi","useDrawerBaseClassNames","position","size","motion","baseStyles","bottomBaseStyles","durationStyles","type"],"sources":["useDrawerBaseStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\n/**\n * CSS variable names used internally for uniform styling in Drawer.\n */ export const drawerCSSVars = {\n drawerSizeVar: '--fui-Drawer--size'\n};\n/**\n * Default shared styles for the Drawer component\n */ export const drawerDefaultStyles = {\n overflow: 'hidden',\n width: `var(${drawerCSSVars.drawerSizeVar})`,\n maxWidth: '100vw',\n height: 'auto',\n maxHeight: '100vh',\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1\n};\n/**\n * Shared dynamic styles for the Drawer component\n */ const useDrawerStyles = makeStyles({\n /* Motion */ entering: {\n transitionTimingFunction: tokens.curveDecelerateMid\n },\n exiting: {\n transitionTimingFunction: tokens.curveAccelerateMin\n },\n reducedMotion: {\n '@media screen and (prefers-reduced-motion: reduce)': {\n transitionDuration: '0.001ms'\n }\n },\n /* Positioning */ start: {\n borderRight: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n left: 0,\n right: 'auto'\n },\n end: {\n borderLeft: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n right: 0,\n left: 'auto'\n },\n bottom: {\n bottom: 0,\n top: 'auto'\n },\n /* Sizes */ small: {\n [drawerCSSVars.drawerSizeVar]: '320px'\n },\n medium: {\n [drawerCSSVars.drawerSizeVar]: '592px'\n },\n large: {\n [drawerCSSVars.drawerSizeVar]: '940px'\n },\n full: {\n [drawerCSSVars.drawerSizeVar]: '100vw'\n }\n});\nexport const useDrawerBottomBaseStyles = makeStyles({\n /* Sizes for position bottom */ small: {\n [drawerCSSVars.drawerSizeVar]: '320px'\n },\n medium: {\n [drawerCSSVars.drawerSizeVar]: '592px'\n },\n large: {\n [drawerCSSVars.drawerSizeVar]: '940px'\n },\n full: {\n [drawerCSSVars.drawerSizeVar]: '100vh'\n }\n});\nexport const useDrawerDurationStyles = makeStyles({\n small: {\n transitionDuration: tokens.durationGentle\n },\n medium: {\n transitionDuration: tokens.durationSlow\n },\n large: {\n transitionDuration: tokens.durationSlower\n },\n full: {\n transitionDuration: tokens.durationUltraSlow\n }\n});\nexport const useDrawerBaseClassNames = ({ position, size, motion })=>{\n const baseStyles = useDrawerStyles();\n const bottomBaseStyles = useDrawerBottomBaseStyles();\n const durationStyles = useDrawerDurationStyles();\n return mergeClasses(baseStyles[position], position === 'bottom' && bottomBaseStyles[size], durationStyles[size], position !== 'bottom' && baseStyles[size], baseStyles.reducedMotion, motion.type === 'entering' && baseStyles.entering, motion.type === 'exiting' && baseStyles.exiting);\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C;AACA;AACA;AAAI,OAAO,MAAMC,aAAa,GAAG;EAC7BC,aAAa,EAAE;AACnB,CAAC;AACD;AACA;AACA;AAAI,OAAO,MAAMC,mBAAmB,GAAG;EACnCC,QAAQ,EAAE,QAAQ;EAClBC,KAAK,EAAE,OAAOJ,aAAa,CAACC,aAAa,GAAG;EAC5CI,QAAQ,EAAE,OAAO;EACjBC,MAAM,EAAE,MAAM;EACdC,SAAS,EAAE,OAAO;EAClBC,SAAS,EAAE,YAAY;EACvBC,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,UAAU,EAAE,YAAY;EACxBC,cAAc,EAAE,YAAY;EAC5BC,eAAe,EAAEd,MAAM,CAACe,uBAAuB;EAC/CC,KAAK,EAAEhB,MAAM,CAACiB;AAClB,CAAC;AACD;AACA;AACA;AAAI,MAAMC,eAAe,gBAAGpB,QAAA;EAAAqB,QAAA;IAAAC,OAAA;EAAA;EAAAC,OAAA;IAAAD,OAAA;EAAA;EAAAE,aAAA;IAAAC,MAAA;EAAA;EAAAC,KAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAC,GAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAL,MAAA;IAAAD,MAAA;EAAA;EAAAO,MAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;EAAAC,KAAA;IAAAC,OAAA;EAAA;EAAAC,MAAA;IAAAD,OAAA;EAAA;EAAAE,KAAA;IAAAF,OAAA;EAAA;EAAAG,IAAA;IAAAH,OAAA;EAAA;AAAA;EAAAI,CAAA;IAAAC,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;EAAAC,CAAA;IAAAA,CAAA;EAAA;AAAA,CAsC3B,CAAC;AACF,OAAO,MAAMC,yBAAyB,gBAAGjD,QAAA;EAAAyC,KAAA;IAAAC,OAAA;EAAA;EAAAC,MAAA;IAAAD,OAAA;EAAA;EAAAE,KAAA;IAAAF,OAAA;EAAA;EAAAG,IAAA;IAAAH,OAAA;EAAA;AAAA;EAAAI,CAAA;AAAA,CAaxC,CAAC;AACF,OAAO,MAAMI,uBAAuB,gBAAGlD,QAAA;EAAAyC,KAAA;IAAAU,OAAA;EAAA;EAAAR,MAAA;IAAAQ,OAAA;EAAA;EAAAP,KAAA;IAAAO,OAAA;EAAA;EAAAN,IAAA;IAAAM,OAAA;EAAA;AAAA;EAAAL,CAAA;AAAA,CAatC,CAAC;AACF,OAAO,MAAMM,uBAAuB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,IAAI;EAAEC;AAAO,CAAC,KAAG;EACjE,MAAMC,UAAU,GAAGpC,eAAe,CAAC,CAAC;EACpC,MAAMqC,gBAAgB,GAAGR,yBAAyB,CAAC,CAAC;EACpD,MAAMS,cAAc,GAAGR,uBAAuB,CAAC,CAAC;EAChD,OAAOjD,YAAY,CAACuD,UAAU,CAACH,QAAQ,CAAC,EAAEA,QAAQ,KAAK,QAAQ,IAAII,gBAAgB,CAACH,IAAI,CAAC,EAAEI,cAAc,CAACJ,IAAI,CAAC,EAAED,QAAQ,KAAK,QAAQ,IAAIG,UAAU,CAACF,IAAI,CAAC,EAAEE,UAAU,CAAChC,aAAa,EAAE+B,MAAM,CAACI,IAAI,KAAK,UAAU,IAAIH,UAAU,CAACnC,QAAQ,EAAEkC,MAAM,CAACI,IAAI,KAAK,SAAS,IAAIH,UAAU,CAACjC,OAAO,CAAC;AAC7R,CAAC","ignoreList":[]}
|
|
@@ -19,10 +19,10 @@ const useDrawer_unstable = (props, ref)=>{
|
|
|
19
19
|
components: {
|
|
20
20
|
root: elementType
|
|
21
21
|
},
|
|
22
|
-
root: _reactutilities.slot.always(
|
|
22
|
+
root: _reactutilities.slot.always({
|
|
23
23
|
ref,
|
|
24
24
|
...props
|
|
25
|
-
}
|
|
25
|
+
}, {
|
|
26
26
|
elementType
|
|
27
27
|
})
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDrawer.js"],"sourcesContent":["import * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\nimport { OverlayDrawer } from '../OverlayDrawer';\nimport { InlineDrawer } from '../InlineDrawer';\n/**\n * Create the state required to render Drawer.\n *\n * The returned state can be modified with hooks such as useDrawerStyles_unstable,\n * before being passed to renderDrawer_unstable.\n *\n * @param props - props from this instance of Drawer\n * @param ref - reference to root HTMLElement of Drawer\n */ export const useDrawer_unstable = (props, ref)=>{\n const elementType = props.type === 'inline' ? InlineDrawer : OverlayDrawer;\n return {\n components: {\n root: elementType\n },\n root: slot.always(
|
|
1
|
+
{"version":3,"sources":["useDrawer.js"],"sourcesContent":["import * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\nimport { OverlayDrawer } from '../OverlayDrawer';\nimport { InlineDrawer } from '../InlineDrawer';\n/**\n * Create the state required to render Drawer.\n *\n * The returned state can be modified with hooks such as useDrawerStyles_unstable,\n * before being passed to renderDrawer_unstable.\n *\n * @param props - props from this instance of Drawer\n * @param ref - reference to root HTMLElement of Drawer\n */ export const useDrawer_unstable = (props, ref)=>{\n const elementType = props.type === 'inline' ? InlineDrawer : OverlayDrawer;\n return {\n components: {\n root: elementType\n },\n root: slot.always({\n ref,\n ...props\n }, {\n elementType\n })\n };\n};\n"],"names":["useDrawer_unstable","props","ref","elementType","type","InlineDrawer","OverlayDrawer","components","root","slot","always"],"mappings":";;;;+BAYiBA;;;eAAAA;;;;iEAZM;gCACF;+BACS;8BACD;AASlB,MAAMA,qBAAqB,CAACC,OAAOC;IAC1C,MAAMC,cAAcF,MAAMG,IAAI,KAAK,WAAWC,0BAAY,GAAGC,4BAAa;IAC1E,OAAO;QACHC,YAAY;YACRC,MAAML;QACV;QACAK,MAAMC,oBAAI,CAACC,MAAM,CAAC;YACdR;YACA,GAAGD,KAAK;QACZ,GAAG;YACCE;QACJ;IACJ;AACJ"}
|
|
@@ -13,7 +13,15 @@ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
|
13
13
|
const _reactdialog = require("@fluentui/react-dialog");
|
|
14
14
|
const _useOverlayDrawerSurfaceStylesstyles = require("./useOverlayDrawerSurfaceStyles.styles");
|
|
15
15
|
const OverlayDrawerSurface = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
16
|
-
const dialogSurfaceState = (0, _reactdialog.useDialogSurface_unstable)(
|
|
16
|
+
const dialogSurfaceState = (0, _reactdialog.useDialogSurface_unstable)({
|
|
17
|
+
...props,
|
|
18
|
+
/**
|
|
19
|
+
* Drawer accepts a `div` or `aside` element type, but Dialog only accepts a `div` element type.
|
|
20
|
+
* We need to cast the ref to a `div` element type to not break Dialog's ref type.
|
|
21
|
+
*
|
|
22
|
+
* FIXME: Evaluate the possibility to remove this cast when Dialog is refactored to accept `aside` elements.
|
|
23
|
+
*/ as: props.as
|
|
24
|
+
}, ref);
|
|
17
25
|
const dialogSurfaceContextValues = (0, _reactdialog.useDialogSurfaceContextValues_unstable)(dialogSurfaceState);
|
|
18
26
|
(0, _useOverlayDrawerSurfaceStylesstyles.useOverlayDrawerSurfaceStyles_unstable)(dialogSurfaceState);
|
|
19
27
|
return (0, _reactdialog.renderDialogSurface_unstable)(dialogSurfaceState, dialogSurfaceContextValues);
|
package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["OverlayDrawerSurface.js"],"sourcesContent":["import * as React from 'react';\nimport { useDialogSurface_unstable, useDialogSurfaceContextValues_unstable, renderDialogSurface_unstable } from '@fluentui/react-dialog';\nimport { useOverlayDrawerSurfaceStyles_unstable } from './useOverlayDrawerSurfaceStyles.styles';\n/**\n * @internal\n * OverlayDrawerSurface is a proxy for DialogSurface as is only meant to be used internally for Drawer.\n */ export const OverlayDrawerSurface = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const dialogSurfaceState = useDialogSurface_unstable(props, ref);\n const dialogSurfaceContextValues = useDialogSurfaceContextValues_unstable(dialogSurfaceState);\n useOverlayDrawerSurfaceStyles_unstable(dialogSurfaceState);\n return renderDialogSurface_unstable(dialogSurfaceState, dialogSurfaceContextValues);\n});\nOverlayDrawerSurface.displayName = 'OverlayDrawerSurface';\n"],"names":["OverlayDrawerSurface","React","forwardRef","props","ref","dialogSurfaceState","useDialogSurface_unstable","dialogSurfaceContextValues","useDialogSurfaceContextValues_unstable","useOverlayDrawerSurfaceStyles_unstable","renderDialogSurface_unstable","displayName"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;6BACyF;qDACzD;AAI5C,MAAMA,uBAAuB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC3E,MAAMC,qBAAqBC,IAAAA,sCAAyB,
|
|
1
|
+
{"version":3,"sources":["OverlayDrawerSurface.js"],"sourcesContent":["import * as React from 'react';\nimport { useDialogSurface_unstable, useDialogSurfaceContextValues_unstable, renderDialogSurface_unstable } from '@fluentui/react-dialog';\nimport { useOverlayDrawerSurfaceStyles_unstable } from './useOverlayDrawerSurfaceStyles.styles';\n/**\n * @internal\n * OverlayDrawerSurface is a proxy for DialogSurface as is only meant to be used internally for Drawer.\n */ export const OverlayDrawerSurface = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const dialogSurfaceState = useDialogSurface_unstable({\n ...props,\n /**\n * Drawer accepts a `div` or `aside` element type, but Dialog only accepts a `div` element type.\n * We need to cast the ref to a `div` element type to not break Dialog's ref type.\n *\n * FIXME: Evaluate the possibility to remove this cast when Dialog is refactored to accept `aside` elements.\n */ as: props.as\n }, ref);\n const dialogSurfaceContextValues = useDialogSurfaceContextValues_unstable(dialogSurfaceState);\n useOverlayDrawerSurfaceStyles_unstable(dialogSurfaceState);\n return renderDialogSurface_unstable(dialogSurfaceState, dialogSurfaceContextValues);\n});\nOverlayDrawerSurface.displayName = 'OverlayDrawerSurface';\n"],"names":["OverlayDrawerSurface","React","forwardRef","props","ref","dialogSurfaceState","useDialogSurface_unstable","as","dialogSurfaceContextValues","useDialogSurfaceContextValues_unstable","useOverlayDrawerSurfaceStyles_unstable","renderDialogSurface_unstable","displayName"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;6BACyF;qDACzD;AAI5C,MAAMA,uBAAuB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC3E,MAAMC,qBAAqBC,IAAAA,sCAAyB,EAAC;QACjD,GAAGH,KAAK;QACR;;;;;OAKD,GAAGI,IAAIJ,MAAMI,EAAE;IAClB,GAAGH;IACH,MAAMI,6BAA6BC,IAAAA,mDAAsC,EAACJ;IAC1EK,IAAAA,2EAAsC,EAACL;IACvC,OAAOM,IAAAA,yCAA4B,EAACN,oBAAoBG;AAC5D;AACAR,qBAAqBY,WAAW,GAAG"}
|
|
@@ -23,14 +23,15 @@ const useOverlayDrawer_unstable = (props, ref)=>{
|
|
|
23
23
|
const hasCustomBackdrop = modalType !== 'non-modal' && backdropProps !== null;
|
|
24
24
|
const root = _reactutilities.slot.always({
|
|
25
25
|
...props,
|
|
26
|
+
ref: (0, _reactutilities.useMergedRefs)(ref, motion.ref),
|
|
26
27
|
backdrop: hasCustomBackdrop ? {
|
|
27
28
|
...backdropProps
|
|
28
29
|
} : null
|
|
29
30
|
}, {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Drawer accepts a `div` or `aside` element type, but Dialog only accepts a `div` element type.
|
|
33
|
+
* We need to cast the ref to a `div` element type to not break Dialog's ref type.
|
|
34
|
+
*/ elementType: _OverlayDrawerSurface.OverlayDrawerSurface
|
|
34
35
|
});
|
|
35
36
|
const dialog = _reactutilities.slot.always({
|
|
36
37
|
open,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useOverlayDrawer.js"],"sourcesContent":["import * as React from 'react';\nimport { slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { useMotion } from '@fluentui/react-motion-preview';\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\nimport { OverlayDrawerDialog } from './OverlayDrawerDialog';\nimport { OverlayDrawerSurface } from './OverlayDrawerSurface';\n/**\n * Create the state required to render OverlayDrawer.\n *\n * The returned state can be modified with hooks such as useOverlayDrawerStyles_unstable,\n * before being passed to renderOverlayDrawer_unstable.\n *\n * @param props - props from this instance of OverlayDrawer\n * @param ref - reference to root
|
|
1
|
+
{"version":3,"sources":["useOverlayDrawer.js"],"sourcesContent":["import * as React from 'react';\nimport { slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { useMotion } from '@fluentui/react-motion-preview';\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\nimport { OverlayDrawerDialog } from './OverlayDrawerDialog';\nimport { OverlayDrawerSurface } from './OverlayDrawerSurface';\n/**\n * Create the state required to render OverlayDrawer.\n *\n * The returned state can be modified with hooks such as useOverlayDrawerStyles_unstable,\n * before being passed to renderOverlayDrawer_unstable.\n *\n * @param props - props from this instance of OverlayDrawer\n * @param ref - reference to root HTMLElement of OverlayDrawer\n */ export const useOverlayDrawer_unstable = (props, ref)=>{\n const { open, size, position } = useDrawerDefaultProps(props);\n const { modalType = 'modal', inertTrapFocus, onOpenChange } = props;\n const motion = useMotion(open);\n const backdropProps = slot.resolveShorthand(props.backdrop);\n const hasCustomBackdrop = modalType !== 'non-modal' && backdropProps !== null;\n const root = slot.always({\n ...props,\n ref: useMergedRefs(ref, motion.ref),\n backdrop: hasCustomBackdrop ? {\n ...backdropProps\n } : null\n }, {\n /**\n * Drawer accepts a `div` or `aside` element type, but Dialog only accepts a `div` element type.\n * We need to cast the ref to a `div` element type to not break Dialog's ref type.\n */ elementType: OverlayDrawerSurface\n });\n const dialog = slot.always({\n open,\n onOpenChange,\n inertTrapFocus,\n modalType,\n /**\n * children is not needed here because we construct the children in the render function,\n * but it's required by DialogProps\n */ children: null\n }, {\n elementType: OverlayDrawerDialog\n });\n return {\n components: {\n root: OverlayDrawerSurface,\n dialog: OverlayDrawerDialog\n },\n root,\n dialog,\n size,\n position,\n motion\n };\n};\n"],"names":["useOverlayDrawer_unstable","props","ref","open","size","position","useDrawerDefaultProps","modalType","inertTrapFocus","onOpenChange","motion","useMotion","backdropProps","slot","resolveShorthand","backdrop","hasCustomBackdrop","root","always","useMergedRefs","elementType","OverlayDrawerSurface","dialog","children","OverlayDrawerDialog","components"],"mappings":";;;;+BAciBA;;;eAAAA;;;;iEAdM;gCACa;oCACV;uCACY;qCACF;sCACC;AAS1B,MAAMA,4BAA4B,CAACC,OAAOC;IACjD,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGC,IAAAA,4CAAqB,EAACL;IACvD,MAAM,EAAEM,YAAY,OAAO,EAAEC,cAAc,EAAEC,YAAY,EAAE,GAAGR;IAC9D,MAAMS,SAASC,IAAAA,6BAAS,EAACR;IACzB,MAAMS,gBAAgBC,oBAAI,CAACC,gBAAgB,CAACb,MAAMc,QAAQ;IAC1D,MAAMC,oBAAoBT,cAAc,eAAeK,kBAAkB;IACzE,MAAMK,OAAOJ,oBAAI,CAACK,MAAM,CAAC;QACrB,GAAGjB,KAAK;QACRC,KAAKiB,IAAAA,6BAAa,EAACjB,KAAKQ,OAAOR,GAAG;QAClCa,UAAUC,oBAAoB;YAC1B,GAAGJ,aAAa;QACpB,IAAI;IACR,GAAG;QACC;;;OAGD,GAAGQ,aAAaC,0CAAoB;IACvC;IACA,MAAMC,SAAST,oBAAI,CAACK,MAAM,CAAC;QACvBf;QACAM;QACAD;QACAD;QACA;;;OAGD,GAAGgB,UAAU;IAChB,GAAG;QACCH,aAAaI,wCAAmB;IACpC;IACA,OAAO;QACHC,YAAY;YACRR,MAAMI,0CAAoB;YAC1BC,QAAQE,wCAAmB;QAC/B;QACAP;QACAK;QACAlB;QACAC;QACAK;IACJ;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-drawer",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"description": "Drawer components for Fluent UI React",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"just": "just-scripts",
|
|
21
21
|
"lint": "just-scripts lint",
|
|
22
22
|
"test": "jest --passWithNoTests",
|
|
23
|
-
"type-check": "
|
|
23
|
+
"type-check": "just-scripts type-check",
|
|
24
24
|
"generate-api": "just-scripts generate-api",
|
|
25
|
-
"storybook": "
|
|
26
|
-
"start": "yarn storybook"
|
|
27
|
-
"test-ssr": "test-ssr \"./stories/**/*.stories.tsx\""
|
|
25
|
+
"storybook": "yarn --cwd ../stories storybook",
|
|
26
|
+
"start": "yarn storybook"
|
|
28
27
|
},
|
|
29
28
|
"devDependencies": {
|
|
29
|
+
"@fluentui/react-provider": "*",
|
|
30
30
|
"@fluentui/eslint-plugin": "*",
|
|
31
31
|
"@fluentui/react-conformance": "*",
|
|
32
32
|
"@fluentui/react-conformance-griffel": "*",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"@fluentui/scripts-cypress": "*"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluentui/react-dialog": "^9.
|
|
39
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
|
40
|
-
"@fluentui/react-motion-preview": "^0.5.
|
|
38
|
+
"@fluentui/react-dialog": "^9.11.0",
|
|
39
|
+
"@fluentui/react-jsx-runtime": "^9.0.39",
|
|
40
|
+
"@fluentui/react-motion-preview": "^0.5.22",
|
|
41
41
|
"@fluentui/react-shared-contexts": "^9.19.0",
|
|
42
|
-
"@fluentui/react-tabster": "^9.21.
|
|
42
|
+
"@fluentui/react-tabster": "^9.21.5",
|
|
43
43
|
"@fluentui/react-theme": "^9.1.19",
|
|
44
|
-
"@fluentui/react-utilities": "^9.18.
|
|
44
|
+
"@fluentui/react-utilities": "^9.18.10",
|
|
45
45
|
"@griffel/react": "^1.5.22",
|
|
46
46
|
"@swc/helpers": "^0.5.1"
|
|
47
47
|
},
|