@digigov/ui 0.20.2 → 0.21.2
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 +30 -1
- package/admin/CircularProgress/CircularProgress.stories.d.ts +6 -0
- package/admin/CircularProgress/CircularProgress.stories.js +30 -0
- package/admin/CircularProgress/__stories__/Default.d.ts +3 -0
- package/admin/CircularProgress/__stories__/Default.js +26 -0
- package/{app/CopyToClipboard.d.ts → admin/CopyToClipboard/index.d.ts} +0 -0
- package/{app/CopyToClipboard.js → admin/CopyToClipboard/index.js} +0 -0
- package/admin/Drawer/Drawer.stories.d.ts +7 -0
- package/admin/Drawer/Drawer.stories.js +30 -0
- package/admin/Drawer/__stories__/Default.d.ts +3 -0
- package/admin/Drawer/__stories__/Default.js +106 -0
- package/admin/Pagination/Pagination.stories.d.ts +7 -0
- package/admin/Pagination/Pagination.stories.js +30 -0
- package/admin/Pagination/__stories__/Default.d.ts +3 -0
- package/admin/Pagination/__stories__/Default.js +138 -0
- package/admin/Pagination/index.d.ts +20 -0
- package/admin/Pagination/index.js +27 -2
- package/app/Confirmation/Confirmation.stories.d.ts +6 -0
- package/app/Confirmation/Confirmation.stories.js +30 -0
- package/app/Confirmation/__stories__/Default.d.ts +3 -0
- package/app/Confirmation/__stories__/Default.js +28 -0
- package/app/Confirmation/index.d.ts +5 -3
- package/app/Confirmation/index.js +19 -34
- package/app/CopyToClipboard/CopyToClipboard.stories.d.ts +7 -0
- package/app/CopyToClipboard/CopyToClipboard.stories.js +30 -0
- package/app/CopyToClipboard/__stories__/Default.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/Default.js +140 -0
- package/app/CopyToClipboard/index.d.ts +9 -0
- package/app/CopyToClipboard/index.js +69 -0
- package/app/Footer/Footer.stories.d.ts +10 -0
- package/app/Footer/Footer.stories.js +88 -0
- package/app/Footer/__stories__/Default.d.ts +3 -0
- package/app/Footer/__stories__/Default.js +22 -0
- package/app/Footer/__stories__/FooterAllInclusive.d.ts +3 -0
- package/app/Footer/__stories__/FooterAllInclusive.js +48 -0
- package/app/Footer/__stories__/FooterWithLink.d.ts +3 -0
- package/app/Footer/__stories__/FooterWithLink.js +40 -0
- package/app/Footer/__stories__/FooterWithLogo.d.ts +3 -0
- package/app/Footer/__stories__/FooterWithLogo.js +40 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +3 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +50 -0
- package/app/Header/Header.stories.d.ts +6 -6
- package/app/Header/Header.stories.js +59 -64
- package/app/Header/HeaderLogo.d.ts +1 -1
- package/app/Header/HeaderSecondaryLogo.d.ts +3 -0
- package/app/Header/HeaderSecondaryLogo.js +19 -0
- package/app/Header/HeaderSubtitle.d.ts +3 -0
- package/app/Header/HeaderSubtitle.js +19 -0
- package/app/Header/__snapshots__/index.spec.tsx.snap +3 -0
- package/app/Header/__stories__/Default.d.ts +3 -0
- package/app/Header/__stories__/Default.js +31 -0
- package/app/Header/__stories__/WithNavigation.d.ts +3 -0
- package/app/Header/__stories__/WithNavigation.js +39 -0
- package/app/Header/__stories__/WithServiceName.d.ts +3 -0
- package/app/Header/__stories__/WithServiceName.js +33 -0
- package/app/Header/__stories__/WithServiceNameAndLogo.d.ts +3 -0
- package/app/Header/__stories__/WithServiceNameAndLogo.js +38 -0
- package/app/Header/index.d.ts +3 -3
- package/app/Header/index.js +3 -3
- package/app/Header/index.mdx +4 -16
- package/app/Header/index.spec.js +2 -1
- package/app/I18nText.js +0 -2
- package/app/NotFound/NotFound.stories.d.ts +7 -0
- package/app/NotFound/NotFound.stories.js +30 -0
- package/app/NotFound/__stories__/Default.d.ts +3 -0
- package/app/NotFound/__stories__/Default.js +22 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +6 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +30 -0
- package/app/PhaseBannerHeader/__stories__/Default.d.ts +3 -0
- package/app/PhaseBannerHeader/__stories__/Default.js +25 -0
- package/app/{PhaseBannerHeader.d.ts → PhaseBannerHeader/index.d.ts} +0 -0
- package/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.d.ts +7 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.js +30 -0
- package/app/QrCodeScanner/__stories__/Default.d.ts +3 -0
- package/app/QrCodeScanner/__stories__/Default.js +74 -0
- package/app/QrCodeScanner/index.d.ts +1 -3
- package/app/QrCodeScanner/index.js +10 -3
- package/app/index.d.ts +0 -1
- package/app/index.js +0 -13
- package/core/Accordion/Accordion.stories.d.ts +7 -0
- package/core/Accordion/Accordion.stories.js +44 -0
- package/core/Accordion/__stories__/Default.d.ts +3 -0
- package/core/Accordion/__stories__/Default.js +34 -0
- package/core/Accordion/__stories__/WithHints.d.ts +3 -0
- package/core/Accordion/__stories__/WithHints.js +36 -0
- package/core/BackLink/BackLink.stories.d.ts +7 -0
- package/core/BackLink/BackLink.stories.js +30 -0
- package/core/BackLink/__stories__/Default.d.ts +3 -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/Blockquote/Blockquote.stories.d.ts +7 -0
- package/core/Blockquote/Blockquote.stories.js +30 -0
- package/core/Blockquote/__stories__/Default.d.ts +3 -0
- package/core/Blockquote/__stories__/Default.js +22 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.js +30 -0
- package/core/Breadcrumbs/__stories__/Default.d.ts +3 -0
- package/core/Breadcrumbs/__stories__/Default.js +28 -0
- package/core/Breadcrumbs/index.d.ts +2 -0
- package/core/Breadcrumbs/index.js +16 -2
- package/core/Button/Button.mdx +8 -3
- package/core/Button/Button.stories.d.ts +10 -10
- package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -4
- package/core/Button/__stories__/GroupingButtonsAndLinks.js +4 -18
- package/core/Button/__stories__/Primary.d.ts +5 -1
- package/core/Button/__stories__/Primary.js +1 -1
- package/core/Button/__stories__/Secondary.d.ts +5 -1
- package/core/Button/__stories__/Warning.d.ts +2 -1
- package/core/Card/Card.stories.d.ts +14 -0
- package/core/Card/Card.stories.js +128 -0
- package/core/Card/__stories__/Default.d.ts +3 -0
- package/core/Card/__stories__/Default.js +30 -0
- package/core/Card/__stories__/WithClickableContent.d.ts +3 -0
- package/core/Card/__stories__/WithClickableContent.js +34 -0
- package/core/Card/__stories__/WithClickableLink.d.ts +3 -0
- package/core/Card/__stories__/WithClickableLink.js +34 -0
- package/core/Card/__stories__/WithDarkBorder.d.ts +3 -0
- package/core/Card/__stories__/WithDarkBorder.js +33 -0
- package/core/Card/__stories__/WithDarkTopBorder.d.ts +3 -0
- package/core/Card/__stories__/WithDarkTopBorder.js +33 -0
- package/core/Card/__stories__/WithDivider.d.ts +3 -0
- package/core/Card/__stories__/WithDivider.js +32 -0
- package/core/Card/__stories__/WithGrayBorder.d.ts +3 -0
- package/core/Card/__stories__/WithGrayBorder.js +33 -0
- package/core/Card/__stories__/WithGrayTopBorder.d.ts +3 -0
- package/core/Card/__stories__/WithGrayTopBorder.js +33 -0
- package/core/Checkboxes/Checkbox.stories.d.ts +12 -0
- package/core/Checkboxes/Checkbox.stories.js +100 -0
- package/core/Checkboxes/__stories__/ConditionalReveal.d.ts +3 -0
- package/core/Checkboxes/__stories__/ConditionalReveal.js +44 -0
- package/core/Checkboxes/__stories__/Default.d.ts +3 -0
- package/core/Checkboxes/__stories__/Default.js +41 -0
- package/core/Checkboxes/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/Checkboxes/__stories__/MultipleQuestions.js +43 -0
- package/core/Checkboxes/__stories__/NoneAnswer.d.ts +3 -0
- package/core/Checkboxes/__stories__/NoneAnswer.js +43 -0
- package/core/Checkboxes/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/Checkboxes/__stories__/WithErrorMessage.js +44 -0
- package/core/Checkboxes/__stories__/WithHint.d.ts +3 -0
- package/core/Checkboxes/__stories__/WithHint.js +41 -0
- package/core/Checkboxes/index.d.ts +5 -0
- package/core/Checkboxes/index.js +58 -0
- package/core/Confirmation/Confirmation.stories.d.ts +7 -0
- package/core/Confirmation/Confirmation.stories.js +30 -0
- package/core/Confirmation/__stories__/Default.d.ts +3 -0
- package/core/Confirmation/__stories__/Default.js +28 -0
- package/core/Confirmation/index.d.ts +5 -0
- package/core/Confirmation/index.js +58 -0
- package/core/DateInput/DateInput.stories.d.ts +9 -0
- package/core/DateInput/DateInput.stories.js +58 -0
- package/core/DateInput/__stories__/Default.d.ts +3 -0
- package/core/DateInput/__stories__/Default.js +39 -0
- package/core/DateInput/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/DateInput/__stories__/WithErrorMessage.js +48 -0
- package/core/DateInput/__stories__/WithErrorMessageForSingleField.d.ts +3 -0
- package/core/DateInput/__stories__/WithErrorMessageForSingleField.js +46 -0
- package/core/DateInput/index.d.ts +4 -0
- package/core/DateInput/index.js +44 -0
- package/core/Details/Details.stories.d.ts +7 -0
- package/core/Details/Details.stories.js +30 -0
- package/core/Details/__stories__/Default.d.ts +3 -0
- package/core/Details/__stories__/Default.js +28 -0
- package/core/Divider/Divider.stories.d.ts +7 -0
- package/core/Divider/Divider.stories.js +32 -0
- package/core/Divider/__stories__/Default.d.ts +3 -0
- package/core/Divider/__stories__/Default.js +39 -0
- package/core/ErrorMessage/ErrorMessage.stories.d.ts +7 -0
- package/core/ErrorMessage/ErrorMessage.stories.js +30 -0
- package/core/ErrorMessage/__stories__/Default.d.ts +3 -0
- package/core/ErrorMessage/__stories__/Default.js +44 -0
- package/core/ErrorMessage/index.d.ts +3 -0
- package/core/ErrorMessage/index.js +30 -0
- package/core/ErrorSummary/ErrorSummary.stories.d.ts +10 -0
- package/core/ErrorSummary/ErrorSummary.stories.js +72 -0
- package/core/ErrorSummary/__stories__/Default.d.ts +3 -0
- package/core/ErrorSummary/__stories__/Default.js +28 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +3 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +58 -0
- package/core/ErrorSummary/__stories__/LinkedToField.d.ts +3 -0
- package/core/ErrorSummary/__stories__/LinkedToField.js +59 -0
- package/core/ErrorSummary/__stories__/LinkedToInput.d.ts +3 -0
- package/core/ErrorSummary/__stories__/LinkedToInput.js +54 -0
- package/core/Field/index.d.ts +5 -0
- package/core/Field/index.js +58 -0
- package/core/FileUpload/FileUpload.stories.d.ts +8 -0
- package/core/FileUpload/FileUpload.stories.js +44 -0
- package/core/FileUpload/__stories__/Default.d.ts +2 -0
- package/core/FileUpload/__stories__/Default.js +32 -0
- package/core/FileUpload/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/FileUpload/__stories__/WithErrorMessage.js +40 -0
- package/core/Link/Link.stories.d.ts +11 -0
- package/core/Link/Link.stories.js +86 -0
- package/core/Link/__stories__/DarkBackground.d.ts +3 -0
- package/core/Link/__stories__/DarkBackground.js +28 -0
- package/core/Link/__stories__/DarkBackgroundNoUnderline.d.ts +3 -0
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +29 -0
- package/core/Link/__stories__/Default.d.ts +3 -0
- package/core/Link/__stories__/Default.js +24 -0
- package/core/Link/__stories__/NoUnderline.d.ts +3 -0
- package/core/Link/__stories__/NoUnderline.js +25 -0
- package/core/Link/__stories__/OpensInNewTab.d.ts +3 -0
- package/core/Link/__stories__/OpensInNewTab.js +26 -0
- package/core/List/List.stories.d.ts +9 -0
- package/core/List/List.stories.js +72 -0
- package/core/List/__stories__/BulletList.d.ts +3 -0
- package/core/List/__stories__/BulletList.js +30 -0
- package/core/List/__stories__/Default.d.ts +3 -0
- package/core/List/__stories__/Default.js +30 -0
- package/core/List/__stories__/NumberedList.d.ts +3 -0
- package/core/List/__stories__/NumberedList.js +30 -0
- package/core/List/__stories__/WithExtraSpace.d.ts +3 -0
- package/core/List/__stories__/WithExtraSpace.js +30 -0
- package/core/Masthead/Masthead.stories.d.ts +7 -0
- package/core/Masthead/Masthead.stories.js +30 -0
- package/core/Masthead/__stories__/Default.d.ts +3 -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/NotificationBanner/NotificationBanner.stories.d.ts +8 -0
- package/core/NotificationBanner/NotificationBanner.stories.js +44 -0
- package/core/NotificationBanner/__stories__/Default.d.ts +3 -0
- package/core/NotificationBanner/__stories__/Default.js +26 -0
- package/core/NotificationBanner/__stories__/Success.d.ts +3 -0
- package/core/NotificationBanner/__stories__/Success.js +27 -0
- package/core/NotificationBanner/index.d.ts +1 -1
- package/core/NotificationBanner/index.js +6 -3
- package/core/NotificationBanner/index.spec.js +1 -1
- package/core/PhaseBanner/PhaseBanner.stories.d.ts +7 -0
- package/core/PhaseBanner/PhaseBanner.stories.js +30 -0
- package/core/PhaseBanner/__stories__/Default.d.ts +3 -0
- package/core/PhaseBanner/__stories__/Default.js +32 -0
- package/core/PhaseBanner/index.d.ts +6 -0
- package/core/PhaseBanner/index.js +72 -0
- package/core/Radios/Radios.stories.d.ts +13 -0
- package/core/Radios/Radios.stories.js +114 -0
- package/core/Radios/__stories__/ConditionalReveal.d.ts +3 -0
- package/core/Radios/__stories__/ConditionalReveal.js +44 -0
- package/core/Radios/__stories__/Default.d.ts +3 -0
- package/core/Radios/__stories__/Default.js +44 -0
- package/core/Radios/__stories__/Inline.d.ts +3 -0
- package/core/Radios/__stories__/Inline.js +40 -0
- package/core/Radios/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/Radios/__stories__/MultipleQuestions.js +46 -0
- package/core/Radios/__stories__/NoneAnswer.d.ts +3 -0
- package/core/Radios/__stories__/NoneAnswer.js +41 -0
- package/core/Radios/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/Radios/__stories__/WithErrorMessage.js +44 -0
- package/core/Radios/__stories__/WithHints.d.ts +3 -0
- package/core/Radios/__stories__/WithHints.js +40 -0
- package/core/Radios/index.d.ts +5 -0
- package/core/Radios/index.js +58 -0
- package/core/Select/Select.stories.d.ts +8 -0
- package/core/Select/Select.stories.js +44 -0
- package/core/Select/__stories__/Default.d.ts +3 -0
- package/core/Select/__stories__/Default.js +43 -0
- package/core/Select/__stories__/DisabledInput.d.ts +3 -0
- package/core/Select/__stories__/DisabledInput.js +43 -0
- package/core/Select/index.d.ts +4 -0
- package/core/Select/index.js +44 -0
- package/core/SummaryList/SummaryList.stories.d.ts +8 -0
- package/core/SummaryList/SummaryList.stories.js +60 -0
- package/core/SummaryList/__stories__/Default.d.ts +3 -0
- package/core/SummaryList/__stories__/Default.js +28 -0
- package/core/SummaryList/__stories__/SummaryListWithActions.d.ts +3 -0
- package/core/SummaryList/__stories__/SummaryListWithActions.js +44 -0
- package/core/SummaryList/__stories__/SummaryListWithoutBorders.d.ts +3 -0
- package/core/SummaryList/__stories__/SummaryListWithoutBorders.js +30 -0
- package/core/Table/Table.stories.d.ts +17 -0
- package/core/Table/Table.stories.js +186 -0
- package/core/Table/__stories__/DarkVariant.d.ts +3 -0
- package/core/Table/__stories__/DarkVariant.js +24 -0
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +3 -0
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +24 -0
- package/core/Table/__stories__/Default.d.ts +3 -0
- package/core/Table/__stories__/Default.js +22 -0
- package/core/Table/__stories__/DefinedWidth.d.ts +3 -0
- package/core/Table/__stories__/DefinedWidth.js +28 -0
- package/core/Table/__stories__/Densed.d.ts +3 -0
- package/core/Table/__stories__/Densed.js +26 -0
- package/core/Table/__stories__/MultipleProps.d.ts +3 -0
- package/core/Table/__stories__/MultipleProps.js +58 -0
- package/core/Table/__stories__/NoData.d.ts +3 -0
- package/core/Table/__stories__/NoData.js +22 -0
- package/core/Table/__stories__/NumericDataType.d.ts +3 -0
- package/core/Table/__stories__/NumericDataType.js +46 -0
- package/core/Table/__stories__/VerticalBorders.d.ts +3 -0
- package/core/Table/__stories__/VerticalBorders.js +24 -0
- package/core/Table/__stories__/VerticalHeaders.d.ts +3 -0
- package/core/Table/__stories__/VerticalHeaders.js +22 -0
- package/core/Table/__stories__/WithHeader.d.ts +3 -0
- package/core/Table/__stories__/WithHeader.js +67 -0
- package/core/Table/__stories__/WithLoader.d.ts +3 -0
- package/core/Table/__stories__/WithLoader.js +103 -0
- package/core/Table/__stories__/ZebraProp.d.ts +3 -0
- package/core/Table/__stories__/ZebraProp.js +24 -0
- package/core/Tabs/Tabs.stories.d.ts +6 -0
- package/core/Tabs/Tabs.stories.js +30 -0
- package/core/Tabs/__stories__/Default.d.ts +2 -0
- package/core/Tabs/__stories__/Default.js +48 -0
- package/core/Tabs/index.js +21 -1
- package/core/TextArea/TextArea.stories.d.ts +13 -0
- package/core/TextArea/TextArea.stories.js +114 -0
- package/core/TextArea/__stories__/Default.d.ts +3 -0
- package/core/TextArea/__stories__/Default.js +32 -0
- package/core/TextArea/__stories__/DisabledInput.d.ts +3 -0
- package/core/TextArea/__stories__/DisabledInput.js +35 -0
- package/core/TextArea/__stories__/LimitedCharacters.d.ts +3 -0
- package/core/TextArea/__stories__/LimitedCharacters.js +34 -0
- package/core/TextArea/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/TextArea/__stories__/MultipleQuestions.js +30 -0
- package/core/TextArea/__stories__/WithDeclaredRows.d.ts +3 -0
- package/core/TextArea/__stories__/WithDeclaredRows.js +35 -0
- package/core/TextArea/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/TextArea/__stories__/WithErrorMessage.js +39 -0
- package/core/TextArea/__stories__/WithHint.d.ts +3 -0
- package/core/TextArea/__stories__/WithHint.js +34 -0
- package/core/TextArea/index.d.ts +3 -0
- package/core/TextArea/index.js +30 -0
- package/core/TextInput/TextInput.stories.d.ts +14 -0
- package/core/TextInput/TextInput.stories.js +128 -0
- package/core/TextInput/__stories__/AskingForNumbers.d.ts +3 -0
- package/core/TextInput/__stories__/AskingForNumbers.js +36 -0
- package/core/TextInput/__stories__/Default.d.ts +3 -0
- package/core/TextInput/__stories__/Default.js +32 -0
- package/core/TextInput/__stories__/DisabledInput.d.ts +3 -0
- package/core/TextInput/__stories__/DisabledInput.js +35 -0
- package/core/TextInput/__stories__/FixedWidths.d.ts +3 -0
- package/core/TextInput/__stories__/FixedWidths.js +68 -0
- package/core/TextInput/__stories__/FluidWidths.d.ts +3 -0
- package/core/TextInput/__stories__/FluidWidths.js +68 -0
- package/core/TextInput/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/TextInput/__stories__/MultipleQuestions.js +28 -0
- package/core/TextInput/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/TextInput/__stories__/WithErrorMessage.js +39 -0
- package/core/TextInput/__stories__/WithHint.d.ts +3 -0
- package/core/TextInput/__stories__/WithHint.js +34 -0
- package/core/TextInput/index.d.ts +3 -0
- package/core/TextInput/index.js +30 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.d.ts +7 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.js +30 -0
- package/core/VisuallyHidden/__stories__/Default.d.ts +3 -0
- package/core/VisuallyHidden/__stories__/Default.js +26 -0
- package/core/VisuallyHidden/index.d.ts +2 -0
- package/core/VisuallyHidden/index.js +14 -2
- package/core/WarningText/WarningText.stories.d.ts +6 -0
- package/core/WarningText/WarningText.stories.js +30 -0
- package/core/WarningText/__stories__/Default.d.ts +3 -0
- package/core/WarningText/__stories__/Default.js +22 -0
- package/core/index.d.ts +8 -3
- package/core/index.js +78 -22
- package/es/admin/CircularProgress/CircularProgress.stories.js +6 -0
- package/es/admin/CircularProgress/__stories__/Default.js +11 -0
- package/es/{app/CopyToClipboard.js → admin/CopyToClipboard/index.js} +0 -0
- package/es/admin/Drawer/Drawer.stories.js +6 -0
- package/es/admin/Drawer/__stories__/Default.js +83 -0
- package/es/admin/Pagination/Pagination.stories.js +6 -0
- package/es/admin/Pagination/__stories__/Default.js +116 -0
- package/es/admin/Pagination/index.js +17 -0
- package/es/app/Confirmation/Confirmation.stories.js +6 -0
- package/es/app/Confirmation/__stories__/Default.js +9 -0
- package/es/app/Confirmation/index.js +5 -3
- package/es/app/CopyToClipboard/CopyToClipboard.stories.js +6 -0
- package/es/app/CopyToClipboard/__stories__/Default.js +118 -0
- package/{esm/app/CopyToClipboard.js → es/app/CopyToClipboard/index.js} +0 -0
- package/es/app/Footer/Footer.stories.js +11 -0
- package/es/app/Footer/__stories__/Default.js +9 -0
- package/es/app/Footer/__stories__/FooterAllInclusive.js +30 -0
- package/es/app/Footer/__stories__/FooterWithLink.js +23 -0
- package/es/app/Footer/__stories__/FooterWithLogo.js +23 -0
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +32 -0
- package/es/app/Header/Header.stories.js +6 -47
- package/es/app/Header/HeaderSecondaryLogo.js +3 -0
- package/es/app/Header/HeaderSubtitle.js +3 -0
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +3 -0
- package/es/app/Header/__stories__/Default.js +15 -0
- package/es/app/Header/__stories__/WithNavigation.js +20 -0
- package/es/app/Header/__stories__/WithServiceName.js +16 -0
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +20 -0
- package/es/app/Header/index.js +3 -3
- package/es/app/Header/index.mdx +4 -16
- package/es/app/Header/index.spec.js +2 -1
- package/es/app/I18nText.js +0 -2
- package/es/app/NotFound/NotFound.stories.js +6 -0
- package/es/app/NotFound/__stories__/Default.js +9 -0
- package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +6 -0
- package/es/app/PhaseBannerHeader/__stories__/Default.js +12 -0
- package/es/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
- package/es/app/QrCodeScanner/QrCodeScanner.stories.js +6 -0
- package/es/app/QrCodeScanner/__stories__/Default.js +52 -0
- package/es/app/QrCodeScanner/index.js +7 -3
- package/es/app/index.js +0 -1
- package/es/core/Accordion/Accordion.stories.js +7 -0
- package/es/core/Accordion/__stories__/Default.js +12 -0
- package/es/core/Accordion/__stories__/WithHints.js +13 -0
- package/es/core/BackLink/BackLink.stories.js +6 -0
- package/es/core/BackLink/__stories__/Default.js +11 -0
- package/es/core/BackLink/index.js +3 -0
- package/es/core/Blockquote/Blockquote.stories.js +6 -0
- package/es/core/Blockquote/__stories__/Default.js +9 -0
- package/es/core/Breadcrumbs/Breadcrumbs.stories.js +6 -0
- package/es/core/Breadcrumbs/__stories__/Default.js +9 -0
- package/es/core/Breadcrumbs/index.js +3 -1
- package/es/core/Button/Button.mdx +8 -3
- package/es/core/Button/__stories__/GroupingButtonsAndLinks.js +3 -14
- package/es/core/Button/__stories__/Primary.js +1 -1
- package/es/core/Card/Card.stories.js +13 -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 +13 -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/Checkboxes/Checkbox.stories.js +11 -0
- package/es/core/Checkboxes/__stories__/ConditionalReveal.js +22 -0
- package/es/core/Checkboxes/__stories__/Default.js +20 -0
- package/es/core/Checkboxes/__stories__/MultipleQuestions.js +22 -0
- package/es/core/Checkboxes/__stories__/NoneAnswer.js +22 -0
- package/es/core/Checkboxes/__stories__/WithErrorMessage.js +21 -0
- package/es/core/Checkboxes/__stories__/WithHint.js +20 -0
- package/es/core/Checkboxes/index.js +5 -0
- package/es/core/Confirmation/Confirmation.stories.js +6 -0
- package/es/core/Confirmation/__stories__/Default.js +9 -0
- package/es/core/Confirmation/index.js +5 -0
- package/es/core/DateInput/DateInput.stories.js +8 -0
- package/es/core/DateInput/__stories__/Default.js +18 -0
- package/es/core/DateInput/__stories__/WithErrorMessage.js +25 -0
- package/es/core/DateInput/__stories__/WithErrorMessageForSingleField.js +23 -0
- package/es/core/DateInput/index.js +4 -0
- package/es/core/Details/Details.stories.js +6 -0
- package/es/core/Details/__stories__/Default.js +9 -0
- package/es/core/Divider/Divider.stories.js +7 -0
- package/es/core/Divider/__stories__/Default.js +26 -0
- package/es/core/ErrorMessage/ErrorMessage.stories.js +6 -0
- package/es/core/ErrorMessage/__stories__/Default.js +21 -0
- package/es/core/ErrorMessage/index.js +3 -0
- package/es/core/ErrorSummary/ErrorSummary.stories.js +9 -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/Field/index.js +5 -0
- package/es/core/FileUpload/FileUpload.stories.js +7 -0
- package/es/core/FileUpload/__stories__/Default.js +12 -0
- package/es/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/es/core/Link/Link.stories.js +10 -0
- package/es/core/Link/__stories__/DarkBackground.js +13 -0
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +14 -0
- package/es/core/Link/__stories__/Default.js +11 -0
- package/es/core/Link/__stories__/NoUnderline.js +12 -0
- package/es/core/Link/__stories__/OpensInNewTab.js +13 -0
- package/es/core/List/List.stories.js +9 -0
- package/es/core/List/__stories__/BulletList.js +11 -0
- package/es/core/List/__stories__/Default.js +10 -0
- package/es/core/List/__stories__/NumberedList.js +11 -0
- package/es/core/List/__stories__/WithExtraSpace.js +11 -0
- package/es/core/Masthead/Masthead.stories.js +6 -0
- package/es/core/Masthead/__stories__/Default.js +11 -0
- package/es/core/Masthead/index.js +4 -0
- package/es/core/NotificationBanner/NotificationBanner.stories.js +7 -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 +6 -3
- package/es/core/NotificationBanner/index.spec.js +1 -1
- package/es/core/PhaseBanner/PhaseBanner.stories.js +6 -0
- package/es/core/PhaseBanner/__stories__/Default.js +12 -0
- package/es/core/PhaseBanner/index.js +6 -0
- package/es/core/Radios/Radios.stories.js +12 -0
- package/es/core/Radios/__stories__/ConditionalReveal.js +22 -0
- package/es/core/Radios/__stories__/Default.js +23 -0
- package/es/core/Radios/__stories__/Inline.js +19 -0
- package/es/core/Radios/__stories__/MultipleQuestions.js +25 -0
- package/es/core/Radios/__stories__/NoneAnswer.js +21 -0
- package/es/core/Radios/__stories__/WithErrorMessage.js +21 -0
- package/es/core/Radios/__stories__/WithHints.js +19 -0
- package/es/core/Radios/index.js +5 -0
- package/es/core/Select/Select.stories.js +7 -0
- package/es/core/Select/__stories__/Default.js +21 -0
- package/es/core/Select/__stories__/DisabledInput.js +22 -0
- package/es/core/Select/index.js +4 -0
- package/es/core/SummaryList/SummaryList.stories.js +9 -0
- package/es/core/SummaryList/__stories__/Default.js +9 -0
- package/es/core/SummaryList/__stories__/SummaryListWithActions.js +21 -0
- package/es/core/SummaryList/__stories__/SummaryListWithoutBorders.js +11 -0
- package/es/core/Table/Table.stories.js +18 -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__/MultipleProps.js +45 -0
- package/es/core/Table/__stories__/NoData.js +9 -0
- package/es/core/Table/__stories__/NumericDataType.js +33 -0
- package/es/core/Table/__stories__/VerticalBorders.js +11 -0
- package/es/core/Table/__stories__/VerticalHeaders.js +9 -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/Tabs/Tabs.stories.js +6 -0
- package/es/core/Tabs/__stories__/Default.js +28 -0
- package/es/core/Tabs/index.js +22 -2
- package/es/core/TextArea/TextArea.stories.js +12 -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/TextInput/TextInput.stories.js +13 -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/VisuallyHidden/VisuallyHidden.stories.js +6 -0
- package/es/core/VisuallyHidden/__stories__/Default.js +12 -0
- package/es/core/VisuallyHidden/index.js +3 -1
- package/es/core/WarningText/WarningText.stories.js +6 -0
- package/es/core/WarningText/__stories__/Default.js +9 -0
- package/es/core/index.js +9 -4
- package/es/hooks/useTogglableSections.js +7 -1
- package/es/index.js +1 -2
- package/es/layouts/Basic/Basic.stories.js +9 -0
- package/es/layouts/Basic/__stories__/Default.js +10 -0
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +12 -0
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +12 -0
- package/es/layouts/Grid/Grid.stories.js +6 -0
- package/es/layouts/Grid/__stories__/Default.js +58 -0
- package/es/locales/el.js +3 -0
- package/es/locales/en.js +3 -0
- package/es/registry.js +251 -0
- package/es/themes/grnet.js +2 -1
- package/es/typography/Caption/Caption.stories.js +7 -0
- package/es/typography/Caption/__stories__/Default.js +35 -0
- package/es/typography/Caption/__stories__/NestedToTitle.js +15 -0
- package/es/typography/{Caption.js → Caption/index.js} +0 -0
- package/es/typography/Hint/Hint.stories.js +7 -0
- package/es/typography/Hint/__stories__/Default.js +9 -0
- package/es/typography/Hint/__stories__/FontSizes.js +21 -0
- package/es/typography/{Hint.js → Hint/index.js} +0 -0
- package/es/typography/NormalText/NormalText.stories.js +9 -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.js → NormalText/index.js} +0 -0
- package/es/typography/Paragraph/Paragraph.stories.js +10 -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.js → Paragraph/index.js} +0 -0
- package/es/typography/Title/Title.stories.js +6 -0
- package/es/typography/Title/__stories__/Default.js +24 -0
- package/es/typography/{Title.js → Title/index.js} +0 -0
- package/esm/admin/CircularProgress/CircularProgress.stories.js +6 -0
- package/esm/admin/CircularProgress/__stories__/Default.js +11 -0
- package/esm/admin/CopyToClipboard/index.js +45 -0
- package/esm/admin/Drawer/Drawer.stories.js +6 -0
- package/esm/admin/Drawer/__stories__/Default.js +83 -0
- package/esm/admin/Pagination/Pagination.stories.js +6 -0
- package/esm/admin/Pagination/__stories__/Default.js +116 -0
- package/esm/admin/Pagination/index.js +17 -0
- package/esm/app/Confirmation/Confirmation.stories.js +6 -0
- package/esm/app/Confirmation/__stories__/Default.js +9 -0
- package/esm/app/Confirmation/index.js +5 -3
- package/esm/app/CopyToClipboard/CopyToClipboard.stories.js +6 -0
- package/esm/app/CopyToClipboard/__stories__/Default.js +118 -0
- package/esm/app/CopyToClipboard/index.js +45 -0
- package/esm/app/Footer/Footer.stories.js +11 -0
- package/esm/app/Footer/__stories__/Default.js +9 -0
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +30 -0
- package/esm/app/Footer/__stories__/FooterWithLink.js +23 -0
- package/esm/app/Footer/__stories__/FooterWithLogo.js +23 -0
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +32 -0
- package/esm/app/Header/Header.stories.js +6 -47
- package/esm/app/Header/HeaderSecondaryLogo.js +3 -0
- package/esm/app/Header/HeaderSubtitle.js +3 -0
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +3 -0
- package/esm/app/Header/__stories__/Default.js +15 -0
- package/esm/app/Header/__stories__/WithNavigation.js +20 -0
- package/esm/app/Header/__stories__/WithServiceName.js +16 -0
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +20 -0
- package/esm/app/Header/index.js +3 -3
- package/esm/app/Header/index.mdx +4 -16
- package/esm/app/Header/index.spec.js +2 -1
- package/esm/app/I18nText.js +0 -2
- package/esm/app/NotFound/NotFound.stories.js +6 -0
- package/esm/app/NotFound/__stories__/Default.js +9 -0
- package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +6 -0
- package/esm/app/PhaseBannerHeader/__stories__/Default.js +12 -0
- package/esm/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
- package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +6 -0
- package/esm/app/QrCodeScanner/__stories__/Default.js +52 -0
- package/esm/app/QrCodeScanner/index.js +7 -3
- package/esm/app/index.js +0 -1
- package/esm/core/Accordion/Accordion.stories.js +7 -0
- package/esm/core/Accordion/__stories__/Default.js +12 -0
- package/esm/core/Accordion/__stories__/WithHints.js +13 -0
- package/esm/core/BackLink/BackLink.stories.js +6 -0
- package/esm/core/BackLink/__stories__/Default.js +11 -0
- package/esm/core/BackLink/index.js +3 -0
- package/esm/core/Blockquote/Blockquote.stories.js +6 -0
- package/esm/core/Blockquote/__stories__/Default.js +9 -0
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +6 -0
- package/esm/core/Breadcrumbs/__stories__/Default.js +9 -0
- package/esm/core/Breadcrumbs/index.js +3 -1
- package/esm/core/Button/Button.mdx +8 -3
- package/esm/core/Button/__stories__/GroupingButtonsAndLinks.js +3 -14
- package/esm/core/Button/__stories__/Primary.js +1 -1
- package/esm/core/Card/Card.stories.js +13 -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 +13 -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/Checkboxes/Checkbox.stories.js +11 -0
- package/esm/core/Checkboxes/__stories__/ConditionalReveal.js +22 -0
- package/esm/core/Checkboxes/__stories__/Default.js +20 -0
- package/esm/core/Checkboxes/__stories__/MultipleQuestions.js +22 -0
- package/esm/core/Checkboxes/__stories__/NoneAnswer.js +22 -0
- package/esm/core/Checkboxes/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/Checkboxes/__stories__/WithHint.js +20 -0
- package/esm/core/Checkboxes/index.js +5 -0
- package/esm/core/Confirmation/Confirmation.stories.js +6 -0
- package/esm/core/Confirmation/__stories__/Default.js +9 -0
- package/esm/core/Confirmation/index.js +5 -0
- package/esm/core/DateInput/DateInput.stories.js +8 -0
- package/esm/core/DateInput/__stories__/Default.js +18 -0
- package/esm/core/DateInput/__stories__/WithErrorMessage.js +25 -0
- package/esm/core/DateInput/__stories__/WithErrorMessageForSingleField.js +23 -0
- package/esm/core/DateInput/index.js +4 -0
- package/esm/core/Details/Details.stories.js +6 -0
- package/esm/core/Details/__stories__/Default.js +9 -0
- package/esm/core/Divider/Divider.stories.js +7 -0
- package/esm/core/Divider/__stories__/Default.js +26 -0
- package/esm/core/ErrorMessage/ErrorMessage.stories.js +6 -0
- package/esm/core/ErrorMessage/__stories__/Default.js +21 -0
- package/esm/core/ErrorMessage/index.js +3 -0
- package/esm/core/ErrorSummary/ErrorSummary.stories.js +9 -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/Field/index.js +5 -0
- package/esm/core/FileUpload/FileUpload.stories.js +7 -0
- package/esm/core/FileUpload/__stories__/Default.js +12 -0
- package/esm/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/esm/core/Link/Link.stories.js +10 -0
- package/esm/core/Link/__stories__/DarkBackground.js +13 -0
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +14 -0
- package/esm/core/Link/__stories__/Default.js +11 -0
- package/esm/core/Link/__stories__/NoUnderline.js +12 -0
- package/esm/core/Link/__stories__/OpensInNewTab.js +13 -0
- package/esm/core/List/List.stories.js +9 -0
- package/esm/core/List/__stories__/BulletList.js +11 -0
- package/esm/core/List/__stories__/Default.js +10 -0
- package/esm/core/List/__stories__/NumberedList.js +11 -0
- package/esm/core/List/__stories__/WithExtraSpace.js +11 -0
- package/esm/core/Masthead/Masthead.stories.js +6 -0
- package/esm/core/Masthead/__stories__/Default.js +11 -0
- package/esm/core/Masthead/index.js +4 -0
- package/esm/core/NotificationBanner/NotificationBanner.stories.js +7 -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 +6 -3
- package/esm/core/NotificationBanner/index.spec.js +1 -1
- package/esm/core/PhaseBanner/PhaseBanner.stories.js +6 -0
- package/esm/core/PhaseBanner/__stories__/Default.js +12 -0
- package/esm/core/PhaseBanner/index.js +6 -0
- package/esm/core/Radios/Radios.stories.js +12 -0
- package/esm/core/Radios/__stories__/ConditionalReveal.js +22 -0
- package/esm/core/Radios/__stories__/Default.js +23 -0
- package/esm/core/Radios/__stories__/Inline.js +19 -0
- package/esm/core/Radios/__stories__/MultipleQuestions.js +25 -0
- package/esm/core/Radios/__stories__/NoneAnswer.js +21 -0
- package/esm/core/Radios/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/Radios/__stories__/WithHints.js +19 -0
- package/esm/core/Radios/index.js +5 -0
- package/esm/core/Select/Select.stories.js +7 -0
- package/esm/core/Select/__stories__/Default.js +21 -0
- package/esm/core/Select/__stories__/DisabledInput.js +22 -0
- package/esm/core/Select/index.js +4 -0
- package/esm/core/SummaryList/SummaryList.stories.js +9 -0
- package/esm/core/SummaryList/__stories__/Default.js +9 -0
- package/esm/core/SummaryList/__stories__/SummaryListWithActions.js +21 -0
- package/esm/core/SummaryList/__stories__/SummaryListWithoutBorders.js +11 -0
- package/esm/core/Table/Table.stories.js +18 -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__/MultipleProps.js +45 -0
- package/esm/core/Table/__stories__/NoData.js +9 -0
- package/esm/core/Table/__stories__/NumericDataType.js +33 -0
- package/esm/core/Table/__stories__/VerticalBorders.js +11 -0
- package/esm/core/Table/__stories__/VerticalHeaders.js +9 -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/Tabs/Tabs.stories.js +6 -0
- package/esm/core/Tabs/__stories__/Default.js +28 -0
- package/esm/core/Tabs/index.js +22 -2
- package/esm/core/TextArea/TextArea.stories.js +12 -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/TextInput/TextInput.stories.js +13 -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/VisuallyHidden/VisuallyHidden.stories.js +6 -0
- package/esm/core/VisuallyHidden/__stories__/Default.js +12 -0
- package/esm/core/VisuallyHidden/index.js +3 -1
- package/esm/core/WarningText/WarningText.stories.js +6 -0
- package/esm/core/WarningText/__stories__/Default.js +9 -0
- package/esm/core/index.js +9 -4
- package/esm/hooks/useTogglableSections.js +7 -1
- package/esm/index.js +2 -3
- package/esm/layouts/Basic/Basic.stories.js +9 -0
- package/esm/layouts/Basic/__stories__/Default.js +10 -0
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +12 -0
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +12 -0
- package/esm/layouts/Grid/Grid.stories.js +6 -0
- package/esm/layouts/Grid/__stories__/Default.js +58 -0
- package/esm/locales/el.js +3 -0
- package/esm/locales/en.js +3 -0
- package/esm/registry.js +251 -0
- package/esm/themes/grnet.js +2 -1
- package/esm/typography/Caption/Caption.stories.js +7 -0
- package/esm/typography/Caption/__stories__/Default.js +35 -0
- package/esm/typography/Caption/__stories__/NestedToTitle.js +15 -0
- package/esm/typography/{Caption.js → Caption/index.js} +0 -0
- package/esm/typography/Hint/Hint.stories.js +7 -0
- package/esm/typography/Hint/__stories__/Default.js +9 -0
- package/esm/typography/Hint/__stories__/FontSizes.js +21 -0
- package/esm/typography/{Hint.js → Hint/index.js} +0 -0
- package/esm/typography/NormalText/NormalText.stories.js +9 -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.js → NormalText/index.js} +0 -0
- package/esm/typography/Paragraph/Paragraph.stories.js +10 -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.js → Paragraph/index.js} +0 -0
- package/esm/typography/Title/Title.stories.js +6 -0
- package/esm/typography/Title/__stories__/Default.js +24 -0
- package/esm/typography/{Title.js → Title/index.js} +0 -0
- package/hooks/useTogglableSections.d.ts +3 -2
- package/hooks/useTogglableSections.js +7 -1
- package/index.d.ts +0 -1
- package/index.js +0 -13
- package/layouts/Basic/Basic.stories.d.ts +9 -0
- package/layouts/Basic/Basic.stories.js +60 -0
- package/layouts/Basic/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/__stories__/Default.js +30 -0
- package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +3 -0
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +32 -0
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +3 -0
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +32 -0
- package/layouts/Grid/Grid.stories.d.ts +6 -0
- package/layouts/Grid/Grid.stories.js +30 -0
- package/layouts/Grid/__stories__/Default.d.ts +3 -0
- package/layouts/Grid/__stories__/Default.js +71 -0
- package/layouts/Grid/index.d.ts +2 -1
- package/locales/el.d.ts +3 -0
- package/locales/el.js +3 -0
- package/locales/en.d.ts +3 -0
- package/locales/en.js +3 -0
- package/package.json +3 -3
- package/registry.d.ts +121 -0
- package/registry.js +382 -0
- package/themes/grnet.js +2 -1
- package/typography/Caption/Caption.stories.d.ts +8 -0
- package/typography/Caption/Caption.stories.js +44 -0
- package/typography/Caption/__stories__/Default.d.ts +3 -0
- package/typography/Caption/__stories__/Default.js +49 -0
- package/typography/Caption/__stories__/NestedToTitle.d.ts +3 -0
- package/typography/Caption/__stories__/NestedToTitle.js +29 -0
- package/typography/{Caption.d.ts → Caption/index.d.ts} +0 -0
- package/typography/{Caption.js → Caption/index.js} +0 -0
- package/typography/Hint/Hint.stories.d.ts +8 -0
- package/typography/Hint/Hint.stories.js +44 -0
- package/typography/Hint/__stories__/Default.d.ts +3 -0
- package/typography/Hint/__stories__/Default.js +22 -0
- package/typography/Hint/__stories__/FontSizes.d.ts +3 -0
- package/typography/Hint/__stories__/FontSizes.js +34 -0
- package/typography/{Hint.d.ts → Hint/index.d.ts} +0 -0
- package/typography/{Hint.js → Hint/index.js} +0 -0
- package/typography/NormalText/NormalText.stories.d.ts +10 -0
- package/typography/NormalText/NormalText.stories.js +72 -0
- package/typography/NormalText/__stories__/Default.d.ts +3 -0
- package/typography/NormalText/__stories__/Default.js +22 -0
- package/typography/NormalText/__stories__/FontSizes.d.ts +3 -0
- package/typography/NormalText/__stories__/FontSizes.js +62 -0
- package/typography/NormalText/__stories__/FontWeight.d.ts +3 -0
- package/typography/NormalText/__stories__/FontWeight.js +32 -0
- package/typography/NormalText/__stories__/Variants.d.ts +3 -0
- package/typography/NormalText/__stories__/Variants.js +32 -0
- package/typography/{NormalText.d.ts → NormalText/index.d.ts} +0 -0
- package/typography/{NormalText.js → NormalText/index.js} +0 -0
- package/typography/Paragraph/Paragraph.stories.d.ts +11 -0
- package/typography/Paragraph/Paragraph.stories.js +86 -0
- package/typography/Paragraph/__stories__/Default.d.ts +3 -0
- package/typography/Paragraph/__stories__/Default.js +22 -0
- package/typography/Paragraph/__stories__/FontSizes.d.ts +3 -0
- package/typography/Paragraph/__stories__/FontSizes.js +48 -0
- package/typography/Paragraph/__stories__/FontWeight.d.ts +3 -0
- package/typography/Paragraph/__stories__/FontWeight.js +28 -0
- package/typography/Paragraph/__stories__/LeadVariant.d.ts +3 -0
- package/typography/Paragraph/__stories__/LeadVariant.js +24 -0
- package/typography/Paragraph/__stories__/SmallVariant.d.ts +3 -0
- package/typography/Paragraph/__stories__/SmallVariant.js +24 -0
- package/typography/{Paragraph.d.ts → Paragraph/index.d.ts} +0 -0
- package/typography/{Paragraph.js → Paragraph/index.js} +0 -0
- package/typography/Title/Title.stories.d.ts +7 -0
- package/typography/Title/Title.stories.js +30 -0
- package/typography/Title/__stories__/Default.d.ts +3 -0
- package/typography/Title/__stories__/Default.js +37 -0
- package/typography/{Title.d.ts → Title/index.d.ts} +0 -0
- package/typography/{Title.js → Title/index.js} +0 -0
- package/core/PaginationLabel/index.d.ts +0 -21
- package/core/PaginationLabel/index.js +0 -32
- package/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/es/core/PaginationLabel/index.js +0 -18
- package/es/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/esm/core/PaginationLabel/index.js +0 -18
- package/esm/core/ServiceBadge/ServiceBadge.mdx +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import TextInput from "@digigov/ui/core/TextInput";
|
|
3
|
+
import Field from '@digigov/ui/core/Field';
|
|
4
|
+
import Label from '@digigov/react-core/Label';
|
|
5
|
+
import LabelTitle from '@digigov/react-core/LabelTitle';
|
|
6
|
+
|
|
7
|
+
var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
8
|
+
size: "s"
|
|
9
|
+
}, "20 character width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
10
|
+
name: "inputext",
|
|
11
|
+
characterWidth: 20
|
|
12
|
+
})));
|
|
13
|
+
|
|
14
|
+
var _ref2 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
15
|
+
size: "s"
|
|
16
|
+
}, "10 character width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
17
|
+
name: "inputext",
|
|
18
|
+
characterWidth: 10
|
|
19
|
+
})));
|
|
20
|
+
|
|
21
|
+
var _ref3 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
22
|
+
size: "s"
|
|
23
|
+
}, "5 character width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
24
|
+
name: "inputext",
|
|
25
|
+
characterWidth: 5
|
|
26
|
+
})));
|
|
27
|
+
|
|
28
|
+
var _ref4 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
29
|
+
size: "s"
|
|
30
|
+
}, "4 character width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
31
|
+
name: "inputext",
|
|
32
|
+
characterWidth: 4
|
|
33
|
+
})));
|
|
34
|
+
|
|
35
|
+
var _ref5 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
36
|
+
size: "s"
|
|
37
|
+
}, "3 character width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
38
|
+
name: "inputext",
|
|
39
|
+
characterWidth: 3
|
|
40
|
+
})));
|
|
41
|
+
|
|
42
|
+
var _ref6 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
43
|
+
size: "s"
|
|
44
|
+
}, "2 character width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
45
|
+
name: "inputext",
|
|
46
|
+
characterWidth: 2
|
|
47
|
+
})));
|
|
48
|
+
|
|
49
|
+
export var FixedWidths = function FixedWidths() {
|
|
50
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2, _ref3, _ref4, _ref5, _ref6);
|
|
51
|
+
};
|
|
52
|
+
export default FixedWidths;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import TextInput from "@digigov/ui/core/TextInput";
|
|
3
|
+
import Field from '@digigov/ui/core/Field';
|
|
4
|
+
import Label from '@digigov/react-core/Label';
|
|
5
|
+
import LabelTitle from '@digigov/react-core/LabelTitle';
|
|
6
|
+
|
|
7
|
+
var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
8
|
+
size: "s"
|
|
9
|
+
}, "Full width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
10
|
+
name: "inputext",
|
|
11
|
+
cellWidth: "full"
|
|
12
|
+
})));
|
|
13
|
+
|
|
14
|
+
var _ref2 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
15
|
+
size: "s"
|
|
16
|
+
}, "Three-quarters width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
17
|
+
name: "inputext",
|
|
18
|
+
cellWidth: "three-quarters"
|
|
19
|
+
})));
|
|
20
|
+
|
|
21
|
+
var _ref3 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
22
|
+
size: "s"
|
|
23
|
+
}, "Two-thirds width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
24
|
+
name: "inputext",
|
|
25
|
+
cellWidth: "two-thirds"
|
|
26
|
+
})));
|
|
27
|
+
|
|
28
|
+
var _ref4 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
29
|
+
size: "s"
|
|
30
|
+
}, "One-half width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
31
|
+
name: "inputext",
|
|
32
|
+
cellWidth: "one-half"
|
|
33
|
+
})));
|
|
34
|
+
|
|
35
|
+
var _ref5 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
36
|
+
size: "s"
|
|
37
|
+
}, "One-third width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
38
|
+
name: "inputext",
|
|
39
|
+
cellWidth: "one-third"
|
|
40
|
+
})));
|
|
41
|
+
|
|
42
|
+
var _ref6 = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
43
|
+
size: "s"
|
|
44
|
+
}, "One-quarter width"), /*#__PURE__*/React.createElement(TextInput, {
|
|
45
|
+
name: "inputext",
|
|
46
|
+
cellWidth: "one-quarter"
|
|
47
|
+
})));
|
|
48
|
+
|
|
49
|
+
export var FluidWidths = function FluidWidths() {
|
|
50
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2, _ref3, _ref4, _ref5, _ref6);
|
|
51
|
+
};
|
|
52
|
+
export default FluidWidths;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import TextInput from "@digigov/ui/core/TextInput";
|
|
3
|
+
import Field from '@digigov/ui/core/Field';
|
|
4
|
+
import Label from '@digigov/react-core/Label';
|
|
5
|
+
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, "\u038C\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2", /*#__PURE__*/React.createElement(TextInput, {
|
|
7
|
+
name: "inputext"
|
|
8
|
+
})));
|
|
9
|
+
|
|
10
|
+
export var MultipleQuestions = function MultipleQuestions() {
|
|
11
|
+
return _ref;
|
|
12
|
+
};
|
|
13
|
+
export default MultipleQuestions;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import TextInput from "@digigov/ui/core/TextInput";
|
|
3
|
+
import Field from '@digigov/ui/core/Field';
|
|
4
|
+
import Label from '@digigov/react-core/Label';
|
|
5
|
+
import LabelTitle from '@digigov/react-core/LabelTitle';
|
|
6
|
+
import Hint from '@digigov/react-core/Hint';
|
|
7
|
+
import ErrorMessage from "@digigov/react-core/ErrorMessage";
|
|
8
|
+
|
|
9
|
+
var _ref = /*#__PURE__*/React.createElement(Field, {
|
|
10
|
+
error: true
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
12
|
+
size: "m"
|
|
13
|
+
}, "\u038C\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/React.createElement(Hint, null, "\u03A0\u03BF\u03B9\u03BF \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2;"), /*#__PURE__*/React.createElement(ErrorMessage, null, "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF."), /*#__PURE__*/React.createElement(TextInput, {
|
|
14
|
+
error: true,
|
|
15
|
+
name: "inputext"
|
|
16
|
+
})));
|
|
17
|
+
|
|
18
|
+
export var WithErrorMessage = function WithErrorMessage() {
|
|
19
|
+
return _ref;
|
|
20
|
+
};
|
|
21
|
+
export default WithErrorMessage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import TextInput from "@digigov/ui/core/TextInput";
|
|
3
|
+
import Field from '@digigov/ui/core/Field';
|
|
4
|
+
import Label from '@digigov/react-core/Label';
|
|
5
|
+
import LabelTitle from '@digigov/react-core/LabelTitle';
|
|
6
|
+
import Hint from '@digigov/react-core/Hint';
|
|
7
|
+
|
|
8
|
+
var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
9
|
+
size: "m"
|
|
10
|
+
}, "\u038C\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/React.createElement(Hint, null, "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF."), /*#__PURE__*/React.createElement(TextInput, {
|
|
11
|
+
name: "inputext"
|
|
12
|
+
})));
|
|
13
|
+
|
|
14
|
+
export var WithHint = function WithHint() {
|
|
15
|
+
return _ref;
|
|
16
|
+
};
|
|
17
|
+
export default WithHint;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import VisuallyHidden from "@digigov/ui/core/VisuallyHidden";
|
|
3
|
+
import { Paragraph } from "@digigov/ui/typography";
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(Paragraph, null, "The below element is visually hidden.");
|
|
6
|
+
|
|
7
|
+
var _ref2 = /*#__PURE__*/React.createElement(VisuallyHidden, null, "This is a VisuallyHidden");
|
|
8
|
+
|
|
9
|
+
export var Default = function Default() {
|
|
10
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2);
|
|
11
|
+
};
|
|
12
|
+
export default Default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import WarningText from '@digigov/ui/core/WarningText';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(WarningText, null, "\u039C\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03C3\u03B1\u03C2 \u03B5\u03C0\u03B9\u03B2\u03BB\u03B7\u03B8\u03B5\u03AF \u03C0\u03C1\u03CC\u03C3\u03C4\u03B9\u03BC\u03BF \u03AD\u03C9\u03C2 \u03BA\u03B1\u03B9 5.000 \u03B5\u03C5\u03C1\u03CE \u03B5\u03AC\u03BD \u03B4\u03B5\u03BD \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03B5\u03AF\u03C4\u03B5.");
|
|
5
|
+
|
|
6
|
+
export var Default = function Default() {
|
|
7
|
+
return _ref;
|
|
8
|
+
};
|
|
9
|
+
export default Default;
|
package/esm/core/index.js
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
export { default as Button } from '@digigov/ui/core/Button';
|
|
2
|
+
export * from '@digigov/ui/core/BackLink';
|
|
2
3
|
export * from '@digigov/ui/core/Button';
|
|
3
4
|
export * from '@digigov/ui/core/Accordion';
|
|
4
5
|
export * from '@digigov/ui/core/Blockquote';
|
|
5
6
|
export * from '@digigov/ui/core/Breadcrumbs';
|
|
6
7
|
export * from '@digigov/ui/core/Card';
|
|
8
|
+
export * from '@digigov/ui/core/Confirmation';
|
|
7
9
|
export * from '@digigov/ui/core/Details';
|
|
8
10
|
export * from '@digigov/ui/core/Divider';
|
|
9
11
|
export * from '@digigov/ui/core/ErrorSummary';
|
|
12
|
+
export * from '@digigov/ui/core/FileUpload';
|
|
10
13
|
export * from '@digigov/ui/core/Hidden';
|
|
11
14
|
export * from '@digigov/ui/core/Link';
|
|
12
15
|
export * from '@digigov/ui/core/List';
|
|
13
16
|
export * from '@digigov/ui/core/NavList';
|
|
14
|
-
export * from '@digigov/ui/core/
|
|
17
|
+
export * from '@digigov/ui/core/NavList';
|
|
18
|
+
export * from '@digigov/ui/core/PhaseBanner';
|
|
15
19
|
export * from '@digigov/ui/core/NotificationBanner';
|
|
16
20
|
export * from '@digigov/ui/core/SummaryList';
|
|
21
|
+
export * from '@digigov/ui/core/ServiceBadge';
|
|
17
22
|
export * from '@digigov/ui/core/Table';
|
|
18
23
|
export * from '@digigov/ui/core/Tabs';
|
|
24
|
+
export * from '@digigov/ui/core/TextArea';
|
|
25
|
+
export * from '@digigov/ui/core/TextInput';
|
|
19
26
|
export * from '@digigov/ui/core/VisuallyHidden';
|
|
20
27
|
export { default as WarningText } from '@digigov/ui/core/WarningText';
|
|
21
|
-
export * from '@digigov/ui/core/
|
|
22
|
-
export * from '@digigov/ui/core/SvgIcon';
|
|
23
|
-
export * from '@digigov/ui/core/FileUpload';
|
|
28
|
+
export * from '@digigov/ui/core/SvgIcon';
|
|
@@ -10,7 +10,8 @@ export function useTogglableSections(_ref) {
|
|
|
10
10
|
onToggleProperty = _ref.onToggleProperty,
|
|
11
11
|
initial = _ref.initial,
|
|
12
12
|
firstOpen = _ref.firstOpen,
|
|
13
|
-
ariaNavigation = _ref.ariaNavigation
|
|
13
|
+
ariaNavigation = _ref.ariaNavigation,
|
|
14
|
+
toggleHook = _ref.toggleHook;
|
|
14
15
|
|
|
15
16
|
var _useState = useState(initial || {}),
|
|
16
17
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -32,6 +33,11 @@ export function useTogglableSections(_ref) {
|
|
|
32
33
|
}, []);
|
|
33
34
|
var toggle = useCallback(function (e) {
|
|
34
35
|
var key = e.currentTarget.getAttribute('aria-controls');
|
|
36
|
+
|
|
37
|
+
if (toggleHook) {
|
|
38
|
+
toggleHook(key);
|
|
39
|
+
}
|
|
40
|
+
|
|
35
41
|
e.preventDefault();
|
|
36
42
|
|
|
37
43
|
if (singleOpen) {
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Digigov v0.
|
|
1
|
+
/** @license Digigov v0.21.2
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the BSD-2-Clause license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -7,5 +7,4 @@ export * from '@digigov/ui/core';
|
|
|
7
7
|
export * from '@digigov/ui/layouts';
|
|
8
8
|
export * from '@digigov/ui/typography';
|
|
9
9
|
export * from '@digigov/ui/app';
|
|
10
|
-
export * from '@digigov/ui/govgr';
|
|
11
|
-
export * from '@digigov/ui/admin';
|
|
10
|
+
export * from '@digigov/ui/govgr';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* eslint-disable digigov/no-relative-imports */
|
|
2
|
+
import Basic from '@digigov/ui/layouts/Basic';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Digigov UI/layouts/Basic',
|
|
5
|
+
component: Basic
|
|
6
|
+
};
|
|
7
|
+
export * from './__stories__/Default';
|
|
8
|
+
export * from './__stories__/TwoThirdsOneThirdColumns';
|
|
9
|
+
export * from './__stories__/MultipleRowsLayout';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Layout, { Content, Main } from '@digigov/ui/layouts/Basic';
|
|
3
|
+
import { Title, Paragraph } from '@digigov/ui/typography';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(Layout, null, /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Title, null, "Two-thirds column"), /*#__PURE__*/React.createElement(Paragraph, null, "This is a paragraph inside a two-thirds wide column"))));
|
|
6
|
+
|
|
7
|
+
export var TwoThirdsColumn = function TwoThirdsColumn() {
|
|
8
|
+
return _ref;
|
|
9
|
+
};
|
|
10
|
+
export default TwoThirdsColumn;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Layout, { Content, Main, Side } from '@digigov/ui/layouts/Basic';
|
|
3
|
+
import { Title, Paragraph } from '@digigov/ui/typography';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(Layout, null, /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Title, null, "Two-thirds column"), /*#__PURE__*/React.createElement(Paragraph, null, "This is a paragraph inside a two-thirds wide column"))), /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Title, null, "Two-thirds column"), /*#__PURE__*/React.createElement(Paragraph, null, "This is a paragraph inside a two-thirds wide column")), /*#__PURE__*/React.createElement(Side, null, /*#__PURE__*/React.createElement(Title, {
|
|
6
|
+
size: "md"
|
|
7
|
+
}, "One-third-column"), /*#__PURE__*/React.createElement(Paragraph, null, "This is a paragraph inside a one-third wide column"))));
|
|
8
|
+
|
|
9
|
+
export var MultipleRowsLayout = function MultipleRowsLayout() {
|
|
10
|
+
return _ref;
|
|
11
|
+
};
|
|
12
|
+
export default MultipleRowsLayout;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Layout, { Content, Main, Side } from '@digigov/ui/layouts/Basic';
|
|
3
|
+
import { Title, Paragraph } from '@digigov/ui/typography';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(Layout, null, /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Title, null, "Two-thirds column"), /*#__PURE__*/React.createElement(Paragraph, null, "This is a paragraph inside a two-thirds wide column")), /*#__PURE__*/React.createElement(Side, null, /*#__PURE__*/React.createElement(Title, {
|
|
6
|
+
size: "md"
|
|
7
|
+
}, "One-third-column"), /*#__PURE__*/React.createElement(Paragraph, null, "This is a paragraph inside a one-third wide column"))));
|
|
8
|
+
|
|
9
|
+
export var TwoThirdsOneThirdColumns = function TwoThirdsOneThirdColumns() {
|
|
10
|
+
return _ref;
|
|
11
|
+
};
|
|
12
|
+
export default TwoThirdsOneThirdColumns;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Grid from '@digigov/react-core/Grid';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement("div", {
|
|
5
|
+
className: "govgr-btn govgr-btn-primary"
|
|
6
|
+
}, "lalal");
|
|
7
|
+
|
|
8
|
+
var _ref2 = /*#__PURE__*/React.createElement(Grid, {
|
|
9
|
+
container: true,
|
|
10
|
+
spacing: 4
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
12
|
+
xs: 12,
|
|
13
|
+
sm: 8,
|
|
14
|
+
md: 6,
|
|
15
|
+
lg: 4,
|
|
16
|
+
xl: 2,
|
|
17
|
+
className: "border border-black"
|
|
18
|
+
}, "1"), /*#__PURE__*/React.createElement(Grid, {
|
|
19
|
+
xs: 12,
|
|
20
|
+
sm: 4,
|
|
21
|
+
md: 6,
|
|
22
|
+
lg: 4,
|
|
23
|
+
xl: 2,
|
|
24
|
+
className: "border border-black"
|
|
25
|
+
}, "1"), /*#__PURE__*/React.createElement(Grid, {
|
|
26
|
+
xs: 12,
|
|
27
|
+
sm: 8,
|
|
28
|
+
md: 6,
|
|
29
|
+
lg: 4,
|
|
30
|
+
xl: 2,
|
|
31
|
+
className: "border border-black"
|
|
32
|
+
}, "1"), /*#__PURE__*/React.createElement(Grid, {
|
|
33
|
+
xs: 12,
|
|
34
|
+
sm: 4,
|
|
35
|
+
md: 6,
|
|
36
|
+
lg: 4,
|
|
37
|
+
xl: 2,
|
|
38
|
+
className: "border border-black"
|
|
39
|
+
}, "1"), /*#__PURE__*/React.createElement(Grid, {
|
|
40
|
+
xs: 12,
|
|
41
|
+
sm: 8,
|
|
42
|
+
md: 6,
|
|
43
|
+
lg: 4,
|
|
44
|
+
xl: 2,
|
|
45
|
+
className: "border border-black"
|
|
46
|
+
}, "1"), /*#__PURE__*/React.createElement(Grid, {
|
|
47
|
+
xs: 12,
|
|
48
|
+
sm: 4,
|
|
49
|
+
md: 6,
|
|
50
|
+
lg: 4,
|
|
51
|
+
xl: 2,
|
|
52
|
+
className: "border border-black"
|
|
53
|
+
}, "1"));
|
|
54
|
+
|
|
55
|
+
export var Default = function Default() {
|
|
56
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2);
|
|
57
|
+
};
|
|
58
|
+
export default Default;
|
package/esm/locales/el.js
CHANGED
|
@@ -14,6 +14,8 @@ export default {
|
|
|
14
14
|
afm: 'Ο Α.Φ.Μ που πληκτρολογήσατε είναι λανθασμένος.',
|
|
15
15
|
file_size: 'Το μέγεθος του αρχείου είναι μεγαλύτερο απο το επιτρεπόμενο.',
|
|
16
16
|
mobile_phone: 'Συμπληρώστε έναν έγκυρο αριθμό κινητού τηλεφώνου.',
|
|
17
|
+
phone_number: 'Συμπληρώστε έναν έγκυρο αριθμό τηλεφώνου.',
|
|
18
|
+
landline: 'Συμπληρώστε έναν έγκυρο αριθμό σταθερού τηλεφώνου.',
|
|
17
19
|
uuid4: 'Ο κωδικός επιβεβαίωσης δεν είναι έγκυρος.',
|
|
18
20
|
iban: 'Συμπληρώστε έναν έγκυρο αριθμό IBAN',
|
|
19
21
|
postalCode: 'Συμπληρώστε έναν έγκυρο αριθμό ταχυδρομικού κώδικα.',
|
|
@@ -39,6 +41,7 @@ export default {
|
|
|
39
41
|
footer: {
|
|
40
42
|
created_by: 'Υλοποίηση από το',
|
|
41
43
|
grnet: 'ΕΔΥΤΕ',
|
|
44
|
+
created_for: 'για το',
|
|
42
45
|
mindigital: 'Υπουργείο Ψηφιακής Διακυβέρνησης',
|
|
43
46
|
using: 'με χρήση',
|
|
44
47
|
open_source: 'Ανοιχτού Λογισμικού',
|
package/esm/locales/en.js
CHANGED
|
@@ -14,6 +14,8 @@ export default {
|
|
|
14
14
|
afm: 'The VAT number you entered is incorrect.',
|
|
15
15
|
file_size: 'File size is larger than allowed.',
|
|
16
16
|
mobile_phone: 'Fill in a valid mobile phone number.',
|
|
17
|
+
landline: 'Fill in a valid landline phone number.',
|
|
18
|
+
phone_number: 'Fill in a valid phone number.',
|
|
17
19
|
uuid4: 'Confirmation code is invalid.',
|
|
18
20
|
iban: 'Fill in a valid IBAN number',
|
|
19
21
|
postalCode: 'Fill in a valid postal code number.',
|
|
@@ -39,6 +41,7 @@ export default {
|
|
|
39
41
|
footer: {
|
|
40
42
|
created_by: 'Created by',
|
|
41
43
|
grnet: 'GRNET',
|
|
44
|
+
created_for: 'for the',
|
|
42
45
|
mindigital: 'Ministry of Digital Governance',
|
|
43
46
|
using: 'using',
|
|
44
47
|
open_source: 'Open Source Software',
|