@digigov/ui 0.28.2 → 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 +22 -1
- package/LICENSE +0 -0
- package/admin/AdminLayout/index.d.ts +9 -0
- package/admin/AdminLayout/index.js +114 -0
- package/admin/AutoComplete/AutoComplete.stories.d.ts +14 -0
- package/admin/AutoComplete/AutoComplete.stories.js +116 -0
- package/admin/AutoComplete/Status/index.d.ts +40 -0
- package/admin/AutoComplete/Status/index.js +184 -0
- package/admin/AutoComplete/__stories__/Default.d.ts +2 -0
- package/admin/AutoComplete/__stories__/Default.js +34 -0
- package/admin/AutoComplete/__stories__/WithAutoSelect.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithAutoSelect.js +46 -0
- package/admin/AutoComplete/__stories__/WithDefaultValue.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithDefaultValue.js +33 -0
- package/admin/AutoComplete/__stories__/WithInLine.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithInLine.js +33 -0
- package/admin/AutoComplete/__stories__/WithMinLength.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithMinLength.js +35 -0
- package/admin/AutoComplete/__stories__/WithPlaceHolder.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithPlaceHolder.js +33 -0
- package/admin/AutoComplete/__stories__/WithShowAllValues.d.ts +2 -0
- package/admin/AutoComplete/__stories__/WithShowAllValues.js +33 -0
- package/admin/AutoComplete/__stories__/utils.d.ts +0 -0
- package/admin/AutoComplete/__stories__/utils.js +1 -0
- package/admin/AutoComplete/index.d.ts +118 -0
- package/admin/AutoComplete/index.js +717 -0
- package/admin/AutoComplete/index.mdx +73 -0
- package/admin/AutoComplete/utils.d.ts +11 -0
- package/admin/AutoComplete/utils.js +43 -0
- package/admin/Chip/index.d.ts +7 -0
- package/admin/Chip/index.js +86 -0
- package/admin/CircularProgress/CircularProgress.stories.d.ts +8 -0
- package/admin/CircularProgress/CircularProgress.stories.js +31 -0
- package/admin/CircularProgress/__stories__/Default.d.ts +2 -0
- package/admin/CircularProgress/__stories__/Default.js +24 -0
- package/admin/CircularProgress/index.d.ts +3 -0
- package/admin/CircularProgress/index.js +30 -0
- package/admin/CopyToClipboard/CopyToClipboard.stories.d.ts +9 -0
- package/admin/CopyToClipboard/CopyToClipboard.stories.js +45 -0
- package/{src/admin/Modal/Modal.stories.playwright.json → admin/CopyToClipboard/CopyToClipboard.stories.playwright.json} +8 -8
- package/admin/CopyToClipboard/__stories__/Banner.d.ts +2 -0
- package/admin/CopyToClipboard/__stories__/Banner.js +30 -0
- package/admin/CopyToClipboard/__stories__/Default.d.ts +2 -0
- package/admin/CopyToClipboard/__stories__/Default.js +32 -0
- package/admin/CopyToClipboard/index.d.ts +13 -0
- package/admin/CopyToClipboard/index.js +85 -0
- package/admin/CopyToClipboard/index.mdx +26 -0
- package/admin/Drawer/Drawer.stories.d.ts +10 -0
- package/admin/Drawer/Drawer.stories.js +33 -0
- package/admin/Drawer/__stories__/Default.d.ts +2 -0
- package/admin/Drawer/__stories__/Default.js +104 -0
- package/admin/Drawer/index.d.ts +4 -0
- package/admin/Drawer/index.js +44 -0
- package/admin/Drawer/index.mdx +16 -0
- package/admin/Dropdown/Dropdown.stories.d.ts +12 -0
- package/admin/Dropdown/Dropdown.stories.js +63 -0
- package/admin/Dropdown/__stories__/AlignRight.d.ts +2 -0
- package/admin/Dropdown/__stories__/AlignRight.js +76 -0
- package/admin/Dropdown/__stories__/Default.d.ts +2 -0
- package/admin/Dropdown/__stories__/Default.js +69 -0
- package/admin/Dropdown/__stories__/PlacementTop.d.ts +2 -0
- package/admin/Dropdown/__stories__/PlacementTop.js +76 -0
- package/admin/Dropdown/index.d.ts +22 -0
- package/admin/Dropdown/index.js +144 -0
- package/admin/Dropdown/index.mdx +45 -0
- package/admin/DropdownArrowDown/index.d.ts +3 -0
- package/admin/DropdownArrowDown/index.js +19 -0
- package/admin/FillableText/index.d.ts +3 -0
- package/admin/FillableText/index.js +30 -0
- package/admin/FilterSection/index.d.ts +9 -0
- package/admin/FilterSection/index.js +114 -0
- package/admin/FullPageBackground/index.d.ts +3 -0
- package/admin/FullPageBackground/index.js +30 -0
- package/admin/LabeledText/index.d.ts +3 -0
- package/admin/LabeledText/index.js +30 -0
- package/admin/LoaderContainer/index.d.ts +3 -0
- package/admin/LoaderContainer/index.js +30 -0
- package/admin/Modal/Modal.stories.d.ts +11 -0
- package/admin/Modal/Modal.stories.js +47 -0
- package/admin/Modal/__stories__/AlertDialog.d.ts +2 -0
- package/admin/Modal/__stories__/AlertDialog.js +37 -0
- package/admin/Modal/__stories__/Default.d.ts +2 -0
- package/admin/Modal/__stories__/Default.js +40 -0
- package/admin/Modal/index.d.ts +18 -0
- package/admin/Modal/index.js +173 -0
- package/admin/Modal/index.mdx +33 -0
- package/admin/Pagination/Pagination.stories.d.ts +11 -0
- package/admin/Pagination/Pagination.stories.js +47 -0
- package/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/admin/Pagination/__stories__/Default.d.ts +2 -0
- package/admin/Pagination/__stories__/Default.js +147 -0
- package/admin/Pagination/__stories__/PaginationSmall.d.ts +2 -0
- package/admin/Pagination/__stories__/PaginationSmall.js +55 -0
- package/admin/Pagination/index.d.ts +26 -0
- package/admin/Pagination/index.js +91 -0
- package/admin/Pagination/index.mdx +16 -0
- package/admin/ResultsHeading/index.d.ts +5 -0
- package/admin/ResultsHeading/index.js +58 -0
- package/admin/SearchSection/index.d.ts +5 -0
- package/admin/SearchSection/index.js +58 -0
- package/admin/StepNav/StepNav.stories.d.ts +9 -0
- package/admin/StepNav/StepNav.stories.js +34 -0
- package/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/admin/StepNav/__stories__/Default.d.ts +2 -0
- package/admin/StepNav/__stories__/Default.js +125 -0
- package/admin/StepNav/index.d.ts +15 -0
- package/admin/StepNav/index.js +115 -0
- package/admin/TableLoaderBackground/index.d.ts +3 -0
- package/admin/TableLoaderBackground/index.js +30 -0
- package/admin/TaskList/TaskList.stories.d.ts +9 -0
- package/admin/TaskList/TaskList.stories.js +32 -0
- package/admin/TaskList/__stories__/Default.d.ts +2 -0
- package/admin/TaskList/__stories__/Default.js +91 -0
- package/admin/TaskList/index.d.ts +7 -0
- package/admin/TaskList/index.js +86 -0
- package/admin/Timeline/Timeline.stories.d.ts +9 -0
- package/admin/Timeline/Timeline.stories.js +32 -0
- package/admin/Timeline/__stories__/Default.d.ts +2 -0
- package/admin/Timeline/__stories__/Default.js +87 -0
- package/admin/Timeline/index.d.ts +7 -0
- package/admin/Timeline/index.js +86 -0
- package/admin/index.d.ts +21 -0
- package/admin/index.js +278 -0
- package/api/APIErrors.d.ts +22 -0
- package/api/APIErrors.js +117 -0
- package/api/APIProvider.d.ts +15 -0
- package/api/APIProvider.js +43 -0
- package/api/fetchAPI.d.ts +18 -0
- package/api/fetchAPI.js +66 -0
- package/api/index.d.ts +9 -0
- package/api/index.js +104 -0
- package/api/index.spec.d.ts +1 -0
- package/api/index.spec.js +583 -0
- package/api/introduction.md +6 -0
- package/api/useResource.d.ts +11 -0
- package/api/useResource.js +146 -0
- package/api/useResourceAction.d.ts +2 -0
- package/api/useResourceAction.js +159 -0
- package/api/useResourceQuery.d.ts +18 -0
- package/api/useResourceQuery.js +232 -0
- package/api/utils.d.ts +6 -0
- package/api/utils.js +252 -0
- package/app/App.d.ts +7 -0
- package/app/App.js +30 -0
- package/app/Confirmation/Confirmation.mdx +16 -0
- package/app/Confirmation/Confirmation.stories.d.ts +10 -0
- package/app/Confirmation/Confirmation.stories.js +33 -0
- package/app/Confirmation/__stories__/Default.d.ts +2 -0
- package/app/Confirmation/__stories__/Default.js +22 -0
- package/{src/core/Confirmation/index.tsx → app/Confirmation/index.d.ts} +1 -1
- package/app/Confirmation/index.js +58 -0
- package/app/Footer/Footer.mdx +46 -0
- package/app/Footer/Footer.stories.d.ts +17 -0
- package/app/Footer/Footer.stories.js +120 -0
- package/app/Footer/Footer.stories.playwright.json +27 -0
- package/app/Footer/__stories__/Default.d.ts +2 -0
- package/app/Footer/__stories__/Default.js +22 -0
- package/app/Footer/__stories__/DefaultCopyright.d.ts +2 -0
- package/app/Footer/__stories__/DefaultCopyright.js +32 -0
- package/app/Footer/__stories__/FooterAllInclusive.d.ts +2 -0
- package/app/Footer/__stories__/FooterAllInclusive.js +55 -0
- package/app/Footer/__stories__/FooterWithLink.d.ts +2 -0
- package/app/Footer/__stories__/FooterWithLink.js +40 -0
- package/app/Footer/__stories__/FooterWithLogo.d.ts +2 -0
- package/app/Footer/__stories__/FooterWithLogo.js +44 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +2 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +50 -0
- package/app/Footer/__stories__/YearCopyright.d.ts +2 -0
- package/app/Footer/__stories__/YearCopyright.js +38 -0
- package/app/Footer/index.d.ts +17 -0
- package/app/Footer/index.js +226 -0
- package/app/Header/Header.stories.d.ts +18 -0
- package/app/Header/Header.stories.js +94 -0
- package/app/Header/Header.stories.playwright.json +33 -0
- package/app/Header/HeaderContent.d.ts +3 -0
- package/app/Header/HeaderContent.js +19 -0
- package/app/Header/HeaderLogo.d.ts +3 -0
- package/app/Header/HeaderLogo.js +30 -0
- package/app/Header/HeaderNavMenuContent.d.ts +3 -0
- package/app/Header/HeaderNavMenuContent.js +19 -0
- package/app/Header/HeaderSecondaryLogo.d.ts +3 -0
- package/app/Header/HeaderSecondaryLogo.js +19 -0
- package/app/Header/HeaderSection.d.ts +3 -0
- package/app/Header/HeaderSection.js +30 -0
- package/app/Header/HeaderSubtitle.d.ts +3 -0
- package/app/Header/HeaderSubtitle.js +19 -0
- package/app/Header/HeaderTitle.d.ts +3 -0
- package/app/Header/HeaderTitle.js +30 -0
- package/app/Header/__snapshots__/index.spec.tsx.snap +396 -0
- package/app/Header/__stories__/Default.d.ts +2 -0
- package/app/Header/__stories__/Default.js +30 -0
- package/app/Header/__stories__/WithHeaderNavigation.d.ts +2 -0
- package/app/Header/__stories__/WithHeaderNavigation.js +59 -0
- package/app/Header/__stories__/WithNavigation.d.ts +2 -0
- package/app/Header/__stories__/WithNavigation.js +52 -0
- package/app/Header/__stories__/WithServiceName.d.ts +2 -0
- package/app/Header/__stories__/WithServiceName.js +32 -0
- package/app/Header/__stories__/WithServiceNameAndLogo.d.ts +2 -0
- package/app/Header/__stories__/WithServiceNameAndLogo.js +39 -0
- package/app/Header/index.d.ts +10 -0
- package/app/Header/index.js +128 -0
- package/app/Header/index.mdx +43 -0
- package/app/Header/index.spec.d.ts +1 -0
- package/app/Header/index.spec.js +42 -0
- package/app/I18nText.d.ts +10 -0
- package/app/I18nText.js +93 -0
- package/app/NotFound/NotFound.stories.d.ts +8 -0
- package/app/NotFound/NotFound.stories.js +31 -0
- package/app/NotFound/__stories__/Default.d.ts +2 -0
- package/app/NotFound/__stories__/Default.js +22 -0
- package/app/NotFound/index.d.ts +3 -0
- package/app/NotFound/index.js +29 -0
- package/app/NotFound/index.mdx +16 -0
- package/app/OutdatedBrowserBanner.d.ts +1 -0
- package/app/OutdatedBrowserBanner.js +41 -0
- package/app/PageTitle.d.ts +6 -0
- package/app/PageTitle.js +72 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +8 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +31 -0
- package/app/PhaseBannerHeader/__stories__/Default.d.ts +2 -0
- package/app/PhaseBannerHeader/__stories__/Default.js +25 -0
- package/app/PhaseBannerHeader/index.d.ts +8 -0
- package/app/PhaseBannerHeader/index.js +39 -0
- package/app/PhaseBannerHeader/index.mdx +16 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.d.ts +8 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.js +31 -0
- package/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/app/QrCodeScanner/__stories__/Default.d.ts +2 -0
- package/app/QrCodeScanner/__stories__/Default.js +74 -0
- package/app/QrCodeScanner/index.d.ts +34 -0
- package/app/QrCodeScanner/index.js +90 -0
- package/app/QrCodeScanner/index.spec.d.ts +1 -0
- package/app/QrCodeScanner/index.spec.js +26 -0
- package/app/QrCodeViewer/QRCode.stories.d.ts +9 -0
- package/app/QrCodeViewer/QRCode.stories.js +47 -0
- package/app/QrCodeViewer/__stories__/Custom.d.ts +2 -0
- package/app/QrCodeViewer/__stories__/Custom.js +37 -0
- package/app/QrCodeViewer/__stories__/Default.d.ts +2 -0
- package/app/QrCodeViewer/__stories__/Default.js +24 -0
- package/app/QrCodeViewer/index.d.ts +6 -0
- package/app/QrCodeViewer/index.js +180 -0
- package/app/QrCodeViewer/index.mdx +28 -0
- package/app/QrCodeViewer/qrcodegen.d.ts +100 -0
- package/app/QrCodeViewer/qrcodegen.js +1086 -0
- package/app/QrCodeViewer/types.d.ts +28 -0
- package/app/QrCodeViewer/types.js +5 -0
- package/app/QrCodeViewer/utils.d.ts +11 -0
- package/app/QrCodeViewer/utils.js +108 -0
- package/app/i18n.d.ts +12 -0
- package/app/i18n.js +79 -0
- package/app/index.d.ts +10 -0
- package/app/index.js +135 -0
- package/core/Accordion/Accordion.stories.d.ts +12 -0
- package/core/Accordion/Accordion.stories.js +48 -0
- package/{src/admin/Dropdown/Dropdown.stories.playwright.json → core/Accordion/Accordion.stories.playwright.json} +4 -4
- package/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/core/Accordion/__stories__/Default.d.ts +2 -0
- package/core/Accordion/__stories__/Default.js +48 -0
- package/core/Accordion/__stories__/WithHints.d.ts +2 -0
- package/core/Accordion/__stories__/WithHints.js +50 -0
- package/core/Accordion/index.d.ts +29 -0
- package/core/Accordion/index.js +219 -0
- package/core/Accordion/index.mdx +41 -0
- package/core/Accordion/index.spec.d.ts +1 -0
- package/core/Accordion/index.spec.js +19 -0
- package/core/BackLink/BackLink.stories.d.ts +8 -0
- package/core/BackLink/BackLink.stories.js +31 -0
- package/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/core/BackLink/__stories__/Default.d.ts +2 -0
- package/core/BackLink/__stories__/Default.js +24 -0
- package/core/BackLink/index.d.ts +3 -0
- package/core/BackLink/index.js +30 -0
- package/core/BackLink/index.mdx +20 -0
- package/core/Base/index.d.ts +3 -0
- package/core/Base/index.js +19 -0
- package/core/Blockquote/Blockquote.stories.d.ts +10 -0
- package/core/Blockquote/Blockquote.stories.js +33 -0
- package/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/core/Blockquote/__stories__/Default.d.ts +2 -0
- package/core/Blockquote/__stories__/Default.js +22 -0
- package/core/Blockquote/index.d.ts +3 -0
- package/core/Blockquote/index.js +30 -0
- package/core/Blockquote/index.mdx +23 -0
- package/core/Blockquote/index.spec.d.ts +1 -0
- package/core/Blockquote/index.spec.js +21 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.d.ts +10 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.js +33 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/core/Breadcrumbs/__stories__/Default.d.ts +2 -0
- package/core/Breadcrumbs/__stories__/Default.js +34 -0
- package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/core/Breadcrumbs/index.d.ts +5 -0
- package/core/Breadcrumbs/index.js +58 -0
- package/core/Button/BackButton.d.ts +3 -0
- package/core/Button/BackButton.js +34 -0
- package/core/Button/BackLink.d.ts +3 -0
- package/core/Button/BackLink.js +30 -0
- package/core/Button/Button.stories.d.ts +20 -0
- package/core/Button/Button.stories.js +175 -0
- package/core/Button/Button.stories.playwright.json +115 -0
- package/core/Button/ButtonLink.d.ts +3 -0
- package/core/Button/ButtonLink.js +30 -0
- package/core/Button/CallToAction.d.ts +3 -0
- package/core/Button/CallToAction.js +30 -0
- package/core/Button/Icon.d.ts +2 -0
- package/core/Button/Icon.js +19 -0
- package/core/Button/ThemeToggleButton.d.ts +2 -0
- package/core/Button/ThemeToggleButton.js +70 -0
- package/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/core/Button/__stories__/Back.d.ts +3 -0
- package/core/Button/__stories__/Back.js +26 -0
- package/core/Button/__stories__/ButtonLinkButton.d.ts +5 -0
- package/core/Button/__stories__/ButtonLinkButton.js +30 -0
- package/core/Button/__stories__/CallToActionButton.d.ts +5 -0
- package/core/Button/__stories__/CallToActionButton.js +30 -0
- package/core/Button/__stories__/Disabled.d.ts +5 -0
- package/core/Button/__stories__/Disabled.js +27 -0
- package/core/Button/__stories__/GroupingButtons.d.ts +4 -0
- package/core/Button/__stories__/GroupingButtons.js +25 -0
- package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +4 -0
- package/core/Button/__stories__/GroupingButtonsAndLinks.js +27 -0
- package/core/Button/__stories__/Primary.d.ts +5 -0
- package/core/Button/__stories__/Primary.js +27 -0
- package/core/Button/__stories__/Secondary.d.ts +5 -0
- package/core/Button/__stories__/Secondary.js +28 -0
- package/core/Button/__stories__/ThemeToggle.d.ts +2 -0
- package/core/Button/__stories__/ThemeToggle.js +22 -0
- package/core/Button/__stories__/Warning.d.ts +1 -0
- package/core/Button/__stories__/Warning.js +23 -0
- package/core/Button/__stories__/WithVariantLink.d.ts +5 -0
- package/core/Button/__stories__/WithVariantLink.js +29 -0
- package/core/Button/index.d.ts +15 -0
- package/core/Button/index.js +132 -0
- package/core/Button/index.mdx +113 -0
- package/core/Button/index.spec.d.ts +1 -0
- package/core/Button/index.spec.js +21 -0
- package/core/Card/Card.stories.d.ts +19 -0
- package/core/Card/Card.stories.js +146 -0
- package/core/Card/Card.stories.playwright.json +21 -0
- package/core/Card/__stories__/Default.d.ts +2 -0
- package/core/Card/__stories__/Default.js +24 -0
- package/core/Card/__stories__/WithClickableContent.d.ts +2 -0
- package/core/Card/__stories__/WithClickableContent.js +28 -0
- package/core/Card/__stories__/WithClickableLink.d.ts +2 -0
- package/core/Card/__stories__/WithClickableLink.js +26 -0
- package/core/Card/__stories__/WithDarkBorder.d.ts +2 -0
- package/core/Card/__stories__/WithDarkBorder.js +27 -0
- package/core/Card/__stories__/WithDarkTopBorder.d.ts +2 -0
- package/core/Card/__stories__/WithDarkTopBorder.js +27 -0
- package/core/Card/__stories__/WithDivider.d.ts +2 -0
- package/core/Card/__stories__/WithDivider.js +26 -0
- package/core/Card/__stories__/WithGrayBorder.d.ts +2 -0
- package/core/Card/__stories__/WithGrayBorder.js +27 -0
- package/core/Card/__stories__/WithGrayTopBorder.d.ts +2 -0
- package/core/Card/__stories__/WithGrayTopBorder.js +27 -0
- package/core/Card/__stories__/WithGroupButton.d.ts +2 -0
- package/core/Card/__stories__/WithGroupButton.js +26 -0
- package/core/Card/card.mdx +101 -0
- package/core/Card/index.d.ts +6 -0
- package/core/Card/index.js +72 -0
- package/core/Checkbox/Checkbox.stories.d.ts +16 -0
- package/core/Checkbox/Checkbox.stories.js +117 -0
- package/{src/core/Checkboxes → core/Checkbox}/Checkbox.stories.playwright.json +3 -3
- package/core/Checkbox/__stories__/ConditionalReveal.d.ts +2 -0
- package/core/Checkbox/__stories__/ConditionalReveal.js +42 -0
- package/core/Checkbox/__stories__/Default.d.ts +2 -0
- package/core/Checkbox/__stories__/Default.js +39 -0
- package/core/Checkbox/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/Checkbox/__stories__/MultipleQuestions.js +41 -0
- package/core/Checkbox/__stories__/NoneAnswer.d.ts +2 -0
- package/core/Checkbox/__stories__/NoneAnswer.js +41 -0
- package/core/Checkbox/__stories__/NoneAnswerWithError.d.ts +2 -0
- package/core/Checkbox/__stories__/NoneAnswerWithError.js +51 -0
- package/core/Checkbox/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/Checkbox/__stories__/WithErrorMessage.js +44 -0
- package/core/Checkbox/__stories__/WithHint.d.ts +2 -0
- package/core/Checkbox/__stories__/WithHint.js +39 -0
- package/{src/core/Checkboxes/checkboxes.mdx → core/Checkbox/checkbox.mdx} +40 -16
- package/{src/core/Checkboxes/index.tsx → core/Checkbox/index.d.ts} +0 -0
- package/core/Checkbox/index.js +58 -0
- package/core/DateInputContainer/DateInputContainer.stories.d.ts +13 -0
- package/core/DateInputContainer/DateInputContainer.stories.js +75 -0
- package/{src/core/DateInput/DateInput.stories.playwright.json → core/DateInputContainer/DateInputContainer.stories.playwright.json} +0 -0
- package/core/DateInputContainer/__stories__/Default.d.ts +2 -0
- package/core/DateInputContainer/__stories__/Default.js +35 -0
- package/core/DateInputContainer/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/DateInputContainer/__stories__/MultipleQuestions.js +35 -0
- package/core/DateInputContainer/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/DateInputContainer/__stories__/WithErrorMessage.js +42 -0
- package/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.d.ts +2 -0
- package/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +40 -0
- package/core/DateInputContainer/index.d.ts +4 -0
- package/core/DateInputContainer/index.js +44 -0
- package/core/DateInputContainer/index.mdx +44 -0
- package/core/Details/Details.stories.d.ts +10 -0
- package/core/Details/Details.stories.js +33 -0
- package/core/Details/Details.stories.playwright.json +27 -0
- package/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/core/Details/__stories__/Default.d.ts +2 -0
- package/core/Details/__stories__/Default.js +22 -0
- package/core/Details/index.d.ts +5 -0
- package/core/Details/index.js +58 -0
- package/core/Details/index.mdx +20 -0
- package/core/Details/index.spec.d.ts +1 -0
- package/core/Details/index.spec.js +27 -0
- package/core/Divider/Divider.stories.d.ts +8 -0
- package/core/Divider/Divider.stories.js +33 -0
- package/core/Divider/__stories__/Default.d.ts +2 -0
- package/core/Divider/__stories__/Default.js +39 -0
- package/core/Divider/index.d.ts +5 -0
- package/core/Divider/index.js +21 -0
- package/core/ErrorMessage/ErrorMessage.stories.d.ts +10 -0
- package/core/ErrorMessage/ErrorMessage.stories.js +33 -0
- package/core/ErrorMessage/__stories__/Default.d.ts +2 -0
- package/core/ErrorMessage/__stories__/Default.js +38 -0
- package/core/ErrorMessage/index.d.ts +3 -0
- package/core/ErrorMessage/index.js +30 -0
- package/core/ErrorMessage/index.mdx +22 -0
- package/core/ErrorSummary/ErrorSummary.stories.d.ts +13 -0
- package/core/ErrorSummary/ErrorSummary.stories.js +75 -0
- package/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/core/ErrorSummary/__stories__/Default.d.ts +2 -0
- package/core/ErrorSummary/__stories__/Default.js +28 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +2 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +52 -0
- package/core/ErrorSummary/__stories__/LinkedToField.d.ts +2 -0
- package/core/ErrorSummary/__stories__/LinkedToField.js +53 -0
- package/core/ErrorSummary/__stories__/LinkedToInput.d.ts +2 -0
- package/core/ErrorSummary/__stories__/LinkedToInput.js +52 -0
- package/core/ErrorSummary/index.d.ts +3 -0
- package/core/ErrorSummary/index.js +30 -0
- package/core/ErrorSummary/index.mdx +54 -0
- package/core/ErrorSummary/index.spec.d.ts +1 -0
- package/core/ErrorSummary/index.spec.js +19 -0
- package/core/FieldContainer/index.d.ts +5 -0
- package/core/FieldContainer/index.js +58 -0
- package/core/FileUpload/FileUpload.stories.d.ts +10 -0
- package/core/FileUpload/FileUpload.stories.js +46 -0
- package/core/FileUpload/__stories__/Default.d.ts +2 -0
- package/core/FileUpload/__stories__/Default.js +28 -0
- package/core/FileUpload/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/FileUpload/__stories__/WithErrorMessage.js +34 -0
- package/core/FileUpload/index.d.ts +4 -0
- package/core/FileUpload/index.js +44 -0
- package/core/FileUpload/index.mdx +27 -0
- package/core/Form/index.d.ts +3 -0
- package/core/Form/index.js +19 -0
- package/core/Hidden/index.d.ts +1 -0
- package/core/Hidden/index.js +18 -0
- package/core/LabelContainer/index.d.ts +4 -0
- package/core/LabelContainer/index.js +44 -0
- package/core/Link/Link.stories.d.ts +14 -0
- package/core/Link/Link.stories.js +102 -0
- package/core/Link/Link.stories.playwright.json +65 -0
- package/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/core/Link/__stories__/DarkBackground.d.ts +2 -0
- package/core/Link/__stories__/DarkBackground.js +30 -0
- package/core/Link/__stories__/DarkBackgroundNoUnderline.d.ts +2 -0
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +31 -0
- package/core/Link/__stories__/Default.d.ts +2 -0
- package/core/Link/__stories__/Default.js +26 -0
- package/core/Link/__stories__/ExternalLink.d.ts +2 -0
- package/core/Link/__stories__/ExternalLink.js +28 -0
- package/core/Link/__stories__/NoUnderline.d.ts +2 -0
- package/core/Link/__stories__/NoUnderline.js +27 -0
- package/core/Link/__stories__/OpensInNewTab.d.ts +2 -0
- package/core/Link/__stories__/OpensInNewTab.js +26 -0
- package/core/Link/index.d.ts +13 -0
- package/core/Link/index.js +62 -0
- package/core/Link/index.spec.d.ts +1 -0
- package/core/Link/index.spec.js +31 -0
- package/core/Link/link.mdx +54 -0
- package/core/List/List.d.ts +3 -0
- package/core/List/List.js +30 -0
- package/core/List/List.stories.d.ts +15 -0
- package/core/List/List.stories.js +103 -0
- package/core/List/List.stories.playwright.json +27 -0
- package/core/List/ListItem.d.ts +3 -0
- package/core/List/ListItem.js +19 -0
- package/core/List/ListItemContent.d.ts +6 -0
- package/core/List/ListItemContent.js +27 -0
- package/core/List/ListItemIcon.d.ts +5 -0
- package/core/List/ListItemIcon.js +27 -0
- package/core/List/ListItemText.d.ts +7 -0
- package/core/List/ListItemText.js +29 -0
- package/core/List/ListItemTitle.d.ts +9 -0
- package/core/List/ListItemTitle.js +37 -0
- package/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/core/List/__stories__/BulletList.d.ts +2 -0
- package/core/List/__stories__/BulletList.js +26 -0
- package/core/List/__stories__/Default.d.ts +2 -0
- package/core/List/__stories__/Default.js +26 -0
- package/core/List/__stories__/NestedBulletList.d.ts +2 -0
- package/core/List/__stories__/NestedBulletList.js +34 -0
- package/core/List/__stories__/NestedListWithVariantStyles.d.ts +2 -0
- package/core/List/__stories__/NestedListWithVariantStyles.js +32 -0
- package/core/List/__stories__/NumberedList.d.ts +2 -0
- package/core/List/__stories__/NumberedList.js +26 -0
- package/core/List/__stories__/WithExtraSpace.d.ts +2 -0
- package/core/List/__stories__/WithExtraSpace.js +26 -0
- package/core/List/index.d.ts +7 -0
- package/core/List/index.js +96 -0
- package/core/List/index.mdx +34 -0
- package/core/List/index.spec.d.ts +1 -0
- package/core/List/index.spec.js +19 -0
- package/core/Masthead/Masthead.stories.d.ts +11 -0
- package/core/Masthead/Masthead.stories.js +34 -0
- package/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/core/Masthead/__stories__/Default.d.ts +2 -0
- package/core/Masthead/__stories__/Default.js +32 -0
- package/core/Masthead/index.d.ts +4 -0
- package/core/Masthead/index.js +44 -0
- package/core/Masthead/masthead.mdx +18 -0
- package/core/NavList/NavHorizontal.d.ts +3 -0
- package/core/NavList/NavHorizontal.js +19 -0
- package/core/NavList/NavHorizontalList.d.ts +3 -0
- package/core/NavList/NavHorizontalList.js +19 -0
- package/core/NavList/NavHorizontalListItem.d.ts +3 -0
- package/core/NavList/NavHorizontalListItem.js +19 -0
- 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/NavList.d.ts +4 -0
- package/core/NavList/NavList.js +42 -0
- package/core/NavList/NavList.stories.d.ts +11 -0
- package/core/NavList/NavList.stories.js +47 -0
- package/core/NavList/NavList.stories.playwright.json +33 -0
- package/core/NavList/NavListBase.d.ts +4 -0
- package/core/NavList/NavListBase.js +76 -0
- package/core/NavList/NavListContext.d.ts +20 -0
- package/core/NavList/NavListContext.js +102 -0
- package/core/NavList/NavListItem.d.ts +14 -0
- package/core/NavList/NavListItem.js +173 -0
- package/core/NavList/NavListItemBase.d.ts +17 -0
- package/core/NavList/NavListItemBase.js +165 -0
- package/core/NavList/NavListSubMenu.d.ts +8 -0
- package/core/NavList/NavListSubMenu.js +52 -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/NavVertical.d.ts +3 -0
- package/core/NavList/NavVertical.js +19 -0
- package/core/NavList/NavVerticalItem.d.ts +3 -0
- package/core/NavList/NavVerticalItem.js +19 -0
- package/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/core/NavList/__stories__/Default.d.ts +2 -0
- package/core/NavList/__stories__/Default.js +63 -0
- package/core/NavList/__stories__/NavHorizontalLayout.d.ts +2 -0
- package/core/NavList/__stories__/NavHorizontalLayout.js +63 -0
- package/core/NavList/index.d.ts +20 -0
- package/core/NavList/index.js +268 -0
- package/core/NavList/index.mdx +32 -0
- package/core/NavList/index.spec.d.ts +1 -0
- package/core/NavList/index.spec.js +19 -0
- package/core/NavList/types.d.ts +14 -0
- package/core/NavList/types.js +5 -0
- package/core/NotificationBanner/NotificationBanner.stories.d.ts +12 -0
- package/core/NotificationBanner/NotificationBanner.stories.js +48 -0
- package/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/core/NotificationBanner/__stories__/Default.d.ts +2 -0
- package/core/NotificationBanner/__stories__/Default.js +26 -0
- package/core/NotificationBanner/__stories__/Success.d.ts +2 -0
- package/core/NotificationBanner/__stories__/Success.js +27 -0
- package/core/NotificationBanner/index.d.ts +18 -0
- package/core/NotificationBanner/index.js +79 -0
- package/core/NotificationBanner/index.mdx +34 -0
- package/core/NotificationBanner/index.spec.d.ts +1 -0
- package/core/NotificationBanner/index.spec.js +30 -0
- package/core/PhaseBanner/PhaseBanner.stories.d.ts +11 -0
- package/core/PhaseBanner/PhaseBanner.stories.js +47 -0
- package/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/core/PhaseBanner/__stories__/Default.d.ts +2 -0
- package/core/PhaseBanner/__stories__/Default.js +26 -0
- package/core/PhaseBanner/__stories__/Underlined.d.ts +2 -0
- package/core/PhaseBanner/__stories__/Underlined.js +28 -0
- package/core/PhaseBanner/index.d.ts +6 -0
- package/core/PhaseBanner/index.js +72 -0
- package/core/PhaseBanner/index.mdx +30 -0
- package/core/RadioContainer/RadioContainer.stories.d.ts +16 -0
- package/core/RadioContainer/RadioContainer.stories.js +117 -0
- package/{src/core/Radios/Radios.stories.playwright.json → core/RadioContainer/RadioContainer.stories.playwright.json} +3 -3
- package/core/RadioContainer/__stories__/ConditionalReveal.d.ts +2 -0
- package/core/RadioContainer/__stories__/ConditionalReveal.js +42 -0
- package/core/RadioContainer/__stories__/Default.d.ts +2 -0
- package/core/RadioContainer/__stories__/Default.js +36 -0
- package/core/RadioContainer/__stories__/Inline.d.ts +2 -0
- package/core/RadioContainer/__stories__/Inline.js +38 -0
- package/core/RadioContainer/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/RadioContainer/__stories__/MultipleQuestions.js +44 -0
- package/core/RadioContainer/__stories__/NoneAnswer.d.ts +2 -0
- package/core/RadioContainer/__stories__/NoneAnswer.js +35 -0
- package/core/RadioContainer/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/RadioContainer/__stories__/WithErrorMessage.js +44 -0
- package/core/RadioContainer/__stories__/WithHints.d.ts +2 -0
- package/core/RadioContainer/__stories__/WithHints.js +44 -0
- package/core/RadioContainer/index.d.ts +5 -0
- package/core/RadioContainer/index.js +58 -0
- package/core/RadioContainer/index.mdx +90 -0
- package/core/SectionBreak/index.d.ts +3 -0
- package/core/SectionBreak/index.js +30 -0
- package/core/SelectContainer/Select.stories.d.ts +12 -0
- package/core/SelectContainer/Select.stories.js +61 -0
- package/{src/core/Select → core/SelectContainer}/Select.stories.playwright.json +2 -2
- package/core/SelectContainer/__stories__/Default.d.ts +2 -0
- package/core/SelectContainer/__stories__/Default.js +37 -0
- package/core/SelectContainer/__stories__/DisabledInput.d.ts +2 -0
- package/core/SelectContainer/__stories__/DisabledInput.js +39 -0
- package/core/SelectContainer/__stories__/WithHint.d.ts +2 -0
- package/core/SelectContainer/__stories__/WithHint.js +39 -0
- package/core/SelectContainer/index.d.ts +4 -0
- package/core/SelectContainer/index.js +44 -0
- package/core/SelectContainer/index.mdx +42 -0
- package/core/ServiceBadge/index.d.ts +8 -0
- package/core/ServiceBadge/index.js +35 -0
- package/core/ServiceBadge/index.mdx +42 -0
- package/core/SkipLink/index.d.ts +3 -0
- package/core/SkipLink/index.js +19 -0
- package/core/SummaryList/SummaryList.stories.d.ts +14 -0
- package/core/SummaryList/SummaryList.stories.js +91 -0
- package/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/core/SummaryList/__stories__/Default.d.ts +2 -0
- package/core/SummaryList/__stories__/Default.js +28 -0
- package/core/SummaryList/__stories__/RowVariations.d.ts +2 -0
- package/core/SummaryList/__stories__/RowVariations.js +52 -0
- package/core/SummaryList/__stories__/WithActions.d.ts +2 -0
- package/core/SummaryList/__stories__/WithActions.js +36 -0
- package/core/SummaryList/__stories__/WithKeyAndAction.d.ts +2 -0
- package/core/SummaryList/__stories__/WithKeyAndAction.js +36 -0
- package/core/SummaryList/__stories__/WithoutBorders.d.ts +2 -0
- package/core/SummaryList/__stories__/WithoutBorders.js +24 -0
- package/core/SummaryList/index.d.ts +7 -0
- package/core/SummaryList/index.js +79 -0
- package/core/SummaryList/index.mdx +42 -0
- package/core/SummaryList/index.spec.d.ts +1 -0
- package/core/SummaryList/index.spec.js +19 -0
- package/core/SvgIcon/index.d.ts +10 -0
- package/core/SvgIcon/index.js +128 -0
- package/core/Table/Table.stories.d.ts +24 -0
- package/core/Table/Table.stories.js +231 -0
- package/core/Table/Table.stories.playwright.json +21 -0
- package/core/Table/TableFloatingScroll.d.ts +2 -0
- package/core/Table/TableFloatingScroll.js +107 -0
- package/core/Table/__stories__/DarkVariant.d.ts +2 -0
- package/core/Table/__stories__/DarkVariant.js +24 -0
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +2 -0
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +24 -0
- package/core/Table/__stories__/Default.d.ts +2 -0
- package/core/Table/__stories__/Default.js +22 -0
- package/core/Table/__stories__/DefinedWidth.d.ts +2 -0
- package/core/Table/__stories__/DefinedWidth.js +28 -0
- package/core/Table/__stories__/Densed.d.ts +2 -0
- package/core/Table/__stories__/Densed.js +26 -0
- package/core/Table/__stories__/Full.d.ts +2 -0
- package/core/Table/__stories__/Full.js +27 -0
- package/core/Table/__stories__/MultipleProps.d.ts +2 -0
- package/core/Table/__stories__/MultipleProps.js +58 -0
- package/core/Table/__stories__/NoData.d.ts +2 -0
- package/core/Table/__stories__/NoData.js +24 -0
- package/core/Table/__stories__/NumericDataType.d.ts +2 -0
- package/core/Table/__stories__/NumericDataType.js +46 -0
- package/core/Table/__stories__/TableCaptions.d.ts +2 -0
- package/core/Table/__stories__/TableCaptions.js +30 -0
- package/core/Table/__stories__/VerticalBorders.d.ts +2 -0
- package/core/Table/__stories__/VerticalBorders.js +24 -0
- package/core/Table/__stories__/VerticalHeaders.d.ts +2 -0
- package/core/Table/__stories__/VerticalHeaders.js +22 -0
- package/core/Table/__stories__/WithFloatingScroll.d.ts +2 -0
- package/core/Table/__stories__/WithFloatingScroll.js +89 -0
- package/core/Table/__stories__/WithHeader.d.ts +2 -0
- package/core/Table/__stories__/WithHeader.js +67 -0
- package/core/Table/__stories__/WithLoader.d.ts +2 -0
- package/core/Table/__stories__/WithLoader.js +106 -0
- package/core/Table/__stories__/ZebraProp.d.ts +2 -0
- package/core/Table/__stories__/ZebraProp.js +24 -0
- package/core/Table/index.d.ts +12 -0
- package/core/Table/index.js +156 -0
- package/core/Table/index.mdx +94 -0
- package/core/Tabs/Tabs.stories.d.ts +11 -0
- package/core/Tabs/Tabs.stories.js +34 -0
- package/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/core/Tabs/__stories__/Default.d.ts +2 -0
- package/core/Tabs/__stories__/Default.js +46 -0
- package/core/Tabs/index.d.ts +16 -0
- package/core/Tabs/index.js +146 -0
- package/core/Tabs/index.mdx +18 -0
- package/core/TextArea/TextArea.stories.d.ts +16 -0
- package/core/TextArea/TextArea.stories.js +117 -0
- package/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/core/TextArea/__stories__/Default.d.ts +2 -0
- package/core/TextArea/__stories__/Default.js +30 -0
- package/core/TextArea/__stories__/DisabledInput.d.ts +2 -0
- package/core/TextArea/__stories__/DisabledInput.js +33 -0
- package/core/TextArea/__stories__/LimitedCharacters.d.ts +2 -0
- package/core/TextArea/__stories__/LimitedCharacters.js +32 -0
- package/core/TextArea/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/TextArea/__stories__/MultipleQuestions.js +30 -0
- package/core/TextArea/__stories__/WithDeclaredRows.d.ts +2 -0
- package/core/TextArea/__stories__/WithDeclaredRows.js +33 -0
- package/core/TextArea/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/TextArea/__stories__/WithErrorMessage.js +37 -0
- package/core/TextArea/__stories__/WithHint.d.ts +2 -0
- package/core/TextArea/__stories__/WithHint.js +32 -0
- package/core/TextArea/index.d.ts +3 -0
- package/core/TextArea/index.js +30 -0
- package/core/TextArea/index.mdx +72 -0
- package/core/TextInput/TextInput.stories.d.ts +17 -0
- package/core/TextInput/TextInput.stories.js +131 -0
- package/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/core/TextInput/__stories__/AskingForNumbers.d.ts +2 -0
- package/core/TextInput/__stories__/AskingForNumbers.js +34 -0
- package/core/TextInput/__stories__/Default.d.ts +2 -0
- package/core/TextInput/__stories__/Default.js +30 -0
- package/core/TextInput/__stories__/DisabledInput.d.ts +2 -0
- package/core/TextInput/__stories__/DisabledInput.js +33 -0
- package/core/TextInput/__stories__/FixedWidths.d.ts +2 -0
- package/core/TextInput/__stories__/FixedWidths.js +66 -0
- package/core/TextInput/__stories__/FluidWidths.d.ts +2 -0
- package/core/TextInput/__stories__/FluidWidths.js +66 -0
- package/core/TextInput/__stories__/MultipleQuestions.d.ts +2 -0
- package/core/TextInput/__stories__/MultipleQuestions.js +28 -0
- package/core/TextInput/__stories__/WithErrorMessage.d.ts +2 -0
- package/core/TextInput/__stories__/WithErrorMessage.js +37 -0
- package/core/TextInput/__stories__/WithHint.d.ts +2 -0
- package/core/TextInput/__stories__/WithHint.js +32 -0
- package/core/TextInput/index.d.ts +3 -0
- package/core/TextInput/index.js +30 -0
- package/core/TextInput/index.mdx +88 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.d.ts +8 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.js +31 -0
- package/core/VisuallyHidden/__stories__/Default.d.ts +2 -0
- package/core/VisuallyHidden/__stories__/Default.js +32 -0
- package/core/VisuallyHidden/index.d.ts +3 -0
- package/core/VisuallyHidden/index.js +30 -0
- package/core/VisuallyHidden/index.mdx +20 -0
- package/core/WarningText/WarningText.stories.d.ts +10 -0
- package/core/WarningText/WarningText.stories.js +33 -0
- package/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/core/WarningText/__stories__/Default.d.ts +2 -0
- package/core/WarningText/__stories__/Default.js +22 -0
- package/core/WarningText/index.d.ts +3 -0
- package/core/WarningText/index.js +30 -0
- package/core/WarningText/index.mdx +21 -0
- package/core/WarningText/index.spec.d.ts +1 -0
- package/core/WarningText/index.spec.js +19 -0
- package/core/index.d.ts +36 -0
- package/core/index.js +460 -0
- package/custom.d.js +1 -0
- package/es/admin/AdminLayout/index.js +9 -0
- package/es/admin/AutoComplete/AutoComplete.stories.js +14 -0
- package/es/admin/AutoComplete/Status/index.js +153 -0
- package/es/admin/AutoComplete/__stories__/Default.js +19 -0
- package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +31 -0
- package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithInLine.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
- package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
- package/es/admin/AutoComplete/__stories__/utils.js +0 -0
- package/es/admin/AutoComplete/index.js +647 -0
- package/es/admin/AutoComplete/index.mdx +73 -0
- package/es/admin/AutoComplete/utils.js +28 -0
- package/es/admin/Chip/index.js +7 -0
- package/es/admin/CircularProgress/CircularProgress.stories.js +7 -0
- package/es/admin/CircularProgress/__stories__/Default.js +10 -0
- package/es/admin/CircularProgress/index.js +3 -0
- package/es/admin/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/es/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
- package/es/admin/CopyToClipboard/__stories__/Banner.js +16 -0
- package/es/admin/CopyToClipboard/__stories__/Default.js +18 -0
- package/es/admin/CopyToClipboard/index.js +49 -0
- package/es/admin/CopyToClipboard/index.mdx +26 -0
- package/es/admin/Drawer/Drawer.stories.js +9 -0
- package/es/admin/Drawer/__stories__/Default.js +83 -0
- package/es/admin/Drawer/index.js +4 -0
- package/es/admin/Drawer/index.mdx +16 -0
- package/es/admin/Dropdown/Dropdown.stories.js +12 -0
- package/es/admin/Dropdown/__stories__/AlignRight.js +57 -0
- package/es/admin/Dropdown/__stories__/Default.js +50 -0
- package/es/admin/Dropdown/__stories__/PlacementTop.js +57 -0
- package/es/admin/Dropdown/index.js +87 -0
- package/es/admin/Dropdown/index.mdx +45 -0
- package/es/admin/DropdownArrowDown/index.js +3 -0
- package/es/admin/FillableText/index.js +3 -0
- package/es/admin/FilterSection/index.js +9 -0
- package/es/admin/FullPageBackground/index.js +3 -0
- package/es/admin/LabeledText/index.js +3 -0
- package/es/admin/LoaderContainer/index.js +3 -0
- package/es/admin/Modal/Modal.stories.js +10 -0
- package/es/admin/Modal/__stories__/AlertDialog.js +22 -0
- package/es/admin/Modal/__stories__/Default.js +23 -0
- package/es/admin/Modal/index.js +88 -0
- package/es/admin/Modal/index.mdx +33 -0
- package/es/admin/Pagination/Pagination.stories.js +10 -0
- package/es/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/es/admin/Pagination/__stories__/Default.js +130 -0
- package/es/admin/Pagination/__stories__/PaginationSmall.js +38 -0
- package/es/admin/Pagination/index.js +23 -0
- package/es/admin/Pagination/index.mdx +16 -0
- package/es/admin/ResultsHeading/index.js +5 -0
- package/es/admin/SearchSection/index.js +5 -0
- package/es/admin/StepNav/StepNav.stories.js +9 -0
- package/es/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/es/admin/StepNav/__stories__/Default.js +98 -0
- package/es/admin/StepNav/index.js +15 -0
- package/es/admin/TableLoaderBackground/index.js +3 -0
- package/es/admin/TaskList/TaskList.stories.js +8 -0
- package/es/admin/TaskList/__stories__/Default.js +74 -0
- package/es/admin/TaskList/index.js +7 -0
- package/es/admin/Timeline/Timeline.stories.js +8 -0
- package/es/admin/Timeline/__stories__/Default.js +67 -0
- package/es/admin/Timeline/index.js +7 -0
- package/es/admin/index.js +21 -0
- package/es/api/APIErrors.js +96 -0
- package/es/api/APIProvider.js +25 -0
- package/es/api/fetchAPI.js +52 -0
- package/es/api/index.js +13 -0
- package/es/api/index.spec.js +548 -0
- package/es/api/introduction.md +6 -0
- package/es/api/useResource.js +131 -0
- package/es/api/useResourceAction.js +144 -0
- package/es/api/useResourceQuery.js +211 -0
- package/es/api/utils.js +236 -0
- package/es/app/App.js +14 -0
- package/es/app/Confirmation/Confirmation.mdx +16 -0
- package/es/app/Confirmation/Confirmation.stories.js +9 -0
- package/es/app/Confirmation/__stories__/Default.js +9 -0
- package/es/app/Confirmation/index.js +5 -0
- package/es/app/Footer/Footer.mdx +46 -0
- package/es/app/Footer/Footer.stories.js +17 -0
- package/es/app/Footer/Footer.stories.playwright.json +27 -0
- package/es/app/Footer/__stories__/Default.js +9 -0
- package/es/app/Footer/__stories__/DefaultCopyright.js +17 -0
- package/es/app/Footer/__stories__/FooterAllInclusive.js +36 -0
- package/es/app/Footer/__stories__/FooterWithLink.js +24 -0
- package/es/app/Footer/__stories__/FooterWithLogo.js +26 -0
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +33 -0
- package/es/app/Footer/__stories__/YearCopyright.js +23 -0
- package/es/app/Footer/index.js +17 -0
- package/es/app/Header/Header.stories.js +18 -0
- package/es/app/Header/Header.stories.playwright.json +33 -0
- package/es/app/Header/HeaderContent.js +3 -0
- package/es/app/Header/HeaderLogo.js +3 -0
- package/es/app/Header/HeaderNavMenuContent.js +3 -0
- package/es/app/Header/HeaderSecondaryLogo.js +3 -0
- package/es/app/Header/HeaderSection.js +3 -0
- package/es/app/Header/HeaderSubtitle.js +3 -0
- package/es/app/Header/HeaderTitle.js +3 -0
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +396 -0
- package/es/app/Header/__stories__/Default.js +14 -0
- package/es/app/Header/__stories__/WithHeaderNavigation.js +36 -0
- package/es/app/Header/__stories__/WithNavigation.js +30 -0
- package/es/app/Header/__stories__/WithServiceName.js +15 -0
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +20 -0
- package/es/app/Header/index.js +10 -0
- package/es/app/Header/index.mdx +43 -0
- package/es/app/Header/index.spec.js +32 -0
- package/es/app/I18nText.js +79 -0
- package/es/app/NotFound/NotFound.stories.js +7 -0
- package/es/app/NotFound/__stories__/Default.js +9 -0
- package/es/app/NotFound/index.js +12 -0
- package/es/app/NotFound/index.mdx +16 -0
- package/es/app/OutdatedBrowserBanner.js +24 -0
- package/es/app/PageTitle.js +6 -0
- package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +7 -0
- package/es/app/PhaseBannerHeader/__stories__/Default.js +12 -0
- package/es/app/PhaseBannerHeader/index.js +19 -0
- package/es/app/PhaseBannerHeader/index.mdx +16 -0
- package/es/app/QrCodeScanner/QrCodeScanner.stories.js +7 -0
- package/es/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/es/app/QrCodeScanner/__stories__/Default.js +52 -0
- package/es/app/QrCodeScanner/index.js +66 -0
- package/es/app/QrCodeScanner/index.spec.js +13 -0
- package/es/app/QrCodeViewer/QRCode.stories.js +9 -0
- package/es/app/QrCodeViewer/__stories__/Custom.js +22 -0
- package/es/app/QrCodeViewer/__stories__/Default.js +11 -0
- package/es/app/QrCodeViewer/index.js +157 -0
- package/es/app/QrCodeViewer/index.mdx +28 -0
- package/es/app/QrCodeViewer/qrcodegen.js +1085 -0
- package/es/app/QrCodeViewer/types.js +1 -0
- package/es/app/QrCodeViewer/utils.js +95 -0
- package/es/app/i18n.js +54 -0
- package/es/app/index.js +10 -0
- package/es/core/Accordion/Accordion.stories.js +11 -0
- package/es/core/Accordion/Accordion.stories.playwright.json +21 -0
- package/es/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/es/core/Accordion/__stories__/Default.js +31 -0
- package/es/core/Accordion/__stories__/WithHints.js +32 -0
- package/es/core/Accordion/index.js +64 -0
- package/es/core/Accordion/index.mdx +41 -0
- package/es/core/Accordion/index.spec.js +9 -0
- package/es/core/BackLink/BackLink.stories.js +7 -0
- package/es/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/es/core/BackLink/__stories__/Default.js +11 -0
- package/es/core/BackLink/index.js +3 -0
- package/es/core/BackLink/index.mdx +20 -0
- package/es/core/Base/index.js +3 -0
- package/es/core/Blockquote/Blockquote.stories.js +9 -0
- package/es/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/es/core/Blockquote/__stories__/Default.js +9 -0
- package/es/core/Blockquote/index.js +3 -0
- package/es/core/Blockquote/index.mdx +23 -0
- package/es/core/Blockquote/index.spec.js +9 -0
- package/es/core/Breadcrumbs/Breadcrumbs.stories.js +9 -0
- package/es/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/es/core/Breadcrumbs/__stories__/Default.js +21 -0
- package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/es/core/Breadcrumbs/index.js +5 -0
- package/es/core/Button/BackButton.js +21 -0
- package/es/core/Button/BackLink.js +3 -0
- package/es/core/Button/Button.stories.js +20 -0
- package/es/core/Button/Button.stories.playwright.json +115 -0
- package/es/core/Button/ButtonLink.js +3 -0
- package/es/core/Button/CallToAction.js +3 -0
- package/es/core/Button/Icon.js +7 -0
- package/es/core/Button/ThemeToggleButton.js +49 -0
- package/es/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/es/core/Button/__stories__/Back.js +13 -0
- package/es/core/Button/__stories__/ButtonLinkButton.js +17 -0
- package/es/core/Button/__stories__/CallToActionButton.js +17 -0
- package/es/core/Button/__stories__/Disabled.js +14 -0
- package/es/core/Button/__stories__/GroupingButtons.js +13 -0
- package/es/core/Button/__stories__/GroupingButtonsAndLinks.js +14 -0
- package/es/core/Button/__stories__/Primary.js +14 -0
- package/es/core/Button/__stories__/Secondary.js +15 -0
- package/es/core/Button/__stories__/ThemeToggle.js +9 -0
- package/es/core/Button/__stories__/Warning.js +11 -0
- package/es/core/Button/__stories__/WithVariantLink.js +16 -0
- package/es/core/Button/index.js +20 -0
- package/es/core/Button/index.mdx +113 -0
- package/es/core/Button/index.spec.js +9 -0
- package/es/core/Card/Card.stories.js +18 -0
- package/es/core/Card/Card.stories.playwright.json +21 -0
- package/es/core/Card/__stories__/Default.js +10 -0
- package/es/core/Card/__stories__/WithClickableContent.js +14 -0
- package/es/core/Card/__stories__/WithClickableLink.js +12 -0
- package/es/core/Card/__stories__/WithDarkBorder.js +13 -0
- package/es/core/Card/__stories__/WithDarkTopBorder.js +13 -0
- package/es/core/Card/__stories__/WithDivider.js +12 -0
- package/es/core/Card/__stories__/WithGrayBorder.js +13 -0
- package/es/core/Card/__stories__/WithGrayTopBorder.js +13 -0
- package/es/core/Card/__stories__/WithGroupButton.js +11 -0
- package/es/core/Card/card.mdx +101 -0
- package/es/core/Card/index.js +6 -0
- package/es/core/Checkbox/Checkbox.stories.js +15 -0
- package/es/core/Checkbox/Checkbox.stories.playwright.json +55 -0
- package/es/core/Checkbox/__stories__/ConditionalReveal.js +26 -0
- package/es/core/Checkbox/__stories__/Default.js +24 -0
- package/es/core/Checkbox/__stories__/MultipleQuestions.js +26 -0
- package/es/core/Checkbox/__stories__/NoneAnswer.js +26 -0
- package/es/core/Checkbox/__stories__/NoneAnswerWithError.js +34 -0
- package/es/core/Checkbox/__stories__/WithErrorMessage.js +27 -0
- package/es/core/Checkbox/__stories__/WithHint.js +24 -0
- package/es/core/Checkbox/checkbox.mdx +78 -0
- package/es/core/Checkbox/index.js +5 -0
- package/es/core/DateInputContainer/DateInputContainer.stories.js +12 -0
- package/es/core/DateInputContainer/DateInputContainer.stories.playwright.json +61 -0
- package/es/core/DateInputContainer/__stories__/Default.js +20 -0
- package/es/core/DateInputContainer/__stories__/MultipleQuestions.js +20 -0
- package/es/core/DateInputContainer/__stories__/WithErrorMessage.js +25 -0
- package/es/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +23 -0
- package/{src/core/DateInput/index.tsx → es/core/DateInputContainer/index.js} +2 -2
- package/es/core/DateInputContainer/index.mdx +44 -0
- package/es/core/Details/Details.stories.js +9 -0
- package/es/core/Details/Details.stories.playwright.json +27 -0
- package/es/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/es/core/Details/__stories__/Default.js +9 -0
- package/es/core/Details/index.js +5 -0
- package/es/core/Details/index.mdx +20 -0
- package/es/core/Details/index.spec.js +17 -0
- package/es/core/Divider/Divider.stories.js +8 -0
- package/es/core/Divider/__stories__/Default.js +26 -0
- package/es/core/Divider/index.js +8 -0
- package/es/core/ErrorMessage/ErrorMessage.stories.js +9 -0
- package/es/core/ErrorMessage/__stories__/Default.js +21 -0
- package/es/core/ErrorMessage/index.js +3 -0
- package/es/core/ErrorMessage/index.mdx +22 -0
- package/es/core/ErrorSummary/ErrorSummary.stories.js +12 -0
- package/es/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/es/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/es/core/ErrorSummary/__stories__/Default.js +13 -0
- package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +32 -0
- package/es/core/ErrorSummary/__stories__/LinkedToField.js +33 -0
- package/es/core/ErrorSummary/__stories__/LinkedToInput.js +32 -0
- package/es/core/ErrorSummary/index.js +3 -0
- package/es/core/ErrorSummary/index.mdx +54 -0
- package/es/core/ErrorSummary/index.spec.js +8 -0
- package/{src/core/Field/index.tsx → es/core/FieldContainer/index.js} +2 -3
- package/es/core/FileUpload/FileUpload.stories.js +9 -0
- package/es/core/FileUpload/__stories__/Default.js +13 -0
- package/es/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/es/core/FileUpload/index.js +4 -0
- package/es/core/FileUpload/index.mdx +27 -0
- package/es/core/Form/index.js +3 -0
- package/es/core/Hidden/index.js +1 -0
- package/{src/core/Label/index.tsx → es/core/LabelContainer/index.js} +2 -3
- package/es/core/Link/Link.stories.js +13 -0
- package/es/core/Link/Link.stories.playwright.json +65 -0
- package/es/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/es/core/Link/__stories__/DarkBackground.js +15 -0
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +16 -0
- package/es/core/Link/__stories__/Default.js +13 -0
- package/es/core/Link/__stories__/ExternalLink.js +14 -0
- package/es/core/Link/__stories__/NoUnderline.js +14 -0
- package/es/core/Link/__stories__/OpensInNewTab.js +13 -0
- package/es/core/Link/index.js +30 -0
- package/es/core/Link/index.spec.js +21 -0
- package/es/core/Link/link.mdx +54 -0
- package/es/core/List/List.js +3 -0
- package/es/core/List/List.stories.js +14 -0
- package/es/core/List/List.stories.playwright.json +27 -0
- package/es/core/List/ListItem.js +3 -0
- package/es/core/List/ListItemContent.js +14 -0
- package/es/core/List/ListItemIcon.js +14 -0
- package/es/core/List/ListItemText.js +15 -0
- package/es/core/List/ListItemTitle.js +21 -0
- package/es/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/es/core/List/__stories__/BulletList.js +12 -0
- package/es/core/List/__stories__/Default.js +11 -0
- package/es/core/List/__stories__/NestedBulletList.js +20 -0
- package/es/core/List/__stories__/NestedListWithVariantStyles.js +18 -0
- package/es/core/List/__stories__/NumberedList.js +12 -0
- package/es/core/List/__stories__/WithExtraSpace.js +12 -0
- package/es/core/List/index.js +7 -0
- package/es/core/List/index.mdx +34 -0
- package/es/core/List/index.spec.js +8 -0
- package/es/core/Masthead/Masthead.stories.js +10 -0
- package/es/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/es/core/Masthead/__stories__/Default.js +15 -0
- package/es/core/Masthead/index.js +4 -0
- package/es/core/Masthead/masthead.mdx +18 -0
- package/es/core/NavList/NavHorizontal.js +3 -0
- package/es/core/NavList/NavHorizontalList.js +3 -0
- package/es/core/NavList/NavHorizontalListItem.js +3 -0
- package/es/core/NavList/NavHorizontalListItemButton.js +3 -0
- package/es/core/NavList/NavHorizontalListItemLink.js +3 -0
- package/es/core/NavList/NavList.js +25 -0
- package/es/core/NavList/NavList.stories.js +10 -0
- package/es/core/NavList/NavList.stories.playwright.json +33 -0
- package/es/core/NavList/NavListBase.js +60 -0
- package/es/core/NavList/NavListContext.js +80 -0
- package/es/core/NavList/NavListItem.js +143 -0
- package/es/core/NavList/NavListItemBase.js +137 -0
- package/es/core/NavList/NavListSubMenu.js +27 -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/NavVertical.js +3 -0
- package/es/core/NavList/NavVerticalItem.js +3 -0
- package/es/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/es/core/NavList/__stories__/Default.js +48 -0
- package/es/core/NavList/__stories__/NavHorizontalLayout.js +47 -0
- package/es/core/NavList/index.js +20 -0
- package/es/core/NavList/index.mdx +32 -0
- package/es/core/NavList/index.spec.js +8 -0
- package/es/core/NavList/types.js +1 -0
- package/es/core/NotificationBanner/NotificationBanner.stories.js +11 -0
- package/es/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/es/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/es/core/NotificationBanner/__stories__/Default.js +12 -0
- package/es/core/NotificationBanner/__stories__/Success.js +13 -0
- package/es/core/NotificationBanner/index.js +30 -0
- package/es/core/NotificationBanner/index.mdx +34 -0
- package/es/core/NotificationBanner/index.spec.js +19 -0
- package/es/core/PhaseBanner/PhaseBanner.stories.js +10 -0
- package/es/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/es/core/PhaseBanner/__stories__/Default.js +12 -0
- package/es/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/es/core/PhaseBanner/index.js +6 -0
- package/es/core/PhaseBanner/index.mdx +30 -0
- package/es/core/RadioContainer/RadioContainer.stories.js +15 -0
- package/es/core/RadioContainer/RadioContainer.stories.playwright.json +49 -0
- package/es/core/RadioContainer/__stories__/ConditionalReveal.js +26 -0
- package/es/core/RadioContainer/__stories__/Default.js +22 -0
- package/es/core/RadioContainer/__stories__/Inline.js +23 -0
- package/es/core/RadioContainer/__stories__/MultipleQuestions.js +29 -0
- package/es/core/RadioContainer/__stories__/NoneAnswer.js +21 -0
- package/es/core/RadioContainer/__stories__/WithErrorMessage.js +27 -0
- package/es/core/RadioContainer/__stories__/WithHints.js +29 -0
- package/{src/core/Radios/index.tsx → es/core/RadioContainer/index.js} +2 -2
- package/es/core/RadioContainer/index.mdx +90 -0
- package/es/core/SectionBreak/index.js +3 -0
- package/es/core/SelectContainer/Select.stories.js +11 -0
- package/es/core/SelectContainer/Select.stories.playwright.json +21 -0
- package/es/core/SelectContainer/__stories__/Default.js +22 -0
- package/es/core/SelectContainer/__stories__/DisabledInput.js +24 -0
- package/es/core/SelectContainer/__stories__/WithHint.js +23 -0
- package/{src/core/Select/index.tsx → es/core/SelectContainer/index.js} +2 -3
- package/es/core/SelectContainer/index.mdx +42 -0
- package/es/core/ServiceBadge/index.js +19 -0
- package/es/core/ServiceBadge/index.mdx +42 -0
- package/es/core/SkipLink/index.js +3 -0
- package/es/core/SummaryList/SummaryList.stories.js +14 -0
- package/es/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/es/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/es/core/SummaryList/__stories__/Default.js +13 -0
- package/es/core/SummaryList/__stories__/RowVariations.js +37 -0
- package/es/core/SummaryList/__stories__/WithActions.js +20 -0
- package/es/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
- package/es/core/SummaryList/__stories__/WithoutBorders.js +11 -0
- package/es/core/SummaryList/index.js +7 -0
- package/es/core/SummaryList/index.mdx +42 -0
- package/es/core/SummaryList/index.spec.js +9 -0
- package/es/core/SvgIcon/index.js +10 -0
- package/es/core/Table/Table.stories.js +24 -0
- package/es/core/Table/Table.stories.playwright.json +21 -0
- package/es/core/Table/TableFloatingScroll.js +87 -0
- package/es/core/Table/__stories__/DarkVariant.js +11 -0
- package/es/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +11 -0
- package/es/core/Table/__stories__/Default.js +9 -0
- package/es/core/Table/__stories__/DefinedWidth.js +15 -0
- package/es/core/Table/__stories__/Densed.js +13 -0
- package/es/core/Table/__stories__/Full.js +14 -0
- package/es/core/Table/__stories__/MultipleProps.js +45 -0
- package/es/core/Table/__stories__/NoData.js +11 -0
- package/es/core/Table/__stories__/NumericDataType.js +33 -0
- package/es/core/Table/__stories__/TableCaptions.js +17 -0
- package/es/core/Table/__stories__/VerticalBorders.js +11 -0
- package/es/core/Table/__stories__/VerticalHeaders.js +9 -0
- package/es/core/Table/__stories__/WithFloatingScroll.js +71 -0
- package/es/core/Table/__stories__/WithHeader.js +53 -0
- package/es/core/Table/__stories__/WithLoader.js +81 -0
- package/es/core/Table/__stories__/ZebraProp.js +11 -0
- package/es/core/Table/index.js +12 -0
- package/es/core/Table/index.mdx +94 -0
- package/es/core/Tabs/Tabs.stories.js +10 -0
- package/es/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/es/core/Tabs/__stories__/Default.js +29 -0
- package/es/core/Tabs/index.js +57 -0
- package/es/core/Tabs/index.mdx +18 -0
- package/es/core/TextArea/TextArea.stories.js +15 -0
- package/es/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/es/core/TextArea/__stories__/Default.js +16 -0
- package/es/core/TextArea/__stories__/DisabledInput.js +18 -0
- package/es/core/TextArea/__stories__/LimitedCharacters.js +17 -0
- package/es/core/TextArea/__stories__/MultipleQuestions.js +14 -0
- package/es/core/TextArea/__stories__/WithDeclaredRows.js +18 -0
- package/es/core/TextArea/__stories__/WithErrorMessage.js +21 -0
- package/es/core/TextArea/__stories__/WithHint.js +17 -0
- package/es/core/TextArea/index.js +3 -0
- package/es/core/TextArea/index.mdx +72 -0
- package/es/core/TextInput/TextInput.stories.js +16 -0
- package/es/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/es/core/TextInput/__stories__/AskingForNumbers.js +19 -0
- package/es/core/TextInput/__stories__/Default.js +16 -0
- package/es/core/TextInput/__stories__/DisabledInput.js +18 -0
- package/es/core/TextInput/__stories__/FixedWidths.js +52 -0
- package/es/core/TextInput/__stories__/FluidWidths.js +52 -0
- package/es/core/TextInput/__stories__/MultipleQuestions.js +13 -0
- package/es/core/TextInput/__stories__/WithErrorMessage.js +21 -0
- package/es/core/TextInput/__stories__/WithHint.js +17 -0
- package/es/core/TextInput/index.js +3 -0
- package/es/core/TextInput/index.mdx +88 -0
- package/es/core/VisuallyHidden/VisuallyHidden.stories.js +7 -0
- package/es/core/VisuallyHidden/__stories__/Default.js +16 -0
- package/es/core/VisuallyHidden/index.js +3 -0
- package/es/core/VisuallyHidden/index.mdx +20 -0
- package/es/core/WarningText/WarningText.stories.js +9 -0
- package/es/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/es/core/WarningText/__stories__/Default.js +9 -0
- package/es/core/WarningText/index.js +3 -0
- package/es/core/WarningText/index.mdx +21 -0
- package/es/core/WarningText/index.spec.js +8 -0
- package/es/core/index.js +36 -0
- package/es/custom.d.js +0 -0
- package/es/govgr/Footer/Copyright.js +36 -0
- package/es/govgr/Footer/HellenicRepublicLogo.js +3 -0
- package/es/govgr/Footer/LicenseCCSA.js +18 -0
- package/es/govgr/Footer/index.js +21 -0
- package/es/govgr/Footer/index.mdx +101 -0
- package/es/govgr/Footer/logo.js +1 -0
- package/es/govgr/Footer/logos/logo-el.js +1 -0
- package/es/govgr/Footer/logos/logo-en.js +1 -0
- package/{src/govgr/Logo → es/govgr/GovGRLogo}/govgr-logo.svg +0 -0
- package/es/govgr/GovGRLogo/index.js +3 -0
- package/es/govgr/GovGRLogo/logo.js +1 -0
- package/es/govgr/images/govgr-logo-base64.js +1 -0
- package/es/govgr/images/govgr-logo-blue-base64.js +1 -0
- package/es/govgr/images/greek-government-base64.js +1 -0
- package/es/govgr/images/grnet-logo-base64.js +1 -0
- package/es/govgr/images/index.js +5 -0
- package/es/govgr/images/minedu-logo-base64.js +1 -0
- package/es/govgr/index.js +5 -0
- package/es/hooks/useDebounce.js +41 -0
- package/es/hooks/useKeypress.js +20 -0
- package/es/hooks/useLatest.js +12 -0
- package/es/hooks/useOutdatedBrowserCheck.js +46 -0
- package/es/hooks/useSearch.js +25 -0
- package/es/hooks/useTogglableSections.js +102 -0
- package/es/index.js +6 -0
- package/es/introduction.md +11 -0
- package/es/layouts/Basic/Aside/index.js +3 -0
- package/es/layouts/Basic/Basic.stories.js +11 -0
- package/es/layouts/Basic/Bottom/index.js +3 -0
- package/es/layouts/Basic/Bottom/index.mdx +40 -0
- package/es/layouts/Basic/Container/index.js +3 -0
- package/es/layouts/Basic/Content/index.js +20 -0
- package/es/layouts/Basic/Content/index.mdx +48 -0
- package/es/layouts/Basic/Main/index.js +3 -0
- package/es/layouts/Basic/Main/index.mdx +54 -0
- package/es/layouts/Basic/Masthead/index.js +4 -0
- package/es/layouts/Basic/Masthead/index.mdx +61 -0
- package/es/layouts/Basic/Side/index.js +8 -0
- package/es/layouts/Basic/Side/index.mdx +55 -0
- package/es/layouts/Basic/Top/index.js +3 -0
- package/es/layouts/Basic/Top/index.mdx +62 -0
- package/es/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/es/layouts/Basic/__stories__/Default.js +12 -0
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +15 -0
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +15 -0
- package/es/layouts/Basic/index.js +11 -0
- package/es/layouts/Basic/index.mdx +39 -0
- package/es/layouts/Basic/index.spec.js +10 -0
- package/es/layouts/Grid/Grid.stories.js +8 -0
- package/es/layouts/Grid/__stories__/Default.js +75 -0
- package/es/layouts/Grid/__stories__/Inline.js +76 -0
- package/es/layouts/Grid/index.js +3 -0
- package/es/layouts/index.js +4 -0
- package/es/locales/el.js +83 -0
- package/es/locales/en.js +82 -0
- package/es/registry.js +479 -0
- package/es/router/index.js +15 -0
- package/es/test-utils/delay.js +34 -0
- package/es/themes/grnet.js +111 -0
- package/es/typography/Caption/index.js +8 -0
- package/es/typography/Heading/Heading.stories.js +7 -0
- package/es/typography/Heading/__stories__/Default.js +24 -0
- package/es/typography/Heading/index.js +3 -0
- package/es/typography/Heading/index.mdx +16 -0
- package/es/typography/HeadingCaption/HeadingCaption.stories.js +8 -0
- package/es/typography/HeadingCaption/__stories__/Default.js +35 -0
- package/es/typography/HeadingCaption/__stories__/NestedToTitle.js +15 -0
- package/es/typography/HeadingCaption/index.js +3 -0
- package/es/typography/HeadingCaption/index.mdx +23 -0
- package/es/typography/Hint/Hint.stories.js +8 -0
- package/es/typography/Hint/__stories__/Default.js +9 -0
- package/es/typography/Hint/__stories__/FontSizes.js +21 -0
- package/es/typography/Hint/index.js +3 -0
- package/es/typography/Hint/index.mdx +23 -0
- package/es/typography/NormalText/NormalText.stories.js +10 -0
- package/es/typography/NormalText/__stories__/Default.js +9 -0
- package/es/typography/NormalText/__stories__/FontSizes.js +48 -0
- package/es/typography/NormalText/__stories__/FontWeight.js +18 -0
- package/es/typography/NormalText/__stories__/Variants.js +18 -0
- package/es/typography/NormalText/index.js +3 -0
- package/es/typography/NormalText/index.mdx +41 -0
- package/es/typography/Paragraph/Paragraph.stories.js +11 -0
- package/es/typography/Paragraph/__stories__/Default.js +9 -0
- package/es/typography/Paragraph/__stories__/FontSizes.js +35 -0
- package/es/typography/Paragraph/__stories__/FontWeight.js +15 -0
- package/es/typography/Paragraph/__stories__/LeadVariant.js +11 -0
- package/es/typography/Paragraph/__stories__/SmallVariant.js +11 -0
- package/es/typography/Paragraph/index.js +3 -0
- package/es/typography/Paragraph/index.mdx +49 -0
- package/es/typography/Title/index.js +49 -0
- package/es/typography/index.js +5 -0
- package/es/typography/index.mdx +4 -0
- package/es/utils/Kitchensink/AllComponents.js +11 -0
- package/es/utils/Kitchensink/KitchensinkByCategory.js +42 -0
- package/es/utils/Kitchensink/KitchensinkByLetter.js +20 -0
- package/es/utils/Kitchensink/KitchensinkComponent.js +51 -0
- package/es/utils/Kitchensink/KitchensinkDashboard.js +50 -0
- package/es/utils/evaluateBrowserVersion.js +201 -0
- package/es/utils/withDeprecation.js +106 -0
- package/esm/admin/AdminLayout/index.js +9 -0
- package/esm/admin/AutoComplete/AutoComplete.stories.js +14 -0
- package/esm/admin/AutoComplete/Status/index.js +153 -0
- package/esm/admin/AutoComplete/__stories__/Default.js +19 -0
- package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +31 -0
- package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithInLine.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
- package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
- package/esm/admin/AutoComplete/__stories__/utils.js +0 -0
- package/esm/admin/AutoComplete/index.js +647 -0
- package/esm/admin/AutoComplete/index.mdx +73 -0
- package/esm/admin/AutoComplete/utils.js +28 -0
- package/esm/admin/Chip/index.js +7 -0
- package/esm/admin/CircularProgress/CircularProgress.stories.js +7 -0
- package/esm/admin/CircularProgress/__stories__/Default.js +10 -0
- package/esm/admin/CircularProgress/index.js +3 -0
- package/esm/admin/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/esm/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
- package/esm/admin/CopyToClipboard/__stories__/Banner.js +16 -0
- package/esm/admin/CopyToClipboard/__stories__/Default.js +18 -0
- package/esm/admin/CopyToClipboard/index.js +49 -0
- package/esm/admin/CopyToClipboard/index.mdx +26 -0
- package/esm/admin/Drawer/Drawer.stories.js +9 -0
- package/esm/admin/Drawer/__stories__/Default.js +83 -0
- package/esm/admin/Drawer/index.js +4 -0
- package/esm/admin/Drawer/index.mdx +16 -0
- package/esm/admin/Dropdown/Dropdown.stories.js +12 -0
- package/esm/admin/Dropdown/__stories__/AlignRight.js +57 -0
- package/esm/admin/Dropdown/__stories__/Default.js +50 -0
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +57 -0
- package/esm/admin/Dropdown/index.js +87 -0
- package/esm/admin/Dropdown/index.mdx +45 -0
- package/esm/admin/DropdownArrowDown/index.js +3 -0
- package/esm/admin/FillableText/index.js +3 -0
- package/esm/admin/FilterSection/index.js +9 -0
- package/esm/admin/FullPageBackground/index.js +3 -0
- package/esm/admin/LabeledText/index.js +3 -0
- package/esm/admin/LoaderContainer/index.js +3 -0
- package/esm/admin/Modal/Modal.stories.js +10 -0
- package/esm/admin/Modal/__stories__/AlertDialog.js +22 -0
- package/esm/admin/Modal/__stories__/Default.js +23 -0
- package/esm/admin/Modal/index.js +88 -0
- package/esm/admin/Modal/index.mdx +33 -0
- package/esm/admin/Pagination/Pagination.stories.js +10 -0
- package/esm/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/esm/admin/Pagination/__stories__/Default.js +130 -0
- package/esm/admin/Pagination/__stories__/PaginationSmall.js +38 -0
- package/esm/admin/Pagination/index.js +23 -0
- package/esm/admin/Pagination/index.mdx +16 -0
- package/esm/admin/ResultsHeading/index.js +5 -0
- package/esm/admin/SearchSection/index.js +5 -0
- package/esm/admin/StepNav/StepNav.stories.js +9 -0
- package/esm/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/esm/admin/StepNav/__stories__/Default.js +98 -0
- package/esm/admin/StepNav/index.js +15 -0
- package/esm/admin/TableLoaderBackground/index.js +3 -0
- package/esm/admin/TaskList/TaskList.stories.js +8 -0
- package/esm/admin/TaskList/__stories__/Default.js +74 -0
- package/esm/admin/TaskList/index.js +7 -0
- package/esm/admin/Timeline/Timeline.stories.js +8 -0
- package/esm/admin/Timeline/__stories__/Default.js +67 -0
- package/esm/admin/Timeline/index.js +7 -0
- package/esm/admin/index.js +21 -0
- package/esm/api/APIErrors.js +96 -0
- package/esm/api/APIProvider.js +25 -0
- package/esm/api/fetchAPI.js +52 -0
- package/esm/api/index.js +13 -0
- package/esm/api/index.spec.js +548 -0
- package/esm/api/introduction.md +6 -0
- package/esm/api/useResource.js +131 -0
- package/esm/api/useResourceAction.js +144 -0
- package/esm/api/useResourceQuery.js +211 -0
- package/esm/api/utils.js +236 -0
- package/esm/app/App.js +14 -0
- package/esm/app/Confirmation/Confirmation.mdx +16 -0
- package/esm/app/Confirmation/Confirmation.stories.js +9 -0
- package/esm/app/Confirmation/__stories__/Default.js +9 -0
- package/esm/app/Confirmation/index.js +5 -0
- package/esm/app/Footer/Footer.mdx +46 -0
- package/esm/app/Footer/Footer.stories.js +17 -0
- package/esm/app/Footer/Footer.stories.playwright.json +27 -0
- package/esm/app/Footer/__stories__/Default.js +9 -0
- package/esm/app/Footer/__stories__/DefaultCopyright.js +17 -0
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +36 -0
- package/esm/app/Footer/__stories__/FooterWithLink.js +24 -0
- package/esm/app/Footer/__stories__/FooterWithLogo.js +26 -0
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +33 -0
- package/esm/app/Footer/__stories__/YearCopyright.js +23 -0
- package/esm/app/Footer/index.js +17 -0
- package/esm/app/Header/Header.stories.js +18 -0
- package/esm/app/Header/Header.stories.playwright.json +33 -0
- package/esm/app/Header/HeaderContent.js +3 -0
- package/esm/app/Header/HeaderLogo.js +3 -0
- package/esm/app/Header/HeaderNavMenuContent.js +3 -0
- package/esm/app/Header/HeaderSecondaryLogo.js +3 -0
- package/esm/app/Header/HeaderSection.js +3 -0
- package/esm/app/Header/HeaderSubtitle.js +3 -0
- package/esm/app/Header/HeaderTitle.js +3 -0
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +396 -0
- package/esm/app/Header/__stories__/Default.js +14 -0
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +36 -0
- package/esm/app/Header/__stories__/WithNavigation.js +30 -0
- package/esm/app/Header/__stories__/WithServiceName.js +15 -0
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +20 -0
- package/esm/app/Header/index.js +10 -0
- package/esm/app/Header/index.mdx +43 -0
- package/esm/app/Header/index.spec.js +32 -0
- package/esm/app/I18nText.js +79 -0
- package/esm/app/NotFound/NotFound.stories.js +7 -0
- package/esm/app/NotFound/__stories__/Default.js +9 -0
- package/esm/app/NotFound/index.js +12 -0
- package/esm/app/NotFound/index.mdx +16 -0
- package/esm/app/OutdatedBrowserBanner.js +24 -0
- package/esm/app/PageTitle.js +6 -0
- package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +7 -0
- package/esm/app/PhaseBannerHeader/__stories__/Default.js +12 -0
- package/esm/app/PhaseBannerHeader/index.js +19 -0
- package/esm/app/PhaseBannerHeader/index.mdx +16 -0
- package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +7 -0
- package/esm/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +22 -0
- package/esm/app/QrCodeScanner/__stories__/Default.js +52 -0
- package/esm/app/QrCodeScanner/index.js +66 -0
- package/esm/app/QrCodeScanner/index.spec.js +13 -0
- package/esm/app/QrCodeViewer/QRCode.stories.js +9 -0
- package/esm/app/QrCodeViewer/__stories__/Custom.js +22 -0
- package/esm/app/QrCodeViewer/__stories__/Default.js +11 -0
- package/esm/app/QrCodeViewer/index.js +157 -0
- package/esm/app/QrCodeViewer/index.mdx +28 -0
- package/esm/app/QrCodeViewer/qrcodegen.js +1085 -0
- package/esm/app/QrCodeViewer/types.js +1 -0
- package/esm/app/QrCodeViewer/utils.js +95 -0
- package/esm/app/i18n.js +54 -0
- package/esm/app/index.js +10 -0
- package/esm/core/Accordion/Accordion.stories.js +11 -0
- package/esm/core/Accordion/Accordion.stories.playwright.json +21 -0
- package/esm/core/Accordion/__snapshots__/index.spec.tsx.snap +78 -0
- package/esm/core/Accordion/__stories__/Default.js +31 -0
- package/esm/core/Accordion/__stories__/WithHints.js +32 -0
- package/esm/core/Accordion/index.js +64 -0
- package/esm/core/Accordion/index.mdx +41 -0
- package/esm/core/Accordion/index.spec.js +9 -0
- package/esm/core/BackLink/BackLink.stories.js +7 -0
- package/esm/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/esm/core/BackLink/__stories__/Default.js +11 -0
- package/esm/core/BackLink/index.js +3 -0
- package/esm/core/BackLink/index.mdx +20 -0
- package/esm/core/Base/index.js +3 -0
- package/esm/core/Blockquote/Blockquote.stories.js +9 -0
- package/esm/core/Blockquote/__snapshots__/index.spec.tsx.snap +13 -0
- package/esm/core/Blockquote/__stories__/Default.js +9 -0
- package/esm/core/Blockquote/index.js +3 -0
- package/esm/core/Blockquote/index.mdx +23 -0
- package/esm/core/Blockquote/index.spec.js +9 -0
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +9 -0
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/esm/core/Breadcrumbs/__stories__/Default.js +21 -0
- package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/esm/core/Breadcrumbs/index.js +5 -0
- package/esm/core/Button/BackButton.js +21 -0
- package/esm/core/Button/BackLink.js +3 -0
- package/esm/core/Button/Button.stories.js +20 -0
- package/esm/core/Button/Button.stories.playwright.json +115 -0
- package/esm/core/Button/ButtonLink.js +3 -0
- package/esm/core/Button/CallToAction.js +3 -0
- package/esm/core/Button/Icon.js +7 -0
- package/esm/core/Button/ThemeToggleButton.js +49 -0
- package/esm/core/Button/__snapshots__/index.spec.tsx.snap +13 -0
- package/esm/core/Button/__stories__/Back.js +13 -0
- package/esm/core/Button/__stories__/ButtonLinkButton.js +17 -0
- package/esm/core/Button/__stories__/CallToActionButton.js +17 -0
- package/esm/core/Button/__stories__/Disabled.js +14 -0
- package/esm/core/Button/__stories__/GroupingButtons.js +13 -0
- package/esm/core/Button/__stories__/GroupingButtonsAndLinks.js +14 -0
- package/esm/core/Button/__stories__/Primary.js +14 -0
- package/esm/core/Button/__stories__/Secondary.js +15 -0
- package/esm/core/Button/__stories__/ThemeToggle.js +9 -0
- package/esm/core/Button/__stories__/Warning.js +11 -0
- package/esm/core/Button/__stories__/WithVariantLink.js +16 -0
- package/esm/core/Button/index.js +20 -0
- package/esm/core/Button/index.mdx +113 -0
- package/esm/core/Button/index.spec.js +9 -0
- package/esm/core/Card/Card.stories.js +18 -0
- package/esm/core/Card/Card.stories.playwright.json +21 -0
- package/esm/core/Card/__stories__/Default.js +10 -0
- package/esm/core/Card/__stories__/WithClickableContent.js +14 -0
- package/esm/core/Card/__stories__/WithClickableLink.js +12 -0
- package/esm/core/Card/__stories__/WithDarkBorder.js +13 -0
- package/esm/core/Card/__stories__/WithDarkTopBorder.js +13 -0
- package/esm/core/Card/__stories__/WithDivider.js +12 -0
- package/esm/core/Card/__stories__/WithGrayBorder.js +13 -0
- package/esm/core/Card/__stories__/WithGrayTopBorder.js +13 -0
- package/esm/core/Card/__stories__/WithGroupButton.js +11 -0
- package/esm/core/Card/card.mdx +101 -0
- package/esm/core/Card/index.js +6 -0
- package/esm/core/Checkbox/Checkbox.stories.js +15 -0
- package/esm/core/Checkbox/Checkbox.stories.playwright.json +55 -0
- package/esm/core/Checkbox/__stories__/ConditionalReveal.js +26 -0
- package/esm/core/Checkbox/__stories__/Default.js +24 -0
- package/esm/core/Checkbox/__stories__/MultipleQuestions.js +26 -0
- package/esm/core/Checkbox/__stories__/NoneAnswer.js +26 -0
- package/esm/core/Checkbox/__stories__/NoneAnswerWithError.js +34 -0
- package/esm/core/Checkbox/__stories__/WithErrorMessage.js +27 -0
- package/esm/core/Checkbox/__stories__/WithHint.js +24 -0
- package/esm/core/Checkbox/checkbox.mdx +78 -0
- package/esm/core/Checkbox/index.js +5 -0
- package/esm/core/DateInputContainer/DateInputContainer.stories.js +12 -0
- package/esm/core/DateInputContainer/DateInputContainer.stories.playwright.json +61 -0
- package/esm/core/DateInputContainer/__stories__/Default.js +20 -0
- package/esm/core/DateInputContainer/__stories__/MultipleQuestions.js +20 -0
- package/esm/core/DateInputContainer/__stories__/WithErrorMessage.js +25 -0
- package/esm/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +23 -0
- package/esm/core/DateInputContainer/index.js +4 -0
- package/esm/core/DateInputContainer/index.mdx +44 -0
- package/esm/core/Details/Details.stories.js +9 -0
- package/esm/core/Details/Details.stories.playwright.json +27 -0
- package/esm/core/Details/__snapshots__/index.spec.tsx.snap +50 -0
- package/esm/core/Details/__stories__/Default.js +9 -0
- package/esm/core/Details/index.js +5 -0
- package/esm/core/Details/index.mdx +20 -0
- package/esm/core/Details/index.spec.js +17 -0
- package/esm/core/Divider/Divider.stories.js +8 -0
- package/esm/core/Divider/__stories__/Default.js +26 -0
- package/esm/core/Divider/index.js +8 -0
- package/esm/core/ErrorMessage/ErrorMessage.stories.js +9 -0
- package/esm/core/ErrorMessage/__stories__/Default.js +21 -0
- package/esm/core/ErrorMessage/index.js +3 -0
- package/esm/core/ErrorMessage/index.mdx +22 -0
- package/esm/core/ErrorSummary/ErrorSummary.stories.js +12 -0
- package/esm/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/esm/core/ErrorSummary/__snapshots__/index.spec.tsx.snap +322 -0
- package/esm/core/ErrorSummary/__stories__/Default.js +13 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +32 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToField.js +33 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +32 -0
- package/esm/core/ErrorSummary/index.js +3 -0
- package/esm/core/ErrorSummary/index.mdx +54 -0
- package/esm/core/ErrorSummary/index.spec.js +8 -0
- package/esm/core/FieldContainer/index.js +5 -0
- package/esm/core/FileUpload/FileUpload.stories.js +9 -0
- package/esm/core/FileUpload/__stories__/Default.js +13 -0
- package/esm/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/esm/core/FileUpload/index.js +4 -0
- package/esm/core/FileUpload/index.mdx +27 -0
- package/esm/core/Form/index.js +3 -0
- package/esm/core/Hidden/index.js +1 -0
- package/esm/core/LabelContainer/index.js +4 -0
- package/esm/core/Link/Link.stories.js +13 -0
- package/esm/core/Link/Link.stories.playwright.json +65 -0
- package/esm/core/Link/__snapshots__/index.spec.tsx.snap +31 -0
- package/esm/core/Link/__stories__/DarkBackground.js +15 -0
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +16 -0
- package/esm/core/Link/__stories__/Default.js +13 -0
- package/esm/core/Link/__stories__/ExternalLink.js +14 -0
- package/esm/core/Link/__stories__/NoUnderline.js +14 -0
- package/esm/core/Link/__stories__/OpensInNewTab.js +13 -0
- package/esm/core/Link/index.js +30 -0
- package/esm/core/Link/index.spec.js +21 -0
- package/esm/core/Link/link.mdx +54 -0
- package/esm/core/List/List.js +3 -0
- package/esm/core/List/List.stories.js +14 -0
- package/esm/core/List/List.stories.playwright.json +27 -0
- package/esm/core/List/ListItem.js +3 -0
- package/esm/core/List/ListItemContent.js +14 -0
- package/esm/core/List/ListItemIcon.js +14 -0
- package/esm/core/List/ListItemText.js +15 -0
- package/esm/core/List/ListItemTitle.js +21 -0
- package/esm/core/List/__snapshots__/index.spec.tsx.snap +322 -0
- package/esm/core/List/__stories__/BulletList.js +12 -0
- package/esm/core/List/__stories__/Default.js +11 -0
- package/esm/core/List/__stories__/NestedBulletList.js +20 -0
- package/esm/core/List/__stories__/NestedListWithVariantStyles.js +18 -0
- package/esm/core/List/__stories__/NumberedList.js +12 -0
- package/esm/core/List/__stories__/WithExtraSpace.js +12 -0
- package/esm/core/List/index.js +7 -0
- package/esm/core/List/index.mdx +34 -0
- package/esm/core/List/index.spec.js +8 -0
- package/esm/core/Masthead/Masthead.stories.js +10 -0
- package/esm/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/esm/core/Masthead/__stories__/Default.js +15 -0
- package/esm/core/Masthead/index.js +4 -0
- package/esm/core/Masthead/masthead.mdx +18 -0
- package/esm/core/NavList/NavHorizontal.js +3 -0
- package/esm/core/NavList/NavHorizontalList.js +3 -0
- package/esm/core/NavList/NavHorizontalListItem.js +3 -0
- package/esm/core/NavList/NavHorizontalListItemButton.js +3 -0
- package/esm/core/NavList/NavHorizontalListItemLink.js +3 -0
- package/esm/core/NavList/NavList.js +25 -0
- package/esm/core/NavList/NavList.stories.js +10 -0
- package/esm/core/NavList/NavList.stories.playwright.json +33 -0
- package/esm/core/NavList/NavListBase.js +60 -0
- package/esm/core/NavList/NavListContext.js +80 -0
- package/esm/core/NavList/NavListItem.js +143 -0
- package/esm/core/NavList/NavListItemBase.js +137 -0
- package/esm/core/NavList/NavListSubMenu.js +27 -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/NavVertical.js +3 -0
- package/esm/core/NavList/NavVerticalItem.js +3 -0
- package/esm/core/NavList/__snapshots__/index.spec.tsx.snap +334 -0
- package/esm/core/NavList/__stories__/Default.js +48 -0
- package/esm/core/NavList/__stories__/NavHorizontalLayout.js +47 -0
- package/esm/core/NavList/index.js +20 -0
- package/esm/core/NavList/index.mdx +32 -0
- package/esm/core/NavList/index.spec.js +8 -0
- package/esm/core/NavList/types.js +1 -0
- package/esm/core/NotificationBanner/NotificationBanner.stories.js +11 -0
- package/esm/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/esm/core/NotificationBanner/__snapshots__/index.spec.tsx.snap +737 -0
- package/esm/core/NotificationBanner/__stories__/Default.js +12 -0
- package/esm/core/NotificationBanner/__stories__/Success.js +13 -0
- package/esm/core/NotificationBanner/index.js +30 -0
- package/esm/core/NotificationBanner/index.mdx +34 -0
- package/esm/core/NotificationBanner/index.spec.js +19 -0
- package/esm/core/PhaseBanner/PhaseBanner.stories.js +10 -0
- package/esm/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/esm/core/PhaseBanner/__stories__/Default.js +12 -0
- package/esm/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/esm/core/PhaseBanner/index.js +6 -0
- package/esm/core/PhaseBanner/index.mdx +30 -0
- package/esm/core/RadioContainer/RadioContainer.stories.js +15 -0
- package/esm/core/RadioContainer/RadioContainer.stories.playwright.json +49 -0
- package/esm/core/RadioContainer/__stories__/ConditionalReveal.js +26 -0
- package/esm/core/RadioContainer/__stories__/Default.js +22 -0
- package/esm/core/RadioContainer/__stories__/Inline.js +23 -0
- package/esm/core/RadioContainer/__stories__/MultipleQuestions.js +29 -0
- package/esm/core/RadioContainer/__stories__/NoneAnswer.js +21 -0
- package/esm/core/RadioContainer/__stories__/WithErrorMessage.js +27 -0
- package/esm/core/RadioContainer/__stories__/WithHints.js +29 -0
- package/esm/core/RadioContainer/index.js +5 -0
- package/esm/core/RadioContainer/index.mdx +90 -0
- package/esm/core/SectionBreak/index.js +3 -0
- package/esm/core/SelectContainer/Select.stories.js +11 -0
- package/esm/core/SelectContainer/Select.stories.playwright.json +21 -0
- package/esm/core/SelectContainer/__stories__/Default.js +22 -0
- package/esm/core/SelectContainer/__stories__/DisabledInput.js +24 -0
- package/esm/core/SelectContainer/__stories__/WithHint.js +23 -0
- package/esm/core/SelectContainer/index.js +4 -0
- package/esm/core/SelectContainer/index.mdx +42 -0
- package/esm/core/ServiceBadge/index.js +19 -0
- package/esm/core/ServiceBadge/index.mdx +42 -0
- package/esm/core/SkipLink/index.js +3 -0
- package/esm/core/SummaryList/SummaryList.stories.js +14 -0
- package/esm/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/esm/core/SummaryList/__snapshots__/index.spec.tsx.snap +57 -0
- package/esm/core/SummaryList/__stories__/Default.js +13 -0
- package/esm/core/SummaryList/__stories__/RowVariations.js +37 -0
- package/esm/core/SummaryList/__stories__/WithActions.js +20 -0
- package/esm/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
- package/esm/core/SummaryList/__stories__/WithoutBorders.js +11 -0
- package/esm/core/SummaryList/index.js +7 -0
- package/esm/core/SummaryList/index.mdx +42 -0
- package/esm/core/SummaryList/index.spec.js +9 -0
- package/esm/core/SvgIcon/index.js +10 -0
- package/esm/core/Table/Table.stories.js +24 -0
- package/esm/core/Table/Table.stories.playwright.json +21 -0
- package/esm/core/Table/TableFloatingScroll.js +87 -0
- package/esm/core/Table/__stories__/DarkVariant.js +11 -0
- package/esm/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +11 -0
- package/esm/core/Table/__stories__/Default.js +9 -0
- package/esm/core/Table/__stories__/DefinedWidth.js +15 -0
- package/esm/core/Table/__stories__/Densed.js +13 -0
- package/esm/core/Table/__stories__/Full.js +14 -0
- package/esm/core/Table/__stories__/MultipleProps.js +45 -0
- package/esm/core/Table/__stories__/NoData.js +11 -0
- package/esm/core/Table/__stories__/NumericDataType.js +33 -0
- package/esm/core/Table/__stories__/TableCaptions.js +17 -0
- package/esm/core/Table/__stories__/VerticalBorders.js +11 -0
- package/esm/core/Table/__stories__/VerticalHeaders.js +9 -0
- package/esm/core/Table/__stories__/WithFloatingScroll.js +71 -0
- package/esm/core/Table/__stories__/WithHeader.js +53 -0
- package/esm/core/Table/__stories__/WithLoader.js +81 -0
- package/esm/core/Table/__stories__/ZebraProp.js +11 -0
- package/esm/core/Table/index.js +12 -0
- package/esm/core/Table/index.mdx +94 -0
- package/esm/core/Tabs/Tabs.stories.js +10 -0
- package/esm/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/esm/core/Tabs/__stories__/Default.js +29 -0
- package/esm/core/Tabs/index.js +57 -0
- package/esm/core/Tabs/index.mdx +18 -0
- package/esm/core/TextArea/TextArea.stories.js +15 -0
- package/esm/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/esm/core/TextArea/__stories__/Default.js +16 -0
- package/esm/core/TextArea/__stories__/DisabledInput.js +18 -0
- package/esm/core/TextArea/__stories__/LimitedCharacters.js +17 -0
- package/esm/core/TextArea/__stories__/MultipleQuestions.js +14 -0
- package/esm/core/TextArea/__stories__/WithDeclaredRows.js +18 -0
- package/esm/core/TextArea/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/TextArea/__stories__/WithHint.js +17 -0
- package/esm/core/TextArea/index.js +3 -0
- package/esm/core/TextArea/index.mdx +72 -0
- package/esm/core/TextInput/TextInput.stories.js +16 -0
- package/esm/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/esm/core/TextInput/__stories__/AskingForNumbers.js +19 -0
- package/esm/core/TextInput/__stories__/Default.js +16 -0
- package/esm/core/TextInput/__stories__/DisabledInput.js +18 -0
- package/esm/core/TextInput/__stories__/FixedWidths.js +52 -0
- package/esm/core/TextInput/__stories__/FluidWidths.js +52 -0
- package/esm/core/TextInput/__stories__/MultipleQuestions.js +13 -0
- package/esm/core/TextInput/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/TextInput/__stories__/WithHint.js +17 -0
- package/esm/core/TextInput/index.js +3 -0
- package/esm/core/TextInput/index.mdx +88 -0
- package/esm/core/VisuallyHidden/VisuallyHidden.stories.js +7 -0
- package/esm/core/VisuallyHidden/__stories__/Default.js +16 -0
- package/esm/core/VisuallyHidden/index.js +3 -0
- package/esm/core/VisuallyHidden/index.mdx +20 -0
- package/esm/core/WarningText/WarningText.stories.js +9 -0
- package/esm/core/WarningText/__snapshots__/index.spec.tsx.snap +336 -0
- package/esm/core/WarningText/__stories__/Default.js +9 -0
- package/esm/core/WarningText/index.js +3 -0
- package/esm/core/WarningText/index.mdx +21 -0
- package/esm/core/WarningText/index.spec.js +8 -0
- package/esm/core/index.js +36 -0
- package/esm/custom.d.js +0 -0
- package/esm/govgr/Footer/Copyright.js +36 -0
- package/esm/govgr/Footer/HellenicRepublicLogo.js +3 -0
- package/esm/govgr/Footer/LicenseCCSA.js +18 -0
- package/esm/govgr/Footer/index.js +21 -0
- package/esm/govgr/Footer/index.mdx +101 -0
- package/esm/govgr/Footer/logo.js +1 -0
- package/esm/govgr/Footer/logos/logo-el.js +1 -0
- package/esm/govgr/Footer/logos/logo-en.js +1 -0
- package/esm/govgr/GovGRLogo/govgr-logo.svg +1 -0
- package/esm/govgr/GovGRLogo/index.js +3 -0
- package/esm/govgr/GovGRLogo/logo.js +1 -0
- package/esm/govgr/images/govgr-logo-base64.js +1 -0
- package/esm/govgr/images/govgr-logo-blue-base64.js +1 -0
- package/esm/govgr/images/greek-government-base64.js +1 -0
- package/esm/govgr/images/grnet-logo-base64.js +1 -0
- package/esm/govgr/images/index.js +5 -0
- package/esm/govgr/images/minedu-logo-base64.js +1 -0
- package/esm/govgr/index.js +5 -0
- package/esm/hooks/useDebounce.js +41 -0
- package/esm/hooks/useKeypress.js +20 -0
- package/esm/hooks/useLatest.js +12 -0
- package/esm/hooks/useOutdatedBrowserCheck.js +46 -0
- package/esm/hooks/useSearch.js +25 -0
- package/esm/hooks/useTogglableSections.js +102 -0
- package/esm/index.js +11 -0
- package/esm/introduction.md +11 -0
- package/esm/layouts/Basic/Aside/index.js +3 -0
- package/esm/layouts/Basic/Basic.stories.js +11 -0
- package/esm/layouts/Basic/Bottom/index.js +3 -0
- package/esm/layouts/Basic/Bottom/index.mdx +40 -0
- package/esm/layouts/Basic/Container/index.js +3 -0
- package/esm/layouts/Basic/Content/index.js +20 -0
- package/esm/layouts/Basic/Content/index.mdx +48 -0
- package/esm/layouts/Basic/Main/index.js +3 -0
- package/esm/layouts/Basic/Main/index.mdx +54 -0
- package/esm/layouts/Basic/Masthead/index.js +4 -0
- package/esm/layouts/Basic/Masthead/index.mdx +61 -0
- package/esm/layouts/Basic/Side/index.js +8 -0
- package/esm/layouts/Basic/Side/index.mdx +55 -0
- package/esm/layouts/Basic/Top/index.js +3 -0
- package/esm/layouts/Basic/Top/index.mdx +62 -0
- package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/esm/layouts/Basic/__stories__/Default.js +12 -0
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +15 -0
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +15 -0
- package/esm/layouts/Basic/index.js +11 -0
- package/esm/layouts/Basic/index.mdx +39 -0
- package/esm/layouts/Basic/index.spec.js +10 -0
- package/esm/layouts/Grid/Grid.stories.js +8 -0
- package/esm/layouts/Grid/__stories__/Default.js +75 -0
- package/esm/layouts/Grid/__stories__/Inline.js +76 -0
- package/esm/layouts/Grid/index.js +3 -0
- package/esm/layouts/index.js +4 -0
- package/esm/locales/el.js +83 -0
- package/esm/locales/en.js +82 -0
- package/esm/registry.js +479 -0
- package/esm/router/index.js +15 -0
- package/esm/test-utils/delay.js +34 -0
- package/esm/themes/grnet.js +111 -0
- package/esm/typography/Caption/index.js +8 -0
- package/esm/typography/Heading/Heading.stories.js +7 -0
- package/esm/typography/Heading/__stories__/Default.js +24 -0
- package/esm/typography/Heading/index.js +3 -0
- package/esm/typography/Heading/index.mdx +16 -0
- package/esm/typography/HeadingCaption/HeadingCaption.stories.js +8 -0
- package/esm/typography/HeadingCaption/__stories__/Default.js +35 -0
- package/esm/typography/HeadingCaption/__stories__/NestedToTitle.js +15 -0
- package/esm/typography/HeadingCaption/index.js +3 -0
- package/esm/typography/HeadingCaption/index.mdx +23 -0
- package/esm/typography/Hint/Hint.stories.js +8 -0
- package/esm/typography/Hint/__stories__/Default.js +9 -0
- package/esm/typography/Hint/__stories__/FontSizes.js +21 -0
- package/esm/typography/Hint/index.js +3 -0
- package/esm/typography/Hint/index.mdx +23 -0
- package/esm/typography/NormalText/NormalText.stories.js +10 -0
- package/esm/typography/NormalText/__stories__/Default.js +9 -0
- package/esm/typography/NormalText/__stories__/FontSizes.js +48 -0
- package/esm/typography/NormalText/__stories__/FontWeight.js +18 -0
- package/esm/typography/NormalText/__stories__/Variants.js +18 -0
- package/esm/typography/NormalText/index.js +3 -0
- package/esm/typography/NormalText/index.mdx +41 -0
- package/esm/typography/Paragraph/Paragraph.stories.js +11 -0
- package/esm/typography/Paragraph/__stories__/Default.js +9 -0
- package/esm/typography/Paragraph/__stories__/FontSizes.js +35 -0
- package/esm/typography/Paragraph/__stories__/FontWeight.js +15 -0
- package/esm/typography/Paragraph/__stories__/LeadVariant.js +11 -0
- package/esm/typography/Paragraph/__stories__/SmallVariant.js +11 -0
- package/esm/typography/Paragraph/index.js +3 -0
- package/esm/typography/Paragraph/index.mdx +49 -0
- package/esm/typography/Title/index.js +49 -0
- package/esm/typography/index.js +5 -0
- package/esm/typography/index.mdx +4 -0
- package/esm/utils/Kitchensink/AllComponents.js +11 -0
- package/esm/utils/Kitchensink/KitchensinkByCategory.js +42 -0
- package/esm/utils/Kitchensink/KitchensinkByLetter.js +20 -0
- package/esm/utils/Kitchensink/KitchensinkComponent.js +51 -0
- package/esm/utils/Kitchensink/KitchensinkDashboard.js +50 -0
- package/esm/utils/evaluateBrowserVersion.js +201 -0
- package/esm/utils/withDeprecation.js +106 -0
- package/govgr/Footer/Copyright.d.ts +11 -0
- package/govgr/Footer/Copyright.js +61 -0
- package/govgr/Footer/HellenicRepublicLogo.d.ts +3 -0
- package/govgr/Footer/HellenicRepublicLogo.js +19 -0
- package/govgr/Footer/LicenseCCSA.d.ts +3 -0
- package/govgr/Footer/LicenseCCSA.js +33 -0
- package/govgr/Footer/index.d.ts +13 -0
- package/govgr/Footer/index.js +39 -0
- package/govgr/Footer/index.mdx +101 -0
- package/govgr/Footer/logo.d.ts +2 -0
- package/govgr/Footer/logo.js +8 -0
- package/govgr/Footer/logos/logo-el.d.ts +2 -0
- package/govgr/Footer/logos/logo-el.js +8 -0
- package/govgr/Footer/logos/logo-en.d.ts +2 -0
- package/govgr/Footer/logos/logo-en.js +8 -0
- package/govgr/GovGRLogo/govgr-logo.svg +1 -0
- package/govgr/GovGRLogo/index.d.ts +3 -0
- package/govgr/GovGRLogo/index.js +19 -0
- package/govgr/GovGRLogo/logo.d.ts +2 -0
- package/govgr/GovGRLogo/logo.js +8 -0
- package/govgr/images/govgr-logo-base64.d.ts +2 -0
- package/govgr/images/govgr-logo-base64.js +8 -0
- package/govgr/images/govgr-logo-blue-base64.d.ts +2 -0
- package/govgr/images/govgr-logo-blue-base64.js +8 -0
- package/govgr/images/greek-government-base64.d.ts +2 -0
- package/govgr/images/greek-government-base64.js +8 -0
- package/govgr/images/grnet-logo-base64.d.ts +2 -0
- package/govgr/images/grnet-logo-base64.js +8 -0
- package/govgr/images/index.d.ts +5 -0
- package/govgr/images/index.js +70 -0
- package/govgr/images/minedu-logo-base64.d.ts +2 -0
- package/govgr/images/minedu-logo-base64.js +8 -0
- package/govgr/index.d.ts +5 -0
- package/govgr/index.js +70 -0
- package/hooks/useDebounce.d.ts +3 -0
- package/hooks/useDebounce.js +63 -0
- package/hooks/useKeypress.d.ts +2 -0
- package/hooks/useKeypress.js +31 -0
- package/hooks/useLatest.d.ts +3 -0
- package/hooks/useLatest.js +26 -0
- package/hooks/useOutdatedBrowserCheck.d.ts +2 -0
- package/hooks/useOutdatedBrowserCheck.js +60 -0
- package/hooks/useSearch.d.ts +4 -0
- package/hooks/useSearch.js +40 -0
- package/hooks/useTogglableSections.d.ts +19 -0
- package/hooks/useTogglableSections.js +114 -0
- package/index.d.ts +6 -0
- package/index.js +83 -0
- package/introduction.md +11 -0
- package/layouts/Basic/Aside/index.d.ts +3 -0
- package/layouts/Basic/Aside/index.js +30 -0
- package/layouts/Basic/Basic.stories.d.ts +11 -0
- package/layouts/Basic/Basic.stories.js +62 -0
- package/layouts/Basic/Bottom/index.d.ts +3 -0
- package/layouts/Basic/Bottom/index.js +30 -0
- package/layouts/Basic/Bottom/index.mdx +40 -0
- package/layouts/Basic/Container/index.d.ts +3 -0
- package/layouts/Basic/Container/index.js +30 -0
- package/layouts/Basic/Content/index.d.ts +5 -0
- package/layouts/Basic/Content/index.js +37 -0
- package/layouts/Basic/Content/index.mdx +48 -0
- package/layouts/Basic/Main/index.d.ts +3 -0
- package/layouts/Basic/Main/index.js +30 -0
- package/layouts/Basic/Main/index.mdx +54 -0
- package/layouts/Basic/Masthead/index.d.ts +4 -0
- package/layouts/Basic/Masthead/index.js +44 -0
- package/layouts/Basic/Masthead/index.mdx +61 -0
- package/layouts/Basic/Side/index.d.ts +5 -0
- package/layouts/Basic/Side/index.js +26 -0
- package/layouts/Basic/Side/index.mdx +55 -0
- package/layouts/Basic/Top/index.d.ts +3 -0
- package/layouts/Basic/Top/index.js +30 -0
- package/layouts/Basic/Top/index.mdx +62 -0
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +54 -0
- package/layouts/Basic/__stories__/Default.d.ts +2 -0
- package/layouts/Basic/__stories__/Default.js +28 -0
- package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +2 -0
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +32 -0
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +2 -0
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +32 -0
- package/layouts/Basic/index.d.ts +11 -0
- package/layouts/Basic/index.js +142 -0
- package/layouts/Basic/index.mdx +39 -0
- package/layouts/Basic/index.spec.d.ts +1 -0
- package/layouts/Basic/index.spec.js +20 -0
- package/layouts/Grid/Grid.stories.d.ts +9 -0
- package/layouts/Grid/Grid.stories.js +45 -0
- package/layouts/Grid/__stories__/Default.d.ts +2 -0
- package/layouts/Grid/__stories__/Default.js +89 -0
- package/layouts/Grid/__stories__/Inline.d.ts +2 -0
- package/layouts/Grid/__stories__/Inline.js +90 -0
- package/layouts/Grid/index.d.ts +4 -0
- package/layouts/Grid/index.js +19 -0
- package/layouts/index.d.ts +4 -0
- package/layouts/index.js +55 -0
- package/locales/el.d.ts +84 -0
- package/locales/el.js +90 -0
- package/locales/en.d.ts +83 -0
- package/locales/en.js +89 -0
- package/package.json +10 -36
- package/registry.d.ts +287 -0
- package/registry.js +723 -0
- package/router/index.d.ts +9 -0
- package/router/index.js +37 -0
- package/src/admin/AutoComplete/AutoComplete.stories.js +1 -0
- package/src/admin/AutoComplete/Status/index.tsx +2 -2
- package/src/admin/AutoComplete/__stories__/Default.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithAutoSelect.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithDefaultValue.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithInLine.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithMinLength.tsx +6 -6
- package/src/admin/AutoComplete/__stories__/WithPlaceHolder.tsx +5 -5
- package/src/admin/AutoComplete/__stories__/WithShowAllValues.tsx +5 -5
- package/src/admin/AutoComplete/index.mdx +38 -10
- package/src/admin/AutoComplete/index.tsx +3 -2
- package/src/admin/CircularProgress/CircularProgress.stories.js +4 -5
- package/src/admin/CircularProgress/__stories__/Default.tsx +5 -8
- package/src/admin/CopyToClipboard/CopyToClipboard.stories.js +1 -1
- package/src/admin/CopyToClipboard/__stories__/Banner.tsx +3 -5
- package/src/admin/CopyToClipboard/__stories__/Default.tsx +1 -1
- package/src/admin/CopyToClipboard/index.mdx +8 -4
- package/src/admin/Drawer/Drawer.stories.js +8 -1
- package/src/admin/Drawer/__stories__/Default.tsx +52 -92
- package/src/admin/Drawer/index.mdx +5 -1
- package/src/admin/Dropdown/Dropdown.stories.js +5 -0
- package/src/admin/Dropdown/__stories__/AlignRight.tsx +15 -12
- package/src/admin/Dropdown/__stories__/Default.tsx +15 -12
- package/src/admin/Dropdown/__stories__/PlacementTop.tsx +15 -12
- package/src/admin/Dropdown/index.mdx +21 -5
- package/src/admin/Modal/Modal.stories.js +9 -6
- package/src/admin/Modal/__stories__/AlertDialog.tsx +9 -13
- package/src/admin/Modal/__stories__/Default.tsx +12 -14
- package/src/admin/Modal/index.mdx +12 -5
- package/src/admin/Pagination/Pagination.stories.js +9 -5
- package/src/admin/Pagination/__stories__/Default.tsx +8 -29
- package/src/admin/Pagination/__stories__/PaginationSmall.tsx +44 -0
- package/src/admin/Pagination/index.mdx +5 -1
- package/src/admin/StepNav/StepNav.stories.js +3 -0
- package/src/admin/StepNav/__stories__/Default.tsx +10 -6
- package/src/admin/TaskList/TaskList.stories.js +6 -5
- package/src/admin/TaskList/__stories__/Default.tsx +6 -3
- package/src/admin/Timeline/Timeline.stories.js +6 -5
- package/src/admin/Timeline/__stories__/Default.tsx +9 -4
- package/src/app/Confirmation/Confirmation.mdx +5 -1
- package/src/app/Confirmation/Confirmation.stories.js +7 -5
- package/src/app/Confirmation/__stories__/Default.tsx +3 -1
- package/src/app/Confirmation/index.tsx +4 -4
- package/src/app/Footer/Footer.mdx +20 -4
- package/src/app/Footer/Footer.stories.js +6 -1
- package/src/app/Footer/__stories__/Default.tsx +3 -2
- package/src/app/Footer/__stories__/DefaultCopyright.tsx +7 -5
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +9 -7
- package/src/app/Footer/__stories__/FooterWithLink.tsx +8 -6
- package/src/app/Footer/__stories__/FooterWithLogo.tsx +8 -6
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +9 -7
- package/src/app/Footer/__stories__/YearCopyright.tsx +9 -5
- package/src/app/Footer/index.tsx +3 -0
- package/src/app/Header/Header.stories.js +6 -0
- package/src/app/Header/HeaderNavMenuContent.tsx +4 -0
- package/src/app/Header/HeaderSecondaryLogo.tsx +1 -1
- package/src/app/Header/__stories__/Default.tsx +4 -4
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +48 -0
- package/src/app/Header/__stories__/WithNavigation.tsx +34 -15
- package/src/app/Header/__stories__/WithServiceName.tsx +5 -5
- package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +6 -6
- package/src/app/Header/index.mdx +21 -5
- package/src/app/Header/index.spec.tsx +1 -1
- package/src/app/Header/index.tsx +1 -0
- package/src/app/I18nText.tsx +1 -0
- package/src/app/NotFound/NotFound.stories.js +1 -0
- package/src/app/NotFound/__stories__/Default.tsx +1 -1
- package/src/app/NotFound/index.mdx +5 -1
- package/src/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +4 -5
- package/src/app/PhaseBannerHeader/__stories__/Default.tsx +1 -1
- package/src/app/PhaseBannerHeader/index.mdx +5 -1
- package/src/app/QrCodeScanner/QrCodeScanner.stories.js +1 -0
- package/src/app/QrCodeScanner/__stories__/Default.tsx +3 -3
- package/src/app/QrCodeScanner/index.tsx +9 -4
- package/src/app/QrCodeViewer/QRCode.stories.js +1 -0
- package/src/app/QrCodeViewer/__stories__/Custom.tsx +1 -1
- package/src/app/QrCodeViewer/__stories__/Default.tsx +1 -1
- package/src/app/QrCodeViewer/index.mdx +10 -3
- package/src/app/QrCodeViewer/index.tsx +4 -79
- package/src/app/QrCodeViewer/types.ts +0 -1
- package/src/app/index.ts +2 -0
- package/src/core/Accordion/Accordion.stories.js +9 -6
- package/src/core/Accordion/Accordion.stories.playwright.json +1 -7
- package/src/core/Accordion/__stories__/Default.tsx +98 -101
- package/src/core/Accordion/__stories__/WithHints.tsx +41 -43
- package/src/core/Accordion/index.mdx +15 -7
- package/src/core/Accordion/index.tsx +6 -0
- package/src/core/BackLink/BackLink.stories.js +4 -5
- package/src/core/BackLink/__stories__/Default.tsx +3 -7
- package/src/core/BackLink/index.mdx +5 -1
- package/src/core/Blockquote/Blockquote.stories.js +7 -4
- package/src/core/Blockquote/__stories__/Default.tsx +1 -1
- package/src/core/Blockquote/index.mdx +5 -5
- package/src/core/Breadcrumbs/Breadcrumbs.stories.js +7 -5
- package/src/core/Breadcrumbs/__stories__/Default.tsx +3 -1
- package/src/core/Breadcrumbs/breadcrumbs.mdx +5 -5
- package/src/core/Button/Button.stories.js +4 -2
- package/src/core/Button/__stories__/Back.tsx +1 -1
- package/src/core/Button/__stories__/ButtonLinkButton.tsx +1 -1
- package/src/core/Button/__stories__/CallToActionButton.tsx +1 -1
- package/src/core/Button/__stories__/Disabled.tsx +1 -1
- package/src/core/Button/__stories__/GroupingButtons.tsx +2 -1
- package/src/core/Button/__stories__/GroupingButtonsAndLinks.tsx +4 -2
- package/src/core/Button/__stories__/Primary.tsx +1 -1
- package/src/core/Button/__stories__/Secondary.tsx +1 -1
- package/src/core/Button/__stories__/ThemeToggle.tsx +2 -4
- package/src/core/Button/__stories__/Warning.tsx +1 -1
- package/src/core/Button/__stories__/WithVariantLink.tsx +1 -1
- package/src/core/Button/index.mdx +30 -14
- package/src/core/Card/Card.stories.js +5 -0
- package/src/core/Card/__stories__/Default.tsx +4 -2
- package/src/core/Card/__stories__/WithClickableContent.tsx +4 -2
- package/src/core/Card/__stories__/WithClickableLink.tsx +4 -2
- package/src/core/Card/__stories__/WithDarkBorder.tsx +4 -2
- package/src/core/Card/__stories__/WithDarkTopBorder.tsx +4 -2
- package/src/core/Card/__stories__/WithDivider.tsx +4 -2
- package/src/core/Card/__stories__/WithGrayBorder.tsx +4 -2
- package/src/core/Card/__stories__/WithGrayTopBorder.tsx +4 -2
- package/src/core/Card/__stories__/WithGroupButton.tsx +6 -3
- package/src/core/Card/card.mdx +41 -18
- package/src/core/Checkbox/Checkbox.stories.js +16 -0
- package/src/core/Checkbox/Checkbox.stories.playwright.json +55 -0
- package/src/core/{Checkboxes → Checkbox}/__stories__/ConditionalReveal.tsx +19 -10
- package/src/core/{Checkboxes → Checkbox}/__stories__/Default.tsx +18 -9
- package/src/core/{Checkboxes → Checkbox}/__stories__/MultipleQuestions.tsx +17 -8
- package/src/core/{Checkboxes → Checkbox}/__stories__/NoneAnswer.tsx +17 -8
- package/src/core/{Checkboxes → Checkbox}/__stories__/NoneAnswerWithError.tsx +18 -11
- package/src/core/{Checkboxes → Checkbox}/__stories__/WithErrorMessage.tsx +19 -10
- package/src/core/{Checkboxes → Checkbox}/__stories__/WithHint.tsx +17 -8
- 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/{DateInput → DateInputContainer}/__stories__/Default.tsx +17 -7
- package/src/core/{DateInput → DateInputContainer}/__stories__/MultipleQuestions.tsx +17 -7
- package/src/core/{DateInput → DateInputContainer}/__stories__/WithErrorMessage.tsx +19 -9
- package/src/core/{DateInput → DateInputContainer}/__stories__/WithErrorMessageForSingleField.tsx +19 -9
- package/src/core/DateInputContainer/index.mdx +44 -0
- package/src/core/DateInputContainer/index.tsx +4 -0
- package/src/core/Details/Details.stories.js +7 -5
- package/src/core/Details/__stories__/Default.tsx +4 -4
- package/src/core/Details/index.mdx +5 -3
- package/src/core/Details/index.tsx +4 -5
- package/src/core/Divider/Divider.stories.js +1 -0
- package/src/core/Divider/__stories__/Default.tsx +1 -1
- package/src/core/Divider/index.tsx +1 -1
- package/src/core/ErrorMessage/ErrorMessage.stories.js +7 -5
- package/src/core/ErrorMessage/__stories__/Default.tsx +17 -10
- package/src/core/ErrorMessage/index.mdx +6 -5
- package/src/core/ErrorSummary/ErrorSummary.stories.js +10 -8
- package/src/core/ErrorSummary/__stories__/Default.tsx +3 -3
- package/src/core/ErrorSummary/__stories__/LinkedToCheckbox.tsx +19 -13
- package/src/core/ErrorSummary/__stories__/LinkedToField.tsx +27 -20
- package/src/core/ErrorSummary/__stories__/LinkedToInput.tsx +12 -12
- package/src/core/ErrorSummary/index.mdx +20 -8
- package/src/core/ErrorSummary/index.tsx +1 -2
- package/src/core/FieldContainer/index.tsx +6 -0
- package/src/core/FileUpload/FileUpload.stories.js +2 -0
- package/src/core/FileUpload/__stories__/Default.tsx +13 -9
- package/src/core/FileUpload/__stories__/WithErrorMessage.tsx +18 -14
- package/src/core/FileUpload/index.mdx +10 -5
- package/src/core/LabelContainer/index.tsx +5 -0
- package/src/core/Link/Link.stories.js +2 -0
- package/src/core/Link/__stories__/DarkBackground.tsx +3 -3
- package/src/core/Link/__stories__/DarkBackgroundNoUnderline.tsx +3 -3
- package/src/core/Link/__stories__/Default.tsx +1 -1
- package/src/core/Link/__stories__/ExternalLink.tsx +2 -2
- package/src/core/Link/__stories__/NoUnderline.tsx +1 -1
- package/src/core/Link/__stories__/OpensInNewTab.tsx +6 -4
- package/src/core/Link/index.spec.tsx +1 -1
- package/src/core/Link/index.tsx +13 -14
- package/src/core/Link/link.mdx +26 -6
- package/src/core/List/List.stories.js +11 -7
- package/src/core/List/List.tsx +1 -3
- package/src/core/List/__stories__/BulletList.tsx +5 -10
- package/src/core/List/__stories__/Default.tsx +3 -2
- package/src/core/List/__stories__/NestedBulletList.tsx +8 -19
- package/src/core/List/__stories__/NestedListWithVariantStyles.tsx +9 -22
- package/src/core/List/__stories__/NumberedList.tsx +5 -10
- package/src/core/List/__stories__/WithExtraSpace.tsx +5 -10
- package/src/core/List/index.mdx +10 -3
- package/src/core/Masthead/Masthead.stories.js +5 -0
- package/src/core/Masthead/__stories__/Default.tsx +7 -3
- package/src/core/Masthead/masthead.mdx +5 -1
- package/src/core/NavList/NavHorizontalListItemButton.tsx +3 -0
- package/src/core/NavList/NavHorizontalListItemLink.tsx +3 -0
- package/src/core/NavList/NavList.stories.js +4 -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/__stories__/Default.tsx +1 -1
- package/src/core/NavList/__stories__/NavHorizontalLayout.tsx +2 -1
- package/src/core/NavList/index.mdx +9 -2
- package/src/core/NavList/index.tsx +12 -1
- package/src/core/NotificationBanner/NotificationBanner.stories.js +6 -0
- package/src/core/NotificationBanner/__stories__/Default.tsx +1 -1
- package/src/core/NotificationBanner/__stories__/Success.tsx +1 -1
- package/src/core/NotificationBanner/index.mdx +11 -5
- package/src/core/PhaseBanner/PhaseBanner.stories.js +8 -6
- package/src/core/PhaseBanner/__stories__/Default.tsx +5 -2
- package/src/core/PhaseBanner/__stories__/Underlined.tsx +5 -2
- package/src/core/PhaseBanner/index.mdx +10 -4
- package/src/core/RadioContainer/RadioContainer.stories.js +16 -0
- package/src/core/RadioContainer/RadioContainer.stories.playwright.json +49 -0
- package/src/core/{Radios → RadioContainer}/__stories__/ConditionalReveal.tsx +21 -9
- package/src/core/{Radios → RadioContainer}/__stories__/Default.tsx +12 -6
- package/src/core/{Radios → RadioContainer}/__stories__/Inline.tsx +14 -7
- package/src/core/{Radios → RadioContainer}/__stories__/MultipleQuestions.tsx +17 -8
- package/src/core/{Radios → RadioContainer}/__stories__/NoneAnswer.tsx +12 -6
- package/src/core/{Radios → RadioContainer}/__stories__/WithErrorMessage.tsx +16 -9
- package/src/core/{Radios → RadioContainer}/__stories__/WithHints.tsx +22 -9
- package/src/core/RadioContainer/index.mdx +90 -0
- package/src/core/RadioContainer/index.tsx +5 -0
- package/src/core/SelectContainer/Select.stories.js +12 -0
- package/src/core/SelectContainer/Select.stories.playwright.json +21 -0
- package/src/core/{Select → SelectContainer}/__stories__/Default.tsx +12 -7
- package/src/core/{Select → SelectContainer}/__stories__/DisabledInput.tsx +12 -7
- package/src/core/{Select → SelectContainer}/__stories__/WithHint.tsx +12 -7
- package/src/core/SelectContainer/index.mdx +42 -0
- package/src/core/SelectContainer/index.tsx +5 -0
- package/src/core/ServiceBadge/index.mdx +1 -1
- package/src/core/SummaryList/SummaryList.stories.js +4 -1
- package/src/core/SummaryList/__stories__/Default.tsx +6 -3
- package/src/core/SummaryList/__stories__/RowVariations.tsx +6 -3
- package/src/core/SummaryList/__stories__/WithActions.tsx +9 -6
- package/src/core/SummaryList/__stories__/WithKeyAndAction.tsx +8 -4
- package/src/core/SummaryList/__stories__/WithoutBorders.tsx +3 -1
- package/src/core/SummaryList/index.mdx +17 -7
- package/src/core/Table/Table.stories.js +5 -1
- package/src/core/Table/__stories__/Densed.tsx +1 -0
- package/src/core/Table/__stories__/MultipleProps.tsx +1 -0
- package/src/core/Table/__stories__/WithFloatingScroll.tsx +12 -37
- package/src/core/Table/__stories__/WithHeader.tsx +1 -6
- package/src/core/Table/__stories__/WithLoader.tsx +5 -4
- package/src/core/Table/__stories__/ZebraProp.tsx +1 -0
- package/src/core/Table/index.mdx +36 -10
- package/src/core/Table/index.tsx +4 -1
- package/src/core/Tabs/Tabs.stories.js +8 -5
- package/src/core/Tabs/__stories__/Default.tsx +36 -11
- package/src/core/Tabs/index.mdx +5 -3
- package/src/core/Tabs/index.tsx +17 -9
- package/src/core/TextArea/TextArea.stories.js +13 -12
- package/src/core/TextArea/__stories__/Default.tsx +6 -6
- package/src/core/TextArea/__stories__/DisabledInput.tsx +7 -7
- package/src/core/TextArea/__stories__/LimitedCharacters.tsx +7 -7
- package/src/core/TextArea/__stories__/MultipleQuestions.tsx +6 -6
- package/src/core/TextArea/__stories__/WithDeclaredRows.tsx +7 -7
- package/src/core/TextArea/__stories__/WithErrorMessage.tsx +8 -8
- package/src/core/TextArea/__stories__/WithHint.tsx +7 -7
- package/src/core/TextArea/index.mdx +35 -13
- package/src/core/TextInput/TextInput.stories.js +14 -12
- package/src/core/TextInput/__stories__/AskingForNumbers.tsx +7 -7
- package/src/core/TextInput/__stories__/Default.tsx +6 -6
- package/src/core/TextInput/__stories__/DisabledInput.tsx +7 -7
- package/src/core/TextInput/__stories__/FixedWidths.tsx +16 -16
- package/src/core/TextInput/__stories__/FluidWidths.tsx +16 -16
- package/src/core/TextInput/__stories__/MultipleQuestions.tsx +5 -5
- package/src/core/TextInput/__stories__/WithErrorMessage.tsx +8 -8
- package/src/core/TextInput/__stories__/WithHint.tsx +7 -7
- package/src/core/TextInput/index.mdx +40 -11
- package/src/core/VisuallyHidden/VisuallyHidden.stories.js +4 -5
- package/src/core/VisuallyHidden/__stories__/Default.tsx +6 -4
- package/src/core/VisuallyHidden/index.mdx +5 -2
- package/src/core/WarningText/WarningText.stories.js +7 -5
- package/src/core/WarningText/__stories__/Default.tsx +1 -1
- package/src/core/WarningText/index.mdx +6 -4
- package/src/core/WarningText/index.tsx +1 -2
- package/src/core/index.ts +9 -6
- package/src/govgr/Footer/index.mdx +4 -0
- package/src/govgr/GovGRLogo/govgr-logo.svg +1 -0
- package/src/govgr/{Logo → GovGRLogo}/index.tsx +0 -0
- package/src/govgr/{Logo → GovGRLogo}/logo.ts +0 -0
- package/src/govgr/index.ts +1 -1
- package/src/hooks/useLatest.ts +7 -7
- package/src/hooks/useSearch.ts +5 -8
- package/src/hooks/useTogglableSections.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/layouts/Basic/Basic.stories.js +2 -0
- package/src/layouts/Basic/Bottom/index.mdx +4 -0
- package/src/layouts/Basic/Bottom/index.tsx +1 -2
- package/src/layouts/Basic/Content/index.mdx +1 -3
- package/src/layouts/Basic/Content/index.tsx +1 -5
- package/src/layouts/Basic/Main/index.mdx +5 -3
- package/src/layouts/Basic/Main/index.tsx +1 -2
- package/src/layouts/Basic/Masthead/index.mdx +5 -3
- package/src/layouts/Basic/Masthead/index.tsx +2 -4
- package/src/layouts/Basic/Side/index.mdx +0 -2
- package/src/layouts/Basic/Top/index.mdx +6 -4
- package/src/layouts/Basic/Top/index.tsx +1 -3
- package/src/layouts/Basic/__stories__/Default.tsx +5 -3
- package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +8 -5
- package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +7 -4
- package/src/layouts/Basic/index.mdx +1 -9
- package/src/layouts/Basic/index.tsx +4 -4
- package/src/layouts/Grid/Grid.stories.js +5 -6
- package/src/layouts/Grid/__stories__/Default.tsx +26 -57
- package/src/layouts/Grid/__stories__/Inline.tsx +26 -56
- package/src/registry.js +152 -18
- package/src/themes/grnet.js +1 -1
- package/src/typography/Heading/Heading.stories.js +1 -0
- package/src/typography/Heading/__stories__/Default.tsx +1 -1
- package/src/typography/Heading/index.mdx +5 -1
- package/src/typography/Heading/index.tsx +1 -2
- package/src/typography/HeadingCaption/HeadingCaption.stories.js +1 -0
- package/src/typography/HeadingCaption/__stories__/Default.tsx +2 -2
- package/src/typography/HeadingCaption/__stories__/NestedToTitle.tsx +2 -2
- package/src/typography/HeadingCaption/index.mdx +10 -3
- package/src/typography/HeadingCaption/index.tsx +1 -2
- package/src/typography/Hint/Hint.stories.js +5 -6
- package/src/typography/Hint/__stories__/Default.tsx +3 -6
- package/src/typography/Hint/__stories__/FontSizes.tsx +6 -7
- package/src/typography/Hint/index.mdx +10 -3
- package/src/typography/NormalText/NormalText.stories.js +7 -8
- package/src/typography/NormalText/__stories__/Default.tsx +3 -8
- package/src/typography/NormalText/__stories__/FontSizes.tsx +9 -10
- package/src/typography/NormalText/__stories__/FontWeight.tsx +2 -2
- package/src/typography/NormalText/__stories__/Variants.tsx +4 -5
- package/src/typography/NormalText/index.mdx +20 -5
- package/src/typography/Paragraph/Paragraph.stories.js +8 -8
- package/src/typography/Paragraph/__stories__/Default.tsx +3 -8
- package/src/typography/Paragraph/__stories__/FontSizes.tsx +2 -3
- package/src/typography/Paragraph/__stories__/FontWeight.tsx +1 -1
- package/src/typography/Paragraph/__stories__/LeadVariant.tsx +3 -6
- package/src/typography/Paragraph/__stories__/SmallVariant.tsx +3 -6
- package/src/typography/Paragraph/index.mdx +25 -6
- package/src/typography/index.mdx +0 -1
- package/src/typography/index.ts +2 -6
- 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/withDeprecation.tsx +16 -9
- package/test-utils/delay.d.ts +2 -0
- package/test-utils/delay.js +47 -0
- package/themes/grnet.d.ts +2 -0
- package/themes/grnet.js +129 -0
- package/typography/Caption/index.d.ts +8 -0
- package/typography/Caption/index.js +27 -0
- package/typography/Heading/Heading.stories.d.ts +8 -0
- package/typography/Heading/Heading.stories.js +31 -0
- package/typography/Heading/__stories__/Default.d.ts +2 -0
- package/typography/Heading/__stories__/Default.js +37 -0
- package/typography/Heading/index.d.ts +3 -0
- package/typography/Heading/index.js +30 -0
- package/typography/Heading/index.mdx +16 -0
- package/typography/HeadingCaption/HeadingCaption.stories.d.ts +9 -0
- package/typography/HeadingCaption/HeadingCaption.stories.js +45 -0
- package/typography/HeadingCaption/__stories__/Default.d.ts +2 -0
- package/typography/HeadingCaption/__stories__/Default.js +49 -0
- package/typography/HeadingCaption/__stories__/NestedToTitle.d.ts +2 -0
- package/typography/HeadingCaption/__stories__/NestedToTitle.js +29 -0
- package/typography/HeadingCaption/index.d.ts +3 -0
- package/typography/HeadingCaption/index.js +30 -0
- package/typography/HeadingCaption/index.mdx +23 -0
- package/typography/Hint/Hint.stories.d.ts +9 -0
- package/typography/Hint/Hint.stories.js +45 -0
- package/typography/Hint/__stories__/Default.d.ts +2 -0
- package/typography/Hint/__stories__/Default.js +22 -0
- package/typography/Hint/__stories__/FontSizes.d.ts +2 -0
- package/typography/Hint/__stories__/FontSizes.js +34 -0
- package/typography/Hint/index.d.ts +3 -0
- package/typography/Hint/index.js +30 -0
- package/typography/Hint/index.mdx +23 -0
- package/typography/NormalText/NormalText.stories.d.ts +11 -0
- package/typography/NormalText/NormalText.stories.js +73 -0
- package/typography/NormalText/__stories__/Default.d.ts +2 -0
- package/typography/NormalText/__stories__/Default.js +22 -0
- package/typography/NormalText/__stories__/FontSizes.d.ts +2 -0
- package/typography/NormalText/__stories__/FontSizes.js +62 -0
- package/typography/NormalText/__stories__/FontWeight.d.ts +2 -0
- package/typography/NormalText/__stories__/FontWeight.js +32 -0
- package/typography/NormalText/__stories__/Variants.d.ts +2 -0
- package/typography/NormalText/__stories__/Variants.js +32 -0
- package/typography/NormalText/index.d.ts +3 -0
- package/typography/NormalText/index.js +30 -0
- package/typography/NormalText/index.mdx +41 -0
- package/typography/Paragraph/Paragraph.stories.d.ts +12 -0
- package/typography/Paragraph/Paragraph.stories.js +87 -0
- package/typography/Paragraph/__stories__/Default.d.ts +2 -0
- package/typography/Paragraph/__stories__/Default.js +22 -0
- package/typography/Paragraph/__stories__/FontSizes.d.ts +2 -0
- package/typography/Paragraph/__stories__/FontSizes.js +48 -0
- package/typography/Paragraph/__stories__/FontWeight.d.ts +2 -0
- package/typography/Paragraph/__stories__/FontWeight.js +28 -0
- package/typography/Paragraph/__stories__/LeadVariant.d.ts +2 -0
- package/typography/Paragraph/__stories__/LeadVariant.js +24 -0
- package/typography/Paragraph/__stories__/SmallVariant.d.ts +2 -0
- package/typography/Paragraph/__stories__/SmallVariant.js +24 -0
- package/typography/Paragraph/index.d.ts +3 -0
- package/typography/Paragraph/index.js +30 -0
- package/typography/Paragraph/index.mdx +49 -0
- package/typography/Title/index.d.ts +10 -0
- package/typography/Title/index.js +69 -0
- package/typography/index.d.ts +5 -0
- package/typography/index.js +70 -0
- package/typography/index.mdx +4 -0
- package/utils/Kitchensink/AllComponents.d.ts +1 -0
- package/utils/Kitchensink/AllComponents.js +24 -0
- package/utils/Kitchensink/KitchensinkByCategory.d.ts +6 -0
- package/utils/Kitchensink/KitchensinkByCategory.js +56 -0
- package/utils/Kitchensink/KitchensinkByLetter.d.ts +5 -0
- package/utils/Kitchensink/KitchensinkByLetter.js +34 -0
- package/utils/Kitchensink/KitchensinkComponent.d.ts +10 -0
- package/utils/Kitchensink/KitchensinkComponent.js +68 -0
- package/utils/Kitchensink/KitchensinkDashboard.d.ts +4 -0
- package/utils/Kitchensink/KitchensinkDashboard.js +63 -0
- package/utils/evaluateBrowserVersion.d.ts +15 -0
- package/utils/evaluateBrowserVersion.js +216 -0
- package/utils/withDeprecation.d.ts +16 -0
- package/utils/withDeprecation.js +119 -0
- package/.eslintrc.js +0 -3
- package/.prettierrc.js +0 -3
- package/.rush/temp/operation/build/state.json +0 -3
- package/.rush/temp/package-deps_build.json +0 -535
- package/.rush/temp/shrinkwrap-deps.json +0 -393
- package/CHANGELOG.json +0 -1668
- package/digigov-ui-0.26.7.tgz +0 -0
- package/docs/components.mdx +0 -1
- package/docs/create-a-new-service.mdx +0 -93
- package/docs/create-common-page-layout.mdx +0 -205
- package/docs/create-static-page.mdx +0 -179
- package/docs/edit-start-page.mdx +0 -141
- package/docs/index.mdx +0 -66
- package/docs/introduction.mdx +0 -34
- package/src/admin/CopyToClipboard/__stories__/MultipleCopies.tsx +0 -213
- package/src/admin/Modal/__stories__/AlertDialog.test.tsx +0 -14
- package/src/core/Checkboxes/Checkbox.stories.js +0 -12
- package/src/core/Confirmation/Confirmation.stories.js +0 -8
- package/src/core/Confirmation/__stories__/Default.tsx +0 -15
- package/src/core/Confirmation/confirmation.mdx +0 -19
- package/src/core/DateInput/DateInput.stories.js +0 -9
- package/src/core/DateInput/index.mdx +0 -34
- package/src/core/Radios/Radios.stories.js +0 -12
- package/src/core/Radios/index.mdx +0 -56
- package/src/core/Select/Select.stories.js +0 -10
- package/src/core/Select/index.mdx +0 -42
- package/src/form/inputs/Input/index.mdx +0 -10
- package/src/router/index.mdx +0 -5
- package/tsconfig.json +0 -25
- package/tsconfig.production.json +0 -45
- package/ui.build.log +0 -16
package/digigov-ui-0.26.7.tgz
DELETED
|
Binary file
|
package/docs/components.mdx
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Components
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Create a new service
|
|
3
|
-
parent: docs/ui/introduction
|
|
4
|
-
order: 0
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
### Prerequisites
|
|
8
|
-
|
|
9
|
-
In order to follow the guide, make sure that you have already installed
|
|
10
|
-
[nodejs](https://nodejs.org/) v12.16.0 LTS and the
|
|
11
|
-
[Yarn Package Manager](https://classic.yarnpkg.com/) v1.22.4.
|
|
12
|
-
|
|
13
|
-
## Create Digigov app
|
|
14
|
-
|
|
15
|
-
The fastest way to start a service from scratch using the gov.gr specifications
|
|
16
|
-
is to use our generator tool. You can directly run this command with the
|
|
17
|
-
`yarn create` command, without installing a NPM module. By giving the name of
|
|
18
|
-
the service as the first parameter, it will create a folder that contains
|
|
19
|
-
everything you need. A [Git](https://git-scm.com/) repository with a basic
|
|
20
|
-
scaffold of an app, tools to develop and build your code.
|
|
21
|
-
|
|
22
|
-
Let's assume we want to create a new application called `my-new-service`.
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
$ yarn create digigov-app my-new-service
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
> Keep in mind that the name you give is essentially an identifier for the code
|
|
29
|
-
> repository and should eventually be used in the Github/Gitlab repository, CI/CD
|
|
30
|
-
> pipelines, configurations and as a reference between engineers as well.
|
|
31
|
-
|
|
32
|
-
By running this command, you will be asked to fill in some details, eg. a short
|
|
33
|
-
description of the service, the name of your team etc. Next, the generator tool
|
|
34
|
-
will automatically create an empty codebase and it will install all dependencies
|
|
35
|
-
using Yarn. This may take a few minutes to complete, depending on your network
|
|
36
|
-
connection and computer capabilities.
|
|
37
|
-
|
|
38
|
-
## Running the service for the first time
|
|
39
|
-
|
|
40
|
-
If everything was successful, you should be able to test the service in a
|
|
41
|
-
development environment in no time. Just run the following commands.
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
$ cd my-new-service
|
|
45
|
-
$ yarn dev
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
The service is now available on [http://localhost:3000](http://localhost:3000).
|
|
49
|
-
The start page should look like this.
|
|
50
|
-
|
|
51
|
-

|
|
52
|
-
|
|
53
|
-
As you might have guessed, the service is currently empty. For instance, the
|
|
54
|
-
title «My Service» is hardcoded and not descriptive of what our service does.
|
|
55
|
-
|
|
56
|
-
## Change the title
|
|
57
|
-
|
|
58
|
-
In order to change the title, you should change the `app.name` key in the
|
|
59
|
-
`src/locales/el.json` inside the directory. This file may eventually be used
|
|
60
|
-
to translate the service in multiple languages without changing the code.
|
|
61
|
-
|
|
62
|
-
```json
|
|
63
|
-
{
|
|
64
|
-
"app": {
|
|
65
|
-
- "name": "My Service",
|
|
66
|
-
+ "name": "Έκδοση πιστοποιητικού δημόσιας υπηρεσίας",
|
|
67
|
-
"intro_text": "Welcome to My Service"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Now if you visit [http://localhost:3000](http://localhost:3000), we see the
|
|
73
|
-
new title in our page, both in the `Header` and `Main` sections.
|
|
74
|
-
|
|
75
|
-

|
|
76
|
-
|
|
77
|
-
Coming up next, we're going to see how we can bring the start page in life.
|
|
78
|
-
|
|
79
|
-
[Continue to the next section “Edit start page“](/docs/ui/edit-start-page)
|
|
80
|
-
|
|
81
|
-
#### Helpful content
|
|
82
|
-
|
|
83
|
-
- [Downloading and installing Node.js and NPM - Official Node.js docs](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
|
|
84
|
-
- [Install Yarn - Official Yarn Docs](https://yarnpkg.com/getting-started/install)
|
|
85
|
-
- Get familiar with next.js and learn how to set up new pages for your service
|
|
86
|
-
- [Next.js Tutorial](https://nextjs.org/learn/basics/getting-started)
|
|
87
|
-
- [Next.js Docs](https://nextjs.org/docs/getting-started)
|
|
88
|
-
- Learn how to design your service by following the DigiGOV guidelines
|
|
89
|
-
- [DigiGOV Design System](/docs/site/design)
|
|
90
|
-
- Become familiar with the available components
|
|
91
|
-
- [@digigov/ui components](/docs/ui/components)
|
|
92
|
-
|
|
93
|
-
[Continue in the next section “Edit start page“](/docs/ui/edit-start-page)
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Create common page layout
|
|
3
|
-
parent: docs/ui/introduction
|
|
4
|
-
order: 3
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Eventually the project that we started will start to take form, expanding into
|
|
8
|
-
multiple pages that most likely share a same design structure and layout. In
|
|
9
|
-
most cases we want to use the [two-thirds page layout](/service-manual/layout),
|
|
10
|
-
adding our main content in the left two-third column, and optional helpful
|
|
11
|
-
information or links in the right one-third column.
|
|
12
|
-
|
|
13
|
-
## What are we going to build
|
|
14
|
-
|
|
15
|
-
Given the specifications above, we need a React component that will act as a
|
|
16
|
-
wrapper for page content. Most of the time, the content will be located in the
|
|
17
|
-
main and will contain a main content, spanning two-thirds of the page width,
|
|
18
|
-
and a side content, spanning the rest of the one-third width. The side content
|
|
19
|
-
might be empty. This layout looks like this:
|
|
20
|
-
|
|
21
|
-

|
|
23
|
-
|
|
24
|
-
On the other hand, it is safe to assume that we will eventually stumble upon a
|
|
25
|
-
page that doesn't use a standard layout. That means that will have to support
|
|
26
|
-
passing down custom children as page content.
|
|
27
|
-
|
|
28
|
-
To recap, we want to build a React component that accepts content for
|
|
29
|
-
|
|
30
|
-
- **Main content**, two-thirds page width
|
|
31
|
-
- **Side content**, one-third page width
|
|
32
|
-
- or **custom content**, page width not strictly specified, but should be
|
|
33
|
-
flexible for future expansion
|
|
34
|
-
|
|
35
|
-
## Let's start coding
|
|
36
|
-
|
|
37
|
-
Before we start with the actual code, let's start with some basic code for the
|
|
38
|
-
React component. Create a new component file in
|
|
39
|
-
`src/components/pages/common/Layout.js`:
|
|
40
|
-
|
|
41
|
-
```jsx
|
|
42
|
-
import React from 'react';
|
|
43
|
-
import { useTranslation } from 'react-i18next';
|
|
44
|
-
|
|
45
|
-
const CommonLayout = (props) => {
|
|
46
|
-
const { t } = useTranslation();
|
|
47
|
-
return (
|
|
48
|
-
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export default BasicLayout;
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Now let's add some JSX to the `render` function. What we need is a `BasicLayout`
|
|
56
|
-
that contains a `Top` section, a `Content` section and finally a `Bottom`
|
|
57
|
-
section. We are going to use the respective components from `@digigov/ui`:
|
|
58
|
-
|
|
59
|
-
```jsx
|
|
60
|
-
import React from 'react';
|
|
61
|
-
import { useTranslation } from 'react-i18next';
|
|
62
|
-
+import BasicLayout, {
|
|
63
|
-
+ Top,
|
|
64
|
-
+ Content,
|
|
65
|
-
+ Bottom
|
|
66
|
-
+} from '@digigov/ui/layouts/Basic';
|
|
67
|
-
|
|
68
|
-
const CommonLayout = (props) => {
|
|
69
|
-
const { t } = useTranslation();
|
|
70
|
-
return (
|
|
71
|
-
+ <BasicLayout>
|
|
72
|
-
+ <Top></Top>
|
|
73
|
-
+ <Content></Content>
|
|
74
|
-
+ <Bottom></Bottom>
|
|
75
|
-
+ </BasicLayout>
|
|
76
|
-
);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export default CommonLayout;
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
With this code in place, we can start coding each section of the page.
|
|
83
|
-
|
|
84
|
-
## Adding the GovGr Header and Footer
|
|
85
|
-
|
|
86
|
-
First off, we should start with the official GovGr Header. It is very important
|
|
87
|
-
to maintain the same look and feel of the Header across the whole GovGr
|
|
88
|
-
ecosystem, both in services and static pages.
|
|
89
|
-
|
|
90
|
-
Again, here we import to use the `Header` and `HeaderTitle` components from
|
|
91
|
-
`@digigov/ui` as well as the official GovGr logo and finally the `ServiceBadge`
|
|
92
|
-
component that's going to inform users about the design stage of our service
|
|
93
|
-
(alpha, beta etc.). Then we can use all these components inside the `Top`
|
|
94
|
-
section like so. The same applies to the `GovGrFooter` components.
|
|
95
|
-
|
|
96
|
-
```jsx
|
|
97
|
-
import React from 'react';
|
|
98
|
-
import { useTranslation } from 'react-i18next';
|
|
99
|
-
import BasicLayout, {
|
|
100
|
-
Top,
|
|
101
|
-
Content,
|
|
102
|
-
Bottom,
|
|
103
|
-
} from '@digigov/ui/layouts/Basic';
|
|
104
|
-
+import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
105
|
-
+import ServiceBadge from '@digigov/ui/core/ServiceBadge'
|
|
106
|
-
+import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
107
|
-
+import GovGrFooter from '@digigov/ui/govgr/Footer';
|
|
108
|
-
|
|
109
|
-
const CommonLayout = (props) => {
|
|
110
|
-
const { t } = useTranslation();
|
|
111
|
-
return (
|
|
112
|
-
<BasicLayout>
|
|
113
|
-
<Top>
|
|
114
|
-
+ <Header>
|
|
115
|
-
+ <GovGRLogo />
|
|
116
|
-
+ <HeaderTitle>
|
|
117
|
-
+ {t('app.name')}
|
|
118
|
-
+ <ServiceBadge label="ALPHA" />
|
|
119
|
-
+ </HeaderTitle>
|
|
120
|
-
+ </Header>
|
|
121
|
-
</Top>
|
|
122
|
-
<Content>
|
|
123
|
-
</Content>
|
|
124
|
-
<Bottom>
|
|
125
|
-
+ <GovGrFooter />
|
|
126
|
-
</Bottom>
|
|
127
|
-
</BasicLayout>
|
|
128
|
-
);
|
|
129
|
-
};
|
|
130
|
-
export default CommonLayout;
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
If we could render the layout right now, it would look like this.
|
|
134
|
-
|
|
135
|
-

|
|
137
|
-
|
|
138
|
-
Now let's use in the start page of our service and remove all the extra code.
|
|
139
|
-
|
|
140
|
-
## Adding the main content
|
|
141
|
-
|
|
142
|
-
It is time to update the code in our start page, which is located in
|
|
143
|
-
`src/pages/index.js`, in order to use the new common layout that we have created.
|
|
144
|
-
|
|
145
|
-
Let's remove some of the old lines and add the new ones:
|
|
146
|
-
|
|
147
|
-
```jsx
|
|
148
|
-
import React from 'react';
|
|
149
|
-
-import Head from 'next/head'
|
|
150
|
-
import { useTranslation } from 'react-i18next';
|
|
151
|
-
|
|
152
|
-
-import BasicLayout, {
|
|
153
|
-
- Top,
|
|
154
|
-
- Content,
|
|
155
|
-
- Main,
|
|
156
|
-
- Side,
|
|
157
|
-
- Bottom,
|
|
158
|
-
} from '@digigov/ui/layouts/Basic';
|
|
159
|
-
+import { Main } from '@digigov/ui/layouts/Basic';
|
|
160
|
-
-import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
161
|
-
-import ServiceBadge from '@digigov/ui/core/ServiceBadge';
|
|
162
|
-
-import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
163
|
-
-import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
164
|
-
import PageTitle, { PageTitleHeading } from '@digigov/ui/app/PageTitle';
|
|
165
|
-
+import CommonLayout from 'my-new-service/components/pages/common/Layout.js'
|
|
166
|
-
|
|
167
|
-
const Home = () => {
|
|
168
|
-
const { t } = useTranslation();
|
|
169
|
-
return (
|
|
170
|
-
- <BasicLayout>
|
|
171
|
-
+ <CommonLayout>
|
|
172
|
-
- <Head>
|
|
173
|
-
- <title>{t('app.name')}</title>
|
|
174
|
-
- </Head>
|
|
175
|
-
- <Top>
|
|
176
|
-
- <Header>
|
|
177
|
-
- <GovGRLogo />
|
|
178
|
-
- <HeaderTitle>
|
|
179
|
-
- {t('app.name')}
|
|
180
|
-
- <ServiceBadge label="ALPHA" />
|
|
181
|
-
- </HeaderTitle>
|
|
182
|
-
- </Header>
|
|
183
|
-
- </Top>
|
|
184
|
-
- <Content>
|
|
185
|
-
<Main>
|
|
186
|
-
<PageTitle>
|
|
187
|
-
<PageTitleHeading>{t('app.name')}</PageTitleHeading>
|
|
188
|
-
</PageTitle>
|
|
189
|
-
<div>{t('app.intro_text')}</div>
|
|
190
|
-
</Main>
|
|
191
|
-
- <Side></Side>
|
|
192
|
-
- </Content>
|
|
193
|
-
- <Bottom>
|
|
194
|
-
- <GovGRFooter />
|
|
195
|
-
- </Bottom>
|
|
196
|
-
- </BasicLayout>
|
|
197
|
-
+ </CommonLayout>
|
|
198
|
-
);
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
export default Home;
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
So currently we have the start page with the `CommonLayout` that we set in
|
|
205
|
-
`src/pages/index.js`.
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Create a static page
|
|
3
|
-
parent: docs/ui/introduction
|
|
4
|
-
order: 2
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Using the same principles with the Start page, we can create multiple other
|
|
8
|
-
static pages that can be used to host useful information for our users that
|
|
9
|
-
don't belong to the start page, eg. FAQ pages.
|
|
10
|
-
|
|
11
|
-
## Create a new source file
|
|
12
|
-
|
|
13
|
-
First of all, let's define the URL in which our users will access our new
|
|
14
|
-
static page. This page will be about frequently asked questions about our
|
|
15
|
-
service for the citizens. Therefore, we can give this page the URL `/faq`.
|
|
16
|
-
The source file that should be created will be located in `src/pages/faq.js`.
|
|
17
|
-
The source code is essentially the same with the start page, so we're can go
|
|
18
|
-
ahead and copy the following in the newly created file.
|
|
19
|
-
|
|
20
|
-
```jsx additions={1,30-35} deletions={5-10} highlight={3}
|
|
21
|
-
import React from 'react';
|
|
22
|
-
import Head from 'next/head';
|
|
23
|
-
import { useTranslation } from 'react-i18next';
|
|
24
|
-
|
|
25
|
-
import BasicLayout, {
|
|
26
|
-
Top,
|
|
27
|
-
Content,
|
|
28
|
-
Main,
|
|
29
|
-
Side,
|
|
30
|
-
Bottom,
|
|
31
|
-
} from '@digigov/ui/layouts/Basic';
|
|
32
|
-
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
33
|
-
import ServiceBadge from '@digigov/ui/core/ServiceBadge';
|
|
34
|
-
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
35
|
-
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
36
|
-
import PageTitle, { PageTitleHeading } from '@digigov/ui/app/PageTitle';
|
|
37
|
-
|
|
38
|
-
const Faq = () => {
|
|
39
|
-
const { t } = useTranslation();
|
|
40
|
-
return (
|
|
41
|
-
<BasicLayout>
|
|
42
|
-
<Head>
|
|
43
|
-
<title>{t('app.name')}</title>
|
|
44
|
-
</Head>
|
|
45
|
-
<Top>
|
|
46
|
-
<Header>
|
|
47
|
-
<GovGRLogo />
|
|
48
|
-
<HeaderTitle>
|
|
49
|
-
{t('app.name')}
|
|
50
|
-
<ServiceBadge label="ALPHA" />
|
|
51
|
-
</HeaderTitle>
|
|
52
|
-
</Header>
|
|
53
|
-
</Top>
|
|
54
|
-
<Content>
|
|
55
|
-
<Main>
|
|
56
|
-
<PageTitle>
|
|
57
|
-
<PageTitleHeading></PageTitleHeading>
|
|
58
|
-
</PageTitle>
|
|
59
|
-
</Main>
|
|
60
|
-
<Side></Side>
|
|
61
|
-
</Content>
|
|
62
|
-
<Bottom>
|
|
63
|
-
<GovGRFooter />
|
|
64
|
-
</Bottom>
|
|
65
|
-
</BasicLayout>
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export default Faq;
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
So now we have a `.js` file that simultaneously defines the route URL by each
|
|
73
|
-
filename and specifies the content and layout of the page. The only thing that's
|
|
74
|
-
left to do is to write the texts in the locale file, otherwise this page will
|
|
75
|
-
look totally empty.
|
|
76
|
-
|
|
77
|
-

|
|
78
|
-
|
|
79
|
-
## Adding texts in locale file
|
|
80
|
-
|
|
81
|
-
Let's edit the `src/locales/el.json` file and add the following:
|
|
82
|
-
|
|
83
|
-
```json
|
|
84
|
-
{
|
|
85
|
-
"app": {
|
|
86
|
-
"name": "Έκδοση πιστοποιητικού δημόσιας υπηρεσίας",
|
|
87
|
-
"cta": "Ξεκινήστε εδώ"
|
|
88
|
-
},
|
|
89
|
-
"home": {
|
|
90
|
-
"intro": {
|
|
91
|
-
"paragraph": "Χρησιμοποιήστε την εφαρμογή προκειμένου να:",
|
|
92
|
-
"list1": "εκδώσετε έγγραφα σε ηλεκτρονική μορφή",
|
|
93
|
-
"list2": "ελέγξετε την εγκυρότητα ενός εγγράφου"
|
|
94
|
-
}
|
|
95
|
-
+ },
|
|
96
|
-
+ "faq": {
|
|
97
|
-
+ "title": "Συχνές ερωτήσεις",
|
|
98
|
-
+ "question1": "1. Ποιες ληξιαρχικές πράξεις μπορώ να αναζητήσω ηλεκτρονικά;",
|
|
99
|
-
+ "answer1": "Διαθέσιμες ηλεκτρονικά είναι οι ληξιαρχικές πράξεις που εκδόθηκαν από το 2013 και μετά, ή παλαιότερες, οι οποίες μεταβλήθηκαν ή/και για τις οποίες εκδόθηκε απόσπασμα από το 2018 και μετά.",
|
|
100
|
-
+ "question2": "3. Προσπαθώ να βγάλω απόσπασμα ληξιαρχικής πράξης και μου βγάζει μήνυμα «Δε βρέθηκε Λ.Π. στο Πληροφοριακό Σύστημα του Μητρώου Πολιτών για τα δεδομένα στοιχεία πολίτη.»",
|
|
101
|
-
+ "answer2": "Διαθέσιμες ηλεκτρονικά είναι οι ληξιαρχικες πράξεις που εκδόθηκαν από το 2013 και μετά, ή παλαιότερες, οι οποίες μεταβλήθηκαν ή/και για τις οποίες εκδόθηκε απόσπασμα από το 2018 και μετά. Η ληξιαρχική πράξη που ζητήσατε μπορεί να εκδοθεί μόνο από το Δήμο. Είτε δεν ταυτοποιήθηκαν τα στοιχεία σας στο Μητρώο πολιτών, είτε έχετε λανθασμένα στοιχεία στο φορολογικό μητρώο. Αν μπορείτε να εκδώσετε πιστοποιητικό οικογενειακής κατάστασης από το gov.gr τότε τα στοιχεία του φορολογικού μητρώου είναι σωστά και το πρόβλημα εντοπίζεται στα στοιχεία σας στην ληξιαρχική πράξη. Στην περίπτωση αυτή θα πρέπει να απευθυνθείτε στο Δήμο σας. Αν κάποιο από τα στοιχεία σας στο φορολογικό μητρώο είναι λάθος ή είναι γραμμένο με λατινικούς χαρακτήρες θα πρέπει να το διορθώσετε στη ΔΟΥ σας."
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## Adding typography components
|
|
107
|
-
|
|
108
|
-
Since we have all of our content saved in the locale file, we can start using
|
|
109
|
-
it in our page. We're going to use the `Title` and `Paragraph` components from
|
|
110
|
-
the `@digigov/ui` module.
|
|
111
|
-
|
|
112
|
-
```jsx
|
|
113
|
-
import React from 'react';
|
|
114
|
-
import Head from 'next/head';
|
|
115
|
-
import { useTranslation } from 'react-i18next';
|
|
116
|
-
|
|
117
|
-
import BasicLayout, {
|
|
118
|
-
Top,
|
|
119
|
-
Content,
|
|
120
|
-
Main,
|
|
121
|
-
Side,
|
|
122
|
-
Bottom,
|
|
123
|
-
} from '@digigov/ui/layouts/Basic';
|
|
124
|
-
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
125
|
-
import ServiceBadge from '@digigov/ui/core/ServiceBadge';
|
|
126
|
-
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
127
|
-
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
128
|
-
import PageTitle, { PageTitleHeading } from '@digigov/ui/app/PageTitle';
|
|
129
|
-
+import Title from '@digigov/ui/typography/Title';
|
|
130
|
-
+import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
131
|
-
|
|
132
|
-
const Faq = () => {
|
|
133
|
-
const { t } = useTranslation();
|
|
134
|
-
const asdf = 123 + 234;
|
|
135
|
-
return (
|
|
136
|
-
<BasicLayout>
|
|
137
|
-
<Head>
|
|
138
|
-
<title>{t('app.name')}</title>
|
|
139
|
-
</Head>
|
|
140
|
-
<Top>
|
|
141
|
-
<Header>
|
|
142
|
-
<GovGRLogo />
|
|
143
|
-
<HeaderTitle>
|
|
144
|
-
{t('app.name')}
|
|
145
|
-
<ServiceBadge label="ALPHA" />
|
|
146
|
-
</HeaderTitle>
|
|
147
|
-
</Header>
|
|
148
|
-
</Top>
|
|
149
|
-
<Content>
|
|
150
|
-
<Main>
|
|
151
|
-
<PageTitle>
|
|
152
|
-
+ <PageTitleHeading>{t('faq.title')}</PageTitleHeading>
|
|
153
|
-
</PageTitle>
|
|
154
|
-
+ <Title>{t('faq.question1')}</Title>
|
|
155
|
-
+ <Paragraph>{t('faq.answer1')}</Paragraph>
|
|
156
|
-
+ <Title>{t('faq.question2')}</Title>
|
|
157
|
-
+ <Paragraph>{t('faq.answer2')}</Paragraph>
|
|
158
|
-
</Main>
|
|
159
|
-
<Side></Side>
|
|
160
|
-
</Content>
|
|
161
|
-
<Bottom>
|
|
162
|
-
<GovGRFooter />
|
|
163
|
-
</Bottom>
|
|
164
|
-
</BasicLayout>
|
|
165
|
-
);
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
export default Faq;
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Now the FAQ page looks like this.
|
|
172
|
-
|
|
173
|
-

|
|
174
|
-
|
|
175
|
-
Most of the code that we're using in this page will be commonly used in more
|
|
176
|
-
than one page. It is wise to create a common page layout that many pages will
|
|
177
|
-
use and extend.
|
|
178
|
-
|
|
179
|
-
[Continue to the next section “Create a common page layout“](/docs/ui/create-common-page-layout)
|
package/docs/edit-start-page.mdx
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Edit start page
|
|
3
|
-
parent: docs/ui/introduction
|
|
4
|
-
order: 1
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Given that [we have created a new service](/docs/ui/create-a-new-application),
|
|
8
|
-
it is time to start adding content. When we generate a new codebase, the only
|
|
9
|
-
page that exists is the start page. This is the first page that users will be
|
|
10
|
-
seeing when landing in our service and it is accessible in the root URL `/` for
|
|
11
|
-
our domain. The actual code is located in `src/pages/index.js` file and it
|
|
12
|
-
matches the `/` index route.
|
|
13
|
-
|
|
14
|
-
In a fresh service, this file should contain the following code.
|
|
15
|
-
|
|
16
|
-
```jsx
|
|
17
|
-
import React from 'react';
|
|
18
|
-
import Head from 'next/head';
|
|
19
|
-
import { useTranslation } from 'react-i18next';
|
|
20
|
-
|
|
21
|
-
import BasicLayout, {
|
|
22
|
-
Top,
|
|
23
|
-
Content,
|
|
24
|
-
Main,
|
|
25
|
-
Side,
|
|
26
|
-
Bottom,
|
|
27
|
-
} from '@digigov/ui/layouts/Basic';
|
|
28
|
-
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
29
|
-
import ServiceBadge from '@digigov/ui/core/ServiceBadge';
|
|
30
|
-
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
31
|
-
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
32
|
-
import PageTitle, { PageTitleHeading } from '@digigov/ui/app/PageTitle';
|
|
33
|
-
|
|
34
|
-
const Home = () => {
|
|
35
|
-
const { t } = useTranslation();
|
|
36
|
-
return (
|
|
37
|
-
<BasicLayout>
|
|
38
|
-
<Head>
|
|
39
|
-
<title>{t('app.name')}</title>
|
|
40
|
-
</Head>
|
|
41
|
-
<Top>
|
|
42
|
-
<Header>
|
|
43
|
-
<GovGRLogo />
|
|
44
|
-
<HeaderTitle>
|
|
45
|
-
{t('app.name')}
|
|
46
|
-
<ServiceBadge label="ALPHA" />
|
|
47
|
-
</HeaderTitle>
|
|
48
|
-
</Header>
|
|
49
|
-
</Top>
|
|
50
|
-
<Content>
|
|
51
|
-
<Main>
|
|
52
|
-
<PageTitle>
|
|
53
|
-
<PageTitleHeading>{t('app.name')}</PageTitleHeading>
|
|
54
|
-
</PageTitle>
|
|
55
|
-
<div>{t('app.intro_text')}</div>
|
|
56
|
-
</Main>
|
|
57
|
-
<Side></Side>
|
|
58
|
-
</Content>
|
|
59
|
-
<Bottom>
|
|
60
|
-
<GovGRFooter />
|
|
61
|
-
</Bottom>
|
|
62
|
-
</BasicLayout>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export default Home;
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
As discussed in the previous section, the content is in the `src/locales/el.json`
|
|
70
|
-
file, entirely separate from code. Naturally, you can write content inside the
|
|
71
|
-
code, but it's **highly recommended** to keep all texts in the locale file for
|
|
72
|
-
facilitating future translations and avoiding the repetitive task of migrating
|
|
73
|
-
all content later, thus creating a lot of technical debt.
|
|
74
|
-
|
|
75
|
-
Let's take a closer look at what elements we're going to need.
|
|
76
|
-
|
|
77
|
-
- A paragraph with text «Χρησιμοποιήστε την εφαρμογή προκειμένου να:»
|
|
78
|
-
- A list containing two items: «εκδώσετε έγγραφα σε ηλεκτρονική μορφή» and
|
|
79
|
-
«ελέγξετε την εγκυρότητα ενός εγγράφου»
|
|
80
|
-
- A start button with text «Ξεκινήστε εδώ»
|
|
81
|
-
|
|
82
|
-
## Add content to the locale file
|
|
83
|
-
|
|
84
|
-
The first step is to add the texts under a new key `app.home` in the
|
|
85
|
-
`src/locales/el.json` file.
|
|
86
|
-
|
|
87
|
-
```json
|
|
88
|
-
{
|
|
89
|
-
"app": {
|
|
90
|
-
"name": "Έκδοση πιστοποιητικού δημόσιας υπηρεσίας",
|
|
91
|
-
"cta": "Ξεκινήστε εδώ"
|
|
92
|
-
+ },
|
|
93
|
-
+ "home": {
|
|
94
|
-
+ "intro": {
|
|
95
|
-
+ "paragraph": "Χρησιμοποιήστε την εφαρμογή προκειμένου να:",
|
|
96
|
-
+ "list1": "εκδώσετε έγγραφα σε ηλεκτρονική μορφή",
|
|
97
|
-
+ "list2": "ελέγξετε την εγκυρότητα ενός εγγράφου"
|
|
98
|
-
+ }
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
> It's recommended to create a separate key for every page related to the url.
|
|
104
|
-
> This way you will avoid polluting the locale file and keep it clean and tidy.
|
|
105
|
-
|
|
106
|
-
## Render the typography elements
|
|
107
|
-
|
|
108
|
-
Since we added our text, we can go ahead and add the typography elements in
|
|
109
|
-
our page. We import the React components from the `@digigov/ui` module that is
|
|
110
|
-
already installed in our service.
|
|
111
|
-
|
|
112
|
-
Just below line 16 in the `src/pages/index.js` file we add the following code:
|
|
113
|
-
|
|
114
|
-
```jsx
|
|
115
|
-
import CallToAction from '@digigov/ui/core/Button/CallToAction';
|
|
116
|
-
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Then we make the following changes inside the `Main` component in the same file:
|
|
120
|
-
|
|
121
|
-
```jsx
|
|
122
|
-
<Main>
|
|
123
|
-
<PageTitle>
|
|
124
|
-
<PageTitleHeading>{t('app.name')}</PageTitleHeading>
|
|
125
|
-
</PageTitle>
|
|
126
|
-
<Paragraph>{t('home.intro.paragraph')}</Paragraph>
|
|
127
|
-
<Paragraph>
|
|
128
|
-
<ul>
|
|
129
|
-
<li>{t('home.intro.list1')}</li>
|
|
130
|
-
<li>{t('home.intro.list2')}</li>
|
|
131
|
-
</ul>
|
|
132
|
-
</Paragraph>
|
|
133
|
-
<CallToAction href="/start" label={t('app.cta')} />
|
|
134
|
-
</Main>
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
The `ul` and `li` components are plain HTML elements that we wrap in a
|
|
138
|
-
`Paragraph` component, so that we can inherit its styles. The start page now
|
|
139
|
-
looks like this:
|
|
140
|
-
|
|
141
|
-

|
package/docs/index.mdx
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: DigiGOV UI Toolkit
|
|
3
|
-
order: 0
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# DigiGOV UI Toolkit
|
|
7
|
-
|
|
8
|
-
**@digigov UI toolkit** is a set of libraries and tools written in javascript
|
|
9
|
-
which mainly focuses on providing developers with an easy and streamlined way
|
|
10
|
-
to design and develop frontend applications that target the gov.gr ecosystem.
|
|
11
|
-
|
|
12
|
-
The project consists of the following packages,
|
|
13
|
-
|
|
14
|
-
### @digigov/ui
|
|
15
|
-
|
|
16
|
-
A set of components written in [React](https://reactjs.com) and powered by
|
|
17
|
-
[Material Design](https://material.io) using the exceptional [React Material
|
|
18
|
-
UI toolkit](https://material-ui.com) which implement the [DigiGOV Design
|
|
19
|
-
System](/docs/site/design) guidelines.
|
|
20
|
-
|
|
21
|
-
<hr />
|
|
22
|
-
|
|
23
|
-
### @digigov/nextjs
|
|
24
|
-
|
|
25
|
-
A small set of utilities to facilitate developing @digigov/ui powered apps
|
|
26
|
-
using [Next.js](https://nextjs.com) framework.
|
|
27
|
-
|
|
28
|
-
<hr />
|
|
29
|
-
|
|
30
|
-
### @digigov/dev
|
|
31
|
-
|
|
32
|
-
Software package utilities and pre-bundled configurations and scripts for
|
|
33
|
-
day-to-day developer's needs (test, lint, serve).
|
|
34
|
-
|
|
35
|
-
<hr />
|
|
36
|
-
|
|
37
|
-
## Getting started
|
|
38
|
-
|
|
39
|
-
The simplest way to set up a project using the toolkit, assuming that [node](https://nodejs.org)
|
|
40
|
-
and [yarn](http://yarnpkg.com/) and [npx](https://github.com/npm/npx#install) are already installed and configured on your system, is by using
|
|
41
|
-
the `create-digigov-app` generator,
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
$ npx create-digigov-app my-service
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Fill the questions asked and once the dependencies of the project are
|
|
48
|
-
installed (it may take a while) use the following command to start up the
|
|
49
|
-
development server of your new app,
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
$ cd my-server
|
|
53
|
-
$ yarn dev
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Your app is now accessible at [http://localhost:3000](http://localhost:3000)
|
|
57
|
-
|
|
58
|
-
### Next steps
|
|
59
|
-
|
|
60
|
-
- Get familiar with next.js and learn how to set up new pages for your service
|
|
61
|
-
- [Next.js Tutorial](https://nextjs.org/learn/basics/getting-started)
|
|
62
|
-
- [Next.js Docs](https://nextjs.org/docs/getting-started)
|
|
63
|
-
- Learn how to design your service by following the DigiGOV guidelines
|
|
64
|
-
- [DigiGOV Design System](/docs/site/design)
|
|
65
|
-
- Become familiar with the available components
|
|
66
|
-
- [@digigov/ui components](/ui/components)
|