@fluentui/react-drawer 9.74.7-experimental.cli-api.20261006-ccaa611d58.0 → 9.75.0-experimental.css-modules.20261031-810ab07afb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/CHANGELOG.md +44 -14
  2. package/README.md +12 -0
  3. package/lib/components/Drawer/Drawer.js.map +1 -1
  4. package/lib/components/Drawer/Drawer.types.js.map +1 -1
  5. package/lib/components/Drawer/index.js.map +1 -1
  6. package/lib/components/Drawer/renderDrawer.js +2 -2
  7. package/lib/components/Drawer/renderDrawer.js.map +1 -1
  8. package/lib/components/Drawer/useDrawer.js.map +1 -1
  9. package/lib/components/Drawer/useDrawerStyles.styles.css.js +8 -0
  10. package/lib/components/Drawer/useDrawerStyles.styles.css.js.map +1 -0
  11. package/lib/components/Drawer/useDrawerStyles.styles.raw.css.js +8 -0
  12. package/lib/components/Drawer/useDrawerStyles.styles.raw.css.js.map +1 -0
  13. package/lib/components/Drawer/useDrawerStyles.styles.raw.js.map +1 -1
  14. package/lib/components/DrawerBody/DrawerBody.js.map +1 -1
  15. package/lib/components/DrawerBody/DrawerBody.module.css +16 -0
  16. package/lib/components/DrawerBody/DrawerBody.types.js.map +1 -1
  17. package/lib/components/DrawerBody/index.js.map +1 -1
  18. package/lib/components/DrawerBody/renderDrawerBody.js +2 -2
  19. package/lib/components/DrawerBody/renderDrawerBody.js.map +1 -1
  20. package/lib/components/DrawerBody/useDrawerBody.js.map +1 -1
  21. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.css.js +9 -0
  22. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.css.js.map +1 -0
  23. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.css.js +9 -0
  24. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.css.js.map +1 -0
  25. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.js.map +1 -1
  26. package/lib/components/DrawerFooter/DrawerFooter.js.map +1 -1
  27. package/lib/components/DrawerFooter/DrawerFooter.module.css +36 -0
  28. package/lib/components/DrawerFooter/DrawerFooter.types.js.map +1 -1
  29. package/lib/components/DrawerFooter/index.js.map +1 -1
  30. package/lib/components/DrawerFooter/renderDrawerFooter.js +2 -2
  31. package/lib/components/DrawerFooter/renderDrawerFooter.js.map +1 -1
  32. package/lib/components/DrawerFooter/useDrawerFooter.js.map +1 -1
  33. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.css.js +9 -0
  34. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.css.js.map +1 -0
  35. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.css.js +9 -0
  36. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.css.js.map +1 -0
  37. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.js.map +1 -1
  38. package/lib/components/DrawerHeader/DrawerHeader.js.map +1 -1
  39. package/lib/components/DrawerHeader/DrawerHeader.module.css +36 -0
  40. package/lib/components/DrawerHeader/DrawerHeader.types.js.map +1 -1
  41. package/lib/components/DrawerHeader/index.js.map +1 -1
  42. package/lib/components/DrawerHeader/renderDrawerHeader.js +2 -2
  43. package/lib/components/DrawerHeader/renderDrawerHeader.js.map +1 -1
  44. package/lib/components/DrawerHeader/useDrawerHeader.js.map +1 -1
  45. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.css.js +9 -0
  46. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.css.js.map +1 -0
  47. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.css.js +9 -0
  48. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.css.js.map +1 -0
  49. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.js.map +1 -1
  50. package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js.map +1 -1
  51. package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.module.css +5 -0
  52. package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.types.js.map +1 -1
  53. package/lib/components/DrawerHeaderNavigation/index.js.map +1 -1
  54. package/lib/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js +2 -2
  55. package/lib/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js.map +1 -1
  56. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js.map +1 -1
  57. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.js +9 -0
  58. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.js.map +1 -0
  59. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.js +9 -0
  60. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.js.map +1 -0
  61. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.js.map +1 -1
  62. package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.js.map +1 -1
  63. package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.module.css +12 -0
  64. package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js.map +1 -1
  65. package/lib/components/DrawerHeaderTitle/index.js.map +1 -1
  66. package/lib/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js +2 -2
  67. package/lib/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js.map +1 -1
  68. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitle.js.map +1 -1
  69. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.js +33 -0
  70. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.js.map +1 -0
  71. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.css.js +33 -0
  72. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.css.js.map +1 -0
  73. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.js.map +1 -1
  74. package/lib/components/InlineDrawer/InlineDrawer.js.map +1 -1
  75. package/lib/components/InlineDrawer/InlineDrawer.module.css +32 -0
  76. package/lib/components/InlineDrawer/InlineDrawer.types.js.map +1 -1
  77. package/lib/components/InlineDrawer/index.js.map +1 -1
  78. package/lib/components/InlineDrawer/renderInlineDrawer.js +2 -2
  79. package/lib/components/InlineDrawer/renderInlineDrawer.js.map +1 -1
  80. package/lib/components/InlineDrawer/useInlineDrawer.js.map +1 -1
  81. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.css.js +12 -0
  82. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.css.js.map +1 -0
  83. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.css.js +12 -0
  84. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.css.js.map +1 -0
  85. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.js.map +1 -1
  86. package/lib/components/OverlayDrawer/OverlayDrawer.js.map +1 -1
  87. package/lib/components/OverlayDrawer/OverlayDrawer.module.css +40 -0
  88. package/lib/components/OverlayDrawer/OverlayDrawer.types.js.map +1 -1
  89. package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map +1 -1
  90. package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.module.css +15 -0
  91. package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.js.map +1 -1
  92. package/lib/components/OverlayDrawer/OverlayDrawerSurface/index.js.map +1 -1
  93. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.css.js +8 -0
  94. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.css.js.map +1 -0
  95. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.css.js +8 -0
  96. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.css.js.map +1 -0
  97. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.js.map +1 -1
  98. package/lib/components/OverlayDrawer/index.js.map +1 -1
  99. package/lib/components/OverlayDrawer/renderOverlayDrawer.js +2 -2
  100. package/lib/components/OverlayDrawer/renderOverlayDrawer.js.map +1 -1
  101. package/lib/components/OverlayDrawer/useOverlayDrawer.js.map +1 -1
  102. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.js +18 -0
  103. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.js.map +1 -0
  104. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.css.js +18 -0
  105. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.css.js.map +1 -0
  106. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.js.map +1 -1
  107. package/lib/contexts/drawerContext.js.map +1 -1
  108. package/lib/contexts/index.js.map +1 -1
  109. package/lib/e2e/DrawerShared.js.map +1 -1
  110. package/lib/shared/DrawerBase.module.css +54 -0
  111. package/lib/shared/DrawerBase.types.js.map +1 -1
  112. package/lib/shared/drawerMotionUtils.js.map +1 -1
  113. package/lib/shared/drawerMotions.js.map +1 -1
  114. package/lib/shared/drawerSeparatorStyles.js.map +1 -1
  115. package/lib/shared/useDrawerBaseStyles.styles.css.js +28 -0
  116. package/lib/shared/useDrawerBaseStyles.styles.css.js.map +1 -0
  117. package/lib/shared/useDrawerBaseStyles.styles.raw.css.js +28 -0
  118. package/lib/shared/useDrawerBaseStyles.styles.raw.css.js.map +1 -0
  119. package/lib/shared/useDrawerBaseStyles.styles.raw.js.map +1 -1
  120. package/lib/shared/useDrawerDefaultProps.js.map +1 -1
  121. package/lib-commonjs/Drawer.cjs +6 -6
  122. package/lib-commonjs/DrawerBody.cjs +6 -6
  123. package/lib-commonjs/DrawerFooter.cjs +6 -6
  124. package/lib-commonjs/DrawerHeader.cjs +6 -6
  125. package/lib-commonjs/DrawerHeaderNavigation.cjs +6 -6
  126. package/lib-commonjs/DrawerHeaderTitle.cjs +6 -6
  127. package/lib-commonjs/InlineDrawer.cjs +7 -7
  128. package/lib-commonjs/OverlayDrawer.cjs +6 -6
  129. package/lib-commonjs/components/Drawer/Drawer.cjs.map +1 -1
  130. package/lib-commonjs/components/Drawer/Drawer.types.cjs.map +1 -1
  131. package/lib-commonjs/components/Drawer/index.cjs +6 -6
  132. package/lib-commonjs/components/Drawer/index.cjs.map +1 -1
  133. package/lib-commonjs/components/Drawer/renderDrawer.cjs.map +1 -1
  134. package/lib-commonjs/components/Drawer/useDrawer.cjs.map +1 -1
  135. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.cjs +3 -3
  136. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.cjs.map +1 -1
  137. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.css.cjs +26 -0
  138. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.css.cjs.map +1 -0
  139. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.raw.cjs +3 -3
  140. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.raw.cjs.map +1 -1
  141. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.raw.css.cjs +26 -0
  142. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.raw.css.cjs.map +1 -0
  143. package/lib-commonjs/components/DrawerBody/DrawerBody.cjs.map +1 -1
  144. package/lib-commonjs/components/DrawerBody/DrawerBody.module.css +16 -0
  145. package/lib-commonjs/components/DrawerBody/DrawerBody.types.cjs.map +1 -1
  146. package/lib-commonjs/components/DrawerBody/index.cjs +6 -6
  147. package/lib-commonjs/components/DrawerBody/index.cjs.map +1 -1
  148. package/lib-commonjs/components/DrawerBody/renderDrawerBody.cjs.map +1 -1
  149. package/lib-commonjs/components/DrawerBody/useDrawerBody.cjs.map +1 -1
  150. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.cjs +3 -3
  151. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.cjs.map +1 -1
  152. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.css.cjs +28 -0
  153. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.css.cjs.map +1 -0
  154. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.cjs +3 -3
  155. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.cjs.map +1 -1
  156. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.css.cjs +28 -0
  157. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.css.cjs.map +1 -0
  158. package/lib-commonjs/components/DrawerFooter/DrawerFooter.cjs.map +1 -1
  159. package/lib-commonjs/components/DrawerFooter/DrawerFooter.module.css +36 -0
  160. package/lib-commonjs/components/DrawerFooter/DrawerFooter.types.cjs.map +1 -1
  161. package/lib-commonjs/components/DrawerFooter/index.cjs +6 -6
  162. package/lib-commonjs/components/DrawerFooter/index.cjs.map +1 -1
  163. package/lib-commonjs/components/DrawerFooter/renderDrawerFooter.cjs.map +1 -1
  164. package/lib-commonjs/components/DrawerFooter/useDrawerFooter.cjs.map +1 -1
  165. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.cjs +3 -3
  166. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.cjs.map +1 -1
  167. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.css.cjs +28 -0
  168. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.css.cjs.map +1 -0
  169. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.cjs +3 -3
  170. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.cjs.map +1 -1
  171. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.css.cjs +28 -0
  172. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.css.cjs.map +1 -0
  173. package/lib-commonjs/components/DrawerHeader/DrawerHeader.cjs.map +1 -1
  174. package/lib-commonjs/components/DrawerHeader/DrawerHeader.module.css +36 -0
  175. package/lib-commonjs/components/DrawerHeader/DrawerHeader.types.cjs.map +1 -1
  176. package/lib-commonjs/components/DrawerHeader/index.cjs +6 -6
  177. package/lib-commonjs/components/DrawerHeader/index.cjs.map +1 -1
  178. package/lib-commonjs/components/DrawerHeader/renderDrawerHeader.cjs.map +1 -1
  179. package/lib-commonjs/components/DrawerHeader/useDrawerHeader.cjs.map +1 -1
  180. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.cjs +3 -3
  181. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.cjs.map +1 -1
  182. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.css.cjs +28 -0
  183. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.css.cjs.map +1 -0
  184. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.cjs +3 -3
  185. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.cjs.map +1 -1
  186. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.css.cjs +28 -0
  187. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.css.cjs.map +1 -0
  188. package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.cjs.map +1 -1
  189. package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.module.css +5 -0
  190. package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.types.cjs.map +1 -1
  191. package/lib-commonjs/components/DrawerHeaderNavigation/index.cjs +6 -6
  192. package/lib-commonjs/components/DrawerHeaderNavigation/index.cjs.map +1 -1
  193. package/lib-commonjs/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.cjs.map +1 -1
  194. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.cjs.map +1 -1
  195. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.cjs +3 -3
  196. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.cjs.map +1 -1
  197. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.cjs +28 -0
  198. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.cjs.map +1 -0
  199. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.cjs +3 -3
  200. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.cjs.map +1 -1
  201. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.cjs +28 -0
  202. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.cjs.map +1 -0
  203. package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.cjs.map +1 -1
  204. package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.module.css +12 -0
  205. package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.types.cjs.map +1 -1
  206. package/lib-commonjs/components/DrawerHeaderTitle/index.cjs +6 -6
  207. package/lib-commonjs/components/DrawerHeaderTitle/index.cjs.map +1 -1
  208. package/lib-commonjs/components/DrawerHeaderTitle/renderDrawerHeaderTitle.cjs.map +1 -1
  209. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitle.cjs.map +1 -1
  210. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.cjs +3 -3
  211. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.cjs.map +1 -1
  212. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.cjs +51 -0
  213. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.cjs.map +1 -0
  214. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.cjs +3 -3
  215. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.cjs.map +1 -1
  216. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.css.cjs +51 -0
  217. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.css.cjs.map +1 -0
  218. package/lib-commonjs/components/InlineDrawer/InlineDrawer.cjs.map +1 -1
  219. package/lib-commonjs/components/InlineDrawer/InlineDrawer.module.css +32 -0
  220. package/lib-commonjs/components/InlineDrawer/InlineDrawer.types.cjs.map +1 -1
  221. package/lib-commonjs/components/InlineDrawer/index.cjs +7 -7
  222. package/lib-commonjs/components/InlineDrawer/index.cjs.map +1 -1
  223. package/lib-commonjs/components/InlineDrawer/renderInlineDrawer.cjs.map +1 -1
  224. package/lib-commonjs/components/InlineDrawer/useInlineDrawer.cjs +3 -3
  225. package/lib-commonjs/components/InlineDrawer/useInlineDrawer.cjs.map +1 -1
  226. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.cjs +3 -3
  227. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.cjs.map +1 -1
  228. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.css.cjs +31 -0
  229. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.css.cjs.map +1 -0
  230. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.cjs +3 -3
  231. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.cjs.map +1 -1
  232. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.css.cjs +31 -0
  233. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.css.cjs.map +1 -0
  234. package/lib-commonjs/components/OverlayDrawer/OverlayDrawer.cjs.map +1 -1
  235. package/lib-commonjs/components/OverlayDrawer/OverlayDrawer.module.css +40 -0
  236. package/lib-commonjs/components/OverlayDrawer/OverlayDrawer.types.cjs.map +1 -1
  237. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.cjs.map +1 -1
  238. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.module.css +15 -0
  239. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.types.cjs.map +1 -1
  240. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/index.cjs.map +1 -1
  241. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.css.cjs +19 -0
  242. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.css.cjs.map +1 -0
  243. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.cjs.map +1 -1
  244. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.css.cjs +19 -0
  245. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.css.cjs.map +1 -0
  246. package/lib-commonjs/components/OverlayDrawer/index.cjs +6 -6
  247. package/lib-commonjs/components/OverlayDrawer/index.cjs.map +1 -1
  248. package/lib-commonjs/components/OverlayDrawer/renderOverlayDrawer.cjs.map +1 -1
  249. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawer.cjs.map +1 -1
  250. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.cjs +3 -3
  251. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.cjs.map +1 -1
  252. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.cjs +37 -0
  253. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.cjs.map +1 -0
  254. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.cjs +3 -3
  255. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.cjs.map +1 -1
  256. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.css.cjs +37 -0
  257. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.css.cjs.map +1 -0
  258. package/lib-commonjs/contexts/drawerContext.cjs +5 -5
  259. package/lib-commonjs/contexts/drawerContext.cjs.map +1 -1
  260. package/lib-commonjs/contexts/index.cjs +5 -5
  261. package/lib-commonjs/contexts/index.cjs.map +1 -1
  262. package/lib-commonjs/e2e/DrawerShared.cjs.map +1 -1
  263. package/lib-commonjs/index.cjs +44 -44
  264. package/lib-commonjs/index.cjs.map +1 -1
  265. package/lib-commonjs/shared/DrawerBase.module.css +54 -0
  266. package/lib-commonjs/shared/DrawerBase.types.cjs.map +1 -1
  267. package/lib-commonjs/shared/drawerMotionUtils.cjs.map +1 -1
  268. package/lib-commonjs/shared/drawerMotions.cjs +5 -5
  269. package/lib-commonjs/shared/drawerMotions.cjs.map +1 -1
  270. package/lib-commonjs/shared/drawerSeparatorStyles.cjs.map +1 -1
  271. package/lib-commonjs/shared/useDrawerBaseStyles.styles.cjs +5 -5
  272. package/lib-commonjs/shared/useDrawerBaseStyles.styles.cjs.map +1 -1
  273. package/lib-commonjs/shared/useDrawerBaseStyles.styles.css.cjs +56 -0
  274. package/lib-commonjs/shared/useDrawerBaseStyles.styles.css.cjs.map +1 -0
  275. package/lib-commonjs/shared/useDrawerBaseStyles.styles.raw.cjs +5 -5
  276. package/lib-commonjs/shared/useDrawerBaseStyles.styles.raw.cjs.map +1 -1
  277. package/lib-commonjs/shared/useDrawerBaseStyles.styles.raw.css.cjs +56 -0
  278. package/lib-commonjs/shared/useDrawerBaseStyles.styles.raw.css.cjs.map +1 -0
  279. package/lib-commonjs/shared/useDrawerDefaultProps.cjs.map +1 -1
  280. package/package.json +17 -17
  281. package/dist/metadata/api/api-root.json +0 -1
  282. package/dist/metadata/index.json +0 -1
@@ -0,0 +1,37 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
+ });
11
+ }
12
+ _export(exports, {
13
+ get overlayDrawerClassNames () {
14
+ return overlayDrawerClassNames;
15
+ },
16
+ get useOverlayDrawerStyles_unstable () {
17
+ return useOverlayDrawerStyles_unstable;
18
+ }
19
+ });
20
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
21
+ const _clsx = require("clsx");
22
+ const _useDrawerBaseStylesstylescss = require("../../shared/useDrawerBaseStyles.styles.css.cjs");
23
+ const _OverlayDrawermodulecss = /*#__PURE__*/ _interop_require_default._(require("./OverlayDrawer.module.css"));
24
+ const overlayDrawerClassNames = {
25
+ root: 'fui-OverlayDrawer',
26
+ backdrop: 'fui-OverlayDrawer__backdrop'
27
+ };
28
+ const useOverlayDrawerStyles_unstable = (state)=>{
29
+ // eslint-disable-next-line react-hooks/immutability
30
+ state.root.className = (0, _clsx.clsx)(overlayDrawerClassNames.root, (0, _useDrawerBaseStylesstylescss.useDrawerDefaultClassName)(), (0, _useDrawerBaseStylesstylescss.useDrawerBaseClassNames)(state), _OverlayDrawermodulecss.default.root, _OverlayDrawermodulecss.default[state.position], state.hasMountNodeElement && _OverlayDrawermodulecss.default.absolute, state.root.className);
31
+ const backdrop = state.root.backdrop;
32
+ if (backdrop) {
33
+ // eslint-disable-next-line react-hooks/immutability
34
+ backdrop.className = (0, _clsx.clsx)(overlayDrawerClassNames.backdrop, state.hasMountNodeElement && _OverlayDrawermodulecss.default.absolute, backdrop.className);
35
+ }
36
+ return state;
37
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.ts"],"sourcesContent":["'use client';\nimport { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { OverlayDrawerState } from './OverlayDrawer.types';\nimport type * as React from 'react';\nimport type { OverlayDrawerSurfaceSlots } from './OverlayDrawerSurface/OverlayDrawerSurface.types';\nimport { useDrawerBaseClassNames, useDrawerDefaultClassName } from '../../shared/useDrawerBaseStyles.styles.css';\nimport styles from './OverlayDrawer.module.css';\n\nexport const overlayDrawerClassNames: SlotClassNames<Omit<OverlayDrawerSurfaceSlots, 'backdropMotion'>> = {\n root: 'fui-OverlayDrawer',\n backdrop: 'fui-OverlayDrawer__backdrop',\n};\n\nexport const useOverlayDrawerStyles_unstable = (state: OverlayDrawerState): OverlayDrawerState => {\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = clsx(\n overlayDrawerClassNames.root,\n useDrawerDefaultClassName(),\n useDrawerBaseClassNames(state),\n styles.root,\n styles[state.position],\n state.hasMountNodeElement && styles.absolute,\n state.root.className,\n );\n const backdrop = state.root.backdrop as React.HTMLAttributes<HTMLDivElement> | undefined;\n if (backdrop) {\n // eslint-disable-next-line react-hooks/immutability\n backdrop.className = clsx(\n overlayDrawerClassNames.backdrop,\n state.hasMountNodeElement && styles.absolute,\n backdrop.className,\n );\n }\n return state;\n};\n"],"names":["clsx","useDrawerBaseClassNames","useDrawerDefaultClassName","styles","overlayDrawerClassNames","root","backdrop","useOverlayDrawerStyles_unstable","state","className","position","hasMountNodeElement","absolute"],"mappings":"AAAA;;;;;;;;;;;;QASaI;;;;;;;;sBARQ,OAAO;8CAKuC,iDAA8C;iFAC9F,6BAA6B;AAEzC,gCAAmG;IACxGC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEK,MAAMC,kCAAkC,CAACC;IAC9C,oDAAoD;IACpDA,MAAMH,IAAI,CAACI,SAAS,OAAGT,UAAAA,EACrBI,wBAAwBC,IAAI,MAC5BH,uDAAAA,SACAD,qDAAAA,EAAwBO,QACxBL,+BAAAA,CAAOE,IAAI,EACXF,+BAAM,CAACK,MAAME,QAAQ,CAAC,EACtBF,MAAMG,mBAAmB,IAAIR,+BAAAA,CAAOS,QAAQ,EAC5CJ,MAAMH,IAAI,CAACI,SAAS;IAEtB,MAAMH,WAAWE,MAAMH,IAAI,CAACC,QAAQ;IACpC,IAAIA,UAAU;QACZ,oDAAoD;QACpDA,SAASG,SAAS,OAAGT,UAAAA,EACnBI,wBAAwBE,QAAQ,EAChCE,MAAMG,mBAAmB,IAAIR,+BAAAA,CAAOS,QAAQ,EAC5CN,SAASG,SAAS;IAEtB;IACA,OAAOD;AACT,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- overlayDrawerClassNames: function() {
13
+ get overlayDrawerClassNames () {
14
14
  return overlayDrawerClassNames;
15
15
  },
16
- useOverlayDrawerStyles_unstable: function() {
16
+ get useOverlayDrawerStyles_unstable () {
17
17
  return useOverlayDrawerStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/OverlayDrawer/useOverlayDrawerStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\n\nimport type { OverlayDrawerState } from './OverlayDrawer.types';\nimport type { OverlayDrawerSurfaceSlots } from './OverlayDrawerSurface/OverlayDrawerSurface.types';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\n\nexport const overlayDrawerClassNames: SlotClassNames<Omit<OverlayDrawerSurfaceSlots, 'backdropMotion'>> = {\n root: 'fui-OverlayDrawer',\n backdrop: 'fui-OverlayDrawer__backdrop',\n};\n\n/**\n * Styles for the root slot\n */\nconst useDrawerResetStyles = makeResetStyles({\n ...createFocusOutlineStyle(),\n ...drawerDefaultStyles,\n position: 'fixed',\n top: 0,\n bottom: 0,\n});\n\nconst useDrawerRootStyles = makeStyles({\n /* Positioning */\n start: {},\n end: {},\n bottom: {\n top: 'auto',\n height: `var(${drawerCSSVars.drawerSizeVar})`,\n width: '100vw',\n },\n absolute: {\n position: 'absolute',\n },\n});\n\n/**\n * Apply styling to the OverlayDrawer slots based on the state\n */\nexport const useOverlayDrawerStyles_unstable = (state: OverlayDrawerState): OverlayDrawerState => {\n const baseClassNames = useDrawerBaseClassNames(state);\n const resetStyles = useDrawerResetStyles();\n const rootStyles = useDrawerRootStyles();\n\n const absoluteStyles = state.hasMountNodeElement && rootStyles.absolute;\n const backdrop = state.root.backdrop as React.HTMLAttributes<HTMLDivElement> | undefined;\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n overlayDrawerClassNames.root,\n baseClassNames,\n resetStyles,\n rootStyles[state.position],\n absoluteStyles,\n state.root.className,\n );\n\n if (backdrop) {\n // eslint-disable-next-line react-hooks/immutability\n backdrop.className = mergeClasses(overlayDrawerClassNames.backdrop, absoluteStyles, backdrop.className);\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","createFocusOutlineStyle","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","overlayDrawerClassNames","root","backdrop","useDrawerResetStyles","position","top","bottom","useDrawerRootStyles","start","end","height","drawerSizeVar","width","absolute","useOverlayDrawerStyles_unstable","state","baseClassNames","resetStyles","rootStyles","absoluteStyles","hasMountNodeElement","className"],"mappings":"AAAA;;;;;;;;;;;;IAWaO,uBAAAA;;;IAiCAc,+BAAAA;;;;uBAzC6C,iBAAiB;8BAEnC,0BAA0B;2CAIU,6CAA0C;AAE/G,gCAAmG;IACxGb,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF;;CAEC,GACD,MAAMC,2BAAuBV,sBAAAA,EAAgB;IAC3C,GAAGG,yCAAAA,GAAyB;IAC5B,GAAGE,8CAAmB;IACtBM,UAAU;IACVC,KAAK;IACLC,QAAQ;AACV;AAEA,MAAMC,0BAAsBb,iBAAAA,EAAW;IACrC,eAAe,GACfc,OAAO,CAAC;IACRC,KAAK,CAAC;IACNH,QAAQ;QACND,KAAK;QACLK,QAAQ,CAAC,IAAI,EAAEb,wCAAAA,CAAcc,aAAa,CAAC,CAAC,CAAC;QAC7CC,OAAO;IACT;IACAC,UAAU;QACRT,UAAU;IACZ;AACF;AAKO,wCAAwC,CAACW;IAC9C,MAAMC,iBAAiBjB,sDAAAA,EAAwBgB;IAC/C,MAAME,cAAcd;IACpB,MAAMe,aAAaX;IAEnB,MAAMY,iBAAiBJ,MAAMK,mBAAmB,IAAIF,WAAWL,QAAQ;IACvE,MAAMX,WAAWa,MAAMd,IAAI,CAACC,QAAQ;IAEpC,oDAAoD;IACpDa,MAAMd,IAAI,CAACoB,SAAS,OAAG1B,mBAAAA,EACrBK,wBAAwBC,IAAI,EAC5Be,gBACAC,aACAC,UAAU,CAACH,MAAMX,QAAQ,CAAC,EAC1Be,gBACAJ,MAAMd,IAAI,CAACoB,SAAS;IAGtB,IAAInB,UAAU;QACZ,oDAAoD;QACpDA,SAASmB,SAAS,OAAG1B,mBAAAA,EAAaK,wBAAwBE,QAAQ,EAAEiB,gBAAgBjB,SAASmB,SAAS;IACxG;IAEA,OAAON;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/OverlayDrawer/useOverlayDrawerStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\n\nimport type { OverlayDrawerState } from './OverlayDrawer.types';\nimport type { OverlayDrawerSurfaceSlots } from './OverlayDrawerSurface/OverlayDrawerSurface.types';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\n\nexport const overlayDrawerClassNames: SlotClassNames<Omit<OverlayDrawerSurfaceSlots, 'backdropMotion'>> = {\n root: 'fui-OverlayDrawer',\n backdrop: 'fui-OverlayDrawer__backdrop',\n};\n\n/**\n * Styles for the root slot\n */\nconst useDrawerResetStyles = makeResetStyles({\n ...createFocusOutlineStyle(),\n ...drawerDefaultStyles,\n position: 'fixed',\n top: 0,\n bottom: 0,\n});\n\nconst useDrawerRootStyles = makeStyles({\n /* Positioning */\n start: {},\n end: {},\n bottom: {\n top: 'auto',\n height: `var(${drawerCSSVars.drawerSizeVar})`,\n width: '100vw',\n },\n absolute: {\n position: 'absolute',\n },\n});\n\n/**\n * Apply styling to the OverlayDrawer slots based on the state\n */\nexport const useOverlayDrawerStyles_unstable = (state: OverlayDrawerState): OverlayDrawerState => {\n const baseClassNames = useDrawerBaseClassNames(state);\n const resetStyles = useDrawerResetStyles();\n const rootStyles = useDrawerRootStyles();\n\n const absoluteStyles = state.hasMountNodeElement && rootStyles.absolute;\n const backdrop = state.root.backdrop as React.HTMLAttributes<HTMLDivElement> | undefined;\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n overlayDrawerClassNames.root,\n baseClassNames,\n resetStyles,\n rootStyles[state.position],\n absoluteStyles,\n state.root.className,\n );\n\n if (backdrop) {\n // eslint-disable-next-line react-hooks/immutability\n backdrop.className = mergeClasses(overlayDrawerClassNames.backdrop, absoluteStyles, backdrop.className);\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","createFocusOutlineStyle","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","overlayDrawerClassNames","root","backdrop","useDrawerResetStyles","position","top","bottom","useDrawerRootStyles","start","end","height","drawerSizeVar","width","absolute","useOverlayDrawerStyles_unstable","state","baseClassNames","resetStyles","rootStyles","absoluteStyles","hasMountNodeElement","className"],"mappings":"AAAA;;;;;;;;;;;;QAWaO;;;;eAiCAc;;;uBAzC6C,iBAAiB;8BAEnC,0BAA0B;2CAIU,6CAA0C;AAE/G,gCAAmG;IACxGb,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF;;CAEC,GACD,MAAMC,2BAAuBV,sBAAAA,EAAgB;IAC3C,OAAGG,qCAAAA,GAAyB;IAC5B,GAAGE,8CAAmB;IACtBM,UAAU;IACVC,KAAK;IACLC,QAAQ;AACV;AAEA,MAAMC,0BAAsBb,iBAAAA,EAAW;IACrC,eAAe,GACfc,OAAO,CAAC;IACRC,KAAK,CAAC;IACNH,QAAQ;QACND,KAAK;QACLK,QAAQ,CAAC,IAAI,EAAEb,wCAAAA,CAAcc,aAAa,CAAC,CAAC,CAAC;QAC7CC,OAAO;IACT;IACAC,UAAU;QACRT,UAAU;IACZ;AACF;AAKO,wCAAwC,CAACW;IAC9C,MAAMC,iBAAiBjB,sDAAAA,EAAwBgB;IAC/C,MAAME,cAAcd;IACpB,MAAMe,aAAaX;IAEnB,MAAMY,iBAAiBJ,MAAMK,mBAAmB,IAAIF,WAAWL,QAAQ;IACvE,MAAMX,WAAWa,MAAMd,IAAI,CAACC,QAAQ;IAEpC,oDAAoD;IACpDa,MAAMd,IAAI,CAACoB,SAAS,OAAG1B,mBAAAA,EACrBK,wBAAwBC,IAAI,EAC5Be,gBACAC,aACAC,UAAU,CAACH,MAAMX,QAAQ,CAAC,EAC1Be,gBACAJ,MAAMd,IAAI,CAACoB,SAAS;IAGtB,IAAInB,UAAU;QACZ,oDAAoD;QACpDA,SAASmB,SAAS,OAAG1B,mBAAAA,EAAaK,wBAAwBE,QAAQ,EAAEiB,gBAAgBjB,SAASmB,SAAS;IACxG;IAEA,OAAON;AACT,EAAE"}
@@ -0,0 +1,37 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
+ });
11
+ }
12
+ _export(exports, {
13
+ get overlayDrawerClassNames () {
14
+ return overlayDrawerClassNames;
15
+ },
16
+ get useOverlayDrawerStyles_unstable () {
17
+ return useOverlayDrawerStyles_unstable;
18
+ }
19
+ });
20
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
21
+ const _clsx = require("clsx");
22
+ const _useDrawerBaseStylesstylescss = require("../../shared/useDrawerBaseStyles.styles.css.cjs");
23
+ const _OverlayDrawermodulecss = /*#__PURE__*/ _interop_require_default._(require("./OverlayDrawer.module.css"));
24
+ const overlayDrawerClassNames = {
25
+ root: 'fui-OverlayDrawer',
26
+ backdrop: 'fui-OverlayDrawer__backdrop'
27
+ };
28
+ const useOverlayDrawerStyles_unstable = (state)=>{
29
+ // eslint-disable-next-line react-hooks/immutability
30
+ state.root.className = (0, _clsx.clsx)(overlayDrawerClassNames.root, (0, _useDrawerBaseStylesstylescss.useDrawerDefaultClassName)(), (0, _useDrawerBaseStylesstylescss.useDrawerBaseClassNames)(state), _OverlayDrawermodulecss.default.root, _OverlayDrawermodulecss.default[state.position], state.hasMountNodeElement && _OverlayDrawermodulecss.default.absolute, state.root.className);
31
+ const backdrop = state.root.backdrop;
32
+ if (backdrop) {
33
+ // eslint-disable-next-line react-hooks/immutability
34
+ backdrop.className = (0, _clsx.clsx)(overlayDrawerClassNames.backdrop, state.hasMountNodeElement && _OverlayDrawermodulecss.default.absolute, backdrop.className);
35
+ }
36
+ return state;
37
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.ts"],"sourcesContent":["'use client';\nimport { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { OverlayDrawerState } from './OverlayDrawer.types';\nimport type * as React from 'react';\nimport type { OverlayDrawerSurfaceSlots } from './OverlayDrawerSurface/OverlayDrawerSurface.types';\nimport { useDrawerBaseClassNames, useDrawerDefaultClassName } from '../../shared/useDrawerBaseStyles.styles.css';\nimport styles from './OverlayDrawer.module.css';\n\nexport const overlayDrawerClassNames: SlotClassNames<Omit<OverlayDrawerSurfaceSlots, 'backdropMotion'>> = {\n root: 'fui-OverlayDrawer',\n backdrop: 'fui-OverlayDrawer__backdrop',\n};\n\nexport const useOverlayDrawerStyles_unstable = (state: OverlayDrawerState): OverlayDrawerState => {\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = clsx(\n overlayDrawerClassNames.root,\n useDrawerDefaultClassName(),\n useDrawerBaseClassNames(state),\n styles.root,\n styles[state.position],\n state.hasMountNodeElement && styles.absolute,\n state.root.className,\n );\n const backdrop = state.root.backdrop as React.HTMLAttributes<HTMLDivElement> | undefined;\n if (backdrop) {\n // eslint-disable-next-line react-hooks/immutability\n backdrop.className = clsx(\n overlayDrawerClassNames.backdrop,\n state.hasMountNodeElement && styles.absolute,\n backdrop.className,\n );\n }\n return state;\n};\n"],"names":["clsx","useDrawerBaseClassNames","useDrawerDefaultClassName","styles","overlayDrawerClassNames","root","backdrop","useOverlayDrawerStyles_unstable","state","className","position","hasMountNodeElement","absolute"],"mappings":"AAAA;;;;;;;;;;;;QASaI;;;;;;;;sBARQ,OAAO;8CAKuC,iDAA8C;iFAC9F,6BAA6B;AAEzC,gCAAmG;IACxGC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEK,MAAMC,kCAAkC,CAACC;IAC9C,oDAAoD;IACpDA,MAAMH,IAAI,CAACI,SAAS,OAAGT,UAAAA,EACrBI,wBAAwBC,IAAI,MAC5BH,uDAAAA,SACAD,qDAAAA,EAAwBO,QACxBL,+BAAAA,CAAOE,IAAI,EACXF,+BAAM,CAACK,MAAME,QAAQ,CAAC,EACtBF,MAAMG,mBAAmB,IAAIR,+BAAAA,CAAOS,QAAQ,EAC5CJ,MAAMH,IAAI,CAACI,SAAS;IAEtB,MAAMH,WAAWE,MAAMH,IAAI,CAACC,QAAQ;IACpC,IAAIA,UAAU;QACZ,oDAAoD;QACpDA,SAASG,SAAS,OAAGT,UAAAA,EACnBI,wBAAwBE,QAAQ,EAChCE,MAAMG,mBAAmB,IAAIR,+BAAAA,CAAOS,QAAQ,EAC5CN,SAASG,SAAS;IAEtB;IACA,OAAOD;AACT,EAAE"}
@@ -6,20 +6,20 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- DrawerProvider: function() {
13
+ get DrawerProvider () {
14
14
  return DrawerProvider;
15
15
  },
16
- drawerContext: function() {
16
+ get drawerContext () {
17
17
  return drawerContext;
18
18
  },
19
- useDrawerContextValue: function() {
19
+ get useDrawerContextValue () {
20
20
  return useDrawerContextValue;
21
21
  },
22
- useDrawerContext_unstable: function() {
22
+ get useDrawerContext_unstable () {
23
23
  return useDrawerContext_unstable;
24
24
  }
25
25
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/contexts/drawerContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport type { DrawerScrollState } from '../shared/DrawerBase.types';\n\nexport type DrawerContextValue = {\n scrollState: DrawerScrollState;\n setScrollState: (scrollState: DrawerScrollState) => void;\n};\n\nconst defaultContextValue: DrawerContextValue = {\n scrollState: 'none',\n setScrollState: () => ({}),\n};\n\nexport const drawerContext = React.createContext<DrawerContextValue | undefined>(undefined);\nexport const DrawerProvider = drawerContext.Provider;\nexport const useDrawerContext_unstable = (): DrawerContextValue =>\n React.useContext(drawerContext) ?? defaultContextValue;\n\nexport const useDrawerContextValue = (): DrawerContextValue => {\n const [scrollState, setScrollState] = React.useState<DrawerScrollState>('none');\n\n return {\n setScrollState,\n scrollState,\n };\n};\n"],"names":["React","defaultContextValue","scrollState","setScrollState","drawerContext","createContext","undefined","DrawerProvider","Provider","useDrawerContext_unstable","useContext","useDrawerContextValue","useState"],"mappings":"AAAA;;;;;;;;;;;;kBAiBaO;;;iBADAH;;;yBAKAO;;;6BAHAF;eAAAA;;;;iEAhBU,QAAQ;AAS/B,MAAMR,sBAA0C;IAC9CC,aAAa;IACbC,gBAAgB,IAAO,CAAA,EAAC,CAAA;AAC1B;AAEO,MAAMC,8BAAgBJ,OAAMK,aAAa,CAAiCC,WAAW;AACrF,MAAMC,iBAAiBH,cAAcI,QAAQ,CAAC;AAC9C,kCAAkC;QACvCR;WAAAA,CAAAA,oBAAAA,OAAMU,UAAU,CAACN,cAAAA,MAAAA,QAAjBJ,sBAAAA,KAAAA,IAAAA,oBAAmCC;EAAoB;AAElD,MAAMU,wBAAwB;IACnC,MAAM,CAACT,aAAaC,eAAe,GAAGH,OAAMY,QAAQ,CAAoB;IAExE,OAAO;QACLT;QACAD;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../src/contexts/drawerContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport type { DrawerScrollState } from '../shared/DrawerBase.types';\n\nexport type DrawerContextValue = {\n scrollState: DrawerScrollState;\n setScrollState: (scrollState: DrawerScrollState) => void;\n};\n\nconst defaultContextValue: DrawerContextValue = {\n scrollState: 'none',\n setScrollState: () => ({}),\n};\n\nexport const drawerContext = React.createContext<DrawerContextValue | undefined>(undefined);\nexport const DrawerProvider = drawerContext.Provider;\nexport const useDrawerContext_unstable = (): DrawerContextValue =>\n React.useContext(drawerContext) ?? defaultContextValue;\n\nexport const useDrawerContextValue = (): DrawerContextValue => {\n const [scrollState, setScrollState] = React.useState<DrawerScrollState>('none');\n\n return {\n setScrollState,\n scrollState,\n };\n};\n"],"names":["React","defaultContextValue","scrollState","setScrollState","drawerContext","createContext","undefined","DrawerProvider","Provider","useDrawerContext_unstable","useContext","useDrawerContextValue","useState"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;QAkBaS;;;;;iEAhBU,QAAQ;AAS/B,MAAMR,sBAA0C;IAC9CC,aAAa;IACbC,gBAAgB,IAAO,CAAA,EAAC,CAAA;AAC1B;AAEO,MAAMC,8BAAgBJ,OAAMK,aAAa,CAAiCC,WAAW;AACrF,MAAMC,iBAAiBH,cAAcI,QAAQ,CAAC;AAC9C,kCAAkC;QACvCR;YAAAA,oBAAAA,OAAMU,UAAU,CAACN,cAAAA,MAAAA,QAAjBJ,sBAAAA,KAAAA,IAAAA,oBAAmCC;EAAoB;AAElD,MAAMU,wBAAwB;IACnC,MAAM,CAACT,aAAaC,eAAe,GAAGH,OAAMY,QAAQ,CAAoB;IAExE,OAAO;QACLT;QACAD;IACF;AACF,EAAE"}
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DrawerProvider: function() {
12
+ get DrawerProvider () {
13
13
  return _drawerContext.DrawerProvider;
14
14
  },
15
- drawerContext: function() {
15
+ get drawerContext () {
16
16
  return _drawerContext.drawerContext;
17
17
  },
18
- useDrawerContextValue: function() {
18
+ get useDrawerContextValue () {
19
19
  return _drawerContext.useDrawerContextValue;
20
20
  },
21
- useDrawerContext_unstable: function() {
21
+ get useDrawerContext_unstable () {
22
22
  return _drawerContext.useDrawerContext_unstable;
23
23
  }
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/contexts/index.ts"],"sourcesContent":["export type { DrawerContextValue } from './drawerContext';\nexport { DrawerProvider, drawerContext, useDrawerContextValue, useDrawerContext_unstable } from './drawerContext';\n"],"names":["DrawerProvider","drawerContext","useDrawerContextValue","useDrawerContext_unstable"],"mappings":";;;;;;;;;;;;eACSA,6BAAc;;;eAAEC,4BAAa;;;eAAEC,oCAAqB;;;eAAEC,wCAAyB;;;+BAAQ,qBAAkB"}
1
+ {"version":3,"sources":["../../src/contexts/index.ts"],"sourcesContent":["export type { DrawerContextValue } from './drawerContext';\nexport { DrawerProvider, drawerContext, useDrawerContextValue, useDrawerContext_unstable } from './drawerContext';\n"],"names":["DrawerProvider","drawerContext","useDrawerContextValue","useDrawerContext_unstable"],"mappings":";;;;;;;;;;;;eACSA,6BAAc;;;eAAEC,4BAAa;;;eAAEC,oCAAqB;;;eAAEC,wCAAyB;;;+BAAQ,qBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/e2e/DrawerShared.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { mount } from '@fluentui/scripts-cypress';\nimport { FluentProvider } from '@fluentui/react-provider';\nimport { webLightTheme } from '@fluentui/react-theme';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\nimport type { InlineDrawer } from '../components/InlineDrawer';\nimport type { OverlayDrawer } from '../components/OverlayDrawer';\nimport type { Drawer, DrawerProps } from '../Drawer';\n\nconst mountFluent = (element: JSXElement) => {\n mount(<FluentProvider theme={webLightTheme}>{element}</FluentProvider>);\n};\n\nexport function testDrawerBaseScenarios(Component: typeof Drawer | typeof OverlayDrawer | typeof InlineDrawer): void {\n describe('basic functionality', () => {\n it('should not render any element when closed', () => {\n mountFluent(<Component id=\"drawer\" />);\n\n cy.get('#drawer').should('not.exist');\n });\n\n it('should render an element when opened', () => {\n mountFluent(<Component id=\"drawer\" open />);\n\n cy.get('#drawer').should('exist');\n });\n\n it('should render children content', () => {\n const content = 'Test the renderization';\n mountFluent(\n <Component id=\"drawer\" open>\n {content}\n </Component>,\n );\n\n cy.get('#drawer').contains(content);\n });\n\n it('should toggle visibility on open prop change', () => {\n const ExampleDrawer = () => {\n const [open, setOpen] = React.useState(false);\n\n return (\n <>\n <Component id=\"drawer\" open={open} />\n <button id=\"button\" onClick={() => setOpen(true)}>\n Open\n </button>\n </>\n );\n };\n\n mountFluent(<ExampleDrawer />);\n\n cy.get('#drawer').should('not.exist');\n cy.get('#button').click();\n cy.get('#drawer').should('exist');\n });\n });\n\n describe('size prop', () => {\n const sizes = {\n small: 320,\n medium: 592,\n large: 940,\n full: 1000,\n };\n\n Object.entries(sizes).forEach(([size, width]) => {\n const sizeProp = size as DrawerProps['size'];\n\n it(`should have correct size when size is ${size}`, () => {\n mountFluent(<Component size={sizeProp} id=\"drawer\" open />);\n\n cy.viewport(1000, 1000);\n cy.get('#drawer').should('have.css', 'width', width + 'px');\n cy.get('#drawer').invoke('outerWidth').should('equal', width);\n });\n });\n\n it('width should not be bigger than viewport', () => {\n mountFluent(<Component id=\"drawer\" open />);\n\n cy.viewport(319, 319);\n cy.get('#drawer').should('have.css', 'width', '319px');\n cy.get('#drawer').invoke('outerWidth').should('equal', 319);\n });\n\n it('should have custom size', () => {\n mountFluent(<Component id=\"drawer\" open style={{ width: '200px' }} />);\n\n cy.get('#drawer').should('have.css', 'width', '200px');\n cy.get('#drawer').invoke('outerWidth').should('equal', 200);\n });\n });\n\n describe('position prop', () => {\n const positions = {\n start: 'left',\n end: 'right',\n bottom: 'bottom',\n };\n\n Object.entries(positions).forEach(([position, side]) => {\n const positionProp = position as DrawerProps['position'];\n\n it(`should have correct position when position is ${position}`, () => {\n mountFluent(<Component position={positionProp} id=\"drawer\" open />);\n\n cy.get('#drawer').should('have.css', side, '0px');\n });\n });\n });\n}\n"],"names":["React","mount","FluentProvider","webLightTheme","mountFluent","element","theme","testDrawerBaseScenarios","Component","describe","it","id","cy","get","should","open","content","contains","ExampleDrawer","setOpen","useState","button","onClick","click","sizes","small","medium","large","full","Object","entries","forEach","size","width","sizeProp","viewport","invoke","style","positions","start","end","bottom","position","side","positionProp"],"mappings":"AAAA;;;;;+BAgBgBO;;;;;;;iEAdO,QAAQ;gCACT,4BAA4B;+BACnB,2BAA2B;4BAC5B,wBAAwB;AAOtD,MAAMH,cAAc,CAACC;QACnBJ,qBAAAA,EAAAA,WAAAA,GAAM,OAAA,aAAA,CAACC,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A,WAAAA,GAAY,OAAA,aAAA,CAACI,WAAAA;oBAAUkC,UAAUE;oBAAcjC,IAAG;oBAASI,MAAAA;;gBAE3DH,GAAGC,GAAG,CAAC,WAAWC,MAAM,CAAC,YAAY6B,MAAM;YAC7C;QACF;IACF;AACF"}
1
+ {"version":3,"sources":["../../src/e2e/DrawerShared.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { mount } from '@fluentui/scripts-cypress';\nimport { FluentProvider } from '@fluentui/react-provider';\nimport { webLightTheme } from '@fluentui/react-theme';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\nimport type { InlineDrawer } from '../components/InlineDrawer';\nimport type { OverlayDrawer } from '../components/OverlayDrawer';\nimport type { Drawer, DrawerProps } from '../Drawer';\n\nconst mountFluent = (element: JSXElement) => {\n mount(<FluentProvider theme={webLightTheme}>{element}</FluentProvider>);\n};\n\nexport function testDrawerBaseScenarios(Component: typeof Drawer | typeof OverlayDrawer | typeof InlineDrawer): void {\n describe('basic functionality', () => {\n it('should not render any element when closed', () => {\n mountFluent(<Component id=\"drawer\" />);\n\n cy.get('#drawer').should('not.exist');\n });\n\n it('should render an element when opened', () => {\n mountFluent(<Component id=\"drawer\" open />);\n\n cy.get('#drawer').should('exist');\n });\n\n it('should render children content', () => {\n const content = 'Test the renderization';\n mountFluent(\n <Component id=\"drawer\" open>\n {content}\n </Component>,\n );\n\n cy.get('#drawer').contains(content);\n });\n\n it('should toggle visibility on open prop change', () => {\n const ExampleDrawer = () => {\n const [open, setOpen] = React.useState(false);\n\n return (\n <>\n <Component id=\"drawer\" open={open} />\n <button id=\"button\" onClick={() => setOpen(true)}>\n Open\n </button>\n </>\n );\n };\n\n mountFluent(<ExampleDrawer />);\n\n cy.get('#drawer').should('not.exist');\n cy.get('#button').click();\n cy.get('#drawer').should('exist');\n });\n });\n\n describe('size prop', () => {\n const sizes = {\n small: 320,\n medium: 592,\n large: 940,\n full: 1000,\n };\n\n Object.entries(sizes).forEach(([size, width]) => {\n const sizeProp = size as DrawerProps['size'];\n\n it(`should have correct size when size is ${size}`, () => {\n mountFluent(<Component size={sizeProp} id=\"drawer\" open />);\n\n cy.viewport(1000, 1000);\n cy.get('#drawer').should('have.css', 'width', width + 'px');\n cy.get('#drawer').invoke('outerWidth').should('equal', width);\n });\n });\n\n it('width should not be bigger than viewport', () => {\n mountFluent(<Component id=\"drawer\" open />);\n\n cy.viewport(319, 319);\n cy.get('#drawer').should('have.css', 'width', '319px');\n cy.get('#drawer').invoke('outerWidth').should('equal', 319);\n });\n\n it('should have custom size', () => {\n mountFluent(<Component id=\"drawer\" open style={{ width: '200px' }} />);\n\n cy.get('#drawer').should('have.css', 'width', '200px');\n cy.get('#drawer').invoke('outerWidth').should('equal', 200);\n });\n });\n\n describe('position prop', () => {\n const positions = {\n start: 'left',\n end: 'right',\n bottom: 'bottom',\n };\n\n Object.entries(positions).forEach(([position, side]) => {\n const positionProp = position as DrawerProps['position'];\n\n it(`should have correct position when position is ${position}`, () => {\n mountFluent(<Component position={positionProp} id=\"drawer\" open />);\n\n cy.get('#drawer').should('have.css', side, '0px');\n });\n });\n });\n}\n"],"names":["React","mount","FluentProvider","webLightTheme","mountFluent","element","theme","testDrawerBaseScenarios","Component","describe","it","id","cy","get","should","open","content","contains","ExampleDrawer","setOpen","useState","button","onClick","click","sizes","small","medium","large","full","Object","entries","forEach","size","width","sizeProp","viewport","invoke","style","positions","start","end","bottom","position","side","positionProp"],"mappings":"AAAA;;;;;+BAgBgBO;;;;;;;iEAdO,QAAQ;gCACT,4BAA4B;+BACnB,2BAA2B;4BAC5B,wBAAwB;AAOtD,MAAMH,cAAc,CAACC;QACnBJ,qBAAAA,EAAAA,WAAAA,GAAM,OAAA,aAAA,CAACC,6BAAAA,EAAAA;QAAeI,OAAOH,yBAAAA;OAAgBE;AAC/C;AAEO,iCAAiCG,SAAqE;IAC3GC,SAAS,uBAAuB;QAC9BC,GAAG,6CAA6C;YAC9CN,YAAAA,WAAAA,GAAY,OAAA,a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QACF;IACF;AACF"}
@@ -5,137 +5,137 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Drawer: function() {
12
+ get Drawer () {
13
13
  return _Drawer.Drawer;
14
14
  },
15
- DrawerBody: function() {
15
+ get DrawerBody () {
16
16
  return _DrawerBody.DrawerBody;
17
17
  },
18
- DrawerFooter: function() {
18
+ get DrawerFooter () {
19
19
  return _DrawerFooter.DrawerFooter;
20
20
  },
21
- DrawerHeader: function() {
21
+ get DrawerHeader () {
22
22
  return _DrawerHeader.DrawerHeader;
23
23
  },
24
- DrawerHeaderNavigation: function() {
24
+ get DrawerHeaderNavigation () {
25
25
  return _DrawerHeaderNavigation.DrawerHeaderNavigation;
26
26
  },
27
- DrawerHeaderTitle: function() {
27
+ get DrawerHeaderTitle () {
28
28
  return _DrawerHeaderTitle.DrawerHeaderTitle;
29
29
  },
30
- DrawerProvider: function() {
30
+ get DrawerProvider () {
31
31
  return _index.DrawerProvider;
32
32
  },
33
- InlineDrawer: function() {
33
+ get InlineDrawer () {
34
34
  return _InlineDrawer.InlineDrawer;
35
35
  },
36
- OverlayDrawer: function() {
36
+ get OverlayDrawer () {
37
37
  return _OverlayDrawer.OverlayDrawer;
38
38
  },
39
- drawerBodyClassNames: function() {
39
+ get drawerBodyClassNames () {
40
40
  return _DrawerBody.drawerBodyClassNames;
41
41
  },
42
- drawerFooterClassNames: function() {
42
+ get drawerFooterClassNames () {
43
43
  return _DrawerFooter.drawerFooterClassNames;
44
44
  },
45
- drawerHeaderClassNames: function() {
45
+ get drawerHeaderClassNames () {
46
46
  return _DrawerHeader.drawerHeaderClassNames;
47
47
  },
48
- drawerHeaderNavigationClassNames: function() {
48
+ get drawerHeaderNavigationClassNames () {
49
49
  return _DrawerHeaderNavigation.drawerHeaderNavigationClassNames;
50
50
  },
51
- drawerHeaderTitleClassNames: function() {
51
+ get drawerHeaderTitleClassNames () {
52
52
  return _DrawerHeaderTitle.drawerHeaderTitleClassNames;
53
53
  },
54
- inlineDrawerClassNames: function() {
54
+ get inlineDrawerClassNames () {
55
55
  return _InlineDrawer.inlineDrawerClassNames;
56
56
  },
57
- overlayDrawerClassNames: function() {
57
+ get overlayDrawerClassNames () {
58
58
  return _OverlayDrawer.overlayDrawerClassNames;
59
59
  },
60
- renderDrawerBody_unstable: function() {
60
+ get renderDrawerBody_unstable () {
61
61
  return _DrawerBody.renderDrawerBody_unstable;
62
62
  },
63
- renderDrawerFooter_unstable: function() {
63
+ get renderDrawerFooter_unstable () {
64
64
  return _DrawerFooter.renderDrawerFooter_unstable;
65
65
  },
66
- renderDrawerHeaderNavigation_unstable: function() {
66
+ get renderDrawerHeaderNavigation_unstable () {
67
67
  return _DrawerHeaderNavigation.renderDrawerHeaderNavigation_unstable;
68
68
  },
69
- renderDrawerHeaderTitle_unstable: function() {
69
+ get renderDrawerHeaderTitle_unstable () {
70
70
  return _DrawerHeaderTitle.renderDrawerHeaderTitle_unstable;
71
71
  },
72
- renderDrawerHeader_unstable: function() {
72
+ get renderDrawerHeader_unstable () {
73
73
  return _DrawerHeader.renderDrawerHeader_unstable;
74
74
  },
75
- renderDrawer_unstable: function() {
75
+ get renderDrawer_unstable () {
76
76
  return _Drawer.renderDrawer_unstable;
77
77
  },
78
- renderInlineDrawer_unstable: function() {
78
+ get renderInlineDrawer_unstable () {
79
79
  return _InlineDrawer.renderInlineDrawer_unstable;
80
80
  },
81
- renderOverlayDrawer_unstable: function() {
81
+ get renderOverlayDrawer_unstable () {
82
82
  return _OverlayDrawer.renderOverlayDrawer_unstable;
83
83
  },
84
- useDrawerBodyStyles_unstable: function() {
84
+ get useDrawerBodyStyles_unstable () {
85
85
  return _DrawerBody.useDrawerBodyStyles_unstable;
86
86
  },
87
- useDrawerBody_unstable: function() {
87
+ get useDrawerBody_unstable () {
88
88
  return _DrawerBody.useDrawerBody_unstable;
89
89
  },
90
- useDrawerContextValue: function() {
90
+ get useDrawerContextValue () {
91
91
  return _index.useDrawerContextValue;
92
92
  },
93
- useDrawerContext_unstable: function() {
93
+ get useDrawerContext_unstable () {
94
94
  return _index.useDrawerContext_unstable;
95
95
  },
96
- useDrawerFooterStyles_unstable: function() {
96
+ get useDrawerFooterStyles_unstable () {
97
97
  return _DrawerFooter.useDrawerFooterStyles_unstable;
98
98
  },
99
- useDrawerFooter_unstable: function() {
99
+ get useDrawerFooter_unstable () {
100
100
  return _DrawerFooter.useDrawerFooter_unstable;
101
101
  },
102
- useDrawerHeaderNavigationStyles_unstable: function() {
102
+ get useDrawerHeaderNavigationStyles_unstable () {
103
103
  return _DrawerHeaderNavigation.useDrawerHeaderNavigationStyles_unstable;
104
104
  },
105
- useDrawerHeaderNavigation_unstable: function() {
105
+ get useDrawerHeaderNavigation_unstable () {
106
106
  return _DrawerHeaderNavigation.useDrawerHeaderNavigation_unstable;
107
107
  },
108
- useDrawerHeaderStyles_unstable: function() {
108
+ get useDrawerHeaderStyles_unstable () {
109
109
  return _DrawerHeader.useDrawerHeaderStyles_unstable;
110
110
  },
111
- useDrawerHeaderTitleStyles_unstable: function() {
111
+ get useDrawerHeaderTitleStyles_unstable () {
112
112
  return _DrawerHeaderTitle.useDrawerHeaderTitleStyles_unstable;
113
113
  },
114
- useDrawerHeaderTitle_unstable: function() {
114
+ get useDrawerHeaderTitle_unstable () {
115
115
  return _DrawerHeaderTitle.useDrawerHeaderTitle_unstable;
116
116
  },
117
- useDrawerHeader_unstable: function() {
117
+ get useDrawerHeader_unstable () {
118
118
  return _DrawerHeader.useDrawerHeader_unstable;
119
119
  },
120
- useDrawerStyles_unstable: function() {
120
+ get useDrawerStyles_unstable () {
121
121
  return _Drawer.useDrawerStyles_unstable;
122
122
  },
123
- useDrawer_unstable: function() {
123
+ get useDrawer_unstable () {
124
124
  return _Drawer.useDrawer_unstable;
125
125
  },
126
- useInlineDrawerBase_unstable: function() {
126
+ get useInlineDrawerBase_unstable () {
127
127
  return _InlineDrawer.useInlineDrawerBase_unstable;
128
128
  },
129
- useInlineDrawerStyles_unstable: function() {
129
+ get useInlineDrawerStyles_unstable () {
130
130
  return _InlineDrawer.useInlineDrawerStyles_unstable;
131
131
  },
132
- useInlineDrawer_unstable: function() {
132
+ get useInlineDrawer_unstable () {
133
133
  return _InlineDrawer.useInlineDrawer_unstable;
134
134
  },
135
- useOverlayDrawerStyles_unstable: function() {
135
+ get useOverlayDrawerStyles_unstable () {
136
136
  return _OverlayDrawer.useOverlayDrawerStyles_unstable;
137
137
  },
138
- useOverlayDrawer_unstable: function() {
138
+ get useOverlayDrawer_unstable () {
139
139
  return _OverlayDrawer.useOverlayDrawer_unstable;
140
140
  }
141
141
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { DrawerProvider, useDrawerContextValue, useDrawerContext_unstable } from './contexts';\nexport type { DrawerContextValue } from './contexts';\n\nexport { Drawer, renderDrawer_unstable, useDrawerStyles_unstable, useDrawer_unstable } from './Drawer';\nexport type { DrawerProps, DrawerSlots, DrawerState } from './Drawer';\n\nexport {\n OverlayDrawer,\n overlayDrawerClassNames,\n renderOverlayDrawer_unstable,\n useOverlayDrawerStyles_unstable,\n useOverlayDrawer_unstable,\n} from './OverlayDrawer';\nexport type { OverlayDrawerProps, OverlayDrawerSlots, OverlayDrawerState } from './OverlayDrawer';\n\nexport {\n InlineDrawer,\n inlineDrawerClassNames,\n renderInlineDrawer_unstable,\n useInlineDrawerStyles_unstable,\n useInlineDrawer_unstable,\n useInlineDrawerBase_unstable,\n} from './InlineDrawer';\nexport type {\n InlineDrawerBaseProps,\n InlineDrawerBaseState,\n InlineDrawerProps,\n InlineDrawerSlots,\n InlineDrawerState,\n} from './InlineDrawer';\n\nexport {\n DrawerBody,\n drawerBodyClassNames,\n renderDrawerBody_unstable,\n useDrawerBodyStyles_unstable,\n useDrawerBody_unstable,\n} from './DrawerBody';\nexport type { DrawerBodyProps, DrawerBodySlots, DrawerBodyState } from './DrawerBody';\n\nexport {\n DrawerHeader,\n drawerHeaderClassNames,\n renderDrawerHeader_unstable,\n useDrawerHeaderStyles_unstable,\n useDrawerHeader_unstable,\n} from './DrawerHeader';\nexport type { DrawerHeaderProps, DrawerHeaderSlots, DrawerHeaderState } from './DrawerHeader';\n\nexport {\n DrawerHeaderTitle,\n drawerHeaderTitleClassNames,\n renderDrawerHeaderTitle_unstable,\n useDrawerHeaderTitleStyles_unstable,\n useDrawerHeaderTitle_unstable,\n} from './DrawerHeaderTitle';\nexport type { DrawerHeaderTitleProps, DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle';\n\nexport {\n DrawerHeaderNavigation,\n drawerHeaderNavigationClassNames,\n renderDrawerHeaderNavigation_unstable,\n useDrawerHeaderNavigationStyles_unstable,\n useDrawerHeaderNavigation_unstable,\n} from './DrawerHeaderNavigation';\nexport type {\n DrawerHeaderNavigationProps,\n DrawerHeaderNavigationSlots,\n DrawerHeaderNavigationState,\n} from './DrawerHeaderNavigation';\n\nexport {\n DrawerFooter,\n drawerFooterClassNames,\n renderDrawerFooter_unstable,\n useDrawerFooterStyles_unstable,\n useDrawerFooter_unstable,\n} from './DrawerFooter';\nexport type { DrawerFooterProps, DrawerFooterSlots, DrawerFooterState } from './DrawerFooter';\n"],"names":["DrawerProvider","useDrawerContextValue","useDrawerContext_unstable","Drawer","renderDrawer_unstable","useDrawerStyles_unstable","useDrawer_unstable","OverlayDrawer","overlayDrawerClassNames","renderOverlayDrawer_unstable","useOverlayDrawerStyles_unstable","useOverlayDrawer_unstable","InlineDrawer","inlineDrawerClassNames","renderInlineDrawer_unstable","useInlineDrawerStyles_unstable","useInlineDrawer_unstable","useInlineDrawerBase_unstable","DrawerBody","drawerBodyClassNames","renderDrawerBody_unstable","useDrawerBodyStyles_unstable","useDrawerBody_unstable","DrawerHeader","drawerHeaderClassNames","renderDrawerHeader_unstable","useDrawerHeaderStyles_unstable","useDrawerHeader_unstable","DrawerHeaderTitle","drawerHeaderTitleClassNames","renderDrawerHeaderTitle_unstable","useDrawerHeaderTitleStyles_unstable","useDrawerHeaderTitle_unstable","DrawerHeaderNavigation","drawerHeaderNavigationClassNames","renderDrawerHeaderNavigation_unstable","useDrawerHeaderNavigationStyles_unstable","useDrawerHeaderNavigation_unstable","DrawerFooter","drawerFooterClassNames","renderDrawerFooter_unstable","useDrawerFooterStyles_unstable","useDrawerFooter_unstable"],"mappings":";;;;;;;;;;;IAGSG;6BAAM;;IA6Bbe;qCAAU;;;eAwCVoB,0BAAY;;;eA/BZf,0BAAY;;;eAkBZU,8CAAsB;;;eATtBL,oCAAiB;;;eAlDV5B,qBAAc;;;eAgBrBY,0BAAY;;IATZL,aAAa;;;;eA0BbY,gCAAoB;;IAwCpBoB,sBAAsB;;;;eA/BtBf,oCAAsB;;oCAkBU;eAAhCU;;IATAL;6DAA2B;;;eAlC3BhB,oCAAsB;;;eATtBL,sCAAuB;;IA0BvBY;oDAAyB;;;eAwCzBoB,yCAA2B;;;eAb3BL,6DAAqC;;;eATrCL,mDAAgC;;;eAThCL,yCAA2B;;;eAxCZrB,6BAAqB;;;eAepCU,yCAA2B;;;eAT3BL,2CAA4B;;;eA0B5BY,wCAA4B;;;eAC5BC,kCAAsB;;;eApCCrB,4BAAqB;;;eAAEC,gCAAyB;;IA2EvEuC;2DAA8B;;;eAC9BC,sCAAwB;;;eAdxBN,gEAAwC;;;eACxCC,0DAAkC;;;eAnBlCX,4CAA8B;;;eAS9BK,sDAAmC;;;eACnCC,gDAA6B;;;eAT7BL,sCAAwB;;;eA1CctB,gCAAwB;;;eAAEC,0BAAkB;;;eAkBlFW,0CAA4B;;;eAF5BF,4CAA8B;;;eAC9BC,sCAAwB;;;eAVxBN,8CAA+B;;6BACN;eAAzBC;;;uBAX+E,sBAAa;wBAGF,cAAW;+BAShG,qBAAkB;8BAUlB,oBAAiB;4BAejB,kBAAe;8BASf,oBAAiB;mCASjB,yBAAsB;wCAStB,8BAA2B;8BAa3B,oBAAiB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { DrawerProvider, useDrawerContextValue, useDrawerContext_unstable } from './contexts';\nexport type { DrawerContextValue } from './contexts';\n\nexport { Drawer, renderDrawer_unstable, useDrawerStyles_unstable, useDrawer_unstable } from './Drawer';\nexport type { DrawerProps, DrawerSlots, DrawerState } from './Drawer';\n\nexport {\n OverlayDrawer,\n overlayDrawerClassNames,\n renderOverlayDrawer_unstable,\n useOverlayDrawerStyles_unstable,\n useOverlayDrawer_unstable,\n} from './OverlayDrawer';\nexport type { OverlayDrawerProps, OverlayDrawerSlots, OverlayDrawerState } from './OverlayDrawer';\n\nexport {\n InlineDrawer,\n inlineDrawerClassNames,\n renderInlineDrawer_unstable,\n useInlineDrawerStyles_unstable,\n useInlineDrawer_unstable,\n useInlineDrawerBase_unstable,\n} from './InlineDrawer';\nexport type {\n InlineDrawerBaseProps,\n InlineDrawerBaseState,\n InlineDrawerProps,\n InlineDrawerSlots,\n InlineDrawerState,\n} from './InlineDrawer';\n\nexport {\n DrawerBody,\n drawerBodyClassNames,\n renderDrawerBody_unstable,\n useDrawerBodyStyles_unstable,\n useDrawerBody_unstable,\n} from './DrawerBody';\nexport type { DrawerBodyProps, DrawerBodySlots, DrawerBodyState } from './DrawerBody';\n\nexport {\n DrawerHeader,\n drawerHeaderClassNames,\n renderDrawerHeader_unstable,\n useDrawerHeaderStyles_unstable,\n useDrawerHeader_unstable,\n} from './DrawerHeader';\nexport type { DrawerHeaderProps, DrawerHeaderSlots, DrawerHeaderState } from './DrawerHeader';\n\nexport {\n DrawerHeaderTitle,\n drawerHeaderTitleClassNames,\n renderDrawerHeaderTitle_unstable,\n useDrawerHeaderTitleStyles_unstable,\n useDrawerHeaderTitle_unstable,\n} from './DrawerHeaderTitle';\nexport type { DrawerHeaderTitleProps, DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle';\n\nexport {\n DrawerHeaderNavigation,\n drawerHeaderNavigationClassNames,\n renderDrawerHeaderNavigation_unstable,\n useDrawerHeaderNavigationStyles_unstable,\n useDrawerHeaderNavigation_unstable,\n} from './DrawerHeaderNavigation';\nexport type {\n DrawerHeaderNavigationProps,\n DrawerHeaderNavigationSlots,\n DrawerHeaderNavigationState,\n} from './DrawerHeaderNavigation';\n\nexport {\n DrawerFooter,\n drawerFooterClassNames,\n renderDrawerFooter_unstable,\n useDrawerFooterStyles_unstable,\n useDrawerFooter_unstable,\n} from './DrawerFooter';\nexport type { DrawerFooterProps, DrawerFooterSlots, DrawerFooterState } from './DrawerFooter';\n"],"names":["DrawerProvider","useDrawerContextValue","useDrawerContext_unstable","Drawer","renderDrawer_unstable","useDrawerStyles_unstable","useDrawer_unstable","OverlayDrawer","overlayDrawerClassNames","renderOverlayDrawer_unstable","useOverlayDrawerStyles_unstable","useOverlayDrawer_unstable","InlineDrawer","inlineDrawerClassNames","renderInlineDrawer_unstable","useInlineDrawerStyles_unstable","useInlineDrawer_unstable","useInlineDrawerBase_unstable","DrawerBody","drawerBodyClassNames","renderDrawerBody_unstable","useDrawerBodyStyles_unstable","useDrawerBody_unstable","DrawerHeader","drawerHeaderClassNames","renderDrawerHeader_unstable","useDrawerHeaderStyles_unstable","useDrawerHeader_unstable","DrawerHeaderTitle","drawerHeaderTitleClassNames","renderDrawerHeaderTitle_unstable","useDrawerHeaderTitleStyles_unstable","useDrawerHeaderTitle_unstable","DrawerHeaderNavigation","drawerHeaderNavigationClassNames","renderDrawerHeaderNavigation_unstable","useDrawerHeaderNavigationStyles_unstable","useDrawerHeaderNavigation_unstable","DrawerFooter","drawerFooterClassNames","renderDrawerFooter_unstable","useDrawerFooterStyles_unstable","useDrawerFooter_unstable"],"mappings":";;;;;;;;;;;QAGSG;6BAAM;;;eA6Bbe,sBAAU;;QAwCVoB;yCAAY;;;eA/BZf,0BAAY;;;eAkBZU,8CAAsB;;;eATtBL,oCAAiB;;;eAlDV5B,qBAAc;;;eAgBrBY,0BAAY;;;eATZL,4BAAa;;;eA0BbY,gCAAoB;;;eAwCpBoB,oCAAsB;;;eA/BtBf,oCAAsB;;;eAkBtBU,wDAAgC;;;eAThCL,8CAA2B;;;eAlC3BhB,oCAAsB;;;eATtBL,sCAAuB;;;eA0BvBY,qCAAyB;;QAwCzBoB;wDAA2B;;QAb3BL;4EAAqC;;;eATrCL,mDAAgC;;;eAThCL,yCAA2B;;;eAxCZrB,6BAAqB;;;eAepCU,yCAA2B;;QAT3BL;0DAA4B;;;eA0B5BY,wCAA4B;;;eAC5BC,kCAAsB;;;eApCCrB,4BAAqB;;;eAAEC,gCAAyB;;;eA2EvEuC,4CAA8B;;;eAC9BC,sCAAwB;;;eAdxBN,gEAAwC;;;eACxCC,0DAAkC;;QAnBlCX;2DAA8B;;;eAS9BK,sDAAmC;;;eACnCC,gDAA6B;;;eAT7BL,sCAAwB;;;eA1CctB,gCAAwB;;;eAAEC,0BAAkB;;;eAkBlFW,0CAA4B;;;eAF5BF,4CAA8B;;;eAC9BC,sCAAwB;;;eAVxBN,8CAA+B;;;eAC/BC,wCAAyB;;;uBAXsD,sBAAa;wBAGF,cAAW;+BAShG,qBAAkB;8BAUlB,oBAAiB;4BAejB,kBAAe;8BASf,oBAAiB;mCASjB,yBAAsB;wCAStB,8BAA2B;8BAa3B,oBAAiB"}
@@ -0,0 +1,54 @@
1
+ @layer fluentui {
2
+ .root {
3
+ overflow: hidden;
4
+ width: var(--fui-Drawer--size);
5
+ max-width: 100vw;
6
+ height: auto;
7
+ max-height: 100vh;
8
+ box-sizing: border-box;
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: flex-start;
12
+ justify-content: flex-start;
13
+ background-color: var(--colorNeutralBackground1);
14
+ color: var(--colorNeutralForeground1);
15
+ }
16
+
17
+ .start {
18
+ border-inline-end: var(--strokeWidthThin) solid var(--colorTransparentStroke);
19
+ inset-inline-start: 0;
20
+ inset-inline-end: auto;
21
+ }
22
+
23
+ .end {
24
+ border-inline-start: var(--strokeWidthThin) solid var(--colorTransparentStroke);
25
+ inset-inline-end: 0;
26
+ inset-inline-start: auto;
27
+ }
28
+
29
+ .bottom {
30
+ bottom: 0;
31
+ top: auto;
32
+ }
33
+
34
+ .small {
35
+ --fui-Drawer--size: 320px;
36
+ }
37
+
38
+ .medium {
39
+ --fui-Drawer--size: 592px;
40
+ }
41
+
42
+ .large {
43
+ --fui-Drawer--size: 940px;
44
+ }
45
+
46
+ .full {
47
+ --fui-Drawer--size: 100vw;
48
+ }
49
+
50
+ .full:where(.bottom),
51
+ .bottom-full {
52
+ --fui-Drawer--size: 100%;
53
+ }
54
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/shared/DrawerBase.types.ts"],"sourcesContent":["import type * as React from 'react';\n\ntype MotionType = 'entering' | 'entered' | 'idle' | 'exiting' | 'exited' | 'unmounted';\n\ntype MotionState<Element extends HTMLElement = HTMLElement> = {\n /**\n * Ref to the element.\n */\n ref: React.Ref<Element>;\n\n /**\n * Current state of the element.\n *\n * - `unmounted` - The element is not yet rendered or can be safely removed from the DOM.\n * - `entering` - The element is performing enter animation.\n * - `entered` - The element has finished enter animation.\n * - `idle` - The element is currently not animating, but rendered on screen.\n * - `exiting` - The element is performing exit animation.\n * - `exited` - The element has finished exit animation.\n */\n type: MotionType;\n\n /**\n * Indicates whether the component can be rendered.\n * Useful to render the element before animating it or to remove it from the DOM after exit animation.\n */\n canRender: boolean;\n\n /**\n * Indicates whether the component is ready to receive a CSS transition className.\n * Useful to apply CSS transitions when the element is mounted and ready to be animated.\n */\n active: boolean;\n};\n\nexport type DrawerBaseProps = {\n /**\n * Position of the drawer.\n *\n * Note: 'bottom' does not supports size, but it supports customized height.\n *\n * @default 'start'\n */\n position?: 'start' | 'end' | 'bottom';\n\n /**\n * Size of the drawer.\n *\n * - 'small' - Drawer is 320px wide.\n * - 'medium' - Drawer is 592px wide.\n * - 'large' - Drawer is 940px wide.\n * - 'full' - Drawer is 100vw wide.\n *\n * @default 'small'\n */\n size?: 'small' | 'medium' | 'large' | 'full';\n\n /**\n * Controls the open state of the Drawer\n *\n * @default false\n */\n open?: boolean;\n\n /**\n * Decides whether the drawer should be removed from the DOM tree when it is closed.\n * This can be useful when dealing with components that may contain state that should not\n * be reset when the drawer is closed.\n *\n * @default true\n */\n unmountOnClose?: boolean;\n};\n\nexport type DrawerBaseState = Required<Pick<DrawerBaseProps, 'position' | 'size'>> & {\n /**\n * @deprecated Passed values will be static.\n */\n motion: MotionState<HTMLElement>;\n\n open?: boolean;\n\n unmountOnClose?: boolean;\n};\n\nexport type DrawerScrollState = 'none' | 'top' | 'middle' | 'bottom';\n"],"names":[],"mappings":""}
1
+ {"version":3,"sources":["../../src/shared/DrawerBase.types.ts"],"sourcesContent":["import type * as React from 'react';\n\ntype MotionType = 'entering' | 'entered' | 'idle' | 'exiting' | 'exited' | 'unmounted';\n\ntype MotionState<Element extends HTMLElement = HTMLElement> = {\n /**\n * Ref to the element.\n */\n ref: React.Ref<Element>;\n\n /**\n * Current state of the element.\n *\n * - `unmounted` - The element is not yet rendered or can be safely removed from the DOM.\n * - `entering` - The element is performing enter animation.\n * - `entered` - The element has finished enter animation.\n * - `idle` - The element is currently not animating, but rendered on screen.\n * - `exiting` - The element is performing exit animation.\n * - `exited` - The element has finished exit animation.\n */\n type: MotionType;\n\n /**\n * Indicates whether the component can be rendered.\n * Useful to render the element before animating it or to remove it from the DOM after exit animation.\n */\n canRender: boolean;\n\n /**\n * Indicates whether the component is ready to receive a CSS transition className.\n * Useful to apply CSS transitions when the element is mounted and ready to be animated.\n */\n active: boolean;\n};\n\nexport type DrawerBaseProps = {\n /**\n * Position of the drawer.\n *\n * Note: 'bottom' does not supports size, but it supports customized height.\n *\n * @default 'start'\n */\n position?: 'start' | 'end' | 'bottom';\n\n /**\n * Size of the drawer.\n *\n * - 'small' - Drawer is 320px wide.\n * - 'medium' - Drawer is 592px wide.\n * - 'large' - Drawer is 940px wide.\n * - 'full' - Drawer is 100vw wide.\n *\n * @default 'small'\n */\n size?: 'small' | 'medium' | 'large' | 'full';\n\n /**\n * Controls the open state of the Drawer\n *\n * @default false\n */\n open?: boolean;\n\n /**\n * Decides whether the drawer should be removed from the DOM tree when it is closed.\n * This can be useful when dealing with components that may contain state that should not\n * be reset when the drawer is closed.\n *\n * @default true\n */\n unmountOnClose?: boolean;\n};\n\nexport type DrawerBaseState = Required<Pick<DrawerBaseProps, 'position' | 'size'>> & {\n /**\n * @deprecated Passed values will be static.\n */\n motion: MotionState<HTMLElement>;\n\n open?: boolean;\n\n unmountOnClose?: boolean;\n};\n\nexport type DrawerScrollState = 'none' | 'top' | 'middle' | 'bottom';\n"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/shared/drawerMotionUtils.tsx"],"sourcesContent":["import type { PresenceComponent, PresenceMotionSlotProps } from '@fluentui/react-motion';\nimport * as React from 'react';\n\ntype SerializableObject = Record<string, string | boolean | number>;\n\n/**\n * @internal\n * @todo Drawer is a first component to use this pattern, we should move this to a shared package if it will be used in more components\n */\nexport function mergePresenceSlots<\n BaseMotionParams extends SerializableObject = {},\n EnhancedMotionParams extends SerializableObject = {},\n>(\n inputSlot: PresenceMotionSlotProps<EnhancedMotionParams> | null | undefined,\n Component: PresenceComponent<EnhancedMotionParams>,\n params: EnhancedMotionParams,\n): PresenceMotionSlotProps<BaseMotionParams> | null {\n if (inputSlot === null) {\n return null;\n }\n\n return {\n ...inputSlot,\n children: (_, props) => {\n if (inputSlot?.children) {\n return inputSlot.children(Component, { ...props, ...params });\n }\n\n return (\n <Component {...props} {...params}>\n {props.children}\n </Component>\n );\n },\n } as PresenceMotionSlotProps<BaseMotionParams>;\n}\n"],"names":["React","mergePresenceSlots","inputSlot","Component","params","children","_","props"],"mappings":";;;;+BASgBC;;;;;;;iEARO,QAAQ;AAQxB,4BAILC,SAA2E,EAC3EC,SAAkD,EAClDC,MAA4B;IAE5B,IAAIF,cAAc,MAAM;QACtB,OAAO;IACT;IAEA,OAAO;QACL,GAAGA,SAAS;QACZG,UAAU,CAACC,GAAGC;YACZ,IAAIL,cAAAA,QAAAA,cAAAA,KAAAA,IAAAA,KAAAA,IAAAA,UAAWG,QAAQ,EAAE;gBACvB,OAAOH,UAAUG,QAAQ,CAACF,WAAW;oBAAE,GAAGI,KAAK;oBAAE,GAAGH,MAAM;gBAAC;YAC7D;YAEA,OAAA,WAAA,GACE,OAAA,aAAA,CAACD,WAAAA;gBAAW,GAAGI,KAAK;gBAAG,GAAGH,MAAM;eAC7BG,MAAMF,QAAQ;QAGrB;IACF;AACF"}
1
+ {"version":3,"sources":["../../src/shared/drawerMotionUtils.tsx"],"sourcesContent":["import type { PresenceComponent, PresenceMotionSlotProps } from '@fluentui/react-motion';\nimport * as React from 'react';\n\ntype SerializableObject = Record<string, string | boolean | number>;\n\n/**\n * @internal\n * @todo Drawer is a first component to use this pattern, we should move this to a shared package if it will be used in more components\n */\nexport function mergePresenceSlots<\n BaseMotionParams extends SerializableObject = {},\n EnhancedMotionParams extends SerializableObject = {},\n>(\n inputSlot: PresenceMotionSlotProps<EnhancedMotionParams> | null | undefined,\n Component: PresenceComponent<EnhancedMotionParams>,\n params: EnhancedMotionParams,\n): PresenceMotionSlotProps<BaseMotionParams> | null {\n if (inputSlot === null) {\n return null;\n }\n\n return {\n ...inputSlot,\n children: (_, props) => {\n if (inputSlot?.children) {\n return inputSlot.children(Component, { ...props, ...params });\n }\n\n return (\n <Component {...props} {...params}>\n {props.children}\n </Component>\n );\n },\n } as PresenceMotionSlotProps<BaseMotionParams>;\n}\n"],"names":["React","mergePresenceSlots","inputSlot","Component","params","children","_","props"],"mappings":";;;;+BASgBC;;;;;;;iEARO,QAAQ;AAQxB,4BAILC,SAA2E,EAC3EC,SAAkD,EAClDC,MAA4B;IAE5B,IAAIF,cAAc,MAAM;QACtB,OAAO;IACT;IAEA,OAAO;QACL,GAAGA,SAAS;QACZG,UAAU,CAACC,GAAGC;YACZ,IAAIL,cAAAA,QAAAA,cAAAA,KAAAA,IAAAA,KAAAA,IAAAA,UAAWG,QAAQ,EAAE;gBACvB,OAAOH,UAAUG,QAAQ,CAACF,WAAW;oBAAE,GAAGI,KAAK;oBAAE,GAAGH,MAAM;gBAAC;YAC7D;YAEA,OAAA,WAAA,GACE,OAAA,aAAA,CAACD,WAAAA;gBAAW,GAAGI,KAAK;gBAAG,GAAGH,MAAM;eAC7BG,MAAMF,QAAQ;QAGrB;IACF;AACF"}
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- InlineDrawerMotion: function() {
12
+ get InlineDrawerMotion () {
13
13
  return InlineDrawerMotion;
14
14
  },
15
- OverlayDrawerMotion: function() {
15
+ get OverlayDrawerMotion () {
16
16
  return OverlayDrawerMotion;
17
17
  },
18
- OverlaySurfaceBackdropMotion: function() {
18
+ get OverlaySurfaceBackdropMotion () {
19
19
  return OverlaySurfaceBackdropMotion;
20
20
  },
21
- getPositionTransform: function() {
21
+ get getPositionTransform () {
22
22
  return getPositionTransform;
23
23
  }
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/shared/drawerMotions.ts"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motion';\nimport { tokens } from '@fluentui/react-theme';\nimport type { ProviderContextValue_unstable as FluentProviderContextValue } from '@fluentui/react-shared-contexts';\n\nimport type { DrawerBaseProps } from './DrawerBase.types';\nimport { drawerCSSVars } from './useDrawerBaseStyles.styles';\nimport { fadeAtom } from '@fluentui/react-motion-components-preview';\n\nexport type DrawerMotionParams = Required<\n Pick<DrawerBaseProps, 'size' | 'position'> & Pick<FluentProviderContextValue, 'dir'>\n>;\nexport type OverlayDrawerSurfaceMotionParams = Required<Pick<DrawerBaseProps, 'size'>>;\n\nconst durations: Record<NonNullable<DrawerBaseProps['size']>, number> = {\n small: motionTokens.durationGentle,\n medium: motionTokens.durationSlow,\n large: motionTokens.durationSlower,\n full: motionTokens.durationUltraSlow,\n};\n\n/**\n * @internal\n */\nexport function getPositionTransform(\n position: DrawerBaseProps['position'],\n sizeVar: string,\n dir: FluentProviderContextValue['dir'],\n): string {\n const leftToRightTransform = `translate3d(var(${sizeVar}), 0, 0)`;\n const rightToLeftTransform = `translate3d(calc(var(${sizeVar}) * -1), 0, 0)`;\n const bottomToTopTransform = `translate3d(0, var(${sizeVar}), 0)`;\n\n if (position === 'start') {\n return dir === 'ltr' ? rightToLeftTransform : leftToRightTransform;\n }\n\n if (position === 'end') {\n return dir === 'ltr' ? leftToRightTransform : rightToLeftTransform;\n }\n\n if (position === 'bottom') {\n return bottomToTopTransform;\n }\n\n return 'translate3d(0, 0, 0)';\n}\n\n/**\n * @internal\n */\nexport const InlineDrawerMotion = createPresenceComponent<DrawerMotionParams>(({ position, size, dir }) => {\n const keyframes: Keyframe[] = [\n {\n /**\n * TODO: Once the #31663 lands, we should update the RTL logic to use Motion APIs\n * The work will be done in the #32817\n */\n transform: getPositionTransform(position, drawerCSSVars.drawerSizeVar, dir),\n opacity: 0,\n },\n {\n transform: 'translate3d(0, 0, 0)',\n opacity: 1,\n },\n ];\n const duration = durations[size];\n\n return {\n enter: {\n keyframes,\n duration,\n easing: motionTokens.curveDecelerateMid,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n duration,\n easing: motionTokens.curveAccelerateMin,\n },\n };\n});\n\n/**\n * @internal\n */\nexport const OverlayDrawerMotion = createPresenceComponent<DrawerMotionParams>(({ position, size, dir }) => {\n const keyframes: Keyframe[] = [\n {\n /**\n * TODO: Once the #31663 lands, we should update the RTL logic to use Motion APIs\n * The work will be done in the #32817\n */\n transform: getPositionTransform(position, drawerCSSVars.drawerSizeVar, dir),\n boxShadow: `0px ${tokens.colorTransparentBackground}`,\n opacity: 0,\n },\n {\n transform: 'translate3d(0, 0, 0)',\n boxShadow: tokens.shadow64,\n opacity: 1,\n },\n ];\n const duration = durations[size];\n\n return {\n enter: {\n keyframes,\n duration,\n easing: motionTokens.curveDecelerateMid,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n duration,\n easing: motionTokens.curveAccelerateMin,\n },\n };\n});\n\n/**\n * @internal\n */\nexport const OverlaySurfaceBackdropMotion = createPresenceComponent(({ size }: OverlayDrawerSurfaceMotionParams) => {\n const duration = durations[size];\n const easing = motionTokens.curveLinear;\n\n return {\n enter: fadeAtom({ direction: 'enter', duration, easing }),\n exit: fadeAtom({ direction: 'exit', duration, easing }),\n };\n});\n"],"names":["createPresenceComponent","motionTokens","tokens","drawerCSSVars","fadeAtom","durations","small","durationGentle","medium","durationSlow","large","durationSlower","full","durationUltraSlow","getPositionTransform","position","sizeVar","dir","leftToRightTransform","rightToLeftTransform","bottomToTopTransform","InlineDrawerMotion","size","keyframes","transform","drawerSizeVar","opacity","duration","enter","easing","curveDecelerateMid","exit","reverse","curveAccelerateMin","OverlayDrawerMotion","boxShadow","colorTransparentBackground","shadow64","OverlaySurfaceBackdropMotion","curveLinear","direction"],"mappings":";;;;;;;;;;;IAkDaqB,kBAAAA;;;IAkCAa,mBAAAA;;;gCAoCAI;eAAAA;;wBAjGGxB;;;;6BAvBsC,yBAAyB;4BACxD,wBAAwB;2CAIjB,kCAA+B;8CACpC,4CAA4C;AAOrE,MAAMT,YAAkE;IACtEC,OAAOL,yBAAAA,CAAaM,cAAc;IAClCC,QAAQP,yBAAAA,CAAaQ,YAAY;IACjCC,OAAOT,yBAAAA,CAAaU,cAAc;IAClCC,MAAMX,yBAAAA,CAAaY,iBAAiB;AACtC;AAKO,SAASC,qBACdC,QAAqC,EACrCC,OAAe,EACfC,GAAsC;IAEtC,MAAMC,uBAAuB,CAAC,gBAAgB,EAAEF,QAAQ,QAAQ,CAAC;IACjE,MAAMG,uBAAuB,CAAC,qBAAqB,EAAEH,QAAQ,cAAc,CAAC;IAC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ACJR,WAAW;mBAAIA;aAAU,CAACS,OAAO;YACjCL;YACAE,QAAQ5B,yBAAAA,CAAagC,kBAAkB;QACzC;IACF;AACF,GAAG;AAKI,yCAAqCjC,oCAAAA,EAAwB,CAAC,EAAEsB,IAAI,EAAoC;IAC7G,MAAMK,WAAWtB,SAAS,CAACiB,KAAK;IAChC,MAAMO,SAAS5B,yBAAAA,CAAasC,WAAW;IAEvC,OAAO;QACLX,WAAOxB,sCAAAA,EAAS;YAAEoC,WAAW;YAASb;YAAUE;QAAO;QACvDE,UAAM3B,sCAAAA,EAAS;YAAEoC,WAAW;YAAQb;YAAUE;QAAO;IACvD;AACF,GAAG"}
1
+ {"version":3,"sources":["../../src/shared/drawerMotions.ts"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motion';\nimport { tokens } from '@fluentui/react-theme';\nimport type { ProviderContextValue_unstable as FluentProviderContextValue } from '@fluentui/react-shared-contexts';\n\nimport type { DrawerBaseProps } from './DrawerBase.types';\nimport { drawerCSSVars } from './useDrawerBaseStyles.styles';\nimport { fadeAtom } from '@fluentui/react-motion-components-preview';\n\nexport type DrawerMotionParams = Required<\n Pick<DrawerBaseProps, 'size' | 'position'> & Pick<FluentProviderContextValue, 'dir'>\n>;\nexport type OverlayDrawerSurfaceMotionParams = Required<Pick<DrawerBaseProps, 'size'>>;\n\nconst durations: Record<NonNullable<DrawerBaseProps['size']>, number> = {\n small: motionTokens.durationGentle,\n medium: motionTokens.durationSlow,\n large: motionTokens.durationSlower,\n full: motionTokens.durationUltraSlow,\n};\n\n/**\n * @internal\n */\nexport function getPositionTransform(\n position: DrawerBaseProps['position'],\n sizeVar: string,\n dir: FluentProviderContextValue['dir'],\n): string {\n const leftToRightTransform = `translate3d(var(${sizeVar}), 0, 0)`;\n const rightToLeftTransform = `translate3d(calc(var(${sizeVar}) * -1), 0, 0)`;\n const bottomToTopTransform = `translate3d(0, var(${sizeVar}), 0)`;\n\n if (position === 'start') {\n return dir === 'ltr' ? rightToLeftTransform : leftToRightTransform;\n }\n\n if (position === 'end') {\n return dir === 'ltr' ? leftToRightTransform : rightToLeftTransform;\n }\n\n if (position === 'bottom') {\n return bottomToTopTransform;\n }\n\n return 'translate3d(0, 0, 0)';\n}\n\n/**\n * @internal\n */\nexport const InlineDrawerMotion = createPresenceComponent<DrawerMotionParams>(({ position, size, dir }) => {\n const keyframes: Keyframe[] = [\n {\n /**\n * TODO: Once the #31663 lands, we should update the RTL logic to use Motion APIs\n * The work will be done in the #32817\n */\n transform: getPositionTransform(position, drawerCSSVars.drawerSizeVar, dir),\n opacity: 0,\n },\n {\n transform: 'translate3d(0, 0, 0)',\n opacity: 1,\n },\n ];\n const duration = durations[size];\n\n return {\n enter: {\n keyframes,\n duration,\n easing: motionTokens.curveDecelerateMid,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n duration,\n easing: motionTokens.curveAccelerateMin,\n },\n };\n});\n\n/**\n * @internal\n */\nexport const OverlayDrawerMotion = createPresenceComponent<DrawerMotionParams>(({ position, size, dir }) => {\n const keyframes: Keyframe[] = [\n {\n /**\n * TODO: Once the #31663 lands, we should update the RTL logic to use Motion APIs\n * The work will be done in the #32817\n */\n transform: getPositionTransform(position, drawerCSSVars.drawerSizeVar, dir),\n boxShadow: `0px ${tokens.colorTransparentBackground}`,\n opacity: 0,\n },\n {\n transform: 'translate3d(0, 0, 0)',\n boxShadow: tokens.shadow64,\n opacity: 1,\n },\n ];\n const duration = durations[size];\n\n return {\n enter: {\n keyframes,\n duration,\n easing: motionTokens.curveDecelerateMid,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n duration,\n easing: motionTokens.curveAccelerateMin,\n },\n };\n});\n\n/**\n * @internal\n */\nexport const OverlaySurfaceBackdropMotion = createPresenceComponent(({ size }: OverlayDrawerSurfaceMotionParams) => {\n const duration = durations[size];\n const easing = motionTokens.curveLinear;\n\n return {\n enter: fadeAtom({ direction: 'enter', duration, easing }),\n exit: fadeAtom({ direction: 'exit', duration, easing }),\n };\n});\n"],"names":["createPresenceComponent","motionTokens","tokens","drawerCSSVars","fadeAtom","durations","small","durationGentle","medium","durationSlow","large","durationSlower","full","durationUltraSlow","getPositionTransform","position","sizeVar","dir","leftToRightTransform","rightToLeftTransform","bottomToTopTransform","InlineDrawerMotion","size","keyframes","transform","drawerSizeVar","opacity","duration","enter","easing","curveDecelerateMid","exit","reverse","curveAccelerateMin","OverlayDrawerMotion","boxShadow","colorTransparentBackground","shadow64","OverlaySurfaceBackdropMotion","curveLinear","direction"],"mappings":";;;;;;;;;;;QAkDaqB;;;QAkCAa;;;QAoCAI;;;QAjGGxB;;;;6BAvBsC,yBAAyB;4BACxD,wBAAwB;2CAIjB,kCAA+B;8CACpC,4CAA4C;AAOrE,MAAMT,YAAkE;IACtEC,OAAOL,yBAAAA,CAAaM,cAAc;IAClCC,QAAQP,yBAAAA,CAAaQ,YAAY;IACjCC,OAAOT,yBAAAA,CAAaU,cAAc;IAClCC,MAAMX,yBAAAA,CAAaY,iBAAiB;AACtC;AAKO,8BACLE,QAAqC,EACrCC,OAAe,EACfC,GAAsC;IAEtC,MAAMC,uBAAuB,CAAC,gBAAgB,EAAEF,QAAQ,QAAQ,CAAC;IACjE,MAAMG,uBAAuB,CAAC,qBAAqB,EAAEH,QAAQ,cAAc,CAAC;IAC5E,MAAMI,uBAAuB,CAAC,mBAAmB,EAAEJ,QAAQ,KAAK,CAAC;IAEjE,IAAID,aAAa,SAAS;QACxB,OAAOE,QAAQ,QAAQE,uBAAuBD;IAChD;IAEA,IAAIH,aAAa,OAAO;QACtB,OAAOE,QAAQ,QAAQC,uBAAuBC;IAChD;IAEA,IAAIJ,aAAa,UAAU;QACzB,OAAOK;IACT;IAEA,OAAO;AACT;AAKO,+BAA2BpB,oCAAAA,EAA4C,CAAC,EAAEe,QAAQ,EAAEO,IAAI,EAAEL,GAAG,EAAE;IACpG,MAAMM,YAAwB;QAC5B;YACE;;;OAGC,GACDC,WAAWV,qBAAqBC,UAAUZ,wCAAAA,C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
- {"version":3,"sources":["../src/shared/drawerSeparatorStyles.ts"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport type { GriffelStyle } from '@griffel/react';\n\nexport const drawerSeparatorStyles: GriffelStyle = {\n height: '1px',\n position: 'absolute',\n right: 0,\n left: 0,\n opacity: 0,\n backgroundColor: tokens.colorNeutralStroke1,\n transitionDuration: tokens.durationNormal,\n transitionProperty: 'opacity',\n transitionTimingFunction: tokens.curveEasyEase,\n content: '\"\"',\n};\n"],"names":["tokens","drawerSeparatorStyles","height","position","right","left","opacity","backgroundColor","colorNeutralStroke1","transitionDuration","durationNormal","transitionProperty","transitionTimingFunction","curveEasyEase","content"],"mappings":";;;;+BAGaC;;;;;;4BAHU,wBAAwB;AAGxC,8BAA4C;IACjDC,QAAQ;IACRC,UAAU;IACVC,OAAO;IACPC,MAAM;IACNC,SAAS;IACTC,iBAAiBP,kBAAAA,CAAOQ,mBAAmB;IAC3CC,oBAAoBT,kBAAAA,CAAOU,cAAc;IACzCC,oBAAoB;IACpBC,0BAA0BZ,kBAAAA,CAAOa,aAAa;IAC9CC,SAAS;AACX,EAAE"}
1
+ {"version":3,"sources":["../../src/shared/drawerSeparatorStyles.ts"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport type { GriffelStyle } from '@griffel/react';\n\nexport const drawerSeparatorStyles: GriffelStyle = {\n height: '1px',\n position: 'absolute',\n right: 0,\n left: 0,\n opacity: 0,\n backgroundColor: tokens.colorNeutralStroke1,\n transitionDuration: tokens.durationNormal,\n transitionProperty: 'opacity',\n transitionTimingFunction: tokens.curveEasyEase,\n content: '\"\"',\n};\n"],"names":["tokens","drawerSeparatorStyles","height","position","right","left","opacity","backgroundColor","colorNeutralStroke1","transitionDuration","durationNormal","transitionProperty","transitionTimingFunction","curveEasyEase","content"],"mappings":";;;;+BAGaC;;;;;;4BAHU,wBAAwB;AAGxC,8BAA4C;IACjDC,QAAQ;IACRC,UAAU;IACVC,OAAO;IACPC,MAAM;IACNC,SAAS;IACTC,iBAAiBP,kBAAAA,CAAOQ,mBAAmB;IAC3CC,oBAAoBT,kBAAAA,CAAOU,cAAc;IACzCC,oBAAoB;IACpBC,0BAA0BZ,kBAAAA,CAAOa,aAAa;IAC9CC,SAAS;AACX,EAAE"}