@fluentui/react-drawer 9.13.0 → 9.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -2
- package/dist/index.d.cts +532 -0
- package/lib/Drawer.js +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/DrawerBody.js +1 -1
- package/lib/DrawerBody.js.map +1 -1
- package/lib/DrawerFooter.js +1 -1
- package/lib/DrawerFooter.js.map +1 -1
- package/lib/DrawerHeader.js +1 -1
- package/lib/DrawerHeader.js.map +1 -1
- package/lib/DrawerHeaderNavigation.js +1 -1
- package/lib/DrawerHeaderNavigation.js.map +1 -1
- package/lib/DrawerHeaderTitle.js +1 -1
- package/lib/DrawerHeaderTitle.js.map +1 -1
- package/lib/InlineDrawer.js +1 -1
- package/lib/InlineDrawer.js.map +1 -1
- package/lib/OverlayDrawer.js +1 -1
- package/lib/OverlayDrawer.js.map +1 -1
- package/lib/components/Drawer/Drawer.js +6 -6
- package/lib/components/Drawer/Drawer.js.map +1 -1
- package/lib/components/Drawer/index.js +4 -4
- package/lib/components/Drawer/index.js.map +1 -1
- package/lib/components/Drawer/renderDrawer.js +2 -2
- package/lib/components/Drawer/renderDrawer.js.map +1 -1
- package/lib/components/Drawer/useDrawer.js +3 -3
- package/lib/components/Drawer/useDrawer.js.map +1 -1
- package/lib/components/Drawer/useDrawerStyles.styles.js +1 -3
- package/lib/components/Drawer/useDrawerStyles.styles.js.map +1 -1
- package/lib/components/Drawer/useDrawerStyles.styles.raw.js +1 -2
- package/lib/components/Drawer/useDrawerStyles.styles.raw.js.map +1 -1
- package/lib/components/DrawerBody/DrawerBody.js +5 -5
- package/lib/components/DrawerBody/DrawerBody.js.map +1 -1
- package/lib/components/DrawerBody/index.js +4 -4
- package/lib/components/DrawerBody/index.js.map +1 -1
- package/lib/components/DrawerBody/renderDrawerBody.js +1 -1
- package/lib/components/DrawerBody/useDrawerBody.js +4 -4
- package/lib/components/DrawerBody/useDrawerBody.js.map +1 -1
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.js +2 -4
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.js.map +1 -1
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.js +2 -3
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.js.map +1 -1
- package/lib/components/DrawerFooter/DrawerFooter.js +5 -5
- package/lib/components/DrawerFooter/DrawerFooter.js.map +1 -1
- package/lib/components/DrawerFooter/index.js +4 -4
- package/lib/components/DrawerFooter/index.js.map +1 -1
- package/lib/components/DrawerFooter/renderDrawerFooter.js +1 -1
- package/lib/components/DrawerFooter/useDrawerFooter.js +2 -2
- package/lib/components/DrawerFooter/useDrawerFooter.js.map +1 -1
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.js +3 -5
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.js.map +1 -1
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.js +3 -4
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.js.map +1 -1
- package/lib/components/DrawerHeader/DrawerHeader.js +5 -5
- package/lib/components/DrawerHeader/DrawerHeader.js.map +1 -1
- package/lib/components/DrawerHeader/index.js +4 -4
- package/lib/components/DrawerHeader/index.js.map +1 -1
- package/lib/components/DrawerHeader/renderDrawerHeader.js +1 -1
- package/lib/components/DrawerHeader/useDrawerHeader.js +2 -2
- package/lib/components/DrawerHeader/useDrawerHeader.js.map +1 -1
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.js +3 -5
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.js.map +1 -1
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.js +3 -4
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.js.map +1 -1
- package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js +5 -5
- package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js.map +1 -1
- package/lib/components/DrawerHeaderNavigation/index.js +4 -4
- package/lib/components/DrawerHeaderNavigation/index.js.map +1 -1
- package/lib/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js +1 -1
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js +1 -1
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js +2 -4
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js.map +1 -1
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.js +2 -3
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.js.map +1 -1
- package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.js +5 -5
- package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.js.map +1 -1
- package/lib/components/DrawerHeaderTitle/index.js +4 -4
- package/lib/components/DrawerHeaderTitle/index.js.map +1 -1
- package/lib/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js +1 -1
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitle.js +2 -2
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js +3 -5
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js.map +1 -1
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.js +3 -4
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.js.map +1 -1
- package/lib/components/InlineDrawer/InlineDrawer.js +6 -6
- package/lib/components/InlineDrawer/InlineDrawer.js.map +1 -1
- package/lib/components/InlineDrawer/index.js +4 -4
- package/lib/components/InlineDrawer/index.js.map +1 -1
- package/lib/components/InlineDrawer/renderInlineDrawer.js +2 -2
- package/lib/components/InlineDrawer/renderInlineDrawer.js.map +1 -1
- package/lib/components/InlineDrawer/useInlineDrawer.js +6 -6
- package/lib/components/InlineDrawer/useInlineDrawer.js.map +1 -1
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.js +3 -5
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.js.map +1 -1
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.js +3 -4
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.js.map +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawer.js +6 -6
- package/lib/components/OverlayDrawer/OverlayDrawer.js.map +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js +4 -4
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.js.map +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/index.js +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/index.js.map +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js +2 -4
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js.map +1 -1
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.js +2 -3
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.js.map +1 -1
- package/lib/components/OverlayDrawer/index.js +4 -4
- package/lib/components/OverlayDrawer/index.js.map +1 -1
- package/lib/components/OverlayDrawer/renderOverlayDrawer.js +3 -3
- package/lib/components/OverlayDrawer/renderOverlayDrawer.js.map +1 -1
- package/lib/components/OverlayDrawer/useOverlayDrawer.js +9 -9
- package/lib/components/OverlayDrawer/useOverlayDrawer.js.map +1 -1
- package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.js +3 -5
- package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.js.map +1 -1
- package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.js +3 -4
- package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.js.map +1 -1
- package/lib/contexts/drawerContext.js +1 -1
- package/lib/contexts/index.js +1 -1
- package/lib/contexts/index.js.map +1 -1
- package/lib/e2e/DrawerShared.js +4 -4
- package/lib/index.js +9 -9
- package/lib/index.js.map +1 -1
- package/lib/shared/drawerMotionUtils.js +1 -1
- package/lib/shared/drawerMotions.js +4 -4
- package/lib/shared/drawerMotions.js.map +1 -1
- package/lib/shared/drawerSeparatorStyles.js +1 -1
- package/lib/shared/useDrawerBaseStyles.styles.js +2 -2
- package/lib/shared/useDrawerBaseStyles.styles.js.map +1 -1
- package/lib/shared/useDrawerBaseStyles.styles.raw.js +2 -2
- package/lib-commonjs/{Drawer.js → Drawer.cjs} +1 -1
- package/lib-commonjs/{Drawer.js.map → Drawer.cjs.map} +1 -1
- package/lib-commonjs/{DrawerBody.js → DrawerBody.cjs} +1 -1
- package/lib-commonjs/{DrawerBody.js.map → DrawerBody.cjs.map} +1 -1
- package/lib-commonjs/{DrawerFooter.js → DrawerFooter.cjs} +1 -1
- package/lib-commonjs/{DrawerFooter.js.map → DrawerFooter.cjs.map} +1 -1
- package/lib-commonjs/{DrawerHeader.js → DrawerHeader.cjs} +1 -1
- package/lib-commonjs/{DrawerHeader.js.map → DrawerHeader.cjs.map} +1 -1
- package/lib-commonjs/{DrawerHeaderNavigation.js → DrawerHeaderNavigation.cjs} +1 -1
- package/lib-commonjs/{DrawerHeaderNavigation.js.map → DrawerHeaderNavigation.cjs.map} +1 -1
- package/lib-commonjs/{DrawerHeaderTitle.js → DrawerHeaderTitle.cjs} +1 -1
- package/lib-commonjs/{DrawerHeaderTitle.js.map → DrawerHeaderTitle.cjs.map} +1 -1
- package/lib-commonjs/{InlineDrawer.js → InlineDrawer.cjs} +1 -1
- package/lib-commonjs/{InlineDrawer.js.map → InlineDrawer.cjs.map} +1 -1
- package/lib-commonjs/{OverlayDrawer.js → OverlayDrawer.cjs} +1 -1
- package/lib-commonjs/{OverlayDrawer.js.map → OverlayDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/Drawer/{Drawer.js → Drawer.cjs} +4 -4
- package/lib-commonjs/components/Drawer/{Drawer.js.map → Drawer.cjs.map} +1 -1
- package/lib-commonjs/components/Drawer/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/Drawer/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/Drawer/{renderDrawer.js → renderDrawer.cjs} +1 -1
- package/lib-commonjs/components/Drawer/{renderDrawer.js.map → renderDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/Drawer/{useDrawer.js → useDrawer.cjs} +3 -3
- package/lib-commonjs/components/Drawer/{useDrawer.js.map → useDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/Drawer/{useDrawerStyles.styles.raw.js → useDrawerStyles.styles.cjs} +0 -1
- package/lib-commonjs/components/Drawer/useDrawerStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/Drawer/{useDrawerStyles.styles.js → useDrawerStyles.styles.raw.cjs} +0 -1
- package/lib-commonjs/components/Drawer/{useDrawerStyles.styles.raw.js.map → useDrawerStyles.styles.raw.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerBody/{DrawerBody.js → DrawerBody.cjs} +3 -3
- package/lib-commonjs/components/DrawerBody/{DrawerBody.js.map → DrawerBody.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerBody/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/DrawerBody/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerBody/{useDrawerBody.js → useDrawerBody.cjs} +1 -1
- package/lib-commonjs/components/DrawerBody/{useDrawerBody.js.map → useDrawerBody.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerBody/{useDrawerBodyStyles.styles.js → useDrawerBodyStyles.styles.cjs} +0 -1
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/DrawerBody/{useDrawerBodyStyles.styles.raw.js → useDrawerBodyStyles.styles.raw.cjs} +0 -1
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.cjs.map +1 -0
- package/lib-commonjs/components/DrawerFooter/{DrawerFooter.js → DrawerFooter.cjs} +3 -3
- package/lib-commonjs/components/DrawerFooter/{DrawerFooter.js.map → DrawerFooter.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerFooter/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/DrawerFooter/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerFooter/{useDrawerFooter.js → useDrawerFooter.cjs} +1 -1
- package/lib-commonjs/components/DrawerFooter/{useDrawerFooter.js.map → useDrawerFooter.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerFooter/{useDrawerFooterStyles.styles.js → useDrawerFooterStyles.styles.cjs} +0 -1
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/DrawerFooter/{useDrawerFooterStyles.styles.raw.js → useDrawerFooterStyles.styles.raw.cjs} +1 -2
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeader/{DrawerHeader.js → DrawerHeader.cjs} +3 -3
- package/lib-commonjs/components/DrawerHeader/{DrawerHeader.js.map → DrawerHeader.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerHeader/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/DrawerHeader/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerHeader/{useDrawerHeader.js → useDrawerHeader.cjs} +1 -1
- package/lib-commonjs/components/DrawerHeader/{useDrawerHeader.js.map → useDrawerHeader.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerHeader/{useDrawerHeaderStyles.styles.js → useDrawerHeaderStyles.styles.cjs} +0 -1
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeader/{useDrawerHeaderStyles.styles.raw.js → useDrawerHeaderStyles.styles.raw.cjs} +1 -2
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/{DrawerHeaderNavigation.js → DrawerHeaderNavigation.cjs} +3 -3
- package/lib-commonjs/components/DrawerHeaderNavigation/{DrawerHeaderNavigation.js.map → DrawerHeaderNavigation.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerHeaderNavigation/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/DrawerHeaderNavigation/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerHeaderNavigation/{useDrawerHeaderNavigationStyles.styles.js → useDrawerHeaderNavigationStyles.styles.cjs} +0 -1
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/{useDrawerHeaderNavigationStyles.styles.raw.js → useDrawerHeaderNavigationStyles.styles.raw.cjs} +0 -1
- package/lib-commonjs/components/DrawerHeaderNavigation/{useDrawerHeaderNavigationStyles.styles.raw.js.map → useDrawerHeaderNavigationStyles.styles.raw.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerHeaderTitle/{DrawerHeaderTitle.js → DrawerHeaderTitle.cjs} +3 -3
- package/lib-commonjs/components/DrawerHeaderTitle/{DrawerHeaderTitle.js.map → DrawerHeaderTitle.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerHeaderTitle/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/DrawerHeaderTitle/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/DrawerHeaderTitle/{useDrawerHeaderTitleStyles.styles.js → useDrawerHeaderTitleStyles.styles.cjs} +0 -1
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/{useDrawerHeaderTitleStyles.styles.raw.js → useDrawerHeaderTitleStyles.styles.raw.cjs} +0 -1
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.cjs.map +1 -0
- package/lib-commonjs/components/InlineDrawer/{InlineDrawer.js → InlineDrawer.cjs} +4 -4
- package/lib-commonjs/components/InlineDrawer/{InlineDrawer.js.map → InlineDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/InlineDrawer/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/InlineDrawer/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/InlineDrawer/{renderInlineDrawer.js → renderInlineDrawer.cjs} +1 -1
- package/lib-commonjs/components/InlineDrawer/{renderInlineDrawer.js.map → renderInlineDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/InlineDrawer/{useInlineDrawer.js → useInlineDrawer.cjs} +2 -2
- package/lib-commonjs/components/InlineDrawer/{useInlineDrawer.js.map → useInlineDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/InlineDrawer/{useInlineDrawerStyles.styles.js → useInlineDrawerStyles.styles.cjs} +1 -2
- package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/InlineDrawer/{useInlineDrawerStyles.styles.raw.js → useInlineDrawerStyles.styles.raw.cjs} +1 -2
- package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.cjs.map +1 -0
- package/lib-commonjs/components/OverlayDrawer/{OverlayDrawer.js → OverlayDrawer.cjs} +4 -4
- package/lib-commonjs/components/OverlayDrawer/{OverlayDrawer.js.map → OverlayDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/{OverlayDrawerSurface.js → OverlayDrawerSurface.cjs} +1 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/{OverlayDrawerSurface.js.map → OverlayDrawerSurface.cjs.map} +1 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/{index.js → index.cjs} +1 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/{useOverlayDrawerSurfaceStyles.styles.js → useOverlayDrawerSurfaceStyles.styles.cjs} +0 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/{useOverlayDrawerSurfaceStyles.styles.raw.js → useOverlayDrawerSurfaceStyles.styles.raw.cjs} +0 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.cjs.map +1 -0
- package/lib-commonjs/components/OverlayDrawer/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/OverlayDrawer/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/OverlayDrawer/{renderOverlayDrawer.js → renderOverlayDrawer.cjs} +1 -1
- package/lib-commonjs/components/OverlayDrawer/{renderOverlayDrawer.js.map → renderOverlayDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/OverlayDrawer/{useOverlayDrawer.js → useOverlayDrawer.cjs} +6 -6
- package/lib-commonjs/components/OverlayDrawer/{useOverlayDrawer.js.map → useOverlayDrawer.cjs.map} +1 -1
- package/lib-commonjs/components/OverlayDrawer/{useOverlayDrawerStyles.styles.js → useOverlayDrawerStyles.styles.cjs} +1 -2
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/OverlayDrawer/{useOverlayDrawerStyles.styles.raw.js → useOverlayDrawerStyles.styles.raw.cjs} +1 -2
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.cjs.map +1 -0
- package/lib-commonjs/contexts/{index.js → index.cjs} +1 -1
- package/lib-commonjs/contexts/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/{index.js → index.cjs} +12 -12
- package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/shared/{drawerMotions.js → drawerMotions.cjs} +1 -1
- package/lib-commonjs/shared/{drawerMotions.js.map → drawerMotions.cjs.map} +1 -1
- package/lib-commonjs/shared/useDrawerBaseStyles.styles.cjs.map +1 -0
- package/package.json +22 -16
- package/lib-commonjs/components/Drawer/useDrawerStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.js.map +0 -1
- package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.js.map +0 -1
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.js.map +0 -1
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/shared/useDrawerBaseStyles.styles.js.map +0 -1
- /package/lib-commonjs/components/Drawer/{Drawer.types.js → Drawer.types.cjs} +0 -0
- /package/lib-commonjs/components/Drawer/{Drawer.types.js.map → Drawer.types.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerBody/{DrawerBody.types.js → DrawerBody.types.cjs} +0 -0
- /package/lib-commonjs/components/DrawerBody/{DrawerBody.types.js.map → DrawerBody.types.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerBody/{renderDrawerBody.js → renderDrawerBody.cjs} +0 -0
- /package/lib-commonjs/components/DrawerBody/{renderDrawerBody.js.map → renderDrawerBody.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerFooter/{DrawerFooter.types.js → DrawerFooter.types.cjs} +0 -0
- /package/lib-commonjs/components/DrawerFooter/{DrawerFooter.types.js.map → DrawerFooter.types.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerFooter/{renderDrawerFooter.js → renderDrawerFooter.cjs} +0 -0
- /package/lib-commonjs/components/DrawerFooter/{renderDrawerFooter.js.map → renderDrawerFooter.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerHeader/{DrawerHeader.types.js → DrawerHeader.types.cjs} +0 -0
- /package/lib-commonjs/components/DrawerHeader/{DrawerHeader.types.js.map → DrawerHeader.types.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerHeader/{renderDrawerHeader.js → renderDrawerHeader.cjs} +0 -0
- /package/lib-commonjs/components/DrawerHeader/{renderDrawerHeader.js.map → renderDrawerHeader.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerHeaderNavigation/{DrawerHeaderNavigation.types.js → DrawerHeaderNavigation.types.cjs} +0 -0
- /package/lib-commonjs/components/DrawerHeaderNavigation/{DrawerHeaderNavigation.types.js.map → DrawerHeaderNavigation.types.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerHeaderNavigation/{renderDrawerHeaderNavigation.js → renderDrawerHeaderNavigation.cjs} +0 -0
- /package/lib-commonjs/components/DrawerHeaderNavigation/{renderDrawerHeaderNavigation.js.map → renderDrawerHeaderNavigation.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerHeaderNavigation/{useDrawerHeaderNavigation.js → useDrawerHeaderNavigation.cjs} +0 -0
- /package/lib-commonjs/components/DrawerHeaderNavigation/{useDrawerHeaderNavigation.js.map → useDrawerHeaderNavigation.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerHeaderTitle/{DrawerHeaderTitle.types.js → DrawerHeaderTitle.types.cjs} +0 -0
- /package/lib-commonjs/components/DrawerHeaderTitle/{DrawerHeaderTitle.types.js.map → DrawerHeaderTitle.types.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerHeaderTitle/{renderDrawerHeaderTitle.js → renderDrawerHeaderTitle.cjs} +0 -0
- /package/lib-commonjs/components/DrawerHeaderTitle/{renderDrawerHeaderTitle.js.map → renderDrawerHeaderTitle.cjs.map} +0 -0
- /package/lib-commonjs/components/DrawerHeaderTitle/{useDrawerHeaderTitle.js → useDrawerHeaderTitle.cjs} +0 -0
- /package/lib-commonjs/components/DrawerHeaderTitle/{useDrawerHeaderTitle.js.map → useDrawerHeaderTitle.cjs.map} +0 -0
- /package/lib-commonjs/components/InlineDrawer/{InlineDrawer.types.js → InlineDrawer.types.cjs} +0 -0
- /package/lib-commonjs/components/InlineDrawer/{InlineDrawer.types.js.map → InlineDrawer.types.cjs.map} +0 -0
- /package/lib-commonjs/components/OverlayDrawer/{OverlayDrawer.types.js → OverlayDrawer.types.cjs} +0 -0
- /package/lib-commonjs/components/OverlayDrawer/{OverlayDrawer.types.js.map → OverlayDrawer.types.cjs.map} +0 -0
- /package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/{OverlayDrawerSurface.types.js → OverlayDrawerSurface.types.cjs} +0 -0
- /package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/{OverlayDrawerSurface.types.js.map → OverlayDrawerSurface.types.cjs.map} +0 -0
- /package/lib-commonjs/contexts/{drawerContext.js → drawerContext.cjs} +0 -0
- /package/lib-commonjs/contexts/{drawerContext.js.map → drawerContext.cjs.map} +0 -0
- /package/lib-commonjs/e2e/{DrawerShared.js → DrawerShared.cjs} +0 -0
- /package/lib-commonjs/e2e/{DrawerShared.js.map → DrawerShared.cjs.map} +0 -0
- /package/lib-commonjs/shared/{DrawerBase.types.js → DrawerBase.types.cjs} +0 -0
- /package/lib-commonjs/shared/{DrawerBase.types.js.map → DrawerBase.types.cjs.map} +0 -0
- /package/lib-commonjs/shared/{drawerMotionUtils.js → drawerMotionUtils.cjs} +0 -0
- /package/lib-commonjs/shared/{drawerMotionUtils.js.map → drawerMotionUtils.cjs.map} +0 -0
- /package/lib-commonjs/shared/{drawerSeparatorStyles.js → drawerSeparatorStyles.cjs} +0 -0
- /package/lib-commonjs/shared/{drawerSeparatorStyles.js.map → drawerSeparatorStyles.cjs.map} +0 -0
- /package/lib-commonjs/shared/{useDrawerBaseStyles.styles.js → useDrawerBaseStyles.styles.cjs} +0 -0
- /package/lib-commonjs/shared/{useDrawerBaseStyles.styles.raw.js → useDrawerBaseStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/shared/{useDrawerBaseStyles.styles.raw.js.map → useDrawerBaseStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/shared/{useDrawerDefaultProps.js → useDrawerDefaultProps.cjs} +0 -0
- /package/lib-commonjs/shared/{useDrawerDefaultProps.js.map → useDrawerDefaultProps.cjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__resetStyles","__styles","mergeClasses","tokens","drawerSeparatorStyles","drawerHeaderClassNames","root","useStyles","useDrawerHeaderStyles","separator","Dlnsje","E3zdtr","B1piin3","Eqx8gd","Bp15pi3","Bjyk6c5","F2fol1","Ba2ppi3","B1dyfl9","Bsft5z2","By385i5","separatorVisible","d","useDrawerHeaderStyles_unstable","state","styles","rootStyles","className","scrollState","includes"],"sources":["useDrawerHeaderStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, mergeClasses } from
|
|
1
|
+
{"version":3,"names":["__resetStyles","__styles","mergeClasses","tokens","drawerSeparatorStyles","drawerHeaderClassNames","root","useStyles","useDrawerHeaderStyles","separator","Dlnsje","E3zdtr","B1piin3","Eqx8gd","Bp15pi3","Bjyk6c5","F2fol1","Ba2ppi3","B1dyfl9","Bsft5z2","By385i5","separatorVisible","d","useDrawerHeaderStyles_unstable","state","styles","rootStyles","className","scrollState","includes"],"sources":["useDrawerHeaderStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nimport { drawerSeparatorStyles } from \"../../shared/drawerSeparatorStyles.js\";\nexport const drawerHeaderClassNames = {\n root: 'fui-DrawerHeader'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeResetStyles({\n width: '100%',\n maxWidth: '100%',\n padding: `${tokens.spacingVerticalXXL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalS}`,\n gap: tokens.spacingHorizontalS,\n alignSelf: 'stretch',\n display: 'flex',\n flexDirection: 'column',\n boxSizing: 'border-box',\n position: 'relative',\n zIndex: 2\n});\nconst useDrawerHeaderStyles = makeStyles({\n separator: {\n '::after': {\n ...drawerSeparatorStyles,\n bottom: 0\n }\n },\n separatorVisible: {\n '::after': {\n opacity: 1\n }\n }\n});\n/**\n * Apply styling to the DrawerHeader slots based on the state\n */ export const useDrawerHeaderStyles_unstable = (state)=>{\n const styles = useStyles();\n const rootStyles = useDrawerHeaderStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(drawerHeaderClassNames.root, styles, state.scrollState !== 'none' && rootStyles.separator, [\n 'middle',\n 'bottom'\n ].includes(state.scrollState) && rootStyles.separatorVisible, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,aAAA,EAAAC,QAAA,EAAsCC,YAAY,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,qBAAqB,QAAQ,uCAAuC;AAC7E,OAAO,MAAMC,sBAAsB,GAAG;EAClCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGP,aAAA,sRAWrB,CAAC;AACF,MAAMQ,qBAAqB,gBAAGP,QAAA;EAAAQ,SAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;EAAAC,gBAAA;IAAAP,OAAA;EAAA;AAAA;EAAAQ,CAAA;AAAA,CAY7B,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,8BAA8B,GAAIC,KAAK,IAAG;EACvD,MAAMC,MAAM,GAAGlB,SAAS,CAAC,CAAC;EAC1B,MAAMmB,UAAU,GAAGlB,qBAAqB,CAAC,CAAC;EAC1C;EACAgB,KAAK,CAAClB,IAAI,CAACqB,SAAS,GAAGzB,YAAY,CAACG,sBAAsB,CAACC,IAAI,EAAEmB,MAAM,EAAED,KAAK,CAACI,WAAW,KAAK,MAAM,IAAIF,UAAU,CAACjB,SAAS,EAAE,CAC3H,QAAQ,EACR,QAAQ,CACX,CAACoB,QAAQ,CAACL,KAAK,CAACI,WAAW,CAAC,IAAIF,UAAU,CAACL,gBAAgB,EAAEG,KAAK,CAAClB,IAAI,CAACqB,SAAS,CAAC;EACnF,OAAOH,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { makeResetStyles, makeStyles, mergeClasses } from
|
|
3
|
-
import { tokens } from
|
|
4
|
-
import { drawerSeparatorStyles } from
|
|
2
|
+
import { makeResetStyles, makeStyles, mergeClasses } from "@griffel/react";
|
|
3
|
+
import { tokens } from "@fluentui/react-theme";
|
|
4
|
+
import { drawerSeparatorStyles } from "../../shared/drawerSeparatorStyles.js";
|
|
5
5
|
export const drawerHeaderClassNames = {
|
|
6
6
|
root: 'fui-DrawerHeader'
|
|
7
7
|
};
|
|
@@ -35,7 +35,6 @@ const useDrawerHeaderStyles = makeStyles({
|
|
|
35
35
|
/**
|
|
36
36
|
* Apply styling to the DrawerHeader slots based on the state
|
|
37
37
|
*/ export const useDrawerHeaderStyles_unstable = (state)=>{
|
|
38
|
-
'use no memo';
|
|
39
38
|
const styles = useStyles();
|
|
40
39
|
const rootStyles = useDrawerHeaderStyles();
|
|
41
40
|
// eslint-disable-next-line react-hooks/immutability
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/DrawerHeader/useDrawerHeaderStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport { drawerSeparatorStyles } from '../../shared/drawerSeparatorStyles';\n\nimport type { DrawerHeaderSlots, DrawerHeaderState } from './DrawerHeader.types';\n\nexport const drawerHeaderClassNames: SlotClassNames<DrawerHeaderSlots> = {\n root: 'fui-DrawerHeader',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n width: '100%',\n maxWidth: '100%',\n padding: `${tokens.spacingVerticalXXL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalS}`,\n gap: tokens.spacingHorizontalS,\n alignSelf: 'stretch',\n display: 'flex',\n flexDirection: 'column',\n boxSizing: 'border-box',\n position: 'relative',\n zIndex: 2,\n});\n\nconst useDrawerHeaderStyles = makeStyles({\n separator: {\n '::after': {\n ...drawerSeparatorStyles,\n bottom: 0,\n },\n },\n\n separatorVisible: {\n '::after': {\n opacity: 1,\n },\n },\n});\n\n/**\n * Apply styling to the DrawerHeader slots based on the state\n */\nexport const useDrawerHeaderStyles_unstable = (state: DrawerHeaderState): DrawerHeaderState => {\n
|
|
1
|
+
{"version":3,"sources":["../src/components/DrawerHeader/useDrawerHeaderStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport { drawerSeparatorStyles } from '../../shared/drawerSeparatorStyles';\n\nimport type { DrawerHeaderSlots, DrawerHeaderState } from './DrawerHeader.types';\n\nexport const drawerHeaderClassNames: SlotClassNames<DrawerHeaderSlots> = {\n root: 'fui-DrawerHeader',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n width: '100%',\n maxWidth: '100%',\n padding: `${tokens.spacingVerticalXXL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalS}`,\n gap: tokens.spacingHorizontalS,\n alignSelf: 'stretch',\n display: 'flex',\n flexDirection: 'column',\n boxSizing: 'border-box',\n position: 'relative',\n zIndex: 2,\n});\n\nconst useDrawerHeaderStyles = makeStyles({\n separator: {\n '::after': {\n ...drawerSeparatorStyles,\n bottom: 0,\n },\n },\n\n separatorVisible: {\n '::after': {\n opacity: 1,\n },\n },\n});\n\n/**\n * Apply styling to the DrawerHeader slots based on the state\n */\nexport const useDrawerHeaderStyles_unstable = (state: DrawerHeaderState): DrawerHeaderState => {\n const styles = useStyles();\n const rootStyles = useDrawerHeaderStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n drawerHeaderClassNames.root,\n styles,\n state.scrollState !== 'none' && rootStyles.separator,\n ['middle', 'bottom'].includes(state.scrollState) && rootStyles.separatorVisible,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","drawerSeparatorStyles","drawerHeaderClassNames","root","useStyles","width","maxWidth","padding","spacingVerticalXXL","spacingHorizontalXXL","spacingVerticalS","gap","spacingHorizontalS","alignSelf","display","flexDirection","boxSizing","position","zIndex","useDrawerHeaderStyles","separator","bottom","separatorVisible","opacity","useDrawerHeaderStyles_unstable","state","styles","rootStyles","className","scrollState","includes"],"mappings":"AAAA;AAEA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC3E,SAASC,MAAM,QAAQ,wBAAwB;AAG/C,SAASC,qBAAqB,QAAQ,wCAAqC;AAI3E,OAAO,MAAMC,yBAA4D;IACvEC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYP,gBAAgB;IAChCQ,OAAO;IACPC,UAAU;IACVC,SAAS,GAAGP,OAAOQ,kBAAkB,CAAC,CAAC,EAAER,OAAOS,oBAAoB,CAAC,CAAC,EAAET,OAAOU,gBAAgB,EAAE;IACjGC,KAAKX,OAAOY,kBAAkB;IAC9BC,WAAW;IACXC,SAAS;IACTC,eAAe;IACfC,WAAW;IACXC,UAAU;IACVC,QAAQ;AACV;AAEA,MAAMC,wBAAwBrB,WAAW;IACvCsB,WAAW;QACT,WAAW;YACT,GAAGnB,qBAAqB;YACxBoB,QAAQ;QACV;IACF;IAEAC,kBAAkB;QAChB,WAAW;YACTC,SAAS;QACX;IACF;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,iCAAiC,CAACC;IAC7C,MAAMC,SAAStB;IACf,MAAMuB,aAAaR;IAEnB,oDAAoD;IACpDM,MAAMtB,IAAI,CAACyB,SAAS,GAAG7B,aACrBG,uBAAuBC,IAAI,EAC3BuB,QACAD,MAAMI,WAAW,KAAK,UAAUF,WAAWP,SAAS,EACpD;QAAC;QAAU;KAAS,CAACU,QAAQ,CAACL,MAAMI,WAAW,KAAKF,WAAWL,gBAAgB,EAC/EG,MAAMtB,IAAI,CAACyB,SAAS;IAGtB,OAAOH;AACT,EAAE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
3
|
-
import { useCustomStyleHook_unstable } from
|
|
4
|
-
import { useDrawerHeaderNavigation_unstable } from
|
|
5
|
-
import { renderDrawerHeaderNavigation_unstable } from
|
|
6
|
-
import { useDrawerHeaderNavigationStyles_unstable } from
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useCustomStyleHook_unstable } from "@fluentui/react-shared-contexts";
|
|
4
|
+
import { useDrawerHeaderNavigation_unstable } from "./useDrawerHeaderNavigation.js";
|
|
5
|
+
import { renderDrawerHeaderNavigation_unstable } from "./renderDrawerHeaderNavigation.js";
|
|
6
|
+
import { useDrawerHeaderNavigationStyles_unstable } from "./useDrawerHeaderNavigationStyles.styles.js";
|
|
7
7
|
/**
|
|
8
8
|
* DrawerHeaderNavigation provides a header navigation area for the Drawer.
|
|
9
9
|
*/ export const DrawerHeaderNavigation = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/DrawerHeaderNavigation/DrawerHeaderNavigation.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useDrawerHeaderNavigation_unstable } from './useDrawerHeaderNavigation';\nimport { renderDrawerHeaderNavigation_unstable } from './renderDrawerHeaderNavigation';\nimport { useDrawerHeaderNavigationStyles_unstable } from './useDrawerHeaderNavigationStyles.styles';\nimport type { DrawerHeaderNavigationProps } from './DrawerHeaderNavigation.types';\n\n/**\n * DrawerHeaderNavigation provides a header navigation area for the Drawer.\n */\nexport const DrawerHeaderNavigation: ForwardRefComponent<DrawerHeaderNavigationProps> = React.forwardRef(\n (props, ref) => {\n const state = useDrawerHeaderNavigation_unstable(props, ref);\n\n useDrawerHeaderNavigationStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerHeaderNavigationStyles_unstable')(state);\n\n return renderDrawerHeaderNavigation_unstable(state);\n },\n);\n\nDrawerHeaderNavigation.displayName = 'DrawerHeaderNavigation';\n"],"names":["React","useCustomStyleHook_unstable","useDrawerHeaderNavigation_unstable","renderDrawerHeaderNavigation_unstable","useDrawerHeaderNavigationStyles_unstable","DrawerHeaderNavigation","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,kCAAkC,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/DrawerHeaderNavigation/DrawerHeaderNavigation.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useDrawerHeaderNavigation_unstable } from './useDrawerHeaderNavigation';\nimport { renderDrawerHeaderNavigation_unstable } from './renderDrawerHeaderNavigation';\nimport { useDrawerHeaderNavigationStyles_unstable } from './useDrawerHeaderNavigationStyles.styles';\nimport type { DrawerHeaderNavigationProps } from './DrawerHeaderNavigation.types';\n\n/**\n * DrawerHeaderNavigation provides a header navigation area for the Drawer.\n */\nexport const DrawerHeaderNavigation: ForwardRefComponent<DrawerHeaderNavigationProps> = React.forwardRef(\n (props, ref) => {\n const state = useDrawerHeaderNavigation_unstable(props, ref);\n\n useDrawerHeaderNavigationStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerHeaderNavigationStyles_unstable')(state);\n\n return renderDrawerHeaderNavigation_unstable(state);\n },\n);\n\nDrawerHeaderNavigation.displayName = 'DrawerHeaderNavigation';\n"],"names":["React","useCustomStyleHook_unstable","useDrawerHeaderNavigation_unstable","renderDrawerHeaderNavigation_unstable","useDrawerHeaderNavigationStyles_unstable","DrawerHeaderNavigation","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,kCAAkC,QAAQ,iCAA8B;AACjF,SAASC,qCAAqC,QAAQ,oCAAiC;AACvF,SAASC,wCAAwC,QAAQ,8CAA2C;AAGpG;;CAEC,GACD,OAAO,MAAMC,uCAA2EL,MAAMM,UAAU,CACtG,CAACC,OAAOC;IACN,MAAMC,QAAQP,mCAAmCK,OAAOC;IAExDJ,yCAAyCK;IACzCR,4BAA4B,4CAA4CQ;IAExE,OAAON,sCAAsCM;AAC/C,GACA;AAEFJ,uBAAuBK,WAAW,GAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DrawerHeaderNavigation } from
|
|
2
|
-
export { renderDrawerHeaderNavigation_unstable } from
|
|
3
|
-
export { useDrawerHeaderNavigation_unstable } from
|
|
4
|
-
export { drawerHeaderNavigationClassNames, useDrawerHeaderNavigationStyles_unstable } from
|
|
1
|
+
export { DrawerHeaderNavigation } from "./DrawerHeaderNavigation.js";
|
|
2
|
+
export { renderDrawerHeaderNavigation_unstable } from "./renderDrawerHeaderNavigation.js";
|
|
3
|
+
export { useDrawerHeaderNavigation_unstable } from "./useDrawerHeaderNavigation.js";
|
|
4
|
+
export { drawerHeaderNavigationClassNames, useDrawerHeaderNavigationStyles_unstable } from "./useDrawerHeaderNavigationStyles.styles.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/DrawerHeaderNavigation/index.ts"],"sourcesContent":["export { DrawerHeaderNavigation } from './DrawerHeaderNavigation';\nexport type {\n DrawerHeaderNavigationProps,\n DrawerHeaderNavigationSlots,\n DrawerHeaderNavigationState,\n} from './DrawerHeaderNavigation.types';\nexport { renderDrawerHeaderNavigation_unstable } from './renderDrawerHeaderNavigation';\nexport { useDrawerHeaderNavigation_unstable } from './useDrawerHeaderNavigation';\nexport {\n drawerHeaderNavigationClassNames,\n useDrawerHeaderNavigationStyles_unstable,\n} from './useDrawerHeaderNavigationStyles.styles';\n"],"names":["DrawerHeaderNavigation","renderDrawerHeaderNavigation_unstable","useDrawerHeaderNavigation_unstable","drawerHeaderNavigationClassNames","useDrawerHeaderNavigationStyles_unstable"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/DrawerHeaderNavigation/index.ts"],"sourcesContent":["export { DrawerHeaderNavigation } from './DrawerHeaderNavigation';\nexport type {\n DrawerHeaderNavigationProps,\n DrawerHeaderNavigationSlots,\n DrawerHeaderNavigationState,\n} from './DrawerHeaderNavigation.types';\nexport { renderDrawerHeaderNavigation_unstable } from './renderDrawerHeaderNavigation';\nexport { useDrawerHeaderNavigation_unstable } from './useDrawerHeaderNavigation';\nexport {\n drawerHeaderNavigationClassNames,\n useDrawerHeaderNavigationStyles_unstable,\n} from './useDrawerHeaderNavigationStyles.styles';\n"],"names":["DrawerHeaderNavigation","renderDrawerHeaderNavigation_unstable","useDrawerHeaderNavigation_unstable","drawerHeaderNavigationClassNames","useDrawerHeaderNavigationStyles_unstable"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,8BAA2B;AAMlE,SAASC,qCAAqC,QAAQ,oCAAiC;AACvF,SAASC,kCAAkC,QAAQ,iCAA8B;AACjF,SACEC,gCAAgC,EAChCC,wCAAwC,QACnC,8CAA2C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
-
import { assertSlots } from
|
|
2
|
+
import { assertSlots } from "@fluentui/react-utilities";
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of DrawerHeaderNavigation
|
|
5
5
|
*/ export const renderDrawerHeaderNavigation_unstable = (state)=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { __resetStyles, mergeClasses } from
|
|
4
|
-
import { tokens } from
|
|
3
|
+
import { __resetStyles, mergeClasses } from "@griffel/react";
|
|
4
|
+
import { tokens } from "@fluentui/react-theme";
|
|
5
5
|
export const drawerHeaderNavigationClassNames = {
|
|
6
6
|
root: 'fui-DrawerHeaderNavigation'
|
|
7
7
|
};
|
|
@@ -13,8 +13,6 @@ const useStyles = /*#__PURE__*/__resetStyles("r1ig4pwh", null, [".r1ig4pwh{margi
|
|
|
13
13
|
* Apply styling to the DrawerHeaderNavigation slots based on the state
|
|
14
14
|
*/
|
|
15
15
|
export const useDrawerHeaderNavigationStyles_unstable = state => {
|
|
16
|
-
'use no memo';
|
|
17
|
-
|
|
18
16
|
const styles = useStyles();
|
|
19
17
|
// eslint-disable-next-line react-hooks/immutability
|
|
20
18
|
state.root.className = mergeClasses(drawerHeaderNavigationClassNames.root, styles, state.root.className);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__resetStyles","mergeClasses","tokens","drawerHeaderNavigationClassNames","root","useStyles","useDrawerHeaderNavigationStyles_unstable","state","styles","className"],"sources":["useDrawerHeaderNavigationStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, mergeClasses } from
|
|
1
|
+
{"version":3,"names":["__resetStyles","mergeClasses","tokens","drawerHeaderNavigationClassNames","root","useStyles","useDrawerHeaderNavigationStyles_unstable","state","styles","className"],"sources":["useDrawerHeaderNavigationStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const drawerHeaderNavigationClassNames = {\n root: 'fui-DrawerHeaderNavigation'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeResetStyles({\n margin: `calc(${tokens.spacingVerticalS} * -1) calc(${tokens.spacingHorizontalL} * -1)`\n});\n/**\n * Apply styling to the DrawerHeaderNavigation slots based on the state\n */ export const useDrawerHeaderNavigationStyles_unstable = (state)=>{\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(drawerHeaderNavigationClassNames.root, styles, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,aAAA,EAA0BC,YAAY,QAAQ,gBAAgB;AAC9D,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,gCAAgC,GAAG;EAC5CC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGL,aAAA,iHAErB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMM,wCAAwC,GAAIC,KAAK,IAAG;EACjE,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1B;EACAE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGR,YAAY,CAACE,gCAAgC,CAACC,IAAI,EAAEI,MAAM,EAAED,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EACxG,OAAOF,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { makeResetStyles, mergeClasses } from
|
|
3
|
-
import { tokens } from
|
|
2
|
+
import { makeResetStyles, mergeClasses } from "@griffel/react";
|
|
3
|
+
import { tokens } from "@fluentui/react-theme";
|
|
4
4
|
export const drawerHeaderNavigationClassNames = {
|
|
5
5
|
root: 'fui-DrawerHeaderNavigation'
|
|
6
6
|
};
|
|
@@ -12,7 +12,6 @@ export const drawerHeaderNavigationClassNames = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Apply styling to the DrawerHeaderNavigation slots based on the state
|
|
14
14
|
*/ export const useDrawerHeaderNavigationStyles_unstable = (state)=>{
|
|
15
|
-
'use no memo';
|
|
16
15
|
const styles = useStyles();
|
|
17
16
|
// eslint-disable-next-line react-hooks/immutability
|
|
18
17
|
state.root.className = mergeClasses(drawerHeaderNavigationClassNames.root, styles, state.root.className);
|
package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport type { DrawerHeaderNavigationSlots, DrawerHeaderNavigationState } from './DrawerHeaderNavigation.types';\n\nexport const drawerHeaderNavigationClassNames: SlotClassNames<DrawerHeaderNavigationSlots> = {\n root: 'fui-DrawerHeaderNavigation',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n margin: `calc(${tokens.spacingVerticalS} * -1) calc(${tokens.spacingHorizontalL} * -1)`,\n});\n\n/**\n * Apply styling to the DrawerHeaderNavigation slots based on the state\n */\nexport const useDrawerHeaderNavigationStyles_unstable = (\n state: DrawerHeaderNavigationState,\n): DrawerHeaderNavigationState => {\n
|
|
1
|
+
{"version":3,"sources":["../src/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport type { DrawerHeaderNavigationSlots, DrawerHeaderNavigationState } from './DrawerHeaderNavigation.types';\n\nexport const drawerHeaderNavigationClassNames: SlotClassNames<DrawerHeaderNavigationSlots> = {\n root: 'fui-DrawerHeaderNavigation',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n margin: `calc(${tokens.spacingVerticalS} * -1) calc(${tokens.spacingHorizontalL} * -1)`,\n});\n\n/**\n * Apply styling to the DrawerHeaderNavigation slots based on the state\n */\nexport const useDrawerHeaderNavigationStyles_unstable = (\n state: DrawerHeaderNavigationState,\n): DrawerHeaderNavigationState => {\n const styles = useStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(drawerHeaderNavigationClassNames.root, styles, state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","tokens","drawerHeaderNavigationClassNames","root","useStyles","margin","spacingVerticalS","spacingHorizontalL","useDrawerHeaderNavigationStyles_unstable","state","styles","className"],"mappings":"AAAA;AAEA,SAASA,eAAe,EAAEC,YAAY,QAAQ,iBAAiB;AAC/D,SAASC,MAAM,QAAQ,wBAAwB;AAK/C,OAAO,MAAMC,mCAAgF;IAC3FC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYL,gBAAgB;IAChCM,QAAQ,CAAC,KAAK,EAAEJ,OAAOK,gBAAgB,CAAC,YAAY,EAAEL,OAAOM,kBAAkB,CAAC,MAAM,CAAC;AACzF;AAEA;;CAEC,GACD,OAAO,MAAMC,2CAA2C,CACtDC;IAEA,MAAMC,SAASN;IAEf,oDAAoD;IACpDK,MAAMN,IAAI,CAACQ,SAAS,GAAGX,aAAaE,iCAAiCC,IAAI,EAAEO,QAAQD,MAAMN,IAAI,CAACQ,SAAS;IAEvG,OAAOF;AACT,EAAE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
3
|
-
import { useCustomStyleHook_unstable } from
|
|
4
|
-
import { useDrawerHeaderTitle_unstable } from
|
|
5
|
-
import { renderDrawerHeaderTitle_unstable } from
|
|
6
|
-
import { useDrawerHeaderTitleStyles_unstable } from
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useCustomStyleHook_unstable } from "@fluentui/react-shared-contexts";
|
|
4
|
+
import { useDrawerHeaderTitle_unstable } from "./useDrawerHeaderTitle.js";
|
|
5
|
+
import { renderDrawerHeaderTitle_unstable } from "./renderDrawerHeaderTitle.js";
|
|
6
|
+
import { useDrawerHeaderTitleStyles_unstable } from "./useDrawerHeaderTitleStyles.styles.js";
|
|
7
7
|
/**
|
|
8
8
|
* DrawerHeader provides a structured header for the drawer component.
|
|
9
9
|
*/ export const DrawerHeaderTitle = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/DrawerHeaderTitle/DrawerHeaderTitle.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useDrawerHeaderTitle_unstable } from './useDrawerHeaderTitle';\nimport { renderDrawerHeaderTitle_unstable } from './renderDrawerHeaderTitle';\nimport { useDrawerHeaderTitleStyles_unstable } from './useDrawerHeaderTitleStyles.styles';\nimport type { DrawerHeaderTitleProps } from './DrawerHeaderTitle.types';\n\n/**\n * DrawerHeader provides a structured header for the drawer component.\n */\nexport const DrawerHeaderTitle: ForwardRefComponent<DrawerHeaderTitleProps> = React.forwardRef((props, ref) => {\n const state = useDrawerHeaderTitle_unstable(props, ref);\n\n useDrawerHeaderTitleStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerHeaderTitleStyles_unstable')(state);\n\n return renderDrawerHeaderTitle_unstable(state);\n});\n\nDrawerHeaderTitle.displayName = 'DrawerHeaderTitle';\n"],"names":["React","useCustomStyleHook_unstable","useDrawerHeaderTitle_unstable","renderDrawerHeaderTitle_unstable","useDrawerHeaderTitleStyles_unstable","DrawerHeaderTitle","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,6BAA6B,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/DrawerHeaderTitle/DrawerHeaderTitle.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useDrawerHeaderTitle_unstable } from './useDrawerHeaderTitle';\nimport { renderDrawerHeaderTitle_unstable } from './renderDrawerHeaderTitle';\nimport { useDrawerHeaderTitleStyles_unstable } from './useDrawerHeaderTitleStyles.styles';\nimport type { DrawerHeaderTitleProps } from './DrawerHeaderTitle.types';\n\n/**\n * DrawerHeader provides a structured header for the drawer component.\n */\nexport const DrawerHeaderTitle: ForwardRefComponent<DrawerHeaderTitleProps> = React.forwardRef((props, ref) => {\n const state = useDrawerHeaderTitle_unstable(props, ref);\n\n useDrawerHeaderTitleStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerHeaderTitleStyles_unstable')(state);\n\n return renderDrawerHeaderTitle_unstable(state);\n});\n\nDrawerHeaderTitle.displayName = 'DrawerHeaderTitle';\n"],"names":["React","useCustomStyleHook_unstable","useDrawerHeaderTitle_unstable","renderDrawerHeaderTitle_unstable","useDrawerHeaderTitleStyles_unstable","DrawerHeaderTitle","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,6BAA6B,QAAQ,4BAAyB;AACvE,SAASC,gCAAgC,QAAQ,+BAA4B;AAC7E,SAASC,mCAAmC,QAAQ,yCAAsC;AAG1F;;CAEC,GACD,OAAO,MAAMC,kCAAiEL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACrG,MAAMC,QAAQP,8BAA8BK,OAAOC;IAEnDJ,oCAAoCK;IACpCR,4BAA4B,uCAAuCQ;IAEnE,OAAON,iCAAiCM;AAC1C,GAAG;AAEHJ,kBAAkBK,WAAW,GAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DrawerHeaderTitle } from
|
|
2
|
-
export { renderDrawerHeaderTitle_unstable } from
|
|
3
|
-
export { useDrawerHeaderTitle_unstable } from
|
|
4
|
-
export { drawerHeaderTitleClassNames, useDrawerHeaderTitleStyles_unstable } from
|
|
1
|
+
export { DrawerHeaderTitle } from "./DrawerHeaderTitle.js";
|
|
2
|
+
export { renderDrawerHeaderTitle_unstable } from "./renderDrawerHeaderTitle.js";
|
|
3
|
+
export { useDrawerHeaderTitle_unstable } from "./useDrawerHeaderTitle.js";
|
|
4
|
+
export { drawerHeaderTitleClassNames, useDrawerHeaderTitleStyles_unstable } from "./useDrawerHeaderTitleStyles.styles.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/DrawerHeaderTitle/index.ts"],"sourcesContent":["export { DrawerHeaderTitle } from './DrawerHeaderTitle';\nexport type { DrawerHeaderTitleProps, DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle.types';\nexport { renderDrawerHeaderTitle_unstable } from './renderDrawerHeaderTitle';\nexport { useDrawerHeaderTitle_unstable } from './useDrawerHeaderTitle';\nexport { drawerHeaderTitleClassNames, useDrawerHeaderTitleStyles_unstable } from './useDrawerHeaderTitleStyles.styles';\n"],"names":["DrawerHeaderTitle","renderDrawerHeaderTitle_unstable","useDrawerHeaderTitle_unstable","drawerHeaderTitleClassNames","useDrawerHeaderTitleStyles_unstable"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/DrawerHeaderTitle/index.ts"],"sourcesContent":["export { DrawerHeaderTitle } from './DrawerHeaderTitle';\nexport type { DrawerHeaderTitleProps, DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle.types';\nexport { renderDrawerHeaderTitle_unstable } from './renderDrawerHeaderTitle';\nexport { useDrawerHeaderTitle_unstable } from './useDrawerHeaderTitle';\nexport { drawerHeaderTitleClassNames, useDrawerHeaderTitleStyles_unstable } from './useDrawerHeaderTitleStyles.styles';\n"],"names":["DrawerHeaderTitle","renderDrawerHeaderTitle_unstable","useDrawerHeaderTitle_unstable","drawerHeaderTitleClassNames","useDrawerHeaderTitleStyles_unstable"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,yBAAsB;AAExD,SAASC,gCAAgC,QAAQ,+BAA4B;AAC7E,SAASC,6BAA6B,QAAQ,4BAAyB;AACvE,SAASC,2BAA2B,EAAEC,mCAAmC,QAAQ,yCAAsC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
-
import { assertSlots } from
|
|
2
|
+
import { assertSlots } from "@fluentui/react-utilities";
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of DrawerHeaderTitle
|
|
5
5
|
*/ export const renderDrawerHeaderTitle_unstable = (state)=>{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { getIntrinsicElementProps, slot } from
|
|
3
|
-
import { useDialogContext_unstable } from
|
|
2
|
+
import { getIntrinsicElementProps, slot } from "@fluentui/react-utilities";
|
|
3
|
+
import { useDialogContext_unstable } from "@fluentui/react-dialog";
|
|
4
4
|
/**
|
|
5
5
|
* Create the state required to render DrawerHeaderTitle.
|
|
6
6
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { __styles, mergeClasses } from
|
|
4
|
-
import { useDialogTitleStyles_unstable } from
|
|
5
|
-
import { tokens } from
|
|
3
|
+
import { __styles, mergeClasses } from "@griffel/react";
|
|
4
|
+
import { useDialogTitleStyles_unstable } from "@fluentui/react-dialog";
|
|
5
|
+
import { tokens } from "@fluentui/react-theme";
|
|
6
6
|
export const drawerHeaderTitleClassNames = {
|
|
7
7
|
root: 'fui-DrawerHeaderTitle',
|
|
8
8
|
heading: 'fui-DrawerHeaderTitle__heading',
|
|
@@ -28,8 +28,6 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
28
28
|
* Apply styling to the DrawerHeaderTitle slots based on the state
|
|
29
29
|
*/
|
|
30
30
|
export const useDrawerHeaderTitleStyles_unstable = state => {
|
|
31
|
-
'use no memo';
|
|
32
|
-
|
|
33
31
|
const styles = useStyles();
|
|
34
32
|
const {
|
|
35
33
|
heading: root = {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__styles","mergeClasses","useDialogTitleStyles_unstable","tokens","drawerHeaderTitleClassNames","root","heading","action","useStyles","mc9l5x","Brf1p80","Bt984gj","i8kkvl","t21cq0","d","useDrawerHeaderTitleStyles_unstable","state","styles","components","className"],"sources":["useDrawerHeaderTitleStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","useDialogTitleStyles_unstable","tokens","drawerHeaderTitleClassNames","root","heading","action","useStyles","mc9l5x","Brf1p80","Bt984gj","i8kkvl","t21cq0","d","useDrawerHeaderTitleStyles_unstable","state","styles","components","className"],"sources":["useDrawerHeaderTitleStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { useDialogTitleStyles_unstable } from \"@fluentui/react-dialog\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const drawerHeaderTitleClassNames = {\n root: 'fui-DrawerHeaderTitle',\n heading: 'fui-DrawerHeaderTitle__heading',\n action: 'fui-DrawerHeaderTitle__action'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS\n },\n action: {\n marginRight: `calc(${tokens.spacingHorizontalS} * -1)`\n }\n});\n/**\n * Apply styling to the DrawerHeaderTitle slots based on the state\n */ export const useDrawerHeaderTitleStyles_unstable = (state)=>{\n const styles = useStyles();\n const { heading: root = {}, action, // We should not use components to pass along the base element type of a slot\n // but there's no way to retrieve the element type of a slot from the slot definition\n // right now without using SLOT_ELEMENT_TYPE_SYMBOL\n // TODO: create a method to retrieve the element type of a slot\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n components } = state;\n useDialogTitleStyles_unstable({\n components: {\n root: components.heading,\n action: components.action\n },\n root,\n action\n });\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(drawerHeaderTitleClassNames.root, styles.root, state.root.className);\n if (state.heading) {\n // eslint-disable-next-line react-hooks/immutability\n state.heading.className = mergeClasses(drawerHeaderTitleClassNames.heading, state.heading.className);\n }\n if (state.action) {\n // eslint-disable-next-line react-hooks/immutability\n state.action.className = mergeClasses(drawerHeaderTitleClassNames.action, styles.action, state.action.className);\n }\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,6BAA6B,QAAQ,wBAAwB;AACtE,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,2BAA2B,GAAG;EACvCC,IAAI,EAAE,uBAAuB;EAC7BC,OAAO,EAAE,gCAAgC;EACzCC,MAAM,EAAE;AACZ,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGR,QAAA;EAAAK,IAAA;IAAAI,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAL,MAAA;IAAAM,MAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,CAUrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,mCAAmC,GAAIC,KAAK,IAAG;EAC5D,MAAMC,MAAM,GAAGT,SAAS,CAAC,CAAC;EAC1B,MAAM;IAAEF,OAAO,EAAED,IAAI,GAAG,CAAC,CAAC;IAAEE,MAAM;IAAE;IACpC;IACA;IACA;IACA;IACAW;EAAW,CAAC,GAAGF,KAAK;EACpBd,6BAA6B,CAAC;IAC1BgB,UAAU,EAAE;MACRb,IAAI,EAAEa,UAAU,CAACZ,OAAO;MACxBC,MAAM,EAAEW,UAAU,CAACX;IACvB,CAAC;IACDF,IAAI;IACJE;EACJ,CAAC,CAAC;EACF;EACAS,KAAK,CAACX,IAAI,CAACc,SAAS,GAAGlB,YAAY,CAACG,2BAA2B,CAACC,IAAI,EAAEY,MAAM,CAACZ,IAAI,EAAEW,KAAK,CAACX,IAAI,CAACc,SAAS,CAAC;EACxG,IAAIH,KAAK,CAACV,OAAO,EAAE;IACf;IACAU,KAAK,CAACV,OAAO,CAACa,SAAS,GAAGlB,YAAY,CAACG,2BAA2B,CAACE,OAAO,EAAEU,KAAK,CAACV,OAAO,CAACa,SAAS,CAAC;EACxG;EACA,IAAIH,KAAK,CAACT,MAAM,EAAE;IACd;IACAS,KAAK,CAACT,MAAM,CAACY,SAAS,GAAGlB,YAAY,CAACG,2BAA2B,CAACG,MAAM,EAAEU,MAAM,CAACV,MAAM,EAAES,KAAK,CAACT,MAAM,CAACY,SAAS,CAAC;EACpH;EACA,OAAOH,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { makeStyles, mergeClasses } from
|
|
3
|
-
import { useDialogTitleStyles_unstable } from
|
|
4
|
-
import { tokens } from
|
|
2
|
+
import { makeStyles, mergeClasses } from "@griffel/react";
|
|
3
|
+
import { useDialogTitleStyles_unstable } from "@fluentui/react-dialog";
|
|
4
|
+
import { tokens } from "@fluentui/react-theme";
|
|
5
5
|
export const drawerHeaderTitleClassNames = {
|
|
6
6
|
root: 'fui-DrawerHeaderTitle',
|
|
7
7
|
heading: 'fui-DrawerHeaderTitle__heading',
|
|
@@ -23,7 +23,6 @@ export const drawerHeaderTitleClassNames = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Apply styling to the DrawerHeaderTitle slots based on the state
|
|
25
25
|
*/ export const useDrawerHeaderTitleStyles_unstable = (state)=>{
|
|
26
|
-
'use no memo';
|
|
27
26
|
const styles = useStyles();
|
|
28
27
|
const { heading: root = {}, action, // We should not use components to pass along the base element type of a slot
|
|
29
28
|
// but there's no way to retrieve the element type of a slot from the slot definition
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useDialogTitleStyles_unstable } from '@fluentui/react-dialog';\nimport { tokens } from '@fluentui/react-theme';\n\nimport type { DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle.types';\n\nexport const drawerHeaderTitleClassNames: SlotClassNames<DrawerHeaderTitleSlots> = {\n root: 'fui-DrawerHeaderTitle',\n heading: 'fui-DrawerHeaderTitle__heading',\n action: 'fui-DrawerHeaderTitle__action',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS,\n },\n\n action: {\n marginRight: `calc(${tokens.spacingHorizontalS} * -1)`,\n },\n});\n\n/**\n * Apply styling to the DrawerHeaderTitle slots based on the state\n */\nexport const useDrawerHeaderTitleStyles_unstable = (state: DrawerHeaderTitleState): DrawerHeaderTitleState => {\n
|
|
1
|
+
{"version":3,"sources":["../src/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useDialogTitleStyles_unstable } from '@fluentui/react-dialog';\nimport { tokens } from '@fluentui/react-theme';\n\nimport type { DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle.types';\n\nexport const drawerHeaderTitleClassNames: SlotClassNames<DrawerHeaderTitleSlots> = {\n root: 'fui-DrawerHeaderTitle',\n heading: 'fui-DrawerHeaderTitle__heading',\n action: 'fui-DrawerHeaderTitle__action',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS,\n },\n\n action: {\n marginRight: `calc(${tokens.spacingHorizontalS} * -1)`,\n },\n});\n\n/**\n * Apply styling to the DrawerHeaderTitle slots based on the state\n */\nexport const useDrawerHeaderTitleStyles_unstable = (state: DrawerHeaderTitleState): DrawerHeaderTitleState => {\n const styles = useStyles();\n\n const {\n heading: root = {},\n action,\n // We should not use components to pass along the base element type of a slot\n // but there's no way to retrieve the element type of a slot from the slot definition\n // right now without using SLOT_ELEMENT_TYPE_SYMBOL\n // TODO: create a method to retrieve the element type of a slot\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n components,\n } = state;\n\n useDialogTitleStyles_unstable({\n components: {\n root: components.heading,\n action: components.action,\n },\n root,\n action,\n });\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(drawerHeaderTitleClassNames.root, styles.root, state.root.className);\n\n if (state.heading) {\n // eslint-disable-next-line react-hooks/immutability\n state.heading.className = mergeClasses(drawerHeaderTitleClassNames.heading, state.heading.className);\n }\n\n if (state.action) {\n // eslint-disable-next-line react-hooks/immutability\n state.action.className = mergeClasses(drawerHeaderTitleClassNames.action, styles.action, state.action.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","useDialogTitleStyles_unstable","tokens","drawerHeaderTitleClassNames","root","heading","action","useStyles","display","justifyContent","alignItems","columnGap","spacingHorizontalS","marginRight","useDrawerHeaderTitleStyles_unstable","state","styles","components","className"],"mappings":"AAAA;AAEA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAE1D,SAASC,6BAA6B,QAAQ,yBAAyB;AACvE,SAASC,MAAM,QAAQ,wBAAwB;AAI/C,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;IACNC,SAAS;IACTC,QAAQ;AACV,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYR,WAAW;IAC3BK,MAAM;QACJI,SAAS;QACTC,gBAAgB;QAChBC,YAAY;QACZC,WAAWT,OAAOU,kBAAkB;IACtC;IAEAN,QAAQ;QACNO,aAAa,CAAC,KAAK,EAAEX,OAAOU,kBAAkB,CAAC,MAAM,CAAC;IACxD;AACF;AAEA;;CAEC,GACD,OAAO,MAAME,sCAAsC,CAACC;IAClD,MAAMC,SAAST;IAEf,MAAM,EACJF,SAASD,OAAO,CAAC,CAAC,EAClBE,MAAM,EACN,6EAA6E;IAC7E,qFAAqF;IACrF,mDAAmD;IACnD,+DAA+D;IAC/D,4DAA4D;IAC5DW,UAAU,EACX,GAAGF;IAEJd,8BAA8B;QAC5BgB,YAAY;YACVb,MAAMa,WAAWZ,OAAO;YACxBC,QAAQW,WAAWX,MAAM;QAC3B;QACAF;QACAE;IACF;IAEA,oDAAoD;IACpDS,MAAMX,IAAI,CAACc,SAAS,GAAGlB,aAAaG,4BAA4BC,IAAI,EAAEY,OAAOZ,IAAI,EAAEW,MAAMX,IAAI,CAACc,SAAS;IAEvG,IAAIH,MAAMV,OAAO,EAAE;QACjB,oDAAoD;QACpDU,MAAMV,OAAO,CAACa,SAAS,GAAGlB,aAAaG,4BAA4BE,OAAO,EAAEU,MAAMV,OAAO,CAACa,SAAS;IACrG;IAEA,IAAIH,MAAMT,MAAM,EAAE;QAChB,oDAAoD;QACpDS,MAAMT,MAAM,CAACY,SAAS,GAAGlB,aAAaG,4BAA4BG,MAAM,EAAEU,OAAOV,MAAM,EAAES,MAAMT,MAAM,CAACY,SAAS;IACjH;IAEA,OAAOH;AACT,EAAE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
3
|
-
import { useCustomStyleHook_unstable } from
|
|
4
|
-
import { useDrawerContextValue } from
|
|
5
|
-
import { useInlineDrawer_unstable } from
|
|
6
|
-
import { renderInlineDrawer_unstable } from
|
|
7
|
-
import { useInlineDrawerStyles_unstable } from
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useCustomStyleHook_unstable } from "@fluentui/react-shared-contexts";
|
|
4
|
+
import { useDrawerContextValue } from "../../contexts/drawerContext.js";
|
|
5
|
+
import { useInlineDrawer_unstable } from "./useInlineDrawer.js";
|
|
6
|
+
import { renderInlineDrawer_unstable } from "./renderInlineDrawer.js";
|
|
7
|
+
import { useInlineDrawerStyles_unstable } from "./useInlineDrawerStyles.styles.js";
|
|
8
8
|
/**
|
|
9
9
|
* InlineDrawer is often used for navigation that is not dismissible. As it is on the same level as
|
|
10
10
|
* the main surface, users can still interact with other UI elements.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/InlineDrawer/InlineDrawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useDrawerContextValue } from '../../contexts/drawerContext';\n\nimport type { InlineDrawerProps } from './InlineDrawer.types';\nimport { useInlineDrawer_unstable } from './useInlineDrawer';\nimport { renderInlineDrawer_unstable } from './renderInlineDrawer';\nimport { useInlineDrawerStyles_unstable } from './useInlineDrawerStyles.styles';\n\n/**\n * InlineDrawer is often used for navigation that is not dismissible. As it is on the same level as\n * the main surface, users can still interact with other UI elements.\n */\nexport const InlineDrawer: ForwardRefComponent<InlineDrawerProps> = React.forwardRef((props, ref) => {\n const state = useInlineDrawer_unstable(props, ref);\n const contextValue = useDrawerContextValue();\n\n useInlineDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerInlineStyles_unstable')(state);\n useCustomStyleHook_unstable('useInlineDrawerStyles_unstable')(state);\n\n return renderInlineDrawer_unstable(state, contextValue);\n});\n\nInlineDrawer.displayName = 'InlineDrawer';\n"],"names":["React","useCustomStyleHook_unstable","useDrawerContextValue","useInlineDrawer_unstable","renderInlineDrawer_unstable","useInlineDrawerStyles_unstable","InlineDrawer","forwardRef","props","ref","state","contextValue","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,qBAAqB,QAAQ
|
|
1
|
+
{"version":3,"sources":["../src/components/InlineDrawer/InlineDrawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useDrawerContextValue } from '../../contexts/drawerContext';\n\nimport type { InlineDrawerProps } from './InlineDrawer.types';\nimport { useInlineDrawer_unstable } from './useInlineDrawer';\nimport { renderInlineDrawer_unstable } from './renderInlineDrawer';\nimport { useInlineDrawerStyles_unstable } from './useInlineDrawerStyles.styles';\n\n/**\n * InlineDrawer is often used for navigation that is not dismissible. As it is on the same level as\n * the main surface, users can still interact with other UI elements.\n */\nexport const InlineDrawer: ForwardRefComponent<InlineDrawerProps> = React.forwardRef((props, ref) => {\n const state = useInlineDrawer_unstable(props, ref);\n const contextValue = useDrawerContextValue();\n\n useInlineDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerInlineStyles_unstable')(state);\n useCustomStyleHook_unstable('useInlineDrawerStyles_unstable')(state);\n\n return renderInlineDrawer_unstable(state, contextValue);\n});\n\nInlineDrawer.displayName = 'InlineDrawer';\n"],"names":["React","useCustomStyleHook_unstable","useDrawerContextValue","useInlineDrawer_unstable","renderInlineDrawer_unstable","useInlineDrawerStyles_unstable","InlineDrawer","forwardRef","props","ref","state","contextValue","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,qBAAqB,QAAQ,kCAA+B;AAGrE,SAASC,wBAAwB,QAAQ,uBAAoB;AAC7D,SAASC,2BAA2B,QAAQ,0BAAuB;AACnE,SAASC,8BAA8B,QAAQ,oCAAiC;AAEhF;;;CAGC,GACD,OAAO,MAAMC,6BAAuDN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IAC3F,MAAMC,QAAQP,yBAAyBK,OAAOC;IAC9C,MAAME,eAAeT;IAErBG,+BAA+BK;IAC/BT,4BAA4B,kCAAkCS;IAC9DT,4BAA4B,kCAAkCS;IAE9D,OAAON,4BAA4BM,OAAOC;AAC5C,GAAG;AAEHL,aAAaM,WAAW,GAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { InlineDrawer } from
|
|
2
|
-
export { renderInlineDrawer_unstable } from
|
|
3
|
-
export { useInlineDrawer_unstable, useInlineDrawerBase_unstable } from
|
|
4
|
-
export { inlineDrawerClassNames, useInlineDrawerStyles_unstable } from
|
|
1
|
+
export { InlineDrawer } from "./InlineDrawer.js";
|
|
2
|
+
export { renderInlineDrawer_unstable } from "./renderInlineDrawer.js";
|
|
3
|
+
export { useInlineDrawer_unstable, useInlineDrawerBase_unstable } from "./useInlineDrawer.js";
|
|
4
|
+
export { inlineDrawerClassNames, useInlineDrawerStyles_unstable } from "./useInlineDrawerStyles.styles.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/InlineDrawer/index.ts"],"sourcesContent":["export { InlineDrawer } from './InlineDrawer';\nexport type {\n InlineDrawerProps,\n InlineDrawerSlots,\n InlineDrawerState,\n InlineDrawerBaseProps,\n InlineDrawerBaseState,\n SurfaceMotionSlotProps,\n} from './InlineDrawer.types';\nexport { renderInlineDrawer_unstable } from './renderInlineDrawer';\nexport { useInlineDrawer_unstable, useInlineDrawerBase_unstable } from './useInlineDrawer';\nexport { inlineDrawerClassNames, useInlineDrawerStyles_unstable } from './useInlineDrawerStyles.styles';\n"],"names":["InlineDrawer","renderInlineDrawer_unstable","useInlineDrawer_unstable","useInlineDrawerBase_unstable","inlineDrawerClassNames","useInlineDrawerStyles_unstable"],"mappings":"AAAA,SAASA,YAAY,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/InlineDrawer/index.ts"],"sourcesContent":["export { InlineDrawer } from './InlineDrawer';\nexport type {\n InlineDrawerProps,\n InlineDrawerSlots,\n InlineDrawerState,\n InlineDrawerBaseProps,\n InlineDrawerBaseState,\n SurfaceMotionSlotProps,\n} from './InlineDrawer.types';\nexport { renderInlineDrawer_unstable } from './renderInlineDrawer';\nexport { useInlineDrawer_unstable, useInlineDrawerBase_unstable } from './useInlineDrawer';\nexport { inlineDrawerClassNames, useInlineDrawerStyles_unstable } from './useInlineDrawerStyles.styles';\n"],"names":["InlineDrawer","renderInlineDrawer_unstable","useInlineDrawer_unstable","useInlineDrawerBase_unstable","inlineDrawerClassNames","useInlineDrawerStyles_unstable"],"mappings":"AAAA,SAASA,YAAY,QAAQ,oBAAiB;AAS9C,SAASC,2BAA2B,QAAQ,0BAAuB;AACnE,SAASC,wBAAwB,EAAEC,4BAA4B,QAAQ,uBAAoB;AAC3F,SAASC,sBAAsB,EAAEC,8BAA8B,QAAQ,oCAAiC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
-
import { assertSlots } from
|
|
3
|
-
import { DrawerProvider } from
|
|
2
|
+
import { assertSlots } from "@fluentui/react-utilities";
|
|
3
|
+
import { DrawerProvider } from "../../contexts/drawerContext.js";
|
|
4
4
|
/**
|
|
5
5
|
* Render the final JSX of InlineDrawer
|
|
6
6
|
*/ export const renderInlineDrawer_unstable = (state, contextValue)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/InlineDrawer/renderInlineDrawer.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { DrawerContextValue } from '../../contexts/drawerContext';\nimport { DrawerProvider } from '../../contexts/drawerContext';\n\nimport type { InlineDrawerState, InlineDrawerSlots } from './InlineDrawer.types';\n\n/**\n * Render the final JSX of InlineDrawer\n */\nexport const renderInlineDrawer_unstable = (state: InlineDrawerState, contextValue: DrawerContextValue): JSXElement => {\n assertSlots<InlineDrawerSlots>(state);\n\n return (\n <DrawerProvider value={contextValue}>\n {state.surfaceMotion ? (\n <state.surfaceMotion>\n <state.root />\n </state.surfaceMotion>\n ) : (\n <state.root />\n )}\n </DrawerProvider>\n );\n};\n"],"names":["assertSlots","DrawerProvider","renderInlineDrawer_unstable","state","contextValue","value","surfaceMotion","root"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD,SAASC,cAAc,QAAQ
|
|
1
|
+
{"version":3,"sources":["../src/components/InlineDrawer/renderInlineDrawer.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { DrawerContextValue } from '../../contexts/drawerContext';\nimport { DrawerProvider } from '../../contexts/drawerContext';\n\nimport type { InlineDrawerState, InlineDrawerSlots } from './InlineDrawer.types';\n\n/**\n * Render the final JSX of InlineDrawer\n */\nexport const renderInlineDrawer_unstable = (state: InlineDrawerState, contextValue: DrawerContextValue): JSXElement => {\n assertSlots<InlineDrawerSlots>(state);\n\n return (\n <DrawerProvider value={contextValue}>\n {state.surfaceMotion ? (\n <state.surfaceMotion>\n <state.root />\n </state.surfaceMotion>\n ) : (\n <state.root />\n )}\n </DrawerProvider>\n );\n};\n"],"names":["assertSlots","DrawerProvider","renderInlineDrawer_unstable","state","contextValue","value","surfaceMotion","root"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD,SAASC,cAAc,QAAQ,kCAA+B;AAI9D;;CAEC,GACD,OAAO,MAAMC,8BAA8B,CAACC,OAA0BC;IACpEJ,YAA+BG;IAE/B,qBACE,KAACF;QAAeI,OAAOD;kBACpBD,MAAMG,aAAa,iBAClB,KAACH,MAAMG,aAAa;sBAClB,cAAA,KAACH,MAAMI,IAAI;2BAGb,KAACJ,MAAMI,IAAI;;AAInB,EAAE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
3
|
-
import { presenceMotionSlot } from
|
|
4
|
-
import { getIntrinsicElementProps, slot } from
|
|
5
|
-
import { useFluent_unstable as useFluent } from
|
|
6
|
-
import { InlineDrawerMotion } from
|
|
7
|
-
import { useDrawerDefaultProps } from
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { presenceMotionSlot } from "@fluentui/react-motion";
|
|
4
|
+
import { getIntrinsicElementProps, slot } from "@fluentui/react-utilities";
|
|
5
|
+
import { useFluent_unstable as useFluent } from "@fluentui/react-shared-contexts";
|
|
6
|
+
import { InlineDrawerMotion } from "../../shared/drawerMotions.js";
|
|
7
|
+
import { useDrawerDefaultProps } from "../../shared/useDrawerDefaultProps.js";
|
|
8
8
|
const STATIC_MOTION = {
|
|
9
9
|
active: true,
|
|
10
10
|
canRender: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/InlineDrawer/useInlineDrawer.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { PresenceDirection } from '@fluentui/react-motion';\nimport { presenceMotionSlot } from '@fluentui/react-motion';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\nimport { type DrawerMotionParams, InlineDrawerMotion } from '../../shared/drawerMotions';\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\nimport type {\n InlineDrawerBaseProps,\n InlineDrawerBaseState,\n InlineDrawerProps,\n InlineDrawerState,\n SurfaceMotionSlotProps,\n} from './InlineDrawer.types';\n\nconst STATIC_MOTION = {\n active: true,\n canRender: true,\n ref: React.createRef<HTMLDivElement>(),\n type: 'idle' as const,\n};\n\n/**\n * Create the state required to render InlineDrawer.\n *\n * The returned state can be modified with hooks such as useInlineDrawerStyles_unstable,\n * before being passed to renderInlineDrawer_unstable.\n *\n * @param props - props from this instance of InlineDrawer\n * @param ref - reference to root HTMLElement of InlineDrawer\n */\nexport const useInlineDrawer_unstable = (props: InlineDrawerProps, ref: React.Ref<HTMLElement>): InlineDrawerState => {\n const { size, position, open, unmountOnClose } = useDrawerDefaultProps(props);\n const { separator = false, surfaceMotion, ...baseProps } = props;\n const { dir } = useFluent();\n const [animationDirection, setAnimationDirection] = React.useState<PresenceDirection>(open ? 'enter' : 'exit');\n\n const baseState = useInlineDrawerBase_unstable(baseProps, ref);\n\n return {\n ...baseState,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ...baseState.components,\n // casting from internal type that has required properties\n // to external type that only has optional properties\n // converting to unknown first as both Function component signatures are not compatible\n surfaceMotion: InlineDrawerMotion as unknown as React.FC<SurfaceMotionSlotProps>,\n },\n size,\n separator,\n animationDirection,\n surfaceMotion: presenceMotionSlot<DrawerMotionParams>(surfaceMotion, {\n elementType: InlineDrawerMotion,\n defaultProps: {\n position,\n size,\n dir,\n visible: open,\n appear: unmountOnClose,\n unmountOnExit: unmountOnClose,\n onMotionFinish: (_, { direction }) => setAnimationDirection(direction),\n onMotionStart: (_, { direction }) => {\n if (direction === 'enter') {\n setAnimationDirection('enter');\n }\n },\n },\n }),\n\n // Deprecated props\n motion: STATIC_MOTION,\n } satisfies InlineDrawerState;\n};\n\nexport const useInlineDrawerBase_unstable = (\n props: InlineDrawerBaseProps,\n ref: React.Ref<HTMLElement>,\n): InlineDrawerBaseState => {\n const { position, open, unmountOnClose } = useDrawerDefaultProps(props);\n\n return {\n components: {\n root: 'div',\n },\n\n root: slot.always(\n getIntrinsicElementProps('div', {\n ...props,\n ref,\n 'aria-hidden': !unmountOnClose && !open ? true : undefined,\n }),\n { elementType: 'div' },\n ),\n\n open,\n position,\n unmountOnClose,\n } satisfies InlineDrawerBaseState;\n};\n"],"names":["React","presenceMotionSlot","getIntrinsicElementProps","slot","useFluent_unstable","useFluent","InlineDrawerMotion","useDrawerDefaultProps","STATIC_MOTION","active","canRender","ref","createRef","type","useInlineDrawer_unstable","props","size","position","open","unmountOnClose","separator","surfaceMotion","baseProps","dir","animationDirection","setAnimationDirection","useState","baseState","useInlineDrawerBase_unstable","components","elementType","defaultProps","visible","appear","unmountOnExit","onMotionFinish","_","direction","onMotionStart","motion","root","always","undefined"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAC3E,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAElF,SAAkCC,kBAAkB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/InlineDrawer/useInlineDrawer.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { PresenceDirection } from '@fluentui/react-motion';\nimport { presenceMotionSlot } from '@fluentui/react-motion';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\nimport { type DrawerMotionParams, InlineDrawerMotion } from '../../shared/drawerMotions';\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\nimport type {\n InlineDrawerBaseProps,\n InlineDrawerBaseState,\n InlineDrawerProps,\n InlineDrawerState,\n SurfaceMotionSlotProps,\n} from './InlineDrawer.types';\n\nconst STATIC_MOTION = {\n active: true,\n canRender: true,\n ref: React.createRef<HTMLDivElement>(),\n type: 'idle' as const,\n};\n\n/**\n * Create the state required to render InlineDrawer.\n *\n * The returned state can be modified with hooks such as useInlineDrawerStyles_unstable,\n * before being passed to renderInlineDrawer_unstable.\n *\n * @param props - props from this instance of InlineDrawer\n * @param ref - reference to root HTMLElement of InlineDrawer\n */\nexport const useInlineDrawer_unstable = (props: InlineDrawerProps, ref: React.Ref<HTMLElement>): InlineDrawerState => {\n const { size, position, open, unmountOnClose } = useDrawerDefaultProps(props);\n const { separator = false, surfaceMotion, ...baseProps } = props;\n const { dir } = useFluent();\n const [animationDirection, setAnimationDirection] = React.useState<PresenceDirection>(open ? 'enter' : 'exit');\n\n const baseState = useInlineDrawerBase_unstable(baseProps, ref);\n\n return {\n ...baseState,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ...baseState.components,\n // casting from internal type that has required properties\n // to external type that only has optional properties\n // converting to unknown first as both Function component signatures are not compatible\n surfaceMotion: InlineDrawerMotion as unknown as React.FC<SurfaceMotionSlotProps>,\n },\n size,\n separator,\n animationDirection,\n surfaceMotion: presenceMotionSlot<DrawerMotionParams>(surfaceMotion, {\n elementType: InlineDrawerMotion,\n defaultProps: {\n position,\n size,\n dir,\n visible: open,\n appear: unmountOnClose,\n unmountOnExit: unmountOnClose,\n onMotionFinish: (_, { direction }) => setAnimationDirection(direction),\n onMotionStart: (_, { direction }) => {\n if (direction === 'enter') {\n setAnimationDirection('enter');\n }\n },\n },\n }),\n\n // Deprecated props\n motion: STATIC_MOTION,\n } satisfies InlineDrawerState;\n};\n\nexport const useInlineDrawerBase_unstable = (\n props: InlineDrawerBaseProps,\n ref: React.Ref<HTMLElement>,\n): InlineDrawerBaseState => {\n const { position, open, unmountOnClose } = useDrawerDefaultProps(props);\n\n return {\n components: {\n root: 'div',\n },\n\n root: slot.always(\n getIntrinsicElementProps('div', {\n ...props,\n ref,\n 'aria-hidden': !unmountOnClose && !open ? true : undefined,\n }),\n { elementType: 'div' },\n ),\n\n open,\n position,\n unmountOnClose,\n } satisfies InlineDrawerBaseState;\n};\n"],"names":["React","presenceMotionSlot","getIntrinsicElementProps","slot","useFluent_unstable","useFluent","InlineDrawerMotion","useDrawerDefaultProps","STATIC_MOTION","active","canRender","ref","createRef","type","useInlineDrawer_unstable","props","size","position","open","unmountOnClose","separator","surfaceMotion","baseProps","dir","animationDirection","setAnimationDirection","useState","baseState","useInlineDrawerBase_unstable","components","elementType","defaultProps","visible","appear","unmountOnExit","onMotionFinish","_","direction","onMotionStart","motion","root","always","undefined"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAC3E,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAElF,SAAkCC,kBAAkB,QAAQ,gCAA6B;AACzF,SAASC,qBAAqB,QAAQ,wCAAqC;AAS3E,MAAMC,gBAAgB;IACpBC,QAAQ;IACRC,WAAW;IACXC,KAAKX,MAAMY,SAAS;IACpBC,MAAM;AACR;AAEA;;;;;;;;CAQC,GACD,OAAO,MAAMC,2BAA2B,CAACC,OAA0BJ;IACjE,MAAM,EAAEK,IAAI,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,cAAc,EAAE,GAAGZ,sBAAsBQ;IACvE,MAAM,EAAEK,YAAY,KAAK,EAAEC,aAAa,EAAE,GAAGC,WAAW,GAAGP;IAC3D,MAAM,EAAEQ,GAAG,EAAE,GAAGlB;IAChB,MAAM,CAACmB,oBAAoBC,sBAAsB,GAAGzB,MAAM0B,QAAQ,CAAoBR,OAAO,UAAU;IAEvG,MAAMS,YAAYC,6BAA6BN,WAAWX;IAE1D,OAAO;QACL,GAAGgB,SAAS;QACZE,YAAY;YACV,4DAA4D;YAC5D,GAAGF,UAAUE,UAAU;YACvB,0DAA0D;YAC1D,qDAAqD;YACrD,uFAAuF;YACvFR,eAAef;QACjB;QACAU;QACAI;QACAI;QACAH,eAAepB,mBAAuCoB,eAAe;YACnES,aAAaxB;YACbyB,cAAc;gBACZd;gBACAD;gBACAO;gBACAS,SAASd;gBACTe,QAAQd;gBACRe,eAAef;gBACfgB,gBAAgB,CAACC,GAAG,EAAEC,SAAS,EAAE,GAAKZ,sBAAsBY;gBAC5DC,eAAe,CAACF,GAAG,EAAEC,SAAS,EAAE;oBAC9B,IAAIA,cAAc,SAAS;wBACzBZ,sBAAsB;oBACxB;gBACF;YACF;QACF;QAEA,mBAAmB;QACnBc,QAAQ/B;IACV;AACF,EAAE;AAEF,OAAO,MAAMoB,+BAA+B,CAC1Cb,OACAJ;IAEA,MAAM,EAAEM,QAAQ,EAAEC,IAAI,EAAEC,cAAc,EAAE,GAAGZ,sBAAsBQ;IAEjE,OAAO;QACLc,YAAY;YACVW,MAAM;QACR;QAEAA,MAAMrC,KAAKsC,MAAM,CACfvC,yBAAyB,OAAO;YAC9B,GAAGa,KAAK;YACRJ;YACA,eAAe,CAACQ,kBAAkB,CAACD,OAAO,OAAOwB;QACnD,IACA;YAAEZ,aAAa;QAAM;QAGvBZ;QACAD;QACAE;IACF;AACF,EAAE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { __resetStyles, __styles, mergeClasses } from
|
|
4
|
-
import { tokens } from
|
|
5
|
-
import { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from
|
|
3
|
+
import { __resetStyles, __styles, mergeClasses } from "@griffel/react";
|
|
4
|
+
import { tokens } from "@fluentui/react-theme";
|
|
5
|
+
import { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from "../../shared/useDrawerBaseStyles.styles.js";
|
|
6
6
|
export const inlineDrawerClassNames = {
|
|
7
7
|
root: 'fui-InlineDrawer'
|
|
8
8
|
};
|
|
@@ -146,8 +146,6 @@ function getAnimationExitClass(state, classNames) {
|
|
|
146
146
|
* Apply styling to the InlineDrawer slots based on the state
|
|
147
147
|
*/
|
|
148
148
|
export const useInlineDrawerStyles_unstable = state => {
|
|
149
|
-
'use no memo';
|
|
150
|
-
|
|
151
149
|
const resetStyles = useDrawerResetStyles();
|
|
152
150
|
const baseClassNames = useDrawerBaseClassNames(state);
|
|
153
151
|
const rootStyles = useDrawerRootStyles();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__resetStyles","__styles","mergeClasses","tokens","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","inlineDrawerClassNames","root","useDrawerResetStyles","borderValue","colorNeutralBackground3","useDrawerRootStyles","separatorStart","h3c5rm","vrafjx","Bekrc4i","u1mtju","separatorEnd","zhjwy3","wvpqe5","ibv6hh","B4g9neb","separatorBottom","g2u3we","icvyot","B4j52fo","i8vvqc","start","end","bottom","a9b677","Bqenvij","animationExitStart","Bgfg5da","B9xav0g","oivjwe","Bn0qgzm","irswps","animationExitEnd","animationExitBottom","d","p","getSeparatorClass","state","classNames","separator","undefined","position","getAnimationExitClass","useInlineDrawerStyles_unstable","resetStyles","baseClassNames","rootStyles","className","animationDirection"],"sources":["useInlineDrawerStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, mergeClasses } from
|
|
1
|
+
{"version":3,"names":["__resetStyles","__styles","mergeClasses","tokens","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","inlineDrawerClassNames","root","useDrawerResetStyles","borderValue","colorNeutralBackground3","useDrawerRootStyles","separatorStart","h3c5rm","vrafjx","Bekrc4i","u1mtju","separatorEnd","zhjwy3","wvpqe5","ibv6hh","B4g9neb","separatorBottom","g2u3we","icvyot","B4j52fo","i8vvqc","start","end","bottom","a9b677","Bqenvij","animationExitStart","Bgfg5da","B9xav0g","oivjwe","Bn0qgzm","irswps","animationExitEnd","animationExitBottom","d","p","getSeparatorClass","state","classNames","separator","undefined","position","getAnimationExitClass","useInlineDrawerStyles_unstable","resetStyles","baseClassNames","rootStyles","className","animationDirection"],"sources":["useInlineDrawerStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeResetStyles, makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from \"../../shared/useDrawerBaseStyles.styles.js\";\nexport const inlineDrawerClassNames = {\n root: 'fui-InlineDrawer'\n};\nconst useDrawerResetStyles = makeResetStyles({\n ...drawerDefaultStyles,\n position: 'relative'\n});\n/**\n * Styles for the root slot\n */ const borderValue = `1px solid ${tokens.colorNeutralBackground3}`;\nconst useDrawerRootStyles = makeStyles({\n /* Separator */ separatorStart: {\n borderRight: borderValue\n },\n separatorEnd: {\n borderLeft: borderValue\n },\n separatorBottom: {\n borderTop: borderValue\n },\n /* Positioning */ start: {},\n end: {},\n bottom: {\n width: '100%',\n height: `var(${drawerCSSVars.drawerSizeVar})`\n },\n /* Animation exit states */ animationExitStart: {\n width: '0',\n border: 'none'\n },\n animationExitEnd: {\n width: '0',\n border: 'none'\n },\n animationExitBottom: {\n height: '0',\n border: 'none'\n }\n});\nfunction getSeparatorClass(state, classNames) {\n if (!state.separator) {\n return undefined;\n }\n switch(state.position){\n case 'start':\n return classNames.separatorStart;\n case 'end':\n return classNames.separatorEnd;\n case 'bottom':\n return classNames.separatorBottom;\n default:\n return undefined;\n }\n}\nfunction getAnimationExitClass(state, classNames) {\n switch(state.position){\n case 'start':\n return classNames.animationExitStart;\n case 'end':\n return classNames.animationExitEnd;\n case 'bottom':\n return classNames.animationExitBottom;\n default:\n return undefined;\n }\n}\n/**\n * Apply styling to the InlineDrawer slots based on the state\n */ export const useInlineDrawerStyles_unstable = (state)=>{\n const resetStyles = useDrawerResetStyles();\n const baseClassNames = useDrawerBaseClassNames(state);\n const rootStyles = useDrawerRootStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(inlineDrawerClassNames.root, resetStyles, baseClassNames, getSeparatorClass(state, rootStyles), rootStyles[state.position], state.animationDirection === 'exit' && getAnimationExitClass(state, rootStyles), state.root.className);\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,aAAA,EAAAC,QAAA,EAAsCC,YAAY,QAAQ,gBAAgB;AAC1E,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,uBAAuB,QAAQ,4CAA4C;AACxH,OAAO,MAAMC,sBAAsB,GAAG;EAClCC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,oBAAoB,gBAAGT,aAAA,6UAG5B,CAAC;AACF;AACA;AACA;AAAI,MAAMU,WAAW,GAAG,aAAaP,MAAM,CAACQ,uBAAuB,EAAE;AACrE,MAAMC,mBAAmB,gBAAGX,QAAA;EAAAY,cAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,YAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,eAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,KAAA;EAAAC,GAAA;EAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,kBAAA;IAAAF,MAAA;IAAAG,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAf,OAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAJ,MAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAW,MAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAY,MAAA;EAAA;EAAAC,gBAAA;IAAAR,MAAA;IAAAG,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAf,OAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAJ,MAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAW,MAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAY,MAAA;EAAA;EAAAE,mBAAA;IAAAR,OAAA;IAAAE,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAf,OAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAJ,MAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAW,MAAA;IAAAH,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAY,MAAA;EAAA;AAAA;EAAAG,CAAA;IAAAC,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,CA4B3B,CAAC;AACF,SAASC,iBAAiBA,CAACC,KAAK,EAAEC,UAAU,EAAE;EAC1C,IAAI,CAACD,KAAK,CAACE,SAAS,EAAE;IAClB,OAAOC,SAAS;EACpB;EACA,QAAOH,KAAK,CAACI,QAAQ;IACjB,KAAK,OAAO;MACR,OAAOH,UAAU,CAAChC,cAAc;IACpC,KAAK,KAAK;MACN,OAAOgC,UAAU,CAAC3B,YAAY;IAClC,KAAK,QAAQ;MACT,OAAO2B,UAAU,CAACtB,eAAe;IACrC;MACI,OAAOwB,SAAS;EACxB;AACJ;AACA,SAASE,qBAAqBA,CAACL,KAAK,EAAEC,UAAU,EAAE;EAC9C,QAAOD,KAAK,CAACI,QAAQ;IACjB,KAAK,OAAO;MACR,OAAOH,UAAU,CAACZ,kBAAkB;IACxC,KAAK,KAAK;MACN,OAAOY,UAAU,CAACN,gBAAgB;IACtC,KAAK,QAAQ;MACT,OAAOM,UAAU,CAACL,mBAAmB;IACzC;MACI,OAAOO,SAAS;EACxB;AACJ;AACA;AACA;AACA;AAAI,OAAO,MAAMG,8BAA8B,GAAIN,KAAK,IAAG;EACvD,MAAMO,WAAW,GAAG1C,oBAAoB,CAAC,CAAC;EAC1C,MAAM2C,cAAc,GAAG9C,uBAAuB,CAACsC,KAAK,CAAC;EACrD,MAAMS,UAAU,GAAGzC,mBAAmB,CAAC,CAAC;EACxC;EACAgC,KAAK,CAACpC,IAAI,CAAC8C,SAAS,GAAGpD,YAAY,CAACK,sBAAsB,CAACC,IAAI,EAAE2C,WAAW,EAAEC,cAAc,EAAET,iBAAiB,CAACC,KAAK,EAAES,UAAU,CAAC,EAAEA,UAAU,CAACT,KAAK,CAACI,QAAQ,CAAC,EAAEJ,KAAK,CAACW,kBAAkB,KAAK,MAAM,IAAIN,qBAAqB,CAACL,KAAK,EAAES,UAAU,CAAC,EAAET,KAAK,CAACpC,IAAI,CAAC8C,SAAS,CAAC;EACtQ,OAAOV,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { makeResetStyles, makeStyles, mergeClasses } from
|
|
3
|
-
import { tokens } from
|
|
4
|
-
import { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from
|
|
2
|
+
import { makeResetStyles, makeStyles, mergeClasses } from "@griffel/react";
|
|
3
|
+
import { tokens } from "@fluentui/react-theme";
|
|
4
|
+
import { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from "../../shared/useDrawerBaseStyles.styles.js";
|
|
5
5
|
export const inlineDrawerClassNames = {
|
|
6
6
|
root: 'fui-InlineDrawer'
|
|
7
7
|
};
|
|
@@ -71,7 +71,6 @@ function getAnimationExitClass(state, classNames) {
|
|
|
71
71
|
/**
|
|
72
72
|
* Apply styling to the InlineDrawer slots based on the state
|
|
73
73
|
*/ export const useInlineDrawerStyles_unstable = (state)=>{
|
|
74
|
-
'use no memo';
|
|
75
74
|
const resetStyles = useDrawerResetStyles();
|
|
76
75
|
const baseClassNames = useDrawerBaseClassNames(state);
|
|
77
76
|
const rootStyles = useDrawerRootStyles();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/InlineDrawer/useInlineDrawerStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\n\nimport type { InlineDrawerSlots, InlineDrawerState } from './InlineDrawer.types';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\n\nexport const inlineDrawerClassNames: SlotClassNames<Omit<InlineDrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-InlineDrawer',\n};\n\nconst useDrawerResetStyles = makeResetStyles({\n ...drawerDefaultStyles,\n position: 'relative',\n});\n\n/**\n * Styles for the root slot\n */\nconst borderValue = `1px solid ${tokens.colorNeutralBackground3}`;\nconst useDrawerRootStyles = makeStyles({\n /* Separator */\n separatorStart: { borderRight: borderValue },\n separatorEnd: { borderLeft: borderValue },\n separatorBottom: { borderTop: borderValue },\n\n /* Positioning */\n start: {},\n end: {},\n bottom: {\n width: '100%',\n height: `var(${drawerCSSVars.drawerSizeVar})`,\n },\n\n /* Animation exit states */\n animationExitStart: {\n width: '0',\n border: 'none',\n },\n animationExitEnd: {\n width: '0',\n border: 'none',\n },\n animationExitBottom: {\n height: '0',\n border: 'none',\n },\n});\n\nfunction getSeparatorClass(state: InlineDrawerState, classNames: ReturnType<typeof useDrawerRootStyles>) {\n if (!state.separator) {\n return undefined;\n }\n\n switch (state.position) {\n case 'start':\n return classNames.separatorStart;\n\n case 'end':\n return classNames.separatorEnd;\n\n case 'bottom':\n return classNames.separatorBottom;\n\n default:\n return undefined;\n }\n}\n\nfunction getAnimationExitClass(state: InlineDrawerState, classNames: ReturnType<typeof useDrawerRootStyles>) {\n switch (state.position) {\n case 'start':\n return classNames.animationExitStart;\n\n case 'end':\n return classNames.animationExitEnd;\n\n case 'bottom':\n return classNames.animationExitBottom;\n\n default:\n return undefined;\n }\n}\n\n/**\n * Apply styling to the InlineDrawer slots based on the state\n */\nexport const useInlineDrawerStyles_unstable = (state: InlineDrawerState): InlineDrawerState => {\n
|
|
1
|
+
{"version":3,"sources":["../src/components/InlineDrawer/useInlineDrawerStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\n\nimport type { InlineDrawerSlots, InlineDrawerState } from './InlineDrawer.types';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\n\nexport const inlineDrawerClassNames: SlotClassNames<Omit<InlineDrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-InlineDrawer',\n};\n\nconst useDrawerResetStyles = makeResetStyles({\n ...drawerDefaultStyles,\n position: 'relative',\n});\n\n/**\n * Styles for the root slot\n */\nconst borderValue = `1px solid ${tokens.colorNeutralBackground3}`;\nconst useDrawerRootStyles = makeStyles({\n /* Separator */\n separatorStart: { borderRight: borderValue },\n separatorEnd: { borderLeft: borderValue },\n separatorBottom: { borderTop: borderValue },\n\n /* Positioning */\n start: {},\n end: {},\n bottom: {\n width: '100%',\n height: `var(${drawerCSSVars.drawerSizeVar})`,\n },\n\n /* Animation exit states */\n animationExitStart: {\n width: '0',\n border: 'none',\n },\n animationExitEnd: {\n width: '0',\n border: 'none',\n },\n animationExitBottom: {\n height: '0',\n border: 'none',\n },\n});\n\nfunction getSeparatorClass(state: InlineDrawerState, classNames: ReturnType<typeof useDrawerRootStyles>) {\n if (!state.separator) {\n return undefined;\n }\n\n switch (state.position) {\n case 'start':\n return classNames.separatorStart;\n\n case 'end':\n return classNames.separatorEnd;\n\n case 'bottom':\n return classNames.separatorBottom;\n\n default:\n return undefined;\n }\n}\n\nfunction getAnimationExitClass(state: InlineDrawerState, classNames: ReturnType<typeof useDrawerRootStyles>) {\n switch (state.position) {\n case 'start':\n return classNames.animationExitStart;\n\n case 'end':\n return classNames.animationExitEnd;\n\n case 'bottom':\n return classNames.animationExitBottom;\n\n default:\n return undefined;\n }\n}\n\n/**\n * Apply styling to the InlineDrawer slots based on the state\n */\nexport const useInlineDrawerStyles_unstable = (state: InlineDrawerState): InlineDrawerState => {\n const resetStyles = useDrawerResetStyles();\n const baseClassNames = useDrawerBaseClassNames(state);\n const rootStyles = useDrawerRootStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n inlineDrawerClassNames.root,\n resetStyles,\n baseClassNames,\n getSeparatorClass(state, rootStyles),\n rootStyles[state.position],\n state.animationDirection === 'exit' && getAnimationExitClass(state, rootStyles),\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","inlineDrawerClassNames","root","useDrawerResetStyles","position","borderValue","colorNeutralBackground3","useDrawerRootStyles","separatorStart","borderRight","separatorEnd","borderLeft","separatorBottom","borderTop","start","end","bottom","width","height","drawerSizeVar","animationExitStart","border","animationExitEnd","animationExitBottom","getSeparatorClass","state","classNames","separator","undefined","getAnimationExitClass","useInlineDrawerStyles_unstable","resetStyles","baseClassNames","rootStyles","className","animationDirection"],"mappings":"AAAA;AAEA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAE3E,SAASC,MAAM,QAAQ,wBAAwB;AAG/C,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,uBAAuB,QAAQ,6CAA0C;AAEtH,OAAO,MAAMC,yBAAmF;IAC9FC,MAAM;AACR,EAAE;AAEF,MAAMC,uBAAuBT,gBAAgB;IAC3C,GAAGK,mBAAmB;IACtBK,UAAU;AACZ;AAEA;;CAEC,GACD,MAAMC,cAAc,CAAC,UAAU,EAAER,OAAOS,uBAAuB,EAAE;AACjE,MAAMC,sBAAsBZ,WAAW;IACrC,aAAa,GACba,gBAAgB;QAAEC,aAAaJ;IAAY;IAC3CK,cAAc;QAAEC,YAAYN;IAAY;IACxCO,iBAAiB;QAAEC,WAAWR;IAAY;IAE1C,eAAe,GACfS,OAAO,CAAC;IACRC,KAAK,CAAC;IACNC,QAAQ;QACNC,OAAO;QACPC,QAAQ,CAAC,IAAI,EAAEpB,cAAcqB,aAAa,CAAC,CAAC,CAAC;IAC/C;IAEA,yBAAyB,GACzBC,oBAAoB;QAClBH,OAAO;QACPI,QAAQ;IACV;IACAC,kBAAkB;QAChBL,OAAO;QACPI,QAAQ;IACV;IACAE,qBAAqB;QACnBL,QAAQ;QACRG,QAAQ;IACV;AACF;AAEA,SAASG,kBAAkBC,KAAwB,EAAEC,UAAkD;IACrG,IAAI,CAACD,MAAME,SAAS,EAAE;QACpB,OAAOC;IACT;IAEA,OAAQH,MAAMrB,QAAQ;QACpB,KAAK;YACH,OAAOsB,WAAWlB,cAAc;QAElC,KAAK;YACH,OAAOkB,WAAWhB,YAAY;QAEhC,KAAK;YACH,OAAOgB,WAAWd,eAAe;QAEnC;YACE,OAAOgB;IACX;AACF;AAEA,SAASC,sBAAsBJ,KAAwB,EAAEC,UAAkD;IACzG,OAAQD,MAAMrB,QAAQ;QACpB,KAAK;YACH,OAAOsB,WAAWN,kBAAkB;QAEtC,KAAK;YACH,OAAOM,WAAWJ,gBAAgB;QAEpC,KAAK;YACH,OAAOI,WAAWH,mBAAmB;QAEvC;YACE,OAAOK;IACX;AACF;AAEA;;CAEC,GACD,OAAO,MAAME,iCAAiC,CAACL;IAC7C,MAAMM,cAAc5B;IACpB,MAAM6B,iBAAiBhC,wBAAwByB;IAC/C,MAAMQ,aAAa1B;IAEnB,oDAAoD;IACpDkB,MAAMvB,IAAI,CAACgC,SAAS,GAAGtC,aACrBK,uBAAuBC,IAAI,EAC3B6B,aACAC,gBACAR,kBAAkBC,OAAOQ,aACzBA,UAAU,CAACR,MAAMrB,QAAQ,CAAC,EAC1BqB,MAAMU,kBAAkB,KAAK,UAAUN,sBAAsBJ,OAAOQ,aACpER,MAAMvB,IAAI,CAACgC,SAAS;IAGtB,OAAOT;AACT,EAAE"}
|