@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
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-textarea--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>label>textarea"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "JcIH-9OSjmEe",
|
|
16
|
+
"title": "click textarea"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"digigov-ui-core-textarea--with-hint": {
|
|
21
|
+
"actionSets": [
|
|
22
|
+
{
|
|
23
|
+
"actions": [
|
|
24
|
+
{
|
|
25
|
+
"name": "keyboard.press",
|
|
26
|
+
"args": {
|
|
27
|
+
"key": "Tab"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "keyboard.insertText",
|
|
32
|
+
"args": {
|
|
33
|
+
"text": "Πληροφορίες"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"id": "Wr00uBfppm0B",
|
|
38
|
+
"title": "Navigate with keyboard"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"digigov-ui-core-textarea--with-error-message": {
|
|
43
|
+
"actionSets": [
|
|
44
|
+
{
|
|
45
|
+
"actions": [
|
|
46
|
+
{
|
|
47
|
+
"name": "click",
|
|
48
|
+
"args": {
|
|
49
|
+
"selector": "html>body>div:nth-child(5)>div>label>textarea"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"id": "6ooyo8-_c-LB",
|
|
54
|
+
"title": "Click textarea"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-core-textinput--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>label>input"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "keyboard.insertText",
|
|
16
|
+
"args": {
|
|
17
|
+
"text": "όνομα"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"id": "cLpUm-R6HTXB",
|
|
22
|
+
"title": "Click and write"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"digigov-ui-core-textinput--with-error-message": {
|
|
27
|
+
"actionSets": [
|
|
28
|
+
{
|
|
29
|
+
"actions": [
|
|
30
|
+
{
|
|
31
|
+
"name": "keyboard.press",
|
|
32
|
+
"args": {
|
|
33
|
+
"key": "Tab"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"id": "rPCFq3lcF987",
|
|
38
|
+
"title": "Keyboard navigation"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -6,8 +6,6 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
6
6
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
|
|
9
|
-
var _mountWithTheme = _interopRequireDefault(require("@digigov/ui/test-utils/mountWithTheme"));
|
|
10
|
-
|
|
11
9
|
var _WarningText = _interopRequireDefault(require("@digigov/ui/core/WarningText"));
|
|
12
10
|
|
|
13
11
|
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); }
|
|
@@ -17,5 +15,5 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
17
15
|
var _ref = /*#__PURE__*/React.createElement(_WarningText["default"], null, "this is some random warning text");
|
|
18
16
|
|
|
19
17
|
it('renders the WarningText with sample data', function () {
|
|
20
|
-
expect(
|
|
18
|
+
expect(_ref).toMatchSnapshot();
|
|
21
19
|
});
|
package/core/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Button } from '@digigov/ui/core/Button';
|
|
2
2
|
export * from '@digigov/ui/core/BackLink';
|
|
3
|
+
export * from '@digigov/ui/core/Base';
|
|
3
4
|
export * from '@digigov/ui/core/Button';
|
|
4
5
|
export * from '@digigov/ui/core/Accordion';
|
|
5
6
|
export * from '@digigov/ui/core/Blockquote';
|
|
@@ -10,8 +11,11 @@ export * from '@digigov/ui/core/Details';
|
|
|
10
11
|
export * from '@digigov/ui/core/Divider';
|
|
11
12
|
export * from '@digigov/ui/core/ErrorSummary';
|
|
12
13
|
export * from '@digigov/ui/core/FileUpload';
|
|
14
|
+
export * from '@digigov/ui/core/Form';
|
|
13
15
|
export * from '@digigov/ui/core/Hidden';
|
|
16
|
+
export * from '@digigov/ui/core/Label';
|
|
14
17
|
export * from '@digigov/ui/core/Link';
|
|
18
|
+
export * from '@digigov/ui/core/SkipLink';
|
|
15
19
|
export * from '@digigov/ui/core/List';
|
|
16
20
|
export * from '@digigov/ui/core/NavList';
|
|
17
21
|
export * from '@digigov/ui/core/NavList';
|
package/core/index.js
CHANGED
|
@@ -52,6 +52,20 @@ Object.keys(_BackLink).forEach(function (key) {
|
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
+
var _Base = require("@digigov/ui/core/Base");
|
|
56
|
+
|
|
57
|
+
Object.keys(_Base).forEach(function (key) {
|
|
58
|
+
if (key === "default" || key === "__esModule") return;
|
|
59
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
60
|
+
if (key in exports && exports[key] === _Base[key]) return;
|
|
61
|
+
Object.defineProperty(exports, key, {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function get() {
|
|
64
|
+
return _Base[key];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
55
69
|
var _Accordion = require("@digigov/ui/core/Accordion");
|
|
56
70
|
|
|
57
71
|
Object.keys(_Accordion).forEach(function (key) {
|
|
@@ -178,6 +192,20 @@ Object.keys(_FileUpload).forEach(function (key) {
|
|
|
178
192
|
});
|
|
179
193
|
});
|
|
180
194
|
|
|
195
|
+
var _Form = require("@digigov/ui/core/Form");
|
|
196
|
+
|
|
197
|
+
Object.keys(_Form).forEach(function (key) {
|
|
198
|
+
if (key === "default" || key === "__esModule") return;
|
|
199
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
200
|
+
if (key in exports && exports[key] === _Form[key]) return;
|
|
201
|
+
Object.defineProperty(exports, key, {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function get() {
|
|
204
|
+
return _Form[key];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
|
|
181
209
|
var _Hidden = require("@digigov/ui/core/Hidden");
|
|
182
210
|
|
|
183
211
|
Object.keys(_Hidden).forEach(function (key) {
|
|
@@ -192,6 +220,20 @@ Object.keys(_Hidden).forEach(function (key) {
|
|
|
192
220
|
});
|
|
193
221
|
});
|
|
194
222
|
|
|
223
|
+
var _Label = require("@digigov/ui/core/Label");
|
|
224
|
+
|
|
225
|
+
Object.keys(_Label).forEach(function (key) {
|
|
226
|
+
if (key === "default" || key === "__esModule") return;
|
|
227
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
228
|
+
if (key in exports && exports[key] === _Label[key]) return;
|
|
229
|
+
Object.defineProperty(exports, key, {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function get() {
|
|
232
|
+
return _Label[key];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
|
|
195
237
|
var _Link = require("@digigov/ui/core/Link");
|
|
196
238
|
|
|
197
239
|
Object.keys(_Link).forEach(function (key) {
|
|
@@ -206,6 +248,20 @@ Object.keys(_Link).forEach(function (key) {
|
|
|
206
248
|
});
|
|
207
249
|
});
|
|
208
250
|
|
|
251
|
+
var _SkipLink = require("@digigov/ui/core/SkipLink");
|
|
252
|
+
|
|
253
|
+
Object.keys(_SkipLink).forEach(function (key) {
|
|
254
|
+
if (key === "default" || key === "__esModule") return;
|
|
255
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
256
|
+
if (key in exports && exports[key] === _SkipLink[key]) return;
|
|
257
|
+
Object.defineProperty(exports, key, {
|
|
258
|
+
enumerable: true,
|
|
259
|
+
get: function get() {
|
|
260
|
+
return _SkipLink[key];
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
|
|
209
265
|
var _List = require("@digigov/ui/core/List");
|
|
210
266
|
|
|
211
267
|
Object.keys(_List).forEach(function (key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
3
3
|
import Field from '@digigov/ui/core/Field';
|
|
4
|
-
import suggest from '@digigov/ui/admin/AutoComplete/utils';
|
|
4
|
+
import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
|
|
5
5
|
|
|
6
6
|
var _ref = /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
7
7
|
source: suggest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
3
3
|
import Field from '@digigov/ui/core/Field';
|
|
4
|
-
import suggest from '@digigov/ui/admin/AutoComplete/utils';
|
|
4
|
+
import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
|
|
5
5
|
|
|
6
6
|
var _ref = /*#__PURE__*/React.createElement("div", {
|
|
7
7
|
className: "govgr-btn govgr-btn-primary"
|
|
@@ -11,7 +11,18 @@ export var WithAutoSelect = function WithAutoSelect() {
|
|
|
11
11
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
12
12
|
source: suggest,
|
|
13
13
|
autoselect: true,
|
|
14
|
-
id: "govgr",
|
|
14
|
+
id: "govgr" // tStatusResults={(x, y) => {
|
|
15
|
+
// return `Results x: ${x} y: ${y}`;
|
|
16
|
+
// }}
|
|
17
|
+
,
|
|
18
|
+
templates: {
|
|
19
|
+
suggestion: function suggestion(value) {
|
|
20
|
+
return '--> ' + value;
|
|
21
|
+
},
|
|
22
|
+
inputValue: function inputValue(value) {
|
|
23
|
+
return value ? 'Country: ' + value : '';
|
|
24
|
+
}
|
|
25
|
+
},
|
|
15
26
|
tNoResults: function tNoResults() {
|
|
16
27
|
return 'Δεν υπάρχουν αποτελέσματα';
|
|
17
28
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
3
3
|
import Field from '@digigov/ui/core/Field';
|
|
4
|
-
import suggest from '@digigov/ui/admin/AutoComplete/utils';
|
|
4
|
+
import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
|
|
5
5
|
|
|
6
6
|
var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
7
7
|
source: suggest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
3
3
|
import Field from '@digigov/ui/core/Field';
|
|
4
|
-
import suggest from '@digigov/ui/admin/AutoComplete/utils';
|
|
4
|
+
import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
|
|
5
5
|
|
|
6
6
|
var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
7
7
|
source: suggest,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
3
3
|
import Field from '@digigov/ui/core/Field';
|
|
4
4
|
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
5
|
-
import suggest from '@digigov/ui/admin/AutoComplete/utils';
|
|
5
|
+
import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
|
|
6
6
|
|
|
7
7
|
var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Paragraph, null, "This is the minimum number of characters that should be entered before the autocomplete will attempt to suggest options(in above example is 2)"), /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
8
8
|
source: suggest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
3
3
|
import Field from '@digigov/ui/core/Field';
|
|
4
|
-
import suggest from '@digigov/ui/admin/AutoComplete/utils';
|
|
4
|
+
import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
|
|
5
5
|
|
|
6
6
|
var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
7
7
|
source: suggest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
3
3
|
import Field from '@digigov/ui/core/Field';
|
|
4
|
-
import suggest from '@digigov/ui/admin/AutoComplete/utils';
|
|
4
|
+
import suggest from '@digigov/ui/admin/AutoComplete/__stories__/utils';
|
|
5
5
|
|
|
6
6
|
var _ref = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, null, /*#__PURE__*/React.createElement(AutoComplete, {
|
|
7
7
|
source: suggest,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var results = ['Afghanistan', 'Akrotiri', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Ashmore and Cartier Islands', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas, The', 'Bahrain', 'Bangladesh', 'Barbados', 'Bassas da India', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Bouvet Island', 'Brazil', 'British Indian Ocean Territory', 'British Virgin Islands', 'Brunei', 'Bulgaria', 'Burkina Faso', 'Burma', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Clipperton Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Coral Sea Islands', 'Costa Rica', "Cote d'Ivoire", 'Croatia', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Dhekelia', 'Djibouti', 'Dominica', 'Dominican Republic', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Europa Island', 'Falkland Islands', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern and Antarctic Lands', 'Gabon', 'Gambia,', 'Gaza Strip', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Glorioso Islands', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard Island and McDonald Islands', 'Holy See (Vatican City)', 'Honduras', 'Hong Kong', 'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Isle of Man', 'Israel', 'Italy', 'Jamaica', 'Jan Mayen', 'Japan', 'Jersey', 'Jordan', 'Juan de Nova Island', 'Kazakhstan', 'Kenya', 'Kiribati', 'Korea, North', 'Korea, South', 'Kuwait', 'Kyrgyzstan', 'Laos', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macau', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia, Federated States of', 'Moldova', 'Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique', 'Namibia', 'Nauru', 'Navassa Island', 'Nepal', 'Netherlands', 'Netherlands Antilles', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island', 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Panama', 'Papua New Guinea', 'Paracel Islands', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn Islands', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russia', 'Rwanda', 'Saint Helena', 'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Pierre and Miquelon', 'Saint Vincent and the Grenadines', 'Samoa', 'San Marino', 'Sao Tome and Principe', 'Saudi Arabia', 'Senegal', 'Serbia and Montenegro', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia and the South Sandwich Islands', 'Spain', 'Spratly Islands', 'Sri Lanka', 'Sudan', 'Suriname', 'Svalbard', 'Swaziland', 'Sweden', 'Switzerland', 'Syria', 'Taiwan', 'Tajikistan', 'Tanzania', 'Thailand', 'Timor-Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad and Tobago', 'Tromelin Island', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks and Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela', 'Vietnam', 'Virgin Islands', 'Wake Island', 'Wallis and Futuna', 'West Bank', 'Western Sahara', 'Yemen', 'Zambia', 'Zimbabwe'];
|
|
2
|
+
export default function suggest(query, syncResults) {
|
|
3
|
+
syncResults(query ? results.filter(function (result) {
|
|
4
|
+
return result.toLowerCase().indexOf(query.toLowerCase()) !== -1;
|
|
5
|
+
}) : []);
|
|
6
|
+
}
|
|
@@ -21,31 +21,7 @@ import AutoCompleteAssistiveHint from '@digigov/react-extensions/admin/AutoCompl
|
|
|
21
21
|
import { Component } from 'react';
|
|
22
22
|
import Status from '@digigov/ui/admin/AutoComplete/Status';
|
|
23
23
|
import DropdownArrowDown from '@digigov/react-extensions/admin/DropdownArrowDown';
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* const IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'; */
|
|
27
|
-
|
|
28
|
-
var keyCodes = {
|
|
29
|
-
13: 'enter',
|
|
30
|
-
27: 'escape',
|
|
31
|
-
32: 'space',
|
|
32
|
-
38: 'up',
|
|
33
|
-
40: 'down'
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
function isIosDevice() {
|
|
37
|
-
return typeof navigator !== 'undefined' && !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function isPrintableKeyCode(keyCode) {
|
|
41
|
-
return keyCode > 47 && keyCode < 58 || // number keys
|
|
42
|
-
keyCode === 32 || keyCode === 8 || // spacebar or backspace
|
|
43
|
-
keyCode > 64 && keyCode < 91 || // letter keys
|
|
44
|
-
keyCode > 95 && keyCode < 112 || // numpad keys
|
|
45
|
-
keyCode > 185 && keyCode < 193 || // ;=,-./` (in order)
|
|
46
|
-
keyCode > 218 && keyCode < 223 // [\]' (in order)
|
|
47
|
-
;
|
|
48
|
-
}
|
|
24
|
+
import { isIosDevice, keyCodes, isPrintableKeyCode } from '@digigov/ui/admin/AutoComplete/utils';
|
|
49
25
|
|
|
50
26
|
var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
51
27
|
_inherits(AutoComplete, _Component);
|
|
@@ -139,7 +115,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
|
139
115
|
}
|
|
140
116
|
}, {
|
|
141
117
|
key: "componentDidUpdate",
|
|
142
|
-
value: function componentDidUpdate(prevState) {
|
|
118
|
+
value: function componentDidUpdate(_, prevState) {
|
|
143
119
|
var focused = this.state.focused;
|
|
144
120
|
var componentLostFocus = focused === null;
|
|
145
121
|
var focusedChanged = prevState.focused !== focused;
|
|
@@ -515,7 +491,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
|
515
491
|
tStatusSelectedOption = _this$props4.tStatusSelectedOption,
|
|
516
492
|
tStatusResults = _this$props4.tStatusResults,
|
|
517
493
|
tAssistiveHint = _this$props4.tAssistiveHint,
|
|
518
|
-
|
|
494
|
+
DropdownArrow = _this$props4.dropdownArrow;
|
|
519
495
|
var _this$state7 = this.state,
|
|
520
496
|
focused = _this$state7.focused,
|
|
521
497
|
hovered = _this$state7.hovered,
|
|
@@ -542,23 +518,6 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
|
542
518
|
var ariaDescribedProp = ariaHint ? {
|
|
543
519
|
'aria-describedby': assistiveHintID
|
|
544
520
|
} : null;
|
|
545
|
-
var dropdownArrow; // we only need a dropdown arrow if showAllValues is set to a truthy value
|
|
546
|
-
|
|
547
|
-
if (showAllValues) {
|
|
548
|
-
dropdownArrow = dropdownArrowFactory({
|
|
549
|
-
className: dropdownArrowClassName
|
|
550
|
-
}); // if the factory returns a string we'll render this as HTML (usage w/o (P)React)
|
|
551
|
-
|
|
552
|
-
if (typeof dropdownArrow === 'string') {
|
|
553
|
-
dropdownArrow = /*#__PURE__*/React.createElement("div", {
|
|
554
|
-
className: "autocomplete__dropdown-arrow-down-wrapper",
|
|
555
|
-
dangerouslySetInnerHTML: {
|
|
556
|
-
__html: dropdownArrow
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
|
|
562
521
|
return /*#__PURE__*/React.createElement(AutoCompleteWrapper, {
|
|
563
522
|
onKeyDown: this.handleKeyDown,
|
|
564
523
|
cellWidth: cellWidth
|
|
@@ -601,7 +560,9 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
|
601
560
|
role: "combobox",
|
|
602
561
|
required: required,
|
|
603
562
|
value: query
|
|
604
|
-
})),
|
|
563
|
+
})), showAllValues && DropdownArrow && /*#__PURE__*/React.createElement(DropdownArrow, {
|
|
564
|
+
className: dropdownArrowClassName
|
|
565
|
+
}), /*#__PURE__*/React.createElement(AutoCompleteResultList, {
|
|
605
566
|
displayMenu: displayMenu,
|
|
606
567
|
isVisible: menuIsVisible,
|
|
607
568
|
onMouseLeave: function onMouseLeave() {
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export var keyCodes = {
|
|
2
|
+
13: 'enter',
|
|
3
|
+
27: 'escape',
|
|
4
|
+
32: 'space',
|
|
5
|
+
38: 'up',
|
|
6
|
+
40: 'down'
|
|
7
|
+
};
|
|
8
|
+
export function isIosDevice() {
|
|
9
|
+
return typeof navigator !== 'undefined' && !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g));
|
|
10
|
+
}
|
|
11
|
+
export function isPrintableKeyCode(keyCode) {
|
|
12
|
+
return keyCode > 47 && keyCode < 58 || // number keys
|
|
13
|
+
keyCode === 32 || keyCode === 8 || // spacebar or backspace
|
|
14
|
+
keyCode > 64 && keyCode < 91 || // letter keys
|
|
15
|
+
keyCode > 95 && keyCode < 112 || // numpad keys
|
|
16
|
+
keyCode > 185 && keyCode < 193 || // ;=,-./` (in order)
|
|
17
|
+
keyCode > 218 && keyCode < 223 // [\]' (in order)
|
|
18
|
+
;
|
|
6
19
|
}
|
package/es/admin/Chip/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from '@digigov/react-extensions/admin/Chip';
|
|
2
2
|
export * from '@digigov/react-extensions/admin/ChipHeading';
|
|
3
3
|
export * from '@digigov/react-extensions/admin/ChipSection';
|
|
4
|
+
export * from '@digigov/react-extensions/admin/ChipSectionHorizontal';
|
|
5
|
+
export * from '@digigov/react-extensions/admin/ChipSectionWrapper';
|
|
4
6
|
import Chip from '@digigov/react-extensions/admin/Chip';
|
|
5
7
|
export default Chip;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-admin-copytoclipboard--default": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>div>button"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "BSaIJR2CMZJU",
|
|
16
|
+
"title": "Click button"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"digigov-ui-admin-copytoclipboard--banner": {
|
|
21
|
+
"actionSets": [
|
|
22
|
+
{
|
|
23
|
+
"actions": [
|
|
24
|
+
{
|
|
25
|
+
"name": "click",
|
|
26
|
+
"args": {
|
|
27
|
+
"selector": "html>body>div:nth-child(5)>div>div>button"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"id": "T50MBtHpfRog",
|
|
32
|
+
"title": "Click button"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -43,4 +43,5 @@ export var CopyToClipboard = /*#__PURE__*/React.forwardRef(function CopyToClipbo
|
|
|
43
43
|
role: "tooltip"
|
|
44
44
|
}, /*#__PURE__*/React.createElement(NormalText, null, message || t('copy-to-clipboard.message'))));
|
|
45
45
|
});
|
|
46
|
-
export default CopyToClipboard;
|
|
46
|
+
export default CopyToClipboard;
|
|
47
|
+
export { CopyToClipboardContainer, CopyToClipboardMessage };
|