@digigov/ui 1.0.0-002c630d → 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/{Confirmation/Confirmation.stories.d.ts → BannerContainer/BannerContainer.stories.d.ts} +3 -3
- package/app/BannerContainer/BannerContainer.stories.js +35 -0
- package/app/BannerContainer/__stories__/CookiesBanner.d.ts +2 -0
- package/app/BannerContainer/__stories__/CookiesBanner.js +42 -0
- package/app/CloseButton/index.d.ts +3 -0
- package/{navigation/NavList/NavVertical.js → app/CloseButton/index.js} +5 -5
- package/app/{FilterSection → FilterContainer}/index.d.ts +4 -5
- package/app/{FilterSection → FilterContainer}/index.js +9 -23
- package/app/Footer/Footer.stories.js +2 -2
- package/app/Footer/Footer.stories.playwright.json +2 -2
- package/app/Footer/__stories__/Default.js +1 -1
- package/app/Footer/__stories__/DefaultCopyright.js +11 -8
- package/app/Footer/__stories__/FooterAllInclusive.js +52 -35
- package/app/Footer/__stories__/FooterWithLink.js +24 -17
- package/app/Footer/__stories__/FooterWithLogo.js +23 -19
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +35 -26
- package/app/Footer/__stories__/YearCopyright.js +13 -10
- package/app/Footer/index.d.ts +3 -5
- package/app/Footer/index.js +12 -40
- package/app/Footer/index.mdx +4 -20
- package/app/Header/Header.stories.js +7 -7
- package/app/Header/Header.stories.playwright.json +1 -1
- package/app/Header/__snapshots__/index.spec.tsx.snap +6 -6
- package/app/Header/__stories__/Default.js +5 -5
- package/app/Header/__stories__/WithHeaderNavigation.js +23 -34
- package/app/Header/__stories__/WithNavigation.js +41 -42
- package/app/Header/__stories__/WithServiceName.js +6 -6
- package/app/Header/__stories__/WithServiceNameAndLogo.js +8 -8
- package/app/Header/index.d.ts +0 -1
- package/app/Header/index.js +6 -20
- package/app/Header/index.mdx +4 -21
- 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.d.ts +2 -0
- package/app/Masthead/Masthead.stories.js +31 -3
- package/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/app/Masthead/__stories__/Default.js +5 -5
- package/app/Masthead/__stories__/WithElements.d.ts +2 -0
- package/app/Masthead/__stories__/WithElements.js +41 -0
- package/app/Masthead/__stories__/WithLogo.d.ts +2 -0
- package/app/Masthead/__stories__/WithLogo.js +37 -0
- package/app/Modal/Modal.stories.d.ts +3 -0
- package/app/Modal/Modal.stories.js +46 -4
- package/app/Modal/Modal.stories.playwright.json +53 -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 +10 -10
- package/app/Modal/__stories__/Dense.d.ts +2 -0
- package/app/Modal/__stories__/Dense.js +67 -0
- 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 +5 -8
- package/app/Modal/index.js +35 -49
- package/app/Modal/index.mdx +1 -5
- package/app/NotFound/NotFound.stories.js +3 -3
- package/app/NotFound/__stories__/Default.js +2 -2
- package/app/NotFound/index.js +3 -3
- package/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +1 -1
- package/app/OutdatedBrowserBanner/index.js +6 -6
- package/app/PageTitleContainer/index.d.ts +5 -0
- package/app/{PageTitle → PageTitleContainer}/index.js +5 -19
- package/app/Panel/Panel.stories.d.ts +10 -0
- package/app/{Confirmation/Confirmation.stories.js → Panel/Panel.stories.js} +7 -7
- package/app/Panel/__stories__/Default.js +22 -0
- package/app/Panel/index.d.ts +5 -0
- package/app/{Confirmation → Panel}/index.js +13 -13
- package/app/Panel/index.mdx +16 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -3
- package/app/PhaseBannerHeader/__stories__/Default.js +2 -2
- package/app/PhaseBannerHeader/index.js +2 -2
- package/app/PhaseBannerHeader/index.mdx +1 -5
- 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/QrCodeViewer/index.mdx +2 -10
- package/app/ThemeOptions/index.js +17 -17
- package/app/hooks/useFontSize.js +1 -1
- package/app/hooks/useLetterSpacing.js +1 -1
- package/app/hooks/useLineHeight.js +1 -1
- package/app/index.d.ts +3 -4
- package/app/index.js +26 -26
- 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.mdx +2 -10
- package/content/Accordion/index.spec.js +16 -2
- package/content/Blockquote/Blockquote.stories.d.ts +1 -0
- package/content/Blockquote/Blockquote.stories.js +17 -3
- package/content/Blockquote/__stories__/Default.js +2 -2
- package/content/Blockquote/__stories__/Dense.d.ts +2 -0
- package/content/Blockquote/__stories__/Dense.js +24 -0
- package/content/Blockquote/index.mdx +1 -5
- package/content/Blockquote/index.spec.js +2 -2
- package/content/Card/Card.stories.d.ts +2 -0
- package/content/Card/Card.stories.js +39 -11
- package/content/Card/__stories__/Default.js +3 -3
- package/content/Card/__stories__/Dense.d.ts +2 -0
- package/content/Card/__stories__/Dense.js +28 -0
- 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.d.ts +2 -0
- package/content/Card/__stories__/WithLink.js +24 -0
- package/content/Card/index.mdx +8 -40
- 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/Chip/index.d.ts +1 -2
- package/content/Chip/index.js +4 -18
- package/content/Chip/index.mdx +39 -0
- 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.mdx +6 -5
- 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 +4 -4
- package/content/List/__stories__/NestedBulletList.js +2 -2
- package/content/List/__stories__/NumberedList.js +2 -2
- package/content/List/__stories__/WithExtraSpace.js +3 -3
- package/content/List/index.js +6 -6
- package/content/List/index.mdx +3 -15
- package/content/List/index.spec.js +2 -2
- package/content/StepNav/StepNav.stories.d.ts +3 -0
- package/content/StepNav/StepNav.stories.js +44 -2
- package/content/StepNav/__stories__/Auto.d.ts +2 -0
- package/content/StepNav/__stories__/Auto.js +152 -0
- package/content/StepNav/__stories__/Default.js +15 -17
- package/content/StepNav/__stories__/Dense.d.ts +2 -0
- package/content/StepNav/__stories__/Dense.js +204 -0
- package/content/StepNav/__stories__/WithHints.js +16 -18
- 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/StepNav/index.mdx +21 -0
- package/content/SummaryList/SummaryList.stories.d.ts +1 -0
- package/content/SummaryList/SummaryList.stories.js +16 -2
- package/content/SummaryList/__stories__/Default.js +10 -6
- package/content/SummaryList/__stories__/RowVariations.js +13 -13
- package/content/SummaryList/__stories__/WithActions.js +15 -9
- package/content/SummaryList/__stories__/WithKeyAndAction.js +7 -7
- package/content/SummaryList/__stories__/WithoutActions.d.ts +2 -0
- package/content/SummaryList/__stories__/WithoutActions.js +22 -0
- package/content/SummaryList/__stories__/WithoutBorders.js +14 -4
- package/content/SummaryList/index.mdx +3 -15
- package/content/SummaryList/index.spec.js +2 -2
- package/content/Table/Table.stories.d.ts +1 -0
- package/content/Table/Table.stories.js +16 -2
- package/content/Table/__stories__/DarkVariant.js +10 -10
- package/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +10 -10
- package/content/Table/__stories__/Default.js +8 -8
- package/content/Table/__stories__/DefinedWidth.js +12 -12
- package/content/Table/__stories__/Densed.js +9 -9
- package/content/Table/__stories__/Full.js +15 -15
- package/content/Table/__stories__/MultipleProps.js +13 -13
- package/content/Table/__stories__/NoData.js +2 -2
- package/content/Table/__stories__/NumericDataType.js +10 -10
- package/content/Table/__stories__/RowColors.d.ts +2 -0
- package/content/Table/__stories__/RowColors.js +76 -0
- 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 +20 -14
- package/content/Table/__stories__/WithLoader.js +12 -12
- package/content/Table/__stories__/WithSortFilters.js +10 -10
- package/content/Table/__stories__/ZebraProp.js +10 -10
- package/content/Table/index.d.ts +1 -1
- package/content/Table/index.js +15 -13
- package/content/Table/index.mdx +15 -41
- package/content/TaskList/TaskList.stories.d.ts +1 -0
- package/content/TaskList/TaskList.stories.js +17 -3
- package/content/TaskList/__stories__/Default.js +13 -13
- package/content/TaskList/__stories__/Dense.d.ts +2 -0
- package/content/TaskList/__stories__/Dense.js +93 -0
- package/content/TaskList/index.mdx +21 -0
- package/content/Timeline/Timeline.stories.d.ts +1 -0
- package/content/Timeline/Timeline.stories.js +17 -3
- package/content/Timeline/__stories__/Default.js +12 -14
- package/content/Timeline/__stories__/Dense.d.ts +2 -0
- package/content/Timeline/__stories__/Dense.js +141 -0
- package/content/Timeline/index.mdx +23 -0
- 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 +10 -0
- package/es/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
- package/es/app/CloseButton/index.js +3 -0
- package/es/app/{FilterSection → FilterContainer}/index.js +4 -5
- package/es/app/Footer/Footer.stories.js +8 -8
- package/es/app/Footer/Footer.stories.playwright.json +2 -2
- package/es/app/Footer/__stories__/Default.js +1 -1
- package/es/app/Footer/__stories__/DefaultCopyright.js +11 -9
- package/es/app/Footer/__stories__/FooterAllInclusive.js +44 -28
- package/es/app/Footer/__stories__/FooterWithLink.js +24 -18
- package/es/app/Footer/__stories__/FooterWithLogo.js +22 -19
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +28 -20
- package/es/app/Footer/__stories__/YearCopyright.js +12 -10
- package/es/app/Footer/index.js +3 -5
- package/es/app/Footer/index.mdx +4 -20
- package/es/app/Header/Header.stories.js +6 -6
- package/es/app/Header/Header.stories.playwright.json +1 -1
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +6 -6
- package/es/app/Header/__stories__/Default.js +5 -5
- package/es/app/Header/__stories__/WithHeaderNavigation.js +23 -26
- package/es/app/Header/__stories__/WithNavigation.js +36 -41
- package/es/app/Header/__stories__/WithServiceName.js +6 -6
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +8 -8
- package/es/app/Header/index.js +6 -7
- package/es/app/Header/index.mdx +4 -21
- package/es/app/Header/index.spec.js +2 -2
- 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 -2
- package/es/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/es/app/Masthead/__stories__/Default.js +5 -5
- package/es/app/Masthead/__stories__/WithElements.js +21 -0
- package/es/app/Masthead/__stories__/WithLogo.js +19 -0
- package/es/app/Modal/Modal.stories.js +6 -3
- package/es/app/Modal/Modal.stories.playwright.json +53 -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 +6 -6
- package/es/app/Modal/__stories__/Dense.js +43 -0
- 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/Modal/index.mdx +1 -5
- package/es/app/NotFound/NotFound.stories.js +2 -2
- package/es/app/NotFound/__stories__/Default.js +1 -1
- package/es/app/NotFound/index.js +3 -3
- package/es/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +1 -1
- package/es/app/OutdatedBrowserBanner/index.js +7 -7
- package/es/app/PageTitleContainer/index.js +5 -0
- package/es/app/Panel/Panel.stories.js +9 -0
- package/es/app/Panel/__stories__/Default.js +9 -0
- package/es/app/Panel/index.js +5 -0
- package/es/app/Panel/index.mdx +16 -0
- package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +2 -2
- package/es/app/PhaseBannerHeader/__stories__/Default.js +1 -1
- package/es/app/PhaseBannerHeader/index.js +2 -2
- package/es/app/PhaseBannerHeader/index.mdx +1 -5
- 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/QrCodeViewer/index.mdx +2 -10
- package/es/app/ThemeOptions/index.js +17 -17
- 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 -18
- 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.mdx +2 -10
- package/es/content/Accordion/index.spec.js +12 -2
- package/es/content/Blockquote/Blockquote.stories.js +3 -2
- package/es/content/Blockquote/__stories__/Default.js +1 -1
- package/es/content/Blockquote/__stories__/Dense.js +11 -0
- package/es/content/Blockquote/index.mdx +1 -5
- package/es/content/Blockquote/index.spec.js +1 -1
- package/es/content/Card/Card.stories.js +12 -10
- package/es/content/Card/__stories__/Default.js +3 -3
- package/es/content/Card/__stories__/Dense.js +14 -0
- 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 +10 -0
- package/es/content/Card/index.mdx +8 -40
- 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 +2 -2
- package/es/content/Chip/index.js +1 -2
- package/es/content/Chip/index.mdx +39 -0
- 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.mdx +6 -5
- 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 +4 -4
- 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 +3 -3
- package/es/content/List/index.js +7 -7
- package/es/content/List/index.mdx +3 -15
- package/es/content/List/index.spec.js +1 -1
- package/es/content/StepNav/StepNav.stories.js +6 -3
- package/es/content/StepNav/__stories__/Auto.js +135 -0
- package/es/content/StepNav/__stories__/Default.js +7 -9
- package/es/content/StepNav/__stories__/Dense.js +180 -0
- package/es/content/StepNav/__stories__/WithHints.js +7 -9
- 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/StepNav/index.mdx +21 -0
- package/es/content/SummaryList/SummaryList.stories.js +7 -6
- package/es/content/SummaryList/__stories__/Default.js +10 -6
- package/es/content/SummaryList/__stories__/RowVariations.js +3 -3
- package/es/content/SummaryList/__stories__/WithActions.js +8 -8
- package/es/content/SummaryList/__stories__/WithKeyAndAction.js +4 -4
- package/es/content/SummaryList/__stories__/WithoutActions.js +9 -0
- package/es/content/SummaryList/__stories__/WithoutBorders.js +11 -3
- package/es/content/SummaryList/index.mdx +3 -15
- package/es/content/SummaryList/index.spec.js +1 -1
- package/es/content/Table/Table.stories.js +19 -18
- package/es/content/Table/__stories__/DarkVariant.js +2 -2
- package/es/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +2 -2
- package/es/content/Table/__stories__/Default.js +1 -1
- package/es/content/Table/__stories__/DefinedWidth.js +4 -4
- package/es/content/Table/__stories__/Densed.js +1 -1
- package/es/content/Table/__stories__/Full.js +3 -3
- package/es/content/Table/__stories__/MultipleProps.js +3 -3
- 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 +60 -0
- 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 +8 -7
- 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 +2 -2
- package/es/content/Table/index.js +15 -12
- package/es/content/Table/index.mdx +15 -41
- package/es/content/TaskList/TaskList.stories.js +3 -2
- package/es/content/TaskList/__stories__/Default.js +8 -8
- package/es/content/TaskList/__stories__/Dense.js +76 -0
- package/es/content/TaskList/index.mdx +21 -0
- package/es/content/Timeline/Timeline.stories.js +3 -2
- package/es/content/Timeline/__stories__/Default.js +8 -10
- package/es/content/Timeline/__stories__/Dense.js +124 -0
- package/es/content/Timeline/index.mdx +23 -0
- package/es/content/index.js +12 -12
- package/es/feedback/CopyToClipboard/CopyToClipboard.stories.js +4 -3
- package/es/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
- package/es/feedback/CopyToClipboard/__stories__/Banner.js +2 -2
- package/es/feedback/CopyToClipboard/__stories__/Default.js +14 -10
- package/es/feedback/CopyToClipboard/__stories__/Dense.js +20 -0
- package/es/feedback/CopyToClipboard/index.js +11 -5
- package/es/feedback/CopyToClipboard/index.mdx +2 -10
- package/es/feedback/ErrorSummary/ErrorSummary.stories.js +7 -5
- package/es/feedback/ErrorSummary/__stories__/Default.js +3 -3
- package/es/feedback/ErrorSummary/__stories__/Dense.js +15 -0
- package/es/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +9 -8
- package/es/feedback/ErrorSummary/__stories__/LinkedToField.js +11 -11
- package/es/feedback/ErrorSummary/__stories__/LinkedToInput.js +10 -10
- package/es/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
- package/es/feedback/ErrorSummary/index.mdx +4 -20
- package/es/feedback/ErrorSummary/index.spec.js +1 -1
- package/es/feedback/NotificationBanner/NotificationBanner.stories.js +4 -3
- package/es/feedback/NotificationBanner/__stories__/Default.js +3 -3
- package/es/feedback/NotificationBanner/__stories__/Dense.js +13 -0
- package/es/feedback/NotificationBanner/__stories__/Success.js +1 -1
- package/es/feedback/NotificationBanner/index.js +6 -7
- package/es/feedback/NotificationBanner/index.mdx +2 -10
- 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/PhaseBanner/index.mdx +2 -10
- package/es/feedback/ServiceBadge/index.js +1 -1
- package/es/feedback/ServiceBadge/index.mdx +9 -5
- package/es/feedback/WarningText/WarningText.stories.js +4 -2
- package/es/feedback/WarningText/__stories__/AssistiveText.js +11 -0
- package/es/feedback/WarningText/__stories__/Default.js +1 -1
- package/es/feedback/WarningText/__stories__/Dense.js +11 -0
- package/es/feedback/WarningText/index.mdx +1 -5
- 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 +5 -5
- 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 +12 -7
- package/es/form/AutoComplete/index.mdx +7 -35
- package/es/form/Button/BackButton.js +1 -1
- package/es/form/Button/Button.stories.js +13 -12
- 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 +2 -5
- package/es/form/Button/__stories__/Dense.js +12 -0
- package/es/form/Button/__stories__/Disabled.js +1 -1
- package/es/form/Button/__stories__/GroupingButtons.js +1 -4
- package/es/form/Button/__stories__/GroupingButtonsAndLinks.js +2 -5
- package/es/form/Button/__stories__/Primary.js +1 -4
- package/es/form/Button/__stories__/Secondary.js +1 -4
- 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 -5
- package/es/form/Button/index.js +5 -5
- package/es/form/Button/index.mdx +8 -24
- package/es/form/Button/index.spec.js +1 -1
- package/es/form/Checkbox/Checkbox.stories.js +11 -8
- package/es/form/Checkbox/__stories__/ConditionalReveal.js +5 -5
- package/es/form/Checkbox/__stories__/Default.js +3 -3
- package/es/form/Checkbox/__stories__/Dense.js +26 -0
- package/es/form/Checkbox/__stories__/Inline.js +23 -0
- package/es/form/Checkbox/__stories__/InlineWithDivider.js +24 -0
- package/es/form/Checkbox/__stories__/MultipleQuestions.js +3 -3
- package/es/form/Checkbox/__stories__/NoneAnswer.js +3 -3
- package/es/form/Checkbox/__stories__/NoneAnswerWithError.js +5 -5
- package/es/form/Checkbox/__stories__/WithErrorMessage.js +5 -5
- package/es/form/Checkbox/__stories__/WithHint.js +4 -4
- package/es/form/Checkbox/index.mdx +12 -35
- package/es/form/DateInputContainer/DateInputContainer.stories.js +6 -5
- package/es/form/DateInputContainer/__stories__/Default.js +4 -4
- package/es/form/DateInputContainer/__stories__/Dense.js +23 -0
- package/es/form/DateInputContainer/__stories__/MultipleQuestions.js +5 -5
- package/es/form/DateInputContainer/__stories__/WithErrorMessage.js +6 -6
- package/es/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +6 -6
- package/es/form/DateInputContainer/index.mdx +9 -20
- package/es/form/ErrorMessage/ErrorMessage.stories.js +4 -2
- package/es/form/ErrorMessage/__stories__/DateInputError.js +24 -0
- package/es/form/ErrorMessage/__stories__/Default.js +16 -13
- package/es/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
- package/es/form/ErrorMessage/index.mdx +1 -5
- package/es/form/FileUpload/FileUpload.stories.js +3 -3
- package/es/form/FileUpload/__stories__/Default.js +5 -5
- package/es/form/FileUpload/__stories__/WithErrorMessage.js +7 -7
- package/es/form/FileUpload/index.mdx +3 -5
- package/es/form/RadioContainer/RadioContainer.stories.js +11 -8
- package/es/form/RadioContainer/__stories__/ConditionalReveal.js +5 -5
- package/es/form/RadioContainer/__stories__/Default.js +9 -6
- package/es/form/RadioContainer/__stories__/Dense.js +24 -0
- package/es/form/RadioContainer/__stories__/Inline.js +4 -4
- package/es/form/RadioContainer/__stories__/InlineWithDivider.js +24 -0
- package/es/form/RadioContainer/__stories__/MultipleQuestions.js +4 -4
- package/es/form/RadioContainer/__stories__/NoneAnswer.js +8 -4
- package/es/form/RadioContainer/__stories__/WithErrorMessage.js +8 -6
- package/es/form/RadioContainer/__stories__/WithHints.js +4 -4
- package/es/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
- package/es/form/RadioContainer/index.mdx +12 -35
- package/es/form/SearchContainer/index.js +5 -0
- package/{esm/form/SelectContainer/Select.stories.js → es/form/SelectContainer/SelectContainer.stories.js} +5 -4
- package/es/form/SelectContainer/__stories__/Default.js +7 -7
- package/es/form/SelectContainer/__stories__/Dense.js +23 -0
- package/es/form/SelectContainer/__stories__/DisabledInput.js +3 -3
- package/es/form/SelectContainer/__stories__/WithHint.js +4 -4
- package/es/form/SelectContainer/index.mdx +9 -15
- package/es/form/SingleCharacterInputs/SingleCharacterInput.stories.js +12 -0
- package/{esm/form/SingleCharacterInputContainer → es/form/SingleCharacterInputs}/__stories__/Default.js +15 -15
- package/es/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithDefaultError.js +11 -11
- package/es/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.js +18 -18
- package/es/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.js +15 -15
- package/es/form/SingleCharacterInputs/index.js +4 -0
- package/es/form/SingleCharacterInputs/index.mdx +24 -0
- package/es/form/TextArea/TextArea.stories.js +9 -8
- package/es/form/TextArea/__stories__/Default.js +4 -4
- package/es/form/TextArea/__stories__/Dense.js +14 -0
- 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/TextArea/index.mdx +7 -35
- package/es/form/TextInput/TextInput.stories.js +10 -9
- 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 +14 -0
- package/es/form/TextInput/__stories__/DisabledInput.js +5 -5
- package/es/form/TextInput/__stories__/FixedWidths.js +18 -28
- package/es/form/TextInput/__stories__/FluidWidths.js +18 -28
- 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/TextInput/index.mdx +8 -40
- package/es/form/index.js +15 -15
- package/es/govgr/Footer/Copyright.js +5 -5
- package/es/govgr/Footer/LicenseCCSA.js +2 -2
- package/es/govgr/Footer/index.js +6 -6
- 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/Icon/index.js +2 -2
- package/es/icons/ImageLogo/index.js +3 -0
- package/es/icons/ImageLogoSet/index.js +3 -0
- package/es/icons/index.js +1 -1
- package/es/index.js +11 -11
- package/es/layouts/Admin/index.js +1 -1
- 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 +46 -27
- 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 +2 -2
- package/es/layouts/Grid/Grid.stories.js +4 -3
- 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 +79 -0
- package/es/layouts/Section/index.js +3 -0
- package/es/layouts/Stack/Stack.stories.js +12 -0
- package/es/layouts/Stack/__stories__/AlignItems.js +67 -0
- package/es/layouts/Stack/__stories__/Default.js +24 -0
- package/es/layouts/Stack/__stories__/JustifyContent.js +84 -0
- package/es/layouts/Stack/__stories__/NoWrap.js +26 -0
- package/es/layouts/Stack/__stories__/Row.js +25 -0
- package/es/layouts/Stack/__stories__/Spacing.js +55 -0
- package/es/layouts/Stack/index.js +2 -0
- package/es/layouts/index.js +13 -11
- package/es/navigation/BackLink/BackLink.stories.js +2 -2
- package/es/navigation/BackLink/__stories__/Default.js +1 -1
- package/es/navigation/BackLink/index.mdx +1 -5
- package/es/navigation/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/es/navigation/Breadcrumbs/__stories__/Default.js +1 -1
- package/es/navigation/Breadcrumbs/index.mdx +6 -5
- 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 +28 -69
- 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/Drawer/index.mdx +1 -5
- 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 +16 -15
- package/es/navigation/Dropdown/__stories__/Default.js +16 -15
- package/es/navigation/Dropdown/__stories__/Dense.js +50 -0
- package/es/navigation/Dropdown/__stories__/PlacementTop.js +16 -15
- package/es/navigation/Dropdown/index.js +0 -1
- package/es/navigation/Dropdown/index.mdx +3 -17
- package/es/navigation/Link/Link.stories.js +7 -7
- package/es/navigation/Link/Link.stories.playwright.json +2 -2
- 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.js +1 -1
- package/es/navigation/Link/index.mdx +7 -25
- package/es/navigation/Link/index.spec.js +1 -1
- package/es/navigation/NavList/NavList.stories.js +9 -3
- package/es/navigation/NavList/NavList.stories.playwright.json +26 -6
- package/es/navigation/NavList/NavListAuto/index.js +48 -0
- package/es/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +5 -5
- package/es/navigation/NavList/__stories__/Default.js +19 -79
- package/es/navigation/NavList/__stories__/HorizontalWithDrawer.js +67 -0
- package/es/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +41 -0
- package/es/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
- package/es/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
- package/es/navigation/NavList/__stories__/NavListWithoutNav.js +19 -0
- package/es/navigation/NavList/__stories__/UsingHeaderButton.js +70 -0
- package/es/navigation/NavList/__stories__/UsingNavListAuto.js +38 -0
- package/es/navigation/NavList/__stories__/Vertical.js +32 -0
- package/es/navigation/NavList/__stories__/VerticalWithoutDrawer.js +44 -0
- package/es/navigation/NavList/hooks/useNavList.js +3 -3
- package/es/navigation/NavList/hooks/useTogglableNav.js +33 -18
- package/es/navigation/NavList/index.js +16 -19
- package/es/navigation/NavList/index.mdx +9 -11
- package/es/navigation/NavList/index.spec.js +1 -1
- package/es/navigation/NavList/types.js +1 -6
- 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 +12 -70
- package/es/navigation/Pagination/__stories__/PaginationSmall.js +6 -6
- package/es/navigation/Pagination/__stories__/PaginationWithSmallFont.js +6 -6
- package/es/navigation/Pagination/__stories__/WithHook.js +57 -0
- package/es/navigation/Pagination/__stories__/WithInactiveValues.js +7 -7
- 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/Pagination/index.mdx +7 -15
- package/es/navigation/SkipLink/SkipLink.stories.js +8 -0
- package/es/navigation/SkipLink/__stories__/Default.js +12 -0
- package/es/navigation/Tabs/Tabs.stories.js +5 -3
- package/es/navigation/Tabs/__stories__/Auto.js +33 -0
- package/es/navigation/Tabs/__stories__/Default.js +35 -10
- 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/Tabs/index.mdx +7 -5
- package/es/navigation/index.js +9 -9
- package/es/registry.js +279 -277
- package/es/typography/Caption/index.js +2 -2
- package/es/typography/Heading/Heading.stories.js +2 -2
- package/es/typography/Heading/__stories__/Default.js +10 -5
- package/es/typography/Heading/index.mdx +1 -5
- 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/HeadingCaption/index.mdx +1 -5
- 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 +4 -4
- package/es/typography/Hint/index.mdx +3 -5
- 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 +9 -9
- package/es/typography/NormalText/__stories__/FontWeight.js +2 -2
- package/es/typography/NormalText/__stories__/Variants.js +6 -6
- package/es/typography/NormalText/index.mdx +5 -15
- 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 +8 -8
- package/es/typography/Paragraph/__stories__/FontWeight.js +1 -1
- package/es/typography/Paragraph/__stories__/LeadVariant.js +2 -2
- package/es/typography/Paragraph/__stories__/SmallVariant.js +2 -2
- package/es/typography/Paragraph/index.mdx +5 -20
- 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 +2 -2
- package/es/utils/Typography/index.js +3 -0
- 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 +10 -0
- package/esm/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
- package/esm/app/CloseButton/index.js +3 -0
- package/esm/app/{FilterSection → FilterContainer}/index.js +4 -5
- package/esm/app/Footer/Footer.stories.js +8 -8
- package/esm/app/Footer/Footer.stories.playwright.json +2 -2
- package/esm/app/Footer/__stories__/Default.js +1 -1
- package/esm/app/Footer/__stories__/DefaultCopyright.js +11 -9
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +44 -28
- package/esm/app/Footer/__stories__/FooterWithLink.js +24 -18
- package/esm/app/Footer/__stories__/FooterWithLogo.js +22 -19
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +28 -20
- package/esm/app/Footer/__stories__/YearCopyright.js +12 -10
- package/esm/app/Footer/index.js +3 -5
- package/esm/app/Footer/index.mdx +4 -20
- package/esm/app/Header/Header.stories.js +6 -6
- package/esm/app/Header/Header.stories.playwright.json +1 -1
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +6 -6
- package/esm/app/Header/__stories__/Default.js +5 -5
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +23 -26
- package/esm/app/Header/__stories__/WithNavigation.js +36 -41
- package/esm/app/Header/__stories__/WithServiceName.js +6 -6
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +8 -8
- package/esm/app/Header/index.js +6 -7
- package/esm/app/Header/index.mdx +4 -21
- package/esm/app/Header/index.spec.js +2 -2
- 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 -2
- package/esm/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/esm/app/Masthead/__stories__/Default.js +5 -5
- package/esm/app/Masthead/__stories__/WithElements.js +21 -0
- package/esm/app/Masthead/__stories__/WithLogo.js +19 -0
- package/esm/app/Modal/Modal.stories.js +6 -3
- package/esm/app/Modal/Modal.stories.playwright.json +53 -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 +6 -6
- package/esm/app/Modal/__stories__/Dense.js +43 -0
- 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/Modal/index.mdx +1 -5
- package/esm/app/NotFound/NotFound.stories.js +2 -2
- package/esm/app/NotFound/__stories__/Default.js +1 -1
- package/esm/app/NotFound/index.js +3 -3
- package/esm/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck.js +1 -1
- package/esm/app/OutdatedBrowserBanner/index.js +7 -7
- package/esm/app/PageTitleContainer/index.js +5 -0
- package/esm/app/Panel/Panel.stories.js +9 -0
- package/esm/app/Panel/__stories__/Default.js +9 -0
- package/esm/app/Panel/index.js +5 -0
- package/esm/app/Panel/index.mdx +16 -0
- package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +2 -2
- package/esm/app/PhaseBannerHeader/__stories__/Default.js +1 -1
- package/esm/app/PhaseBannerHeader/index.js +2 -2
- package/esm/app/PhaseBannerHeader/index.mdx +1 -5
- 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/QrCodeViewer/index.mdx +2 -10
- package/esm/app/ThemeOptions/index.js +17 -17
- 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 -18
- 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.mdx +2 -10
- package/esm/content/Accordion/index.spec.js +12 -2
- package/esm/content/Blockquote/Blockquote.stories.js +3 -2
- package/esm/content/Blockquote/__stories__/Default.js +1 -1
- package/esm/content/Blockquote/__stories__/Dense.js +11 -0
- package/esm/content/Blockquote/index.mdx +1 -5
- package/esm/content/Blockquote/index.spec.js +1 -1
- package/esm/content/Card/Card.stories.js +12 -10
- package/esm/content/Card/__stories__/Default.js +3 -3
- package/esm/content/Card/__stories__/Dense.js +14 -0
- 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 +10 -0
- package/esm/content/Card/index.mdx +8 -40
- 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 +2 -2
- package/esm/content/Chip/index.js +1 -2
- package/esm/content/Chip/index.mdx +39 -0
- 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.mdx +6 -5
- 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 +4 -4
- 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 +3 -3
- package/esm/content/List/index.js +7 -7
- package/esm/content/List/index.mdx +3 -15
- package/esm/content/List/index.spec.js +1 -1
- package/esm/content/StepNav/StepNav.stories.js +6 -3
- package/esm/content/StepNav/__stories__/Auto.js +135 -0
- package/esm/content/StepNav/__stories__/Default.js +7 -9
- package/esm/content/StepNav/__stories__/Dense.js +180 -0
- package/esm/content/StepNav/__stories__/WithHints.js +7 -9
- 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/StepNav/index.mdx +21 -0
- package/esm/content/SummaryList/SummaryList.stories.js +7 -6
- package/esm/content/SummaryList/__stories__/Default.js +10 -6
- package/esm/content/SummaryList/__stories__/RowVariations.js +3 -3
- package/esm/content/SummaryList/__stories__/WithActions.js +8 -8
- package/esm/content/SummaryList/__stories__/WithKeyAndAction.js +4 -4
- package/esm/content/SummaryList/__stories__/WithoutActions.js +9 -0
- package/esm/content/SummaryList/__stories__/WithoutBorders.js +11 -3
- package/esm/content/SummaryList/index.mdx +3 -15
- package/esm/content/SummaryList/index.spec.js +1 -1
- package/esm/content/Table/Table.stories.js +19 -18
- package/esm/content/Table/__stories__/DarkVariant.js +2 -2
- package/esm/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +2 -2
- package/esm/content/Table/__stories__/Default.js +1 -1
- package/esm/content/Table/__stories__/DefinedWidth.js +4 -4
- package/esm/content/Table/__stories__/Densed.js +1 -1
- package/esm/content/Table/__stories__/Full.js +3 -3
- package/esm/content/Table/__stories__/MultipleProps.js +3 -3
- 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 +60 -0
- 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 +8 -7
- 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 +2 -2
- package/esm/content/Table/index.js +15 -12
- package/esm/content/Table/index.mdx +15 -41
- package/esm/content/TaskList/TaskList.stories.js +3 -2
- package/esm/content/TaskList/__stories__/Default.js +8 -8
- package/esm/content/TaskList/__stories__/Dense.js +76 -0
- package/esm/content/TaskList/index.mdx +21 -0
- package/esm/content/Timeline/Timeline.stories.js +3 -2
- package/esm/content/Timeline/__stories__/Default.js +8 -10
- package/esm/content/Timeline/__stories__/Dense.js +124 -0
- package/esm/content/Timeline/index.mdx +23 -0
- package/esm/content/index.js +12 -12
- package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.js +4 -3
- package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
- package/esm/feedback/CopyToClipboard/__stories__/Banner.js +2 -2
- package/esm/feedback/CopyToClipboard/__stories__/Default.js +14 -10
- package/esm/feedback/CopyToClipboard/__stories__/Dense.js +20 -0
- package/esm/feedback/CopyToClipboard/index.js +11 -5
- package/esm/feedback/CopyToClipboard/index.mdx +2 -10
- package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +7 -5
- package/esm/feedback/ErrorSummary/__stories__/Default.js +3 -3
- package/esm/feedback/ErrorSummary/__stories__/Dense.js +15 -0
- package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +9 -8
- package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +11 -11
- package/esm/feedback/ErrorSummary/__stories__/LinkedToInput.js +10 -10
- package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
- package/esm/feedback/ErrorSummary/index.mdx +4 -20
- package/esm/feedback/ErrorSummary/index.spec.js +1 -1
- package/esm/feedback/NotificationBanner/NotificationBanner.stories.js +4 -3
- package/esm/feedback/NotificationBanner/__stories__/Default.js +3 -3
- package/esm/feedback/NotificationBanner/__stories__/Dense.js +13 -0
- package/esm/feedback/NotificationBanner/__stories__/Success.js +1 -1
- package/esm/feedback/NotificationBanner/index.js +6 -7
- package/esm/feedback/NotificationBanner/index.mdx +2 -10
- 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/PhaseBanner/index.mdx +2 -10
- package/esm/feedback/ServiceBadge/index.js +1 -1
- package/esm/feedback/ServiceBadge/index.mdx +9 -5
- package/esm/feedback/WarningText/WarningText.stories.js +4 -2
- package/esm/feedback/WarningText/__stories__/AssistiveText.js +11 -0
- package/esm/feedback/WarningText/__stories__/Default.js +1 -1
- package/esm/feedback/WarningText/__stories__/Dense.js +11 -0
- package/esm/feedback/WarningText/index.mdx +1 -5
- 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 +5 -5
- 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 +12 -7
- package/esm/form/AutoComplete/index.mdx +7 -35
- package/esm/form/Button/BackButton.js +1 -1
- package/esm/form/Button/Button.stories.js +13 -12
- 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 +2 -5
- package/esm/form/Button/__stories__/Dense.js +12 -0
- package/esm/form/Button/__stories__/Disabled.js +1 -1
- package/esm/form/Button/__stories__/GroupingButtons.js +1 -4
- package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +2 -5
- package/esm/form/Button/__stories__/Primary.js +1 -4
- package/esm/form/Button/__stories__/Secondary.js +1 -4
- 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 -5
- package/esm/form/Button/index.js +5 -5
- package/esm/form/Button/index.mdx +8 -24
- package/esm/form/Button/index.spec.js +1 -1
- package/esm/form/Checkbox/Checkbox.stories.js +11 -8
- package/esm/form/Checkbox/__stories__/ConditionalReveal.js +5 -5
- package/esm/form/Checkbox/__stories__/Default.js +3 -3
- package/esm/form/Checkbox/__stories__/Dense.js +26 -0
- package/esm/form/Checkbox/__stories__/Inline.js +23 -0
- package/esm/form/Checkbox/__stories__/InlineWithDivider.js +24 -0
- package/esm/form/Checkbox/__stories__/MultipleQuestions.js +3 -3
- package/esm/form/Checkbox/__stories__/NoneAnswer.js +3 -3
- package/esm/form/Checkbox/__stories__/NoneAnswerWithError.js +5 -5
- package/esm/form/Checkbox/__stories__/WithErrorMessage.js +5 -5
- package/esm/form/Checkbox/__stories__/WithHint.js +4 -4
- package/esm/form/Checkbox/index.mdx +12 -35
- package/esm/form/DateInputContainer/DateInputContainer.stories.js +6 -5
- package/esm/form/DateInputContainer/__stories__/Default.js +4 -4
- package/esm/form/DateInputContainer/__stories__/Dense.js +23 -0
- package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +5 -5
- package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +6 -6
- package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +6 -6
- package/esm/form/DateInputContainer/index.mdx +9 -20
- package/esm/form/ErrorMessage/ErrorMessage.stories.js +4 -2
- package/esm/form/ErrorMessage/__stories__/DateInputError.js +24 -0
- package/esm/form/ErrorMessage/__stories__/Default.js +16 -13
- package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
- package/esm/form/ErrorMessage/index.mdx +1 -5
- package/esm/form/FileUpload/FileUpload.stories.js +3 -3
- package/esm/form/FileUpload/__stories__/Default.js +5 -5
- package/esm/form/FileUpload/__stories__/WithErrorMessage.js +7 -7
- package/esm/form/FileUpload/index.mdx +3 -5
- package/esm/form/RadioContainer/RadioContainer.stories.js +11 -8
- package/esm/form/RadioContainer/__stories__/ConditionalReveal.js +5 -5
- package/esm/form/RadioContainer/__stories__/Default.js +9 -6
- package/esm/form/RadioContainer/__stories__/Dense.js +24 -0
- package/esm/form/RadioContainer/__stories__/Inline.js +4 -4
- package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +24 -0
- package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +4 -4
- package/esm/form/RadioContainer/__stories__/NoneAnswer.js +8 -4
- package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +8 -6
- package/esm/form/RadioContainer/__stories__/WithHints.js +4 -4
- package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
- package/esm/form/RadioContainer/index.mdx +12 -35
- package/esm/form/SearchContainer/index.js +5 -0
- package/{es/form/SelectContainer/Select.stories.js → esm/form/SelectContainer/SelectContainer.stories.js} +5 -4
- package/esm/form/SelectContainer/__stories__/Default.js +7 -7
- package/esm/form/SelectContainer/__stories__/Dense.js +23 -0
- package/esm/form/SelectContainer/__stories__/DisabledInput.js +3 -3
- package/esm/form/SelectContainer/__stories__/WithHint.js +4 -4
- package/esm/form/SelectContainer/index.mdx +9 -15
- package/esm/form/SingleCharacterInputs/SingleCharacterInput.stories.js +12 -0
- package/{es/form/SingleCharacterInputContainer → esm/form/SingleCharacterInputs}/__stories__/Default.js +15 -15
- package/esm/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithDefaultError.js +11 -11
- package/esm/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.js +18 -18
- package/esm/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.js +15 -15
- package/esm/form/SingleCharacterInputs/index.js +4 -0
- package/esm/form/SingleCharacterInputs/index.mdx +24 -0
- package/esm/form/TextArea/TextArea.stories.js +9 -8
- package/esm/form/TextArea/__stories__/Default.js +4 -4
- package/esm/form/TextArea/__stories__/Dense.js +14 -0
- 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/TextArea/index.mdx +7 -35
- package/esm/form/TextInput/TextInput.stories.js +10 -9
- 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 +14 -0
- package/esm/form/TextInput/__stories__/DisabledInput.js +5 -5
- package/esm/form/TextInput/__stories__/FixedWidths.js +18 -28
- package/esm/form/TextInput/__stories__/FluidWidths.js +18 -28
- 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/TextInput/index.mdx +8 -40
- package/esm/form/index.js +15 -15
- package/esm/govgr/Footer/Copyright.js +5 -5
- package/esm/govgr/Footer/LicenseCCSA.js +2 -2
- package/esm/govgr/Footer/index.js +6 -6
- 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/Icon/index.js +2 -2
- package/esm/icons/ImageLogo/index.js +3 -0
- package/esm/icons/ImageLogoSet/index.js +3 -0
- package/esm/icons/index.js +1 -1
- package/esm/index.js +12 -12
- package/esm/layouts/Admin/index.js +1 -1
- 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 +46 -27
- 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 +2 -2
- package/esm/layouts/Grid/Grid.stories.js +4 -3
- 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 +79 -0
- package/esm/layouts/Section/index.js +3 -0
- package/esm/layouts/Stack/Stack.stories.js +12 -0
- package/esm/layouts/Stack/__stories__/AlignItems.js +67 -0
- package/esm/layouts/Stack/__stories__/Default.js +24 -0
- package/esm/layouts/Stack/__stories__/JustifyContent.js +84 -0
- package/esm/layouts/Stack/__stories__/NoWrap.js +26 -0
- package/esm/layouts/Stack/__stories__/Row.js +25 -0
- package/esm/layouts/Stack/__stories__/Spacing.js +55 -0
- package/esm/layouts/Stack/index.js +2 -0
- package/esm/layouts/index.js +13 -11
- package/esm/navigation/BackLink/BackLink.stories.js +2 -2
- package/esm/navigation/BackLink/__stories__/Default.js +1 -1
- package/esm/navigation/BackLink/index.mdx +1 -5
- package/esm/navigation/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/esm/navigation/Breadcrumbs/__stories__/Default.js +1 -1
- package/esm/navigation/Breadcrumbs/index.mdx +6 -5
- 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 +28 -69
- 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/Drawer/index.mdx +1 -5
- 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 +16 -15
- package/esm/navigation/Dropdown/__stories__/Default.js +16 -15
- package/esm/navigation/Dropdown/__stories__/Dense.js +50 -0
- package/esm/navigation/Dropdown/__stories__/PlacementTop.js +16 -15
- package/esm/navigation/Dropdown/index.js +0 -1
- package/esm/navigation/Dropdown/index.mdx +3 -17
- package/esm/navigation/Link/Link.stories.js +7 -7
- package/esm/navigation/Link/Link.stories.playwright.json +2 -2
- 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.js +1 -1
- package/esm/navigation/Link/index.mdx +7 -25
- package/esm/navigation/Link/index.spec.js +1 -1
- package/esm/navigation/NavList/NavList.stories.js +9 -3
- package/esm/navigation/NavList/NavList.stories.playwright.json +26 -6
- package/esm/navigation/NavList/NavListAuto/index.js +48 -0
- package/esm/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +5 -5
- package/esm/navigation/NavList/__stories__/Default.js +19 -79
- package/esm/navigation/NavList/__stories__/HorizontalWithDrawer.js +67 -0
- package/esm/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +41 -0
- package/esm/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
- package/esm/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
- package/esm/navigation/NavList/__stories__/NavListWithoutNav.js +19 -0
- package/esm/navigation/NavList/__stories__/UsingHeaderButton.js +70 -0
- package/esm/navigation/NavList/__stories__/UsingNavListAuto.js +38 -0
- package/esm/navigation/NavList/__stories__/Vertical.js +32 -0
- package/esm/navigation/NavList/__stories__/VerticalWithoutDrawer.js +44 -0
- package/esm/navigation/NavList/hooks/useNavList.js +3 -3
- package/esm/navigation/NavList/hooks/useTogglableNav.js +33 -18
- package/esm/navigation/NavList/index.js +16 -19
- package/esm/navigation/NavList/index.mdx +9 -11
- package/esm/navigation/NavList/index.spec.js +1 -1
- package/esm/navigation/NavList/types.js +1 -6
- 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 +12 -70
- package/esm/navigation/Pagination/__stories__/PaginationSmall.js +6 -6
- package/esm/navigation/Pagination/__stories__/PaginationWithSmallFont.js +6 -6
- package/esm/navigation/Pagination/__stories__/WithHook.js +57 -0
- package/esm/navigation/Pagination/__stories__/WithInactiveValues.js +7 -7
- 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/Pagination/index.mdx +7 -15
- package/esm/navigation/SkipLink/SkipLink.stories.js +8 -0
- package/esm/navigation/SkipLink/__stories__/Default.js +12 -0
- package/esm/navigation/Tabs/Tabs.stories.js +5 -3
- package/esm/navigation/Tabs/__stories__/Auto.js +33 -0
- package/esm/navigation/Tabs/__stories__/Default.js +35 -10
- 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/Tabs/index.mdx +7 -5
- package/esm/navigation/index.js +9 -9
- package/esm/registry.js +279 -277
- package/esm/typography/Caption/index.js +2 -2
- package/esm/typography/Heading/Heading.stories.js +2 -2
- package/esm/typography/Heading/__stories__/Default.js +10 -5
- package/esm/typography/Heading/index.mdx +1 -5
- 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/HeadingCaption/index.mdx +1 -5
- 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 +4 -4
- package/esm/typography/Hint/index.mdx +3 -5
- 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 +9 -9
- package/esm/typography/NormalText/__stories__/FontWeight.js +2 -2
- package/esm/typography/NormalText/__stories__/Variants.js +6 -6
- package/esm/typography/NormalText/index.mdx +5 -15
- 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 +8 -8
- package/esm/typography/Paragraph/__stories__/FontWeight.js +1 -1
- package/esm/typography/Paragraph/__stories__/LeadVariant.js +2 -2
- package/esm/typography/Paragraph/__stories__/SmallVariant.js +2 -2
- package/esm/typography/Paragraph/index.mdx +5 -20
- 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 +2 -2
- package/esm/utils/Typography/index.js +3 -0
- 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.d.ts +1 -0
- package/feedback/CopyToClipboard/CopyToClipboard.stories.js +18 -4
- package/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
- package/feedback/CopyToClipboard/__stories__/Banner.js +3 -3
- package/feedback/CopyToClipboard/__stories__/Default.js +14 -10
- package/feedback/CopyToClipboard/__stories__/Dense.d.ts +2 -0
- package/feedback/CopyToClipboard/__stories__/Dense.js +34 -0
- package/feedback/CopyToClipboard/index.d.ts +4 -5
- package/feedback/CopyToClipboard/index.js +11 -5
- package/feedback/CopyToClipboard/index.mdx +2 -10
- package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +2 -0
- package/feedback/ErrorSummary/ErrorSummary.stories.js +34 -6
- package/feedback/ErrorSummary/__stories__/Default.js +4 -4
- package/feedback/ErrorSummary/__stories__/Dense.d.ts +2 -0
- package/feedback/ErrorSummary/__stories__/Dense.js +30 -0
- package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +11 -9
- package/feedback/ErrorSummary/__stories__/LinkedToField.js +12 -12
- package/feedback/ErrorSummary/__stories__/LinkedToInput.js +10 -10
- package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.d.ts +2 -0
- package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +57 -0
- package/feedback/ErrorSummary/index.mdx +4 -20
- package/feedback/ErrorSummary/index.spec.js +2 -2
- package/feedback/NotificationBanner/NotificationBanner.stories.d.ts +1 -0
- package/feedback/NotificationBanner/NotificationBanner.stories.js +18 -4
- package/feedback/NotificationBanner/__stories__/Default.js +4 -4
- package/feedback/NotificationBanner/__stories__/Dense.d.ts +2 -0
- package/feedback/NotificationBanner/__stories__/Dense.js +27 -0
- package/feedback/NotificationBanner/__stories__/Success.js +2 -2
- package/feedback/NotificationBanner/index.d.ts +1 -1
- package/feedback/NotificationBanner/index.js +6 -7
- package/feedback/NotificationBanner/index.mdx +2 -10
- 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/PhaseBanner/index.mdx +2 -10
- package/feedback/ServiceBadge/index.js +1 -1
- package/feedback/ServiceBadge/index.mdx +9 -5
- package/feedback/WarningText/WarningText.stories.d.ts +2 -0
- package/feedback/WarningText/WarningText.stories.js +31 -3
- package/feedback/WarningText/__stories__/AssistiveText.d.ts +2 -0
- package/feedback/WarningText/__stories__/AssistiveText.js +24 -0
- package/feedback/WarningText/__stories__/Default.js +2 -2
- package/feedback/WarningText/__stories__/Dense.d.ts +2 -0
- package/feedback/WarningText/__stories__/Dense.js +24 -0
- package/feedback/WarningText/index.mdx +1 -5
- 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 +6 -6
- 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.d.ts +3 -3
- package/form/AutoComplete/index.js +12 -7
- package/form/AutoComplete/index.mdx +7 -35
- package/form/Button/BackButton.js +1 -1
- package/form/Button/Button.stories.d.ts +1 -0
- package/form/Button/Button.stories.js +16 -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.d.ts +0 -3
- package/form/Button/__stories__/CallToActionButton.js +2 -5
- package/form/Button/__stories__/Dense.d.ts +2 -0
- package/form/Button/__stories__/Dense.js +25 -0
- package/form/Button/__stories__/Disabled.js +2 -2
- package/form/Button/__stories__/GroupingButtons.d.ts +0 -3
- package/form/Button/__stories__/GroupingButtons.js +2 -5
- package/form/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -3
- package/form/Button/__stories__/GroupingButtonsAndLinks.js +3 -6
- package/form/Button/__stories__/Primary.d.ts +0 -3
- package/form/Button/__stories__/Primary.js +2 -5
- package/form/Button/__stories__/Secondary.d.ts +0 -3
- package/form/Button/__stories__/Secondary.js +2 -5
- package/form/Button/__stories__/ThemeToggle.js +1 -1
- package/form/Button/__stories__/Warning.js +2 -2
- package/form/Button/__stories__/WithVariantLink.d.ts +0 -3
- package/form/Button/__stories__/WithVariantLink.js +2 -5
- package/form/Button/index.js +5 -5
- package/form/Button/index.mdx +8 -24
- package/form/Button/index.spec.js +2 -2
- package/form/Checkbox/Checkbox.stories.d.ts +3 -0
- package/form/Checkbox/Checkbox.stories.js +51 -9
- package/form/Checkbox/__stories__/ConditionalReveal.js +8 -8
- package/form/Checkbox/__stories__/Default.js +6 -6
- package/form/Checkbox/__stories__/Dense.d.ts +2 -0
- package/form/Checkbox/__stories__/Dense.js +41 -0
- package/form/Checkbox/__stories__/Inline.d.ts +2 -0
- package/form/Checkbox/__stories__/Inline.js +38 -0
- package/form/Checkbox/__stories__/InlineWithDivider.d.ts +2 -0
- package/form/Checkbox/__stories__/InlineWithDivider.js +39 -0
- package/form/Checkbox/__stories__/MultipleQuestions.js +6 -6
- package/form/Checkbox/__stories__/NoneAnswer.js +6 -6
- package/form/Checkbox/__stories__/NoneAnswerWithError.js +8 -8
- package/form/Checkbox/__stories__/WithErrorMessage.js +7 -7
- package/form/Checkbox/__stories__/WithHint.js +7 -7
- package/form/Checkbox/index.mdx +12 -35
- package/form/DateInputContainer/DateInputContainer.stories.d.ts +1 -0
- package/form/DateInputContainer/DateInputContainer.stories.js +20 -6
- package/form/DateInputContainer/__stories__/Default.js +8 -8
- package/form/DateInputContainer/__stories__/Dense.d.ts +2 -0
- package/form/DateInputContainer/__stories__/Dense.js +37 -0
- package/form/DateInputContainer/__stories__/MultipleQuestions.js +8 -8
- package/form/DateInputContainer/__stories__/WithErrorMessage.js +10 -10
- package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +10 -10
- package/form/DateInputContainer/index.mdx +9 -20
- package/form/ErrorMessage/ErrorMessage.stories.d.ts +2 -0
- package/form/ErrorMessage/ErrorMessage.stories.js +31 -3
- package/form/ErrorMessage/__stories__/DateInputError.d.ts +2 -0
- package/form/ErrorMessage/__stories__/DateInputError.js +41 -0
- package/form/ErrorMessage/__stories__/Default.js +17 -14
- package/form/ErrorMessage/__stories__/ErrorMessageOnly.d.ts +2 -0
- package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +26 -0
- package/form/ErrorMessage/index.mdx +1 -5
- package/form/FileUpload/FileUpload.stories.js +4 -4
- package/form/FileUpload/__stories__/Default.js +6 -6
- package/form/FileUpload/__stories__/WithErrorMessage.js +8 -8
- package/form/FileUpload/index.mdx +3 -5
- package/form/RadioContainer/RadioContainer.stories.d.ts +3 -0
- package/form/RadioContainer/RadioContainer.stories.js +51 -9
- package/form/RadioContainer/__stories__/ConditionalReveal.js +8 -8
- package/form/RadioContainer/__stories__/Default.js +10 -7
- package/form/RadioContainer/__stories__/Dense.d.ts +2 -0
- package/form/RadioContainer/__stories__/Dense.js +38 -0
- package/form/RadioContainer/__stories__/Inline.js +7 -7
- package/form/RadioContainer/__stories__/InlineWithDivider.d.ts +2 -0
- package/form/RadioContainer/__stories__/InlineWithDivider.js +39 -0
- package/form/RadioContainer/__stories__/MultipleQuestions.js +7 -7
- package/form/RadioContainer/__stories__/NoneAnswer.js +10 -6
- package/form/RadioContainer/__stories__/WithErrorMessage.js +10 -8
- package/form/RadioContainer/__stories__/WithHints.js +5 -5
- package/form/RadioContainer/__stories__/WithMediumLegend.d.ts +2 -0
- package/form/RadioContainer/__stories__/WithMediumLegend.js +38 -0
- package/form/RadioContainer/index.mdx +12 -35
- package/form/SearchContainer/index.d.ts +5 -0
- package/form/{SearchSection → SearchContainer}/index.js +5 -5
- package/form/SelectContainer/{Select.stories.d.ts → SelectContainer.stories.d.ts} +1 -0
- package/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +19 -5
- package/form/SelectContainer/__stories__/Default.js +12 -12
- package/form/SelectContainer/__stories__/Dense.d.ts +2 -0
- package/form/SelectContainer/__stories__/Dense.js +38 -0
- package/form/SelectContainer/__stories__/DisabledInput.js +8 -8
- package/form/SelectContainer/__stories__/WithHint.js +9 -9
- package/form/SelectContainer/index.mdx +9 -15
- package/form/SingleCharacterInputs/SingleCharacterInput.stories.d.ts +13 -0
- package/form/{SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js → SingleCharacterInputs/SingleCharacterInput.stories.js} +8 -8
- package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/Default.js +15 -15
- package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithDefaultError.js +11 -11
- package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.js +18 -18
- package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.js +15 -15
- package/form/SingleCharacterInputs/index.d.ts +4 -0
- package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/index.js +9 -9
- package/form/SingleCharacterInputs/index.mdx +24 -0
- package/form/TextArea/TextArea.stories.d.ts +1 -0
- package/form/TextArea/TextArea.stories.js +23 -9
- package/form/TextArea/__stories__/Default.js +4 -4
- package/form/TextArea/__stories__/Dense.d.ts +2 -0
- package/form/TextArea/__stories__/Dense.js +29 -0
- 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/TextArea/index.mdx +7 -35
- package/form/TextInput/TextInput.stories.d.ts +1 -0
- package/form/TextInput/TextInput.stories.js +24 -10
- package/form/TextInput/__stories__/AskingForNumbers.js +5 -5
- package/form/TextInput/__stories__/Default.js +4 -4
- package/form/TextInput/__stories__/Dense.d.ts +2 -0
- package/form/TextInput/__stories__/Dense.js +29 -0
- package/form/TextInput/__stories__/DisabledInput.js +5 -5
- package/form/TextInput/__stories__/FixedWidths.js +23 -33
- package/form/TextInput/__stories__/FluidWidths.js +23 -33
- 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/TextInput/index.mdx +8 -40
- package/form/index.d.ts +2 -2
- package/form/index.js +21 -21
- package/govgr/Footer/Copyright.js +5 -5
- package/govgr/Footer/LicenseCCSA.js +2 -2
- package/govgr/Footer/index.js +6 -6
- 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/Icon/index.d.ts +2 -2
- package/icons/Icon/index.js +1 -1
- package/icons/ImageLogo/index.d.ts +3 -0
- package/{navigation/NavList/NavListItemLink.js → icons/ImageLogo/index.js} +5 -5
- package/icons/ImageLogoSet/index.d.ts +3 -0
- package/{navigation/NavList/NavVerticalItem.js → icons/ImageLogoSet/index.js} +5 -5
- package/icons/index.js +1 -1
- package/index.js +11 -11
- package/layouts/Admin/index.d.ts +1 -1
- package/layouts/Admin/index.js +4 -4
- package/layouts/Basic/Basic.stories.js +2 -2
- package/layouts/Basic/Content/index.d.ts +1 -3
- package/layouts/Basic/Content/index.js +1 -7
- package/layouts/Basic/Side/index.d.ts +1 -3
- package/layouts/Basic/Side/index.js +1 -7
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +46 -27
- 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.d.ts +1 -1
- package/layouts/Divider/index.js +5 -5
- package/layouts/Grid/Grid.stories.d.ts +1 -0
- package/layouts/Grid/Grid.stories.js +18 -4
- package/layouts/Grid/__stories__/Default.js +9 -9
- package/layouts/Grid/__stories__/Inline.js +9 -9
- package/layouts/Grid/__stories__/ResponsiveSpacing.d.ts +2 -0
- package/layouts/Grid/__stories__/ResponsiveSpacing.js +93 -0
- package/layouts/Section/index.d.ts +3 -0
- package/{navigation/NavList/NavMenu.js → layouts/Section/index.js} +5 -5
- package/layouts/Stack/Stack.stories.d.ts +13 -0
- package/layouts/Stack/Stack.stories.js +101 -0
- package/layouts/Stack/__stories__/AlignItems.d.ts +2 -0
- package/layouts/Stack/__stories__/AlignItems.js +81 -0
- package/layouts/Stack/__stories__/Default.d.ts +2 -0
- package/layouts/Stack/__stories__/Default.js +38 -0
- package/layouts/Stack/__stories__/JustifyContent.d.ts +2 -0
- package/layouts/Stack/__stories__/JustifyContent.js +98 -0
- package/layouts/Stack/__stories__/NoWrap.d.ts +2 -0
- package/layouts/Stack/__stories__/NoWrap.js +40 -0
- package/layouts/Stack/__stories__/Row.d.ts +2 -0
- package/layouts/Stack/__stories__/Row.js +39 -0
- package/layouts/Stack/__stories__/Spacing.d.ts +2 -0
- package/layouts/Stack/__stories__/Spacing.js +69 -0
- package/layouts/Stack/index.d.ts +2 -0
- package/layouts/Stack/index.js +13 -0
- package/layouts/index.d.ts +2 -0
- package/layouts/index.js +27 -6
- package/navigation/BackLink/BackLink.stories.js +3 -3
- package/navigation/BackLink/__stories__/Default.js +2 -2
- package/navigation/BackLink/index.mdx +1 -5
- package/navigation/Breadcrumbs/Breadcrumbs.stories.js +3 -3
- package/navigation/Breadcrumbs/__stories__/Default.js +6 -6
- package/navigation/Breadcrumbs/index.mdx +6 -5
- 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 +29 -73
- 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/Drawer/index.mdx +1 -5
- 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 +18 -18
- package/navigation/Dropdown/__stories__/Default.js +17 -17
- package/navigation/Dropdown/__stories__/Dense.d.ts +2 -0
- package/navigation/Dropdown/__stories__/Dense.js +68 -0
- package/navigation/Dropdown/__stories__/PlacementTop.js +18 -18
- package/navigation/Dropdown/index.d.ts +1 -2
- package/navigation/Dropdown/index.js +0 -14
- package/navigation/Dropdown/index.mdx +3 -17
- package/navigation/Link/Link.stories.js +8 -8
- package/navigation/Link/Link.stories.playwright.json +2 -2
- 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.d.ts +1 -1
- package/navigation/Link/index.js +12 -13
- package/navigation/Link/index.mdx +7 -25
- package/navigation/Link/index.spec.js +4 -4
- package/navigation/NavList/NavList.stories.d.ts +7 -1
- package/navigation/NavList/NavList.stories.js +91 -7
- package/navigation/NavList/NavList.stories.playwright.json +26 -6
- package/navigation/NavList/NavListAuto/index.js +74 -0
- package/navigation/NavList/NavMenuContentList.d.ts +5 -0
- package/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +10 -10
- package/navigation/NavList/__stories__/Default.js +25 -85
- package/navigation/NavList/__stories__/HorizontalWithDrawer.d.ts +2 -0
- package/navigation/NavList/__stories__/HorizontalWithDrawer.js +93 -0
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer.d.ts +2 -0
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer.js +64 -0
- package/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
- package/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
- package/navigation/NavList/__stories__/NavListWithoutNav.d.ts +2 -0
- package/navigation/NavList/__stories__/NavListWithoutNav.js +35 -0
- package/navigation/NavList/__stories__/UsingHeaderButton.d.ts +2 -0
- package/navigation/NavList/__stories__/UsingHeaderButton.js +98 -0
- package/navigation/NavList/__stories__/UsingNavListAuto.d.ts +2 -0
- package/navigation/NavList/__stories__/UsingNavListAuto.js +55 -0
- package/navigation/NavList/__stories__/Vertical.d.ts +2 -0
- package/navigation/NavList/{NavListAuto/NavListItemAnchorAuto.js → __stories__/Vertical.js} +31 -27
- package/navigation/NavList/__stories__/VerticalWithoutDrawer.d.ts +2 -0
- package/navigation/NavList/__stories__/VerticalWithoutDrawer.js +62 -0
- package/navigation/NavList/hooks/useNavList.d.ts +1 -1
- package/navigation/NavList/hooks/useNavList.js +3 -3
- package/navigation/NavList/hooks/useTogglableNav.d.ts +1 -0
- package/navigation/NavList/hooks/useTogglableNav.js +33 -18
- package/navigation/NavList/index.d.ts +14 -17
- package/navigation/NavList/index.js +54 -96
- package/navigation/NavList/index.mdx +9 -11
- package/navigation/NavList/index.spec.js +2 -2
- package/navigation/NavList/types.d.ts +15 -17
- package/navigation/NavList/types.js +1 -14
- 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 +32 -90
- package/navigation/Pagination/__stories__/PaginationSmall.js +11 -11
- package/navigation/Pagination/__stories__/PaginationWithSmallFont.js +17 -17
- package/navigation/Pagination/__stories__/WithHook.d.ts +2 -0
- package/navigation/Pagination/__stories__/WithHook.js +75 -0
- package/navigation/Pagination/__stories__/WithInactiveValues.js +26 -26
- 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/Pagination/index.mdx +7 -15
- package/navigation/SkipLink/SkipLink.stories.d.ts +9 -0
- package/navigation/SkipLink/SkipLink.stories.js +32 -0
- package/navigation/SkipLink/__stories__/Default.d.ts +2 -0
- package/navigation/SkipLink/__stories__/Default.js +26 -0
- package/navigation/Tabs/Tabs.stories.d.ts +4 -2
- package/navigation/Tabs/Tabs.stories.js +31 -3
- package/navigation/Tabs/__stories__/Auto.d.ts +2 -0
- package/navigation/Tabs/__stories__/Auto.js +50 -0
- package/navigation/Tabs/__stories__/Default.js +36 -10
- 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/Tabs/index.mdx +7 -5
- package/navigation/index.js +9 -9
- package/package.json +4 -4
- package/registry.d.ts +36 -32
- package/registry.js +280 -277
- package/src/app/BannerContainer/BannerContainer.stories.js +12 -0
- package/src/app/BannerContainer/__stories__/CookiesBanner.tsx +32 -0
- package/src/app/CloseButton/index.tsx +4 -0
- package/src/app/{FilterSection → FilterContainer}/index.tsx +4 -5
- package/src/app/Footer/Footer.stories.playwright.json +2 -2
- package/src/app/Footer/__stories__/Default.tsx +1 -1
- package/src/app/Footer/__stories__/DefaultCopyright.tsx +27 -25
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +96 -91
- package/src/app/Footer/__stories__/FooterWithLink.tsx +46 -40
- package/src/app/Footer/__stories__/FooterWithLogo.tsx +41 -35
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +70 -68
- package/src/app/Footer/__stories__/YearCopyright.tsx +24 -23
- package/src/app/Footer/index.mdx +4 -20
- package/src/app/Footer/index.tsx +3 -5
- package/src/app/Header/Header.stories.playwright.json +1 -1
- package/src/app/Header/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/app/Header/__stories__/Default.tsx +4 -4
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +32 -45
- package/src/app/Header/__stories__/WithNavigation.tsx +25 -40
- package/src/app/Header/__stories__/WithServiceName.tsx +4 -4
- package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +4 -4
- package/src/app/Header/index.mdx +4 -21
- package/src/app/Header/index.spec.tsx +2 -2
- package/src/app/Header/index.tsx +0 -1
- package/src/app/Masthead/Masthead.stories.js +2 -0
- package/src/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/src/app/Masthead/__stories__/WithElements.tsx +31 -0
- package/src/app/Masthead/__stories__/WithLogo.tsx +28 -0
- package/src/app/Modal/Modal.stories.js +3 -0
- package/src/app/Modal/Modal.stories.playwright.json +53 -0
- package/src/app/Modal/__stories__/Auto.tsx +69 -0
- package/src/app/Modal/__stories__/Default.tsx +1 -1
- package/src/app/Modal/__stories__/Dense.tsx +52 -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.mdx +1 -5
- package/src/app/Modal/index.tsx +10 -36
- package/src/app/NotFound/index.tsx +3 -3
- package/src/app/PageTitleContainer/index.tsx +5 -0
- package/src/app/Panel/Panel.stories.js +10 -0
- package/src/app/Panel/__stories__/Default.tsx +19 -0
- package/src/app/Panel/index.mdx +16 -0
- package/src/app/Panel/index.tsx +6 -0
- package/src/app/PhaseBannerHeader/index.mdx +1 -5
- package/src/app/PhaseBannerHeader/index.tsx +3 -3
- package/src/app/QrCodeViewer/index.mdx +2 -10
- package/src/app/ThemeOptions/index.tsx +7 -7
- package/src/app/index.ts +3 -4
- 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.mdx +2 -10
- package/src/content/Accordion/index.spec.tsx +29 -15
- package/src/content/Accordion/index.tsx +3 -102
- package/src/content/Blockquote/Blockquote.stories.js +1 -0
- package/src/content/Blockquote/__stories__/Dense.tsx +11 -0
- package/src/content/Blockquote/index.mdx +1 -5
- package/src/content/Card/Card.stories.js +2 -0
- package/src/content/Card/__stories__/Default.tsx +1 -1
- package/src/content/Card/__stories__/Dense.tsx +24 -0
- package/src/content/Card/__stories__/WithLink.tsx +25 -0
- package/src/content/Card/index.mdx +8 -40
- package/src/content/Chip/__stories__/GroupOfChips.tsx +3 -3
- package/src/content/Chip/index.mdx +39 -0
- package/src/content/Chip/index.tsx +1 -2
- package/src/content/Details/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/content/Details/index.mdx +6 -5
- package/src/content/List/__stories__/HorizontalList.tsx +1 -1
- package/src/content/List/__stories__/WithExtraSpace.tsx +1 -1
- package/src/content/List/index.mdx +3 -15
- package/src/content/StepNav/StepNav.stories.js +3 -0
- package/src/content/StepNav/__stories__/Auto.tsx +228 -0
- package/src/content/StepNav/__stories__/Default.tsx +3 -4
- package/src/content/StepNav/__stories__/Dense.tsx +261 -0
- package/src/content/StepNav/__stories__/WithHints.tsx +4 -4
- package/src/content/StepNav/__stories__/WithHook.tsx +231 -0
- package/src/content/StepNav/auto.tsx +81 -0
- package/src/content/StepNav/index.mdx +21 -0
- package/src/content/StepNav/index.tsx +4 -2
- package/src/content/SummaryList/SummaryList.stories.js +1 -0
- package/src/content/SummaryList/__stories__/Default.tsx +30 -21
- package/src/content/SummaryList/__stories__/WithActions.tsx +37 -41
- package/src/content/SummaryList/__stories__/WithoutActions.tsx +27 -0
- package/src/content/SummaryList/__stories__/WithoutBorders.tsx +31 -17
- package/src/content/SummaryList/index.mdx +3 -15
- package/src/content/Table/Table.stories.js +1 -0
- package/src/content/Table/__stories__/DarkVariant.tsx +1 -1
- package/src/content/Table/__stories__/DarkVariantWithVerticalHeaders.tsx +1 -1
- package/src/content/Table/__stories__/DefinedWidth.tsx +3 -3
- package/src/content/Table/__stories__/Full.tsx +1 -1
- package/src/content/Table/__stories__/MultipleProps.tsx +1 -1
- package/src/content/Table/__stories__/RowColors.tsx +96 -0
- package/src/content/Table/__stories__/WithFloatingScroll.tsx +5 -7
- package/src/content/Table/__stories__/ZebraProp.tsx +1 -1
- package/src/content/Table/index.mdx +15 -41
- package/src/content/Table/index.tsx +13 -12
- package/src/content/TaskList/TaskList.stories.js +1 -0
- package/src/content/TaskList/__stories__/Default.tsx +5 -5
- package/src/content/TaskList/__stories__/Dense.tsx +118 -0
- package/src/content/TaskList/index.mdx +21 -0
- package/src/content/Timeline/Timeline.stories.js +1 -0
- package/src/content/Timeline/__stories__/Default.tsx +55 -57
- package/src/content/Timeline/__stories__/Dense.tsx +196 -0
- package/src/content/Timeline/index.mdx +23 -0
- package/src/feedback/CopyToClipboard/CopyToClipboard.stories.js +1 -0
- package/src/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
- package/src/feedback/CopyToClipboard/__stories__/Default.tsx +4 -1
- package/src/feedback/CopyToClipboard/__stories__/Dense.tsx +21 -0
- package/src/feedback/CopyToClipboard/index.mdx +2 -10
- package/src/feedback/CopyToClipboard/index.tsx +7 -6
- package/src/feedback/ErrorSummary/ErrorSummary.stories.js +2 -0
- package/src/feedback/ErrorSummary/__stories__/Dense.tsx +13 -0
- package/src/feedback/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -1
- package/src/feedback/ErrorSummary/__stories__/LinkedToField.tsx +4 -6
- package/src/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.tsx +49 -0
- package/src/feedback/ErrorSummary/index.mdx +4 -20
- package/src/feedback/NotificationBanner/NotificationBanner.stories.js +1 -0
- package/src/feedback/NotificationBanner/__stories__/Default.tsx +2 -2
- package/src/feedback/NotificationBanner/__stories__/Dense.tsx +17 -0
- package/src/feedback/NotificationBanner/index.mdx +2 -10
- package/src/feedback/NotificationBanner/index.tsx +7 -6
- package/src/feedback/PhaseBanner/index.mdx +2 -10
- package/src/feedback/ServiceBadge/index.mdx +9 -5
- package/src/feedback/WarningText/WarningText.stories.js +2 -0
- package/src/feedback/WarningText/__stories__/AssistiveText.tsx +10 -0
- package/src/feedback/WarningText/__stories__/Dense.tsx +10 -0
- package/src/feedback/WarningText/index.mdx +1 -5
- package/src/form/AutoComplete/__stories__/Default.tsx +1 -1
- package/src/form/AutoComplete/index.mdx +7 -35
- package/src/form/AutoComplete/index.tsx +6 -12
- package/src/form/Button/Button.stories.js +1 -0
- package/src/form/Button/__stories__/CallToActionButton.tsx +1 -4
- package/src/form/Button/__stories__/Dense.tsx +8 -0
- package/src/form/Button/__stories__/GroupingButtons.tsx +0 -3
- package/src/form/Button/__stories__/GroupingButtonsAndLinks.tsx +0 -3
- package/src/form/Button/__stories__/Primary.tsx +1 -3
- package/src/form/Button/__stories__/Secondary.tsx +0 -3
- package/src/form/Button/__stories__/WithVariantLink.tsx +1 -3
- package/src/form/Button/index.mdx +8 -24
- package/src/form/Checkbox/Checkbox.stories.js +3 -0
- package/src/form/Checkbox/__stories__/ConditionalReveal.tsx +1 -1
- package/src/form/Checkbox/__stories__/Dense.tsx +35 -0
- package/src/form/Checkbox/__stories__/Inline.tsx +32 -0
- package/src/form/Checkbox/__stories__/InlineWithDivider.tsx +32 -0
- package/src/form/Checkbox/__stories__/NoneAnswer.tsx +1 -1
- package/src/form/Checkbox/__stories__/NoneAnswerWithError.tsx +1 -1
- package/src/form/Checkbox/__stories__/WithHint.tsx +1 -1
- package/src/form/Checkbox/index.mdx +12 -35
- package/src/form/DateInputContainer/DateInputContainer.stories.js +1 -0
- package/src/form/DateInputContainer/__stories__/Default.tsx +1 -1
- package/src/form/DateInputContainer/__stories__/Dense.tsx +31 -0
- package/src/form/DateInputContainer/__stories__/MultipleQuestions.tsx +2 -2
- package/src/form/DateInputContainer/__stories__/WithErrorMessage.tsx +1 -1
- package/src/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +1 -1
- package/src/form/DateInputContainer/index.mdx +9 -20
- package/src/form/ErrorMessage/ErrorMessage.stories.js +2 -0
- package/src/form/ErrorMessage/__stories__/DateInputError.tsx +34 -0
- package/src/form/ErrorMessage/__stories__/Default.tsx +12 -6
- package/src/form/ErrorMessage/__stories__/ErrorMessageOnly.tsx +12 -0
- package/src/form/ErrorMessage/index.mdx +1 -5
- package/src/form/FileUpload/__stories__/Default.tsx +2 -2
- package/src/form/FileUpload/__stories__/WithErrorMessage.tsx +2 -2
- package/src/form/FileUpload/index.mdx +3 -5
- package/src/form/RadioContainer/RadioContainer.stories.js +3 -0
- package/src/form/RadioContainer/__stories__/ConditionalReveal.tsx +1 -1
- package/src/form/RadioContainer/__stories__/Default.tsx +7 -4
- package/src/form/RadioContainer/__stories__/Dense.tsx +32 -0
- package/src/form/RadioContainer/__stories__/Inline.tsx +1 -1
- package/src/form/RadioContainer/__stories__/InlineWithDivider.tsx +32 -0
- package/src/form/RadioContainer/__stories__/MultipleQuestions.tsx +1 -1
- package/src/form/RadioContainer/__stories__/NoneAnswer.tsx +3 -3
- package/src/form/RadioContainer/__stories__/WithErrorMessage.tsx +1 -1
- package/src/form/RadioContainer/__stories__/WithHints.tsx +1 -1
- package/src/form/RadioContainer/__stories__/WithMediumLegend.tsx +32 -0
- package/src/form/RadioContainer/index.mdx +12 -35
- package/src/form/SearchContainer/index.tsx +6 -0
- package/src/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +1 -0
- package/src/form/SelectContainer/__stories__/Default.tsx +4 -4
- package/src/form/SelectContainer/__stories__/Dense.tsx +24 -0
- package/src/form/SelectContainer/index.mdx +9 -15
- package/src/form/SingleCharacterInputs/SingleCharacterInput.stories.js +13 -0
- package/src/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/Default.tsx +11 -11
- package/src/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithDefaultError.tsx +11 -11
- package/src/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.tsx +11 -11
- package/src/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.tsx +11 -11
- package/src/form/SingleCharacterInputs/index.mdx +24 -0
- package/src/form/SingleCharacterInputs/index.tsx +4 -0
- package/src/form/TextArea/TextArea.stories.js +1 -0
- package/src/form/TextArea/__stories__/Dense.tsx +15 -0
- package/src/form/TextArea/index.mdx +7 -35
- package/src/form/TextInput/TextInput.stories.js +1 -0
- package/src/form/TextInput/__stories__/Dense.tsx +15 -0
- package/src/form/TextInput/__stories__/FixedWidths.tsx +8 -8
- package/src/form/TextInput/__stories__/FluidWidths.tsx +8 -8
- package/src/form/TextInput/index.mdx +8 -40
- package/src/form/index.ts +2 -2
- package/src/govgr/Footer/Copyright.tsx +11 -11
- package/src/govgr/Footer/index.tsx +8 -8
- package/src/icons/Icon/index.tsx +2 -2
- package/src/icons/ImageLogo/index.tsx +5 -0
- package/src/icons/ImageLogoSet/index.tsx +4 -0
- package/src/layouts/Admin/index.tsx +1 -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 +46 -27
- package/src/layouts/Divider/index.tsx +1 -1
- package/src/layouts/Grid/Grid.stories.js +1 -0
- package/src/layouts/Grid/__stories__/ResponsiveSpacing.tsx +43 -0
- package/src/layouts/Section/index.tsx +3 -0
- package/src/layouts/Stack/Stack.stories.js +12 -0
- package/src/layouts/Stack/__stories__/AlignItems.tsx +36 -0
- package/src/layouts/Stack/__stories__/Default.tsx +17 -0
- package/src/layouts/Stack/__stories__/JustifyContent.tsx +47 -0
- package/src/layouts/Stack/__stories__/NoWrap.tsx +17 -0
- package/src/layouts/Stack/__stories__/Row.tsx +17 -0
- package/src/layouts/Stack/__stories__/Spacing.tsx +35 -0
- package/src/layouts/Stack/index.tsx +3 -0
- package/src/layouts/index.ts +2 -0
- package/src/navigation/BackLink/index.mdx +1 -5
- package/src/navigation/Breadcrumbs/index.mdx +6 -5
- package/src/navigation/Drawer/Drawer.stories.js +3 -0
- package/src/navigation/Drawer/__stories__/Auto.tsx +103 -0
- package/src/navigation/Drawer/__stories__/Default.tsx +31 -84
- 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.mdx +1 -5
- 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__/AlignRight.tsx +13 -12
- package/src/navigation/Dropdown/__stories__/Default.tsx +10 -11
- package/src/navigation/Dropdown/__stories__/Dense.tsx +54 -0
- package/src/navigation/Dropdown/__stories__/PlacementTop.tsx +11 -11
- package/src/navigation/Dropdown/index.mdx +3 -17
- package/src/navigation/Dropdown/index.tsx +0 -1
- package/src/navigation/Link/Link.stories.playwright.json +2 -2
- package/src/navigation/Link/index.mdx +7 -25
- package/src/navigation/Link/index.tsx +1 -1
- package/src/navigation/NavList/NavList.stories.js +7 -1
- package/src/navigation/NavList/NavList.stories.playwright.json +26 -6
- package/src/navigation/NavList/NavListAuto/index.tsx +70 -0
- package/src/navigation/NavList/{NavMenuContainerContentList.tsx → NavMenuContentList.tsx} +8 -8
- package/src/navigation/NavList/__stories__/Default.tsx +17 -98
- package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +84 -0
- package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +69 -0
- package/src/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
- package/src/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
- package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +24 -0
- package/src/navigation/NavList/__stories__/UsingHeaderButton.tsx +89 -0
- package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +32 -0
- package/src/navigation/NavList/__stories__/Vertical.tsx +33 -0
- package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +73 -0
- package/src/navigation/NavList/hooks/useNavList.ts +3 -3
- package/src/navigation/NavList/hooks/useTogglableNav.tsx +31 -19
- package/src/navigation/NavList/index.mdx +9 -11
- package/src/navigation/NavList/index.tsx +14 -17
- package/src/navigation/NavList/types.tsx +17 -28
- package/src/navigation/Pagination/Pagination.stories.js +2 -0
- package/src/navigation/Pagination/__stories__/Auto.tsx +64 -0
- package/src/navigation/Pagination/__stories__/Default.tsx +2 -76
- package/src/navigation/Pagination/__stories__/PaginationSmall.tsx +1 -1
- package/src/navigation/Pagination/__stories__/PaginationWithSmallFont.tsx +1 -1
- package/src/navigation/Pagination/__stories__/WithHook.tsx +72 -0
- package/src/navigation/Pagination/__stories__/WithInactiveValues.tsx +2 -2
- package/src/navigation/Pagination/auto.tsx +141 -0
- package/src/navigation/Pagination/hooks.ts +136 -0
- package/src/navigation/Pagination/index.mdx +7 -15
- package/src/navigation/Pagination/index.tsx +83 -0
- package/src/navigation/SkipLink/SkipLink.stories.js +9 -0
- package/src/navigation/SkipLink/__stories__/Default.tsx +15 -0
- package/src/navigation/Tabs/Tabs.stories.js +4 -2
- package/src/navigation/Tabs/__stories__/Auto.tsx +72 -0
- package/src/navigation/Tabs/__stories__/Default.tsx +38 -3
- 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.mdx +7 -5
- package/src/navigation/Tabs/index.tsx +7 -50
- package/src/registry.js +60 -58
- package/src/typography/Heading/__stories__/Default.tsx +6 -6
- package/src/typography/Heading/index.mdx +1 -5
- package/src/typography/HeadingCaption/index.mdx +1 -5
- package/src/typography/Hint/__stories__/FontSizes.tsx +3 -3
- package/src/typography/Hint/index.mdx +3 -5
- package/src/typography/NormalText/__stories__/FontSizes.tsx +7 -7
- package/src/typography/NormalText/__stories__/Variants.tsx +2 -2
- package/src/typography/NormalText/index.mdx +5 -15
- package/src/typography/Paragraph/__stories__/FontSizes.tsx +7 -7
- package/src/typography/Paragraph/__stories__/LeadVariant.tsx +1 -1
- package/src/typography/Paragraph/__stories__/SmallVariant.tsx +1 -1
- package/src/typography/Paragraph/index.mdx +5 -20
- package/src/utils/Base/index.tsx +1 -1
- package/src/utils/Kitchensink/KitchensinkDashboard.tsx +1 -1
- package/src/utils/Typography/index.tsx +4 -0
- package/typography/Caption/index.d.ts +1 -1
- package/typography/Caption/index.js +2 -2
- package/typography/Heading/Heading.stories.js +3 -3
- package/typography/Heading/__stories__/Default.js +14 -9
- package/typography/Heading/index.mdx +1 -5
- 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/HeadingCaption/index.mdx +1 -5
- package/typography/Hint/Hint.stories.js +4 -4
- package/typography/Hint/__stories__/Default.js +2 -2
- package/typography/Hint/__stories__/FontSizes.js +8 -8
- package/typography/Hint/index.mdx +3 -5
- package/typography/NormalText/NormalText.stories.js +6 -6
- package/typography/NormalText/__stories__/Default.js +2 -2
- package/typography/NormalText/__stories__/FontSizes.js +16 -16
- package/typography/NormalText/__stories__/FontWeight.js +4 -4
- package/typography/NormalText/__stories__/Variants.js +8 -8
- package/typography/NormalText/index.mdx +5 -15
- package/typography/Paragraph/Paragraph.stories.js +7 -7
- package/typography/Paragraph/__stories__/Default.js +2 -2
- package/typography/Paragraph/__stories__/FontSizes.js +15 -15
- package/typography/Paragraph/__stories__/FontWeight.js +3 -3
- package/typography/Paragraph/__stories__/LeadVariant.js +3 -3
- package/typography/Paragraph/__stories__/SmallVariant.js +3 -3
- package/typography/Paragraph/index.mdx +5 -20
- 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 +2 -2
- package/utils/Typography/index.d.ts +3 -0
- package/utils/Typography/index.js +19 -0
- 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
- package/app/Confirmation/__stories__/Default.js +0 -22
- package/app/Confirmation/index.d.ts +0 -5
- package/app/Confirmation/index.mdx +0 -20
- package/app/Header/HeaderSubtitle.d.ts +0 -3
- package/app/Header/HeaderSubtitle.js +0 -19
- package/app/PageTitle/index.d.ts +0 -6
- package/es/app/Confirmation/Confirmation.stories.js +0 -9
- package/es/app/Confirmation/__stories__/Default.js +0 -9
- package/es/app/Confirmation/index.js +0 -5
- package/es/app/Confirmation/index.mdx +0 -20
- package/es/app/Header/HeaderSubtitle.js +0 -3
- package/es/app/PageTitle/index.js +0 -6
- package/es/form/SearchSection/index.js +0 -5
- package/es/form/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +0 -12
- package/es/form/SingleCharacterInputContainer/index.js +0 -4
- package/es/form/SingleCharacterInputContainer/index.mdx +0 -36
- package/es/navigation/NavList/NavListAuto/NavListAuto.js +0 -31
- package/es/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -22
- package/es/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -104
- package/es/navigation/NavList/NavListAuto/NavListItemAnchorAuto.js +0 -26
- package/es/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -38
- package/es/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -30
- package/es/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -36
- package/es/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -26
- package/es/navigation/NavList/NavListItem.js +0 -23
- package/es/navigation/NavList/NavListItemBase.js +0 -44
- package/es/navigation/NavList/NavListItemButton.js +0 -3
- package/es/navigation/NavList/NavListItemLink.js +0 -3
- package/es/navigation/NavList/NavMenu.js +0 -3
- package/es/navigation/NavList/NavMenuContainer.js +0 -3
- package/es/navigation/NavList/NavMenuContainerContent.js +0 -3
- package/es/navigation/NavList/NavMenuContainerContentListItem.js +0 -3
- package/es/navigation/NavList/NavMenuContainerTitle.js +0 -3
- package/es/navigation/NavList/NavVertical.js +0 -3
- package/es/navigation/NavList/NavVerticalItem.js +0 -3
- package/es/navigation/NavList/__stories__/NavVerticalLayout.js +0 -90
- package/esm/app/Confirmation/Confirmation.stories.js +0 -9
- package/esm/app/Confirmation/__stories__/Default.js +0 -9
- package/esm/app/Confirmation/index.js +0 -5
- package/esm/app/Confirmation/index.mdx +0 -20
- package/esm/app/Header/HeaderSubtitle.js +0 -3
- package/esm/app/PageTitle/index.js +0 -6
- package/esm/form/SearchSection/index.js +0 -5
- package/esm/form/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +0 -12
- package/esm/form/SingleCharacterInputContainer/index.js +0 -4
- package/esm/form/SingleCharacterInputContainer/index.mdx +0 -36
- package/esm/navigation/NavList/NavListAuto/NavListAuto.js +0 -31
- package/esm/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -22
- package/esm/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -104
- package/esm/navigation/NavList/NavListAuto/NavListItemAnchorAuto.js +0 -26
- package/esm/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -38
- package/esm/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -30
- package/esm/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -36
- package/esm/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -26
- package/esm/navigation/NavList/NavListItem.js +0 -23
- package/esm/navigation/NavList/NavListItemBase.js +0 -44
- package/esm/navigation/NavList/NavListItemButton.js +0 -3
- package/esm/navigation/NavList/NavListItemLink.js +0 -3
- package/esm/navigation/NavList/NavMenu.js +0 -3
- package/esm/navigation/NavList/NavMenuContainer.js +0 -3
- package/esm/navigation/NavList/NavMenuContainerContent.js +0 -3
- package/esm/navigation/NavList/NavMenuContainerContentListItem.js +0 -3
- package/esm/navigation/NavList/NavMenuContainerTitle.js +0 -3
- package/esm/navigation/NavList/NavVertical.js +0 -3
- package/esm/navigation/NavList/NavVerticalItem.js +0 -3
- package/esm/navigation/NavList/__stories__/NavVerticalLayout.js +0 -90
- package/form/SearchSection/index.d.ts +0 -5
- package/form/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.d.ts +0 -13
- package/form/SingleCharacterInputContainer/index.d.ts +0 -4
- package/form/SingleCharacterInputContainer/index.mdx +0 -36
- package/navigation/NavList/NavListAuto/NavListAuto.js +0 -48
- package/navigation/NavList/NavListAuto/NavListBaseAuto.d.ts +0 -3
- package/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -38
- package/navigation/NavList/NavListAuto/NavListContextAuto.d.ts +0 -29
- package/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -128
- package/navigation/NavList/NavListAuto/NavListItemAnchorAuto.d.ts +0 -9
- package/navigation/NavList/NavListAuto/NavListItemAuto.d.ts +0 -8
- package/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -63
- package/navigation/NavList/NavListAuto/NavListItemButtonAuto.d.ts +0 -12
- package/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -48
- package/navigation/NavList/NavListAuto/NavListMenuAuto.d.ts +0 -11
- package/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -56
- package/navigation/NavList/NavListAuto/NavListSubMenuAuto.d.ts +0 -9
- package/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -44
- package/navigation/NavList/NavListItem.d.ts +0 -4
- package/navigation/NavList/NavListItem.js +0 -42
- package/navigation/NavList/NavListItemBase.d.ts +0 -15
- package/navigation/NavList/NavListItemBase.js +0 -68
- package/navigation/NavList/NavListItemButton.d.ts +0 -3
- package/navigation/NavList/NavListItemButton.js +0 -30
- package/navigation/NavList/NavListItemLink.d.ts +0 -3
- package/navigation/NavList/NavMenu.d.ts +0 -3
- package/navigation/NavList/NavMenuContainer.d.ts +0 -3
- package/navigation/NavList/NavMenuContainer.js +0 -30
- package/navigation/NavList/NavMenuContainerContent.d.ts +0 -3
- package/navigation/NavList/NavMenuContainerContent.js +0 -30
- package/navigation/NavList/NavMenuContainerContentList.d.ts +0 -5
- package/navigation/NavList/NavMenuContainerContentListItem.d.ts +0 -3
- package/navigation/NavList/NavMenuContainerContentListItem.js +0 -30
- package/navigation/NavList/NavMenuContainerTitle.d.ts +0 -3
- package/navigation/NavList/NavMenuContainerTitle.js +0 -30
- package/navigation/NavList/NavVertical.d.ts +0 -3
- package/navigation/NavList/NavVerticalItem.d.ts +0 -3
- package/navigation/NavList/__stories__/NavVerticalLayout.d.ts +0 -2
- package/navigation/NavList/__stories__/NavVerticalLayout.js +0 -114
- package/src/app/Confirmation/Confirmation.stories.js +0 -10
- package/src/app/Confirmation/__stories__/Default.tsx +0 -19
- package/src/app/Confirmation/index.mdx +0 -20
- package/src/app/Confirmation/index.tsx +0 -6
- package/src/app/Header/HeaderSubtitle.tsx +0 -4
- package/src/app/PageTitle/index.tsx +0 -6
- package/src/form/SearchSection/index.tsx +0 -6
- package/src/form/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +0 -13
- package/src/form/SingleCharacterInputContainer/index.mdx +0 -36
- package/src/form/SingleCharacterInputContainer/index.tsx +0 -4
- package/src/navigation/NavList/NavListAuto/NavListAuto.tsx +0 -34
- package/src/navigation/NavList/NavListAuto/NavListBaseAuto.tsx +0 -20
- package/src/navigation/NavList/NavListAuto/NavListContextAuto.tsx +0 -112
- package/src/navigation/NavList/NavListAuto/NavListItemAnchorAuto.tsx +0 -38
- package/src/navigation/NavList/NavListAuto/NavListItemAuto.tsx +0 -49
- package/src/navigation/NavList/NavListAuto/NavListItemButtonAuto.tsx +0 -53
- package/src/navigation/NavList/NavListAuto/NavListMenuAuto.tsx +0 -51
- package/src/navigation/NavList/NavListAuto/NavListSubMenuAuto.tsx +0 -32
- package/src/navigation/NavList/NavListItem.tsx +0 -46
- package/src/navigation/NavList/NavListItemBase.tsx +0 -63
- package/src/navigation/NavList/NavListItemButton.tsx +0 -3
- package/src/navigation/NavList/NavListItemLink.tsx +0 -3
- package/src/navigation/NavList/NavMenu.tsx +0 -3
- package/src/navigation/NavList/NavMenuContainer.tsx +0 -3
- package/src/navigation/NavList/NavMenuContainerContent.tsx +0 -3
- package/src/navigation/NavList/NavMenuContainerContentListItem.tsx +0 -3
- package/src/navigation/NavList/NavMenuContainerTitle.tsx +0 -3
- package/src/navigation/NavList/NavVertical.tsx +0 -3
- package/src/navigation/NavList/NavVerticalItem.tsx +0 -3
- package/src/navigation/NavList/__stories__/NavVerticalLayout.tsx +0 -114
- /package/app/{Confirmation → Panel}/__stories__/Default.d.ts +0 -0
- /package/es/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
- /package/esm/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
- /package/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
- /package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/Default.d.ts +0 -0
- /package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithDefaultError.d.ts +0 -0
- /package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.d.ts +0 -0
- /package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.d.ts +0 -0
- /package/navigation/NavList/NavListAuto/{NavListAuto.d.ts → index.d.ts} +0 -0
- /package/src/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
package/api/fetchAPI.js
CHANGED
|
@@ -14,7 +14,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
14
14
|
|
|
15
15
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
16
16
|
|
|
17
|
-
var _utils = require("
|
|
17
|
+
var _utils = require("./utils");
|
|
18
18
|
|
|
19
19
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
20
20
|
|
package/api/index.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.useAPI = exports["default"] = void 0;
|
|
|
10
10
|
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
|
|
13
|
-
var _APIProvider = require("
|
|
13
|
+
var _APIProvider = require("./APIProvider");
|
|
14
14
|
|
|
15
15
|
Object.keys(_APIProvider).forEach(function (key) {
|
|
16
16
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -24,7 +24,7 @@ Object.keys(_APIProvider).forEach(function (key) {
|
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
var _APIErrors = require("
|
|
27
|
+
var _APIErrors = require("./APIErrors");
|
|
28
28
|
|
|
29
29
|
Object.keys(_APIErrors).forEach(function (key) {
|
|
30
30
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -38,7 +38,7 @@ Object.keys(_APIErrors).forEach(function (key) {
|
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
var _useResource = require("
|
|
41
|
+
var _useResource = require("./useResource");
|
|
42
42
|
|
|
43
43
|
Object.keys(_useResource).forEach(function (key) {
|
|
44
44
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -52,7 +52,7 @@ Object.keys(_useResource).forEach(function (key) {
|
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
var _useResourceAction = require("
|
|
55
|
+
var _useResourceAction = require("./useResourceAction");
|
|
56
56
|
|
|
57
57
|
Object.keys(_useResourceAction).forEach(function (key) {
|
|
58
58
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -66,7 +66,7 @@ Object.keys(_useResourceAction).forEach(function (key) {
|
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
var _useResourceQuery = require("
|
|
69
|
+
var _useResourceQuery = require("./useResourceQuery");
|
|
70
70
|
|
|
71
71
|
Object.keys(_useResourceQuery).forEach(function (key) {
|
|
72
72
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -80,7 +80,7 @@ Object.keys(_useResourceQuery).forEach(function (key) {
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
var _fetchAPI = require("
|
|
83
|
+
var _fetchAPI = require("./fetchAPI");
|
|
84
84
|
|
|
85
85
|
Object.keys(_fetchAPI).forEach(function (key) {
|
|
86
86
|
if (key === "default" || key === "__esModule") return;
|
package/api/index.spec.js
CHANGED
|
@@ -16,11 +16,11 @@ var _react2 = require("@testing-library/react");
|
|
|
16
16
|
|
|
17
17
|
var _fetchMock = _interopRequireDefault(require("fetch-mock"));
|
|
18
18
|
|
|
19
|
-
var _fetchAPI = _interopRequireDefault(require("
|
|
19
|
+
var _fetchAPI = _interopRequireDefault(require("./fetchAPI"));
|
|
20
20
|
|
|
21
|
-
var _index = require("
|
|
21
|
+
var _index = require("./index");
|
|
22
22
|
|
|
23
|
-
var _delay = _interopRequireDefault(require("
|
|
23
|
+
var _delay = _interopRequireDefault(require("../test-utils/delay"));
|
|
24
24
|
|
|
25
25
|
require("whatwg-fetch");
|
|
26
26
|
|
package/api/useResource.js
CHANGED
|
@@ -17,14 +17,14 @@ var _react = require("react");
|
|
|
17
17
|
|
|
18
18
|
var _reactQuery = require("react-query");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _ = require("./");
|
|
21
21
|
|
|
22
|
-
var _utils = require("
|
|
22
|
+
var _utils = require("./utils");
|
|
23
23
|
|
|
24
24
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
25
25
|
|
|
26
26
|
function useResource(resource, id, query, options, suspense) {
|
|
27
|
-
var _useAPI = (0,
|
|
27
|
+
var _useAPI = (0, _.useAPI)(),
|
|
28
28
|
baseURL = _useAPI.config.baseURL,
|
|
29
29
|
token = _useAPI.token;
|
|
30
30
|
|
package/api/useResourceAction.js
CHANGED
|
@@ -17,9 +17,9 @@ var _react = require("react");
|
|
|
17
17
|
|
|
18
18
|
var _reactQuery = require("react-query");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _ = require("./");
|
|
21
21
|
|
|
22
|
-
var _utils = require("
|
|
22
|
+
var _utils = require("./utils");
|
|
23
23
|
|
|
24
24
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ function useResourceAction(resource, id) {
|
|
|
29
29
|
var query = arguments.length > 4 ? arguments[4] : undefined;
|
|
30
30
|
var options = arguments.length > 5 ? arguments[5] : undefined;
|
|
31
31
|
|
|
32
|
-
var _useAPI = (0,
|
|
32
|
+
var _useAPI = (0, _.useAPI)(),
|
|
33
33
|
baseURL = _useAPI.config.baseURL,
|
|
34
34
|
token = _useAPI.token;
|
|
35
35
|
|
package/api/useResourceQuery.js
CHANGED
|
@@ -22,9 +22,9 @@ var _react = require("react");
|
|
|
22
22
|
|
|
23
23
|
var _reactQuery = require("react-query");
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _ = require("./");
|
|
26
26
|
|
|
27
|
-
var _utils = require("
|
|
27
|
+
var _utils = require("./utils");
|
|
28
28
|
|
|
29
29
|
var _excluded = ["data"];
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ var DEFAULT_PAGINATION_LIMIT = 30;
|
|
|
34
34
|
var DEFAULT_LIMIT_OPTIONS = [10, 30, 60, 100];
|
|
35
35
|
|
|
36
36
|
function useResourceManyBase(resource, query, options) {
|
|
37
|
-
var _useAPI = (0,
|
|
37
|
+
var _useAPI = (0, _.useAPI)(),
|
|
38
38
|
baseURL = _useAPI.config.baseURL,
|
|
39
39
|
token = _useAPI.token;
|
|
40
40
|
|
package/api/utils.js
CHANGED
|
@@ -16,7 +16,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
16
16
|
|
|
17
17
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
18
18
|
|
|
19
|
-
var _APIErrors = require("
|
|
19
|
+
var _APIErrors = require("./APIErrors");
|
|
20
20
|
|
|
21
21
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
22
22
|
|
package/app/{Confirmation/Confirmation.stories.d.ts → BannerContainer/BannerContainer.stories.d.ts}
RENAMED
|
@@ -2,9 +2,9 @@ declare namespace _default {
|
|
|
2
2
|
export const title: string;
|
|
3
3
|
export const description: string;
|
|
4
4
|
export const link: string;
|
|
5
|
-
export {
|
|
5
|
+
export { BannerContainer as component };
|
|
6
6
|
export const displayName: string;
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
|
-
export * from "
|
|
10
|
-
import
|
|
9
|
+
export * from "./__stories__/CookiesBanner";
|
|
10
|
+
import BannerContainer from "@digigov/ui/app/BannerContainer";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
var _exportNames = {};
|
|
9
|
+
exports["default"] = void 0;
|
|
10
|
+
|
|
11
|
+
var _ = _interopRequireDefault(require("./"));
|
|
12
|
+
|
|
13
|
+
var _CookiesBanner = require("./__stories__/CookiesBanner");
|
|
14
|
+
|
|
15
|
+
Object.keys(_CookiesBanner).forEach(function (key) {
|
|
16
|
+
if (key === "default" || key === "__esModule") return;
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
18
|
+
if (key in exports && exports[key] === _CookiesBanner[key]) return;
|
|
19
|
+
Object.defineProperty(exports, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _CookiesBanner[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/* eslint-disable digigov/no-relative-imports */
|
|
28
|
+
var _default = {
|
|
29
|
+
title: 'Digigov UI/app/BannerContainer',
|
|
30
|
+
description: 'The BannerContainer provides a container for the banner and the page content.',
|
|
31
|
+
link: 'https://guide.services.gov.gr/docs/components/cookies-banner',
|
|
32
|
+
component: _["default"],
|
|
33
|
+
displayName: 'BannerContainer'
|
|
34
|
+
};
|
|
35
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports["default"] = exports.CookiesBanner = void 0;
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _ = _interopRequireDefault(require("./.."));
|
|
15
|
+
|
|
16
|
+
var _Container = require("../../../layouts/Basic/Container");
|
|
17
|
+
|
|
18
|
+
var _Main = require("../../../layouts/Basic/Main");
|
|
19
|
+
|
|
20
|
+
var _Heading = require("../../../typography/Heading");
|
|
21
|
+
|
|
22
|
+
var _Paragraph = require("../../../typography/Paragraph");
|
|
23
|
+
|
|
24
|
+
var _Button = _interopRequireWildcard(require("../../../form/Button"));
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null, /*#__PURE__*/_react["default"].createElement(_Container.Container, null, /*#__PURE__*/_react["default"].createElement(_Main.Main, null, /*#__PURE__*/_react["default"].createElement(_Heading.Heading, {
|
|
31
|
+
size: "md"
|
|
32
|
+
}, "Cookies \u03C3\u03C4\u03BF GOV.GR"), /*#__PURE__*/_react["default"].createElement(_Paragraph.Paragraph, null, "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \xAB\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE\xBB \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C6\u03C9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03BC\u03B5 \u03C4\u03B7 \u03C7\u03C1\u03AE\u03C3\u03B7 \u03C4\u03C9\u03BD cookies \u03BA\u03B1\u03B9 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03C4\u03C9\u03BD \u03C0\u03C1\u03BF\u03C3\u03C9\u03C0\u03B9\u03BA\u03CE\u03BD \u03C3\u03B1\u03C2 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD."), /*#__PURE__*/_react["default"].createElement(_Paragraph.Paragraph, null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
33
|
+
variant: "link"
|
|
34
|
+
}, "\u038C\u03C1\u03BF\u03B9 \u03BA\u03B1\u03B9 \u03A0\u03C1\u03BF\u03CB\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/_react["default"].createElement(_Button.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_Button["default"], null, "\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE"), /*#__PURE__*/_react["default"].createElement(_Button["default"], null, "\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7")))));
|
|
35
|
+
|
|
36
|
+
var CookiesBanner = function CookiesBanner() {
|
|
37
|
+
return _ref;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.CookiesBanner = CookiesBanner;
|
|
41
|
+
var _default = CookiesBanner;
|
|
42
|
+
exports["default"] = _default;
|
|
@@ -8,16 +8,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _CloseButton = _interopRequireWildcard(require("@digigov/react-core/CloseButton"));
|
|
12
12
|
|
|
13
|
-
Object.keys(
|
|
13
|
+
Object.keys(_CloseButton).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
|
15
15
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
|
-
if (key in exports && exports[key] ===
|
|
16
|
+
if (key in exports && exports[key] === _CloseButton[key]) return;
|
|
17
17
|
Object.defineProperty(exports, key, {
|
|
18
18
|
enumerable: true,
|
|
19
19
|
get: function get() {
|
|
20
|
-
return
|
|
20
|
+
return _CloseButton[key];
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
});
|
|
@@ -26,5 +26,5 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
26
26
|
|
|
27
27
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
28
28
|
|
|
29
|
-
var _default =
|
|
29
|
+
var _default = _CloseButton["default"];
|
|
30
30
|
exports["default"] = _default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export * from '@digigov/react-core/
|
|
2
|
-
export * from '@digigov/react-core/
|
|
1
|
+
export * from '@digigov/react-core/FilterContainer';
|
|
2
|
+
export * from '@digigov/react-core/FilterHeadingContainer';
|
|
3
3
|
export * from '@digigov/react-core/FilterContent';
|
|
4
4
|
export * from '@digigov/react-core/FilterOptionsSection';
|
|
5
5
|
export * from '@digigov/react-core/FilterSelectedHeading';
|
|
6
6
|
export * from '@digigov/react-core/FilterSelectedSection';
|
|
7
|
-
export * from '@digigov/react-core/FilterCloseButton';
|
|
8
7
|
export * from '@digigov/react-core/ResultsHeading';
|
|
9
8
|
export * from '@digigov/react-core/ResultsActionBar';
|
|
10
9
|
export * from '@digigov/react-core/ResultsHeadingActions';
|
|
11
|
-
import
|
|
12
|
-
export default
|
|
10
|
+
import FilterContainer from '@digigov/react-core/FilterContainer';
|
|
11
|
+
export default FilterContainer;
|
|
@@ -8,30 +8,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _FilterContainer = _interopRequireWildcard(require("@digigov/react-core/FilterContainer"));
|
|
12
12
|
|
|
13
|
-
Object.keys(
|
|
13
|
+
Object.keys(_FilterContainer).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
|
15
15
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
|
-
if (key in exports && exports[key] ===
|
|
16
|
+
if (key in exports && exports[key] === _FilterContainer[key]) return;
|
|
17
17
|
Object.defineProperty(exports, key, {
|
|
18
18
|
enumerable: true,
|
|
19
19
|
get: function get() {
|
|
20
|
-
return
|
|
20
|
+
return _FilterContainer[key];
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _FilterHeadingContainer = require("@digigov/react-core/FilterHeadingContainer");
|
|
26
26
|
|
|
27
|
-
Object.keys(
|
|
27
|
+
Object.keys(_FilterHeadingContainer).forEach(function (key) {
|
|
28
28
|
if (key === "default" || key === "__esModule") return;
|
|
29
29
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
30
|
-
if (key in exports && exports[key] ===
|
|
30
|
+
if (key in exports && exports[key] === _FilterHeadingContainer[key]) return;
|
|
31
31
|
Object.defineProperty(exports, key, {
|
|
32
32
|
enumerable: true,
|
|
33
33
|
get: function get() {
|
|
34
|
-
return
|
|
34
|
+
return _FilterHeadingContainer[key];
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
});
|
|
@@ -92,20 +92,6 @@ Object.keys(_FilterSelectedSection).forEach(function (key) {
|
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
var _FilterCloseButton = require("@digigov/react-core/FilterCloseButton");
|
|
96
|
-
|
|
97
|
-
Object.keys(_FilterCloseButton).forEach(function (key) {
|
|
98
|
-
if (key === "default" || key === "__esModule") return;
|
|
99
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
100
|
-
if (key in exports && exports[key] === _FilterCloseButton[key]) return;
|
|
101
|
-
Object.defineProperty(exports, key, {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
get: function get() {
|
|
104
|
-
return _FilterCloseButton[key];
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
|
|
109
95
|
var _ResultsHeading = require("@digigov/react-core/ResultsHeading");
|
|
110
96
|
|
|
111
97
|
Object.keys(_ResultsHeading).forEach(function (key) {
|
|
@@ -152,5 +138,5 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
152
138
|
|
|
153
139
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
154
140
|
|
|
155
|
-
var _default =
|
|
141
|
+
var _default = _FilterContainer["default"];
|
|
156
142
|
exports["default"] = _default;
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _ = _interopRequireDefault(require("./"));
|
|
12
12
|
|
|
13
13
|
var _Default = require("./__stories__/Default");
|
|
14
14
|
|
|
@@ -114,7 +114,7 @@ var _default = {
|
|
|
114
114
|
description: 'The footer provides copyright, licensing and other information about your service and department.',
|
|
115
115
|
link: 'https://guide.services.gov.gr/docs/components/footer',
|
|
116
116
|
defaultWidth: 'lg',
|
|
117
|
-
component:
|
|
117
|
+
component: _["default"],
|
|
118
118
|
displayName: 'Footer'
|
|
119
119
|
};
|
|
120
120
|
exports["default"] = _default;
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
{
|
|
9
9
|
"name": "hover",
|
|
10
10
|
"args": {
|
|
11
|
-
"selector": "html>body>div:nth-child(5)>footer>div>div>
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "click",
|
|
16
16
|
"args": {
|
|
17
|
-
"selector": "html>body>div:nth-child(5)>footer>div>div>
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
],
|
|
@@ -9,7 +9,7 @@ exports["default"] = exports.Default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var _Footer = require("
|
|
12
|
+
var _Footer = require("../../../govgr/Footer");
|
|
13
13
|
|
|
14
14
|
var _ref = /*#__PURE__*/_react["default"].createElement(_Footer.GovGRFooter, null);
|
|
15
15
|
|
|
@@ -9,19 +9,22 @@ exports["default"] = exports.DefaultCopyright = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _ = require("./..");
|
|
13
13
|
|
|
14
|
-
var _Copyright = require("
|
|
14
|
+
var _Copyright = _interopRequireDefault(require("../../../govgr/Footer/Copyright"));
|
|
15
15
|
|
|
16
|
-
var _HellenicRepublicLogo = require("
|
|
16
|
+
var _HellenicRepublicLogo = _interopRequireDefault(require("../../../govgr/Footer/HellenicRepublicLogo"));
|
|
17
17
|
|
|
18
|
-
var _VisuallyHidden = require("
|
|
18
|
+
var _VisuallyHidden = _interopRequireDefault(require("../../../utils/VisuallyHidden"));
|
|
19
19
|
|
|
20
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(
|
|
21
|
-
grow: true
|
|
22
|
-
|
|
20
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_.Footer, null, /*#__PURE__*/_react["default"].createElement(_.FooterContainer, null, /*#__PURE__*/_react["default"].createElement(_.FooterInfo, null, /*#__PURE__*/_react["default"].createElement(_.FooterInfoSection, {
|
|
21
|
+
grow: true,
|
|
22
|
+
"aria-label": "footer info section"
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement(_.FooterContent, null, /*#__PURE__*/_react["default"].createElement(_VisuallyHidden["default"], null, "\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B5\u03C2 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2"), /*#__PURE__*/_react["default"].createElement(_.FooterList, {
|
|
24
|
+
layout: "horizontal"
|
|
25
|
+
}, /*#__PURE__*/_react["default"].createElement(_.FooterListItem, null, /*#__PURE__*/_react["default"].createElement(_.FooterLink, {
|
|
23
26
|
href: "#terms"
|
|
24
|
-
}, "\u038C\u03C1\u03BF\u03B9 \u03BA\u03B1\u03B9 \u03A0\u03C1\u03BF\u03CB\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"))), /*#__PURE__*/_react["default"].createElement(_Copyright
|
|
27
|
+
}, "\u038C\u03C1\u03BF\u03B9 \u03BA\u03B1\u03B9 \u03A0\u03C1\u03BF\u03CB\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"))), /*#__PURE__*/_react["default"].createElement(_Copyright["default"], null))), /*#__PURE__*/_react["default"].createElement(_.FooterInfoSection, null, /*#__PURE__*/_react["default"].createElement(_HellenicRepublicLogo["default"], null)))));
|
|
25
28
|
|
|
26
29
|
var DefaultCopyright = function DefaultCopyright() {
|
|
27
30
|
return _ref;
|