@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,10 @@
|
|
|
1
|
+
import Paragraph from "@digigov/ui/typography/Paragraph";
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Digigov UI/typography/Paragraph',
|
|
4
|
+
component: Paragraph
|
|
5
|
+
};
|
|
6
|
+
export * from './__stories__/Default';
|
|
7
|
+
export * from './__stories__/LeadVariant';
|
|
8
|
+
export * from './__stories__/SmallVariant';
|
|
9
|
+
export * from './__stories__/FontSizes';
|
|
10
|
+
export * from './__stories__/FontWeight';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Paragraph from "@digigov/ui/typography/Paragraph";
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Paragraph, {
|
|
5
|
+
fontSize: "14"
|
|
6
|
+
}, " govgr-!-font-size-14 ");
|
|
7
|
+
|
|
8
|
+
var _ref2 = /*#__PURE__*/React.createElement(Paragraph, {
|
|
9
|
+
fontSize: "16"
|
|
10
|
+
}, " govgr-!-font-size-16 ");
|
|
11
|
+
|
|
12
|
+
var _ref3 = /*#__PURE__*/React.createElement(Paragraph, {
|
|
13
|
+
fontSize: "19"
|
|
14
|
+
}, " govgr-!-font-size-19 ");
|
|
15
|
+
|
|
16
|
+
var _ref4 = /*#__PURE__*/React.createElement(Paragraph, {
|
|
17
|
+
fontSize: "24"
|
|
18
|
+
}, " govgr-!-font-size-24 ");
|
|
19
|
+
|
|
20
|
+
var _ref5 = /*#__PURE__*/React.createElement(Paragraph, {
|
|
21
|
+
fontSize: "30"
|
|
22
|
+
}, " govgr-!-font-size-30 ");
|
|
23
|
+
|
|
24
|
+
var _ref6 = /*#__PURE__*/React.createElement(Paragraph, {
|
|
25
|
+
fontSize: "48"
|
|
26
|
+
}, " govgr-!-font-size-48 ");
|
|
27
|
+
|
|
28
|
+
var _ref7 = /*#__PURE__*/React.createElement(Paragraph, {
|
|
29
|
+
fontSize: "72"
|
|
30
|
+
}, " govgr-!-font-size-72 ");
|
|
31
|
+
|
|
32
|
+
export var FontSizes = function FontSizes() {
|
|
33
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7);
|
|
34
|
+
};
|
|
35
|
+
export default FontSizes;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Paragraph from "@digigov/ui/typography/Paragraph";
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Paragraph, {
|
|
5
|
+
fontWeight: "regular"
|
|
6
|
+
}, " govgr-!-font-weight-regular ");
|
|
7
|
+
|
|
8
|
+
var _ref2 = /*#__PURE__*/React.createElement(Paragraph, {
|
|
9
|
+
fontWeight: "bold"
|
|
10
|
+
}, " govgr-!-font-weight-bold ");
|
|
11
|
+
|
|
12
|
+
export var fontWeight = function fontWeight() {
|
|
13
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2);
|
|
14
|
+
};
|
|
15
|
+
export default fontWeight;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Paragraph from "@digigov/ui/typography/Paragraph";
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Paragraph, {
|
|
5
|
+
variant: "lead"
|
|
6
|
+
}, "govgr-body");
|
|
7
|
+
|
|
8
|
+
export var LeadVariant = function LeadVariant() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default LeadVariant;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Paragraph from "@digigov/ui/typography/Paragraph";
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Paragraph, {
|
|
5
|
+
variant: "small"
|
|
6
|
+
}, "govgr-body");
|
|
7
|
+
|
|
8
|
+
export var SmallVariant = function SmallVariant() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default SmallVariant;
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Title from "@digigov/ui/typography/Title";
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Title, null, " govgr-heading-xl ");
|
|
5
|
+
|
|
6
|
+
var _ref2 = /*#__PURE__*/React.createElement(Title, {
|
|
7
|
+
size: "lg",
|
|
8
|
+
element: "h2"
|
|
9
|
+
}, " govgr-heading-lg ");
|
|
10
|
+
|
|
11
|
+
var _ref3 = /*#__PURE__*/React.createElement(Title, {
|
|
12
|
+
size: "md",
|
|
13
|
+
element: "h3"
|
|
14
|
+
}, " govgr-heading-md ");
|
|
15
|
+
|
|
16
|
+
var _ref4 = /*#__PURE__*/React.createElement(Title, {
|
|
17
|
+
size: "sm",
|
|
18
|
+
element: "h4"
|
|
19
|
+
}, " govgr-heading-sm ");
|
|
20
|
+
|
|
21
|
+
export var Default = function Default() {
|
|
22
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2, _ref3, _ref4);
|
|
23
|
+
};
|
|
24
|
+
export default Default;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FullPageBackground from '@digigov/ui/admin/FullPageBackground';
|
|
3
|
+
import LoaderContainer from '@digigov/ui/admin/LoaderContainer';
|
|
4
|
+
import CircularProgress from '@digigov/ui/admin/CircularProgress';
|
|
5
|
+
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(FullPageBackground, null, /*#__PURE__*/React.createElement(LoaderContainer, null, /*#__PURE__*/React.createElement(CircularProgress, null)));
|
|
7
|
+
|
|
8
|
+
export var Default = function Default() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default Default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState, useEffect } from 'react';
|
|
3
|
+
import CopyToClipboardContainer from '@digigov/react-extensions/admin/CopyToClipboardContainer';
|
|
4
|
+
import CopyToClipboardMessage from '@digigov/react-extensions/admin/CopyToClipboardMessage';
|
|
5
|
+
import NormalText from '@digigov/ui/typography/NormalText';
|
|
6
|
+
import { useTranslation } from '@digigov/ui/app';
|
|
7
|
+
export var CopyToClipboard = /*#__PURE__*/React.forwardRef(function CopyToClipboard(_ref, ref) {
|
|
8
|
+
var text = _ref.text,
|
|
9
|
+
_ref$variant = _ref.variant,
|
|
10
|
+
variant = _ref$variant === void 0 ? 'tooltip' : _ref$variant,
|
|
11
|
+
message = _ref.message,
|
|
12
|
+
children = _ref.children;
|
|
13
|
+
|
|
14
|
+
var _useState = useState(false),
|
|
15
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
+
enabled = _useState2[0],
|
|
17
|
+
setEnabled = _useState2[1];
|
|
18
|
+
|
|
19
|
+
var _useTranslation = useTranslation(),
|
|
20
|
+
t = _useTranslation.t;
|
|
21
|
+
|
|
22
|
+
useEffect(function () {
|
|
23
|
+
var timeout = setTimeout(function () {
|
|
24
|
+
if (enabled) setEnabled(false);
|
|
25
|
+
}, 3000);
|
|
26
|
+
return function () {
|
|
27
|
+
return clearTimeout(timeout);
|
|
28
|
+
};
|
|
29
|
+
}, [enabled]);
|
|
30
|
+
|
|
31
|
+
function copyToClipboard() {
|
|
32
|
+
navigator.clipboard.writeText(text);
|
|
33
|
+
setEnabled(true);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return /*#__PURE__*/React.createElement(CopyToClipboardContainer, {
|
|
37
|
+
onClick: copyToClipboard,
|
|
38
|
+
variant: variant,
|
|
39
|
+
ref: ref
|
|
40
|
+
}, children, enabled && /*#__PURE__*/React.createElement(CopyToClipboardMessage, {
|
|
41
|
+
variant: variant,
|
|
42
|
+
enabled: enabled
|
|
43
|
+
}, /*#__PURE__*/React.createElement(NormalText, null, message || t('copy-to-clipboard.message'))));
|
|
44
|
+
});
|
|
45
|
+
export default CopyToClipboard;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import Drawer from '@digigov/ui/admin/Drawer';
|
|
4
|
+
import { List, ListItem, BurgerIcon } from '@digigov/react-core';
|
|
5
|
+
import { Button, Title } from '@digigov/ui';
|
|
6
|
+
import { AdminAside, AdminContainer, AdminLayout, AdminMain, AdminTopSection, AdminHeader, AdminHeaderSection, DrawerHeading } from '@digigov/react-extensions/admin/';
|
|
7
|
+
import { GovGRLogo } from '@digigov/react-core';
|
|
8
|
+
import { Card, CardHeading, CardText } from '@digigov/react-core';
|
|
9
|
+
import Grid from '@digigov/react-core/Grid';
|
|
10
|
+
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
11
|
+
|
|
12
|
+
var _ref = /*#__PURE__*/React.createElement(GovGRLogo, null);
|
|
13
|
+
|
|
14
|
+
var _ref2 = /*#__PURE__*/React.createElement(BurgerIcon, null);
|
|
15
|
+
|
|
16
|
+
var _ref3 = /*#__PURE__*/React.createElement(AdminTopSection, null);
|
|
17
|
+
|
|
18
|
+
var _ref4 = /*#__PURE__*/React.createElement(Title, {
|
|
19
|
+
size: "md"
|
|
20
|
+
}, "Menu");
|
|
21
|
+
|
|
22
|
+
var _ref5 = /*#__PURE__*/React.createElement(List, {
|
|
23
|
+
spaced: true
|
|
24
|
+
}, /*#__PURE__*/React.createElement(ListItem, null, "Menu option 1"), /*#__PURE__*/React.createElement(ListItem, null, "Menu option 2"));
|
|
25
|
+
|
|
26
|
+
var _ref6 = /*#__PURE__*/React.createElement(AdminMain, null, /*#__PURE__*/React.createElement(Grid, {
|
|
27
|
+
container: true,
|
|
28
|
+
spacing: 4
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
30
|
+
item: true,
|
|
31
|
+
xs: 12,
|
|
32
|
+
lg: 6
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeading, null, "This is a Card"), /*#__PURE__*/React.createElement(CardText, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))), /*#__PURE__*/React.createElement(Grid, {
|
|
34
|
+
item: true,
|
|
35
|
+
xs: 12,
|
|
36
|
+
lg: 6
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeading, null, "This is a Card"), /*#__PURE__*/React.createElement(CardText, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))), /*#__PURE__*/React.createElement(Grid, {
|
|
38
|
+
item: true,
|
|
39
|
+
xs: 12,
|
|
40
|
+
lg: 6
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeading, null, "This is a Card"), /*#__PURE__*/React.createElement(CardText, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))), /*#__PURE__*/React.createElement(Grid, {
|
|
42
|
+
item: true,
|
|
43
|
+
xs: 12,
|
|
44
|
+
lg: 6
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeading, null, "This is a Card"), /*#__PURE__*/React.createElement(CardText, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")))));
|
|
46
|
+
|
|
47
|
+
var _ref7 = /*#__PURE__*/React.createElement(GovGRFooter, null);
|
|
48
|
+
|
|
49
|
+
export var Default = function Default() {
|
|
50
|
+
function useDrawer() {
|
|
51
|
+
var _useState = useState(true),
|
|
52
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
53
|
+
open = _useState2[0],
|
|
54
|
+
setOpen = _useState2[1];
|
|
55
|
+
|
|
56
|
+
function toggleDrawer() {
|
|
57
|
+
setOpen(!open);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return [open, toggleDrawer];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var _useDrawer = useDrawer(),
|
|
64
|
+
_useDrawer2 = _slicedToArray(_useDrawer, 2),
|
|
65
|
+
open = _useDrawer2[0],
|
|
66
|
+
toggleDrawer = _useDrawer2[1];
|
|
67
|
+
|
|
68
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AdminLayout, null, /*#__PURE__*/React.createElement(AdminHeader, null, /*#__PURE__*/React.createElement(AdminHeaderSection, null, _ref, /*#__PURE__*/React.createElement(Button, {
|
|
69
|
+
className: "govgr-drawer__burger-icon",
|
|
70
|
+
onClick: function onClick() {
|
|
71
|
+
return toggleDrawer();
|
|
72
|
+
},
|
|
73
|
+
color: "secondary"
|
|
74
|
+
}, _ref2))), /*#__PURE__*/React.createElement(AdminContainer, null, _ref3, /*#__PURE__*/React.createElement(AdminAside, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
75
|
+
direction: "left",
|
|
76
|
+
open: open
|
|
77
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, {
|
|
78
|
+
onClick: function onClick() {
|
|
79
|
+
return toggleDrawer();
|
|
80
|
+
}
|
|
81
|
+
}, _ref4), _ref5)), _ref6), _ref7));
|
|
82
|
+
};
|
|
83
|
+
export default Default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Pagination, { PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
|
|
3
|
+
import ArrowIcon from '@digigov/react-core/ArrowIcon';
|
|
4
|
+
import Link from '@digigov/ui/core/Link';
|
|
5
|
+
import Divider from '@digigov/ui/core/Divider';
|
|
6
|
+
|
|
7
|
+
var _ref = /*#__PURE__*/React.createElement("div", {
|
|
8
|
+
className: "example"
|
|
9
|
+
}, /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
10
|
+
start: 10,
|
|
11
|
+
end: 20,
|
|
12
|
+
total: 10000
|
|
13
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
14
|
+
direction: "left"
|
|
15
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
16
|
+
href: "/page1"
|
|
17
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
18
|
+
currentPage: true
|
|
19
|
+
}, "2"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
20
|
+
href: "/page3"
|
|
21
|
+
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
22
|
+
variant: "dots"
|
|
23
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
24
|
+
href: "/page5"
|
|
25
|
+
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
26
|
+
href: "/page6"
|
|
27
|
+
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
28
|
+
href: "/page7"
|
|
29
|
+
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
30
|
+
direction: "right"
|
|
31
|
+
}))))), /*#__PURE__*/React.createElement(Divider, {
|
|
32
|
+
visible: true,
|
|
33
|
+
size: "l"
|
|
34
|
+
}), /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
35
|
+
start: 10,
|
|
36
|
+
end: 20,
|
|
37
|
+
total: 10000
|
|
38
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
39
|
+
inactive: true
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
41
|
+
direction: "left"
|
|
42
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
43
|
+
currentPage: true
|
|
44
|
+
}, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
45
|
+
href: "/page2"
|
|
46
|
+
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
47
|
+
href: "/page3"
|
|
48
|
+
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
49
|
+
variant: "dots"
|
|
50
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
51
|
+
href: "/page5"
|
|
52
|
+
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
53
|
+
href: "/page6"
|
|
54
|
+
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
55
|
+
href: "/page7"
|
|
56
|
+
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
57
|
+
direction: "right"
|
|
58
|
+
}))))), /*#__PURE__*/React.createElement(Divider, {
|
|
59
|
+
visible: true,
|
|
60
|
+
size: "l"
|
|
61
|
+
}), /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
62
|
+
start: 10,
|
|
63
|
+
end: 20,
|
|
64
|
+
total: 10000
|
|
65
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
66
|
+
direction: "left"
|
|
67
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
68
|
+
href: "/page1"
|
|
69
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
70
|
+
href: "/page3"
|
|
71
|
+
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
72
|
+
variant: "dots"
|
|
73
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
74
|
+
href: "/page5"
|
|
75
|
+
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
76
|
+
href: "/page6"
|
|
77
|
+
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
78
|
+
currentPage: true
|
|
79
|
+
}, "7"), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
80
|
+
inactive: true
|
|
81
|
+
}, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
82
|
+
direction: "right"
|
|
83
|
+
}))))), /*#__PURE__*/React.createElement(Divider, {
|
|
84
|
+
visible: true,
|
|
85
|
+
size: "l"
|
|
86
|
+
}), /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
87
|
+
start: 10,
|
|
88
|
+
end: 20,
|
|
89
|
+
total: 10000
|
|
90
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
91
|
+
direction: "left"
|
|
92
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
93
|
+
href: "/page1"
|
|
94
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
95
|
+
variant: "dots"
|
|
96
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
97
|
+
href: "/page7"
|
|
98
|
+
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
99
|
+
currentPage: true
|
|
100
|
+
}, "8"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
101
|
+
href: "/page9"
|
|
102
|
+
}, "9")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
103
|
+
variant: "dots"
|
|
104
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
105
|
+
href: "/page20"
|
|
106
|
+
}, "20")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
107
|
+
direction: "right"
|
|
108
|
+
}))))), /*#__PURE__*/React.createElement(Divider, {
|
|
109
|
+
visible: true,
|
|
110
|
+
size: "l"
|
|
111
|
+
}));
|
|
112
|
+
|
|
113
|
+
export var Default = function Default() {
|
|
114
|
+
return _ref;
|
|
115
|
+
};
|
|
116
|
+
export default Default;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CorePaginationLabel from '@digigov/react-extensions/admin/PaginationLabel';
|
|
3
|
+
import { I18nText } from '@digigov/ui/app/I18nText';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* PaginationLabel component is used for placing the pagination results label.
|
|
7
|
+
*/
|
|
8
|
+
export var PaginationLabel = /*#__PURE__*/React.forwardRef(function PaginationLabel(_ref, ref) {
|
|
9
|
+
var start = _ref.start,
|
|
10
|
+
end = _ref.end,
|
|
11
|
+
total = _ref.total;
|
|
12
|
+
return /*#__PURE__*/React.createElement(CorePaginationLabel, {
|
|
13
|
+
ref: ref
|
|
14
|
+
}, /*#__PURE__*/React.createElement(I18nText, {
|
|
15
|
+
i18nKey: "pagination.label"
|
|
16
|
+
}, "Showing ", /*#__PURE__*/React.createElement("b", null, start), " to ", /*#__PURE__*/React.createElement("b", null, end), " of ", /*#__PURE__*/React.createElement("b", null, total), " results."));
|
|
17
|
+
});
|
|
1
18
|
export * from '@digigov/react-extensions/admin/Pagination';
|
|
2
19
|
export * from '@digigov/react-extensions/admin/PaginationList';
|
|
3
20
|
export * from '@digigov/react-extensions/admin/PaginationListItem';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Confirmation, { ConfirmationTitle, ConfirmationBody } from '@digigov/ui/app/Confirmation';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Confirmation, null, /*#__PURE__*/React.createElement(ConfirmationTitle, null, "\u0397 \u03C6\u03CC\u03C1\u03BC\u03B1 \u03C5\u03C0\u03BF\u03B2\u03BB\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2"), /*#__PURE__*/React.createElement(ConfirmationBody, null, "\u039F \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03B5\u03B3\u03B3\u03C1\u03AC\u03C6\u03BF\u03C5 ", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("strong", null, "HDJ2123F")));
|
|
5
|
+
|
|
6
|
+
export var Default = function Default() {
|
|
7
|
+
return _ref;
|
|
8
|
+
};
|
|
9
|
+
export default Default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import Confirmation from '@digigov/react-core/Confirmation';
|
|
2
|
+
import ConfirmationBody from '@digigov/react-core/ConfirmationBody';
|
|
3
|
+
import ConfirmationTitle from '@digigov/react-core/ConfirmationTitle';
|
|
4
|
+
export default Confirmation;
|
|
5
|
+
export { ConfirmationBody, ConfirmationTitle };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
|
|
3
|
+
import { AdminAside, AdminContainer, AdminLayout, AdminMain, AdminTopSection, AdminHeader, AdminHeaderSection, Dropdown, DropdownButton, DropdownContent } from '@digigov/react-extensions/admin/';
|
|
4
|
+
import { MoreVertIcon, NavVertical, NavVerticalItem } from '@digigov/react-core';
|
|
5
|
+
import { Accordion, AccordionItem, AccordionSectionSummary, AccordionSectionSummaryHeading } from '@digigov/ui/core/Accordion';
|
|
6
|
+
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction, Button, BackButton, ButtonGroup } from '@digigov/ui';
|
|
7
|
+
import { HeaderContent, HeaderTitle, HeaderSubtitle, SectionBreak } from '@digigov/ui';
|
|
8
|
+
import Title from '@digigov/ui/typography/Title';
|
|
9
|
+
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
10
|
+
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
11
|
+
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
12
|
+
import Grid from '@digigov/ui/layouts/Grid';
|
|
13
|
+
var fields = [{
|
|
14
|
+
name: 'Θέμα',
|
|
15
|
+
value: 'Αίτηση Ληξιαρχικής Πράξης Γάμου'
|
|
16
|
+
}, {
|
|
17
|
+
name: 'Ημερομηνία',
|
|
18
|
+
value: '09/03/2002 14:54:36'
|
|
19
|
+
}, {
|
|
20
|
+
name: 'Κωδικός επαλήθευσης',
|
|
21
|
+
value: 'NdH-EYREW1yd1LUhEOssx4A',
|
|
22
|
+
actions: ['Προβολή', 'Αντιγραφή συνδέσμου']
|
|
23
|
+
}, {
|
|
24
|
+
name: 'Κατάσταση',
|
|
25
|
+
value: 'Εισερχόμενη',
|
|
26
|
+
actions: ['Αλλάγή']
|
|
27
|
+
}, {
|
|
28
|
+
name: 'Χειριστής',
|
|
29
|
+
value: 'Δεν έχει οριστεί χειριστής',
|
|
30
|
+
actions: ['Ανάθεση']
|
|
31
|
+
}];
|
|
32
|
+
|
|
33
|
+
var _ref = /*#__PURE__*/React.createElement(AdminHeader, null, /*#__PURE__*/React.createElement(AdminHeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, null), /*#__PURE__*/React.createElement(HeaderTitle, null, "\u0398\u03C5\u03C1\u03AF\u03B4\u03B5\u03C2")), /*#__PURE__*/React.createElement(HeaderSubtitle, null, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(DropdownButton, {
|
|
34
|
+
variant: "link"
|
|
35
|
+
}, "\u0388\u03C7\u03B5\u03C4\u03B5 \u03C3\u03C5\u03BD\u03B4\u03B5\u03B8\u03B5\u03AF \u03C9\u03C2 \u039A\u03B1\u03BB\u03BB\u03B9\u03CC\u03C0\u03B7 \u03A0\u03B1\u03C0\u03B1\u03B4\u03BF\u03C0\u03BF\u03CD\u03BB\u03BF\u03C5", /*#__PURE__*/React.createElement(MoreVertIcon, null)), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, {
|
|
36
|
+
href: "#"
|
|
37
|
+
}, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/React.createElement(NavVerticalItem, {
|
|
38
|
+
href: "#"
|
|
39
|
+
}, "\u039C\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7"), /*#__PURE__*/React.createElement(NavVerticalItem, {
|
|
40
|
+
href: "#"
|
|
41
|
+
}, "\u039F\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03AE \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))))));
|
|
42
|
+
|
|
43
|
+
var _ref2 = /*#__PURE__*/React.createElement(Grid, {
|
|
44
|
+
item: true,
|
|
45
|
+
md: 3,
|
|
46
|
+
lg: 2
|
|
47
|
+
}, /*#__PURE__*/React.createElement(AdminAside, null, /*#__PURE__*/React.createElement(AdminTopSection, null, /*#__PURE__*/React.createElement(BackButton, null, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03B8\u03C5\u03C1\u03AF\u03B4\u03B1\u03C2"), /*#__PURE__*/React.createElement(Title, {
|
|
48
|
+
size: "sm"
|
|
49
|
+
}, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]"), /*#__PURE__*/React.createElement(Paragraph, null, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]")), /*#__PURE__*/React.createElement(SectionBreak, {
|
|
50
|
+
visible: true,
|
|
51
|
+
size: "m"
|
|
52
|
+
}), /*#__PURE__*/React.createElement(Button, null, "\u039D\u03AD\u03B1 \u03C5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7"), /*#__PURE__*/React.createElement(Accordion, null, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionSectionSummary, null, /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "\u03A5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"))), /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionSectionSummary, null, /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7")), /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, null, "\u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"), /*#__PURE__*/React.createElement(NavVerticalItem, null, "\u0391\u03B9\u03C4\u03AE\u03BC\u03B1\u03C4\u03B1"))))));
|
|
53
|
+
|
|
54
|
+
var _ref3 = /*#__PURE__*/React.createElement(Title, {
|
|
55
|
+
size: "xl"
|
|
56
|
+
}, "# \u03A5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 4");
|
|
57
|
+
|
|
58
|
+
var _ref4 = /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
59
|
+
text: "AAABBBFFFLLL",
|
|
60
|
+
variant: "tooltip",
|
|
61
|
+
message: "text successfuly copied!"
|
|
62
|
+
}, /*#__PURE__*/React.createElement(Button, null, "\u0391\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7")), /*#__PURE__*/React.createElement(Button, {
|
|
63
|
+
color: "secondary"
|
|
64
|
+
}, "\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE"), /*#__PURE__*/React.createElement(Button, {
|
|
65
|
+
color: "secondary"
|
|
66
|
+
}, "\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7"));
|
|
67
|
+
|
|
68
|
+
var _ref5 = /*#__PURE__*/React.createElement(Grid, {
|
|
69
|
+
item: true,
|
|
70
|
+
xs: 12
|
|
71
|
+
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
72
|
+
text: "AAABBBFFFLLL",
|
|
73
|
+
variant: "banner",
|
|
74
|
+
message: "text successfuly copied!"
|
|
75
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
76
|
+
color: "secondary"
|
|
77
|
+
}, "Banner example")));
|
|
78
|
+
|
|
79
|
+
var _ref6 = /*#__PURE__*/React.createElement(Grid, {
|
|
80
|
+
item: true,
|
|
81
|
+
xs: 12
|
|
82
|
+
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
83
|
+
text: "AAABBBFFFLLL",
|
|
84
|
+
variant: "tooltip",
|
|
85
|
+
message: "text successfuly copied!"
|
|
86
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
87
|
+
color: "secondary"
|
|
88
|
+
}, "Tooltip example")));
|
|
89
|
+
|
|
90
|
+
var _ref7 = /*#__PURE__*/React.createElement(GovGRFooter, null);
|
|
91
|
+
|
|
92
|
+
export var Default = function Default() {
|
|
93
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AdminLayout, null, _ref, /*#__PURE__*/React.createElement(AdminContainer, null, _ref2, /*#__PURE__*/React.createElement(Grid, {
|
|
94
|
+
item: true,
|
|
95
|
+
md: 9,
|
|
96
|
+
lg: 10
|
|
97
|
+
}, /*#__PURE__*/React.createElement(AdminMain, null, /*#__PURE__*/React.createElement(Grid, {
|
|
98
|
+
container: true,
|
|
99
|
+
spacing: 4
|
|
100
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
101
|
+
item: true,
|
|
102
|
+
xs: 12
|
|
103
|
+
}, _ref3, _ref4, /*#__PURE__*/React.createElement(SummaryList, null, fields && fields.map(function (field, index) {
|
|
104
|
+
return /*#__PURE__*/React.createElement(SummaryListItem, {
|
|
105
|
+
key: index
|
|
106
|
+
}, /*#__PURE__*/React.createElement(SummaryListItemKey, null, field.name), /*#__PURE__*/React.createElement(SummaryListItemValue, null, field.value), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(ButtonGroup, null, field.actions && field.actions.map(function (action, subIndex) {
|
|
107
|
+
return /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
108
|
+
text: "MMMNNNKKKO",
|
|
109
|
+
variant: "tooltip",
|
|
110
|
+
key: subIndex
|
|
111
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
112
|
+
key: subIndex,
|
|
113
|
+
variant: "link"
|
|
114
|
+
}, action));
|
|
115
|
+
}))));
|
|
116
|
+
}))), _ref5, _ref6)))), _ref7));
|
|
117
|
+
};
|
|
118
|
+
export default Default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState, useEffect } from 'react';
|
|
3
|
+
import CopyToClipboardContainer from '@digigov/react-extensions/admin/CopyToClipboardContainer';
|
|
4
|
+
import CopyToClipboardMessage from '@digigov/react-extensions/admin/CopyToClipboardMessage';
|
|
5
|
+
import NormalText from '@digigov/ui/typography/NormalText';
|
|
6
|
+
import { useTranslation } from '@digigov/ui/app';
|
|
7
|
+
export var CopyToClipboard = /*#__PURE__*/React.forwardRef(function CopyToClipboard(_ref, ref) {
|
|
8
|
+
var text = _ref.text,
|
|
9
|
+
_ref$variant = _ref.variant,
|
|
10
|
+
variant = _ref$variant === void 0 ? 'tooltip' : _ref$variant,
|
|
11
|
+
message = _ref.message,
|
|
12
|
+
children = _ref.children;
|
|
13
|
+
|
|
14
|
+
var _useState = useState(false),
|
|
15
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
+
enabled = _useState2[0],
|
|
17
|
+
setEnabled = _useState2[1];
|
|
18
|
+
|
|
19
|
+
var _useTranslation = useTranslation(),
|
|
20
|
+
t = _useTranslation.t;
|
|
21
|
+
|
|
22
|
+
useEffect(function () {
|
|
23
|
+
var timeout = setTimeout(function () {
|
|
24
|
+
if (enabled) setEnabled(false);
|
|
25
|
+
}, 3000);
|
|
26
|
+
return function () {
|
|
27
|
+
return clearTimeout(timeout);
|
|
28
|
+
};
|
|
29
|
+
}, [enabled]);
|
|
30
|
+
|
|
31
|
+
function copyToClipboard() {
|
|
32
|
+
navigator.clipboard.writeText(text);
|
|
33
|
+
setEnabled(true);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return /*#__PURE__*/React.createElement(CopyToClipboardContainer, {
|
|
37
|
+
onClick: copyToClipboard,
|
|
38
|
+
variant: variant,
|
|
39
|
+
ref: ref
|
|
40
|
+
}, children, enabled && /*#__PURE__*/React.createElement(CopyToClipboardMessage, {
|
|
41
|
+
variant: variant,
|
|
42
|
+
enabled: enabled
|
|
43
|
+
}, /*#__PURE__*/React.createElement(NormalText, null, message || t('copy-to-clipboard.message'))));
|
|
44
|
+
});
|
|
45
|
+
export default CopyToClipboard;
|