@digigov/ui 1.0.0-00643e1d → 1.0.0-05af31dd
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/api/fetchAPI.js +1 -1
- package/api/index.js +6 -6
- package/api/index.spec.js +3 -3
- package/api/useResource.js +3 -3
- package/api/useResourceAction.js +3 -3
- package/api/useResourceQuery.js +3 -3
- package/api/utils.js +1 -1
- package/app/BannerContainer/BannerContainer.stories.js +2 -2
- package/app/BannerContainer/__stories__/CookiesBanner.js +7 -7
- package/app/Footer/Footer.stories.js +2 -2
- package/app/Footer/__stories__/Default.js +1 -1
- package/app/Footer/__stories__/DefaultCopyright.js +8 -8
- package/app/Footer/__stories__/FooterAllInclusive.js +26 -26
- package/app/Footer/__stories__/FooterWithLink.js +11 -11
- package/app/Footer/__stories__/FooterWithLogo.js +12 -12
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +20 -20
- package/app/Footer/__stories__/YearCopyright.js +9 -9
- package/app/Header/Header.stories.js +7 -7
- package/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
- package/app/Header/__stories__/Default.js +5 -5
- package/app/Header/__stories__/WithHeaderNavigation.js +12 -12
- package/app/Header/__stories__/WithNavigation.js +9 -9
- package/app/Header/__stories__/WithServiceName.js +6 -6
- package/app/Header/__stories__/WithServiceNameAndLogo.js +8 -8
- package/app/Header/index.js +6 -6
- package/app/Header/index.spec.js +6 -6
- package/app/Loader/Loader.stories.js +3 -3
- package/app/Loader/__stories__/Default.js +2 -2
- package/app/Masthead/Masthead.stories.js +5 -5
- package/app/Masthead/__stories__/Default.js +5 -5
- package/app/Masthead/__stories__/WithElements.js +8 -8
- package/app/Masthead/__stories__/WithLogo.js +6 -6
- package/app/Modal/Modal.stories.d.ts +2 -0
- package/app/Modal/Modal.stories.js +33 -5
- package/app/Modal/Modal.stories.playwright.json +32 -0
- package/app/Modal/__stories__/AlertDialog.js +7 -7
- package/app/Modal/__stories__/Auto.d.ts +2 -0
- package/app/Modal/__stories__/Auto.js +64 -0
- package/app/Modal/__stories__/Default.js +9 -9
- package/app/Modal/__stories__/Dense.js +9 -9
- package/app/Modal/__stories__/WithHooks.d.ts +2 -0
- package/app/Modal/__stories__/WithHooks.js +52 -0
- package/app/Modal/auto.d.ts +21 -0
- package/app/Modal/auto.js +103 -0
- package/app/Modal/hooks.d.ts +26 -0
- package/app/Modal/hooks.js +88 -0
- package/app/Modal/index.d.ts +3 -6
- package/app/Modal/index.js +35 -49
- package/app/NotFound/NotFound.stories.js +3 -3
- package/app/NotFound/__stories__/Default.js +2 -2
- package/app/NotFound/index.js +1 -1
- package/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +1 -1
- package/app/OutdatedBrowserBanner/index.js +6 -6
- package/app/Panel/Panel.stories.js +3 -3
- package/app/Panel/__stories__/Default.js +2 -2
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -3
- package/app/PhaseBannerHeader/__stories__/Default.js +2 -2
- package/app/QrCodeScanner/QrCodeScanner.stories.js +3 -3
- package/app/QrCodeScanner/__stories__/Default.js +4 -4
- package/app/QrCodeScanner/index.spec.js +2 -2
- package/app/QrCodeViewer/QRCode.stories.js +2 -2
- package/app/QrCodeViewer/__stories__/Custom.js +3 -3
- package/app/QrCodeViewer/__stories__/Default.js +2 -2
- package/app/QrCodeViewer/index.js +2 -2
- package/app/ThemeOptions/index.js +11 -11
- package/app/hooks/useFontSize.js +1 -1
- package/app/hooks/useLetterSpacing.js +1 -1
- package/app/hooks/useLineHeight.js +1 -1
- package/app/index.js +17 -17
- package/content/Accordion/Accordion.stories.d.ts +2 -0
- package/content/Accordion/Accordion.stories.js +32 -4
- package/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
- package/content/Accordion/__stories__/Auto.d.ts +2 -0
- package/content/Accordion/__stories__/Auto.js +59 -0
- package/content/Accordion/__stories__/Default.js +14 -14
- package/content/Accordion/__stories__/WithHints.js +15 -15
- package/content/Accordion/__stories__/WithHook.d.ts +2 -0
- package/content/Accordion/__stories__/WithHook.js +81 -0
- package/content/Accordion/auto.d.ts +18 -0
- package/content/Accordion/auto.js +110 -0
- package/content/Accordion/hooks.d.ts +26 -0
- package/content/Accordion/hooks.js +207 -0
- package/content/Accordion/index.d.ts +2 -24
- package/content/Accordion/index.js +33 -143
- package/content/Accordion/index.spec.js +16 -2
- package/content/Blockquote/Blockquote.stories.js +4 -4
- package/content/Blockquote/__stories__/Default.js +2 -2
- package/content/Blockquote/__stories__/Dense.js +2 -2
- package/content/Blockquote/index.spec.js +2 -2
- package/content/Card/Card.stories.js +13 -13
- package/content/Card/__stories__/Default.js +3 -3
- package/content/Card/__stories__/Dense.js +4 -4
- package/content/Card/__stories__/WithClickableContent.js +5 -5
- package/content/Card/__stories__/WithClickableLink.js +4 -4
- package/content/Card/__stories__/WithDarkBorder.js +4 -4
- package/content/Card/__stories__/WithDarkTopBorder.js +4 -4
- package/content/Card/__stories__/WithDivider.js +4 -4
- package/content/Card/__stories__/WithGrayBorder.js +4 -4
- package/content/Card/__stories__/WithGrayTopBorder.js +4 -4
- package/content/Card/__stories__/WithGroupButton.js +4 -4
- package/content/Card/__stories__/WithLink.js +3 -3
- package/content/Chip/Chip.stories.js +7 -7
- package/content/Chip/__stories__/ClickableChip.js +2 -2
- package/content/Chip/__stories__/ClickableDeletableChip.js +2 -2
- package/content/Chip/__stories__/Default.js +2 -2
- package/content/Chip/__stories__/DeletableChip.js +2 -2
- package/content/Chip/__stories__/GroupOfChips.js +2 -2
- package/content/Details/Details.stories.js +3 -3
- package/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
- package/content/Details/__stories__/Default.js +2 -2
- package/content/Details/index.spec.js +4 -4
- package/content/List/List.stories.js +8 -8
- package/content/List/ListItemContent.js +1 -1
- package/content/List/ListItemIcon.js +1 -1
- package/content/List/ListItemText.js +2 -2
- package/content/List/ListItemTitle.js +3 -3
- package/content/List/__stories__/BulletList.js +2 -2
- package/content/List/__stories__/Default.js +3 -3
- package/content/List/__stories__/HorizontalList.js +3 -3
- package/content/List/__stories__/NestedBulletList.js +2 -2
- package/content/List/__stories__/NumberedList.js +2 -2
- package/content/List/__stories__/WithExtraSpace.js +2 -2
- package/content/List/index.js +6 -6
- package/content/List/index.spec.js +2 -2
- package/content/StepNav/StepNav.stories.d.ts +2 -0
- package/content/StepNav/StepNav.stories.js +30 -2
- package/content/StepNav/__stories__/Auto.d.ts +2 -0
- package/content/StepNav/__stories__/Auto.js +152 -0
- package/content/StepNav/__stories__/Default.js +13 -13
- package/content/StepNav/__stories__/Dense.js +14 -14
- package/content/StepNav/__stories__/WithHints.js +15 -15
- package/content/StepNav/__stories__/WithHook.d.ts +2 -0
- package/content/StepNav/__stories__/WithHook.js +160 -0
- package/content/StepNav/auto.d.ts +19 -0
- package/content/StepNav/auto.js +105 -0
- package/content/StepNav/index.d.ts +5 -2
- package/content/StepNav/index.js +60 -8
- package/content/SummaryList/SummaryList.stories.js +2 -2
- package/content/SummaryList/__stories__/Default.js +6 -6
- package/content/SummaryList/__stories__/RowVariations.js +13 -13
- package/content/SummaryList/__stories__/WithActions.js +7 -7
- package/content/SummaryList/__stories__/WithKeyAndAction.js +7 -7
- package/content/SummaryList/__stories__/WithoutActions.js +2 -2
- package/content/SummaryList/__stories__/WithoutBorders.js +7 -7
- package/content/SummaryList/index.spec.js +2 -2
- package/content/Table/Table.stories.js +2 -2
- package/content/Table/__stories__/DarkVariant.js +9 -9
- package/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +9 -9
- package/content/Table/__stories__/Default.js +8 -8
- package/content/Table/__stories__/DefinedWidth.js +9 -9
- package/content/Table/__stories__/Densed.js +9 -9
- package/content/Table/__stories__/Full.js +13 -13
- package/content/Table/__stories__/MultipleProps.js +11 -11
- package/content/Table/__stories__/NoData.js +2 -2
- package/content/Table/__stories__/NumericDataType.js +10 -10
- package/content/Table/__stories__/RowColors.js +10 -10
- package/content/Table/__stories__/Stacked.js +9 -9
- package/content/Table/__stories__/TableCaptions.js +5 -5
- package/content/Table/__stories__/VerticalBorders.js +9 -9
- package/content/Table/__stories__/VerticalHeaders.js +8 -8
- package/content/Table/__stories__/WithFloatingScroll.js +11 -11
- package/content/Table/__stories__/WithLoader.js +12 -12
- package/content/Table/__stories__/WithSortFilters.js +10 -10
- package/content/Table/__stories__/ZebraProp.js +9 -9
- package/content/Table/index.d.ts +1 -1
- package/content/Table/index.js +5 -5
- package/content/TaskList/TaskList.stories.js +4 -4
- package/content/TaskList/__stories__/Default.js +8 -8
- package/content/TaskList/__stories__/Dense.js +8 -8
- package/content/Timeline/Timeline.stories.js +4 -4
- package/content/Timeline/__stories__/Default.js +9 -9
- package/content/Timeline/__stories__/Dense.js +9 -9
- package/content/index.js +12 -12
- package/es/api/fetchAPI.js +1 -1
- package/es/api/index.js +7 -7
- package/es/api/index.spec.js +3 -3
- package/es/api/useResource.js +2 -2
- package/es/api/useResourceAction.js +2 -2
- package/es/api/useResourceQuery.js +2 -2
- package/es/api/utils.js +1 -1
- package/es/app/BannerContainer/BannerContainer.stories.js +2 -2
- package/es/app/BannerContainer/__stories__/CookiesBanner.js +6 -6
- package/es/app/Footer/Footer.stories.js +8 -8
- package/es/app/Footer/__stories__/Default.js +1 -1
- package/es/app/Footer/__stories__/DefaultCopyright.js +4 -4
- package/es/app/Footer/__stories__/FooterAllInclusive.js +8 -8
- package/es/app/Footer/__stories__/FooterWithLink.js +5 -5
- package/es/app/Footer/__stories__/FooterWithLogo.js +7 -7
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +6 -6
- package/es/app/Footer/__stories__/YearCopyright.js +4 -4
- package/es/app/Header/Header.stories.js +6 -6
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
- package/es/app/Header/__stories__/Default.js +4 -4
- package/es/app/Header/__stories__/WithHeaderNavigation.js +11 -11
- package/es/app/Header/__stories__/WithNavigation.js +8 -8
- package/es/app/Header/__stories__/WithServiceName.js +5 -5
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +7 -7
- package/es/app/Header/index.js +6 -6
- package/es/app/Header/index.spec.js +1 -1
- package/es/app/Loader/Loader.stories.js +2 -2
- package/es/app/Loader/__stories__/Default.js +1 -1
- package/es/app/Masthead/Masthead.stories.js +4 -4
- package/es/app/Masthead/__stories__/Default.js +5 -5
- package/es/app/Masthead/__stories__/WithElements.js +8 -8
- package/es/app/Masthead/__stories__/WithLogo.js +6 -6
- package/es/app/Modal/Modal.stories.js +6 -4
- package/es/app/Modal/Modal.stories.playwright.json +32 -0
- package/es/app/Modal/__stories__/AlertDialog.js +3 -3
- package/es/app/Modal/__stories__/Auto.js +47 -0
- package/es/app/Modal/__stories__/Default.js +5 -5
- package/es/app/Modal/__stories__/Dense.js +5 -5
- package/es/app/Modal/__stories__/WithHooks.js +34 -0
- package/es/app/Modal/auto.js +69 -0
- package/es/app/Modal/hooks.js +68 -0
- package/es/app/Modal/index.js +10 -44
- package/es/app/NotFound/NotFound.stories.js +2 -2
- package/es/app/NotFound/__stories__/Default.js +1 -1
- package/es/app/NotFound/index.js +1 -1
- package/es/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +1 -1
- package/es/app/OutdatedBrowserBanner/index.js +7 -7
- package/es/app/Panel/Panel.stories.js +2 -2
- package/es/app/Panel/__stories__/Default.js +1 -1
- package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +2 -2
- package/es/app/PhaseBannerHeader/__stories__/Default.js +1 -1
- package/es/app/QrCodeScanner/QrCodeScanner.stories.js +2 -2
- package/es/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/es/app/QrCodeScanner/index.spec.js +1 -1
- package/es/app/QrCodeViewer/QRCode.stories.js +3 -3
- package/es/app/QrCodeViewer/__stories__/Custom.js +2 -2
- package/es/app/QrCodeViewer/__stories__/Default.js +1 -1
- package/es/app/QrCodeViewer/index.js +2 -2
- package/es/app/ThemeOptions/index.js +11 -11
- package/es/app/hooks/useFontSize.js +1 -1
- package/es/app/hooks/useLetterSpacing.js +1 -1
- package/es/app/hooks/useLineHeight.js +1 -1
- package/es/app/index.js +17 -17
- package/es/content/Accordion/Accordion.stories.js +5 -3
- package/es/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
- package/es/content/Accordion/__stories__/Auto.js +41 -0
- package/es/content/Accordion/__stories__/Default.js +5 -5
- package/es/content/Accordion/__stories__/WithHints.js +6 -6
- package/es/content/Accordion/__stories__/WithHook.js +61 -0
- package/es/content/Accordion/auto.js +76 -0
- package/es/content/Accordion/hooks.js +185 -0
- package/es/content/Accordion/index.js +2 -88
- package/es/content/Accordion/index.spec.js +12 -2
- package/es/content/Blockquote/Blockquote.stories.js +3 -3
- package/es/content/Blockquote/__stories__/Default.js +1 -1
- package/es/content/Blockquote/__stories__/Dense.js +1 -1
- package/es/content/Blockquote/index.spec.js +1 -1
- package/es/content/Card/Card.stories.js +12 -12
- package/es/content/Card/__stories__/Default.js +2 -2
- package/es/content/Card/__stories__/Dense.js +2 -2
- package/es/content/Card/__stories__/WithClickableContent.js +2 -2
- package/es/content/Card/__stories__/WithClickableLink.js +2 -2
- package/es/content/Card/__stories__/WithDarkBorder.js +2 -2
- package/es/content/Card/__stories__/WithDarkTopBorder.js +2 -2
- package/es/content/Card/__stories__/WithDivider.js +2 -2
- package/es/content/Card/__stories__/WithGrayBorder.js +2 -2
- package/es/content/Card/__stories__/WithGrayTopBorder.js +2 -2
- package/es/content/Card/__stories__/WithGroupButton.js +3 -3
- package/es/content/Card/__stories__/WithLink.js +2 -2
- package/es/content/Chip/Chip.stories.js +6 -6
- package/es/content/Chip/__stories__/ClickableChip.js +1 -1
- package/es/content/Chip/__stories__/ClickableDeletableChip.js +1 -1
- package/es/content/Chip/__stories__/Default.js +1 -1
- package/es/content/Chip/__stories__/DeletableChip.js +1 -1
- package/es/content/Chip/__stories__/GroupOfChips.js +1 -1
- package/es/content/Details/Details.stories.js +2 -2
- package/es/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
- package/es/content/Details/__stories__/Default.js +1 -1
- package/es/content/Details/index.spec.js +1 -1
- package/es/content/List/List.stories.js +7 -7
- package/es/content/List/ListItemContent.js +1 -1
- package/es/content/List/ListItemIcon.js +1 -1
- package/es/content/List/ListItemText.js +2 -2
- package/es/content/List/ListItemTitle.js +3 -3
- package/es/content/List/__stories__/BulletList.js +2 -2
- package/es/content/List/__stories__/Default.js +3 -3
- package/es/content/List/__stories__/HorizontalList.js +3 -3
- package/es/content/List/__stories__/NestedBulletList.js +2 -2
- package/es/content/List/__stories__/NumberedList.js +2 -2
- package/es/content/List/__stories__/WithExtraSpace.js +2 -2
- package/es/content/List/index.js +7 -7
- package/es/content/List/index.spec.js +1 -1
- package/es/content/StepNav/StepNav.stories.js +6 -4
- package/es/content/StepNav/__stories__/Auto.js +135 -0
- package/es/content/StepNav/__stories__/Default.js +4 -4
- package/es/content/StepNav/__stories__/Dense.js +4 -4
- package/es/content/StepNav/__stories__/WithHints.js +5 -5
- package/es/content/StepNav/__stories__/WithHook.js +143 -0
- package/es/content/StepNav/auto.js +72 -0
- package/es/content/StepNav/index.js +5 -2
- package/es/content/SummaryList/SummaryList.stories.js +7 -7
- package/es/content/SummaryList/__stories__/Default.js +3 -3
- package/es/content/SummaryList/__stories__/RowVariations.js +3 -3
- package/es/content/SummaryList/__stories__/WithActions.js +4 -4
- package/es/content/SummaryList/__stories__/WithKeyAndAction.js +4 -4
- package/es/content/SummaryList/__stories__/WithoutActions.js +1 -1
- package/es/content/SummaryList/__stories__/WithoutBorders.js +3 -3
- package/es/content/SummaryList/index.spec.js +1 -1
- package/es/content/Table/Table.stories.js +19 -19
- package/es/content/Table/__stories__/DarkVariant.js +1 -1
- package/es/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +1 -1
- package/es/content/Table/__stories__/Default.js +1 -1
- package/es/content/Table/__stories__/DefinedWidth.js +1 -1
- package/es/content/Table/__stories__/Densed.js +1 -1
- package/es/content/Table/__stories__/Full.js +1 -1
- package/es/content/Table/__stories__/MultipleProps.js +1 -1
- package/es/content/Table/__stories__/NoData.js +1 -1
- package/es/content/Table/__stories__/NumericDataType.js +1 -1
- package/es/content/Table/__stories__/RowColors.js +2 -2
- package/es/content/Table/__stories__/Stacked.js +1 -1
- package/es/content/Table/__stories__/TableCaptions.js +1 -1
- package/es/content/Table/__stories__/VerticalBorders.js +1 -1
- package/es/content/Table/__stories__/VerticalHeaders.js +1 -1
- package/es/content/Table/__stories__/WithFloatingScroll.js +4 -4
- package/es/content/Table/__stories__/WithLoader.js +5 -5
- package/es/content/Table/__stories__/WithSortFilters.js +2 -2
- package/es/content/Table/__stories__/ZebraProp.js +1 -1
- package/es/content/Table/index.js +5 -5
- package/es/content/TaskList/TaskList.stories.js +3 -3
- package/es/content/TaskList/__stories__/Default.js +3 -3
- package/es/content/TaskList/__stories__/Dense.js +3 -3
- package/es/content/Timeline/Timeline.stories.js +3 -3
- package/es/content/Timeline/__stories__/Default.js +4 -4
- package/es/content/Timeline/__stories__/Dense.js +4 -4
- package/es/content/index.js +12 -12
- package/es/feedback/CopyToClipboard/CopyToClipboard.stories.js +4 -4
- package/es/feedback/CopyToClipboard/__stories__/Banner.js +2 -2
- package/es/feedback/CopyToClipboard/__stories__/Default.js +14 -11
- package/es/feedback/CopyToClipboard/__stories__/Dense.js +2 -2
- package/es/feedback/CopyToClipboard/index.js +4 -2
- package/es/feedback/ErrorSummary/ErrorSummary.stories.js +7 -7
- package/es/feedback/ErrorSummary/__stories__/Default.js +3 -3
- package/es/feedback/ErrorSummary/__stories__/Dense.js +3 -3
- package/es/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +8 -8
- package/es/feedback/ErrorSummary/__stories__/LinkedToField.js +8 -8
- package/es/feedback/ErrorSummary/__stories__/LinkedToInput.js +10 -10
- package/es/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +10 -10
- package/es/feedback/ErrorSummary/index.spec.js +1 -1
- package/es/feedback/NotificationBanner/NotificationBanner.stories.js +4 -4
- package/es/feedback/NotificationBanner/__stories__/Default.js +1 -1
- package/es/feedback/NotificationBanner/__stories__/Dense.js +1 -1
- package/es/feedback/NotificationBanner/__stories__/Success.js +1 -1
- package/es/feedback/NotificationBanner/index.spec.js +1 -1
- package/es/feedback/PhaseBanner/PhaseBanner.stories.js +3 -3
- package/es/feedback/PhaseBanner/__stories__/Default.js +2 -2
- package/es/feedback/PhaseBanner/__stories__/Underlined.js +2 -2
- package/es/feedback/ServiceBadge/index.js +1 -1
- package/es/feedback/WarningText/WarningText.stories.js +4 -4
- package/es/feedback/WarningText/__stories__/AssistiveText.js +1 -1
- package/es/feedback/WarningText/__stories__/Default.js +1 -1
- package/es/feedback/WarningText/__stories__/Dense.js +1 -1
- package/es/feedback/WarningText/index.spec.js +1 -1
- package/es/feedback/index.js +6 -6
- package/es/form/AutoComplete/AutoComplete.stories.js +8 -8
- package/es/form/AutoComplete/__stories__/Default.js +4 -4
- package/es/form/AutoComplete/__stories__/WithAutoSelect.js +4 -4
- package/es/form/AutoComplete/__stories__/WithDefaultValue.js +4 -4
- package/es/form/AutoComplete/__stories__/WithInLine.js +4 -4
- package/es/form/AutoComplete/__stories__/WithMinLength.js +5 -5
- package/es/form/AutoComplete/__stories__/WithPlaceHolder.js +4 -4
- package/es/form/AutoComplete/__stories__/WithShowAllValues.js +4 -4
- package/es/form/AutoComplete/index.js +2 -2
- package/es/form/Button/BackButton.js +1 -1
- package/es/form/Button/Button.stories.js +13 -13
- package/es/form/Button/Icon.js +1 -1
- package/es/form/Button/__stories__/Back.js +1 -1
- package/es/form/Button/__stories__/ButtonLinkButton.js +1 -1
- package/es/form/Button/__stories__/CallToActionButton.js +1 -1
- package/es/form/Button/__stories__/Dense.js +1 -1
- package/es/form/Button/__stories__/Disabled.js +1 -1
- package/es/form/Button/__stories__/GroupingButtons.js +1 -1
- package/es/form/Button/__stories__/GroupingButtonsAndLinks.js +2 -2
- package/es/form/Button/__stories__/Primary.js +1 -1
- package/es/form/Button/__stories__/Secondary.js +1 -1
- package/es/form/Button/__stories__/ThemeToggle.js +1 -1
- package/es/form/Button/__stories__/Warning.js +1 -1
- package/es/form/Button/__stories__/WithVariantLink.js +1 -1
- package/es/form/Button/index.js +5 -5
- package/es/form/Button/index.spec.js +1 -1
- package/es/form/Checkbox/Checkbox.stories.js +11 -11
- package/es/form/Checkbox/__stories__/ConditionalReveal.js +4 -4
- package/es/form/Checkbox/__stories__/Default.js +3 -3
- package/es/form/Checkbox/__stories__/Dense.js +3 -3
- package/es/form/Checkbox/__stories__/Inline.js +3 -3
- package/es/form/Checkbox/__stories__/InlineWithDivider.js +3 -3
- package/es/form/Checkbox/__stories__/MultipleQuestions.js +3 -3
- package/es/form/Checkbox/__stories__/NoneAnswer.js +2 -2
- package/es/form/Checkbox/__stories__/NoneAnswerWithError.js +4 -4
- package/es/form/Checkbox/__stories__/WithErrorMessage.js +5 -5
- package/es/form/Checkbox/__stories__/WithHint.js +3 -3
- package/es/form/DateInputContainer/DateInputContainer.stories.js +6 -6
- package/es/form/DateInputContainer/__stories__/Default.js +3 -3
- package/es/form/DateInputContainer/__stories__/Dense.js +2 -2
- package/es/form/DateInputContainer/__stories__/MultipleQuestions.js +3 -3
- package/es/form/DateInputContainer/__stories__/WithErrorMessage.js +5 -5
- package/es/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +5 -5
- package/es/form/ErrorMessage/ErrorMessage.stories.js +4 -4
- package/es/form/ErrorMessage/__stories__/DateInputError.js +5 -5
- package/es/form/ErrorMessage/__stories__/Default.js +5 -5
- package/es/form/ErrorMessage/__stories__/ErrorMessageOnly.js +2 -2
- package/es/form/FileUpload/FileUpload.stories.js +3 -3
- package/es/form/FileUpload/__stories__/Default.js +3 -3
- package/es/form/FileUpload/__stories__/WithErrorMessage.js +5 -5
- package/es/form/RadioContainer/RadioContainer.stories.js +11 -11
- package/es/form/RadioContainer/__stories__/ConditionalReveal.js +4 -4
- package/es/form/RadioContainer/__stories__/Default.js +2 -2
- package/es/form/RadioContainer/__stories__/Dense.js +2 -2
- package/es/form/RadioContainer/__stories__/Inline.js +3 -3
- package/es/form/RadioContainer/__stories__/InlineWithDivider.js +3 -3
- package/es/form/RadioContainer/__stories__/MultipleQuestions.js +3 -3
- package/es/form/RadioContainer/__stories__/NoneAnswer.js +2 -2
- package/es/form/RadioContainer/__stories__/WithErrorMessage.js +5 -5
- package/es/form/RadioContainer/__stories__/WithHints.js +3 -3
- package/es/form/RadioContainer/__stories__/WithMediumLegend.js +2 -2
- package/es/form/SelectContainer/SelectContainer.stories.js +5 -5
- package/es/form/SelectContainer/__stories__/Default.js +3 -3
- package/es/form/SelectContainer/__stories__/Dense.js +3 -3
- package/es/form/SelectContainer/__stories__/DisabledInput.js +3 -3
- package/es/form/SelectContainer/__stories__/WithHint.js +4 -4
- package/es/form/SingleCharacterInputs/SingleCharacterInput.stories.js +5 -5
- package/es/form/SingleCharacterInputs/__stories__/Default.js +3 -3
- package/es/form/SingleCharacterInputs/__stories__/WithDefaultError.js +5 -5
- package/es/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +5 -5
- package/es/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +5 -5
- package/es/form/TextArea/TextArea.stories.js +9 -9
- package/es/form/TextArea/__stories__/Default.js +4 -4
- package/es/form/TextArea/__stories__/Dense.js +3 -3
- package/es/form/TextArea/__stories__/DisabledInput.js +5 -5
- package/es/form/TextArea/__stories__/LimitedCharacters.js +5 -5
- package/es/form/TextArea/__stories__/MultipleQuestions.js +4 -4
- package/es/form/TextArea/__stories__/WithDeclaredRows.js +5 -5
- package/es/form/TextArea/__stories__/WithErrorMessage.js +6 -6
- package/es/form/TextArea/__stories__/WithHint.js +5 -5
- package/es/form/TextInput/TextInput.stories.js +10 -10
- package/es/form/TextInput/__stories__/AskingForNumbers.js +5 -5
- package/es/form/TextInput/__stories__/Default.js +4 -4
- package/es/form/TextInput/__stories__/Dense.js +3 -3
- package/es/form/TextInput/__stories__/DisabledInput.js +5 -5
- package/es/form/TextInput/__stories__/FixedWidths.js +4 -4
- package/es/form/TextInput/__stories__/FluidWidths.js +4 -4
- package/es/form/TextInput/__stories__/MultipleQuestions.js +3 -3
- package/es/form/TextInput/__stories__/WithErrorMessage.js +6 -6
- package/es/form/TextInput/__stories__/WithHint.js +5 -5
- package/es/form/index.js +15 -15
- package/es/govgr/Footer/Copyright.js +2 -2
- package/es/govgr/Footer/LicenseCCSA.js +2 -2
- package/es/govgr/Footer/index.js +2 -2
- package/es/govgr/images/index.js +5 -5
- package/es/govgr/index.js +5 -5
- package/es/i18n/I18nText.js +1 -1
- package/es/i18n/index.js +1 -1
- package/es/icons/index.js +1 -1
- package/es/index.js +11 -11
- package/es/layouts/Basic/Basic.stories.js +4 -4
- package/es/layouts/Basic/Content/index.js +2 -4
- package/es/layouts/Basic/Side/index.js +2 -3
- package/es/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
- package/es/layouts/Basic/__stories__/Default.js +4 -4
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +5 -5
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +5 -5
- package/es/layouts/Basic/index.js +8 -8
- package/es/layouts/Basic/index.spec.js +1 -1
- package/es/layouts/Divider/Divider.stories.js +2 -2
- package/es/layouts/Divider/__stories__/Default.js +1 -1
- package/es/layouts/Divider/index.js +1 -1
- package/es/layouts/Grid/Grid.stories.js +4 -4
- package/es/layouts/Grid/__stories__/Default.js +2 -2
- package/es/layouts/Grid/__stories__/Inline.js +2 -2
- package/es/layouts/Grid/__stories__/ResponsiveSpacing.js +2 -2
- package/es/layouts/Stack/Stack.stories.js +7 -7
- package/es/layouts/Stack/__stories__/AlignItems.js +2 -2
- package/es/layouts/Stack/__stories__/Default.js +2 -2
- package/es/layouts/Stack/__stories__/JustifyContent.js +2 -2
- package/es/layouts/Stack/__stories__/NoWrap.js +2 -2
- package/es/layouts/Stack/__stories__/Row.js +2 -2
- package/es/layouts/Stack/__stories__/Spacing.js +2 -2
- package/es/layouts/index.js +13 -13
- package/es/navigation/BackLink/BackLink.stories.js +2 -2
- package/es/navigation/BackLink/__stories__/Default.js +1 -1
- package/es/navigation/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/es/navigation/Breadcrumbs/__stories__/Default.js +1 -1
- package/es/navigation/Drawer/Drawer.stories.js +4 -2
- package/es/navigation/Drawer/__stories__/Auto.js +82 -0
- package/es/navigation/Drawer/__stories__/Default.js +4 -4
- package/es/navigation/Drawer/__stories__/WithHook.js +84 -0
- package/es/navigation/Drawer/auto.js +76 -0
- package/es/navigation/Drawer/hooks.js +52 -0
- package/es/navigation/Drawer/index.js +1 -0
- package/es/navigation/Dropdown/Dropdown.stories.js +5 -4
- package/es/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/es/navigation/Dropdown/__stories__/AlignRight.js +8 -8
- package/es/navigation/Dropdown/__stories__/Default.js +8 -8
- package/es/navigation/Dropdown/__stories__/Dense.js +50 -0
- package/es/navigation/Dropdown/__stories__/PlacementTop.js +8 -8
- package/es/navigation/Link/Link.stories.js +7 -7
- package/es/navigation/Link/__stories__/DarkBackground.js +3 -3
- package/es/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +3 -3
- package/es/navigation/Link/__stories__/Default.js +1 -1
- package/es/navigation/Link/__stories__/ExternalLink.js +2 -2
- package/es/navigation/Link/__stories__/NoUnderline.js +1 -1
- package/es/navigation/Link/__stories__/OpensInNewTab.js +1 -1
- package/es/navigation/Link/index.spec.js +1 -1
- package/es/navigation/NavList/NavList.stories.js +9 -9
- package/es/navigation/NavList/NavListAuto/index.js +4 -4
- package/es/navigation/NavList/__stories__/Default.js +2 -2
- package/es/navigation/NavList/__stories__/HorizontalWithDrawer.js +4 -4
- package/es/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +3 -3
- package/es/navigation/NavList/__stories__/NavListWithoutNav.js +2 -2
- package/es/navigation/NavList/__stories__/UsingHeaderButton.js +7 -7
- package/es/navigation/NavList/__stories__/UsingNavListAuto.js +3 -3
- package/es/navigation/NavList/__stories__/Vertical.js +2 -2
- package/es/navigation/NavList/__stories__/VerticalWithoutDrawer.js +4 -4
- package/es/navigation/NavList/hooks/useNavList.js +1 -1
- package/es/navigation/NavList/index.js +4 -4
- package/es/navigation/NavList/index.spec.js +1 -1
- package/es/navigation/Pagination/Pagination.stories.js +8 -6
- package/es/navigation/Pagination/__stories__/Auto.js +52 -0
- package/es/navigation/Pagination/__stories__/Default.js +5 -5
- package/es/navigation/Pagination/__stories__/PaginationSmall.js +5 -5
- package/es/navigation/Pagination/__stories__/PaginationWithSmallFont.js +5 -5
- package/es/navigation/Pagination/__stories__/WithHook.js +57 -0
- package/es/navigation/Pagination/__stories__/WithInactiveValues.js +5 -5
- package/es/navigation/Pagination/__stories__/WithResultsPerPage.js +5 -5
- package/es/navigation/Pagination/auto.js +87 -0
- package/es/navigation/Pagination/hooks.js +117 -0
- package/es/navigation/Pagination/index.js +51 -1
- package/es/navigation/SkipLink/SkipLink.stories.js +2 -2
- package/es/navigation/SkipLink/__stories__/Default.js +2 -2
- package/es/navigation/Tabs/Tabs.stories.js +5 -3
- package/es/navigation/Tabs/Tabs.stories.playwright.json +2 -2
- package/es/navigation/Tabs/__stories__/Auto.js +33 -0
- package/es/navigation/Tabs/__stories__/Default.js +26 -16
- package/es/navigation/Tabs/__stories__/Dense.js +35 -0
- package/es/navigation/Tabs/auto.js +56 -0
- package/es/navigation/Tabs/hooks.js +92 -0
- package/es/navigation/Tabs/index.js +4 -50
- package/es/navigation/index.js +9 -9
- package/es/registry.js +260 -238
- package/es/typography/Caption/index.js +2 -2
- package/es/typography/Heading/Heading.stories.js +2 -2
- package/es/typography/Heading/__stories__/Default.js +1 -1
- package/es/typography/HeadingCaption/HeadingCaption.stories.js +3 -3
- package/es/typography/HeadingCaption/__stories__/Default.js +2 -2
- package/es/typography/HeadingCaption/__stories__/NestedToTitle.js +2 -2
- package/es/typography/Hint/Hint.stories.js +3 -3
- package/es/typography/Hint/__stories__/Default.js +1 -1
- package/es/typography/Hint/__stories__/FontSizes.js +1 -1
- package/es/typography/NormalText/NormalText.stories.js +5 -5
- package/es/typography/NormalText/__stories__/Default.js +1 -1
- package/es/typography/NormalText/__stories__/FontSizes.js +2 -2
- package/es/typography/NormalText/__stories__/FontWeight.js +2 -2
- package/es/typography/NormalText/__stories__/Variants.js +2 -2
- package/es/typography/Paragraph/Paragraph.stories.js +6 -6
- package/es/typography/Paragraph/__stories__/Default.js +1 -1
- package/es/typography/Paragraph/__stories__/FontSizes.js +1 -1
- package/es/typography/Paragraph/__stories__/FontWeight.js +1 -1
- package/es/typography/Paragraph/__stories__/LeadVariant.js +1 -1
- package/es/typography/Paragraph/__stories__/SmallVariant.js +1 -1
- package/es/typography/Title/index.js +2 -2
- package/es/typography/index.js +5 -5
- package/es/utils/Base/index.js +2 -2
- package/es/utils/Kitchensink/AllComponents.js +2 -2
- package/es/utils/Kitchensink/KitchensinkByCategory.js +2 -2
- package/es/utils/Kitchensink/KitchensinkByLetter.js +1 -1
- package/es/utils/Kitchensink/KitchensinkComponent.js +5 -5
- package/es/utils/Kitchensink/KitchensinkDashboard.js +1 -1
- package/es/utils/VisuallyHidden/VisuallyHidden.stories.js +2 -2
- package/es/utils/VisuallyHidden/__stories__/Default.js +4 -4
- package/es/utils/hooks/useDebounce.js +1 -1
- package/es/utils/index.js +3 -3
- package/esm/api/fetchAPI.js +1 -1
- package/esm/api/index.js +7 -7
- package/esm/api/index.spec.js +3 -3
- package/esm/api/useResource.js +2 -2
- package/esm/api/useResourceAction.js +2 -2
- package/esm/api/useResourceQuery.js +2 -2
- package/esm/api/utils.js +1 -1
- package/esm/app/BannerContainer/BannerContainer.stories.js +2 -2
- package/esm/app/BannerContainer/__stories__/CookiesBanner.js +6 -6
- package/esm/app/Footer/Footer.stories.js +8 -8
- package/esm/app/Footer/__stories__/Default.js +1 -1
- package/esm/app/Footer/__stories__/DefaultCopyright.js +4 -4
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +8 -8
- package/esm/app/Footer/__stories__/FooterWithLink.js +5 -5
- package/esm/app/Footer/__stories__/FooterWithLogo.js +7 -7
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +6 -6
- package/esm/app/Footer/__stories__/YearCopyright.js +4 -4
- package/esm/app/Header/Header.stories.js +6 -6
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
- package/esm/app/Header/__stories__/Default.js +4 -4
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +11 -11
- package/esm/app/Header/__stories__/WithNavigation.js +8 -8
- package/esm/app/Header/__stories__/WithServiceName.js +5 -5
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +7 -7
- package/esm/app/Header/index.js +6 -6
- package/esm/app/Header/index.spec.js +1 -1
- package/esm/app/Loader/Loader.stories.js +2 -2
- package/esm/app/Loader/__stories__/Default.js +1 -1
- package/esm/app/Masthead/Masthead.stories.js +4 -4
- package/esm/app/Masthead/__stories__/Default.js +5 -5
- package/esm/app/Masthead/__stories__/WithElements.js +8 -8
- package/esm/app/Masthead/__stories__/WithLogo.js +6 -6
- package/esm/app/Modal/Modal.stories.js +6 -4
- package/esm/app/Modal/Modal.stories.playwright.json +32 -0
- package/esm/app/Modal/__stories__/AlertDialog.js +3 -3
- package/esm/app/Modal/__stories__/Auto.js +47 -0
- package/esm/app/Modal/__stories__/Default.js +5 -5
- package/esm/app/Modal/__stories__/Dense.js +5 -5
- package/esm/app/Modal/__stories__/WithHooks.js +34 -0
- package/esm/app/Modal/auto.js +69 -0
- package/esm/app/Modal/hooks.js +68 -0
- package/esm/app/Modal/index.js +10 -44
- package/esm/app/NotFound/NotFound.stories.js +2 -2
- package/esm/app/NotFound/__stories__/Default.js +1 -1
- package/esm/app/NotFound/index.js +1 -1
- package/esm/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +1 -1
- package/esm/app/OutdatedBrowserBanner/index.js +7 -7
- package/esm/app/Panel/Panel.stories.js +2 -2
- package/esm/app/Panel/__stories__/Default.js +1 -1
- package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +2 -2
- package/esm/app/PhaseBannerHeader/__stories__/Default.js +1 -1
- package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +2 -2
- package/esm/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/esm/app/QrCodeScanner/index.spec.js +1 -1
- package/esm/app/QrCodeViewer/QRCode.stories.js +3 -3
- package/esm/app/QrCodeViewer/__stories__/Custom.js +2 -2
- package/esm/app/QrCodeViewer/__stories__/Default.js +1 -1
- package/esm/app/QrCodeViewer/index.js +2 -2
- package/esm/app/ThemeOptions/index.js +11 -11
- package/esm/app/hooks/useFontSize.js +1 -1
- package/esm/app/hooks/useLetterSpacing.js +1 -1
- package/esm/app/hooks/useLineHeight.js +1 -1
- package/esm/app/index.js +17 -17
- package/esm/content/Accordion/Accordion.stories.js +5 -3
- package/esm/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
- package/esm/content/Accordion/__stories__/Auto.js +41 -0
- package/esm/content/Accordion/__stories__/Default.js +5 -5
- package/esm/content/Accordion/__stories__/WithHints.js +6 -6
- package/esm/content/Accordion/__stories__/WithHook.js +61 -0
- package/esm/content/Accordion/auto.js +76 -0
- package/esm/content/Accordion/hooks.js +185 -0
- package/esm/content/Accordion/index.js +2 -88
- package/esm/content/Accordion/index.spec.js +12 -2
- package/esm/content/Blockquote/Blockquote.stories.js +3 -3
- package/esm/content/Blockquote/__stories__/Default.js +1 -1
- package/esm/content/Blockquote/__stories__/Dense.js +1 -1
- package/esm/content/Blockquote/index.spec.js +1 -1
- package/esm/content/Card/Card.stories.js +12 -12
- package/esm/content/Card/__stories__/Default.js +2 -2
- package/esm/content/Card/__stories__/Dense.js +2 -2
- package/esm/content/Card/__stories__/WithClickableContent.js +2 -2
- package/esm/content/Card/__stories__/WithClickableLink.js +2 -2
- package/esm/content/Card/__stories__/WithDarkBorder.js +2 -2
- package/esm/content/Card/__stories__/WithDarkTopBorder.js +2 -2
- package/esm/content/Card/__stories__/WithDivider.js +2 -2
- package/esm/content/Card/__stories__/WithGrayBorder.js +2 -2
- package/esm/content/Card/__stories__/WithGrayTopBorder.js +2 -2
- package/esm/content/Card/__stories__/WithGroupButton.js +3 -3
- package/esm/content/Card/__stories__/WithLink.js +2 -2
- package/esm/content/Chip/Chip.stories.js +6 -6
- package/esm/content/Chip/__stories__/ClickableChip.js +1 -1
- package/esm/content/Chip/__stories__/ClickableDeletableChip.js +1 -1
- package/esm/content/Chip/__stories__/Default.js +1 -1
- package/esm/content/Chip/__stories__/DeletableChip.js +1 -1
- package/esm/content/Chip/__stories__/GroupOfChips.js +1 -1
- package/esm/content/Details/Details.stories.js +2 -2
- package/esm/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
- package/esm/content/Details/__stories__/Default.js +1 -1
- package/esm/content/Details/index.spec.js +1 -1
- package/esm/content/List/List.stories.js +7 -7
- package/esm/content/List/ListItemContent.js +1 -1
- package/esm/content/List/ListItemIcon.js +1 -1
- package/esm/content/List/ListItemText.js +2 -2
- package/esm/content/List/ListItemTitle.js +3 -3
- package/esm/content/List/__stories__/BulletList.js +2 -2
- package/esm/content/List/__stories__/Default.js +3 -3
- package/esm/content/List/__stories__/HorizontalList.js +3 -3
- package/esm/content/List/__stories__/NestedBulletList.js +2 -2
- package/esm/content/List/__stories__/NumberedList.js +2 -2
- package/esm/content/List/__stories__/WithExtraSpace.js +2 -2
- package/esm/content/List/index.js +7 -7
- package/esm/content/List/index.spec.js +1 -1
- package/esm/content/StepNav/StepNav.stories.js +6 -4
- package/esm/content/StepNav/__stories__/Auto.js +135 -0
- package/esm/content/StepNav/__stories__/Default.js +4 -4
- package/esm/content/StepNav/__stories__/Dense.js +4 -4
- package/esm/content/StepNav/__stories__/WithHints.js +5 -5
- package/esm/content/StepNav/__stories__/WithHook.js +143 -0
- package/esm/content/StepNav/auto.js +72 -0
- package/esm/content/StepNav/index.js +5 -2
- package/esm/content/SummaryList/SummaryList.stories.js +7 -7
- package/esm/content/SummaryList/__stories__/Default.js +3 -3
- package/esm/content/SummaryList/__stories__/RowVariations.js +3 -3
- package/esm/content/SummaryList/__stories__/WithActions.js +4 -4
- package/esm/content/SummaryList/__stories__/WithKeyAndAction.js +4 -4
- package/esm/content/SummaryList/__stories__/WithoutActions.js +1 -1
- package/esm/content/SummaryList/__stories__/WithoutBorders.js +3 -3
- package/esm/content/SummaryList/index.spec.js +1 -1
- package/esm/content/Table/Table.stories.js +19 -19
- package/esm/content/Table/__stories__/DarkVariant.js +1 -1
- package/esm/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +1 -1
- package/esm/content/Table/__stories__/Default.js +1 -1
- package/esm/content/Table/__stories__/DefinedWidth.js +1 -1
- package/esm/content/Table/__stories__/Densed.js +1 -1
- package/esm/content/Table/__stories__/Full.js +1 -1
- package/esm/content/Table/__stories__/MultipleProps.js +1 -1
- package/esm/content/Table/__stories__/NoData.js +1 -1
- package/esm/content/Table/__stories__/NumericDataType.js +1 -1
- package/esm/content/Table/__stories__/RowColors.js +2 -2
- package/esm/content/Table/__stories__/Stacked.js +1 -1
- package/esm/content/Table/__stories__/TableCaptions.js +1 -1
- package/esm/content/Table/__stories__/VerticalBorders.js +1 -1
- package/esm/content/Table/__stories__/VerticalHeaders.js +1 -1
- package/esm/content/Table/__stories__/WithFloatingScroll.js +4 -4
- package/esm/content/Table/__stories__/WithLoader.js +5 -5
- package/esm/content/Table/__stories__/WithSortFilters.js +2 -2
- package/esm/content/Table/__stories__/ZebraProp.js +1 -1
- package/esm/content/Table/index.js +5 -5
- package/esm/content/TaskList/TaskList.stories.js +3 -3
- package/esm/content/TaskList/__stories__/Default.js +3 -3
- package/esm/content/TaskList/__stories__/Dense.js +3 -3
- package/esm/content/Timeline/Timeline.stories.js +3 -3
- package/esm/content/Timeline/__stories__/Default.js +4 -4
- package/esm/content/Timeline/__stories__/Dense.js +4 -4
- package/esm/content/index.js +12 -12
- package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.js +4 -4
- package/esm/feedback/CopyToClipboard/__stories__/Banner.js +2 -2
- package/esm/feedback/CopyToClipboard/__stories__/Default.js +14 -11
- package/esm/feedback/CopyToClipboard/__stories__/Dense.js +2 -2
- package/esm/feedback/CopyToClipboard/index.js +4 -2
- package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +7 -7
- package/esm/feedback/ErrorSummary/__stories__/Default.js +3 -3
- package/esm/feedback/ErrorSummary/__stories__/Dense.js +3 -3
- package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +8 -8
- package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +8 -8
- package/esm/feedback/ErrorSummary/__stories__/LinkedToInput.js +10 -10
- package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +10 -10
- package/esm/feedback/ErrorSummary/index.spec.js +1 -1
- package/esm/feedback/NotificationBanner/NotificationBanner.stories.js +4 -4
- package/esm/feedback/NotificationBanner/__stories__/Default.js +1 -1
- package/esm/feedback/NotificationBanner/__stories__/Dense.js +1 -1
- package/esm/feedback/NotificationBanner/__stories__/Success.js +1 -1
- package/esm/feedback/NotificationBanner/index.spec.js +1 -1
- package/esm/feedback/PhaseBanner/PhaseBanner.stories.js +3 -3
- package/esm/feedback/PhaseBanner/__stories__/Default.js +2 -2
- package/esm/feedback/PhaseBanner/__stories__/Underlined.js +2 -2
- package/esm/feedback/ServiceBadge/index.js +1 -1
- package/esm/feedback/WarningText/WarningText.stories.js +4 -4
- package/esm/feedback/WarningText/__stories__/AssistiveText.js +1 -1
- package/esm/feedback/WarningText/__stories__/Default.js +1 -1
- package/esm/feedback/WarningText/__stories__/Dense.js +1 -1
- package/esm/feedback/WarningText/index.spec.js +1 -1
- package/esm/feedback/index.js +6 -6
- package/esm/form/AutoComplete/AutoComplete.stories.js +8 -8
- package/esm/form/AutoComplete/__stories__/Default.js +4 -4
- package/esm/form/AutoComplete/__stories__/WithAutoSelect.js +4 -4
- package/esm/form/AutoComplete/__stories__/WithDefaultValue.js +4 -4
- package/esm/form/AutoComplete/__stories__/WithInLine.js +4 -4
- package/esm/form/AutoComplete/__stories__/WithMinLength.js +5 -5
- package/esm/form/AutoComplete/__stories__/WithPlaceHolder.js +4 -4
- package/esm/form/AutoComplete/__stories__/WithShowAllValues.js +4 -4
- package/esm/form/AutoComplete/index.js +2 -2
- package/esm/form/Button/BackButton.js +1 -1
- package/esm/form/Button/Button.stories.js +13 -13
- package/esm/form/Button/Icon.js +1 -1
- package/esm/form/Button/__stories__/Back.js +1 -1
- package/esm/form/Button/__stories__/ButtonLinkButton.js +1 -1
- package/esm/form/Button/__stories__/CallToActionButton.js +1 -1
- package/esm/form/Button/__stories__/Dense.js +1 -1
- package/esm/form/Button/__stories__/Disabled.js +1 -1
- package/esm/form/Button/__stories__/GroupingButtons.js +1 -1
- package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +2 -2
- package/esm/form/Button/__stories__/Primary.js +1 -1
- package/esm/form/Button/__stories__/Secondary.js +1 -1
- package/esm/form/Button/__stories__/ThemeToggle.js +1 -1
- package/esm/form/Button/__stories__/Warning.js +1 -1
- package/esm/form/Button/__stories__/WithVariantLink.js +1 -1
- package/esm/form/Button/index.js +5 -5
- package/esm/form/Button/index.spec.js +1 -1
- package/esm/form/Checkbox/Checkbox.stories.js +11 -11
- package/esm/form/Checkbox/__stories__/ConditionalReveal.js +4 -4
- package/esm/form/Checkbox/__stories__/Default.js +3 -3
- package/esm/form/Checkbox/__stories__/Dense.js +3 -3
- package/esm/form/Checkbox/__stories__/Inline.js +3 -3
- package/esm/form/Checkbox/__stories__/InlineWithDivider.js +3 -3
- package/esm/form/Checkbox/__stories__/MultipleQuestions.js +3 -3
- package/esm/form/Checkbox/__stories__/NoneAnswer.js +2 -2
- package/esm/form/Checkbox/__stories__/NoneAnswerWithError.js +4 -4
- package/esm/form/Checkbox/__stories__/WithErrorMessage.js +5 -5
- package/esm/form/Checkbox/__stories__/WithHint.js +3 -3
- package/esm/form/DateInputContainer/DateInputContainer.stories.js +6 -6
- package/esm/form/DateInputContainer/__stories__/Default.js +3 -3
- package/esm/form/DateInputContainer/__stories__/Dense.js +2 -2
- package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +3 -3
- package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +5 -5
- package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +5 -5
- package/esm/form/ErrorMessage/ErrorMessage.stories.js +4 -4
- package/esm/form/ErrorMessage/__stories__/DateInputError.js +5 -5
- package/esm/form/ErrorMessage/__stories__/Default.js +5 -5
- package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +2 -2
- package/esm/form/FileUpload/FileUpload.stories.js +3 -3
- package/esm/form/FileUpload/__stories__/Default.js +3 -3
- package/esm/form/FileUpload/__stories__/WithErrorMessage.js +5 -5
- package/esm/form/RadioContainer/RadioContainer.stories.js +11 -11
- package/esm/form/RadioContainer/__stories__/ConditionalReveal.js +4 -4
- package/esm/form/RadioContainer/__stories__/Default.js +2 -2
- package/esm/form/RadioContainer/__stories__/Dense.js +2 -2
- package/esm/form/RadioContainer/__stories__/Inline.js +3 -3
- package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +3 -3
- package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +3 -3
- package/esm/form/RadioContainer/__stories__/NoneAnswer.js +2 -2
- package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +5 -5
- package/esm/form/RadioContainer/__stories__/WithHints.js +3 -3
- package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +2 -2
- package/esm/form/SelectContainer/SelectContainer.stories.js +5 -5
- package/esm/form/SelectContainer/__stories__/Default.js +3 -3
- package/esm/form/SelectContainer/__stories__/Dense.js +3 -3
- package/esm/form/SelectContainer/__stories__/DisabledInput.js +3 -3
- package/esm/form/SelectContainer/__stories__/WithHint.js +4 -4
- package/esm/form/SingleCharacterInputs/SingleCharacterInput.stories.js +5 -5
- package/esm/form/SingleCharacterInputs/__stories__/Default.js +3 -3
- package/esm/form/SingleCharacterInputs/__stories__/WithDefaultError.js +5 -5
- package/esm/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +5 -5
- package/esm/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +5 -5
- package/esm/form/TextArea/TextArea.stories.js +9 -9
- package/esm/form/TextArea/__stories__/Default.js +4 -4
- package/esm/form/TextArea/__stories__/Dense.js +3 -3
- package/esm/form/TextArea/__stories__/DisabledInput.js +5 -5
- package/esm/form/TextArea/__stories__/LimitedCharacters.js +5 -5
- package/esm/form/TextArea/__stories__/MultipleQuestions.js +4 -4
- package/esm/form/TextArea/__stories__/WithDeclaredRows.js +5 -5
- package/esm/form/TextArea/__stories__/WithErrorMessage.js +6 -6
- package/esm/form/TextArea/__stories__/WithHint.js +5 -5
- package/esm/form/TextInput/TextInput.stories.js +10 -10
- package/esm/form/TextInput/__stories__/AskingForNumbers.js +5 -5
- package/esm/form/TextInput/__stories__/Default.js +4 -4
- package/esm/form/TextInput/__stories__/Dense.js +3 -3
- package/esm/form/TextInput/__stories__/DisabledInput.js +5 -5
- package/esm/form/TextInput/__stories__/FixedWidths.js +4 -4
- package/esm/form/TextInput/__stories__/FluidWidths.js +4 -4
- package/esm/form/TextInput/__stories__/MultipleQuestions.js +3 -3
- package/esm/form/TextInput/__stories__/WithErrorMessage.js +6 -6
- package/esm/form/TextInput/__stories__/WithHint.js +5 -5
- package/esm/form/index.js +15 -15
- package/esm/govgr/Footer/Copyright.js +2 -2
- package/esm/govgr/Footer/LicenseCCSA.js +2 -2
- package/esm/govgr/Footer/index.js +2 -2
- package/esm/govgr/images/index.js +5 -5
- package/esm/govgr/index.js +5 -5
- package/esm/i18n/I18nText.js +1 -1
- package/esm/i18n/index.js +1 -1
- package/esm/icons/index.js +1 -1
- package/esm/index.js +12 -12
- package/esm/layouts/Basic/Basic.stories.js +4 -4
- package/esm/layouts/Basic/Content/index.js +2 -4
- package/esm/layouts/Basic/Side/index.js +2 -3
- package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
- package/esm/layouts/Basic/__stories__/Default.js +4 -4
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +5 -5
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +5 -5
- package/esm/layouts/Basic/index.js +8 -8
- package/esm/layouts/Basic/index.spec.js +1 -1
- package/esm/layouts/Divider/Divider.stories.js +2 -2
- package/esm/layouts/Divider/__stories__/Default.js +1 -1
- package/esm/layouts/Divider/index.js +1 -1
- package/esm/layouts/Grid/Grid.stories.js +4 -4
- package/esm/layouts/Grid/__stories__/Default.js +2 -2
- package/esm/layouts/Grid/__stories__/Inline.js +2 -2
- package/esm/layouts/Grid/__stories__/ResponsiveSpacing.js +2 -2
- package/esm/layouts/Stack/Stack.stories.js +7 -7
- package/esm/layouts/Stack/__stories__/AlignItems.js +2 -2
- package/esm/layouts/Stack/__stories__/Default.js +2 -2
- package/esm/layouts/Stack/__stories__/JustifyContent.js +2 -2
- package/esm/layouts/Stack/__stories__/NoWrap.js +2 -2
- package/esm/layouts/Stack/__stories__/Row.js +2 -2
- package/esm/layouts/Stack/__stories__/Spacing.js +2 -2
- package/esm/layouts/index.js +13 -13
- package/esm/navigation/BackLink/BackLink.stories.js +2 -2
- package/esm/navigation/BackLink/__stories__/Default.js +1 -1
- package/esm/navigation/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/esm/navigation/Breadcrumbs/__stories__/Default.js +1 -1
- package/esm/navigation/Drawer/Drawer.stories.js +4 -2
- package/esm/navigation/Drawer/__stories__/Auto.js +82 -0
- package/esm/navigation/Drawer/__stories__/Default.js +4 -4
- package/esm/navigation/Drawer/__stories__/WithHook.js +84 -0
- package/esm/navigation/Drawer/auto.js +76 -0
- package/esm/navigation/Drawer/hooks.js +52 -0
- package/esm/navigation/Drawer/index.js +1 -0
- package/esm/navigation/Dropdown/Dropdown.stories.js +5 -4
- package/esm/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/esm/navigation/Dropdown/__stories__/AlignRight.js +8 -8
- package/esm/navigation/Dropdown/__stories__/Default.js +8 -8
- package/esm/navigation/Dropdown/__stories__/Dense.js +50 -0
- package/esm/navigation/Dropdown/__stories__/PlacementTop.js +8 -8
- package/esm/navigation/Link/Link.stories.js +7 -7
- package/esm/navigation/Link/__stories__/DarkBackground.js +3 -3
- package/esm/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +3 -3
- package/esm/navigation/Link/__stories__/Default.js +1 -1
- package/esm/navigation/Link/__stories__/ExternalLink.js +2 -2
- package/esm/navigation/Link/__stories__/NoUnderline.js +1 -1
- package/esm/navigation/Link/__stories__/OpensInNewTab.js +1 -1
- package/esm/navigation/Link/index.spec.js +1 -1
- package/esm/navigation/NavList/NavList.stories.js +9 -9
- package/esm/navigation/NavList/NavListAuto/index.js +4 -4
- package/esm/navigation/NavList/__stories__/Default.js +2 -2
- package/esm/navigation/NavList/__stories__/HorizontalWithDrawer.js +4 -4
- package/esm/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +3 -3
- package/esm/navigation/NavList/__stories__/NavListWithoutNav.js +2 -2
- package/esm/navigation/NavList/__stories__/UsingHeaderButton.js +7 -7
- package/esm/navigation/NavList/__stories__/UsingNavListAuto.js +3 -3
- package/esm/navigation/NavList/__stories__/Vertical.js +2 -2
- package/esm/navigation/NavList/__stories__/VerticalWithoutDrawer.js +4 -4
- package/esm/navigation/NavList/hooks/useNavList.js +1 -1
- package/esm/navigation/NavList/index.js +4 -4
- package/esm/navigation/NavList/index.spec.js +1 -1
- package/esm/navigation/Pagination/Pagination.stories.js +8 -6
- package/esm/navigation/Pagination/__stories__/Auto.js +52 -0
- package/esm/navigation/Pagination/__stories__/Default.js +5 -5
- package/esm/navigation/Pagination/__stories__/PaginationSmall.js +5 -5
- package/esm/navigation/Pagination/__stories__/PaginationWithSmallFont.js +5 -5
- package/esm/navigation/Pagination/__stories__/WithHook.js +57 -0
- package/esm/navigation/Pagination/__stories__/WithInactiveValues.js +5 -5
- package/esm/navigation/Pagination/__stories__/WithResultsPerPage.js +5 -5
- package/esm/navigation/Pagination/auto.js +87 -0
- package/esm/navigation/Pagination/hooks.js +117 -0
- package/esm/navigation/Pagination/index.js +51 -1
- package/esm/navigation/SkipLink/SkipLink.stories.js +2 -2
- package/esm/navigation/SkipLink/__stories__/Default.js +2 -2
- package/esm/navigation/Tabs/Tabs.stories.js +5 -3
- package/esm/navigation/Tabs/Tabs.stories.playwright.json +2 -2
- package/esm/navigation/Tabs/__stories__/Auto.js +33 -0
- package/esm/navigation/Tabs/__stories__/Default.js +26 -16
- package/esm/navigation/Tabs/__stories__/Dense.js +35 -0
- package/esm/navigation/Tabs/auto.js +56 -0
- package/esm/navigation/Tabs/hooks.js +92 -0
- package/esm/navigation/Tabs/index.js +4 -50
- package/esm/navigation/index.js +9 -9
- package/esm/registry.js +260 -238
- package/esm/typography/Caption/index.js +2 -2
- package/esm/typography/Heading/Heading.stories.js +2 -2
- package/esm/typography/Heading/__stories__/Default.js +1 -1
- package/esm/typography/HeadingCaption/HeadingCaption.stories.js +3 -3
- package/esm/typography/HeadingCaption/__stories__/Default.js +2 -2
- package/esm/typography/HeadingCaption/__stories__/NestedToTitle.js +2 -2
- package/esm/typography/Hint/Hint.stories.js +3 -3
- package/esm/typography/Hint/__stories__/Default.js +1 -1
- package/esm/typography/Hint/__stories__/FontSizes.js +1 -1
- package/esm/typography/NormalText/NormalText.stories.js +5 -5
- package/esm/typography/NormalText/__stories__/Default.js +1 -1
- package/esm/typography/NormalText/__stories__/FontSizes.js +2 -2
- package/esm/typography/NormalText/__stories__/FontWeight.js +2 -2
- package/esm/typography/NormalText/__stories__/Variants.js +2 -2
- package/esm/typography/Paragraph/Paragraph.stories.js +6 -6
- package/esm/typography/Paragraph/__stories__/Default.js +1 -1
- package/esm/typography/Paragraph/__stories__/FontSizes.js +1 -1
- package/esm/typography/Paragraph/__stories__/FontWeight.js +1 -1
- package/esm/typography/Paragraph/__stories__/LeadVariant.js +1 -1
- package/esm/typography/Paragraph/__stories__/SmallVariant.js +1 -1
- package/esm/typography/Title/index.js +2 -2
- package/esm/typography/index.js +5 -5
- package/esm/utils/Base/index.js +2 -2
- package/esm/utils/Kitchensink/AllComponents.js +2 -2
- package/esm/utils/Kitchensink/KitchensinkByCategory.js +2 -2
- package/esm/utils/Kitchensink/KitchensinkByLetter.js +1 -1
- package/esm/utils/Kitchensink/KitchensinkComponent.js +5 -5
- package/esm/utils/Kitchensink/KitchensinkDashboard.js +1 -1
- package/esm/utils/VisuallyHidden/VisuallyHidden.stories.js +2 -2
- package/esm/utils/VisuallyHidden/__stories__/Default.js +4 -4
- package/esm/utils/hooks/useDebounce.js +1 -1
- package/esm/utils/index.js +3 -3
- package/feedback/CopyToClipboard/CopyToClipboard.stories.js +5 -5
- package/feedback/CopyToClipboard/__stories__/Banner.js +3 -3
- package/feedback/CopyToClipboard/__stories__/Default.js +14 -11
- package/feedback/CopyToClipboard/__stories__/Dense.js +3 -3
- package/feedback/CopyToClipboard/index.d.ts +2 -1
- package/feedback/CopyToClipboard/index.js +4 -2
- package/feedback/ErrorSummary/ErrorSummary.stories.js +8 -8
- package/feedback/ErrorSummary/__stories__/Default.js +4 -4
- package/feedback/ErrorSummary/__stories__/Dense.js +4 -4
- package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +9 -9
- package/feedback/ErrorSummary/__stories__/LinkedToField.js +9 -9
- package/feedback/ErrorSummary/__stories__/LinkedToInput.js +10 -10
- package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +11 -11
- package/feedback/ErrorSummary/index.spec.js +2 -2
- package/feedback/NotificationBanner/NotificationBanner.stories.js +5 -5
- package/feedback/NotificationBanner/__stories__/Default.js +2 -2
- package/feedback/NotificationBanner/__stories__/Dense.js +2 -2
- package/feedback/NotificationBanner/__stories__/Success.js +2 -2
- package/feedback/NotificationBanner/index.spec.js +3 -3
- package/feedback/PhaseBanner/PhaseBanner.stories.js +4 -4
- package/feedback/PhaseBanner/__stories__/Default.js +3 -3
- package/feedback/PhaseBanner/__stories__/Underlined.js +4 -4
- package/feedback/ServiceBadge/index.js +1 -1
- package/feedback/WarningText/WarningText.stories.js +5 -5
- package/feedback/WarningText/__stories__/AssistiveText.js +2 -2
- package/feedback/WarningText/__stories__/Default.js +2 -2
- package/feedback/WarningText/__stories__/Dense.js +2 -2
- package/feedback/WarningText/index.spec.js +2 -2
- package/feedback/index.js +6 -6
- package/form/AutoComplete/AutoComplete.stories.js +9 -9
- package/form/AutoComplete/__stories__/Default.js +5 -5
- package/form/AutoComplete/__stories__/WithAutoSelect.js +5 -5
- package/form/AutoComplete/__stories__/WithDefaultValue.js +5 -5
- package/form/AutoComplete/__stories__/WithInLine.js +5 -5
- package/form/AutoComplete/__stories__/WithMinLength.js +6 -6
- package/form/AutoComplete/__stories__/WithPlaceHolder.js +5 -5
- package/form/AutoComplete/__stories__/WithShowAllValues.js +5 -5
- package/form/AutoComplete/index.js +2 -2
- package/form/Button/BackButton.js +1 -1
- package/form/Button/Button.stories.js +2 -2
- package/form/Button/Icon.js +1 -1
- package/form/Button/__stories__/Back.js +1 -1
- package/form/Button/__stories__/ButtonLinkButton.js +1 -1
- package/form/Button/__stories__/CallToActionButton.js +1 -1
- package/form/Button/__stories__/Dense.js +2 -2
- package/form/Button/__stories__/Disabled.js +2 -2
- package/form/Button/__stories__/GroupingButtons.js +2 -2
- package/form/Button/__stories__/GroupingButtonsAndLinks.js +3 -3
- package/form/Button/__stories__/Primary.js +2 -2
- package/form/Button/__stories__/Secondary.js +2 -2
- package/form/Button/__stories__/ThemeToggle.js +1 -1
- package/form/Button/__stories__/Warning.js +2 -2
- package/form/Button/__stories__/WithVariantLink.js +2 -2
- package/form/Button/index.js +5 -5
- package/form/Button/index.spec.js +2 -2
- package/form/Checkbox/Checkbox.stories.js +12 -12
- package/form/Checkbox/__stories__/ConditionalReveal.js +7 -7
- package/form/Checkbox/__stories__/Default.js +6 -6
- package/form/Checkbox/__stories__/Dense.js +7 -7
- package/form/Checkbox/__stories__/Inline.js +6 -6
- package/form/Checkbox/__stories__/InlineWithDivider.js +6 -6
- package/form/Checkbox/__stories__/MultipleQuestions.js +6 -6
- package/form/Checkbox/__stories__/NoneAnswer.js +5 -5
- package/form/Checkbox/__stories__/NoneAnswerWithError.js +7 -7
- package/form/Checkbox/__stories__/WithErrorMessage.js +7 -7
- package/form/Checkbox/__stories__/WithHint.js +6 -6
- package/form/DateInputContainer/DateInputContainer.stories.js +7 -7
- package/form/DateInputContainer/__stories__/Default.js +7 -7
- package/form/DateInputContainer/__stories__/Dense.js +6 -6
- package/form/DateInputContainer/__stories__/MultipleQuestions.js +6 -6
- package/form/DateInputContainer/__stories__/WithErrorMessage.js +9 -9
- package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +9 -9
- package/form/ErrorMessage/ErrorMessage.stories.js +5 -5
- package/form/ErrorMessage/__stories__/DateInputError.js +6 -6
- package/form/ErrorMessage/__stories__/Default.js +6 -6
- package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +3 -3
- package/form/FileUpload/FileUpload.stories.js +4 -4
- package/form/FileUpload/__stories__/Default.js +4 -4
- package/form/FileUpload/__stories__/WithErrorMessage.js +6 -6
- package/form/RadioContainer/RadioContainer.stories.js +12 -12
- package/form/RadioContainer/__stories__/ConditionalReveal.js +7 -7
- package/form/RadioContainer/__stories__/Default.js +6 -6
- package/form/RadioContainer/__stories__/Dense.js +7 -7
- package/form/RadioContainer/__stories__/Inline.js +6 -6
- package/form/RadioContainer/__stories__/InlineWithDivider.js +6 -6
- package/form/RadioContainer/__stories__/MultipleQuestions.js +6 -6
- package/form/RadioContainer/__stories__/NoneAnswer.js +5 -5
- package/form/RadioContainer/__stories__/WithErrorMessage.js +7 -7
- package/form/RadioContainer/__stories__/WithHints.js +5 -5
- package/form/RadioContainer/__stories__/WithMediumLegend.js +6 -6
- package/form/SelectContainer/SelectContainer.stories.js +6 -6
- package/form/SelectContainer/__stories__/Default.js +8 -8
- package/form/SelectContainer/__stories__/Dense.js +8 -8
- package/form/SelectContainer/__stories__/DisabledInput.js +8 -8
- package/form/SelectContainer/__stories__/WithHint.js +9 -9
- package/form/SingleCharacterInputs/SingleCharacterInput.stories.js +6 -6
- package/form/SingleCharacterInputs/__stories__/Default.js +9 -9
- package/form/SingleCharacterInputs/__stories__/WithDefaultError.js +11 -11
- package/form/SingleCharacterInputs/__stories__/WithErrorMessageInvalidCode.js +12 -12
- package/form/SingleCharacterInputs/__stories__/WithErrorMessageLessDigit.js +12 -12
- package/form/TextArea/TextArea.stories.js +10 -10
- package/form/TextArea/__stories__/Default.js +4 -4
- package/form/TextArea/__stories__/Dense.js +4 -4
- package/form/TextArea/__stories__/DisabledInput.js +5 -5
- package/form/TextArea/__stories__/LimitedCharacters.js +5 -5
- package/form/TextArea/__stories__/MultipleQuestions.js +5 -5
- package/form/TextArea/__stories__/WithDeclaredRows.js +5 -5
- package/form/TextArea/__stories__/WithErrorMessage.js +6 -6
- package/form/TextArea/__stories__/WithHint.js +5 -5
- package/form/TextInput/TextInput.stories.js +11 -11
- package/form/TextInput/__stories__/AskingForNumbers.js +5 -5
- package/form/TextInput/__stories__/Default.js +4 -4
- package/form/TextInput/__stories__/Dense.js +4 -4
- package/form/TextInput/__stories__/DisabledInput.js +5 -5
- package/form/TextInput/__stories__/FixedWidths.js +9 -9
- package/form/TextInput/__stories__/FluidWidths.js +9 -9
- package/form/TextInput/__stories__/MultipleQuestions.js +4 -4
- package/form/TextInput/__stories__/WithErrorMessage.js +6 -6
- package/form/TextInput/__stories__/WithHint.js +5 -5
- package/form/index.js +15 -15
- package/govgr/Footer/Copyright.js +2 -2
- package/govgr/Footer/LicenseCCSA.js +2 -2
- package/govgr/Footer/index.js +2 -2
- package/govgr/images/index.js +5 -5
- package/govgr/index.js +5 -5
- package/i18n/I18nText.js +3 -3
- package/i18n/index.js +1 -1
- package/icons/index.js +1 -1
- package/index.js +11 -11
- package/layouts/Basic/Basic.stories.js +2 -2
- package/layouts/Basic/Content/index.d.ts +0 -2
- package/layouts/Basic/Content/index.js +1 -7
- package/layouts/Basic/Side/index.d.ts +0 -2
- package/layouts/Basic/Side/index.js +1 -7
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
- package/layouts/Basic/__stories__/Default.js +5 -5
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +6 -6
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +6 -6
- package/layouts/Basic/index.js +8 -8
- package/layouts/Basic/index.spec.js +2 -2
- package/layouts/Divider/Divider.stories.js +2 -2
- package/layouts/Divider/__stories__/Default.js +1 -1
- package/layouts/Divider/index.js +1 -1
- package/layouts/Grid/Grid.stories.js +5 -5
- package/layouts/Grid/__stories__/Default.js +9 -9
- package/layouts/Grid/__stories__/Inline.js +9 -9
- package/layouts/Grid/__stories__/ResponsiveSpacing.js +9 -9
- package/layouts/Stack/Stack.stories.js +8 -8
- package/layouts/Stack/__stories__/AlignItems.js +8 -8
- package/layouts/Stack/__stories__/Default.js +3 -3
- package/layouts/Stack/__stories__/JustifyContent.js +9 -9
- package/layouts/Stack/__stories__/NoWrap.js +3 -3
- package/layouts/Stack/__stories__/Row.js +3 -3
- package/layouts/Stack/__stories__/Spacing.js +7 -7
- package/layouts/index.js +7 -7
- package/navigation/BackLink/BackLink.stories.js +3 -3
- package/navigation/BackLink/__stories__/Default.js +2 -2
- package/navigation/Breadcrumbs/Breadcrumbs.stories.js +3 -3
- package/navigation/Breadcrumbs/__stories__/Default.js +6 -6
- package/navigation/Drawer/Drawer.stories.d.ts +2 -0
- package/navigation/Drawer/Drawer.stories.js +31 -3
- package/navigation/Drawer/__stories__/Auto.d.ts +1 -0
- package/navigation/Drawer/__stories__/Auto.js +101 -0
- package/navigation/Drawer/__stories__/Default.js +5 -5
- package/navigation/Drawer/__stories__/WithHook.d.ts +1 -0
- package/navigation/Drawer/__stories__/WithHook.js +106 -0
- package/navigation/Drawer/auto.d.ts +28 -0
- package/navigation/Drawer/auto.js +111 -0
- package/navigation/Drawer/hooks.d.ts +20 -0
- package/navigation/Drawer/hooks.js +72 -0
- package/navigation/Drawer/index.d.ts +1 -0
- package/navigation/Drawer/index.js +14 -0
- package/navigation/Dropdown/Dropdown.stories.d.ts +1 -0
- package/navigation/Dropdown/Dropdown.stories.js +16 -2
- package/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/navigation/Dropdown/__stories__/AlignRight.js +10 -10
- package/navigation/Dropdown/__stories__/Default.js +9 -9
- package/navigation/Dropdown/__stories__/Dense.d.ts +2 -0
- package/navigation/Dropdown/__stories__/Dense.js +68 -0
- package/navigation/Dropdown/__stories__/PlacementTop.js +10 -10
- package/navigation/Dropdown/index.d.ts +1 -1
- package/navigation/Link/Link.stories.js +8 -8
- package/navigation/Link/__stories__/DarkBackground.js +4 -4
- package/navigation/Link/__stories__/DarkBackgroundNoUnderline.js +4 -4
- package/navigation/Link/__stories__/Default.js +2 -2
- package/navigation/Link/__stories__/ExternalLink.js +3 -3
- package/navigation/Link/__stories__/NoUnderline.js +2 -2
- package/navigation/Link/__stories__/OpensInNewTab.js +2 -2
- package/navigation/Link/index.spec.js +4 -4
- package/navigation/NavList/NavList.stories.js +10 -10
- package/navigation/NavList/NavListAuto/index.js +2 -2
- package/navigation/NavList/__stories__/Default.js +5 -5
- package/navigation/NavList/__stories__/HorizontalWithDrawer.js +9 -9
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +8 -8
- package/navigation/NavList/__stories__/NavListWithoutNav.js +4 -4
- package/navigation/NavList/__stories__/UsingHeaderButton.js +13 -13
- package/navigation/NavList/__stories__/UsingNavListAuto.js +3 -3
- package/navigation/NavList/__stories__/Vertical.js +5 -5
- package/navigation/NavList/__stories__/VerticalWithoutDrawer.js +8 -8
- package/navigation/NavList/hooks/useNavList.js +1 -1
- package/navigation/NavList/index.js +4 -4
- package/navigation/NavList/index.spec.js +2 -2
- package/navigation/Pagination/Pagination.stories.d.ts +2 -0
- package/navigation/Pagination/Pagination.stories.js +35 -7
- package/navigation/Pagination/__stories__/Auto.d.ts +2 -0
- package/navigation/Pagination/__stories__/Auto.js +68 -0
- package/navigation/Pagination/__stories__/Default.js +25 -25
- package/navigation/Pagination/__stories__/PaginationSmall.js +10 -10
- package/navigation/Pagination/__stories__/PaginationWithSmallFont.js +16 -16
- package/navigation/Pagination/__stories__/WithHook.d.ts +2 -0
- package/navigation/Pagination/__stories__/WithHook.js +75 -0
- package/navigation/Pagination/__stories__/WithInactiveValues.js +24 -24
- package/navigation/Pagination/__stories__/WithResultsPerPage.js +15 -15
- package/navigation/Pagination/auto.d.ts +24 -0
- package/navigation/Pagination/auto.js +122 -0
- package/navigation/Pagination/hooks.d.ts +30 -0
- package/navigation/Pagination/hooks.js +131 -0
- package/navigation/Pagination/index.d.ts +19 -0
- package/navigation/Pagination/index.js +90 -3
- package/navigation/SkipLink/SkipLink.stories.js +3 -3
- package/navigation/SkipLink/__stories__/Default.js +3 -3
- package/navigation/Tabs/Tabs.stories.d.ts +4 -2
- package/navigation/Tabs/Tabs.stories.js +31 -3
- package/navigation/Tabs/Tabs.stories.playwright.json +2 -2
- package/navigation/Tabs/__stories__/Auto.d.ts +2 -0
- package/navigation/Tabs/__stories__/Auto.js +50 -0
- package/navigation/Tabs/__stories__/Default.js +28 -18
- package/navigation/Tabs/__stories__/Dense.d.ts +2 -0
- package/navigation/Tabs/__stories__/Dense.js +52 -0
- package/navigation/Tabs/auto.d.ts +18 -0
- package/navigation/Tabs/auto.js +88 -0
- package/navigation/Tabs/hooks.d.ts +28 -0
- package/navigation/Tabs/hooks.js +111 -0
- package/navigation/Tabs/index.d.ts +4 -11
- package/navigation/Tabs/index.js +37 -67
- package/navigation/index.js +9 -9
- package/package.json +3 -3
- package/registry.d.ts +11 -0
- package/registry.js +271 -238
- package/src/app/Header/__snapshots__/index.spec.tsx.snap +7 -4
- package/src/app/Modal/Modal.stories.js +2 -0
- package/src/app/Modal/Modal.stories.playwright.json +32 -0
- package/src/app/Modal/__stories__/Auto.tsx +69 -0
- package/src/app/Modal/__stories__/WithHooks.tsx +44 -0
- package/src/app/Modal/auto.tsx +73 -0
- package/src/app/Modal/hooks.ts +87 -0
- package/src/app/Modal/index.tsx +10 -36
- package/src/content/Accordion/Accordion.stories.js +2 -0
- package/src/content/Accordion/__snapshots__/index.spec.tsx.snap +10 -4
- package/src/content/Accordion/__stories__/Auto.tsx +129 -0
- package/src/content/Accordion/__stories__/WithHook.tsx +136 -0
- package/src/content/Accordion/auto.tsx +85 -0
- package/src/content/Accordion/hooks.ts +165 -0
- package/src/content/Accordion/index.spec.tsx +29 -15
- package/src/content/Accordion/index.tsx +3 -102
- package/src/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/content/StepNav/StepNav.stories.js +2 -0
- package/src/content/StepNav/__stories__/Auto.tsx +228 -0
- package/src/content/StepNav/__stories__/WithHook.tsx +231 -0
- package/src/content/StepNav/auto.tsx +81 -0
- package/src/content/StepNav/index.tsx +4 -2
- package/src/feedback/CopyToClipboard/__stories__/Default.tsx +2 -0
- package/src/feedback/CopyToClipboard/index.tsx +3 -1
- package/src/layouts/Basic/Content/index.tsx +0 -2
- package/src/layouts/Basic/Side/index.tsx +0 -1
- package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +43 -24
- package/src/navigation/Drawer/Drawer.stories.js +3 -0
- package/src/navigation/Drawer/__stories__/Auto.tsx +103 -0
- package/src/navigation/Drawer/__stories__/WithHook.tsx +105 -0
- package/src/navigation/Drawer/auto.tsx +84 -0
- package/src/navigation/Drawer/hooks.ts +66 -0
- package/src/navigation/Drawer/index.tsx +1 -1
- package/src/navigation/Dropdown/Dropdown.stories.js +1 -0
- package/src/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/src/navigation/Dropdown/__stories__/Dense.tsx +54 -0
- package/src/navigation/Pagination/Pagination.stories.js +2 -0
- package/src/navigation/Pagination/__stories__/Auto.tsx +64 -0
- package/src/navigation/Pagination/__stories__/WithHook.tsx +72 -0
- package/src/navigation/Pagination/auto.tsx +141 -0
- package/src/navigation/Pagination/hooks.ts +136 -0
- package/src/navigation/Pagination/index.tsx +83 -0
- package/src/navigation/Tabs/Tabs.stories.js +4 -2
- package/src/navigation/Tabs/Tabs.stories.playwright.json +2 -2
- package/src/navigation/Tabs/__stories__/Auto.tsx +72 -0
- package/src/navigation/Tabs/__stories__/Default.tsx +40 -12
- package/src/navigation/Tabs/__stories__/Dense.tsx +74 -0
- package/src/navigation/Tabs/auto.tsx +60 -0
- package/src/navigation/Tabs/hooks.ts +103 -0
- package/src/navigation/Tabs/index.tsx +7 -50
- package/src/registry.js +22 -0
- package/src/utils/Base/index.tsx +1 -1
- package/typography/Caption/index.js +2 -2
- package/typography/Heading/Heading.stories.js +3 -3
- package/typography/Heading/__stories__/Default.js +6 -6
- package/typography/HeadingCaption/HeadingCaption.stories.js +4 -4
- package/typography/HeadingCaption/__stories__/Default.js +5 -5
- package/typography/HeadingCaption/__stories__/NestedToTitle.js +3 -3
- package/typography/Hint/Hint.stories.js +4 -4
- package/typography/Hint/__stories__/Default.js +2 -2
- package/typography/Hint/__stories__/FontSizes.js +5 -5
- package/typography/NormalText/NormalText.stories.js +6 -6
- package/typography/NormalText/__stories__/Default.js +2 -2
- package/typography/NormalText/__stories__/FontSizes.js +9 -9
- package/typography/NormalText/__stories__/FontWeight.js +4 -4
- package/typography/NormalText/__stories__/Variants.js +4 -4
- package/typography/Paragraph/Paragraph.stories.js +7 -7
- package/typography/Paragraph/__stories__/Default.js +2 -2
- package/typography/Paragraph/__stories__/FontSizes.js +8 -8
- package/typography/Paragraph/__stories__/FontWeight.js +3 -3
- package/typography/Paragraph/__stories__/LeadVariant.js +2 -2
- package/typography/Paragraph/__stories__/SmallVariant.js +2 -2
- package/typography/Title/index.js +2 -2
- package/typography/index.js +5 -5
- package/utils/Base/index.d.ts +1 -1
- package/utils/Base/index.js +19 -8
- package/utils/Kitchensink/AllComponents.js +2 -2
- package/utils/Kitchensink/KitchensinkByCategory.js +2 -2
- package/utils/Kitchensink/KitchensinkByLetter.js +1 -1
- package/utils/Kitchensink/KitchensinkComponent.js +5 -5
- package/utils/Kitchensink/KitchensinkDashboard.js +1 -1
- package/utils/VisuallyHidden/VisuallyHidden.stories.js +3 -3
- package/utils/VisuallyHidden/__stories__/Default.js +5 -5
- package/utils/hooks/useDebounce.js +1 -1
- package/utils/index.js +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PaginationLabelContainer from '@digigov/react-core/PaginationLabelContainer';
|
|
3
|
-
import { I18nText } from
|
|
3
|
+
import { I18nText } from "../../i18n/I18nText";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* PaginationLabel component is used for placing the pagination results label.
|
|
@@ -15,9 +15,59 @@ export var PaginationLabel = /*#__PURE__*/React.forwardRef(function PaginationLa
|
|
|
15
15
|
i18nKey: "pagination.label"
|
|
16
16
|
}, "Showing ", /*#__PURE__*/React.createElement("b", null, start), " to ", /*#__PURE__*/React.createElement("b", null, end), " of ", /*#__PURE__*/React.createElement("b", null, total), " results"));
|
|
17
17
|
});
|
|
18
|
+
export var PaginationResultsPerPageSelect = /*#__PURE__*/React.forwardRef(function PaginationResultsPerPageSelect(_ref2, ref) {
|
|
19
|
+
var resultsPerPageOptions = _ref2.resultsPerPageOptions,
|
|
20
|
+
currentResultsPerPage = _ref2.currentResultsPerPage,
|
|
21
|
+
handleOnChange = _ref2.handleOnChange,
|
|
22
|
+
children = _ref2.children;
|
|
23
|
+
return /*#__PURE__*/React.createElement(LabelContainer, {
|
|
24
|
+
ref: ref
|
|
25
|
+
}, children, /*#__PURE__*/React.createElement(SelectContainer, {
|
|
26
|
+
dense: true,
|
|
27
|
+
value: currentResultsPerPage,
|
|
28
|
+
onChange: function onChange(e) {
|
|
29
|
+
handleOnChange(Number(e.target.value));
|
|
30
|
+
}
|
|
31
|
+
}, resultsPerPageOptions.map(function (option) {
|
|
32
|
+
return /*#__PURE__*/React.createElement(SelectOption, {
|
|
33
|
+
key: option
|
|
34
|
+
}, option);
|
|
35
|
+
})));
|
|
36
|
+
});
|
|
37
|
+
export var PaginationListItemButton = /*#__PURE__*/React.forwardRef(function PaginationListItemButton(_ref3, ref) {
|
|
38
|
+
var onClick = _ref3.onClick,
|
|
39
|
+
arrow = _ref3.arrow,
|
|
40
|
+
children = _ref3.children,
|
|
41
|
+
variant = _ref3.variant,
|
|
42
|
+
active = _ref3.active,
|
|
43
|
+
isCurrentPage = _ref3.isCurrentPage,
|
|
44
|
+
tabIndex = _ref3.tabIndex;
|
|
45
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
46
|
+
tabIndex: tabIndex,
|
|
47
|
+
active: active //disabled
|
|
48
|
+
,
|
|
49
|
+
currentPage: isCurrentPage,
|
|
50
|
+
ref: ref,
|
|
51
|
+
variant: variant
|
|
52
|
+
}, isCurrentPage ? children : /*#__PURE__*/React.createElement(Button, {
|
|
53
|
+
variant: "link",
|
|
54
|
+
onClick: onClick
|
|
55
|
+
}, arrow === 'left' && /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
56
|
+
direction: arrow
|
|
57
|
+
}), children, arrow === 'right' && /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
58
|
+
direction: arrow
|
|
59
|
+
}))));
|
|
60
|
+
});
|
|
18
61
|
export * from '@digigov/react-core/Pagination';
|
|
19
62
|
export * from '@digigov/react-core/PaginationList';
|
|
20
63
|
export * from '@digigov/react-core/PaginationListItem';
|
|
64
|
+
export * from "./hooks";
|
|
65
|
+
export * from "./auto";
|
|
21
66
|
export { PaginationLabelContainer };
|
|
22
67
|
import Pagination from '@digigov/react-core/Pagination';
|
|
68
|
+
import LabelContainer from "../../form/LabelContainer";
|
|
69
|
+
import SelectContainer, { SelectOption } from "../../form/SelectContainer";
|
|
70
|
+
import PaginationListItem from '@digigov/react-core/PaginationListItem';
|
|
71
|
+
import Button from "../../form/Button";
|
|
72
|
+
import ArrowIcon from '@digigov/react-icons/ArrowIcon';
|
|
23
73
|
export default Pagination;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import SkipLink from
|
|
1
|
+
import SkipLink from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/navigation/SkipLink',
|
|
4
4
|
description: 'Use the skip link component to help keyboard-only users skip to the main content on a page.',
|
|
5
5
|
component: SkipLink,
|
|
6
6
|
displayName: 'SkipLink'
|
|
7
7
|
};
|
|
8
|
-
export * from
|
|
8
|
+
export * from "./__stories__/Default";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SkipLink } from
|
|
3
|
-
import { Paragraph } from
|
|
2
|
+
import { SkipLink } from "./..";
|
|
3
|
+
import { Paragraph } from "../../../typography/Paragraph";
|
|
4
4
|
|
|
5
5
|
var _ref = /*#__PURE__*/React.createElement(Paragraph, null, "\u0393\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03BC\u03C6\u03B1\u03BD\u03B9\u03C3\u03C4\u03B5\u03AF \u03BF \u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03BC\u03BF\u03C2, \u03C0\u03B5\u03C1\u03B9\u03B7\u03B3\u03B7\u03B8\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B5 \u03C4\u03BF \u03BA\u03BF\u03C5\u03BC\u03C0\u03AF tab \u03AE \u03BA\u03AC\u03BD\u03BF\u03BD\u03C4\u03B1\u03C2 \u03BA\u03BB\u03B9\u03BA \u03C3\u03C4\u03BF \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03BF \u03BA\u03B1\u03B9 \u03BC\u03B5\u03C4\u03AC \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03BA\u03BF\u03C5\u03BC\u03C0\u03AF tab.");
|
|
6
6
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import TabsBase from "./";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/navigation/Tabs',
|
|
4
4
|
tags: ['Experimental'],
|
|
5
5
|
description: 'The tabs component lets users navigate between related sections of content, displaying one section at a time.',
|
|
6
6
|
link: 'https://guide.services.gov.gr/docs/components/tabs',
|
|
7
|
-
component:
|
|
7
|
+
component: TabsBase,
|
|
8
8
|
displayName: 'Tabs'
|
|
9
9
|
};
|
|
10
|
-
export * from
|
|
10
|
+
export * from "./__stories__/Default";
|
|
11
|
+
export * from "./__stories__/Dense";
|
|
12
|
+
export * from "./__stories__/Auto";
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
{
|
|
9
9
|
"name": "hover",
|
|
10
10
|
"args": {
|
|
11
|
-
"selector": "html>body>div:nth-child(5)>div>ul>li:nth-child(2)>
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>ul>li:nth-child(2)>a"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "click",
|
|
16
16
|
"args": {
|
|
17
|
-
"selector": "html>body>div:nth-child(5)>div>ul>li:nth-child(2)>
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>div>ul>li:nth-child(2)>a"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
],
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from "../../../content/SummaryList";
|
|
3
|
+
import { Link } from "../../Link";
|
|
4
|
+
import { TabsAuto, TabsHeading, TabsList, TabsListItem, TabsPanel } from "./..";
|
|
5
|
+
import { Heading } from "../../../typography/Heading";
|
|
6
|
+
import { VisuallyHidden } from "../../../utils/VisuallyHidden";
|
|
7
|
+
|
|
8
|
+
var _ref = /*#__PURE__*/React.createElement(TabsAuto, {
|
|
9
|
+
defaultOpen: 'b'
|
|
10
|
+
}, /*#__PURE__*/React.createElement(TabsHeading, {
|
|
11
|
+
size: "md"
|
|
12
|
+
}, "\u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1"), /*#__PURE__*/React.createElement(TabsList, null, /*#__PURE__*/React.createElement(TabsListItem, {
|
|
13
|
+
id: "a"
|
|
14
|
+
}, "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03BB\u03AF\u03C4\u03B7"), /*#__PURE__*/React.createElement(TabsListItem, {
|
|
15
|
+
id: "b"
|
|
16
|
+
}, "Y\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(TabsPanel, {
|
|
17
|
+
tab: "a"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
19
|
+
size: "md",
|
|
20
|
+
element: "h3"
|
|
21
|
+
}, "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03BB\u03AF\u03C4\u03B7"), /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, ' ', /*#__PURE__*/React.createElement(Link, {
|
|
22
|
+
href: "#"
|
|
23
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u03BF\u03BD\u03CC\u03BC\u03B1\u03C4\u03BF\u03C2 ")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0397\u03BC. \u0393\u03AD\u03BD\u03BD\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "11 \u039C\u03B1\u03CA\u03BF\u03C5 1990")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF \u03B5\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, ' ', /*#__PURE__*/React.createElement(Link, null, ' ', "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5 ")))))), /*#__PURE__*/React.createElement(TabsPanel, {
|
|
24
|
+
tab: "b"
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
26
|
+
size: "md",
|
|
27
|
+
element: "h3"
|
|
28
|
+
}, "Y\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"), "\u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03C9\u03BD"));
|
|
29
|
+
|
|
30
|
+
export function Auto() {
|
|
31
|
+
return _ref;
|
|
32
|
+
}
|
|
33
|
+
export default Auto;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from
|
|
4
|
-
import { Link } from
|
|
5
|
-
import { Tabs, TabsHeading, TabsList, TabsListItem, TabsPanel, useTabs } from
|
|
6
|
-
import { Heading } from
|
|
7
|
-
import { VisuallyHidden } from
|
|
2
|
+
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from "../../../content/SummaryList";
|
|
3
|
+
import { Link } from "../../Link";
|
|
4
|
+
import { Tabs, TabsHeading, TabsList, TabsListItem, TabsPanel, useTabs } from "./..";
|
|
5
|
+
import { Heading } from "../../../typography/Heading";
|
|
6
|
+
import { VisuallyHidden } from "../../../utils/VisuallyHidden";
|
|
7
|
+
import { Paragraph } from "../../../typography/Paragraph";
|
|
8
8
|
|
|
9
9
|
var _ref = /*#__PURE__*/React.createElement(TabsHeading, {
|
|
10
10
|
size: "md"
|
|
@@ -15,30 +15,40 @@ var _ref2 = /*#__PURE__*/React.createElement(Heading, {
|
|
|
15
15
|
element: "h3"
|
|
16
16
|
}, "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03BB\u03AF\u03C4\u03B7");
|
|
17
17
|
|
|
18
|
-
var _ref3 = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, {
|
|
18
|
+
var _ref3 = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, ' ', /*#__PURE__*/React.createElement(Link, {
|
|
19
19
|
href: "#"
|
|
20
|
-
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u03BF\u03BD\u03CC\u03BC\u03B1\u03C4\u03BF\u03C2 ")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0397\u03BC. \u0393\u03AD\u03BD\u03BD\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "11 \u039C\u03B1\u03CA\u03BF\u03C5 1990")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF \u03B5\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, null, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5 ")))));
|
|
20
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u03BF\u03BD\u03CC\u03BC\u03B1\u03C4\u03BF\u03C2 ")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0397\u03BC. \u0393\u03AD\u03BD\u03BD\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "11 \u039C\u03B1\u03CA\u03BF\u03C5 1990")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF \u03B5\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, ' ', /*#__PURE__*/React.createElement(Link, null, ' ', "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5 ")))));
|
|
21
21
|
|
|
22
22
|
var _ref4 = /*#__PURE__*/React.createElement(Heading, {
|
|
23
23
|
size: "md",
|
|
24
24
|
element: "h3"
|
|
25
|
-
}, "\
|
|
25
|
+
}, "Y\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2");
|
|
26
26
|
|
|
27
27
|
var _ref5 = /*#__PURE__*/React.createElement(Heading, {
|
|
28
28
|
size: "md",
|
|
29
29
|
element: "h3"
|
|
30
|
+
}, "\u039C\u03B7\u03BD\u03CD\u03BC\u03B1\u03C4\u03B1");
|
|
31
|
+
|
|
32
|
+
var _ref6 = /*#__PURE__*/React.createElement(Paragraph, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
|
|
33
|
+
|
|
34
|
+
var _ref7 = /*#__PURE__*/React.createElement(Paragraph, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
|
|
35
|
+
|
|
36
|
+
var _ref8 = /*#__PURE__*/React.createElement(Heading, {
|
|
37
|
+
size: "md",
|
|
38
|
+
element: "h3"
|
|
30
39
|
}, "\u0399\u03C3\u03C4\u03BF\u03C1\u03B9\u03BA\u03CC");
|
|
31
40
|
|
|
41
|
+
var _ref9 = /*#__PURE__*/React.createElement(Paragraph, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
|
|
42
|
+
|
|
43
|
+
var _ref10 = /*#__PURE__*/React.createElement(Paragraph, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
|
|
44
|
+
|
|
32
45
|
export function Default() {
|
|
33
|
-
var _useTabs = useTabs(
|
|
46
|
+
var _useTabs = useTabs({
|
|
47
|
+
defaultOpen: 'a'
|
|
48
|
+
}),
|
|
34
49
|
register = _useTabs.register,
|
|
35
|
-
opened = _useTabs.opened,
|
|
36
50
|
panel = _useTabs.panel;
|
|
37
51
|
|
|
38
|
-
return /*#__PURE__*/React.createElement(Tabs, null, _ref, /*#__PURE__*/React.createElement(TabsList, null, /*#__PURE__*/React.createElement(TabsListItem,
|
|
39
|
-
open: Object.keys(opened).length === 0 || opened['citizen']
|
|
40
|
-
}), "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03BB\u03AF\u03C4\u03B7"), /*#__PURE__*/React.createElement(TabsListItem, register('cases'), "\u039F\u03B9 \u03C5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2 \u03C4\u03BF\u03C5\u03C2"), /*#__PURE__*/React.createElement(TabsListItem, register('history'), "\u0399\u03C3\u03C4\u03BF\u03C1\u03B9\u03BA\u03CC")), /*#__PURE__*/React.createElement(TabsPanel, _extends({}, panel('citizen'), {
|
|
41
|
-
active: Object.keys(opened).length === 0 || opened['citizen']
|
|
42
|
-
}), _ref2, _ref3), /*#__PURE__*/React.createElement(TabsPanel, panel('cases'), _ref4, "\u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03C9\u03BD"), /*#__PURE__*/React.createElement(TabsPanel, panel('history'), _ref5, "\u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03BF \u03B9\u03C3\u03C4\u03BF\u03C1\u03B9\u03BA\u03BF\u03CD"));
|
|
52
|
+
return /*#__PURE__*/React.createElement(Tabs, null, _ref, /*#__PURE__*/React.createElement(TabsList, null, /*#__PURE__*/React.createElement(TabsListItem, register('a'), "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03BB\u03AF\u03C4\u03B7"), /*#__PURE__*/React.createElement(TabsListItem, register('b'), "Y\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"), /*#__PURE__*/React.createElement(TabsListItem, register('c'), "\u039C\u03B7\u03BD\u03CD\u03BC\u03B1\u03C4\u03B1"), /*#__PURE__*/React.createElement(TabsListItem, register('d'), "\u0399\u03C3\u03C4\u03BF\u03C1\u03B9\u03BA\u03CC")), /*#__PURE__*/React.createElement(TabsPanel, panel('a'), _ref2, _ref3), /*#__PURE__*/React.createElement(TabsPanel, panel('b'), _ref4, "\u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03C9\u03BD"), /*#__PURE__*/React.createElement(TabsPanel, panel('c'), _ref5, _ref6, _ref7), /*#__PURE__*/React.createElement(TabsPanel, panel('d'), _ref8, _ref9, _ref10));
|
|
43
53
|
}
|
|
44
54
|
export default Default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from "../../../content/SummaryList";
|
|
3
|
+
import { Link } from "../../Link";
|
|
4
|
+
import { Tabs, TabsHeading, TabsList, TabsListItem, TabsPanel, useTabs } from "./..";
|
|
5
|
+
import { Heading } from "../../../typography/Heading";
|
|
6
|
+
import { VisuallyHidden } from "../../../utils/VisuallyHidden";
|
|
7
|
+
|
|
8
|
+
var _ref = /*#__PURE__*/React.createElement(TabsHeading, {
|
|
9
|
+
size: "md"
|
|
10
|
+
}, "\u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1");
|
|
11
|
+
|
|
12
|
+
var _ref2 = /*#__PURE__*/React.createElement(Heading, {
|
|
13
|
+
size: "md",
|
|
14
|
+
element: "h3"
|
|
15
|
+
}, "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03BB\u03AF\u03C4\u03B7");
|
|
16
|
+
|
|
17
|
+
var _ref3 = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, ' ', /*#__PURE__*/React.createElement(Link, {
|
|
18
|
+
href: "#"
|
|
19
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u03BF\u03BD\u03CC\u03BC\u03B1\u03C4\u03BF\u03C2 ")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0397\u03BC. \u0393\u03AD\u03BD\u03BD\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "11 \u039C\u03B1\u03CA\u03BF\u03C5 1990")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF \u03B5\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1\u03C2"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, ' ', /*#__PURE__*/React.createElement(Link, null, ' ', "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5 ")))));
|
|
20
|
+
|
|
21
|
+
var _ref4 = /*#__PURE__*/React.createElement(Heading, {
|
|
22
|
+
size: "md",
|
|
23
|
+
element: "h3"
|
|
24
|
+
}, "Y\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2");
|
|
25
|
+
|
|
26
|
+
export function Dense() {
|
|
27
|
+
var _useTabs = useTabs(),
|
|
28
|
+
register = _useTabs.register,
|
|
29
|
+
panel = _useTabs.panel;
|
|
30
|
+
|
|
31
|
+
return /*#__PURE__*/React.createElement(Tabs, {
|
|
32
|
+
dense: true
|
|
33
|
+
}, _ref, /*#__PURE__*/React.createElement(TabsList, null, /*#__PURE__*/React.createElement(TabsListItem, register('a'), "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03BB\u03AF\u03C4\u03B7"), /*#__PURE__*/React.createElement(TabsListItem, register('b'), "Y\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(TabsPanel, panel('a'), _ref2, _ref3), /*#__PURE__*/React.createElement(TabsPanel, panel('b'), _ref4, "\u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03C9\u03BD"));
|
|
34
|
+
}
|
|
35
|
+
export default Dense;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["defaultOpen", "children"],
|
|
4
|
+
_excluded2 = ["tab"];
|
|
5
|
+
import React, { useContext } from 'react';
|
|
6
|
+
import { Tabs, TabsListItemBase, TabsPanelBase, useTabs } from "./";
|
|
7
|
+
;
|
|
8
|
+
;
|
|
9
|
+
export var TabsContext = /*#__PURE__*/React.createContext(null);
|
|
10
|
+
export var useTabsContext = function useTabsContext() {
|
|
11
|
+
var context = useContext(TabsContext);
|
|
12
|
+
return context;
|
|
13
|
+
};
|
|
14
|
+
export var TabsAuto = function TabsAuto(_ref) {
|
|
15
|
+
var defaultOpen = _ref.defaultOpen,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
|
|
19
|
+
var tabs = useTabs({
|
|
20
|
+
defaultOpen: defaultOpen
|
|
21
|
+
});
|
|
22
|
+
return /*#__PURE__*/React.createElement(TabsContext.Provider, {
|
|
23
|
+
value: tabs
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Tabs, props, children));
|
|
25
|
+
};
|
|
26
|
+
export var TabsListItem = /*#__PURE__*/React.forwardRef(function TabsListItem(_ref2, ref) {
|
|
27
|
+
var props = _extends({}, _ref2);
|
|
28
|
+
|
|
29
|
+
var context = useTabsContext();
|
|
30
|
+
|
|
31
|
+
if (!context) {
|
|
32
|
+
return /*#__PURE__*/React.createElement(TabsListItemBase, _extends({}, props, {
|
|
33
|
+
ref: ref
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return /*#__PURE__*/React.createElement(TabsListItemBase, _extends({}, context.register(props.id), {
|
|
38
|
+
ref: ref
|
|
39
|
+
}, props));
|
|
40
|
+
});
|
|
41
|
+
export var TabsPanel = /*#__PURE__*/React.forwardRef(function TabsPanel(_ref3, ref) {
|
|
42
|
+
var tab = _ref3.tab,
|
|
43
|
+
props = _objectWithoutProperties(_ref3, _excluded2);
|
|
44
|
+
|
|
45
|
+
var context = useTabsContext();
|
|
46
|
+
|
|
47
|
+
if (!context) {
|
|
48
|
+
return /*#__PURE__*/React.createElement(TabsPanelBase, _extends({
|
|
49
|
+
ref: ref
|
|
50
|
+
}, props));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return /*#__PURE__*/React.createElement(TabsPanelBase, _extends({}, context.panel(tab), {
|
|
54
|
+
ref: ref
|
|
55
|
+
}, props));
|
|
56
|
+
});
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState, useRef, useCallback } from 'react';
|
|
3
|
+
export var useTabs = function useTabs() {
|
|
4
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
5
|
+
_ref$defaultOpen = _ref.defaultOpen,
|
|
6
|
+
defaultOpen = _ref$defaultOpen === void 0 ? null : _ref$defaultOpen;
|
|
7
|
+
|
|
8
|
+
var _useState = useState(defaultOpen),
|
|
9
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10
|
+
currentOpen = _useState2[0],
|
|
11
|
+
setCurrentOpen = _useState2[1];
|
|
12
|
+
|
|
13
|
+
var tabsRef = useRef(new Map());
|
|
14
|
+
var open = useCallback(function (id) {
|
|
15
|
+
var _tabsRef$current$get, _tabsRef$current$get$;
|
|
16
|
+
|
|
17
|
+
setCurrentOpen(id);
|
|
18
|
+
(_tabsRef$current$get = tabsRef.current.get(id)) === null || _tabsRef$current$get === void 0 ? void 0 : (_tabsRef$current$get$ = _tabsRef$current$get.current) === null || _tabsRef$current$get$ === void 0 ? void 0 : _tabsRef$current$get$.focus();
|
|
19
|
+
}, []);
|
|
20
|
+
var navigate = useCallback(function (direction) {
|
|
21
|
+
var _document$activeEleme, _document$activeEleme2;
|
|
22
|
+
|
|
23
|
+
var focusedTabId = (_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : (_document$activeEleme2 = _document$activeEleme.id.match(/tab-(.*?)$/)) === null || _document$activeEleme2 === void 0 ? void 0 : _document$activeEleme2[1];
|
|
24
|
+
var tabs = Array.from(tabsRef.current.keys());
|
|
25
|
+
var currentIndex = tabs.indexOf(focusedTabId || currentOpen);
|
|
26
|
+
var newIndex = direction === 'next' ? currentIndex + 1 : currentIndex - 1;
|
|
27
|
+
|
|
28
|
+
if (newIndex >= 0 && newIndex < tabs.length) {
|
|
29
|
+
var _tabsRef$current$get2, _tabsRef$current$get3;
|
|
30
|
+
|
|
31
|
+
(_tabsRef$current$get2 = tabsRef.current.get(tabs[newIndex])) === null || _tabsRef$current$get2 === void 0 ? void 0 : (_tabsRef$current$get3 = _tabsRef$current$get2.current) === null || _tabsRef$current$get3 === void 0 ? void 0 : _tabsRef$current$get3.focus();
|
|
32
|
+
}
|
|
33
|
+
}, [currentOpen, tabsRef.current]);
|
|
34
|
+
var register = useCallback(function (id) {
|
|
35
|
+
if (!tabsRef.current.has(id)) {
|
|
36
|
+
if (tabsRef.current.size === 0 && !currentOpen) {
|
|
37
|
+
setCurrentOpen(id);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
tabsRef.current.set(id, /*#__PURE__*/React.createRef());
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
role: 'tab',
|
|
45
|
+
id: "tab-".concat(id),
|
|
46
|
+
href: "#panel-".concat(id),
|
|
47
|
+
'aria-selected': currentOpen === id,
|
|
48
|
+
open: currentOpen === id,
|
|
49
|
+
'aria-controls': "panel-".concat(id),
|
|
50
|
+
tabIndex: currentOpen === id ? 0 : -1,
|
|
51
|
+
onClick: function onClick(e) {
|
|
52
|
+
e.preventDefault();
|
|
53
|
+
open(id);
|
|
54
|
+
},
|
|
55
|
+
onKeyDown: function onKeyDown(e) {
|
|
56
|
+
switch (e.key) {
|
|
57
|
+
case 'ArrowRight':
|
|
58
|
+
case 'ArrowDown':
|
|
59
|
+
navigate('next');
|
|
60
|
+
break;
|
|
61
|
+
|
|
62
|
+
case 'ArrowLeft':
|
|
63
|
+
case 'ArrowUp':
|
|
64
|
+
navigate('previous');
|
|
65
|
+
break;
|
|
66
|
+
|
|
67
|
+
case 'Enter':
|
|
68
|
+
open(id);
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
ref: tabsRef.current.get(id)
|
|
73
|
+
};
|
|
74
|
+
}, [currentOpen]);
|
|
75
|
+
|
|
76
|
+
var panel = function panel(id) {
|
|
77
|
+
return {
|
|
78
|
+
role: 'tabpanel',
|
|
79
|
+
'aria-labelledby': "tab-".concat(id),
|
|
80
|
+
'id': "panel-".concat(id),
|
|
81
|
+
active: currentOpen === id,
|
|
82
|
+
tab: id
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
register: register,
|
|
88
|
+
panel: panel,
|
|
89
|
+
currentOpen: currentOpen,
|
|
90
|
+
open: open
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -1,55 +1,9 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["register", "opened"];
|
|
4
|
-
import { useCallback, useRef } from 'react';
|
|
5
1
|
import Tabs from '@digigov/react-core/Tabs';
|
|
6
|
-
import { useTogglableTab } from '@digigov/ui/utils/hooks/useTogglableTab';
|
|
7
|
-
export var useTabs = function useTabs() {
|
|
8
|
-
var registeredPanels = useRef({});
|
|
9
|
-
var goTo = useCallback(function (key) {
|
|
10
|
-
if (registeredPanels.current[key].offsetTop - rest.registered.current[key].offsetTop >= 30) {
|
|
11
|
-
var _registeredPanels$cur;
|
|
12
|
-
|
|
13
|
-
window.scrollTo({
|
|
14
|
-
top: (_registeredPanels$cur = registeredPanels.current[key]) === null || _registeredPanels$cur === void 0 ? void 0 : _registeredPanels$cur.offsetTop,
|
|
15
|
-
behavior: 'smooth'
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}, []);
|
|
19
|
-
|
|
20
|
-
var _useTogglableTab = useTogglableTab({
|
|
21
|
-
singleOpen: true,
|
|
22
|
-
toggleProperty: 'open',
|
|
23
|
-
onToggleProperty: 'onClick',
|
|
24
|
-
firstOpen: true,
|
|
25
|
-
ariaNavigation: true,
|
|
26
|
-
toggleHook: goTo
|
|
27
|
-
}),
|
|
28
|
-
register = _useTogglableTab.register,
|
|
29
|
-
opened = _useTogglableTab.opened,
|
|
30
|
-
rest = _objectWithoutProperties(_useTogglableTab, _excluded);
|
|
31
|
-
|
|
32
|
-
var panel = useCallback(function (key) {
|
|
33
|
-
return {
|
|
34
|
-
ref: function ref(el) {
|
|
35
|
-
if (el && !registeredPanels.current[el.id]) {
|
|
36
|
-
registeredPanels.current[el.id] = el;
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
active: opened[key],
|
|
40
|
-
id: key,
|
|
41
|
-
tabIndex: opened[key] ? 1 : -1
|
|
42
|
-
};
|
|
43
|
-
}, [opened]);
|
|
44
|
-
return _extends({
|
|
45
|
-
register: register,
|
|
46
|
-
opened: opened,
|
|
47
|
-
panel: panel
|
|
48
|
-
}, rest);
|
|
49
|
-
};
|
|
50
2
|
export * from '@digigov/react-core/Tabs';
|
|
3
|
+
export * from "./hooks";
|
|
51
4
|
export * from '@digigov/react-core/TabsList';
|
|
52
|
-
export * from '@digigov/react-core/
|
|
53
|
-
export * from '@digigov/react-core/
|
|
5
|
+
export * from '@digigov/react-core/TabsListItemBase';
|
|
6
|
+
export * from '@digigov/react-core/TabsPanelBase';
|
|
54
7
|
export * from '@digigov/react-core/TabsHeading';
|
|
8
|
+
export * from "./auto";
|
|
55
9
|
export default Tabs;
|
package/esm/navigation/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
1
|
+
export * from "./BackLink";
|
|
2
|
+
export * from "./Breadcrumbs";
|
|
3
|
+
export * from "./Drawer";
|
|
4
|
+
export * from "./Dropdown";
|
|
5
|
+
export * from "./Link";
|
|
6
|
+
export * from "./NavList";
|
|
7
|
+
export * from "./Pagination";
|
|
8
|
+
export * from "./SkipLink";
|
|
9
|
+
export * from "./Tabs";
|