@digigov/ui 0.30.3 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -1
- package/admin/AccessibilityMenu/index.d.ts +13 -0
- package/admin/AccessibilityMenu/index.js +170 -0
- package/admin/AutoComplete/index.d.ts +2 -2
- package/admin/Chip/index.d.ts +1 -0
- package/admin/Chip/index.js +14 -0
- package/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
- package/admin/Drawer/__stories__/Default.js +19 -12
- package/admin/Dropdown/__stories__/AlignRight.js +0 -2
- package/admin/Dropdown/__stories__/Default.js +0 -2
- package/admin/Dropdown/__stories__/PlacementTop.js +0 -2
- package/admin/FilterSection/index.d.ts +1 -2
- package/admin/FilterSection/index.js +4 -18
- package/admin/Modal/index.d.ts +2 -2
- package/admin/Modal/index.js +17 -12
- package/admin/Pagination/__stories__/Default.js +4 -7
- package/admin/Pagination/__stories__/PaginationSmall.js +2 -3
- package/app/Footer/__stories__/FooterAllInclusive.js +1 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
- package/app/Header/__stories__/WithNavigation.js +10 -8
- package/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/app/QrCodeViewer/QRCode.stories.d.ts +0 -1
- package/app/QrCodeViewer/index.d.ts +1 -2
- package/app/QrCodeViewer/index.js +10 -10
- package/app/ThemeOptionsForm/index.d.ts +2 -0
- package/app/ThemeOptionsForm/index.js +243 -0
- package/app/ThemePaletteForm/index.d.ts +2 -0
- package/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +9 -8
- package/app/index.d.ts +2 -1
- package/app/index.js +17 -4
- package/core/Accordion/Accordion.stories.playwright.json +2 -2
- package/core/Accordion/index.d.ts +2 -2
- package/core/Accordion/index.js +7 -7
- package/core/Divider/__stories__/Default.js +5 -10
- package/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
- package/core/ErrorSummary/__stories__/Default.js +3 -3
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
- package/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
- package/core/Link/__stories__/DarkBackground.js +6 -2
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
- package/core/NavList/NavList.stories.d.ts +1 -3
- package/core/NavList/NavList.stories.js +4 -32
- package/core/NavList/NavList.stories.playwright.json +6 -6
- package/core/NavList/{NavListAuto.js → NavListAuto/NavListAuto.js} +11 -5
- package/core/NavList/{NavListBase.d.ts → NavListAuto/NavListBaseAuto.d.ts} +1 -1
- package/core/NavList/{NavListBase.js → NavListAuto/NavListBaseAuto.js} +6 -6
- package/core/NavList/{NavListContext.d.ts → NavListAuto/NavListContextAuto.d.ts} +7 -4
- package/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +23 -11
- package/core/NavList/NavListAuto/NavListItemAnchorAuto.d.ts +9 -0
- package/core/NavList/{NavListSubMenu.js → NavListAuto/NavListItemAnchorAuto.js} +22 -21
- package/core/NavList/{NavListItemAuto.js → NavListAuto/NavListItemAuto.js} +20 -22
- package/core/NavList/NavListAuto/NavListItemButtonAuto.d.ts +12 -0
- package/core/NavList/NavListAuto/NavListItemButtonAuto.js +48 -0
- package/core/NavList/NavListAuto/NavListMenuAuto.d.ts +11 -0
- package/core/NavList/NavListAuto/NavListMenuAuto.js +56 -0
- package/core/NavList/NavListAuto/NavListSubMenuAuto.d.ts +9 -0
- package/core/NavList/NavListAuto/NavListSubMenuAuto.js +44 -0
- package/core/NavList/NavListItem.js +6 -8
- package/core/NavList/NavListItemBase.d.ts +1 -1
- package/core/NavList/NavListItemBase.js +4 -9
- package/core/NavList/NavMenuContainerContentList.d.ts +3 -1
- package/core/NavList/NavMenuContainerContentList.js +73 -3
- package/core/NavList/__stories__/Default.js +22 -15
- package/core/NavList/__stories__/NavVerticalLayout.d.ts +2 -0
- package/core/NavList/__stories__/{NavHorizontalLayout.js → NavVerticalLayout.js} +24 -18
- package/core/NavList/index.d.ts +3 -5
- package/core/NavList/index.js +9 -23
- package/core/NavList/types.d.ts +20 -11
- package/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.d.ts +13 -0
- package/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +75 -0
- package/core/SingleCharacterInputContainer/__stories__/Default.d.ts +2 -0
- package/core/SingleCharacterInputContainer/__stories__/Default.js +46 -0
- package/core/SingleCharacterInputContainer/__stories__/WithDefaultError.d.ts +2 -0
- package/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +52 -0
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.d.ts +2 -0
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +58 -0
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.d.ts +2 -0
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +52 -0
- package/core/SingleCharacterInputContainer/index.d.ts +4 -0
- package/core/SingleCharacterInputContainer/index.js +44 -0
- package/core/SingleCharacterInputContainer/index.mdx +29 -0
- package/core/Tabs/__stories__/Default.js +5 -5
- package/core/Tabs/index.d.ts +2 -2
- package/core/Tabs/index.js +5 -7
- package/es/admin/AccessibilityMenu/index.js +13 -0
- package/es/admin/Chip/index.js +1 -0
- package/es/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
- package/es/admin/Drawer/__stories__/Default.js +20 -13
- package/es/admin/Dropdown/__stories__/AlignRight.js +0 -2
- package/es/admin/Dropdown/__stories__/Default.js +0 -2
- package/es/admin/Dropdown/__stories__/PlacementTop.js +0 -2
- package/es/admin/FilterSection/index.js +1 -2
- package/es/admin/Modal/index.js +16 -11
- package/es/admin/Pagination/__stories__/Default.js +4 -7
- package/es/admin/Pagination/__stories__/PaginationSmall.js +2 -3
- package/es/app/Footer/__stories__/FooterAllInclusive.js +1 -0
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
- package/es/app/Header/__stories__/WithNavigation.js +10 -8
- package/es/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/es/app/QrCodeViewer/index.js +8 -9
- package/es/app/ThemeOptionsForm/index.js +215 -0
- package/es/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +5 -4
- package/es/app/index.js +2 -1
- package/es/core/Accordion/Accordion.stories.playwright.json +2 -2
- package/es/core/Accordion/index.js +7 -7
- package/es/core/Divider/__stories__/Default.js +5 -10
- package/es/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
- package/es/core/ErrorSummary/__stories__/Default.js +3 -3
- package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
- package/es/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/es/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
- package/es/core/Link/__stories__/DarkBackground.js +6 -2
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
- package/es/core/NavList/NavList.stories.js +1 -3
- package/es/core/NavList/NavList.stories.playwright.json +6 -6
- package/{esm/core/NavList → es/core/NavList/NavListAuto}/NavListAuto.js +11 -5
- package/{esm/core/NavList/NavListBase.js → es/core/NavList/NavListAuto/NavListBaseAuto.js} +4 -4
- package/es/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +20 -8
- package/es/core/NavList/NavListAuto/NavListItemAnchorAuto.js +26 -0
- package/es/core/NavList/NavListAuto/NavListItemAuto.js +38 -0
- package/es/core/NavList/NavListAuto/NavListItemButtonAuto.js +30 -0
- package/es/core/NavList/NavListAuto/NavListMenuAuto.js +36 -0
- package/es/core/NavList/NavListAuto/NavListSubMenuAuto.js +26 -0
- package/es/core/NavList/NavListItem.js +7 -9
- package/es/core/NavList/NavListItemBase.js +4 -9
- package/es/core/NavList/NavMenuContainerContentList.js +64 -1
- package/es/core/NavList/__stories__/Default.js +22 -15
- package/{esm/core/NavList/__stories__/NavHorizontalLayout.js → es/core/NavList/__stories__/NavVerticalLayout.js} +22 -16
- package/es/core/NavList/index.js +3 -5
- package/es/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +12 -0
- package/es/core/SingleCharacterInputContainer/__stories__/Default.js +31 -0
- package/es/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +35 -0
- package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +41 -0
- package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +35 -0
- package/es/core/SingleCharacterInputContainer/index.js +4 -0
- package/es/core/SingleCharacterInputContainer/index.mdx +29 -0
- package/es/core/Tabs/__stories__/Default.js +5 -5
- package/es/core/Tabs/index.js +5 -7
- package/es/hooks/useFontSize.js +10 -0
- package/es/hooks/useHighlightLinks.js +38 -0
- package/es/hooks/useLetterSpacing.js +10 -0
- package/es/hooks/useLineHeight.js +10 -0
- package/es/hooks/useNavList.js +10 -7
- package/es/hooks/useTheme.js +19 -11
- package/es/hooks/useTogglableNav.js +292 -0
- package/es/hooks/{useTogglableSections.js → useTogglableTab.js} +2 -8
- package/es/hooks/useVariantVars.js +30 -0
- package/es/layouts/Basic/__stories__/Default.js +2 -2
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
- package/es/locales/el.js +4 -0
- package/es/registry.js +40 -14
- package/es/typography/NormalText/__stories__/FontSizes.js +18 -6
- package/es/typography/NormalText/__stories__/FontWeight.js +3 -1
- package/es/typography/NormalText/__stories__/Variants.js +3 -1
- package/esm/admin/AccessibilityMenu/index.js +13 -0
- package/esm/admin/Chip/index.js +1 -0
- package/esm/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
- package/esm/admin/Drawer/__stories__/Default.js +20 -13
- package/esm/admin/Dropdown/__stories__/AlignRight.js +0 -2
- package/esm/admin/Dropdown/__stories__/Default.js +0 -2
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +0 -2
- package/esm/admin/FilterSection/index.js +1 -2
- package/esm/admin/Modal/index.js +16 -11
- package/esm/admin/Pagination/__stories__/Default.js +4 -7
- package/esm/admin/Pagination/__stories__/PaginationSmall.js +2 -3
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +1 -0
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
- package/esm/app/Header/__stories__/WithNavigation.js +10 -8
- package/esm/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/esm/app/QrCodeViewer/index.js +8 -9
- package/esm/app/ThemeOptionsForm/index.js +215 -0
- package/esm/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +5 -4
- package/esm/app/index.js +2 -1
- package/esm/core/Accordion/Accordion.stories.playwright.json +2 -2
- package/esm/core/Accordion/index.js +7 -7
- package/esm/core/Divider/__stories__/Default.js +5 -10
- package/esm/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
- package/esm/core/ErrorSummary/__stories__/Default.js +3 -3
- package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
- package/esm/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
- package/esm/core/Link/__stories__/DarkBackground.js +6 -2
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
- package/esm/core/NavList/NavList.stories.js +1 -3
- package/esm/core/NavList/NavList.stories.playwright.json +6 -6
- package/{es/core/NavList → esm/core/NavList/NavListAuto}/NavListAuto.js +11 -5
- package/{es/core/NavList/NavListBase.js → esm/core/NavList/NavListAuto/NavListBaseAuto.js} +4 -4
- package/esm/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +20 -8
- package/esm/core/NavList/NavListAuto/NavListItemAnchorAuto.js +26 -0
- package/esm/core/NavList/NavListAuto/NavListItemAuto.js +38 -0
- package/esm/core/NavList/NavListAuto/NavListItemButtonAuto.js +30 -0
- package/esm/core/NavList/NavListAuto/NavListMenuAuto.js +36 -0
- package/esm/core/NavList/NavListAuto/NavListSubMenuAuto.js +26 -0
- package/esm/core/NavList/NavListItem.js +7 -9
- package/esm/core/NavList/NavListItemBase.js +4 -9
- package/esm/core/NavList/NavMenuContainerContentList.js +64 -1
- package/esm/core/NavList/__stories__/Default.js +22 -15
- package/{es/core/NavList/__stories__/NavHorizontalLayout.js → esm/core/NavList/__stories__/NavVerticalLayout.js} +22 -16
- package/esm/core/NavList/index.js +3 -5
- package/esm/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +12 -0
- package/esm/core/SingleCharacterInputContainer/__stories__/Default.js +31 -0
- package/esm/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +35 -0
- package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +41 -0
- package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +35 -0
- package/esm/core/SingleCharacterInputContainer/index.js +4 -0
- package/esm/core/SingleCharacterInputContainer/index.mdx +29 -0
- package/esm/core/Tabs/__stories__/Default.js +5 -5
- package/esm/core/Tabs/index.js +5 -7
- package/esm/hooks/useFontSize.js +10 -0
- package/esm/hooks/useHighlightLinks.js +38 -0
- package/esm/hooks/useLetterSpacing.js +10 -0
- package/esm/hooks/useLineHeight.js +10 -0
- package/esm/hooks/useNavList.js +10 -7
- package/esm/hooks/useTheme.js +19 -11
- package/esm/hooks/useTogglableNav.js +292 -0
- package/esm/hooks/{useTogglableSections.js → useTogglableTab.js} +2 -8
- package/esm/hooks/useVariantVars.js +30 -0
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/__stories__/Default.js +2 -2
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
- package/esm/locales/el.js +4 -0
- package/esm/registry.js +40 -14
- package/esm/typography/NormalText/__stories__/FontSizes.js +18 -6
- package/esm/typography/NormalText/__stories__/FontWeight.js +3 -1
- package/esm/typography/NormalText/__stories__/Variants.js +3 -1
- package/hooks/useFontSize.d.ts +6 -0
- package/hooks/useFontSize.js +23 -0
- package/hooks/useHighlightLinks.d.ts +8 -0
- package/hooks/useHighlightLinks.js +52 -0
- package/hooks/useLetterSpacing.d.ts +6 -0
- package/hooks/useLetterSpacing.js +23 -0
- package/hooks/useLineHeight.d.ts +6 -0
- package/hooks/useLineHeight.js +23 -0
- package/hooks/useNavList.d.ts +2 -2
- package/hooks/useNavList.js +11 -8
- package/hooks/useTheme.d.ts +4 -4
- package/hooks/useTheme.js +19 -12
- package/hooks/useTogglableNav.d.ts +25 -0
- package/hooks/useTogglableNav.js +305 -0
- package/hooks/{useTogglableSections.d.ts → useTogglableTab.d.ts} +4 -3
- package/hooks/{useTogglableSections.js → useTogglableTab.js} +3 -9
- package/hooks/useVariantVars.d.ts +11 -0
- package/hooks/useVariantVars.js +41 -0
- package/layouts/Basic/__stories__/Default.js +2 -2
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
- package/locales/el.d.ts +4 -0
- package/locales/el.js +4 -0
- package/package.json +3 -3
- package/registry.d.ts +21 -7
- package/registry.js +55 -16
- package/src/admin/AccessibilityMenu/index.tsx +14 -0
- package/src/admin/AutoComplete/index.tsx +2 -2
- package/src/admin/Chip/index.tsx +1 -0
- package/src/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +2 -2
- package/src/admin/Drawer/__stories__/Default.tsx +24 -13
- package/src/admin/Dropdown/__stories__/AlignRight.tsx +2 -2
- package/src/admin/Dropdown/__stories__/Default.tsx +2 -2
- package/src/admin/Dropdown/__stories__/PlacementTop.tsx +2 -2
- package/src/admin/FilterSection/index.tsx +1 -2
- package/src/admin/Modal/index.tsx +43 -39
- package/src/admin/Pagination/__stories__/Default.tsx +4 -4
- package/src/admin/Pagination/__stories__/PaginationSmall.tsx +2 -2
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +1 -1
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +1 -1
- package/src/app/Header/__stories__/WithNavigation.tsx +8 -8
- package/src/app/QrCodeScanner/__stories__/Default.tsx +2 -2
- package/src/app/QrCodeViewer/index.tsx +16 -14
- package/src/app/ThemeOptionsForm/index.tsx +220 -0
- package/src/app/{ThemeSelectorOptions → ThemePaletteForm}/index.tsx +3 -3
- package/src/app/index.ts +2 -1
- package/src/core/Accordion/Accordion.stories.playwright.json +2 -2
- package/src/core/Accordion/index.tsx +5 -11
- package/src/core/Divider/__stories__/Default.tsx +5 -5
- package/src/core/ErrorSummary/ErrorSummary.stories.playwright.json +1 -1
- package/src/core/ErrorSummary/__stories__/Default.tsx +2 -2
- package/src/core/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -2
- package/src/core/ErrorSummary/__stories__/LinkedToField.tsx +2 -2
- package/src/core/ErrorSummary/__stories__/LinkedToInput.tsx +2 -2
- package/src/core/Link/__stories__/DarkBackground.tsx +2 -3
- package/src/core/Link/__stories__/DarkBackgroundNoUnderline.tsx +2 -3
- package/src/core/NavList/NavList.stories.js +1 -3
- package/src/core/NavList/NavList.stories.playwright.json +6 -6
- package/src/core/NavList/NavListAuto/NavListAuto.tsx +34 -0
- package/src/core/NavList/{NavListBase.tsx → NavListAuto/NavListBaseAuto.tsx} +3 -3
- package/src/core/NavList/{NavListContext.tsx → NavListAuto/NavListContextAuto.tsx} +26 -11
- package/src/core/NavList/NavListAuto/NavListItemAnchorAuto.tsx +38 -0
- package/src/core/NavList/NavListAuto/NavListItemAuto.tsx +49 -0
- package/src/core/NavList/NavListAuto/NavListItemButtonAuto.tsx +53 -0
- package/src/core/NavList/NavListAuto/NavListMenuAuto.tsx +51 -0
- package/src/core/NavList/NavListAuto/NavListSubMenuAuto.tsx +32 -0
- package/src/core/NavList/NavListItem.tsx +15 -10
- package/src/core/NavList/NavListItemBase.tsx +5 -8
- package/src/core/NavList/NavMenuContainerContentList.tsx +61 -1
- package/src/core/NavList/__stories__/Default.tsx +26 -14
- package/src/core/NavList/__stories__/{NavHorizontalLayout.tsx → NavVerticalLayout.tsx} +29 -16
- package/src/core/NavList/index.tsx +3 -5
- package/src/core/NavList/types.tsx +23 -10
- package/src/core/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +13 -0
- package/src/core/SingleCharacterInputContainer/__stories__/Default.tsx +35 -0
- package/src/core/SingleCharacterInputContainer/__stories__/WithDefaultError.tsx +38 -0
- package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.tsx +38 -0
- package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.tsx +38 -0
- package/src/core/SingleCharacterInputContainer/index.mdx +29 -0
- package/src/core/SingleCharacterInputContainer/index.tsx +4 -0
- package/src/core/Tabs/__stories__/Default.tsx +5 -5
- package/src/core/Tabs/index.tsx +5 -9
- package/src/hooks/useFontSize.ts +32 -0
- package/src/hooks/useHighlightLinks.ts +45 -0
- package/src/hooks/useLetterSpacing.ts +27 -0
- package/src/hooks/useLineHeight.ts +31 -0
- package/src/hooks/useNavList.ts +5 -7
- package/src/hooks/useTheme.ts +28 -20
- package/src/hooks/useTogglableNav.tsx +294 -0
- package/src/hooks/{useTogglableSections.tsx → useTogglableTab.tsx} +12 -13
- package/src/hooks/useVariantVars.ts +35 -0
- package/src/layouts/Basic/__stories__/Default.tsx +3 -3
- package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +8 -8
- package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +6 -6
- package/src/locales/el.ts +4 -0
- package/src/registry.js +40 -14
- package/src/typography/NormalText/__stories__/FontSizes.tsx +6 -6
- package/src/typography/NormalText/__stories__/FontWeight.tsx +1 -1
- package/src/typography/NormalText/__stories__/Variants.tsx +1 -1
- package/typography/NormalText/__stories__/FontSizes.js +18 -6
- package/typography/NormalText/__stories__/FontWeight.js +3 -1
- package/typography/NormalText/__stories__/Variants.js +3 -1
- package/app/ThemeSelectorOptions/index.d.ts +0 -2
- package/core/NavList/NavListSubMenu.d.ts +0 -8
- package/core/NavList/__stories__/NavHorizontalLayout.d.ts +0 -2
- package/core/NavList/__stories__/NavListAutoExample.d.ts +0 -2
- package/core/NavList/__stories__/NavListAutoExample.js +0 -63
- package/core/NavList/__stories__/NavListEpathlaExample.d.ts +0 -2
- package/core/NavList/__stories__/NavListEpathlaExample.js +0 -141
- package/es/core/NavList/NavListItemAuto.js +0 -40
- package/es/core/NavList/NavListSubMenu.js +0 -25
- package/es/core/NavList/__stories__/NavListAutoExample.js +0 -48
- package/es/core/NavList/__stories__/NavListEpathlaExample.js +0 -123
- package/esm/core/NavList/NavListItemAuto.js +0 -40
- package/esm/core/NavList/NavListSubMenu.js +0 -25
- package/esm/core/NavList/__stories__/NavListAutoExample.js +0 -48
- package/esm/core/NavList/__stories__/NavListEpathlaExample.js +0 -123
- package/src/core/NavList/NavListAuto.tsx +0 -20
- package/src/core/NavList/NavListItemAuto.tsx +0 -41
- package/src/core/NavList/NavListSubMenu.tsx +0 -28
- package/src/core/NavList/__stories__/NavListAutoExample.tsx +0 -53
- package/src/core/NavList/__stories__/NavListEpathlaExample.tsx +0 -174
- /package/core/NavList/{NavListAuto.d.ts → NavListAuto/NavListAuto.d.ts} +0 -0
- /package/core/NavList/{NavListItemAuto.d.ts → NavListAuto/NavListItemAuto.d.ts} +0 -0
|
@@ -6,37 +6,49 @@ var _ref = /*#__PURE__*/React.createElement(NormalText, {
|
|
|
6
6
|
fontSize: "14"
|
|
7
7
|
}, " govgr-!-font-size-14 ");
|
|
8
8
|
|
|
9
|
-
var _ref2 = /*#__PURE__*/React.createElement(SectionBreak,
|
|
9
|
+
var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
10
|
+
visible: false
|
|
11
|
+
});
|
|
10
12
|
|
|
11
13
|
var _ref3 = /*#__PURE__*/React.createElement(NormalText, {
|
|
12
14
|
fontSize: "16"
|
|
13
15
|
}, " govgr-!-font-size-16 ");
|
|
14
16
|
|
|
15
|
-
var _ref4 = /*#__PURE__*/React.createElement(SectionBreak,
|
|
17
|
+
var _ref4 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
18
|
+
visible: false
|
|
19
|
+
});
|
|
16
20
|
|
|
17
21
|
var _ref5 = /*#__PURE__*/React.createElement(NormalText, {
|
|
18
22
|
fontSize: "19"
|
|
19
23
|
}, " govgr-!-font-size-19 ");
|
|
20
24
|
|
|
21
|
-
var _ref6 = /*#__PURE__*/React.createElement(SectionBreak,
|
|
25
|
+
var _ref6 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
26
|
+
visible: false
|
|
27
|
+
});
|
|
22
28
|
|
|
23
29
|
var _ref7 = /*#__PURE__*/React.createElement(NormalText, {
|
|
24
30
|
fontSize: "24"
|
|
25
31
|
}, " govgr-!-font-size-24 ");
|
|
26
32
|
|
|
27
|
-
var _ref8 = /*#__PURE__*/React.createElement(SectionBreak,
|
|
33
|
+
var _ref8 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
34
|
+
visible: false
|
|
35
|
+
});
|
|
28
36
|
|
|
29
37
|
var _ref9 = /*#__PURE__*/React.createElement(NormalText, {
|
|
30
38
|
fontSize: "30"
|
|
31
39
|
}, " govgr-!-font-size-30 ");
|
|
32
40
|
|
|
33
|
-
var _ref10 = /*#__PURE__*/React.createElement(SectionBreak,
|
|
41
|
+
var _ref10 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
42
|
+
visible: false
|
|
43
|
+
});
|
|
34
44
|
|
|
35
45
|
var _ref11 = /*#__PURE__*/React.createElement(NormalText, {
|
|
36
46
|
fontSize: "48"
|
|
37
47
|
}, " govgr-!-font-size-48 ");
|
|
38
48
|
|
|
39
|
-
var _ref12 = /*#__PURE__*/React.createElement(SectionBreak,
|
|
49
|
+
var _ref12 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
50
|
+
visible: false
|
|
51
|
+
});
|
|
40
52
|
|
|
41
53
|
var _ref13 = /*#__PURE__*/React.createElement(NormalText, {
|
|
42
54
|
fontSize: "72"
|
|
@@ -6,7 +6,9 @@ var _ref = /*#__PURE__*/React.createElement(NormalText, {
|
|
|
6
6
|
fontWeight: "regular"
|
|
7
7
|
}, " govgr-!-font-weight-regular ");
|
|
8
8
|
|
|
9
|
-
var _ref2 = /*#__PURE__*/React.createElement(SectionBreak,
|
|
9
|
+
var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
10
|
+
visible: false
|
|
11
|
+
});
|
|
10
12
|
|
|
11
13
|
var _ref3 = /*#__PURE__*/React.createElement(NormalText, {
|
|
12
14
|
fontWeight: "bold"
|
|
@@ -6,7 +6,9 @@ var _ref = /*#__PURE__*/React.createElement(NormalText, {
|
|
|
6
6
|
variant: "small"
|
|
7
7
|
}, " govgr-variant-small ");
|
|
8
8
|
|
|
9
|
-
var _ref2 = /*#__PURE__*/React.createElement(SectionBreak,
|
|
9
|
+
var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
10
|
+
visible: false
|
|
11
|
+
});
|
|
10
12
|
|
|
11
13
|
var _ref3 = /*#__PURE__*/React.createElement(NormalText, {
|
|
12
14
|
variant: "lead"
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseVariantVarsResult } from "@digigov/ui/hooks/useVariantVars";
|
|
2
|
+
export declare type FontSizeOptions = 'default' | 'large';
|
|
3
|
+
export declare type StoredFontSizeOptions = FontSizeOptions | null;
|
|
4
|
+
export declare type UseFontSizeResult = UseVariantVarsResult<FontSizeOptions>;
|
|
5
|
+
export declare const useFontSize: () => UseFontSizeResult;
|
|
6
|
+
export default useFontSize;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useFontSize = exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _useVariantVars = _interopRequireDefault(require("@digigov/ui/hooks/useVariantVars"));
|
|
11
|
+
|
|
12
|
+
var useFontSize = function useFontSize() {
|
|
13
|
+
var config = {
|
|
14
|
+
'name': 'font-size',
|
|
15
|
+
'variables': ['text-sm', 'text-base', 'text-lg', 'text-xl', 'text-2xl', 'text-3xl', 'text-4xl', 'text-5xl'],
|
|
16
|
+
'variants': ['default', 'large']
|
|
17
|
+
};
|
|
18
|
+
return (0, _useVariantVars["default"])(config);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.useFontSize = useFontSize;
|
|
22
|
+
var _default = useFontSize;
|
|
23
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare type HighlightLinksOptions = 'default' | 'highlight';
|
|
2
|
+
export declare type StoredHighlightLinksOptions = HighlightLinksOptions | null;
|
|
3
|
+
export declare type UseHighlightLinksResult = [
|
|
4
|
+
highlightLinks: HighlightLinksOptions,
|
|
5
|
+
changeHighlightLinks: (selectedHighlightLinks: HighlightLinksOptions) => void
|
|
6
|
+
];
|
|
7
|
+
export declare const useHighlightLinks: () => UseHighlightLinksResult;
|
|
8
|
+
export default useHighlightLinks;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useHighlightLinks = exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
|
|
14
|
+
var useHighlightLinks = function useHighlightLinks() {
|
|
15
|
+
var storedHighlightLinks = localStorage.getItem('--theme-highlight-links');
|
|
16
|
+
|
|
17
|
+
var _useState = (0, _react.useState)(storedHighlightLinks || 'default'),
|
|
18
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
19
|
+
highlightLinks = _useState2[0],
|
|
20
|
+
changeHighlightLinks = _useState2[1];
|
|
21
|
+
|
|
22
|
+
(0, _react.useEffect)(function () {
|
|
23
|
+
if (highlightLinks === 'highlight') {
|
|
24
|
+
document.documentElement.classList.add("govgr-highlight-links");
|
|
25
|
+
} else {
|
|
26
|
+
document.documentElement.classList.remove("govgr-highlight-links");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
localStorage.setItem('--theme-highlight-links', highlightLinks);
|
|
30
|
+
}, [highlightLinks]);
|
|
31
|
+
(0, _react.useEffect)(function () {
|
|
32
|
+
var beforePrintListener = function beforePrintListener() {
|
|
33
|
+
document.documentElement.classList.remove("govgr-highlight-links");
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var afterPrintListener = function afterPrintListener() {
|
|
37
|
+
document.documentElement.classList.add(localStorage.getItem('--theme-highlight-links') === 'highlight' ? "govgr-highlight-links" : '');
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
window.addEventListener('beforeprint', beforePrintListener);
|
|
41
|
+
window.addEventListener('afterprint', afterPrintListener);
|
|
42
|
+
return function () {
|
|
43
|
+
window.removeEventListener('beforeprint', beforePrintListener);
|
|
44
|
+
window.removeEventListener('afterprint', afterPrintListener);
|
|
45
|
+
};
|
|
46
|
+
}, []);
|
|
47
|
+
return [highlightLinks, changeHighlightLinks];
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.useHighlightLinks = useHighlightLinks;
|
|
51
|
+
var _default = useHighlightLinks;
|
|
52
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseVariantVarsResult } from '@digigov/ui/hooks/useVariantVars';
|
|
2
|
+
export declare type LetterSpacingOptions = 'default' | 'extra';
|
|
3
|
+
export declare type StoredLetterSpacingOptions = LetterSpacingOptions | null;
|
|
4
|
+
export declare type UseLetterSpacingResult = UseVariantVarsResult<LetterSpacingOptions>;
|
|
5
|
+
export declare const useLetterSpacing: () => UseLetterSpacingResult;
|
|
6
|
+
export default useLetterSpacing;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useLetterSpacing = exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _useVariantVars = _interopRequireDefault(require("@digigov/ui/hooks/useVariantVars"));
|
|
11
|
+
|
|
12
|
+
var useLetterSpacing = function useLetterSpacing() {
|
|
13
|
+
var config = {
|
|
14
|
+
name: 'letter-spacing',
|
|
15
|
+
variables: ["letter-spacing-normal", "letter-spacing-wide", "letter-spacing-wider", "letter-spacing-widest"],
|
|
16
|
+
variants: ['default', 'extra']
|
|
17
|
+
};
|
|
18
|
+
return (0, _useVariantVars["default"])(config);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.useLetterSpacing = useLetterSpacing;
|
|
22
|
+
var _default = useLetterSpacing;
|
|
23
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseVariantVarsResult } from '@digigov/ui/hooks/useVariantVars';
|
|
2
|
+
export declare type LineHeightOptions = 'default' | 'large';
|
|
3
|
+
export declare type StoredLineHeightOptions = LineHeightOptions | null;
|
|
4
|
+
export declare type UseLineHeightResult = UseVariantVarsResult<LineHeightOptions>;
|
|
5
|
+
export declare const useLineHeight: () => UseLineHeightResult;
|
|
6
|
+
export default useLineHeight;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useLineHeight = exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _useVariantVars = _interopRequireDefault(require("@digigov/ui/hooks/useVariantVars"));
|
|
11
|
+
|
|
12
|
+
var useLineHeight = function useLineHeight() {
|
|
13
|
+
var config = {
|
|
14
|
+
name: 'line-height',
|
|
15
|
+
variables: ["line-h-sm", "line-h-base", "line-h-lg", "line-h-xl", "line-h-2xl", "line-h-3xl", "line-h-4xl", "line-h-5xl"],
|
|
16
|
+
variants: ['default', 'large']
|
|
17
|
+
};
|
|
18
|
+
return (0, _useVariantVars["default"])(config);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.useLineHeight = useLineHeight;
|
|
22
|
+
var _default = useLineHeight;
|
|
23
|
+
exports["default"] = _default;
|
package/hooks/useNavList.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface UseNavListReturn extends
|
|
1
|
+
import { UseTogglableNavReturn } from '@digigov/ui/hooks/useTogglableNav';
|
|
2
|
+
export interface UseNavListReturn extends UseTogglableNavReturn {
|
|
3
3
|
container: (key: string) => {
|
|
4
4
|
active: boolean;
|
|
5
5
|
id: string;
|
package/hooks/useNavList.js
CHANGED
|
@@ -11,25 +11,27 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _useTogglableNav2 = require("@digigov/ui/hooks/useTogglableNav");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react = require("react");
|
|
17
17
|
|
|
18
|
-
var _excluded = ["
|
|
18
|
+
var _excluded = ["registerButton", "registerLink", "opened"];
|
|
19
19
|
|
|
20
20
|
var useNavList = function useNavList() {
|
|
21
21
|
var registeredContainers = (0, _react.useRef)({});
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _useTogglableNav = (0, _useTogglableNav2.useTogglableNav)({
|
|
24
24
|
singleOpen: true,
|
|
25
25
|
toggleOpenClose: true,
|
|
26
|
+
toggleParentOpen: true,
|
|
26
27
|
toggleProperty: 'active',
|
|
27
28
|
onToggleProperty: 'onClick',
|
|
28
29
|
ariaNavigation: true
|
|
29
30
|
}),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
registerButton = _useTogglableNav.registerButton,
|
|
32
|
+
registerLink = _useTogglableNav.registerLink,
|
|
33
|
+
opened = _useTogglableNav.opened,
|
|
34
|
+
rest = (0, _objectWithoutProperties2["default"])(_useTogglableNav, _excluded);
|
|
33
35
|
|
|
34
36
|
var container = (0, _react.useCallback)(function (key) {
|
|
35
37
|
return {
|
|
@@ -43,7 +45,8 @@ var useNavList = function useNavList() {
|
|
|
43
45
|
};
|
|
44
46
|
}, [opened]);
|
|
45
47
|
return (0, _extends2["default"])({
|
|
46
|
-
|
|
48
|
+
registerButton: registerButton,
|
|
49
|
+
registerLink: registerLink,
|
|
47
50
|
opened: opened,
|
|
48
51
|
container: container
|
|
49
52
|
}, rest);
|
package/hooks/useTheme.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare type ThemeSelectOptions = 'light' | 'dark' | 'auto';
|
|
2
2
|
export declare type StoredThemeOptions = ThemeSelectOptions | null;
|
|
3
|
-
export
|
|
4
|
-
theme: ThemeSelectOptions
|
|
5
|
-
changeTheme: (selectedTheme: ThemeSelectOptions) => void
|
|
6
|
-
|
|
3
|
+
export declare type UseThemeResult = [
|
|
4
|
+
theme: ThemeSelectOptions,
|
|
5
|
+
changeTheme: (selectedTheme: ThemeSelectOptions) => void
|
|
6
|
+
];
|
|
7
7
|
export declare const useTheme: () => UseThemeResult;
|
|
8
8
|
export default useTheme;
|
package/hooks/useTheme.js
CHANGED
|
@@ -11,11 +11,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
-
;
|
|
15
|
-
|
|
16
14
|
var useTheme = function useTheme() {
|
|
17
15
|
var prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
18
|
-
var storedTheme = localStorage.getItem('theme');
|
|
16
|
+
var storedTheme = localStorage.getItem('--theme-palette');
|
|
19
17
|
|
|
20
18
|
var _useState = (0, _react.useState)(storedTheme || 'auto'),
|
|
21
19
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
@@ -23,21 +21,33 @@ var useTheme = function useTheme() {
|
|
|
23
21
|
changeTheme = _useState2[1];
|
|
24
22
|
|
|
25
23
|
(0, _react.useEffect)(function () {
|
|
24
|
+
document.documentElement.classList.remove('dark', 'light', 'auto');
|
|
25
|
+
|
|
26
26
|
if (theme === 'auto') {
|
|
27
|
-
document.documentElement.
|
|
27
|
+
document.documentElement.classList.add(prefersDarkScheme ? 'dark' : 'light');
|
|
28
28
|
} else {
|
|
29
|
-
document.documentElement.
|
|
29
|
+
document.documentElement.classList.add(theme);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
localStorage.setItem('theme', theme);
|
|
32
|
+
localStorage.setItem('--theme-palette', theme);
|
|
33
33
|
}, [theme]);
|
|
34
34
|
(0, _react.useEffect)(function () {
|
|
35
35
|
var beforePrintListener = function beforePrintListener() {
|
|
36
|
-
document.documentElement.
|
|
36
|
+
document.documentElement.classList.remove('dark');
|
|
37
|
+
document.documentElement.classList.add('light');
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
var afterPrintListener = function afterPrintListener() {
|
|
40
|
-
document.documentElement.
|
|
41
|
+
document.documentElement.classList.remove('light');
|
|
42
|
+
var localtheme;
|
|
43
|
+
|
|
44
|
+
if (localStorage.getItem('--theme-palette') === 'auto') {
|
|
45
|
+
localtheme = prefersDarkScheme ? 'dark' : 'light';
|
|
46
|
+
} else {
|
|
47
|
+
localtheme = localStorage.getItem('--theme-palette');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
document.documentElement.classList.add(localtheme || theme);
|
|
41
51
|
};
|
|
42
52
|
|
|
43
53
|
window.addEventListener('beforeprint', beforePrintListener);
|
|
@@ -47,10 +57,7 @@ var useTheme = function useTheme() {
|
|
|
47
57
|
window.removeEventListener('afterprint', afterPrintListener);
|
|
48
58
|
};
|
|
49
59
|
}, []);
|
|
50
|
-
return
|
|
51
|
-
theme: theme,
|
|
52
|
-
changeTheme: changeTheme
|
|
53
|
-
};
|
|
60
|
+
return [theme, changeTheme];
|
|
54
61
|
};
|
|
55
62
|
|
|
56
63
|
exports.useTheme = useTheme;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface UseTogglableNavInterface {
|
|
2
|
+
toggleProperty: string;
|
|
3
|
+
singleOpen?: boolean;
|
|
4
|
+
toggleOpenClose?: boolean;
|
|
5
|
+
toggleParentOpen?: boolean;
|
|
6
|
+
onToggleProperty: string;
|
|
7
|
+
initial?: Record<string, boolean>;
|
|
8
|
+
firstOpen?: boolean;
|
|
9
|
+
ariaNavigation?: boolean;
|
|
10
|
+
toggleHook?: (id: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface UseTogglableNavReturn {
|
|
13
|
+
registerButton: (el: string) => any;
|
|
14
|
+
registerLink: (el: string) => any;
|
|
15
|
+
registered: {
|
|
16
|
+
current: Record<string, {
|
|
17
|
+
el: HTMLElement;
|
|
18
|
+
type: string;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
opened: Record<string, boolean>;
|
|
22
|
+
toggle: (id: string) => void;
|
|
23
|
+
setOpened: (opened: ((curOpened: Record<string, boolean>) => Record<string, boolean>) | Record<string, boolean>) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function useTogglableNav({ toggleProperty, toggleOpenClose, toggleParentOpen, onToggleProperty, initial, ariaNavigation, toggleHook, }: UseTogglableNavInterface): UseTogglableNavReturn;
|