@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,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.MultipleCopies = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _CopyToClipboard = _interopRequireDefault(require("@digigov/ui/app/CopyToClipboard"));
|
|
13
|
+
|
|
14
|
+
var _admin = require("@digigov/react-extensions/admin");
|
|
15
|
+
|
|
16
|
+
var _reactCore = require("@digigov/react-core");
|
|
17
|
+
|
|
18
|
+
var _Accordion = require("@digigov/ui/core/Accordion");
|
|
19
|
+
|
|
20
|
+
var _ui = require("@digigov/ui");
|
|
21
|
+
|
|
22
|
+
var _Title = _interopRequireDefault(require("@digigov/ui/typography/Title"));
|
|
23
|
+
|
|
24
|
+
var _Paragraph = _interopRequireDefault(require("@digigov/ui/typography/Paragraph"));
|
|
25
|
+
|
|
26
|
+
var _Footer = _interopRequireDefault(require("@digigov/ui/govgr/Footer"));
|
|
27
|
+
|
|
28
|
+
var _Logo = _interopRequireDefault(require("@digigov/ui/govgr/Logo"));
|
|
29
|
+
|
|
30
|
+
var _Grid = _interopRequireDefault(require("@digigov/ui/layouts/Grid"));
|
|
31
|
+
|
|
32
|
+
var fields = [{
|
|
33
|
+
name: 'Θέμα',
|
|
34
|
+
value: 'Αίτηση Ληξιαρχικής Πράξης Γάμου'
|
|
35
|
+
}, {
|
|
36
|
+
name: 'Ημερομηνία',
|
|
37
|
+
value: '09/03/2002 14:54:36'
|
|
38
|
+
}, {
|
|
39
|
+
name: 'Κωδικός επαλήθευσης',
|
|
40
|
+
value: 'NdH-EYREW1yd1LUhEOssx4A',
|
|
41
|
+
actions: ['Προβολή', 'Αντιγραφή συνδέσμου']
|
|
42
|
+
}, {
|
|
43
|
+
name: 'Κατάσταση',
|
|
44
|
+
value: 'Εισερχόμενη',
|
|
45
|
+
actions: ['Αλλάγή']
|
|
46
|
+
}, {
|
|
47
|
+
name: 'Χειριστής',
|
|
48
|
+
value: 'Δεν έχει οριστεί χειριστής',
|
|
49
|
+
actions: ['Ανάθεση']
|
|
50
|
+
}];
|
|
51
|
+
|
|
52
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_admin.AdminHeader, null, /*#__PURE__*/_react["default"].createElement(_admin.AdminHeaderSection, null, /*#__PURE__*/_react["default"].createElement(_ui.HeaderContent, null, /*#__PURE__*/_react["default"].createElement(_Logo["default"], null), /*#__PURE__*/_react["default"].createElement(_ui.HeaderTitle, null, "\u0398\u03C5\u03C1\u03AF\u03B4\u03B5\u03C2")), /*#__PURE__*/_react["default"].createElement(_ui.HeaderSubtitle, null, /*#__PURE__*/_react["default"].createElement(_admin.Dropdown, {
|
|
53
|
+
align: "right"
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement(_admin.DropdownButton, {
|
|
55
|
+
variant: "link"
|
|
56
|
+
}, "\u0388\u03C7\u03B5\u03C4\u03B5 \u03C3\u03C5\u03BD\u03B4\u03B5\u03B8\u03B5\u03AF \u03C9\u03C2 \u039A\u03B1\u03BB\u03BB\u03B9\u03CC\u03C0\u03B7 \u03A0\u03B1\u03C0\u03B1\u03B4\u03BF\u03C0\u03BF\u03CD\u03BB\u03BF\u03C5", /*#__PURE__*/_react["default"].createElement(_reactCore.MoreVertIcon, null)), /*#__PURE__*/_react["default"].createElement(_admin.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_reactCore.NavVertical, null, /*#__PURE__*/_react["default"].createElement(_reactCore.NavVerticalItem, {
|
|
57
|
+
href: "#"
|
|
58
|
+
}, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/_react["default"].createElement(_reactCore.NavVerticalItem, {
|
|
59
|
+
href: "#"
|
|
60
|
+
}, "\u039C\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7"), /*#__PURE__*/_react["default"].createElement(_reactCore.NavVerticalItem, {
|
|
61
|
+
href: "#"
|
|
62
|
+
}, "\u039F\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03AE \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))))));
|
|
63
|
+
|
|
64
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
65
|
+
item: true,
|
|
66
|
+
md: 3,
|
|
67
|
+
lg: 2
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_admin.AdminAside, null, /*#__PURE__*/_react["default"].createElement(_admin.AdminTopSection, null, /*#__PURE__*/_react["default"].createElement(_ui.BackButton, null, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03B8\u03C5\u03C1\u03AF\u03B4\u03B1\u03C2"), /*#__PURE__*/_react["default"].createElement(_Title["default"], {
|
|
69
|
+
size: "sm"
|
|
70
|
+
}, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]"), /*#__PURE__*/_react["default"].createElement(_Paragraph["default"], null, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]")), /*#__PURE__*/_react["default"].createElement(_ui.SectionBreak, {
|
|
71
|
+
visible: true,
|
|
72
|
+
size: "m"
|
|
73
|
+
}), /*#__PURE__*/_react["default"].createElement(_ui.Button, null, "\u039D\u03AD\u03B1 \u03C5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7"), /*#__PURE__*/_react["default"].createElement(_Accordion.Accordion, null, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionItem, null, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionSectionSummary, null, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionSectionSummaryHeading, null, "\u03A5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"))), /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionItem, null, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionSectionSummary, null, /*#__PURE__*/_react["default"].createElement(_Accordion.AccordionSectionSummaryHeading, null, "\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7")), /*#__PURE__*/_react["default"].createElement(_reactCore.NavVertical, null, /*#__PURE__*/_react["default"].createElement(_reactCore.NavVerticalItem, null, "\u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"), /*#__PURE__*/_react["default"].createElement(_reactCore.NavVerticalItem, null, "\u0391\u03B9\u03C4\u03AE\u03BC\u03B1\u03C4\u03B1"))))));
|
|
74
|
+
|
|
75
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Title["default"], {
|
|
76
|
+
size: "xl"
|
|
77
|
+
}, "# \u03A5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 4");
|
|
78
|
+
|
|
79
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_ui.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
80
|
+
text: "AAABBBFFFLLL",
|
|
81
|
+
variant: "tooltip",
|
|
82
|
+
message: "text successfuly copied!"
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, null, "\u0391\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7")), /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
84
|
+
color: "secondary"
|
|
85
|
+
}, "\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE"), /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
86
|
+
color: "secondary"
|
|
87
|
+
}, "\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7"));
|
|
88
|
+
|
|
89
|
+
var _ref5 = /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
90
|
+
item: true,
|
|
91
|
+
xs: 12
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
93
|
+
text: "AAABBBFFFLLL",
|
|
94
|
+
variant: "banner",
|
|
95
|
+
message: "text successfuly copied!"
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
97
|
+
color: "secondary"
|
|
98
|
+
}, "Banner example")));
|
|
99
|
+
|
|
100
|
+
var _ref6 = /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
101
|
+
item: true,
|
|
102
|
+
xs: 12
|
|
103
|
+
}, /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
104
|
+
text: "AAABBBFFFLLL",
|
|
105
|
+
variant: "tooltip",
|
|
106
|
+
message: "text successfuly copied!"
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
108
|
+
color: "secondary"
|
|
109
|
+
}, "Tooltip example")));
|
|
110
|
+
|
|
111
|
+
var _ref7 = /*#__PURE__*/_react["default"].createElement(_Footer["default"], null);
|
|
112
|
+
|
|
113
|
+
var MultipleCopies = function MultipleCopies() {
|
|
114
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_admin.AdminLayout, null, _ref, /*#__PURE__*/_react["default"].createElement(_admin.AdminContainer, null, _ref2, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
115
|
+
item: true,
|
|
116
|
+
md: 9,
|
|
117
|
+
lg: 10
|
|
118
|
+
}, /*#__PURE__*/_react["default"].createElement(_admin.AdminMain, null, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
119
|
+
container: true,
|
|
120
|
+
spacing: 4
|
|
121
|
+
}, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
122
|
+
item: true,
|
|
123
|
+
xs: 12
|
|
124
|
+
}, _ref3, _ref4, /*#__PURE__*/_react["default"].createElement(_ui.SummaryList, null, fields && fields.map(function (field, index) {
|
|
125
|
+
return /*#__PURE__*/_react["default"].createElement(_ui.SummaryListItem, {
|
|
126
|
+
key: index
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement(_ui.SummaryListItemKey, null, field.name), /*#__PURE__*/_react["default"].createElement(_ui.SummaryListItemValue, null, field.value), /*#__PURE__*/_react["default"].createElement(_ui.SummaryListItemAction, null, /*#__PURE__*/_react["default"].createElement(_ui.ButtonGroup, null, field.actions && field.actions.map(function (action, subIndex) {
|
|
128
|
+
return /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
129
|
+
text: "MMMNNNKKKO",
|
|
130
|
+
variant: "tooltip",
|
|
131
|
+
key: subIndex
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
133
|
+
key: subIndex,
|
|
134
|
+
variant: "link"
|
|
135
|
+
}, action));
|
|
136
|
+
}))));
|
|
137
|
+
}))), _ref5, _ref6)))), _ref7));
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
exports.MultipleCopies = MultipleCopies;
|
|
141
|
+
var _default = MultipleCopies;
|
|
142
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: copy-to-clipboard
|
|
3
|
+
title: CopyToClipboard
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## How to use
|
|
11
|
+
|
|
12
|
+
### Default
|
|
13
|
+
|
|
14
|
+
<Story packageName="@digigov/ui" component="app/CopyToClipboard" story="default.tsx" />
|
|
15
|
+
|
|
16
|
+
### Banner
|
|
17
|
+
|
|
18
|
+
<Story packageName="@digigov/ui" component="app/CopyToClipboard" story="banner.tsx" />
|
|
19
|
+
|
|
20
|
+
### Layout example
|
|
21
|
+
|
|
22
|
+
<Story packageName="@digigov/ui" component="app/CopyToClipboard" story="MultipleCopies.tsx" />
|
package/app/Footer/Footer.mdx
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
1
|
---
|
|
2
|
+
id: footer
|
|
2
3
|
title: Footer
|
|
3
4
|
---
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
import Footer from '@digigov/ui/app/Footer';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## How to use
|
|
11
|
+
|
|
12
|
+
### Default footer
|
|
13
|
+
|
|
14
|
+
<Story packageName="@digigov/ui" component="app/Footer" story="Default.tsx" />
|
|
15
|
+
|
|
16
|
+
### Footer with logos
|
|
17
|
+
|
|
18
|
+
<Story packageName="@digigov/ui" component="app/Footer" story="FooterWithLogo.tsx" />
|
|
19
|
+
|
|
20
|
+
### Footer with secondary navigation
|
|
21
|
+
|
|
22
|
+
<Story packageName="@digigov/ui" component="app/Footer" story="FooterWithSecondaryNavigation.tsx" />
|
|
23
|
+
|
|
24
|
+
### Footer with links to meta information
|
|
25
|
+
|
|
26
|
+
<Story packageName="@digigov/ui" component="app/Footer" story="FooterWithLink.tsx" />
|
|
27
|
+
|
|
28
|
+
### All inclusive footer
|
|
29
|
+
|
|
30
|
+
<Story packageName="@digigov/ui" component="app/Footer" story="FooterAllInclusive.tsx" />
|
package/app/Header/index.mdx
CHANGED
|
@@ -3,7 +3,25 @@ id: header
|
|
|
3
3
|
title: Header
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
import Header from '@digigov/ui/app/Header';
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## How to use
|
|
12
|
+
|
|
13
|
+
### Default header
|
|
14
|
+
|
|
6
15
|
<Story title="### Default" packageName="@digigov/ui" component="app/Header" story="Default.tsx" />
|
|
16
|
+
|
|
17
|
+
### Header with service name
|
|
18
|
+
|
|
7
19
|
<Story packageName="@digigov/ui" component="app/Header" story="WithServiceName.tsx" />
|
|
20
|
+
|
|
21
|
+
### Header with service logo and service name
|
|
22
|
+
|
|
8
23
|
<Story packageName="@digigov/ui" component="app/Header" story="WithServiceNameAndLogo.tsx" />
|
|
24
|
+
|
|
25
|
+
### Default header with navigation
|
|
26
|
+
|
|
9
27
|
<Story packageName="@digigov/ui" component="app/Header" story="WithNavigation.tsx" />
|
package/app/I18nText.js
CHANGED
|
@@ -17,17 +17,17 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
17
17
|
|
|
18
18
|
var _i18n = require("@digigov/ui/app/i18n");
|
|
19
19
|
|
|
20
|
-
var _app = require("@digigov/ui/app");
|
|
21
|
-
|
|
22
20
|
var isObject = function isObject(value) {
|
|
23
21
|
return !!(value && (0, _typeof2["default"])(value) === 'object' && !Array.isArray(value));
|
|
24
22
|
};
|
|
25
23
|
|
|
26
24
|
var resultTranslate = function resultTranslate(translation, children) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
if (typeof DOMParser !== 'undefined') {
|
|
26
|
+
var parser = new DOMParser();
|
|
27
|
+
var childrenCloned = (0, _toConsumableArray2["default"])(children);
|
|
28
|
+
var doc1 = parser.parseFromString("<div>".concat(translation.replace(/<([0-9])>/g, '<t$1>').replace(/<\/([0-9])>/g, '</t$1>'), "</div>"), 'application/xml');
|
|
29
|
+
return recursiveReplace(childrenCloned, doc1.children[0].childNodes);
|
|
30
|
+
}
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
var recursiveReplace = function recursiveReplace(original, translation) {
|
|
@@ -75,7 +75,7 @@ var I18nText = function I18nText(_ref) {
|
|
|
75
75
|
var translation = (0, _i18n.defaultTranslate)(i18nKey);
|
|
76
76
|
var result = resultTranslate(translation, children);
|
|
77
77
|
|
|
78
|
-
var _useTranslation = (0,
|
|
78
|
+
var _useTranslation = (0, _i18n.useTranslation)(),
|
|
79
79
|
Trans = _useTranslation.Trans;
|
|
80
80
|
|
|
81
81
|
if (Trans) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: phase-banner-header
|
|
3
|
+
title: PhaseBannerHeader
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
import PhaseBannerHeader from '@digigov/ui/app/PhaseBannerHeader';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## How to use
|
|
11
|
+
|
|
12
|
+
<Story packageName="@digigov/ui" component="app/PhaseBannerHeader" story="Default.tsx" />
|
package/core/Accordion/index.mdx
CHANGED
|
@@ -1,101 +1,28 @@
|
|
|
1
1
|
---
|
|
2
|
+
id: accordion
|
|
2
3
|
title: Accordion
|
|
3
|
-
parent: docs/ui/components
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
Accordion,
|
|
8
|
-
AccordionItem,
|
|
9
|
-
AccordionItemDetails,
|
|
10
|
-
AccordionItemSummary,
|
|
11
|
-
} from '@digigov/ui/core/Accordion';
|
|
12
6
|
|
|
13
|
-
|
|
7
|
+
# Accordion
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
<AccordionItem>
|
|
17
|
-
<AccordionItemSummary>Βασικες Ρυθμισεις</AccordionItemSummary>
|
|
18
|
-
<AccordionItemDetails>Περιεχομενο Βασικων Ρυθμισεων</AccordionItemDetails>
|
|
19
|
-
</AccordionItem>
|
|
20
|
-
<AccordionItem>
|
|
21
|
-
<AccordionItemSummary>Υπολοιπες Ρυθμισεις</AccordionItemSummary>
|
|
22
|
-
<AccordionItemDetails>Περιεχομενο Υπολοιπων Ρυθμισεων</AccordionItemDetails>
|
|
23
|
-
</AccordionItem>
|
|
24
|
-
</Accordion>
|
|
9
|
+
This component is currently experimental because adding a summary line with more than a few short words will likely make the button text too long, particularly for users of screen readers.
|
|
25
10
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```jsx live path=core/Accordion/index.tsx
|
|
29
|
-
import {
|
|
30
|
-
Accordion,
|
|
31
|
-
AccordionItem,
|
|
32
|
-
AccordionItemDetails,
|
|
33
|
-
AccordionItemSummary,
|
|
34
|
-
} from 'govgr/components/Accordion';
|
|
35
|
-
|
|
36
|
-
function CustomAccordion() {
|
|
37
|
-
return (
|
|
38
|
-
<Accordion>
|
|
39
|
-
<AccordionItem>
|
|
40
|
-
<AccordionItemSummary>Βασικες Ρυθμισεις</AccordionItemSummary>
|
|
41
|
-
<AccordionItemDetails>
|
|
42
|
-
Περιεχομενο Βασικων Ρυθμισεων
|
|
43
|
-
</AccordionItemDetails>
|
|
44
|
-
</AccordionItem>
|
|
45
|
-
<AccordionItem>
|
|
46
|
-
<AccordionItemSummary>Υπολοιπες Ρυθμισεις</AccordionItemSummary>
|
|
47
|
-
<AccordionItemDetails>
|
|
48
|
-
Περιεχομενο Υπολοιπων Ρυθμισεων
|
|
49
|
-
</AccordionItemDetails>
|
|
50
|
-
</AccordionItem>
|
|
51
|
-
</Accordion>
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## When to use this component
|
|
57
|
-
|
|
58
|
-
Only use an accordion if there’s evidence it’s helpful for users to:
|
|
59
|
-
|
|
60
|
-
- see an overview of multiple, related sections of content
|
|
61
|
-
- show and hide those sections as needed
|
|
11
|
+
The accordion component lets users show and hide sections of related content on a page.
|
|
62
12
|
|
|
63
|
-
|
|
13
|
+
|
|
64
14
|
|
|
65
|
-
## When not to use this component
|
|
66
15
|
|
|
67
|
-
|
|
16
|
+
```bash
|
|
17
|
+
import Accordion from '@digigov/ui/core/Accordion';
|
|
18
|
+
```
|
|
68
19
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
- simplify and reduce the amount of content
|
|
72
|
-
- split the content across multiple pages
|
|
73
|
-
- keep the content on a single page, separated by headings
|
|
74
|
-
- use a list of links to let users navigate quickly to specific sections of content
|
|
75
|
-
|
|
76
|
-
Do not use the accordion component if the amount of content it would need to contain will make the page slow to load.
|
|
77
|
-
|
|
78
|
-
Accordions work best for simple content and links. Do not use accordions to split up a series of questions into sections. Use separate pages instead.
|
|
79
|
-
|
|
80
|
-
## API
|
|
20
|
+
## How to use
|
|
81
21
|
|
|
82
|
-
|
|
22
|
+
<Story packageName="@digigov/ui" component="core/Accordion" story="Default.tsx" />
|
|
83
23
|
|
|
84
|
-
|
|
85
|
-
<br />
|
|
86
|
-
<PropsDoc data={AccordionItem.__doc__} />
|
|
87
|
-
<br />
|
|
88
|
-
<PropsDoc data={AccordionItemSummary.__doc__} />
|
|
89
|
-
<br />
|
|
90
|
-
<PropsDoc data={AccordionItemDetails.__doc__} />
|
|
24
|
+
### Accordion with Hints
|
|
91
25
|
|
|
92
|
-
|
|
26
|
+
Accordions hide content, so the labels need to be clear. If necessary, you can add a summary line to help users understand what is in the section.
|
|
93
27
|
|
|
94
|
-
<
|
|
95
|
-
<br />
|
|
96
|
-
<StylesDoc data={AccordionItem.__doc__} />
|
|
97
|
-
<br />
|
|
98
|
-
<StylesDoc data={AccordionItemSummary.__doc__} />
|
|
99
|
-
<br />
|
|
100
|
-
<StylesDoc data={AccordionItemDetails.__doc__} />
|
|
101
|
-
<br />
|
|
28
|
+
<Story packageName="@digigov/ui" component="core/Accordion" story="WithHints.tsx" />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: back-link
|
|
3
|
+
title: Back Link
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Back Link
|
|
7
|
+
|
|
8
|
+
Use the back link component to help users go back to the previous page in a multi-page transaction.
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
import BackLink from "@digigov/ui/core/BackLink";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## How to use
|
|
15
|
+
|
|
16
|
+
<Story packageName="@digigov/ui" component="core/BackLink" story="Default.tsx" />
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
id: blockquote
|
|
3
3
|
title: Blockquote
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
# Blockquote
|
|
8
|
+
|
|
9
|
+
This component is currently experimental because adding a summary line with more than a few short words will likely make the button text too long, particularly for users of screen readers.
|
|
10
|
+
|
|
11
|
+
The Blockquote component lets users show and hide sections of related content on a page.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
```bash
|
|
6
17
|
import Blockquote from '@digigov/ui/core/Blockquote';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## How to use
|
|
21
|
+
|
|
22
|
+
<Story packageName="@digigov/ui" component="core/Blockquote" story="Default.tsx" />
|
|
7
23
|
|
|
8
|
-
## Example
|
|
@@ -17,7 +17,15 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
|
|
20
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_Breadcrumbs["default"], null, /*#__PURE__*/_react["default"].createElement(_Breadcrumbs.BreadcrumbsList, null, /*#__PURE__*/_react["default"].createElement(_Breadcrumbs.BreadcrumbsListItem,
|
|
20
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Breadcrumbs["default"], null, /*#__PURE__*/_react["default"].createElement(_Breadcrumbs.BreadcrumbsList, null, /*#__PURE__*/_react["default"].createElement(_Breadcrumbs.BreadcrumbsListItem, {
|
|
21
|
+
href: "#"
|
|
22
|
+
}, "\u0391\u03C1\u03C7\u03B9\u03BA\u03AE"), /*#__PURE__*/_react["default"].createElement(_Breadcrumbs.BreadcrumbsListItem, {
|
|
23
|
+
href: "#"
|
|
24
|
+
}, "\u03A5\u03B3\u03B5\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03C0\u03C1\u03CC\u03BD\u03BF\u03B9\u03B1"), /*#__PURE__*/_react["default"].createElement(_Breadcrumbs.BreadcrumbsListItem, {
|
|
25
|
+
href: "#"
|
|
26
|
+
}, "\u03A6\u03AC\u03BA\u03B5\u03BB\u03BF\u03C2 \u03C5\u03B3\u03B5\u03AF\u03B1\u03C2"), /*#__PURE__*/_react["default"].createElement(_Breadcrumbs.BreadcrumbsListItem, {
|
|
27
|
+
href: "#"
|
|
28
|
+
}, "\u0386\u03C5\u03BB\u03B7 \u03C3\u03C5\u03BD\u03C4\u03B1\u03B3\u03BF\u03B3\u03C1\u03AC\u03C6\u03B7\u03C3\u03B7")));
|
|
21
29
|
|
|
22
30
|
var Default = function Default() {
|
|
23
31
|
return _ref;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: breadcrumbs
|
|
3
|
+
title: Breadcrumbs
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Breadcrumbs
|
|
8
|
+
|
|
9
|
+
This component is currently experimental because adding a summary line with more than a few short words will likely make the button text too long, particularly for users of screen readers.
|
|
10
|
+
|
|
11
|
+
The Breadcrumbs component lets users show and hide sections of related content on a page.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
import Breadcrumbs from '@digigov/ui/core/Breadcrumbs';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## How to use
|
|
21
|
+
|
|
22
|
+
<Story packageName="@digigov/ui" component="core/Breadcrumbs" story="Default.tsx" />
|
package/core/Button/Button.mdx
CHANGED
|
@@ -9,18 +9,53 @@ Use the button component to help users carry out an action like starting an
|
|
|
9
9
|
application or saving their information.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
import Button from '@digigov/ui/core/Button';
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## How to use
|
|
19
|
+
|
|
20
|
+
### Default buttons
|
|
21
|
+
|
|
22
|
+
Use a default button for the main call to action on a page.
|
|
19
23
|
|
|
20
24
|
<Story packageName="@digigov/ui" component="core/Button" story="Primary.tsx" />
|
|
21
25
|
|
|
26
|
+
|
|
27
|
+
### Start buttons
|
|
28
|
+
Use a start button for the main call to action on your service’s start page. Start buttons do not submit form data, so they use a link tag rather than a button tag.
|
|
29
|
+
|
|
30
|
+
<Story packageName="@digigov/ui" component="core/Button" story="CallToActionButton.tsx" />
|
|
31
|
+
|
|
32
|
+
### Secondary buttons
|
|
33
|
+
Use secondary buttons for secondary calls to action on a page.
|
|
34
|
+
|
|
22
35
|
<Story packageName="@digigov/ui" component="core/Button" story="Secondary.tsx" />
|
|
23
36
|
|
|
37
|
+
### Warning buttons
|
|
38
|
+
Warning buttons are designed to make users think carefully before they use them. They only work if used very sparingly. Most services should not need one.
|
|
39
|
+
|
|
40
|
+
<Story packageName="@digigov/ui" component="core/Button" story="Warning.tsx" />
|
|
41
|
+
|
|
42
|
+
### Disable buttons
|
|
43
|
+
Disabled buttons have poor contrast and can confuse some users, so avoid them if possible.
|
|
44
|
+
|
|
45
|
+
<Story packageName="@digigov/ui" component="core/Button" story="Disabled.tsx" />
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Grouping buttons
|
|
49
|
+
Use a button group when two or more buttons are placed together.
|
|
50
|
+
|
|
51
|
+
<Story packageName="@digigov/ui" component="core/Button" story="GroupingButtons.tsx" />
|
|
52
|
+
|
|
53
|
+
Any links within a button group will automatically align with the buttons.
|
|
54
|
+
|
|
55
|
+
<Story packageName="@digigov/ui" component="core/Button" story="GroupingButtonsAndLinks.tsx" />
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
24
59
|
Write button text in sentence case, describing the action it performs. For
|
|
25
60
|
example:'
|
|
26
61
|
|
|
@@ -9,3 +9,5 @@ export * from './__stories__/Secondary';
|
|
|
9
9
|
export * from './__stories__/Warning';
|
|
10
10
|
export * from './__stories__/GroupingButtons';
|
|
11
11
|
export * from './__stories__/GroupingButtonsAndLinks';
|
|
12
|
+
export * from './__stories__/CallToActionButton';
|
|
13
|
+
export * from './__stories__/Disabled';
|
|
@@ -79,6 +79,34 @@ Object.keys(_GroupingButtonsAndLinks).forEach(function (key) {
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
|
+
|
|
83
|
+
var _CallToActionButton = require("./__stories__/CallToActionButton");
|
|
84
|
+
|
|
85
|
+
Object.keys(_CallToActionButton).forEach(function (key) {
|
|
86
|
+
if (key === "default" || key === "__esModule") return;
|
|
87
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
88
|
+
if (key in exports && exports[key] === _CallToActionButton[key]) return;
|
|
89
|
+
Object.defineProperty(exports, key, {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function get() {
|
|
92
|
+
return _CallToActionButton[key];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
var _Disabled = require("./__stories__/Disabled");
|
|
98
|
+
|
|
99
|
+
Object.keys(_Disabled).forEach(function (key) {
|
|
100
|
+
if (key === "default" || key === "__esModule") return;
|
|
101
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
102
|
+
if (key in exports && exports[key] === _Disabled[key]) return;
|
|
103
|
+
Object.defineProperty(exports, key, {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function get() {
|
|
106
|
+
return _Disabled[key];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
82
110
|
var _default = {
|
|
83
111
|
title: 'Digigov UI/Core/Button',
|
|
84
112
|
component: _Button["default"]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.CallToActionButton = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Button = require("@digigov/ui/core/Button");
|
|
13
|
+
|
|
14
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Button.CallToAction, null, "\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1");
|
|
15
|
+
|
|
16
|
+
var CallToActionButton = function CallToActionButton() {
|
|
17
|
+
return _ref;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.CallToActionButton = CallToActionButton;
|
|
21
|
+
var _default = CallToActionButton;
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Disabled = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Button = _interopRequireDefault(require("@digigov/ui/core/Button"));
|
|
13
|
+
|
|
14
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
15
|
+
disabled: true
|
|
16
|
+
}, "\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1");
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* My primary descrition is the best description that was described
|
|
20
|
+
*/
|
|
21
|
+
var Disabled = function Disabled() {
|
|
22
|
+
return _ref;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.Disabled = Disabled;
|
|
26
|
+
var _default = Disabled;
|
|
27
|
+
exports["default"] = _default;
|