@digigov/ui 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -1
- package/admin/AutoComplete/AccesibleAutoComplete/index.d.ts +5 -0
- package/admin/AutoComplete/AccesibleAutoComplete/index.js +106 -0
- package/admin/AutoComplete/AutoComplete.stories.d.ts +13 -0
- package/admin/AutoComplete/AutoComplete.stories.js +115 -0
- package/admin/AutoComplete/Status/index.d.ts +40 -0
- package/admin/AutoComplete/Status/index.js +184 -0
- package/admin/AutoComplete/__stories__/Default.d.ts +3 -0
- package/admin/AutoComplete/__stories__/Default.js +34 -0
- package/admin/AutoComplete/__stories__/WithAutoSelect.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithAutoSelect.js +35 -0
- package/admin/AutoComplete/__stories__/WithDefaultValue.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithDefaultValue.js +33 -0
- package/admin/AutoComplete/__stories__/WithInLine.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithInLine.js +33 -0
- package/admin/AutoComplete/__stories__/WithMinLength.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithMinLength.js +35 -0
- package/admin/AutoComplete/__stories__/WithPlaceHolder.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithPlaceHolder.js +33 -0
- package/admin/AutoComplete/__stories__/WithShowAllValues.d.ts +3 -0
- package/admin/AutoComplete/__stories__/WithShowAllValues.js +33 -0
- package/admin/AutoComplete/index.d.ts +101 -0
- package/admin/AutoComplete/index.js +744 -0
- package/admin/AutoComplete/index.mdx +46 -0
- package/admin/AutoComplete/utils.d.ts +1 -0
- package/admin/AutoComplete/utils.js +13 -0
- package/admin/CircularProgress/CircularProgress.stories.d.ts +6 -0
- package/admin/CircularProgress/CircularProgress.stories.js +30 -0
- package/admin/CircularProgress/__stories__/Default.d.ts +3 -0
- package/admin/CircularProgress/__stories__/Default.js +26 -0
- package/admin/Drawer/Drawer.stories.d.ts +7 -0
- package/admin/Drawer/Drawer.stories.js +30 -0
- package/admin/Drawer/__stories__/Default.d.ts +3 -0
- package/admin/Drawer/__stories__/Default.js +106 -0
- package/admin/Drawer/index.mdx +12 -0
- package/admin/Dropdown/index.d.ts +7 -1
- package/admin/Dropdown/index.js +29 -1
- package/admin/FilterSection/index.d.ts +1 -0
- package/admin/FilterSection/index.js +14 -0
- package/admin/Pagination/Pagination.stories.d.ts +7 -0
- package/admin/Pagination/Pagination.stories.js +30 -0
- package/admin/Pagination/__stories__/Default.d.ts +3 -0
- package/admin/Pagination/__stories__/Default.js +179 -0
- package/admin/Pagination/index.mdx +12 -0
- package/admin/index.d.ts +1 -0
- package/admin/index.js +13 -0
- package/app/Confirmation/Confirmation.mdx +9 -0
- package/app/Confirmation/Confirmation.stories.d.ts +6 -0
- package/app/Confirmation/Confirmation.stories.js +30 -0
- package/app/Confirmation/__stories__/Default.d.ts +3 -0
- package/app/Confirmation/__stories__/Default.js +28 -0
- package/app/Confirmation/index.d.ts +5 -3
- package/app/Confirmation/index.js +19 -34
- package/app/CopyToClipboard/CopyToClipboard.stories.d.ts +9 -0
- package/app/CopyToClipboard/CopyToClipboard.stories.js +58 -0
- package/app/CopyToClipboard/__stories__/Banner.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/Banner.js +30 -0
- package/app/CopyToClipboard/__stories__/Default.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/Default.js +30 -0
- package/app/CopyToClipboard/__stories__/MultipleCopies.d.ts +3 -0
- package/app/CopyToClipboard/__stories__/MultipleCopies.js +142 -0
- package/app/CopyToClipboard/index.d.ts +9 -0
- package/app/CopyToClipboard/index.js +69 -0
- package/app/CopyToClipboard/index.mdx +22 -0
- package/app/Footer/Footer.mdx +27 -0
- package/app/Footer/Footer.stories.d.ts +10 -0
- package/app/Footer/Footer.stories.js +88 -0
- package/app/Footer/__stories__/Default.d.ts +3 -0
- package/app/Footer/__stories__/Default.js +22 -0
- package/app/Footer/__stories__/FooterAllInclusive.d.ts +3 -0
- package/app/Footer/__stories__/FooterAllInclusive.js +48 -0
- package/app/Footer/__stories__/FooterWithLink.d.ts +3 -0
- package/app/Footer/__stories__/FooterWithLink.js +40 -0
- package/app/Footer/__stories__/FooterWithLogo.d.ts +3 -0
- package/app/Footer/__stories__/FooterWithLogo.js +40 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +3 -0
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +50 -0
- package/app/Header/index.mdx +18 -0
- package/app/I18nText.js +7 -7
- package/app/NotFound/NotFound.stories.d.ts +7 -0
- package/app/NotFound/NotFound.stories.js +30 -0
- package/app/NotFound/__stories__/Default.d.ts +3 -0
- package/app/NotFound/__stories__/Default.js +22 -0
- package/app/NotFound/index.mdx +12 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +6 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +30 -0
- package/app/PhaseBannerHeader/__stories__/Default.d.ts +3 -0
- package/app/PhaseBannerHeader/__stories__/Default.js +25 -0
- package/app/{PhaseBannerHeader.d.ts → PhaseBannerHeader/index.d.ts} +0 -0
- package/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
- package/app/PhaseBannerHeader/index.mdx +12 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.d.ts +7 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.js +30 -0
- package/app/QrCodeScanner/__stories__/Default.d.ts +3 -0
- package/app/QrCodeScanner/__stories__/Default.js +74 -0
- package/app/QrCodeScanner/index.d.ts +1 -3
- package/app/QrCodeScanner/index.js +10 -3
- package/core/Accordion/Accordion.stories.d.ts +7 -0
- package/core/Accordion/Accordion.stories.js +44 -0
- package/core/Accordion/__stories__/Default.d.ts +3 -0
- package/core/Accordion/__stories__/Default.js +34 -0
- package/core/Accordion/__stories__/WithHints.d.ts +3 -0
- package/core/Accordion/__stories__/WithHints.js +36 -0
- package/core/Accordion/index.mdx +13 -86
- package/core/BackLink/BackLink.stories.d.ts +7 -0
- package/core/BackLink/BackLink.stories.js +30 -0
- package/core/BackLink/__stories__/Default.d.ts +3 -0
- package/core/BackLink/__stories__/Default.js +24 -0
- package/core/BackLink/index.d.ts +3 -0
- package/core/BackLink/index.js +30 -0
- package/core/BackLink/index.mdx +16 -0
- package/core/Blockquote/Blockquote.stories.d.ts +7 -0
- package/core/Blockquote/Blockquote.stories.js +30 -0
- package/core/Blockquote/__stories__/Default.d.ts +3 -0
- package/core/Blockquote/__stories__/Default.js +22 -0
- package/core/Blockquote/index.mdx +17 -2
- package/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.js +30 -0
- package/core/Breadcrumbs/__stories__/Default.d.ts +3 -0
- package/core/Breadcrumbs/__stories__/Default.js +36 -0
- package/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/core/Breadcrumbs/index.d.ts +2 -0
- package/core/Breadcrumbs/index.js +16 -2
- package/core/Button/Button.mdx +37 -2
- package/core/Button/Button.stories.d.ts +2 -0
- package/core/Button/Button.stories.js +28 -0
- package/core/Button/__stories__/CallToActionButton.d.ts +3 -0
- package/core/Button/__stories__/CallToActionButton.js +22 -0
- package/core/Button/__stories__/Disabled.d.ts +6 -0
- package/core/Button/__stories__/Disabled.js +27 -0
- package/core/Button/__stories__/Warning.d.ts +1 -0
- package/core/Button/__stories__/Warning.js +4 -2
- package/core/Card/Card.stories.d.ts +15 -0
- package/core/Card/Card.stories.js +142 -0
- package/core/Card/__stories__/Default.d.ts +3 -0
- package/core/Card/__stories__/Default.js +30 -0
- package/core/Card/__stories__/WithClickableContent.d.ts +3 -0
- package/core/Card/__stories__/WithClickableContent.js +34 -0
- package/core/Card/__stories__/WithClickableLink.d.ts +3 -0
- package/core/Card/__stories__/WithClickableLink.js +32 -0
- package/core/Card/__stories__/WithDarkBorder.d.ts +3 -0
- package/core/Card/__stories__/WithDarkBorder.js +33 -0
- package/core/Card/__stories__/WithDarkTopBorder.d.ts +3 -0
- package/core/Card/__stories__/WithDarkTopBorder.js +33 -0
- package/core/Card/__stories__/WithDivider.d.ts +3 -0
- package/core/Card/__stories__/WithDivider.js +32 -0
- package/core/Card/__stories__/WithGrayBorder.d.ts +3 -0
- package/core/Card/__stories__/WithGrayBorder.js +33 -0
- package/core/Card/__stories__/WithGrayTopBorder.d.ts +3 -0
- package/core/Card/__stories__/WithGrayTopBorder.js +33 -0
- package/core/Card/__stories__/WithGroupButton.d.ts +3 -0
- package/core/Card/__stories__/WithGroupButton.js +32 -0
- package/core/Card/card.mdx +78 -0
- package/core/Checkboxes/Checkbox.stories.d.ts +13 -0
- package/core/Checkboxes/Checkbox.stories.js +114 -0
- package/core/Checkboxes/__stories__/ConditionalReveal.d.ts +3 -0
- package/core/Checkboxes/__stories__/ConditionalReveal.js +44 -0
- package/core/Checkboxes/__stories__/Default.d.ts +3 -0
- package/core/Checkboxes/__stories__/Default.js +41 -0
- package/core/Checkboxes/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/Checkboxes/__stories__/MultipleQuestions.js +43 -0
- package/core/Checkboxes/__stories__/NoneAnswer.d.ts +3 -0
- package/core/Checkboxes/__stories__/NoneAnswer.js +43 -0
- package/core/Checkboxes/__stories__/NoneAnswerWithError.d.ts +3 -0
- package/core/Checkboxes/__stories__/NoneAnswerWithError.js +51 -0
- package/core/Checkboxes/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/Checkboxes/__stories__/WithErrorMessage.js +44 -0
- package/core/Checkboxes/__stories__/WithHint.d.ts +3 -0
- package/core/Checkboxes/__stories__/WithHint.js +41 -0
- package/core/Checkboxes/checkboxes.mdx +54 -0
- package/core/Checkboxes/index.d.ts +5 -0
- package/core/Checkboxes/index.js +58 -0
- package/core/Confirmation/Confirmation.stories.d.ts +7 -0
- package/core/Confirmation/Confirmation.stories.js +30 -0
- package/core/Confirmation/__stories__/Default.d.ts +3 -0
- package/core/Confirmation/__stories__/Default.js +28 -0
- package/core/Confirmation/confirmation.mdx +19 -0
- package/core/Confirmation/index.d.ts +5 -0
- package/core/Confirmation/index.js +58 -0
- package/core/DateInput/DateInput.stories.d.ts +10 -0
- package/core/DateInput/DateInput.stories.js +72 -0
- package/core/DateInput/__stories__/Default.d.ts +3 -0
- package/core/DateInput/__stories__/Default.js +41 -0
- package/core/DateInput/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/DateInput/__stories__/MultipleQuestions.js +41 -0
- package/core/DateInput/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/DateInput/__stories__/WithErrorMessage.js +48 -0
- package/core/DateInput/__stories__/WithErrorMessageForSingleField.d.ts +3 -0
- package/core/DateInput/__stories__/WithErrorMessageForSingleField.js +46 -0
- package/core/DateInput/index.d.ts +4 -0
- package/core/DateInput/index.js +44 -0
- package/core/DateInput/index.mdx +34 -0
- package/core/Details/Details.stories.d.ts +7 -0
- package/core/Details/Details.stories.js +30 -0
- package/core/Details/__stories__/Default.d.ts +3 -0
- package/core/Details/__stories__/Default.js +28 -0
- package/core/Details/index.mdx +9 -25
- package/core/Divider/Divider.stories.d.ts +7 -0
- package/core/Divider/Divider.stories.js +32 -0
- package/core/Divider/__stories__/Default.d.ts +3 -0
- package/core/Divider/__stories__/Default.js +39 -0
- package/core/ErrorMessage/ErrorMessage.stories.d.ts +7 -0
- package/core/ErrorMessage/ErrorMessage.stories.js +30 -0
- package/core/ErrorMessage/__stories__/Default.d.ts +3 -0
- package/core/ErrorMessage/__stories__/Default.js +44 -0
- package/core/ErrorMessage/index.d.ts +3 -0
- package/core/ErrorMessage/index.js +30 -0
- package/core/ErrorMessage/index.mdx +21 -0
- package/core/ErrorSummary/ErrorSummary.stories.d.ts +10 -0
- package/core/ErrorSummary/ErrorSummary.stories.js +72 -0
- package/core/ErrorSummary/__stories__/Default.d.ts +3 -0
- package/core/ErrorSummary/__stories__/Default.js +28 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +3 -0
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +58 -0
- package/core/ErrorSummary/__stories__/LinkedToField.d.ts +3 -0
- package/core/ErrorSummary/__stories__/LinkedToField.js +59 -0
- package/core/ErrorSummary/__stories__/LinkedToInput.d.ts +3 -0
- package/core/ErrorSummary/__stories__/LinkedToInput.js +54 -0
- package/core/ErrorSummary/index.mdx +21 -38
- package/core/Field/index.d.ts +5 -0
- package/core/Field/index.js +58 -0
- package/core/FileUpload/FileUpload.stories.d.ts +8 -0
- package/core/FileUpload/FileUpload.stories.js +44 -0
- package/core/FileUpload/__stories__/Default.d.ts +3 -0
- package/core/FileUpload/__stories__/Default.js +34 -0
- package/core/FileUpload/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/FileUpload/__stories__/WithErrorMessage.js +40 -0
- package/core/FileUpload/index.mdx +22 -0
- package/core/Link/Link.stories.d.ts +11 -0
- package/core/Link/Link.stories.js +86 -0
- package/core/Link/__stories__/DarkBackground.d.ts +3 -0
- package/core/Link/__stories__/DarkBackground.js +28 -0
- package/core/Link/__stories__/DarkBackgroundNoUnderline.d.ts +3 -0
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +29 -0
- package/core/Link/__stories__/Default.d.ts +3 -0
- package/core/Link/__stories__/Default.js +24 -0
- package/core/Link/__stories__/NoUnderline.d.ts +3 -0
- package/core/Link/__stories__/NoUnderline.js +25 -0
- package/core/Link/__stories__/OpensInNewTab.d.ts +3 -0
- package/core/Link/__stories__/OpensInNewTab.js +26 -0
- package/core/Link/link.mdx +30 -0
- package/core/List/List.stories.d.ts +9 -0
- package/core/List/List.stories.js +72 -0
- package/core/List/__stories__/BulletList.d.ts +3 -0
- package/core/List/__stories__/BulletList.js +30 -0
- package/core/List/__stories__/Default.d.ts +3 -0
- package/core/List/__stories__/Default.js +30 -0
- package/core/List/__stories__/NumberedList.d.ts +3 -0
- package/core/List/__stories__/NumberedList.js +30 -0
- package/core/List/__stories__/WithExtraSpace.d.ts +3 -0
- package/core/List/__stories__/WithExtraSpace.js +30 -0
- package/core/List/index.mdx +22 -3
- package/core/Masthead/Masthead.stories.d.ts +7 -0
- package/core/Masthead/Masthead.stories.js +30 -0
- package/core/Masthead/__stories__/Default.d.ts +3 -0
- package/core/Masthead/__stories__/Default.js +32 -0
- package/core/Masthead/index.d.ts +4 -0
- package/core/Masthead/index.js +44 -0
- package/core/Masthead/masthead.mdx +14 -0
- package/core/NavList/NavList.d.ts +1 -14
- package/core/NavList/NavList.js +11 -70
- package/core/NavList/NavListBase.d.ts +4 -0
- package/core/NavList/NavListBase.js +74 -0
- package/core/NavList/NavListSubMenu.d.ts +1 -1
- package/core/NavList/NavListSubMenu.js +2 -2
- package/core/NavList/types.d.ts +13 -0
- package/core/NavList/types.js +5 -0
- package/core/NotificationBanner/NotificationBanner.stories.d.ts +8 -0
- package/core/NotificationBanner/NotificationBanner.stories.js +44 -0
- package/core/NotificationBanner/__stories__/Default.d.ts +3 -0
- package/core/NotificationBanner/__stories__/Default.js +26 -0
- package/core/NotificationBanner/__stories__/Success.d.ts +3 -0
- package/core/NotificationBanner/__stories__/Success.js +27 -0
- package/core/NotificationBanner/index.d.ts +1 -1
- package/core/NotificationBanner/index.js +6 -3
- package/core/NotificationBanner/index.mdx +13 -60
- package/core/NotificationBanner/index.spec.js +1 -1
- package/core/PhaseBanner/PhaseBanner.stories.d.ts +8 -0
- package/core/PhaseBanner/PhaseBanner.stories.js +44 -0
- package/core/PhaseBanner/__stories__/Default.d.ts +3 -0
- package/core/PhaseBanner/__stories__/Default.js +32 -0
- package/core/PhaseBanner/__stories__/Underlined.d.ts +3 -0
- package/core/PhaseBanner/__stories__/Underlined.js +34 -0
- package/core/PhaseBanner/index.d.ts +6 -0
- package/core/PhaseBanner/index.js +72 -0
- package/core/PhaseBanner/index.mdx +24 -0
- package/core/Radios/Radios.stories.d.ts +13 -0
- package/core/Radios/Radios.stories.js +114 -0
- package/core/Radios/__stories__/ConditionalReveal.d.ts +3 -0
- package/core/Radios/__stories__/ConditionalReveal.js +44 -0
- package/core/Radios/__stories__/Default.d.ts +3 -0
- package/core/Radios/__stories__/Default.js +42 -0
- package/core/Radios/__stories__/Inline.d.ts +3 -0
- package/core/Radios/__stories__/Inline.js +40 -0
- package/core/Radios/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/Radios/__stories__/MultipleQuestions.js +46 -0
- package/core/Radios/__stories__/NoneAnswer.d.ts +3 -0
- package/core/Radios/__stories__/NoneAnswer.js +41 -0
- package/core/Radios/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/Radios/__stories__/WithErrorMessage.js +44 -0
- package/core/Radios/__stories__/WithHints.d.ts +3 -0
- package/core/Radios/__stories__/WithHints.js +40 -0
- package/core/Radios/index.d.ts +5 -0
- package/core/Radios/index.js +58 -0
- package/core/Radios/index.mdx +56 -0
- package/core/Select/Select.stories.d.ts +9 -0
- package/core/Select/Select.stories.js +58 -0
- package/core/Select/__stories__/Default.d.ts +3 -0
- package/core/Select/__stories__/Default.js +43 -0
- package/core/Select/__stories__/DisabledInput.d.ts +3 -0
- package/core/Select/__stories__/DisabledInput.js +43 -0
- package/core/Select/__stories__/WithHint.d.ts +3 -0
- package/core/Select/__stories__/WithHint.js +45 -0
- package/core/Select/index.d.ts +4 -0
- package/core/Select/index.js +44 -0
- package/core/Select/index.mdx +36 -0
- package/core/SummaryList/SummaryList.stories.d.ts +8 -0
- package/core/SummaryList/SummaryList.stories.js +60 -0
- package/core/SummaryList/__stories__/Default.d.ts +3 -0
- package/core/SummaryList/__stories__/Default.js +28 -0
- package/core/SummaryList/__stories__/WithActions.d.ts +3 -0
- package/core/SummaryList/__stories__/WithActions.js +42 -0
- package/core/SummaryList/__stories__/WithoutBorders.d.ts +3 -0
- package/core/SummaryList/__stories__/WithoutBorders.js +30 -0
- package/core/SummaryList/index.mdx +17 -65
- package/core/Table/Table.stories.d.ts +18 -0
- package/core/Table/Table.stories.js +200 -0
- package/core/Table/TableFloatingScroll.d.ts +3 -0
- package/core/Table/TableFloatingScroll.js +105 -0
- package/core/Table/__stories__/DarkVariant.d.ts +3 -0
- package/core/Table/__stories__/DarkVariant.js +24 -0
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +3 -0
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +24 -0
- package/core/Table/__stories__/Default.d.ts +3 -0
- package/core/Table/__stories__/Default.js +22 -0
- package/core/Table/__stories__/DefinedWidth.d.ts +3 -0
- package/core/Table/__stories__/DefinedWidth.js +28 -0
- package/core/Table/__stories__/Densed.d.ts +3 -0
- package/core/Table/__stories__/Densed.js +26 -0
- package/core/Table/__stories__/MultipleProps.d.ts +3 -0
- package/core/Table/__stories__/MultipleProps.js +58 -0
- package/core/Table/__stories__/NoData.d.ts +3 -0
- package/core/Table/__stories__/NoData.js +22 -0
- package/core/Table/__stories__/NumericDataType.d.ts +3 -0
- package/core/Table/__stories__/NumericDataType.js +46 -0
- package/core/Table/__stories__/TableCaptions.d.ts +3 -0
- package/core/Table/__stories__/TableCaptions.js +30 -0
- package/core/Table/__stories__/VerticalBorders.d.ts +3 -0
- package/core/Table/__stories__/VerticalBorders.js +24 -0
- package/core/Table/__stories__/VerticalHeaders.d.ts +3 -0
- package/core/Table/__stories__/VerticalHeaders.js +22 -0
- package/core/Table/__stories__/WithHeader.d.ts +3 -0
- package/core/Table/__stories__/WithHeader.js +67 -0
- package/core/Table/__stories__/WithLoader.d.ts +3 -0
- package/core/Table/__stories__/WithLoader.js +103 -0
- package/core/Table/__stories__/ZebraProp.d.ts +3 -0
- package/core/Table/__stories__/ZebraProp.js +24 -0
- package/core/Table/index.d.ts +1 -0
- package/core/Table/index.js +13 -0
- package/core/Table/index.mdx +52 -0
- package/core/Tabs/Tabs.stories.d.ts +6 -0
- package/core/Tabs/Tabs.stories.js +30 -0
- package/core/Tabs/__stories__/Default.d.ts +3 -0
- package/core/Tabs/__stories__/Default.js +52 -0
- package/core/Tabs/index.js +21 -1
- package/core/Tabs/index.mdx +10 -2
- package/core/TextArea/TextArea.stories.d.ts +13 -0
- package/core/TextArea/TextArea.stories.js +114 -0
- package/core/TextArea/__stories__/Default.d.ts +3 -0
- package/core/TextArea/__stories__/Default.js +32 -0
- package/core/TextArea/__stories__/DisabledInput.d.ts +3 -0
- package/core/TextArea/__stories__/DisabledInput.js +35 -0
- package/core/TextArea/__stories__/LimitedCharacters.d.ts +3 -0
- package/core/TextArea/__stories__/LimitedCharacters.js +34 -0
- package/core/TextArea/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/TextArea/__stories__/MultipleQuestions.js +30 -0
- package/core/TextArea/__stories__/WithDeclaredRows.d.ts +3 -0
- package/core/TextArea/__stories__/WithDeclaredRows.js +35 -0
- package/core/TextArea/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/TextArea/__stories__/WithErrorMessage.js +39 -0
- package/core/TextArea/__stories__/WithHint.d.ts +3 -0
- package/core/TextArea/__stories__/WithHint.js +34 -0
- package/core/TextArea/index.d.ts +3 -0
- package/core/TextArea/index.js +30 -0
- package/core/TextArea/index.mdx +50 -0
- package/core/TextInput/TextInput.stories.d.ts +14 -0
- package/core/TextInput/TextInput.stories.js +128 -0
- package/core/TextInput/__stories__/AskingForNumbers.d.ts +3 -0
- package/core/TextInput/__stories__/AskingForNumbers.js +36 -0
- package/core/TextInput/__stories__/Default.d.ts +3 -0
- package/core/TextInput/__stories__/Default.js +32 -0
- package/core/TextInput/__stories__/DisabledInput.d.ts +3 -0
- package/core/TextInput/__stories__/DisabledInput.js +35 -0
- package/core/TextInput/__stories__/FixedWidths.d.ts +3 -0
- package/core/TextInput/__stories__/FixedWidths.js +68 -0
- package/core/TextInput/__stories__/FluidWidths.d.ts +3 -0
- package/core/TextInput/__stories__/FluidWidths.js +68 -0
- package/core/TextInput/__stories__/MultipleQuestions.d.ts +3 -0
- package/core/TextInput/__stories__/MultipleQuestions.js +28 -0
- package/core/TextInput/__stories__/WithErrorMessage.d.ts +3 -0
- package/core/TextInput/__stories__/WithErrorMessage.js +39 -0
- package/core/TextInput/__stories__/WithHint.d.ts +3 -0
- package/core/TextInput/__stories__/WithHint.js +34 -0
- package/core/TextInput/index.d.ts +3 -0
- package/core/TextInput/index.js +30 -0
- package/core/TextInput/index.mdx +59 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.d.ts +7 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.js +30 -0
- package/core/VisuallyHidden/__stories__/Default.d.ts +3 -0
- package/core/VisuallyHidden/__stories__/Default.js +38 -0
- package/core/VisuallyHidden/index.d.ts +2 -0
- package/core/VisuallyHidden/index.js +14 -2
- package/core/VisuallyHidden/index.mdx +17 -0
- package/core/WarningText/WarningText.stories.d.ts +6 -0
- package/core/WarningText/WarningText.stories.js +30 -0
- package/core/WarningText/__stories__/Default.d.ts +3 -0
- package/core/WarningText/__stories__/Default.js +22 -0
- package/core/WarningText/index.mdx +10 -35
- package/core/index.d.ts +8 -2
- package/core/index.js +87 -17
- package/es/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
- package/es/admin/AutoComplete/AutoComplete.stories.js +13 -0
- package/es/admin/AutoComplete/Status/index.js +153 -0
- package/es/admin/AutoComplete/__stories__/Default.js +19 -0
- package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
- package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithInLine.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
- package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
- package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
- package/es/admin/AutoComplete/index.js +676 -0
- package/es/admin/AutoComplete/index.mdx +46 -0
- package/es/admin/AutoComplete/utils.js +6 -0
- package/es/admin/CircularProgress/CircularProgress.stories.js +6 -0
- package/es/admin/CircularProgress/__stories__/Default.js +11 -0
- package/es/admin/Drawer/Drawer.stories.js +6 -0
- package/es/admin/Drawer/__stories__/Default.js +83 -0
- package/es/admin/Drawer/index.mdx +12 -0
- package/es/admin/Dropdown/index.js +28 -1
- package/es/admin/FilterSection/index.js +1 -0
- package/es/admin/Pagination/Pagination.stories.js +6 -0
- package/es/admin/Pagination/__stories__/Default.js +156 -0
- package/es/admin/Pagination/index.mdx +12 -0
- package/es/admin/index.js +2 -1
- package/es/app/Confirmation/Confirmation.mdx +9 -0
- package/es/app/Confirmation/Confirmation.stories.js +6 -0
- package/es/app/Confirmation/__stories__/Default.js +9 -0
- package/es/app/Confirmation/index.js +5 -3
- package/es/app/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/es/app/CopyToClipboard/__stories__/Banner.js +16 -0
- package/es/app/CopyToClipboard/__stories__/Default.js +16 -0
- package/es/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
- package/es/app/CopyToClipboard/index.js +45 -0
- package/es/app/CopyToClipboard/index.mdx +22 -0
- package/es/app/Footer/Footer.mdx +27 -0
- package/es/app/Footer/Footer.stories.js +11 -0
- package/es/app/Footer/__stories__/Default.js +9 -0
- package/es/app/Footer/__stories__/FooterAllInclusive.js +30 -0
- package/es/app/Footer/__stories__/FooterWithLink.js +23 -0
- package/es/app/Footer/__stories__/FooterWithLogo.js +23 -0
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +32 -0
- package/es/app/Header/index.mdx +18 -0
- package/es/app/I18nText.js +7 -6
- package/es/app/NotFound/NotFound.stories.js +6 -0
- package/es/app/NotFound/__stories__/Default.js +9 -0
- package/es/app/NotFound/index.mdx +12 -0
- package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +6 -0
- package/es/app/PhaseBannerHeader/__stories__/Default.js +12 -0
- package/es/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
- package/es/app/PhaseBannerHeader/index.mdx +12 -0
- package/es/app/QrCodeScanner/QrCodeScanner.stories.js +6 -0
- package/es/app/QrCodeScanner/__stories__/Default.js +52 -0
- package/es/app/QrCodeScanner/index.js +7 -3
- package/es/core/Accordion/Accordion.stories.js +7 -0
- package/es/core/Accordion/__stories__/Default.js +12 -0
- package/es/core/Accordion/__stories__/WithHints.js +13 -0
- package/es/core/Accordion/index.mdx +13 -86
- package/es/core/BackLink/BackLink.stories.js +6 -0
- package/es/core/BackLink/__stories__/Default.js +11 -0
- package/es/core/BackLink/index.js +3 -0
- package/es/core/BackLink/index.mdx +16 -0
- package/es/core/Blockquote/Blockquote.stories.js +6 -0
- package/es/core/Blockquote/__stories__/Default.js +9 -0
- package/es/core/Blockquote/index.mdx +17 -2
- package/es/core/Breadcrumbs/Breadcrumbs.stories.js +6 -0
- package/es/core/Breadcrumbs/__stories__/Default.js +17 -0
- package/es/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/es/core/Breadcrumbs/index.js +3 -1
- package/es/core/Button/Button.mdx +37 -2
- package/es/core/Button/Button.stories.js +3 -1
- package/es/core/Button/__stories__/CallToActionButton.js +9 -0
- package/es/core/Button/__stories__/Disabled.js +14 -0
- package/es/core/Button/__stories__/Warning.js +2 -1
- package/es/core/Card/Card.stories.js +14 -0
- package/es/core/Card/__stories__/Default.js +10 -0
- package/es/core/Card/__stories__/WithClickableContent.js +14 -0
- package/es/core/Card/__stories__/WithClickableLink.js +12 -0
- package/es/core/Card/__stories__/WithDarkBorder.js +13 -0
- package/es/core/Card/__stories__/WithDarkTopBorder.js +13 -0
- package/es/core/Card/__stories__/WithDivider.js +12 -0
- package/es/core/Card/__stories__/WithGrayBorder.js +13 -0
- package/es/core/Card/__stories__/WithGrayTopBorder.js +13 -0
- package/es/core/Card/__stories__/WithGroupButton.js +11 -0
- package/es/core/Card/card.mdx +78 -0
- package/es/core/Checkboxes/Checkbox.stories.js +12 -0
- package/es/core/Checkboxes/__stories__/ConditionalReveal.js +22 -0
- package/es/core/Checkboxes/__stories__/Default.js +20 -0
- package/es/core/Checkboxes/__stories__/MultipleQuestions.js +22 -0
- package/es/core/Checkboxes/__stories__/NoneAnswer.js +22 -0
- package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +28 -0
- package/es/core/Checkboxes/__stories__/WithErrorMessage.js +21 -0
- package/es/core/Checkboxes/__stories__/WithHint.js +20 -0
- package/es/core/Checkboxes/checkboxes.mdx +54 -0
- package/es/core/Checkboxes/index.js +5 -0
- package/es/core/Confirmation/Confirmation.stories.js +6 -0
- package/es/core/Confirmation/__stories__/Default.js +9 -0
- package/es/core/Confirmation/confirmation.mdx +19 -0
- package/es/core/Confirmation/index.js +5 -0
- package/es/core/DateInput/DateInput.stories.js +9 -0
- package/es/core/DateInput/__stories__/Default.js +20 -0
- package/es/core/DateInput/__stories__/MultipleQuestions.js +20 -0
- package/es/core/DateInput/__stories__/WithErrorMessage.js +25 -0
- package/es/core/DateInput/__stories__/WithErrorMessageForSingleField.js +23 -0
- package/es/core/DateInput/index.js +4 -0
- package/es/core/DateInput/index.mdx +34 -0
- package/es/core/Details/Details.stories.js +6 -0
- package/es/core/Details/__stories__/Default.js +9 -0
- package/es/core/Details/index.mdx +9 -25
- package/es/core/Divider/Divider.stories.js +7 -0
- package/es/core/Divider/__stories__/Default.js +26 -0
- package/es/core/ErrorMessage/ErrorMessage.stories.js +6 -0
- package/es/core/ErrorMessage/__stories__/Default.js +21 -0
- package/es/core/ErrorMessage/index.js +3 -0
- package/es/core/ErrorMessage/index.mdx +21 -0
- package/es/core/ErrorSummary/ErrorSummary.stories.js +9 -0
- package/es/core/ErrorSummary/__stories__/Default.js +13 -0
- package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +32 -0
- package/es/core/ErrorSummary/__stories__/LinkedToField.js +33 -0
- package/es/core/ErrorSummary/__stories__/LinkedToInput.js +32 -0
- package/es/core/ErrorSummary/index.mdx +21 -38
- package/es/core/Field/index.js +5 -0
- package/es/core/FileUpload/FileUpload.stories.js +7 -0
- package/es/core/FileUpload/__stories__/Default.js +13 -0
- package/es/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/es/core/FileUpload/index.mdx +22 -0
- package/es/core/Link/Link.stories.js +10 -0
- package/es/core/Link/__stories__/DarkBackground.js +13 -0
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +14 -0
- package/es/core/Link/__stories__/Default.js +11 -0
- package/es/core/Link/__stories__/NoUnderline.js +12 -0
- package/es/core/Link/__stories__/OpensInNewTab.js +13 -0
- package/es/core/Link/link.mdx +30 -0
- package/es/core/List/List.stories.js +9 -0
- package/es/core/List/__stories__/BulletList.js +11 -0
- package/es/core/List/__stories__/Default.js +10 -0
- package/es/core/List/__stories__/NumberedList.js +11 -0
- package/es/core/List/__stories__/WithExtraSpace.js +11 -0
- package/es/core/List/index.mdx +22 -3
- package/es/core/Masthead/Masthead.stories.js +6 -0
- package/es/core/Masthead/__stories__/Default.js +11 -0
- package/es/core/Masthead/index.js +4 -0
- package/es/core/Masthead/masthead.mdx +14 -0
- package/es/core/NavList/NavList.js +8 -63
- package/es/core/NavList/NavListBase.js +58 -0
- package/es/core/NavList/NavListSubMenu.js +1 -1
- package/es/core/NavList/types.js +1 -0
- package/es/core/NotificationBanner/NotificationBanner.stories.js +7 -0
- package/es/core/NotificationBanner/__stories__/Default.js +12 -0
- package/es/core/NotificationBanner/__stories__/Success.js +13 -0
- package/es/core/NotificationBanner/index.js +6 -3
- package/es/core/NotificationBanner/index.mdx +13 -60
- package/es/core/NotificationBanner/index.spec.js +1 -1
- package/es/core/PhaseBanner/PhaseBanner.stories.js +7 -0
- package/es/core/PhaseBanner/__stories__/Default.js +12 -0
- package/es/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/es/core/PhaseBanner/index.js +6 -0
- package/es/core/PhaseBanner/index.mdx +24 -0
- package/es/core/Radios/Radios.stories.js +12 -0
- package/es/core/Radios/__stories__/ConditionalReveal.js +22 -0
- package/es/core/Radios/__stories__/Default.js +22 -0
- package/es/core/Radios/__stories__/Inline.js +19 -0
- package/es/core/Radios/__stories__/MultipleQuestions.js +25 -0
- package/es/core/Radios/__stories__/NoneAnswer.js +21 -0
- package/es/core/Radios/__stories__/WithErrorMessage.js +21 -0
- package/es/core/Radios/__stories__/WithHints.js +19 -0
- package/es/core/Radios/index.js +5 -0
- package/es/core/Radios/index.mdx +56 -0
- package/es/core/Select/Select.stories.js +8 -0
- package/es/core/Select/__stories__/Default.js +21 -0
- package/es/core/Select/__stories__/DisabledInput.js +22 -0
- package/es/core/Select/__stories__/WithHint.js +22 -0
- package/es/core/Select/index.js +4 -0
- package/es/core/Select/index.mdx +36 -0
- package/es/core/SummaryList/SummaryList.stories.js +9 -0
- package/es/core/SummaryList/__stories__/Default.js +9 -0
- package/es/core/SummaryList/__stories__/WithActions.js +20 -0
- package/es/core/SummaryList/__stories__/WithoutBorders.js +11 -0
- package/es/core/SummaryList/index.mdx +17 -65
- package/es/core/Table/Table.stories.js +19 -0
- package/es/core/Table/TableFloatingScroll.js +85 -0
- package/es/core/Table/__stories__/DarkVariant.js +11 -0
- package/es/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +11 -0
- package/es/core/Table/__stories__/Default.js +9 -0
- package/es/core/Table/__stories__/DefinedWidth.js +15 -0
- package/es/core/Table/__stories__/Densed.js +13 -0
- package/es/core/Table/__stories__/MultipleProps.js +45 -0
- package/es/core/Table/__stories__/NoData.js +9 -0
- package/es/core/Table/__stories__/NumericDataType.js +33 -0
- package/es/core/Table/__stories__/TableCaptions.js +17 -0
- package/es/core/Table/__stories__/VerticalBorders.js +11 -0
- package/es/core/Table/__stories__/VerticalHeaders.js +9 -0
- package/es/core/Table/__stories__/WithHeader.js +53 -0
- package/es/core/Table/__stories__/WithLoader.js +81 -0
- package/es/core/Table/__stories__/ZebraProp.js +11 -0
- package/es/core/Table/index.js +2 -1
- package/es/core/Table/index.mdx +52 -0
- package/es/core/Tabs/Tabs.stories.js +6 -0
- package/es/core/Tabs/__stories__/Default.js +29 -0
- package/es/core/Tabs/index.js +22 -2
- package/es/core/Tabs/index.mdx +10 -2
- package/es/core/TextArea/TextArea.stories.js +12 -0
- package/es/core/TextArea/__stories__/Default.js +16 -0
- package/es/core/TextArea/__stories__/DisabledInput.js +18 -0
- package/es/core/TextArea/__stories__/LimitedCharacters.js +17 -0
- package/es/core/TextArea/__stories__/MultipleQuestions.js +14 -0
- package/es/core/TextArea/__stories__/WithDeclaredRows.js +18 -0
- package/es/core/TextArea/__stories__/WithErrorMessage.js +21 -0
- package/es/core/TextArea/__stories__/WithHint.js +17 -0
- package/es/core/TextArea/index.js +3 -0
- package/es/core/TextArea/index.mdx +50 -0
- package/es/core/TextInput/TextInput.stories.js +13 -0
- package/es/core/TextInput/__stories__/AskingForNumbers.js +19 -0
- package/es/core/TextInput/__stories__/Default.js +16 -0
- package/es/core/TextInput/__stories__/DisabledInput.js +18 -0
- package/es/core/TextInput/__stories__/FixedWidths.js +52 -0
- package/es/core/TextInput/__stories__/FluidWidths.js +52 -0
- package/es/core/TextInput/__stories__/MultipleQuestions.js +13 -0
- package/es/core/TextInput/__stories__/WithErrorMessage.js +21 -0
- package/es/core/TextInput/__stories__/WithHint.js +17 -0
- package/es/core/TextInput/index.js +3 -0
- package/es/core/TextInput/index.mdx +59 -0
- package/es/core/VisuallyHidden/VisuallyHidden.stories.js +6 -0
- package/es/core/VisuallyHidden/__stories__/Default.js +16 -0
- package/es/core/VisuallyHidden/index.js +3 -1
- package/es/core/VisuallyHidden/index.mdx +17 -0
- package/es/core/WarningText/WarningText.stories.js +6 -0
- package/es/core/WarningText/__stories__/Default.js +9 -0
- package/es/core/WarningText/index.mdx +10 -35
- package/es/core/index.js +9 -3
- package/es/govgr/Footer/index.mdx +4 -4
- package/es/hooks/useTogglableSections.js +7 -1
- package/es/introduction.md +4 -1
- package/es/layouts/Basic/Basic.stories.js +9 -0
- package/es/layouts/Basic/__stories__/Default.js +10 -0
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +12 -0
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +12 -0
- package/es/layouts/Grid/Grid.stories.js +7 -0
- package/es/layouts/Grid/__stories__/Default.js +58 -0
- package/es/layouts/Grid/__stories__/Inline.js +55 -0
- package/es/layouts/Grid/index.js +1 -0
- package/es/layouts/index.js +2 -0
- package/es/locales/el.js +1 -0
- package/es/locales/en.js +1 -0
- package/es/registry.js +71 -31
- package/es/typography/Caption/Caption.stories.js +7 -0
- package/es/typography/Caption/__stories__/Default.js +35 -0
- package/es/typography/Caption/__stories__/NestedToTitle.js +15 -0
- package/es/typography/{Caption.js → Caption/index.js} +0 -0
- package/es/typography/Caption/index.mdx +16 -0
- package/es/typography/Hint/Hint.stories.js +7 -0
- package/es/typography/Hint/__stories__/Default.js +9 -0
- package/es/typography/Hint/__stories__/FontSizes.js +21 -0
- package/es/typography/{Hint.js → Hint/index.js} +0 -0
- package/es/typography/Hint/index.mdx +16 -0
- package/es/typography/NormalText/NormalText.stories.js +9 -0
- package/es/typography/NormalText/__stories__/Default.js +9 -0
- package/es/typography/NormalText/__stories__/FontSizes.js +48 -0
- package/es/typography/NormalText/__stories__/FontWeight.js +18 -0
- package/es/typography/NormalText/__stories__/Variants.js +18 -0
- package/es/typography/{NormalText.js → NormalText/index.js} +0 -0
- package/es/typography/NormalText/index.mdx +26 -0
- package/es/typography/Paragraph/Paragraph.stories.js +10 -0
- package/es/typography/Paragraph/__stories__/Default.js +9 -0
- package/es/typography/Paragraph/__stories__/FontSizes.js +35 -0
- package/es/typography/Paragraph/__stories__/FontWeight.js +15 -0
- package/es/typography/Paragraph/__stories__/LeadVariant.js +11 -0
- package/es/typography/Paragraph/__stories__/SmallVariant.js +11 -0
- package/es/typography/{Paragraph.js → Paragraph/index.js} +0 -0
- package/es/typography/Paragraph/index.mdx +30 -0
- package/es/typography/Title/Title.stories.js +6 -0
- package/es/typography/Title/__stories__/Default.js +24 -0
- package/es/typography/{Title.js → Title/index.js} +0 -0
- package/es/typography/Title/index.mdx +12 -0
- package/esm/admin/AutoComplete/AccesibleAutoComplete/index.js +87 -0
- package/esm/admin/AutoComplete/AutoComplete.stories.js +13 -0
- package/esm/admin/AutoComplete/Status/index.js +153 -0
- package/esm/admin/AutoComplete/__stories__/Default.js +19 -0
- package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +20 -0
- package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithInLine.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithMinLength.js +19 -0
- package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +18 -0
- package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +18 -0
- package/esm/admin/AutoComplete/index.js +676 -0
- package/esm/admin/AutoComplete/index.mdx +46 -0
- package/esm/admin/AutoComplete/utils.js +6 -0
- package/esm/admin/CircularProgress/CircularProgress.stories.js +6 -0
- package/esm/admin/CircularProgress/__stories__/Default.js +11 -0
- package/esm/admin/Drawer/Drawer.stories.js +6 -0
- package/esm/admin/Drawer/__stories__/Default.js +83 -0
- package/esm/admin/Drawer/index.mdx +12 -0
- package/esm/admin/Dropdown/index.js +28 -1
- package/esm/admin/FilterSection/index.js +1 -0
- package/esm/admin/Pagination/Pagination.stories.js +6 -0
- package/esm/admin/Pagination/__stories__/Default.js +156 -0
- package/esm/admin/Pagination/index.mdx +12 -0
- package/esm/admin/index.js +2 -1
- package/esm/app/Confirmation/Confirmation.mdx +9 -0
- package/esm/app/Confirmation/Confirmation.stories.js +6 -0
- package/esm/app/Confirmation/__stories__/Default.js +9 -0
- package/esm/app/Confirmation/index.js +5 -3
- package/esm/app/CopyToClipboard/CopyToClipboard.stories.js +8 -0
- package/esm/app/CopyToClipboard/__stories__/Banner.js +16 -0
- package/esm/app/CopyToClipboard/__stories__/Default.js +16 -0
- package/esm/app/CopyToClipboard/__stories__/MultipleCopies.js +120 -0
- package/esm/app/CopyToClipboard/index.js +45 -0
- package/esm/app/CopyToClipboard/index.mdx +22 -0
- package/esm/app/Footer/Footer.mdx +27 -0
- package/esm/app/Footer/Footer.stories.js +11 -0
- package/esm/app/Footer/__stories__/Default.js +9 -0
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +30 -0
- package/esm/app/Footer/__stories__/FooterWithLink.js +23 -0
- package/esm/app/Footer/__stories__/FooterWithLogo.js +23 -0
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +32 -0
- package/esm/app/Header/index.mdx +18 -0
- package/esm/app/I18nText.js +7 -6
- package/esm/app/NotFound/NotFound.stories.js +6 -0
- package/esm/app/NotFound/__stories__/Default.js +9 -0
- package/esm/app/NotFound/index.mdx +12 -0
- package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +6 -0
- package/esm/app/PhaseBannerHeader/__stories__/Default.js +12 -0
- package/esm/app/{PhaseBannerHeader.js → PhaseBannerHeader/index.js} +0 -0
- package/esm/app/PhaseBannerHeader/index.mdx +12 -0
- package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +6 -0
- package/esm/app/QrCodeScanner/__stories__/Default.js +52 -0
- package/esm/app/QrCodeScanner/index.js +7 -3
- package/esm/core/Accordion/Accordion.stories.js +7 -0
- package/esm/core/Accordion/__stories__/Default.js +12 -0
- package/esm/core/Accordion/__stories__/WithHints.js +13 -0
- package/esm/core/Accordion/index.mdx +13 -86
- package/esm/core/BackLink/BackLink.stories.js +6 -0
- package/esm/core/BackLink/__stories__/Default.js +11 -0
- package/esm/core/BackLink/index.js +3 -0
- package/esm/core/BackLink/index.mdx +16 -0
- package/esm/core/Blockquote/Blockquote.stories.js +6 -0
- package/esm/core/Blockquote/__stories__/Default.js +9 -0
- package/esm/core/Blockquote/index.mdx +17 -2
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +6 -0
- package/esm/core/Breadcrumbs/__stories__/Default.js +17 -0
- package/esm/core/Breadcrumbs/breadcrumbs.mdx +22 -0
- package/esm/core/Breadcrumbs/index.js +3 -1
- package/esm/core/Button/Button.mdx +37 -2
- package/esm/core/Button/Button.stories.js +3 -1
- package/esm/core/Button/__stories__/CallToActionButton.js +9 -0
- package/esm/core/Button/__stories__/Disabled.js +14 -0
- package/esm/core/Button/__stories__/Warning.js +2 -1
- package/esm/core/Card/Card.stories.js +14 -0
- package/esm/core/Card/__stories__/Default.js +10 -0
- package/esm/core/Card/__stories__/WithClickableContent.js +14 -0
- package/esm/core/Card/__stories__/WithClickableLink.js +12 -0
- package/esm/core/Card/__stories__/WithDarkBorder.js +13 -0
- package/esm/core/Card/__stories__/WithDarkTopBorder.js +13 -0
- package/esm/core/Card/__stories__/WithDivider.js +12 -0
- package/esm/core/Card/__stories__/WithGrayBorder.js +13 -0
- package/esm/core/Card/__stories__/WithGrayTopBorder.js +13 -0
- package/esm/core/Card/__stories__/WithGroupButton.js +11 -0
- package/esm/core/Card/card.mdx +78 -0
- package/esm/core/Checkboxes/Checkbox.stories.js +12 -0
- package/esm/core/Checkboxes/__stories__/ConditionalReveal.js +22 -0
- package/esm/core/Checkboxes/__stories__/Default.js +20 -0
- package/esm/core/Checkboxes/__stories__/MultipleQuestions.js +22 -0
- package/esm/core/Checkboxes/__stories__/NoneAnswer.js +22 -0
- package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +28 -0
- package/esm/core/Checkboxes/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/Checkboxes/__stories__/WithHint.js +20 -0
- package/esm/core/Checkboxes/checkboxes.mdx +54 -0
- package/esm/core/Checkboxes/index.js +5 -0
- package/esm/core/Confirmation/Confirmation.stories.js +6 -0
- package/esm/core/Confirmation/__stories__/Default.js +9 -0
- package/esm/core/Confirmation/confirmation.mdx +19 -0
- package/esm/core/Confirmation/index.js +5 -0
- package/esm/core/DateInput/DateInput.stories.js +9 -0
- package/esm/core/DateInput/__stories__/Default.js +20 -0
- package/esm/core/DateInput/__stories__/MultipleQuestions.js +20 -0
- package/esm/core/DateInput/__stories__/WithErrorMessage.js +25 -0
- package/esm/core/DateInput/__stories__/WithErrorMessageForSingleField.js +23 -0
- package/esm/core/DateInput/index.js +4 -0
- package/esm/core/DateInput/index.mdx +34 -0
- package/esm/core/Details/Details.stories.js +6 -0
- package/esm/core/Details/__stories__/Default.js +9 -0
- package/esm/core/Details/index.mdx +9 -25
- package/esm/core/Divider/Divider.stories.js +7 -0
- package/esm/core/Divider/__stories__/Default.js +26 -0
- package/esm/core/ErrorMessage/ErrorMessage.stories.js +6 -0
- package/esm/core/ErrorMessage/__stories__/Default.js +21 -0
- package/esm/core/ErrorMessage/index.js +3 -0
- package/esm/core/ErrorMessage/index.mdx +21 -0
- package/esm/core/ErrorSummary/ErrorSummary.stories.js +9 -0
- package/esm/core/ErrorSummary/__stories__/Default.js +13 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +32 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToField.js +33 -0
- package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +32 -0
- package/esm/core/ErrorSummary/index.mdx +21 -38
- package/esm/core/Field/index.js +5 -0
- package/esm/core/FileUpload/FileUpload.stories.js +7 -0
- package/esm/core/FileUpload/__stories__/Default.js +13 -0
- package/esm/core/FileUpload/__stories__/WithErrorMessage.js +17 -0
- package/esm/core/FileUpload/index.mdx +22 -0
- package/esm/core/Link/Link.stories.js +10 -0
- package/esm/core/Link/__stories__/DarkBackground.js +13 -0
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +14 -0
- package/esm/core/Link/__stories__/Default.js +11 -0
- package/esm/core/Link/__stories__/NoUnderline.js +12 -0
- package/esm/core/Link/__stories__/OpensInNewTab.js +13 -0
- package/esm/core/Link/link.mdx +30 -0
- package/esm/core/List/List.stories.js +9 -0
- package/esm/core/List/__stories__/BulletList.js +11 -0
- package/esm/core/List/__stories__/Default.js +10 -0
- package/esm/core/List/__stories__/NumberedList.js +11 -0
- package/esm/core/List/__stories__/WithExtraSpace.js +11 -0
- package/esm/core/List/index.mdx +22 -3
- package/esm/core/Masthead/Masthead.stories.js +6 -0
- package/esm/core/Masthead/__stories__/Default.js +11 -0
- package/esm/core/Masthead/index.js +4 -0
- package/esm/core/Masthead/masthead.mdx +14 -0
- package/esm/core/NavList/NavList.js +8 -63
- package/esm/core/NavList/NavListBase.js +58 -0
- package/esm/core/NavList/NavListSubMenu.js +1 -1
- package/esm/core/NavList/types.js +1 -0
- package/esm/core/NotificationBanner/NotificationBanner.stories.js +7 -0
- package/esm/core/NotificationBanner/__stories__/Default.js +12 -0
- package/esm/core/NotificationBanner/__stories__/Success.js +13 -0
- package/esm/core/NotificationBanner/index.js +6 -3
- package/esm/core/NotificationBanner/index.mdx +13 -60
- package/esm/core/NotificationBanner/index.spec.js +1 -1
- package/esm/core/PhaseBanner/PhaseBanner.stories.js +7 -0
- package/esm/core/PhaseBanner/__stories__/Default.js +12 -0
- package/esm/core/PhaseBanner/__stories__/Underlined.js +14 -0
- package/esm/core/PhaseBanner/index.js +6 -0
- package/esm/core/PhaseBanner/index.mdx +24 -0
- package/esm/core/Radios/Radios.stories.js +12 -0
- package/esm/core/Radios/__stories__/ConditionalReveal.js +22 -0
- package/esm/core/Radios/__stories__/Default.js +22 -0
- package/esm/core/Radios/__stories__/Inline.js +19 -0
- package/esm/core/Radios/__stories__/MultipleQuestions.js +25 -0
- package/esm/core/Radios/__stories__/NoneAnswer.js +21 -0
- package/esm/core/Radios/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/Radios/__stories__/WithHints.js +19 -0
- package/esm/core/Radios/index.js +5 -0
- package/esm/core/Radios/index.mdx +56 -0
- package/esm/core/Select/Select.stories.js +8 -0
- package/esm/core/Select/__stories__/Default.js +21 -0
- package/esm/core/Select/__stories__/DisabledInput.js +22 -0
- package/esm/core/Select/__stories__/WithHint.js +22 -0
- package/esm/core/Select/index.js +4 -0
- package/esm/core/Select/index.mdx +36 -0
- package/esm/core/SummaryList/SummaryList.stories.js +9 -0
- package/esm/core/SummaryList/__stories__/Default.js +9 -0
- package/esm/core/SummaryList/__stories__/WithActions.js +20 -0
- package/esm/core/SummaryList/__stories__/WithoutBorders.js +11 -0
- package/esm/core/SummaryList/index.mdx +17 -65
- package/esm/core/Table/Table.stories.js +19 -0
- package/esm/core/Table/TableFloatingScroll.js +85 -0
- package/esm/core/Table/__stories__/DarkVariant.js +11 -0
- package/esm/core/Table/__stories__/DarkVariantWithVerticalHeaders.js +11 -0
- package/esm/core/Table/__stories__/Default.js +9 -0
- package/esm/core/Table/__stories__/DefinedWidth.js +15 -0
- package/esm/core/Table/__stories__/Densed.js +13 -0
- package/esm/core/Table/__stories__/MultipleProps.js +45 -0
- package/esm/core/Table/__stories__/NoData.js +9 -0
- package/esm/core/Table/__stories__/NumericDataType.js +33 -0
- package/esm/core/Table/__stories__/TableCaptions.js +17 -0
- package/esm/core/Table/__stories__/VerticalBorders.js +11 -0
- package/esm/core/Table/__stories__/VerticalHeaders.js +9 -0
- package/esm/core/Table/__stories__/WithHeader.js +53 -0
- package/esm/core/Table/__stories__/WithLoader.js +81 -0
- package/esm/core/Table/__stories__/ZebraProp.js +11 -0
- package/esm/core/Table/index.js +2 -1
- package/esm/core/Table/index.mdx +52 -0
- package/esm/core/Tabs/Tabs.stories.js +6 -0
- package/esm/core/Tabs/__stories__/Default.js +29 -0
- package/esm/core/Tabs/index.js +22 -2
- package/esm/core/Tabs/index.mdx +10 -2
- package/esm/core/TextArea/TextArea.stories.js +12 -0
- package/esm/core/TextArea/__stories__/Default.js +16 -0
- package/esm/core/TextArea/__stories__/DisabledInput.js +18 -0
- package/esm/core/TextArea/__stories__/LimitedCharacters.js +17 -0
- package/esm/core/TextArea/__stories__/MultipleQuestions.js +14 -0
- package/esm/core/TextArea/__stories__/WithDeclaredRows.js +18 -0
- package/esm/core/TextArea/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/TextArea/__stories__/WithHint.js +17 -0
- package/esm/core/TextArea/index.js +3 -0
- package/esm/core/TextArea/index.mdx +50 -0
- package/esm/core/TextInput/TextInput.stories.js +13 -0
- package/esm/core/TextInput/__stories__/AskingForNumbers.js +19 -0
- package/esm/core/TextInput/__stories__/Default.js +16 -0
- package/esm/core/TextInput/__stories__/DisabledInput.js +18 -0
- package/esm/core/TextInput/__stories__/FixedWidths.js +52 -0
- package/esm/core/TextInput/__stories__/FluidWidths.js +52 -0
- package/esm/core/TextInput/__stories__/MultipleQuestions.js +13 -0
- package/esm/core/TextInput/__stories__/WithErrorMessage.js +21 -0
- package/esm/core/TextInput/__stories__/WithHint.js +17 -0
- package/esm/core/TextInput/index.js +3 -0
- package/esm/core/TextInput/index.mdx +59 -0
- package/esm/core/VisuallyHidden/VisuallyHidden.stories.js +6 -0
- package/esm/core/VisuallyHidden/__stories__/Default.js +16 -0
- package/esm/core/VisuallyHidden/index.js +3 -1
- package/esm/core/VisuallyHidden/index.mdx +17 -0
- package/esm/core/WarningText/WarningText.stories.js +6 -0
- package/esm/core/WarningText/__stories__/Default.js +9 -0
- package/esm/core/WarningText/index.mdx +10 -35
- package/esm/core/index.js +9 -3
- package/esm/govgr/Footer/index.mdx +4 -4
- package/esm/hooks/useTogglableSections.js +7 -1
- package/esm/index.js +1 -1
- package/esm/introduction.md +4 -1
- package/esm/layouts/Basic/Basic.stories.js +9 -0
- package/esm/layouts/Basic/__stories__/Default.js +10 -0
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +12 -0
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +12 -0
- package/esm/layouts/Grid/Grid.stories.js +7 -0
- package/esm/layouts/Grid/__stories__/Default.js +58 -0
- package/esm/layouts/Grid/__stories__/Inline.js +55 -0
- package/esm/layouts/Grid/index.js +1 -0
- package/esm/layouts/index.js +2 -0
- package/esm/locales/el.js +1 -0
- package/esm/locales/en.js +1 -0
- package/esm/registry.js +71 -31
- package/esm/typography/Caption/Caption.stories.js +7 -0
- package/esm/typography/Caption/__stories__/Default.js +35 -0
- package/esm/typography/Caption/__stories__/NestedToTitle.js +15 -0
- package/esm/typography/{Caption.js → Caption/index.js} +0 -0
- package/esm/typography/Caption/index.mdx +16 -0
- package/esm/typography/Hint/Hint.stories.js +7 -0
- package/esm/typography/Hint/__stories__/Default.js +9 -0
- package/esm/typography/Hint/__stories__/FontSizes.js +21 -0
- package/esm/typography/{Hint.js → Hint/index.js} +0 -0
- package/esm/typography/Hint/index.mdx +16 -0
- package/esm/typography/NormalText/NormalText.stories.js +9 -0
- package/esm/typography/NormalText/__stories__/Default.js +9 -0
- package/esm/typography/NormalText/__stories__/FontSizes.js +48 -0
- package/esm/typography/NormalText/__stories__/FontWeight.js +18 -0
- package/esm/typography/NormalText/__stories__/Variants.js +18 -0
- package/esm/typography/{NormalText.js → NormalText/index.js} +0 -0
- package/esm/typography/NormalText/index.mdx +26 -0
- package/esm/typography/Paragraph/Paragraph.stories.js +10 -0
- package/esm/typography/Paragraph/__stories__/Default.js +9 -0
- package/esm/typography/Paragraph/__stories__/FontSizes.js +35 -0
- package/esm/typography/Paragraph/__stories__/FontWeight.js +15 -0
- package/esm/typography/Paragraph/__stories__/LeadVariant.js +11 -0
- package/esm/typography/Paragraph/__stories__/SmallVariant.js +11 -0
- package/esm/typography/{Paragraph.js → Paragraph/index.js} +0 -0
- package/esm/typography/Paragraph/index.mdx +30 -0
- package/esm/typography/Title/Title.stories.js +6 -0
- package/esm/typography/Title/__stories__/Default.js +24 -0
- package/esm/typography/{Title.js → Title/index.js} +0 -0
- package/esm/typography/Title/index.mdx +12 -0
- package/govgr/Footer/index.mdx +4 -4
- package/hooks/useTogglableSections.d.ts +3 -2
- package/hooks/useTogglableSections.js +7 -1
- package/introduction.md +4 -1
- package/layouts/Basic/Basic.stories.d.ts +9 -0
- package/layouts/Basic/Basic.stories.js +60 -0
- package/layouts/Basic/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/__stories__/Default.js +30 -0
- package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +3 -0
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +32 -0
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +3 -0
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +32 -0
- package/layouts/Grid/Grid.stories.d.ts +7 -0
- package/layouts/Grid/Grid.stories.js +44 -0
- package/layouts/Grid/__stories__/Default.d.ts +3 -0
- package/layouts/Grid/__stories__/Default.js +71 -0
- package/layouts/Grid/__stories__/Inline.d.ts +3 -0
- package/layouts/Grid/__stories__/Inline.js +68 -0
- package/layouts/Grid/index.d.ts +3 -1
- package/layouts/Grid/index.js +6 -0
- package/layouts/index.d.ts +2 -0
- package/layouts/index.js +22 -1
- package/locales/el.d.ts +1 -0
- package/locales/el.js +1 -0
- package/locales/en.d.ts +1 -0
- package/locales/en.js +1 -0
- package/package.json +3 -3
- package/registry.d.ts +35 -15
- package/registry.js +106 -46
- package/typography/Caption/Caption.stories.d.ts +8 -0
- package/typography/Caption/Caption.stories.js +44 -0
- package/typography/Caption/__stories__/Default.d.ts +3 -0
- package/typography/Caption/__stories__/Default.js +49 -0
- package/typography/Caption/__stories__/NestedToTitle.d.ts +3 -0
- package/typography/Caption/__stories__/NestedToTitle.js +29 -0
- package/typography/{Caption.d.ts → Caption/index.d.ts} +0 -0
- package/typography/{Caption.js → Caption/index.js} +0 -0
- package/typography/Caption/index.mdx +16 -0
- package/typography/Hint/Hint.stories.d.ts +8 -0
- package/typography/Hint/Hint.stories.js +44 -0
- package/typography/Hint/__stories__/Default.d.ts +3 -0
- package/typography/Hint/__stories__/Default.js +22 -0
- package/typography/Hint/__stories__/FontSizes.d.ts +3 -0
- package/typography/Hint/__stories__/FontSizes.js +34 -0
- package/typography/{Hint.d.ts → Hint/index.d.ts} +0 -0
- package/typography/{Hint.js → Hint/index.js} +0 -0
- package/typography/Hint/index.mdx +16 -0
- package/typography/NormalText/NormalText.stories.d.ts +10 -0
- package/typography/NormalText/NormalText.stories.js +72 -0
- package/typography/NormalText/__stories__/Default.d.ts +3 -0
- package/typography/NormalText/__stories__/Default.js +22 -0
- package/typography/NormalText/__stories__/FontSizes.d.ts +3 -0
- package/typography/NormalText/__stories__/FontSizes.js +62 -0
- package/typography/NormalText/__stories__/FontWeight.d.ts +3 -0
- package/typography/NormalText/__stories__/FontWeight.js +32 -0
- package/typography/NormalText/__stories__/Variants.d.ts +3 -0
- package/typography/NormalText/__stories__/Variants.js +32 -0
- package/typography/{NormalText.d.ts → NormalText/index.d.ts} +0 -0
- package/typography/{NormalText.js → NormalText/index.js} +0 -0
- package/typography/NormalText/index.mdx +26 -0
- package/typography/Paragraph/Paragraph.stories.d.ts +11 -0
- package/typography/Paragraph/Paragraph.stories.js +86 -0
- package/typography/Paragraph/__stories__/Default.d.ts +3 -0
- package/typography/Paragraph/__stories__/Default.js +22 -0
- package/typography/Paragraph/__stories__/FontSizes.d.ts +3 -0
- package/typography/Paragraph/__stories__/FontSizes.js +48 -0
- package/typography/Paragraph/__stories__/FontWeight.d.ts +3 -0
- package/typography/Paragraph/__stories__/FontWeight.js +28 -0
- package/typography/Paragraph/__stories__/LeadVariant.d.ts +3 -0
- package/typography/Paragraph/__stories__/LeadVariant.js +24 -0
- package/typography/Paragraph/__stories__/SmallVariant.d.ts +3 -0
- package/typography/Paragraph/__stories__/SmallVariant.js +24 -0
- package/typography/{Paragraph.d.ts → Paragraph/index.d.ts} +0 -0
- package/typography/{Paragraph.js → Paragraph/index.js} +0 -0
- package/typography/Paragraph/index.mdx +30 -0
- package/typography/Title/Title.stories.d.ts +7 -0
- package/typography/Title/Title.stories.js +30 -0
- package/typography/Title/__stories__/Default.d.ts +3 -0
- package/typography/Title/__stories__/Default.js +37 -0
- package/typography/{Title.d.ts → Title/index.d.ts} +0 -0
- package/typography/{Title.js → Title/index.js} +0 -0
- package/typography/Title/index.mdx +12 -0
- package/app/NotFound/NotFound.mdx +0 -5
- package/app/QrCodeScanner/index.mdx +0 -7
- package/es/app/NotFound/NotFound.mdx +0 -5
- package/es/app/QrCodeScanner/index.mdx +0 -7
- package/esm/app/NotFound/NotFound.mdx +0 -5
- package/esm/app/QrCodeScanner/index.mdx +0 -7
|
@@ -0,0 +1,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,6 @@
|
|
|
1
|
+
export default function suggest(query, syncResults) {
|
|
2
|
+
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'];
|
|
3
|
+
syncResults(query ? results.filter(function (result) {
|
|
4
|
+
return result.toLowerCase().indexOf(query.toLowerCase()) !== -1;
|
|
5
|
+
}) : []);
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FullPageBackground from '@digigov/ui/admin/FullPageBackground';
|
|
3
|
+
import LoaderContainer from '@digigov/ui/admin/LoaderContainer';
|
|
4
|
+
import CircularProgress from '@digigov/ui/admin/CircularProgress';
|
|
5
|
+
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(FullPageBackground, null, /*#__PURE__*/React.createElement(LoaderContainer, null, /*#__PURE__*/React.createElement(CircularProgress, null)));
|
|
7
|
+
|
|
8
|
+
export var Default = function Default() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default Default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import Drawer from '@digigov/ui/admin/Drawer';
|
|
4
|
+
import { List, ListItem, BurgerIcon } from '@digigov/react-core';
|
|
5
|
+
import { Button, Title } from '@digigov/ui';
|
|
6
|
+
import { AdminAside, AdminContainer, AdminLayout, AdminMain, AdminTopSection, AdminHeader, AdminHeaderSection, DrawerHeading } from '@digigov/react-extensions/admin';
|
|
7
|
+
import { GovGRLogo } from '@digigov/react-core';
|
|
8
|
+
import { Card, CardHeading, CardText } from '@digigov/react-core';
|
|
9
|
+
import Grid from '@digigov/react-core/Grid';
|
|
10
|
+
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
11
|
+
|
|
12
|
+
var _ref = /*#__PURE__*/React.createElement(GovGRLogo, null);
|
|
13
|
+
|
|
14
|
+
var _ref2 = /*#__PURE__*/React.createElement(BurgerIcon, null);
|
|
15
|
+
|
|
16
|
+
var _ref3 = /*#__PURE__*/React.createElement(AdminTopSection, null);
|
|
17
|
+
|
|
18
|
+
var _ref4 = /*#__PURE__*/React.createElement(Title, {
|
|
19
|
+
size: "md"
|
|
20
|
+
}, "Menu");
|
|
21
|
+
|
|
22
|
+
var _ref5 = /*#__PURE__*/React.createElement(List, {
|
|
23
|
+
spaced: true
|
|
24
|
+
}, /*#__PURE__*/React.createElement(ListItem, null, "Menu option 1"), /*#__PURE__*/React.createElement(ListItem, null, "Menu option 2"));
|
|
25
|
+
|
|
26
|
+
var _ref6 = /*#__PURE__*/React.createElement(AdminMain, null, /*#__PURE__*/React.createElement(Grid, {
|
|
27
|
+
container: true,
|
|
28
|
+
spacing: 4
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
30
|
+
item: true,
|
|
31
|
+
xs: 12,
|
|
32
|
+
lg: 6
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeading, null, "This is a Card"), /*#__PURE__*/React.createElement(CardText, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))), /*#__PURE__*/React.createElement(Grid, {
|
|
34
|
+
item: true,
|
|
35
|
+
xs: 12,
|
|
36
|
+
lg: 6
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeading, null, "This is a Card"), /*#__PURE__*/React.createElement(CardText, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))), /*#__PURE__*/React.createElement(Grid, {
|
|
38
|
+
item: true,
|
|
39
|
+
xs: 12,
|
|
40
|
+
lg: 6
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeading, null, "This is a Card"), /*#__PURE__*/React.createElement(CardText, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))), /*#__PURE__*/React.createElement(Grid, {
|
|
42
|
+
item: true,
|
|
43
|
+
xs: 12,
|
|
44
|
+
lg: 6
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeading, null, "This is a Card"), /*#__PURE__*/React.createElement(CardText, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")))));
|
|
46
|
+
|
|
47
|
+
var _ref7 = /*#__PURE__*/React.createElement(GovGRFooter, null);
|
|
48
|
+
|
|
49
|
+
export var Default = function Default() {
|
|
50
|
+
function useDrawer() {
|
|
51
|
+
var _useState = useState(true),
|
|
52
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
53
|
+
open = _useState2[0],
|
|
54
|
+
setOpen = _useState2[1];
|
|
55
|
+
|
|
56
|
+
function toggleDrawer() {
|
|
57
|
+
setOpen(!open);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return [open, toggleDrawer];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var _useDrawer = useDrawer(),
|
|
64
|
+
_useDrawer2 = _slicedToArray(_useDrawer, 2),
|
|
65
|
+
open = _useDrawer2[0],
|
|
66
|
+
toggleDrawer = _useDrawer2[1];
|
|
67
|
+
|
|
68
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AdminLayout, null, /*#__PURE__*/React.createElement(AdminHeader, null, /*#__PURE__*/React.createElement(AdminHeaderSection, null, _ref, /*#__PURE__*/React.createElement(Button, {
|
|
69
|
+
className: "govgr-drawer__burger-icon",
|
|
70
|
+
onClick: function onClick() {
|
|
71
|
+
return toggleDrawer();
|
|
72
|
+
},
|
|
73
|
+
color: "secondary"
|
|
74
|
+
}, _ref2))), /*#__PURE__*/React.createElement(AdminContainer, null, _ref3, /*#__PURE__*/React.createElement(AdminAside, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
75
|
+
direction: "left",
|
|
76
|
+
open: open
|
|
77
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, {
|
|
78
|
+
onClick: function onClick() {
|
|
79
|
+
return toggleDrawer();
|
|
80
|
+
}
|
|
81
|
+
}, _ref4), _ref5)), _ref6), _ref7));
|
|
82
|
+
};
|
|
83
|
+
export default Default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["closeBehaviour"];
|
|
3
|
+
var _excluded = ["closeBehaviour", "float"];
|
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
|
5
5
|
import CoreDropdown from '@digigov/react-extensions/admin/Dropdown';
|
|
6
6
|
export * from '@digigov/react-extensions/admin/DropdownButton';
|
|
@@ -12,6 +12,8 @@ export * from '@digigov/react-extensions/admin/DropdownContent';
|
|
|
12
12
|
export var Dropdown = function Dropdown(_ref) {
|
|
13
13
|
var _ref$closeBehaviour = _ref.closeBehaviour,
|
|
14
14
|
closeBehaviour = _ref$closeBehaviour === void 0 ? 'clickOutside' : _ref$closeBehaviour,
|
|
15
|
+
_ref$float = _ref["float"],
|
|
16
|
+
_float = _ref$float === void 0 ? false : _ref$float,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
18
|
|
|
17
19
|
var innerRef = useRef();
|
|
@@ -26,10 +28,35 @@ export var Dropdown = function Dropdown(_ref) {
|
|
|
26
28
|
document.addEventListener('click', handleClickOutside, true);
|
|
27
29
|
}
|
|
28
30
|
|
|
31
|
+
var toggleFloat = function toggleFloat() {
|
|
32
|
+
if (innerRef.current.open) {
|
|
33
|
+
var rect = innerRef.current.getBoundingClientRect();
|
|
34
|
+
innerRef.current.style.position = 'static';
|
|
35
|
+
var top = rect.top + window.pageYOffset;
|
|
36
|
+
var left = rect.left + window.pageXOffset;
|
|
37
|
+
innerRef.current.style.top = "".concat(top, "px");
|
|
38
|
+
innerRef.current.style.left = "".concat(left, "px");
|
|
39
|
+
innerRef.current.style.position = "absolute";
|
|
40
|
+
innerRef.current.style.display = "block";
|
|
41
|
+
} else {
|
|
42
|
+
innerRef.current.style.top = "0";
|
|
43
|
+
innerRef.current.style.left = "0";
|
|
44
|
+
innerRef.current.style.position = "relative";
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
if (_float) {
|
|
49
|
+
innerRef.current.addEventListener('toggle', toggleFloat);
|
|
50
|
+
}
|
|
51
|
+
|
|
29
52
|
return function () {
|
|
30
53
|
if (closeBehaviour === 'clickOutside') {
|
|
31
54
|
document.removeEventListener('click', handleClickOutside, true);
|
|
32
55
|
}
|
|
56
|
+
|
|
57
|
+
if (_float) {
|
|
58
|
+
innerRef.current.removeEventListener('toggle', toggleFloat);
|
|
59
|
+
}
|
|
33
60
|
};
|
|
34
61
|
}, []); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
35
62
|
// @ts-ignore
|
|
@@ -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';
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Pagination, { PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
|
|
3
|
+
import ArrowIcon from '@digigov/react-core/ArrowIcon';
|
|
4
|
+
import Link from '@digigov/ui/core/Link';
|
|
5
|
+
import Divider from '@digigov/ui/core/Divider';
|
|
6
|
+
import { I18NProvider } from '@digigov/ui/app';
|
|
7
|
+
|
|
8
|
+
var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
9
|
+
start: 10,
|
|
10
|
+
end: 20,
|
|
11
|
+
total: 10000
|
|
12
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
13
|
+
direction: "left"
|
|
14
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
15
|
+
href: "/page1"
|
|
16
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
17
|
+
currentPage: true
|
|
18
|
+
}, "2"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
19
|
+
href: "/page3"
|
|
20
|
+
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
21
|
+
variant: "dots"
|
|
22
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
23
|
+
href: "/page5"
|
|
24
|
+
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
25
|
+
href: "/page6"
|
|
26
|
+
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
27
|
+
href: "/page7"
|
|
28
|
+
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
29
|
+
direction: "right"
|
|
30
|
+
})))));
|
|
31
|
+
|
|
32
|
+
var _ref2 = /*#__PURE__*/React.createElement(Divider, {
|
|
33
|
+
visible: true,
|
|
34
|
+
size: "l"
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
var _ref3 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
38
|
+
start: 10,
|
|
39
|
+
end: 20,
|
|
40
|
+
total: 10000
|
|
41
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
42
|
+
inactive: true
|
|
43
|
+
}, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
44
|
+
direction: "left"
|
|
45
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
46
|
+
currentPage: true
|
|
47
|
+
}, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
48
|
+
href: "/page2"
|
|
49
|
+
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
50
|
+
href: "/page3"
|
|
51
|
+
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
52
|
+
variant: "dots"
|
|
53
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
54
|
+
href: "/page5"
|
|
55
|
+
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
56
|
+
href: "/page6"
|
|
57
|
+
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
58
|
+
href: "/page7"
|
|
59
|
+
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
60
|
+
direction: "right"
|
|
61
|
+
})))));
|
|
62
|
+
|
|
63
|
+
var _ref4 = /*#__PURE__*/React.createElement(Divider, {
|
|
64
|
+
visible: true,
|
|
65
|
+
size: "l"
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
var _ref5 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
69
|
+
start: 10,
|
|
70
|
+
end: 20,
|
|
71
|
+
total: 10000
|
|
72
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
73
|
+
direction: "left"
|
|
74
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
75
|
+
href: "/page1"
|
|
76
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
77
|
+
href: "/page3"
|
|
78
|
+
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
79
|
+
variant: "dots"
|
|
80
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
81
|
+
href: "/page5"
|
|
82
|
+
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
83
|
+
href: "/page6"
|
|
84
|
+
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
85
|
+
currentPage: true
|
|
86
|
+
}, "7"), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
87
|
+
inactive: true
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
89
|
+
direction: "right"
|
|
90
|
+
})))));
|
|
91
|
+
|
|
92
|
+
var _ref6 = /*#__PURE__*/React.createElement(Divider, {
|
|
93
|
+
visible: true,
|
|
94
|
+
size: "l"
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
var _ref7 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
98
|
+
start: 1,
|
|
99
|
+
end: 10,
|
|
100
|
+
total: 15
|
|
101
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
102
|
+
direction: "left"
|
|
103
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
104
|
+
href: "/page1"
|
|
105
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
106
|
+
variant: "dots"
|
|
107
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
108
|
+
href: "/page7"
|
|
109
|
+
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
110
|
+
currentPage: true
|
|
111
|
+
}, "8"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
112
|
+
href: "/page9"
|
|
113
|
+
}, "9")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
114
|
+
variant: "dots"
|
|
115
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
116
|
+
href: "/page20"
|
|
117
|
+
}, "20")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
118
|
+
direction: "right"
|
|
119
|
+
})))));
|
|
120
|
+
|
|
121
|
+
var _ref8 = /*#__PURE__*/React.createElement(Divider, {
|
|
122
|
+
visible: true,
|
|
123
|
+
size: "l"
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
var _ref9 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
127
|
+
start: 1,
|
|
128
|
+
end: 10,
|
|
129
|
+
total: 15
|
|
130
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
131
|
+
inactive: true
|
|
132
|
+
}, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
133
|
+
direction: "left"
|
|
134
|
+
}))), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
135
|
+
currentPage: true
|
|
136
|
+
}, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
137
|
+
href: "/page7"
|
|
138
|
+
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
139
|
+
direction: "right"
|
|
140
|
+
})))));
|
|
141
|
+
|
|
142
|
+
var _ref10 = /*#__PURE__*/React.createElement(Divider, {
|
|
143
|
+
visible: true,
|
|
144
|
+
size: "l"
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
export var Default = function Default() {
|
|
148
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
149
|
+
className: "example"
|
|
150
|
+
}, /*#__PURE__*/React.createElement(I18NProvider, {
|
|
151
|
+
t: function t(str) {
|
|
152
|
+
return str;
|
|
153
|
+
}
|
|
154
|
+
}, _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10));
|
|
155
|
+
};
|
|
156
|
+
export default Default;
|
package/es/admin/index.js
CHANGED
|
@@ -13,4 +13,5 @@ export * from '@digigov/ui/admin/LabeledText';
|
|
|
13
13
|
export * from '@digigov/ui/admin/AdminLayout';
|
|
14
14
|
export * from '@digigov/ui/admin/ResultsHeading';
|
|
15
15
|
export * from '@digigov/ui/admin/SearchSection';
|
|
16
|
-
export * from '@digigov/ui/admin/FilterSection';
|
|
16
|
+
export * from '@digigov/ui/admin/FilterSection';
|
|
17
|
+
export * from '@digigov/ui/admin/AutoComplete';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Confirmation, { ConfirmationTitle, ConfirmationBody } from '@digigov/ui/app/Confirmation';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Confirmation, null, /*#__PURE__*/React.createElement(ConfirmationTitle, null, "\u0397 \u03C6\u03CC\u03C1\u03BC\u03B1 \u03C5\u03C0\u03BF\u03B2\u03BB\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2"), /*#__PURE__*/React.createElement(ConfirmationBody, null, "\u039F \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03B5\u03B3\u03B3\u03C1\u03AC\u03C6\u03BF\u03C5 ", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("strong", null, "HDJ2123F")));
|
|
5
|
+
|
|
6
|
+
export var Default = function Default() {
|
|
7
|
+
return _ref;
|
|
8
|
+
};
|
|
9
|
+
export default Default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import Confirmation from '@digigov/react-core/Confirmation';
|
|
2
|
+
import ConfirmationBody from '@digigov/react-core/ConfirmationBody';
|
|
3
|
+
import ConfirmationTitle from '@digigov/react-core/ConfirmationTitle';
|
|
4
|
+
export default Confirmation;
|
|
5
|
+
export { ConfirmationBody, ConfirmationTitle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Digigov UI/app/CopyToClipboard',
|
|
4
|
+
component: CopyToClipboard
|
|
5
|
+
};
|
|
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';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
|
|
3
|
+
import { Button } from '@digigov/ui';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
6
|
+
text: "copied-text",
|
|
7
|
+
variant: "banner",
|
|
8
|
+
message: "text successfuly copied!"
|
|
9
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
10
|
+
color: "secondary"
|
|
11
|
+
}, "Banner example"));
|
|
12
|
+
|
|
13
|
+
export var Banner = function Banner() {
|
|
14
|
+
return _ref;
|
|
15
|
+
};
|
|
16
|
+
export default Banner;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
|
|
3
|
+
import { Button } from '@digigov/ui';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
6
|
+
text: "copied-text",
|
|
7
|
+
variant: "tooltip",
|
|
8
|
+
message: "text successfuly copied!"
|
|
9
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
10
|
+
color: "secondary"
|
|
11
|
+
}, "Copy"));
|
|
12
|
+
|
|
13
|
+
export var Default = function Default() {
|
|
14
|
+
return _ref;
|
|
15
|
+
};
|
|
16
|
+
export default Default;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CopyToClipboard from '@digigov/ui/app/CopyToClipboard';
|
|
3
|
+
import { AdminAside, AdminContainer, AdminLayout, AdminMain, AdminTopSection, AdminHeader, AdminHeaderSection, Dropdown, DropdownButton, DropdownContent } from '@digigov/react-extensions/admin';
|
|
4
|
+
import { MoreVertIcon, NavVertical, NavVerticalItem } from '@digigov/react-core';
|
|
5
|
+
import { Accordion, AccordionItem, AccordionSectionSummary, AccordionSectionSummaryHeading } from '@digigov/ui/core/Accordion';
|
|
6
|
+
import { SummaryList, SummaryListItem, SummaryListItemKey, SummaryListItemValue, SummaryListItemAction, Button, BackButton, ButtonGroup } from '@digigov/ui';
|
|
7
|
+
import { HeaderContent, HeaderTitle, HeaderSubtitle, SectionBreak } from '@digigov/ui';
|
|
8
|
+
import Title from '@digigov/ui/typography/Title';
|
|
9
|
+
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
10
|
+
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
11
|
+
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
12
|
+
import Grid from '@digigov/ui/layouts/Grid';
|
|
13
|
+
var fields = [{
|
|
14
|
+
name: 'Θέμα',
|
|
15
|
+
value: 'Αίτηση Ληξιαρχικής Πράξης Γάμου'
|
|
16
|
+
}, {
|
|
17
|
+
name: 'Ημερομηνία',
|
|
18
|
+
value: '09/03/2002 14:54:36'
|
|
19
|
+
}, {
|
|
20
|
+
name: 'Κωδικός επαλήθευσης',
|
|
21
|
+
value: 'NdH-EYREW1yd1LUhEOssx4A',
|
|
22
|
+
actions: ['Προβολή', 'Αντιγραφή συνδέσμου']
|
|
23
|
+
}, {
|
|
24
|
+
name: 'Κατάσταση',
|
|
25
|
+
value: 'Εισερχόμενη',
|
|
26
|
+
actions: ['Αλλάγή']
|
|
27
|
+
}, {
|
|
28
|
+
name: 'Χειριστής',
|
|
29
|
+
value: 'Δεν έχει οριστεί χειριστής',
|
|
30
|
+
actions: ['Ανάθεση']
|
|
31
|
+
}];
|
|
32
|
+
|
|
33
|
+
var _ref = /*#__PURE__*/React.createElement(AdminHeader, null, /*#__PURE__*/React.createElement(AdminHeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, null), /*#__PURE__*/React.createElement(HeaderTitle, null, "\u0398\u03C5\u03C1\u03AF\u03B4\u03B5\u03C2")), /*#__PURE__*/React.createElement(HeaderSubtitle, null, /*#__PURE__*/React.createElement(Dropdown, {
|
|
34
|
+
align: "right"
|
|
35
|
+
}, /*#__PURE__*/React.createElement(DropdownButton, {
|
|
36
|
+
variant: "link"
|
|
37
|
+
}, "\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.createElement(MoreVertIcon, null)), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, {
|
|
38
|
+
href: "#"
|
|
39
|
+
}, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/React.createElement(NavVerticalItem, {
|
|
40
|
+
href: "#"
|
|
41
|
+
}, "\u039C\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7"), /*#__PURE__*/React.createElement(NavVerticalItem, {
|
|
42
|
+
href: "#"
|
|
43
|
+
}, "\u039F\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03AE \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))))));
|
|
44
|
+
|
|
45
|
+
var _ref2 = /*#__PURE__*/React.createElement(Grid, {
|
|
46
|
+
item: true,
|
|
47
|
+
md: 3,
|
|
48
|
+
lg: 2
|
|
49
|
+
}, /*#__PURE__*/React.createElement(AdminAside, null, /*#__PURE__*/React.createElement(AdminTopSection, null, /*#__PURE__*/React.createElement(BackButton, null, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03B8\u03C5\u03C1\u03AF\u03B4\u03B1\u03C2"), /*#__PURE__*/React.createElement(Title, {
|
|
50
|
+
size: "sm"
|
|
51
|
+
}, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]"), /*#__PURE__*/React.createElement(Paragraph, null, "\u039A\u0395\u03A0/\u0396\u0391\u039A\u03A5\u039D\u0398\u039F\u03A5 [\u0396\u0391\u039A\u03A5\u039D\u0398\u0399\u03A9\u039D]")), /*#__PURE__*/React.createElement(SectionBreak, {
|
|
52
|
+
visible: true,
|
|
53
|
+
size: "m"
|
|
54
|
+
}), /*#__PURE__*/React.createElement(Button, null, "\u039D\u03AD\u03B1 \u03C5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7"), /*#__PURE__*/React.createElement(Accordion, null, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionSectionSummary, null, /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "\u03A5\u03C0\u03BF\u03B8\u03AD\u03C3\u03B5\u03B9\u03C2"))), /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionSectionSummary, null, /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7")), /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, null, "\u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"), /*#__PURE__*/React.createElement(NavVerticalItem, null, "\u0391\u03B9\u03C4\u03AE\u03BC\u03B1\u03C4\u03B1"))))));
|
|
55
|
+
|
|
56
|
+
var _ref3 = /*#__PURE__*/React.createElement(Title, {
|
|
57
|
+
size: "xl"
|
|
58
|
+
}, "# \u03A5\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 4");
|
|
59
|
+
|
|
60
|
+
var _ref4 = /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
61
|
+
text: "AAABBBFFFLLL",
|
|
62
|
+
variant: "tooltip",
|
|
63
|
+
message: "text successfuly copied!"
|
|
64
|
+
}, /*#__PURE__*/React.createElement(Button, null, "\u0391\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7")), /*#__PURE__*/React.createElement(Button, {
|
|
65
|
+
color: "secondary"
|
|
66
|
+
}, "\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE"), /*#__PURE__*/React.createElement(Button, {
|
|
67
|
+
color: "secondary"
|
|
68
|
+
}, "\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7"));
|
|
69
|
+
|
|
70
|
+
var _ref5 = /*#__PURE__*/React.createElement(Grid, {
|
|
71
|
+
item: true,
|
|
72
|
+
xs: 12
|
|
73
|
+
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
74
|
+
text: "AAABBBFFFLLL",
|
|
75
|
+
variant: "banner",
|
|
76
|
+
message: "text successfuly copied!"
|
|
77
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
78
|
+
color: "secondary"
|
|
79
|
+
}, "Banner example")));
|
|
80
|
+
|
|
81
|
+
var _ref6 = /*#__PURE__*/React.createElement(Grid, {
|
|
82
|
+
item: true,
|
|
83
|
+
xs: 12
|
|
84
|
+
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
85
|
+
text: "AAABBBFFFLLL",
|
|
86
|
+
variant: "tooltip",
|
|
87
|
+
message: "text successfuly copied!"
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
89
|
+
color: "secondary"
|
|
90
|
+
}, "Tooltip example")));
|
|
91
|
+
|
|
92
|
+
var _ref7 = /*#__PURE__*/React.createElement(GovGRFooter, null);
|
|
93
|
+
|
|
94
|
+
export var MultipleCopies = function MultipleCopies() {
|
|
95
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AdminLayout, null, _ref, /*#__PURE__*/React.createElement(AdminContainer, null, _ref2, /*#__PURE__*/React.createElement(Grid, {
|
|
96
|
+
item: true,
|
|
97
|
+
md: 9,
|
|
98
|
+
lg: 10
|
|
99
|
+
}, /*#__PURE__*/React.createElement(AdminMain, null, /*#__PURE__*/React.createElement(Grid, {
|
|
100
|
+
container: true,
|
|
101
|
+
spacing: 4
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
103
|
+
item: true,
|
|
104
|
+
xs: 12
|
|
105
|
+
}, _ref3, _ref4, /*#__PURE__*/React.createElement(SummaryList, null, fields && fields.map(function (field, index) {
|
|
106
|
+
return /*#__PURE__*/React.createElement(SummaryListItem, {
|
|
107
|
+
key: index
|
|
108
|
+
}, /*#__PURE__*/React.createElement(SummaryListItemKey, null, field.name), /*#__PURE__*/React.createElement(SummaryListItemValue, null, field.value), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(ButtonGroup, null, field.actions && field.actions.map(function (action, subIndex) {
|
|
109
|
+
return /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
110
|
+
text: "MMMNNNKKKO",
|
|
111
|
+
variant: "tooltip",
|
|
112
|
+
key: subIndex
|
|
113
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
114
|
+
key: subIndex,
|
|
115
|
+
variant: "link"
|
|
116
|
+
}, action));
|
|
117
|
+
}))));
|
|
118
|
+
}))), _ref5, _ref6)))), _ref7));
|
|
119
|
+
};
|
|
120
|
+
export default MultipleCopies;
|