@fluentui/react-nav 0.0.0-nightly-20250612-0406.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +704 -0
- package/LICENSE +15 -0
- package/README.md +5 -0
- package/dist/index.d.ts +992 -0
- package/lib/AppItem.js +1 -0
- package/lib/AppItem.js.map +1 -0
- package/lib/AppItemStatic.js +1 -0
- package/lib/AppItemStatic.js.map +1 -0
- package/lib/Hamburger.js +1 -0
- package/lib/Hamburger.js.map +1 -0
- package/lib/Nav.js +3 -0
- package/lib/Nav.js.map +1 -0
- package/lib/NavCategory.js +1 -0
- package/lib/NavCategory.js.map +1 -0
- package/lib/NavDivider.js +1 -0
- package/lib/NavDivider.js.map +1 -0
- package/lib/NavDrawer.js +1 -0
- package/lib/NavDrawer.js.map +1 -0
- package/lib/NavDrawerBody.js +1 -0
- package/lib/NavDrawerBody.js.map +1 -0
- package/lib/NavDrawerFooter.js +1 -0
- package/lib/NavDrawerFooter.js.map +1 -0
- package/lib/NavDrawerHeader.js +1 -0
- package/lib/NavDrawerHeader.js.map +1 -0
- package/lib/NavItem.js +1 -0
- package/lib/NavItem.js.map +1 -0
- package/lib/NavSectionHeader.js +1 -0
- package/lib/NavSectionHeader.js.map +1 -0
- package/lib/NavSubItem.js +1 -0
- package/lib/NavSubItem.js.map +1 -0
- package/lib/NavSubItemGroup.js +1 -0
- package/lib/NavSubItemGroup.js.map +1 -0
- package/lib/SplitNavItem.js +1 -0
- package/lib/SplitNavItem.js.map +1 -0
- package/lib/components/AppItem/AppItem.js +20 -0
- package/lib/components/AppItem/AppItem.js.map +1 -0
- package/lib/components/AppItem/AppItem.types.js +3 -0
- package/lib/components/AppItem/AppItem.types.js.map +1 -0
- package/lib/components/AppItem/index.js +4 -0
- package/lib/components/AppItem/index.js.map +1 -0
- package/lib/components/AppItem/renderAppItem.js +13 -0
- package/lib/components/AppItem/renderAppItem.js.map +1 -0
- package/lib/components/AppItem/useAppItem.js +37 -0
- package/lib/components/AppItem/useAppItem.js.map +1 -0
- package/lib/components/AppItem/useAppItemStyles.styles.js +79 -0
- package/lib/components/AppItem/useAppItemStyles.styles.js.map +1 -0
- package/lib/components/AppItemStatic/AppItemStatic.js +20 -0
- package/lib/components/AppItemStatic/AppItemStatic.js.map +1 -0
- package/lib/components/AppItemStatic/AppItemStatic.types.js +3 -0
- package/lib/components/AppItemStatic/AppItemStatic.types.js.map +1 -0
- package/lib/components/AppItemStatic/index.js +4 -0
- package/lib/components/AppItemStatic/index.js.map +1 -0
- package/lib/components/AppItemStatic/renderAppItemStatic.js +13 -0
- package/lib/components/AppItemStatic/renderAppItemStatic.js.map +1 -0
- package/lib/components/AppItemStatic/useAppItemStatic.js +31 -0
- package/lib/components/AppItemStatic/useAppItemStatic.js.map +1 -0
- package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.js +38 -0
- package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.js.map +1 -0
- package/lib/components/Hamburger/Hamburger.js +15 -0
- package/lib/components/Hamburger/Hamburger.js.map +1 -0
- package/lib/components/Hamburger/Hamburger.types.js +3 -0
- package/lib/components/Hamburger/Hamburger.types.js.map +1 -0
- package/lib/components/Hamburger/index.js +3 -0
- package/lib/components/Hamburger/index.js.map +1 -0
- package/lib/components/Hamburger/useHamburger.js +15 -0
- package/lib/components/Hamburger/useHamburger.js.map +1 -0
- package/lib/components/Hamburger/useHamburgerStyles.styles.js +40 -0
- package/lib/components/Hamburger/useHamburgerStyles.styles.js.map +1 -0
- package/lib/components/Nav/Nav.js +14 -0
- package/lib/components/Nav/Nav.js.map +1 -0
- package/lib/components/Nav/Nav.types.js +1 -0
- package/lib/components/Nav/Nav.types.js.map +1 -0
- package/lib/components/Nav/index.js +4 -0
- package/lib/components/Nav/index.js.map +1 -0
- package/lib/components/Nav/renderNav.js +10 -0
- package/lib/components/Nav/renderNav.js.map +1 -0
- package/lib/components/Nav/useNav.js +134 -0
- package/lib/components/Nav/useNav.js.map +1 -0
- package/lib/components/Nav/useNavStyles.styles.js +27 -0
- package/lib/components/Nav/useNavStyles.styles.js.map +1 -0
- package/lib/components/NavCategory/NavCategory.js +12 -0
- package/lib/components/NavCategory/NavCategory.js.map +1 -0
- package/lib/components/NavCategory/NavCategory.types.js +1 -0
- package/lib/components/NavCategory/NavCategory.types.js.map +1 -0
- package/lib/components/NavCategory/index.js +3 -0
- package/lib/components/NavCategory/index.js.map +1 -0
- package/lib/components/NavCategory/renderNavCategory.js +9 -0
- package/lib/components/NavCategory/renderNavCategory.js.map +1 -0
- package/lib/components/NavCategory/useNavCategory.js +20 -0
- package/lib/components/NavCategory/useNavCategory.js.map +1 -0
- package/lib/components/NavCategoryContext.js +11 -0
- package/lib/components/NavCategoryContext.js.map +1 -0
- package/lib/components/NavCategoryItem/NavCategoryItem.js +18 -0
- package/lib/components/NavCategoryItem/NavCategoryItem.js.map +1 -0
- package/lib/components/NavCategoryItem/NavCategoryItem.types.js +3 -0
- package/lib/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -0
- package/lib/components/NavCategoryItem/index.js +4 -0
- package/lib/components/NavCategoryItem/index.js.map +1 -0
- package/lib/components/NavCategoryItem/renderNavCategoryItem.js +18 -0
- package/lib/components/NavCategoryItem/renderNavCategoryItem.js.map +1 -0
- package/lib/components/NavCategoryItem/useNavCategoryItem.js +58 -0
- package/lib/components/NavCategoryItem/useNavCategoryItem.js.map +1 -0
- package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js +60 -0
- package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -0
- package/lib/components/NavCategoryItemContext.js +10 -0
- package/lib/components/NavCategoryItemContext.js.map +1 -0
- package/lib/components/NavContext.js +30 -0
- package/lib/components/NavContext.js.map +1 -0
- package/lib/components/NavContext.types.js +1 -0
- package/lib/components/NavContext.types.js.map +1 -0
- package/lib/components/NavDivider/NavDivider.js +15 -0
- package/lib/components/NavDivider/NavDivider.js.map +1 -0
- package/lib/components/NavDivider/NavDivider.types.js +3 -0
- package/lib/components/NavDivider/NavDivider.types.js.map +1 -0
- package/lib/components/NavDivider/index.js +3 -0
- package/lib/components/NavDivider/index.js.map +1 -0
- package/lib/components/NavDivider/useNavDivider.js +16 -0
- package/lib/components/NavDivider/useNavDivider.js.map +1 -0
- package/lib/components/NavDivider/useNavDividerStyles.styles.js +27 -0
- package/lib/components/NavDivider/useNavDividerStyles.styles.js.map +1 -0
- package/lib/components/NavDrawer/NavDrawer.js +18 -0
- package/lib/components/NavDrawer/NavDrawer.js.map +1 -0
- package/lib/components/NavDrawer/NavDrawer.types.js +3 -0
- package/lib/components/NavDrawer/NavDrawer.types.js.map +1 -0
- package/lib/components/NavDrawer/index.js +4 -0
- package/lib/components/NavDrawer/index.js.map +1 -0
- package/lib/components/NavDrawer/renderNavDrawer.js +10 -0
- package/lib/components/NavDrawer/renderNavDrawer.js.map +1 -0
- package/lib/components/NavDrawer/useNavDrawer.js +47 -0
- package/lib/components/NavDrawer/useNavDrawer.js.map +1 -0
- package/lib/components/NavDrawer/useNavDrawerStyles.styles.js +32 -0
- package/lib/components/NavDrawer/useNavDrawerStyles.styles.js.map +1 -0
- package/lib/components/NavDrawerBody/NavDrawerBody.js +15 -0
- package/lib/components/NavDrawerBody/NavDrawerBody.js.map +1 -0
- package/lib/components/NavDrawerBody/NavDrawerBody.types.js +3 -0
- package/lib/components/NavDrawerBody/NavDrawerBody.types.js.map +1 -0
- package/lib/components/NavDrawerBody/index.js +3 -0
- package/lib/components/NavDrawerBody/index.js.map +1 -0
- package/lib/components/NavDrawerBody/useNavDrawerBody.js +13 -0
- package/lib/components/NavDrawerBody/useNavDrawerBody.js.map +1 -0
- package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js +39 -0
- package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js.map +1 -0
- package/lib/components/NavDrawerFooter/NavDrawerFooter.js +15 -0
- package/lib/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -0
- package/lib/components/NavDrawerFooter/NavDrawerFooter.types.js +3 -0
- package/lib/components/NavDrawerFooter/NavDrawerFooter.types.js.map +1 -0
- package/lib/components/NavDrawerFooter/index.js +3 -0
- package/lib/components/NavDrawerFooter/index.js.map +1 -0
- package/lib/components/NavDrawerFooter/useNavDrawerFooter.js +13 -0
- package/lib/components/NavDrawerFooter/useNavDrawerFooter.js.map +1 -0
- package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js +36 -0
- package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js.map +1 -0
- package/lib/components/NavDrawerHeader/NavDrawerHeader.js +15 -0
- package/lib/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -0
- package/lib/components/NavDrawerHeader/NavDrawerHeader.types.js +3 -0
- package/lib/components/NavDrawerHeader/NavDrawerHeader.types.js.map +1 -0
- package/lib/components/NavDrawerHeader/index.js +3 -0
- package/lib/components/NavDrawerHeader/index.js.map +1 -0
- package/lib/components/NavDrawerHeader/useNavDrawerHeader.js +13 -0
- package/lib/components/NavDrawerHeader/useNavDrawerHeader.js.map +1 -0
- package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js +38 -0
- package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js.map +1 -0
- package/lib/components/NavItem/NavItem.js +16 -0
- package/lib/components/NavItem/NavItem.js.map +1 -0
- package/lib/components/NavItem/NavItem.types.js +3 -0
- package/lib/components/NavItem/NavItem.types.js.map +1 -0
- package/lib/components/NavItem/index.js +4 -0
- package/lib/components/NavItem/index.js.map +1 -0
- package/lib/components/NavItem/renderNavItem.js +13 -0
- package/lib/components/NavItem/renderNavItem.js.map +1 -0
- package/lib/components/NavItem/useNavItem.js +70 -0
- package/lib/components/NavItem/useNavItem.js.map +1 -0
- package/lib/components/NavItem/useNavItemStyles.styles.js +27 -0
- package/lib/components/NavItem/useNavItemStyles.styles.js.map +1 -0
- package/lib/components/NavSectionHeader/NavSectionHeader.js +15 -0
- package/lib/components/NavSectionHeader/NavSectionHeader.js.map +1 -0
- package/lib/components/NavSectionHeader/NavSectionHeader.types.js +4 -0
- package/lib/components/NavSectionHeader/NavSectionHeader.types.js.map +1 -0
- package/lib/components/NavSectionHeader/index.js +4 -0
- package/lib/components/NavSectionHeader/index.js.map +1 -0
- package/lib/components/NavSectionHeader/renderNavSectionHeader.js +8 -0
- package/lib/components/NavSectionHeader/renderNavSectionHeader.js.map +1 -0
- package/lib/components/NavSectionHeader/useNavSectionHeader.js +23 -0
- package/lib/components/NavSectionHeader/useNavSectionHeader.js.map +1 -0
- package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js +34 -0
- package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js.map +1 -0
- package/lib/components/NavSubItem/NavSubItem.js +16 -0
- package/lib/components/NavSubItem/NavSubItem.js.map +1 -0
- package/lib/components/NavSubItem/NavSubItem.types.js +3 -0
- package/lib/components/NavSubItem/NavSubItem.types.js.map +1 -0
- package/lib/components/NavSubItem/index.js +4 -0
- package/lib/components/NavSubItem/index.js.map +1 -0
- package/lib/components/NavSubItem/renderNavSubItem.js +8 -0
- package/lib/components/NavSubItem/renderNavSubItem.js.map +1 -0
- package/lib/components/NavSubItem/useNavSubItem.js +69 -0
- package/lib/components/NavSubItem/useNavSubItem.js.map +1 -0
- package/lib/components/NavSubItem/useNavSubItemStyles.styles.js +39 -0
- package/lib/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -0
- package/lib/components/NavSubItemContext.js +11 -0
- package/lib/components/NavSubItemContext.js.map +1 -0
- package/lib/components/NavSubItemGroup/NavSubItemGroup.js +16 -0
- package/lib/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -0
- package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js +3 -0
- package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -0
- package/lib/components/NavSubItemGroup/index.js +4 -0
- package/lib/components/NavSubItemGroup/index.js.map +1 -0
- package/lib/components/NavSubItemGroup/renderNavSubItemGroup.js +10 -0
- package/lib/components/NavSubItemGroup/renderNavSubItemGroup.js.map +1 -0
- package/lib/components/NavSubItemGroup/useNavSubItemGroup.js +29 -0
- package/lib/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -0
- package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +22 -0
- package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -0
- package/lib/components/SplitNavItem/SplitNavItem.js +20 -0
- package/lib/components/SplitNavItem/SplitNavItem.js.map +1 -0
- package/lib/components/SplitNavItem/SplitNavItem.types.js +3 -0
- package/lib/components/SplitNavItem/SplitNavItem.types.js.map +1 -0
- package/lib/components/SplitNavItem/index.js +4 -0
- package/lib/components/SplitNavItem/index.js.map +1 -0
- package/lib/components/SplitNavItem/renderSplitNavItem.js +24 -0
- package/lib/components/SplitNavItem/renderSplitNavItem.js.map +1 -0
- package/lib/components/SplitNavItem/useSplitNavItem.js +101 -0
- package/lib/components/SplitNavItem/useSplitNavItem.js.map +1 -0
- package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js +98 -0
- package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -0
- package/lib/components/sharedNavStyles.styles.js +147 -0
- package/lib/components/sharedNavStyles.styles.js.map +1 -0
- package/lib/components/useNavCategoryContextValues_unstable.js +14 -0
- package/lib/components/useNavCategoryContextValues_unstable.js.map +1 -0
- package/lib/components/useNavCategoryItemContextValues_unstable.js +14 -0
- package/lib/components/useNavCategoryItemContextValues_unstable.js.map +1 -0
- package/lib/components/useNavContextValues.js +30 -0
- package/lib/components/useNavContextValues.js.map +1 -0
- package/lib/index.js +22 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/AppItem.js +31 -0
- package/lib-commonjs/AppItem.js.map +1 -0
- package/lib-commonjs/AppItemStatic.js +28 -0
- package/lib-commonjs/AppItemStatic.js.map +1 -0
- package/lib-commonjs/Hamburger.js +25 -0
- package/lib-commonjs/Hamburger.js.map +1 -0
- package/lib-commonjs/Nav.js +51 -0
- package/lib-commonjs/Nav.js.map +1 -0
- package/lib-commonjs/NavCategory.js +22 -0
- package/lib-commonjs/NavCategory.js.map +1 -0
- package/lib-commonjs/NavDivider.js +25 -0
- package/lib-commonjs/NavDivider.js.map +1 -0
- package/lib-commonjs/NavDrawer.js +28 -0
- package/lib-commonjs/NavDrawer.js.map +1 -0
- package/lib-commonjs/NavDrawerBody.js +25 -0
- package/lib-commonjs/NavDrawerBody.js.map +1 -0
- package/lib-commonjs/NavDrawerFooter.js +25 -0
- package/lib-commonjs/NavDrawerFooter.js.map +1 -0
- package/lib-commonjs/NavDrawerHeader.js +25 -0
- package/lib-commonjs/NavDrawerHeader.js.map +1 -0
- package/lib-commonjs/NavItem.js +28 -0
- package/lib-commonjs/NavItem.js.map +1 -0
- package/lib-commonjs/NavSectionHeader.js +28 -0
- package/lib-commonjs/NavSectionHeader.js.map +1 -0
- package/lib-commonjs/NavSubItem.js +28 -0
- package/lib-commonjs/NavSubItem.js.map +1 -0
- package/lib-commonjs/NavSubItemGroup.js +28 -0
- package/lib-commonjs/NavSubItemGroup.js.map +1 -0
- package/lib-commonjs/SplitNavItem.js +28 -0
- package/lib-commonjs/SplitNavItem.js.map +1 -0
- package/lib-commonjs/components/AppItem/AppItem.js +29 -0
- package/lib-commonjs/components/AppItem/AppItem.js.map +1 -0
- package/lib-commonjs/components/AppItem/AppItem.types.js +6 -0
- package/lib-commonjs/components/AppItem/AppItem.types.js.map +1 -0
- package/lib-commonjs/components/AppItem/index.js +34 -0
- package/lib-commonjs/components/AppItem/index.js.map +1 -0
- package/lib-commonjs/components/AppItem/renderAppItem.js +21 -0
- package/lib-commonjs/components/AppItem/renderAppItem.js.map +1 -0
- package/lib-commonjs/components/AppItem/useAppItem.js +40 -0
- package/lib-commonjs/components/AppItem/useAppItem.js.map +1 -0
- package/lib-commonjs/components/AppItem/useAppItemStyles.styles.js +133 -0
- package/lib-commonjs/components/AppItem/useAppItemStyles.styles.js.map +1 -0
- package/lib-commonjs/components/AppItemStatic/AppItemStatic.js +29 -0
- package/lib-commonjs/components/AppItemStatic/AppItemStatic.js.map +1 -0
- package/lib-commonjs/components/AppItemStatic/AppItemStatic.types.js +6 -0
- package/lib-commonjs/components/AppItemStatic/AppItemStatic.types.js.map +1 -0
- package/lib-commonjs/components/AppItemStatic/index.js +31 -0
- package/lib-commonjs/components/AppItemStatic/index.js.map +1 -0
- package/lib-commonjs/components/AppItemStatic/renderAppItemStatic.js +21 -0
- package/lib-commonjs/components/AppItemStatic/renderAppItemStatic.js.map +1 -0
- package/lib-commonjs/components/AppItemStatic/useAppItemStatic.js +34 -0
- package/lib-commonjs/components/AppItemStatic/useAppItemStatic.js.map +1 -0
- package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.js +55 -0
- package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Hamburger/Hamburger.js +24 -0
- package/lib-commonjs/components/Hamburger/Hamburger.js.map +1 -0
- package/lib-commonjs/components/Hamburger/Hamburger.types.js +6 -0
- package/lib-commonjs/components/Hamburger/Hamburger.types.js.map +1 -0
- package/lib-commonjs/components/Hamburger/index.js +27 -0
- package/lib-commonjs/components/Hamburger/index.js.map +1 -0
- package/lib-commonjs/components/Hamburger/useHamburger.js +21 -0
- package/lib-commonjs/components/Hamburger/useHamburger.js.map +1 -0
- package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.js +69 -0
- package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Nav/Nav.js +23 -0
- package/lib-commonjs/components/Nav/Nav.js.map +1 -0
- package/lib-commonjs/components/Nav/Nav.types.js +6 -0
- package/lib-commonjs/components/Nav/Nav.types.js.map +1 -0
- package/lib-commonjs/components/Nav/index.js +31 -0
- package/lib-commonjs/components/Nav/index.js.map +1 -0
- package/lib-commonjs/components/Nav/renderNav.js +20 -0
- package/lib-commonjs/components/Nav/renderNav.js.map +1 -0
- package/lib-commonjs/components/Nav/useNav.js +137 -0
- package/lib-commonjs/components/Nav/useNav.js.map +1 -0
- package/lib-commonjs/components/Nav/useNavStyles.styles.js +43 -0
- package/lib-commonjs/components/Nav/useNavStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavCategory/NavCategory.js +21 -0
- package/lib-commonjs/components/NavCategory/NavCategory.js.map +1 -0
- package/lib-commonjs/components/NavCategory/NavCategory.types.js +6 -0
- package/lib-commonjs/components/NavCategory/NavCategory.types.js.map +1 -0
- package/lib-commonjs/components/NavCategory/index.js +24 -0
- package/lib-commonjs/components/NavCategory/index.js.map +1 -0
- package/lib-commonjs/components/NavCategory/renderNavCategory.js +18 -0
- package/lib-commonjs/components/NavCategory/renderNavCategory.js.map +1 -0
- package/lib-commonjs/components/NavCategory/useNavCategory.js +23 -0
- package/lib-commonjs/components/NavCategory/useNavCategory.js.map +1 -0
- package/lib-commonjs/components/NavCategoryContext.js +30 -0
- package/lib-commonjs/components/NavCategoryContext.js.map +1 -0
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.js +25 -0
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.js.map +1 -0
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.js +6 -0
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -0
- package/lib-commonjs/components/NavCategoryItem/index.js +31 -0
- package/lib-commonjs/components/NavCategoryItem/index.js.map +1 -0
- package/lib-commonjs/components/NavCategoryItem/renderNavCategoryItem.js +26 -0
- package/lib-commonjs/components/NavCategoryItem/renderNavCategoryItem.js.map +1 -0
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js +61 -0
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js.map +1 -0
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js +83 -0
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -0
- package/lib-commonjs/components/NavCategoryItemContext.js +29 -0
- package/lib-commonjs/components/NavCategoryItemContext.js.map +1 -0
- package/lib-commonjs/components/NavContext.js +49 -0
- package/lib-commonjs/components/NavContext.js.map +1 -0
- package/lib-commonjs/components/NavContext.types.js +6 -0
- package/lib-commonjs/components/NavContext.types.js.map +1 -0
- package/lib-commonjs/components/NavDivider/NavDivider.js +24 -0
- package/lib-commonjs/components/NavDivider/NavDivider.js.map +1 -0
- package/lib-commonjs/components/NavDivider/NavDivider.types.js +6 -0
- package/lib-commonjs/components/NavDivider/NavDivider.types.js.map +1 -0
- package/lib-commonjs/components/NavDivider/index.js +27 -0
- package/lib-commonjs/components/NavDivider/index.js.map +1 -0
- package/lib-commonjs/components/NavDivider/useNavDivider.js +19 -0
- package/lib-commonjs/components/NavDivider/useNavDivider.js.map +1 -0
- package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.js +45 -0
- package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavDrawer/NavDrawer.js +26 -0
- package/lib-commonjs/components/NavDrawer/NavDrawer.js.map +1 -0
- package/lib-commonjs/components/NavDrawer/NavDrawer.types.js +6 -0
- package/lib-commonjs/components/NavDrawer/NavDrawer.types.js.map +1 -0
- package/lib-commonjs/components/NavDrawer/index.js +31 -0
- package/lib-commonjs/components/NavDrawer/index.js.map +1 -0
- package/lib-commonjs/components/NavDrawer/renderNavDrawer.js +20 -0
- package/lib-commonjs/components/NavDrawer/renderNavDrawer.js.map +1 -0
- package/lib-commonjs/components/NavDrawer/useNavDrawer.js +50 -0
- package/lib-commonjs/components/NavDrawer/useNavDrawer.js.map +1 -0
- package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.js +46 -0
- package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.js +24 -0
- package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.js.map +1 -0
- package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.types.js +6 -0
- package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.types.js.map +1 -0
- package/lib-commonjs/components/NavDrawerBody/index.js +27 -0
- package/lib-commonjs/components/NavDrawerBody/index.js.map +1 -0
- package/lib-commonjs/components/NavDrawerBody/useNavDrawerBody.js +16 -0
- package/lib-commonjs/components/NavDrawerBody/useNavDrawerBody.js.map +1 -0
- package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js +67 -0
- package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.js +24 -0
- package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -0
- package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.types.js +6 -0
- package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.types.js.map +1 -0
- package/lib-commonjs/components/NavDrawerFooter/index.js +27 -0
- package/lib-commonjs/components/NavDrawerFooter/index.js.map +1 -0
- package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooter.js +16 -0
- package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooter.js.map +1 -0
- package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js +56 -0
- package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.js +24 -0
- package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -0
- package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.types.js +6 -0
- package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.types.js.map +1 -0
- package/lib-commonjs/components/NavDrawerHeader/index.js +27 -0
- package/lib-commonjs/components/NavDrawerHeader/index.js.map +1 -0
- package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeader.js +16 -0
- package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeader.js.map +1 -0
- package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js +61 -0
- package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavItem/NavItem.js +24 -0
- package/lib-commonjs/components/NavItem/NavItem.js.map +1 -0
- package/lib-commonjs/components/NavItem/NavItem.types.js +6 -0
- package/lib-commonjs/components/NavItem/NavItem.types.js.map +1 -0
- package/lib-commonjs/components/NavItem/index.js +31 -0
- package/lib-commonjs/components/NavItem/index.js.map +1 -0
- package/lib-commonjs/components/NavItem/renderNavItem.js +21 -0
- package/lib-commonjs/components/NavItem/renderNavItem.js.map +1 -0
- package/lib-commonjs/components/NavItem/useNavItem.js +73 -0
- package/lib-commonjs/components/NavItem/useNavItem.js.map +1 -0
- package/lib-commonjs/components/NavItem/useNavItemStyles.styles.js +38 -0
- package/lib-commonjs/components/NavItem/useNavItemStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.js +24 -0
- package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.js.map +1 -0
- package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.types.js +8 -0
- package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.types.js.map +1 -0
- package/lib-commonjs/components/NavSectionHeader/index.js +31 -0
- package/lib-commonjs/components/NavSectionHeader/index.js.map +1 -0
- package/lib-commonjs/components/NavSectionHeader/renderNavSectionHeader.js +16 -0
- package/lib-commonjs/components/NavSectionHeader/renderNavSectionHeader.js.map +1 -0
- package/lib-commonjs/components/NavSectionHeader/useNavSectionHeader.js +26 -0
- package/lib-commonjs/components/NavSectionHeader/useNavSectionHeader.js.map +1 -0
- package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js +56 -0
- package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavSubItem/NavSubItem.js +24 -0
- package/lib-commonjs/components/NavSubItem/NavSubItem.js.map +1 -0
- package/lib-commonjs/components/NavSubItem/NavSubItem.types.js +6 -0
- package/lib-commonjs/components/NavSubItem/NavSubItem.types.js.map +1 -0
- package/lib-commonjs/components/NavSubItem/index.js +31 -0
- package/lib-commonjs/components/NavSubItem/index.js.map +1 -0
- package/lib-commonjs/components/NavSubItem/renderNavSubItem.js +16 -0
- package/lib-commonjs/components/NavSubItem/renderNavSubItem.js.map +1 -0
- package/lib-commonjs/components/NavSubItem/useNavSubItem.js +72 -0
- package/lib-commonjs/components/NavSubItem/useNavSubItem.js.map +1 -0
- package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js +53 -0
- package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -0
- package/lib-commonjs/components/NavSubItemContext.js +30 -0
- package/lib-commonjs/components/NavSubItemContext.js.map +1 -0
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.js +24 -0
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -0
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.js +6 -0
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -0
- package/lib-commonjs/components/NavSubItemGroup/index.js +31 -0
- package/lib-commonjs/components/NavSubItemGroup/index.js.map +1 -0
- package/lib-commonjs/components/NavSubItemGroup/renderNavSubItemGroup.js +18 -0
- package/lib-commonjs/components/NavSubItemGroup/renderNavSubItemGroup.js.map +1 -0
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js +32 -0
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -0
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +35 -0
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -0
- package/lib-commonjs/components/SplitNavItem/SplitNavItem.js +29 -0
- package/lib-commonjs/components/SplitNavItem/SplitNavItem.js.map +1 -0
- package/lib-commonjs/components/SplitNavItem/SplitNavItem.types.js +6 -0
- package/lib-commonjs/components/SplitNavItem/SplitNavItem.types.js.map +1 -0
- package/lib-commonjs/components/SplitNavItem/index.js +31 -0
- package/lib-commonjs/components/SplitNavItem/index.js.map +1 -0
- package/lib-commonjs/components/SplitNavItem/renderSplitNavItem.js +32 -0
- package/lib-commonjs/components/SplitNavItem/renderSplitNavItem.js.map +1 -0
- package/lib-commonjs/components/SplitNavItem/useSplitNavItem.js +104 -0
- package/lib-commonjs/components/SplitNavItem/useSplitNavItem.js.map +1 -0
- package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js +149 -0
- package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -0
- package/lib-commonjs/components/sharedNavStyles.styles.js +242 -0
- package/lib-commonjs/components/sharedNavStyles.styles.js.map +1 -0
- package/lib-commonjs/components/useNavCategoryContextValues_unstable.js +25 -0
- package/lib-commonjs/components/useNavCategoryContextValues_unstable.js.map +1 -0
- package/lib-commonjs/components/useNavCategoryItemContextValues_unstable.js +25 -0
- package/lib-commonjs/components/useNavCategoryItemContextValues_unstable.js.map +1 -0
- package/lib-commonjs/components/useNavContextValues.js +41 -0
- package/lib-commonjs/components/useNavContextValues.js.map +1 -0
- package/lib-commonjs/index.js +280 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
const navContextDefaultValue = {
|
|
3
|
+
selectedValue: undefined,
|
|
4
|
+
selectedCategoryValue: undefined,
|
|
5
|
+
onRegister: ()=>{
|
|
6
|
+
/* noop */ },
|
|
7
|
+
onUnregister: ()=>{
|
|
8
|
+
/* noop */ },
|
|
9
|
+
onSelect: ()=>{
|
|
10
|
+
/* noop */ },
|
|
11
|
+
getRegisteredNavItems: ()=>{
|
|
12
|
+
return {
|
|
13
|
+
registeredNavItems: {}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
onRequestNavCategoryItemToggle () {
|
|
17
|
+
/* noop */ },
|
|
18
|
+
/**
|
|
19
|
+
* The list of opened panels by index
|
|
20
|
+
*/ openCategories: [],
|
|
21
|
+
/**
|
|
22
|
+
* Indicates if Nav supports multiple open Categories at the same time.
|
|
23
|
+
*/ multiple: true,
|
|
24
|
+
/**
|
|
25
|
+
* Indicates the vertical density and density of the Nav.
|
|
26
|
+
*/ density: 'medium'
|
|
27
|
+
};
|
|
28
|
+
const NavContext = React.createContext(undefined);
|
|
29
|
+
export const NavProvider = NavContext.Provider;
|
|
30
|
+
export const useNavContext_unstable = ()=>React.useContext(NavContext) || navContextDefaultValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavContext.ts"],"sourcesContent":["import * as React from 'react';\nimport { NavContextValue } from './NavContext.types';\n\nconst navContextDefaultValue: NavContextValue = {\n selectedValue: undefined,\n selectedCategoryValue: undefined,\n onRegister: () => {\n /* noop */\n },\n onUnregister: () => {\n /* noop */\n },\n onSelect: () => {\n /* noop */\n },\n getRegisteredNavItems: () => {\n return {\n registeredNavItems: {},\n };\n },\n onRequestNavCategoryItemToggle() {\n /* noop */\n },\n /**\n * The list of opened panels by index\n */\n openCategories: [],\n\n /**\n * Indicates if Nav supports multiple open Categories at the same time.\n */\n multiple: true,\n\n /**\n * Indicates the vertical density and density of the Nav.\n */\n density: 'medium',\n};\n\nconst NavContext = React.createContext<NavContextValue | undefined>(undefined);\n\nexport const NavProvider = NavContext.Provider;\n\nexport const useNavContext_unstable = () => React.useContext(NavContext) || navContextDefaultValue;\n"],"names":["React","navContextDefaultValue","selectedValue","undefined","selectedCategoryValue","onRegister","onUnregister","onSelect","getRegisteredNavItems","registeredNavItems","onRequestNavCategoryItemToggle","openCategories","multiple","density","NavContext","createContext","NavProvider","Provider","useNavContext_unstable","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAG/B,MAAMC,yBAA0C;IAC9CC,eAAeC;IACfC,uBAAuBD;IACvBE,YAAY;IACV,QAAQ,GACV;IACAC,cAAc;IACZ,QAAQ,GACV;IACAC,UAAU;IACR,QAAQ,GACV;IACAC,uBAAuB;QACrB,OAAO;YACLC,oBAAoB,CAAC;QACvB;IACF;IACAC;IACE,QAAQ,GACV;IACA;;GAEC,GACDC,gBAAgB,EAAE;IAElB;;GAEC,GACDC,UAAU;IAEV;;GAEC,GACDC,SAAS;AACX;AAEA,MAAMC,aAAad,MAAMe,aAAa,CAA8BZ;AAEpE,OAAO,MAAMa,cAAcF,WAAWG,QAAQ,CAAC;AAE/C,OAAO,MAAMC,yBAAyB,IAAMlB,MAAMmB,UAAU,CAACL,eAAeb,uBAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavContext.types.ts"],"sourcesContent":["import * as React from 'react';\nimport { EventHandler } from '@fluentui/react-utilities';\n\nimport type { NavProps, OnNavItemSelectData } from './Nav/Nav.types';\n\nexport type NavContextValue = Pick<\n NavProps,\n 'onNavItemSelect' | 'selectedValue' | 'selectedCategoryValue' | 'density'\n> & {\n /** A callback to allow a navItem to register itself with the navItem list. */\n onRegister: RegisterNavItemEventHandler;\n\n /** A callback to allow a navItem to unregister itself with the navItem list. */\n onUnregister: RegisterNavItemEventHandler;\n /**\n * A callback to allow a navItem to select itself when pressed.\n */\n onSelect: EventHandler<OnNavItemSelectData>;\n /**\n * Gets the registered navItem data along with current and previous selected values.\n */\n getRegisteredNavItems: () => {\n selectedValue?: NavItemValue;\n selectedCategoryValue?: NavItemValue;\n previousSelectedValue?: NavItemValue;\n registeredNavItems: Record<string, NavItemRegisterData>;\n };\n /**\n * Callback used by NavCategoryItem to request a change on it's own opened state\n * Should be used to toggle NavCategoryItem's open state\n */\n onRequestNavCategoryItemToggle: EventHandler<OnNavItemSelectData>;\n\n /**\n * The list of opened panels by index\n */\n openCategories: NavItemValue[];\n\n /**\n * Indicates if Nav supports multiple open Categories at the same time.\n * @default true, indicating that multiple categories can be open at the same time.\n */\n multiple: boolean;\n};\n\n/**\n * Any value that identifies a specific Item.\n */\nexport type NavItemValue = string;\n\n/**\n * Context values used in rendering navItemList.\n */\nexport type NavContextValues = {\n /**\n * The context of the navItem list available to each navItem.\n */\n nav: NavContextValue;\n};\n\nexport type NavItemRegisterData = {\n /**\n * The value of the navItem.\n */\n value: NavItemValue;\n\n /**\n * The reference to the navItem HTML element.\n */\n ref: React.RefObject<HTMLElement>;\n};\n\nexport type RegisterNavItemEventHandler = (data: NavItemRegisterData) => void;\n"],"names":["React"],"rangeMappings":"","mappings":"AAAA,YAAYA,WAAW,QAAQ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useNavDivider_unstable } from './useNavDivider';
|
|
3
|
+
import { useNavDividerStyles_unstable } from './useNavDividerStyles.styles';
|
|
4
|
+
import { renderDivider_unstable } from '@fluentui/react-divider';
|
|
5
|
+
/**
|
|
6
|
+
* NavDivider component - TODO: add more docs
|
|
7
|
+
*/ export const NavDivider = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
|
+
const state = useNavDivider_unstable(props, ref);
|
|
9
|
+
useNavDividerStyles_unstable(state);
|
|
10
|
+
// TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
|
|
11
|
+
// https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
|
|
12
|
+
// useCustomStyleHook_unstable('useNavDividerStyles_unstable')(state);
|
|
13
|
+
return renderDivider_unstable(state);
|
|
14
|
+
});
|
|
15
|
+
NavDivider.displayName = 'NavDivider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDivider/NavDivider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useNavDivider_unstable } from './useNavDivider';\nimport { useNavDividerStyles_unstable } from './useNavDividerStyles.styles';\nimport { renderDivider_unstable } from '@fluentui/react-divider';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavDividerProps } from './NavDivider.types';\n\n/**\n * NavDivider component - TODO: add more docs\n */\nexport const NavDivider: ForwardRefComponent<NavDividerProps> = React.forwardRef((props, ref) => {\n const state = useNavDivider_unstable(props, ref);\n\n useNavDividerStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDividerStyles_unstable')(state);\n return renderDivider_unstable(state);\n});\n\nNavDivider.displayName = 'NavDivider';\n"],"names":["React","useNavDivider_unstable","useNavDividerStyles_unstable","renderDivider_unstable","NavDivider","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,4BAA4B,QAAQ,+BAA+B;AAC5E,SAASC,sBAAsB,QAAQ,0BAA0B;AAKjE;;CAEC,GACD,OAAO,MAAMC,2BAAmDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,QAAQP,uBAAuBK,OAAOC;IAE5CL,6BAA6BM;IAC7B,8HAA8H;IAC9H,wGAAwG;IACxG,sEAAsE;IACtE,OAAOL,uBAAuBK;AAChC,GAAG;AAEHJ,WAAWK,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDivider/NavDivider.types.ts"],"sourcesContent":["import type { DividerProps, DividerState } from '@fluentui/react-divider';\n\n/**\n * NavDivider Props\n */\nexport type NavDividerProps = DividerProps;\n\n/**\n * State used in rendering NavDivider\n */\nexport type NavDividerState = DividerState;\n"],"names":[],"rangeMappings":";;","mappings":"AAOA;;CAEC,GACD,WAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDivider/index.ts"],"sourcesContent":["export { NavDivider } from './NavDivider';\nexport type { NavDividerProps, NavDividerState } from './NavDivider.types';\nexport { useNavDivider_unstable } from './useNavDivider';\nexport { navDividerClassNames, useNavDividerStyles_unstable } from './useNavDividerStyles.styles';\n"],"names":["NavDivider","useNavDivider_unstable","navDividerClassNames","useNavDividerStyles_unstable"],"rangeMappings":";;","mappings":"AAAA,SAASA,UAAU,QAAQ,eAAe;AAE1C,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,oBAAoB,EAAEC,4BAA4B,QAAQ,+BAA+B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDivider_unstable } from '@fluentui/react-divider';
|
|
3
|
+
/**
|
|
4
|
+
* Create the state required to render NavDivider.
|
|
5
|
+
*
|
|
6
|
+
* The returned state can be modified with hooks such as useNavDividerStyles_unstable,
|
|
7
|
+
* before being passed to renderNavDivider_unstable.
|
|
8
|
+
*
|
|
9
|
+
* @param props - props from this instance of NavDivider
|
|
10
|
+
* @param ref - reference to root HTMLDivElement of NavDivider
|
|
11
|
+
*/ export const useNavDivider_unstable = (props, ref)=>{
|
|
12
|
+
return useDivider_unstable({
|
|
13
|
+
appearance: 'strong',
|
|
14
|
+
...props
|
|
15
|
+
}, ref);
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDivider/useNavDivider.ts"],"sourcesContent":["import * as React from 'react';\nimport type { NavDividerProps, NavDividerState } from './NavDivider.types';\nimport { useDivider_unstable } from '@fluentui/react-divider';\n\n/**\n * Create the state required to render NavDivider.\n *\n * The returned state can be modified with hooks such as useNavDividerStyles_unstable,\n * before being passed to renderNavDivider_unstable.\n *\n * @param props - props from this instance of NavDivider\n * @param ref - reference to root HTMLDivElement of NavDivider\n */\nexport const useNavDivider_unstable = (props: NavDividerProps, ref: React.Ref<HTMLElement>): NavDividerState => {\n return useDivider_unstable({ appearance: 'strong', ...props }, ref);\n};\n"],"names":["React","useDivider_unstable","useNavDivider_unstable","props","ref","appearance"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,mBAAmB,QAAQ,0BAA0B;AAE9D;;;;;;;;CAQC,GACD,OAAO,MAAMC,yBAAyB,CAACC,OAAwBC;IAC7D,OAAOH,oBAAoB;QAAEI,YAAY;QAAU,GAAGF,KAAK;IAAC,GAAGC;AACjE,EAAE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __styles, mergeClasses } from '@griffel/react';
|
|
2
|
+
import { useDividerStyles_unstable } from '@fluentui/react-divider';
|
|
3
|
+
export const navDividerClassNames = {
|
|
4
|
+
root: 'fui-NavDivider',
|
|
5
|
+
wrapper: 'fui-NavDivider__wrapper'
|
|
6
|
+
};
|
|
7
|
+
const useStyles = /*#__PURE__*/__styles({
|
|
8
|
+
root: {
|
|
9
|
+
Bh6795r: "f1jhi6b8",
|
|
10
|
+
B6of3ja: "fvjh0tl",
|
|
11
|
+
jrapky: "fd1gkq"
|
|
12
|
+
}
|
|
13
|
+
}, {
|
|
14
|
+
d: [".f1jhi6b8{flex-grow:0;}", ".fvjh0tl{margin-top:4px;}", ".fd1gkq{margin-bottom:4px;}"]
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Apply styling to the NavDivider slots based on the state
|
|
18
|
+
*/
|
|
19
|
+
export const useNavDividerStyles_unstable = state => {
|
|
20
|
+
'use no memo';
|
|
21
|
+
|
|
22
|
+
const styles = useStyles();
|
|
23
|
+
state.root.className = mergeClasses(navDividerClassNames.root, styles.root, state.root.className);
|
|
24
|
+
state.wrapper.className = mergeClasses(navDividerClassNames.wrapper, state.wrapper.className);
|
|
25
|
+
useDividerStyles_unstable(state);
|
|
26
|
+
return state;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","useDividerStyles_unstable","navDividerClassNames","root","wrapper","useStyles","Bh6795r","B6of3ja","jrapky","d","useNavDividerStyles_unstable","state","styles","className"],"sources":["useNavDividerStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { useDividerStyles_unstable } from '@fluentui/react-divider';\nexport const navDividerClassNames = {\n root: 'fui-NavDivider',\n wrapper: 'fui-NavDivider__wrapper'\n};\nconst useStyles = makeStyles({\n root: {\n flexGrow: 0,\n marginTop: '4px',\n marginBottom: '4px'\n }\n});\n/**\n * Apply styling to the NavDivider slots based on the state\n */ export const useNavDividerStyles_unstable = (state)=>{\n 'use no memo';\n const styles = useStyles();\n state.root.className = mergeClasses(navDividerClassNames.root, styles.root, state.root.className);\n state.wrapper.className = mergeClasses(navDividerClassNames.wrapper, state.wrapper.className);\n useDividerStyles_unstable(state);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,yBAAyB,QAAQ,yBAAyB;AACnE,OAAO,MAAMC,oBAAoB,GAAG;EAChCC,IAAI,EAAE,gBAAgB;EACtBC,OAAO,EAAE;AACb,CAAC;AACD,MAAMC,SAAS,gBAAGN,QAAA;EAAAI,IAAA;IAAAG,OAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,CAMjB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,4BAA4B,GAAIC,KAAK,IAAG;EACrD,aAAa;;EACb,MAAMC,MAAM,GAAGP,SAAS,CAAC,CAAC;EAC1BM,KAAK,CAACR,IAAI,CAACU,SAAS,GAAGb,YAAY,CAACE,oBAAoB,CAACC,IAAI,EAAES,MAAM,CAACT,IAAI,EAAEQ,KAAK,CAACR,IAAI,CAACU,SAAS,CAAC;EACjGF,KAAK,CAACP,OAAO,CAACS,SAAS,GAAGb,YAAY,CAACE,oBAAoB,CAACE,OAAO,EAAEO,KAAK,CAACP,OAAO,CAACS,SAAS,CAAC;EAC7FZ,yBAAyB,CAACU,KAAK,CAAC;EAChC,OAAOA,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
3
|
+
import { useNavDrawer_unstable } from './useNavDrawer';
|
|
4
|
+
import { renderNavDrawer_unstable } from './renderNavDrawer';
|
|
5
|
+
import { useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';
|
|
6
|
+
import { useNavContextValues_unstable } from '../useNavContextValues';
|
|
7
|
+
/**
|
|
8
|
+
* NavDrawer component - TODO: add more docs
|
|
9
|
+
*/ export const NavDrawer = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
10
|
+
const state = useNavDrawer_unstable(props, ref);
|
|
11
|
+
const contextValues = useNavContextValues_unstable(state);
|
|
12
|
+
useNavDrawerStyles_unstable(state);
|
|
13
|
+
// TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
|
|
14
|
+
// https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
|
|
15
|
+
// useCustomStyleHook_unstable('useNavDrawerStyles_unstable')(state);
|
|
16
|
+
return renderNavDrawer_unstable(state, contextValues);
|
|
17
|
+
});
|
|
18
|
+
NavDrawer.displayName = 'NavDrawer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawer/NavDrawer.tsx"],"sourcesContent":["import * as React from 'react';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useNavDrawer_unstable } from './useNavDrawer';\nimport { renderNavDrawer_unstable } from './renderNavDrawer';\nimport { useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';\nimport { useNavContextValues_unstable } from '../useNavContextValues';\nimport { NavState } from '../Nav/Nav.types';\n\nimport type { NavDrawerProps } from './NavDrawer.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * NavDrawer component - TODO: add more docs\n */\nexport const NavDrawer: ForwardRefComponent<NavDrawerProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawer_unstable(props, ref);\n const contextValues = useNavContextValues_unstable(state as NavState);\n\n useNavDrawerStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDrawerStyles_unstable')(state);\n return renderNavDrawer_unstable(state, contextValues);\n});\n\nNavDrawer.displayName = 'NavDrawer';\n"],"names":["React","useNavDrawer_unstable","renderNavDrawer_unstable","useNavDrawerStyles_unstable","useNavContextValues_unstable","NavDrawer","forwardRef","props","ref","state","contextValues","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,iFAAiF;AACjF,SAASC,qBAAqB,QAAQ,iBAAiB;AACvD,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,2BAA2B,QAAQ,8BAA8B;AAC1E,SAASC,4BAA4B,QAAQ,yBAAyB;AAMtE;;CAEC,GACD,OAAO,MAAMC,0BAAiDL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,QAAQR,sBAAsBM,OAAOC;IAC3C,MAAME,gBAAgBN,6BAA6BK;IAEnDN,4BAA4BM;IAC5B,8HAA8H;IAC9H,wGAAwG;IACxG,qEAAqE;IACrE,OAAOP,yBAAyBO,OAAOC;AACzC,GAAG;AAEHL,UAAUM,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawer/NavDrawer.types.ts"],"sourcesContent":["import { DrawerProps, DrawerSlots, DrawerState } from '@fluentui/react-drawer';\nimport { ComponentProps } from '@fluentui/react-utilities';\nimport { NavProps } from '../Nav/Nav.types';\nimport { NavContextValue } from '../NavContext.types';\n\n/**\n * NavDrawer slots\n */\nexport type NavDrawerSlots = DrawerSlots;\n\n/**\n * NavDrawer Props\n */\nexport type NavDrawerProps = ComponentProps<NavDrawerSlots> &\n DrawerProps &\n NavProps & {\n /**\n * The component uses arrow navigation by default.\n * Setting this to true enables tab AND arrow navigation.\n * @default false\n */\n tabbable?: boolean;\n };\n\n/**\n * State used in rendering NavDrawer\n */\nexport type NavDrawerState = DrawerState &\n NavContextValue & {\n /**\n * Analagous to size from DrawerBaseProps.\n * Intended to be left unset in most cases.\n * If left unset, it defaults to 260px.\n */\n size?: 'small' | 'medium' | 'large' | 'full';\n };\n"],"names":[],"rangeMappings":";;","mappings":"AAwBA;;CAEC,GACD,WAQI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawer/index.ts"],"sourcesContent":["export { NavDrawer } from './NavDrawer';\nexport type { NavDrawerProps, NavDrawerSlots, NavDrawerState } from './NavDrawer.types';\nexport { renderNavDrawer_unstable } from './renderNavDrawer';\nexport { useNavDrawer_unstable } from './useNavDrawer';\nexport { navDrawerClassNames, useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';\n"],"names":["NavDrawer","renderNavDrawer_unstable","useNavDrawer_unstable","navDrawerClassNames","useNavDrawerStyles_unstable"],"rangeMappings":";;;","mappings":"AAAA,SAASA,SAAS,QAAQ,cAAc;AAExC,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,qBAAqB,QAAQ,iBAAiB;AACvD,SAASC,mBAAmB,EAAEC,2BAA2B,QAAQ,8BAA8B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
+
import { assertSlots } from '@fluentui/react-utilities';
|
|
3
|
+
import { NavProvider } from '../NavContext';
|
|
4
|
+
export const renderNavDrawer_unstable = (state, contextValues)=>{
|
|
5
|
+
assertSlots(state);
|
|
6
|
+
return /*#__PURE__*/ _jsx(NavProvider, {
|
|
7
|
+
value: contextValues.nav,
|
|
8
|
+
children: /*#__PURE__*/ _jsx(state.root, {})
|
|
9
|
+
});
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawer/renderNavDrawer.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { NavProvider } from '../NavContext';\nimport type { NavContextValues } from '../NavContext.types';\nimport type { NavDrawerSlots, NavDrawerState } from './NavDrawer.types';\n\nexport const renderNavDrawer_unstable = (state: NavDrawerState, contextValues: NavContextValues) => {\n assertSlots<NavDrawerSlots>(state);\n\n return (\n <NavProvider value={contextValues.nav}>\n <state.root />\n </NavProvider>\n );\n};\n"],"names":["assertSlots","NavProvider","renderNavDrawer_unstable","state","contextValues","value","nav","root"],"rangeMappings":";;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AACxD,SAASC,WAAW,QAAQ,gBAAgB;AAI5C,OAAO,MAAMC,2BAA2B,CAACC,OAAuBC;IAC9DJ,YAA4BG;IAE5B,qBACE,KAACF;QAAYI,OAAOD,cAAcE,GAAG;kBACnC,cAAA,KAACH,MAAMI,IAAI;;AAGjB,EAAE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Drawer } from '@fluentui/react-drawer';
|
|
3
|
+
import { useArrowNavigationGroup } from '@fluentui/react-tabster';
|
|
4
|
+
import { slot } from '@fluentui/react-utilities';
|
|
5
|
+
import { useNav_unstable } from '../Nav/useNav';
|
|
6
|
+
/**
|
|
7
|
+
* Create the state required to render NavDrawer.
|
|
8
|
+
*
|
|
9
|
+
* The returned state can be modified with hooks such as useNavDrawerStyles_unstable,
|
|
10
|
+
* before being passed to renderNavDrawer_unstable.
|
|
11
|
+
*
|
|
12
|
+
* @param props - props from this instance of NavDrawer
|
|
13
|
+
* @param ref - reference to root HTMLDivElement of NavDrawer
|
|
14
|
+
*/ export const useNavDrawer_unstable = (props, ref)=>{
|
|
15
|
+
const { tabbable = false, size = undefined } = props;
|
|
16
|
+
const focusAttributes = useArrowNavigationGroup({
|
|
17
|
+
axis: 'vertical',
|
|
18
|
+
circular: true,
|
|
19
|
+
tabbable
|
|
20
|
+
});
|
|
21
|
+
const navState = useNav_unstable({
|
|
22
|
+
...props
|
|
23
|
+
}, ref);
|
|
24
|
+
return {
|
|
25
|
+
...navState,
|
|
26
|
+
size,
|
|
27
|
+
components: {
|
|
28
|
+
// TODO: remove once React v18 slot API is modified
|
|
29
|
+
// this is a problem with the lack of support for union types on React v18
|
|
30
|
+
// ComponentState is using React.ComponentType which will try to infer propType
|
|
31
|
+
// propTypes WeakValidator signature will break distributive unions making this type invalid
|
|
32
|
+
root: Drawer
|
|
33
|
+
},
|
|
34
|
+
root: slot.always({
|
|
35
|
+
ref,
|
|
36
|
+
role: 'navigation',
|
|
37
|
+
...props,
|
|
38
|
+
...focusAttributes
|
|
39
|
+
}, {
|
|
40
|
+
// TODO: remove once React v18 slot API is modified
|
|
41
|
+
// this is a problem with the lack of support for union types on React v18
|
|
42
|
+
// ComponentState is using React.ComponentType which will try to infer propType
|
|
43
|
+
// propTypes WeakValidator signature will break distributive unions making this type invalid
|
|
44
|
+
elementType: Drawer
|
|
45
|
+
})
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawer/useNavDrawer.ts"],"sourcesContent":["import * as React from 'react';\nimport { Drawer, DrawerProps } from '@fluentui/react-drawer';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport { RefAttributes, slot } from '@fluentui/react-utilities';\n\nimport { useNav_unstable } from '../Nav/useNav';\nimport type { NavDrawerProps, NavDrawerState } from './NavDrawer.types';\n\n/**\n * Create the state required to render NavDrawer.\n *\n * The returned state can be modified with hooks such as useNavDrawerStyles_unstable,\n * before being passed to renderNavDrawer_unstable.\n *\n * @param props - props from this instance of NavDrawer\n * @param ref - reference to root HTMLDivElement of NavDrawer\n */\nexport const useNavDrawer_unstable = (props: NavDrawerProps, ref: React.Ref<HTMLDivElement>): NavDrawerState => {\n const { tabbable = false, size = undefined } = props;\n\n const focusAttributes = useArrowNavigationGroup({\n axis: 'vertical',\n circular: true,\n tabbable,\n });\n\n const navState = useNav_unstable(\n {\n ...props,\n },\n ref,\n );\n\n return {\n ...navState,\n size,\n components: {\n // TODO: remove once React v18 slot API is modified\n // this is a problem with the lack of support for union types on React v18\n // ComponentState is using React.ComponentType which will try to infer propType\n // propTypes WeakValidator signature will break distributive unions making this type invalid\n root: Drawer as React.FC<DrawerProps>,\n },\n\n root: slot.always(\n { ref, role: 'navigation', ...props, ...focusAttributes },\n {\n // TODO: remove once React v18 slot API is modified\n // this is a problem with the lack of support for union types on React v18\n // ComponentState is using React.ComponentType which will try to infer propType\n // propTypes WeakValidator signature will break distributive unions making this type invalid\n elementType: Drawer as React.FC<DrawerProps & RefAttributes<HTMLDivElement>>,\n },\n ),\n };\n};\n"],"names":["React","Drawer","useArrowNavigationGroup","slot","useNav_unstable","useNavDrawer_unstable","props","ref","tabbable","size","undefined","focusAttributes","axis","circular","navState","components","root","always","role","elementType"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,MAAM,QAAqB,yBAAyB;AAC7D,SAASC,uBAAuB,QAAQ,0BAA0B;AAClE,SAAwBC,IAAI,QAAQ,4BAA4B;AAEhE,SAASC,eAAe,QAAQ,gBAAgB;AAGhD;;;;;;;;CAQC,GACD,OAAO,MAAMC,wBAAwB,CAACC,OAAuBC;IAC3D,MAAM,EAAEC,WAAW,KAAK,EAAEC,OAAOC,SAAS,EAAE,GAAGJ;IAE/C,MAAMK,kBAAkBT,wBAAwB;QAC9CU,MAAM;QACNC,UAAU;QACVL;IACF;IAEA,MAAMM,WAAWV,gBACf;QACE,GAAGE,KAAK;IACV,GACAC;IAGF,OAAO;QACL,GAAGO,QAAQ;QACXL;QACAM,YAAY;YACV,mDAAmD;YACnD,0EAA0E;YAC1E,+EAA+E;YAC/E,4FAA4F;YAC5FC,MAAMf;QACR;QAEAe,MAAMb,KAAKc,MAAM,CACf;YAAEV;YAAKW,MAAM;YAAc,GAAGZ,KAAK;YAAE,GAAGK,eAAe;QAAC,GACxD;YACE,mDAAmD;YACnD,0EAA0E;YAC1E,+EAA+E;YAC/E,4FAA4F;YAC5FQ,aAAalB;QACf;IAEJ;AACF,EAAE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __styles, mergeClasses } from '@griffel/react';
|
|
2
|
+
import { navItemTokens } from '../sharedNavStyles.styles';
|
|
3
|
+
export const navDrawerClassNames = {
|
|
4
|
+
root: 'fui-NavDrawer'
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Styles for the root slot
|
|
8
|
+
*/
|
|
9
|
+
const useStyles = /*#__PURE__*/__styles({
|
|
10
|
+
root: {
|
|
11
|
+
De3pzq: "f1ctqxl6",
|
|
12
|
+
Bt984gj: "f3gca8"
|
|
13
|
+
},
|
|
14
|
+
defaultWidth: {
|
|
15
|
+
a9b677: "f12j6lm0"
|
|
16
|
+
}
|
|
17
|
+
}, {
|
|
18
|
+
d: [".f1ctqxl6{background-color:var(--colorNeutralBackground4);}", ".f3gca8{align-items:unset;}", ".f12j6lm0{width:260px;}"]
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Apply styling to the NavDrawer slots based on the state
|
|
22
|
+
*/
|
|
23
|
+
export const useNavDrawerStyles_unstable = state => {
|
|
24
|
+
'use no memo';
|
|
25
|
+
|
|
26
|
+
const {
|
|
27
|
+
size
|
|
28
|
+
} = state;
|
|
29
|
+
const styles = useStyles();
|
|
30
|
+
state.root.className = mergeClasses(navDrawerClassNames.root, styles.root, !size && styles.defaultWidth, state.root.className);
|
|
31
|
+
return state;
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","navItemTokens","navDrawerClassNames","root","useStyles","De3pzq","Bt984gj","defaultWidth","a9b677","d","useNavDrawerStyles_unstable","state","size","styles","className"],"sources":["useNavDrawerStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { navItemTokens } from '../sharedNavStyles.styles';\nexport const navDrawerClassNames = {\n root: 'fui-NavDrawer'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n backgroundColor: navItemTokens.backgroundColor,\n alignItems: 'unset'\n },\n // seperate style so it can be applied conditionally\n // if size is not set, use default width from the token.\n defaultWidth: {\n width: `${navItemTokens.defaultDrawerWidth}px`\n }\n});\n/**\n * Apply styling to the NavDrawer slots based on the state\n */ export const useNavDrawerStyles_unstable = (state)=>{\n 'use no memo';\n const { size } = state;\n const styles = useStyles();\n state.root.className = mergeClasses(navDrawerClassNames.root, styles.root, !size && styles.defaultWidth, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,aAAa,QAAQ,2BAA2B;AACzD,OAAO,MAAMC,mBAAmB,GAAG;EAC/BC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGL,QAAA;EAAAI,IAAA;IAAAE,MAAA;IAAAC,OAAA;EAAA;EAAAC,YAAA;IAAAC,MAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,CAUrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,2BAA2B,GAAIC,KAAK,IAAG;EACpD,aAAa;;EACb,MAAM;IAAEC;EAAK,CAAC,GAAGD,KAAK;EACtB,MAAME,MAAM,GAAGT,SAAS,CAAC,CAAC;EAC1BO,KAAK,CAACR,IAAI,CAACW,SAAS,GAAGd,YAAY,CAACE,mBAAmB,CAACC,IAAI,EAAEU,MAAM,CAACV,IAAI,EAAE,CAACS,IAAI,IAAIC,MAAM,CAACN,YAAY,EAAEI,KAAK,CAACR,IAAI,CAACW,SAAS,CAAC;EAC9H,OAAOH,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { renderDrawerBody_unstable } from '@fluentui/react-drawer';
|
|
3
|
+
import { useNavDrawerBody_unstable } from './useNavDrawerBody';
|
|
4
|
+
import { useNavDrawerBodyStyles_unstable } from './useNavDrawerBodyStyles.styles';
|
|
5
|
+
/**
|
|
6
|
+
* NavDrawerBody component
|
|
7
|
+
*/ export const NavDrawerBody = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
|
+
const state = useNavDrawerBody_unstable(props, ref);
|
|
9
|
+
useNavDrawerBodyStyles_unstable(state);
|
|
10
|
+
// TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
|
|
11
|
+
// https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
|
|
12
|
+
// useCustomStyleHook_unstable('useNavDrawerBodyStyles_unstable')(state);
|
|
13
|
+
return renderDrawerBody_unstable(state);
|
|
14
|
+
});
|
|
15
|
+
NavDrawerBody.displayName = 'NavDrawerBody';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerBody/NavDrawerBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderDrawerBody_unstable } from '@fluentui/react-drawer';\nimport { useNavDrawerBody_unstable } from './useNavDrawerBody';\nimport { useNavDrawerBodyStyles_unstable } from './useNavDrawerBodyStyles.styles';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavDrawerBodyProps } from './NavDrawerBody.types';\n\n/**\n * NavDrawerBody component\n */\nexport const NavDrawerBody: ForwardRefComponent<NavDrawerBodyProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerBody_unstable(props, ref);\n\n useNavDrawerBodyStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDrawerBodyStyles_unstable')(state);\n return renderDrawerBody_unstable(state);\n});\n\nNavDrawerBody.displayName = 'NavDrawerBody';\n"],"names":["React","renderDrawerBody_unstable","useNavDrawerBody_unstable","useNavDrawerBodyStyles_unstable","NavDrawerBody","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,yBAAyB,QAAQ,yBAAyB;AACnE,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,+BAA+B,QAAQ,kCAAkC;AAKlF;;CAEC,GACD,OAAO,MAAMC,8BAAyDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQN,0BAA0BI,OAAOC;IAE/CJ,gCAAgCK;IAChC,8HAA8H;IAC9H,wGAAwG;IACxG,yEAAyE;IACzE,OAAOP,0BAA0BO;AACnC,GAAG;AAEHJ,cAAcK,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerBody/NavDrawerBody.types.ts"],"sourcesContent":["import type { DrawerBodyProps, DrawerBodySlots, DrawerBodyState } from '@fluentui/react-drawer';\n\nexport type NavDrawerBodySlots = DrawerBodySlots;\n\n/**\n * NavDrawerBody Props\n */\nexport type NavDrawerBodyProps = DrawerBodyProps;\n\n/**\n * State used in rendering NavDrawerBody\n */\nexport type NavDrawerBodyState = DrawerBodyState;\n"],"names":[],"rangeMappings":";;","mappings":"AASA;;CAEC,GACD,WAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerBody/index.ts"],"sourcesContent":["export { NavDrawerBody } from './NavDrawerBody';\nexport type { NavDrawerBodyProps, NavDrawerBodySlots, NavDrawerBodyState } from './NavDrawerBody.types';\nexport { useNavDrawerBody_unstable } from './useNavDrawerBody';\nexport { navDrawerBodyClassNames, useNavDrawerBodyStyles_unstable } from './useNavDrawerBodyStyles.styles';\n"],"names":["NavDrawerBody","useNavDrawerBody_unstable","navDrawerBodyClassNames","useNavDrawerBodyStyles_unstable"],"rangeMappings":";;","mappings":"AAAA,SAASA,aAAa,QAAQ,kBAAkB;AAEhD,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,uBAAuB,EAAEC,+BAA+B,QAAQ,kCAAkC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDrawerBody_unstable } from '@fluentui/react-drawer';
|
|
3
|
+
/**
|
|
4
|
+
* Create the state required to render NavDrawerBody.
|
|
5
|
+
*
|
|
6
|
+
* The returned state can be modified with hooks such as useNavDrawerBodyStyles_unstable,
|
|
7
|
+
* before being passed to renderNavDrawerBody_unstable.
|
|
8
|
+
*
|
|
9
|
+
* @param props - props from this instance of NavDrawerBody
|
|
10
|
+
* @param ref - reference to root HTMLDivElement of NavDrawerBody
|
|
11
|
+
*/ export const useNavDrawerBody_unstable = (props, ref)=>{
|
|
12
|
+
return useDrawerBody_unstable(props, ref);
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerBody/useNavDrawerBody.ts"],"sourcesContent":["import * as React from 'react';\nimport { useDrawerBody_unstable } from '@fluentui/react-drawer';\n\nimport type { NavDrawerBodyProps, NavDrawerBodyState } from './NavDrawerBody.types';\n/**\n * Create the state required to render NavDrawerBody.\n *\n * The returned state can be modified with hooks such as useNavDrawerBodyStyles_unstable,\n * before being passed to renderNavDrawerBody_unstable.\n *\n * @param props - props from this instance of NavDrawerBody\n * @param ref - reference to root HTMLDivElement of NavDrawerBody\n */\nexport const useNavDrawerBody_unstable = (\n props: NavDrawerBodyProps,\n ref: React.Ref<HTMLDivElement>,\n): NavDrawerBodyState => {\n return useDrawerBody_unstable(props, ref);\n};\n"],"names":["React","useDrawerBody_unstable","useNavDrawerBody_unstable","props","ref"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,sBAAsB,QAAQ,yBAAyB;AAGhE;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC;IAEA,OAAOH,uBAAuBE,OAAOC;AACvC,EAAE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __styles, mergeClasses } from '@griffel/react';
|
|
2
|
+
import { tokens } from '@fluentui/react-theme';
|
|
3
|
+
import { useDrawerBodyStyles_unstable } from '@fluentui/react-drawer';
|
|
4
|
+
export const navDrawerBodyClassNames = {
|
|
5
|
+
root: 'fui-NavDrawerBody'
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Styles for the root slot
|
|
9
|
+
*/
|
|
10
|
+
const useStyles = /*#__PURE__*/__styles({
|
|
11
|
+
root: {
|
|
12
|
+
Byoj8tv: 0,
|
|
13
|
+
uwmqm3: 0,
|
|
14
|
+
z189sj: 0,
|
|
15
|
+
z8tnut: 0,
|
|
16
|
+
B0ocmuz: ["fif7vu7", "f1htewbf"],
|
|
17
|
+
Bt984gj: "f3gca8",
|
|
18
|
+
mc9l5x: "f22iagw",
|
|
19
|
+
Beiy3e4: "f1vx9l62",
|
|
20
|
+
Belr9w4: "f1j0q4x9"
|
|
21
|
+
}
|
|
22
|
+
}, {
|
|
23
|
+
d: [[".fif7vu7{padding:0 var(--spacingHorizontalXS) 0 var(--spacingHorizontalMNudge);}", {
|
|
24
|
+
p: -1
|
|
25
|
+
}], [".f1htewbf{padding:0 var(--spacingHorizontalMNudge) 0 var(--spacingHorizontalXS);}", {
|
|
26
|
+
p: -1
|
|
27
|
+
}], ".f3gca8{align-items:unset;}", ".f22iagw{display:flex;}", ".f1vx9l62{flex-direction:column;}", ".f1j0q4x9{row-gap:var(--spacingVerticalXXS);}"]
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* Apply styling to the NavDrawerBody slots based on the state
|
|
31
|
+
*/
|
|
32
|
+
export const useNavDrawerBodyStyles_unstable = state => {
|
|
33
|
+
'use no memo';
|
|
34
|
+
|
|
35
|
+
useDrawerBodyStyles_unstable(state);
|
|
36
|
+
const styles = useStyles();
|
|
37
|
+
state.root.className = mergeClasses(navDrawerBodyClassNames.root, styles.root, state.root.className);
|
|
38
|
+
return state;
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","tokens","useDrawerBodyStyles_unstable","navDrawerBodyClassNames","root","useStyles","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","Bt984gj","mc9l5x","Beiy3e4","Belr9w4","d","p","useNavDrawerBodyStyles_unstable","state","styles","className"],"sources":["useNavDrawerBodyStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { useDrawerBodyStyles_unstable } from '@fluentui/react-drawer';\nexport const navDrawerBodyClassNames = {\n root: 'fui-NavDrawerBody'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n padding: `0 ${tokens.spacingHorizontalXS} 0 ${tokens.spacingHorizontalMNudge}`,\n alignItems: 'unset',\n display: 'flex',\n flexDirection: 'column',\n rowGap: tokens.spacingVerticalXXS\n }\n});\n/**\n * Apply styling to the NavDrawerBody slots based on the state\n */ export const useNavDrawerBodyStyles_unstable = (state)=>{\n 'use no memo';\n useDrawerBodyStyles_unstable(state);\n const styles = useStyles();\n state.root.className = mergeClasses(navDrawerBodyClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,OAAO,MAAMC,uBAAuB,GAAG;EACnCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGN,QAAA;EAAAK,IAAA;IAAAE,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;IAAAC,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,CAQrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,+BAA+B,GAAIC,KAAK,IAAG;EACxD,aAAa;;EACbhB,4BAA4B,CAACgB,KAAK,CAAC;EACnC,MAAMC,MAAM,GAAGd,SAAS,CAAC,CAAC;EAC1Ba,KAAK,CAACd,IAAI,CAACgB,SAAS,GAAGpB,YAAY,CAACG,uBAAuB,CAACC,IAAI,EAAEe,MAAM,CAACf,IAAI,EAAEc,KAAK,CAACd,IAAI,CAACgB,SAAS,CAAC;EACpG,OAAOF,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { renderDrawerFooter_unstable } from '@fluentui/react-drawer';
|
|
3
|
+
import { useNavDrawerFooter_unstable } from './useNavDrawerFooter';
|
|
4
|
+
import { useNavDrawerFooterStyles_unstable } from './useNavDrawerFooterStyles.styles';
|
|
5
|
+
/**
|
|
6
|
+
* NavDrawerFooter component
|
|
7
|
+
*/ export const NavDrawerFooter = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
|
+
const state = useNavDrawerFooter_unstable(props, ref);
|
|
9
|
+
useNavDrawerFooterStyles_unstable(state);
|
|
10
|
+
// TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
|
|
11
|
+
// https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
|
|
12
|
+
// useCustomStyleHook_unstable('useNavDrawerFooterStyles_unstable')(state);
|
|
13
|
+
return renderDrawerFooter_unstable(state);
|
|
14
|
+
});
|
|
15
|
+
NavDrawerFooter.displayName = 'NavDrawerFooter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerFooter/NavDrawerFooter.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderDrawerFooter_unstable } from '@fluentui/react-drawer';\nimport { useNavDrawerFooter_unstable } from './useNavDrawerFooter';\nimport { useNavDrawerFooterStyles_unstable } from './useNavDrawerFooterStyles.styles';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavDrawerFooterProps } from './NavDrawerFooter.types';\n\n/**\n * NavDrawerFooter component\n */\nexport const NavDrawerFooter: ForwardRefComponent<NavDrawerFooterProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerFooter_unstable(props, ref);\n\n useNavDrawerFooterStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDrawerFooterStyles_unstable')(state);\n return renderDrawerFooter_unstable(state);\n});\n\nNavDrawerFooter.displayName = 'NavDrawerFooter';\n"],"names":["React","renderDrawerFooter_unstable","useNavDrawerFooter_unstable","useNavDrawerFooterStyles_unstable","NavDrawerFooter","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,2BAA2B,QAAQ,yBAAyB;AACrE,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,iCAAiC,QAAQ,oCAAoC;AAKtF;;CAEC,GACD,OAAO,MAAMC,gCAA6DJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQN,4BAA4BI,OAAOC;IAEjDJ,kCAAkCK;IAClC,8HAA8H;IAC9H,wGAAwG;IACxG,2EAA2E;IAC3E,OAAOP,4BAA4BO;AACrC,GAAG;AAEHJ,gBAAgBK,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerFooter/NavDrawerFooter.types.ts"],"sourcesContent":["import type { DrawerFooterProps, DrawerFooterSlots, DrawerFooterState } from '@fluentui/react-drawer';\n\nexport type NavDrawerFooterSlots = DrawerFooterSlots;\n\n/**\n * NavDrawerFooter Props\n */\nexport type NavDrawerFooterProps = DrawerFooterProps;\n\n/**\n * State used in rendering NavDrawerFooter\n */\nexport type NavDrawerFooterState = DrawerFooterState;\n"],"names":[],"rangeMappings":";;","mappings":"AASA;;CAEC,GACD,WAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerFooter/index.ts"],"sourcesContent":["export { NavDrawerFooter } from './NavDrawerFooter';\nexport type { NavDrawerFooterProps, NavDrawerFooterSlots, NavDrawerFooterState } from './NavDrawerFooter.types';\nexport { useNavDrawerFooter_unstable } from './useNavDrawerFooter';\nexport { navDrawerFooterClassNames, useNavDrawerFooterStyles_unstable } from './useNavDrawerFooterStyles.styles';\n"],"names":["NavDrawerFooter","useNavDrawerFooter_unstable","navDrawerFooterClassNames","useNavDrawerFooterStyles_unstable"],"rangeMappings":";;","mappings":"AAAA,SAASA,eAAe,QAAQ,oBAAoB;AAEpD,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,yBAAyB,EAAEC,iCAAiC,QAAQ,oCAAoC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDrawerFooter_unstable } from '@fluentui/react-drawer';
|
|
3
|
+
/**
|
|
4
|
+
* Create the state required to render NavDrawerFooter.
|
|
5
|
+
*
|
|
6
|
+
* The returned state can be modified with hooks such as useNavDrawerFooterStyles_unstable,
|
|
7
|
+
* before being passed to renderNavDrawerFooter_unstable.
|
|
8
|
+
*
|
|
9
|
+
* @param props - props from this instance of NavDrawerFooter
|
|
10
|
+
* @param ref - reference to root HTMLDivElement of NavDrawerFooter
|
|
11
|
+
*/ export const useNavDrawerFooter_unstable = (props, ref)=>{
|
|
12
|
+
return useDrawerFooter_unstable(props, ref);
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerFooter/useNavDrawerFooter.ts"],"sourcesContent":["import * as React from 'react';\nimport { useDrawerFooter_unstable } from '@fluentui/react-drawer';\nimport type { NavDrawerFooterProps, NavDrawerFooterState } from './NavDrawerFooter.types';\n\n/**\n * Create the state required to render NavDrawerFooter.\n *\n * The returned state can be modified with hooks such as useNavDrawerFooterStyles_unstable,\n * before being passed to renderNavDrawerFooter_unstable.\n *\n * @param props - props from this instance of NavDrawerFooter\n * @param ref - reference to root HTMLDivElement of NavDrawerFooter\n */\nexport const useNavDrawerFooter_unstable = (\n props: NavDrawerFooterProps,\n ref: React.Ref<HTMLElement>,\n): NavDrawerFooterState => {\n return useDrawerFooter_unstable(props, ref);\n};\n"],"names":["React","useDrawerFooter_unstable","useNavDrawerFooter_unstable","props","ref"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,QAAQ,yBAAyB;AAGlE;;;;;;;;CAQC,GACD,OAAO,MAAMC,8BAA8B,CACzCC,OACAC;IAEA,OAAOH,yBAAyBE,OAAOC;AACzC,EAAE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __styles, mergeClasses } from '@griffel/react';
|
|
2
|
+
import { tokens } from '@fluentui/react-theme';
|
|
3
|
+
import { useDrawerFooterStyles_unstable } from '@fluentui/react-drawer';
|
|
4
|
+
export const navDrawerFooterClassNames = {
|
|
5
|
+
root: 'fui-NavDrawerFooter'
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Styles for the root slot
|
|
9
|
+
*/
|
|
10
|
+
const useStyles = /*#__PURE__*/__styles({
|
|
11
|
+
root: {
|
|
12
|
+
Byoj8tv: 0,
|
|
13
|
+
uwmqm3: 0,
|
|
14
|
+
z189sj: 0,
|
|
15
|
+
z8tnut: 0,
|
|
16
|
+
B0ocmuz: "f1j1cbdv",
|
|
17
|
+
mc9l5x: "f22iagw",
|
|
18
|
+
Beiy3e4: "f1vx9l62",
|
|
19
|
+
Belr9w4: "f1j0q4x9"
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
d: [[".f1j1cbdv{padding:var(--spacingVerticalXXS) var(--spacingHorizontalXS) var(--spacingVerticalXXS) var(--spacingVerticalXS) var(--spacingHorizontalMNudge);}", {
|
|
23
|
+
p: -1
|
|
24
|
+
}], ".f22iagw{display:flex;}", ".f1vx9l62{flex-direction:column;}", ".f1j0q4x9{row-gap:var(--spacingVerticalXXS);}"]
|
|
25
|
+
});
|
|
26
|
+
/**
|
|
27
|
+
* Apply styling to the NavDrawerFooter slots based on the state
|
|
28
|
+
*/
|
|
29
|
+
export const useNavDrawerFooterStyles_unstable = state => {
|
|
30
|
+
'use no memo';
|
|
31
|
+
|
|
32
|
+
useDrawerFooterStyles_unstable(state);
|
|
33
|
+
const styles = useStyles();
|
|
34
|
+
state.root.className = mergeClasses(navDrawerFooterClassNames.root, styles.root, state.root.className);
|
|
35
|
+
return state;
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","tokens","useDrawerFooterStyles_unstable","navDrawerFooterClassNames","root","useStyles","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","mc9l5x","Beiy3e4","Belr9w4","d","p","useNavDrawerFooterStyles_unstable","state","styles","className"],"sources":["useNavDrawerFooterStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { useDrawerFooterStyles_unstable } from '@fluentui/react-drawer';\nexport const navDrawerFooterClassNames = {\n root: 'fui-NavDrawerFooter'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalMNudge}`,\n display: 'flex',\n flexDirection: 'column',\n rowGap: tokens.spacingVerticalXXS\n }\n});\n/**\n * Apply styling to the NavDrawerFooter slots based on the state\n */ export const useNavDrawerFooterStyles_unstable = (state)=>{\n 'use no memo';\n useDrawerFooterStyles_unstable(state);\n const styles = useStyles();\n state.root.className = mergeClasses(navDrawerFooterClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,8BAA8B,QAAQ,wBAAwB;AACvE,OAAO,MAAMC,yBAAyB,GAAG;EACrCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGN,QAAA;EAAAK,IAAA;IAAAE,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;IAAAC,CAAA;EAAA;AAAA,CAOrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,iCAAiC,GAAIC,KAAK,IAAG;EAC1D,aAAa;;EACbf,8BAA8B,CAACe,KAAK,CAAC;EACrC,MAAMC,MAAM,GAAGb,SAAS,CAAC,CAAC;EAC1BY,KAAK,CAACb,IAAI,CAACe,SAAS,GAAGnB,YAAY,CAACG,yBAAyB,CAACC,IAAI,EAAEc,MAAM,CAACd,IAAI,EAAEa,KAAK,CAACb,IAAI,CAACe,SAAS,CAAC;EACtG,OAAOF,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useNavDrawerHeader_unstable } from './useNavDrawerHeader';
|
|
3
|
+
import { useNavDrawerHeaderStyles_unstable } from './useNavDrawerHeaderStyles.styles';
|
|
4
|
+
import { renderDrawerHeader_unstable } from '@fluentui/react-drawer';
|
|
5
|
+
/**
|
|
6
|
+
* NavDrawerHeader component
|
|
7
|
+
*/ export const NavDrawerHeader = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
|
+
const state = useNavDrawerHeader_unstable(props, ref);
|
|
9
|
+
useNavDrawerHeaderStyles_unstable(state);
|
|
10
|
+
// TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
|
|
11
|
+
// https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
|
|
12
|
+
// useCustomStyleHook_unstable('useNavDrawerHeaderStyles_unstable')(state);
|
|
13
|
+
return renderDrawerHeader_unstable(state);
|
|
14
|
+
});
|
|
15
|
+
NavDrawerHeader.displayName = 'NavDrawerHeader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerHeader/NavDrawerHeader.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useNavDrawerHeader_unstable } from './useNavDrawerHeader';\nimport { useNavDrawerHeaderStyles_unstable } from './useNavDrawerHeaderStyles.styles';\nimport { renderDrawerHeader_unstable } from '@fluentui/react-drawer';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavDrawerHeaderProps } from './NavDrawerHeader.types';\n\n/**\n * NavDrawerHeader component\n */\nexport const NavDrawerHeader: ForwardRefComponent<NavDrawerHeaderProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerHeader_unstable(props, ref);\n\n useNavDrawerHeaderStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDrawerHeaderStyles_unstable')(state);\n return renderDrawerHeader_unstable(state);\n});\n\nNavDrawerHeader.displayName = 'NavDrawerHeader';\n"],"names":["React","useNavDrawerHeader_unstable","useNavDrawerHeaderStyles_unstable","renderDrawerHeader_unstable","NavDrawerHeader","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,iCAAiC,QAAQ,oCAAoC;AACtF,SAASC,2BAA2B,QAAQ,yBAAyB;AAKrE;;CAEC,GACD,OAAO,MAAMC,gCAA6DJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQP,4BAA4BK,OAAOC;IAEjDL,kCAAkCM;IAClC,8HAA8H;IAC9H,wGAAwG;IACxG,2EAA2E;IAC3E,OAAOL,4BAA4BK;AACrC,GAAG;AAEHJ,gBAAgBK,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerHeader/NavDrawerHeader.types.ts"],"sourcesContent":["import type { DrawerHeaderProps, DrawerHeaderSlots, DrawerHeaderState } from '@fluentui/react-drawer';\n\nexport type NavDrawerHeaderSlots = DrawerHeaderSlots;\n\n/**\n * NavDrawerHeader Props\n */\nexport type NavDrawerHeaderProps = DrawerHeaderProps;\n\n/**\n * State used in rendering NavDrawerHeader\n */\nexport type NavDrawerHeaderState = DrawerHeaderState;\n"],"names":[],"rangeMappings":";;","mappings":"AASA;;CAEC,GACD,WAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerHeader/index.ts"],"sourcesContent":["export { NavDrawerHeader } from './NavDrawerHeader';\nexport type { NavDrawerHeaderProps, NavDrawerHeaderSlots, NavDrawerHeaderState } from './NavDrawerHeader.types';\nexport { useNavDrawerHeader_unstable } from './useNavDrawerHeader';\nexport { navDrawerHeaderClassNames, useNavDrawerHeaderStyles_unstable } from './useNavDrawerHeaderStyles.styles';\n"],"names":["NavDrawerHeader","useNavDrawerHeader_unstable","navDrawerHeaderClassNames","useNavDrawerHeaderStyles_unstable"],"rangeMappings":";;","mappings":"AAAA,SAASA,eAAe,QAAQ,oBAAoB;AAEpD,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,yBAAyB,EAAEC,iCAAiC,QAAQ,oCAAoC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDrawerHeader_unstable } from '@fluentui/react-drawer';
|
|
3
|
+
/**
|
|
4
|
+
* Create the state required to render NavDrawerHeader.
|
|
5
|
+
*
|
|
6
|
+
* The returned state can be modified with hooks such as useNavDrawerHeaderStyles_unstable,
|
|
7
|
+
* before being passed to renderNavDrawerHeader_unstable.
|
|
8
|
+
*
|
|
9
|
+
* @param props - props from this instance of NavDrawerHeader
|
|
10
|
+
* @param ref - reference to root HTMLDivElement of NavDrawerHeader
|
|
11
|
+
*/ export const useNavDrawerHeader_unstable = (props, ref)=>{
|
|
12
|
+
return useDrawerHeader_unstable(props, ref);
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/NavDrawerHeader/useNavDrawerHeader.ts"],"sourcesContent":["import * as React from 'react';\nimport { useDrawerHeader_unstable } from '@fluentui/react-drawer';\n\nimport type { NavDrawerHeaderProps, NavDrawerHeaderState } from './NavDrawerHeader.types';\n\n/**\n * Create the state required to render NavDrawerHeader.\n *\n * The returned state can be modified with hooks such as useNavDrawerHeaderStyles_unstable,\n * before being passed to renderNavDrawerHeader_unstable.\n *\n * @param props - props from this instance of NavDrawerHeader\n * @param ref - reference to root HTMLDivElement of NavDrawerHeader\n */\nexport const useNavDrawerHeader_unstable = (\n props: NavDrawerHeaderProps,\n ref: React.Ref<HTMLElement>,\n): NavDrawerHeaderState => {\n return useDrawerHeader_unstable(props, ref);\n};\n"],"names":["React","useDrawerHeader_unstable","useNavDrawerHeader_unstable","props","ref"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,QAAQ,yBAAyB;AAIlE;;;;;;;;CAQC,GACD,OAAO,MAAMC,8BAA8B,CACzCC,OACAC;IAEA,OAAOH,yBAAyBE,OAAOC;AACzC,EAAE"}
|