@fluentui/react-drawer 9.0.0-beta.36 → 9.0.0-beta.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/CHANGELOG.json +85 -1
  2. package/CHANGELOG.md +29 -2
  3. package/README.md +3 -2
  4. package/dist/index.d.ts +71 -76
  5. package/lib/InlineDrawer.js +1 -0
  6. package/lib/InlineDrawer.js.map +1 -0
  7. package/lib/OverlayDrawer.js +1 -0
  8. package/lib/OverlayDrawer.js.map +1 -0
  9. package/lib/components/Drawer/Drawer.types.js.map +1 -1
  10. package/lib/components/Drawer/useDrawer.js +3 -3
  11. package/lib/components/Drawer/useDrawer.js.map +1 -1
  12. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.js +1 -1
  13. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.js.map +1 -1
  14. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.js +1 -1
  15. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.js.map +1 -1
  16. package/lib/components/InlineDrawer/InlineDrawer.js +16 -0
  17. package/lib/components/InlineDrawer/InlineDrawer.js.map +1 -0
  18. package/lib/components/InlineDrawer/InlineDrawer.types.js.map +1 -0
  19. package/lib/components/InlineDrawer/index.js +5 -0
  20. package/lib/components/InlineDrawer/index.js.map +1 -0
  21. package/lib/components/{DrawerInline/renderDrawerInline.js → InlineDrawer/renderInlineDrawer.js} +2 -2
  22. package/lib/components/InlineDrawer/renderInlineDrawer.js.map +1 -0
  23. package/lib/components/{DrawerInline/useDrawerInline.js → InlineDrawer/useInlineDrawer.js} +6 -6
  24. package/lib/components/{DrawerInline/useDrawerInline.js.map → InlineDrawer/useInlineDrawer.js.map} +1 -1
  25. package/lib/components/{DrawerInline/useDrawerInlineStyles.styles.js → InlineDrawer/useInlineDrawerStyles.styles.js} +20 -9
  26. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.js.map +1 -0
  27. package/lib/components/OverlayDrawer/OverlayDrawer.js +15 -0
  28. package/lib/components/OverlayDrawer/OverlayDrawer.js.map +1 -0
  29. package/lib/components/OverlayDrawer/OverlayDrawer.types.js.map +1 -0
  30. package/lib/components/{DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js → OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js} +5 -5
  31. package/lib/components/{DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js.map → OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map} +1 -1
  32. package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js.map +1 -0
  33. package/lib/components/OverlayDrawer/OverlayDrawerSurface/index.js +2 -0
  34. package/lib/components/{DrawerOverlay/DrawerOverlaySurface → OverlayDrawer/OverlayDrawerSurface}/index.js.map +1 -1
  35. package/lib/components/{DrawerOverlay/DrawerOverlaySurface/useDrawerOverlaySurfaceStyles.styles.js → OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js} +6 -6
  36. package/lib/components/{DrawerOverlay/DrawerOverlaySurface/useDrawerOverlaySurfaceStyles.styles.js.map → OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js.map} +1 -1
  37. package/lib/components/OverlayDrawer/index.js +5 -0
  38. package/lib/components/OverlayDrawer/index.js.map +1 -0
  39. package/lib/components/{DrawerOverlay/renderDrawerOverlay.js → OverlayDrawer/renderOverlayDrawer.js} +2 -2
  40. package/lib/components/{DrawerOverlay/renderDrawerOverlay.js.map → OverlayDrawer/renderOverlayDrawer.js.map} +1 -1
  41. package/lib/components/{DrawerOverlay/useDrawerOverlay.js → OverlayDrawer/useOverlayDrawer.js} +18 -22
  42. package/lib/components/OverlayDrawer/useOverlayDrawer.js.map +1 -0
  43. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.js +73 -0
  44. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.js.map +1 -0
  45. package/lib/index.js +2 -2
  46. package/lib/index.js.map +1 -1
  47. package/lib/shared/useDrawerBaseStyles.styles.js +7 -1
  48. package/lib/shared/useDrawerBaseStyles.styles.js.map +1 -1
  49. package/lib-commonjs/{DrawerInline.js → InlineDrawer.js} +1 -1
  50. package/lib-commonjs/InlineDrawer.js.map +1 -0
  51. package/lib-commonjs/{DrawerOverlay.js → OverlayDrawer.js} +1 -1
  52. package/lib-commonjs/OverlayDrawer.js.map +1 -0
  53. package/lib-commonjs/components/Drawer/useDrawer.js +3 -3
  54. package/lib-commonjs/components/Drawer/useDrawer.js.map +1 -1
  55. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.js +3 -3
  56. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.js.map +1 -1
  57. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.js +3 -3
  58. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.js.map +1 -1
  59. package/lib-commonjs/components/InlineDrawer/InlineDrawer.js +24 -0
  60. package/lib-commonjs/components/InlineDrawer/InlineDrawer.js.map +1 -0
  61. package/lib-commonjs/components/InlineDrawer/index.js +10 -0
  62. package/lib-commonjs/components/InlineDrawer/index.js.map +1 -0
  63. package/lib-commonjs/components/{DrawerInline/renderDrawerInline.js → InlineDrawer/renderInlineDrawer.js} +3 -3
  64. package/lib-commonjs/components/{DrawerInline/renderDrawerInline.js.map → InlineDrawer/renderInlineDrawer.js.map} +1 -1
  65. package/lib-commonjs/components/{DrawerInline/useDrawerInline.js → InlineDrawer/useInlineDrawer.js} +3 -3
  66. package/lib-commonjs/components/{DrawerInline/useDrawerInline.js.map → InlineDrawer/useInlineDrawer.js.map} +1 -1
  67. package/lib-commonjs/components/{DrawerInline/useDrawerInlineStyles.styles.js → InlineDrawer/useInlineDrawerStyles.styles.js} +31 -16
  68. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.js.map +1 -0
  69. package/lib-commonjs/components/OverlayDrawer/OverlayDrawer.js +24 -0
  70. package/lib-commonjs/components/OverlayDrawer/OverlayDrawer.js.map +1 -0
  71. package/lib-commonjs/components/{DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js → OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js} +6 -6
  72. package/lib-commonjs/components/{DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js.map → OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map} +1 -1
  73. package/lib-commonjs/components/{DrawerOverlay/DrawerOverlaySurface → OverlayDrawer/OverlayDrawerSurface}/index.js +2 -2
  74. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/index.js.map +1 -0
  75. package/lib-commonjs/components/{DrawerOverlay/DrawerOverlaySurface/useDrawerOverlaySurfaceStyles.styles.js → OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js} +9 -9
  76. package/lib-commonjs/components/{DrawerOverlay/DrawerOverlaySurface/useDrawerOverlaySurfaceStyles.styles.js.map → OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js.map} +1 -1
  77. package/lib-commonjs/components/OverlayDrawer/index.js +10 -0
  78. package/lib-commonjs/components/OverlayDrawer/index.js.map +1 -0
  79. package/lib-commonjs/components/{DrawerOverlay/renderDrawerOverlay.js → OverlayDrawer/renderOverlayDrawer.js} +3 -3
  80. package/lib-commonjs/components/{DrawerOverlay/renderDrawerOverlay.js.map → OverlayDrawer/renderOverlayDrawer.js.map} +1 -1
  81. package/lib-commonjs/components/{DrawerOverlay/useDrawerOverlay.js → OverlayDrawer/useOverlayDrawer.js} +15 -19
  82. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawer.js.map +1 -0
  83. package/lib-commonjs/components/{DrawerOverlay/useDrawerOverlayStyles.styles.js → OverlayDrawer/useOverlayDrawerStyles.styles.js} +46 -29
  84. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.js.map +1 -0
  85. package/lib-commonjs/index.js +22 -22
  86. package/lib-commonjs/index.js.map +1 -1
  87. package/lib-commonjs/shared/useDrawerBaseStyles.styles.js +30 -0
  88. package/lib-commonjs/shared/useDrawerBaseStyles.styles.js.map +1 -1
  89. package/package.json +5 -5
  90. package/lib/DrawerInline.js +0 -1
  91. package/lib/DrawerInline.js.map +0 -1
  92. package/lib/DrawerOverlay.js +0 -1
  93. package/lib/DrawerOverlay.js.map +0 -1
  94. package/lib/components/DrawerInline/DrawerInline.js +0 -15
  95. package/lib/components/DrawerInline/DrawerInline.js.map +0 -1
  96. package/lib/components/DrawerInline/DrawerInline.types.js.map +0 -1
  97. package/lib/components/DrawerInline/index.js +0 -5
  98. package/lib/components/DrawerInline/index.js.map +0 -1
  99. package/lib/components/DrawerInline/renderDrawerInline.js.map +0 -1
  100. package/lib/components/DrawerInline/useDrawerInlineStyles.styles.js.map +0 -1
  101. package/lib/components/DrawerOverlay/DrawerOverlay.js +0 -14
  102. package/lib/components/DrawerOverlay/DrawerOverlay.js.map +0 -1
  103. package/lib/components/DrawerOverlay/DrawerOverlay.types.js.map +0 -1
  104. package/lib/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js.map +0 -1
  105. package/lib/components/DrawerOverlay/DrawerOverlaySurface/index.js +0 -2
  106. package/lib/components/DrawerOverlay/index.js +0 -5
  107. package/lib/components/DrawerOverlay/index.js.map +0 -1
  108. package/lib/components/DrawerOverlay/useDrawerOverlay.js.map +0 -1
  109. package/lib/components/DrawerOverlay/useDrawerOverlayStyles.styles.js +0 -61
  110. package/lib/components/DrawerOverlay/useDrawerOverlayStyles.styles.js.map +0 -1
  111. package/lib-commonjs/DrawerInline.js.map +0 -1
  112. package/lib-commonjs/DrawerOverlay.js.map +0 -1
  113. package/lib-commonjs/components/DrawerInline/DrawerInline.js +0 -23
  114. package/lib-commonjs/components/DrawerInline/DrawerInline.js.map +0 -1
  115. package/lib-commonjs/components/DrawerInline/index.js +0 -10
  116. package/lib-commonjs/components/DrawerInline/index.js.map +0 -1
  117. package/lib-commonjs/components/DrawerInline/useDrawerInlineStyles.styles.js.map +0 -1
  118. package/lib-commonjs/components/DrawerOverlay/DrawerOverlay.js +0 -23
  119. package/lib-commonjs/components/DrawerOverlay/DrawerOverlay.js.map +0 -1
  120. package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/index.js.map +0 -1
  121. package/lib-commonjs/components/DrawerOverlay/index.js +0 -10
  122. package/lib-commonjs/components/DrawerOverlay/index.js.map +0 -1
  123. package/lib-commonjs/components/DrawerOverlay/useDrawerOverlay.js.map +0 -1
  124. package/lib-commonjs/components/DrawerOverlay/useDrawerOverlayStyles.styles.js.map +0 -1
  125. /package/lib/components/{DrawerInline/DrawerInline.types.js → InlineDrawer/InlineDrawer.types.js} +0 -0
  126. /package/lib/components/{DrawerOverlay/DrawerOverlay.types.js → OverlayDrawer/OverlayDrawer.types.js} +0 -0
  127. /package/lib/components/{DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js → OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js} +0 -0
  128. /package/lib-commonjs/components/{DrawerInline/DrawerInline.types.js → InlineDrawer/InlineDrawer.types.js} +0 -0
  129. /package/lib-commonjs/components/{DrawerInline/DrawerInline.types.js.map → InlineDrawer/InlineDrawer.types.js.map} +0 -0
  130. /package/lib-commonjs/components/{DrawerOverlay/DrawerOverlay.types.js → OverlayDrawer/OverlayDrawer.types.js} +0 -0
  131. /package/lib-commonjs/components/{DrawerOverlay/DrawerOverlay.types.js.map → OverlayDrawer/OverlayDrawer.types.js.map} +0 -0
  132. /package/lib-commonjs/components/{DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js → OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js} +0 -0
  133. /package/lib-commonjs/components/{DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js.map → OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js.map} +0 -0
package/CHANGELOG.json CHANGED
@@ -2,7 +2,91 @@
2
2
  "name": "@fluentui/react-drawer",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 18 Oct 2023 17:47:37 GMT",
5
+ "date": "Sat, 28 Oct 2023 23:32:02 GMT",
6
+ "tag": "@fluentui/react-drawer_v9.0.0-beta.38",
7
+ "version": "9.0.0-beta.38",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "marcosvmmoura@gmail.com",
12
+ "package": "@fluentui/react-drawer",
13
+ "commit": "601e93272fe2b51515c9706d1d1ed03b4f9fc765",
14
+ "comment": "fix: regression with mountNode prop not available after refactor"
15
+ },
16
+ {
17
+ "author": "marcosvmmoura@gmail.com",
18
+ "package": "@fluentui/react-drawer",
19
+ "commit": "4611e31dd38799b5e7bd2faa3ff735398e176b03",
20
+ "comment": "feat: use useMotionClassNames to create drawer motion styles"
21
+ },
22
+ {
23
+ "author": "marcosvmmoura@gmail.com",
24
+ "package": "@fluentui/react-drawer",
25
+ "commit": "8381d2c4c7d389b2199398212beccbe1a899d4ea",
26
+ "comment": "BREAKING CHANGE: rename main DrawerOverlay/DrawerInline components"
27
+ },
28
+ {
29
+ "author": "marcosvmmoura@gmail.com",
30
+ "package": "@fluentui/react-drawer",
31
+ "commit": "b77e96763ca6d1ce4ef1ee8482977f908538fbd1",
32
+ "comment": "fix: improve high contrast mode"
33
+ },
34
+ {
35
+ "author": "marcosvmmoura@gmail.com",
36
+ "package": "@fluentui/react-drawer",
37
+ "commit": "d936b79dd82bffe98192bee64b5e0db28905e7df",
38
+ "comment": "docs: add example on how to implement multiple levels inside one drawer"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-drawer",
43
+ "comment": "Bump @fluentui/react-dialog to v9.8.1",
44
+ "commit": "555b0fae3ec7f052e765557ae243c58000514f92"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-drawer",
49
+ "comment": "Bump @fluentui/react-motion-preview to v0.4.0",
50
+ "commit": "555b0fae3ec7f052e765557ae243c58000514f92"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-drawer",
55
+ "comment": "Bump @fluentui/react-shared-contexts to v9.11.0",
56
+ "commit": "555b0fae3ec7f052e765557ae243c58000514f92"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-drawer",
61
+ "comment": "Bump @fluentui/react-tabster to v9.14.2",
62
+ "commit": "555b0fae3ec7f052e765557ae243c58000514f92"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "date": "Mon, 23 Oct 2023 09:51:57 GMT",
69
+ "tag": "@fluentui/react-drawer_v9.0.0-beta.37",
70
+ "version": "9.0.0-beta.37",
71
+ "comments": {
72
+ "prerelease": [
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-drawer",
76
+ "comment": "Bump @fluentui/react-dialog to v9.8.0",
77
+ "commit": "e4ef1febe8a185dddc10f8936944d177d50bc396"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-drawer",
82
+ "comment": "Bump @fluentui/react-tabster to v9.14.1",
83
+ "commit": "e4ef1febe8a185dddc10f8936944d177d50bc396"
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ {
89
+ "date": "Wed, 18 Oct 2023 17:54:08 GMT",
6
90
  "tag": "@fluentui/react-drawer_v9.0.0-beta.36",
7
91
  "version": "9.0.0-beta.36",
8
92
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,39 @@
1
1
  # Change Log - @fluentui/react-drawer
2
2
 
3
- This log was last generated on Wed, 18 Oct 2023 17:47:37 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 28 Oct 2023 23:32:02 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-beta.38](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.38)
8
+
9
+ Sat, 28 Oct 2023 23:32:02 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.37..@fluentui/react-drawer_v9.0.0-beta.38)
11
+
12
+ ### Changes
13
+
14
+ - fix: regression with mountNode prop not available after refactor ([PR #29524](https://github.com/microsoft/fluentui/pull/29524) by marcosvmmoura@gmail.com)
15
+ - feat: use useMotionClassNames to create drawer motion styles ([PR #29662](https://github.com/microsoft/fluentui/pull/29662) by marcosvmmoura@gmail.com)
16
+ - BREAKING CHANGE: rename main DrawerOverlay/DrawerInline components ([PR #29523](https://github.com/microsoft/fluentui/pull/29523) by marcosvmmoura@gmail.com)
17
+ - fix: improve high contrast mode ([PR #29627](https://github.com/microsoft/fluentui/pull/29627) by marcosvmmoura@gmail.com)
18
+ - docs: add example on how to implement multiple levels inside one drawer ([PR #29665](https://github.com/microsoft/fluentui/pull/29665) by marcosvmmoura@gmail.com)
19
+ - Bump @fluentui/react-dialog to v9.8.1 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
20
+ - Bump @fluentui/react-motion-preview to v0.4.0 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
21
+ - Bump @fluentui/react-shared-contexts to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
22
+ - Bump @fluentui/react-tabster to v9.14.2 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
23
+
24
+ ## [9.0.0-beta.37](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.37)
25
+
26
+ Mon, 23 Oct 2023 09:51:57 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.36..@fluentui/react-drawer_v9.0.0-beta.37)
28
+
29
+ ### Changes
30
+
31
+ - Bump @fluentui/react-dialog to v9.8.0 ([commit](https://github.com/microsoft/fluentui/commit/e4ef1febe8a185dddc10f8936944d177d50bc396) by beachball)
32
+ - Bump @fluentui/react-tabster to v9.14.1 ([commit](https://github.com/microsoft/fluentui/commit/e4ef1febe8a185dddc10f8936944d177d50bc396) by beachball)
33
+
7
34
  ## [9.0.0-beta.36](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.0.0-beta.36)
8
35
 
9
- Wed, 18 Oct 2023 17:47:37 GMT
36
+ Wed, 18 Oct 2023 17:54:08 GMT
10
37
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.0.0-beta.35..@fluentui/react-drawer_v9.0.0-beta.36)
11
38
 
12
39
  ### Changes
package/README.md CHANGED
@@ -12,8 +12,9 @@ To import React Drawer components:
12
12
 
13
13
  ```tsx
14
14
  import {
15
- DrawerOverlay,
16
- DrawerInline,
15
+ Drawer,
16
+ OverlayDrawer,
17
+ InlineDrawer,
17
18
  DrawerHeader,
18
19
  DrawerHeaderTitle,
19
20
  DrawerHeaderNavigation,
package/dist/index.d.ts CHANGED
@@ -164,17 +164,44 @@ export declare type DrawerHeaderTitleSlots = {
164
164
  export declare type DrawerHeaderTitleState = ComponentState<DrawerHeaderTitleSlots>;
165
165
 
166
166
  /**
167
- * DrawerInline is often used for navigation that is not dismissible. As it is on the same level as
167
+ * Drawer Props
168
+ */
169
+ export declare type DrawerProps = ComponentProps<DrawerSlots> & {
170
+ /**
171
+ * Type of the drawer.
172
+ *
173
+ * - 'overlay' - Drawer is hidden by default and can be opened by clicking on the trigger.
174
+ * - 'inline' - Drawer is stacked with the content
175
+ *
176
+ * @default overlay
177
+ */
178
+ type?: 'inline' | 'overlay';
179
+ };
180
+
181
+ export declare type DrawerSlots = {
182
+ /**
183
+ * Root slot of the Drawer.
184
+ */
185
+ root: Slot<OverlayDrawerProps | InlineDrawerProps>;
186
+ };
187
+
188
+ /**
189
+ * State used in rendering Drawer
190
+ */
191
+ export declare type DrawerState = ComponentState<DrawerSlots>;
192
+
193
+ /**
194
+ * InlineDrawer is often used for navigation that is not dismissible. As it is on the same level as
168
195
  * the main surface, users can still interact with other UI elements.
169
196
  */
170
- export declare const DrawerInline: ForwardRefComponent<DrawerInlineProps>;
197
+ export declare const InlineDrawer: ForwardRefComponent<InlineDrawerProps>;
171
198
 
172
- export declare const drawerInlineClassNames: SlotClassNames<DrawerInlineSlots>;
199
+ export declare const inlineDrawerClassNames: SlotClassNames<InlineDrawerSlots>;
173
200
 
174
201
  /**
175
- * DrawerInline Props
202
+ * InlineDrawer Props
176
203
  */
177
- export declare type DrawerInlineProps = ComponentProps<DrawerInlineSlots> & DrawerBaseProps & {
204
+ export declare type InlineDrawerProps = ComponentProps<InlineDrawerSlots> & DrawerBaseProps & {
178
205
  /**
179
206
  * Whether the drawer has a separator line.
180
207
  *
@@ -183,26 +210,26 @@ export declare type DrawerInlineProps = ComponentProps<DrawerInlineSlots> & Draw
183
210
  separator?: boolean;
184
211
  };
185
212
 
186
- export declare type DrawerInlineSlots = {
213
+ export declare type InlineDrawerSlots = {
187
214
  root: Slot<'div'>;
188
215
  };
189
216
 
190
217
  /**
191
- * State used in rendering DrawerInline
218
+ * State used in rendering InlineDrawer
192
219
  */
193
- export declare type DrawerInlineState = Required<ComponentState<DrawerInlineSlots> & DrawerBaseState & Pick<DrawerInlineProps, 'separator'>>;
220
+ export declare type InlineDrawerState = Required<ComponentState<InlineDrawerSlots> & DrawerBaseState & Pick<InlineDrawerProps, 'separator'>>;
194
221
 
195
222
  /**
196
- * DrawerOverlay contains supplementary content and are used for complex creation, edit, or management experiences.
223
+ * OverlayDrawer contains supplementary content and are used for complex creation, edit, or management experiences.
197
224
  */
198
- export declare const DrawerOverlay: ForwardRefComponent<DrawerOverlayProps>;
225
+ export declare const OverlayDrawer: ForwardRefComponent<OverlayDrawerProps>;
199
226
 
200
- export declare const drawerOverlayClassNames: SlotClassNames<DrawerOverlaySurfaceSlots>;
227
+ export declare const overlayDrawerClassNames: SlotClassNames<OverlayDrawerSurfaceSlots>;
201
228
 
202
229
  /**
203
- * DrawerOverlay internal slots for when using with composition API
230
+ * OverlayDrawer internal slots for when using with composition API
204
231
  */
205
- declare type DrawerOverlayInternalSlots = DrawerOverlaySlots & {
232
+ declare type OverlayDrawerInternalSlots = OverlayDrawerSlots & {
206
233
  /**
207
234
  * Slot for the dialog component that wraps the drawer.
208
235
  */
@@ -210,66 +237,34 @@ declare type DrawerOverlayInternalSlots = DrawerOverlaySlots & {
210
237
  };
211
238
 
212
239
  /**
213
- * DrawerOverlay Props
240
+ * OverlayDrawer Props
214
241
  */
215
- export declare type DrawerOverlayProps = ComponentProps<DrawerOverlaySlots> & Pick<DialogProps, 'modalType' | 'onOpenChange' | 'inertTrapFocus' | 'defaultOpen'> & DrawerBaseProps;
242
+ export declare type OverlayDrawerProps = ComponentProps<OverlayDrawerSlots> & Pick<DialogProps, 'modalType' | 'onOpenChange' | 'inertTrapFocus' | 'defaultOpen'> & DrawerBaseProps;
216
243
 
217
244
  /**
218
- * DrawerOverlay slots
245
+ * OverlayDrawer slots
219
246
  */
220
- export declare type DrawerOverlaySlots = {
247
+ export declare type OverlayDrawerSlots = {
221
248
  /**
222
249
  * Slot for the root element.
223
250
  */
224
- root: Slot<DrawerOverlaySurfaceProps>;
251
+ root: Slot<OverlayDrawerSurfaceProps>;
225
252
  };
226
253
 
227
254
  /**
228
- * State used in rendering DrawerOverlay
229
- */
230
- export declare type DrawerOverlayState = Omit<ComponentState<DrawerOverlayInternalSlots>, 'backdrop'> & Required<DrawerBaseState & {
231
- /**
232
- * Motion state for the drawer backdrop.
233
- */
234
- backdropMotion: MotionState<HTMLDivElement>;
235
- }>;
236
-
237
- /**
238
- * DrawerOverlaySurface Props
255
+ * State used in rendering OverlayDrawer
239
256
  */
240
- declare type DrawerOverlaySurfaceProps = ComponentProps<DrawerOverlaySurfaceSlots>;
257
+ export declare type OverlayDrawerState = Omit<ComponentState<OverlayDrawerInternalSlots>, 'backdrop'> & Required<DrawerBaseState>;
241
258
 
242
259
  /**
243
- * DrawerOverlaySurface slots
260
+ * OverlayDrawerSurface Props
244
261
  */
245
- declare type DrawerOverlaySurfaceSlots = DialogSurfaceSlots;
262
+ declare type OverlayDrawerSurfaceProps = ComponentProps<OverlayDrawerSurfaceSlots>;
246
263
 
247
264
  /**
248
- * Drawer Props
265
+ * OverlayDrawerSurface slots
249
266
  */
250
- export declare type DrawerProps = ComponentProps<DrawerSlots> & {
251
- /**
252
- * Type of the drawer.
253
- *
254
- * - 'overlay' - Drawer is hidden by default and can be opened by clicking on the trigger.
255
- * - 'inline' - Drawer is stacked with the content
256
- *
257
- * @default overlay
258
- */
259
- type?: 'inline' | 'overlay';
260
- };
261
-
262
- export declare type DrawerSlots = {
263
- /**
264
- * Root slot of the Drawer.
265
- */
266
- root: Slot<DrawerOverlayProps | DrawerInlineProps>;
267
- };
268
-
269
- /**
270
- * State used in rendering Drawer
271
- */
272
- export declare type DrawerState = ComponentState<DrawerSlots>;
267
+ declare type OverlayDrawerSurfaceSlots = DialogSurfaceSlots;
273
268
 
274
269
  /**
275
270
  * Render the final JSX of Drawer
@@ -302,14 +297,14 @@ export declare const renderDrawerHeaderNavigation_unstable: (state: DrawerHeader
302
297
  export declare const renderDrawerHeaderTitle_unstable: (state: DrawerHeaderTitleState) => JSX.Element;
303
298
 
304
299
  /**
305
- * Render the final JSX of DrawerInline
300
+ * Render the final JSX of InlineDrawer
306
301
  */
307
- export declare const renderDrawerInline_unstable: (state: DrawerInlineState) => JSX.Element | null;
302
+ export declare const renderInlineDrawer_unstable: (state: InlineDrawerState) => JSX.Element | null;
308
303
 
309
304
  /**
310
- * Render the final JSX of DrawerOverlay
305
+ * Render the final JSX of OverlayDrawer
311
306
  */
312
- export declare const renderDrawerOverlay_unstable: (state: DrawerOverlayState) => JSX.Element | null;
307
+ export declare const renderOverlayDrawer_unstable: (state: OverlayDrawerState) => JSX.Element | null;
313
308
 
314
309
  /**
315
310
  * Create the state required to render Drawer.
@@ -403,35 +398,35 @@ export declare const useDrawerHeaderTitle_unstable: (props: DrawerHeaderTitlePro
403
398
  export declare const useDrawerHeaderTitleStyles_unstable: (state: DrawerHeaderTitleState) => DrawerHeaderTitleState;
404
399
 
405
400
  /**
406
- * Create the state required to render DrawerInline.
401
+ * Create the state required to render InlineDrawer.
407
402
  *
408
- * The returned state can be modified with hooks such as useDrawerInlineStyles_unstable,
409
- * before being passed to renderDrawerInline_unstable.
403
+ * The returned state can be modified with hooks such as useInlineDrawerStyles_unstable,
404
+ * before being passed to renderInlineDrawer_unstable.
410
405
  *
411
- * @param props - props from this instance of DrawerInline
412
- * @param ref - reference to root HTMLElement of DrawerInline
406
+ * @param props - props from this instance of InlineDrawer
407
+ * @param ref - reference to root HTMLElement of InlineDrawer
413
408
  */
414
- export declare const useDrawerInline_unstable: (props: DrawerInlineProps, ref: React_2.Ref<HTMLDivElement>) => DrawerInlineState;
409
+ export declare const useInlineDrawer_unstable: (props: InlineDrawerProps, ref: React_2.Ref<HTMLDivElement>) => InlineDrawerState;
415
410
 
416
411
  /**
417
- * Apply styling to the DrawerInline slots based on the state
412
+ * Apply styling to the InlineDrawer slots based on the state
418
413
  */
419
- export declare const useDrawerInlineStyles_unstable: (state: DrawerInlineState) => DrawerInlineState;
414
+ export declare const useInlineDrawerStyles_unstable: (state: InlineDrawerState) => InlineDrawerState;
420
415
 
421
416
  /**
422
- * Create the state required to render DrawerOverlay.
417
+ * Create the state required to render OverlayDrawer.
423
418
  *
424
- * The returned state can be modified with hooks such as useDrawerOverlayStyles_unstable,
425
- * before being passed to renderDrawerOverlay_unstable.
419
+ * The returned state can be modified with hooks such as useOverlayDrawerStyles_unstable,
420
+ * before being passed to renderOverlayDrawer_unstable.
426
421
  *
427
- * @param props - props from this instance of DrawerOverlay
428
- * @param ref - reference to root HTMLDivElement of DrawerOverlay
422
+ * @param props - props from this instance of OverlayDrawer
423
+ * @param ref - reference to root HTMLDivElement of OverlayDrawer
429
424
  */
430
- export declare const useDrawerOverlay_unstable: (props: DrawerOverlayProps, ref: React_2.Ref<HTMLDivElement>) => DrawerOverlayState;
425
+ export declare const useOverlayDrawer_unstable: (props: OverlayDrawerProps, ref: React_2.Ref<HTMLDivElement>) => OverlayDrawerState;
431
426
 
432
427
  /**
433
- * Apply styling to the DrawerOverlay slots based on the state
428
+ * Apply styling to the OverlayDrawer slots based on the state
434
429
  */
435
- export declare const useDrawerOverlayStyles_unstable: (state: DrawerOverlayState) => DrawerOverlayState;
430
+ export declare const useOverlayDrawerStyles_unstable: (state: OverlayDrawerState) => OverlayDrawerState;
436
431
 
437
432
  export { }
@@ -0,0 +1 @@
1
+ export * from './components/InlineDrawer/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["InlineDrawer.ts"],"sourcesContent":["export * from './components/InlineDrawer/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
@@ -0,0 +1 @@
1
+ export * from './components/OverlayDrawer/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["OverlayDrawer.ts"],"sourcesContent":["export * from './components/OverlayDrawer/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Drawer.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nimport type { DrawerOverlayProps } from '../DrawerOverlay';\nimport type { DrawerInlineProps } from '../DrawerInline';\n\nexport type DrawerSlots = {\n /**\n * Root slot of the Drawer.\n */\n root: Slot<DrawerOverlayProps | DrawerInlineProps>;\n};\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};\n\n/**\n * State used in rendering Drawer\n */\nexport type DrawerState = ComponentState<DrawerSlots>;\n"],"names":[],"mappings":"AAAA,WA8BsD"}
1
+ {"version":3,"sources":["Drawer.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nimport type { OverlayDrawerProps } from '../OverlayDrawer';\nimport type { InlineDrawerProps } from '../InlineDrawer';\n\nexport type DrawerSlots = {\n /**\n * Root slot of the Drawer.\n */\n root: Slot<OverlayDrawerProps | InlineDrawerProps>;\n};\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};\n\n/**\n * State used in rendering Drawer\n */\nexport type DrawerState = ComponentState<DrawerSlots>;\n"],"names":[],"mappings":"AAAA,WA8BsD"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { slot } from '@fluentui/react-utilities';
3
- import { DrawerOverlay } from '../DrawerOverlay';
4
- import { DrawerInline } from '../DrawerInline';
3
+ import { OverlayDrawer } from '../OverlayDrawer';
4
+ import { InlineDrawer } from '../InlineDrawer';
5
5
  /**
6
6
  * Create the state required to render Drawer.
7
7
  *
@@ -11,7 +11,7 @@ import { DrawerInline } from '../DrawerInline';
11
11
  * @param props - props from this instance of Drawer
12
12
  * @param ref - reference to root HTMLElement of Drawer
13
13
  */ export const useDrawer_unstable = (props, ref)=>{
14
- const elementType = props.type === 'inline' ? DrawerInline : DrawerOverlay;
14
+ const elementType = props.type === 'inline' ? InlineDrawer : OverlayDrawer;
15
15
  return {
16
16
  components: {
17
17
  root: elementType
@@ -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 { DrawerOverlay } from '../DrawerOverlay';\nimport { DrawerInline } from '../DrawerInline';\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' ? DrawerInline : DrawerOverlay;\n\n return {\n components: {\n root: elementType,\n },\n\n root: slot.always<DrawerProps>(\n slot.resolveShorthand({\n ref,\n ...props,\n }),\n {\n elementType,\n },\n ),\n };\n};\n"],"names":["React","slot","DrawerOverlay","DrawerInline","useDrawer_unstable","props","ref","elementType","type","components","root","always","resolveShorthand"],"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,CACfV,KAAKW,gBAAgB,CAAC;YACpBN;YACA,GAAGD,KAAK;QACV,IACA;YACEE;QACF;IAEJ;AACF,EAAE"}
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<DrawerProps>(\n slot.resolveShorthand({\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","resolveShorthand"],"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,CACfV,KAAKW,gBAAgB,CAAC;YACpBN;YACA,GAAGD,KAAK;QACV,IACA;YACEE;QACF;IAEJ;AACF,EAAE"}
@@ -6,7 +6,7 @@ export const drawerFooterClassNames = {
6
6
  /**
7
7
  * Styles for the root slot
8
8
  */
9
- const useStyles = /*#__PURE__*/__resetStyles("rli1cm2", "r1xlf3nx", [".rli1cm2{padding-top:var(--spacingVerticalL);padding-right:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalXXL);padding-left:var(--spacingHorizontalXXL);display:flex;justify-content:flex-start;align-items:center;column-gap:var(--spacingHorizontalS);}", ".r1xlf3nx{padding-top:var(--spacingVerticalL);padding-left:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalXXL);padding-right:var(--spacingHorizontalXXL);display:flex;justify-content:flex-start;align-items:center;column-gap:var(--spacingHorizontalS);}"]);
9
+ const useStyles = /*#__PURE__*/__resetStyles("r1nwgn83", "r4bpumq", [".r1nwgn83{padding-top:var(--spacingVerticalL);padding-right:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalXXL);padding-left:var(--spacingHorizontalXXL);width:100%;max-width:100%;display:flex;justify-content:flex-start;align-items:center;column-gap:var(--spacingHorizontalS);box-sizing:border-box;}", ".r4bpumq{padding-top:var(--spacingVerticalL);padding-left:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalXXL);padding-right:var(--spacingHorizontalXXL);width:100%;max-width:100%;display:flex;justify-content:flex-start;align-items:center;column-gap:var(--spacingHorizontalS);box-sizing:border-box;}"]);
10
10
  /**
11
11
  * Apply styling to the DrawerFooter slots based on the state
12
12
  */
@@ -1 +1 @@
1
- {"version":3,"names":["__resetStyles","mergeClasses","shorthands","tokens","drawerFooterClassNames","root","useStyles","useDrawerFooterStyles_unstable","state","styles","className"],"sources":["useDrawerFooterStyles.styles.js"],"sourcesContent":["import { makeResetStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const drawerFooterClassNames = {\n root: 'fui-DrawerFooter'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeResetStyles({\n ...shorthands.padding(tokens.spacingVerticalL, tokens.spacingHorizontalXXL, tokens.spacingVerticalXXL),\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS\n});\n/**\n * Apply styling to the DrawerFooter slots based on the state\n */ export const useDrawerFooterStyles_unstable = (state)=>{\n const styles = useStyles();\n state.root.className = mergeClasses(drawerFooterClassNames.root, styles, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,aAAA,EAA0BC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,sBAAsB,GAAG;EAClCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGN,aAAA,qjBAMrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMO,8BAA8B,GAAIC,KAAK,IAAG;EACvD,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGT,YAAY,CAACG,sBAAsB,CAACC,IAAI,EAAEI,MAAM,EAAED,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EAC9F,OAAOF,KAAK;AAChB,CAAC"}
1
+ {"version":3,"names":["__resetStyles","mergeClasses","shorthands","tokens","drawerFooterClassNames","root","useStyles","useDrawerFooterStyles_unstable","state","styles","className"],"sources":["useDrawerFooterStyles.styles.js"],"sourcesContent":["import { makeResetStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const drawerFooterClassNames = {\n root: 'fui-DrawerFooter'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeResetStyles({\n ...shorthands.padding(tokens.spacingVerticalL, tokens.spacingHorizontalXXL, tokens.spacingVerticalXXL),\n width: '100%',\n maxWidth: '100%',\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS,\n boxSizing: 'border-box'\n});\n/**\n * Apply styling to the DrawerFooter slots based on the state\n */ export const useDrawerFooterStyles_unstable = (state)=>{\n const styles = useStyles();\n state.root.className = mergeClasses(drawerFooterClassNames.root, styles, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,aAAA,EAA0BC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,sBAAsB,GAAG;EAClCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGN,aAAA,qpBASrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMO,8BAA8B,GAAIC,KAAK,IAAG;EACvD,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGT,YAAY,CAACG,sBAAsB,CAACC,IAAI,EAAEI,MAAM,EAAED,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EAC9F,OAAOF,KAAK;AAChB,CAAC"}
@@ -6,7 +6,7 @@ export const drawerHeaderClassNames = {
6
6
  /**
7
7
  * Styles for the root slot
8
8
  */
9
- const useStyles = /*#__PURE__*/__resetStyles("r10tpwon", "r53n3g6", [".r10tpwon{padding-top:var(--spacingVerticalXXL);padding-right:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-left:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);align-self:stretch;display:flex;flex-direction:column;}", ".r53n3g6{padding-top:var(--spacingVerticalXXL);padding-left:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-right:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);align-self:stretch;display:flex;flex-direction:column;}"]);
9
+ const useStyles = /*#__PURE__*/__resetStyles("rh4hr5f", "r116c7xc", [".rh4hr5f{padding-top:var(--spacingVerticalXXL);padding-right:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-left:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}", ".r116c7xc{padding-top:var(--spacingVerticalXXL);padding-left:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-right:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}"]);
10
10
  /**
11
11
  * Apply styling to the DrawerHeader slots based on the state
12
12
  */
@@ -1 +1 @@
1
- {"version":3,"names":["__resetStyles","mergeClasses","shorthands","tokens","drawerHeaderClassNames","root","useStyles","useDrawerHeaderStyles_unstable","state","styles","className"],"sources":["useDrawerHeaderStyles.styles.js"],"sourcesContent":["import { makeResetStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const drawerHeaderClassNames = {\n root: 'fui-DrawerHeader'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeResetStyles({\n ...shorthands.padding(tokens.spacingVerticalXXL, tokens.spacingHorizontalXXL, tokens.spacingVerticalS),\n ...shorthands.gap(tokens.spacingHorizontalS),\n alignSelf: 'stretch',\n display: 'flex',\n flexDirection: 'column'\n});\n/**\n * Apply styling to the DrawerHeader slots based on the state\n */ export const useDrawerHeaderStyles_unstable = (state)=>{\n const styles = useStyles();\n state.root.className = mergeClasses(drawerHeaderClassNames.root, styles, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,aAAA,EAA0BC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,sBAAsB,GAAG;EAClCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGN,aAAA,+mBAMrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMO,8BAA8B,GAAIC,KAAK,IAAG;EACvD,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGT,YAAY,CAACG,sBAAsB,CAACC,IAAI,EAAEI,MAAM,EAAED,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EAC9F,OAAOF,KAAK;AAChB,CAAC"}
1
+ {"version":3,"names":["__resetStyles","mergeClasses","shorthands","tokens","drawerHeaderClassNames","root","useStyles","useDrawerHeaderStyles_unstable","state","styles","className"],"sources":["useDrawerHeaderStyles.styles.js"],"sourcesContent":["import { makeResetStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const drawerHeaderClassNames = {\n root: 'fui-DrawerHeader'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeResetStyles({\n ...shorthands.padding(tokens.spacingVerticalXXL, tokens.spacingHorizontalXXL, tokens.spacingVerticalS),\n ...shorthands.gap(tokens.spacingHorizontalS),\n width: '100%',\n maxWidth: '100%',\n alignSelf: 'stretch',\n display: 'flex',\n flexDirection: 'column',\n boxSizing: 'border-box'\n});\n/**\n * Apply styling to the DrawerHeader slots based on the state\n */ export const useDrawerHeaderStyles_unstable = (state)=>{\n const styles = useStyles();\n state.root.className = mergeClasses(drawerHeaderClassNames.root, styles, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,aAAA,EAA0BC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,sBAAsB,GAAG;EAClCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGN,aAAA,+sBASrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMO,8BAA8B,GAAIC,KAAK,IAAG;EACvD,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGT,YAAY,CAACG,sBAAsB,CAACC,IAAI,EAAEI,MAAM,EAAED,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EAC9F,OAAOF,KAAK;AAChB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
3
+ import { useInlineDrawer_unstable } from './useInlineDrawer';
4
+ import { renderInlineDrawer_unstable } from './renderInlineDrawer';
5
+ import { useInlineDrawerStyles_unstable } from './useInlineDrawerStyles.styles';
6
+ /**
7
+ * InlineDrawer is often used for navigation that is not dismissible. As it is on the same level as
8
+ * the main surface, users can still interact with other UI elements.
9
+ */ export const InlineDrawer = /*#__PURE__*/ React.forwardRef((props, ref)=>{
10
+ const state = useInlineDrawer_unstable(props, ref);
11
+ useInlineDrawerStyles_unstable(state);
12
+ useCustomStyleHook_unstable('useDrawerInlineStyles_unstable')(state);
13
+ useCustomStyleHook_unstable('useInlineDrawerStyles_unstable')(state);
14
+ return renderInlineDrawer_unstable(state);
15
+ });
16
+ InlineDrawer.displayName = 'InlineDrawer';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["InlineDrawer.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport type { InlineDrawerProps } from './InlineDrawer.types';\nimport { useInlineDrawer_unstable } from './useInlineDrawer';\nimport { renderInlineDrawer_unstable } from './renderInlineDrawer';\nimport { useInlineDrawerStyles_unstable } from './useInlineDrawerStyles.styles';\n\n/**\n * InlineDrawer is often used for navigation that is not dismissible. As it is on the same level as\n * the main surface, users can still interact with other UI elements.\n */\nexport const InlineDrawer: ForwardRefComponent<InlineDrawerProps> = React.forwardRef((props, ref) => {\n const state = useInlineDrawer_unstable(props, ref);\n\n useInlineDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerInlineStyles_unstable')(state);\n useCustomStyleHook_unstable('useInlineDrawerStyles_unstable')(state);\n\n return renderInlineDrawer_unstable(state);\n});\n\nInlineDrawer.displayName = 'InlineDrawer';\n"],"names":["React","useCustomStyleHook_unstable","useInlineDrawer_unstable","renderInlineDrawer_unstable","useInlineDrawerStyles_unstable","InlineDrawer","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAG9E,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,8BAA8B,QAAQ,iCAAiC;AAEhF;;;CAGC,GACD,OAAO,MAAMC,6BAAuDL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC3F,MAAMC,QAAQP,yBAAyBK,OAAOC;IAE9CJ,+BAA+BK;IAC/BR,4BAA4B,kCAAkCQ;IAC9DR,4BAA4B,kCAAkCQ;IAE9D,OAAON,4BAA4BM;AACrC,GAAG;AAEHJ,aAAaK,WAAW,GAAG"}
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ export * from './InlineDrawer';
2
+ export * from './InlineDrawer.types';
3
+ export * from './renderInlineDrawer';
4
+ export * from './useInlineDrawer';
5
+ export * from './useInlineDrawerStyles.styles';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './InlineDrawer';\nexport * from './InlineDrawer.types';\nexport * from './renderInlineDrawer';\nexport * from './useInlineDrawer';\nexport * from './useInlineDrawerStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,uBAAuB;AACrC,cAAc,uBAAuB;AACrC,cAAc,oBAAoB;AAClC,cAAc,iCAAiC"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-utilities';
3
3
  /**
4
- * Render the final JSX of DrawerInline
5
- */ export const renderDrawerInline_unstable = (state)=>{
4
+ * Render the final JSX of InlineDrawer
5
+ */ export const renderInlineDrawer_unstable = (state)=>{
6
6
  if (!state.motion.canRender) {
7
7
  return null;
8
8
  }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderInlineDrawer.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\n\nimport type { InlineDrawerState, InlineDrawerSlots } from './InlineDrawer.types';\n\n/**\n * Render the final JSX of InlineDrawer\n */\nexport const renderInlineDrawer_unstable = (state: InlineDrawerState) => {\n if (!state.motion.canRender) {\n return null;\n }\n\n assertSlots<InlineDrawerSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderInlineDrawer_unstable","state","motion","canRender","root"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAIxD;;CAEC,GACD,OAAO,MAAMC,8BAA8B,CAACC;IAC1C,IAAI,CAACA,MAAMC,MAAM,CAACC,SAAS,EAAE;QAC3B,OAAO;IACT;IAEAJ,YAA+BE;IAE/B,qBAAO,KAACA,MAAMG,IAAI;AACpB,EAAE"}
@@ -3,14 +3,14 @@ import { getIntrinsicElementProps, slot, useMergedRefs } from '@fluentui/react-u
3
3
  import { useMotion } from '@fluentui/react-motion-preview';
4
4
  import { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';
5
5
  /**
6
- * Create the state required to render DrawerInline.
6
+ * Create the state required to render InlineDrawer.
7
7
  *
8
- * The returned state can be modified with hooks such as useDrawerInlineStyles_unstable,
9
- * before being passed to renderDrawerInline_unstable.
8
+ * The returned state can be modified with hooks such as useInlineDrawerStyles_unstable,
9
+ * before being passed to renderInlineDrawer_unstable.
10
10
  *
11
- * @param props - props from this instance of DrawerInline
12
- * @param ref - reference to root HTMLElement of DrawerInline
13
- */ export const useDrawerInline_unstable = (props, ref)=>{
11
+ * @param props - props from this instance of InlineDrawer
12
+ * @param ref - reference to root HTMLElement of InlineDrawer
13
+ */ export const useInlineDrawer_unstable = (props, ref)=>{
14
14
  const { size, position, open } = useDrawerDefaultProps(props);
15
15
  const { separator = false } = props;
16
16
  const motion = useMotion(open);
@@ -1 +1 @@
1
- {"version":3,"sources":["useDrawerInline.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 { DrawerInlineProps, DrawerInlineState } from './DrawerInline.types';\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\n\n/**\n * Create the state required to render DrawerInline.\n *\n * The returned state can be modified with hooks such as useDrawerInlineStyles_unstable,\n * before being passed to renderDrawerInline_unstable.\n *\n * @param props - props from this instance of DrawerInline\n * @param ref - reference to root HTMLElement of DrawerInline\n */\nexport const useDrawerInline_unstable = (\n props: DrawerInlineProps,\n ref: React.Ref<HTMLDivElement>,\n): DrawerInlineState => {\n const { size, position, open } = useDrawerDefaultProps(props);\n const { separator = false } = props;\n\n const motion = useMotion<HTMLDivElement>(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","useDrawerInline_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,CACtCC,OACAC;IAEA,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGN,sBAAsBE;IACvD,MAAM,EAAEK,YAAY,KAAK,EAAE,GAAGL;IAE9B,MAAMM,SAAST,UAA0BO;IAEzC,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
+ {"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 = (\n props: InlineDrawerProps,\n ref: React.Ref<HTMLDivElement>,\n): InlineDrawerState => {\n const { size, position, open } = useDrawerDefaultProps(props);\n const { separator = false } = props;\n\n const motion = useMotion<HTMLDivElement>(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,CACtCC,OACAC;IAEA,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGN,sBAAsBE;IACvD,MAAM,EAAEK,YAAY,KAAK,EAAE,GAAGL;IAE9B,MAAMM,SAAST,UAA0BO;IAEzC,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"}