@digigov/ui 0.28.3 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -1
- package/README.md +0 -1
- package/admin/AutoComplete/__stories__/Default.js +4 -4
- package/admin/AutoComplete/__stories__/WithAutoSelect.js +4 -4
- package/admin/AutoComplete/__stories__/WithDefaultValue.js +4 -4
- package/admin/AutoComplete/__stories__/WithInLine.js +4 -4
- package/admin/AutoComplete/__stories__/WithMinLength.js +5 -5
- package/admin/AutoComplete/__stories__/WithPlaceHolder.js +4 -4
- package/admin/AutoComplete/__stories__/WithShowAllValues.js +4 -4
- package/admin/AutoComplete/index.d.ts +1 -1
- package/admin/AutoComplete/index.js +2 -1
- package/admin/AutoComplete/index.mdx +34 -10
- package/admin/CircularProgress/CircularProgress.stories.d.ts +1 -1
- package/admin/CircularProgress/CircularProgress.stories.js +1 -1
- package/admin/CircularProgress/__stories__/Default.js +3 -3
- package/admin/CopyToClipboard/__stories__/Banner.js +4 -4
- package/admin/CopyToClipboard/__stories__/Default.js +2 -2
- package/admin/CopyToClipboard/index.mdx +6 -2
- package/admin/Drawer/__stories__/Default.js +50 -13
- package/admin/Drawer/index.mdx +1 -1
- package/admin/Dropdown/__stories__/AlignRight.js +18 -26
- package/admin/Dropdown/__stories__/Default.js +18 -26
- package/admin/Dropdown/__stories__/PlacementTop.js +18 -26
- package/admin/Dropdown/index.mdx +17 -4
- package/admin/Modal/Modal.stories.d.ts +2 -2
- package/admin/Modal/Modal.stories.js +2 -2
- package/admin/Modal/__stories__/AlertDialog.js +5 -11
- package/admin/Modal/__stories__/Default.js +8 -12
- package/admin/Modal/index.mdx +14 -3
- package/admin/Pagination/Pagination.stories.d.ts +2 -2
- package/admin/Pagination/Pagination.stories.js +2 -2
- package/admin/Pagination/__stories__/Default.js +39 -45
- package/admin/Pagination/__stories__/PaginationSmall.js +11 -17
- package/admin/Pagination/index.mdx +1 -1
- package/admin/StepNav/__stories__/Default.js +12 -10
- package/admin/TaskList/TaskList.stories.d.ts +1 -1
- package/admin/TaskList/TaskList.stories.js +1 -1
- package/admin/TaskList/__stories__/Default.js +8 -14
- package/admin/Timeline/Timeline.stories.d.ts +1 -1
- package/admin/Timeline/Timeline.stories.js +1 -1
- package/admin/Timeline/__stories__/Default.js +11 -13
- package/app/Confirmation/Confirmation.mdx +1 -1
- package/app/Confirmation/__stories__/Default.js +2 -8
- package/app/Footer/Footer.mdx +16 -4
- package/app/Footer/__stories__/Default.js +2 -2
- package/app/Footer/__stories__/DefaultCopyright.js +7 -7
- package/app/Footer/__stories__/FooterAllInclusive.js +15 -15
- package/app/Footer/__stories__/FooterWithLink.js +10 -10
- package/app/Footer/__stories__/FooterWithLogo.js +10 -10
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +15 -15
- package/app/Footer/__stories__/YearCopyright.js +10 -16
- package/app/Header/Header.stories.d.ts +1 -0
- package/app/Header/Header.stories.js +14 -0
- package/app/Header/HeaderNavMenuContent.d.ts +3 -0
- package/app/Header/HeaderNavMenuContent.js +19 -0
- package/app/Header/__stories__/Default.js +5 -5
- package/app/Header/__stories__/WithHeaderNavigation.d.ts +2 -0
- package/app/Header/__stories__/WithHeaderNavigation.js +59 -0
- package/app/Header/__stories__/WithNavigation.js +25 -11
- package/app/Header/__stories__/WithServiceName.js +7 -7
- package/app/Header/__stories__/WithServiceNameAndLogo.js +9 -9
- package/app/Header/index.d.ts +1 -0
- package/app/Header/index.js +14 -0
- package/app/Header/index.mdx +17 -5
- package/app/Header/index.spec.js +1 -1
- package/app/NotFound/__stories__/Default.js +2 -2
- package/app/NotFound/index.mdx +1 -1
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +1 -1
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +1 -1
- package/app/PhaseBannerHeader/__stories__/Default.js +2 -2
- package/app/PhaseBannerHeader/index.mdx +1 -1
- package/app/QrCodeScanner/__stories__/Default.js +5 -5
- package/app/QrCodeViewer/__stories__/Custom.js +2 -2
- package/app/QrCodeViewer/__stories__/Default.js +2 -2
- package/app/QrCodeViewer/index.mdx +6 -3
- package/core/Accordion/Accordion.stories.d.ts +2 -2
- package/core/Accordion/Accordion.stories.js +5 -5
- package/core/Accordion/__stories__/Default.js +10 -14
- package/core/Accordion/__stories__/WithHints.js +15 -19
- package/core/Accordion/index.mdx +11 -7
- package/core/BackLink/BackLink.stories.d.ts +1 -1
- package/core/BackLink/BackLink.stories.js +1 -1
- package/core/BackLink/__stories__/Default.js +2 -2
- package/core/BackLink/index.mdx +1 -1
- package/core/Blockquote/Blockquote.stories.d.ts +1 -1
- package/core/Blockquote/Blockquote.stories.js +3 -3
- package/core/Blockquote/__stories__/Default.js +2 -2
- package/core/Blockquote/index.mdx +1 -5
- package/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/core/Breadcrumbs/Breadcrumbs.stories.js +1 -1
- package/core/Breadcrumbs/__stories__/Default.js +2 -8
- package/core/Breadcrumbs/breadcrumbs.mdx +1 -5
- package/core/Button/__stories__/Back.d.ts +1 -1
- package/core/Button/__stories__/Back.js +3 -3
- package/core/Button/__stories__/ButtonLinkButton.js +2 -2
- package/core/Button/__stories__/CallToActionButton.js +2 -2
- package/core/Button/__stories__/Disabled.js +2 -2
- package/core/Button/__stories__/GroupingButtons.js +2 -8
- package/core/Button/__stories__/GroupingButtonsAndLinks.js +4 -10
- package/core/Button/__stories__/Primary.js +2 -2
- package/core/Button/__stories__/Secondary.js +2 -2
- package/core/Button/__stories__/ThemeToggle.js +2 -2
- package/core/Button/__stories__/Warning.js +2 -2
- package/core/Button/__stories__/WithVariantLink.js +2 -2
- package/core/Button/index.mdx +26 -13
- package/core/Card/Card.stories.js +1 -1
- package/core/Card/__stories__/Default.js +3 -9
- package/core/Card/__stories__/WithClickableContent.js +4 -10
- package/core/Card/__stories__/WithClickableLink.js +3 -9
- package/core/Card/__stories__/WithDarkBorder.js +4 -10
- package/core/Card/__stories__/WithDarkTopBorder.js +4 -10
- package/core/Card/__stories__/WithDivider.js +4 -10
- package/core/Card/__stories__/WithGrayBorder.js +4 -10
- package/core/Card/__stories__/WithGrayTopBorder.js +4 -10
- package/core/Card/__stories__/WithGroupButton.js +4 -10
- package/core/Card/card.mdx +37 -18
- package/core/Checkbox/Checkbox.stories.d.ts +16 -0
- package/core/{Checkboxes → Checkbox}/Checkbox.stories.js +11 -11
- package/{es/core/Checkboxes → core/Checkbox}/Checkbox.stories.playwright.json +3 -3
- package/core/{Checkboxes → Checkbox}/__stories__/ConditionalReveal.d.ts +0 -0
- package/core/Checkbox/__stories__/ConditionalReveal.js +42 -0
- package/core/{Checkboxes → Checkbox}/__stories__/Default.d.ts +0 -0
- package/core/Checkbox/__stories__/Default.js +39 -0
- package/core/{Checkboxes → Checkbox}/__stories__/MultipleQuestions.d.ts +0 -0
- package/core/Checkbox/__stories__/MultipleQuestions.js +41 -0
- package/core/{Checkboxes → Checkbox}/__stories__/NoneAnswer.d.ts +0 -0
- package/core/Checkbox/__stories__/NoneAnswer.js +41 -0
- package/core/{Checkboxes → Checkbox}/__stories__/NoneAnswerWithError.d.ts +0 -0
- package/core/Checkbox/__stories__/NoneAnswerWithError.js +51 -0
- package/core/{Checkboxes → Checkbox}/__stories__/WithErrorMessage.d.ts +0 -0
- package/core/Checkbox/__stories__/WithErrorMessage.js +44 -0
- package/core/{Checkboxes → Checkbox}/__stories__/WithHint.d.ts +0 -0
- package/core/Checkbox/__stories__/WithHint.js +39 -0
- package/{esm/core/Checkboxes/checkboxes.mdx → core/Checkbox/checkbox.mdx} +36 -16
- package/core/{Checkboxes → Checkbox}/index.d.ts +0 -0
- package/core/{Checkboxes → Checkbox}/index.js +0 -0
- package/core/DateInputContainer/DateInputContainer.stories.d.ts +13 -0
- package/core/{DateInput/DateInput.stories.js → DateInputContainer/DateInputContainer.stories.js} +10 -10
- package/core/{DateInput/DateInput.stories.playwright.json → DateInputContainer/DateInputContainer.stories.playwright.json} +0 -0
- package/core/{DateInput → DateInputContainer}/__stories__/Default.d.ts +0 -0
- package/core/DateInputContainer/__stories__/Default.js +35 -0
- package/core/{DateInput → DateInputContainer}/__stories__/MultipleQuestions.d.ts +0 -0
- package/core/DateInputContainer/__stories__/MultipleQuestions.js +35 -0
- package/core/{DateInput → DateInputContainer}/__stories__/WithErrorMessage.d.ts +0 -0
- package/core/DateInputContainer/__stories__/WithErrorMessage.js +42 -0
- package/core/{DateInput → DateInputContainer}/__stories__/WithErrorMessageForSingleField.d.ts +0 -0
- package/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +40 -0
- package/core/DateInputContainer/index.d.ts +4 -0
- package/core/{DateInput → DateInputContainer}/index.js +0 -0
- package/core/DateInputContainer/index.mdx +44 -0
- package/core/Details/Details.stories.d.ts +1 -1
- package/core/Details/Details.stories.js +1 -1
- package/core/Details/__stories__/Default.js +2 -8
- package/core/Details/index.mdx +1 -3
- package/core/Divider/__stories__/Default.js +5 -5
- package/core/Divider/index.js +1 -1
- package/core/ErrorMessage/ErrorMessage.stories.d.ts +1 -1
- package/core/ErrorMessage/ErrorMessage.stories.js +1 -1
- package/core/ErrorMessage/__stories__/Default.js +8 -14
- package/core/ErrorMessage/index.mdx +2 -5
- package/core/ErrorSummary/ErrorSummary.stories.d.ts +4 -4
- package/core/ErrorSummary/ErrorSummary.stories.js +4 -4
- package/core/ErrorSummary/__stories__/Default.js +5 -5
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +13 -19
- package/core/ErrorSummary/__stories__/LinkedToField.js +14 -20
- package/core/ErrorSummary/__stories__/LinkedToInput.js +14 -16
- package/core/ErrorSummary/index.mdx +16 -8
- package/core/{Field → FieldContainer}/index.d.ts +2 -2
- package/core/{Field → FieldContainer}/index.js +0 -0
- package/core/FileUpload/__stories__/Default.js +5 -11
- package/core/FileUpload/__stories__/WithErrorMessage.js +8 -14
- package/core/FileUpload/index.mdx +6 -4
- package/core/{Label → LabelContainer}/index.d.ts +2 -2
- package/core/{Label → LabelContainer}/index.js +0 -0
- package/core/Link/__stories__/DarkBackground.js +5 -5
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +5 -5
- package/core/Link/__stories__/Default.js +2 -2
- package/core/Link/__stories__/ExternalLink.js +3 -3
- package/core/Link/__stories__/NoUnderline.js +2 -2
- package/core/Link/__stories__/OpensInNewTab.js +3 -3
- package/core/Link/index.js +1 -1
- package/core/Link/link.mdx +22 -6
- package/core/List/List.stories.d.ts +6 -6
- package/core/List/List.stories.js +6 -6
- package/core/List/__stories__/BulletList.js +4 -8
- package/core/List/__stories__/Default.js +4 -8
- package/core/List/__stories__/NestedBulletList.js +8 -12
- package/core/List/__stories__/NestedListWithVariantStyles.js +7 -11
- package/core/List/__stories__/NumberedList.js +4 -8
- package/core/List/__stories__/WithExtraSpace.js +4 -8
- package/core/List/index.mdx +6 -3
- package/core/Masthead/__stories__/Default.js +6 -8
- package/core/Masthead/masthead.mdx +1 -1
- package/core/NavList/NavHorizontalListItemButton.d.ts +3 -0
- package/core/NavList/NavHorizontalListItemButton.js +19 -0
- package/core/NavList/NavHorizontalListItemLink.d.ts +3 -0
- package/core/NavList/NavHorizontalListItemLink.js +19 -0
- package/core/NavList/NavMenu.d.ts +3 -0
- package/core/NavList/NavMenu.js +19 -0
- package/core/NavList/NavMenuContainer.d.ts +3 -0
- package/core/NavList/NavMenuContainer.js +19 -0
- package/core/NavList/NavMenuContainerContent.d.ts +3 -0
- package/core/NavList/NavMenuContainerContent.js +19 -0
- package/core/NavList/NavMenuContainerContentList.d.ts +3 -0
- package/core/NavList/NavMenuContainerContentList.js +19 -0
- package/core/NavList/NavMenuContainerContentListItem.d.ts +3 -0
- package/core/NavList/NavMenuContainerContentListItem.js +19 -0
- package/core/NavList/NavMenuContainerTitle.d.ts +3 -0
- package/core/NavList/NavMenuContainerTitle.js +19 -0
- package/core/NavList/__stories__/Default.js +2 -8
- package/core/NavList/__stories__/NavHorizontalLayout.js +4 -8
- package/core/NavList/index.d.ts +8 -0
- package/core/NavList/index.js +112 -0
- package/core/NavList/index.mdx +5 -2
- package/core/NotificationBanner/NotificationBanner.stories.js +3 -3
- package/core/NotificationBanner/__stories__/Default.js +2 -2
- package/core/NotificationBanner/__stories__/Success.js +2 -2
- package/core/NotificationBanner/index.mdx +7 -5
- package/core/PhaseBanner/PhaseBanner.stories.d.ts +2 -2
- package/core/PhaseBanner/PhaseBanner.stories.js +2 -2
- package/core/PhaseBanner/__stories__/Default.js +3 -9
- package/core/PhaseBanner/__stories__/Underlined.js +4 -10
- package/core/PhaseBanner/index.mdx +6 -4
- package/core/RadioContainer/RadioContainer.stories.d.ts +16 -0
- package/core/{Radios/Radios.stories.js → RadioContainer/RadioContainer.stories.js} +11 -11
- package/{es/core/Radios/Radios.stories.playwright.json → core/RadioContainer/RadioContainer.stories.playwright.json} +3 -3
- package/core/{Radios → RadioContainer}/__stories__/ConditionalReveal.d.ts +0 -0
- package/core/RadioContainer/__stories__/ConditionalReveal.js +42 -0
- package/core/{Radios → RadioContainer}/__stories__/Default.d.ts +0 -0
- package/core/RadioContainer/__stories__/Default.js +36 -0
- package/core/{Radios → RadioContainer}/__stories__/Inline.d.ts +0 -0
- package/core/RadioContainer/__stories__/Inline.js +38 -0
- package/core/{Radios → RadioContainer}/__stories__/MultipleQuestions.d.ts +0 -0
- package/core/RadioContainer/__stories__/MultipleQuestions.js +44 -0
- package/core/{Radios → RadioContainer}/__stories__/NoneAnswer.d.ts +0 -0
- package/core/RadioContainer/__stories__/NoneAnswer.js +35 -0
- package/core/{Radios → RadioContainer}/__stories__/WithErrorMessage.d.ts +0 -0
- package/core/RadioContainer/__stories__/WithErrorMessage.js +44 -0
- package/core/{Radios → RadioContainer}/__stories__/WithHints.d.ts +0 -0
- package/core/{Radios → RadioContainer}/__stories__/WithHints.js +10 -16
- package/core/{Radios → RadioContainer}/index.d.ts +2 -2
- package/core/{Radios → RadioContainer}/index.js +0 -0
- package/{es/core/Radios → core/RadioContainer}/index.mdx +37 -17
- package/core/SelectContainer/Select.stories.d.ts +12 -0
- package/core/{Select → SelectContainer}/Select.stories.js +7 -7
- package/core/{Select → SelectContainer}/Select.stories.playwright.json +2 -2
- package/core/{Select → SelectContainer}/__stories__/Default.d.ts +0 -0
- package/core/SelectContainer/__stories__/Default.js +37 -0
- package/core/{Select → SelectContainer}/__stories__/DisabledInput.d.ts +0 -0
- package/core/SelectContainer/__stories__/DisabledInput.js +39 -0
- package/core/{Select → SelectContainer}/__stories__/WithHint.d.ts +0 -0
- package/core/SelectContainer/__stories__/WithHint.js +39 -0
- package/core/{Select → SelectContainer}/index.d.ts +2 -2
- package/core/{Select → SelectContainer}/index.js +0 -0
- package/core/SelectContainer/index.mdx +42 -0
- package/core/ServiceBadge/index.mdx +42 -0
- package/core/SummaryList/__stories__/Default.js +5 -11
- package/core/SummaryList/__stories__/RowVariations.js +17 -23
- package/core/SummaryList/__stories__/WithActions.js +9 -15
- package/core/SummaryList/__stories__/WithKeyAndAction.js +9 -15
- package/core/SummaryList/__stories__/WithoutBorders.js +2 -8
- package/core/SummaryList/index.mdx +13 -7
- package/core/Table/__stories__/WithFloatingScroll.js +10 -8
- package/core/Table/__stories__/WithHeader.js +7 -7
- package/core/Table/__stories__/WithLoader.js +7 -7
- package/core/Table/index.mdx +32 -9
- package/core/Tabs/Tabs.stories.d.ts +1 -1
- package/core/Tabs/Tabs.stories.js +4 -4
- package/core/Tabs/__stories__/Default.js +8 -14
- package/core/Tabs/index.mdx +1 -3
- package/core/TextArea/TextArea.stories.d.ts +7 -7
- package/core/TextArea/TextArea.stories.js +9 -9
- package/core/TextArea/__stories__/Default.js +5 -7
- package/core/TextArea/__stories__/DisabledInput.js +6 -8
- package/core/TextArea/__stories__/LimitedCharacters.js +7 -9
- package/core/TextArea/__stories__/MultipleQuestions.js +5 -5
- package/core/TextArea/__stories__/WithDeclaredRows.js +6 -8
- package/core/TextArea/__stories__/WithErrorMessage.js +8 -10
- package/core/TextArea/__stories__/WithHint.js +6 -8
- package/core/TextArea/index.mdx +31 -13
- package/core/TextInput/TextInput.stories.d.ts +8 -8
- package/core/TextInput/TextInput.stories.js +10 -10
- package/core/TextInput/__stories__/AskingForNumbers.js +6 -8
- package/core/TextInput/__stories__/Default.js +5 -7
- package/core/TextInput/__stories__/DisabledInput.js +6 -8
- package/core/TextInput/__stories__/FixedWidths.js +15 -17
- package/core/TextInput/__stories__/FluidWidths.js +15 -17
- package/core/TextInput/__stories__/MultipleQuestions.js +4 -4
- package/core/TextInput/__stories__/WithErrorMessage.js +8 -10
- package/core/TextInput/__stories__/WithHint.js +6 -8
- package/core/TextInput/index.mdx +36 -11
- package/core/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -1
- package/core/VisuallyHidden/VisuallyHidden.stories.js +1 -1
- package/core/VisuallyHidden/__stories__/Default.js +7 -13
- package/core/VisuallyHidden/index.mdx +1 -1
- package/core/WarningText/WarningText.stories.d.ts +1 -1
- package/core/WarningText/WarningText.stories.js +3 -3
- package/core/WarningText/__stories__/Default.js +2 -2
- package/core/WarningText/index.mdx +2 -4
- package/core/index.d.ts +5 -5
- package/core/index.js +20 -20
- package/es/admin/AutoComplete/__stories__/Default.js +4 -4
- package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +4 -4
- package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +4 -4
- package/es/admin/AutoComplete/__stories__/WithInLine.js +4 -4
- package/es/admin/AutoComplete/__stories__/WithMinLength.js +5 -5
- package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +4 -4
- package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +4 -4
- package/es/admin/AutoComplete/index.js +1 -1
- package/es/admin/AutoComplete/index.mdx +34 -10
- package/es/admin/CircularProgress/CircularProgress.stories.js +2 -2
- package/es/admin/CircularProgress/__stories__/Default.js +2 -2
- package/es/admin/CopyToClipboard/__stories__/Banner.js +2 -2
- package/es/admin/CopyToClipboard/__stories__/Default.js +1 -1
- package/es/admin/CopyToClipboard/index.mdx +6 -2
- package/es/admin/Drawer/Drawer.stories.js +1 -1
- package/es/admin/Drawer/__stories__/Default.js +48 -9
- package/es/admin/Drawer/index.mdx +1 -1
- package/es/admin/Dropdown/__stories__/AlignRight.js +10 -10
- package/es/admin/Dropdown/__stories__/Default.js +10 -10
- package/es/admin/Dropdown/__stories__/PlacementTop.js +10 -10
- package/es/admin/Dropdown/index.mdx +17 -4
- package/es/admin/Modal/Modal.stories.js +3 -3
- package/es/admin/Modal/__stories__/AlertDialog.js +3 -3
- package/es/admin/Modal/__stories__/Default.js +6 -5
- package/es/admin/Modal/index.mdx +14 -3
- package/es/admin/Pagination/Pagination.stories.js +3 -3
- package/es/admin/Pagination/__stories__/Default.js +5 -5
- package/es/admin/Pagination/__stories__/PaginationSmall.js +5 -5
- package/es/admin/Pagination/index.mdx +1 -1
- package/es/admin/StepNav/__stories__/Default.js +7 -6
- package/es/admin/TaskList/TaskList.stories.js +2 -2
- package/es/admin/TaskList/__stories__/Default.js +3 -3
- package/es/admin/Timeline/Timeline.stories.js +2 -2
- package/es/admin/Timeline/__stories__/Default.js +6 -4
- package/es/app/Confirmation/Confirmation.mdx +1 -1
- package/es/app/Confirmation/__stories__/Default.js +1 -1
- package/es/app/Footer/Footer.mdx +16 -4
- package/es/app/Footer/__stories__/Default.js +2 -2
- package/es/app/Footer/__stories__/DefaultCopyright.js +5 -4
- package/es/app/Footer/__stories__/FooterAllInclusive.js +7 -6
- package/es/app/Footer/__stories__/FooterWithLink.js +6 -5
- package/es/app/Footer/__stories__/FooterWithLogo.js +6 -5
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +7 -6
- package/es/app/Footer/__stories__/YearCopyright.js +5 -4
- package/es/app/Header/Header.stories.js +2 -1
- package/es/app/Header/HeaderNavMenuContent.js +3 -0
- package/es/app/Header/__stories__/Default.js +4 -4
- package/es/app/Header/__stories__/WithHeaderNavigation.js +36 -0
- package/es/app/Header/__stories__/WithNavigation.js +22 -11
- package/es/app/Header/__stories__/WithServiceName.js +5 -5
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +6 -6
- package/es/app/Header/index.js +1 -0
- package/es/app/Header/index.mdx +17 -5
- package/es/app/Header/index.spec.js +1 -1
- package/es/app/NotFound/__stories__/Default.js +1 -1
- package/es/app/NotFound/index.mdx +1 -1
- package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +2 -2
- package/es/app/PhaseBannerHeader/__stories__/Default.js +1 -1
- package/es/app/PhaseBannerHeader/index.mdx +1 -1
- package/es/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/es/app/QrCodeViewer/__stories__/Custom.js +1 -1
- package/es/app/QrCodeViewer/__stories__/Default.js +1 -1
- package/es/app/QrCodeViewer/index.mdx +6 -3
- package/es/core/Accordion/Accordion.stories.js +6 -6
- package/es/core/Accordion/__stories__/Default.js +5 -4
- package/es/core/Accordion/__stories__/WithHints.js +6 -5
- package/es/core/Accordion/index.mdx +11 -7
- package/es/core/BackLink/BackLink.stories.js +2 -2
- package/es/core/BackLink/__stories__/Default.js +2 -2
- package/es/core/BackLink/index.mdx +1 -1
- package/es/core/Blockquote/Blockquote.stories.js +4 -4
- package/es/core/Blockquote/__stories__/Default.js +1 -1
- package/es/core/Blockquote/index.mdx +1 -5
- package/es/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/es/core/Breadcrumbs/__stories__/Default.js +1 -1
- package/es/core/Breadcrumbs/breadcrumbs.mdx +1 -5
- package/es/core/Button/__stories__/Back.js +1 -1
- package/es/core/Button/__stories__/ButtonLinkButton.js +1 -1
- package/es/core/Button/__stories__/CallToActionButton.js +1 -1
- package/es/core/Button/__stories__/Disabled.js +1 -1
- package/es/core/Button/__stories__/GroupingButtons.js +1 -1
- package/es/core/Button/__stories__/GroupingButtonsAndLinks.js +2 -2
- package/es/core/Button/__stories__/Primary.js +1 -1
- package/es/core/Button/__stories__/Secondary.js +1 -1
- package/es/core/Button/__stories__/ThemeToggle.js +1 -1
- package/es/core/Button/__stories__/Warning.js +1 -1
- package/es/core/Button/__stories__/WithVariantLink.js +1 -1
- package/es/core/Button/index.mdx +26 -13
- package/es/core/Card/Card.stories.js +1 -1
- package/es/core/Card/__stories__/Default.js +2 -2
- package/es/core/Card/__stories__/WithClickableContent.js +2 -2
- package/es/core/Card/__stories__/WithClickableLink.js +2 -2
- package/es/core/Card/__stories__/WithDarkBorder.js +2 -2
- package/es/core/Card/__stories__/WithDarkTopBorder.js +2 -2
- package/es/core/Card/__stories__/WithDivider.js +2 -2
- package/es/core/Card/__stories__/WithGrayBorder.js +2 -2
- package/es/core/Card/__stories__/WithGrayTopBorder.js +2 -2
- package/es/core/Card/__stories__/WithGroupButton.js +3 -3
- package/es/core/Card/card.mdx +37 -18
- package/es/core/Checkbox/Checkbox.stories.js +15 -0
- package/{esm/core/Checkboxes → es/core/Checkbox}/Checkbox.stories.playwright.json +3 -3
- package/es/core/{Checkboxes → Checkbox}/__stories__/ConditionalReveal.js +6 -6
- package/es/core/{Checkboxes → Checkbox}/__stories__/Default.js +5 -5
- package/es/core/{Checkboxes → Checkbox}/__stories__/MultipleQuestions.js +5 -5
- package/es/core/{Checkboxes → Checkbox}/__stories__/NoneAnswer.js +5 -5
- package/es/core/{Checkboxes → Checkbox}/__stories__/NoneAnswerWithError.js +7 -7
- package/{esm/core/Checkboxes → es/core/Checkbox}/__stories__/WithErrorMessage.js +7 -7
- package/{esm/core/Checkboxes → es/core/Checkbox}/__stories__/WithHint.js +5 -5
- package/{core/Checkboxes/checkboxes.mdx → es/core/Checkbox/checkbox.mdx} +36 -16
- package/es/core/{Checkboxes → Checkbox}/index.js +0 -0
- package/es/core/DateInputContainer/DateInputContainer.stories.js +12 -0
- package/es/core/{DateInput/DateInput.stories.playwright.json → DateInputContainer/DateInputContainer.stories.playwright.json} +0 -0
- package/es/core/{DateInput → DateInputContainer}/__stories__/Default.js +5 -5
- package/{esm/core/DateInput → es/core/DateInputContainer}/__stories__/MultipleQuestions.js +5 -5
- package/{esm/core/DateInput → es/core/DateInputContainer}/__stories__/WithErrorMessage.js +7 -7
- package/es/core/{DateInput → DateInputContainer}/__stories__/WithErrorMessageForSingleField.js +7 -7
- package/es/core/{DateInput → DateInputContainer}/index.js +2 -2
- package/es/core/DateInputContainer/index.mdx +44 -0
- package/es/core/Details/Details.stories.js +2 -2
- package/es/core/Details/__stories__/Default.js +1 -1
- package/es/core/Details/index.mdx +1 -3
- package/es/core/Divider/__stories__/Default.js +1 -1
- package/es/core/Divider/index.js +1 -1
- package/es/core/ErrorMessage/ErrorMessage.stories.js +2 -2
- package/es/core/ErrorMessage/__stories__/Default.js +7 -7
- package/es/core/ErrorMessage/index.mdx +2 -5
- package/es/core/ErrorSummary/ErrorSummary.stories.js +5 -5
- package/es/core/ErrorSummary/__stories__/Default.js +3 -3
- package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +10 -10
- package/es/core/ErrorSummary/__stories__/LinkedToField.js +10 -10
- package/es/core/ErrorSummary/__stories__/LinkedToInput.js +11 -11
- package/es/core/ErrorSummary/index.mdx +16 -8
- package/es/core/{Field → FieldContainer}/index.js +2 -2
- package/es/core/FileUpload/__stories__/Default.js +4 -4
- package/es/core/FileUpload/__stories__/WithErrorMessage.js +6 -6
- package/es/core/FileUpload/index.mdx +6 -4
- package/es/core/{Label → LabelContainer}/index.js +2 -2
- package/es/core/Link/__stories__/DarkBackground.js +3 -3
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +3 -3
- package/es/core/Link/__stories__/Default.js +1 -1
- package/es/core/Link/__stories__/ExternalLink.js +2 -2
- package/es/core/Link/__stories__/NoUnderline.js +1 -1
- package/es/core/Link/__stories__/OpensInNewTab.js +3 -3
- package/es/core/Link/index.js +1 -1
- package/es/core/Link/link.mdx +22 -6
- package/es/core/List/List.stories.js +6 -6
- package/es/core/List/__stories__/BulletList.js +2 -1
- package/es/core/List/__stories__/Default.js +3 -2
- package/es/core/List/__stories__/NestedBulletList.js +2 -1
- package/es/core/List/__stories__/NestedListWithVariantStyles.js +2 -1
- package/es/core/List/__stories__/NumberedList.js +2 -1
- package/es/core/List/__stories__/WithExtraSpace.js +2 -1
- package/es/core/List/index.mdx +6 -3
- package/es/core/Masthead/__stories__/Default.js +5 -3
- package/es/core/Masthead/masthead.mdx +1 -1
- package/es/core/NavList/NavHorizontalListItemButton.js +3 -0
- package/es/core/NavList/NavHorizontalListItemLink.js +3 -0
- package/es/core/NavList/NavMenu.js +3 -0
- package/es/core/NavList/NavMenuContainer.js +3 -0
- package/es/core/NavList/NavMenuContainerContent.js +3 -0
- package/es/core/NavList/NavMenuContainerContentList.js +3 -0
- package/es/core/NavList/NavMenuContainerContentListItem.js +3 -0
- package/es/core/NavList/NavMenuContainerTitle.js +3 -0
- package/es/core/NavList/__stories__/Default.js +1 -1
- package/es/core/NavList/__stories__/NavHorizontalLayout.js +2 -1
- package/es/core/NavList/index.js +8 -0
- package/es/core/NavList/index.mdx +5 -2
- package/es/core/NotificationBanner/NotificationBanner.stories.js +3 -3
- package/es/core/NotificationBanner/__stories__/Default.js +1 -1
- package/es/core/NotificationBanner/__stories__/Success.js +1 -1
- package/es/core/NotificationBanner/index.mdx +7 -5
- package/es/core/PhaseBanner/PhaseBanner.stories.js +3 -3
- package/es/core/PhaseBanner/__stories__/Default.js +2 -2
- package/es/core/PhaseBanner/__stories__/Underlined.js +2 -2
- package/es/core/PhaseBanner/index.mdx +6 -4
- package/es/core/RadioContainer/RadioContainer.stories.js +15 -0
- package/{esm/core/Radios/Radios.stories.playwright.json → es/core/RadioContainer/RadioContainer.stories.playwright.json} +3 -3
- package/es/core/{Radios → RadioContainer}/__stories__/ConditionalReveal.js +6 -6
- package/{esm/core/Radios → es/core/RadioContainer}/__stories__/Default.js +3 -3
- package/{esm/core/Radios → es/core/RadioContainer}/__stories__/Inline.js +5 -5
- package/{esm/core/Radios → es/core/RadioContainer}/__stories__/MultipleQuestions.js +5 -5
- package/es/core/{Radios → RadioContainer}/__stories__/NoneAnswer.js +3 -3
- package/es/core/{Radios → RadioContainer}/__stories__/WithErrorMessage.js +7 -7
- package/{esm/core/Radios → es/core/RadioContainer}/__stories__/WithHints.js +5 -5
- package/es/core/{Radios → RadioContainer}/index.js +2 -2
- package/{esm/core/Radios → es/core/RadioContainer}/index.mdx +37 -17
- package/es/core/SelectContainer/Select.stories.js +11 -0
- package/es/core/{Select → SelectContainer}/Select.stories.playwright.json +2 -2
- package/{esm/core/Select → es/core/SelectContainer}/__stories__/Default.js +4 -4
- package/es/core/{Select → SelectContainer}/__stories__/DisabledInput.js +4 -4
- package/{esm/core/Select → es/core/SelectContainer}/__stories__/WithHint.js +4 -4
- package/es/core/{Select → SelectContainer}/index.js +2 -2
- package/es/core/SelectContainer/index.mdx +42 -0
- package/es/core/ServiceBadge/index.mdx +42 -0
- package/es/core/SummaryList/__stories__/Default.js +3 -3
- package/es/core/SummaryList/__stories__/RowVariations.js +3 -3
- package/es/core/SummaryList/__stories__/WithActions.js +4 -4
- package/es/core/SummaryList/__stories__/WithKeyAndAction.js +4 -4
- package/es/core/SummaryList/__stories__/WithoutBorders.js +1 -1
- package/es/core/SummaryList/index.mdx +13 -7
- package/es/core/Table/__stories__/WithFloatingScroll.js +4 -3
- package/es/core/Table/__stories__/WithHeader.js +1 -1
- package/es/core/Table/__stories__/WithLoader.js +4 -4
- package/es/core/Table/index.mdx +32 -9
- package/es/core/Tabs/Tabs.stories.js +5 -5
- package/es/core/Tabs/__stories__/Default.js +6 -6
- package/es/core/Tabs/index.mdx +1 -3
- package/es/core/TextArea/TextArea.stories.js +10 -10
- package/es/core/TextArea/__stories__/Default.js +5 -5
- package/es/core/TextArea/__stories__/DisabledInput.js +6 -6
- package/es/core/TextArea/__stories__/LimitedCharacters.js +6 -6
- package/es/core/TextArea/__stories__/MultipleQuestions.js +5 -5
- package/es/core/TextArea/__stories__/WithDeclaredRows.js +6 -6
- package/es/core/TextArea/__stories__/WithErrorMessage.js +7 -7
- package/es/core/TextArea/__stories__/WithHint.js +6 -6
- package/es/core/TextArea/index.mdx +31 -13
- package/es/core/TextInput/TextInput.stories.js +11 -11
- package/es/core/TextInput/__stories__/AskingForNumbers.js +6 -6
- package/es/core/TextInput/__stories__/Default.js +5 -5
- package/es/core/TextInput/__stories__/DisabledInput.js +6 -6
- package/es/core/TextInput/__stories__/FixedWidths.js +10 -10
- package/es/core/TextInput/__stories__/FluidWidths.js +10 -10
- package/es/core/TextInput/__stories__/MultipleQuestions.js +4 -4
- package/es/core/TextInput/__stories__/WithErrorMessage.js +7 -7
- package/es/core/TextInput/__stories__/WithHint.js +6 -6
- package/es/core/TextInput/index.mdx +36 -11
- package/es/core/VisuallyHidden/VisuallyHidden.stories.js +2 -2
- package/es/core/VisuallyHidden/__stories__/Default.js +4 -4
- package/es/core/VisuallyHidden/index.mdx +1 -1
- package/es/core/WarningText/WarningText.stories.js +4 -4
- package/es/core/WarningText/__stories__/Default.js +1 -1
- package/es/core/WarningText/index.mdx +2 -4
- package/es/core/index.js +5 -5
- package/es/govgr/{Logo → GovGRLogo}/govgr-logo.svg +0 -0
- package/es/govgr/{Logo → GovGRLogo}/index.js +0 -0
- package/es/govgr/{Logo → GovGRLogo}/logo.js +0 -0
- package/es/govgr/index.js +1 -1
- package/es/layouts/Basic/Content/index.mdx +48 -0
- package/es/layouts/Basic/Main/index.mdx +1 -3
- package/es/layouts/Basic/Masthead/index.mdx +1 -3
- package/es/layouts/Basic/Side/index.mdx +55 -0
- package/es/layouts/Basic/Top/index.mdx +2 -4
- package/es/layouts/Basic/__stories__/Default.js +5 -3
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +7 -4
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +7 -4
- package/es/layouts/Basic/index.mdx +6 -8
- package/es/layouts/Grid/Grid.stories.js +3 -3
- package/es/layouts/Grid/__stories__/Default.js +2 -2
- package/es/layouts/Grid/__stories__/Inline.js +2 -2
- package/es/registry.js +42 -24
- package/es/themes/grnet.js +1 -1
- package/es/typography/Heading/__stories__/Default.js +1 -1
- package/es/typography/Heading/index.mdx +1 -1
- package/es/typography/HeadingCaption/__stories__/Default.js +2 -2
- package/es/typography/HeadingCaption/__stories__/NestedToTitle.js +2 -2
- package/es/typography/HeadingCaption/index.mdx +6 -2
- package/es/typography/Hint/Hint.stories.js +3 -3
- package/es/typography/Hint/__stories__/Default.js +2 -2
- package/es/typography/Hint/__stories__/FontSizes.js +2 -2
- package/es/typography/Hint/index.mdx +6 -2
- package/es/typography/NormalText/NormalText.stories.js +5 -5
- package/es/typography/NormalText/__stories__/Default.js +2 -2
- package/es/typography/NormalText/__stories__/FontSizes.js +3 -3
- package/es/typography/NormalText/__stories__/FontWeight.js +2 -2
- package/es/typography/NormalText/__stories__/Variants.js +3 -3
- package/es/typography/NormalText/index.mdx +16 -4
- package/es/typography/Paragraph/Paragraph.stories.js +6 -6
- package/es/typography/Paragraph/__stories__/Default.js +2 -2
- package/es/typography/Paragraph/__stories__/FontSizes.js +2 -2
- 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 +21 -5
- package/es/typography/index.js +0 -2
- package/es/typography/index.mdx +4 -0
- package/es/utils/Kitchensink/AllComponents.js +3 -3
- package/es/utils/Kitchensink/KitchensinkByCategory.js +4 -4
- package/es/utils/Kitchensink/KitchensinkByLetter.js +3 -3
- package/es/utils/Kitchensink/KitchensinkComponent.js +10 -10
- package/es/utils/Kitchensink/KitchensinkDashboard.js +4 -4
- package/esm/admin/AutoComplete/__stories__/Default.js +4 -4
- package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +4 -4
- package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +4 -4
- package/esm/admin/AutoComplete/__stories__/WithInLine.js +4 -4
- package/esm/admin/AutoComplete/__stories__/WithMinLength.js +5 -5
- package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +4 -4
- package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +4 -4
- package/esm/admin/AutoComplete/index.js +1 -1
- package/esm/admin/AutoComplete/index.mdx +34 -10
- package/esm/admin/CircularProgress/CircularProgress.stories.js +2 -2
- package/esm/admin/CircularProgress/__stories__/Default.js +2 -2
- package/esm/admin/CopyToClipboard/__stories__/Banner.js +2 -2
- package/esm/admin/CopyToClipboard/__stories__/Default.js +1 -1
- package/esm/admin/CopyToClipboard/index.mdx +6 -2
- package/esm/admin/Drawer/Drawer.stories.js +1 -1
- package/esm/admin/Drawer/__stories__/Default.js +48 -9
- package/esm/admin/Drawer/index.mdx +1 -1
- package/esm/admin/Dropdown/__stories__/AlignRight.js +10 -10
- package/esm/admin/Dropdown/__stories__/Default.js +10 -10
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +10 -10
- package/esm/admin/Dropdown/index.mdx +17 -4
- package/esm/admin/Modal/Modal.stories.js +3 -3
- package/esm/admin/Modal/__stories__/AlertDialog.js +3 -3
- package/esm/admin/Modal/__stories__/Default.js +6 -5
- package/esm/admin/Modal/index.mdx +14 -3
- package/esm/admin/Pagination/Pagination.stories.js +3 -3
- package/esm/admin/Pagination/__stories__/Default.js +5 -5
- package/esm/admin/Pagination/__stories__/PaginationSmall.js +5 -5
- package/esm/admin/Pagination/index.mdx +1 -1
- package/esm/admin/StepNav/__stories__/Default.js +7 -6
- package/esm/admin/TaskList/TaskList.stories.js +2 -2
- package/esm/admin/TaskList/__stories__/Default.js +3 -3
- package/esm/admin/Timeline/Timeline.stories.js +2 -2
- package/esm/admin/Timeline/__stories__/Default.js +6 -4
- package/esm/app/Confirmation/Confirmation.mdx +1 -1
- package/esm/app/Confirmation/__stories__/Default.js +1 -1
- package/esm/app/Footer/Footer.mdx +16 -4
- package/esm/app/Footer/__stories__/Default.js +2 -2
- package/esm/app/Footer/__stories__/DefaultCopyright.js +5 -4
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +7 -6
- package/esm/app/Footer/__stories__/FooterWithLink.js +6 -5
- package/esm/app/Footer/__stories__/FooterWithLogo.js +6 -5
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +7 -6
- package/esm/app/Footer/__stories__/YearCopyright.js +5 -4
- package/esm/app/Header/Header.stories.js +2 -1
- package/esm/app/Header/HeaderNavMenuContent.js +3 -0
- package/esm/app/Header/__stories__/Default.js +4 -4
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +36 -0
- package/esm/app/Header/__stories__/WithNavigation.js +22 -11
- package/esm/app/Header/__stories__/WithServiceName.js +5 -5
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +6 -6
- package/esm/app/Header/index.js +1 -0
- package/esm/app/Header/index.mdx +17 -5
- package/esm/app/Header/index.spec.js +1 -1
- package/esm/app/NotFound/__stories__/Default.js +1 -1
- package/esm/app/NotFound/index.mdx +1 -1
- package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +2 -2
- package/esm/app/PhaseBannerHeader/__stories__/Default.js +1 -1
- package/esm/app/PhaseBannerHeader/index.mdx +1 -1
- package/esm/app/QrCodeScanner/__stories__/Default.js +3 -3
- package/esm/app/QrCodeViewer/__stories__/Custom.js +1 -1
- package/esm/app/QrCodeViewer/__stories__/Default.js +1 -1
- package/esm/app/QrCodeViewer/index.mdx +6 -3
- package/esm/core/Accordion/Accordion.stories.js +6 -6
- package/esm/core/Accordion/__stories__/Default.js +5 -4
- package/esm/core/Accordion/__stories__/WithHints.js +6 -5
- package/esm/core/Accordion/index.mdx +11 -7
- package/esm/core/BackLink/BackLink.stories.js +2 -2
- package/esm/core/BackLink/__stories__/Default.js +2 -2
- package/esm/core/BackLink/index.mdx +1 -1
- package/esm/core/Blockquote/Blockquote.stories.js +4 -4
- package/esm/core/Blockquote/__stories__/Default.js +1 -1
- package/esm/core/Blockquote/index.mdx +1 -5
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/esm/core/Breadcrumbs/__stories__/Default.js +1 -1
- package/esm/core/Breadcrumbs/breadcrumbs.mdx +1 -5
- package/esm/core/Button/__stories__/Back.js +1 -1
- package/esm/core/Button/__stories__/ButtonLinkButton.js +1 -1
- package/esm/core/Button/__stories__/CallToActionButton.js +1 -1
- package/esm/core/Button/__stories__/Disabled.js +1 -1
- package/esm/core/Button/__stories__/GroupingButtons.js +1 -1
- package/esm/core/Button/__stories__/GroupingButtonsAndLinks.js +2 -2
- package/esm/core/Button/__stories__/Primary.js +1 -1
- package/esm/core/Button/__stories__/Secondary.js +1 -1
- package/esm/core/Button/__stories__/ThemeToggle.js +1 -1
- package/esm/core/Button/__stories__/Warning.js +1 -1
- package/esm/core/Button/__stories__/WithVariantLink.js +1 -1
- package/esm/core/Button/index.mdx +26 -13
- package/esm/core/Card/Card.stories.js +1 -1
- package/esm/core/Card/__stories__/Default.js +2 -2
- package/esm/core/Card/__stories__/WithClickableContent.js +2 -2
- package/esm/core/Card/__stories__/WithClickableLink.js +2 -2
- package/esm/core/Card/__stories__/WithDarkBorder.js +2 -2
- package/esm/core/Card/__stories__/WithDarkTopBorder.js +2 -2
- package/esm/core/Card/__stories__/WithDivider.js +2 -2
- package/esm/core/Card/__stories__/WithGrayBorder.js +2 -2
- package/esm/core/Card/__stories__/WithGrayTopBorder.js +2 -2
- package/esm/core/Card/__stories__/WithGroupButton.js +3 -3
- package/esm/core/Card/card.mdx +37 -18
- package/esm/core/Checkbox/Checkbox.stories.js +15 -0
- package/{core/Checkboxes → esm/core/Checkbox}/Checkbox.stories.playwright.json +3 -3
- package/esm/core/{Checkboxes → Checkbox}/__stories__/ConditionalReveal.js +6 -6
- package/esm/core/{Checkboxes → Checkbox}/__stories__/Default.js +5 -5
- package/esm/core/{Checkboxes → Checkbox}/__stories__/MultipleQuestions.js +5 -5
- package/esm/core/{Checkboxes → Checkbox}/__stories__/NoneAnswer.js +5 -5
- package/esm/core/{Checkboxes → Checkbox}/__stories__/NoneAnswerWithError.js +7 -7
- package/{es/core/Checkboxes → esm/core/Checkbox}/__stories__/WithErrorMessage.js +7 -7
- package/{es/core/Checkboxes → esm/core/Checkbox}/__stories__/WithHint.js +5 -5
- package/{es/core/Checkboxes/checkboxes.mdx → esm/core/Checkbox/checkbox.mdx} +36 -16
- package/esm/core/{Checkboxes → Checkbox}/index.js +0 -0
- package/esm/core/DateInputContainer/DateInputContainer.stories.js +12 -0
- package/esm/core/{DateInput/DateInput.stories.playwright.json → DateInputContainer/DateInputContainer.stories.playwright.json} +0 -0
- package/esm/core/{DateInput → DateInputContainer}/__stories__/Default.js +5 -5
- package/{es/core/DateInput → esm/core/DateInputContainer}/__stories__/MultipleQuestions.js +5 -5
- package/{es/core/DateInput → esm/core/DateInputContainer}/__stories__/WithErrorMessage.js +7 -7
- package/esm/core/{DateInput → DateInputContainer}/__stories__/WithErrorMessageForSingleField.js +7 -7
- package/esm/core/{DateInput → DateInputContainer}/index.js +2 -2
- package/esm/core/DateInputContainer/index.mdx +44 -0
- package/esm/core/Details/Details.stories.js +2 -2
- package/esm/core/Details/__stories__/Default.js +1 -1
- package/esm/core/Details/index.mdx +1 -3
- package/esm/core/Divider/__stories__/Default.js +1 -1
- package/esm/core/Divider/index.js +1 -1
- package/esm/core/ErrorMessage/ErrorMessage.stories.js +2 -2
- package/esm/core/ErrorMessage/__stories__/Default.js +7 -7
- package/esm/core/ErrorMessage/index.mdx +2 -5
- package/esm/core/ErrorSummary/ErrorSummary.stories.js +5 -5
- package/esm/core/ErrorSummary/__stories__/Default.js +3 -3
- package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +10 -10
- package/esm/core/ErrorSummary/__stories__/LinkedToField.js +10 -10
- package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +11 -11
- package/esm/core/ErrorSummary/index.mdx +16 -8
- package/esm/core/{Field → FieldContainer}/index.js +2 -2
- package/esm/core/FileUpload/__stories__/Default.js +4 -4
- package/esm/core/FileUpload/__stories__/WithErrorMessage.js +6 -6
- package/esm/core/FileUpload/index.mdx +6 -4
- package/esm/core/{Label → LabelContainer}/index.js +2 -2
- package/esm/core/Link/__stories__/DarkBackground.js +3 -3
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +3 -3
- package/esm/core/Link/__stories__/Default.js +1 -1
- package/esm/core/Link/__stories__/ExternalLink.js +2 -2
- package/esm/core/Link/__stories__/NoUnderline.js +1 -1
- package/esm/core/Link/__stories__/OpensInNewTab.js +3 -3
- package/esm/core/Link/index.js +1 -1
- package/esm/core/Link/link.mdx +22 -6
- package/esm/core/List/List.stories.js +6 -6
- package/esm/core/List/__stories__/BulletList.js +2 -1
- package/esm/core/List/__stories__/Default.js +3 -2
- package/esm/core/List/__stories__/NestedBulletList.js +2 -1
- package/esm/core/List/__stories__/NestedListWithVariantStyles.js +2 -1
- package/esm/core/List/__stories__/NumberedList.js +2 -1
- package/esm/core/List/__stories__/WithExtraSpace.js +2 -1
- package/esm/core/List/index.mdx +6 -3
- package/esm/core/Masthead/__stories__/Default.js +5 -3
- package/esm/core/Masthead/masthead.mdx +1 -1
- package/esm/core/NavList/NavHorizontalListItemButton.js +3 -0
- package/esm/core/NavList/NavHorizontalListItemLink.js +3 -0
- package/esm/core/NavList/NavMenu.js +3 -0
- package/esm/core/NavList/NavMenuContainer.js +3 -0
- package/esm/core/NavList/NavMenuContainerContent.js +3 -0
- package/esm/core/NavList/NavMenuContainerContentList.js +3 -0
- package/esm/core/NavList/NavMenuContainerContentListItem.js +3 -0
- package/esm/core/NavList/NavMenuContainerTitle.js +3 -0
- package/esm/core/NavList/__stories__/Default.js +1 -1
- package/esm/core/NavList/__stories__/NavHorizontalLayout.js +2 -1
- package/esm/core/NavList/index.js +8 -0
- package/esm/core/NavList/index.mdx +5 -2
- package/esm/core/NotificationBanner/NotificationBanner.stories.js +3 -3
- package/esm/core/NotificationBanner/__stories__/Default.js +1 -1
- package/esm/core/NotificationBanner/__stories__/Success.js +1 -1
- package/esm/core/NotificationBanner/index.mdx +7 -5
- package/esm/core/PhaseBanner/PhaseBanner.stories.js +3 -3
- package/esm/core/PhaseBanner/__stories__/Default.js +2 -2
- package/esm/core/PhaseBanner/__stories__/Underlined.js +2 -2
- package/esm/core/PhaseBanner/index.mdx +6 -4
- package/esm/core/RadioContainer/RadioContainer.stories.js +15 -0
- package/{core/Radios/Radios.stories.playwright.json → esm/core/RadioContainer/RadioContainer.stories.playwright.json} +3 -3
- package/esm/core/{Radios → RadioContainer}/__stories__/ConditionalReveal.js +6 -6
- package/{es/core/Radios → esm/core/RadioContainer}/__stories__/Default.js +3 -3
- package/{es/core/Radios → esm/core/RadioContainer}/__stories__/Inline.js +5 -5
- package/{es/core/Radios → esm/core/RadioContainer}/__stories__/MultipleQuestions.js +5 -5
- package/esm/core/{Radios → RadioContainer}/__stories__/NoneAnswer.js +3 -3
- package/esm/core/{Radios → RadioContainer}/__stories__/WithErrorMessage.js +7 -7
- package/{es/core/Radios → esm/core/RadioContainer}/__stories__/WithHints.js +5 -5
- package/esm/core/{Radios → RadioContainer}/index.js +2 -2
- package/{core/Radios → esm/core/RadioContainer}/index.mdx +37 -17
- package/esm/core/SelectContainer/Select.stories.js +11 -0
- package/esm/core/{Select → SelectContainer}/Select.stories.playwright.json +2 -2
- package/{es/core/Select → esm/core/SelectContainer}/__stories__/Default.js +4 -4
- package/esm/core/{Select → SelectContainer}/__stories__/DisabledInput.js +4 -4
- package/{es/core/Select → esm/core/SelectContainer}/__stories__/WithHint.js +4 -4
- package/esm/core/{Select → SelectContainer}/index.js +2 -2
- package/esm/core/SelectContainer/index.mdx +42 -0
- package/esm/core/ServiceBadge/index.mdx +42 -0
- package/esm/core/SummaryList/__stories__/Default.js +3 -3
- package/esm/core/SummaryList/__stories__/RowVariations.js +3 -3
- package/esm/core/SummaryList/__stories__/WithActions.js +4 -4
- package/esm/core/SummaryList/__stories__/WithKeyAndAction.js +4 -4
- package/esm/core/SummaryList/__stories__/WithoutBorders.js +1 -1
- package/esm/core/SummaryList/index.mdx +13 -7
- package/esm/core/Table/__stories__/WithFloatingScroll.js +4 -3
- package/esm/core/Table/__stories__/WithHeader.js +1 -1
- package/esm/core/Table/__stories__/WithLoader.js +4 -4
- package/esm/core/Table/index.mdx +32 -9
- package/esm/core/Tabs/Tabs.stories.js +5 -5
- package/esm/core/Tabs/__stories__/Default.js +6 -6
- package/esm/core/Tabs/index.mdx +1 -3
- package/esm/core/TextArea/TextArea.stories.js +10 -10
- package/esm/core/TextArea/__stories__/Default.js +5 -5
- package/esm/core/TextArea/__stories__/DisabledInput.js +6 -6
- package/esm/core/TextArea/__stories__/LimitedCharacters.js +6 -6
- package/esm/core/TextArea/__stories__/MultipleQuestions.js +5 -5
- package/esm/core/TextArea/__stories__/WithDeclaredRows.js +6 -6
- package/esm/core/TextArea/__stories__/WithErrorMessage.js +7 -7
- package/esm/core/TextArea/__stories__/WithHint.js +6 -6
- package/esm/core/TextArea/index.mdx +31 -13
- package/esm/core/TextInput/TextInput.stories.js +11 -11
- package/esm/core/TextInput/__stories__/AskingForNumbers.js +6 -6
- package/esm/core/TextInput/__stories__/Default.js +5 -5
- package/esm/core/TextInput/__stories__/DisabledInput.js +6 -6
- package/esm/core/TextInput/__stories__/FixedWidths.js +10 -10
- package/esm/core/TextInput/__stories__/FluidWidths.js +10 -10
- package/esm/core/TextInput/__stories__/MultipleQuestions.js +4 -4
- package/esm/core/TextInput/__stories__/WithErrorMessage.js +7 -7
- package/esm/core/TextInput/__stories__/WithHint.js +6 -6
- package/esm/core/TextInput/index.mdx +36 -11
- package/esm/core/VisuallyHidden/VisuallyHidden.stories.js +2 -2
- package/esm/core/VisuallyHidden/__stories__/Default.js +4 -4
- package/esm/core/VisuallyHidden/index.mdx +1 -1
- package/esm/core/WarningText/WarningText.stories.js +4 -4
- package/esm/core/WarningText/__stories__/Default.js +1 -1
- package/esm/core/WarningText/index.mdx +2 -4
- package/esm/core/index.js +5 -5
- package/esm/govgr/{Logo → GovGRLogo}/govgr-logo.svg +0 -0
- package/esm/govgr/{Logo → GovGRLogo}/index.js +0 -0
- package/esm/govgr/{Logo → GovGRLogo}/logo.js +0 -0
- package/esm/govgr/index.js +1 -1
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/Content/index.mdx +48 -0
- package/esm/layouts/Basic/Main/index.mdx +1 -3
- package/esm/layouts/Basic/Masthead/index.mdx +1 -3
- package/esm/layouts/Basic/Side/index.mdx +55 -0
- package/esm/layouts/Basic/Top/index.mdx +2 -4
- package/esm/layouts/Basic/__stories__/Default.js +5 -3
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +7 -4
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +7 -4
- package/esm/layouts/Basic/index.mdx +6 -8
- package/esm/layouts/Grid/Grid.stories.js +3 -3
- package/esm/layouts/Grid/__stories__/Default.js +2 -2
- package/esm/layouts/Grid/__stories__/Inline.js +2 -2
- package/esm/registry.js +42 -24
- package/esm/themes/grnet.js +1 -1
- package/esm/typography/Heading/__stories__/Default.js +1 -1
- package/esm/typography/Heading/index.mdx +1 -1
- package/esm/typography/HeadingCaption/__stories__/Default.js +2 -2
- package/esm/typography/HeadingCaption/__stories__/NestedToTitle.js +2 -2
- package/esm/typography/HeadingCaption/index.mdx +6 -2
- package/esm/typography/Hint/Hint.stories.js +3 -3
- package/esm/typography/Hint/__stories__/Default.js +2 -2
- package/esm/typography/Hint/__stories__/FontSizes.js +2 -2
- package/esm/typography/Hint/index.mdx +6 -2
- package/esm/typography/NormalText/NormalText.stories.js +5 -5
- package/esm/typography/NormalText/__stories__/Default.js +2 -2
- package/esm/typography/NormalText/__stories__/FontSizes.js +3 -3
- package/esm/typography/NormalText/__stories__/FontWeight.js +2 -2
- package/esm/typography/NormalText/__stories__/Variants.js +3 -3
- package/esm/typography/NormalText/index.mdx +16 -4
- package/esm/typography/Paragraph/Paragraph.stories.js +6 -6
- package/esm/typography/Paragraph/__stories__/Default.js +2 -2
- package/esm/typography/Paragraph/__stories__/FontSizes.js +2 -2
- 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 +21 -5
- package/esm/typography/index.js +0 -2
- package/esm/typography/index.mdx +4 -0
- package/esm/utils/Kitchensink/AllComponents.js +3 -3
- package/esm/utils/Kitchensink/KitchensinkByCategory.js +4 -4
- package/esm/utils/Kitchensink/KitchensinkByLetter.js +3 -3
- package/esm/utils/Kitchensink/KitchensinkComponent.js +10 -10
- package/esm/utils/Kitchensink/KitchensinkDashboard.js +4 -4
- package/govgr/{Logo → GovGRLogo}/govgr-logo.svg +0 -0
- package/govgr/{Logo → GovGRLogo}/index.d.ts +0 -0
- package/govgr/{Logo → GovGRLogo}/index.js +0 -0
- package/govgr/{Logo → GovGRLogo}/logo.d.ts +0 -0
- package/govgr/{Logo → GovGRLogo}/logo.js +0 -0
- package/govgr/index.d.ts +1 -1
- package/govgr/index.js +4 -4
- package/layouts/Basic/Content/index.mdx +48 -0
- package/layouts/Basic/Main/index.mdx +1 -3
- package/layouts/Basic/Masthead/index.mdx +1 -3
- package/layouts/Basic/Side/index.mdx +55 -0
- package/layouts/Basic/Top/index.mdx +2 -4
- package/layouts/Basic/__stories__/Default.js +5 -7
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +8 -8
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +8 -8
- package/layouts/Basic/index.mdx +6 -8
- package/layouts/Grid/Grid.stories.d.ts +2 -2
- package/layouts/Grid/Grid.stories.js +2 -2
- package/layouts/Grid/__stories__/Default.js +15 -15
- package/layouts/Grid/__stories__/Inline.js +15 -15
- package/package.json +4 -4
- package/registry.d.ts +25 -16
- package/registry.js +53 -26
- package/src/admin/AdminLayout/index.tsx +10 -0
- package/src/admin/AutoComplete/AutoComplete.stories.js +14 -0
- package/src/admin/AutoComplete/Status/index.tsx +142 -0
- package/src/admin/AutoComplete/__stories__/Default.tsx +15 -0
- package/src/admin/AutoComplete/__stories__/WithAutoSelect.tsx +31 -0
- package/src/admin/AutoComplete/__stories__/WithDefaultValue.tsx +20 -0
- package/src/admin/AutoComplete/__stories__/WithInLine.tsx +20 -0
- package/src/admin/AutoComplete/__stories__/WithMinLength.tsx +25 -0
- package/src/admin/AutoComplete/__stories__/WithPlaceHolder.tsx +20 -0
- package/src/admin/AutoComplete/__stories__/WithShowAllValues.tsx +20 -0
- package/src/admin/AutoComplete/__stories__/utils.ts +0 -0
- package/src/admin/AutoComplete/index.mdx +73 -0
- package/src/admin/AutoComplete/index.tsx +656 -0
- package/src/admin/AutoComplete/utils.ts +301 -0
- package/src/admin/Chip/index.tsx +8 -0
- package/src/admin/CircularProgress/CircularProgress.stories.js +7 -0
- package/src/admin/CircularProgress/__stories__/Default.tsx +12 -0
- package/src/admin/CircularProgress/index.tsx +4 -0
- package/src/admin/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/src/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
- package/src/admin/CopyToClipboard/__stories__/Banner.tsx +16 -0
- package/src/admin/CopyToClipboard/__stories__/Default.tsx +19 -0
- package/src/admin/CopyToClipboard/index.mdx +26 -0
- package/src/admin/CopyToClipboard/index.tsx +60 -0
- package/src/admin/Drawer/Drawer.stories.js +11 -0
- package/src/admin/Drawer/__stories__/Default.tsx +69 -0
- package/src/admin/Drawer/index.mdx +16 -0
- package/src/admin/Drawer/index.tsx +5 -0
- package/src/admin/Dropdown/Dropdown.stories.js +15 -0
- package/src/admin/Dropdown/__stories__/AlignRight.tsx +61 -0
- package/src/admin/Dropdown/__stories__/Default.tsx +53 -0
- package/src/admin/Dropdown/__stories__/PlacementTop.tsx +61 -0
- package/src/admin/Dropdown/index.mdx +45 -0
- package/src/admin/Dropdown/index.tsx +87 -0
- package/src/admin/DropdownArrowDown/index.tsx +4 -0
- package/src/admin/FillableText/index.tsx +4 -0
- package/src/admin/FilterSection/index.tsx +10 -0
- package/src/admin/FullPageBackground/index.tsx +4 -0
- package/src/admin/LabeledText/index.tsx +4 -0
- package/src/admin/LoaderContainer/index.tsx +4 -0
- package/src/admin/Modal/Modal.stories.js +12 -0
- package/src/admin/Modal/__stories__/AlertDialog.tsx +37 -0
- package/src/admin/Modal/__stories__/Default.tsx +37 -0
- package/src/admin/Modal/index.mdx +33 -0
- package/src/admin/Modal/index.tsx +87 -0
- package/src/admin/Pagination/Pagination.stories.js +12 -0
- package/src/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/src/admin/Pagination/__stories__/Default.tsx +165 -0
- package/src/admin/Pagination/__stories__/PaginationSmall.tsx +44 -0
- package/src/admin/Pagination/index.mdx +16 -0
- package/src/admin/Pagination/index.tsx +45 -0
- package/src/admin/ResultsHeading/index.tsx +6 -0
- package/src/admin/SearchSection/index.tsx +6 -0
- package/src/admin/StepNav/StepNav.stories.js +11 -0
- package/src/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/src/admin/StepNav/__stories__/Default.tsx +149 -0
- package/src/admin/StepNav/index.tsx +29 -0
- package/src/admin/TableLoaderBackground/index.tsx +4 -0
- package/src/admin/TaskList/TaskList.stories.js +9 -0
- package/src/admin/TaskList/__stories__/Default.tsx +119 -0
- package/src/admin/TaskList/index.tsx +8 -0
- package/src/admin/Timeline/Timeline.stories.js +9 -0
- package/src/admin/Timeline/__stories__/Default.tsx +127 -0
- package/src/admin/Timeline/index.tsx +8 -0
- package/src/admin/index.ts +21 -0
- package/src/api/APIErrors.tsx +44 -0
- package/src/api/APIProvider.tsx +27 -0
- package/src/api/fetchAPI.ts +45 -0
- package/src/api/index.spec.tsx +419 -0
- package/src/api/index.tsx +16 -0
- package/src/api/introduction.md +6 -0
- package/src/api/useResource.tsx +96 -0
- package/src/api/useResourceAction.tsx +80 -0
- package/src/api/useResourceQuery.tsx +177 -0
- package/src/api/utils.tsx +156 -0
- package/src/app/App.tsx +15 -0
- package/src/app/Confirmation/Confirmation.mdx +16 -0
- package/src/app/Confirmation/Confirmation.stories.js +10 -0
- package/src/app/Confirmation/__stories__/Default.tsx +19 -0
- package/src/app/Confirmation/index.tsx +6 -0
- package/src/app/Footer/Footer.mdx +46 -0
- package/src/app/Footer/Footer.stories.js +19 -0
- package/src/app/Footer/Footer.stories.playwright.json +27 -0
- package/src/app/Footer/__stories__/Default.tsx +7 -0
- package/src/app/Footer/__stories__/DefaultCopyright.tsx +43 -0
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +108 -0
- package/src/app/Footer/__stories__/FooterWithLink.tsx +57 -0
- package/src/app/Footer/__stories__/FooterWithLogo.tsx +53 -0
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +83 -0
- package/src/app/Footer/__stories__/YearCopyright.tsx +45 -0
- package/src/app/Footer/index.tsx +18 -0
- package/src/app/Header/Header.stories.js +20 -0
- package/src/app/Header/Header.stories.playwright.json +33 -0
- package/src/app/Header/HeaderContent.tsx +4 -0
- package/src/app/Header/HeaderLogo.tsx +4 -0
- package/src/app/Header/HeaderNavMenuContent.tsx +4 -0
- package/src/app/Header/HeaderSecondaryLogo.tsx +4 -0
- package/src/app/Header/HeaderSection.tsx +4 -0
- package/src/app/Header/HeaderSubtitle.tsx +4 -0
- package/src/app/Header/HeaderTitle.tsx +4 -0
- package/src/app/Header/__snapshots__/index.spec.tsx.snap +396 -0
- package/src/app/Header/__stories__/Default.tsx +17 -0
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +48 -0
- package/src/app/Header/__stories__/WithNavigation.tsx +49 -0
- package/src/app/Header/__stories__/WithServiceName.tsx +19 -0
- package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +24 -0
- package/src/app/Header/index.mdx +43 -0
- package/src/app/Header/index.spec.tsx +29 -0
- package/src/app/Header/index.tsx +11 -0
- package/src/app/I18nText.tsx +79 -0
- package/src/app/NotFound/NotFound.stories.js +7 -0
- package/src/app/NotFound/__stories__/Default.tsx +6 -0
- package/src/app/NotFound/index.mdx +16 -0
- package/src/app/NotFound/index.tsx +21 -0
- package/src/app/OutdatedBrowserBanner.tsx +37 -0
- package/src/app/PageTitle.tsx +6 -0
- package/src/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +7 -0
- package/src/app/PhaseBannerHeader/__stories__/Default.tsx +11 -0
- package/src/app/PhaseBannerHeader/index.mdx +16 -0
- package/src/app/PhaseBannerHeader/index.tsx +30 -0
- package/src/app/QrCodeScanner/QrCodeScanner.stories.js +7 -0
- package/src/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/src/app/QrCodeScanner/__stories__/Default.tsx +43 -0
- package/src/app/QrCodeScanner/index.spec.tsx +19 -0
- package/src/app/QrCodeScanner/index.tsx +95 -0
- package/src/app/QrCodeViewer/QRCode.stories.js +10 -0
- package/src/app/QrCodeViewer/__stories__/Custom.tsx +25 -0
- package/src/app/QrCodeViewer/__stories__/Default.tsx +9 -0
- package/src/app/QrCodeViewer/index.mdx +28 -0
- package/src/app/QrCodeViewer/index.tsx +175 -0
- package/src/app/QrCodeViewer/qrcodegen.ts +1382 -0
- package/src/app/QrCodeViewer/types.ts +30 -0
- package/src/app/QrCodeViewer/utils.ts +112 -0
- package/src/app/i18n.tsx +61 -0
- package/src/app/index.ts +10 -0
- package/src/core/Accordion/Accordion.stories.js +12 -0
- package/src/core/Accordion/Accordion.stories.playwright.json +21 -0
- package/src/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/src/core/Accordion/__stories__/Default.tsx +110 -0
- package/src/core/Accordion/__stories__/WithHints.tsx +120 -0
- package/src/core/Accordion/index.mdx +41 -0
- package/src/core/Accordion/index.spec.tsx +30 -0
- package/src/core/Accordion/index.tsx +85 -0
- package/src/core/BackLink/BackLink.stories.js +7 -0
- package/src/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/src/core/BackLink/__stories__/Default.tsx +6 -0
- package/src/core/BackLink/index.mdx +20 -0
- package/src/core/BackLink/index.tsx +3 -0
- package/src/core/Base/index.tsx +4 -0
- package/src/core/Blockquote/Blockquote.stories.js +10 -0
- package/src/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/core/Blockquote/__stories__/Default.tsx +11 -0
- package/src/core/Blockquote/index.mdx +23 -0
- package/src/core/Blockquote/index.spec.tsx +10 -0
- package/src/core/Blockquote/index.tsx +4 -0
- package/src/core/Breadcrumbs/Breadcrumbs.stories.js +10 -0
- package/src/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/src/core/Breadcrumbs/__stories__/Default.tsx +22 -0
- package/src/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/src/core/Breadcrumbs/index.tsx +5 -0
- package/src/core/Button/BackButton.tsx +23 -0
- package/src/core/Button/BackLink.tsx +4 -0
- package/src/core/Button/Button.stories.js +22 -0
- package/src/core/Button/Button.stories.playwright.json +115 -0
- package/src/core/Button/ButtonLink.tsx +4 -0
- package/src/core/Button/CallToAction.tsx +4 -0
- package/src/core/Button/Icon.tsx +9 -0
- package/src/core/Button/ThemeToggleButton.tsx +52 -0
- package/src/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/core/Button/__stories__/Back.tsx +9 -0
- package/src/core/Button/__stories__/ButtonLinkButton.tsx +17 -0
- package/src/core/Button/__stories__/CallToActionButton.tsx +17 -0
- package/src/core/Button/__stories__/Disabled.tsx +8 -0
- package/src/core/Button/__stories__/GroupingButtons.tsx +13 -0
- package/src/core/Button/__stories__/GroupingButtonsAndLinks.tsx +15 -0
- package/src/core/Button/__stories__/Primary.tsx +10 -0
- package/src/core/Button/__stories__/Secondary.tsx +12 -0
- package/src/core/Button/__stories__/ThemeToggle.tsx +5 -0
- package/src/core/Button/__stories__/Warning.tsx +10 -0
- package/src/core/Button/__stories__/WithVariantLink.tsx +18 -0
- package/src/core/Button/index.mdx +113 -0
- package/src/core/Button/index.spec.tsx +8 -0
- package/src/core/Button/index.tsx +24 -0
- package/src/core/Card/Card.stories.js +19 -0
- package/src/core/Card/Card.stories.playwright.json +21 -0
- package/src/core/Card/__stories__/Default.tsx +20 -0
- package/src/core/Card/__stories__/WithClickableContent.tsx +19 -0
- package/src/core/Card/__stories__/WithClickableLink.tsx +19 -0
- package/src/core/Card/__stories__/WithDarkBorder.tsx +20 -0
- package/src/core/Card/__stories__/WithDarkTopBorder.tsx +20 -0
- package/src/core/Card/__stories__/WithDivider.tsx +20 -0
- package/src/core/Card/__stories__/WithGrayBorder.tsx +20 -0
- package/src/core/Card/__stories__/WithGrayTopBorder.tsx +20 -0
- package/src/core/Card/__stories__/WithGroupButton.tsx +25 -0
- package/src/core/Card/card.mdx +101 -0
- package/src/core/Card/index.tsx +7 -0
- package/src/core/Checkbox/Checkbox.stories.js +16 -0
- package/src/core/Checkbox/Checkbox.stories.playwright.json +55 -0
- package/src/core/Checkbox/__stories__/ConditionalReveal.tsx +40 -0
- package/src/core/Checkbox/__stories__/Default.tsx +35 -0
- package/src/core/Checkbox/__stories__/MultipleQuestions.tsx +35 -0
- package/src/core/Checkbox/__stories__/NoneAnswer.tsx +38 -0
- package/src/core/Checkbox/__stories__/NoneAnswerWithError.tsx +45 -0
- package/src/core/Checkbox/__stories__/WithErrorMessage.tsx +39 -0
- package/src/core/Checkbox/__stories__/WithHint.tsx +36 -0
- package/src/core/Checkbox/checkbox.mdx +78 -0
- package/src/core/Checkbox/index.tsx +5 -0
- package/src/core/DateInputContainer/DateInputContainer.stories.js +13 -0
- package/src/core/DateInputContainer/DateInputContainer.stories.playwright.json +61 -0
- package/src/core/DateInputContainer/__stories__/Default.tsx +32 -0
- package/src/core/DateInputContainer/__stories__/MultipleQuestions.tsx +32 -0
- package/src/core/DateInputContainer/__stories__/WithErrorMessage.tsx +42 -0
- package/src/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +38 -0
- package/src/core/DateInputContainer/index.mdx +44 -0
- package/src/core/DateInputContainer/index.tsx +4 -0
- package/src/core/Details/Details.stories.js +10 -0
- package/src/core/Details/Details.stories.playwright.json +27 -0
- package/src/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/src/core/Details/__stories__/Default.tsx +21 -0
- package/src/core/Details/index.mdx +20 -0
- package/src/core/Details/index.spec.tsx +38 -0
- package/src/core/Details/index.tsx +6 -0
- package/src/core/Divider/Divider.stories.js +9 -0
- package/src/core/Divider/__stories__/Default.tsx +13 -0
- package/src/core/Divider/index.tsx +13 -0
- package/src/core/ErrorMessage/ErrorMessage.stories.js +10 -0
- package/src/core/ErrorMessage/__stories__/Default.tsx +38 -0
- package/src/core/ErrorMessage/index.mdx +22 -0
- package/src/core/ErrorMessage/index.tsx +3 -0
- package/src/core/ErrorSummary/ErrorSummary.stories.js +13 -0
- package/src/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/src/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/src/core/ErrorSummary/__stories__/Default.tsx +13 -0
- package/src/core/ErrorSummary/__stories__/LinkedToCheckbox.tsx +46 -0
- package/src/core/ErrorSummary/__stories__/LinkedToField.tsx +49 -0
- package/src/core/ErrorSummary/__stories__/LinkedToInput.tsx +35 -0
- package/src/core/ErrorSummary/index.mdx +54 -0
- package/src/core/ErrorSummary/index.spec.tsx +9 -0
- package/src/core/ErrorSummary/index.tsx +3 -0
- package/src/core/FieldContainer/index.tsx +6 -0
- package/src/core/FileUpload/FileUpload.stories.js +9 -0
- package/src/core/FileUpload/__stories__/Default.tsx +22 -0
- package/src/core/FileUpload/__stories__/WithErrorMessage.tsx +28 -0
- package/src/core/FileUpload/index.mdx +27 -0
- package/src/core/FileUpload/index.tsx +4 -0
- package/src/core/Form/index.tsx +5 -0
- package/src/core/Hidden/index.tsx +1 -0
- package/src/core/LabelContainer/index.tsx +5 -0
- package/src/core/Link/Link.stories.js +13 -0
- package/src/core/Link/Link.stories.playwright.json +65 -0
- package/src/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/src/core/Link/__stories__/DarkBackground.tsx +20 -0
- package/src/core/Link/__stories__/DarkBackgroundNoUnderline.tsx +21 -0
- package/src/core/Link/__stories__/Default.tsx +10 -0
- package/src/core/Link/__stories__/ExternalLink.tsx +18 -0
- package/src/core/Link/__stories__/NoUnderline.tsx +15 -0
- package/src/core/Link/__stories__/OpensInNewTab.tsx +11 -0
- package/src/core/Link/index.spec.tsx +22 -0
- package/src/core/Link/index.tsx +41 -0
- package/src/core/Link/link.mdx +54 -0
- package/src/core/List/List.stories.js +15 -0
- package/src/core/List/List.stories.playwright.json +27 -0
- package/src/core/List/List.tsx +3 -0
- package/src/core/List/ListItem.tsx +5 -0
- package/src/core/List/ListItemContent.tsx +19 -0
- package/src/core/List/ListItemIcon.tsx +17 -0
- package/src/core/List/ListItemText.tsx +20 -0
- package/src/core/List/ListItemTitle.tsx +32 -0
- package/src/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/src/core/List/__stories__/BulletList.tsx +13 -0
- package/src/core/List/__stories__/Default.tsx +20 -0
- package/src/core/List/__stories__/NestedBulletList.tsx +36 -0
- package/src/core/List/__stories__/NestedListWithVariantStyles.tsx +42 -0
- package/src/core/List/__stories__/NumberedList.tsx +13 -0
- package/src/core/List/__stories__/WithExtraSpace.tsx +13 -0
- package/src/core/List/index.mdx +34 -0
- package/src/core/List/index.spec.tsx +9 -0
- package/src/core/List/index.tsx +7 -0
- package/src/core/Masthead/Masthead.stories.js +11 -0
- package/src/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/src/core/Masthead/__stories__/Default.tsx +27 -0
- package/src/core/Masthead/index.tsx +4 -0
- package/src/core/Masthead/masthead.mdx +18 -0
- package/src/core/NavList/NavHorizontal.tsx +4 -0
- package/src/core/NavList/NavHorizontalList.tsx +4 -0
- package/src/core/NavList/NavHorizontalListItem.tsx +4 -0
- package/src/core/NavList/NavHorizontalListItemButton.tsx +3 -0
- package/src/core/NavList/NavHorizontalListItemLink.tsx +3 -0
- package/src/core/NavList/NavList.stories.js +11 -0
- package/src/core/NavList/NavList.stories.playwright.json +33 -0
- package/src/core/NavList/NavList.tsx +24 -0
- package/src/core/NavList/NavListBase.tsx +71 -0
- package/src/core/NavList/NavListContext.tsx +85 -0
- package/src/core/NavList/NavListItem.tsx +146 -0
- package/src/core/NavList/NavListItemBase.tsx +149 -0
- package/src/core/NavList/NavListSubMenu.tsx +34 -0
- package/src/core/NavList/NavMenu.tsx +4 -0
- package/src/core/NavList/NavMenuContainer.tsx +4 -0
- package/src/core/NavList/NavMenuContainerContent.tsx +4 -0
- package/src/core/NavList/NavMenuContainerContentList.tsx +4 -0
- package/src/core/NavList/NavMenuContainerContentListItem.tsx +4 -0
- package/src/core/NavList/NavMenuContainerTitle.tsx +4 -0
- package/src/core/NavList/NavVertical.tsx +4 -0
- package/src/core/NavList/NavVerticalItem.tsx +4 -0
- package/src/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/src/core/NavList/__stories__/Default.tsx +51 -0
- package/src/core/NavList/__stories__/NavHorizontalLayout.tsx +54 -0
- package/src/core/NavList/index.mdx +32 -0
- package/src/core/NavList/index.spec.tsx +9 -0
- package/src/core/NavList/index.tsx +21 -0
- package/src/core/NavList/types.tsx +15 -0
- package/src/core/NotificationBanner/NotificationBanner.stories.js +13 -0
- package/src/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/src/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/src/core/NotificationBanner/__stories__/Default.tsx +13 -0
- package/src/core/NotificationBanner/__stories__/Success.tsx +14 -0
- package/src/core/NotificationBanner/index.mdx +34 -0
- package/src/core/NotificationBanner/index.spec.tsx +22 -0
- package/src/core/NotificationBanner/index.tsx +52 -0
- package/src/core/PhaseBanner/PhaseBanner.stories.js +11 -0
- package/src/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/src/core/PhaseBanner/__stories__/Default.tsx +21 -0
- package/src/core/PhaseBanner/__stories__/Underlined.tsx +21 -0
- package/src/core/PhaseBanner/index.mdx +30 -0
- package/src/core/PhaseBanner/index.tsx +6 -0
- package/src/core/RadioContainer/RadioContainer.stories.js +16 -0
- package/src/core/RadioContainer/RadioContainer.stories.playwright.json +49 -0
- package/src/core/RadioContainer/__stories__/ConditionalReveal.tsx +40 -0
- package/src/core/RadioContainer/__stories__/Default.tsx +33 -0
- package/src/core/RadioContainer/__stories__/Inline.tsx +33 -0
- package/src/core/RadioContainer/__stories__/MultipleQuestions.tsx +40 -0
- package/src/core/RadioContainer/__stories__/NoneAnswer.tsx +31 -0
- package/src/core/RadioContainer/__stories__/WithErrorMessage.tsx +38 -0
- package/src/core/RadioContainer/__stories__/WithHints.tsx +44 -0
- package/src/core/RadioContainer/index.mdx +90 -0
- package/src/core/RadioContainer/index.tsx +5 -0
- package/src/core/SectionBreak/index.tsx +4 -0
- package/src/core/SelectContainer/Select.stories.js +12 -0
- package/src/core/SelectContainer/Select.stories.playwright.json +21 -0
- package/src/core/SelectContainer/__stories__/Default.tsx +25 -0
- package/src/core/SelectContainer/__stories__/DisabledInput.tsx +30 -0
- package/src/core/SelectContainer/__stories__/WithHint.tsx +27 -0
- package/src/core/SelectContainer/index.mdx +42 -0
- package/src/core/SelectContainer/index.tsx +5 -0
- package/src/core/ServiceBadge/index.mdx +42 -0
- package/src/core/ServiceBadge/index.tsx +27 -0
- package/src/core/SkipLink/index.tsx +4 -0
- package/src/core/SummaryList/SummaryList.stories.js +15 -0
- package/src/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/src/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/src/core/SummaryList/__stories__/Default.tsx +37 -0
- package/src/core/SummaryList/__stories__/RowVariations.tsx +113 -0
- package/src/core/SummaryList/__stories__/WithActions.tsx +57 -0
- package/src/core/SummaryList/__stories__/WithKeyAndAction.tsx +53 -0
- package/src/core/SummaryList/__stories__/WithoutBorders.tsx +31 -0
- package/src/core/SummaryList/index.mdx +42 -0
- package/src/core/SummaryList/index.spec.tsx +28 -0
- package/src/core/SummaryList/index.tsx +9 -0
- package/src/core/SvgIcon/index.tsx +11 -0
- package/src/core/Table/Table.stories.js +26 -0
- package/src/core/Table/Table.stories.playwright.json +21 -0
- package/src/core/Table/TableFloatingScroll.tsx +79 -0
- package/src/core/Table/__stories__/DarkVariant.tsx +47 -0
- package/src/core/Table/__stories__/DarkVariantWithVerticalHeaders.tsx +59 -0
- package/src/core/Table/__stories__/Default.tsx +47 -0
- package/src/core/Table/__stories__/DefinedWidth.tsx +42 -0
- package/src/core/Table/__stories__/Densed.tsx +79 -0
- package/src/core/Table/__stories__/Full.tsx +105 -0
- package/src/core/Table/__stories__/MultipleProps.tsx +62 -0
- package/src/core/Table/__stories__/NoData.tsx +34 -0
- package/src/core/Table/__stories__/NumericDataType.tsx +51 -0
- package/src/core/Table/__stories__/TableCaptions.tsx +17 -0
- package/src/core/Table/__stories__/VerticalBorders.tsx +57 -0
- package/src/core/Table/__stories__/VerticalHeaders.tsx +57 -0
- package/src/core/Table/__stories__/WithFloatingScroll.tsx +103 -0
- package/src/core/Table/__stories__/WithHeader.tsx +93 -0
- package/src/core/Table/__stories__/WithLoader.tsx +127 -0
- package/src/core/Table/__stories__/ZebraProp.tsx +57 -0
- package/src/core/Table/index.mdx +94 -0
- package/src/core/Table/index.tsx +13 -0
- package/src/core/Tabs/Tabs.stories.js +11 -0
- package/src/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/src/core/Tabs/__stories__/Default.tsx +74 -0
- package/src/core/Tabs/index.mdx +18 -0
- package/src/core/Tabs/index.tsx +60 -0
- package/src/core/TextArea/TextArea.stories.js +16 -0
- package/src/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/src/core/TextArea/__stories__/Default.tsx +18 -0
- package/src/core/TextArea/__stories__/DisabledInput.tsx +23 -0
- package/src/core/TextArea/__stories__/LimitedCharacters.tsx +24 -0
- package/src/core/TextArea/__stories__/MultipleQuestions.tsx +20 -0
- package/src/core/TextArea/__stories__/WithDeclaredRows.tsx +23 -0
- package/src/core/TextArea/__stories__/WithErrorMessage.tsx +25 -0
- package/src/core/TextArea/__stories__/WithHint.tsx +23 -0
- package/src/core/TextArea/index.mdx +72 -0
- package/src/core/TextArea/index.tsx +3 -0
- package/src/core/TextInput/TextInput.stories.js +17 -0
- package/src/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/src/core/TextInput/__stories__/AskingForNumbers.tsx +22 -0
- package/src/core/TextInput/__stories__/Default.tsx +16 -0
- package/src/core/TextInput/__stories__/DisabledInput.tsx +18 -0
- package/src/core/TextInput/__stories__/FixedWidths.tsx +48 -0
- package/src/core/TextInput/__stories__/FluidWidths.tsx +48 -0
- package/src/core/TextInput/__stories__/MultipleQuestions.tsx +15 -0
- package/src/core/TextInput/__stories__/WithErrorMessage.tsx +20 -0
- package/src/core/TextInput/__stories__/WithHint.tsx +18 -0
- package/src/core/TextInput/index.mdx +88 -0
- package/src/core/TextInput/index.tsx +3 -0
- package/src/core/VisuallyHidden/VisuallyHidden.stories.js +7 -0
- package/src/core/VisuallyHidden/__stories__/Default.tsx +24 -0
- package/src/core/VisuallyHidden/index.mdx +20 -0
- package/src/core/VisuallyHidden/index.tsx +3 -0
- package/src/core/WarningText/WarningText.stories.js +10 -0
- package/src/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/src/core/WarningText/__stories__/Default.tsx +10 -0
- package/src/core/WarningText/index.mdx +21 -0
- package/src/core/WarningText/index.spec.tsx +9 -0
- package/src/core/WarningText/index.tsx +3 -0
- package/src/core/index.ts +36 -0
- package/src/custom.d.ts +8 -0
- package/src/govgr/Footer/Copyright.tsx +72 -0
- package/src/govgr/Footer/HellenicRepublicLogo.tsx +4 -0
- package/src/govgr/Footer/LicenseCCSA.tsx +24 -0
- package/src/govgr/Footer/index.mdx +101 -0
- package/src/govgr/Footer/index.tsx +49 -0
- package/src/govgr/Footer/logo.ts +1 -0
- package/src/govgr/Footer/logos/logo-el.ts +1 -0
- package/src/govgr/Footer/logos/logo-en.ts +1 -0
- package/src/govgr/GovGRLogo/govgr-logo.svg +1 -0
- package/src/govgr/GovGRLogo/index.tsx +5 -0
- package/src/govgr/GovGRLogo/logo.ts +1 -0
- package/src/govgr/images/govgr-logo-base64.ts +1 -0
- package/src/govgr/images/govgr-logo-blue-base64.ts +1 -0
- package/src/govgr/images/greek-government-base64.ts +1 -0
- package/src/govgr/images/grnet-logo-base64.ts +1 -0
- package/src/govgr/images/index.ts +5 -0
- package/src/govgr/images/minedu-logo-base64.ts +1 -0
- package/src/govgr/index.ts +5 -0
- package/src/hooks/useDebounce.ts +50 -0
- package/src/hooks/useKeypress.ts +27 -0
- package/src/hooks/useLatest.ts +12 -0
- package/src/hooks/useOutdatedBrowserCheck.ts +47 -0
- package/src/hooks/useSearch.ts +44 -0
- package/src/hooks/useTogglableSections.tsx +107 -0
- package/src/index.ts +6 -0
- package/src/introduction.md +11 -0
- package/src/layouts/Basic/Aside/index.tsx +4 -0
- package/src/layouts/Basic/Basic.stories.js +12 -0
- package/src/layouts/Basic/Bottom/index.mdx +40 -0
- package/src/layouts/Basic/Bottom/index.tsx +3 -0
- package/src/layouts/Basic/Container/index.tsx +4 -0
- package/src/layouts/Basic/Content/index.mdx +48 -0
- package/src/layouts/Basic/Content/index.tsx +22 -0
- package/src/layouts/Basic/Main/index.mdx +54 -0
- package/src/layouts/Basic/Main/index.tsx +3 -0
- package/src/layouts/Basic/Masthead/index.mdx +61 -0
- package/src/layouts/Basic/Masthead/index.tsx +4 -0
- package/src/layouts/Basic/Side/index.mdx +55 -0
- package/src/layouts/Basic/Side/index.tsx +10 -0
- package/src/layouts/Basic/Top/index.mdx +62 -0
- package/src/layouts/Basic/Top/index.tsx +3 -0
- package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/src/layouts/Basic/__stories__/Default.tsx +19 -0
- package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +34 -0
- package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +26 -0
- package/src/layouts/Basic/index.mdx +39 -0
- package/src/layouts/Basic/index.spec.tsx +24 -0
- package/src/layouts/Basic/index.tsx +12 -0
- package/src/layouts/Grid/Grid.stories.js +8 -0
- package/src/layouts/Grid/__stories__/Default.tsx +43 -0
- package/src/layouts/Grid/__stories__/Inline.tsx +43 -0
- package/src/layouts/Grid/index.tsx +4 -0
- package/src/layouts/index.ts +4 -0
- package/src/locales/el.ts +92 -0
- package/src/locales/en.ts +88 -0
- package/src/registry.js +486 -0
- package/src/router/index.tsx +28 -0
- package/src/test-utils/delay.ts +9 -0
- package/src/themes/grnet.js +110 -0
- package/src/typography/Caption/index.tsx +16 -0
- package/src/typography/Heading/Heading.stories.js +7 -0
- package/src/typography/Heading/__stories__/Default.tsx +22 -0
- package/src/typography/Heading/index.mdx +16 -0
- package/src/typography/Heading/index.tsx +3 -0
- package/src/typography/HeadingCaption/HeadingCaption.stories.js +8 -0
- package/src/typography/HeadingCaption/__stories__/Default.tsx +25 -0
- package/src/typography/HeadingCaption/__stories__/NestedToTitle.tsx +12 -0
- package/src/typography/HeadingCaption/index.mdx +23 -0
- package/src/typography/HeadingCaption/index.tsx +3 -0
- package/src/typography/Hint/Hint.stories.js +8 -0
- package/src/typography/Hint/__stories__/Default.tsx +6 -0
- package/src/typography/Hint/__stories__/FontSizes.tsx +13 -0
- package/src/typography/Hint/index.mdx +23 -0
- package/src/typography/Hint/index.tsx +4 -0
- package/src/typography/NormalText/NormalText.stories.js +10 -0
- package/src/typography/NormalText/__stories__/Default.tsx +6 -0
- package/src/typography/NormalText/__stories__/FontSizes.tsx +23 -0
- package/src/typography/NormalText/__stories__/FontWeight.tsx +13 -0
- package/src/typography/NormalText/__stories__/Variants.tsx +13 -0
- package/src/typography/NormalText/index.mdx +41 -0
- package/src/typography/NormalText/index.tsx +4 -0
- package/src/typography/Paragraph/Paragraph.stories.js +11 -0
- package/src/typography/Paragraph/__stories__/Default.tsx +6 -0
- package/src/typography/Paragraph/__stories__/FontSizes.tsx +16 -0
- package/src/typography/Paragraph/__stories__/FontWeight.tsx +11 -0
- package/src/typography/Paragraph/__stories__/LeadVariant.tsx +8 -0
- package/src/typography/Paragraph/__stories__/SmallVariant.tsx +8 -0
- package/src/typography/Paragraph/index.mdx +49 -0
- package/src/typography/Paragraph/index.tsx +4 -0
- package/src/typography/Title/index.tsx +52 -0
- package/src/typography/index.mdx +4 -0
- package/src/typography/index.ts +5 -0
- package/src/utils/Kitchensink/AllComponents.tsx +6 -0
- package/src/utils/Kitchensink/KitchensinkByCategory.tsx +56 -0
- package/src/utils/Kitchensink/KitchensinkByLetter.tsx +35 -0
- package/src/utils/Kitchensink/KitchensinkComponent.tsx +62 -0
- package/src/utils/Kitchensink/KitchensinkDashboard.tsx +55 -0
- package/src/utils/evaluateBrowserVersion.ts +346 -0
- package/src/utils/withDeprecation.tsx +104 -0
- package/themes/grnet.js +1 -1
- package/typography/Heading/__stories__/Default.js +5 -5
- package/typography/Heading/index.mdx +1 -1
- package/typography/HeadingCaption/__stories__/Default.js +8 -8
- package/typography/HeadingCaption/__stories__/NestedToTitle.js +4 -4
- package/typography/HeadingCaption/index.mdx +6 -2
- package/typography/Hint/Hint.stories.d.ts +2 -2
- package/typography/Hint/Hint.stories.js +2 -2
- package/typography/Hint/__stories__/Default.js +2 -2
- package/typography/Hint/__stories__/FontSizes.js +5 -5
- package/typography/Hint/index.mdx +6 -2
- package/typography/NormalText/NormalText.stories.d.ts +4 -4
- package/typography/NormalText/NormalText.stories.js +4 -4
- package/typography/NormalText/__stories__/Default.js +2 -2
- package/typography/NormalText/__stories__/FontSizes.js +15 -15
- package/typography/NormalText/__stories__/FontWeight.js +5 -5
- package/typography/NormalText/__stories__/Variants.js +5 -5
- package/typography/NormalText/index.mdx +16 -4
- package/typography/Paragraph/Paragraph.stories.d.ts +5 -5
- package/typography/Paragraph/Paragraph.stories.js +5 -5
- package/typography/Paragraph/__stories__/Default.js +2 -2
- package/typography/Paragraph/__stories__/FontSizes.js +8 -8
- package/typography/Paragraph/__stories__/FontWeight.js +3 -3
- package/typography/Paragraph/__stories__/LeadVariant.js +2 -2
- package/typography/Paragraph/__stories__/SmallVariant.js +2 -2
- package/typography/Paragraph/index.mdx +21 -5
- package/typography/index.d.ts +0 -2
- package/typography/index.js +0 -26
- package/typography/index.mdx +4 -0
- package/utils/Kitchensink/KitchensinkByCategory.d.ts +1 -1
- package/utils/Kitchensink/KitchensinkByCategory.js +1 -1
- package/utils/Kitchensink/KitchensinkComponent.d.ts +3 -3
- package/utils/Kitchensink/KitchensinkComponent.js +3 -3
- package/utils/Kitchensink/KitchensinkDashboard.js +2 -2
- package/core/Checkboxes/Checkbox.stories.d.ts +0 -16
- package/core/Checkboxes/__stories__/ConditionalReveal.js +0 -48
- package/core/Checkboxes/__stories__/Default.js +0 -45
- package/core/Checkboxes/__stories__/MultipleQuestions.js +0 -47
- package/core/Checkboxes/__stories__/NoneAnswer.js +0 -47
- package/core/Checkboxes/__stories__/NoneAnswerWithError.js +0 -57
- package/core/Checkboxes/__stories__/WithErrorMessage.js +0 -50
- package/core/Checkboxes/__stories__/WithHint.js +0 -45
- package/core/DateInput/DateInput.stories.d.ts +0 -13
- package/core/DateInput/__stories__/Default.js +0 -41
- package/core/DateInput/__stories__/MultipleQuestions.js +0 -41
- package/core/DateInput/__stories__/WithErrorMessage.js +0 -48
- package/core/DateInput/__stories__/WithErrorMessageForSingleField.js +0 -46
- package/core/DateInput/index.d.ts +0 -4
- package/core/DateInput/index.mdx +0 -39
- package/core/Radios/Radios.stories.d.ts +0 -16
- package/core/Radios/__stories__/ConditionalReveal.js +0 -48
- package/core/Radios/__stories__/Default.js +0 -42
- package/core/Radios/__stories__/Inline.js +0 -44
- package/core/Radios/__stories__/MultipleQuestions.js +0 -50
- package/core/Radios/__stories__/NoneAnswer.js +0 -41
- package/core/Radios/__stories__/WithErrorMessage.js +0 -50
- package/core/Select/Select.stories.d.ts +0 -12
- package/core/Select/__stories__/Default.js +0 -43
- package/core/Select/__stories__/DisabledInput.js +0 -45
- package/core/Select/__stories__/WithHint.js +0 -45
- package/core/Select/index.mdx +0 -46
- package/es/core/Checkboxes/Checkbox.stories.js +0 -15
- package/es/core/DateInput/DateInput.stories.js +0 -12
- package/es/core/DateInput/index.mdx +0 -39
- package/es/core/Radios/Radios.stories.js +0 -15
- package/es/core/Select/Select.stories.js +0 -11
- package/es/core/Select/index.mdx +0 -46
- package/esm/core/Checkboxes/Checkbox.stories.js +0 -15
- package/esm/core/DateInput/DateInput.stories.js +0 -12
- package/esm/core/DateInput/index.mdx +0 -39
- package/esm/core/Radios/Radios.stories.js +0 -15
- package/esm/core/Select/Select.stories.js +0 -11
- package/esm/core/Select/index.mdx +0 -46
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
Pagination,
|
|
5
|
+
PaginationList,
|
|
6
|
+
PaginationListItem,
|
|
7
|
+
PaginationLabel,
|
|
8
|
+
} from '@digigov/ui/admin/Pagination';
|
|
9
|
+
|
|
10
|
+
import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
11
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
12
|
+
import { Divider } from '@digigov/ui/core/Divider';
|
|
13
|
+
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
14
|
+
|
|
15
|
+
export const Default = () => (
|
|
16
|
+
<div className="example">
|
|
17
|
+
<I18NProvider t={(str: string) => str}>
|
|
18
|
+
<Pagination>
|
|
19
|
+
<PaginationLabel start={10} end={20} total={10000}></PaginationLabel>
|
|
20
|
+
<PaginationList>
|
|
21
|
+
<PaginationListItem>
|
|
22
|
+
<Link>
|
|
23
|
+
<ArrowIcon direction="left" />
|
|
24
|
+
Προηγούμενο
|
|
25
|
+
</Link>
|
|
26
|
+
</PaginationListItem>
|
|
27
|
+
<PaginationListItem>
|
|
28
|
+
<Link href="/page1">1</Link>
|
|
29
|
+
</PaginationListItem>
|
|
30
|
+
<PaginationListItem currentPage>2</PaginationListItem>
|
|
31
|
+
<PaginationListItem>
|
|
32
|
+
<Link href="/page3">3</Link>
|
|
33
|
+
</PaginationListItem>
|
|
34
|
+
<PaginationListItem variant="dots" />
|
|
35
|
+
<PaginationListItem>
|
|
36
|
+
<Link href="/page5">5</Link>
|
|
37
|
+
</PaginationListItem>
|
|
38
|
+
<PaginationListItem>
|
|
39
|
+
<Link href="/page6">6</Link>
|
|
40
|
+
</PaginationListItem>
|
|
41
|
+
<PaginationListItem>
|
|
42
|
+
<Link href="/page7">7</Link>
|
|
43
|
+
</PaginationListItem>
|
|
44
|
+
<PaginationListItem>
|
|
45
|
+
<Link>
|
|
46
|
+
Επόμενο
|
|
47
|
+
<ArrowIcon direction="right" />
|
|
48
|
+
</Link>
|
|
49
|
+
</PaginationListItem>
|
|
50
|
+
</PaginationList>
|
|
51
|
+
</Pagination>
|
|
52
|
+
|
|
53
|
+
<Divider visible size="l" />
|
|
54
|
+
|
|
55
|
+
<Pagination>
|
|
56
|
+
<PaginationLabel start={10} end={20} total={10000}></PaginationLabel>
|
|
57
|
+
<PaginationList>
|
|
58
|
+
<PaginationListItem inactive>
|
|
59
|
+
<Link>
|
|
60
|
+
<ArrowIcon direction="left" />
|
|
61
|
+
Προηγούμενο
|
|
62
|
+
</Link>
|
|
63
|
+
</PaginationListItem>
|
|
64
|
+
<PaginationListItem currentPage>1</PaginationListItem>
|
|
65
|
+
<PaginationListItem>
|
|
66
|
+
<Link href="/page2">2</Link>
|
|
67
|
+
</PaginationListItem>
|
|
68
|
+
<PaginationListItem>
|
|
69
|
+
<Link href="/page3">3</Link>
|
|
70
|
+
</PaginationListItem>
|
|
71
|
+
<PaginationListItem variant="dots"></PaginationListItem>
|
|
72
|
+
<PaginationListItem>
|
|
73
|
+
<Link href="/page5">5</Link>
|
|
74
|
+
</PaginationListItem>
|
|
75
|
+
<PaginationListItem>
|
|
76
|
+
<Link href="/page6">6</Link>
|
|
77
|
+
</PaginationListItem>
|
|
78
|
+
<PaginationListItem>
|
|
79
|
+
<Link href="/page7">7</Link>
|
|
80
|
+
</PaginationListItem>
|
|
81
|
+
<PaginationListItem>
|
|
82
|
+
<Link>
|
|
83
|
+
Επόμενο
|
|
84
|
+
<ArrowIcon direction="right" />
|
|
85
|
+
</Link>
|
|
86
|
+
</PaginationListItem>
|
|
87
|
+
</PaginationList>
|
|
88
|
+
</Pagination>
|
|
89
|
+
|
|
90
|
+
<Divider visible size="l" />
|
|
91
|
+
|
|
92
|
+
<Pagination>
|
|
93
|
+
<PaginationLabel start={10} end={20} total={10000}></PaginationLabel>
|
|
94
|
+
<PaginationList>
|
|
95
|
+
<PaginationListItem>
|
|
96
|
+
<Link>
|
|
97
|
+
<ArrowIcon direction="left" />
|
|
98
|
+
Προηγούμενο
|
|
99
|
+
</Link>
|
|
100
|
+
</PaginationListItem>
|
|
101
|
+
<PaginationListItem>
|
|
102
|
+
<Link href="/page1">1</Link>
|
|
103
|
+
</PaginationListItem>
|
|
104
|
+
<PaginationListItem>
|
|
105
|
+
<Link>2</Link>
|
|
106
|
+
</PaginationListItem>
|
|
107
|
+
<PaginationListItem>
|
|
108
|
+
<Link href="/page3">3</Link>
|
|
109
|
+
</PaginationListItem>
|
|
110
|
+
<PaginationListItem variant="dots"></PaginationListItem>
|
|
111
|
+
<PaginationListItem>
|
|
112
|
+
<Link href="/page5">5</Link>
|
|
113
|
+
</PaginationListItem>
|
|
114
|
+
<PaginationListItem>
|
|
115
|
+
<Link href="/page6">6</Link>
|
|
116
|
+
</PaginationListItem>
|
|
117
|
+
<PaginationListItem currentPage>7</PaginationListItem>
|
|
118
|
+
<PaginationListItem inactive>
|
|
119
|
+
<Link>
|
|
120
|
+
Επόμενο
|
|
121
|
+
<ArrowIcon direction="right" />
|
|
122
|
+
</Link>
|
|
123
|
+
</PaginationListItem>
|
|
124
|
+
</PaginationList>
|
|
125
|
+
</Pagination>
|
|
126
|
+
|
|
127
|
+
<Divider visible size="l" />
|
|
128
|
+
|
|
129
|
+
<Pagination>
|
|
130
|
+
<PaginationLabel start={1} end={10} total={15}></PaginationLabel>
|
|
131
|
+
<PaginationList>
|
|
132
|
+
<PaginationListItem>
|
|
133
|
+
<Link>
|
|
134
|
+
<ArrowIcon direction="left" />
|
|
135
|
+
Προηγούμενο
|
|
136
|
+
</Link>
|
|
137
|
+
</PaginationListItem>
|
|
138
|
+
<PaginationListItem>
|
|
139
|
+
<Link href="/page1">1</Link>
|
|
140
|
+
</PaginationListItem>
|
|
141
|
+
<PaginationListItem variant="dots"></PaginationListItem>
|
|
142
|
+
<PaginationListItem>
|
|
143
|
+
<Link href="/page7">2</Link>
|
|
144
|
+
</PaginationListItem>
|
|
145
|
+
<PaginationListItem currentPage>8</PaginationListItem>
|
|
146
|
+
<PaginationListItem>
|
|
147
|
+
<Link href="/page9">9</Link>
|
|
148
|
+
</PaginationListItem>
|
|
149
|
+
<PaginationListItem variant="dots"></PaginationListItem>
|
|
150
|
+
<PaginationListItem>
|
|
151
|
+
<Link href="/page20">20</Link>
|
|
152
|
+
</PaginationListItem>
|
|
153
|
+
<PaginationListItem>
|
|
154
|
+
<Link>
|
|
155
|
+
Επόμενο
|
|
156
|
+
<ArrowIcon direction="right" />
|
|
157
|
+
</Link>
|
|
158
|
+
</PaginationListItem>
|
|
159
|
+
</PaginationList>
|
|
160
|
+
</Pagination>
|
|
161
|
+
</I18NProvider>
|
|
162
|
+
</div>
|
|
163
|
+
);
|
|
164
|
+
|
|
165
|
+
export default Default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
Pagination,
|
|
5
|
+
PaginationList,
|
|
6
|
+
PaginationListItem,
|
|
7
|
+
PaginationLabel,
|
|
8
|
+
} from '@digigov/ui/admin/Pagination';
|
|
9
|
+
|
|
10
|
+
import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
11
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
12
|
+
import { Divider } from '@digigov/ui/core/Divider';
|
|
13
|
+
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
14
|
+
|
|
15
|
+
export const PaginationSmall = () => (
|
|
16
|
+
<div className="example">
|
|
17
|
+
<I18NProvider t={(str: string) => str}>
|
|
18
|
+
<Pagination>
|
|
19
|
+
<PaginationLabel start={1} end={10} total={15}></PaginationLabel>
|
|
20
|
+
<PaginationList>
|
|
21
|
+
<PaginationListItem inactive>
|
|
22
|
+
<Link>
|
|
23
|
+
<ArrowIcon direction="left" />
|
|
24
|
+
</Link>
|
|
25
|
+
</PaginationListItem>
|
|
26
|
+
<PaginationListItem currentPage>1</PaginationListItem>
|
|
27
|
+
|
|
28
|
+
<PaginationListItem>
|
|
29
|
+
<Link href="/page7">2</Link>
|
|
30
|
+
</PaginationListItem>
|
|
31
|
+
|
|
32
|
+
<PaginationListItem>
|
|
33
|
+
<Link>
|
|
34
|
+
<ArrowIcon direction="right" />
|
|
35
|
+
</Link>
|
|
36
|
+
</PaginationListItem>
|
|
37
|
+
</PaginationList>
|
|
38
|
+
</Pagination>
|
|
39
|
+
<Divider visible size="l" />
|
|
40
|
+
</I18NProvider>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export default PaginationSmall;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: pagination
|
|
3
|
+
title: Pagination
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
import Pagination from '@digigov/ui/app/Pagination';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## How to use
|
|
11
|
+
|
|
12
|
+
<Story packageName="@digigov/ui" component="admin/Pagination" story="Default.tsx" />
|
|
13
|
+
|
|
14
|
+
## API
|
|
15
|
+
|
|
16
|
+
<PropTypes packageName="@digigov/ui" component="Pagination" />
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PaginationLabelContainer, {
|
|
3
|
+
PaginationLabelContainerProps,
|
|
4
|
+
} from '@digigov/react-extensions/admin/PaginationLabelContainer';
|
|
5
|
+
import { I18nText } from '@digigov/ui/app/I18nText';
|
|
6
|
+
export interface PaginationLabelProps extends PaginationLabelContainerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Use start to set the value of the start point of the results shown.
|
|
9
|
+
*/
|
|
10
|
+
start: number;
|
|
11
|
+
/**
|
|
12
|
+
* Use end to set the value of the end point of the results shown.
|
|
13
|
+
*/
|
|
14
|
+
end: number;
|
|
15
|
+
/**
|
|
16
|
+
* Use total to set the value of the total results.
|
|
17
|
+
*/
|
|
18
|
+
total: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* PaginationLabel component is used for placing the pagination results label.
|
|
22
|
+
*/
|
|
23
|
+
export const PaginationLabel = React.forwardRef<
|
|
24
|
+
HTMLParagraphElement,
|
|
25
|
+
PaginationLabelProps
|
|
26
|
+
>(function PaginationLabel(
|
|
27
|
+
{ start, end, total },
|
|
28
|
+
ref: React.Ref<HTMLParagraphElement>
|
|
29
|
+
) {
|
|
30
|
+
return (
|
|
31
|
+
<PaginationLabelContainer ref={ref}>
|
|
32
|
+
<I18nText i18nKey="pagination.label">
|
|
33
|
+
Showing <b>{start}</b> to <b>{end}</b> of <b>{total}</b> results.
|
|
34
|
+
</I18nText>
|
|
35
|
+
</PaginationLabelContainer>
|
|
36
|
+
);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export * from '@digigov/react-extensions/admin/Pagination';
|
|
40
|
+
export * from '@digigov/react-extensions/admin/PaginationList';
|
|
41
|
+
export * from '@digigov/react-extensions/admin/PaginationListItem';
|
|
42
|
+
export { PaginationLabelContainer };
|
|
43
|
+
|
|
44
|
+
import Pagination from '@digigov/react-extensions/admin/Pagination';
|
|
45
|
+
export default Pagination;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from '@digigov/react-extensions/admin/ResultsHeading';
|
|
2
|
+
export * from '@digigov/react-extensions/admin/ResultsActionBar';
|
|
3
|
+
export * from '@digigov/react-extensions/admin/ResultsHeadingActions';
|
|
4
|
+
|
|
5
|
+
import ResultsHeading from '@digigov/react-extensions/admin/ResultsHeading';
|
|
6
|
+
export default ResultsHeading;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from '@digigov/react-extensions/admin/SearchSection';
|
|
2
|
+
export * from '@digigov/react-extensions/admin/SearchButton';
|
|
3
|
+
export * from '@digigov/react-extensions/admin/SearchIcon';
|
|
4
|
+
|
|
5
|
+
import SearchSection from '@digigov/react-extensions/admin/SearchSection';
|
|
6
|
+
export default SearchSection;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable digigov/no-relative-imports */
|
|
2
|
+
|
|
3
|
+
import StepNav from '@digigov/ui/admin/StepNav';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Digigov UI/admin/StepNav',
|
|
6
|
+
description:
|
|
7
|
+
'The step by step navigation pattern presents an end to end journey in logical steps, with links to content that helps users complete each step.',
|
|
8
|
+
component: StepNav,
|
|
9
|
+
displayName: 'StepNav',
|
|
10
|
+
};
|
|
11
|
+
export * from './__stories__/Default';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-admin-stepnav--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "hover",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>ol>li:nth-child(1)>details>summary>h2>div>span:nth-child(1)"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "click",
|
|
16
|
+
"args": {
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>div>ol>li:nth-child(1)>details>summary>h2>div>span:nth-child(1)"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "click",
|
|
22
|
+
"args": {
|
|
23
|
+
"selector": "html>body>div:nth-child(5)>div>div>button"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"id": "C735jJuFjJNe",
|
|
28
|
+
"title": "Click 1st and all"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
StepNav,
|
|
5
|
+
StepNavCircleΝumber,
|
|
6
|
+
StepNavControls,
|
|
7
|
+
StepNavList,
|
|
8
|
+
StepNavListItem,
|
|
9
|
+
StepNavAccordionOpened,
|
|
10
|
+
StepNavAccordionClosed,
|
|
11
|
+
StepNavAccordion,
|
|
12
|
+
StepNavAccordionContent,
|
|
13
|
+
StepNavAccordionSummary,
|
|
14
|
+
StepNavAccordionSummaryHeading,
|
|
15
|
+
StepNavAccordionHeadingTitle,
|
|
16
|
+
StepNavAccordionHeadingText,
|
|
17
|
+
} from '@digigov/ui/admin/StepNav';
|
|
18
|
+
|
|
19
|
+
import { Paragraph } from '@digigov/ui/typography/Paragraph';
|
|
20
|
+
import { List } from '@digigov/ui/core/List/List';
|
|
21
|
+
import { ListItem } from '@digigov/ui/core/List/ListItem';
|
|
22
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
23
|
+
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
24
|
+
import { Button } from '@digigov/ui/core/Button';
|
|
25
|
+
|
|
26
|
+
const data = [
|
|
27
|
+
{
|
|
28
|
+
title: 'Title-1',
|
|
29
|
+
description: 'Some description here',
|
|
30
|
+
link: 'A link to navigate',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: 'Title-2',
|
|
34
|
+
description: 'Some description here',
|
|
35
|
+
link: 'A link to navigate',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: 'Title-3',
|
|
39
|
+
description: 'Some description here',
|
|
40
|
+
link: 'A link to navigate',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: 'Title-4',
|
|
44
|
+
description: 'Some description here',
|
|
45
|
+
link: 'A link to navigate',
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
export const Default = () => {
|
|
50
|
+
const [open, SetOpen] = useState<boolean>(false);
|
|
51
|
+
const [openItem, setOpenItem] = useState<boolean[]>([
|
|
52
|
+
false,
|
|
53
|
+
false,
|
|
54
|
+
false,
|
|
55
|
+
false,
|
|
56
|
+
]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
const stateArray: boolean[] = [];
|
|
59
|
+
if (open === false) {
|
|
60
|
+
openItem.map(() => {
|
|
61
|
+
stateArray.push(false);
|
|
62
|
+
});
|
|
63
|
+
setOpenItem(stateArray);
|
|
64
|
+
} else {
|
|
65
|
+
openItem.map(() => {
|
|
66
|
+
stateArray.push(true);
|
|
67
|
+
});
|
|
68
|
+
setOpenItem(stateArray);
|
|
69
|
+
}
|
|
70
|
+
}, [open]);
|
|
71
|
+
|
|
72
|
+
function openCloseItem(index): void {
|
|
73
|
+
const statusOpenItem = [...openItem];
|
|
74
|
+
statusOpenItem[index] = !statusOpenItem[index];
|
|
75
|
+
setOpenItem(statusOpenItem);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function openCloseAll(): void {
|
|
79
|
+
SetOpen(!open);
|
|
80
|
+
}
|
|
81
|
+
return (
|
|
82
|
+
<StepNav>
|
|
83
|
+
<StepNavControls>
|
|
84
|
+
<Button
|
|
85
|
+
variant="link"
|
|
86
|
+
onClick={() => {
|
|
87
|
+
openCloseAll();
|
|
88
|
+
}}
|
|
89
|
+
>
|
|
90
|
+
{open === false ? 'Εμφάνιση όλων' : 'Απόκρυψη όλων'}
|
|
91
|
+
</Button>
|
|
92
|
+
</StepNavControls>
|
|
93
|
+
<StepNavList>
|
|
94
|
+
{data &&
|
|
95
|
+
data.map((dt, index) => {
|
|
96
|
+
return (
|
|
97
|
+
<StepNavListItem key={index}>
|
|
98
|
+
<StepNavAccordion open={open}>
|
|
99
|
+
<StepNavAccordionSummary
|
|
100
|
+
onClick={() => {
|
|
101
|
+
openCloseItem(index);
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
104
|
+
<StepNavAccordionSummaryHeading aria-controls="content1">
|
|
105
|
+
{index === 2 ? (
|
|
106
|
+
<StepNavCircleΝumber border={false}>
|
|
107
|
+
<VisuallyHidden>Step</VisuallyHidden>
|
|
108
|
+
and
|
|
109
|
+
</StepNavCircleΝumber>
|
|
110
|
+
) : (
|
|
111
|
+
<StepNavCircleΝumber>
|
|
112
|
+
<VisuallyHidden>Step</VisuallyHidden>
|
|
113
|
+
{index + 1}
|
|
114
|
+
</StepNavCircleΝumber>
|
|
115
|
+
)}
|
|
116
|
+
<StepNavAccordionHeadingTitle>
|
|
117
|
+
<StepNavAccordionHeadingText>
|
|
118
|
+
{dt.title}
|
|
119
|
+
</StepNavAccordionHeadingText>
|
|
120
|
+
{openItem[index] === true ? (
|
|
121
|
+
<StepNavAccordionOpened>
|
|
122
|
+
Απόκρυψη
|
|
123
|
+
</StepNavAccordionOpened>
|
|
124
|
+
) : (
|
|
125
|
+
<StepNavAccordionClosed>
|
|
126
|
+
Εμφάνιση
|
|
127
|
+
</StepNavAccordionClosed>
|
|
128
|
+
)}
|
|
129
|
+
</StepNavAccordionHeadingTitle>
|
|
130
|
+
</StepNavAccordionSummaryHeading>
|
|
131
|
+
</StepNavAccordionSummary>
|
|
132
|
+
<StepNavAccordionContent id="content1">
|
|
133
|
+
<Paragraph>{dt.description}</Paragraph>
|
|
134
|
+
<List>
|
|
135
|
+
<ListItem>
|
|
136
|
+
<Link>{dt.link}</Link>
|
|
137
|
+
</ListItem>
|
|
138
|
+
</List>
|
|
139
|
+
</StepNavAccordionContent>
|
|
140
|
+
</StepNavAccordion>
|
|
141
|
+
</StepNavListItem>
|
|
142
|
+
);
|
|
143
|
+
})}
|
|
144
|
+
</StepNavList>
|
|
145
|
+
</StepNav>
|
|
146
|
+
);
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export default Default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import StepNavCircleΝumber from '@digigov/react-extensions/admin/StepNavCircleΝumber';
|
|
2
|
+
import StepNav from '@digigov/react-extensions/admin/StepNav';
|
|
3
|
+
import StepNavControls from '@digigov/react-extensions/admin/StepNavControls';
|
|
4
|
+
import StepNavList from '@digigov/react-extensions/admin/StepNavList';
|
|
5
|
+
import StepNavListItem from '@digigov/react-extensions/admin/StepNavListItem';
|
|
6
|
+
import StepNavAccordion from '@digigov/react-extensions/admin/StepNavAccordion';
|
|
7
|
+
import StepNavAccordionContent from '@digigov/react-extensions/admin/StepNavAccordionContent';
|
|
8
|
+
import StepNavAccordionSummary from '@digigov/react-extensions/admin/StepNavAccordionSummary';
|
|
9
|
+
import StepNavAccordionOpened from '@digigov/react-extensions/admin/StepNavAccordionOpened';
|
|
10
|
+
import StepNavAccordionClosed from '@digigov/react-extensions/admin/StepNavAccordionClosed';
|
|
11
|
+
import StepNavAccordionSummaryHeading from '@digigov/react-extensions/admin/StepNavAccordionSummaryHeading';
|
|
12
|
+
import StepNavAccordionHeadingTitle from '@digigov/react-extensions/admin/StepNavAccordionHeadingTitle';
|
|
13
|
+
import StepNavAccordionHeadingText from '@digigov/react-extensions/admin/StepNavAccordionHeadingText';
|
|
14
|
+
export {
|
|
15
|
+
StepNavAccordion,
|
|
16
|
+
StepNavAccordionContent,
|
|
17
|
+
StepNavAccordionSummary,
|
|
18
|
+
StepNavAccordionSummaryHeading,
|
|
19
|
+
StepNavAccordionHeadingTitle,
|
|
20
|
+
StepNavAccordionHeadingText,
|
|
21
|
+
StepNavCircleΝumber,
|
|
22
|
+
StepNavAccordionOpened,
|
|
23
|
+
StepNavAccordionClosed,
|
|
24
|
+
StepNav,
|
|
25
|
+
StepNavControls,
|
|
26
|
+
StepNavList,
|
|
27
|
+
StepNavListItem,
|
|
28
|
+
};
|
|
29
|
+
export default StepNav;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import TaskList from '@digigov/ui/admin/TaskList';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Digigov UI/admin/TaskList',
|
|
4
|
+
description:
|
|
5
|
+
'Only use a task list page for longer transactions involving multiple tasks that users may need to complete over a number of sessions.',
|
|
6
|
+
component: TaskList,
|
|
7
|
+
displayName: 'TaskList',
|
|
8
|
+
};
|
|
9
|
+
export * from '@digigov/ui/admin/TaskList/__stories__/Default';
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LinkBase } from '@digigov/ui/core/Link';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
SummaryList,
|
|
6
|
+
SummaryListItem,
|
|
7
|
+
SummaryListItemAction,
|
|
8
|
+
SummaryListItemKey,
|
|
9
|
+
} from '@digigov/ui/core/SummaryList';
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
TaskList,
|
|
13
|
+
TaskListItem,
|
|
14
|
+
TaskListItemHeading,
|
|
15
|
+
TaskListItemContent,
|
|
16
|
+
TaskListItemTag,
|
|
17
|
+
} from '@digigov/ui/admin/TaskList';
|
|
18
|
+
|
|
19
|
+
const fields = [
|
|
20
|
+
{
|
|
21
|
+
title: 'Check before you start',
|
|
22
|
+
tasks: [
|
|
23
|
+
{
|
|
24
|
+
text: 'Check eligibility',
|
|
25
|
+
status: 'Completed',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
text: 'Read declaration',
|
|
29
|
+
status: 'Completed',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: 'Prepare application',
|
|
35
|
+
tasks: [
|
|
36
|
+
{
|
|
37
|
+
text: 'Company information',
|
|
38
|
+
status: 'Completed',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
text: 'Your contact details',
|
|
42
|
+
status: 'In progress',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
text: 'List convictions',
|
|
46
|
+
status: 'Not started',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
text: 'Provide financial evidence',
|
|
50
|
+
status: 'Cannot start yet',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
text: 'Give medical information',
|
|
54
|
+
status: 'Cannot start yet',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: 'Apply',
|
|
60
|
+
tasks: [
|
|
61
|
+
{
|
|
62
|
+
text: 'Submit and pay',
|
|
63
|
+
status: 'Cannot start yet',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
|
|
69
|
+
export const Default = () => (
|
|
70
|
+
<div>
|
|
71
|
+
<TaskList>
|
|
72
|
+
{fields &&
|
|
73
|
+
fields.map((field, index) => {
|
|
74
|
+
return (
|
|
75
|
+
<TaskListItem key={index}>
|
|
76
|
+
<TaskListItemHeading size="m">{`${index + 1}. ${
|
|
77
|
+
field.title
|
|
78
|
+
}`}</TaskListItemHeading>
|
|
79
|
+
<TaskListItemContent>
|
|
80
|
+
<SummaryList>
|
|
81
|
+
{field.tasks.map((task, key) => {
|
|
82
|
+
let tagColor;
|
|
83
|
+
switch (task.status) {
|
|
84
|
+
case 'Completed':
|
|
85
|
+
tagColor = 'completed';
|
|
86
|
+
break;
|
|
87
|
+
case 'In progress':
|
|
88
|
+
tagColor = 'in-progress';
|
|
89
|
+
break;
|
|
90
|
+
case 'Not started':
|
|
91
|
+
tagColor = 'not-started';
|
|
92
|
+
break;
|
|
93
|
+
case 'Cannot start yet':
|
|
94
|
+
tagColor = 'not-started';
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
return (
|
|
98
|
+
<SummaryListItem key={key}>
|
|
99
|
+
<SummaryListItemKey>
|
|
100
|
+
<LinkBase>{task.text}</LinkBase>
|
|
101
|
+
</SummaryListItemKey>
|
|
102
|
+
<SummaryListItemAction>
|
|
103
|
+
<TaskListItemTag status={tagColor}>
|
|
104
|
+
{task.status}
|
|
105
|
+
</TaskListItemTag>
|
|
106
|
+
</SummaryListItemAction>
|
|
107
|
+
</SummaryListItem>
|
|
108
|
+
);
|
|
109
|
+
})}
|
|
110
|
+
</SummaryList>
|
|
111
|
+
</TaskListItemContent>
|
|
112
|
+
</TaskListItem>
|
|
113
|
+
);
|
|
114
|
+
})}
|
|
115
|
+
</TaskList>
|
|
116
|
+
</div>
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
export default Default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@digigov/react-extensions/admin/TaskList';
|
|
2
|
+
export * from '@digigov/react-extensions/admin/TaskListItem';
|
|
3
|
+
export * from '@digigov/react-extensions/admin/TaskListItemContent';
|
|
4
|
+
export * from '@digigov/react-extensions/admin/TaskListItemHeading';
|
|
5
|
+
export * from '@digigov/react-extensions/admin/TaskListItemTag';
|
|
6
|
+
|
|
7
|
+
import TaskList from '@digigov/react-extensions/admin/TaskList';
|
|
8
|
+
export default TaskList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Timeline from '@digigov/ui/admin/Timeline';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Digigov UI/admin/Timeline',
|
|
4
|
+
description:
|
|
5
|
+
'Use this pattern to show a list of entries in the order they happened.',
|
|
6
|
+
component: Timeline,
|
|
7
|
+
displayName: 'Timeline',
|
|
8
|
+
};
|
|
9
|
+
export * from '@digigov/ui/admin/Timeline/__stories__/Default';
|