@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
package/core/NavList/index.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
var _exportNames = {};
|
|
7
|
-
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _NavList.NavList;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
9
|
+
exports["default"] = void 0;
|
|
13
10
|
|
|
14
|
-
var _NavList = require("@digigov/ui/core/NavList/NavList");
|
|
11
|
+
var _NavList = _interopRequireWildcard(require("@digigov/ui/core/NavList/NavList"));
|
|
15
12
|
|
|
16
13
|
Object.keys(_NavList).forEach(function (key) {
|
|
17
14
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -135,4 +132,25 @@ Object.keys(_NavVerticalItem).forEach(function (key) {
|
|
|
135
132
|
return _NavVerticalItem[key];
|
|
136
133
|
}
|
|
137
134
|
});
|
|
138
|
-
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
var _types = require("@digigov/ui/core/NavList/types");
|
|
138
|
+
|
|
139
|
+
Object.keys(_types).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
142
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
143
|
+
Object.defineProperty(exports, key, {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function get() {
|
|
146
|
+
return _types[key];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
152
|
+
|
|
153
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
154
|
+
|
|
155
|
+
var _default = _NavList["default"];
|
|
156
|
+
exports["default"] = _default;
|
package/core/NavList/index.mdx
CHANGED
|
@@ -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,6 +1,10 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export const title: string;
|
|
3
|
+
export const tags: string[];
|
|
4
|
+
export const description: string;
|
|
5
|
+
export const link: string;
|
|
3
6
|
export { NotificationBanner as component };
|
|
7
|
+
export const displayName: string;
|
|
4
8
|
}
|
|
5
9
|
export default _default;
|
|
6
10
|
export * from "@digigov/ui/core/NotificationBanner/__stories__/Default";
|
|
@@ -39,6 +39,10 @@ Object.keys(_Success).forEach(function (key) {
|
|
|
39
39
|
});
|
|
40
40
|
var _default = {
|
|
41
41
|
title: 'Digigov UI/core/NotificationBanner',
|
|
42
|
-
|
|
42
|
+
tags: ["Experimental"],
|
|
43
|
+
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.",
|
|
44
|
+
link: "https://guide.services.gov.gr/docs/components/Notification-Banner",
|
|
45
|
+
component: _NotificationBanner["default"],
|
|
46
|
+
displayName: 'NotificationBanner'
|
|
43
47
|
};
|
|
44
48
|
exports["default"] = _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import NotificationBannerContainer, { NotificationBannerContainerProps } from '@digigov/react-core/NotificationBannerContainer';
|
|
3
3
|
import NotificationBannerHeader from '@digigov/react-core/NotificationBannerHeader';
|
|
4
4
|
import NotificationBannerHeading from '@digigov/react-core/NotificationBannerHeading';
|
|
5
5
|
import NotificationBannerContent from '@digigov/react-core/NotificationBannerContent';
|
|
6
6
|
import NotificationBannerLink from '@digigov/react-core/NotificationBannerLink';
|
|
7
|
-
export interface NotificationBannerProps extends
|
|
7
|
+
export interface NotificationBannerProps extends NotificationBannerContainerProps {
|
|
8
8
|
variant?: 'important' | 'success';
|
|
9
9
|
title?: string;
|
|
10
10
|
link?: {
|
|
@@ -14,5 +14,5 @@ export interface NotificationBannerProps extends CoreNotificationBannerProps {
|
|
|
14
14
|
ref?: React.Ref<HTMLDivElement>;
|
|
15
15
|
}
|
|
16
16
|
export declare const NotificationBanner: React.FC<NotificationBannerProps>;
|
|
17
|
-
export { NotificationBannerHeader, NotificationBannerContent, NotificationBannerHeading, NotificationBannerLink, };
|
|
17
|
+
export { NotificationBannerContainer, NotificationBannerHeader, NotificationBannerContent, NotificationBannerHeading, NotificationBannerLink, };
|
|
18
18
|
export default NotificationBanner;
|
|
@@ -6,6 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.NotificationBanner = void 0;
|
|
9
|
+
Object.defineProperty(exports, "NotificationBannerContainer", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function get() {
|
|
12
|
+
return _NotificationBannerContainer["default"];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
9
15
|
Object.defineProperty(exports, "NotificationBannerContent", {
|
|
10
16
|
enumerable: true,
|
|
11
17
|
get: function get() {
|
|
@@ -38,7 +44,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
38
44
|
|
|
39
45
|
var _react = _interopRequireDefault(require("react"));
|
|
40
46
|
|
|
41
|
-
var
|
|
47
|
+
var _NotificationBannerContainer = _interopRequireDefault(require("@digigov/react-core/NotificationBannerContainer"));
|
|
42
48
|
|
|
43
49
|
var _NotificationBannerHeader = _interopRequireDefault(require("@digigov/react-core/NotificationBannerHeader"));
|
|
44
50
|
|
|
@@ -61,7 +67,7 @@ var NotificationBanner = function NotificationBanner(_ref) {
|
|
|
61
67
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
62
68
|
var success = variant === 'success';
|
|
63
69
|
title = title ? title : success ? 'Success' : 'Important';
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
70
|
+
return /*#__PURE__*/_react["default"].createElement(_NotificationBannerContainer["default"], (0, _extends2["default"])({
|
|
65
71
|
success: success
|
|
66
72
|
}, props), /*#__PURE__*/_react["default"].createElement(_NotificationBannerHeader["default"], null, title), /*#__PURE__*/_react["default"].createElement(_NotificationBannerContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NotificationBannerHeading["default"], null, children, _ref2, link && /*#__PURE__*/_react["default"].createElement(_NotificationBannerLink["default"], {
|
|
67
73
|
href: link.href
|
|
@@ -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,6 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export const title: string;
|
|
3
|
+
export const description: string;
|
|
4
|
+
export const link: string;
|
|
3
5
|
export { PhaseBanner as component };
|
|
6
|
+
export const displayName: string;
|
|
4
7
|
}
|
|
5
8
|
export default _default;
|
|
6
9
|
export * from "./__stories__/Default";
|
|
@@ -39,6 +39,9 @@ Object.keys(_Underlined).forEach(function (key) {
|
|
|
39
39
|
});
|
|
40
40
|
var _default = {
|
|
41
41
|
title: 'Digigov UI/core/PhaseBanner',
|
|
42
|
-
|
|
42
|
+
description: 'Use the phase banner component to show users your service is still being worked on.',
|
|
43
|
+
link: 'https://guide.services.gov.gr/docs/components/phase-banner',
|
|
44
|
+
component: _PhaseBanner["default"],
|
|
45
|
+
displayName: 'PhaseBanner'
|
|
43
46
|
};
|
|
44
47
|
exports["default"] = _default;
|
|
@@ -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,6 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export const title: string;
|
|
3
|
+
export const description: string;
|
|
4
|
+
export const link: string;
|
|
3
5
|
export { Radios as component };
|
|
6
|
+
export const displayName: string;
|
|
4
7
|
}
|
|
5
8
|
export default _default;
|
|
6
9
|
export * from "@digigov/ui/core/Radios/__stories__/Default";
|
|
@@ -109,6 +109,9 @@ Object.keys(_ConditionalReveal).forEach(function (key) {
|
|
|
109
109
|
});
|
|
110
110
|
var _default = {
|
|
111
111
|
title: 'Digigov UI/core/Radios',
|
|
112
|
-
|
|
112
|
+
description: 'Use the radios component when users can only select one option from a list.',
|
|
113
|
+
link: 'https://guide.services.gov.gr/docs/components/radio',
|
|
114
|
+
component: _Radios["default"],
|
|
115
|
+
displayName: 'Radios'
|
|
113
116
|
};
|
|
114
117
|
exports["default"] = _default;
|
|
@@ -28,7 +28,7 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], null,
|
|
|
28
28
|
}, /*#__PURE__*/_react["default"].createElement(_Field.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["default"].createElement(_Hint["default"], {
|
|
29
29
|
id: "contact-hint"
|
|
30
30
|
}, "\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["default"].createElement(_Radios["default"], null, /*#__PURE__*/_react["default"].createElement(_Radios.RadioItem, {
|
|
31
|
-
|
|
31
|
+
defaultChecked: true,
|
|
32
32
|
name: "contact",
|
|
33
33
|
value: "email"
|
|
34
34
|
}, "Email"), /*#__PURE__*/_react["default"].createElement(_Radios.RadioConditional, null, "Email address", /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
package/core/Radios/index.d.ts
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;
|
package/core/Radios/index.js
CHANGED
|
@@ -8,16 +8,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _RadioContainer = _interopRequireWildcard(require("@digigov/react-core/RadioContainer"));
|
|
12
12
|
|
|
13
|
-
Object.keys(
|
|
13
|
+
Object.keys(_RadioContainer).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
|
15
15
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
|
-
if (key in exports && exports[key] ===
|
|
16
|
+
if (key in exports && exports[key] === _RadioContainer[key]) return;
|
|
17
17
|
Object.defineProperty(exports, key, {
|
|
18
18
|
enumerable: true,
|
|
19
19
|
get: function get() {
|
|
20
|
-
return
|
|
20
|
+
return _RadioContainer[key];
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
});
|
|
@@ -54,5 +54,5 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
54
54
|
|
|
55
55
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
56
56
|
|
|
57
|
-
var _default =
|
|
57
|
+
var _default = _RadioContainer["default"];
|
|
58
58
|
exports["default"] = _default;
|
package/core/Radios/index.mdx
CHANGED
|
@@ -54,3 +54,17 @@ Error messages should be styled like this:
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
+
|
|
58
|
+
## API
|
|
59
|
+
|
|
60
|
+
### RadioContainer
|
|
61
|
+
|
|
62
|
+
<PropTypes packageName="@digigov/ui" component="RadioContainer" />
|
|
63
|
+
|
|
64
|
+
### RadioConditional
|
|
65
|
+
|
|
66
|
+
<PropTypes packageName="@digigov/ui" component="RadioConditional" />
|
|
67
|
+
|
|
68
|
+
### RadioItem
|
|
69
|
+
|
|
70
|
+
<PropTypes packageName="@digigov/ui" component="RadioItem" />
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export const title: string;
|
|
3
|
+
export const description: string;
|
|
4
|
+
export const link: string;
|
|
3
5
|
export { Select as component };
|
|
6
|
+
export const displayName: string;
|
|
4
7
|
}
|
|
5
8
|
export default _default;
|
|
6
9
|
export * from "./__stories__/Default";
|
|
@@ -53,6 +53,9 @@ Object.keys(_WithHint).forEach(function (key) {
|
|
|
53
53
|
});
|
|
54
54
|
var _default = {
|
|
55
55
|
title: 'Digigov UI/core/Select',
|
|
56
|
-
|
|
56
|
+
description: 'The select component should only be used as a last resort in public-facing services because research shows that some users find selects very difficult to use.',
|
|
57
|
+
link: 'https://guide.services.gov.gr/docs/components/select',
|
|
58
|
+
component: _Select["default"],
|
|
59
|
+
displayName: 'Select'
|
|
57
60
|
};
|
|
58
61
|
exports["default"] = _default;
|
|
@@ -15,13 +15,13 @@ var _Select = _interopRequireWildcard(require("@digigov/ui/core/Select"));
|
|
|
15
15
|
|
|
16
16
|
var _Field = _interopRequireDefault(require("@digigov/ui/core/Field"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _LabelContainer = _interopRequireDefault(require("@digigov/react-core/LabelContainer"));
|
|
19
19
|
|
|
20
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
21
|
|
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
23
|
|
|
24
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(
|
|
24
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_LabelContainer["default"], null, "\u03A4\u03B1\u03BE\u03B9\u03BD\u03CC\u03BC\u03B7\u03C3\u03B7", /*#__PURE__*/_react["default"].createElement(_Select["default"], {
|
|
25
25
|
name: "select-list",
|
|
26
26
|
"aria-label": "\u03C4\u03B1\u03BE\u03B9\u03BD\u03CC\u03BC\u03B7\u03C3\u03B7"
|
|
27
27
|
}, /*#__PURE__*/_react["default"].createElement(_Select.SelectOption, {
|
|
@@ -15,13 +15,13 @@ var _Select = _interopRequireWildcard(require("@digigov/ui/core/Select"));
|
|
|
15
15
|
|
|
16
16
|
var _Field = _interopRequireDefault(require("@digigov/ui/core/Field"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _LabelContainer = _interopRequireDefault(require("@digigov/react-core/LabelContainer"));
|
|
19
19
|
|
|
20
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
21
|
|
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
23
|
|
|
24
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(
|
|
24
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_LabelContainer["default"], null, "\u03A4\u03B1\u03BE\u03B9\u03BD\u03CC\u03BC\u03B7\u03C3\u03B7", /*#__PURE__*/_react["default"].createElement(_Select["default"], {
|
|
25
25
|
name: "select-list",
|
|
26
26
|
disabled: true,
|
|
27
27
|
"aria-disabled": "true",
|
|
@@ -15,7 +15,7 @@ var _Select = _interopRequireWildcard(require("@digigov/ui/core/Select"));
|
|
|
15
15
|
|
|
16
16
|
var _Field = _interopRequireDefault(require("@digigov/ui/core/Field"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _LabelContainer = _interopRequireDefault(require("@digigov/react-core/LabelContainer"));
|
|
19
19
|
|
|
20
20
|
var _typography = require("@digigov/ui/typography");
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(
|
|
26
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_LabelContainer["default"], null, "\u03A4\u03B1\u03BE\u03B9\u03BD\u03CC\u03BC\u03B7\u03C3\u03B7", /*#__PURE__*/_react["default"].createElement(_typography.Hint, null, "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C4\u03B7\u03BD \u03C4\u03B1\u03BE\u03B9\u03BC\u03CC\u03BD\u03B7\u03C3\u03B7 \u03C0\u03BF\u03C5 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5."), /*#__PURE__*/_react["default"].createElement(_Select["default"], {
|
|
27
27
|
name: "select-list",
|
|
28
28
|
"aria-label": "\u03C4\u03B1\u03BE\u03B9\u03BD\u03CC\u03BC\u03B7\u03C3\u03B7"
|
|
29
29
|
}, /*#__PURE__*/_react["default"].createElement(_Select.SelectOption, {
|
package/core/Select/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from '@digigov/react-core/
|
|
1
|
+
export * from '@digigov/react-core/SelectContainer';
|
|
2
2
|
export * from '@digigov/react-core/SelectOption';
|
|
3
|
-
import Select from '@digigov/react-core/
|
|
3
|
+
import Select from '@digigov/react-core/SelectContainer';
|
|
4
4
|
export default Select;
|
package/core/Select/index.js
CHANGED
|
@@ -8,16 +8,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _SelectContainer = _interopRequireWildcard(require("@digigov/react-core/SelectContainer"));
|
|
12
12
|
|
|
13
|
-
Object.keys(
|
|
13
|
+
Object.keys(_SelectContainer).forEach(function (key) {
|
|
14
14
|
if (key === "default" || key === "__esModule") return;
|
|
15
15
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
|
-
if (key in exports && exports[key] ===
|
|
16
|
+
if (key in exports && exports[key] === _SelectContainer[key]) return;
|
|
17
17
|
Object.defineProperty(exports, key, {
|
|
18
18
|
enumerable: true,
|
|
19
19
|
get: function get() {
|
|
20
|
-
return
|
|
20
|
+
return _SelectContainer[key];
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
});
|
|
@@ -40,5 +40,5 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
40
40
|
|
|
41
41
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
42
42
|
|
|
43
|
-
var _default =
|
|
43
|
+
var _default = _SelectContainer["default"];
|
|
44
44
|
exports["default"] = _default;
|
package/core/Select/index.mdx
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export const title: string;
|
|
3
|
+
export const description: string;
|
|
4
|
+
export const link: string;
|
|
3
5
|
export { SummaryList as component };
|
|
6
|
+
export const displayName: string;
|
|
4
7
|
}
|
|
5
8
|
export default _default;
|
|
6
9
|
export * from "./__stories__/Default";
|
|
@@ -8,3 +11,4 @@ export * from "./__stories__/WithActions";
|
|
|
8
11
|
export * from "./__stories__/WithoutBorders";
|
|
9
12
|
export * from "./__stories__/WithKeyAndAction";
|
|
10
13
|
export * from "./__stories__/RowVariations";
|
|
14
|
+
import SummaryList from "@digigov/ui/core/SummaryList";
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _SummaryList = _interopRequireDefault(require("@digigov/ui/core/SummaryList"));
|
|
12
12
|
|
|
13
13
|
var _Default = require("./__stories__/Default");
|
|
14
14
|
|
|
@@ -83,6 +83,9 @@ Object.keys(_RowVariations).forEach(function (key) {
|
|
|
83
83
|
/* eslint-disable digigov/no-relative-imports */
|
|
84
84
|
var _default = {
|
|
85
85
|
title: 'Digigov UI/core/SummaryList',
|
|
86
|
-
|
|
86
|
+
description: 'Use the summary list to summarise information.',
|
|
87
|
+
link: 'https://guide.services.gov.gr/docs/components/summary-list',
|
|
88
|
+
component: _SummaryList["default"],
|
|
89
|
+
displayName: 'SummaryList'
|
|
87
90
|
};
|
|
88
91
|
exports["default"] = _default;
|
|
@@ -30,3 +30,7 @@ This means a screen reader user will hear a meaningful action, like ‘Αλλα
|
|
|
30
30
|
If you do not include actions in your summary list and it would be better for your design to remove the separating borders, use the `border={false}` prop.
|
|
31
31
|
|
|
32
32
|
<Story packageName="@digigov/ui" component="core/SummaryList" story="WithoutBorders.tsx" />
|
|
33
|
+
|
|
34
|
+
## API
|
|
35
|
+
|
|
36
|
+
<PropTypes packageName="@digigov/ui" component="SummaryList" />
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export const title: string;
|
|
3
|
+
export const description: string;
|
|
4
|
+
export const link: string;
|
|
3
5
|
export { Table as component };
|
|
6
|
+
export const displayName: string;
|
|
4
7
|
}
|
|
5
8
|
export default _default;
|
|
6
9
|
export * from "./__stories__/Default";
|
|
@@ -18,3 +21,4 @@ export * from "./__stories__/Densed";
|
|
|
18
21
|
export * from "./__stories__/MultipleProps";
|
|
19
22
|
export * from "./__stories__/WithFloatingScroll";
|
|
20
23
|
export * from "./__stories__/Full";
|
|
24
|
+
import Table from "@digigov/ui/core/Table";
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
var _exportNames = {};
|
|
9
9
|
exports["default"] = void 0;
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _Table = _interopRequireDefault(require("@digigov/ui/core/Table"));
|
|
12
12
|
|
|
13
13
|
var _Default = require("./__stories__/Default");
|
|
14
14
|
|
|
@@ -223,6 +223,9 @@ Object.keys(_Full).forEach(function (key) {
|
|
|
223
223
|
/* eslint-disable digigov/no-relative-imports */
|
|
224
224
|
var _default = {
|
|
225
225
|
title: 'Digigov UI/core/Table',
|
|
226
|
-
|
|
226
|
+
description: 'Use the table component to make information easier to compare and scan for users.',
|
|
227
|
+
link: 'https://guide.services.gov.gr/docs/components/table',
|
|
228
|
+
component: _Table["default"],
|
|
229
|
+
displayName: 'Table'
|
|
227
230
|
};
|
|
228
231
|
exports["default"] = _default;
|
|
@@ -66,20 +66,6 @@ var _ref2 = /*#__PURE__*/_react["default"].createElement(_Table.TableDataCell, n
|
|
|
66
66
|
href: "#"
|
|
67
67
|
}, "Dismiss")))));
|
|
68
68
|
|
|
69
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Table.TableHeadCell, null, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2");
|
|
70
|
-
|
|
71
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(_Table.TableDataCell, null, /*#__PURE__*/_react["default"].createElement(_admin.Dropdown, {
|
|
72
|
-
"float": true,
|
|
73
|
-
align: "left",
|
|
74
|
-
placement: "bottom"
|
|
75
|
-
}, /*#__PURE__*/_react["default"].createElement(_admin.DropdownButton, {
|
|
76
|
-
variant: "link"
|
|
77
|
-
}, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/_react["default"].createElement(_admin.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavList.NavVertical, null, /*#__PURE__*/_react["default"].createElement(_NavList.NavVerticalItem, {
|
|
78
|
-
href: "#"
|
|
79
|
-
}, "Accept"), /*#__PURE__*/_react["default"].createElement(_NavList.NavVerticalItem, {
|
|
80
|
-
href: "#"
|
|
81
|
-
}, "Dismiss")))));
|
|
82
|
-
|
|
83
69
|
var WithFloatingScroll = function WithFloatingScroll() {
|
|
84
70
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_TableFloatingScroll["default"], null, /*#__PURE__*/_react["default"].createElement(_Table.Table, null, /*#__PURE__*/_react["default"].createElement(_Table.TableHead, null, /*#__PURE__*/_react["default"].createElement(_Table.TableRow, null, Object.keys(data[0]).map(function (key) {
|
|
85
71
|
return /*#__PURE__*/_react["default"].createElement(_Table.TableHeadCell, {
|
|
@@ -93,19 +79,7 @@ var WithFloatingScroll = function WithFloatingScroll() {
|
|
|
93
79
|
key: key
|
|
94
80
|
}, dt[key]);
|
|
95
81
|
}), _ref2);
|
|
96
|
-
}))))
|
|
97
|
-
return /*#__PURE__*/_react["default"].createElement(_Table.TableHeadCell, {
|
|
98
|
-
key: key
|
|
99
|
-
}, labels[key]);
|
|
100
|
-
}), _ref3)), /*#__PURE__*/_react["default"].createElement(_Table.TableBody, null, data && data.map(function (dt, index) {
|
|
101
|
-
return /*#__PURE__*/_react["default"].createElement(_Table.TableRow, {
|
|
102
|
-
key: index
|
|
103
|
-
}, Object.keys(dt).map(function (key) {
|
|
104
|
-
return /*#__PURE__*/_react["default"].createElement(_Table.TableDataCell, {
|
|
105
|
-
key: key
|
|
106
|
-
}, dt[key]);
|
|
107
|
-
}), _ref4);
|
|
108
|
-
}))));
|
|
82
|
+
})))));
|
|
109
83
|
};
|
|
110
84
|
|
|
111
85
|
exports.WithFloatingScroll = WithFloatingScroll;
|
package/core/Table/index.d.ts
CHANGED
|
@@ -8,3 +8,5 @@ export * from '@digigov/react-core/TableHeadCell';
|
|
|
8
8
|
export * from '@digigov/react-core/TableRow';
|
|
9
9
|
export * from '@digigov/react-core/TableNoDataRow';
|
|
10
10
|
export * from '@digigov/ui/core/Table/TableFloatingScroll';
|
|
11
|
+
import Table from '@digigov/react-core/Table';
|
|
12
|
+
export default Table;
|