@digigov/ui 0.21.3 → 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 +15 -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/Drawer/__stories__/Default.js +1 -1
- package/admin/Drawer/index.mdx +12 -0
- package/admin/FilterSection/index.d.ts +1 -0
- package/admin/FilterSection/index.js +14 -0
- package/admin/Pagination/__stories__/Default.js +38 -14
- 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/CopyToClipboard/CopyToClipboard.stories.d.ts +2 -0
- package/app/CopyToClipboard/CopyToClipboard.stories.js +28 -0
- package/app/CopyToClipboard/__stories__/Banner.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/Banner.js +30 -0
- package/app/CopyToClipboard/__stories__/Default.js +4 -114
- package/app/CopyToClipboard/__stories__/MultipleCopies.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/MultipleCopies.js +142 -0
- package/app/CopyToClipboard/index.mdx +22 -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/index.mdx +13 -86
- package/core/BackLink/index.mdx +16 -0
- package/core/Blockquote/index.mdx +17 -2
- package/core/Breadcrumbs/__stories__/Default.js +9 -1
- package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- 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 +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__/NoneAnswerWithError.d.ts +3 -0
- package/core/Checkboxes/__stories__/NoneAnswerWithError.js +51 -0
- 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 +1 -1
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
- package/core/Link/link.mdx +30 -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 +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/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/core/PhaseBanner/__stories__/Underlined.js +34 -0
- package/core/PhaseBanner/index.mdx +24 -0
- package/core/Radios/__stories__/Default.js +1 -3
- package/core/Radios/__stories__/MultipleQuestions.js +1 -1
- 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__/WithHint.d.ts +3 -0
- package/core/Select/__stories__/WithHint.js +45 -0
- package/core/Select/index.mdx +36 -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/__stories__/DarkVariant.js +1 -1
- package/core/Table/__stories__/Default.js +1 -1
- package/core/Table/__stories__/TableCaptions.d.ts +3 -0
- package/core/Table/__stories__/TableCaptions.js +30 -0
- package/core/Table/index.mdx +52 -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/Drawer/__stories__/Default.js +1 -1
- package/es/admin/Drawer/index.mdx +12 -0
- package/es/admin/FilterSection/index.js +1 -0
- package/es/admin/Pagination/__stories__/Default.js +37 -14
- 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/CopyToClipboard/CopyToClipboard.stories.js +3 -1
- package/es/app/CopyToClipboard/__stories__/Banner.js +16 -0
- package/es/app/CopyToClipboard/__stories__/Default.js +5 -107
- package/es/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
- package/es/app/CopyToClipboard/index.mdx +22 -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/index.mdx +13 -86
- package/es/core/BackLink/index.mdx +16 -0
- package/es/core/Blockquote/index.mdx +17 -2
- package/es/core/Breadcrumbs/__stories__/Default.js +9 -1
- package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- 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 +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__/NoneAnswerWithError.js +28 -0
- 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 +1 -1
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
- package/es/core/Link/link.mdx +30 -0
- package/es/core/List/index.mdx +22 -3
- 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/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__/Default.js +1 -2
- package/es/core/Radios/__stories__/MultipleQuestions.js +1 -1
- package/es/core/Radios/index.mdx +56 -0
- package/es/core/Select/Select.stories.js +2 -1
- package/es/core/Select/__stories__/WithHint.js +22 -0
- package/es/core/Select/index.mdx +36 -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/__stories__/DarkVariant.js +1 -1
- package/es/core/Table/__stories__/Default.js +1 -1
- package/es/core/Table/__stories__/TableCaptions.js +17 -0
- package/es/core/Table/index.mdx +52 -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/Grid/Grid.stories.js +2 -1
- 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/registry.js +57 -17
- 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/Drawer/__stories__/Default.js +1 -1
- package/esm/admin/Drawer/index.mdx +12 -0
- package/esm/admin/FilterSection/index.js +1 -0
- package/esm/admin/Pagination/__stories__/Default.js +37 -14
- 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/CopyToClipboard/CopyToClipboard.stories.js +3 -1
- package/esm/app/CopyToClipboard/__stories__/Banner.js +16 -0
- package/esm/app/CopyToClipboard/__stories__/Default.js +5 -107
- package/esm/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
- package/esm/app/CopyToClipboard/index.mdx +22 -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/index.mdx +13 -86
- package/esm/core/BackLink/index.mdx +16 -0
- package/esm/core/Blockquote/index.mdx +17 -2
- package/esm/core/Breadcrumbs/__stories__/Default.js +9 -1
- package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- 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 +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__/NoneAnswerWithError.js +28 -0
- 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 +1 -1
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
- package/esm/core/Link/link.mdx +30 -0
- package/esm/core/List/index.mdx +22 -3
- 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/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__/Default.js +1 -2
- package/esm/core/Radios/__stories__/MultipleQuestions.js +1 -1
- package/esm/core/Radios/index.mdx +56 -0
- package/esm/core/Select/Select.stories.js +2 -1
- package/esm/core/Select/__stories__/WithHint.js +22 -0
- package/esm/core/Select/index.mdx +36 -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/__stories__/DarkVariant.js +1 -1
- package/esm/core/Table/__stories__/Default.js +1 -1
- package/esm/core/Table/__stories__/TableCaptions.js +17 -0
- package/esm/core/Table/index.mdx +52 -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/Grid/Grid.stories.js +2 -1
- 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/registry.js +57 -17
- 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/Grid/Grid.stories.d.ts +1 -0
- package/layouts/Grid/Grid.stories.js +14 -0
- package/layouts/Grid/__stories__/Inline.d.ts +3 -0
- package/layouts/Grid/__stories__/Inline.js +68 -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 +28 -8
- package/registry.js +85 -25
- 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/app/NotFound/NotFound.mdx +0 -5
- package/app/QrCodeScanner/index.mdx +0 -7
- package/core/SummaryList/__stories__/SummaryListWithActions.d.ts +0 -3
- package/core/SummaryList/__stories__/SummaryListWithoutBorders.d.ts +0 -3
- package/es/app/NotFound/NotFound.mdx +0 -5
- package/es/app/QrCodeScanner/index.mdx +0 -7
- package/es/core/SummaryList/__stories__/SummaryListWithActions.js +0 -21
- package/es/core/SummaryList/__stories__/SummaryListWithoutBorders.js +0 -11
- package/esm/app/NotFound/NotFound.mdx +0 -5
- package/esm/app/QrCodeScanner/index.mdx +0 -7
- package/esm/core/SummaryList/__stories__/SummaryListWithActions.js +0 -21
- package/esm/core/SummaryList/__stories__/SummaryListWithoutBorders.js +0 -11
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Select, { SelectOption } from "@digigov/ui/core/Select";
|
|
3
|
+
import Field from '@digigov/ui/core/Field';
|
|
4
|
+
import Label from '@digigov/react-core/Label';
|
|
5
|
+
import { Hint } from "@digigov/ui/typography"; // import LabelTitle from '@digigov/react-core/LabelTitle';
|
|
6
|
+
|
|
7
|
+
var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(Label, null, "\u03A4\u03B1\u03BE\u03B9\u03BD\u03CC\u03BC\u03B7\u03C3\u03B7", /*#__PURE__*/React.createElement(Hint, null, "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C4\u03B7\u03BD \u03C4\u03B1\u03BE\u03B9\u03BC\u03CC\u03BD\u03B7\u03C3\u03B7 \u03C0\u03BF\u03C5 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5."), /*#__PURE__*/React.createElement(Select, {
|
|
8
|
+
name: "select-list"
|
|
9
|
+
}, /*#__PURE__*/React.createElement(SelectOption, {
|
|
10
|
+
value: "dim"
|
|
11
|
+
}, "\u0394\u03B7\u03BC\u03BF\u03C6\u03B9\u03BB\u03AE"), /*#__PURE__*/React.createElement(SelectOption, {
|
|
12
|
+
value: "kat"
|
|
13
|
+
}, "\u03A0\u03C1\u03CC\u03C3\u03C6\u03B1\u03C4\u03B1"), /*#__PURE__*/React.createElement(SelectOption, {
|
|
14
|
+
value: "kat"
|
|
15
|
+
}, "\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B5\u03C2 \u03C0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AD\u03C2"), /*#__PURE__*/React.createElement(SelectOption, {
|
|
16
|
+
value: "kat"
|
|
17
|
+
}, "\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1 \u03C3\u03C7\u03CC\u03BB\u03B9\u03B1"))));
|
|
18
|
+
|
|
19
|
+
export var Default = function Default() {
|
|
20
|
+
return _ref;
|
|
21
|
+
};
|
|
22
|
+
export default Default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: select
|
|
3
|
+
title: Select
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Select
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
import Select from '@digigov/ui/core/Select';
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## How to use
|
|
17
|
+
|
|
18
|
+
<Story packageName="@digigov/ui" component="core/Select" story="Default.tsx" />
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Select with hints
|
|
22
|
+
|
|
23
|
+
You can add hints to select items to provide additional information about the options.
|
|
24
|
+
|
|
25
|
+
<Story packageName="@digigov/ui" component="core/Select" story="WithHint.tsx" />
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Disabled input
|
|
30
|
+
|
|
31
|
+
Error messages should be styled like this:
|
|
32
|
+
|
|
33
|
+
<Story packageName="@digigov/ui" component="core/Select" story="DisabledInput.tsx" />
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
@@ -5,5 +5,5 @@ export default {
|
|
|
5
5
|
component: SummaryList
|
|
6
6
|
};
|
|
7
7
|
export * from './__stories__/Default';
|
|
8
|
-
export * from './__stories__/
|
|
9
|
-
export * from './__stories__/
|
|
8
|
+
export * from './__stories__/WithActions';
|
|
9
|
+
export * from './__stories__/WithoutBorders';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import SummaryList, { SummaryListItem, SummaryListItemAction, SummaryListItemKey, SummaryListItemValue } from '@digigov/ui/core/SummaryList';
|
|
3
3
|
|
|
4
|
-
var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__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")));
|
|
5
5
|
|
|
6
6
|
export var Default = function Default() {
|
|
7
7
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SummaryList, { SummaryListItem, SummaryListItemAction, SummaryListItemKey, SummaryListItemValue } from '@digigov/ui/core/SummaryList';
|
|
3
|
+
import VisuallyHidden from '@digigov/ui/core/VisuallyHidden';
|
|
4
|
+
import Link from '@digigov/ui/core/Link';
|
|
5
|
+
import { ButtonGroup, Button } from '@digigov/ui/core';
|
|
6
|
+
|
|
7
|
+
var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__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(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, {
|
|
8
|
+
href: "#"
|
|
9
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u039F\u03BD\u03CC\u03BC\u03B1\u03C4\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(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")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
|
|
12
|
+
variant: "link"
|
|
13
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5")), /*#__PURE__*/React.createElement(Button, {
|
|
14
|
+
variant: "link"
|
|
15
|
+
}, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5"))))));
|
|
16
|
+
|
|
17
|
+
export var WithActions = function WithActions() {
|
|
18
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
|
|
19
|
+
};
|
|
20
|
+
export default WithActions;
|
|
@@ -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" />
|
|
@@ -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;
|
|
@@ -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,52 @@
|
|
|
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" />
|
|
@@ -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/esm/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/esm/index.js
CHANGED
package/esm/introduction.md
CHANGED