@fluentui/react-drawer 9.0.0-beta.9 → 9.0.1

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 (279) hide show
  1. package/CHANGELOG.md +426 -2
  2. package/README.md +5 -4
  3. package/dist/index.d.ts +128 -78
  4. package/lib/InlineDrawer.js +1 -0
  5. package/lib/InlineDrawer.js.map +1 -0
  6. package/lib/OverlayDrawer.js +1 -0
  7. package/lib/OverlayDrawer.js.map +1 -0
  8. package/lib/components/Drawer/Drawer.js +1 -1
  9. package/lib/components/Drawer/Drawer.js.map +1 -1
  10. package/lib/components/Drawer/Drawer.types.js.map +1 -1
  11. package/lib/components/Drawer/renderDrawer.js +4 -4
  12. package/lib/components/Drawer/renderDrawer.js.map +1 -1
  13. package/lib/components/Drawer/useDrawer.js +10 -10
  14. package/lib/components/Drawer/useDrawer.js.map +1 -1
  15. package/lib/components/DrawerBody/DrawerBody.js +1 -1
  16. package/lib/components/DrawerBody/DrawerBody.js.map +1 -1
  17. package/lib/components/DrawerBody/renderDrawerBody.js +4 -4
  18. package/lib/components/DrawerBody/renderDrawerBody.js.map +1 -1
  19. package/lib/components/DrawerBody/useDrawerBody.js +8 -3
  20. package/lib/components/DrawerBody/useDrawerBody.js.map +1 -1
  21. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.js +3 -30
  22. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.js.map +1 -1
  23. package/lib/components/DrawerFooter/DrawerFooter.js +3 -1
  24. package/lib/components/DrawerFooter/DrawerFooter.js.map +1 -1
  25. package/lib/components/DrawerFooter/renderDrawerFooter.js +4 -4
  26. package/lib/components/DrawerFooter/renderDrawerFooter.js.map +1 -1
  27. package/lib/components/DrawerFooter/useDrawerFooter.js +4 -2
  28. package/lib/components/DrawerFooter/useDrawerFooter.js.map +1 -1
  29. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.js +3 -16
  30. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.js.map +1 -1
  31. package/lib/components/DrawerHeader/DrawerHeader.js +1 -1
  32. package/lib/components/DrawerHeader/DrawerHeader.js.map +1 -1
  33. package/lib/components/DrawerHeader/renderDrawerHeader.js +4 -4
  34. package/lib/components/DrawerHeader/renderDrawerHeader.js.map +1 -1
  35. package/lib/components/DrawerHeader/useDrawerHeader.js +4 -2
  36. package/lib/components/DrawerHeader/useDrawerHeader.js.map +1 -1
  37. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.js +3 -17
  38. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.js.map +1 -1
  39. package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js +1 -1
  40. package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js.map +1 -1
  41. package/lib/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js +4 -4
  42. package/lib/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js.map +1 -1
  43. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js +4 -2
  44. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js.map +1 -1
  45. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js +3 -13
  46. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js.map +1 -1
  47. package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.js +1 -1
  48. package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.js.map +1 -1
  49. package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js +1 -1
  50. package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js.map +1 -1
  51. package/lib/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js +9 -4
  52. package/lib/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js.map +1 -1
  53. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitle.js +26 -15
  54. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitle.js.map +1 -1
  55. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js +1 -1
  56. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js.map +1 -1
  57. package/lib/components/InlineDrawer/InlineDrawer.js +16 -0
  58. package/lib/components/InlineDrawer/InlineDrawer.js.map +1 -0
  59. package/lib/components/InlineDrawer/InlineDrawer.types.js.map +1 -0
  60. package/lib/components/InlineDrawer/index.js +5 -0
  61. package/lib/components/InlineDrawer/index.js.map +1 -0
  62. package/lib/components/InlineDrawer/renderInlineDrawer.js +11 -0
  63. package/lib/components/InlineDrawer/renderInlineDrawer.js.map +1 -0
  64. package/lib/components/InlineDrawer/useInlineDrawer.js +32 -0
  65. package/lib/components/InlineDrawer/useInlineDrawer.js.map +1 -0
  66. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.js +64 -0
  67. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.js.map +1 -0
  68. package/lib/components/OverlayDrawer/OverlayDrawer.js +15 -0
  69. package/lib/components/OverlayDrawer/OverlayDrawer.js.map +1 -0
  70. package/lib/components/OverlayDrawer/OverlayDrawer.types.js.map +1 -0
  71. package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js +13 -0
  72. package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map +1 -0
  73. package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js.map +1 -0
  74. package/lib/components/OverlayDrawer/OverlayDrawerSurface/index.js +2 -0
  75. package/lib/components/OverlayDrawer/OverlayDrawerSurface/index.js.map +1 -0
  76. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js +29 -0
  77. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js.map +1 -0
  78. package/lib/components/OverlayDrawer/index.js +5 -0
  79. package/lib/components/OverlayDrawer/index.js.map +1 -0
  80. package/lib/components/OverlayDrawer/renderOverlayDrawer.js +13 -0
  81. package/lib/components/OverlayDrawer/renderOverlayDrawer.js.map +1 -0
  82. package/lib/components/OverlayDrawer/useOverlayDrawer.js +56 -0
  83. package/lib/components/OverlayDrawer/useOverlayDrawer.js.map +1 -0
  84. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.js +73 -0
  85. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.js.map +1 -0
  86. package/lib/e2e/DrawerShared.js +108 -0
  87. package/lib/e2e/DrawerShared.js.map +1 -0
  88. package/lib/index.js +3 -3
  89. package/lib/index.js.map +1 -1
  90. package/lib/shared/DrawerBase.types.js +1 -0
  91. package/lib/shared/DrawerBase.types.js.map +1 -0
  92. package/lib/shared/useDrawerBaseStyles.styles.js +96 -0
  93. package/lib/shared/useDrawerBaseStyles.styles.js.map +1 -0
  94. package/lib/shared/useDrawerDefaultProps.js +8 -0
  95. package/lib/shared/useDrawerDefaultProps.js.map +1 -0
  96. package/lib-commonjs/Drawer.js +2 -2
  97. package/lib-commonjs/Drawer.js.map +1 -1
  98. package/lib-commonjs/DrawerBody.js +2 -2
  99. package/lib-commonjs/DrawerBody.js.map +1 -1
  100. package/lib-commonjs/DrawerFooter.js +2 -2
  101. package/lib-commonjs/DrawerFooter.js.map +1 -1
  102. package/lib-commonjs/DrawerHeader.js +2 -2
  103. package/lib-commonjs/DrawerHeader.js.map +1 -1
  104. package/lib-commonjs/DrawerHeaderNavigation.js +2 -2
  105. package/lib-commonjs/DrawerHeaderNavigation.js.map +1 -1
  106. package/lib-commonjs/DrawerHeaderTitle.js +2 -2
  107. package/lib-commonjs/DrawerHeaderTitle.js.map +1 -1
  108. package/lib-commonjs/InlineDrawer.js +6 -0
  109. package/lib-commonjs/InlineDrawer.js.map +1 -0
  110. package/lib-commonjs/OverlayDrawer.js +6 -0
  111. package/lib-commonjs/OverlayDrawer.js.map +1 -0
  112. package/lib-commonjs/components/Drawer/Drawer.js +9 -7
  113. package/lib-commonjs/components/Drawer/Drawer.js.map +1 -1
  114. package/lib-commonjs/components/Drawer/index.js +6 -6
  115. package/lib-commonjs/components/Drawer/index.js.map +1 -1
  116. package/lib-commonjs/components/Drawer/renderDrawer.js +8 -6
  117. package/lib-commonjs/components/Drawer/renderDrawer.js.map +1 -1
  118. package/lib-commonjs/components/Drawer/useDrawer.js +15 -13
  119. package/lib-commonjs/components/Drawer/useDrawer.js.map +1 -1
  120. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.js +6 -2
  121. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.js.map +1 -1
  122. package/lib-commonjs/components/DrawerBody/DrawerBody.js +9 -7
  123. package/lib-commonjs/components/DrawerBody/DrawerBody.js.map +1 -1
  124. package/lib-commonjs/components/DrawerBody/index.js +6 -6
  125. package/lib-commonjs/components/DrawerBody/index.js.map +1 -1
  126. package/lib-commonjs/components/DrawerBody/renderDrawerBody.js +7 -6
  127. package/lib-commonjs/components/DrawerBody/renderDrawerBody.js.map +1 -1
  128. package/lib-commonjs/components/DrawerBody/useDrawerBody.js +13 -6
  129. package/lib-commonjs/components/DrawerBody/useDrawerBody.js.map +1 -1
  130. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.js +15 -66
  131. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.js.map +1 -1
  132. package/lib-commonjs/components/DrawerFooter/DrawerFooter.js +9 -5
  133. package/lib-commonjs/components/DrawerFooter/DrawerFooter.js.map +1 -1
  134. package/lib-commonjs/components/DrawerFooter/index.js +6 -6
  135. package/lib-commonjs/components/DrawerFooter/index.js.map +1 -1
  136. package/lib-commonjs/components/DrawerFooter/renderDrawerFooter.js +7 -6
  137. package/lib-commonjs/components/DrawerFooter/renderDrawerFooter.js.map +1 -1
  138. package/lib-commonjs/components/DrawerFooter/useDrawerFooter.js +9 -5
  139. package/lib-commonjs/components/DrawerFooter/useDrawerFooter.js.map +1 -1
  140. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.js +11 -32
  141. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.js.map +1 -1
  142. package/lib-commonjs/components/DrawerHeader/DrawerHeader.js +9 -7
  143. package/lib-commonjs/components/DrawerHeader/DrawerHeader.js.map +1 -1
  144. package/lib-commonjs/components/DrawerHeader/index.js +6 -6
  145. package/lib-commonjs/components/DrawerHeader/index.js.map +1 -1
  146. package/lib-commonjs/components/DrawerHeader/renderDrawerHeader.js +7 -6
  147. package/lib-commonjs/components/DrawerHeader/renderDrawerHeader.js.map +1 -1
  148. package/lib-commonjs/components/DrawerHeader/useDrawerHeader.js +9 -5
  149. package/lib-commonjs/components/DrawerHeader/useDrawerHeader.js.map +1 -1
  150. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.js +11 -34
  151. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.js.map +1 -1
  152. package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js +9 -7
  153. package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js.map +1 -1
  154. package/lib-commonjs/components/DrawerHeaderNavigation/index.js +6 -6
  155. package/lib-commonjs/components/DrawerHeaderNavigation/index.js.map +1 -1
  156. package/lib-commonjs/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js +7 -6
  157. package/lib-commonjs/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js.map +1 -1
  158. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js +9 -5
  159. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js.map +1 -1
  160. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js +11 -26
  161. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js.map +1 -1
  162. package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.js +9 -7
  163. package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.js.map +1 -1
  164. package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js +0 -2
  165. package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js.map +1 -1
  166. package/lib-commonjs/components/DrawerHeaderTitle/index.js +6 -6
  167. package/lib-commonjs/components/DrawerHeaderTitle/index.js.map +1 -1
  168. package/lib-commonjs/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js +12 -6
  169. package/lib-commonjs/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js.map +1 -1
  170. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitle.js +31 -18
  171. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitle.js.map +1 -1
  172. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js +14 -10
  173. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js.map +1 -1
  174. package/lib-commonjs/components/InlineDrawer/InlineDrawer.js +24 -0
  175. package/lib-commonjs/components/InlineDrawer/InlineDrawer.js.map +1 -0
  176. package/lib-commonjs/components/InlineDrawer/index.js +10 -0
  177. package/lib-commonjs/components/InlineDrawer/index.js.map +1 -0
  178. package/lib-commonjs/components/InlineDrawer/renderInlineDrawer.js +19 -0
  179. package/lib-commonjs/components/InlineDrawer/renderInlineDrawer.js.map +1 -0
  180. package/lib-commonjs/components/InlineDrawer/useInlineDrawer.js +35 -0
  181. package/lib-commonjs/components/InlineDrawer/useInlineDrawer.js.map +1 -0
  182. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.js +122 -0
  183. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.js.map +1 -0
  184. package/lib-commonjs/components/OverlayDrawer/OverlayDrawer.js +24 -0
  185. package/lib-commonjs/components/OverlayDrawer/OverlayDrawer.js.map +1 -0
  186. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js +21 -0
  187. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map +1 -0
  188. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/index.js +7 -0
  189. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/index.js.map +1 -0
  190. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js +46 -0
  191. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js.map +1 -0
  192. package/lib-commonjs/components/OverlayDrawer/index.js +10 -0
  193. package/lib-commonjs/components/OverlayDrawer/index.js.map +1 -0
  194. package/lib-commonjs/components/OverlayDrawer/renderOverlayDrawer.js +21 -0
  195. package/lib-commonjs/components/OverlayDrawer/renderOverlayDrawer.js.map +1 -0
  196. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawer.js +59 -0
  197. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawer.js.map +1 -0
  198. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.js +112 -0
  199. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.js.map +1 -0
  200. package/lib-commonjs/e2e/DrawerShared.js +119 -0
  201. package/lib-commonjs/e2e/DrawerShared.js.map +1 -0
  202. package/lib-commonjs/index.js +125 -46
  203. package/lib-commonjs/index.js.map +1 -1
  204. package/lib-commonjs/shared/DrawerBase.types.js +6 -0
  205. package/lib-commonjs/shared/DrawerBase.types.js.map +1 -0
  206. package/lib-commonjs/shared/useDrawerBaseStyles.styles.js +165 -0
  207. package/lib-commonjs/shared/useDrawerBaseStyles.styles.js.map +1 -0
  208. package/lib-commonjs/shared/useDrawerDefaultProps.js +18 -0
  209. package/lib-commonjs/shared/useDrawerDefaultProps.js.map +1 -0
  210. package/package.json +22 -15
  211. package/CHANGELOG.json +0 -303
  212. package/lib/DrawerInline.js +0 -1
  213. package/lib/DrawerInline.js.map +0 -1
  214. package/lib/DrawerOverlay.js +0 -1
  215. package/lib/DrawerOverlay.js.map +0 -1
  216. package/lib/components/DrawerInline/DrawerInline.js +0 -13
  217. package/lib/components/DrawerInline/DrawerInline.js.map +0 -1
  218. package/lib/components/DrawerInline/DrawerInline.types.js.map +0 -1
  219. package/lib/components/DrawerInline/index.js +0 -5
  220. package/lib/components/DrawerInline/index.js.map +0 -1
  221. package/lib/components/DrawerInline/renderDrawerInline.js +0 -11
  222. package/lib/components/DrawerInline/renderDrawerInline.js.map +0 -1
  223. package/lib/components/DrawerInline/useDrawerInline.js +0 -33
  224. package/lib/components/DrawerInline/useDrawerInline.js.map +0 -1
  225. package/lib/components/DrawerInline/useDrawerInlineStyles.styles.js +0 -43
  226. package/lib/components/DrawerInline/useDrawerInlineStyles.styles.js.map +0 -1
  227. package/lib/components/DrawerOverlay/DrawerOverlay.js +0 -12
  228. package/lib/components/DrawerOverlay/DrawerOverlay.js.map +0 -1
  229. package/lib/components/DrawerOverlay/DrawerOverlay.types.js.map +0 -1
  230. package/lib/components/DrawerOverlay/index.js +0 -5
  231. package/lib/components/DrawerOverlay/index.js.map +0 -1
  232. package/lib/components/DrawerOverlay/renderDrawerOverlay.js +0 -9
  233. package/lib/components/DrawerOverlay/renderDrawerOverlay.js.map +0 -1
  234. package/lib/components/DrawerOverlay/useDrawerOverlay.js +0 -35
  235. package/lib/components/DrawerOverlay/useDrawerOverlay.js.map +0 -1
  236. package/lib/components/DrawerOverlay/useDrawerOverlayStyles.styles.js +0 -33
  237. package/lib/components/DrawerOverlay/useDrawerOverlayStyles.styles.js.map +0 -1
  238. package/lib/util/DrawerBase.types.js.map +0 -1
  239. package/lib/util/getDefaultDrawerProps.js +0 -9
  240. package/lib/util/getDefaultDrawerProps.js.map +0 -1
  241. package/lib/util/useDrawerBaseStyles.styles.js +0 -55
  242. package/lib/util/useDrawerBaseStyles.styles.js.map +0 -1
  243. package/lib-commonjs/DrawerInline.js +0 -6
  244. package/lib-commonjs/DrawerInline.js.map +0 -1
  245. package/lib-commonjs/DrawerOverlay.js +0 -6
  246. package/lib-commonjs/DrawerOverlay.js.map +0 -1
  247. package/lib-commonjs/components/DrawerInline/DrawerInline.js +0 -19
  248. package/lib-commonjs/components/DrawerInline/DrawerInline.js.map +0 -1
  249. package/lib-commonjs/components/DrawerInline/index.js +0 -10
  250. package/lib-commonjs/components/DrawerInline/index.js.map +0 -1
  251. package/lib-commonjs/components/DrawerInline/renderDrawerInline.js +0 -18
  252. package/lib-commonjs/components/DrawerInline/renderDrawerInline.js.map +0 -1
  253. package/lib-commonjs/components/DrawerInline/useDrawerInline.js +0 -34
  254. package/lib-commonjs/components/DrawerInline/useDrawerInline.js.map +0 -1
  255. package/lib-commonjs/components/DrawerInline/useDrawerInlineStyles.styles.js +0 -83
  256. package/lib-commonjs/components/DrawerInline/useDrawerInlineStyles.styles.js.map +0 -1
  257. package/lib-commonjs/components/DrawerOverlay/DrawerOverlay.js +0 -19
  258. package/lib-commonjs/components/DrawerOverlay/DrawerOverlay.js.map +0 -1
  259. package/lib-commonjs/components/DrawerOverlay/index.js +0 -10
  260. package/lib-commonjs/components/DrawerOverlay/index.js.map +0 -1
  261. package/lib-commonjs/components/DrawerOverlay/renderDrawerOverlay.js +0 -16
  262. package/lib-commonjs/components/DrawerOverlay/renderDrawerOverlay.js.map +0 -1
  263. package/lib-commonjs/components/DrawerOverlay/useDrawerOverlay.js +0 -36
  264. package/lib-commonjs/components/DrawerOverlay/useDrawerOverlay.js.map +0 -1
  265. package/lib-commonjs/components/DrawerOverlay/useDrawerOverlayStyles.styles.js +0 -47
  266. package/lib-commonjs/components/DrawerOverlay/useDrawerOverlayStyles.styles.js.map +0 -1
  267. package/lib-commonjs/util/getDefaultDrawerProps.js +0 -17
  268. package/lib-commonjs/util/getDefaultDrawerProps.js.map +0 -1
  269. package/lib-commonjs/util/useDrawerBaseStyles.styles.js +0 -125
  270. package/lib-commonjs/util/useDrawerBaseStyles.styles.js.map +0 -1
  271. /package/lib/components/{DrawerInline/DrawerInline.types.js → InlineDrawer/InlineDrawer.types.js} +0 -0
  272. /package/lib/components/{DrawerOverlay/DrawerOverlay.types.js → OverlayDrawer/OverlayDrawer.types.js} +0 -0
  273. /package/lib/{util/DrawerBase.types.js → components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js} +0 -0
  274. /package/lib-commonjs/components/{DrawerInline/DrawerInline.types.js → InlineDrawer/InlineDrawer.types.js} +0 -0
  275. /package/lib-commonjs/components/{DrawerInline/DrawerInline.types.js.map → InlineDrawer/InlineDrawer.types.js.map} +0 -0
  276. /package/lib-commonjs/components/{DrawerOverlay/DrawerOverlay.types.js → OverlayDrawer/OverlayDrawer.types.js} +0 -0
  277. /package/lib-commonjs/components/{DrawerOverlay/DrawerOverlay.types.js.map → OverlayDrawer/OverlayDrawer.types.js.map} +0 -0
  278. /package/lib-commonjs/{util/DrawerBase.types.js → components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js} +0 -0
  279. /package/lib-commonjs/{util/DrawerBase.types.js.map → components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js.map} +0 -0
@@ -0,0 +1,96 @@
1
+ import { __styles, mergeClasses, shorthands } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ /**
4
+ * CSS variable names used internally for uniform styling in Drawer.
5
+ */
6
+ export const drawerCSSVars = {
7
+ drawerSizeVar: '--fui-Drawer--size'
8
+ };
9
+ /**
10
+ * Default shared styles for the Drawer component
11
+ */
12
+ export const drawerDefaultStyles = {
13
+ ... /*#__PURE__*/shorthands.overflow('hidden'),
14
+ width: `var(${drawerCSSVars.drawerSizeVar})`,
15
+ maxWidth: '100vw',
16
+ height: 'auto',
17
+ maxHeight: '100vh',
18
+ boxSizing: 'border-box',
19
+ display: 'flex',
20
+ flexDirection: 'column',
21
+ alignItems: 'flex-start',
22
+ justifyContent: 'flex-start',
23
+ backgroundColor: tokens.colorNeutralBackground1,
24
+ color: tokens.colorNeutralForeground1
25
+ };
26
+ /**
27
+ * Shared dynamic styles for the Drawer component
28
+ */
29
+ const useDrawerStyles = /*#__PURE__*/__styles({
30
+ entering: {
31
+ Bkqvd7p: "f18ad807"
32
+ },
33
+ exiting: {
34
+ Bkqvd7p: "f1mfizis"
35
+ },
36
+ reducedMotion: {
37
+ Hwfdqs: "f5e8c63"
38
+ },
39
+ start: {
40
+ Bekrc4i: ["f5tn483", "f1ojsxk5"],
41
+ vrafjx: ["fcdblym", "fjik90z"],
42
+ h3c5rm: ["f1gn591s", "fjscplz"],
43
+ oyh7mz: ["f1vgc2s3", "f1e31b4d"],
44
+ j35jbq: ["fvfyk4", "frppm18"]
45
+ },
46
+ end: {
47
+ ibv6hh: ["f1ojsxk5", "f5tn483"],
48
+ wvpqe5: ["fjik90z", "fcdblym"],
49
+ zhjwy3: ["fjscplz", "f1gn591s"],
50
+ j35jbq: ["f1e31b4d", "f1vgc2s3"],
51
+ oyh7mz: ["frppm18", "fvfyk4"]
52
+ },
53
+ small: {
54
+ Bjr0ffy: "f1exhnwo"
55
+ },
56
+ medium: {
57
+ Bjr0ffy: "fqofjzu"
58
+ },
59
+ large: {
60
+ Bjr0ffy: "fce6y3m"
61
+ },
62
+ full: {
63
+ Bjr0ffy: "fsdmzs6"
64
+ }
65
+ }, {
66
+ d: [".f18ad807{transition-timing-function:var(--curveDecelerateMid);}", ".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".f1vgc2s3{left:0;}", ".f1e31b4d{right:0;}", ".fvfyk4{right:auto;}", ".frppm18{left:auto;}", ".f1exhnwo{--fui-Drawer--size:320px;}", ".fqofjzu{--fui-Drawer--size:592px;}", ".fce6y3m{--fui-Drawer--size:940px;}", ".fsdmzs6{--fui-Drawer--size:100vw;}"],
67
+ m: [["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}", {
68
+ m: "screen and (prefers-reduced-motion: reduce)"
69
+ }]]
70
+ });
71
+ export const useDrawerDurationStyles = /*#__PURE__*/__styles({
72
+ small: {
73
+ B3o57yi: "fc397y7"
74
+ },
75
+ medium: {
76
+ B3o57yi: "f78771"
77
+ },
78
+ large: {
79
+ B3o57yi: "f9ymmep"
80
+ },
81
+ full: {
82
+ B3o57yi: "f1loko9l"
83
+ }
84
+ }, {
85
+ d: [".fc397y7{transition-duration:var(--durationGentle);}", ".f78771{transition-duration:var(--durationSlow);}", ".f9ymmep{transition-duration:var(--durationSlower);}", ".f1loko9l{transition-duration:var(--durationUltraSlow);}"]
86
+ });
87
+ export const useDrawerBaseClassNames = ({
88
+ position,
89
+ size,
90
+ motion
91
+ }) => {
92
+ const baseStyles = useDrawerStyles();
93
+ const durationStyles = useDrawerDurationStyles();
94
+ return mergeClasses(baseStyles[position], durationStyles[size], baseStyles[size], baseStyles.reducedMotion, motion.type === 'entering' && baseStyles.entering, motion.type === 'exiting' && baseStyles.exiting);
95
+ };
96
+ //# sourceMappingURL=useDrawerBaseStyles.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__styles","mergeClasses","shorthands","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","Bekrc4i","vrafjx","h3c5rm","oyh7mz","j35jbq","end","ibv6hh","wvpqe5","zhjwy3","small","Bjr0ffy","medium","large","full","d","m","useDrawerDurationStyles","B3o57yi","useDrawerBaseClassNames","position","size","motion","baseStyles","durationStyles","type"],"sources":["useDrawerBaseStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } 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 ...shorthands.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 ...shorthands.borderRight(tokens.strokeWidthThin, 'solid', tokens.colorTransparentStroke),\n left: 0,\n right: 'auto'\n },\n end: {\n ...shorthands.borderLeft(tokens.strokeWidthThin, 'solid', tokens.colorTransparentStroke),\n right: 0,\n left: '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 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 durationStyles = useDrawerDurationStyles();\n return mergeClasses(baseStyles[position], durationStyles[size], baseStyles[size], baseStyles.reducedMotion, motion.type === 'entering' && baseStyles.entering, motion.type === 'exiting' && baseStyles.exiting);\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,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;EACnC,iBAAGJ,UAAU,CAACK,QAAQ,CAAC,QAAQ,CAAC;EAChCC,KAAK,EAAG,OAAMJ,aAAa,CAACC,aAAc,GAAE;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,gBAAGrB,QAAA;EAAAsB,QAAA;IAAAC,OAAA;EAAA;EAAAC,OAAA;IAAAD,OAAA;EAAA;EAAAE,aAAA;IAAAC,MAAA;EAAA;EAAAC,KAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAC,GAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAJ,MAAA;IAAAD,MAAA;EAAA;EAAAM,KAAA;IAAAC,OAAA;EAAA;EAAAC,MAAA;IAAAD,OAAA;EAAA;EAAAE,KAAA;IAAAF,OAAA;EAAA;EAAAG,IAAA;IAAAH,OAAA;EAAA;AAAA;EAAAI,CAAA;EAAAC,CAAA;IAAAA,CAAA;EAAA;AAAA,CAkC3B,CAAC;AACF,OAAO,MAAMC,uBAAuB,gBAAG5C,QAAA;EAAAqC,KAAA;IAAAQ,OAAA;EAAA;EAAAN,MAAA;IAAAM,OAAA;EAAA;EAAAL,KAAA;IAAAK,OAAA;EAAA;EAAAJ,IAAA;IAAAI,OAAA;EAAA;AAAA;EAAAH,CAAA;AAAA,CAatC,CAAC;AACF,OAAO,MAAMI,uBAAuB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,IAAI;EAAEC;AAAO,CAAC,KAAG;EACjE,MAAMC,UAAU,GAAG7B,eAAe,CAAC,CAAC;EACpC,MAAM8B,cAAc,GAAGP,uBAAuB,CAAC,CAAC;EAChD,OAAO3C,YAAY,CAACiD,UAAU,CAACH,QAAQ,CAAC,EAAEI,cAAc,CAACH,IAAI,CAAC,EAAEE,UAAU,CAACF,IAAI,CAAC,EAAEE,UAAU,CAACzB,aAAa,EAAEwB,MAAM,CAACG,IAAI,KAAK,UAAU,IAAIF,UAAU,CAAC5B,QAAQ,EAAE2B,MAAM,CAACG,IAAI,KAAK,SAAS,IAAIF,UAAU,CAAC1B,OAAO,CAAC;AACnN,CAAC"}
@@ -0,0 +1,8 @@
1
+ export function useDrawerDefaultProps(props) {
2
+ const { open = false, size = 'small', position = 'start' } = props;
3
+ return {
4
+ size,
5
+ position,
6
+ open
7
+ };
8
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useDrawerDefaultProps.ts"],"sourcesContent":["import { DrawerBaseProps } from './DrawerBase.types';\n\nexport function useDrawerDefaultProps(props: DrawerBaseProps) {\n const { open = false, size = 'small', position = 'start' } = props;\n\n return {\n size,\n position,\n open,\n };\n}\n"],"names":["useDrawerDefaultProps","props","open","size","position"],"mappings":"AAEA,OAAO,SAASA,sBAAsBC,KAAsB;IAC1D,MAAM,EAAEC,OAAO,KAAK,EAAEC,OAAO,OAAO,EAAEC,WAAW,OAAO,EAAE,GAAGH;IAE7D,OAAO;QACLE;QACAC;QACAF;IACF;AACF"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/Drawer/index"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/Drawer/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["Drawer.js"],"sourcesContent":["export * from './components/Drawer/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
1
+ {"version":3,"sources":["Drawer.js"],"sourcesContent":["export * from './components/Drawer/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/DrawerBody/index"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/DrawerBody/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["DrawerBody.js"],"sourcesContent":["export * from './components/DrawerBody/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
1
+ {"version":3,"sources":["DrawerBody.js"],"sourcesContent":["export * from './components/DrawerBody/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/DrawerFooter/index"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/DrawerFooter/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["DrawerFooter.js"],"sourcesContent":["export * from './components/DrawerFooter/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
1
+ {"version":3,"sources":["DrawerFooter.js"],"sourcesContent":["export * from './components/DrawerFooter/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/DrawerHeader/index"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/DrawerHeader/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["DrawerHeader.js"],"sourcesContent":["export * from './components/DrawerHeader/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
1
+ {"version":3,"sources":["DrawerHeader.js"],"sourcesContent":["export * from './components/DrawerHeader/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/DrawerHeaderNavigation/index"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/DrawerHeaderNavigation/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["DrawerHeaderNavigation.js"],"sourcesContent":["export * from './components/DrawerHeaderNavigation/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
1
+ {"version":3,"sources":["DrawerHeaderNavigation.js"],"sourcesContent":["export * from './components/DrawerHeaderNavigation/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/DrawerHeaderTitle/index"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/DrawerHeaderTitle/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["DrawerHeaderTitle.js"],"sourcesContent":["export * from './components/DrawerHeaderTitle/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
1
+ {"version":3,"sources":["DrawerHeaderTitle.js"],"sourcesContent":["export * from './components/DrawerHeaderTitle/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/InlineDrawer/index"), exports);
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["InlineDrawer.js"],"sourcesContent":["export * from './components/InlineDrawer/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./components/OverlayDrawer/index"), exports);
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["OverlayDrawer.js"],"sourcesContent":["export * from './components/OverlayDrawer/index';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -4,18 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "Drawer", {
6
6
  enumerable: true,
7
- get: ()=>Drawer
7
+ get: function() {
8
+ return Drawer;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
11
14
  const _useDrawer = require("./useDrawer");
12
15
  const _renderDrawer = require("./renderDrawer");
13
- const _useDrawerStylesStyles = require("./useDrawerStyles.styles");
14
- const _reactSharedContexts = require("@fluentui/react-shared-contexts");
16
+ const _useDrawerStylesstyles = require("./useDrawerStyles.styles");
15
17
  const Drawer = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
16
18
  const state = (0, _useDrawer.useDrawer_unstable)(props, ref);
17
- (0, _useDrawerStylesStyles.useDrawerStyles_unstable)(state);
18
- (0, _reactSharedContexts.useCustomStyleHook_unstable)('useDrawerStyles_unstable')(state);
19
+ (0, _useDrawerStylesstyles.useDrawerStyles_unstable)(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useDrawerStyles_unstable')(state);
19
21
  return (0, _renderDrawer.renderDrawer_unstable)(state);
20
22
  });
21
23
  Drawer.displayName = 'Drawer';
@@ -1 +1 @@
1
- {"version":3,"sources":["Drawer.js"],"sourcesContent":["import * as React from 'react';\nimport { useDrawer_unstable } from './useDrawer';\nimport { renderDrawer_unstable } from './renderDrawer';\nimport { useDrawerStyles_unstable } from './useDrawerStyles.styles';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n/**\n * Drawer contains supplementary content and are used for complex creation, edit, or management experiences.\n */ export const Drawer = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useDrawer_unstable(props, ref);\n useDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerStyles_unstable')(state);\n return renderDrawer_unstable(state);\n});\nDrawer.displayName = 'Drawer';\n"],"names":["Drawer","React","forwardRef","props","ref","state","useDrawer_unstable","useDrawerStyles_unstable","useCustomStyleHook_unstable","renderDrawer_unstable","displayName"],"mappings":";;;;+BAOiBA;;aAAAA;;;6DAPM;2BACY;8BACG;uCACG;qCACG;AAGjC,MAAMA,SAAS,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IACnE,MAAMC,QAAQC,IAAAA,6BAAkB,EAACH,OAAOC;IACxCG,IAAAA,+CAAwB,EAACF;IACzBG,IAAAA,gDAA2B,EAAC,4BAA4BH;IACxD,OAAOI,IAAAA,mCAAqB,EAACJ;AACjC;AACAL,OAAOU,WAAW,GAAG"}
1
+ {"version":3,"sources":["Drawer.js"],"sourcesContent":["import * as React from 'react';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useDrawer_unstable } from './useDrawer';\nimport { renderDrawer_unstable } from './renderDrawer';\nimport { useDrawerStyles_unstable } from './useDrawerStyles.styles';\n/**\n * Drawer contains supplementary content and are used for complex creation, edit, or management experiences.\n */ export const Drawer = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useDrawer_unstable(props, ref);\n useDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerStyles_unstable')(state);\n return renderDrawer_unstable(state);\n});\nDrawer.displayName = 'Drawer';\n"],"names":["Drawer","React","forwardRef","props","ref","state","useDrawer_unstable","useDrawerStyles_unstable","useCustomStyleHook_unstable","renderDrawer_unstable","displayName"],"mappings":";;;;+BAOiBA;;;eAAAA;;;;iEAPM;qCACqB;2BACT;8BACG;uCACG;AAG9B,MAAMA,SAAS,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC7D,MAAMC,QAAQC,IAAAA,6BAAkB,EAACH,OAAOC;IACxCG,IAAAA,+CAAwB,EAACF;IACzBG,IAAAA,gDAA2B,EAAC,4BAA4BH;IACxD,OAAOI,IAAAA,mCAAqB,EAACJ;AACjC;AACAL,OAAOU,WAAW,GAAG"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./Drawer"), exports);
7
- _exportStar(require("./Drawer.types"), exports);
8
- _exportStar(require("./renderDrawer"), exports);
9
- _exportStar(require("./useDrawer"), exports);
10
- _exportStar(require("./useDrawerStyles.styles"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./Drawer"), exports);
7
+ _export_star._(require("./Drawer.types"), exports);
8
+ _export_star._(require("./renderDrawer"), exports);
9
+ _export_star._(require("./useDrawer"), exports);
10
+ _export_star._(require("./useDrawerStyles.styles"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './Drawer';\nexport * from './Drawer.types';\nexport * from './renderDrawer';\nexport * from './useDrawer';\nexport * from './useDrawerStyles.styles';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './Drawer';\nexport * from './Drawer.types';\nexport * from './renderDrawer';\nexport * from './useDrawer';\nexport * from './useDrawerStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
@@ -1,14 +1,16 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
1
+ "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  Object.defineProperty(exports, "renderDrawer_unstable", {
6
6
  enumerable: true,
7
- get: ()=>renderDrawer_unstable
7
+ get: function() {
8
+ return renderDrawer_unstable;
9
+ }
8
10
  });
9
- const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
11
13
  const renderDrawer_unstable = (state)=>{
12
- const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
13
- return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.root, slotProps.root);
14
+ (0, _reactutilities.assertSlots)(state);
15
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
14
16
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderDrawer.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Drawer\n */ export const renderDrawer_unstable = (state)=>{\n const { slots , slotProps } = getSlotsNext(state);\n return /*#__PURE__*/ createElement(slots.root, slotProps.root);\n};\n"],"names":["renderDrawer_unstable","state","slots","slotProps","getSlotsNext","createElement","root"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAIjCA;;aAAAA;;iCAJkE;gCACtD;AAGlB,MAAMA,wBAAwB,CAACC,QAAQ;IAC9C,MAAM,EAAEC,MAAK,EAAGC,UAAS,EAAG,GAAGC,IAAAA,4BAAY,EAACH;IAC5C,OAAO,WAAW,GAAGI,IAAAA,8BAAa,EAACH,MAAMI,IAAI,EAAEH,UAAUG,IAAI;AACjE"}
1
+ {"version":3,"sources":["renderDrawer.js"],"sourcesContent":[" import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Drawer\n */ export const renderDrawer_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(state.root, {});\n};\n"],"names":["renderDrawer_unstable","state","assertSlots","_jsx","root"],"mappings":";;;;+BAIiBA;;;eAAAA;;;4BAJa;gCACF;AAGjB,MAAMA,wBAAwB,CAACC;IACtCC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,eAAI,EAACF,MAAMG,IAAI,EAAE,CAAC;AAC3C"}
@@ -4,24 +4,26 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useDrawer_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useDrawer_unstable
7
+ get: function() {
8
+ return useDrawer_unstable;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _reactUtilities = require("@fluentui/react-utilities");
12
- const _drawerOverlay = require("../DrawerOverlay/DrawerOverlay");
13
- const _drawerInline = require("../DrawerInline/DrawerInline");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
14
+ const _OverlayDrawer = require("../OverlayDrawer");
15
+ const _InlineDrawer = require("../InlineDrawer");
14
16
  const useDrawer_unstable = (props, ref)=>{
15
- const { type ='overlay' } = props;
17
+ const elementType = props.type === 'inline' ? _InlineDrawer.InlineDrawer : _OverlayDrawer.OverlayDrawer;
16
18
  return {
17
19
  components: {
18
- root: type === 'overlay' ? _drawerOverlay.DrawerOverlay : _drawerInline.DrawerInline
20
+ root: elementType
19
21
  },
20
- root: (0, _reactUtilities.resolveShorthand)(props, {
21
- required: true,
22
- defaultProps: {
23
- ref
24
- }
22
+ root: _reactutilities.slot.always(_reactutilities.slot.resolveShorthand({
23
+ ref,
24
+ ...props
25
+ }), {
26
+ elementType
25
27
  })
26
28
  };
27
29
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["useDrawer.js"],"sourcesContent":["import * as React from 'react';\nimport { resolveShorthand } from '@fluentui/react-utilities';\nimport { DrawerOverlay } from '../DrawerOverlay/DrawerOverlay';\nimport { DrawerInline } from '../DrawerInline/DrawerInline';\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 { type ='overlay' } = props;\n return {\n components: {\n root: type === 'overlay' ? DrawerOverlay : DrawerInline\n },\n root: resolveShorthand(props, {\n required: true,\n defaultProps: {\n ref\n }\n })\n };\n};\n"],"names":["useDrawer_unstable","props","ref","type","components","root","DrawerOverlay","DrawerInline","resolveShorthand","required","defaultProps"],"mappings":";;;;+BAYiBA;;aAAAA;;;6DAZM;gCACU;+BACH;8BACD;AASlB,MAAMA,qBAAqB,CAACC,OAAOC,MAAM;IAChD,MAAM,EAAEC,MAAM,UAAS,EAAG,GAAGF;IAC7B,OAAO;QACHG,YAAY;YACRC,MAAMF,SAAS,YAAYG,4BAAa,GAAGC,0BAAY;QAC3D;QACAF,MAAMG,IAAAA,gCAAgB,EAACP,OAAO;YAC1BQ,UAAU,IAAI;YACdC,cAAc;gBACVR;YACJ;QACJ;IACJ;AACJ"}
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(slot.resolveShorthand({\n ref,\n ...props\n }), {\n elementType\n })\n };\n};\n"],"names":["useDrawer_unstable","props","ref","elementType","type","InlineDrawer","OverlayDrawer","components","root","slot","always","resolveShorthand"],"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,CAACD,oBAAI,CAACE,gBAAgB,CAAC;YACpCT;YACA,GAAGD,KAAK;QACZ,IAAI;YACAE;QACJ;IACJ;AACJ"}
@@ -9,8 +9,12 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- drawerClassNames: ()=>drawerClassNames,
13
- useDrawerStyles_unstable: ()=>useDrawerStyles_unstable
12
+ drawerClassNames: function() {
13
+ return drawerClassNames;
14
+ },
15
+ useDrawerStyles_unstable: function() {
16
+ return useDrawerStyles_unstable;
17
+ }
14
18
  });
15
19
  const _react = require("@griffel/react");
16
20
  const drawerClassNames = {
@@ -1 +1 @@
1
- {"version":3,"sources":["useDrawerStyles.styles.js"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nexport const drawerClassNames = {\n root: 'fui-Drawer'\n};\n/**\n * Apply styling to the Drawer slots based on the state\n */\nexport const useDrawerStyles_unstable = state => {\n state.root.className = mergeClasses(drawerClassNames.root, state.root.className);\n return state;\n};\n//# sourceMappingURL=useDrawerStyles.styles.js.map"],"names":["drawerClassNames","useDrawerStyles_unstable","root","state","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,gBAAgB,MAAhBA;IAMAC,wBAAwB,MAAxBA;;uBAPgB;AACtB,MAAMD,mBAAmB;IAC9BE,MAAM;AACR;AAIO,MAAMD,2BAA2BE,CAAAA,QAAS;IAC/CA,MAAMD,IAAI,CAACE,SAAS,GAAGC,IAAAA,mBAAY,EAACL,iBAAiBE,IAAI,EAAEC,MAAMD,IAAI,CAACE,SAAS;IAC/E,OAAOD;AACT,GACA,kDAAkD"}
1
+ {"version":3,"sources":["useDrawerStyles.styles.js"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nexport const drawerClassNames = {\n root: 'fui-Drawer'\n};\n/**\n * Apply styling to the Drawer slots based on the state\n */\nexport const useDrawerStyles_unstable = state => {\n state.root.className = mergeClasses(drawerClassNames.root, state.root.className);\n return state;\n};\n//# sourceMappingURL=useDrawerStyles.styles.js.map"],"names":["drawerClassNames","useDrawerStyles_unstable","root","state","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,gBAAgB;eAAhBA;;IAMAC,wBAAwB;eAAxBA;;;uBAPgB;AACtB,MAAMD,mBAAmB;IAC9BE,MAAM;AACR;AAIO,MAAMD,2BAA2BE,CAAAA;IACtCA,MAAMD,IAAI,CAACE,SAAS,GAAGC,IAAAA,mBAAY,EAACL,iBAAiBE,IAAI,EAAEC,MAAMD,IAAI,CAACE,SAAS;IAC/E,OAAOD;AACT,GACA,kDAAkD"}
@@ -4,18 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "DrawerBody", {
6
6
  enumerable: true,
7
- get: ()=>DrawerBody
7
+ get: function() {
8
+ return DrawerBody;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
11
14
  const _useDrawerBody = require("./useDrawerBody");
12
15
  const _renderDrawerBody = require("./renderDrawerBody");
13
- const _useDrawerBodyStylesStyles = require("./useDrawerBodyStyles.styles");
14
- const _reactSharedContexts = require("@fluentui/react-shared-contexts");
16
+ const _useDrawerBodyStylesstyles = require("./useDrawerBodyStyles.styles");
15
17
  const DrawerBody = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
16
18
  const state = (0, _useDrawerBody.useDrawerBody_unstable)(props, ref);
17
- (0, _useDrawerBodyStylesStyles.useDrawerBodyStyles_unstable)(state);
18
- (0, _reactSharedContexts.useCustomStyleHook_unstable)('useDrawerBodyStyles_unstable')(state);
19
+ (0, _useDrawerBodyStylesstyles.useDrawerBodyStyles_unstable)(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useDrawerBodyStyles_unstable')(state);
19
21
  return (0, _renderDrawerBody.renderDrawerBody_unstable)(state);
20
22
  });
21
23
  DrawerBody.displayName = 'DrawerBody';
@@ -1 +1 @@
1
- {"version":3,"sources":["DrawerBody.js"],"sourcesContent":["import * as React from 'react';\nimport { useDrawerBody_unstable } from './useDrawerBody';\nimport { renderDrawerBody_unstable } from './renderDrawerBody';\nimport { useDrawerBodyStyles_unstable } from './useDrawerBodyStyles.styles';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n/**\n * DrawerBody provides with a container for the main content of a Drawer.\n */ export const DrawerBody = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useDrawerBody_unstable(props, ref);\n useDrawerBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerBodyStyles_unstable')(state);\n return renderDrawerBody_unstable(state);\n});\nDrawerBody.displayName = 'DrawerBody';\n"],"names":["DrawerBody","React","forwardRef","props","ref","state","useDrawerBody_unstable","useDrawerBodyStyles_unstable","useCustomStyleHook_unstable","renderDrawerBody_unstable","displayName"],"mappings":";;;;+BAOiBA;;aAAAA;;;6DAPM;+BACgB;kCACG;2CACG;qCACD;AAGjC,MAAMA,aAAa,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IACvE,MAAMC,QAAQC,IAAAA,qCAAsB,EAACH,OAAOC;IAC5CG,IAAAA,uDAA4B,EAACF;IAC7BG,IAAAA,gDAA2B,EAAC,gCAAgCH;IAC5D,OAAOI,IAAAA,2CAAyB,EAACJ;AACrC;AACAL,WAAWU,WAAW,GAAG"}
1
+ {"version":3,"sources":["DrawerBody.js"],"sourcesContent":["import * as React from 'react';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useDrawerBody_unstable } from './useDrawerBody';\nimport { renderDrawerBody_unstable } from './renderDrawerBody';\nimport { useDrawerBodyStyles_unstable } from './useDrawerBodyStyles.styles';\n/**\n * DrawerBody provides with a container for the main content of a Drawer.\n */ export const DrawerBody = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useDrawerBody_unstable(props, ref);\n useDrawerBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerBodyStyles_unstable')(state);\n return renderDrawerBody_unstable(state);\n});\nDrawerBody.displayName = 'DrawerBody';\n"],"names":["DrawerBody","React","forwardRef","props","ref","state","useDrawerBody_unstable","useDrawerBodyStyles_unstable","useCustomStyleHook_unstable","renderDrawerBody_unstable","displayName"],"mappings":";;;;+BAOiBA;;;eAAAA;;;;iEAPM;qCACqB;+BACL;kCACG;2CACG;AAGlC,MAAMA,aAAa,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjE,MAAMC,QAAQC,IAAAA,qCAAsB,EAACH,OAAOC;IAC5CG,IAAAA,uDAA4B,EAACF;IAC7BG,IAAAA,gDAA2B,EAAC,gCAAgCH;IAC5D,OAAOI,IAAAA,2CAAyB,EAACJ;AACrC;AACAL,WAAWU,WAAW,GAAG"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./DrawerBody"), exports);
7
- _exportStar(require("./DrawerBody.types"), exports);
8
- _exportStar(require("./renderDrawerBody"), exports);
9
- _exportStar(require("./useDrawerBody"), exports);
10
- _exportStar(require("./useDrawerBodyStyles.styles"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./DrawerBody"), exports);
7
+ _export_star._(require("./DrawerBody.types"), exports);
8
+ _export_star._(require("./renderDrawerBody"), exports);
9
+ _export_star._(require("./useDrawerBody"), exports);
10
+ _export_star._(require("./useDrawerBodyStyles.styles"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './DrawerBody';\nexport * from './DrawerBody.types';\nexport * from './renderDrawerBody';\nexport * from './useDrawerBody';\nexport * from './useDrawerBodyStyles.styles';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './DrawerBody';\nexport * from './DrawerBody.types';\nexport * from './renderDrawerBody';\nexport * from './useDrawerBody';\nexport * from './useDrawerBodyStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
@@ -4,12 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "renderDrawerBody_unstable", {
6
6
  enumerable: true,
7
- get: ()=>renderDrawerBody_unstable
7
+ get: function() {
8
+ return renderDrawerBody_unstable;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
12
13
  const renderDrawerBody_unstable = (state)=>{
13
- const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
14
- return /*#__PURE__*/ _react.createElement(slots.root, slotProps.root);
14
+ (0, _reactutilities.assertSlots)(state);
15
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
15
16
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderDrawerBody.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of DrawerBody\n */ export const renderDrawerBody_unstable = (state)=>{\n const { slots , slotProps } = getSlots(state);\n return /*#__PURE__*/ React.createElement(slots.root, slotProps.root);\n};\n"],"names":["renderDrawerBody_unstable","state","slots","slotProps","getSlots","React","createElement","root"],"mappings":";;;;+BAIiBA;;aAAAA;;;6DAJM;gCACE;AAGd,MAAMA,4BAA4B,CAACC,QAAQ;IAClD,MAAM,EAAEC,MAAK,EAAGC,UAAS,EAAG,GAAGC,IAAAA,wBAAQ,EAACH;IACxC,OAAO,WAAW,GAAGI,OAAMC,aAAa,CAACJ,MAAMK,IAAI,EAAEJ,UAAUI,IAAI;AACvE"}
1
+ {"version":3,"sources":["renderDrawerBody.js"],"sourcesContent":[" import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of DrawerBody\n */ export const renderDrawerBody_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(state.root, {});\n};\n"],"names":["renderDrawerBody_unstable","state","assertSlots","_jsx","root"],"mappings":";;;;+BAIiBA;;;eAAAA;;;4BAJa;gCACF;AAGjB,MAAMA,4BAA4B,CAACC;IAC1CC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,eAAI,EAACF,MAAMG,IAAI,EAAE,CAAC;AAC3C"}
@@ -4,19 +4,26 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useDrawerBody_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useDrawerBody_unstable
7
+ get: function() {
8
+ return useDrawerBody_unstable;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
12
14
  const useDrawerBody_unstable = (props, ref)=>{
13
15
  return {
14
16
  components: {
15
17
  root: 'div'
16
18
  },
17
- root: (0, _reactUtilities.getNativeElementProps)('div', {
18
- ref,
19
+ root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', {
20
+ // FIXME:
21
+ // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`
22
+ // but since it would be a breaking change to fix it, we are casting ref to it's proper type
23
+ ref: ref,
19
24
  ...props
25
+ }), {
26
+ elementType: 'div'
20
27
  })
21
28
  };
22
29
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["useDrawerBody.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\n/**\n * Create the state required to render DrawerBody.\n *\n * The returned state can be modified with hooks such as useDrawerBodyStyles_unstable,\n * before being passed to renderDrawerBody_unstable.\n *\n * @param props - props from this instance of DrawerBody\n * @param ref - reference to root HTMLElement of DrawerBody\n */ export const useDrawerBody_unstable = (props, ref)=>{\n return {\n components: {\n root: 'div'\n },\n root: getNativeElementProps('div', {\n ref,\n ...props\n })\n };\n};\n"],"names":["useDrawerBody_unstable","props","ref","components","root","getNativeElementProps"],"mappings":";;;;+BAUiBA;;aAAAA;;;6DAVM;gCACe;AAS3B,MAAMA,yBAAyB,CAACC,OAAOC,MAAM;IACpD,OAAO;QACHC,YAAY;YACRC,MAAM;QACV;QACAA,MAAMC,IAAAA,qCAAqB,EAAC,OAAO;YAC/BH;YACA,GAAGD,KAAK;QACZ;IACJ;AACJ"}
1
+ {"version":3,"sources":["useDrawerBody.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Create the state required to render DrawerBody.\n *\n * The returned state can be modified with hooks such as useDrawerBodyStyles_unstable,\n * before being passed to renderDrawerBody_unstable.\n *\n * @param props - props from this instance of DrawerBody\n * @param ref - reference to root HTMLElement of DrawerBody\n */ export const useDrawerBody_unstable = (props, ref)=>{\n return {\n components: {\n root: 'div'\n },\n root: slot.always(getIntrinsicElementProps('div', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: ref,\n ...props\n }), {\n elementType: 'div'\n })\n };\n};\n"],"names":["useDrawerBody_unstable","props","ref","components","root","slot","always","getIntrinsicElementProps","elementType"],"mappings":";;;;+BAUiBA;;;eAAAA;;;;iEAVM;gCACwB;AASpC,MAAMA,yBAAyB,CAACC,OAAOC;IAC9C,OAAO;QACHC,YAAY;YACRC,MAAM;QACV;QACAA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAO;YAC9C,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FL,KAAKA;YACL,GAAGD,KAAK;QACZ,IAAI;YACAO,aAAa;QACjB;IACJ;AACJ"}