@digigov/ui 0.24.3 → 0.26.2
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 +39 -1
- package/admin/AutoComplete/__stories__/Default.d.ts +0 -1
- package/admin/AutoComplete/__stories__/Default.js +1 -1
- package/admin/AutoComplete/__stories__/WithAutoSelect.d.ts +0 -1
- package/admin/AutoComplete/__stories__/WithAutoSelect.js +13 -2
- package/admin/AutoComplete/__stories__/WithDefaultValue.d.ts +0 -1
- package/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
- package/admin/AutoComplete/__stories__/WithInLine.d.ts +0 -1
- package/admin/AutoComplete/__stories__/WithInLine.js +1 -1
- package/admin/AutoComplete/__stories__/WithMinLength.d.ts +0 -1
- package/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
- package/admin/AutoComplete/__stories__/WithPlaceHolder.d.ts +0 -1
- package/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
- package/admin/AutoComplete/__stories__/WithShowAllValues.d.ts +0 -1
- package/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
- package/admin/AutoComplete/__stories__/utils.d.ts +2 -0
- package/admin/AutoComplete/__stories__/utils.js +15 -0
- package/admin/AutoComplete/index.d.ts +37 -20
- package/admin/AutoComplete/index.js +15 -53
- package/admin/AutoComplete/utils.d.ts +9 -1
- package/admin/AutoComplete/utils.js +23 -6
- package/admin/Chip/index.d.ts +2 -0
- package/admin/Chip/index.js +28 -0
- package/admin/CircularProgress/__stories__/Default.d.ts +0 -1
- package/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
- package/admin/CopyToClipboard/__stories__/Banner.d.ts +0 -1
- package/admin/CopyToClipboard/__stories__/Default.d.ts +0 -1
- package/admin/CopyToClipboard/__stories__/MultipleCopies.d.ts +0 -1
- package/admin/CopyToClipboard/index.d.ts +4 -1
- package/admin/CopyToClipboard/index.js +14 -1
- package/admin/Drawer/Drawer.stories.d.ts +1 -4
- package/admin/Drawer/Drawer.stories.js +3 -22
- package/admin/Drawer/__stories__/Default.d.ts +0 -1
- package/admin/Drawer/__stories__/Default.js +13 -13
- package/admin/Drawer/index.d.ts +1 -0
- package/admin/Drawer/index.js +14 -0
- package/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
- package/admin/Dropdown/__stories__/AlignRight.d.ts +0 -1
- package/admin/Dropdown/__stories__/Default.d.ts +0 -1
- package/admin/Dropdown/__stories__/PlacementTop.d.ts +0 -1
- package/admin/DropdownArrowDown/index.d.ts +3 -0
- package/admin/DropdownArrowDown/index.js +19 -0
- package/admin/Modal/Modal.stories.playwright.json +37 -0
- package/admin/Modal/__stories__/AlertDialog.d.ts +0 -1
- package/admin/Modal/__stories__/Default.d.ts +0 -1
- package/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/admin/Pagination/__stories__/Default.d.ts +0 -1
- package/admin/Pagination/index.d.ts +1 -1
- package/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/admin/StepNav/__stories__/Default.d.ts +0 -1
- package/admin/TaskList/__stories__/Default.d.ts +0 -1
- package/admin/Timeline/__stories__/Default.d.ts +0 -1
- package/admin/index.d.ts +1 -0
- package/admin/index.js +13 -0
- package/app/App.d.ts +0 -7
- package/app/App.js +6 -25
- package/app/Confirmation/__stories__/Default.d.ts +0 -1
- package/app/Footer/Footer.stories.d.ts +1 -0
- package/app/Footer/Footer.stories.js +14 -0
- package/app/Footer/Footer.stories.playwright.json +27 -0
- package/app/Footer/__stories__/Default.d.ts +0 -1
- package/app/Footer/__stories__/DefaultCopyright.d.ts +2 -0
- package/app/Footer/__stories__/DefaultCopyright.js +32 -0
- package/app/Footer/__stories__/FooterAllInclusive.d.ts +0 -1
- package/app/Footer/__stories__/FooterAllInclusive.js +11 -4
- package/app/Footer/__stories__/FooterWithLink.d.ts +0 -1
- package/app/Footer/__stories__/FooterWithLink.js +1 -1
- package/app/Footer/__stories__/FooterWithLogo.d.ts +0 -1
- package/app/Footer/__stories__/FooterWithLogo.js +6 -2
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.d.ts +0 -1
- package/app/Header/Header.stories.d.ts +12 -12
- package/app/Header/Header.stories.playwright.json +33 -0
- package/app/Header/HeaderLogo.d.ts +1 -1
- package/app/Header/HeaderSection.d.ts +1 -1
- package/app/Header/HeaderTitle.d.ts +1 -1
- package/app/Header/__stories__/Default.d.ts +0 -1
- package/app/Header/__stories__/Default.js +2 -3
- package/app/Header/__stories__/WithNavigation.d.ts +0 -1
- package/app/Header/__stories__/WithNavigation.js +3 -4
- package/app/Header/__stories__/WithServiceName.d.ts +0 -1
- package/app/Header/__stories__/WithServiceName.js +2 -3
- package/app/Header/__stories__/WithServiceNameAndLogo.d.ts +0 -1
- package/app/Header/__stories__/WithServiceNameAndLogo.js +5 -4
- package/app/Header/index.d.ts +1 -1
- package/app/Header/index.spec.js +1 -5
- package/app/NotFound/__stories__/Default.d.ts +0 -1
- package/app/OutdatedBrowserBanner.d.ts +0 -1
- package/app/PhaseBannerHeader/__stories__/Default.d.ts +0 -1
- package/app/PhaseBannerHeader/index.d.ts +1 -1
- package/app/QrCodeScanner/__stories__/Default.d.ts +0 -1
- package/app/i18n.d.ts +2 -2
- package/app/i18n.js +16 -2
- package/core/Accordion/Accordion.stories.playwright.json +27 -0
- package/core/Accordion/__stories__/Default.d.ts +0 -1
- package/core/Accordion/__stories__/WithHints.d.ts +0 -1
- package/core/Accordion/index.d.ts +3 -3
- package/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/core/BackLink/__stories__/Default.d.ts +0 -1
- package/core/Base/index.d.ts +3 -0
- package/core/Base/index.js +19 -0
- package/core/Blockquote/__stories__/Default.d.ts +0 -1
- package/core/Blockquote/index.d.ts +1 -1
- package/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/core/Breadcrumbs/__stories__/Default.d.ts +0 -1
- package/core/Button/BackButton.d.ts +1 -1
- package/core/Button/Button.stories.d.ts +15 -15
- package/core/Button/Button.stories.playwright.json +93 -0
- package/core/Button/ButtonLink.d.ts +1 -1
- package/core/Button/__stories__/Back.d.ts +0 -1
- package/core/Button/__stories__/ButtonLinkButton.d.ts +0 -1
- package/core/Button/__stories__/CallToActionButton.d.ts +0 -1
- package/core/Button/__stories__/Disabled.d.ts +0 -1
- package/core/Button/__stories__/GroupingButtons.d.ts +0 -1
- package/core/Button/__stories__/GroupingButtons.js +1 -1
- package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -1
- package/core/Button/__stories__/Primary.d.ts +0 -1
- package/core/Button/__stories__/Secondary.d.ts +0 -1
- package/core/Button/__stories__/Warning.d.ts +0 -1
- package/core/Button/__stories__/WithVariantLink.d.ts +0 -1
- package/core/Button/index.d.ts +1 -1
- package/core/Card/Card.stories.playwright.json +21 -0
- package/core/Card/__stories__/Default.d.ts +0 -1
- package/core/Card/__stories__/WithClickableContent.d.ts +0 -1
- package/core/Card/__stories__/WithClickableLink.d.ts +0 -1
- package/core/Card/__stories__/WithDarkBorder.d.ts +0 -1
- package/core/Card/__stories__/WithDarkTopBorder.d.ts +0 -1
- package/core/Card/__stories__/WithDivider.d.ts +0 -1
- package/core/Card/__stories__/WithGrayBorder.d.ts +0 -1
- package/core/Card/__stories__/WithGrayTopBorder.d.ts +0 -1
- package/core/Card/__stories__/WithGroupButton.d.ts +0 -1
- package/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
- package/core/Checkboxes/__stories__/ConditionalReveal.d.ts +0 -1
- package/core/Checkboxes/__stories__/Default.d.ts +0 -1
- package/core/Checkboxes/__stories__/MultipleQuestions.d.ts +0 -1
- package/core/Checkboxes/__stories__/NoneAnswer.d.ts +0 -1
- package/core/Checkboxes/__stories__/NoneAnswerWithError.d.ts +2 -3
- package/core/Checkboxes/__stories__/NoneAnswerWithError.js +4 -4
- package/core/Checkboxes/__stories__/WithErrorMessage.d.ts +0 -1
- package/core/Checkboxes/__stories__/WithHint.d.ts +0 -1
- package/core/Confirmation/__stories__/Default.d.ts +0 -1
- package/core/DateInput/DateInput.stories.playwright.json +61 -0
- package/core/DateInput/__stories__/Default.d.ts +0 -1
- package/core/DateInput/__stories__/MultipleQuestions.d.ts +0 -1
- package/core/DateInput/__stories__/WithErrorMessage.d.ts +0 -1
- package/core/DateInput/__stories__/WithErrorMessageForSingleField.d.ts +0 -1
- package/core/Details/Details.stories.playwright.json +27 -0
- package/core/Details/__stories__/Default.d.ts +0 -1
- package/core/Divider/__stories__/Default.d.ts +0 -1
- package/core/Divider/index.d.ts +1 -1
- package/core/ErrorMessage/__stories__/Default.d.ts +0 -1
- package/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/core/ErrorSummary/__stories__/Default.d.ts +0 -1
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.d.ts +0 -1
- package/core/ErrorSummary/__stories__/LinkedToField.d.ts +0 -1
- package/core/ErrorSummary/__stories__/LinkedToInput.d.ts +0 -1
- package/core/ErrorSummary/index.spec.js +3 -5
- package/core/FileUpload/__stories__/Default.d.ts +0 -1
- package/core/FileUpload/__stories__/Default.js +1 -1
- package/core/FileUpload/__stories__/WithErrorMessage.d.ts +2 -3
- package/core/FileUpload/__stories__/WithErrorMessage.js +5 -5
- package/core/Form/index.d.ts +3 -0
- package/core/Form/index.js +19 -0
- package/core/Label/index.d.ts +4 -0
- package/core/Label/index.js +44 -0
- package/core/Link/Link.stories.playwright.json +65 -0
- package/core/Link/__stories__/DarkBackground.d.ts +0 -1
- package/core/Link/__stories__/DarkBackgroundNoUnderline.d.ts +0 -1
- package/core/Link/__stories__/Default.d.ts +0 -1
- package/core/Link/__stories__/NoUnderline.d.ts +0 -1
- package/core/Link/__stories__/OpensInNewTab.d.ts +0 -1
- package/core/Link/index.d.ts +1 -0
- package/core/Link/index.js +2 -1
- package/core/List/List.stories.playwright.json +27 -0
- package/core/List/ListItemContent.d.ts +0 -1
- package/core/List/ListItemContent.js +9 -27
- package/core/List/ListItemIcon.d.ts +1 -3
- package/core/List/ListItemIcon.js +9 -30
- package/core/List/ListItemText.d.ts +0 -1
- package/core/List/ListItemText.js +8 -15
- package/core/List/ListItemTitle.d.ts +0 -1
- package/core/List/ListItemTitle.js +8 -15
- package/core/List/__stories__/BulletList.d.ts +0 -1
- package/core/List/__stories__/Default.d.ts +0 -1
- package/core/List/__stories__/NumberedList.d.ts +0 -1
- package/core/List/__stories__/WithExtraSpace.d.ts +0 -1
- package/core/List/index.spec.js +1 -3
- package/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/core/Masthead/__stories__/Default.d.ts +0 -1
- package/core/NavList/NavHorizontal.d.ts +3 -0
- package/core/NavList/NavHorizontal.js +19 -0
- package/core/NavList/NavHorizontalList.d.ts +3 -0
- package/core/NavList/NavHorizontalList.js +19 -0
- package/core/NavList/NavHorizontalListItem.d.ts +3 -0
- package/core/NavList/NavHorizontalListItem.js +19 -0
- package/core/NavList/NavList.stories.playwright.json +33 -0
- package/core/NavList/NavListItem.d.ts +1 -1
- package/core/NavList/NavListItemBase.d.ts +1 -1
- package/core/NavList/NavVertical.d.ts +3 -0
- package/core/NavList/NavVertical.js +19 -0
- package/core/NavList/NavVerticalItem.d.ts +3 -0
- package/core/NavList/NavVerticalItem.js +19 -0
- package/core/NavList/__stories__/Default.d.ts +0 -1
- package/core/NavList/__stories__/NavHorizontalLayout.d.ts +0 -1
- package/core/NavList/index.d.ts +5 -0
- package/core/NavList/index.js +70 -0
- package/core/NavList/index.spec.js +1 -3
- package/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/core/NotificationBanner/__stories__/Default.d.ts +0 -1
- package/core/NotificationBanner/__stories__/Success.d.ts +0 -1
- package/core/NotificationBanner/index.spec.js +3 -5
- package/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/core/PhaseBanner/__stories__/Default.d.ts +0 -1
- package/core/PhaseBanner/__stories__/Underlined.d.ts +0 -1
- package/core/Radios/Radios.stories.playwright.json +49 -0
- package/core/Radios/__stories__/ConditionalReveal.d.ts +0 -1
- package/core/Radios/__stories__/Default.d.ts +0 -1
- package/core/Radios/__stories__/Inline.d.ts +0 -1
- package/core/Radios/__stories__/MultipleQuestions.d.ts +0 -1
- package/core/Radios/__stories__/NoneAnswer.d.ts +0 -1
- package/core/Radios/__stories__/WithErrorMessage.d.ts +0 -1
- package/core/Radios/__stories__/WithHints.d.ts +0 -1
- package/core/Select/Select.stories.playwright.json +21 -0
- package/core/Select/__stories__/Default.d.ts +0 -1
- package/core/Select/__stories__/DisabledInput.d.ts +0 -1
- package/core/Select/__stories__/WithHint.d.ts +0 -1
- package/core/SkipLink/index.d.ts +3 -0
- package/core/SkipLink/index.js +19 -0
- package/core/SummaryList/SummaryList.stories.d.ts +1 -0
- package/core/SummaryList/SummaryList.stories.js +14 -0
- package/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/core/SummaryList/__stories__/Default.d.ts +0 -1
- package/core/SummaryList/__stories__/Default.js +7 -1
- package/core/SummaryList/__stories__/WithActions.d.ts +0 -1
- package/core/SummaryList/__stories__/WithKeyAndAction.d.ts +2 -0
- package/core/SummaryList/__stories__/WithKeyAndAction.js +42 -0
- package/core/SummaryList/__stories__/WithoutBorders.d.ts +0 -1
- package/core/SvgIcon/index.d.ts +1 -0
- package/core/SvgIcon/index.js +14 -0
- package/core/Table/Table.stories.playwright.json +21 -0
- package/core/Table/TableFloatingScroll.d.ts +0 -1
- package/core/Table/__stories__/DarkVariant.d.ts +0 -1
- package/core/Table/__stories__/DarkVariantWithVerticalHeaders.d.ts +0 -1
- package/core/Table/__stories__/Default.d.ts +0 -1
- package/core/Table/__stories__/DefinedWidth.d.ts +0 -1
- package/core/Table/__stories__/Densed.d.ts +0 -1
- package/core/Table/__stories__/MultipleProps.d.ts +0 -1
- package/core/Table/__stories__/NoData.d.ts +0 -1
- package/core/Table/__stories__/NumericDataType.d.ts +0 -1
- package/core/Table/__stories__/TableCaptions.d.ts +0 -1
- package/core/Table/__stories__/VerticalBorders.d.ts +0 -1
- package/core/Table/__stories__/VerticalHeaders.d.ts +0 -1
- package/core/Table/__stories__/WithFloatingScroll.d.ts +0 -1
- package/core/Table/__stories__/WithHeader.d.ts +0 -1
- package/core/Table/__stories__/WithLoader.d.ts +0 -1
- package/core/Table/__stories__/ZebraProp.d.ts +0 -1
- package/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/core/Tabs/__stories__/Default.d.ts +0 -1
- package/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/core/TextArea/__stories__/Default.d.ts +0 -1
- package/core/TextArea/__stories__/DisabledInput.d.ts +0 -1
- package/core/TextArea/__stories__/LimitedCharacters.d.ts +0 -1
- package/core/TextArea/__stories__/MultipleQuestions.d.ts +0 -1
- package/core/TextArea/__stories__/WithDeclaredRows.d.ts +0 -1
- package/core/TextArea/__stories__/WithErrorMessage.d.ts +0 -1
- package/core/TextArea/__stories__/WithHint.d.ts +0 -1
- package/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/core/TextInput/__stories__/AskingForNumbers.d.ts +0 -1
- package/core/TextInput/__stories__/Default.d.ts +0 -1
- package/core/TextInput/__stories__/DisabledInput.d.ts +0 -1
- package/core/TextInput/__stories__/FixedWidths.d.ts +0 -1
- package/core/TextInput/__stories__/FluidWidths.d.ts +0 -1
- package/core/TextInput/__stories__/MultipleQuestions.d.ts +0 -1
- package/core/TextInput/__stories__/WithErrorMessage.d.ts +0 -1
- package/core/TextInput/__stories__/WithHint.d.ts +0 -1
- package/core/VisuallyHidden/__stories__/Default.d.ts +0 -1
- package/core/WarningText/__stories__/Default.d.ts +0 -1
- package/core/WarningText/index.spec.js +1 -3
- package/core/index.d.ts +4 -0
- package/core/index.js +56 -0
- package/es/admin/AutoComplete/__stories__/Default.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +13 -2
- package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithInLine.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
- package/es/admin/AutoComplete/__stories__/utils.js +6 -0
- package/es/admin/AutoComplete/index.js +6 -45
- package/es/admin/AutoComplete/utils.js +18 -5
- package/es/admin/Chip/index.js +2 -0
- package/es/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
- package/es/admin/CopyToClipboard/index.js +2 -1
- package/es/admin/Drawer/Drawer.stories.js +2 -5
- package/es/admin/Drawer/__stories__/Default.js +13 -13
- package/es/admin/Drawer/index.js +1 -0
- package/es/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
- package/es/admin/DropdownArrowDown/index.js +3 -0
- package/es/admin/Modal/Modal.stories.playwright.json +37 -0
- package/es/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/es/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/es/admin/index.js +1 -0
- package/es/app/App.js +5 -18
- package/es/app/Footer/Footer.stories.js +1 -0
- package/es/app/Footer/Footer.stories.playwright.json +27 -0
- package/es/app/Footer/__stories__/DefaultCopyright.js +16 -0
- package/es/app/Footer/__stories__/FooterAllInclusive.js +9 -4
- package/es/app/Footer/__stories__/FooterWithLink.js +1 -1
- package/es/app/Footer/__stories__/FooterWithLogo.js +4 -2
- package/es/app/Header/Header.stories.playwright.json +33 -0
- package/es/app/Header/__stories__/Default.js +2 -3
- package/es/app/Header/__stories__/WithNavigation.js +2 -3
- package/es/app/Header/__stories__/WithServiceName.js +2 -3
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +4 -4
- package/es/app/Header/index.spec.js +1 -2
- package/es/app/i18n.js +16 -2
- package/es/core/Accordion/Accordion.stories.playwright.json +27 -0
- package/es/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/es/core/Base/index.js +3 -0
- package/es/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/es/core/Button/Button.stories.playwright.json +93 -0
- package/es/core/Button/__stories__/GroupingButtons.js +1 -1
- package/es/core/Card/Card.stories.playwright.json +21 -0
- package/es/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
- package/es/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
- package/es/core/DateInput/DateInput.stories.playwright.json +61 -0
- package/es/core/Details/Details.stories.playwright.json +27 -0
- package/es/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/es/core/ErrorSummary/index.spec.js +2 -3
- package/es/core/FileUpload/__stories__/Default.js +1 -1
- package/es/core/FileUpload/__stories__/WithErrorMessage.js +3 -3
- package/es/core/Form/index.js +3 -0
- package/es/core/Label/index.js +4 -0
- package/es/core/Link/Link.stories.playwright.json +65 -0
- package/es/core/Link/index.js +2 -1
- package/es/core/List/List.stories.playwright.json +27 -0
- package/es/core/List/ListItemContent.js +9 -22
- package/es/core/List/ListItemIcon.js +9 -24
- package/es/core/List/ListItemText.js +6 -10
- package/es/core/List/ListItemTitle.js +6 -10
- package/es/core/List/index.spec.js +1 -2
- package/es/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/es/core/NavList/NavHorizontal.js +3 -0
- package/es/core/NavList/NavHorizontalList.js +3 -0
- package/es/core/NavList/NavHorizontalListItem.js +3 -0
- package/es/core/NavList/NavList.stories.playwright.json +33 -0
- package/es/core/NavList/NavVertical.js +3 -0
- package/es/core/NavList/NavVerticalItem.js +3 -0
- package/es/core/NavList/index.js +6 -1
- package/es/core/NavList/index.spec.js +1 -2
- package/es/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/es/core/NotificationBanner/index.spec.js +3 -4
- package/es/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/es/core/Radios/Radios.stories.playwright.json +49 -0
- package/es/core/Select/Select.stories.playwright.json +21 -0
- package/es/core/SkipLink/index.js +3 -0
- package/es/core/SummaryList/SummaryList.stories.js +2 -1
- package/es/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/es/core/SummaryList/__stories__/Default.js +5 -1
- package/es/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
- package/es/core/SvgIcon/index.js +1 -0
- package/es/core/Table/Table.stories.playwright.json +21 -0
- package/es/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/es/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/es/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/es/core/WarningText/index.spec.js +1 -2
- package/es/core/index.js +4 -0
- package/es/govgr/Footer/Copyright.js +4 -3
- package/es/govgr/Footer/index.mdx +1 -1
- package/es/govgr/images/govgr-logo-base64.js +1 -0
- package/es/govgr/images/greek-government-base64.js +1 -0
- package/es/govgr/images/grnet-logo-base64.js +1 -0
- package/es/govgr/images/index.js +4 -0
- package/es/govgr/images/minedu-logo-base64.js +1 -0
- package/es/govgr/index.js +2 -1
- package/es/layouts/Basic/Content/index.js +3 -1
- package/es/layouts/Basic/Side/index.js +2 -1
- package/es/layouts/Basic/__stories__/Default.js +2 -2
- package/es/layouts/Basic/index.js +2 -1
- package/es/locales/el.js +9 -2
- package/es/locales/en.js +7 -1
- package/es/registry.js +142 -114
- package/es/typography/Caption/index.js +2 -1
- package/es/typography/NormalText/__stories__/FontWeight.js +5 -5
- package/es/typography/Paragraph/__stories__/FontWeight.js +4 -4
- package/es/typography/Title/index.js +2 -1
- package/esm/admin/AutoComplete/__stories__/Default.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +13 -2
- package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithInLine.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
- package/esm/admin/AutoComplete/__stories__/utils.js +6 -0
- package/esm/admin/AutoComplete/index.js +6 -45
- package/esm/admin/AutoComplete/utils.js +18 -5
- package/esm/admin/Chip/index.js +2 -0
- package/esm/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
- package/esm/admin/CopyToClipboard/index.js +2 -1
- package/esm/admin/Drawer/Drawer.stories.js +2 -5
- package/esm/admin/Drawer/__stories__/Default.js +13 -13
- package/esm/admin/Drawer/index.js +1 -0
- package/esm/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
- package/esm/admin/DropdownArrowDown/index.js +3 -0
- package/esm/admin/Modal/Modal.stories.playwright.json +37 -0
- package/esm/admin/Pagination/Pagination.stories.playwright.json +27 -0
- package/esm/admin/StepNav/StepNav.stories.playwright.json +33 -0
- package/esm/admin/index.js +1 -0
- package/esm/app/App.js +5 -18
- package/esm/app/Footer/Footer.stories.js +1 -0
- package/esm/app/Footer/Footer.stories.playwright.json +27 -0
- package/esm/app/Footer/__stories__/DefaultCopyright.js +16 -0
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +9 -4
- package/esm/app/Footer/__stories__/FooterWithLink.js +1 -1
- package/esm/app/Footer/__stories__/FooterWithLogo.js +4 -2
- package/esm/app/Header/Header.stories.playwright.json +33 -0
- package/esm/app/Header/__stories__/Default.js +2 -3
- package/esm/app/Header/__stories__/WithNavigation.js +2 -3
- package/esm/app/Header/__stories__/WithServiceName.js +2 -3
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +4 -4
- package/esm/app/Header/index.spec.js +1 -2
- package/esm/app/i18n.js +16 -2
- package/esm/core/Accordion/Accordion.stories.playwright.json +27 -0
- package/esm/core/BackLink/BackLink.stories.playwright.json +21 -0
- package/esm/core/Base/index.js +3 -0
- package/esm/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
- package/esm/core/Button/Button.stories.playwright.json +93 -0
- package/esm/core/Button/__stories__/GroupingButtons.js +1 -1
- package/esm/core/Card/Card.stories.playwright.json +21 -0
- package/esm/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
- package/esm/core/Checkboxes/__stories__/NoneAnswerWithError.js +2 -2
- package/esm/core/DateInput/DateInput.stories.playwright.json +61 -0
- package/esm/core/Details/Details.stories.playwright.json +27 -0
- package/esm/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
- package/esm/core/ErrorSummary/index.spec.js +2 -3
- package/esm/core/FileUpload/__stories__/Default.js +1 -1
- package/esm/core/FileUpload/__stories__/WithErrorMessage.js +3 -3
- package/esm/core/Form/index.js +3 -0
- package/esm/core/Label/index.js +4 -0
- package/esm/core/Link/Link.stories.playwright.json +65 -0
- package/esm/core/Link/index.js +2 -1
- package/esm/core/List/List.stories.playwright.json +27 -0
- package/esm/core/List/ListItemContent.js +9 -22
- package/esm/core/List/ListItemIcon.js +9 -24
- package/esm/core/List/ListItemText.js +6 -10
- package/esm/core/List/ListItemTitle.js +6 -10
- package/esm/core/List/index.spec.js +1 -2
- package/esm/core/Masthead/Masthead.stories.playwright.json +21 -0
- package/esm/core/NavList/NavHorizontal.js +3 -0
- package/esm/core/NavList/NavHorizontalList.js +3 -0
- package/esm/core/NavList/NavHorizontalListItem.js +3 -0
- package/esm/core/NavList/NavList.stories.playwright.json +33 -0
- package/esm/core/NavList/NavVertical.js +3 -0
- package/esm/core/NavList/NavVerticalItem.js +3 -0
- package/esm/core/NavList/index.js +6 -1
- package/esm/core/NavList/index.spec.js +1 -2
- package/esm/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
- package/esm/core/NotificationBanner/index.spec.js +3 -4
- package/esm/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
- package/esm/core/Radios/Radios.stories.playwright.json +49 -0
- package/esm/core/Select/Select.stories.playwright.json +21 -0
- package/esm/core/SkipLink/index.js +3 -0
- package/esm/core/SummaryList/SummaryList.stories.js +2 -1
- package/esm/core/SummaryList/SummaryList.stories.playwright.json +27 -0
- package/esm/core/SummaryList/__stories__/Default.js +5 -1
- package/esm/core/SummaryList/__stories__/WithKeyAndAction.js +20 -0
- package/esm/core/SvgIcon/index.js +1 -0
- package/esm/core/Table/Table.stories.playwright.json +21 -0
- package/esm/core/Tabs/Tabs.stories.playwright.json +27 -0
- package/esm/core/TextArea/TextArea.stories.playwright.json +59 -0
- package/esm/core/TextInput/TextInput.stories.playwright.json +43 -0
- package/esm/core/WarningText/index.spec.js +1 -2
- package/esm/core/index.js +4 -0
- package/esm/govgr/Footer/Copyright.js +4 -3
- package/esm/govgr/Footer/index.mdx +1 -1
- package/esm/govgr/images/govgr-logo-base64.js +1 -0
- package/esm/govgr/images/greek-government-base64.js +1 -0
- package/esm/govgr/images/grnet-logo-base64.js +1 -0
- package/esm/govgr/images/index.js +4 -0
- package/esm/govgr/images/minedu-logo-base64.js +1 -0
- package/esm/govgr/index.js +2 -1
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/Content/index.js +3 -1
- package/esm/layouts/Basic/Side/index.js +2 -1
- package/esm/layouts/Basic/__stories__/Default.js +2 -2
- package/esm/layouts/Basic/index.js +2 -1
- package/esm/locales/el.js +9 -2
- package/esm/locales/en.js +7 -1
- package/esm/registry.js +142 -114
- package/esm/typography/Caption/index.js +2 -1
- package/esm/typography/NormalText/__stories__/FontWeight.js +5 -5
- package/esm/typography/Paragraph/__stories__/FontWeight.js +4 -4
- package/esm/typography/Title/index.js +2 -1
- package/govgr/Footer/Copyright.js +4 -3
- package/govgr/Footer/index.mdx +1 -1
- package/govgr/images/govgr-logo-base64.d.ts +2 -0
- package/govgr/images/govgr-logo-base64.js +8 -0
- package/govgr/images/greek-government-base64.d.ts +2 -0
- package/govgr/images/greek-government-base64.js +8 -0
- package/govgr/images/grnet-logo-base64.d.ts +2 -0
- package/govgr/images/grnet-logo-base64.js +8 -0
- package/govgr/images/index.d.ts +4 -0
- package/govgr/images/index.js +57 -0
- package/govgr/images/minedu-logo-base64.d.ts +2 -0
- package/govgr/images/minedu-logo-base64.js +8 -0
- package/govgr/index.d.ts +1 -0
- package/govgr/index.js +13 -0
- package/layouts/Basic/Content/index.d.ts +3 -1
- package/layouts/Basic/Content/index.js +6 -0
- package/layouts/Basic/Side/index.d.ts +3 -1
- package/layouts/Basic/Side/index.js +6 -0
- package/layouts/Basic/Top/index.d.ts +1 -1
- package/layouts/Basic/__stories__/Default.d.ts +2 -3
- package/layouts/Basic/__stories__/Default.js +4 -4
- package/layouts/Basic/__stories__/MultipleRowsLayout.d.ts +0 -1
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.d.ts +0 -1
- package/layouts/Basic/index.d.ts +1 -0
- package/layouts/Basic/index.js +9 -1
- package/layouts/Grid/__stories__/Default.d.ts +0 -1
- package/layouts/Grid/__stories__/Inline.d.ts +0 -1
- package/locales/el.d.ts +8 -1
- package/locales/el.js +9 -2
- package/locales/en.d.ts +7 -1
- package/locales/en.js +7 -1
- package/package.json +4 -4
- package/registry.d.ts +70 -57
- package/registry.js +192 -151
- package/typography/Caption/__stories__/Default.d.ts +0 -1
- package/typography/Caption/__stories__/NestedToTitle.d.ts +0 -1
- package/typography/Caption/index.d.ts +3 -2
- package/typography/Caption/index.js +8 -1
- package/typography/Hint/__stories__/Default.d.ts +0 -1
- package/typography/Hint/__stories__/FontSizes.d.ts +0 -1
- package/typography/NormalText/__stories__/Default.d.ts +0 -1
- package/typography/NormalText/__stories__/FontSizes.d.ts +0 -1
- package/typography/NormalText/__stories__/FontWeight.d.ts +2 -3
- package/typography/NormalText/__stories__/FontWeight.js +4 -4
- package/typography/NormalText/__stories__/Variants.d.ts +0 -1
- package/typography/Paragraph/__stories__/Default.d.ts +0 -1
- package/typography/Paragraph/__stories__/FontSizes.d.ts +0 -1
- package/typography/Paragraph/__stories__/FontWeight.d.ts +2 -3
- package/typography/Paragraph/__stories__/FontWeight.js +4 -4
- package/typography/Paragraph/__stories__/LeadVariant.d.ts +0 -1
- package/typography/Paragraph/__stories__/SmallVariant.d.ts +0 -1
- package/typography/Title/__stories__/Default.d.ts +0 -1
- package/typography/Title/index.d.ts +2 -1
- package/typography/Title/index.js +6 -0
- package/admin/AutoComplete/AccesibleAutoComplete/index.d.ts +0 -5
- package/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -106
- package/es/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -87
- package/es/test-utils/mountWithTheme.js +0 -30
- package/es/themes/govgr.js +0 -79
- package/es/themes/index.js +0 -2
- package/esm/admin/AutoComplete/AccesibleAutoComplete/index.js +0 -87
- package/esm/test-utils/mountWithTheme.js +0 -30
- package/esm/themes/govgr.js +0 -79
- package/esm/themes/index.js +0 -2
- package/test-utils/mountWithTheme.d.ts +0 -3
- package/test-utils/mountWithTheme.js +0 -43
- package/themes/govgr.d.ts +0 -3
- package/themes/govgr.js +0 -89
- package/themes/index.d.ts +0 -32
- package/themes/index.js +0 -19
package/esm/core/Link/index.js
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-list--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "keyboard.press",
|
|
10
|
+
"args": {
|
|
11
|
+
"key": "Tab"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "keyboard.press",
|
|
16
|
+
"args": {
|
|
17
|
+
"key": "Tab"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"id": "HP7t7DFo8MEt",
|
|
22
|
+
"title": "Navigate with tab"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
2
|
+
var _excluded = ["children"];
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return {
|
|
9
|
-
root: {
|
|
10
|
-
flexGrow: 1,
|
|
11
|
-
padding: theme.spacing(0, 2)
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
name: 'MuiListItemContent'
|
|
16
|
-
});
|
|
17
|
-
export var ListItemContent = function ListItemContent(_ref) {
|
|
18
|
-
var className = _ref.className,
|
|
19
|
-
children = _ref.children,
|
|
4
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
5
|
+
export var ListItemContent = withDeprecation(function (_ref) {
|
|
6
|
+
var children = _ref.children,
|
|
20
7
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
8
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", props, children);
|
|
10
|
+
}, {
|
|
11
|
+
name: 'ListItemContent',
|
|
12
|
+
warning: 'There is no need to use ListItemContent component anymore. It will be removed in a later version'
|
|
13
|
+
});
|
|
27
14
|
export default ListItemContent;
|
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
2
|
+
var _excluded = ["children"];
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export var useListItemIconStyles = makeStyles(function () {
|
|
9
|
-
return {
|
|
10
|
-
root: {}
|
|
11
|
-
};
|
|
12
|
-
}, {
|
|
13
|
-
name: 'MuiListItemIcon'
|
|
14
|
-
});
|
|
15
|
-
export var ListItemIcon = function ListItemIcon(_ref) {
|
|
16
|
-
var className = _ref.className,
|
|
17
|
-
children = _ref.children,
|
|
18
|
-
style = _ref.style,
|
|
4
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
5
|
+
export var ListItemIcon = withDeprecation(function (_ref) {
|
|
6
|
+
var children = _ref.children,
|
|
19
7
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
8
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
variant: "rounded"
|
|
27
|
-
}, props), children));
|
|
28
|
-
};
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", props, children);
|
|
10
|
+
}, {
|
|
11
|
+
name: 'ListItemIcon',
|
|
12
|
+
warning: 'There is no need to use ListItemIcon component anymore. It will be removed in a later version'
|
|
13
|
+
});
|
|
29
14
|
export default ListItemIcon;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
var _excluded = ["children"];
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
5
4
|
import NormalText from '@digigov/ui/typography/NormalText';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
root: {}
|
|
9
|
-
};
|
|
10
|
-
}, {
|
|
11
|
-
name: 'MuiListItemText'
|
|
12
|
-
});
|
|
13
|
-
export var ListItemText = function ListItemText(_ref) {
|
|
5
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
6
|
+
export var ListItemText = withDeprecation(function (_ref) {
|
|
14
7
|
var children = _ref.children,
|
|
15
8
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
9
|
|
|
17
10
|
return /*#__PURE__*/React.createElement(NormalText, props, children);
|
|
18
|
-
}
|
|
11
|
+
}, {
|
|
12
|
+
name: 'ListItemText',
|
|
13
|
+
warning: 'There is no need to use ListItemText component anymore. It will be removed in a later version'
|
|
14
|
+
});
|
|
19
15
|
export default ListItemText;
|
|
@@ -2,17 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["href", "linkProps", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
6
5
|
import Title from '@digigov/ui/typography/Title';
|
|
7
6
|
import Link from '@digigov/ui/core/Link';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
root: {}
|
|
11
|
-
};
|
|
12
|
-
}, {
|
|
13
|
-
name: 'MuiListItemTitle'
|
|
14
|
-
});
|
|
15
|
-
export var ListItemTitle = function ListItemTitle(_ref) {
|
|
7
|
+
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
8
|
+
export var ListItemTitle = withDeprecation(function (_ref) {
|
|
16
9
|
var href = _ref.href,
|
|
17
10
|
linkProps = _ref.linkProps,
|
|
18
11
|
children = _ref.children,
|
|
@@ -21,5 +14,8 @@ export var ListItemTitle = function ListItemTitle(_ref) {
|
|
|
21
14
|
return /*#__PURE__*/React.createElement(Title, props, href ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
22
15
|
href: href
|
|
23
16
|
}, linkProps), children) : children);
|
|
24
|
-
}
|
|
17
|
+
}, {
|
|
18
|
+
name: 'ListItemTitle',
|
|
19
|
+
warning: 'There is no need to use ListItemTitle component anymore. It will be removed in a later version'
|
|
20
|
+
});
|
|
25
21
|
export default ListItemTitle;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import mountWithTheme from '@digigov/ui/test-utils/mountWithTheme';
|
|
3
2
|
import Component from '@digigov/ui/core/List';
|
|
4
3
|
|
|
5
4
|
var _ref = /*#__PURE__*/React.createElement(Component, null, "this is some random warning text");
|
|
6
5
|
|
|
7
6
|
it('renders the ErrorSummary with sample data', function () {
|
|
8
|
-
expect(
|
|
7
|
+
expect(_ref).toMatchSnapshot();
|
|
9
8
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-masthead--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "hover",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>div>div>main>a"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "RjiejhT6-wyP",
|
|
16
|
+
"title": "Hover"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-navlist--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "hover",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>nav>ul>li:nth-child(2)>div:nth-child(1)>a>span:nth-child(1)"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "click",
|
|
16
|
+
"args": {
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>nav>ul>li:nth-child(2)>div:nth-child(1)>a>span:nth-child(1)"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "keyboard.press",
|
|
22
|
+
"args": {
|
|
23
|
+
"key": "Tab"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"id": "WMfgyO3E_9S_",
|
|
28
|
+
"title": "Hover and click"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -2,4 +2,9 @@ export { NavList as default } from '@digigov/ui/core/NavList/NavList';
|
|
|
2
2
|
export * from '@digigov/ui/core/NavList/NavList';
|
|
3
3
|
export * from '@digigov/ui/core/NavList/NavListItem';
|
|
4
4
|
export * from '@digigov/ui/core/NavList/NavListSubMenu';
|
|
5
|
-
export * from '@digigov/ui/core/NavList/NavListContext';
|
|
5
|
+
export * from '@digigov/ui/core/NavList/NavListContext';
|
|
6
|
+
export * from '@digigov/ui/core/NavList/NavHorizontal';
|
|
7
|
+
export * from '@digigov/ui/core/NavList/NavHorizontalList';
|
|
8
|
+
export * from '@digigov/ui/core/NavList/NavHorizontalListItem';
|
|
9
|
+
export * from '@digigov/ui/core/NavList/NavVertical';
|
|
10
|
+
export * from '@digigov/ui/core/NavList/NavVerticalItem';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import mountWithTheme from '@digigov/ui/test-utils/mountWithTheme';
|
|
3
2
|
import Component from '@digigov/ui/core/NavList';
|
|
4
3
|
|
|
5
4
|
var _ref = /*#__PURE__*/React.createElement(Component, null, "this is some random warning text");
|
|
6
5
|
|
|
7
6
|
it('renders the ErrorSummary with sample data', function () {
|
|
8
|
-
expect(
|
|
7
|
+
expect(_ref).toMatchSnapshot();
|
|
9
8
|
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-notificationbanner--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "hover",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>div:nth-child(2)>h3>a"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "click",
|
|
16
|
+
"args": {
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>div>div:nth-child(2)>h3>a"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"id": "dYDf1Q2XBX7X",
|
|
22
|
+
"title": "Hover and click"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"digigov-ui-core-notificationbanner--success": {
|
|
27
|
+
"actionSets": [
|
|
28
|
+
{
|
|
29
|
+
"actions": [
|
|
30
|
+
{
|
|
31
|
+
"name": "hover",
|
|
32
|
+
"args": {
|
|
33
|
+
"selector": "html>body>div:nth-child(5)>div>div:nth-child(2)>h3>a"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "click",
|
|
38
|
+
"args": {
|
|
39
|
+
"selector": "html>body>div:nth-child(5)>div>div:nth-child(2)>h3>a"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"id": "ez4xB9-sspYz",
|
|
44
|
+
"title": "Hover and click"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import mountWithTheme from '@digigov/ui/test-utils/mountWithTheme';
|
|
3
2
|
import NotificationBanner from '@digigov/ui/core/NotificationBanner';
|
|
4
3
|
|
|
5
4
|
var _ref = /*#__PURE__*/React.createElement(NotificationBanner, {
|
|
@@ -7,14 +6,14 @@ var _ref = /*#__PURE__*/React.createElement(NotificationBanner, {
|
|
|
7
6
|
}, "this is a notification");
|
|
8
7
|
|
|
9
8
|
it('renders the notification banner', function () {
|
|
10
|
-
expect(
|
|
9
|
+
expect(_ref).toMatchSnapshot();
|
|
11
10
|
});
|
|
12
11
|
it('renders the notification banner with title and link', function () {
|
|
13
|
-
expect(
|
|
12
|
+
expect( /*#__PURE__*/React.createElement(NotificationBanner, {
|
|
14
13
|
title: "Notification Banner Example",
|
|
15
14
|
link: {
|
|
16
15
|
href: '/',
|
|
17
16
|
label: 'This is a label'
|
|
18
17
|
}
|
|
19
|
-
}, "this is a notification"))
|
|
18
|
+
}, "this is a notification")).toMatchSnapshot();
|
|
20
19
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-phasebanner--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "keyboard.press",
|
|
10
|
+
"args": {
|
|
11
|
+
"key": "Tab"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "b1ldT3RjaFfg",
|
|
16
|
+
"title": "pressing Tab"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-radios--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "keyboard.press",
|
|
10
|
+
"args": {
|
|
11
|
+
"key": "Tab"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "keyboard.press",
|
|
16
|
+
"args": {
|
|
17
|
+
"key": "Space"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "keyboard.press",
|
|
22
|
+
"args": {
|
|
23
|
+
"key": "ArrowDown"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"id": "ihfl6FqwhAee",
|
|
28
|
+
"title": "Navigate with keyboard"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"digigov-ui-core-radios--with-hints": {
|
|
33
|
+
"actionSets": [
|
|
34
|
+
{
|
|
35
|
+
"actions": [
|
|
36
|
+
{
|
|
37
|
+
"name": "click",
|
|
38
|
+
"args": {
|
|
39
|
+
"selector": "html>body>div:nth-child(5)>div>fieldset>div>div:nth-child(1)>label>input"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"id": "FgKax2U7F5gE",
|
|
44
|
+
"title": "Click first"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-select--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>label>select"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "r12umQc21tgb",
|
|
16
|
+
"title": "Select with mouse"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-summarylist--with-actions": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "keyboard.press",
|
|
10
|
+
"args": {
|
|
11
|
+
"key": "Tab"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "keyboard.press",
|
|
16
|
+
"args": {
|
|
17
|
+
"key": "Tab"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"id": "vjxfIQ17JwqS",
|
|
22
|
+
"title": "Navigate with keyboard"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import SummaryList, { SummaryListItem, SummaryListItemAction, SummaryListItemKey, SummaryListItemValue } from '@digigov/ui/core/SummaryList';
|
|
3
|
+
import VisuallyHidden from '@digigov/ui/core/VisuallyHidden';
|
|
4
|
+
import Link from '@digigov/ui/core/Link';
|
|
3
5
|
|
|
4
|
-
var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u03A4\u03AC\u03B4\u03B5 20, \u03A0\u03B1\u03C4\u03AE\u03C3\u03B9\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemAction, null
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u0393\u03B9\u03CE\u03C1\u03B3\u03BF\u03C2 \u03A0\u03B1\u03C0\u03B1\u03B4\u03CC\u03C0\u03BF\u03C5\u03BB\u03BF\u03C2")), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "\u03A4\u03AC\u03B4\u03B5 20, \u03A0\u03B1\u03C4\u03AE\u03C3\u03B9\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, {
|
|
7
|
+
href: "#"
|
|
8
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF"), /*#__PURE__*/React.createElement(SummaryListItemValue, null, "6941234567")));
|
|
5
9
|
|
|
6
10
|
export var Default = function Default() {
|
|
7
11
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SummaryList, { SummaryListItem, SummaryListItemAction, SummaryListItemKey } from '@digigov/ui/core/SummaryList';
|
|
3
|
+
import VisuallyHidden from '@digigov/ui/core/VisuallyHidden';
|
|
4
|
+
import Link from '@digigov/ui/core/Link';
|
|
5
|
+
import { ButtonGroup, Button } from '@digigov/ui/core';
|
|
6
|
+
|
|
7
|
+
var _ref = /*#__PURE__*/React.createElement(SummaryList, null, /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u038C\u03BD\u03BF\u03BC\u03B1"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, {
|
|
8
|
+
href: "#"
|
|
9
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u039F\u03BD\u03CC\u03BC\u03B1\u03C4\u03BF\u03C2")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(Link, {
|
|
10
|
+
href: "#"
|
|
11
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2")))), /*#__PURE__*/React.createElement(SummaryListItem, null, /*#__PURE__*/React.createElement(SummaryListItemKey, null, "\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF"), /*#__PURE__*/React.createElement(SummaryListItemAction, null, /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
|
|
12
|
+
variant: "link"
|
|
13
|
+
}, "\u0391\u03BB\u03BB\u03B1\u03B3\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5")), /*#__PURE__*/React.createElement(Button, {
|
|
14
|
+
variant: "link"
|
|
15
|
+
}, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE ", /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5"))))));
|
|
16
|
+
|
|
17
|
+
export var WithKeyAndAction = function WithKeyAndAction() {
|
|
18
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
|
|
19
|
+
};
|
|
20
|
+
export default WithKeyAndAction;
|
|
@@ -2,6 +2,7 @@ export * from '@digigov/react-core/SvgIcon';
|
|
|
2
2
|
export * from '@digigov/react-core/ArrowIcon';
|
|
3
3
|
export * from '@digigov/react-core/CaretIcon';
|
|
4
4
|
export * from '@digigov/react-core/UncheckIcon';
|
|
5
|
+
export * from '@digigov/react-core/CheckIcon';
|
|
5
6
|
export * from '@digigov/react-core/CloseIcon';
|
|
6
7
|
export * from '@digigov/react-core/MoreVertIcon';
|
|
7
8
|
export * from '@digigov/react-core/BurgerIcon';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-table--with-loader": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>button"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "pJkd6uCc33pr",
|
|
16
|
+
"title": "Toggle Loading"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-tabs--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "hover",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>ul>li:nth-child(2)>a"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "click",
|
|
16
|
+
"args": {
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>div>ul>li:nth-child(2)>a"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"id": "_sXJM58BIiuJ",
|
|
22
|
+
"title": "Click second tab"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|