@digigov/ui 0.21.2 → 0.23.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 +39 -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/{app/CopyToClipboard → admin/AutoComplete}/__stories__/Default.d.ts +0 -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/CopyToClipboard/CopyToClipboard.stories.d.ts +9 -0
- package/admin/CopyToClipboard/CopyToClipboard.stories.js +58 -0
- package/admin/CopyToClipboard/__stories__/Banner.d.ts +3 -0
- package/admin/CopyToClipboard/__stories__/Banner.js +30 -0
- package/admin/CopyToClipboard/__stories__/Default.d.ts +3 -0
- package/admin/CopyToClipboard/__stories__/Default.js +32 -0
- package/admin/CopyToClipboard/__stories__/MultipleCopies.d.ts +3 -0
- package/{app/CopyToClipboard/__stories__/Default.js → admin/CopyToClipboard/__stories__/MultipleCopies.js} +20 -18
- package/admin/CopyToClipboard/index.d.ts +1 -1
- package/admin/CopyToClipboard/index.js +3 -2
- package/admin/CopyToClipboard/index.mdx +22 -0
- package/admin/Drawer/__stories__/Default.js +1 -1
- package/admin/Drawer/index.mdx +12 -0
- package/admin/Dropdown/Dropdown.stories.d.ts +9 -0
- package/admin/Dropdown/Dropdown.stories.js +60 -0
- package/admin/Dropdown/__stories__/AlignRight.d.ts +3 -0
- package/admin/Dropdown/__stories__/AlignRight.js +83 -0
- package/admin/Dropdown/__stories__/Default.d.ts +3 -0
- package/admin/Dropdown/__stories__/Default.js +75 -0
- package/admin/Dropdown/__stories__/PlacementTop.d.ts +3 -0
- package/admin/Dropdown/__stories__/PlacementTop.js +83 -0
- package/admin/Dropdown/index.d.ts +7 -1
- package/admin/Dropdown/index.js +29 -1
- package/admin/Dropdown/index.mdx +29 -0
- package/admin/FilterSection/index.d.ts +1 -0
- package/admin/FilterSection/index.js +14 -0
- package/admin/Modal/Modal.stories.d.ts +8 -0
- package/admin/Modal/Modal.stories.js +44 -0
- package/admin/Modal/__stories__/AlertDialog.d.ts +3 -0
- package/admin/Modal/__stories__/AlertDialog.js +80 -0
- package/admin/Modal/__stories__/Default.d.ts +3 -0
- package/admin/Modal/__stories__/Default.js +79 -0
- package/admin/Modal/index.mdx +26 -0
- package/admin/Pagination/__stories__/Default.js +57 -16
- package/admin/Pagination/index.mdx +12 -0
- package/admin/index.d.ts +2 -1
- package/admin/index.js +17 -4
- package/api/fetchAPI.js +6 -4
- package/api/index.spec.js +18 -19
- package/api/useResource.js +6 -4
- package/api/useResourceAction.js +6 -4
- package/api/useResourceQuery.js +7 -4
- package/api/utils.js +8 -6
- package/app/Confirmation/Confirmation.mdx +9 -0
- package/app/Footer/Footer.mdx +27 -0
- package/app/Header/index.mdx +18 -0
- package/app/I18nText.js +7 -7
- package/app/NotFound/index.mdx +12 -0
- package/app/PhaseBannerHeader/index.mdx +12 -0
- package/core/Accordion/__stories__/Default.js +17 -1
- package/core/Accordion/__stories__/WithHints.js +17 -1
- package/core/Accordion/index.mdx +16 -84
- package/core/BackLink/index.mdx +16 -0
- package/core/Blockquote/index.mdx +17 -2
- package/core/Breadcrumbs/__stories__/Default.js +13 -1
- package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/core/Button/Button.stories.d.ts +5 -0
- package/core/Button/Button.stories.js +72 -0
- package/core/Button/__stories__/Back.d.ts +4 -0
- package/core/Button/__stories__/Back.js +26 -0
- package/core/Button/__stories__/ButtonLinkButton.d.ts +6 -0
- package/core/Button/__stories__/ButtonLinkButton.js +30 -0
- package/core/Button/__stories__/CallToActionButton.d.ts +6 -0
- package/core/Button/__stories__/CallToActionButton.js +30 -0
- package/core/Button/__stories__/Disabled.d.ts +6 -0
- package/core/Button/__stories__/Disabled.js +27 -0
- package/core/Button/__stories__/GroupingButtonsAndLinks.js +3 -1
- package/core/Button/__stories__/Primary.js +3 -1
- package/core/Button/__stories__/Secondary.js +3 -2
- package/core/Button/__stories__/Warning.js +2 -1
- package/core/Button/__stories__/WithVariantLink.d.ts +6 -0
- package/core/Button/__stories__/WithVariantLink.js +29 -0
- package/core/Button/index.mdx +97 -0
- package/core/Card/Card.stories.d.ts +1 -0
- package/core/Card/Card.stories.js +14 -0
- package/core/Card/__stories__/WithClickableLink.js +1 -3
- 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 +1 -0
- package/core/Checkboxes/Checkbox.stories.js +14 -0
- package/core/Checkboxes/__stories__/ConditionalReveal.js +5 -1
- package/core/Checkboxes/__stories__/Default.js +5 -1
- package/core/Checkboxes/__stories__/MultipleQuestions.js +6 -2
- package/core/Checkboxes/__stories__/NoneAnswer.js +5 -1
- package/core/Checkboxes/__stories__/NoneAnswerWithError.d.ts +3 -0
- package/core/Checkboxes/__stories__/NoneAnswerWithError.js +57 -0
- package/core/Checkboxes/__stories__/WithErrorMessage.js +7 -1
- package/core/Checkboxes/__stories__/WithHint.js +5 -1
- package/core/Checkboxes/checkboxes.mdx +54 -0
- package/core/Confirmation/confirmation.mdx +19 -0
- package/core/DateInput/DateInput.stories.d.ts +1 -0
- package/core/DateInput/DateInput.stories.js +14 -0
- package/core/DateInput/__stories__/Default.js +3 -1
- package/core/DateInput/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/DateInput/__stories__/MultipleQuestions.js +41 -0
- package/core/DateInput/index.mdx +34 -0
- package/core/Details/index.mdx +9 -25
- package/core/ErrorMessage/__stories__/Default.js +1 -1
- package/core/ErrorMessage/index.mdx +21 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
- package/core/ErrorSummary/index.mdx +21 -38
- package/core/FileUpload/__stories__/Default.d.ts +1 -0
- package/core/FileUpload/__stories__/Default.js +4 -2
- package/core/FileUpload/index.mdx +22 -0
- package/core/Link/__stories__/DarkBackground.js +4 -2
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +4 -2
- package/core/Link/__stories__/Default.js +3 -1
- package/core/Link/__stories__/NoUnderline.js +3 -1
- package/core/Link/link.mdx +34 -0
- package/core/List/index.mdx +22 -3
- package/core/Masthead/masthead.mdx +14 -0
- package/core/NavList/NavList.d.ts +1 -14
- package/core/NavList/NavList.js +14 -71
- package/core/NavList/NavList.stories.d.ts +8 -0
- package/core/NavList/NavList.stories.js +44 -0
- package/core/NavList/NavListBase.d.ts +4 -0
- package/core/NavList/NavListBase.js +76 -0
- package/core/NavList/NavListItem.d.ts +1 -0
- package/core/NavList/NavListItem.js +3 -1
- package/core/NavList/NavListItemBase.d.ts +1 -0
- package/core/NavList/NavListItemBase.js +7 -3
- package/core/NavList/NavListSubMenu.d.ts +1 -1
- package/core/NavList/NavListSubMenu.js +2 -2
- package/core/NavList/__stories__/Default.d.ts +3 -0
- package/core/NavList/__stories__/Default.js +69 -0
- package/core/NavList/__stories__/NavHorizontalLayout.d.ts +3 -0
- package/core/NavList/__stories__/NavHorizontalLayout.js +67 -0
- package/core/NavList/index.mdx +22 -1
- package/core/NavList/types.d.ts +14 -0
- package/core/NavList/types.js +5 -0
- package/core/NotificationBanner/index.mdx +13 -60
- package/core/PhaseBanner/PhaseBanner.stories.d.ts +1 -0
- package/core/PhaseBanner/PhaseBanner.stories.js +14 -0
- package/core/PhaseBanner/__stories__/Underlined.d.ts +3 -0
- package/{admin/CopyToClipboardMessage/index.js → core/PhaseBanner/__stories__/Underlined.js} +21 -17
- package/core/PhaseBanner/index.mdx +24 -0
- package/core/Radios/__stories__/ConditionalReveal.js +5 -1
- package/core/Radios/__stories__/Default.js +1 -3
- package/core/Radios/__stories__/Inline.js +5 -1
- package/core/Radios/__stories__/MultipleQuestions.js +7 -3
- package/core/Radios/__stories__/WithErrorMessage.js +7 -1
- package/core/Radios/__stories__/WithHints.js +17 -7
- package/core/Radios/index.mdx +56 -0
- package/core/Select/Select.stories.d.ts +1 -0
- package/core/Select/Select.stories.js +14 -0
- package/core/Select/__stories__/Default.js +2 -2
- package/core/Select/__stories__/DisabledInput.js +3 -1
- package/core/Select/__stories__/WithHint.d.ts +3 -0
- package/core/Select/__stories__/WithHint.js +45 -0
- package/core/Select/index.mdx +42 -0
- package/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/core/SummaryList/SummaryList.stories.js +8 -8
- package/core/SummaryList/__stories__/Default.js +1 -1
- package/core/SummaryList/__stories__/WithActions.d.ts +3 -0
- package/core/SummaryList/__stories__/{SummaryListWithActions.js → WithActions.js} +10 -12
- package/core/SummaryList/__stories__/WithoutBorders.d.ts +3 -0
- package/core/SummaryList/__stories__/{SummaryListWithoutBorders.js → WithoutBorders.js} +5 -5
- package/core/SummaryList/index.mdx +17 -65
- package/core/Table/Table.stories.d.ts +1 -0
- package/core/Table/Table.stories.js +14 -0
- package/core/Table/TableFloatingScroll.d.ts +3 -0
- package/core/Table/TableFloatingScroll.js +105 -0
- package/core/Table/__stories__/DarkVariant.js +1 -1
- package/core/Table/__stories__/Default.js +1 -1
- package/core/Table/__stories__/NoData.js +3 -1
- package/core/Table/__stories__/TableCaptions.d.ts +3 -0
- package/core/Table/__stories__/TableCaptions.js +30 -0
- package/core/Table/__stories__/WithLoader.js +16 -12
- package/core/Table/index.d.ts +1 -0
- package/core/Table/index.js +13 -0
- package/core/Table/index.mdx +59 -0
- package/core/Tabs/__stories__/Default.d.ts +1 -0
- package/core/Tabs/__stories__/Default.js +6 -2
- package/core/Tabs/index.mdx +10 -2
- package/core/TextArea/index.mdx +50 -0
- package/core/TextInput/index.mdx +59 -0
- package/core/VisuallyHidden/__stories__/Default.js +14 -2
- package/core/VisuallyHidden/index.mdx +17 -0
- package/core/WarningText/index.mdx +10 -35
- 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/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/es/admin/CopyToClipboard/__stories__/Banner.js +16 -0
- package/es/admin/CopyToClipboard/__stories__/Default.js +18 -0
- package/{esm/app/CopyToClipboard/__stories__/Default.js → es/admin/CopyToClipboard/__stories__/MultipleCopies.js} +10 -8
- package/es/admin/CopyToClipboard/index.js +3 -2
- package/es/admin/CopyToClipboard/index.mdx +22 -0
- package/es/admin/Drawer/__stories__/Default.js +1 -1
- package/es/admin/Drawer/index.mdx +12 -0
- package/es/admin/Dropdown/Dropdown.stories.js +9 -0
- package/es/admin/Dropdown/__stories__/AlignRight.js +56 -0
- package/es/admin/Dropdown/__stories__/Default.js +48 -0
- package/es/admin/Dropdown/__stories__/PlacementTop.js +56 -0
- package/es/admin/Dropdown/index.js +28 -1
- package/es/admin/Dropdown/index.mdx +29 -0
- package/es/admin/FilterSection/index.js +1 -0
- package/es/admin/Modal/Modal.stories.js +7 -0
- package/es/admin/Modal/__stories__/AlertDialog.js +58 -0
- package/es/admin/Modal/__stories__/Default.js +56 -0
- package/es/admin/Modal/index.mdx +26 -0
- package/es/admin/Pagination/__stories__/Default.js +56 -16
- package/es/admin/Pagination/index.mdx +12 -0
- package/es/admin/index.js +3 -2
- package/es/api/fetchAPI.js +6 -3
- package/es/api/index.spec.js +19 -17
- package/es/api/useResource.js +6 -3
- package/es/api/useResourceAction.js +6 -3
- package/es/api/useResourceQuery.js +6 -3
- package/es/api/utils.js +8 -5
- package/es/app/Confirmation/Confirmation.mdx +9 -0
- package/es/app/Footer/Footer.mdx +27 -0
- package/es/app/Header/index.mdx +18 -0
- package/es/app/I18nText.js +7 -6
- package/es/app/NotFound/index.mdx +12 -0
- package/es/app/PhaseBannerHeader/index.mdx +12 -0
- package/es/core/Accordion/__stories__/Default.js +17 -1
- package/es/core/Accordion/__stories__/WithHints.js +17 -1
- package/es/core/Accordion/index.mdx +16 -84
- package/es/core/BackLink/index.mdx +16 -0
- package/es/core/Blockquote/index.mdx +17 -2
- package/es/core/Breadcrumbs/__stories__/Default.js +13 -1
- package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/es/core/Button/Button.stories.js +7 -1
- package/es/core/Button/__stories__/Back.js +13 -0
- package/es/core/Button/__stories__/ButtonLinkButton.js +17 -0
- package/es/core/Button/__stories__/CallToActionButton.js +17 -0
- package/es/core/Button/__stories__/Disabled.js +14 -0
- package/es/core/Button/__stories__/GroupingButtonsAndLinks.js +3 -1
- package/es/core/Button/__stories__/Primary.js +3 -1
- package/es/core/Button/__stories__/Secondary.js +3 -2
- package/es/core/Button/__stories__/Warning.js +2 -1
- package/es/core/Button/__stories__/WithVariantLink.js +16 -0
- package/es/core/Button/index.mdx +97 -0
- package/es/core/Card/Card.stories.js +2 -1
- package/es/core/Card/__stories__/WithClickableLink.js +2 -3
- package/es/core/Card/__stories__/WithGroupButton.js +11 -0
- package/es/core/Card/card.mdx +78 -0
- package/es/core/Checkboxes/Checkbox.stories.js +1 -0
- package/es/core/Checkboxes/__stories__/ConditionalReveal.js +5 -1
- package/es/core/Checkboxes/__stories__/Default.js +5 -1
- package/es/core/Checkboxes/__stories__/MultipleQuestions.js +6 -2
- package/es/core/Checkboxes/__stories__/NoneAnswer.js +5 -1
- package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +34 -0
- package/es/core/Checkboxes/__stories__/WithErrorMessage.js +7 -1
- package/es/core/Checkboxes/__stories__/WithHint.js +5 -1
- package/es/core/Checkboxes/checkboxes.mdx +54 -0
- package/es/core/Confirmation/confirmation.mdx +19 -0
- package/es/core/DateInput/DateInput.stories.js +1 -0
- package/es/core/DateInput/__stories__/Default.js +3 -1
- package/es/core/DateInput/__stories__/MultipleQuestions.js +20 -0
- package/es/core/DateInput/index.mdx +34 -0
- package/es/core/Details/index.mdx +9 -25
- package/es/core/ErrorMessage/__stories__/Default.js +1 -1
- package/es/core/ErrorMessage/index.mdx +21 -0
- package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
- package/es/core/ErrorSummary/index.mdx +21 -38
- package/es/core/FileUpload/__stories__/Default.js +2 -1
- package/es/core/FileUpload/index.mdx +22 -0
- package/es/core/Link/__stories__/DarkBackground.js +7 -5
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +7 -5
- package/es/core/Link/__stories__/Default.js +5 -3
- package/es/core/Link/__stories__/NoUnderline.js +5 -3
- package/es/core/Link/link.mdx +34 -0
- package/es/core/List/index.mdx +22 -3
- package/es/core/Masthead/masthead.mdx +14 -0
- package/es/core/NavList/NavList.js +11 -64
- package/es/core/NavList/NavList.stories.js +7 -0
- package/es/core/NavList/NavListBase.js +60 -0
- package/es/core/NavList/NavListItem.js +3 -1
- package/es/core/NavList/NavListItemBase.js +7 -3
- package/es/core/NavList/NavListSubMenu.js +1 -1
- package/es/core/NavList/__stories__/Default.js +48 -0
- package/es/core/NavList/__stories__/NavHorizontalLayout.js +46 -0
- package/es/core/NavList/index.mdx +22 -1
- package/es/core/NavList/types.js +1 -0
- package/es/core/NotificationBanner/index.mdx +13 -60
- package/es/core/PhaseBanner/PhaseBanner.stories.js +2 -1
- package/es/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/es/core/PhaseBanner/index.mdx +24 -0
- package/es/core/Radios/__stories__/ConditionalReveal.js +5 -1
- package/es/core/Radios/__stories__/Default.js +1 -2
- package/es/core/Radios/__stories__/Inline.js +5 -1
- package/es/core/Radios/__stories__/MultipleQuestions.js +7 -3
- package/es/core/Radios/__stories__/WithErrorMessage.js +7 -1
- package/es/core/Radios/__stories__/WithHints.js +17 -7
- package/es/core/Radios/index.mdx +56 -0
- package/es/core/Select/Select.stories.js +2 -1
- package/es/core/Select/__stories__/Default.js +5 -4
- package/es/core/Select/__stories__/DisabledInput.js +5 -3
- package/es/core/Select/__stories__/WithHint.js +23 -0
- package/es/core/Select/index.mdx +42 -0
- package/es/core/SummaryList/SummaryList.stories.js +2 -2
- package/es/core/SummaryList/__stories__/Default.js +1 -1
- 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 +1 -0
- package/es/core/Table/TableFloatingScroll.js +85 -0
- package/es/core/Table/__stories__/DarkVariant.js +1 -1
- package/es/core/Table/__stories__/Default.js +1 -1
- package/es/core/Table/__stories__/NoData.js +3 -1
- package/es/core/Table/__stories__/TableCaptions.js +17 -0
- package/es/core/Table/__stories__/WithLoader.js +12 -10
- package/es/core/Table/index.js +2 -1
- package/es/core/Table/index.mdx +59 -0
- package/es/core/Tabs/__stories__/Default.js +3 -2
- package/es/core/Tabs/index.mdx +10 -2
- package/es/core/TextArea/index.mdx +50 -0
- package/es/core/TextInput/index.mdx +59 -0
- package/es/core/VisuallyHidden/__stories__/Default.js +9 -5
- package/es/core/VisuallyHidden/index.mdx +17 -0
- package/es/core/WarningText/index.mdx +10 -35
- package/es/govgr/Footer/index.mdx +4 -4
- package/es/introduction.md +4 -1
- package/es/layouts/Basic/Content/index.mdx +0 -12
- package/es/layouts/Basic/Main/index.mdx +0 -10
- package/es/layouts/Basic/Masthead/index.mdx +0 -12
- package/es/layouts/Basic/Side/index.mdx +0 -12
- package/es/layouts/Basic/Top/index.mdx +0 -12
- package/es/layouts/Basic/index.mdx +1 -15
- package/es/layouts/Grid/Grid.stories.js +2 -1
- package/es/layouts/Grid/__stories__/Default.js +26 -6
- package/es/layouts/Grid/__stories__/Inline.js +75 -0
- package/es/layouts/Grid/index.js +1 -0
- package/es/layouts/index.js +2 -0
- package/es/registry.js +66 -30
- package/es/test-utils/delay.js +6 -3
- package/es/typography/Caption/index.mdx +16 -0
- package/es/typography/Hint/index.mdx +16 -0
- package/es/typography/NormalText/index.mdx +26 -0
- package/es/typography/Paragraph/index.mdx +30 -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/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/esm/admin/CopyToClipboard/__stories__/Banner.js +16 -0
- package/esm/admin/CopyToClipboard/__stories__/Default.js +18 -0
- package/{es/app/CopyToClipboard/__stories__/Default.js → esm/admin/CopyToClipboard/__stories__/MultipleCopies.js} +10 -8
- package/esm/admin/CopyToClipboard/index.js +3 -2
- package/esm/admin/CopyToClipboard/index.mdx +22 -0
- package/esm/admin/Drawer/__stories__/Default.js +1 -1
- package/esm/admin/Drawer/index.mdx +12 -0
- package/esm/admin/Dropdown/Dropdown.stories.js +9 -0
- package/esm/admin/Dropdown/__stories__/AlignRight.js +56 -0
- package/esm/admin/Dropdown/__stories__/Default.js +48 -0
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +56 -0
- package/esm/admin/Dropdown/index.js +28 -1
- package/esm/admin/Dropdown/index.mdx +29 -0
- package/esm/admin/FilterSection/index.js +1 -0
- package/esm/admin/Modal/Modal.stories.js +7 -0
- package/esm/admin/Modal/__stories__/AlertDialog.js +58 -0
- package/esm/admin/Modal/__stories__/Default.js +56 -0
- package/esm/admin/Modal/index.mdx +26 -0
- package/esm/admin/Pagination/__stories__/Default.js +56 -16
- package/esm/admin/Pagination/index.mdx +12 -0
- package/esm/admin/index.js +3 -2
- package/esm/api/fetchAPI.js +6 -3
- package/esm/api/index.spec.js +19 -17
- package/esm/api/useResource.js +6 -3
- package/esm/api/useResourceAction.js +6 -3
- package/esm/api/useResourceQuery.js +6 -3
- package/esm/api/utils.js +8 -5
- package/esm/app/Confirmation/Confirmation.mdx +9 -0
- package/esm/app/Footer/Footer.mdx +27 -0
- package/esm/app/Header/index.mdx +18 -0
- package/esm/app/I18nText.js +7 -6
- package/esm/app/NotFound/index.mdx +12 -0
- package/esm/app/PhaseBannerHeader/index.mdx +12 -0
- package/esm/core/Accordion/__stories__/Default.js +17 -1
- package/esm/core/Accordion/__stories__/WithHints.js +17 -1
- package/esm/core/Accordion/index.mdx +16 -84
- package/esm/core/BackLink/index.mdx +16 -0
- package/esm/core/Blockquote/index.mdx +17 -2
- package/esm/core/Breadcrumbs/__stories__/Default.js +13 -1
- package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/esm/core/Button/Button.stories.js +7 -1
- package/esm/core/Button/__stories__/Back.js +13 -0
- package/esm/core/Button/__stories__/ButtonLinkButton.js +17 -0
- package/esm/core/Button/__stories__/CallToActionButton.js +17 -0
- package/esm/core/Button/__stories__/Disabled.js +14 -0
- package/esm/core/Button/__stories__/GroupingButtonsAndLinks.js +3 -1
- package/esm/core/Button/__stories__/Primary.js +3 -1
- package/esm/core/Button/__stories__/Secondary.js +3 -2
- package/esm/core/Button/__stories__/Warning.js +2 -1
- package/esm/core/Button/__stories__/WithVariantLink.js +16 -0
- package/esm/core/Button/index.mdx +97 -0
- package/esm/core/Card/Card.stories.js +2 -1
- package/esm/core/Card/__stories__/WithClickableLink.js +2 -3
- package/esm/core/Card/__stories__/WithGroupButton.js +11 -0
- package/esm/core/Card/card.mdx +78 -0
- package/esm/core/Checkboxes/Checkbox.stories.js +1 -0
- package/esm/core/Checkboxes/__stories__/ConditionalReveal.js +5 -1
- package/esm/core/Checkboxes/__stories__/Default.js +5 -1
- package/esm/core/Checkboxes/__stories__/MultipleQuestions.js +6 -2
- package/esm/core/Checkboxes/__stories__/NoneAnswer.js +5 -1
- package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +34 -0
- package/esm/core/Checkboxes/__stories__/WithErrorMessage.js +7 -1
- package/esm/core/Checkboxes/__stories__/WithHint.js +5 -1
- package/esm/core/Checkboxes/checkboxes.mdx +54 -0
- package/esm/core/Confirmation/confirmation.mdx +19 -0
- package/esm/core/DateInput/DateInput.stories.js +1 -0
- package/esm/core/DateInput/__stories__/Default.js +3 -1
- package/esm/core/DateInput/__stories__/MultipleQuestions.js +20 -0
- package/esm/core/DateInput/index.mdx +34 -0
- package/esm/core/Details/index.mdx +9 -25
- package/esm/core/ErrorMessage/__stories__/Default.js +1 -1
- package/esm/core/ErrorMessage/index.mdx +21 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +1 -1
- package/esm/core/ErrorSummary/index.mdx +21 -38
- package/esm/core/FileUpload/__stories__/Default.js +2 -1
- package/esm/core/FileUpload/index.mdx +22 -0
- package/esm/core/Link/__stories__/DarkBackground.js +7 -5
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +7 -5
- package/esm/core/Link/__stories__/Default.js +5 -3
- package/esm/core/Link/__stories__/NoUnderline.js +5 -3
- package/esm/core/Link/link.mdx +34 -0
- package/esm/core/List/index.mdx +22 -3
- package/esm/core/Masthead/masthead.mdx +14 -0
- package/esm/core/NavList/NavList.js +11 -64
- package/esm/core/NavList/NavList.stories.js +7 -0
- package/esm/core/NavList/NavListBase.js +60 -0
- package/esm/core/NavList/NavListItem.js +3 -1
- package/esm/core/NavList/NavListItemBase.js +7 -3
- package/esm/core/NavList/NavListSubMenu.js +1 -1
- package/esm/core/NavList/__stories__/Default.js +48 -0
- package/esm/core/NavList/__stories__/NavHorizontalLayout.js +46 -0
- package/esm/core/NavList/index.mdx +22 -1
- package/esm/core/NavList/types.js +1 -0
- package/esm/core/NotificationBanner/index.mdx +13 -60
- package/esm/core/PhaseBanner/PhaseBanner.stories.js +2 -1
- package/esm/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/esm/core/PhaseBanner/index.mdx +24 -0
- package/esm/core/Radios/__stories__/ConditionalReveal.js +5 -1
- package/esm/core/Radios/__stories__/Default.js +1 -2
- package/esm/core/Radios/__stories__/Inline.js +5 -1
- package/esm/core/Radios/__stories__/MultipleQuestions.js +7 -3
- package/esm/core/Radios/__stories__/WithErrorMessage.js +7 -1
- package/esm/core/Radios/__stories__/WithHints.js +17 -7
- package/esm/core/Radios/index.mdx +56 -0
- package/esm/core/Select/Select.stories.js +2 -1
- package/esm/core/Select/__stories__/Default.js +5 -4
- package/esm/core/Select/__stories__/DisabledInput.js +5 -3
- package/esm/core/Select/__stories__/WithHint.js +23 -0
- package/esm/core/Select/index.mdx +42 -0
- package/esm/core/SummaryList/SummaryList.stories.js +2 -2
- package/esm/core/SummaryList/__stories__/Default.js +1 -1
- 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 +1 -0
- package/esm/core/Table/TableFloatingScroll.js +85 -0
- package/esm/core/Table/__stories__/DarkVariant.js +1 -1
- package/esm/core/Table/__stories__/Default.js +1 -1
- package/esm/core/Table/__stories__/NoData.js +3 -1
- package/esm/core/Table/__stories__/TableCaptions.js +17 -0
- package/esm/core/Table/__stories__/WithLoader.js +12 -10
- package/esm/core/Table/index.js +2 -1
- package/esm/core/Table/index.mdx +59 -0
- package/esm/core/Tabs/__stories__/Default.js +3 -2
- package/esm/core/Tabs/index.mdx +10 -2
- package/esm/core/TextArea/index.mdx +50 -0
- package/esm/core/TextInput/index.mdx +59 -0
- package/esm/core/VisuallyHidden/__stories__/Default.js +9 -5
- package/esm/core/VisuallyHidden/index.mdx +17 -0
- package/esm/core/WarningText/index.mdx +10 -35
- package/esm/govgr/Footer/index.mdx +4 -4
- package/esm/index.js +1 -1
- package/esm/introduction.md +4 -1
- package/esm/layouts/Basic/Content/index.mdx +0 -12
- package/esm/layouts/Basic/Main/index.mdx +0 -10
- package/esm/layouts/Basic/Masthead/index.mdx +0 -12
- package/esm/layouts/Basic/Side/index.mdx +0 -12
- package/esm/layouts/Basic/Top/index.mdx +0 -12
- package/esm/layouts/Basic/index.mdx +1 -15
- package/esm/layouts/Grid/Grid.stories.js +2 -1
- package/esm/layouts/Grid/__stories__/Default.js +26 -6
- package/esm/layouts/Grid/__stories__/Inline.js +75 -0
- package/esm/layouts/Grid/index.js +1 -0
- package/esm/layouts/index.js +2 -0
- package/esm/registry.js +66 -30
- package/esm/test-utils/delay.js +6 -3
- package/esm/typography/Caption/index.mdx +16 -0
- package/esm/typography/Hint/index.mdx +16 -0
- package/esm/typography/NormalText/index.mdx +26 -0
- package/esm/typography/Paragraph/index.mdx +30 -0
- package/esm/typography/Title/index.mdx +12 -0
- package/govgr/Footer/index.mdx +4 -4
- package/introduction.md +4 -1
- package/layouts/Basic/Content/index.mdx +0 -12
- package/layouts/Basic/Main/index.mdx +0 -10
- package/layouts/Basic/Masthead/index.mdx +0 -12
- package/layouts/Basic/Side/index.mdx +0 -12
- package/layouts/Basic/Top/index.mdx +0 -12
- package/layouts/Basic/index.mdx +1 -15
- package/layouts/Grid/Grid.stories.d.ts +1 -0
- package/layouts/Grid/Grid.stories.js +14 -0
- package/layouts/Grid/__stories__/Default.js +26 -6
- package/layouts/Grid/__stories__/Inline.d.ts +3 -0
- package/layouts/Grid/__stories__/Inline.js +88 -0
- package/layouts/Grid/index.d.ts +1 -0
- package/layouts/Grid/index.js +6 -0
- package/layouts/index.d.ts +2 -0
- package/layouts/index.js +22 -1
- package/package.json +3 -3
- package/registry.d.ts +33 -15
- package/registry.js +99 -45
- package/test-utils/delay.js +5 -3
- package/typography/Caption/index.mdx +16 -0
- package/typography/Hint/index.mdx +16 -0
- package/typography/NormalText/index.mdx +26 -0
- package/typography/Paragraph/index.mdx +30 -0
- package/typography/Title/index.mdx +12 -0
- package/admin/CopyToClipboardMessage/index.d.ts +0 -3
- package/app/CopyToClipboard/CopyToClipboard.stories.d.ts +0 -7
- package/app/CopyToClipboard/CopyToClipboard.stories.js +0 -30
- package/app/CopyToClipboard/index.d.ts +0 -9
- package/app/CopyToClipboard/index.js +0 -69
- package/app/NotFound/NotFound.mdx +0 -5
- package/app/QrCodeScanner/index.mdx +0 -7
- package/core/Button/Button.mdx +0 -55
- package/core/SummaryList/__stories__/SummaryListWithActions.d.ts +0 -3
- package/core/SummaryList/__stories__/SummaryListWithoutBorders.d.ts +0 -3
- package/es/admin/CopyToClipboardMessage/index.js +0 -3
- package/es/app/CopyToClipboard/CopyToClipboard.stories.js +0 -6
- package/es/app/CopyToClipboard/index.js +0 -45
- package/es/app/NotFound/NotFound.mdx +0 -5
- package/es/app/QrCodeScanner/index.mdx +0 -7
- package/es/core/Button/Button.mdx +0 -55
- package/es/core/SummaryList/__stories__/SummaryListWithActions.js +0 -21
- package/es/core/SummaryList/__stories__/SummaryListWithoutBorders.js +0 -11
- package/esm/admin/CopyToClipboardMessage/index.js +0 -3
- package/esm/app/CopyToClipboard/CopyToClipboard.stories.js +0 -6
- package/esm/app/CopyToClipboard/index.js +0 -45
- package/esm/app/NotFound/NotFound.mdx +0 -5
- package/esm/app/QrCodeScanner/index.mdx +0 -7
- package/esm/core/Button/Button.mdx +0 -55
- package/esm/core/SummaryList/__stories__/SummaryListWithActions.js +0 -21
- package/esm/core/SummaryList/__stories__/SummaryListWithoutBorders.js +0 -11
|
@@ -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;
|
|
@@ -3,7 +3,7 @@ import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, Ta
|
|
|
3
3
|
|
|
4
4
|
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, {
|
|
5
5
|
variant: "dark"
|
|
6
|
-
}, /*#__PURE__*/React.createElement(TableCaption, null, "
|
|
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
7
|
|
|
8
8
|
export var DarkVariant = function DarkVariant() {
|
|
9
9
|
return _ref;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/react-core';
|
|
3
3
|
|
|
4
|
-
var _ref = /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, null, /*#__PURE__*/React.createElement(TableCaption, null, "
|
|
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
5
|
|
|
6
6
|
export var Default = function Default() {
|
|
7
7
|
return _ref;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableNoDataRow } from '@digigov/react-core';
|
|
3
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,
|
|
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, {
|
|
5
|
+
"aria-colspan": 100
|
|
6
|
+
}, "No data"))));
|
|
5
7
|
|
|
6
8
|
export var NoData = function NoData() {
|
|
7
9
|
return _ref;
|
|
@@ -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;
|
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { Button, TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell, TableNoDataRow } from '@digigov/react-core';
|
|
4
|
-
import
|
|
4
|
+
import TableLoaderBackground from '@digigov/ui/admin/TableLoaderBackground';
|
|
5
|
+
import LoaderContainer from '@digigov/ui/admin/LoaderContainer';
|
|
6
|
+
import CircularProgress from '@digigov/ui/admin/CircularProgress';
|
|
5
7
|
var data = [{
|
|
6
8
|
name: 'Dimitris',
|
|
7
9
|
job: 'carpenter',
|
|
8
10
|
year: '5 years',
|
|
9
|
-
salary: '10.80
|
|
11
|
+
salary: '10.80€'
|
|
10
12
|
}, {
|
|
11
13
|
name: 'Katerina',
|
|
12
14
|
job: 'engineer',
|
|
13
15
|
year: '6 years',
|
|
14
|
-
salary: '19.60
|
|
16
|
+
salary: '19.60€'
|
|
15
17
|
}, {
|
|
16
18
|
name: 'Vasilis',
|
|
17
19
|
job: 'taxi driver',
|
|
18
20
|
year: '10 years',
|
|
19
|
-
salary: '12.83
|
|
21
|
+
salary: '12.83€'
|
|
20
22
|
}, {
|
|
21
23
|
name: 'Giorgos',
|
|
22
24
|
job: 'yoga master',
|
|
23
25
|
year: '15 years',
|
|
24
|
-
salary: '27.80
|
|
26
|
+
salary: '27.80€'
|
|
25
27
|
}, {
|
|
26
28
|
name: 'Giannis',
|
|
27
29
|
job: 'unemployed',
|
|
28
30
|
year: '5 years',
|
|
29
|
-
salary: '00.00
|
|
31
|
+
salary: '00.00€'
|
|
30
32
|
}, {
|
|
31
33
|
name: 'Katerina',
|
|
32
34
|
job: 'car driver',
|
|
33
35
|
year: '10 years',
|
|
34
|
-
salary: '11.80
|
|
36
|
+
salary: '11.80€'
|
|
35
37
|
}, {
|
|
36
38
|
name: 'Thanasis',
|
|
37
39
|
job: 'babysitter',
|
|
38
40
|
year: '5 years',
|
|
39
|
-
salary: '15.80
|
|
41
|
+
salary: '15.80€'
|
|
40
42
|
}];
|
|
41
43
|
|
|
42
44
|
var _ref = /*#__PURE__*/React.createElement(LoaderContainer, null, /*#__PURE__*/React.createElement(CircularProgress, null));
|
|
@@ -72,9 +74,9 @@ export var WithLoader = function WithLoader() {
|
|
|
72
74
|
}) : _ref5))), /*#__PURE__*/React.createElement(Button, {
|
|
73
75
|
onClick: function onClick() {
|
|
74
76
|
setLoading(true);
|
|
75
|
-
setTimeout(
|
|
77
|
+
/* setTimeout(() => {
|
|
76
78
|
setLoading(false);
|
|
77
|
-
}, 7000);
|
|
79
|
+
}, 7000); */
|
|
78
80
|
}
|
|
79
81
|
}, "\u03A0\u03C1\u03BF\u03C3\u03B8\u03B7\u03BA\u03B7"));
|
|
80
82
|
};
|
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';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: table
|
|
3
|
+
title: Table
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Table
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
import Table from '@digigov/ui/core/Table';
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## How to use
|
|
13
|
+
|
|
14
|
+
<Story packageName="@digigov/ui" component="core/Table" story="Default.tsx" />
|
|
15
|
+
|
|
16
|
+
### Table with dark header
|
|
17
|
+
|
|
18
|
+
<Story packageName="@digigov/ui" component="core/Table" story="DarkVariant.tsx" />
|
|
19
|
+
|
|
20
|
+
### Table captions
|
|
21
|
+
|
|
22
|
+
Use the `<TableCaption>` element to describe a table in the same way you would use a heading. A caption helps users find, navigate and understand tables.
|
|
23
|
+
|
|
24
|
+
<Story packageName="@digigov/ui" component="core/Table" story="TableCaptions.tsx" />
|
|
25
|
+
|
|
26
|
+
### Numbers in a table
|
|
27
|
+
|
|
28
|
+
<Story packageName="@digigov/ui" component="core/Table" story="NumericDataType.tsx" />
|
|
29
|
+
|
|
30
|
+
### Zebra rows
|
|
31
|
+
|
|
32
|
+
<Story packageName="@digigov/ui" component="core/Table" story="ZebraProp.tsx" />
|
|
33
|
+
|
|
34
|
+
### Vertical lines
|
|
35
|
+
|
|
36
|
+
<Story packageName="@digigov/ui" component="core/Table" story="VerticalBorders.tsx" />
|
|
37
|
+
|
|
38
|
+
### Dense tables
|
|
39
|
+
|
|
40
|
+
<Story packageName="@digigov/ui" component="core/Table" story="Densed.tsx" />
|
|
41
|
+
|
|
42
|
+
### Custom column widths
|
|
43
|
+
|
|
44
|
+
<Story packageName="@digigov/ui" component="core/Table" story="DefinedWidth.tsx" />
|
|
45
|
+
|
|
46
|
+
### No data
|
|
47
|
+
|
|
48
|
+
<Story packageName="@digigov/ui" component="core/Table" story="NoData.tsx" />
|
|
49
|
+
|
|
50
|
+
### Using loader
|
|
51
|
+
|
|
52
|
+
<Story packageName="@digigov/ui" component="core/Table" story="WithLoader.tsx" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Accessibility
|
|
56
|
+
|
|
57
|
+
You can read more about the accessibility patterns used in our Table
|
|
58
|
+
implementation in the ARIA Authoring Practices Guide (APG) at
|
|
59
|
+
[Table](https://www.w3.org/WAI/ARIA/apg/patterns/table/) section.
|
|
@@ -3,7 +3,7 @@ import { Tabs, TabsList, TabsListItem, TabsPanel, useTabs } from '@digigov/ui/co
|
|
|
3
3
|
import Title from '@digigov/ui/typography/Title';
|
|
4
4
|
import VisuallyHidden from '@digigov/react-core/VisuallyHidden';
|
|
5
5
|
import SummaryList, { SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction } from '@digigov/ui/core/SummaryList';
|
|
6
|
-
import Link from '
|
|
6
|
+
import Link from '@digigov/ui/core/Link';
|
|
7
7
|
|
|
8
8
|
var _ref = /*#__PURE__*/React.createElement(Title, {
|
|
9
9
|
size: "md",
|
|
@@ -25,4 +25,5 @@ export function Default() {
|
|
|
25
25
|
panel = _useTabs.panel;
|
|
26
26
|
|
|
27
27
|
return /*#__PURE__*/React.createElement(Tabs, null, /*#__PURE__*/React.createElement(TabsList, null, /*#__PURE__*/React.createElement(TabsListItem, register('a'), "\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03BB\u03AF\u03C4\u03B7"), /*#__PURE__*/React.createElement(TabsListItem, register('b'), "Y\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(TabsPanel, panel('a'), _ref, _ref2), /*#__PURE__*/React.createElement(TabsPanel, panel('b'), _ref3, "\u03A0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03C9\u03BD"));
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
|
+
export default Default;
|
package/es/core/Tabs/index.mdx
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
+
id: tabs
|
|
2
3
|
title: Tabs
|
|
3
|
-
parent: docs/ui/components
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
# Tabs
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
```bash
|
|
6
11
|
import Tabs from '@digigov/ui/core/Tabs';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## How to use
|
|
7
15
|
|
|
8
|
-
|
|
16
|
+
<Story packageName="@digigov/ui" component="core/Tabs" story="Default.tsx" />
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: text-area
|
|
3
|
+
title: TextArea
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# TextArea
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
import TextArea from '@digigov/ui/core/TextArea';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How to use
|
|
16
|
+
|
|
17
|
+
<Story packageName="@digigov/ui" component="core/TextArea" story="Default.tsx" />
|
|
18
|
+
|
|
19
|
+
### Use appropriately-sized textareas
|
|
20
|
+
|
|
21
|
+
<Story packageName="@digigov/ui" component="core/TextArea" story="WithDeclaredRows.tsx" />
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### If you’re asking more than one question on the page
|
|
25
|
+
|
|
26
|
+
<Story packageName="@digigov/ui" component="core/TextArea" story="MultipleQuestions.tsx" />
|
|
27
|
+
|
|
28
|
+
### Limiting the number of characters
|
|
29
|
+
|
|
30
|
+
If there’s a good reason to limit the number of characters users can enter, you can use the character count component.
|
|
31
|
+
|
|
32
|
+
<Story packageName="@digigov/ui" component="core/TextArea" story="LimitedCharacters.tsx" />
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Hint text
|
|
36
|
+
|
|
37
|
+
Use hint text for help that’s relevant to the majority of users, like how their information will be used, or where to find it.
|
|
38
|
+
|
|
39
|
+
<Story packageName="@digigov/ui" component="core/TextArea" story="WithHint.tsx" />
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Error message
|
|
43
|
+
|
|
44
|
+
Error messages should be styled like this:
|
|
45
|
+
|
|
46
|
+
<Story packageName="@digigov/ui" component="core/TextArea" story="WithErrorMessage.tsx" />
|
|
47
|
+
|
|
48
|
+
### Disabled input
|
|
49
|
+
|
|
50
|
+
<Story packageName="@digigov/ui" component="core/TextArea" story="DisabledInput.tsx" />
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: text-input
|
|
3
|
+
title: TextInput
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# TextInput
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
import TextInput from '@digigov/ui/core/TextInput';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How to use
|
|
16
|
+
|
|
17
|
+
<Story packageName="@digigov/ui" component="core/TextInput" story="Default.tsx" />
|
|
18
|
+
|
|
19
|
+
### If you’re asking more than one question on the page
|
|
20
|
+
|
|
21
|
+
<Story packageName="@digigov/ui" component="core/TextInput" story="MultipleQuestions.tsx" />
|
|
22
|
+
|
|
23
|
+
### Fixed width inputs
|
|
24
|
+
|
|
25
|
+
Use fixed width inputs for content that has a specific, known length. Postcode inputs should be postcode-sized, telephone number inputs should be telephone number-sized.
|
|
26
|
+
|
|
27
|
+
The widths are designed for specific character lengths and to be consistent across a range of browsers. They include extra padding to fit icons that some browsers might insert into the input (for example to show or generate a password).
|
|
28
|
+
|
|
29
|
+
On fixed width inputs, the width will remain fixed on all screens unless it is wider than the viewport, in which case it will shrink to fit.
|
|
30
|
+
|
|
31
|
+
<Story packageName="@digigov/ui" component="core/TextInput" story="FixedWidths.tsx" />
|
|
32
|
+
|
|
33
|
+
### Fluid width inputs
|
|
34
|
+
|
|
35
|
+
Fluid width inputs will resize with the viewport.
|
|
36
|
+
|
|
37
|
+
<Story packageName="@digigov/ui" component="core/TextInput" story="FluidWidths.tsx" />
|
|
38
|
+
|
|
39
|
+
### Hint text
|
|
40
|
+
|
|
41
|
+
Use hint text for help that’s relevant to the majority of users, like how their information will be used, or where to find it.
|
|
42
|
+
|
|
43
|
+
<Story packageName="@digigov/ui" component="core/TextInput" story="WithHint.tsx" />
|
|
44
|
+
|
|
45
|
+
## Numbers
|
|
46
|
+
|
|
47
|
+
### Asking for whole numbers
|
|
48
|
+
|
|
49
|
+
<Story packageName="@digigov/ui" component="core/TextInput" story="AskingForNumbers.tsx" />
|
|
50
|
+
|
|
51
|
+
### Error message
|
|
52
|
+
|
|
53
|
+
Error messages should be styled like this:
|
|
54
|
+
|
|
55
|
+
<Story packageName="@digigov/ui" component="core/TextInput" story="WithErrorMessage.tsx" />
|
|
56
|
+
|
|
57
|
+
### Disabled input
|
|
58
|
+
|
|
59
|
+
<Story packageName="@digigov/ui" component="core/TextInput" story="DisabledInput.tsx" />
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import VisuallyHidden from
|
|
3
|
-
import { Paragraph } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import VisuallyHidden from '@digigov/ui/core/VisuallyHidden';
|
|
3
|
+
import { Paragraph } from '@digigov/ui/typography';
|
|
4
|
+
import Button, { ButtonGroup } from '@digigov/ui/core/Button';
|
|
5
|
+
import Link from '@digigov/ui/core/Link';
|
|
4
6
|
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(Paragraph, null, "
|
|
7
|
+
var _ref = /*#__PURE__*/React.createElement(Paragraph, null, "Some element below is visually hidden. It's only accessible for screen readers and any tools parsing the DOM.");
|
|
6
8
|
|
|
7
|
-
var _ref2 = /*#__PURE__*/React.createElement(
|
|
9
|
+
var _ref2 = /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, null, " \u0394\u03BF\u03BA\u03B9\u03BC\u03AE"), /*#__PURE__*/React.createElement(Link, {
|
|
10
|
+
href: "#"
|
|
11
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE", /*#__PURE__*/React.createElement(VisuallyHidden, null, " \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2")));
|
|
8
12
|
|
|
9
13
|
export var Default = function Default() {
|
|
10
14
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: visually-hidden
|
|
3
|
+
title: VisuallyHidden
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use this component to convey meaning to people using screen readers, helping
|
|
7
|
+
them access information and context.
|
|
8
|
+
|
|
9
|
+
VisuallyHidden is a web accessibility technique used to hide content from the visual client, but keep it readable for screen readers.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
import VisuallyHidden from '@digigov/ui/core/VisuallyHidden';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How to use
|
|
16
|
+
|
|
17
|
+
<Story packageName="@digigov/ui" component="core/VisuallyHidden" story="Default.tsx" />
|
|
@@ -1,44 +1,19 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
id: warning-text
|
|
3
|
+
title: WarningText
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# WarningText
|
|
7
|
+
|
|
7
8
|
|
|
8
|
-
import WarningText from '@digigov/ui/core/WarningText';
|
|
9
9
|
|
|
10
|
-
```
|
|
10
|
+
```bash
|
|
11
11
|
import WarningText from '@digigov/ui/core/WarningText';
|
|
12
|
-
|
|
13
|
-
function CustomWarning (props){
|
|
14
|
-
return (
|
|
15
|
-
<WarningText><Paragraph>Action Label</Paragraph></WarningText>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
export CustomWarningText
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
<br />
|
|
23
|
-
|
|
24
|
-
## When to use this component
|
|
25
|
-
|
|
26
|
-
Use the warning text component when you need to warn users about something
|
|
27
|
-
important, such as legal consequences of an action, or lack of action that
|
|
28
|
-
they might take.
|
|
29
|
-
|
|
30
|
-
## How it works
|
|
31
|
-
|
|
32
|
-
Write a descriptive message for the users that warns them about the possible
|
|
33
|
-
complications of the current action.
|
|
34
|
-
|
|
35
|
-
## API
|
|
36
|
-
|
|
37
|
-
### Properties
|
|
12
|
+
```
|
|
38
13
|
|
|
39
|
-
|
|
40
|
-
<br />
|
|
14
|
+
## How to use
|
|
41
15
|
|
|
42
|
-
|
|
16
|
+
You might need to rewrite the hidden text ("Προσοχή" in the example) to make it appropriate for your context.
|
|
17
|
+
This will be used by screen-readers.
|
|
43
18
|
|
|
44
|
-
<
|
|
19
|
+
<Story packageName="@digigov/ui" component="core/WarningText" story="Default.tsx" />
|
|
@@ -5,7 +5,7 @@ parent: docs/ui/components
|
|
|
5
5
|
|
|
6
6
|
## Default Footer
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
#
|
|
9
9
|
|
|
10
10
|
```jsx
|
|
11
11
|
import Bottom from '@digigov/ui/layouts/Basic';
|
|
@@ -22,7 +22,7 @@ import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
|
22
22
|
|
|
23
23
|
## Customizable Footer
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
#
|
|
26
26
|
|
|
27
27
|
```jsx
|
|
28
28
|
import Copyright from '@digigov/ui/govgr/Footer/Copyright';
|
|
@@ -45,7 +45,7 @@ import LicenseCCSA from '@digigov/ui/govgr/Footer/LicenseCCSA';
|
|
|
45
45
|
|
|
46
46
|
## Using custom grid
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
#
|
|
49
49
|
|
|
50
50
|
```jsx
|
|
51
51
|
import Grid from '@material-ui/core/Grid';
|
|
@@ -72,7 +72,7 @@ import HellenicRepublicLogo from '@digigov/ui/govgr/Footer/HellenicRepublicLogo'
|
|
|
72
72
|
|
|
73
73
|
## Asking users for feedback
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
#
|
|
76
76
|
|
|
77
77
|
```jsx
|
|
78
78
|
import { Feedback } from '@digigov/ui/govgr/Footer';
|
package/es/introduction.md
CHANGED
|
@@ -48,15 +48,3 @@ export Side
|
|
|
48
48
|
## How it works
|
|
49
49
|
|
|
50
50
|
The Content component is used as a wrapper for the Main and Side components.
|
|
51
|
-
|
|
52
|
-
## API
|
|
53
|
-
|
|
54
|
-
### Properties
|
|
55
|
-
|
|
56
|
-
<PropsDoc data={Content.__doc__} />
|
|
57
|
-
|
|
58
|
-
<br />
|
|
59
|
-
|
|
60
|
-
### Styles
|
|
61
|
-
|
|
62
|
-
<StylesDoc data={Content.__doc__} />
|
|
@@ -50,13 +50,3 @@ export Main
|
|
|
50
50
|
|
|
51
51
|
The Main component is used to include tha main information of the page,
|
|
52
52
|
spanning two-thirds of the page width.
|
|
53
|
-
|
|
54
|
-
## API
|
|
55
|
-
|
|
56
|
-
### Properties
|
|
57
|
-
|
|
58
|
-
<PropsDoc data={Main.__doc__} />
|
|
59
|
-
|
|
60
|
-
### Styles
|
|
61
|
-
|
|
62
|
-
<StylesDoc data={Main.__doc__} />
|
|
@@ -57,15 +57,3 @@ export Masthead
|
|
|
57
57
|
## How it works
|
|
58
58
|
|
|
59
59
|
The Masthead component is a set of features or layout that marks the page and delivers identifying information to web users.
|
|
60
|
-
|
|
61
|
-
## API
|
|
62
|
-
|
|
63
|
-
### Properties
|
|
64
|
-
|
|
65
|
-
<PropsDoc data={Masthead.__doc__} />
|
|
66
|
-
|
|
67
|
-
<br />
|
|
68
|
-
|
|
69
|
-
### Styles
|
|
70
|
-
|
|
71
|
-
<StylesDoc data={Masthead.__doc__} />
|
|
@@ -55,15 +55,3 @@ export Side
|
|
|
55
55
|
|
|
56
56
|
The Side component covers the right one-third of the page width.
|
|
57
57
|
Note that the Side component is optional, so there could be occasions that Side is empty.
|
|
58
|
-
|
|
59
|
-
## API
|
|
60
|
-
|
|
61
|
-
### Properties
|
|
62
|
-
|
|
63
|
-
<PropsDoc data={Side.__doc__} />
|
|
64
|
-
|
|
65
|
-
<br />
|
|
66
|
-
|
|
67
|
-
### Styles
|
|
68
|
-
|
|
69
|
-
<StylesDoc data={Side.__doc__} />
|