@digigov/ui 2.0.0-298cfc51 → 2.0.0-2a26e869
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/app/Footer/__stories__/FooterWithText/index.js +1 -1
- package/app/Footer/__stories__/FooterWithText.js.map +2 -2
- package/app/Masthead/__stories__/Default/index.js +1 -1
- package/app/Masthead/__stories__/Default.js.map +2 -2
- package/app/Masthead/__stories__/Secondary/index.js +1 -1
- package/app/Masthead/__stories__/Secondary.js.map +2 -2
- package/app/Masthead/__stories__/WithElements/index.js +1 -1
- package/app/Masthead/__stories__/WithElements.js.map +2 -2
- package/app/Masthead/__stories__/WithLogo/index.js +1 -1
- package/app/Masthead/__stories__/WithLogo.js.map +2 -2
- package/app/Modal/Modal.stories.js.map +2 -2
- package/app/Modal/__stories__/Auto/index.js +1 -5
- package/app/Modal/__stories__/Auto.js.map +2 -2
- package/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion/index.js +2 -2
- package/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js.map +2 -2
- package/app/QrCodeScanner/__stories__/Default.js.map +1 -1
- package/app/QrCodeScanner/index.js +1 -1
- package/app/QrCodeScanner/index.js.map +2 -2
- package/app/QrCodeViewer/index.js +1 -1
- package/app/QrCodeViewer/index.js.map +2 -2
- package/app/QrCodeViewer/qrcodegen.js.map +1 -1
- package/app/QrCodeViewer/types.d.ts +6 -6
- package/app/QrCodeViewer/utils.js.map +2 -2
- package/app/Skeleton/__stories__/SpecificWidthAndHeight.js.map +2 -2
- package/app/ThemeOptions/index.js +0 -4
- package/app/ThemeOptions/index.js.map +2 -2
- package/app/hooks/useHighlightLinks.js.map +2 -2
- package/app/hooks/useTheme/index.js +3 -1
- package/app/hooks/useTheme.js.map +2 -2
- package/cjs/app/Footer/__stories__/FooterWithText/index.js +1 -1
- package/cjs/app/Footer/__stories__/FooterWithText.js.map +2 -2
- package/cjs/app/Masthead/__stories__/Default/index.js +1 -1
- package/cjs/app/Masthead/__stories__/Default.js.map +2 -2
- package/cjs/app/Masthead/__stories__/Secondary/index.js +1 -1
- package/cjs/app/Masthead/__stories__/Secondary.js.map +2 -2
- package/cjs/app/Masthead/__stories__/WithElements/index.js +1 -1
- package/cjs/app/Masthead/__stories__/WithElements.js.map +2 -2
- package/cjs/app/Masthead/__stories__/WithLogo/index.js +1 -1
- package/cjs/app/Masthead/__stories__/WithLogo.js.map +2 -2
- package/cjs/app/Modal/Modal.stories.js.map +2 -2
- package/cjs/app/Modal/__stories__/Auto.js.map +2 -2
- package/cjs/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion/index.js +2 -2
- package/cjs/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js.map +2 -2
- package/cjs/app/QrCodeScanner/__stories__/Default.js.map +1 -1
- package/cjs/app/QrCodeScanner/index.js +1 -1
- package/cjs/app/QrCodeScanner/index.js.map +2 -2
- package/cjs/app/QrCodeViewer/index.js +1 -1
- package/cjs/app/QrCodeViewer/index.js.map +2 -2
- package/cjs/app/QrCodeViewer/qrcodegen.js.map +1 -1
- package/cjs/app/QrCodeViewer/types.js.map +1 -1
- package/cjs/app/QrCodeViewer/utils.js.map +2 -2
- package/cjs/app/Skeleton/__stories__/SpecificWidthAndHeight.js.map +2 -2
- package/cjs/app/ThemeOptions/index.js +0 -4
- package/cjs/app/ThemeOptions/index.js.map +2 -2
- package/cjs/app/hooks/useHighlightLinks.js.map +2 -2
- package/cjs/app/hooks/useTheme/index.js +3 -1
- package/cjs/app/hooks/useTheme.js.map +2 -2
- package/cjs/content/Accordion/__stories__/Auto.js.map +1 -1
- package/cjs/content/Accordion/auto.js.map +2 -2
- package/cjs/content/Accordion/index.js.map +2 -2
- package/cjs/content/List/__stories__/Default.js.map +2 -2
- package/cjs/content/Markdown/Markdown.stories.js.map +2 -2
- package/cjs/content/Markdown/__stories__/Default/index.js +1 -1
- package/cjs/content/Markdown/__stories__/Default.js.map +2 -2
- package/cjs/content/Markdown/index.js +4 -1
- package/cjs/content/Markdown/index.js.map +2 -2
- package/cjs/content/SafeHTML/SafeHTML.stories.js.map +2 -2
- package/cjs/content/SafeHTML/__stories__/Default/index.js +1 -1
- package/cjs/content/SafeHTML/__stories__/Default.js.map +2 -2
- package/cjs/content/SafeHTML/index.js.map +2 -2
- package/cjs/content/StepNav/__stories__/Auto.js.map +2 -2
- package/cjs/content/StepNav/auto/index.js +2 -2
- package/cjs/content/StepNav/auto.js.map +3 -3
- package/cjs/content/Table/TableFloatingScroll.js.map +2 -2
- package/cjs/content/Table/__stories__/WithLoader/index.js +3 -5
- package/cjs/content/Table/__stories__/WithLoader.js.map +3 -3
- package/cjs/content/Table/hooks/useSort/index.js +1 -2
- package/cjs/content/Table/hooks/useSort.js.map +3 -3
- package/cjs/content/Table/index.js +5 -5
- package/cjs/content/Table/index.js.map +2 -2
- package/cjs/feedback/CopyToClipboard/index.js +1 -1
- package/cjs/feedback/CopyToClipboard/index.js.map +2 -2
- package/cjs/feedback/ErrorSummary/ErrorSummary.stories/index.js +3 -0
- package/cjs/feedback/ErrorSummary/ErrorSummary.stories.js.map +2 -2
- package/cjs/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/index.js +49 -0
- package/cjs/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.js.map +7 -0
- package/cjs/feedback/ErrorSummary/__stories__/LinkedToInput/index.js +1 -2
- package/cjs/feedback/ErrorSummary/__stories__/LinkedToInput.js.map +3 -3
- package/cjs/form/AutoComplete/Status/index.js.map +1 -1
- package/cjs/form/AutoComplete/__stories__/Multiple/index.js +9 -1
- package/cjs/form/AutoComplete/__stories__/Multiple.js.map +2 -2
- package/cjs/form/AutoComplete/__stories__/MultipleShowingTwoSelected/index.js +10 -1
- package/cjs/form/AutoComplete/__stories__/MultipleShowingTwoSelected.js.map +2 -2
- package/cjs/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +10 -1
- package/cjs/form/AutoComplete/__stories__/MultipleWithDefaultValues.js.map +2 -2
- package/cjs/form/AutoComplete/__stories__/MultipleWithMinLength.js.map +1 -1
- package/cjs/form/AutoComplete/__stories__/WithShowAllValues/index.js +1 -8
- package/cjs/form/AutoComplete/__stories__/WithShowAllValues.js.map +2 -2
- package/cjs/form/AutoComplete/index.js +38 -27
- package/cjs/form/AutoComplete/index.js.map +3 -3
- package/cjs/form/SearchContainer/__stories__/Default/index.js +1 -2
- package/cjs/form/SearchContainer/__stories__/Default.js.map +3 -3
- package/cjs/form/TextArea/__stories__/Default/index.js +1 -2
- package/cjs/form/TextArea/__stories__/Default.js.map +3 -3
- package/cjs/form/TextArea/__stories__/DisabledInput/index.js +1 -2
- package/cjs/form/TextArea/__stories__/DisabledInput.js.map +3 -3
- package/cjs/form/TextArea/__stories__/LimitedCharacters/index.js +1 -2
- package/cjs/form/TextArea/__stories__/LimitedCharacters.js.map +3 -3
- package/cjs/form/TextArea/__stories__/WithDeclaredRows/index.js +1 -2
- package/cjs/form/TextArea/__stories__/WithDeclaredRows.js.map +3 -3
- package/cjs/form/TextArea/__stories__/WithErrorMessage/index.js +1 -2
- package/cjs/form/TextArea/__stories__/WithErrorMessage.js.map +3 -3
- package/cjs/form/TextArea/__stories__/WithHint/index.js +1 -2
- package/cjs/form/TextArea/__stories__/WithHint.js.map +3 -3
- package/cjs/form/TextInput/__stories__/AskingForNumbers/index.js +1 -2
- package/cjs/form/TextInput/__stories__/AskingForNumbers.js.map +3 -3
- package/cjs/form/TextInput/__stories__/Default/index.js +1 -2
- package/cjs/form/TextInput/__stories__/Default.js.map +3 -3
- package/cjs/form/TextInput/__stories__/DisabledInput/index.js +1 -2
- package/cjs/form/TextInput/__stories__/DisabledInput.js.map +3 -3
- package/cjs/form/TextInput/__stories__/DisabledInputWithValue/index.js +2 -3
- package/cjs/form/TextInput/__stories__/DisabledInputWithValue.js.map +3 -3
- package/cjs/form/TextInput/__stories__/FixedWidths/index.js +1 -2
- package/cjs/form/TextInput/__stories__/FixedWidths.js.map +3 -3
- package/cjs/form/TextInput/__stories__/FluidWidths/index.js +1 -2
- package/cjs/form/TextInput/__stories__/FluidWidths.js.map +3 -3
- package/cjs/form/TextInput/__stories__/WithErrorMessage/index.js +1 -2
- package/cjs/form/TextInput/__stories__/WithErrorMessage.js.map +3 -3
- package/cjs/form/TextInput/__stories__/WithHint/index.js +1 -2
- package/cjs/form/TextInput/__stories__/WithHint.js.map +3 -3
- package/cjs/i18n/index.js +1 -1
- package/cjs/i18n/index.js.map +2 -2
- package/cjs/i18n/locales/en.js.map +2 -2
- package/cjs/icons/index.js.map +1 -1
- package/cjs/layouts/Basic/Basic.stories.js.map +1 -1
- package/cjs/layouts/Basic/Bottom/__stories__/Default/index.js +6 -6
- package/cjs/layouts/Basic/Bottom/__stories__/Default.js.map +2 -2
- package/cjs/layouts/Basic/Container/__stories__/Default/index.js +5 -5
- package/cjs/layouts/Basic/Container/__stories__/Default.js.map +2 -2
- package/cjs/layouts/Basic/Main/__stories__/Default/index.js +5 -5
- package/cjs/layouts/Basic/Main/__stories__/Default.js.map +2 -2
- package/cjs/layouts/Basic/Top/__stories__/Default/index.js +5 -5
- package/cjs/layouts/Basic/Top/__stories__/Default.js.map +2 -2
- package/cjs/layouts/Basic/__stories__/WithBasicLayout/index.js +2 -2
- package/cjs/layouts/Basic/__stories__/WithBasicLayout.js.map +2 -2
- package/cjs/layouts/Screen/Screen.stories.js.map +1 -1
- package/cjs/layouts/Screen/__stories__/Default.js.map +1 -1
- package/cjs/layouts/Screen/__stories__/ScreenDown.js.map +1 -1
- package/cjs/layouts/Screen/__stories__/ScreenUp.js.map +1 -1
- package/cjs/layouts/Screen/__stories__/SpecificScreenSize.js.map +1 -1
- package/cjs/layouts/Screen/index.js.map +1 -1
- package/cjs/lazy/index.js +75 -76
- package/cjs/lazy.js.map +3 -3
- package/cjs/navigation/BackToTopLink/index.js +1 -3
- package/cjs/navigation/BackToTopLink/index.js.map +2 -2
- package/cjs/navigation/Breadcrumbs/BreadcrumbsListItem/index.js +1 -1
- package/cjs/navigation/Breadcrumbs/BreadcrumbsListItem.js.map +2 -2
- package/cjs/navigation/Breadcrumbs/__stories__/Auto/index.js +3 -2
- package/cjs/navigation/Breadcrumbs/__stories__/Auto.js.map +2 -2
- package/cjs/navigation/Breadcrumbs/__stories__/WithHook.js.map +2 -2
- package/cjs/navigation/Breadcrumbs/__stories__/WithProvider/index.js +1 -1
- package/cjs/navigation/Breadcrumbs/__stories__/WithProvider.js.map +2 -2
- package/cjs/navigation/Breadcrumbs/auto.js.map +2 -2
- package/cjs/navigation/Breadcrumbs/index.js +0 -2
- package/cjs/navigation/Breadcrumbs/index.js.map +2 -2
- package/cjs/navigation/Breadcrumbs/slug/index.js +1 -1
- package/cjs/navigation/Breadcrumbs/slug.js.map +2 -2
- package/cjs/navigation/Breadcrumbs/utils.js.map +2 -2
- package/cjs/navigation/Drawer/__stories__/Default/index.js +1 -2
- package/cjs/navigation/Drawer/__stories__/Default.js.map +3 -3
- package/cjs/navigation/Dropdown/Dropdown.stories.js.map +2 -2
- package/cjs/navigation/Dropdown/__stories__/AlignRight/index.js +1 -2
- package/cjs/navigation/Dropdown/__stories__/AlignRight.js.map +3 -3
- package/cjs/navigation/Dropdown/__stories__/Default/index.js +1 -2
- package/cjs/navigation/Dropdown/__stories__/Default.js.map +3 -3
- package/cjs/navigation/Dropdown/__stories__/Dense/index.js +1 -2
- package/cjs/navigation/Dropdown/__stories__/Dense.js.map +3 -3
- package/cjs/navigation/Dropdown/__stories__/Disabled/index.js +1 -2
- package/cjs/navigation/Dropdown/__stories__/Disabled.js.map +3 -3
- package/cjs/navigation/Dropdown/__stories__/PlacementTop/index.js +1 -2
- package/cjs/navigation/Dropdown/__stories__/PlacementTop.js.map +3 -3
- package/cjs/navigation/Dropdown/__stories__/ScrollableContent/index.js +1 -1
- package/cjs/navigation/Dropdown/__stories__/ScrollableContent.js.map +2 -2
- package/cjs/navigation/Dropdown/__stories__/VariantLink/index.js +1 -2
- package/cjs/navigation/Dropdown/__stories__/VariantLink.js.map +3 -3
- package/cjs/navigation/Link/__stories__/WithProvider/index.js +9 -1
- package/cjs/navigation/Link/__stories__/WithProvider.js.map +2 -2
- package/cjs/navigation/NavList/__stories__/Default/index.js +9 -9
- package/cjs/navigation/NavList/__stories__/Default.js.map +2 -2
- package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +21 -21
- package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer.js.map +2 -2
- package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +21 -21
- package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer.js.map +2 -2
- package/cjs/navigation/NavList/__stories__/NavListWithoutNav/index.js +9 -9
- package/cjs/navigation/NavList/__stories__/NavListWithoutNav.js.map +2 -2
- package/cjs/navigation/NavList/__stories__/UsingNavListAuto/index.js +1 -1
- package/cjs/navigation/NavList/__stories__/UsingNavListAuto.js.map +2 -2
- package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +21 -21
- package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer.js.map +2 -2
- package/cjs/navigation/NavList/__stories__/WithBadge/index.js +10 -10
- package/cjs/navigation/NavList/__stories__/WithBadge.js.map +2 -2
- package/cjs/navigation/NavList/hooks/useTogglableNav/index.js +2 -2
- package/cjs/navigation/NavList/hooks/useTogglableNav.js.map +2 -2
- package/cjs/navigation/Pagination/Pagination.stories.js.map +2 -2
- package/cjs/navigation/Pagination/__stories__/PaginationWithSmallFont/index.js +1 -1
- package/cjs/navigation/Pagination/__stories__/PaginationWithSmallFont.js.map +2 -2
- package/cjs/navigation/Pagination/__stories__/WithInactiveValues/index.js +1 -1
- package/cjs/navigation/Pagination/__stories__/WithInactiveValues.js.map +2 -2
- package/cjs/navigation/Pagination/__stories__/WithResultsPerPage/index.js +1 -1
- package/cjs/navigation/Pagination/__stories__/WithResultsPerPage.js.map +2 -2
- package/cjs/navigation/Tabs/__stories__/Auto.js.map +2 -2
- package/cjs/navigation/Tabs/__stories__/Default.js.map +2 -2
- package/cjs/navigation/Tabs/__stories__/Dense.js.map +2 -2
- package/cjs/navigation/Tabs/__stories__/UsingAccordion/index.js +2 -2
- package/cjs/navigation/Tabs/__stories__/UsingAccordion.js.map +2 -2
- package/cjs/navigation/Tabs/hooks/index.js +1 -1
- package/cjs/navigation/Tabs/hooks.js.map +2 -2
- package/cjs/registry/index.js +818 -228
- package/cjs/registry.js.map +3 -3
- package/cjs/typography/Code/index.js.map +1 -1
- package/cjs/typography/Typography/index.js.map +1 -1
- package/cjs/utils/hooks/useDebounce/index.js +2 -2
- package/cjs/utils/hooks/useDebounce.js.map +2 -2
- package/cjs/utils/hooks/useLatest.js.map +2 -2
- package/cjs/utils/hooks/useScreen/index.js +13 -4
- package/cjs/utils/hooks/useScreen.js.map +2 -2
- package/cjs/utils/hooks/useSearch.js.map +2 -2
- package/content/Accordion/__stories__/Auto.js.map +1 -1
- package/content/Accordion/auto.d.ts +1 -2
- package/content/Accordion/auto.js.map +2 -2
- package/content/Accordion/index.js.map +2 -2
- package/content/List/__stories__/Default.js.map +2 -2
- package/content/Markdown/Markdown.stories.js.map +2 -2
- package/content/Markdown/__stories__/Default/index.js +1 -1
- package/content/Markdown/__stories__/Default.js.map +2 -2
- package/content/Markdown/index.d.ts +1 -1
- package/content/Markdown/index.js +4 -1
- package/content/Markdown/index.js.map +2 -2
- package/content/SafeHTML/SafeHTML.stories.js.map +2 -2
- package/content/SafeHTML/__stories__/Default/index.js +1 -1
- package/content/SafeHTML/__stories__/Default.js.map +2 -2
- package/content/SafeHTML/index.d.ts +1 -1
- package/content/SafeHTML/index.js.map +2 -2
- package/content/StepNav/__stories__/Auto.js.map +2 -2
- package/content/StepNav/auto/index.js +3 -1
- package/content/StepNav/auto.d.ts +1 -2
- package/content/StepNav/auto.js.map +2 -2
- package/content/Table/TableFloatingScroll.js.map +2 -2
- package/content/Table/__stories__/WithLoader/index.js +2 -3
- package/content/Table/__stories__/WithLoader.js.map +2 -2
- package/content/Table/hooks/useSort/index.js +1 -2
- package/content/Table/hooks/useSort.js.map +2 -2
- package/content/Table/index.js +5 -5
- package/content/Table/index.js.map +2 -2
- package/feedback/CopyToClipboard/index.js +1 -1
- package/feedback/CopyToClipboard/index.js.map +2 -2
- package/feedback/ErrorSummary/ErrorSummary.stories/index.js +2 -0
- package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
- package/feedback/ErrorSummary/ErrorSummary.stories.js.map +2 -2
- package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/index.js +16 -0
- package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput/package.json +6 -0
- package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.d.ts +3 -0
- package/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.js.map +7 -0
- package/feedback/ErrorSummary/__stories__/LinkedToInput/index.js +1 -2
- package/feedback/ErrorSummary/__stories__/LinkedToInput.js.map +2 -2
- package/form/AutoComplete/Status/index.d.ts +4 -4
- package/form/AutoComplete/Status/index.js.map +1 -1
- package/form/AutoComplete/__stories__/Multiple/index.js +9 -1
- package/form/AutoComplete/__stories__/Multiple.js.map +2 -2
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected/index.js +10 -1
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected.js.map +2 -2
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +10 -1
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues.js.map +2 -2
- package/form/AutoComplete/__stories__/MultipleWithMinLength.js.map +1 -1
- package/form/AutoComplete/__stories__/WithShowAllValues/index.js +1 -8
- package/form/AutoComplete/__stories__/WithShowAllValues.js.map +2 -2
- package/form/AutoComplete/index.d.ts +8 -9
- package/form/AutoComplete/index.js +38 -27
- package/form/AutoComplete/index.js.map +2 -2
- package/form/SearchContainer/__stories__/Default/index.js +4 -2
- package/form/SearchContainer/__stories__/Default.js.map +2 -2
- package/form/TextArea/__stories__/Default/index.js +1 -2
- package/form/TextArea/__stories__/Default.js.map +2 -2
- package/form/TextArea/__stories__/DisabledInput/index.js +1 -2
- package/form/TextArea/__stories__/DisabledInput.js.map +2 -2
- package/form/TextArea/__stories__/LimitedCharacters/index.js +1 -2
- package/form/TextArea/__stories__/LimitedCharacters.js.map +2 -2
- package/form/TextArea/__stories__/WithDeclaredRows/index.js +1 -2
- package/form/TextArea/__stories__/WithDeclaredRows.js.map +2 -2
- package/form/TextArea/__stories__/WithErrorMessage/index.js +1 -2
- package/form/TextArea/__stories__/WithErrorMessage.js.map +2 -2
- package/form/TextArea/__stories__/WithHint/index.js +1 -2
- package/form/TextArea/__stories__/WithHint.js.map +2 -2
- package/form/TextInput/__stories__/AskingForNumbers/index.js +1 -2
- package/form/TextInput/__stories__/AskingForNumbers.js.map +2 -2
- package/form/TextInput/__stories__/Default/index.js +1 -2
- package/form/TextInput/__stories__/Default.js.map +2 -2
- package/form/TextInput/__stories__/DisabledInput/index.js +1 -2
- package/form/TextInput/__stories__/DisabledInput.js.map +2 -2
- package/form/TextInput/__stories__/DisabledInputWithValue/index.js +2 -3
- package/form/TextInput/__stories__/DisabledInputWithValue.js.map +2 -2
- package/form/TextInput/__stories__/FixedWidths/index.js +1 -2
- package/form/TextInput/__stories__/FixedWidths.js.map +2 -2
- package/form/TextInput/__stories__/FluidWidths/index.js +1 -2
- package/form/TextInput/__stories__/FluidWidths.js.map +2 -2
- package/form/TextInput/__stories__/WithErrorMessage/index.js +1 -2
- package/form/TextInput/__stories__/WithErrorMessage.js.map +2 -2
- package/form/TextInput/__stories__/WithHint/index.js +1 -2
- package/form/TextInput/__stories__/WithHint.js.map +2 -2
- package/i18n/index.js +1 -1
- package/i18n/index.js.map +2 -2
- package/i18n/locales/en.js.map +2 -2
- package/icons/index.js.map +1 -1
- package/index.js +1 -1
- package/layouts/Basic/Basic.stories.js.map +1 -1
- package/layouts/Basic/Bottom/__stories__/Default/index.js +6 -6
- package/layouts/Basic/Bottom/__stories__/Default.js.map +2 -2
- package/layouts/Basic/Container/__stories__/Default/index.js +5 -5
- package/layouts/Basic/Container/__stories__/Default.js.map +2 -2
- package/layouts/Basic/Main/__stories__/Default/index.js +5 -5
- package/layouts/Basic/Main/__stories__/Default.js.map +2 -2
- package/layouts/Basic/Top/__stories__/Default/index.js +5 -5
- package/layouts/Basic/Top/__stories__/Default.js.map +2 -2
- package/layouts/Basic/__stories__/WithBasicLayout/index.js +2 -2
- package/layouts/Basic/__stories__/WithBasicLayout.js.map +2 -2
- package/layouts/Screen/Screen.stories.js.map +1 -1
- package/layouts/Screen/__stories__/Default.js.map +1 -1
- package/layouts/Screen/__stories__/ScreenDown.js.map +1 -1
- package/layouts/Screen/__stories__/ScreenUp.js.map +1 -1
- package/layouts/Screen/__stories__/SpecificScreenSize.js.map +1 -1
- package/layouts/Screen/index.js.map +1 -1
- package/lazy/index.js +331 -336
- package/navigation/BackToTopLink/index.js +1 -3
- package/navigation/BackToTopLink/index.js.map +2 -2
- package/navigation/Breadcrumbs/BreadcrumbsListItem/index.js +1 -1
- package/navigation/Breadcrumbs/BreadcrumbsListItem.js.map +2 -2
- package/navigation/Breadcrumbs/__stories__/Auto/index.js +3 -2
- package/navigation/Breadcrumbs/__stories__/Auto.js.map +2 -2
- package/navigation/Breadcrumbs/__stories__/WithHook/index.js +3 -1
- package/navigation/Breadcrumbs/__stories__/WithHook.js.map +2 -2
- package/navigation/Breadcrumbs/__stories__/WithProvider/index.js +1 -1
- package/navigation/Breadcrumbs/__stories__/WithProvider.js.map +2 -2
- package/navigation/Breadcrumbs/auto.d.ts +0 -2
- package/navigation/Breadcrumbs/auto.js.map +2 -2
- package/navigation/Breadcrumbs/index.d.ts +0 -1
- package/navigation/Breadcrumbs/index.js +0 -1
- package/navigation/Breadcrumbs/index.js.map +2 -2
- package/navigation/Breadcrumbs/slug/index.js +1 -1
- package/navigation/Breadcrumbs/slug.js.map +2 -2
- package/navigation/Breadcrumbs/utils.js.map +2 -2
- package/navigation/Drawer/__stories__/Default/index.js +1 -2
- package/navigation/Drawer/__stories__/Default.js.map +2 -2
- package/navigation/Dropdown/Dropdown.stories.js.map +2 -2
- package/navigation/Dropdown/__stories__/AlignRight/index.js +1 -2
- package/navigation/Dropdown/__stories__/AlignRight.js.map +2 -2
- package/navigation/Dropdown/__stories__/Default/index.js +1 -2
- package/navigation/Dropdown/__stories__/Default.js.map +2 -2
- package/navigation/Dropdown/__stories__/Dense/index.js +1 -2
- package/navigation/Dropdown/__stories__/Dense.js.map +2 -2
- package/navigation/Dropdown/__stories__/Disabled/index.js +1 -2
- package/navigation/Dropdown/__stories__/Disabled.js.map +2 -2
- package/navigation/Dropdown/__stories__/PlacementTop/index.js +1 -2
- package/navigation/Dropdown/__stories__/PlacementTop.js.map +2 -2
- package/navigation/Dropdown/__stories__/ScrollableContent/index.js +1 -1
- package/navigation/Dropdown/__stories__/ScrollableContent.js.map +2 -2
- package/navigation/Dropdown/__stories__/VariantLink/index.js +1 -2
- package/navigation/Dropdown/__stories__/VariantLink.js.map +2 -2
- package/navigation/Link/__stories__/WithProvider/index.js +9 -1
- package/navigation/Link/__stories__/WithProvider.js.map +2 -2
- package/navigation/NavList/__stories__/Default/index.js +9 -9
- package/navigation/NavList/__stories__/Default.js.map +2 -2
- package/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +21 -21
- package/navigation/NavList/__stories__/HorizontalWithDrawer.js.map +2 -2
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +21 -21
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer.js.map +2 -2
- package/navigation/NavList/__stories__/NavListWithoutNav/index.js +9 -9
- package/navigation/NavList/__stories__/NavListWithoutNav.js.map +2 -2
- package/navigation/NavList/__stories__/UsingNavListAuto/index.js +1 -1
- package/navigation/NavList/__stories__/UsingNavListAuto.js.map +2 -2
- package/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +21 -21
- package/navigation/NavList/__stories__/VerticalWithoutDrawer.js.map +2 -2
- package/navigation/NavList/__stories__/WithBadge/index.js +10 -10
- package/navigation/NavList/__stories__/WithBadge.js.map +2 -2
- package/navigation/NavList/hooks/useTogglableNav/index.js +2 -2
- package/navigation/NavList/hooks/useTogglableNav.js.map +2 -2
- package/navigation/Pagination/Pagination.stories.js.map +2 -2
- package/navigation/Pagination/__stories__/PaginationWithSmallFont/index.js +1 -1
- package/navigation/Pagination/__stories__/PaginationWithSmallFont.js.map +2 -2
- package/navigation/Pagination/__stories__/WithInactiveValues/index.js +1 -1
- package/navigation/Pagination/__stories__/WithInactiveValues.js.map +2 -2
- package/navigation/Pagination/__stories__/WithResultsPerPage/index.js +1 -1
- package/navigation/Pagination/__stories__/WithResultsPerPage.js.map +2 -2
- package/navigation/Tabs/__stories__/Auto/index.js +1 -4
- package/navigation/Tabs/__stories__/Auto.js.map +2 -2
- package/navigation/Tabs/__stories__/Default/index.js +1 -4
- package/navigation/Tabs/__stories__/Default.js.map +2 -2
- package/navigation/Tabs/__stories__/Dense/index.js +1 -4
- package/navigation/Tabs/__stories__/Dense.js.map +2 -2
- package/navigation/Tabs/__stories__/UsingAccordion/index.js +9 -12
- package/navigation/Tabs/__stories__/UsingAccordion.js.map +2 -2
- package/navigation/Tabs/hooks/index.js +1 -1
- package/navigation/Tabs/hooks.js.map +2 -2
- package/package.json +5 -5
- package/registry/index.js +962 -372
- package/src/app/Footer/__stories__/FooterWithText.tsx +9 -6
- package/src/app/Footer/interaction.test.tsx +11 -7
- package/src/app/Header/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/app/Header/index.spec.tsx +1 -1
- package/src/app/Header/interaction.test.tsx +22 -17
- package/src/app/Masthead/__stories__/Default.tsx +1 -1
- package/src/app/Masthead/__stories__/Secondary.tsx +1 -1
- package/src/app/Masthead/__stories__/WithElements.tsx +1 -1
- package/src/app/Masthead/__stories__/WithLogo.tsx +1 -1
- package/src/app/Masthead/interaction.test.tsx +6 -6
- package/src/app/Modal/Modal.stories.js +1 -2
- package/src/app/Modal/__stories__/Auto.tsx +1 -5
- package/src/app/Modal/interaction.test.tsx +22 -21
- package/src/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.ts +2 -2
- package/src/app/QrCodeScanner/__stories__/Default.tsx +1 -1
- package/src/app/QrCodeScanner/index.tsx +1 -1
- package/src/app/QrCodeViewer/index.tsx +4 -4
- package/src/app/QrCodeViewer/qrcodegen.ts +3 -3
- package/src/app/QrCodeViewer/types.ts +10 -5
- package/src/app/QrCodeViewer/utils.ts +1 -1
- package/src/app/Skeleton/__stories__/SpecificWidthAndHeight.tsx +1 -1
- package/src/app/ThemeOptions/index.tsx +6 -15
- package/src/app/hooks/useHighlightLinks.ts +3 -4
- package/src/app/hooks/useTheme.ts +4 -3
- package/src/content/Accordion/__stories__/Auto.tsx +1 -1
- package/src/content/Accordion/auto.tsx +1 -2
- package/src/content/Accordion/index.tsx +0 -1
- package/src/content/Accordion/interaction.test.tsx +6 -6
- package/src/content/Card/interaction.test.tsx +6 -6
- package/src/content/Details/interaction.test.tsx +6 -6
- package/src/content/List/__stories__/Default.tsx +3 -9
- package/src/content/Markdown/Markdown.stories.js +1 -2
- package/src/content/Markdown/__stories__/Default.tsx +3 -2
- package/src/content/Markdown/index.tsx +9 -3
- package/src/content/SafeHTML/SafeHTML.stories.js +1 -2
- package/src/content/SafeHTML/__stories__/Default.tsx +4 -3
- package/src/content/SafeHTML/index.tsx +3 -3
- package/src/content/StepNav/__stories__/Auto.tsx +0 -1
- package/src/content/StepNav/auto.tsx +5 -3
- package/src/content/StepNav/interaction.test.tsx +16 -8
- package/src/content/SummaryList/interaction.test.tsx +11 -8
- package/src/content/Table/TableFloatingScroll.tsx +0 -1
- package/src/content/Table/__stories__/WithLoader.tsx +2 -3
- package/src/content/Table/hooks/useSort.tsx +1 -2
- package/src/content/Table/index.tsx +5 -5
- package/src/content/Table/interaction.test.tsx +19 -15
- package/src/feedback/CopyToClipboard/index.tsx +1 -1
- package/src/feedback/CopyToClipboard/interaction.test.tsx +18 -20
- package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
- package/src/feedback/ErrorSummary/__stories__/ErrorGroupLinkedToInput.tsx +47 -0
- package/src/feedback/ErrorSummary/__stories__/LinkedToInput.tsx +1 -2
- package/src/feedback/ErrorSummary/index.test.tsx +4 -0
- package/src/feedback/ErrorSummary/interaction.test.tsx +7 -7
- package/src/feedback/NotificationBanner/interaction.test.tsx +14 -15
- package/src/feedback/PhaseBanner/interaction.test.tsx +6 -6
- package/src/form/AutoComplete/Status/index.tsx +4 -4
- package/src/form/AutoComplete/__stories__/Multiple.tsx +6 -1
- package/src/form/AutoComplete/__stories__/MultipleShowingTwoSelected.tsx +7 -1
- package/src/form/AutoComplete/__stories__/MultipleWithDefaultValues.tsx +7 -1
- package/src/form/AutoComplete/__stories__/MultipleWithMinLength.tsx +2 -2
- package/src/form/AutoComplete/__stories__/WithShowAllValues.tsx +1 -5
- package/src/form/AutoComplete/index.tsx +56 -40
- package/src/form/AutoComplete/interaction.test.tsx +16 -8
- package/src/form/Button/interaction.test.tsx +38 -39
- package/src/form/Checkbox/interaction.test.tsx +25 -17
- package/src/form/RadioContainer/interaction.test.tsx +16 -15
- package/src/form/SearchContainer/__stories__/Default.tsx +4 -2
- package/src/form/SelectContainer/interaction.test.tsx +10 -7
- package/src/form/TextArea/__stories__/Default.tsx +1 -2
- package/src/form/TextArea/__stories__/DisabledInput.tsx +1 -2
- package/src/form/TextArea/__stories__/LimitedCharacters.tsx +1 -2
- package/src/form/TextArea/__stories__/WithDeclaredRows.tsx +1 -2
- package/src/form/TextArea/__stories__/WithErrorMessage.tsx +1 -2
- package/src/form/TextArea/__stories__/WithHint.tsx +1 -2
- package/src/form/TextInput/__stories__/AskingForNumbers.tsx +1 -2
- package/src/form/TextInput/__stories__/Default.tsx +1 -2
- package/src/form/TextInput/__stories__/DisabledInput.tsx +1 -2
- package/src/form/TextInput/__stories__/DisabledInputWithValue.tsx +4 -5
- package/src/form/TextInput/__stories__/FixedWidths.tsx +1 -2
- package/src/form/TextInput/__stories__/FluidWidths.tsx +1 -2
- package/src/form/TextInput/__stories__/WithErrorMessage.tsx +1 -2
- package/src/form/TextInput/__stories__/WithHint.tsx +1 -2
- package/src/i18n/index.tsx +1 -1
- package/src/i18n/locales/en.ts +3 -6
- package/src/icons/index.tsx +1 -1
- package/src/layouts/Basic/Basic.stories.js +1 -1
- package/src/layouts/Basic/Bottom/__stories__/Default.tsx +6 -6
- package/src/layouts/Basic/Container/__stories__/Default.tsx +5 -5
- package/src/layouts/Basic/Main/__stories__/Default.tsx +5 -5
- package/src/layouts/Basic/Top/__stories__/Default.tsx +5 -5
- package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/layouts/Basic/__stories__/WithBasicLayout.tsx +2 -2
- package/src/layouts/Basic/index.spec.tsx +1 -1
- package/src/layouts/Screen/Screen.stories.js +1 -1
- package/src/layouts/Screen/__stories__/Default.tsx +4 -4
- package/src/layouts/Screen/__stories__/ScreenDown.tsx +1 -1
- package/src/layouts/Screen/__stories__/ScreenUp.tsx +1 -1
- package/src/layouts/Screen/__stories__/SpecificScreenSize.tsx +1 -1
- package/src/layouts/Screen/index.tsx +0 -1
- package/src/lazy.js +331 -333
- package/src/navigation/BackLink/interaction.test.tsx +6 -6
- package/src/navigation/BackToTopLink/index.tsx +1 -2
- package/src/navigation/Breadcrumbs/BreadcrumbsListItem.tsx +1 -1
- package/src/navigation/Breadcrumbs/__stories__/Auto.tsx +4 -3
- package/src/navigation/Breadcrumbs/__stories__/WithHook.tsx +4 -2
- package/src/navigation/Breadcrumbs/__stories__/WithProvider.tsx +1 -1
- package/src/navigation/Breadcrumbs/auto.tsx +1 -2
- package/src/navigation/Breadcrumbs/index.tsx +0 -1
- package/src/navigation/Breadcrumbs/interaction.test.tsx +20 -18
- package/src/navigation/Breadcrumbs/slug.ts +3 -3
- package/src/navigation/Breadcrumbs/utils.ts +2 -2
- package/src/navigation/Drawer/__stories__/Default.tsx +1 -2
- package/src/navigation/Dropdown/Dropdown.stories.js +1 -2
- package/src/navigation/Dropdown/__stories__/AlignRight.tsx +1 -2
- package/src/navigation/Dropdown/__stories__/Default.tsx +1 -2
- package/src/navigation/Dropdown/__stories__/Dense.tsx +1 -2
- package/src/navigation/Dropdown/__stories__/Disabled.tsx +1 -2
- package/src/navigation/Dropdown/__stories__/PlacementTop.tsx +1 -2
- package/src/navigation/Dropdown/__stories__/ScrollableContent.tsx +1 -1
- package/src/navigation/Dropdown/__stories__/VariantLink.tsx +1 -2
- package/src/navigation/Dropdown/interaction.test.tsx +34 -35
- package/src/navigation/Link/__stories__/WithProvider.tsx +5 -1
- package/src/navigation/Link/interaction.test.tsx +20 -22
- package/src/navigation/NavList/__stories__/Default.tsx +11 -11
- package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +24 -24
- package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +24 -24
- package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +11 -11
- package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +1 -1
- package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +24 -24
- package/src/navigation/NavList/__stories__/WithBadge.tsx +12 -12
- package/src/navigation/NavList/hooks/useTogglableNav.tsx +2 -2
- package/src/navigation/Pagination/Pagination.stories.js +1 -2
- package/src/navigation/Pagination/__stories__/PaginationWithSmallFont.tsx +1 -2
- package/src/navigation/Pagination/__stories__/WithInactiveValues.tsx +1 -1
- package/src/navigation/Pagination/__stories__/WithResultsPerPage.tsx +1 -2
- package/src/navigation/Pagination/interaction.test.tsx +7 -7
- package/src/navigation/Tabs/__stories__/Auto.tsx +1 -5
- package/src/navigation/Tabs/__stories__/Default.tsx +1 -4
- package/src/navigation/Tabs/__stories__/Dense.tsx +1 -4
- package/src/navigation/Tabs/__stories__/UsingAccordion.tsx +10 -13
- package/src/navigation/Tabs/hooks.ts +5 -10
- package/src/navigation/Tabs/interaction.test.tsx +7 -7
- package/src/registry.js +954 -366
- package/src/typography/Code/index.tsx +1 -1
- package/src/typography/Typography/index.tsx +1 -1
- package/src/utils/hooks/useDebounce.ts +4 -4
- package/src/utils/hooks/useLatest.ts +1 -1
- package/src/utils/hooks/useScreen.ts +34 -25
- package/src/utils/hooks/useSearch.ts +2 -3
- package/typography/Code/index.js.map +1 -1
- package/typography/Typography/index.js.map +1 -1
- package/utils/hooks/useDebounce/index.js +2 -2
- package/utils/hooks/useDebounce.d.ts +1 -1
- package/utils/hooks/useDebounce.js.map +2 -2
- package/utils/hooks/useLatest.d.ts +1 -1
- package/utils/hooks/useLatest.js.map +2 -2
- package/utils/hooks/useScreen/index.js +13 -4
- package/utils/hooks/useScreen.js.map +2 -2
- package/utils/hooks/useSearch.d.ts +2 -2
- package/utils/hooks/useSearch.js.map +2 -2
- package/cjs/test-utils/delay/index.js +0 -35
- package/cjs/test-utils/delay.js.map +0 -7
- package/lazy.d.ts +0 -361
- package/lazy.js.map +0 -7
- package/registry.d.ts +0 -315
- package/registry.js.map +0 -7
- package/src/test-utils/delay.ts +0 -9
- package/test-utils/delay/index.js +0 -12
- package/test-utils/delay/package.json +0 -6
- package/test-utils/delay.d.ts +0 -2
- package/test-utils/delay.js.map +0 -7
|
@@ -23,17 +23,20 @@ export const FooterWithText = () => {
|
|
|
23
23
|
<VisuallyHidden>Περισσότερες επιλογές</VisuallyHidden>
|
|
24
24
|
<FooterList>
|
|
25
25
|
<FooterListItem>
|
|
26
|
-
<Link href="#"
|
|
26
|
+
<Link href="#">
|
|
27
|
+
Ενημέρωση σχετικά με την επεξεργασία προσωπικών δεδομένων
|
|
28
|
+
</Link>
|
|
27
29
|
</FooterListItem>
|
|
28
30
|
</FooterList>
|
|
29
31
|
<Copyright>
|
|
30
|
-
Η άντληση των απαραίτητων στοιχείων πραγματοποιείται μέσω του
|
|
32
|
+
Η άντληση των απαραίτητων στοιχείων πραγματοποιείται μέσω του{' '}
|
|
31
33
|
<Link href="https://gsis.gr/dimosia-dioikisi/ked">
|
|
32
|
-
Κέντρου Διαλειτουργικότητας
|
|
33
|
-
</Link>
|
|
34
|
-
|
|
34
|
+
Κέντρου Διαλειτουργικότητας
|
|
35
|
+
</Link>{' '}
|
|
36
|
+
της{' '}
|
|
35
37
|
<Link href="https://www.gsis.gr/">
|
|
36
|
-
Γενικής Γραμματείας Πληροφοριακών Συστημάτων Δημόσιας
|
|
38
|
+
Γενικής Γραμματείας Πληροφοριακών Συστημάτων Δημόσιας
|
|
39
|
+
Διοίκησης
|
|
37
40
|
</Link>
|
|
38
41
|
.
|
|
39
42
|
</Copyright>
|
|
@@ -4,14 +4,18 @@ import { test, expect } from '@playwright/experimental-ct-react';
|
|
|
4
4
|
import { Default } from '@digigov/ui/app/Footer/__stories__/Default';
|
|
5
5
|
|
|
6
6
|
test('renders the Default Hover and click', async ({ mount, page }) => {
|
|
7
|
-
await mount(
|
|
8
|
-
<Default />
|
|
9
|
-
)
|
|
7
|
+
await mount(<Default />);
|
|
10
8
|
await page.evaluate(() => document.fonts.ready);
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
await page
|
|
10
|
+
.locator('#root>footer>div>div>section:nth-child(1)>p>a:nth-child(1)')
|
|
11
|
+
.hover();
|
|
12
|
+
await page
|
|
13
|
+
.locator('#root>footer>div>div>section:nth-child(1)>p>a:nth-child(1)')
|
|
14
|
+
.click();
|
|
13
15
|
|
|
14
|
-
const screenshot = await page.screenshot({
|
|
16
|
+
const screenshot = await page.screenshot({
|
|
17
|
+
fullPage: true,
|
|
18
|
+
animations: 'disabled',
|
|
19
|
+
});
|
|
15
20
|
expect(screenshot).toMatchSnapshot();
|
|
16
21
|
});
|
|
17
|
-
|
|
@@ -8,7 +8,7 @@ import Header, {
|
|
|
8
8
|
} from '@digigov/ui/app/Header';
|
|
9
9
|
import logo from '../../govgr/GovGRLogo/govgr-logo.svg';
|
|
10
10
|
|
|
11
|
-
it('renders the header with logo, title and subtitle
|
|
11
|
+
it('renders the header with logo, title and subtitle', () => {
|
|
12
12
|
expect(
|
|
13
13
|
render(
|
|
14
14
|
<Header>
|
|
@@ -4,28 +4,33 @@ import { test, expect } from '@playwright/experimental-ct-react';
|
|
|
4
4
|
import { WithHeaderNavigation } from '@digigov/ui/app/Header/__stories__/WithHeaderNavigation';
|
|
5
5
|
import { WithServiceNameAndLogo } from '@digigov/ui/app/Header/__stories__/WithServiceNameAndLogo';
|
|
6
6
|
|
|
7
|
-
test('renders the WithHeaderNavigation Hover on dropdown', async ({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
test('renders the WithHeaderNavigation Hover on dropdown', async ({
|
|
8
|
+
mount,
|
|
9
|
+
page,
|
|
10
|
+
}) => {
|
|
11
|
+
await mount(<WithHeaderNavigation />);
|
|
11
12
|
await page.evaluate(() => document.fonts.ready);
|
|
12
|
-
|
|
13
|
-
const screenshot = await page.screenshot({
|
|
13
|
+
await page.locator('#root>div>header>div>div:nth-child(2)>button').hover();
|
|
14
|
+
const screenshot = await page.screenshot({
|
|
15
|
+
fullPage: true,
|
|
16
|
+
animations: 'disabled',
|
|
17
|
+
});
|
|
14
18
|
expect(screenshot).toMatchSnapshot();
|
|
15
19
|
});
|
|
16
|
-
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
)
|
|
21
|
+
test('renders the WithServiceNameAndLogo Keyboard navigation', async ({
|
|
22
|
+
mount,
|
|
23
|
+
page,
|
|
24
|
+
}) => {
|
|
25
|
+
await mount(<WithServiceNameAndLogo />);
|
|
23
26
|
await page.evaluate(() => document.fonts.ready);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
await page.keyboard.press('Tab');
|
|
28
|
+
await page.keyboard.press('Tab');
|
|
29
|
+
await page.keyboard.press('Tab');
|
|
27
30
|
|
|
28
|
-
const screenshot = await page.screenshot({
|
|
31
|
+
const screenshot = await page.screenshot({
|
|
32
|
+
fullPage: true,
|
|
33
|
+
animations: 'disabled',
|
|
34
|
+
});
|
|
29
35
|
expect(screenshot).toMatchSnapshot();
|
|
30
36
|
});
|
|
31
|
-
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { Masthead, MastheadBody } from '@digigov/ui/app/Masthead';
|
|
3
4
|
import { CallToAction } from '@digigov/ui/form/Button/CallToAction';
|
|
4
5
|
import { Container } from '@digigov/ui/layouts/Basic/Container';
|
|
5
6
|
import { Main } from '@digigov/ui/layouts/Basic/Main';
|
|
6
|
-
import { Masthead, MastheadBody } from '@digigov/ui/app/Masthead';
|
|
7
7
|
import { Heading } from '@digigov/ui/typography/Heading';
|
|
8
8
|
|
|
9
9
|
export const Default = () => (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { Masthead, MastheadBody } from '@digigov/ui/app/Masthead';
|
|
3
4
|
import { CallToAction } from '@digigov/ui/form/Button/CallToAction';
|
|
4
5
|
import { Container } from '@digigov/ui/layouts/Basic/Container';
|
|
5
6
|
import { Main } from '@digigov/ui/layouts/Basic/Main';
|
|
6
|
-
import { Masthead, MastheadBody } from '@digigov/ui/app/Masthead';
|
|
7
7
|
import { Heading } from '@digigov/ui/typography/Heading';
|
|
8
8
|
|
|
9
9
|
export const Secondary = () => (
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { Masthead, MastheadBody, MastheadLogo } from '@digigov/ui/app/Masthead';
|
|
3
4
|
import { CallToAction } from '@digigov/ui/form/Button/CallToAction';
|
|
4
5
|
import mineduLogo from '@digigov/ui/govgr/images/minedu-logo-base64';
|
|
5
6
|
import { Container } from '@digigov/ui/layouts/Basic/Container';
|
|
6
7
|
import { Main } from '@digigov/ui/layouts/Basic/Main';
|
|
7
|
-
import { Masthead, MastheadBody, MastheadLogo } from '@digigov/ui/app/Masthead';
|
|
8
8
|
import Link from '@digigov/ui/navigation/Link';
|
|
9
9
|
import { Heading } from '@digigov/ui/typography/Heading';
|
|
10
10
|
import Hint from '@digigov/ui/typography/Hint';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { Masthead, MastheadBody, MastheadLogo } from '@digigov/ui/app/Masthead';
|
|
3
4
|
import { CallToAction } from '@digigov/ui/form/Button/CallToAction';
|
|
4
5
|
import logo3 from '@digigov/ui/govgr/images/minedu-logo-base64';
|
|
5
6
|
import { Container } from '@digigov/ui/layouts/Basic/Container';
|
|
6
7
|
import { Main } from '@digigov/ui/layouts/Basic/Main';
|
|
7
|
-
import { Masthead, MastheadBody, MastheadLogo } from '@digigov/ui/app/Masthead';
|
|
8
8
|
import { Heading } from '@digigov/ui/typography/Heading';
|
|
9
9
|
|
|
10
10
|
export const WithLogo = () => (
|
|
@@ -4,12 +4,12 @@ import { test, expect } from '@playwright/experimental-ct-react';
|
|
|
4
4
|
import { Default } from '@digigov/ui/app/Masthead/__stories__/Default';
|
|
5
5
|
|
|
6
6
|
test('renders the Default Hover', async ({ mount, page }) => {
|
|
7
|
-
await mount(
|
|
8
|
-
<Default />
|
|
9
|
-
)
|
|
7
|
+
await mount(<Default />);
|
|
10
8
|
await page.evaluate(() => document.fonts.ready);
|
|
11
|
-
|
|
12
|
-
const screenshot = await page.screenshot({
|
|
9
|
+
await page.locator('#root>section>div>main>a').hover();
|
|
10
|
+
const screenshot = await page.screenshot({
|
|
11
|
+
fullPage: true,
|
|
12
|
+
animations: 'disabled',
|
|
13
|
+
});
|
|
13
14
|
expect(screenshot).toMatchSnapshot();
|
|
14
15
|
});
|
|
15
|
-
|
|
@@ -3,8 +3,7 @@ export default {
|
|
|
3
3
|
title: 'Digigov UI/app/Modal',
|
|
4
4
|
description:
|
|
5
5
|
'Use the modal component with caution when you need to provide critical information or ask for a decision.',
|
|
6
|
-
link:
|
|
7
|
-
'https://guide.services.gov.gr/docs/patterns/admin-pages/components/modal',
|
|
6
|
+
link: 'https://guide.services.gov.gr/docs/patterns/admin-pages/components/modal',
|
|
8
7
|
component: Modal,
|
|
9
8
|
displayName: 'Modal',
|
|
10
9
|
};
|
|
@@ -6,36 +6,37 @@ import { Dense } from '@digigov/ui/app/Modal/__stories__/Dense';
|
|
|
6
6
|
import { WithHooks } from '@digigov/ui/app/Modal/__stories__/WithHooks';
|
|
7
7
|
|
|
8
8
|
test('renders the Auto Click modal', async ({ mount, page }) => {
|
|
9
|
-
await mount(
|
|
10
|
-
<Auto />
|
|
11
|
-
)
|
|
9
|
+
await mount(<Auto />);
|
|
12
10
|
await page.evaluate(() => document.fonts.ready);
|
|
13
|
-
|
|
14
|
-
const screenshot = await page.screenshot({
|
|
11
|
+
await page.locator('#root>div>button:nth-child(1)').click();
|
|
12
|
+
const screenshot = await page.screenshot({
|
|
13
|
+
fullPage: true,
|
|
14
|
+
animations: 'disabled',
|
|
15
|
+
});
|
|
15
16
|
expect(screenshot).toMatchSnapshot();
|
|
16
17
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
18
|
|
|
20
19
|
test('renders the Dense Open modal', async ({ mount, page }) => {
|
|
21
|
-
await mount(
|
|
22
|
-
<Dense />
|
|
23
|
-
)
|
|
20
|
+
await mount(<Dense />);
|
|
24
21
|
await page.evaluate(() => document.fonts.ready);
|
|
25
|
-
|
|
26
|
-
const screenshot = await page.screenshot({
|
|
22
|
+
await page.locator('#root>div>button').click();
|
|
23
|
+
const screenshot = await page.screenshot({
|
|
24
|
+
fullPage: true,
|
|
25
|
+
animations: 'disabled',
|
|
26
|
+
});
|
|
27
27
|
expect(screenshot).toMatchSnapshot();
|
|
28
28
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
29
|
|
|
32
|
-
test('renders the WithHooks Click modal with hooks', async ({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
test('renders the WithHooks Click modal with hooks', async ({
|
|
31
|
+
mount,
|
|
32
|
+
page,
|
|
33
|
+
}) => {
|
|
34
|
+
await mount(<WithHooks />);
|
|
36
35
|
await page.evaluate(() => document.fonts.ready);
|
|
37
|
-
|
|
38
|
-
const screenshot = await page.screenshot({
|
|
36
|
+
await page.locator('#root>div>button').click();
|
|
37
|
+
const screenshot = await page.screenshot({
|
|
38
|
+
fullPage: true,
|
|
39
|
+
animations: 'disabled',
|
|
40
|
+
});
|
|
39
41
|
expect(screenshot).toMatchSnapshot();
|
|
40
42
|
});
|
|
41
|
-
|
|
@@ -29,8 +29,8 @@ function strMapper(str, map) {
|
|
|
29
29
|
for (const i in map) {
|
|
30
30
|
// check if current value is array
|
|
31
31
|
if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
|
|
32
|
-
for (
|
|
33
|
-
if (
|
|
32
|
+
for (const j in map[i]) {
|
|
33
|
+
if (j.includes(str)) {
|
|
34
34
|
return i === UNKNOWN ? undefined : i;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -62,7 +62,7 @@ In order to be safe, you can:
|
|
|
62
62
|
if (dataType === 'url') {
|
|
63
63
|
try {
|
|
64
64
|
new URL(data);
|
|
65
|
-
} catch
|
|
65
|
+
} catch {
|
|
66
66
|
return onError(
|
|
67
67
|
new Error(
|
|
68
68
|
'@digigov-ui XSS Validation failed: qr code payload should follow the pattern `https://dilosi.services.gov.gr/show/:reference_code`'
|
|
@@ -17,12 +17,12 @@ const DEFAULT_INCLUDEMARGIN = false;
|
|
|
17
17
|
const SUPPORTS_PATH2D = (function () {
|
|
18
18
|
try {
|
|
19
19
|
new Path2D().addPath(new Path2D());
|
|
20
|
-
} catch
|
|
20
|
+
} catch {
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
23
23
|
return true;
|
|
24
24
|
})();
|
|
25
|
-
const ERROR_LEVEL_MAP:
|
|
25
|
+
const ERROR_LEVEL_MAP: Record<string, qrcodegen.QrCode.Ecc> = {
|
|
26
26
|
L: qrcodegen.QrCode.Ecc.LOW,
|
|
27
27
|
M: qrcodegen.QrCode.Ecc.MEDIUM,
|
|
28
28
|
Q: qrcodegen.QrCode.Ecc.QUARTILE,
|
|
@@ -50,7 +50,7 @@ const QrCodeViewerCanvas = React.forwardRef(function QrCodeViewerCanvas(
|
|
|
50
50
|
// We're just using this state to trigger rerenders when images load. We
|
|
51
51
|
// Don't actually read the value anywhere. A smarter use of useEffect would
|
|
52
52
|
// depend on this value.
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
const [isImgLoaded, setIsImageLoaded] = useState(false);
|
|
55
55
|
|
|
56
56
|
useEffect(() => {
|
|
@@ -177,4 +177,4 @@ export const QrCodeViewer = React.forwardRef(function QrCodeViewer(
|
|
|
177
177
|
return <QrCodeViewerCanvas {...props} ref={ref} />;
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
export default QrCodeViewer;
|
|
180
|
+
export default QrCodeViewer;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
'use strict';
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
namespace qrcodegen {
|
|
11
11
|
type bit = number;
|
|
12
12
|
type byte = number;
|
|
@@ -1302,7 +1302,7 @@ namespace qrcodegen {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
/*---- Public helper enumeration ----*/
|
|
1305
|
-
|
|
1305
|
+
|
|
1306
1306
|
namespace qrcodegen.QrCode {
|
|
1307
1307
|
type int = number;
|
|
1308
1308
|
|
|
@@ -1336,7 +1336,7 @@ namespace qrcodegen.QrCode {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
|
|
1338
1338
|
/*---- Public helper enumeration ----*/
|
|
1339
|
-
|
|
1339
|
+
|
|
1340
1340
|
namespace qrcodegen.QrSegment {
|
|
1341
1341
|
type int = number;
|
|
1342
1342
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
2
|
import qrcodegen from '@digigov/ui/app/QrCodeViewer/qrcodegen';
|
|
3
3
|
|
|
4
|
-
export
|
|
4
|
+
export interface QRProps {
|
|
5
5
|
value: string;
|
|
6
6
|
size?: number;
|
|
7
7
|
// Should be a real enum, but doesn't seem to be compatible with real code.
|
|
@@ -11,20 +11,25 @@ export type QRProps = {
|
|
|
11
11
|
style?: CSSProperties;
|
|
12
12
|
includeMargin?: boolean;
|
|
13
13
|
imageSettings?: ImageSettings;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
|
|
16
16
|
export type QRPropsCanvas = QRProps &
|
|
17
17
|
React.CanvasHTMLAttributes<HTMLCanvasElement>;
|
|
18
18
|
|
|
19
19
|
export type Modules = ReturnType<qrcodegen.QrCode['getModules']>;
|
|
20
20
|
|
|
21
|
-
export
|
|
21
|
+
export interface Excavation {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
w: number;
|
|
25
|
+
h: number;
|
|
26
|
+
}
|
|
22
27
|
|
|
23
|
-
export
|
|
28
|
+
export interface ImageSettings {
|
|
24
29
|
src: string;
|
|
25
30
|
height: number;
|
|
26
31
|
width: number;
|
|
27
32
|
excavate: boolean;
|
|
28
33
|
x?: number;
|
|
29
34
|
y?: number;
|
|
30
|
-
}
|
|
35
|
+
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
const DEFAULT_IMG_SCALE = 0.1;
|
|
8
8
|
export const MARGIN_SIZE = 4;
|
|
9
9
|
export function generatePath(modules: Modules, margin = 0): string {
|
|
10
|
-
const ops:
|
|
10
|
+
const ops: string[] = [];
|
|
11
11
|
modules.forEach(function (row, y) {
|
|
12
12
|
let start: number | null = null;
|
|
13
13
|
row.forEach(function (cell, x) {
|
|
@@ -66,13 +66,7 @@ export const ThemeOptions = React.forwardRef<
|
|
|
66
66
|
lineHeightOption = true,
|
|
67
67
|
letterSpacingOption = true,
|
|
68
68
|
highlightLinksOption = true,
|
|
69
|
-
|
|
70
69
|
colorsOptionTitleSize = 'sm',
|
|
71
|
-
fontSizeOptionTitleSize = 'sm',
|
|
72
|
-
lineHeightOptionTitleSize = 'sm',
|
|
73
|
-
letterSpacingOptionTitleSize = 'sm',
|
|
74
|
-
highlightLinksOptionTitleSize = 'sm',
|
|
75
|
-
|
|
76
70
|
className,
|
|
77
71
|
...props
|
|
78
72
|
},
|
|
@@ -87,18 +81,15 @@ export const ThemeOptions = React.forwardRef<
|
|
|
87
81
|
fontSize || 'default'
|
|
88
82
|
);
|
|
89
83
|
const [lineHeight, changeLineHeight] = useLineHeight();
|
|
90
|
-
const [selectedLineHeight, setSelectedLineHeight] =
|
|
91
|
-
LineHeightOptions
|
|
92
|
-
>(lineHeight || 'default');
|
|
84
|
+
const [selectedLineHeight, setSelectedLineHeight] =
|
|
85
|
+
useState<LineHeightOptions>(lineHeight || 'default');
|
|
93
86
|
const [letterSpacing, changeLetterSpacing] = useLetterSpacing();
|
|
94
|
-
const [selectedLetterSpacing, setSelectedLetterSpacing] =
|
|
95
|
-
LetterSpacingOptions
|
|
96
|
-
>(letterSpacing || 'default');
|
|
87
|
+
const [selectedLetterSpacing, setSelectedLetterSpacing] =
|
|
88
|
+
useState<LetterSpacingOptions>(letterSpacing || 'default');
|
|
97
89
|
|
|
98
90
|
const [highlightLinks, changeHighlightLinks] = useHighlightLinks();
|
|
99
|
-
const [selectedHighlightLinks, setSelectedHighlightLinks] =
|
|
100
|
-
HighlightLinksOptions
|
|
101
|
-
>(highlightLinks || 'default');
|
|
91
|
+
const [selectedHighlightLinks, setSelectedHighlightLinks] =
|
|
92
|
+
useState<HighlightLinksOptions>(highlightLinks || 'default');
|
|
102
93
|
|
|
103
94
|
function handleOptions() {
|
|
104
95
|
changeTheme(selectedTheme);
|
|
@@ -5,7 +5,7 @@ export type StoredHighlightLinksOptions = HighlightLinksOptions | null;
|
|
|
5
5
|
|
|
6
6
|
export type UseHighlightLinksResult = [
|
|
7
7
|
HighlightLinksOptions,
|
|
8
|
-
(selectedHighlightLinks: HighlightLinksOptions) => void
|
|
8
|
+
(selectedHighlightLinks: HighlightLinksOptions) => void,
|
|
9
9
|
];
|
|
10
10
|
|
|
11
11
|
export const useHighlightLinks = (): UseHighlightLinksResult => {
|
|
@@ -13,9 +13,8 @@ export const useHighlightLinks = (): UseHighlightLinksResult => {
|
|
|
13
13
|
'--theme-highlight-links'
|
|
14
14
|
) as StoredHighlightLinksOptions;
|
|
15
15
|
|
|
16
|
-
const [highlightLinks, changeHighlightLinks] =
|
|
17
|
-
HighlightLinksOptions
|
|
18
|
-
>(storedHighlightLinks || 'default');
|
|
16
|
+
const [highlightLinks, changeHighlightLinks] =
|
|
17
|
+
useState<HighlightLinksOptions>(storedHighlightLinks || 'default');
|
|
19
18
|
|
|
20
19
|
useEffect(() => {
|
|
21
20
|
if (highlightLinks === 'highlight') {
|
|
@@ -5,12 +5,13 @@ export type StoredThemeOptions = ThemeSelectOptions | null;
|
|
|
5
5
|
|
|
6
6
|
export type UseThemeResult = [
|
|
7
7
|
ThemeSelectOptions,
|
|
8
|
-
(selectedTheme: ThemeSelectOptions) => void
|
|
8
|
+
(selectedTheme: ThemeSelectOptions) => void,
|
|
9
9
|
];
|
|
10
10
|
|
|
11
11
|
export const useTheme = (): UseThemeResult => {
|
|
12
|
-
const prefersDarkScheme = window.matchMedia(
|
|
13
|
-
|
|
12
|
+
const prefersDarkScheme = window.matchMedia(
|
|
13
|
+
'(prefers-color-scheme: dark)'
|
|
14
|
+
).matches;
|
|
14
15
|
const storedTheme = localStorage.getItem(
|
|
15
16
|
'--theme-palette'
|
|
16
17
|
) as StoredThemeOptions;
|
|
@@ -8,10 +8,9 @@ import { Button, ButtonProps } from '@digigov/react-core/Button';
|
|
|
8
8
|
import {
|
|
9
9
|
AccordionItemId,
|
|
10
10
|
useAccordion,
|
|
11
|
+
UseAccordionReturn,
|
|
11
12
|
} from '@digigov/ui/content/Accordion/hooks';
|
|
12
13
|
|
|
13
|
-
import { UseAccordionReturn } from '@digigov/ui/content/Accordion/hooks';
|
|
14
|
-
|
|
15
14
|
export interface ButtonAccordionAutoProps extends ButtonProps {}
|
|
16
15
|
export interface AccordionSectionAutoProps extends AccordionSectionProps {
|
|
17
16
|
id: string;
|
|
@@ -4,12 +4,12 @@ import { test, expect } from '@playwright/experimental-ct-react';
|
|
|
4
4
|
import { Default } from '@digigov/ui/content/Accordion/__stories__/Default';
|
|
5
5
|
|
|
6
6
|
test('renders the Default Mouse navigation', async ({ mount, page }) => {
|
|
7
|
-
await mount(
|
|
8
|
-
<Default />
|
|
9
|
-
)
|
|
7
|
+
await mount(<Default />);
|
|
10
8
|
await page.evaluate(() => document.fonts.ready);
|
|
11
|
-
|
|
12
|
-
const screenshot = await page.screenshot({
|
|
9
|
+
await page.locator('#root>div>details:nth-child(2)>summary').click();
|
|
10
|
+
const screenshot = await page.screenshot({
|
|
11
|
+
fullPage: true,
|
|
12
|
+
animations: 'disabled',
|
|
13
|
+
});
|
|
13
14
|
expect(screenshot).toMatchSnapshot();
|
|
14
15
|
});
|
|
15
|
-
|
|
@@ -4,12 +4,12 @@ import { test, expect } from '@playwright/experimental-ct-react';
|
|
|
4
4
|
import { WithClickableContent } from '@digigov/ui/content/Card/__stories__/WithClickableContent';
|
|
5
5
|
|
|
6
6
|
test('renders the WithClickableContent Click card', async ({ mount, page }) => {
|
|
7
|
-
await mount(
|
|
8
|
-
<WithClickableContent />
|
|
9
|
-
)
|
|
7
|
+
await mount(<WithClickableContent />);
|
|
10
8
|
await page.evaluate(() => document.fonts.ready);
|
|
11
|
-
|
|
12
|
-
const screenshot = await page.screenshot({
|
|
9
|
+
await page.locator('#root>div>div>div:nth-child(1)>a').click();
|
|
10
|
+
const screenshot = await page.screenshot({
|
|
11
|
+
fullPage: true,
|
|
12
|
+
animations: 'disabled',
|
|
13
|
+
});
|
|
13
14
|
expect(screenshot).toMatchSnapshot();
|
|
14
15
|
});
|
|
15
|
-
|
|
@@ -4,12 +4,12 @@ import { test, expect } from '@playwright/experimental-ct-react';
|
|
|
4
4
|
import { Default } from '@digigov/ui/content/Details/__stories__/Default';
|
|
5
5
|
|
|
6
6
|
test('renders the Default Open Details', async ({ mount, page }) => {
|
|
7
|
-
await mount(
|
|
8
|
-
<Default />
|
|
9
|
-
)
|
|
7
|
+
await mount(<Default />);
|
|
10
8
|
await page.evaluate(() => document.fonts.ready);
|
|
11
|
-
|
|
12
|
-
const screenshot = await page.screenshot({
|
|
9
|
+
await page.locator('#root>details>summary').click();
|
|
10
|
+
const screenshot = await page.screenshot({
|
|
11
|
+
fullPage: true,
|
|
12
|
+
animations: 'disabled',
|
|
13
|
+
});
|
|
13
14
|
expect(screenshot).toMatchSnapshot();
|
|
14
15
|
});
|
|
15
|
-
|
|
@@ -4,15 +4,9 @@ import { ListItem } from '@digigov/ui/content/List/ListItem';
|
|
|
4
4
|
|
|
5
5
|
export const Default = () => (
|
|
6
6
|
<List>
|
|
7
|
-
<ListItem>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<ListItem>
|
|
11
|
-
Πτυχία τριτοβάθμιας εκπαίδευσης
|
|
12
|
-
</ListItem>
|
|
13
|
-
<ListItem>
|
|
14
|
-
Υπεύθυνη Δήλωση / Εξουσιοδότηση / Γνήσιο Υπογραφής
|
|
15
|
-
</ListItem>
|
|
7
|
+
<ListItem>Αποτελέσματα διαγνωστικών εργαστηριακών εξετάσεων</ListItem>
|
|
8
|
+
<ListItem>Πτυχία τριτοβάθμιας εκπαίδευσης</ListItem>
|
|
9
|
+
<ListItem>Υπεύθυνη Δήλωση / Εξουσιοδότηση / Γνήσιο Υπογραφής</ListItem>
|
|
16
10
|
</List>
|
|
17
11
|
);
|
|
18
12
|
|