@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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { HeadingCaptionProps } from '@digigov/react-core/HeadingCaption';
|
|
3
|
-
export declare const Caption: import("react").ForwardRefExoticComponent<Pick<HeadingCaptionProps, "
|
|
2
|
+
import HeadingCaption, { HeadingCaptionProps } from '@digigov/react-core/HeadingCaption';
|
|
3
|
+
export declare const Caption: import("react").ForwardRefExoticComponent<Pick<HeadingCaptionProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
4
4
|
export interface CaptionProps extends HeadingCaptionProps {
|
|
5
5
|
ref?: React.Ref<HTMLSpanElement>;
|
|
6
6
|
}
|
|
7
7
|
export default Caption;
|
|
8
|
+
export { HeadingCaption };
|
|
@@ -5,7 +5,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.Caption = void 0;
|
|
9
|
+
Object.defineProperty(exports, "HeadingCaption", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function get() {
|
|
12
|
+
return _HeadingCaption["default"];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
exports["default"] = void 0;
|
|
9
16
|
|
|
10
17
|
var _HeadingCaption = _interopRequireDefault(require("@digigov/react-core/HeadingCaption"));
|
|
11
18
|
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export default fontWeight;
|
|
1
|
+
export declare const FontWeight: () => JSX.Element;
|
|
2
|
+
export default FontWeight;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports["default"] = exports.FontWeight = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -23,10 +23,10 @@ var _ref3 = /*#__PURE__*/_react["default"].createElement(_NormalText["default"],
|
|
|
23
23
|
fontWeight: "bold"
|
|
24
24
|
}, " govgr-!-font-weight-bold ");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var FontWeight = function FontWeight() {
|
|
27
27
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref, _ref2, _ref3);
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
exports.
|
|
31
|
-
var _default =
|
|
30
|
+
exports.FontWeight = FontWeight;
|
|
31
|
+
var _default = FontWeight;
|
|
32
32
|
exports["default"] = _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export default fontWeight;
|
|
1
|
+
export declare const FontWeight: () => JSX.Element;
|
|
2
|
+
export default FontWeight;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports["default"] = exports.FontWeight = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -19,10 +19,10 @@ var _ref2 = /*#__PURE__*/_react["default"].createElement(_Paragraph["default"],
|
|
|
19
19
|
fontWeight: "bold"
|
|
20
20
|
}, " govgr-!-font-weight-bold ");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var FontWeight = function FontWeight() {
|
|
23
23
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref, _ref2);
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
exports.
|
|
27
|
-
var _default =
|
|
26
|
+
exports.FontWeight = FontWeight;
|
|
27
|
+
var _default = FontWeight;
|
|
28
28
|
exports["default"] = _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { HeadingProps } from '@digigov/react-core/Heading';
|
|
2
|
+
import Heading, { HeadingProps } from '@digigov/react-core/Heading';
|
|
3
3
|
export interface TitleProps extends Omit<HeadingProps, 'size'> {
|
|
4
4
|
size?: 'xl' | 'lg' | 'md' | 'sm';
|
|
5
5
|
component?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
@@ -7,3 +7,4 @@ export interface TitleProps extends Omit<HeadingProps, 'size'> {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const Title: React.FC<TitleProps>;
|
|
9
9
|
export default Title;
|
|
10
|
+
export { Heading };
|
|
@@ -5,6 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
Object.defineProperty(exports, "Heading", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _Heading["default"];
|
|
12
|
+
}
|
|
13
|
+
});
|
|
8
14
|
exports["default"] = exports.Title = void 0;
|
|
9
15
|
|
|
10
16
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
17
|
-
|
|
18
|
-
var _AutoComplete = _interopRequireDefault(require("@digigov/ui/admin/AutoComplete"));
|
|
19
|
-
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
|
-
function AccesibleAutoComplete(options) {
|
|
25
|
-
console.log('options are', options);
|
|
26
|
-
|
|
27
|
-
if (!options.element) {
|
|
28
|
-
throw new Error('element is not defined');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if (!options.id) {
|
|
32
|
-
throw new Error('id is not defined');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (!options.source) {
|
|
36
|
-
throw new Error('source is not defined');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (Array.isArray(options.source)) {
|
|
40
|
-
options.source = createSimpleEngine(options.source);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
ReactDOM.render( /*#__PURE__*/_react["default"].createElement(_AutoComplete["default"], options), options.element);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
var createSimpleEngine = function createSimpleEngine(values) {
|
|
47
|
-
return function (query, syncResults) {
|
|
48
|
-
var matches = values.filter(function (r) {
|
|
49
|
-
return r.toLowerCase().indexOf(query.toLowerCase()) !== -1;
|
|
50
|
-
});
|
|
51
|
-
syncResults(matches);
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
AccesibleAutoComplete.enhanceSelectElement = function (configurationOptions) {
|
|
56
|
-
if (!configurationOptions.selectElement) {
|
|
57
|
-
throw new Error('selectElement is not defined');
|
|
58
|
-
} // Set defaults.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
if (!configurationOptions.source) {
|
|
62
|
-
var availableOptions = [].filter.call(configurationOptions.selectElement.options, function (option) {
|
|
63
|
-
return option.value || configurationOptions.preserveNullOptions;
|
|
64
|
-
});
|
|
65
|
-
configurationOptions.source = availableOptions.map(function (option) {
|
|
66
|
-
return option.textContent || option.innerText;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
configurationOptions.onConfirm = configurationOptions.onConfirm || function (query) {
|
|
71
|
-
var requestedOption = [].filter.call(configurationOptions.selectElement.options, function (option) {
|
|
72
|
-
return (option.textContent || option.innerText) === query;
|
|
73
|
-
})[0];
|
|
74
|
-
|
|
75
|
-
if (requestedOption) {
|
|
76
|
-
requestedOption.selected = true;
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {
|
|
81
|
-
var option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex];
|
|
82
|
-
configurationOptions.defaultValue = option.textContent || option.innerText;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (configurationOptions.name === undefined) configurationOptions.name = '';
|
|
86
|
-
|
|
87
|
-
if (configurationOptions.id === undefined) {
|
|
88
|
-
if (configurationOptions.selectElement.id === undefined) {
|
|
89
|
-
configurationOptions.id = '';
|
|
90
|
-
} else {
|
|
91
|
-
configurationOptions.id = configurationOptions.selectElement.id;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true;
|
|
96
|
-
var element = document.createElement('div');
|
|
97
|
-
configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement);
|
|
98
|
-
AccesibleAutoComplete((0, _extends2["default"])({}, configurationOptions, {
|
|
99
|
-
element: element
|
|
100
|
-
}));
|
|
101
|
-
configurationOptions.selectElement.style.display = 'none';
|
|
102
|
-
configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select';
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
var _default = AccesibleAutoComplete;
|
|
106
|
-
exports["default"] = _default;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import * as ReactDOM from 'react-dom';
|
|
4
|
-
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
5
|
-
|
|
6
|
-
function AccesibleAutoComplete(options) {
|
|
7
|
-
console.log('options are', options);
|
|
8
|
-
|
|
9
|
-
if (!options.element) {
|
|
10
|
-
throw new Error('element is not defined');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (!options.id) {
|
|
14
|
-
throw new Error('id is not defined');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (!options.source) {
|
|
18
|
-
throw new Error('source is not defined');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (Array.isArray(options.source)) {
|
|
22
|
-
options.source = createSimpleEngine(options.source);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(AutoComplete, options), options.element);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var createSimpleEngine = function createSimpleEngine(values) {
|
|
29
|
-
return function (query, syncResults) {
|
|
30
|
-
var matches = values.filter(function (r) {
|
|
31
|
-
return r.toLowerCase().indexOf(query.toLowerCase()) !== -1;
|
|
32
|
-
});
|
|
33
|
-
syncResults(matches);
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
AccesibleAutoComplete.enhanceSelectElement = function (configurationOptions) {
|
|
38
|
-
if (!configurationOptions.selectElement) {
|
|
39
|
-
throw new Error('selectElement is not defined');
|
|
40
|
-
} // Set defaults.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (!configurationOptions.source) {
|
|
44
|
-
var availableOptions = [].filter.call(configurationOptions.selectElement.options, function (option) {
|
|
45
|
-
return option.value || configurationOptions.preserveNullOptions;
|
|
46
|
-
});
|
|
47
|
-
configurationOptions.source = availableOptions.map(function (option) {
|
|
48
|
-
return option.textContent || option.innerText;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
configurationOptions.onConfirm = configurationOptions.onConfirm || function (query) {
|
|
53
|
-
var requestedOption = [].filter.call(configurationOptions.selectElement.options, function (option) {
|
|
54
|
-
return (option.textContent || option.innerText) === query;
|
|
55
|
-
})[0];
|
|
56
|
-
|
|
57
|
-
if (requestedOption) {
|
|
58
|
-
requestedOption.selected = true;
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {
|
|
63
|
-
var option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex];
|
|
64
|
-
configurationOptions.defaultValue = option.textContent || option.innerText;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (configurationOptions.name === undefined) configurationOptions.name = '';
|
|
68
|
-
|
|
69
|
-
if (configurationOptions.id === undefined) {
|
|
70
|
-
if (configurationOptions.selectElement.id === undefined) {
|
|
71
|
-
configurationOptions.id = '';
|
|
72
|
-
} else {
|
|
73
|
-
configurationOptions.id = configurationOptions.selectElement.id;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true;
|
|
78
|
-
var element = document.createElement('div');
|
|
79
|
-
configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement);
|
|
80
|
-
AccesibleAutoComplete(_extends({}, configurationOptions, {
|
|
81
|
-
element: element
|
|
82
|
-
}));
|
|
83
|
-
configurationOptions.selectElement.style.display = 'none';
|
|
84
|
-
configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select';
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export default AccesibleAutoComplete;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import { ThemeProvider, createMuiTheme } from '@material-ui/core/styles';
|
|
4
|
-
var mockTheme = createMuiTheme({
|
|
5
|
-
header: {
|
|
6
|
-
height: '',
|
|
7
|
-
logo: {
|
|
8
|
-
component: '',
|
|
9
|
-
height: ''
|
|
10
|
-
},
|
|
11
|
-
border: {
|
|
12
|
-
width: '',
|
|
13
|
-
height: '',
|
|
14
|
-
background: ''
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
footer: {
|
|
18
|
-
link: '',
|
|
19
|
-
contrastText: '',
|
|
20
|
-
main: ''
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
var mountWithTheme = function mountWithTheme(tree) {
|
|
25
|
-
return mount( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26
|
-
theme: mockTheme
|
|
27
|
-
}, tree)));
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default mountWithTheme;
|
package/es/themes/govgr.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { createMuiTheme, responsiveFontSizes } from '@material-ui/core/styles';
|
|
2
|
-
export var PORTAL_URL = 'http://34.194.85.187/';
|
|
3
|
-
var linkStyle = {
|
|
4
|
-
color: '#046ec5',
|
|
5
|
-
'&:hover': {
|
|
6
|
-
color: '#4c2c92'
|
|
7
|
-
},
|
|
8
|
-
'&:visited': {
|
|
9
|
-
color: '#4c2c92'
|
|
10
|
-
},
|
|
11
|
-
'&:active': {
|
|
12
|
-
color: '#212529'
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var theme = createMuiTheme({
|
|
16
|
-
overrides: {
|
|
17
|
-
MuiCssBaseline: {
|
|
18
|
-
'@global': {
|
|
19
|
-
body: {
|
|
20
|
-
background: '#fff'
|
|
21
|
-
},
|
|
22
|
-
a: linkStyle
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
MuiBaseLink: {
|
|
26
|
-
root: linkStyle
|
|
27
|
-
},
|
|
28
|
-
MuiButton: {
|
|
29
|
-
root: {
|
|
30
|
-
borderRadius: 4
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
shape: {
|
|
35
|
-
borderRadius: 8
|
|
36
|
-
},
|
|
37
|
-
palette: {
|
|
38
|
-
primary: {
|
|
39
|
-
main: '#003476'
|
|
40
|
-
},
|
|
41
|
-
secondary: {
|
|
42
|
-
main: '#046ec5'
|
|
43
|
-
},
|
|
44
|
-
success: {
|
|
45
|
-
main: '#00703c'
|
|
46
|
-
},
|
|
47
|
-
error: {
|
|
48
|
-
main: '#ca2e2e'
|
|
49
|
-
},
|
|
50
|
-
warning: {
|
|
51
|
-
main: '#C25400'
|
|
52
|
-
},
|
|
53
|
-
info: {
|
|
54
|
-
main: '#036ec5'
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
typography: {
|
|
58
|
-
htmlFontSize: 14
|
|
59
|
-
},
|
|
60
|
-
header: {
|
|
61
|
-
logo: {
|
|
62
|
-
height: 45
|
|
63
|
-
},
|
|
64
|
-
border: {
|
|
65
|
-
width: '100%',
|
|
66
|
-
height: 8,
|
|
67
|
-
background: '#046ec5'
|
|
68
|
-
},
|
|
69
|
-
height: '75px'
|
|
70
|
-
},
|
|
71
|
-
footer: {
|
|
72
|
-
main: '#eeeeee',
|
|
73
|
-
link: '#00aeef',
|
|
74
|
-
contrastText: '#fff'
|
|
75
|
-
},
|
|
76
|
-
spacing: 8
|
|
77
|
-
});
|
|
78
|
-
theme = responsiveFontSizes(theme, ['sm', 'md', 'lg']);
|
|
79
|
-
export default theme;
|
package/es/themes/index.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import * as ReactDOM from 'react-dom';
|
|
4
|
-
import AutoComplete from '@digigov/ui/admin/AutoComplete';
|
|
5
|
-
|
|
6
|
-
function AccesibleAutoComplete(options) {
|
|
7
|
-
console.log('options are', options);
|
|
8
|
-
|
|
9
|
-
if (!options.element) {
|
|
10
|
-
throw new Error('element is not defined');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (!options.id) {
|
|
14
|
-
throw new Error('id is not defined');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (!options.source) {
|
|
18
|
-
throw new Error('source is not defined');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (Array.isArray(options.source)) {
|
|
22
|
-
options.source = createSimpleEngine(options.source);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(AutoComplete, options), options.element);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var createSimpleEngine = function createSimpleEngine(values) {
|
|
29
|
-
return function (query, syncResults) {
|
|
30
|
-
var matches = values.filter(function (r) {
|
|
31
|
-
return r.toLowerCase().indexOf(query.toLowerCase()) !== -1;
|
|
32
|
-
});
|
|
33
|
-
syncResults(matches);
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
AccesibleAutoComplete.enhanceSelectElement = function (configurationOptions) {
|
|
38
|
-
if (!configurationOptions.selectElement) {
|
|
39
|
-
throw new Error('selectElement is not defined');
|
|
40
|
-
} // Set defaults.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (!configurationOptions.source) {
|
|
44
|
-
var availableOptions = [].filter.call(configurationOptions.selectElement.options, function (option) {
|
|
45
|
-
return option.value || configurationOptions.preserveNullOptions;
|
|
46
|
-
});
|
|
47
|
-
configurationOptions.source = availableOptions.map(function (option) {
|
|
48
|
-
return option.textContent || option.innerText;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
configurationOptions.onConfirm = configurationOptions.onConfirm || function (query) {
|
|
53
|
-
var requestedOption = [].filter.call(configurationOptions.selectElement.options, function (option) {
|
|
54
|
-
return (option.textContent || option.innerText) === query;
|
|
55
|
-
})[0];
|
|
56
|
-
|
|
57
|
-
if (requestedOption) {
|
|
58
|
-
requestedOption.selected = true;
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {
|
|
63
|
-
var option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex];
|
|
64
|
-
configurationOptions.defaultValue = option.textContent || option.innerText;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (configurationOptions.name === undefined) configurationOptions.name = '';
|
|
68
|
-
|
|
69
|
-
if (configurationOptions.id === undefined) {
|
|
70
|
-
if (configurationOptions.selectElement.id === undefined) {
|
|
71
|
-
configurationOptions.id = '';
|
|
72
|
-
} else {
|
|
73
|
-
configurationOptions.id = configurationOptions.selectElement.id;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true;
|
|
78
|
-
var element = document.createElement('div');
|
|
79
|
-
configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement);
|
|
80
|
-
AccesibleAutoComplete(_extends({}, configurationOptions, {
|
|
81
|
-
element: element
|
|
82
|
-
}));
|
|
83
|
-
configurationOptions.selectElement.style.display = 'none';
|
|
84
|
-
configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select';
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export default AccesibleAutoComplete;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import { ThemeProvider, createMuiTheme } from '@material-ui/core/styles';
|
|
4
|
-
var mockTheme = createMuiTheme({
|
|
5
|
-
header: {
|
|
6
|
-
height: '',
|
|
7
|
-
logo: {
|
|
8
|
-
component: '',
|
|
9
|
-
height: ''
|
|
10
|
-
},
|
|
11
|
-
border: {
|
|
12
|
-
width: '',
|
|
13
|
-
height: '',
|
|
14
|
-
background: ''
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
footer: {
|
|
18
|
-
link: '',
|
|
19
|
-
contrastText: '',
|
|
20
|
-
main: ''
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
var mountWithTheme = function mountWithTheme(tree) {
|
|
25
|
-
return mount( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26
|
-
theme: mockTheme
|
|
27
|
-
}, tree)));
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default mountWithTheme;
|