@digigov/ui 0.28.1 → 0.28.3
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 +16 -1
- package/README.md +1 -0
- package/admin/AutoComplete/AutoComplete.stories.d.ts +1 -0
- package/admin/AutoComplete/AutoComplete.stories.js +2 -1
- package/admin/AutoComplete/Status/index.d.ts +2 -2
- package/admin/AutoComplete/Status/index.js +4 -4
- package/admin/AutoComplete/index.d.ts +2 -2
- package/admin/AutoComplete/index.mdx +4 -0
- package/admin/CircularProgress/CircularProgress.stories.d.ts +2 -0
- package/admin/CircularProgress/CircularProgress.stories.js +3 -2
- package/admin/CircularProgress/__stories__/Default.js +1 -3
- package/admin/CopyToClipboard/CopyToClipboard.stories.d.ts +1 -1
- package/admin/CopyToClipboard/CopyToClipboard.stories.js +2 -15
- package/admin/CopyToClipboard/index.mdx +2 -2
- package/admin/Drawer/Drawer.stories.d.ts +7 -1
- package/admin/Drawer/Drawer.stories.js +25 -3
- package/admin/Drawer/__stories__/Default.js +7 -46
- package/admin/Drawer/index.mdx +4 -0
- package/admin/Dropdown/Dropdown.stories.d.ts +3 -0
- package/admin/Dropdown/Dropdown.stories.js +4 -1
- package/admin/Dropdown/__stories__/AlignRight.js +4 -3
- package/admin/Dropdown/__stories__/Default.js +5 -3
- package/admin/Dropdown/__stories__/PlacementTop.js +4 -3
- package/admin/Dropdown/index.d.ts +3 -2
- package/admin/Dropdown/index.js +12 -4
- package/admin/Dropdown/index.mdx +4 -1
- package/admin/Modal/Modal.stories.d.ts +3 -0
- package/admin/Modal/Modal.stories.js +4 -1
- package/admin/Modal/__stories__/AlertDialog.js +11 -31
- package/admin/Modal/__stories__/Default.js +10 -26
- package/admin/Modal/index.d.ts +2 -2
- package/admin/Modal/index.js +5 -5
- package/admin/Modal/index.mdx +4 -8
- package/admin/Pagination/Pagination.stories.d.ts +4 -0
- package/admin/Pagination/Pagination.stories.js +18 -1
- package/admin/Pagination/__stories__/Default.js +1 -27
- package/admin/Pagination/__stories__/PaginationSmall.d.ts +2 -0
- package/admin/Pagination/__stories__/PaginationSmall.js +61 -0
- package/admin/Pagination/index.d.ts +3 -2
- package/admin/Pagination/index.js +12 -4
- package/admin/Pagination/index.mdx +4 -0
- package/admin/StepNav/StepNav.stories.d.ts +2 -0
- package/admin/StepNav/StepNav.stories.js +3 -1
- package/admin/TaskList/TaskList.stories.d.ts +2 -0
- package/admin/TaskList/TaskList.stories.js +3 -1
- package/admin/TaskList/__stories__/Default.js +2 -2
- package/admin/Timeline/Timeline.stories.d.ts +2 -0
- package/admin/Timeline/Timeline.stories.js +3 -1
- package/admin/Timeline/__stories__/Default.js +3 -1
- package/app/Confirmation/Confirmation.mdx +4 -0
- package/app/Confirmation/Confirmation.stories.d.ts +5 -1
- package/app/Confirmation/Confirmation.stories.js +6 -3
- package/app/Confirmation/index.d.ts +3 -3
- package/app/Confirmation/index.js +44 -15
- package/app/Footer/Footer.mdx +4 -0
- package/app/Footer/Footer.stories.d.ts +5 -0
- package/app/Footer/Footer.stories.js +6 -2
- package/app/Footer/index.d.ts +2 -0
- package/app/Footer/index.js +28 -2
- package/app/Header/Header.stories.d.ts +4 -0
- package/app/Header/Header.stories.js +4 -0
- package/app/Header/index.mdx +4 -0
- package/app/I18nText.js +1 -0
- package/app/NotFound/NotFound.stories.d.ts +1 -0
- package/app/NotFound/NotFound.stories.js +2 -1
- package/app/NotFound/index.mdx +4 -0
- package/app/PageTitle.d.ts +5 -9
- package/app/PageTitle.js +57 -61
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.d.ts +2 -0
- package/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -2
- package/app/PhaseBannerHeader/index.mdx +4 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.d.ts +1 -0
- package/app/QrCodeScanner/QrCodeScanner.stories.js +2 -1
- package/app/QrCodeScanner/index.d.ts +8 -1
- package/app/QrCodeScanner/index.js +3 -5
- package/app/QrCodeViewer/QRCode.stories.d.ts +1 -0
- package/app/QrCodeViewer/QRCode.stories.js +2 -1
- package/app/QrCodeViewer/index.d.ts +5 -7
- package/app/QrCodeViewer/index.js +2 -70
- package/app/QrCodeViewer/index.mdx +4 -0
- package/app/QrCodeViewer/types.d.ts +0 -1
- package/app/index.d.ts +2 -0
- package/app/index.js +26 -0
- package/core/Accordion/Accordion.stories.d.ts +5 -0
- package/core/Accordion/Accordion.stories.js +6 -2
- package/core/Accordion/Accordion.stories.playwright.json +1 -7
- package/core/Accordion/__stories__/Default.js +3 -1
- package/core/Accordion/__stories__/WithHints.js +3 -1
- package/core/Accordion/index.d.ts +6 -0
- package/core/Accordion/index.js +85 -6
- package/core/Accordion/index.mdx +4 -0
- package/core/BackLink/BackLink.stories.d.ts +1 -0
- package/core/BackLink/BackLink.stories.js +2 -1
- package/core/BackLink/index.mdx +4 -0
- package/core/Blockquote/Blockquote.stories.d.ts +3 -0
- package/core/Blockquote/Blockquote.stories.js +4 -1
- package/core/Blockquote/index.mdx +4 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -0
- package/core/Breadcrumbs/Breadcrumbs.stories.js +4 -1
- package/core/Breadcrumbs/breadcrumbs.mdx +4 -0
- package/core/Button/Button.stories.d.ts +3 -0
- package/core/Button/Button.stories.js +5 -2
- package/core/Button/index.mdx +4 -1
- package/core/Card/Card.stories.d.ts +4 -0
- package/core/Card/Card.stories.js +5 -1
- package/core/Card/__stories__/WithClickableContent.js +2 -2
- package/core/Card/card.mdx +4 -0
- package/core/Checkboxes/Checkbox.stories.d.ts +3 -0
- package/core/Checkboxes/Checkbox.stories.js +4 -1
- package/core/Checkboxes/__stories__/ConditionalReveal.js +1 -1
- package/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
- package/core/Checkboxes/checkboxes.mdx +4 -0
- package/core/DateInput/DateInput.stories.d.ts +3 -0
- package/core/DateInput/DateInput.stories.js +4 -1
- package/core/DateInput/index.d.ts +2 -2
- package/core/DateInput/index.js +5 -5
- package/core/DateInput/index.mdx +5 -0
- package/core/Details/Details.stories.d.ts +3 -0
- package/core/Details/Details.stories.js +4 -1
- package/core/Details/index.d.ts +3 -3
- package/core/Details/index.js +44 -21
- package/core/Details/index.mdx +4 -0
- package/core/Divider/Divider.stories.d.ts +1 -0
- package/core/Divider/Divider.stories.js +2 -1
- package/core/Divider/index.js +1 -0
- package/core/ErrorMessage/ErrorMessage.stories.d.ts +3 -0
- package/core/ErrorMessage/ErrorMessage.stories.js +4 -1
- package/core/ErrorMessage/index.mdx +4 -0
- package/core/ErrorSummary/ErrorSummary.stories.d.ts +3 -0
- package/core/ErrorSummary/ErrorSummary.stories.js +4 -1
- package/core/ErrorSummary/__stories__/LinkedToInput.js +2 -2
- package/core/ErrorSummary/index.d.ts +1 -1
- package/core/ErrorSummary/index.js +19 -8
- package/core/ErrorSummary/index.mdx +4 -0
- package/core/Field/index.d.ts +2 -2
- package/core/Field/index.js +5 -5
- package/core/FileUpload/FileUpload.stories.d.ts +2 -0
- package/core/FileUpload/FileUpload.stories.js +3 -1
- package/core/FileUpload/index.mdx +4 -1
- package/core/Label/index.d.ts +2 -2
- package/core/Label/index.js +5 -5
- package/core/Link/Link.stories.d.ts +2 -0
- package/core/Link/Link.stories.js +3 -1
- package/core/Link/index.d.ts +3 -3
- package/core/Link/index.js +15 -6
- package/core/Link/link.mdx +4 -0
- package/core/List/List.d.ts +1 -1
- package/core/List/List.js +19 -8
- package/core/List/List.stories.d.ts +4 -0
- package/core/List/List.stories.js +5 -2
- package/core/List/index.mdx +4 -0
- package/core/Masthead/Masthead.stories.d.ts +4 -0
- package/core/Masthead/Masthead.stories.js +5 -1
- package/core/Masthead/masthead.mdx +4 -0
- package/core/NavList/NavList.stories.d.ts +3 -0
- package/core/NavList/NavList.stories.js +4 -1
- package/core/NavList/index.d.ts +3 -1
- package/core/NavList/index.js +26 -8
- package/core/NavList/index.mdx +4 -0
- package/core/NotificationBanner/NotificationBanner.stories.d.ts +4 -0
- package/core/NotificationBanner/NotificationBanner.stories.js +5 -1
- package/core/NotificationBanner/index.d.ts +3 -3
- package/core/NotificationBanner/index.js +8 -2
- package/core/NotificationBanner/index.mdx +4 -0
- package/core/PhaseBanner/PhaseBanner.stories.d.ts +3 -0
- package/core/PhaseBanner/PhaseBanner.stories.js +4 -1
- package/core/PhaseBanner/index.mdx +4 -0
- package/core/Radios/Radios.stories.d.ts +3 -0
- package/core/Radios/Radios.stories.js +4 -1
- package/core/Radios/__stories__/ConditionalReveal.js +1 -1
- package/core/Radios/index.d.ts +2 -2
- package/core/Radios/index.js +5 -5
- package/core/Radios/index.mdx +14 -0
- package/core/Select/Select.stories.d.ts +3 -0
- package/core/Select/Select.stories.js +4 -1
- package/core/Select/__stories__/Default.js +2 -2
- package/core/Select/__stories__/DisabledInput.js +2 -2
- package/core/Select/__stories__/WithHint.js +2 -2
- package/core/Select/index.d.ts +2 -2
- package/core/Select/index.js +5 -5
- package/core/Select/index.mdx +4 -0
- package/core/SummaryList/SummaryList.stories.d.ts +4 -0
- package/core/SummaryList/SummaryList.stories.js +5 -2
- package/core/SummaryList/index.mdx +4 -0
- package/core/Table/Table.stories.d.ts +4 -0
- package/core/Table/Table.stories.js +5 -2
- package/core/Table/__stories__/WithFloatingScroll.js +1 -27
- package/core/Table/index.d.ts +2 -0
- package/core/Table/index.js +23 -2
- package/core/Table/index.mdx +4 -1
- package/core/Tabs/Tabs.stories.d.ts +5 -0
- package/core/Tabs/Tabs.stories.js +6 -2
- package/core/Tabs/index.d.ts +5 -5
- package/core/Tabs/index.js +74 -36
- package/core/Tabs/index.mdx +4 -0
- package/core/TextArea/TextArea.stories.d.ts +3 -0
- package/core/TextArea/TextArea.stories.js +4 -1
- package/core/TextArea/__stories__/Default.js +2 -2
- package/core/TextArea/__stories__/DisabledInput.js +2 -2
- package/core/TextArea/__stories__/LimitedCharacters.js +2 -2
- package/core/TextArea/__stories__/MultipleQuestions.js +2 -2
- package/core/TextArea/__stories__/WithDeclaredRows.js +2 -2
- package/core/TextArea/__stories__/WithErrorMessage.js +2 -2
- package/core/TextArea/__stories__/WithHint.js +2 -2
- package/core/TextArea/index.mdx +4 -0
- package/core/TextInput/TextInput.stories.d.ts +3 -0
- package/core/TextInput/TextInput.stories.js +4 -1
- package/core/TextInput/__stories__/AskingForNumbers.js +2 -2
- package/core/TextInput/__stories__/Default.js +2 -2
- package/core/TextInput/__stories__/DisabledInput.js +2 -2
- package/core/TextInput/__stories__/FixedWidths.js +7 -7
- package/core/TextInput/__stories__/FluidWidths.js +7 -7
- package/core/TextInput/__stories__/MultipleQuestions.js +2 -2
- package/core/TextInput/__stories__/WithErrorMessage.js +2 -2
- package/core/TextInput/__stories__/WithHint.js +2 -2
- package/core/TextInput/index.mdx +4 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -0
- package/core/VisuallyHidden/VisuallyHidden.stories.js +2 -1
- package/core/VisuallyHidden/index.mdx +4 -1
- package/core/WarningText/WarningText.stories.d.ts +4 -0
- package/core/WarningText/WarningText.stories.js +5 -2
- package/core/WarningText/index.d.ts +1 -1
- package/core/WarningText/index.js +19 -8
- package/core/WarningText/index.mdx +4 -0
- package/core/index.d.ts +8 -5
- package/core/index.js +74 -65
- package/es/admin/AutoComplete/AutoComplete.stories.js +2 -1
- package/es/admin/AutoComplete/Status/index.js +4 -4
- package/es/admin/AutoComplete/index.mdx +4 -0
- package/es/admin/CircularProgress/CircularProgress.stories.js +3 -2
- package/es/admin/CircularProgress/__stories__/Default.js +1 -2
- package/es/admin/CopyToClipboard/CopyToClipboard.stories.js +3 -3
- package/es/admin/CopyToClipboard/index.mdx +2 -2
- package/es/admin/Drawer/Drawer.stories.js +8 -2
- package/es/admin/Drawer/__stories__/Default.js +8 -47
- package/es/admin/Drawer/index.mdx +4 -0
- package/es/admin/Dropdown/Dropdown.stories.js +4 -1
- package/es/admin/Dropdown/__stories__/AlignRight.js +4 -3
- package/es/admin/Dropdown/__stories__/Default.js +5 -3
- package/es/admin/Dropdown/__stories__/PlacementTop.js +4 -3
- package/es/admin/Dropdown/index.js +3 -2
- package/es/admin/Dropdown/index.mdx +4 -1
- package/es/admin/Modal/Modal.stories.js +4 -1
- package/es/admin/Modal/__stories__/AlertDialog.js +12 -31
- package/es/admin/Modal/__stories__/Default.js +11 -26
- package/es/admin/Modal/index.js +2 -2
- package/es/admin/Modal/index.mdx +4 -8
- package/es/admin/Pagination/Pagination.stories.js +6 -2
- package/es/admin/Pagination/__stories__/Default.js +1 -27
- package/es/admin/Pagination/__stories__/PaginationSmall.js +38 -0
- package/es/admin/Pagination/index.js +3 -2
- package/es/admin/Pagination/index.mdx +4 -0
- package/es/admin/StepNav/StepNav.stories.js +3 -1
- package/es/admin/TaskList/TaskList.stories.js +3 -1
- package/es/admin/TaskList/__stories__/Default.js +2 -2
- package/es/admin/Timeline/Timeline.stories.js +3 -1
- package/es/admin/Timeline/__stories__/Default.js +3 -2
- package/es/app/Confirmation/Confirmation.mdx +4 -0
- package/es/app/Confirmation/Confirmation.stories.js +6 -3
- package/es/app/Confirmation/index.js +4 -4
- package/es/app/Footer/Footer.mdx +4 -0
- package/es/app/Footer/Footer.stories.js +6 -2
- package/es/app/Footer/index.js +3 -1
- package/es/app/Header/Header.stories.js +4 -0
- package/es/app/Header/index.mdx +4 -0
- package/es/app/I18nText.js +1 -0
- package/es/app/NotFound/NotFound.stories.js +2 -1
- package/es/app/NotFound/index.mdx +4 -0
- package/es/app/PageTitle.js +6 -57
- package/es/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -2
- package/es/app/PhaseBannerHeader/index.mdx +4 -0
- package/es/app/QrCodeScanner/QrCodeScanner.stories.js +2 -1
- package/es/app/QrCodeScanner/index.js +3 -5
- package/es/app/QrCodeViewer/QRCode.stories.js +2 -1
- package/es/app/QrCodeViewer/index.js +2 -69
- package/es/app/QrCodeViewer/index.mdx +4 -0
- package/es/app/index.js +2 -0
- package/es/core/Accordion/Accordion.stories.js +6 -2
- package/es/core/Accordion/Accordion.stories.playwright.json +1 -7
- package/es/core/Accordion/__stories__/Default.js +3 -1
- package/es/core/Accordion/__stories__/WithHints.js +3 -1
- package/es/core/Accordion/index.js +6 -0
- package/es/core/Accordion/index.mdx +4 -0
- package/es/core/BackLink/BackLink.stories.js +2 -1
- package/es/core/BackLink/index.mdx +4 -0
- package/es/core/Blockquote/Blockquote.stories.js +4 -1
- package/es/core/Blockquote/index.mdx +4 -0
- package/es/core/Breadcrumbs/Breadcrumbs.stories.js +4 -1
- package/es/core/Breadcrumbs/breadcrumbs.mdx +4 -0
- package/es/core/Button/Button.stories.js +5 -2
- package/es/core/Button/index.mdx +4 -1
- package/es/core/Card/Card.stories.js +5 -1
- package/es/core/Card/__stories__/WithClickableContent.js +2 -2
- package/es/core/Card/card.mdx +4 -0
- package/es/core/Checkboxes/Checkbox.stories.js +4 -1
- package/es/core/Checkboxes/__stories__/ConditionalReveal.js +1 -1
- package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
- package/es/core/Checkboxes/checkboxes.mdx +4 -0
- package/es/core/DateInput/DateInput.stories.js +4 -1
- package/es/core/DateInput/index.js +2 -2
- package/es/core/DateInput/index.mdx +5 -0
- package/es/core/Details/Details.stories.js +4 -1
- package/es/core/Details/index.js +3 -3
- package/es/core/Details/index.mdx +4 -0
- package/es/core/Divider/Divider.stories.js +2 -1
- package/es/core/Divider/index.js +1 -0
- package/es/core/ErrorMessage/ErrorMessage.stories.js +4 -1
- package/es/core/ErrorMessage/index.mdx +4 -0
- package/es/core/ErrorSummary/ErrorSummary.stories.js +4 -1
- package/es/core/ErrorSummary/__stories__/LinkedToInput.js +4 -4
- package/es/core/ErrorSummary/index.js +1 -1
- package/es/core/ErrorSummary/index.mdx +4 -0
- package/es/core/Field/index.js +2 -2
- package/es/core/FileUpload/FileUpload.stories.js +3 -1
- package/es/core/FileUpload/index.mdx +4 -1
- package/es/core/Label/index.js +2 -2
- package/es/core/Link/Link.stories.js +3 -1
- package/es/core/Link/index.js +8 -6
- package/es/core/Link/link.mdx +4 -0
- package/es/core/List/List.js +1 -1
- package/es/core/List/List.stories.js +5 -2
- package/es/core/List/index.mdx +4 -0
- package/es/core/Masthead/Masthead.stories.js +5 -1
- package/es/core/Masthead/masthead.mdx +4 -0
- package/es/core/NavList/NavList.stories.js +4 -1
- package/es/core/NavList/index.js +4 -2
- package/es/core/NavList/index.mdx +4 -0
- package/es/core/NotificationBanner/NotificationBanner.stories.js +5 -1
- package/es/core/NotificationBanner/index.js +3 -3
- package/es/core/NotificationBanner/index.mdx +4 -0
- package/es/core/PhaseBanner/PhaseBanner.stories.js +4 -1
- package/es/core/PhaseBanner/index.mdx +4 -0
- package/es/core/Radios/Radios.stories.js +4 -1
- package/es/core/Radios/__stories__/ConditionalReveal.js +1 -1
- package/es/core/Radios/index.js +2 -2
- package/es/core/Radios/index.mdx +14 -0
- package/es/core/Select/Select.stories.js +4 -1
- package/es/core/Select/__stories__/Default.js +2 -2
- package/es/core/Select/__stories__/DisabledInput.js +2 -2
- package/es/core/Select/__stories__/WithHint.js +2 -2
- package/es/core/Select/index.js +2 -2
- package/es/core/Select/index.mdx +4 -0
- package/es/core/SummaryList/SummaryList.stories.js +5 -2
- package/es/core/SummaryList/index.mdx +4 -0
- package/es/core/Table/Table.stories.js +5 -2
- package/es/core/Table/__stories__/WithFloatingScroll.js +1 -27
- package/es/core/Table/index.js +3 -1
- package/es/core/Table/index.mdx +4 -1
- package/es/core/Tabs/Tabs.stories.js +6 -2
- package/es/core/Tabs/index.js +5 -5
- package/es/core/Tabs/index.mdx +4 -0
- package/es/core/TextArea/TextArea.stories.js +4 -1
- package/es/core/TextArea/__stories__/Default.js +4 -4
- package/es/core/TextArea/__stories__/DisabledInput.js +4 -4
- package/es/core/TextArea/__stories__/LimitedCharacters.js +4 -4
- package/es/core/TextArea/__stories__/MultipleQuestions.js +4 -4
- package/es/core/TextArea/__stories__/WithDeclaredRows.js +4 -4
- package/es/core/TextArea/__stories__/WithErrorMessage.js +4 -4
- package/es/core/TextArea/__stories__/WithHint.js +4 -4
- package/es/core/TextArea/index.mdx +4 -0
- package/es/core/TextInput/TextInput.stories.js +4 -1
- package/es/core/TextInput/__stories__/AskingForNumbers.js +4 -4
- package/es/core/TextInput/__stories__/Default.js +4 -4
- package/es/core/TextInput/__stories__/DisabledInput.js +4 -4
- package/es/core/TextInput/__stories__/FixedWidths.js +9 -9
- package/es/core/TextInput/__stories__/FluidWidths.js +9 -9
- package/es/core/TextInput/__stories__/MultipleQuestions.js +4 -4
- package/es/core/TextInput/__stories__/WithErrorMessage.js +5 -5
- package/es/core/TextInput/__stories__/WithHint.js +4 -4
- package/es/core/TextInput/index.mdx +4 -0
- package/es/core/VisuallyHidden/VisuallyHidden.stories.js +2 -1
- package/es/core/VisuallyHidden/index.mdx +4 -1
- package/es/core/WarningText/WarningText.stories.js +5 -2
- package/es/core/WarningText/index.js +1 -1
- package/es/core/WarningText/index.mdx +4 -0
- package/es/core/index.js +8 -5
- package/es/govgr/Footer/Copyright.js +3 -2
- package/es/govgr/Footer/index.mdx +4 -0
- package/es/index.js +2 -1
- package/es/layouts/Basic/Basic.stories.js +3 -1
- package/es/layouts/Basic/Bottom/index.js +1 -1
- package/es/layouts/Basic/Bottom/index.mdx +4 -0
- package/es/layouts/Basic/Main/index.js +1 -1
- package/es/layouts/Basic/Main/index.mdx +4 -0
- package/es/layouts/Basic/Masthead/index.js +2 -2
- package/es/layouts/Basic/Masthead/index.mdx +4 -0
- package/es/layouts/Basic/Top/index.js +2 -10
- package/es/layouts/Basic/Top/index.mdx +4 -0
- package/es/layouts/Basic/index.js +5 -3
- package/es/layouts/Basic/index.mdx +0 -6
- package/es/layouts/Grid/Grid.stories.js +3 -2
- package/es/layouts/Grid/__stories__/Default.js +2 -6
- package/es/registry.js +116 -2
- package/es/typography/Heading/Heading.stories.js +2 -1
- package/es/typography/Heading/index.js +1 -1
- package/es/typography/Heading/index.mdx +4 -0
- package/es/typography/HeadingCaption/HeadingCaption.stories.js +2 -1
- package/es/typography/HeadingCaption/index.js +1 -1
- package/es/typography/HeadingCaption/index.mdx +4 -1
- package/es/typography/Hint/Hint.stories.js +2 -1
- package/es/typography/Hint/index.mdx +4 -1
- package/es/typography/NormalText/NormalText.stories.js +2 -1
- package/es/typography/NormalText/index.mdx +4 -1
- package/es/typography/Paragraph/Paragraph.stories.js +2 -1
- package/es/typography/Paragraph/index.mdx +4 -1
- package/es/typography/index.js +2 -4
- package/es/utils/Kitchensink/AllComponents.js +11 -0
- package/es/utils/Kitchensink/KitchensinkByCategory.js +42 -0
- package/es/utils/Kitchensink/KitchensinkByLetter.js +20 -0
- package/es/utils/Kitchensink/KitchensinkComponent.js +51 -0
- package/es/utils/Kitchensink/KitchensinkDashboard.js +50 -0
- package/es/utils/withDeprecation.js +15 -12
- package/esm/admin/AutoComplete/AutoComplete.stories.js +2 -1
- package/esm/admin/AutoComplete/Status/index.js +4 -4
- package/esm/admin/AutoComplete/index.mdx +4 -0
- package/esm/admin/CircularProgress/CircularProgress.stories.js +3 -2
- package/esm/admin/CircularProgress/__stories__/Default.js +1 -2
- package/esm/admin/CopyToClipboard/CopyToClipboard.stories.js +3 -3
- package/esm/admin/CopyToClipboard/index.mdx +2 -2
- package/esm/admin/Drawer/Drawer.stories.js +8 -2
- package/esm/admin/Drawer/__stories__/Default.js +8 -47
- package/esm/admin/Drawer/index.mdx +4 -0
- package/esm/admin/Dropdown/Dropdown.stories.js +4 -1
- package/esm/admin/Dropdown/__stories__/AlignRight.js +4 -3
- package/esm/admin/Dropdown/__stories__/Default.js +5 -3
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +4 -3
- package/esm/admin/Dropdown/index.js +3 -2
- package/esm/admin/Dropdown/index.mdx +4 -1
- package/esm/admin/Modal/Modal.stories.js +4 -1
- package/esm/admin/Modal/__stories__/AlertDialog.js +12 -31
- package/esm/admin/Modal/__stories__/Default.js +11 -26
- package/esm/admin/Modal/index.js +2 -2
- package/esm/admin/Modal/index.mdx +4 -8
- package/esm/admin/Pagination/Pagination.stories.js +6 -2
- package/esm/admin/Pagination/__stories__/Default.js +1 -27
- package/esm/admin/Pagination/__stories__/PaginationSmall.js +38 -0
- package/esm/admin/Pagination/index.js +3 -2
- package/esm/admin/Pagination/index.mdx +4 -0
- package/esm/admin/StepNav/StepNav.stories.js +3 -1
- package/esm/admin/TaskList/TaskList.stories.js +3 -1
- package/esm/admin/TaskList/__stories__/Default.js +2 -2
- package/esm/admin/Timeline/Timeline.stories.js +3 -1
- package/esm/admin/Timeline/__stories__/Default.js +3 -2
- package/esm/app/Confirmation/Confirmation.mdx +4 -0
- package/esm/app/Confirmation/Confirmation.stories.js +6 -3
- package/esm/app/Confirmation/index.js +4 -4
- package/esm/app/Footer/Footer.mdx +4 -0
- package/esm/app/Footer/Footer.stories.js +6 -2
- package/esm/app/Footer/index.js +3 -1
- package/esm/app/Header/Header.stories.js +4 -0
- package/esm/app/Header/index.mdx +4 -0
- package/esm/app/I18nText.js +1 -0
- package/esm/app/NotFound/NotFound.stories.js +2 -1
- package/esm/app/NotFound/index.mdx +4 -0
- package/esm/app/PageTitle.js +6 -57
- package/esm/app/PhaseBannerHeader/PhaseBannerHeader.stories.js +3 -2
- package/esm/app/PhaseBannerHeader/index.mdx +4 -0
- package/esm/app/QrCodeScanner/QrCodeScanner.stories.js +2 -1
- package/esm/app/QrCodeScanner/index.js +3 -5
- package/esm/app/QrCodeViewer/QRCode.stories.js +2 -1
- package/esm/app/QrCodeViewer/index.js +2 -69
- package/esm/app/QrCodeViewer/index.mdx +4 -0
- package/esm/app/index.js +2 -0
- package/esm/core/Accordion/Accordion.stories.js +6 -2
- package/esm/core/Accordion/Accordion.stories.playwright.json +1 -7
- package/esm/core/Accordion/__stories__/Default.js +3 -1
- package/esm/core/Accordion/__stories__/WithHints.js +3 -1
- package/esm/core/Accordion/index.js +6 -0
- package/esm/core/Accordion/index.mdx +4 -0
- package/esm/core/BackLink/BackLink.stories.js +2 -1
- package/esm/core/BackLink/index.mdx +4 -0
- package/esm/core/Blockquote/Blockquote.stories.js +4 -1
- package/esm/core/Blockquote/index.mdx +4 -0
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.js +4 -1
- package/esm/core/Breadcrumbs/breadcrumbs.mdx +4 -0
- package/esm/core/Button/Button.stories.js +5 -2
- package/esm/core/Button/index.mdx +4 -1
- package/esm/core/Card/Card.stories.js +5 -1
- package/esm/core/Card/__stories__/WithClickableContent.js +2 -2
- package/esm/core/Card/card.mdx +4 -0
- package/esm/core/Checkboxes/Checkbox.stories.js +4 -1
- package/esm/core/Checkboxes/__stories__/ConditionalReveal.js +1 -1
- package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
- package/esm/core/Checkboxes/checkboxes.mdx +4 -0
- package/esm/core/DateInput/DateInput.stories.js +4 -1
- package/esm/core/DateInput/index.js +2 -2
- package/esm/core/DateInput/index.mdx +5 -0
- package/esm/core/Details/Details.stories.js +4 -1
- package/esm/core/Details/index.js +3 -3
- package/esm/core/Details/index.mdx +4 -0
- package/esm/core/Divider/Divider.stories.js +2 -1
- package/esm/core/Divider/index.js +1 -0
- package/esm/core/ErrorMessage/ErrorMessage.stories.js +4 -1
- package/esm/core/ErrorMessage/index.mdx +4 -0
- package/esm/core/ErrorSummary/ErrorSummary.stories.js +4 -1
- package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +4 -4
- package/esm/core/ErrorSummary/index.js +1 -1
- package/esm/core/ErrorSummary/index.mdx +4 -0
- package/esm/core/Field/index.js +2 -2
- package/esm/core/FileUpload/FileUpload.stories.js +3 -1
- package/esm/core/FileUpload/index.mdx +4 -1
- package/esm/core/Label/index.js +2 -2
- package/esm/core/Link/Link.stories.js +3 -1
- package/esm/core/Link/index.js +8 -6
- package/esm/core/Link/link.mdx +4 -0
- package/esm/core/List/List.js +1 -1
- package/esm/core/List/List.stories.js +5 -2
- package/esm/core/List/index.mdx +4 -0
- package/esm/core/Masthead/Masthead.stories.js +5 -1
- package/esm/core/Masthead/masthead.mdx +4 -0
- package/esm/core/NavList/NavList.stories.js +4 -1
- package/esm/core/NavList/index.js +4 -2
- package/esm/core/NavList/index.mdx +4 -0
- package/esm/core/NotificationBanner/NotificationBanner.stories.js +5 -1
- package/esm/core/NotificationBanner/index.js +3 -3
- package/esm/core/NotificationBanner/index.mdx +4 -0
- package/esm/core/PhaseBanner/PhaseBanner.stories.js +4 -1
- package/esm/core/PhaseBanner/index.mdx +4 -0
- package/esm/core/Radios/Radios.stories.js +4 -1
- package/esm/core/Radios/__stories__/ConditionalReveal.js +1 -1
- package/esm/core/Radios/index.js +2 -2
- package/esm/core/Radios/index.mdx +14 -0
- package/esm/core/Select/Select.stories.js +4 -1
- package/esm/core/Select/__stories__/Default.js +2 -2
- package/esm/core/Select/__stories__/DisabledInput.js +2 -2
- package/esm/core/Select/__stories__/WithHint.js +2 -2
- package/esm/core/Select/index.js +2 -2
- package/esm/core/Select/index.mdx +4 -0
- package/esm/core/SummaryList/SummaryList.stories.js +5 -2
- package/esm/core/SummaryList/index.mdx +4 -0
- package/esm/core/Table/Table.stories.js +5 -2
- package/esm/core/Table/__stories__/WithFloatingScroll.js +1 -27
- package/esm/core/Table/index.js +3 -1
- package/esm/core/Table/index.mdx +4 -1
- package/esm/core/Tabs/Tabs.stories.js +6 -2
- package/esm/core/Tabs/index.js +5 -5
- package/esm/core/Tabs/index.mdx +4 -0
- package/esm/core/TextArea/TextArea.stories.js +4 -1
- package/esm/core/TextArea/__stories__/Default.js +4 -4
- package/esm/core/TextArea/__stories__/DisabledInput.js +4 -4
- package/esm/core/TextArea/__stories__/LimitedCharacters.js +4 -4
- package/esm/core/TextArea/__stories__/MultipleQuestions.js +4 -4
- package/esm/core/TextArea/__stories__/WithDeclaredRows.js +4 -4
- package/esm/core/TextArea/__stories__/WithErrorMessage.js +4 -4
- package/esm/core/TextArea/__stories__/WithHint.js +4 -4
- package/esm/core/TextArea/index.mdx +4 -0
- package/esm/core/TextInput/TextInput.stories.js +4 -1
- package/esm/core/TextInput/__stories__/AskingForNumbers.js +4 -4
- package/esm/core/TextInput/__stories__/Default.js +4 -4
- package/esm/core/TextInput/__stories__/DisabledInput.js +4 -4
- package/esm/core/TextInput/__stories__/FixedWidths.js +9 -9
- package/esm/core/TextInput/__stories__/FluidWidths.js +9 -9
- package/esm/core/TextInput/__stories__/MultipleQuestions.js +4 -4
- package/esm/core/TextInput/__stories__/WithErrorMessage.js +5 -5
- package/esm/core/TextInput/__stories__/WithHint.js +4 -4
- package/esm/core/TextInput/index.mdx +4 -0
- package/esm/core/VisuallyHidden/VisuallyHidden.stories.js +2 -1
- package/esm/core/VisuallyHidden/index.mdx +4 -1
- package/esm/core/WarningText/WarningText.stories.js +5 -2
- package/esm/core/WarningText/index.js +1 -1
- package/esm/core/WarningText/index.mdx +4 -0
- package/esm/core/index.js +8 -5
- package/esm/govgr/Footer/Copyright.js +3 -2
- package/esm/govgr/Footer/index.mdx +4 -0
- package/esm/index.js +3 -2
- package/esm/layouts/Basic/Basic.stories.js +3 -1
- package/esm/layouts/Basic/Bottom/index.js +1 -1
- package/esm/layouts/Basic/Bottom/index.mdx +4 -0
- package/esm/layouts/Basic/Main/index.js +1 -1
- package/esm/layouts/Basic/Main/index.mdx +4 -0
- package/esm/layouts/Basic/Masthead/index.js +2 -2
- package/esm/layouts/Basic/Masthead/index.mdx +4 -0
- package/esm/layouts/Basic/Top/index.js +2 -10
- package/esm/layouts/Basic/Top/index.mdx +4 -0
- package/esm/layouts/Basic/index.js +5 -3
- package/esm/layouts/Basic/index.mdx +0 -6
- package/esm/layouts/Grid/Grid.stories.js +3 -2
- package/esm/layouts/Grid/__stories__/Default.js +2 -6
- package/esm/registry.js +116 -2
- package/esm/typography/Heading/Heading.stories.js +2 -1
- package/esm/typography/Heading/index.js +1 -1
- package/esm/typography/Heading/index.mdx +4 -0
- package/esm/typography/HeadingCaption/HeadingCaption.stories.js +2 -1
- package/esm/typography/HeadingCaption/index.js +1 -1
- package/esm/typography/HeadingCaption/index.mdx +4 -1
- package/esm/typography/Hint/Hint.stories.js +2 -1
- package/esm/typography/Hint/index.mdx +4 -1
- package/esm/typography/NormalText/NormalText.stories.js +2 -1
- package/esm/typography/NormalText/index.mdx +4 -1
- package/esm/typography/Paragraph/Paragraph.stories.js +2 -1
- package/esm/typography/Paragraph/index.mdx +4 -1
- package/esm/typography/index.js +2 -4
- package/esm/utils/Kitchensink/AllComponents.js +11 -0
- package/esm/utils/Kitchensink/KitchensinkByCategory.js +42 -0
- package/esm/utils/Kitchensink/KitchensinkByLetter.js +20 -0
- package/esm/utils/Kitchensink/KitchensinkComponent.js +51 -0
- package/esm/utils/Kitchensink/KitchensinkDashboard.js +50 -0
- package/esm/utils/withDeprecation.js +15 -12
- package/govgr/Footer/Copyright.d.ts +2 -0
- package/govgr/Footer/Copyright.js +10 -3
- package/govgr/Footer/index.mdx +4 -0
- package/index.d.ts +1 -0
- package/index.js +13 -0
- package/layouts/Basic/Basic.stories.d.ts +2 -0
- package/layouts/Basic/Basic.stories.js +3 -1
- package/layouts/Basic/Bottom/index.d.ts +1 -1
- package/layouts/Basic/Bottom/index.js +19 -8
- package/layouts/Basic/Bottom/index.mdx +4 -0
- package/layouts/Basic/Content/index.d.ts +1 -3
- package/layouts/Basic/Main/index.d.ts +1 -1
- package/layouts/Basic/Main/index.js +19 -8
- package/layouts/Basic/Main/index.mdx +4 -0
- package/layouts/Basic/Masthead/index.d.ts +2 -2
- package/layouts/Basic/Masthead/index.js +31 -14
- package/layouts/Basic/Masthead/index.mdx +4 -0
- package/layouts/Basic/Top/index.d.ts +2 -2
- package/layouts/Basic/Top/index.js +19 -13
- package/layouts/Basic/Top/index.mdx +4 -0
- package/layouts/Basic/index.d.ts +4 -2
- package/layouts/Basic/index.js +48 -11
- package/layouts/Basic/index.mdx +0 -6
- package/layouts/Grid/Grid.stories.d.ts +2 -0
- package/layouts/Grid/Grid.stories.js +3 -2
- package/layouts/Grid/__stories__/Default.js +2 -6
- package/package.json +5 -5
- package/registry.d.ts +111 -1
- package/registry.js +176 -5
- package/typography/Heading/Heading.stories.d.ts +1 -0
- package/typography/Heading/Heading.stories.js +2 -1
- package/typography/Heading/index.d.ts +1 -1
- package/typography/Heading/index.mdx +4 -0
- package/typography/HeadingCaption/HeadingCaption.stories.d.ts +1 -0
- package/typography/HeadingCaption/HeadingCaption.stories.js +2 -1
- package/typography/HeadingCaption/index.d.ts +1 -1
- package/typography/HeadingCaption/index.mdx +4 -1
- package/typography/Hint/Hint.stories.d.ts +1 -0
- package/typography/Hint/Hint.stories.js +2 -1
- package/typography/Hint/index.mdx +4 -1
- package/typography/NormalText/NormalText.stories.d.ts +1 -0
- package/typography/NormalText/NormalText.stories.js +2 -1
- package/typography/NormalText/index.mdx +4 -1
- package/typography/Paragraph/Paragraph.stories.d.ts +1 -0
- package/typography/Paragraph/Paragraph.stories.js +2 -1
- package/typography/Paragraph/index.mdx +4 -1
- package/typography/index.d.ts +2 -4
- package/typography/index.js +31 -46
- package/utils/Kitchensink/AllComponents.d.ts +1 -0
- package/utils/Kitchensink/AllComponents.js +24 -0
- package/utils/Kitchensink/KitchensinkByCategory.d.ts +6 -0
- package/utils/Kitchensink/KitchensinkByCategory.js +56 -0
- package/utils/Kitchensink/KitchensinkByLetter.d.ts +5 -0
- package/utils/Kitchensink/KitchensinkByLetter.js +34 -0
- package/utils/Kitchensink/KitchensinkComponent.d.ts +10 -0
- package/utils/Kitchensink/KitchensinkComponent.js +68 -0
- package/utils/Kitchensink/KitchensinkDashboard.d.ts +4 -0
- package/utils/Kitchensink/KitchensinkDashboard.js +63 -0
- package/utils/withDeprecation.js +15 -12
- package/admin/CopyToClipboard/__stories__/MultipleCopies.d.ts +0 -2
- package/admin/CopyToClipboard/__stories__/MultipleCopies.js +0 -142
- package/admin/Dropdown/Dropdown.stories.playwright.json +0 -21
- package/admin/Modal/Modal.stories.playwright.json +0 -37
- package/admin/Modal/__stories__/AlertDialog.test.d.ts +0 -1
- package/admin/Modal/__stories__/AlertDialog.test.js +0 -60
- package/core/Confirmation/Confirmation.stories.d.ts +0 -7
- package/core/Confirmation/Confirmation.stories.js +0 -30
- package/core/Confirmation/__stories__/Default.d.ts +0 -2
- package/core/Confirmation/__stories__/Default.js +0 -28
- package/core/Confirmation/confirmation.mdx +0 -19
- package/core/Confirmation/index.d.ts +0 -5
- package/core/Confirmation/index.js +0 -58
- package/core/ServiceBadge/index.mdx +0 -42
- package/es/admin/CopyToClipboard/__stories__/MultipleCopies.js +0 -120
- package/es/admin/Dropdown/Dropdown.stories.playwright.json +0 -21
- package/es/admin/Modal/Modal.stories.playwright.json +0 -37
- package/es/admin/Modal/__stories__/AlertDialog.test.js +0 -53
- package/es/core/Confirmation/Confirmation.stories.js +0 -6
- package/es/core/Confirmation/__stories__/Default.js +0 -9
- package/es/core/Confirmation/confirmation.mdx +0 -19
- package/es/core/Confirmation/index.js +0 -5
- package/es/core/ServiceBadge/index.mdx +0 -42
- package/es/form/inputs/Input/index.mdx +0 -10
- package/es/layouts/Basic/Content/index.mdx +0 -50
- package/es/layouts/Basic/Side/index.mdx +0 -57
- package/es/router/index.mdx +0 -5
- package/es/typography/index.mdx +0 -5
- package/esm/admin/CopyToClipboard/__stories__/MultipleCopies.js +0 -120
- package/esm/admin/Dropdown/Dropdown.stories.playwright.json +0 -21
- package/esm/admin/Modal/Modal.stories.playwright.json +0 -37
- package/esm/admin/Modal/__stories__/AlertDialog.test.js +0 -53
- package/esm/core/Confirmation/Confirmation.stories.js +0 -6
- package/esm/core/Confirmation/__stories__/Default.js +0 -9
- package/esm/core/Confirmation/confirmation.mdx +0 -19
- package/esm/core/Confirmation/index.js +0 -5
- package/esm/core/ServiceBadge/index.mdx +0 -42
- package/esm/form/inputs/Input/index.mdx +0 -10
- package/esm/layouts/Basic/Content/index.mdx +0 -50
- package/esm/layouts/Basic/Side/index.mdx +0 -57
- package/esm/router/index.mdx +0 -5
- package/esm/typography/index.mdx +0 -5
- package/form/inputs/Input/index.mdx +0 -10
- package/layouts/Basic/Content/index.mdx +0 -50
- package/layouts/Basic/Side/index.mdx +0 -57
- package/router/index.mdx +0 -5
- package/typography/index.mdx +0 -5
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import Blockquote from "@digigov/ui/core/Blockquote";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/Blockquote',
|
|
4
|
-
|
|
4
|
+
description: "Use the inset text component to differentiate a block of text from the content that surrounds it",
|
|
5
|
+
link: "https://guide.services.gov.gr/docs/components/blockquote",
|
|
6
|
+
component: Blockquote,
|
|
7
|
+
displayName: 'Blockquote'
|
|
5
8
|
};
|
|
6
9
|
export * from './__stories__/Default';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import Breadcrumbs from "@digigov/ui/core/Breadcrumbs";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/Breadcrumbs',
|
|
4
|
-
|
|
4
|
+
description: 'Use the breadcrumbs component when you need to help users understand and move between the multiple levels of a website',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/breadcrumbs',
|
|
6
|
+
component: Breadcrumbs,
|
|
7
|
+
displayName: 'Breadcrumbs'
|
|
5
8
|
};
|
|
6
9
|
export * from './__stories__/Default';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* eslint-disable digigov/no-relative-imports */
|
|
2
2
|
import Button from '@digigov/ui/core/Button';
|
|
3
3
|
export default {
|
|
4
|
-
title: 'Digigov UI/
|
|
5
|
-
|
|
4
|
+
title: 'Digigov UI/core/Button',
|
|
5
|
+
description: 'Use the button component to help users carry out an action',
|
|
6
|
+
link: 'https://guide.services.gov.gr/docs/components/button',
|
|
7
|
+
component: Button,
|
|
8
|
+
displayName: 'Button'
|
|
6
9
|
};
|
|
7
10
|
export * from './__stories__/Primary';
|
|
8
11
|
export * from './__stories__/Secondary';
|
|
@@ -94,4 +94,7 @@ Read more about [how to use the React types](/docs/api/Button)
|
|
|
94
94
|
|
|
95
95
|
You can read more about the accessibility patterns used in our Select
|
|
96
96
|
implementation in the ARIA Authoring Practices Guide (APG) at
|
|
97
|
-
|
|
97
|
+
|
|
98
|
+
## API
|
|
99
|
+
|
|
100
|
+
<PropTypes packageName="@digigov/ui" component="Button" />
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import Card from '@digigov/ui/core/Card';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/Card',
|
|
4
|
-
|
|
4
|
+
tags: ["Experimental"],
|
|
5
|
+
description: 'Cards can be used to divide and organise interface content for better understandability and readability',
|
|
6
|
+
link: 'https://guide.services.gov.gr/docs/components/card',
|
|
7
|
+
component: Card,
|
|
8
|
+
displayName: 'Card'
|
|
5
9
|
};
|
|
6
10
|
export * from '@digigov/ui/core/Card/__stories__/Default';
|
|
7
11
|
export * from '@digigov/ui/core/Card/__stories__/WithGrayBorder';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Card, { CardHeading, CardText } from '@digigov/ui/core/Card';
|
|
3
|
-
import
|
|
3
|
+
import LinkBase from '@digigov/react-core/LinkBase';
|
|
4
4
|
|
|
5
5
|
var _ref = /*#__PURE__*/React.createElement(Card, {
|
|
6
6
|
callToAction: true
|
|
7
|
-
}, /*#__PURE__*/React.createElement(CardHeading, null, /*#__PURE__*/React.createElement(
|
|
7
|
+
}, /*#__PURE__*/React.createElement(CardHeading, null, /*#__PURE__*/React.createElement(LinkBase, {
|
|
8
8
|
href: "#"
|
|
9
9
|
}, "\u0393\u03B5\u03C9\u03C1\u03B3\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03BA\u03C4\u03B7\u03BD\u03BF\u03C4\u03C1\u03BF\u03C6\u03AF\u03B1")), /*#__PURE__*/React.createElement(CardText, null, "\u0394\u03B9\u03B1\u03B4\u03B9\u03BA\u03B1\u03C3\u03AF\u03B5\u03C2, \u03B5\u03C0\u03B9\u03B4\u03BF\u03C4\u03AE\u03C3\u03B5\u03B9\u03C2 \u03BA\u03B1\u03B9 \u03B1\u03C0\u03BF\u03B6\u03B7\u03BC\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03B3\u03B5\u03C9\u03C1\u03B3\u03B9\u03BA\u03AE, \u03BA\u03C4\u03B7\u03BD\u03BF\u03C4\u03C1\u03BF\u03C6\u03B9\u03BA\u03AE \u03AE \u03B1\u03BB\u03B9\u03B5\u03C5\u03C4\u03B9\u03BA\u03AE \u03C3\u03B1\u03C2 \u03B4\u03C1\u03B1\u03C3\u03C4\u03B7\u03C1\u03B9\u03CC\u03C4\u03B7\u03C4\u03B1."));
|
|
10
10
|
|
package/esm/core/Card/card.mdx
CHANGED
|
@@ -76,3 +76,7 @@ Cards also provides styles for actionable elements such as Buttons or Links.
|
|
|
76
76
|
#### Card with a group of actions
|
|
77
77
|
|
|
78
78
|
<Story packageName="@digigov/ui" component="core/Card" story="WithGroupButton.tsx" />
|
|
79
|
+
|
|
80
|
+
## API
|
|
81
|
+
|
|
82
|
+
<PropTypes packageName="@digigov/ui" component="Card" />
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import Checkboxes from '@digigov/ui/core/Checkboxes';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/Checkboxes',
|
|
4
|
-
|
|
4
|
+
description: 'Let users select one or more options by using the checkboxes component.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/checkboxes',
|
|
6
|
+
component: Checkboxes,
|
|
7
|
+
displayName: 'Checkboxes'
|
|
5
8
|
};
|
|
6
9
|
export * from '@digigov/ui/core/Checkboxes/__stories__/Default';
|
|
7
10
|
export * from '@digigov/ui/core/Checkboxes/__stories__/MultipleQuestions';
|
|
@@ -9,7 +9,7 @@ var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.crea
|
|
|
9
9
|
}, /*#__PURE__*/React.createElement(FieldsetLegend, null, "\u03A0\u03C9\u03C2 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AE\u03C3\u03BF\u03C5\u03BC\u03B5 \u03BC\u03B1\u03B6\u03AF \u03C3\u03B1\u03C2;"), /*#__PURE__*/React.createElement(Hint, {
|
|
10
10
|
id: "contact-hint"
|
|
11
11
|
}, "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03CC,\u03C4\u03B9 \u03B9\u03C3\u03C7\u03CD\u03B5\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B5\u03C1\u03AF\u03C0\u03C4\u03C9\u03C3\u03B7 \u03C3\u03B1\u03C2."), /*#__PURE__*/React.createElement(Checkboxes, null, /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
12
|
-
|
|
12
|
+
defaultChecked: true,
|
|
13
13
|
name: "email",
|
|
14
14
|
value: "email"
|
|
15
15
|
}, "Email"), /*#__PURE__*/React.createElement(CheckboxConditional, null, "Email address", /*#__PURE__*/React.createElement(TextInput, {
|
|
@@ -14,7 +14,7 @@ var _ref = /*#__PURE__*/React.createElement(Field, {
|
|
|
14
14
|
}, "\u0391\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AE \u03C5\u03C0\u03B7\u03BA\u03BF\u03CC\u03C4\u03B7\u03C4\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03CC,\u03C4\u03B9 \u03B9\u03C3\u03C7\u03CD\u03B5\u03B9."), /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
15
15
|
id: "travel-error"
|
|
16
16
|
}, /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u039B\u03AC\u03B8\u03BF\u03C2:"), "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03C7\u03CE\u03C1\u03B5\u03C2 \u03C3\u03C4\u03B9\u03C2 \u03BF\u03C0\u03BF\u03AF\u03B5\u03C2 \u03B8\u03B1 \u03C4\u03B1\u03BE\u03B9\u03B4\u03AD\u03C8\u03B5\u03C4\u03B5, \u03AE \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \xAB\u038C\u03C7\u03B9, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03C4\u03B1\u03BE\u03B9\u03B4\u03AD\u03C8\u03C9 \u03C3\u03B5 \u03BA\u03B1\u03BC\u03AF\u03B1 \u03B1\u03C0\u03CC \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03C7\u03CE\u03C1\u03B5\u03C2\xBB."), /*#__PURE__*/React.createElement(Checkboxes, null, /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
17
|
-
|
|
17
|
+
defaultChecked: true,
|
|
18
18
|
name: "en",
|
|
19
19
|
value: "en"
|
|
20
20
|
}, "\u0391\u03B3\u03B3\u03BB\u03AF\u03B1"), /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
@@ -23,7 +23,7 @@ var _ref = /*#__PURE__*/React.createElement(Field, {
|
|
|
23
23
|
}, "\u0393\u03B1\u03BB\u03BB\u03AF\u03B1"), /*#__PURE__*/React.createElement("div", {
|
|
24
24
|
className: "govgr-checkboxes__divider"
|
|
25
25
|
}, "\u03AE"), /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
26
|
-
|
|
26
|
+
defaultChecked: true,
|
|
27
27
|
name: "none",
|
|
28
28
|
value: "none"
|
|
29
29
|
}, "\u038C\u03C7\u03B9, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03C4\u03B1\u03BE\u03B9\u03B4\u03AD\u03C8\u03C9 \u03C3\u03B5 \u03BA\u03B1\u03BC\u03AF\u03B1 \u03B1\u03C0\u03CC \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03C7\u03CE\u03C1\u03B5\u03C2"))));
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import DateInput from '@digigov/ui/core/DateInput';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/DateInput',
|
|
4
|
-
|
|
4
|
+
description: "Use the date input component to help users enter a memorable date or one they can easily look up.",
|
|
5
|
+
link: "https://guide.services.gov.gr/docs/components/date-input",
|
|
6
|
+
component: DateInput,
|
|
7
|
+
displayName: 'DateInput'
|
|
5
8
|
};
|
|
6
9
|
export * from '@digigov/ui/core/DateInput/__stories__/Default';
|
|
7
10
|
export * from '@digigov/ui/core/DateInput/__stories__/MultipleQuestions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from '@digigov/react-core/
|
|
1
|
+
export * from '@digigov/react-core/DateInputContainer';
|
|
2
2
|
export * from '@digigov/react-core/DateInputItem';
|
|
3
|
-
import DateInput from '@digigov/react-core/
|
|
3
|
+
import DateInput from '@digigov/react-core/DateInputContainer';
|
|
4
4
|
export default DateInput;
|
|
@@ -32,3 +32,8 @@ If you’re highlighting the whole date, style all the fields like this:
|
|
|
32
32
|
If you’re highlighting just one field - either the day, month or year - only style the field that has an error. The error message must say which field has an error, like this:
|
|
33
33
|
|
|
34
34
|
<Story packageName="@digigov/ui" component="core/DateInput" story="WithErrorMessageForSingleField.tsx" />
|
|
35
|
+
|
|
36
|
+
## API
|
|
37
|
+
|
|
38
|
+
<PropTypes packageName="@digigov/ui" component="DateInputContainer" />
|
|
39
|
+
<PropTypes packageName="@digigov/ui" component="DateInputItem" />
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import Details from "@digigov/ui/core/Details";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/Details',
|
|
4
|
-
|
|
4
|
+
description: 'Make a page easier to scan by letting users reveal more detailed information only if they need it.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/details',
|
|
6
|
+
component: Details,
|
|
7
|
+
displayName: 'Details'
|
|
5
8
|
};
|
|
6
9
|
export * from './__stories__/Default';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * from '@digigov/react-core/Details';
|
|
2
|
+
export * from '@digigov/react-core/DetailsContent';
|
|
3
|
+
export * from '@digigov/react-core/DetailsSummary';
|
|
1
4
|
import Details from '@digigov/react-core/Details';
|
|
2
|
-
import DetailsContent from '@digigov/react-core/DetailsContent';
|
|
3
|
-
import DetailsSummary from '@digigov/react-core/DetailsSummary';
|
|
4
|
-
export { Details, DetailsContent, DetailsSummary };
|
|
5
5
|
export default Details;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import ErrorMessage from "@digigov/ui/core/ErrorMessage";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/ErrorMessage',
|
|
4
|
-
|
|
4
|
+
description: 'Show an error message next to the field and in the error summary when there is a validation error.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/error-message',
|
|
6
|
+
component: ErrorMessage,
|
|
7
|
+
displayName: 'ErrorMessage'
|
|
5
8
|
};
|
|
6
9
|
export * from './__stories__/Default';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import ErrorSummary from "@digigov/ui/core/ErrorSummary";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/ErrorSummary',
|
|
4
|
-
|
|
4
|
+
description: 'Use this component at the top of a page to summarise any errors a user has made.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/error-summary',
|
|
6
|
+
component: ErrorSummary,
|
|
7
|
+
displayName: 'ErrorSummary'
|
|
5
8
|
};
|
|
6
9
|
export * from './__stories__/Default';
|
|
7
10
|
export * from './__stories__/LinkedToInput';
|
|
@@ -2,12 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import ErrorSummary from '@digigov/ui/core/ErrorSummary';
|
|
3
3
|
import Title from '@digigov/ui/typography/Title';
|
|
4
4
|
import Link from '@digigov/ui/core/Link';
|
|
5
|
-
import TextInput from
|
|
5
|
+
import TextInput from '@digigov/ui/core/TextInput';
|
|
6
6
|
import Field from '@digigov/ui/core/Field';
|
|
7
|
-
import
|
|
7
|
+
import LabelContainer from '@digigov/react-core/LabelContainer';
|
|
8
8
|
import LabelTitle from '@digigov/react-core/LabelTitle';
|
|
9
9
|
import Hint from '@digigov/ui/typography/Hint';
|
|
10
|
-
import ErrorMessage from
|
|
10
|
+
import ErrorMessage from '@digigov/ui/core/ErrorMessage';
|
|
11
11
|
import VisuallyHidden from '@digigov/ui/core/VisuallyHidden';
|
|
12
12
|
|
|
13
13
|
var _ref = /*#__PURE__*/React.createElement("div", {
|
|
@@ -18,7 +18,7 @@ var _ref = /*#__PURE__*/React.createElement("div", {
|
|
|
18
18
|
href: "#business-name"
|
|
19
19
|
}, "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2")), /*#__PURE__*/React.createElement(Field, {
|
|
20
20
|
error: true
|
|
21
|
-
}, /*#__PURE__*/React.createElement(
|
|
21
|
+
}, /*#__PURE__*/React.createElement(LabelContainer, null, /*#__PURE__*/React.createElement(LabelTitle, {
|
|
22
22
|
size: "m"
|
|
23
23
|
}, "\u038C\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/React.createElement(Hint, null, "\u03A0\u03BF\u03B9\u03BF \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2;"), /*#__PURE__*/React.createElement(ErrorMessage, null, /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u039B\u03AC\u03B8\u03BF\u03C2:"), "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF."), /*#__PURE__*/React.createElement(TextInput, {
|
|
24
24
|
error: true,
|
|
@@ -40,3 +40,7 @@ For questions that require a user to select one or more options from a list usin
|
|
|
40
40
|
<Story packageName="@digigov/ui" component="core/ErrorSummary" story="LinkedToCheckbox.tsx" />
|
|
41
41
|
|
|
42
42
|
|
|
43
|
+
|
|
44
|
+
## API
|
|
45
|
+
|
|
46
|
+
<PropTypes packageName="@digigov/ui" component="ErrorSummary" />
|
package/esm/core/Field/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import Field from '@digigov/react-core/FieldContainer';
|
|
2
|
+
export * from '@digigov/react-core/FieldContainer';
|
|
2
3
|
export * from '@digigov/react-core/Fieldset';
|
|
3
4
|
export * from '@digigov/react-core/FieldsetLegend';
|
|
4
|
-
import Field from '@digigov/react-core/Field';
|
|
5
5
|
export default Field;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import FileUpload from '@digigov/ui/core/FileUpload';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/FileUpload',
|
|
4
|
-
|
|
4
|
+
link: 'https://guide.services.gov.gr/docs/components/file-upload',
|
|
5
|
+
component: FileUpload,
|
|
6
|
+
displayName: 'FileUpload'
|
|
5
7
|
};
|
|
6
8
|
export * from '@digigov/ui/core/FileUpload/__stories__/Default';
|
|
7
9
|
export * from '@digigov/ui/core/FileUpload/__stories__/WithErrorMessage';
|
|
@@ -19,4 +19,7 @@ import FileUpload from '@digigov/ui/core/FileUpload';
|
|
|
19
19
|
|
|
20
20
|
Error messages should be styled like this:
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
<PropTypes packageName="@digigov/ui" component="FileUpload" />
|
package/esm/core/Label/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from '@digigov/react-core/
|
|
1
|
+
export * from '@digigov/react-core/LabelContainer';
|
|
2
2
|
export * from '@digigov/react-core/LabelTitle';
|
|
3
|
-
import Label from '@digigov/react-core/
|
|
3
|
+
import Label from '@digigov/react-core/LabelContainer';
|
|
4
4
|
export default Label;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import Link from '@digigov/ui/core/Link';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/Link',
|
|
4
|
-
|
|
4
|
+
link: 'https://guide.services.gov.gr/docs/styles/typography#links',
|
|
5
|
+
component: Link,
|
|
6
|
+
displayName: 'Link'
|
|
5
7
|
};
|
|
6
8
|
export * from '@digigov/ui/core/Link/__stories__/Default';
|
|
7
9
|
export * from '@digigov/ui/core/Link/__stories__/ExternalLink';
|
package/esm/core/Link/index.js
CHANGED
|
@@ -2,17 +2,17 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children", "href"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import LinkBase from '@digigov/react-core/LinkBase';
|
|
6
6
|
export var CommonLink = function CommonLink(props) {
|
|
7
|
-
return /*#__PURE__*/React.createElement(
|
|
7
|
+
return /*#__PURE__*/React.createElement(LinkBase, props, props.children);
|
|
8
8
|
};
|
|
9
|
-
var LinkComponentContext = /*#__PURE__*/React.createContext(
|
|
9
|
+
var LinkComponentContext = /*#__PURE__*/React.createContext(LinkBase);
|
|
10
10
|
export var LinkProvider = function LinkProvider(props) {
|
|
11
11
|
return /*#__PURE__*/React.createElement(LinkComponentContext.Provider, {
|
|
12
12
|
value: props.component
|
|
13
13
|
}, props.children);
|
|
14
14
|
};
|
|
15
|
-
var Link = /*#__PURE__*/React.forwardRef(function
|
|
15
|
+
var Link = /*#__PURE__*/React.forwardRef(function Link(_ref, ref) {
|
|
16
16
|
var children = _ref.children,
|
|
17
17
|
_ref$href = _ref.href,
|
|
18
18
|
href = _ref$href === void 0 ? '' : _ref$href,
|
|
@@ -23,6 +23,8 @@ var Link = /*#__PURE__*/React.forwardRef(function WrappedLink(_ref, ref) {
|
|
|
23
23
|
ref: ref,
|
|
24
24
|
href: href
|
|
25
25
|
}, props), children);
|
|
26
|
-
});
|
|
26
|
+
}); //@ts-ignore
|
|
27
|
+
|
|
28
|
+
Link.displayName = "Link";
|
|
27
29
|
export default Link;
|
|
28
|
-
export { Link };
|
|
30
|
+
export { Link, LinkBase };
|
package/esm/core/Link/link.mdx
CHANGED
|
@@ -32,3 +32,7 @@ import Link from '@digigov/ui/core/Link';
|
|
|
32
32
|
You can read more about the accessibility patterns used in our Link
|
|
33
33
|
implementation in the ARIA Authoring Practices Guide (APG) at
|
|
34
34
|
[Link](https://www.w3.org/WAI/ARIA/apg/patterns/link/) section.
|
|
35
|
+
|
|
36
|
+
## API
|
|
37
|
+
|
|
38
|
+
<PropTypes packageName="@digigov/ui" component="Link" />
|
package/esm/core/List/List.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import List from '@digigov/ui/core';
|
|
1
|
+
import List from '@digigov/ui/core/List';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/List',
|
|
4
|
-
|
|
4
|
+
description: 'Use lists to make blocks of text easier to read, and to break information into manageable chunks.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/styles/typography#lists',
|
|
6
|
+
component: List,
|
|
7
|
+
displayName: 'List'
|
|
5
8
|
};
|
|
6
9
|
export * from './__stories__/Default';
|
|
7
10
|
export * from './__stories__/BulletList';
|
package/esm/core/List/index.mdx
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import Masthead from '@digigov/ui/core/Masthead';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/Masthead',
|
|
4
|
-
|
|
4
|
+
description: 'You can use the masthead at the top of the first page of a GOV.GR service, not at internal pages.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/masthead',
|
|
6
|
+
defaultWidth: 'l',
|
|
7
|
+
component: Masthead,
|
|
8
|
+
displayName: 'Masthead'
|
|
5
9
|
};
|
|
6
10
|
export * from '@digigov/ui/core/Masthead/__stories__/Default';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import NavList from '@digigov/ui/core/NavList';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/NavList',
|
|
4
|
-
|
|
4
|
+
description: 'Use the navigation list component only when you need to show more options in one page.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/navigation-list',
|
|
6
|
+
component: NavList,
|
|
7
|
+
displayName: 'NavList'
|
|
5
8
|
};
|
|
6
9
|
export * from '@digigov/ui/core/NavList/__stories__/Default';
|
|
7
10
|
export * from '@digigov/ui/core/NavList/__stories__/NavHorizontalLayout';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { NavList as default } from '@digigov/ui/core/NavList/NavList';
|
|
2
1
|
export * from '@digigov/ui/core/NavList/NavList';
|
|
3
2
|
export * from '@digigov/ui/core/NavList/NavListItem';
|
|
4
3
|
export * from '@digigov/ui/core/NavList/NavListSubMenu';
|
|
@@ -7,4 +6,7 @@ export * from '@digigov/ui/core/NavList/NavHorizontal';
|
|
|
7
6
|
export * from '@digigov/ui/core/NavList/NavHorizontalList';
|
|
8
7
|
export * from '@digigov/ui/core/NavList/NavHorizontalListItem';
|
|
9
8
|
export * from '@digigov/ui/core/NavList/NavVertical';
|
|
10
|
-
export * from '@digigov/ui/core/NavList/NavVerticalItem';
|
|
9
|
+
export * from '@digigov/ui/core/NavList/NavVerticalItem';
|
|
10
|
+
export * from '@digigov/ui/core/NavList/types';
|
|
11
|
+
import NavList from '@digigov/ui/core/NavList/NavList';
|
|
12
|
+
export default NavList;
|
|
@@ -23,3 +23,7 @@ import NavList, { NavListItem } from '@digigov/ui/core/NavList';
|
|
|
23
23
|
You can read more about the accessibility patterns used in our NavList
|
|
24
24
|
implementation in the ARIA Authoring Practices Guide (APG) at
|
|
25
25
|
[Menu or Menu bar](https://www.w3.org/WAI/ARIA/apg/patterns/menu/).
|
|
26
|
+
|
|
27
|
+
## API
|
|
28
|
+
|
|
29
|
+
<PropTypes packageName="@digigov/ui" component="NavList" />
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import NotificationBanner from '@digigov/ui/core/NotificationBanner';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/NotificationBanner',
|
|
4
|
-
|
|
4
|
+
tags: ["Experimental"],
|
|
5
|
+
description: "Use a notification banner to tell the user about something they need to know about, but that’s not directly related to the page content.",
|
|
6
|
+
link: "https://guide.services.gov.gr/docs/components/Notification-Banner",
|
|
7
|
+
component: NotificationBanner,
|
|
8
|
+
displayName: 'NotificationBanner'
|
|
5
9
|
};
|
|
6
10
|
export * from '@digigov/ui/core/NotificationBanner/__stories__/Default';
|
|
7
11
|
export * from '@digigov/ui/core/NotificationBanner/__stories__/Success';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["variant", "title", "link", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import NotificationBannerContainer from '@digigov/react-core/NotificationBannerContainer';
|
|
6
6
|
import NotificationBannerHeader from '@digigov/react-core/NotificationBannerHeader';
|
|
7
7
|
import NotificationBannerHeading from '@digigov/react-core/NotificationBannerHeading';
|
|
8
8
|
import NotificationBannerContent from '@digigov/react-core/NotificationBannerContent';
|
|
@@ -20,11 +20,11 @@ export var NotificationBanner = function NotificationBanner(_ref) {
|
|
|
20
20
|
|
|
21
21
|
var success = variant === 'success';
|
|
22
22
|
title = title ? title : success ? 'Success' : 'Important';
|
|
23
|
-
return /*#__PURE__*/React.createElement(
|
|
23
|
+
return /*#__PURE__*/React.createElement(NotificationBannerContainer, _extends({
|
|
24
24
|
success: success
|
|
25
25
|
}, props), /*#__PURE__*/React.createElement(NotificationBannerHeader, null, title), /*#__PURE__*/React.createElement(NotificationBannerContent, null, /*#__PURE__*/React.createElement(NotificationBannerHeading, null, children, _ref2, link && /*#__PURE__*/React.createElement(NotificationBannerLink, {
|
|
26
26
|
href: link.href
|
|
27
27
|
}, link.label))));
|
|
28
28
|
};
|
|
29
|
-
export { NotificationBannerHeader, NotificationBannerContent, NotificationBannerHeading, NotificationBannerLink };
|
|
29
|
+
export { NotificationBannerContainer, NotificationBannerHeader, NotificationBannerContent, NotificationBannerHeading, NotificationBannerLink };
|
|
30
30
|
export default NotificationBanner;
|
|
@@ -26,3 +26,7 @@ Use a ‘neutral’ notification banner if the user needs to know about somethin
|
|
|
26
26
|
You can also use a notification banner to tell the user about the outcome of something they’ve just done - but they have not finished using the service, so it does not make sense to use a confirmation page.
|
|
27
27
|
|
|
28
28
|
<Story packageName="@digigov/ui" component="core/NotificationBanner" story="Success.tsx" />
|
|
29
|
+
|
|
30
|
+
## API
|
|
31
|
+
|
|
32
|
+
<PropTypes packageName="@digigov/ui" component="NotificationBanner" />
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import PhaseBanner from "@digigov/ui/core/PhaseBanner";
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/PhaseBanner',
|
|
4
|
-
|
|
4
|
+
description: 'Use the phase banner component to show users your service is still being worked on.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/phase-banner',
|
|
6
|
+
component: PhaseBanner,
|
|
7
|
+
displayName: 'PhaseBanner'
|
|
5
8
|
};
|
|
6
9
|
export * from './__stories__/Default';
|
|
7
10
|
export * from './__stories__/Underlined';
|
|
@@ -22,3 +22,7 @@ Your banner must be directly under the blue GOV.GR header and colour bar.
|
|
|
22
22
|
### Underlined
|
|
23
23
|
|
|
24
24
|
<Story packageName="@digigov/ui" component="core/PhaseBanner" story="Underlined.tsx" />
|
|
25
|
+
|
|
26
|
+
## API
|
|
27
|
+
|
|
28
|
+
<PropTypes packageName="@digigov/ui" component="PhaseBanner" />
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import Radios from '@digigov/ui/core/Radios';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'Digigov UI/core/Radios',
|
|
4
|
-
|
|
4
|
+
description: 'Use the radios component when users can only select one option from a list.',
|
|
5
|
+
link: 'https://guide.services.gov.gr/docs/components/radio',
|
|
6
|
+
component: Radios,
|
|
7
|
+
displayName: 'Radios'
|
|
5
8
|
};
|
|
6
9
|
export * from '@digigov/ui/core/Radios/__stories__/Default';
|
|
7
10
|
export * from '@digigov/ui/core/Radios/__stories__/MultipleQuestions';
|
|
@@ -9,7 +9,7 @@ var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.crea
|
|
|
9
9
|
}, /*#__PURE__*/React.createElement(FieldsetLegend, null, "\u03A0\u03C9\u03C2 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AE\u03C3\u03BF\u03C5\u03BC\u03B5 \u03BC\u03B1\u03B6\u03AF \u03C3\u03B1\u03C2;"), /*#__PURE__*/React.createElement(Hint, {
|
|
10
10
|
id: "contact-hint"
|
|
11
11
|
}, "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03CC,\u03C4\u03B9 \u03B9\u03C3\u03C7\u03CD\u03B5\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B5\u03C1\u03AF\u03C0\u03C4\u03C9\u03C3\u03B7 \u03C3\u03B1\u03C2."), /*#__PURE__*/React.createElement(Radios, null, /*#__PURE__*/React.createElement(RadioItem, {
|
|
12
|
-
|
|
12
|
+
defaultChecked: true,
|
|
13
13
|
name: "contact",
|
|
14
14
|
value: "email"
|
|
15
15
|
}, "Email"), /*#__PURE__*/React.createElement(RadioConditional, null, "Email address", /*#__PURE__*/React.createElement(TextInput, {
|
package/esm/core/Radios/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from '@digigov/react-core/
|
|
1
|
+
export * from '@digigov/react-core/RadioContainer';
|
|
2
2
|
export * from '@digigov/react-core/RadioItem';
|
|
3
3
|
export * from '@digigov/react-core/RadioConditional';
|
|
4
|
-
import Radios from '@digigov/react-core/
|
|
4
|
+
import Radios from '@digigov/react-core/RadioContainer';
|
|
5
5
|
export default Radios;
|