@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,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: autocomplete
|
|
3
|
+
title: AutoComplete
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Autocomplete is a feature in which an input field suggests a word based on user input. This allows users to quickly search
|
|
8
|
+
through, select from large collections of options and help services get more consistent data.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### How to import
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### AutoComplete
|
|
20
|
+
|
|
21
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="Default.tsx" />
|
|
22
|
+
|
|
23
|
+
### AutoComplete with auto select
|
|
24
|
+
|
|
25
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithAutoSelect.tsx" />
|
|
26
|
+
|
|
27
|
+
### AutoComplete with inline style
|
|
28
|
+
|
|
29
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithInLine.tsx" />
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### AutoComplete with default value
|
|
33
|
+
|
|
34
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithDefaultValue.tsx" />
|
|
35
|
+
|
|
36
|
+
### AutoComplete with placeholder
|
|
37
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithPlaceHolder.tsx" />
|
|
38
|
+
|
|
39
|
+
### AutoComplete with all option's values
|
|
40
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithShowAllValues.tsx" />
|
|
41
|
+
|
|
42
|
+
### AutoComplete with min length
|
|
43
|
+
|
|
44
|
+
This is the minimum number of characters that should be entered before the autocomplete will attempt to suggest options(in above example is 2)
|
|
45
|
+
|
|
46
|
+
<Story packageName="@digigov/ui" component="admin/AutoComplete" story="WithMinLength.tsx" />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function suggest(query: string, syncResults: (options: string[]) => void): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = suggest;
|
|
7
|
+
|
|
8
|
+
function suggest(query, syncResults) {
|
|
9
|
+
var results = ['Afghanistan', 'Akrotiri', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Ashmore and Cartier Islands', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas, The', 'Bahrain', 'Bangladesh', 'Barbados', 'Bassas da India', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Bouvet Island', 'Brazil', 'British Indian Ocean Territory', 'British Virgin Islands', 'Brunei', 'Bulgaria', 'Burkina Faso', 'Burma', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Clipperton Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Coral Sea Islands', 'Costa Rica', "Cote d'Ivoire", 'Croatia', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Dhekelia', 'Djibouti', 'Dominica', 'Dominican Republic', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Europa Island', 'Falkland Islands', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern and Antarctic Lands', 'Gabon', 'Gambia,', 'Gaza Strip', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Glorioso Islands', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard Island and McDonald Islands', 'Holy See (Vatican City)', 'Honduras', 'Hong Kong', 'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Isle of Man', 'Israel', 'Italy', 'Jamaica', 'Jan Mayen', 'Japan', 'Jersey', 'Jordan', 'Juan de Nova Island', 'Kazakhstan', 'Kenya', 'Kiribati', 'Korea, North', 'Korea, South', 'Kuwait', 'Kyrgyzstan', 'Laos', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macau', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia, Federated States of', 'Moldova', 'Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique', 'Namibia', 'Nauru', 'Navassa Island', 'Nepal', 'Netherlands', 'Netherlands Antilles', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island', 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Panama', 'Papua New Guinea', 'Paracel Islands', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn Islands', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russia', 'Rwanda', 'Saint Helena', 'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Pierre and Miquelon', 'Saint Vincent and the Grenadines', 'Samoa', 'San Marino', 'Sao Tome and Principe', 'Saudi Arabia', 'Senegal', 'Serbia and Montenegro', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia and the South Sandwich Islands', 'Spain', 'Spratly Islands', 'Sri Lanka', 'Sudan', 'Suriname', 'Svalbard', 'Swaziland', 'Sweden', 'Switzerland', 'Syria', 'Taiwan', 'Tajikistan', 'Tanzania', 'Thailand', 'Timor-Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad and Tobago', 'Tromelin Island', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks and Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela', 'Vietnam', 'Virgin Islands', 'Wake Island', 'Wallis and Futuna', 'West Bank', 'Western Sahara', 'Yemen', 'Zambia', 'Zimbabwe'];
|
|
10
|
+
syncResults(query ? results.filter(function (result) {
|
|
11
|
+
return result.toLowerCase().indexOf(query.toLowerCase()) !== -1;
|
|
12
|
+
}) : []);
|
|
13
|
+
}
|
|
@@ -19,7 +19,7 @@ var _reactCore = require("@digigov/react-core");
|
|
|
19
19
|
|
|
20
20
|
var _ui = require("@digigov/ui");
|
|
21
21
|
|
|
22
|
-
var _admin = require("@digigov/react-extensions/admin
|
|
22
|
+
var _admin = require("@digigov/react-extensions/admin");
|
|
23
23
|
|
|
24
24
|
var _Grid = _interopRequireDefault(require("@digigov/react-core/Grid"));
|
|
25
25
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from '@digigov/react-extensions/admin/FilterSection';
|
|
2
|
+
export * from '@digigov/react-extensions/admin/FilterSectionHorizontal';
|
|
2
3
|
export * from '@digigov/react-extensions/admin/FilterHeadingSection';
|
|
3
4
|
export * from '@digigov/react-extensions/admin/FilterContent';
|
|
4
5
|
export * from '@digigov/react-extensions/admin/FilterOptionsSection';
|
|
@@ -22,6 +22,20 @@ Object.keys(_FilterSection).forEach(function (key) {
|
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
+
var _FilterSectionHorizontal = require("@digigov/react-extensions/admin/FilterSectionHorizontal");
|
|
26
|
+
|
|
27
|
+
Object.keys(_FilterSectionHorizontal).forEach(function (key) {
|
|
28
|
+
if (key === "default" || key === "__esModule") return;
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
30
|
+
if (key in exports && exports[key] === _FilterSectionHorizontal[key]) return;
|
|
31
|
+
Object.defineProperty(exports, key, {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function get() {
|
|
34
|
+
return _FilterSectionHorizontal[key];
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
25
39
|
var _FilterHeadingSection = require("@digigov/react-extensions/admin/FilterHeadingSection");
|
|
26
40
|
|
|
27
41
|
Object.keys(_FilterHeadingSection).forEach(function (key) {
|
|
@@ -19,13 +19,13 @@ var _Link = _interopRequireDefault(require("@digigov/ui/core/Link"));
|
|
|
19
19
|
|
|
20
20
|
var _Divider = _interopRequireDefault(require("@digigov/ui/core/Divider"));
|
|
21
21
|
|
|
22
|
+
var _app = require("@digigov/ui/app");
|
|
23
|
+
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
25
|
|
|
24
26
|
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; }
|
|
25
27
|
|
|
26
|
-
var _ref = /*#__PURE__*/_react["default"].createElement("
|
|
27
|
-
className: "example"
|
|
28
|
-
}, /*#__PURE__*/_react["default"].createElement(_Pagination["default"], null, /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationLabel, {
|
|
28
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Pagination["default"], null, /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationLabel, {
|
|
29
29
|
start: 10,
|
|
30
30
|
end: 20,
|
|
31
31
|
total: 10000
|
|
@@ -47,10 +47,14 @@ var _ref = /*#__PURE__*/_react["default"].createElement("div", {
|
|
|
47
47
|
href: "/page7"
|
|
48
48
|
}, "7")), /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationListItem, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/_react["default"].createElement(_ArrowIcon["default"], {
|
|
49
49
|
direction: "right"
|
|
50
|
-
})))))
|
|
50
|
+
})))));
|
|
51
|
+
|
|
52
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Divider["default"], {
|
|
51
53
|
visible: true,
|
|
52
54
|
size: "l"
|
|
53
|
-
})
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Pagination["default"], null, /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationLabel, {
|
|
54
58
|
start: 10,
|
|
55
59
|
end: 20,
|
|
56
60
|
total: 10000
|
|
@@ -74,10 +78,14 @@ var _ref = /*#__PURE__*/_react["default"].createElement("div", {
|
|
|
74
78
|
href: "/page7"
|
|
75
79
|
}, "7")), /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationListItem, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/_react["default"].createElement(_ArrowIcon["default"], {
|
|
76
80
|
direction: "right"
|
|
77
|
-
})))))
|
|
81
|
+
})))));
|
|
82
|
+
|
|
83
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_Divider["default"], {
|
|
78
84
|
visible: true,
|
|
79
85
|
size: "l"
|
|
80
|
-
})
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
var _ref5 = /*#__PURE__*/_react["default"].createElement(_Pagination["default"], null, /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationLabel, {
|
|
81
89
|
start: 10,
|
|
82
90
|
end: 20,
|
|
83
91
|
total: 10000
|
|
@@ -99,10 +107,14 @@ var _ref = /*#__PURE__*/_react["default"].createElement("div", {
|
|
|
99
107
|
inactive: true
|
|
100
108
|
}, /*#__PURE__*/_react["default"].createElement(_Link["default"], null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/_react["default"].createElement(_ArrowIcon["default"], {
|
|
101
109
|
direction: "right"
|
|
102
|
-
})))))
|
|
110
|
+
})))));
|
|
111
|
+
|
|
112
|
+
var _ref6 = /*#__PURE__*/_react["default"].createElement(_Divider["default"], {
|
|
103
113
|
visible: true,
|
|
104
114
|
size: "l"
|
|
105
|
-
})
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
var _ref7 = /*#__PURE__*/_react["default"].createElement(_Pagination["default"], null, /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationLabel, {
|
|
106
118
|
start: 1,
|
|
107
119
|
end: 10,
|
|
108
120
|
total: 15
|
|
@@ -124,10 +136,14 @@ var _ref = /*#__PURE__*/_react["default"].createElement("div", {
|
|
|
124
136
|
href: "/page20"
|
|
125
137
|
}, "20")), /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationListItem, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/_react["default"].createElement(_ArrowIcon["default"], {
|
|
126
138
|
direction: "right"
|
|
127
|
-
})))))
|
|
139
|
+
})))));
|
|
140
|
+
|
|
141
|
+
var _ref8 = /*#__PURE__*/_react["default"].createElement(_Divider["default"], {
|
|
128
142
|
visible: true,
|
|
129
143
|
size: "l"
|
|
130
|
-
})
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
var _ref9 = /*#__PURE__*/_react["default"].createElement(_Pagination["default"], null, /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationLabel, {
|
|
131
147
|
start: 1,
|
|
132
148
|
end: 10,
|
|
133
149
|
total: 15
|
|
@@ -141,13 +157,21 @@ var _ref = /*#__PURE__*/_react["default"].createElement("div", {
|
|
|
141
157
|
href: "/page7"
|
|
142
158
|
}, "2")), /*#__PURE__*/_react["default"].createElement(_Pagination.PaginationListItem, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], null, /*#__PURE__*/_react["default"].createElement(_ArrowIcon["default"], {
|
|
143
159
|
direction: "right"
|
|
144
|
-
})))))
|
|
160
|
+
})))));
|
|
161
|
+
|
|
162
|
+
var _ref10 = /*#__PURE__*/_react["default"].createElement(_Divider["default"], {
|
|
145
163
|
visible: true,
|
|
146
164
|
size: "l"
|
|
147
|
-
})
|
|
165
|
+
});
|
|
148
166
|
|
|
149
167
|
var Default = function Default() {
|
|
150
|
-
return
|
|
168
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
169
|
+
className: "example"
|
|
170
|
+
}, /*#__PURE__*/_react["default"].createElement(_app.I18NProvider, {
|
|
171
|
+
t: function t(str) {
|
|
172
|
+
return str;
|
|
173
|
+
}
|
|
174
|
+
}, _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10));
|
|
151
175
|
};
|
|
152
176
|
|
|
153
177
|
exports.Default = Default;
|
package/admin/index.d.ts
CHANGED
package/admin/index.js
CHANGED
|
@@ -210,4 +210,17 @@ Object.keys(_FilterSection).forEach(function (key) {
|
|
|
210
210
|
return _FilterSection[key];
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
var _AutoComplete = require("@digigov/ui/admin/AutoComplete");
|
|
216
|
+
|
|
217
|
+
Object.keys(_AutoComplete).forEach(function (key) {
|
|
218
|
+
if (key === "default" || key === "__esModule") return;
|
|
219
|
+
if (key in exports && exports[key] === _AutoComplete[key]) return;
|
|
220
|
+
Object.defineProperty(exports, key, {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function get() {
|
|
223
|
+
return _AutoComplete[key];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
213
226
|
});
|
|
@@ -4,4 +4,6 @@ declare namespace _default {
|
|
|
4
4
|
}
|
|
5
5
|
export default _default;
|
|
6
6
|
export * from "@digigov/ui/app/CopyToClipboard/__stories__/Default";
|
|
7
|
+
export * from "@digigov/ui/app/CopyToClipboard/__stories__/Banner";
|
|
8
|
+
export * from "@digigov/ui/app/CopyToClipboard/__stories__/MultipleCopies";
|
|
7
9
|
import CopyToClipboard from "@digigov/ui/app/CopyToClipboard";
|
|
@@ -23,6 +23,34 @@ Object.keys(_Default).forEach(function (key) {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
|
+
|
|
27
|
+
var _Banner = require("@digigov/ui/app/CopyToClipboard/__stories__/Banner");
|
|
28
|
+
|
|
29
|
+
Object.keys(_Banner).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
32
|
+
if (key in exports && exports[key] === _Banner[key]) return;
|
|
33
|
+
Object.defineProperty(exports, key, {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function get() {
|
|
36
|
+
return _Banner[key];
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
var _MultipleCopies = require("@digigov/ui/app/CopyToClipboard/__stories__/MultipleCopies");
|
|
42
|
+
|
|
43
|
+
Object.keys(_MultipleCopies).forEach(function (key) {
|
|
44
|
+
if (key === "default" || key === "__esModule") return;
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
46
|
+
if (key in exports && exports[key] === _MultipleCopies[key]) return;
|
|
47
|
+
Object.defineProperty(exports, key, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function get() {
|
|
50
|
+
return _MultipleCopies[key];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
|
26
54
|
var _default = {
|
|
27
55
|
title: 'Digigov UI/app/CopyToClipboard',
|
|
28
56
|
component: _CopyToClipboard["default"]
|
|
@@ -0,0 +1,30 @@
|
|
|
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.Banner = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _CopyToClipboard = _interopRequireDefault(require("@digigov/ui/app/CopyToClipboard"));
|
|
13
|
+
|
|
14
|
+
var _ui = require("@digigov/ui");
|
|
15
|
+
|
|
16
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
17
|
+
text: "copied-text",
|
|
18
|
+
variant: "banner",
|
|
19
|
+
message: "text successfuly copied!"
|
|
20
|
+
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
21
|
+
color: "secondary"
|
|
22
|
+
}, "Banner example"));
|
|
23
|
+
|
|
24
|
+
var Banner = function Banner() {
|
|
25
|
+
return _ref;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.Banner = Banner;
|
|
29
|
+
var _default = Banner;
|
|
30
|
+
exports["default"] = _default;
|
|
@@ -11,128 +11,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _CopyToClipboard = _interopRequireDefault(require("@digigov/ui/app/CopyToClipboard"));
|
|
13
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
14
|
var _ui = require("@digigov/ui");
|
|
21
15
|
|
|
22
|
-
var
|
|
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, null, /*#__PURE__*/_react["default"].createElement(_admin.DropdownButton, {
|
|
53
|
-
variant: "link"
|
|
54
|
-
}, "\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, {
|
|
55
|
-
href: "#"
|
|
56
|
-
}, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/_react["default"].createElement(_reactCore.NavVerticalItem, {
|
|
57
|
-
href: "#"
|
|
58
|
-
}, "\u039C\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7"), /*#__PURE__*/_react["default"].createElement(_reactCore.NavVerticalItem, {
|
|
59
|
-
href: "#"
|
|
60
|
-
}, "\u039F\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03AE \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))))));
|
|
61
|
-
|
|
62
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
63
|
-
item: true,
|
|
64
|
-
md: 3,
|
|
65
|
-
lg: 2
|
|
66
|
-
}, /*#__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"], {
|
|
67
|
-
size: "sm"
|
|
68
|
-
}, "\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, {
|
|
69
|
-
visible: true,
|
|
70
|
-
size: "m"
|
|
71
|
-
}), /*#__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"))))));
|
|
72
|
-
|
|
73
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Title["default"], {
|
|
74
|
-
size: "xl"
|
|
75
|
-
}, "# \u03A5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 4");
|
|
76
|
-
|
|
77
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(_ui.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
78
|
-
text: "AAABBBFFFLLL",
|
|
16
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
17
|
+
text: "copied-text",
|
|
79
18
|
variant: "tooltip",
|
|
80
19
|
message: "text successfuly copied!"
|
|
81
|
-
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, null, "\u0391\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7")), /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
82
|
-
color: "secondary"
|
|
83
|
-
}, "\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE"), /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
84
|
-
color: "secondary"
|
|
85
|
-
}, "\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7"));
|
|
86
|
-
|
|
87
|
-
var _ref5 = /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
88
|
-
item: true,
|
|
89
|
-
xs: 12
|
|
90
|
-
}, /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
91
|
-
text: "AAABBBFFFLLL",
|
|
92
|
-
variant: "banner",
|
|
93
|
-
message: "text successfuly copied!"
|
|
94
20
|
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
95
21
|
color: "secondary"
|
|
96
|
-
}, "
|
|
97
|
-
|
|
98
|
-
var _ref6 = /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
99
|
-
item: true,
|
|
100
|
-
xs: 12
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
102
|
-
text: "AAABBBFFFLLL",
|
|
103
|
-
variant: "tooltip",
|
|
104
|
-
message: "text successfuly copied!"
|
|
105
|
-
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
106
|
-
color: "secondary"
|
|
107
|
-
}, "Tooltip example")));
|
|
108
|
-
|
|
109
|
-
var _ref7 = /*#__PURE__*/_react["default"].createElement(_Footer["default"], null);
|
|
22
|
+
}, "Copy"));
|
|
110
23
|
|
|
111
24
|
var Default = function Default() {
|
|
112
|
-
return
|
|
113
|
-
item: true,
|
|
114
|
-
md: 9,
|
|
115
|
-
lg: 10
|
|
116
|
-
}, /*#__PURE__*/_react["default"].createElement(_admin.AdminMain, null, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
117
|
-
container: true,
|
|
118
|
-
spacing: 4
|
|
119
|
-
}, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
120
|
-
item: true,
|
|
121
|
-
xs: 12
|
|
122
|
-
}, _ref3, _ref4, /*#__PURE__*/_react["default"].createElement(_ui.SummaryList, null, fields && fields.map(function (field, index) {
|
|
123
|
-
return /*#__PURE__*/_react["default"].createElement(_ui.SummaryListItem, {
|
|
124
|
-
key: index
|
|
125
|
-
}, /*#__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) {
|
|
126
|
-
return /*#__PURE__*/_react["default"].createElement(_CopyToClipboard["default"], {
|
|
127
|
-
text: "MMMNNNKKKO",
|
|
128
|
-
variant: "tooltip",
|
|
129
|
-
key: subIndex
|
|
130
|
-
}, /*#__PURE__*/_react["default"].createElement(_ui.Button, {
|
|
131
|
-
key: subIndex,
|
|
132
|
-
variant: "link"
|
|
133
|
-
}, action));
|
|
134
|
-
}))));
|
|
135
|
-
}))), _ref5, _ref6)))), _ref7));
|
|
25
|
+
return _ref;
|
|
136
26
|
};
|
|
137
27
|
|
|
138
28
|
exports.Default = Default;
|