@digigov/ui 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -1
- package/admin/AutoComplete/AccesibleAutoComplete/index.d.ts +5 -0
- package/admin/AutoComplete/AccesibleAutoComplete/index.js +106 -0
- package/admin/AutoComplete/AutoComplete.stories.d.ts +13 -0
- package/admin/AutoComplete/AutoComplete.stories.js +115 -0
- package/admin/AutoComplete/Status/index.d.ts +40 -0
- package/admin/AutoComplete/Status/index.js +184 -0
- package/admin/AutoComplete/__stories__/Default.d.ts +3 -0
- package/admin/AutoComplete/__stories__/Default.js +34 -0
- package/admin/AutoComplete/__stories__/WithAutoSelect.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithAutoSelect.js +35 -0
- package/admin/AutoComplete/__stories__/WithDefaultValue.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithDefaultValue.js +33 -0
- package/admin/AutoComplete/__stories__/WithInLine.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithInLine.js +33 -0
- package/admin/AutoComplete/__stories__/WithMinLength.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithMinLength.js +35 -0
- package/admin/AutoComplete/__stories__/WithPlaceHolder.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithPlaceHolder.js +33 -0
- package/admin/AutoComplete/__stories__/WithShowAllValues.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithShowAllValues.js +33 -0
- package/admin/AutoComplete/index.d.ts +101 -0
- package/admin/AutoComplete/index.js +744 -0
- package/admin/AutoComplete/index.mdx +46 -0
- package/admin/AutoComplete/utils.d.ts +1 -0
- package/admin/AutoComplete/utils.js +13 -0
- 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/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/Drawer/index.mdx +12 -0
- package/admin/Dropdown/index.d.ts +7 -1
- package/admin/Dropdown/index.js +29 -1
- package/admin/FilterSection/index.d.ts +1 -0
- package/admin/FilterSection/index.js +14 -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 +179 -0
- package/admin/Pagination/index.mdx +12 -0
- package/admin/index.d.ts +1 -0
- package/admin/index.js +13 -0
- package/app/Confirmation/Confirmation.mdx +9 -0
- 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 +9 -0
- package/app/CopyToClipboard/CopyToClipboard.stories.js +58 -0
- package/app/CopyToClipboard/__stories__/Banner.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/Banner.js +30 -0
- package/app/CopyToClipboard/__stories__/Default.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/Default.js +30 -0
- package/app/CopyToClipboard/__stories__/MultipleCopies.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/MultipleCopies.js +142 -0
- package/app/CopyToClipboard/index.d.ts +9 -0
- package/app/CopyToClipboard/index.js +69 -0
- package/app/CopyToClipboard/index.mdx +22 -0
- package/app/Footer/Footer.mdx +27 -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/index.mdx +18 -0
- package/app/I18nText.js +7 -7
- 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/NotFound/index.mdx +12 -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/PhaseBannerHeader/index.mdx +12 -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/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/Accordion/index.mdx +13 -86
- 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/BackLink/index.mdx +16 -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/Blockquote/index.mdx +17 -2
- 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 +36 -0
- package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/core/Breadcrumbs/index.d.ts +2 -0
- package/core/Breadcrumbs/index.js +16 -2
- package/core/Button/Button.mdx +37 -2
- package/core/Button/Button.stories.d.ts +2 -0
- package/core/Button/Button.stories.js +28 -0
- package/core/Button/__stories__/CallToActionButton.d.ts +3 -0
- package/core/Button/__stories__/CallToActionButton.js +22 -0
- package/core/Button/__stories__/Disabled.d.ts +6 -0
- package/core/Button/__stories__/Disabled.js +27 -0
- package/core/Button/__stories__/Warning.d.ts +1 -0
- package/core/Button/__stories__/Warning.js +4 -2
- package/core/Card/Card.stories.d.ts +15 -0
- package/core/Card/Card.stories.js +142 -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 +32 -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/Card/__stories__/WithGroupButton.d.ts +3 -0
- package/core/Card/__stories__/WithGroupButton.js +32 -0
- package/core/Card/card.mdx +78 -0
- package/core/Checkboxes/Checkbox.stories.d.ts +13 -0
- package/core/Checkboxes/Checkbox.stories.js +114 -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__/NoneAnswerWithError.d.ts +3 -0
- package/core/Checkboxes/__stories__/NoneAnswerWithError.js +51 -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/checkboxes.mdx +54 -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/confirmation.mdx +19 -0
- package/core/Confirmation/index.d.ts +5 -0
- package/core/Confirmation/index.js +58 -0
- package/core/DateInput/DateInput.stories.d.ts +10 -0
- package/core/DateInput/DateInput.stories.js +72 -0
- package/core/DateInput/__stories__/Default.d.ts +3 -0
- package/core/DateInput/__stories__/Default.js +41 -0
- package/core/DateInput/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/DateInput/__stories__/MultipleQuestions.js +41 -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/DateInput/index.mdx +34 -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/Details/index.mdx +9 -25
- 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/ErrorMessage/index.mdx +21 -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/ErrorSummary/index.mdx +21 -38
- 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 +3 -0
- package/core/FileUpload/__stories__/Default.js +34 -0
- package/core/FileUpload/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/FileUpload/__stories__/WithErrorMessage.js +40 -0
- package/core/FileUpload/index.mdx +22 -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/Link/link.mdx +30 -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/List/index.mdx +22 -3
- 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/Masthead/masthead.mdx +14 -0
- package/core/NavList/NavList.d.ts +1 -14
- package/core/NavList/NavList.js +11 -70
- package/core/NavList/NavListBase.d.ts +4 -0
- package/core/NavList/NavListBase.js +74 -0
- package/core/NavList/NavListSubMenu.d.ts +1 -1
- package/core/NavList/NavListSubMenu.js +2 -2
- package/core/NavList/types.d.ts +13 -0
- package/core/NavList/types.js +5 -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.mdx +13 -60
- package/core/NotificationBanner/index.spec.js +1 -1
- package/core/PhaseBanner/PhaseBanner.stories.d.ts +8 -0
- package/core/PhaseBanner/PhaseBanner.stories.js +44 -0
- package/core/PhaseBanner/__stories__/Default.d.ts +3 -0
- package/core/PhaseBanner/__stories__/Default.js +32 -0
- package/core/PhaseBanner/__stories__/Underlined.d.ts +3 -0
- package/core/PhaseBanner/__stories__/Underlined.js +34 -0
- package/core/PhaseBanner/index.d.ts +6 -0
- package/core/PhaseBanner/index.js +72 -0
- package/core/PhaseBanner/index.mdx +24 -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 +42 -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/Radios/index.mdx +56 -0
- package/core/Select/Select.stories.d.ts +9 -0
- package/core/Select/Select.stories.js +58 -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/__stories__/WithHint.d.ts +3 -0
- package/core/Select/__stories__/WithHint.js +45 -0
- package/core/Select/index.d.ts +4 -0
- package/core/Select/index.js +44 -0
- package/core/Select/index.mdx +36 -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__/WithActions.d.ts +3 -0
- package/core/SummaryList/__stories__/WithActions.js +42 -0
- package/core/SummaryList/__stories__/WithoutBorders.d.ts +3 -0
- package/core/SummaryList/__stories__/WithoutBorders.js +30 -0
- package/core/SummaryList/index.mdx +17 -65
- package/core/Table/Table.stories.d.ts +18 -0
- package/core/Table/Table.stories.js +200 -0
- package/core/Table/TableFloatingScroll.d.ts +3 -0
- package/core/Table/TableFloatingScroll.js +105 -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__/TableCaptions.d.ts +3 -0
- package/core/Table/__stories__/TableCaptions.js +30 -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/Table/index.d.ts +1 -0
- package/core/Table/index.js +13 -0
- package/core/Table/index.mdx +52 -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 +3 -0
- package/core/Tabs/__stories__/Default.js +52 -0
- package/core/Tabs/index.js +21 -1
- package/core/Tabs/index.mdx +10 -2
- 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/TextArea/index.mdx +50 -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/TextInput/index.mdx +59 -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 +38 -0
- package/core/VisuallyHidden/index.d.ts +2 -0
- package/core/VisuallyHidden/index.js +14 -2
- package/core/VisuallyHidden/index.mdx +17 -0
- 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/WarningText/index.mdx +10 -35
- package/core/index.d.ts +8 -2
- package/core/index.js +87 -17
- package/es/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
- package/es/admin/AutoComplete/AutoComplete.stories.js +13 -0
- package/es/admin/AutoComplete/Status/index.js +153 -0
- package/es/admin/AutoComplete/__stories__/Default.js +19 -0
- package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
- package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithInLine.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
- package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
- package/es/admin/AutoComplete/index.js +676 -0
- package/es/admin/AutoComplete/index.mdx +46 -0
- package/es/admin/AutoComplete/utils.js +6 -0
- package/es/admin/CircularProgress/CircularProgress.stories.js +6 -0
- package/es/admin/CircularProgress/__stories__/Default.js +11 -0
- package/es/admin/Drawer/Drawer.stories.js +6 -0
- package/es/admin/Drawer/__stories__/Default.js +83 -0
- package/es/admin/Drawer/index.mdx +12 -0
- package/es/admin/Dropdown/index.js +28 -1
- package/es/admin/FilterSection/index.js +1 -0
- package/es/admin/Pagination/Pagination.stories.js +6 -0
- package/es/admin/Pagination/__stories__/Default.js +156 -0
- package/es/admin/Pagination/index.mdx +12 -0
- package/es/admin/index.js +2 -1
- package/es/app/Confirmation/Confirmation.mdx +9 -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 +8 -0
- package/es/app/CopyToClipboard/__stories__/Banner.js +16 -0
- package/es/app/CopyToClipboard/__stories__/Default.js +16 -0
- package/es/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
- package/es/app/CopyToClipboard/index.js +45 -0
- package/es/app/CopyToClipboard/index.mdx +22 -0
- package/es/app/Footer/Footer.mdx +27 -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/index.mdx +18 -0
- package/es/app/I18nText.js +7 -6
- package/es/app/NotFound/NotFound.stories.js +6 -0
- package/es/app/NotFound/__stories__/Default.js +9 -0
- package/es/app/NotFound/index.mdx +12 -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/PhaseBannerHeader/index.mdx +12 -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/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/Accordion/index.mdx +13 -86
- 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/BackLink/index.mdx +16 -0
- package/es/core/Blockquote/Blockquote.stories.js +6 -0
- package/es/core/Blockquote/__stories__/Default.js +9 -0
- package/es/core/Blockquote/index.mdx +17 -2
- package/es/core/Breadcrumbs/Breadcrumbs.stories.js +6 -0
- package/es/core/Breadcrumbs/__stories__/Default.js +17 -0
- package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/es/core/Breadcrumbs/index.js +3 -1
- package/es/core/Button/Button.mdx +37 -2
- package/es/core/Button/Button.stories.js +3 -1
- package/es/core/Button/__stories__/CallToActionButton.js +9 -0
- package/es/core/Button/__stories__/Disabled.js +14 -0
- package/es/core/Button/__stories__/Warning.js +2 -1
- package/es/core/Card/Card.stories.js +14 -0
- package/es/core/Card/__stories__/Default.js +10 -0
- package/es/core/Card/__stories__/WithClickableContent.js +14 -0
- package/es/core/Card/__stories__/WithClickableLink.js +12 -0
- package/es/core/Card/__stories__/WithDarkBorder.js +13 -0
- package/es/core/Card/__stories__/WithDarkTopBorder.js +13 -0
- package/es/core/Card/__stories__/WithDivider.js +12 -0
- package/es/core/Card/__stories__/WithGrayBorder.js +13 -0
- package/es/core/Card/__stories__/WithGrayTopBorder.js +13 -0
- package/es/core/Card/__stories__/WithGroupButton.js +11 -0
- package/es/core/Card/card.mdx +78 -0
- package/es/core/Checkboxes/Checkbox.stories.js +12 -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__/NoneAnswerWithError.js +28 -0
- package/es/core/Checkboxes/__stories__/WithErrorMessage.js +21 -0
- package/es/core/Checkboxes/__stories__/WithHint.js +20 -0
- package/es/core/Checkboxes/checkboxes.mdx +54 -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/confirmation.mdx +19 -0
- package/es/core/Confirmation/index.js +5 -0
- package/es/core/DateInput/DateInput.stories.js +9 -0
- package/es/core/DateInput/__stories__/Default.js +20 -0
- package/es/core/DateInput/__stories__/MultipleQuestions.js +20 -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/DateInput/index.mdx +34 -0
- package/es/core/Details/Details.stories.js +6 -0
- package/es/core/Details/__stories__/Default.js +9 -0
- package/es/core/Details/index.mdx +9 -25
- 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/ErrorMessage/index.mdx +21 -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/ErrorSummary/index.mdx +21 -38
- package/es/core/Field/index.js +5 -0
- package/es/core/FileUpload/FileUpload.stories.js +7 -0
- package/es/core/FileUpload/__stories__/Default.js +13 -0
- package/es/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/es/core/FileUpload/index.mdx +22 -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/Link/link.mdx +30 -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/List/index.mdx +22 -3
- 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/Masthead/masthead.mdx +14 -0
- package/es/core/NavList/NavList.js +8 -63
- package/es/core/NavList/NavListBase.js +58 -0
- package/es/core/NavList/NavListSubMenu.js +1 -1
- package/es/core/NavList/types.js +1 -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.mdx +13 -60
- package/es/core/NotificationBanner/index.spec.js +1 -1
- package/es/core/PhaseBanner/PhaseBanner.stories.js +7 -0
- package/es/core/PhaseBanner/__stories__/Default.js +12 -0
- package/es/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/es/core/PhaseBanner/index.js +6 -0
- package/es/core/PhaseBanner/index.mdx +24 -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 +22 -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/Radios/index.mdx +56 -0
- package/es/core/Select/Select.stories.js +8 -0
- package/es/core/Select/__stories__/Default.js +21 -0
- package/es/core/Select/__stories__/DisabledInput.js +22 -0
- package/es/core/Select/__stories__/WithHint.js +22 -0
- package/es/core/Select/index.js +4 -0
- package/es/core/Select/index.mdx +36 -0
- package/es/core/SummaryList/SummaryList.stories.js +9 -0
- package/es/core/SummaryList/__stories__/Default.js +9 -0
- package/es/core/SummaryList/__stories__/WithActions.js +20 -0
- package/es/core/SummaryList/__stories__/WithoutBorders.js +11 -0
- package/es/core/SummaryList/index.mdx +17 -65
- package/es/core/Table/Table.stories.js +19 -0
- package/es/core/Table/TableFloatingScroll.js +85 -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__/TableCaptions.js +17 -0
- package/es/core/Table/__stories__/VerticalBorders.js +11 -0
- package/es/core/Table/__stories__/VerticalHeaders.js +9 -0
- package/es/core/Table/__stories__/WithHeader.js +53 -0
- package/es/core/Table/__stories__/WithLoader.js +81 -0
- package/es/core/Table/__stories__/ZebraProp.js +11 -0
- package/es/core/Table/index.js +2 -1
- package/es/core/Table/index.mdx +52 -0
- package/es/core/Tabs/Tabs.stories.js +6 -0
- package/es/core/Tabs/__stories__/Default.js +29 -0
- package/es/core/Tabs/index.js +22 -2
- package/es/core/Tabs/index.mdx +10 -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/TextArea/index.mdx +50 -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/TextInput/index.mdx +59 -0
- package/es/core/VisuallyHidden/VisuallyHidden.stories.js +6 -0
- package/es/core/VisuallyHidden/__stories__/Default.js +16 -0
- package/es/core/VisuallyHidden/index.js +3 -1
- package/es/core/VisuallyHidden/index.mdx +17 -0
- package/es/core/WarningText/WarningText.stories.js +6 -0
- package/es/core/WarningText/__stories__/Default.js +9 -0
- package/es/core/WarningText/index.mdx +10 -35
- package/es/core/index.js +9 -3
- package/es/govgr/Footer/index.mdx +4 -4
- package/es/hooks/useTogglableSections.js +7 -1
- package/es/introduction.md +4 -1
- 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 +7 -0
- package/es/layouts/Grid/__stories__/Default.js +58 -0
- package/es/layouts/Grid/__stories__/Inline.js +55 -0
- package/es/layouts/Grid/index.js +1 -0
- package/es/layouts/index.js +2 -0
- package/es/locales/el.js +1 -0
- package/es/locales/en.js +1 -0
- package/es/registry.js +71 -31
- 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/Caption/index.mdx +16 -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/Hint/index.mdx +16 -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/NormalText/index.mdx +26 -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/Paragraph/index.mdx +30 -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/es/typography/Title/index.mdx +12 -0
- package/esm/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
- package/esm/admin/AutoComplete/AutoComplete.stories.js +13 -0
- package/esm/admin/AutoComplete/Status/index.js +153 -0
- package/esm/admin/AutoComplete/__stories__/Default.js +19 -0
- package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
- package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithInLine.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
- package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
- package/esm/admin/AutoComplete/index.js +676 -0
- package/esm/admin/AutoComplete/index.mdx +46 -0
- package/esm/admin/AutoComplete/utils.js +6 -0
- package/esm/admin/CircularProgress/CircularProgress.stories.js +6 -0
- package/esm/admin/CircularProgress/__stories__/Default.js +11 -0
- package/esm/admin/Drawer/Drawer.stories.js +6 -0
- package/esm/admin/Drawer/__stories__/Default.js +83 -0
- package/esm/admin/Drawer/index.mdx +12 -0
- package/esm/admin/Dropdown/index.js +28 -1
- package/esm/admin/FilterSection/index.js +1 -0
- package/esm/admin/Pagination/Pagination.stories.js +6 -0
- package/esm/admin/Pagination/__stories__/Default.js +156 -0
- package/esm/admin/Pagination/index.mdx +12 -0
- package/esm/admin/index.js +2 -1
- package/esm/app/Confirmation/Confirmation.mdx +9 -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 +8 -0
- package/esm/app/CopyToClipboard/__stories__/Banner.js +16 -0
- package/esm/app/CopyToClipboard/__stories__/Default.js +16 -0
- package/esm/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
- package/esm/app/CopyToClipboard/index.js +45 -0
- package/esm/app/CopyToClipboard/index.mdx +22 -0
- package/esm/app/Footer/Footer.mdx +27 -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/index.mdx +18 -0
- package/esm/app/I18nText.js +7 -6
- package/esm/app/NotFound/NotFound.stories.js +6 -0
- package/esm/app/NotFound/__stories__/Default.js +9 -0
- package/esm/app/NotFound/index.mdx +12 -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/PhaseBannerHeader/index.mdx +12 -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/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/Accordion/index.mdx +13 -86
- 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/BackLink/index.mdx +16 -0
- package/esm/core/Blockquote/Blockquote.stories.js +6 -0
- package/esm/core/Blockquote/__stories__/Default.js +9 -0
- package/esm/core/Blockquote/index.mdx +17 -2
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +6 -0
- package/esm/core/Breadcrumbs/__stories__/Default.js +17 -0
- package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/esm/core/Breadcrumbs/index.js +3 -1
- package/esm/core/Button/Button.mdx +37 -2
- package/esm/core/Button/Button.stories.js +3 -1
- package/esm/core/Button/__stories__/CallToActionButton.js +9 -0
- package/esm/core/Button/__stories__/Disabled.js +14 -0
- package/esm/core/Button/__stories__/Warning.js +2 -1
- package/esm/core/Card/Card.stories.js +14 -0
- package/esm/core/Card/__stories__/Default.js +10 -0
- package/esm/core/Card/__stories__/WithClickableContent.js +14 -0
- package/esm/core/Card/__stories__/WithClickableLink.js +12 -0
- package/esm/core/Card/__stories__/WithDarkBorder.js +13 -0
- package/esm/core/Card/__stories__/WithDarkTopBorder.js +13 -0
- package/esm/core/Card/__stories__/WithDivider.js +12 -0
- package/esm/core/Card/__stories__/WithGrayBorder.js +13 -0
- package/esm/core/Card/__stories__/WithGrayTopBorder.js +13 -0
- package/esm/core/Card/__stories__/WithGroupButton.js +11 -0
- package/esm/core/Card/card.mdx +78 -0
- package/esm/core/Checkboxes/Checkbox.stories.js +12 -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__/NoneAnswerWithError.js +28 -0
- package/esm/core/Checkboxes/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/Checkboxes/__stories__/WithHint.js +20 -0
- package/esm/core/Checkboxes/checkboxes.mdx +54 -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/confirmation.mdx +19 -0
- package/esm/core/Confirmation/index.js +5 -0
- package/esm/core/DateInput/DateInput.stories.js +9 -0
- package/esm/core/DateInput/__stories__/Default.js +20 -0
- package/esm/core/DateInput/__stories__/MultipleQuestions.js +20 -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/DateInput/index.mdx +34 -0
- package/esm/core/Details/Details.stories.js +6 -0
- package/esm/core/Details/__stories__/Default.js +9 -0
- package/esm/core/Details/index.mdx +9 -25
- 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/ErrorMessage/index.mdx +21 -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/ErrorSummary/index.mdx +21 -38
- package/esm/core/Field/index.js +5 -0
- package/esm/core/FileUpload/FileUpload.stories.js +7 -0
- package/esm/core/FileUpload/__stories__/Default.js +13 -0
- package/esm/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/esm/core/FileUpload/index.mdx +22 -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/Link/link.mdx +30 -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/List/index.mdx +22 -3
- 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/Masthead/masthead.mdx +14 -0
- package/esm/core/NavList/NavList.js +8 -63
- package/esm/core/NavList/NavListBase.js +58 -0
- package/esm/core/NavList/NavListSubMenu.js +1 -1
- package/esm/core/NavList/types.js +1 -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.mdx +13 -60
- package/esm/core/NotificationBanner/index.spec.js +1 -1
- package/esm/core/PhaseBanner/PhaseBanner.stories.js +7 -0
- package/esm/core/PhaseBanner/__stories__/Default.js +12 -0
- package/esm/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/esm/core/PhaseBanner/index.js +6 -0
- package/esm/core/PhaseBanner/index.mdx +24 -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 +22 -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/Radios/index.mdx +56 -0
- package/esm/core/Select/Select.stories.js +8 -0
- package/esm/core/Select/__stories__/Default.js +21 -0
- package/esm/core/Select/__stories__/DisabledInput.js +22 -0
- package/esm/core/Select/__stories__/WithHint.js +22 -0
- package/esm/core/Select/index.js +4 -0
- package/esm/core/Select/index.mdx +36 -0
- package/esm/core/SummaryList/SummaryList.stories.js +9 -0
- package/esm/core/SummaryList/__stories__/Default.js +9 -0
- package/esm/core/SummaryList/__stories__/WithActions.js +20 -0
- package/esm/core/SummaryList/__stories__/WithoutBorders.js +11 -0
- package/esm/core/SummaryList/index.mdx +17 -65
- package/esm/core/Table/Table.stories.js +19 -0
- package/esm/core/Table/TableFloatingScroll.js +85 -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__/TableCaptions.js +17 -0
- package/esm/core/Table/__stories__/VerticalBorders.js +11 -0
- package/esm/core/Table/__stories__/VerticalHeaders.js +9 -0
- package/esm/core/Table/__stories__/WithHeader.js +53 -0
- package/esm/core/Table/__stories__/WithLoader.js +81 -0
- package/esm/core/Table/__stories__/ZebraProp.js +11 -0
- package/esm/core/Table/index.js +2 -1
- package/esm/core/Table/index.mdx +52 -0
- package/esm/core/Tabs/Tabs.stories.js +6 -0
- package/esm/core/Tabs/__stories__/Default.js +29 -0
- package/esm/core/Tabs/index.js +22 -2
- package/esm/core/Tabs/index.mdx +10 -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/TextArea/index.mdx +50 -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/TextInput/index.mdx +59 -0
- package/esm/core/VisuallyHidden/VisuallyHidden.stories.js +6 -0
- package/esm/core/VisuallyHidden/__stories__/Default.js +16 -0
- package/esm/core/VisuallyHidden/index.js +3 -1
- package/esm/core/VisuallyHidden/index.mdx +17 -0
- package/esm/core/WarningText/WarningText.stories.js +6 -0
- package/esm/core/WarningText/__stories__/Default.js +9 -0
- package/esm/core/WarningText/index.mdx +10 -35
- package/esm/core/index.js +9 -3
- package/esm/govgr/Footer/index.mdx +4 -4
- package/esm/hooks/useTogglableSections.js +7 -1
- package/esm/index.js +1 -1
- package/esm/introduction.md +4 -1
- 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 +7 -0
- package/esm/layouts/Grid/__stories__/Default.js +58 -0
- package/esm/layouts/Grid/__stories__/Inline.js +55 -0
- package/esm/layouts/Grid/index.js +1 -0
- package/esm/layouts/index.js +2 -0
- package/esm/locales/el.js +1 -0
- package/esm/locales/en.js +1 -0
- package/esm/registry.js +71 -31
- 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/Caption/index.mdx +16 -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/Hint/index.mdx +16 -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/NormalText/index.mdx +26 -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/Paragraph/index.mdx +30 -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/esm/typography/Title/index.mdx +12 -0
- package/govgr/Footer/index.mdx +4 -4
- package/hooks/useTogglableSections.d.ts +3 -2
- package/hooks/useTogglableSections.js +7 -1
- package/introduction.md +4 -1
- 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 +7 -0
- package/layouts/Grid/Grid.stories.js +44 -0
- package/layouts/Grid/__stories__/Default.d.ts +3 -0
- package/layouts/Grid/__stories__/Default.js +71 -0
- package/layouts/Grid/__stories__/Inline.d.ts +3 -0
- package/layouts/Grid/__stories__/Inline.js +68 -0
- package/layouts/Grid/index.d.ts +3 -1
- package/layouts/Grid/index.js +6 -0
- package/layouts/index.d.ts +2 -0
- package/layouts/index.js +22 -1
- package/locales/el.d.ts +1 -0
- package/locales/el.js +1 -0
- package/locales/en.d.ts +1 -0
- package/locales/en.js +1 -0
- package/package.json +3 -3
- package/registry.d.ts +35 -15
- package/registry.js +106 -46
- 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/Caption/index.mdx +16 -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/Hint/index.mdx +16 -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/NormalText/index.mdx +26 -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/Paragraph/index.mdx +30 -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/typography/Title/index.mdx +12 -0
- package/app/NotFound/NotFound.mdx +0 -5
- package/app/QrCodeScanner/index.mdx +0 -7
- package/es/app/NotFound/NotFound.mdx +0 -5
- package/es/app/QrCodeScanner/index.mdx +0 -7
- package/esm/app/NotFound/NotFound.mdx +0 -5
- package/esm/app/QrCodeScanner/index.mdx +0 -7
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SummaryList, { SummaryListItem, SummaryListItemAction, SummaryListItemKey, SummaryListItemValue } from '@digigov/ui/core/SummaryList';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(SummaryList, {
|
|
5
|
+
border: false
|
|
6
|
+
}, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u03A4\u03AC\u03B4\u03B5 20, \u03A0\u03B1\u03C4\u03AE\u03C3\u03B9\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemAction, null)), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567")));
|
|
7
|
+
|
|
8
|
+
export var WithoutBorders = function WithoutBorders() {
|
|
9
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
|
|
10
|
+
};
|
|
11
|
+
export default WithoutBorders;
|
|
@@ -1,80 +1,32 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
id: summary-list
|
|
3
|
+
title: SummaryList
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
SummaryList,
|
|
8
|
-
SummaryListItem,
|
|
9
|
-
SummaryListItemKey,
|
|
10
|
-
SummaryListItemValue,
|
|
11
|
-
SummaryListItemAction,
|
|
12
|
-
} from '@digigov/ui/core/SummaryList';
|
|
6
|
+
# SummaryList
|
|
13
7
|
|
|
14
|
-
|
|
8
|
+
Use the summary list to summarise information, for example, a user’s responses at the end of a form.
|
|
9
|
+
|
|
15
10
|
|
|
16
|
-
```jsx live path=core/SummaryList/index.tsx
|
|
17
|
-
<SummaryList>
|
|
18
|
-
<SummaryListItem>
|
|
19
|
-
<SummaryListItemKey>Όνομα</SummaryListItemKey>
|
|
20
|
-
<SummaryListItemValue> Μάριος</SummaryListItemValue>
|
|
21
|
-
<SummaryListItemAction> Αλλαγή</SummaryListItemAction>
|
|
22
|
-
</SummaryListItem>
|
|
23
|
-
<SummaryListItem>
|
|
24
|
-
<SummaryListItemKey>Επώνυμο</SummaryListItemKey>
|
|
25
|
-
<SummaryListItemValue>Μενεξές</SummaryListItemValue>
|
|
26
|
-
</SummaryListItem>
|
|
27
|
-
</SummaryList>
|
|
28
|
-
```
|
|
29
11
|
|
|
30
|
-
|
|
12
|
+
```bash
|
|
13
|
+
import SummaryList from '@digigov/ui/core/SummaryList';
|
|
14
|
+
```
|
|
31
15
|
|
|
32
|
-
##
|
|
16
|
+
## How to use
|
|
33
17
|
|
|
34
|
-
|
|
35
|
-
as key-value pairs, in a list.
|
|
36
|
-
|
|
37
|
-
> The key is a description or label of a piece of
|
|
38
|
-
> information, like `Name`, and the value is the piece of information itself,
|
|
39
|
-
> like `John Smith`.
|
|
40
|
-
|
|
41
|
-
## When not to use this component
|
|
42
|
-
|
|
43
|
-
Only use it to present information that has a key and at least one value.
|
|
44
|
-
|
|
45
|
-
Do not use it for tabular data or a simple list of information or tasks, like
|
|
46
|
-
a task list.
|
|
47
|
-
|
|
48
|
-
## How it works
|
|
18
|
+
<Story packageName="@digigov/ui" component="core/SummaryList" story="Default.tsx" />
|
|
49
19
|
|
|
50
20
|
### Summary list with actions
|
|
51
21
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
For sighted users, the actions get their context from the other content in the
|
|
56
|
-
row they appear in.
|
|
57
|
-
|
|
58
|
-
Assistive technology users, like those who use a screen reader, may hear the
|
|
59
|
-
links out of context and not know what they do. To give more context, add
|
|
60
|
-
visually hidden text to the links. This means a screen reader user will hear
|
|
61
|
-
a meaningful action, like `Change name` or `Change date of birth`.
|
|
62
|
-
|
|
63
|
-
## API
|
|
22
|
+
Assistive technology users, like those who use a screen reader, may hear the links out of context and not know what they do.
|
|
23
|
+
To give more context, add visually hidden text to the links.
|
|
24
|
+
This means a screen reader user will hear a meaningful action, like ‘Αλλαγή ονόματος’ or ‘Αλλαγή ημερομηνίας γέννησης’.
|
|
64
25
|
|
|
65
|
-
|
|
26
|
+
<Story packageName="@digigov/ui" component="core/SummaryList" story="WithActions.tsx" />
|
|
66
27
|
|
|
67
|
-
|
|
68
|
-
<PropsDoc data={SummaryListItem.__doc__} />
|
|
69
|
-
<PropsDoc data={SummaryListItemKey.__doc__} />
|
|
70
|
-
<PropsDoc data={SummaryListItemValue.__doc__} />
|
|
71
|
-
<PropsDoc data={SummaryListItemAction.__doc__} />
|
|
72
|
-
<br />
|
|
28
|
+
### Summary list without borders
|
|
73
29
|
|
|
74
|
-
|
|
30
|
+
If you do not include actions in your summary list and it would be better for your design to remove the separating borders, use the `border={false}` prop.
|
|
75
31
|
|
|
76
|
-
<
|
|
77
|
-
<StylesDoc data={SummaryListItem.__doc__} />
|
|
78
|
-
<StylesDoc data={SummaryListItemKey.__doc__} />
|
|
79
|
-
<StylesDoc data={SummaryListItemValue.__doc__} />
|
|
80
|
-
<StylesDoc data={SummaryListItemAction.__doc__} />
|
|
32
|
+
<Story packageName="@digigov/ui" component="core/SummaryList" story="WithoutBorders.tsx" />
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable digigov/no-relative-imports */
|
|
2
|
+
import Table from '@digigov/ui/core';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Digigov UI/core/Table',
|
|
5
|
+
component: Table
|
|
6
|
+
};
|
|
7
|
+
export * from './__stories__/Default';
|
|
8
|
+
export * from './__stories__/TableCaptions';
|
|
9
|
+
export * from './__stories__/NoData';
|
|
10
|
+
export * from './__stories__/VerticalHeaders';
|
|
11
|
+
export * from './__stories__/ZebraProp';
|
|
12
|
+
export * from './__stories__/NumericDataType';
|
|
13
|
+
export * from './__stories__/VerticalBorders';
|
|
14
|
+
export * from './__stories__/DarkVariant';
|
|
15
|
+
export * from './__stories__/DarkVariantWithVerticalHeaders';
|
|
16
|
+
export * from './__stories__/WithLoader';
|
|
17
|
+
export * from './__stories__/DefinedWidth';
|
|
18
|
+
export * from './__stories__/Densed';
|
|
19
|
+
export * from './__stories__/MultipleProps';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
+
export function TableFloatingScroll(props) {
|
|
4
|
+
var ref = useRef(null);
|
|
5
|
+
var contentRef = useRef(null);
|
|
6
|
+
var scrollBlockRef = useRef(null);
|
|
7
|
+
|
|
8
|
+
var _useState = useState(0),
|
|
9
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10
|
+
width = _useState2[0],
|
|
11
|
+
setWidth = _useState2[1];
|
|
12
|
+
|
|
13
|
+
var _useState3 = useState(0),
|
|
14
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
15
|
+
containerWidth = _useState4[0],
|
|
16
|
+
setContainerWidth = _useState4[1];
|
|
17
|
+
|
|
18
|
+
var _useState5 = useState('relative'),
|
|
19
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
20
|
+
position = _useState6[0],
|
|
21
|
+
setPosition = _useState6[1];
|
|
22
|
+
|
|
23
|
+
useEffect(function () {
|
|
24
|
+
var _ref$current;
|
|
25
|
+
|
|
26
|
+
contentRef.current = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.firstChild; // @ts-ignore
|
|
27
|
+
|
|
28
|
+
setContainerWidth(ref.current.offsetWidth);
|
|
29
|
+
setWidth(contentRef.current.scrollWidth);
|
|
30
|
+
var elementOffset = contentRef.current.offsetTop + contentRef.current.offsetHeight;
|
|
31
|
+
|
|
32
|
+
function onBodyScroll() {
|
|
33
|
+
var currentScroll = window.pageYOffset + window.innerHeight; // @ts-ignore
|
|
34
|
+
|
|
35
|
+
if (currentScroll < elementOffset && currentScroll > contentRef.current.offsetTop) {
|
|
36
|
+
setPosition('fixed'); // @ts-ignore
|
|
37
|
+
} else if (currentScroll >= elementOffset || currentScroll <= contentRef.current.offsetTop) {
|
|
38
|
+
setPosition('relative');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function onBlockScroll() {
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
ref.current.scrollLeft = scrollBlockRef.current.scrollLeft;
|
|
45
|
+
} // @ts-ignore
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
scrollBlockRef.current.addEventListener('scroll', onBlockScroll);
|
|
49
|
+
document.addEventListener('scroll', onBodyScroll);
|
|
50
|
+
window.addEventListener('resize', function () {
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
setContainerWidth(ref.current.offsetWidth); // @ts-ignore
|
|
53
|
+
|
|
54
|
+
setWidth(contentRef.current.scrollWidth);
|
|
55
|
+
});
|
|
56
|
+
return function () {
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
scrollBlockRef.current.removeEventListener('scroll', onBlockScroll);
|
|
59
|
+
document.removeEventListener('scroll', onBodyScroll);
|
|
60
|
+
};
|
|
61
|
+
}, []);
|
|
62
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
ref: ref,
|
|
64
|
+
style: {
|
|
65
|
+
maxWidth: '100%',
|
|
66
|
+
overflowX: 'scroll'
|
|
67
|
+
}
|
|
68
|
+
}, props.children), /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
style: {
|
|
70
|
+
overflow: 'auto',
|
|
71
|
+
height: '35px',
|
|
72
|
+
marginTop: '-35px',
|
|
73
|
+
position: position,
|
|
74
|
+
maxWidth: "".concat(containerWidth, "px"),
|
|
75
|
+
bottom: 0
|
|
76
|
+
},
|
|
77
|
+
ref: scrollBlockRef
|
|
78
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
79
|
+
style: {
|
|
80
|
+
width: "".concat(width, "px"),
|
|
81
|
+
overflow: 'hidden'
|
|
82
|
+
}
|
|
83
|
+
})));
|
|
84
|
+
}
|
|
85
|
+
export default TableFloatingScroll;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, {
|
|
5
|
+
variant: "dark"
|
|
6
|
+
}, /*#__PURE__*/React.createElement(TableCaption, null, "\u03A0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2 \u03BA\u03B1\u03B9 \u03C0\u03BF\u03C3\u03AC"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "\u03A0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2"), /*#__PURE__*/React.createElement(TableHeadCell, null, "\u039A\u03B1\u03BD\u03BF\u03BD\u03B9\u03BA\u03CC \u03C0\u03BF\u03C3\u03CC"), /*#__PURE__*/React.createElement(TableHeadCell, null, "\u039C\u03B5\u03B9\u03C9\u03BC\u03AD\u03BD\u03BF \u03C0\u03BF\u03C3\u03CC"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "\u03A0\u03C1\u03CE\u03C4\u03B5\u03C2 6 \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2 "), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC109.80 / \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1"), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC69.80 / \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B5\u03C2 33 \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2"), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC99.80 / \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1"), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC64.80 / \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "\u03A3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03CC \u03C0\u03BF\u03C3\u03CC "), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC4.282,20 "), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC3.282,20")))));
|
|
7
|
+
|
|
8
|
+
export var DarkVariant = function DarkVariant() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default DarkVariant;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, {
|
|
5
|
+
variant: "dark"
|
|
6
|
+
}, /*#__PURE__*/React.createElement(TableCaption, null, "Table with dark variant and vertical borders"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")))));
|
|
7
|
+
|
|
8
|
+
export var DarkVariantWithVerticalHeaders = function DarkVariantWithVerticalHeaders() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default DarkVariantWithVerticalHeaders;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, null, /*#__PURE__*/React.createElement(TableCaption, null, "\u03A0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2 \u03BA\u03B1\u03B9 \u03C0\u03BF\u03C3\u03AC"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "\u03A0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2"), /*#__PURE__*/React.createElement(TableHeadCell, null, "\u039A\u03B1\u03BD\u03BF\u03BD\u03B9\u03BA\u03CC \u03C0\u03BF\u03C3\u03CC"), /*#__PURE__*/React.createElement(TableHeadCell, null, "\u039C\u03B5\u03B9\u03C9\u03BC\u03AD\u03BD\u03BF \u03C0\u03BF\u03C3\u03CC"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "\u03A0\u03C1\u03CE\u03C4\u03B5\u03C2 6 \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2 "), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC109.80 / \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1"), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC69.80 / \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B5\u03C2 33 \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2"), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC99.80 / \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1"), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC64.80 / \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "\u03A3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03CC \u03C0\u03BF\u03C3\u03CC "), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC4.282,20 "), /*#__PURE__*/React.createElement(TableDataCell, null, " \u20AC3.282,20")))));
|
|
5
|
+
|
|
6
|
+
export var Default = function Default() {
|
|
7
|
+
return _ref;
|
|
8
|
+
};
|
|
9
|
+
export default Default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell, TableCaption } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, null, /*#__PURE__*/React.createElement(TableCaption, null, "Table with one-half and one-quarter width"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, {
|
|
5
|
+
cellWidth: "one-half"
|
|
6
|
+
}, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, {
|
|
7
|
+
cellWidth: "one-quarter"
|
|
8
|
+
}, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, {
|
|
9
|
+
cellWidth: "one-quarter"
|
|
10
|
+
}, "Date"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80")))));
|
|
11
|
+
|
|
12
|
+
export var DefinedWidth = function DefinedWidth() {
|
|
13
|
+
return _ref;
|
|
14
|
+
};
|
|
15
|
+
export default DefinedWidth;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, {
|
|
5
|
+
border: true
|
|
6
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
7
|
+
dense: true
|
|
8
|
+
}, /*#__PURE__*/React.createElement(TableCaption, null, "Table with dense props"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")))));
|
|
9
|
+
|
|
10
|
+
export var Densed = function Densed() {
|
|
11
|
+
return _ref;
|
|
12
|
+
};
|
|
13
|
+
export default Densed;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, {
|
|
5
|
+
zebra: true,
|
|
6
|
+
variant: "dark",
|
|
7
|
+
verticalBorders: true
|
|
8
|
+
}, /*#__PURE__*/React.createElement(TableCaption, null, "Table with zebra prop"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
9
|
+
dataType: "numeric"
|
|
10
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
11
|
+
dataType: "numeric"
|
|
12
|
+
}, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
13
|
+
dataType: "numeric"
|
|
14
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
15
|
+
dataType: "numeric"
|
|
16
|
+
}, "\u20AC69.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
17
|
+
dataType: "numeric"
|
|
18
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
19
|
+
dataType: "numeric"
|
|
20
|
+
}, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
21
|
+
dataType: "numeric"
|
|
22
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
23
|
+
dataType: "numeric"
|
|
24
|
+
}, "\u20AC69.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
25
|
+
dataType: "numeric"
|
|
26
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
27
|
+
dataType: "numeric"
|
|
28
|
+
}, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
29
|
+
dataType: "numeric"
|
|
30
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
31
|
+
dataType: "numeric"
|
|
32
|
+
}, "\u20AC69.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
33
|
+
dataType: "numeric"
|
|
34
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
35
|
+
dataType: "numeric"
|
|
36
|
+
}, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
37
|
+
dataType: "numeric"
|
|
38
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
39
|
+
dataType: "numeric"
|
|
40
|
+
}, "\u20AC69.80")))));
|
|
41
|
+
|
|
42
|
+
export var MultipleProps = function MultipleProps() {
|
|
43
|
+
return _ref;
|
|
44
|
+
};
|
|
45
|
+
export default MultipleProps;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableNoDataRow } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, null, /*#__PURE__*/React.createElement(TableCaption, null, "Table with no data"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableNoDataRow, null, "No data"))));
|
|
5
|
+
|
|
6
|
+
export var NoData = function NoData() {
|
|
7
|
+
return _ref;
|
|
8
|
+
};
|
|
9
|
+
export default NoData;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, null, /*#__PURE__*/React.createElement(TableCaption, null, "Table with dataType numeric"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, {
|
|
5
|
+
dataType: "numeric"
|
|
6
|
+
}, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, {
|
|
7
|
+
dataType: "numeric"
|
|
8
|
+
}, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, {
|
|
9
|
+
dataType: "numeric"
|
|
10
|
+
}, "Amount"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
11
|
+
dataType: "numeric"
|
|
12
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
13
|
+
dataType: "numeric"
|
|
14
|
+
}, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
15
|
+
dataType: "numeric"
|
|
16
|
+
}, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
17
|
+
dataType: "numeric"
|
|
18
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
19
|
+
dataType: "numeric"
|
|
20
|
+
}, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
21
|
+
dataType: "numeric"
|
|
22
|
+
}, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
23
|
+
dataType: "numeric"
|
|
24
|
+
}, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
25
|
+
dataType: "numeric"
|
|
26
|
+
}, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
27
|
+
dataType: "numeric"
|
|
28
|
+
}, "\u20AC109.80")))));
|
|
29
|
+
|
|
30
|
+
export var NumericDataType = function NumericDataType() {
|
|
31
|
+
return _ref;
|
|
32
|
+
};
|
|
33
|
+
export default NumericDataType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, null, /*#__PURE__*/React.createElement(TableCaption, {
|
|
5
|
+
size: "xl"
|
|
6
|
+
}, "Table Caption Extra Large"), /*#__PURE__*/React.createElement(TableCaption, {
|
|
7
|
+
size: "l"
|
|
8
|
+
}, "Table Caption Large"), /*#__PURE__*/React.createElement(TableCaption, {
|
|
9
|
+
size: "m"
|
|
10
|
+
}, "Table Caption Medium"), /*#__PURE__*/React.createElement(TableCaption, {
|
|
11
|
+
size: "s"
|
|
12
|
+
}, "Table Caption Small")));
|
|
13
|
+
|
|
14
|
+
export var TableCaptions = function TableCaptions() {
|
|
15
|
+
return _ref;
|
|
16
|
+
};
|
|
17
|
+
export default TableCaptions;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell, TableCaption } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, {
|
|
5
|
+
verticalBorders: true
|
|
6
|
+
}, /*#__PURE__*/React.createElement(TableCaption, null, "Table with vertical borders"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")))));
|
|
7
|
+
|
|
8
|
+
export var VerticalBorders = function VerticalBorders() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default VerticalBorders;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell, TableCaption } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, null, /*#__PURE__*/React.createElement(TableCaption, null, "Table with vertical borders"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")))));
|
|
5
|
+
|
|
6
|
+
export var VerticalHeaders = function VerticalHeaders() {
|
|
7
|
+
return _ref;
|
|
8
|
+
};
|
|
9
|
+
export default VerticalHeaders;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell, TableNoDataRow } from '@digigov/ui/core';
|
|
3
|
+
var data = [{
|
|
4
|
+
name: 'Dimitris',
|
|
5
|
+
job: 'carpenter',
|
|
6
|
+
year: '5 years',
|
|
7
|
+
salary: '10.80$'
|
|
8
|
+
}, {
|
|
9
|
+
name: 'Katerina',
|
|
10
|
+
job: 'engineer',
|
|
11
|
+
year: '6 years',
|
|
12
|
+
salary: '19.60$'
|
|
13
|
+
}, {
|
|
14
|
+
name: 'Vasilis',
|
|
15
|
+
job: 'taxi driver',
|
|
16
|
+
year: '10 years',
|
|
17
|
+
salary: '12.83$'
|
|
18
|
+
}, {
|
|
19
|
+
name: 'Giorgos',
|
|
20
|
+
job: 'yoga master',
|
|
21
|
+
year: '15 years',
|
|
22
|
+
salary: '27.80$'
|
|
23
|
+
}, {
|
|
24
|
+
name: 'Giannis',
|
|
25
|
+
job: 'unemployed',
|
|
26
|
+
year: '5 years',
|
|
27
|
+
salary: '00.00$'
|
|
28
|
+
}, {
|
|
29
|
+
name: 'Katerina',
|
|
30
|
+
job: 'car driver',
|
|
31
|
+
year: '10 years',
|
|
32
|
+
salary: '11.80$'
|
|
33
|
+
}, {
|
|
34
|
+
name: 'Thanasis',
|
|
35
|
+
job: 'babysitter',
|
|
36
|
+
year: '5 years',
|
|
37
|
+
salary: '15.80$'
|
|
38
|
+
}];
|
|
39
|
+
|
|
40
|
+
var _ref = /*#__PURE__*/React.createElement(TableCaption, null, "Table with vertical headers");
|
|
41
|
+
|
|
42
|
+
var _ref2 = /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Name"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Job"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Year"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Salary")));
|
|
43
|
+
|
|
44
|
+
var _ref3 = /*#__PURE__*/React.createElement(TableNoDataRow, null, "No data");
|
|
45
|
+
|
|
46
|
+
export var WithHeader = function WithHeader() {
|
|
47
|
+
return /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, null, _ref, _ref2, /*#__PURE__*/React.createElement(TableBody, null, data && data.length > 0 ? data.map(function (d, index) {
|
|
48
|
+
return /*#__PURE__*/React.createElement(TableRow, {
|
|
49
|
+
key: index
|
|
50
|
+
}, /*#__PURE__*/React.createElement(TableDataCell, null, d.name), /*#__PURE__*/React.createElement(TableDataCell, null, d.job), /*#__PURE__*/React.createElement(TableDataCell, null, d.year), /*#__PURE__*/React.createElement(TableDataCell, null, d.salary));
|
|
51
|
+
}) : _ref3)));
|
|
52
|
+
};
|
|
53
|
+
export default WithHeader;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { Button, TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell, TableNoDataRow } from '@digigov/react-core';
|
|
4
|
+
import { LoaderContainer, CircularProgress, TableLoaderBackground } from '@digigov/react-extensions/admin/';
|
|
5
|
+
var data = [{
|
|
6
|
+
name: 'Dimitris',
|
|
7
|
+
job: 'carpenter',
|
|
8
|
+
year: '5 years',
|
|
9
|
+
salary: '10.80$'
|
|
10
|
+
}, {
|
|
11
|
+
name: 'Katerina',
|
|
12
|
+
job: 'engineer',
|
|
13
|
+
year: '6 years',
|
|
14
|
+
salary: '19.60$'
|
|
15
|
+
}, {
|
|
16
|
+
name: 'Vasilis',
|
|
17
|
+
job: 'taxi driver',
|
|
18
|
+
year: '10 years',
|
|
19
|
+
salary: '12.83$'
|
|
20
|
+
}, {
|
|
21
|
+
name: 'Giorgos',
|
|
22
|
+
job: 'yoga master',
|
|
23
|
+
year: '15 years',
|
|
24
|
+
salary: '27.80$'
|
|
25
|
+
}, {
|
|
26
|
+
name: 'Giannis',
|
|
27
|
+
job: 'unemployed',
|
|
28
|
+
year: '5 years',
|
|
29
|
+
salary: '00.00$'
|
|
30
|
+
}, {
|
|
31
|
+
name: 'Katerina',
|
|
32
|
+
job: 'car driver',
|
|
33
|
+
year: '10 years',
|
|
34
|
+
salary: '11.80$'
|
|
35
|
+
}, {
|
|
36
|
+
name: 'Thanasis',
|
|
37
|
+
job: 'babysitter',
|
|
38
|
+
year: '5 years',
|
|
39
|
+
salary: '15.80$'
|
|
40
|
+
}];
|
|
41
|
+
|
|
42
|
+
var _ref = /*#__PURE__*/React.createElement(LoaderContainer, null, /*#__PURE__*/React.createElement(CircularProgress, null));
|
|
43
|
+
|
|
44
|
+
var _ref2 = /*#__PURE__*/React.createElement(TableCaption, null, "Table loading test");
|
|
45
|
+
|
|
46
|
+
var _ref3 = /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Employee name"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Job"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Years"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Salary")));
|
|
47
|
+
|
|
48
|
+
var _ref4 = /*#__PURE__*/React.createElement(TableLoaderBackground, null, /*#__PURE__*/React.createElement(LoaderContainer, null, /*#__PURE__*/React.createElement(CircularProgress, null)));
|
|
49
|
+
|
|
50
|
+
var _ref5 = /*#__PURE__*/React.createElement(TableNoDataRow, null, "No data");
|
|
51
|
+
|
|
52
|
+
export var WithLoader = function WithLoader() {
|
|
53
|
+
var _useState = useState(),
|
|
54
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
55
|
+
tableData = _useState2[0],
|
|
56
|
+
setTableData = _useState2[1];
|
|
57
|
+
|
|
58
|
+
var _useState3 = useState(false),
|
|
59
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
|
+
loading = _useState4[0],
|
|
61
|
+
setLoading = _useState4[1];
|
|
62
|
+
|
|
63
|
+
setTimeout(function () {
|
|
64
|
+
setTableData(data);
|
|
65
|
+
}, 8000);
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: "example"
|
|
68
|
+
}, /*#__PURE__*/React.createElement(TableContainer, null, !tableData ? _ref : /*#__PURE__*/React.createElement(Table, null, _ref2, _ref3, /*#__PURE__*/React.createElement(TableBody, null, loading === true && _ref4, tableData && tableData.length > 0 ? tableData.map(function (d, index) {
|
|
69
|
+
return /*#__PURE__*/React.createElement(TableRow, {
|
|
70
|
+
key: index
|
|
71
|
+
}, /*#__PURE__*/React.createElement(TableDataCell, null, d.name), /*#__PURE__*/React.createElement(TableDataCell, null, d.job), /*#__PURE__*/React.createElement(TableDataCell, null, d.year), /*#__PURE__*/React.createElement(TableDataCell, null, d.salary));
|
|
72
|
+
}) : _ref5))), /*#__PURE__*/React.createElement(Button, {
|
|
73
|
+
onClick: function onClick() {
|
|
74
|
+
setLoading(true);
|
|
75
|
+
setTimeout(function () {
|
|
76
|
+
setLoading(false);
|
|
77
|
+
}, 7000);
|
|
78
|
+
}
|
|
79
|
+
}, "\u03A0\u03C1\u03BF\u03C3\u03B8\u03B7\u03BA\u03B7"));
|
|
80
|
+
};
|
|
81
|
+
export default WithLoader;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/react-core';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, {
|
|
5
|
+
zebra: true
|
|
6
|
+
}, /*#__PURE__*/React.createElement(TableCaption, null, "Table with zebra prop"), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Date"), /*#__PURE__*/React.createElement(TableHeadCell, null, "Amount"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "First 6 weeks"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC69.80"), /*#__PURE__*/React.createElement(TableDataCell, null, "\u20AC109.80")))));
|
|
7
|
+
|
|
8
|
+
export var ZebraProp = function ZebraProp() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default ZebraProp;
|
package/es/core/Table/index.js
CHANGED
|
@@ -6,4 +6,5 @@ export * from '@digigov/react-core/TableDataCell';
|
|
|
6
6
|
export * from '@digigov/react-core/TableHead';
|
|
7
7
|
export * from '@digigov/react-core/TableHeadCell';
|
|
8
8
|
export * from '@digigov/react-core/TableRow';
|
|
9
|
-
export * from '@digigov/react-core/TableNoDataRow';
|
|
9
|
+
export * from '@digigov/react-core/TableNoDataRow';
|
|
10
|
+
export * from '@digigov/ui/core/Table/TableFloatingScroll';
|