@digigov/ui 1.2.0-dcbd7ded → 2.0.0-0edebf87
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/BannerContainer/index.test/index.js +43 -0
- package/{form/AutoComplete/__stories__/WithInLine → app/BannerContainer/index.test}/package.json +1 -1
- package/app/BannerContainer/index.test.d.ts +1 -0
- package/app/Footer/index.mdx +18 -5
- package/app/Footer/index.test/index.js +64 -0
- package/app/Footer/index.test/package.json +6 -0
- package/app/Footer/index.test.d.ts +1 -0
- package/app/Footer/interaction.test/index.js +46 -0
- package/app/Footer/interaction.test/package.json +6 -0
- package/app/Footer/interaction.test.d.ts +1 -0
- package/app/Header/index.mdx +7 -5
- package/app/Header/index.test/index.js +55 -0
- package/app/Header/index.test/package.json +6 -0
- package/app/Header/index.test.d.ts +1 -0
- package/app/Loader/index.test/index.js +43 -0
- package/app/Loader/index.test/package.json +6 -0
- package/app/Loader/index.test.d.ts +1 -0
- package/app/Masthead/index.mdx +9 -4
- package/app/Masthead/index.test/index.js +49 -0
- package/app/Masthead/index.test/package.json +6 -0
- package/app/Masthead/index.test.d.ts +1 -0
- package/app/Masthead/interaction.test/index.js +43 -0
- package/app/Masthead/interaction.test/package.json +6 -0
- package/app/Masthead/interaction.test.d.ts +1 -0
- package/app/Modal/Modal.stories/index.js +2 -1
- package/app/Modal/Modal.stories.d.ts +1 -0
- package/app/Modal/__stories__/WithoutModalGaps/index.js +36 -0
- package/app/Modal/__stories__/WithoutModalGaps/package.json +6 -0
- package/app/Modal/__stories__/WithoutModalGaps.d.ts +3 -0
- package/app/Modal/auto/index.js +4 -2
- package/app/Modal/auto.d.ts +2 -2
- package/app/Modal/index.d.ts +2 -2
- package/app/Modal/index.js +5 -3
- package/app/Modal/index.mdx +11 -4
- package/app/Modal/index.test/index.js +55 -0
- package/app/Modal/index.test/package.json +6 -0
- package/app/Modal/index.test.d.ts +1 -0
- package/app/Modal/interaction.test/index.js +119 -0
- package/app/Modal/interaction.test/package.json +6 -0
- package/app/Modal/interaction.test.d.ts +1 -0
- package/app/NotFound/index.mdx +2 -0
- package/app/NotFound/index.test/index.js +43 -0
- package/app/NotFound/index.test/package.json +6 -0
- package/app/NotFound/index.test.d.ts +1 -0
- package/app/Panel/index.mdx +9 -4
- package/app/Panel/index.test/index.js +43 -0
- package/app/Panel/index.test/package.json +6 -0
- package/app/Panel/index.test.d.ts +1 -0
- package/app/PhaseBannerHeader/index.mdx +4 -4
- package/app/PhaseBannerHeader/index.test/index.js +43 -0
- package/app/PhaseBannerHeader/index.test/package.json +6 -0
- package/app/PhaseBannerHeader/index.test.d.ts +1 -0
- package/app/QrCodeViewer/index.mdx +4 -4
- package/app/QrCodeViewer/index.test/index.js +46 -0
- package/app/QrCodeViewer/index.test/package.json +6 -0
- package/app/QrCodeViewer/index.test.d.ts +1 -0
- package/app/Skeleton/Skeleton.stories/index.js +17 -0
- package/app/Skeleton/Skeleton.stories/package.json +6 -0
- package/app/Skeleton/Skeleton.stories.d.ts +18 -0
- package/app/Skeleton/__stories__/Button/index.js +9 -0
- package/app/Skeleton/__stories__/Button/package.json +6 -0
- package/app/Skeleton/__stories__/Button.d.ts +3 -0
- package/app/Skeleton/__stories__/Circular/index.js +11 -0
- package/app/Skeleton/__stories__/Circular/package.json +6 -0
- package/app/Skeleton/__stories__/Circular.d.ts +3 -0
- package/app/Skeleton/__stories__/Default/index.js +7 -0
- package/app/Skeleton/__stories__/Default/package.json +6 -0
- package/app/Skeleton/__stories__/Default.d.ts +3 -0
- package/app/Skeleton/__stories__/NoAnimation/index.js +9 -0
- package/app/Skeleton/__stories__/NoAnimation/package.json +6 -0
- package/app/Skeleton/__stories__/NoAnimation.d.ts +3 -0
- package/app/Skeleton/__stories__/Rectangular/index.js +10 -0
- package/app/Skeleton/__stories__/Rectangular/package.json +6 -0
- package/app/Skeleton/__stories__/Rectangular.d.ts +3 -0
- package/app/Skeleton/__stories__/SpecificWidthAndHeight/index.js +10 -0
- package/app/Skeleton/__stories__/SpecificWidthAndHeight/package.json +6 -0
- package/app/Skeleton/__stories__/SpecificWidthAndHeight.d.ts +3 -0
- package/app/Skeleton/__stories__/TextSizes/index.js +26 -0
- package/app/Skeleton/__stories__/TextSizes/package.json +6 -0
- package/app/Skeleton/__stories__/TextSizes.d.ts +3 -0
- package/app/Skeleton/__stories__/UnderTypography/index.js +10 -0
- package/app/Skeleton/__stories__/UnderTypography/package.json +6 -0
- package/app/Skeleton/__stories__/UnderTypography.d.ts +3 -0
- package/app/Skeleton/__stories__/WithChildren/index.js +8 -0
- package/app/Skeleton/__stories__/WithChildren/package.json +6 -0
- package/app/Skeleton/__stories__/WithChildren.d.ts +3 -0
- package/app/Skeleton/index.d.ts +3 -0
- package/app/Skeleton/index.js +3 -0
- package/app/Skeleton/package.json +6 -0
- package/app/ThemeOptions/index.d.ts +1 -1
- package/cjs/app/BannerContainer/index.test/index.js +46 -0
- package/cjs/app/Footer/index.mdx +18 -5
- package/cjs/app/Footer/index.test/index.js +67 -0
- package/cjs/app/Footer/interaction.test/index.js +49 -0
- package/cjs/app/Header/index.mdx +7 -5
- package/cjs/app/Header/index.test/index.js +58 -0
- package/cjs/app/Loader/index.test/index.js +46 -0
- package/cjs/app/Masthead/index.mdx +9 -4
- package/cjs/app/Masthead/index.test/index.js +52 -0
- package/cjs/app/Masthead/interaction.test/index.js +46 -0
- package/cjs/app/Modal/Modal.stories/index.js +12 -0
- package/cjs/app/Modal/__stories__/WithoutModalGaps/index.js +46 -0
- package/cjs/app/Modal/auto/index.js +4 -2
- package/cjs/app/Modal/index.js +5 -3
- package/cjs/app/Modal/index.mdx +11 -4
- package/cjs/app/Modal/index.test/index.js +58 -0
- package/cjs/app/Modal/interaction.test/index.js +122 -0
- package/cjs/app/NotFound/index.mdx +2 -0
- package/cjs/app/NotFound/index.test/index.js +46 -0
- package/cjs/app/Panel/index.mdx +9 -4
- package/cjs/app/Panel/index.test/index.js +46 -0
- package/cjs/app/PhaseBannerHeader/index.mdx +4 -4
- package/cjs/app/PhaseBannerHeader/index.test/index.js +46 -0
- package/cjs/app/QrCodeViewer/index.mdx +4 -4
- package/cjs/app/QrCodeViewer/index.test/index.js +49 -0
- package/cjs/app/Skeleton/Skeleton.stories/index.js +123 -0
- package/cjs/app/Skeleton/__stories__/Button/index.js +16 -0
- package/cjs/app/Skeleton/__stories__/Circular/index.js +18 -0
- package/cjs/app/Skeleton/__stories__/Default/index.js +14 -0
- package/cjs/app/Skeleton/__stories__/NoAnimation/index.js +16 -0
- package/cjs/app/Skeleton/__stories__/Rectangular/index.js +17 -0
- package/cjs/app/Skeleton/__stories__/SpecificWidthAndHeight/index.js +17 -0
- package/cjs/app/Skeleton/__stories__/TextSizes/index.js +33 -0
- package/cjs/app/Skeleton/__stories__/UnderTypography/index.js +17 -0
- package/cjs/app/Skeleton/__stories__/WithChildren/index.js +15 -0
- package/cjs/app/Skeleton/index.js +23 -0
- package/cjs/content/Accordion/__stories__/Auto/index.js +2 -3
- package/cjs/content/Accordion/hooks/index.js +0 -1
- package/cjs/content/Accordion/index.mdx +9 -5
- package/cjs/content/Accordion/index.test/index.js +55 -0
- package/cjs/content/Accordion/interaction.test/index.js +46 -0
- package/cjs/content/Blockquote/index.mdx +3 -5
- package/cjs/content/Blockquote/index.test/index.js +49 -0
- package/cjs/content/Card/index.mdx +3 -5
- package/cjs/content/Card/index.test/index.js +76 -0
- package/cjs/content/Chip/index.mdx +4 -5
- package/cjs/content/Chip/index.test/index.js +58 -0
- package/cjs/content/Details/Details.stories.playwright.json +1 -7
- package/cjs/content/Details/index.mdx +3 -5
- package/cjs/content/Details/index.test/index.js +46 -0
- package/cjs/content/Details/interaction.test/index.js +46 -0
- package/cjs/content/List/__stories__/Default/index.js +1 -2
- package/cjs/content/List/index.mdx +3 -5
- package/cjs/content/List/index.test/index.js +61 -0
- package/cjs/content/SafeHTML/index.js +5 -8
- package/cjs/content/StepNav/index.mdx +28 -5
- package/cjs/content/StepNav/index.test/index.js +58 -0
- package/cjs/content/StepNav/interaction.test/index.js +52 -0
- package/cjs/content/SummaryList/index.mdx +10 -5
- package/cjs/content/SummaryList/index.test/index.js +61 -0
- package/cjs/content/SummaryList/interaction.test/index.js +49 -0
- package/cjs/content/Table/__stories__/WithLoader/index.js +2 -0
- package/cjs/content/Table/index.js +2 -2
- package/cjs/content/Table/index.mdx +13 -14
- package/cjs/content/Table/index.test/index.js +106 -0
- package/cjs/content/Table/interaction.test/index.js +46 -0
- package/cjs/content/TaskList/index.mdx +9 -5
- package/cjs/content/TaskList/index.test/index.js +49 -0
- package/cjs/content/Timeline/index.mdx +10 -5
- package/cjs/content/Timeline/index.test/index.js +49 -0
- package/cjs/feedback/CopyToClipboard/index.mdx +3 -5
- package/cjs/feedback/CopyToClipboard/index.test/index.js +52 -0
- package/cjs/feedback/CopyToClipboard/interaction.test/index.js +122 -0
- package/cjs/feedback/ErrorSummary/index.mdx +3 -5
- package/cjs/feedback/ErrorSummary/index.test/index.js +61 -0
- package/cjs/feedback/NotificationBanner/index.mdx +14 -5
- package/cjs/feedback/NotificationBanner/index.test/index.js +52 -0
- package/cjs/feedback/NotificationBanner/interaction.test/index.js +90 -0
- package/cjs/feedback/PhaseBanner/index.mdx +8 -5
- package/cjs/feedback/PhaseBanner/index.test/index.js +49 -0
- package/cjs/feedback/PhaseBanner/interaction.test/index.js +46 -0
- package/cjs/feedback/WarningText/index.mdx +5 -5
- package/cjs/feedback/WarningText/index.test/index.js +52 -0
- package/cjs/form/AutoComplete/AutoComplete.stories/index.js +44 -8
- package/cjs/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
- package/cjs/form/AutoComplete/Status/index.js +12 -5
- package/cjs/form/AutoComplete/__stories__/Multiple/index.js +24 -0
- package/cjs/form/AutoComplete/__stories__/{WithInLine → MultipleShowingTwoSelected}/index.js +7 -6
- package/cjs/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +23 -0
- package/cjs/form/AutoComplete/__stories__/MultipleWithMinLength/index.js +26 -0
- package/cjs/form/AutoComplete/__stories__/WithShowAllValues/index.js +0 -1
- package/cjs/form/AutoComplete/index.js +334 -206
- package/cjs/form/AutoComplete/index.mdx +13 -20
- package/cjs/form/AutoComplete/index.test/index.js +73 -0
- package/cjs/form/AutoComplete/interaction.test/index.js +52 -0
- package/cjs/form/AutoComplete/utils/index.js +2 -1
- package/cjs/form/Button/Button.stories.playwright.json +1 -7
- package/cjs/form/Button/index.mdx +3 -5
- package/cjs/form/Button/index.test/index.js +79 -0
- package/cjs/form/Button/interaction.test/index.js +169 -0
- package/cjs/form/Checkbox/index.mdx +3 -5
- package/cjs/form/Checkbox/index.test/index.js +73 -0
- package/cjs/form/Checkbox/interaction.test/index.js +93 -0
- package/cjs/form/DateInputContainer/index.mdx +3 -5
- package/cjs/form/DateInputContainer/index.test/index.js +58 -0
- package/cjs/form/DateInputContainer/interaction.test/index.js +49 -0
- package/cjs/form/ErrorMessage/index.mdx +3 -5
- package/cjs/form/ErrorMessage/index.test/index.js +52 -0
- package/cjs/form/FileUpload/index.mdx +3 -5
- package/cjs/form/FileUpload/index.test/index.js +49 -0
- package/cjs/form/RadioContainer/index.mdx +2 -14
- package/cjs/form/RadioContainer/index.test/index.js +73 -0
- package/cjs/form/RadioContainer/interaction.test/index.js +90 -0
- package/cjs/form/SelectContainer/index.mdx +3 -1
- package/cjs/form/SelectContainer/index.test/index.js +55 -0
- package/cjs/form/SelectContainer/interaction.test/index.js +46 -0
- package/cjs/form/SingleCharacterInputs/index.mdx +3 -5
- package/cjs/form/SingleCharacterInputs/index.test/index.js +55 -0
- package/cjs/form/TextArea/index.mdx +3 -5
- package/cjs/form/TextArea/index.test/index.js +67 -0
- package/cjs/form/TextArea/interaction.test/index.js +87 -0
- package/cjs/form/TextInput/TextInput.stories/index.js +12 -0
- package/cjs/form/TextInput/__stories__/DisabledInputWithValue/index.js +31 -0
- package/cjs/form/TextInput/index.mdx +3 -5
- package/cjs/form/TextInput/index.test/index.js +73 -0
- package/cjs/form/TextInput/interaction.test/index.js +49 -0
- package/cjs/govgr/Footer/index.mdx +1 -1
- package/cjs/i18n/locales/el/index.js +2 -2
- package/cjs/i18n/locales/en/index.js +2 -2
- package/cjs/layouts/Basic/Basic.stories/index.js +12 -0
- package/cjs/layouts/Basic/Bottom/__stories__/Default/index.js +22 -0
- package/cjs/layouts/Basic/Bottom/index.mdx +9 -28
- package/cjs/layouts/Basic/Container/__stories__/Default/index.js +20 -0
- package/cjs/layouts/Basic/Container/index.mdx +23 -0
- package/cjs/layouts/Basic/Main/__stories__/Default/index.js +20 -0
- package/cjs/layouts/Basic/Main/index.mdx +10 -47
- package/cjs/layouts/Basic/Top/__stories__/Default/index.js +20 -0
- package/cjs/layouts/Basic/Top/index.mdx +10 -55
- package/cjs/layouts/Basic/__stories__/WithBasicLayout/index.js +19 -0
- package/cjs/layouts/Basic/index.mdx +27 -25
- package/cjs/layouts/Basic/index.test/index.js +55 -0
- package/cjs/layouts/Grid/index.mdx +39 -0
- package/cjs/layouts/Grid/index.test/index.js +52 -0
- package/cjs/layouts/Screen/index.test/index.js +55 -0
- package/cjs/layouts/Stack/index.test/index.js +61 -0
- package/cjs/lazy/index.js +155 -11
- package/cjs/navigation/BackLink/index.mdx +4 -5
- package/cjs/navigation/BackLink/index.test/index.js +46 -0
- package/cjs/navigation/BackLink/interaction.test/index.js +46 -0
- package/cjs/navigation/BackToTopLink/index.test/index.js +49 -0
- package/cjs/navigation/Breadcrumbs/index.mdx +6 -5
- package/cjs/navigation/Breadcrumbs/index.test/index.js +46 -0
- package/cjs/navigation/Breadcrumbs/interaction.test/index.js +52 -0
- package/cjs/navigation/Drawer/auto/index.js +4 -2
- package/cjs/navigation/Drawer/index.mdx +4 -10
- package/cjs/navigation/Drawer/index.test/index.js +52 -0
- package/cjs/navigation/Dropdown/Dropdown.stories/index.js +12 -0
- package/cjs/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/cjs/navigation/Dropdown/__stories__/ScrollableContent/index.js +68 -0
- package/cjs/navigation/Dropdown/index.mdx +3 -5
- package/cjs/navigation/Dropdown/index.test/index.js +76 -0
- package/cjs/navigation/Dropdown/interaction.test/index.js +198 -0
- package/cjs/navigation/Link/Link.stories/index.js +12 -0
- package/cjs/navigation/Link/__stories__/WithProvider/index.js +23 -0
- package/cjs/navigation/Link/index.mdx +5 -15
- package/cjs/navigation/Link/index.test/index.js +64 -0
- package/cjs/navigation/Link/interaction.test/index.js +128 -0
- package/cjs/navigation/NavList/__stories__/Default/index.js +14 -2
- package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +35 -2
- package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +35 -2
- package/cjs/navigation/NavList/__stories__/NavListWithoutNav/index.js +14 -2
- package/cjs/navigation/NavList/__stories__/UsingNavListAuto/index.js +37 -4
- package/cjs/navigation/NavList/__stories__/Vertical/index.js +14 -2
- package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +35 -2
- package/cjs/navigation/NavList/index.mdx +23 -7
- package/cjs/navigation/NavList/index.test/index.js +67 -0
- package/cjs/navigation/Pagination/index.mdx +9 -5
- package/cjs/navigation/Pagination/index.test/index.js +64 -0
- package/cjs/navigation/Pagination/interaction.test/index.js +49 -0
- package/cjs/navigation/SkipLink/index.test/index.js +46 -0
- package/cjs/navigation/Tabs/index.mdx +9 -5
- package/cjs/navigation/Tabs/index.test/index.js +52 -0
- package/cjs/navigation/Tabs/interaction.test/index.js +49 -0
- package/cjs/registry/index.js +8 -0
- package/cjs/typography/Heading/index.mdx +3 -5
- package/cjs/typography/Heading/index.test/index.js +46 -0
- package/cjs/typography/HeadingCaption/index.mdx +3 -5
- package/cjs/typography/HeadingCaption/index.test/index.js +49 -0
- package/cjs/typography/Hint/index.mdx +3 -5
- package/cjs/typography/Hint/index.test/index.js +49 -0
- package/cjs/typography/NormalText/index.mdx +3 -5
- package/cjs/typography/NormalText/index.test/index.js +55 -0
- package/cjs/typography/Paragraph/index.mdx +9 -30
- package/cjs/typography/Paragraph/index.test/index.js +58 -0
- package/cjs/typography/Typography/index.js +23 -0
- package/cjs/typography/Typography/index.mdx +12 -0
- package/cjs/typography/index.js +11 -0
- package/cjs/utils/Base/index.mdx +13 -0
- package/cjs/utils/TestVariant/index.js +25 -0
- package/cjs/utils/VisuallyHidden/index.mdx +10 -5
- package/cjs/utils/VisuallyHidden/index.test/index.js +46 -0
- package/content/Accordion/__stories__/Auto/index.js +2 -3
- package/content/Accordion/auto.d.ts +3 -3
- package/content/Accordion/hooks/index.js +0 -1
- package/content/Accordion/index.mdx +9 -5
- package/content/Accordion/index.test/index.js +52 -0
- package/content/Accordion/index.test/package.json +6 -0
- package/content/Accordion/index.test.d.ts +1 -0
- package/content/Accordion/interaction.test/index.js +43 -0
- package/content/Accordion/interaction.test/package.json +6 -0
- package/content/Accordion/interaction.test.d.ts +1 -0
- package/content/Blockquote/index.mdx +3 -5
- package/content/Blockquote/index.test/index.js +46 -0
- package/content/Blockquote/index.test/package.json +6 -0
- package/content/Blockquote/index.test.d.ts +1 -0
- package/content/Card/index.mdx +3 -5
- package/content/Card/index.test/index.js +73 -0
- package/content/Card/index.test/package.json +6 -0
- package/content/Card/index.test.d.ts +1 -0
- package/content/Chip/index.mdx +4 -5
- package/content/Chip/index.test/index.js +55 -0
- package/content/Chip/index.test/package.json +6 -0
- package/content/Chip/index.test.d.ts +1 -0
- package/content/Details/Details.stories.playwright.json +1 -7
- package/content/Details/index.mdx +3 -5
- package/content/Details/index.test/index.js +43 -0
- package/content/Details/index.test/package.json +6 -0
- package/content/Details/index.test.d.ts +1 -0
- package/content/Details/interaction.test/index.js +43 -0
- package/content/Details/interaction.test/package.json +6 -0
- package/content/Details/interaction.test.d.ts +1 -0
- package/content/List/__stories__/Default/index.js +1 -2
- package/content/List/index.mdx +3 -5
- package/content/List/index.test/index.js +58 -0
- package/content/List/index.test/package.json +6 -0
- package/content/List/index.test.d.ts +1 -0
- package/content/SafeHTML/index.d.ts +1 -1
- package/content/SafeHTML/index.js +5 -8
- package/content/StepNav/auto.d.ts +3 -3
- package/content/StepNav/index.mdx +28 -5
- package/content/StepNav/index.test/index.js +55 -0
- package/content/StepNav/index.test/package.json +6 -0
- package/content/StepNav/index.test.d.ts +1 -0
- package/content/StepNav/interaction.test/index.js +49 -0
- package/content/StepNav/interaction.test/package.json +6 -0
- package/content/StepNav/interaction.test.d.ts +1 -0
- package/content/SummaryList/index.mdx +10 -5
- package/content/SummaryList/index.test/index.js +58 -0
- package/content/SummaryList/index.test/package.json +6 -0
- package/content/SummaryList/index.test.d.ts +1 -0
- package/content/SummaryList/interaction.test/index.js +46 -0
- package/content/SummaryList/interaction.test/package.json +6 -0
- package/content/SummaryList/interaction.test.d.ts +1 -0
- package/content/Table/__stories__/WithLoader/index.js +1 -0
- package/content/Table/index.d.ts +1 -1
- package/content/Table/index.js +2 -2
- package/content/Table/index.mdx +13 -14
- package/content/Table/index.test/index.js +103 -0
- package/content/Table/index.test/package.json +6 -0
- package/content/Table/index.test.d.ts +1 -0
- package/content/Table/interaction.test/index.js +43 -0
- package/content/Table/interaction.test/package.json +6 -0
- package/content/Table/interaction.test.d.ts +1 -0
- package/content/TaskList/index.mdx +9 -5
- package/content/TaskList/index.test/index.js +46 -0
- package/content/TaskList/index.test/package.json +6 -0
- package/content/TaskList/index.test.d.ts +1 -0
- package/content/Timeline/index.mdx +10 -5
- package/content/Timeline/index.test/index.js +46 -0
- package/content/Timeline/index.test/package.json +6 -0
- package/content/Timeline/index.test.d.ts +1 -0
- package/feedback/CopyToClipboard/index.d.ts +1 -1
- package/feedback/CopyToClipboard/index.mdx +3 -5
- package/feedback/CopyToClipboard/index.test/index.js +49 -0
- package/feedback/CopyToClipboard/index.test/package.json +6 -0
- package/feedback/CopyToClipboard/index.test.d.ts +1 -0
- package/feedback/CopyToClipboard/interaction.test/index.js +119 -0
- package/feedback/CopyToClipboard/interaction.test/package.json +6 -0
- package/feedback/CopyToClipboard/interaction.test.d.ts +1 -0
- package/feedback/ErrorSummary/index.mdx +3 -5
- package/feedback/ErrorSummary/index.test/index.js +58 -0
- package/feedback/ErrorSummary/index.test/package.json +6 -0
- package/feedback/ErrorSummary/index.test.d.ts +1 -0
- package/feedback/NotificationBanner/index.mdx +14 -5
- package/feedback/NotificationBanner/index.test/index.js +49 -0
- package/feedback/NotificationBanner/index.test/package.json +6 -0
- package/feedback/NotificationBanner/index.test.d.ts +1 -0
- package/feedback/NotificationBanner/interaction.test/index.js +87 -0
- package/feedback/NotificationBanner/interaction.test/package.json +6 -0
- package/feedback/NotificationBanner/interaction.test.d.ts +1 -0
- package/feedback/PhaseBanner/index.mdx +8 -5
- package/feedback/PhaseBanner/index.test/index.js +46 -0
- package/feedback/PhaseBanner/index.test/package.json +6 -0
- package/feedback/PhaseBanner/index.test.d.ts +1 -0
- package/feedback/PhaseBanner/interaction.test/index.js +43 -0
- package/feedback/PhaseBanner/interaction.test/package.json +6 -0
- package/feedback/PhaseBanner/interaction.test.d.ts +1 -0
- package/feedback/WarningText/index.mdx +5 -5
- package/feedback/WarningText/index.test/index.js +49 -0
- package/feedback/WarningText/index.test/package.json +6 -0
- package/feedback/WarningText/index.test.d.ts +1 -0
- package/form/AutoComplete/AutoComplete.stories/index.js +4 -1
- package/form/AutoComplete/AutoComplete.stories.d.ts +4 -1
- package/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
- package/form/AutoComplete/Status/index.d.ts +4 -2
- package/form/AutoComplete/Status/index.js +11 -4
- package/form/AutoComplete/__stories__/Multiple/index.js +17 -0
- package/form/AutoComplete/__stories__/Multiple/package.json +6 -0
- package/form/AutoComplete/__stories__/Multiple.d.ts +3 -0
- package/form/AutoComplete/__stories__/{WithInLine → MultipleShowingTwoSelected}/index.js +6 -5
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected/package.json +6 -0
- package/form/AutoComplete/__stories__/MultipleShowingTwoSelected.d.ts +3 -0
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +16 -0
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues/package.json +6 -0
- package/form/AutoComplete/__stories__/MultipleWithDefaultValues.d.ts +3 -0
- package/form/AutoComplete/__stories__/MultipleWithMinLength/index.js +19 -0
- package/form/AutoComplete/__stories__/MultipleWithMinLength/package.json +6 -0
- package/form/AutoComplete/__stories__/MultipleWithMinLength.d.ts +3 -0
- package/form/AutoComplete/__stories__/WithShowAllValues/index.js +0 -1
- package/form/AutoComplete/index.d.ts +13 -20
- package/form/AutoComplete/index.js +317 -201
- package/form/AutoComplete/index.mdx +13 -20
- package/form/AutoComplete/index.test/index.js +70 -0
- package/form/AutoComplete/index.test/package.json +6 -0
- package/form/AutoComplete/index.test.d.ts +1 -0
- package/form/AutoComplete/interaction.test/index.js +49 -0
- package/form/AutoComplete/interaction.test/package.json +6 -0
- package/form/AutoComplete/interaction.test.d.ts +1 -0
- package/form/AutoComplete/utils/index.js +2 -1
- package/form/AutoComplete/utils.d.ts +1 -0
- package/form/Button/Button.stories.playwright.json +1 -7
- package/form/Button/index.mdx +3 -5
- package/form/Button/index.test/index.js +76 -0
- package/form/Button/index.test/package.json +6 -0
- package/form/Button/index.test.d.ts +1 -0
- package/form/Button/interaction.test/index.js +166 -0
- package/form/Button/interaction.test/package.json +6 -0
- package/form/Button/interaction.test.d.ts +1 -0
- package/form/Checkbox/index.mdx +3 -5
- package/form/Checkbox/index.test/index.js +70 -0
- package/form/Checkbox/index.test/package.json +6 -0
- package/form/Checkbox/index.test.d.ts +1 -0
- package/form/Checkbox/interaction.test/index.js +90 -0
- package/form/Checkbox/interaction.test/package.json +6 -0
- package/form/Checkbox/interaction.test.d.ts +1 -0
- package/form/DateInputContainer/index.mdx +3 -5
- package/form/DateInputContainer/index.test/index.js +55 -0
- package/form/DateInputContainer/index.test/package.json +6 -0
- package/form/DateInputContainer/index.test.d.ts +1 -0
- package/form/DateInputContainer/interaction.test/index.js +46 -0
- package/form/DateInputContainer/interaction.test/package.json +6 -0
- package/form/DateInputContainer/interaction.test.d.ts +1 -0
- package/form/ErrorMessage/index.mdx +3 -5
- package/form/ErrorMessage/index.test/index.js +49 -0
- package/form/ErrorMessage/index.test/package.json +6 -0
- package/form/ErrorMessage/index.test.d.ts +1 -0
- package/form/FileUpload/index.mdx +3 -5
- package/form/FileUpload/index.test/index.js +46 -0
- package/form/FileUpload/index.test/package.json +6 -0
- package/form/FileUpload/index.test.d.ts +1 -0
- package/form/RadioContainer/index.mdx +2 -14
- package/form/RadioContainer/index.test/index.js +70 -0
- package/form/RadioContainer/index.test/package.json +6 -0
- package/form/RadioContainer/index.test.d.ts +1 -0
- package/form/RadioContainer/interaction.test/index.js +87 -0
- package/form/RadioContainer/interaction.test/package.json +6 -0
- package/form/RadioContainer/interaction.test.d.ts +1 -0
- package/form/SelectContainer/index.mdx +3 -1
- package/form/SelectContainer/index.test/index.js +52 -0
- package/form/SelectContainer/index.test/package.json +6 -0
- package/form/SelectContainer/index.test.d.ts +1 -0
- package/form/SelectContainer/interaction.test/index.js +43 -0
- package/form/SelectContainer/interaction.test/package.json +6 -0
- package/form/SelectContainer/interaction.test.d.ts +1 -0
- package/form/SingleCharacterInputs/index.mdx +3 -5
- package/form/SingleCharacterInputs/index.test/index.js +52 -0
- package/form/SingleCharacterInputs/index.test/package.json +6 -0
- package/form/SingleCharacterInputs/index.test.d.ts +1 -0
- package/form/TextArea/index.mdx +3 -5
- package/form/TextArea/index.test/index.js +64 -0
- package/form/TextArea/index.test/package.json +6 -0
- package/form/TextArea/index.test.d.ts +1 -0
- package/form/TextArea/interaction.test/index.js +84 -0
- package/form/TextArea/interaction.test/package.json +6 -0
- package/form/TextArea/interaction.test.d.ts +1 -0
- package/form/TextInput/TextInput.stories/index.js +1 -0
- package/form/TextInput/TextInput.stories.d.ts +1 -0
- package/form/TextInput/__stories__/DisabledInputWithValue/index.js +25 -0
- package/form/TextInput/__stories__/DisabledInputWithValue/package.json +6 -0
- package/form/TextInput/__stories__/DisabledInputWithValue.d.ts +3 -0
- package/form/TextInput/index.mdx +3 -5
- package/form/TextInput/index.test/index.js +70 -0
- package/form/TextInput/index.test/package.json +6 -0
- package/form/TextInput/index.test.d.ts +1 -0
- package/form/TextInput/interaction.test/index.js +46 -0
- package/form/TextInput/interaction.test/package.json +6 -0
- package/form/TextInput/interaction.test.d.ts +1 -0
- package/govgr/Footer/index.mdx +1 -1
- package/i18n/locales/el/index.js +2 -2
- package/i18n/locales/en/index.js +2 -2
- package/index.js +1 -1
- package/layouts/Basic/Basic.stories/index.js +2 -1
- package/layouts/Basic/Basic.stories.d.ts +1 -0
- package/layouts/Basic/Bottom/__stories__/Default/index.js +15 -0
- package/layouts/Basic/Bottom/__stories__/Default/package.json +6 -0
- package/layouts/Basic/Bottom/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/Bottom/index.mdx +9 -28
- package/layouts/Basic/Container/__stories__/Default/index.js +13 -0
- package/layouts/Basic/Container/__stories__/Default/package.json +6 -0
- package/layouts/Basic/Container/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/Container/index.mdx +23 -0
- package/layouts/Basic/Main/__stories__/Default/index.js +13 -0
- package/layouts/Basic/Main/__stories__/Default/package.json +6 -0
- package/layouts/Basic/Main/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/Main/index.mdx +10 -47
- package/layouts/Basic/Top/__stories__/Default/index.js +13 -0
- package/layouts/Basic/Top/__stories__/Default/package.json +6 -0
- package/layouts/Basic/Top/__stories__/Default.d.ts +3 -0
- package/layouts/Basic/Top/index.mdx +10 -55
- package/layouts/Basic/__stories__/WithBasicLayout/index.js +12 -0
- package/layouts/Basic/__stories__/WithBasicLayout/package.json +6 -0
- package/layouts/Basic/__stories__/WithBasicLayout.d.ts +3 -0
- package/layouts/Basic/index.mdx +27 -25
- package/layouts/Basic/index.test/index.js +52 -0
- package/layouts/Basic/index.test/package.json +6 -0
- package/layouts/Basic/index.test.d.ts +1 -0
- package/layouts/Grid/index.mdx +39 -0
- package/layouts/Grid/index.test/index.js +49 -0
- package/layouts/Grid/index.test/package.json +6 -0
- package/layouts/Grid/index.test.d.ts +1 -0
- package/layouts/Screen/index.test/index.js +52 -0
- package/layouts/Screen/index.test/package.json +6 -0
- package/layouts/Screen/index.test.d.ts +1 -0
- package/layouts/Stack/index.test/index.js +58 -0
- package/layouts/Stack/index.test/package.json +6 -0
- package/layouts/Stack/index.test.d.ts +1 -0
- package/lazy/index.js +123 -11
- package/lazy.d.ts +270 -254
- package/navigation/BackLink/index.mdx +4 -5
- package/navigation/BackLink/index.test/index.js +43 -0
- package/navigation/BackLink/index.test/package.json +6 -0
- package/navigation/BackLink/index.test.d.ts +1 -0
- package/navigation/BackLink/interaction.test/index.js +43 -0
- package/navigation/BackLink/interaction.test/package.json +6 -0
- package/navigation/BackLink/interaction.test.d.ts +1 -0
- package/navigation/BackToTopLink/index.test/index.js +46 -0
- package/navigation/BackToTopLink/index.test/package.json +6 -0
- package/navigation/BackToTopLink/index.test.d.ts +1 -0
- package/navigation/Breadcrumbs/index.mdx +6 -5
- package/navigation/Breadcrumbs/index.test/index.js +43 -0
- package/navigation/Breadcrumbs/index.test/package.json +6 -0
- package/navigation/Breadcrumbs/index.test.d.ts +1 -0
- package/navigation/Breadcrumbs/interaction.test/index.js +49 -0
- package/navigation/Breadcrumbs/interaction.test/package.json +6 -0
- package/navigation/Breadcrumbs/interaction.test.d.ts +1 -0
- package/navigation/Drawer/auto/index.js +4 -2
- package/navigation/Drawer/auto.d.ts +3 -3
- package/navigation/Drawer/index.mdx +4 -10
- package/navigation/Drawer/index.test/index.js +49 -0
- package/navigation/Drawer/index.test/package.json +6 -0
- package/navigation/Drawer/index.test.d.ts +1 -0
- package/navigation/Dropdown/Dropdown.stories/index.js +1 -0
- package/navigation/Dropdown/Dropdown.stories.d.ts +1 -0
- package/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/navigation/Dropdown/__stories__/ScrollableContent/index.js +61 -0
- package/navigation/Dropdown/__stories__/ScrollableContent/package.json +6 -0
- package/navigation/Dropdown/__stories__/ScrollableContent.d.ts +3 -0
- package/navigation/Dropdown/index.d.ts +1 -1
- package/navigation/Dropdown/index.mdx +3 -5
- package/navigation/Dropdown/index.test/index.js +73 -0
- package/navigation/Dropdown/index.test/package.json +6 -0
- package/navigation/Dropdown/index.test.d.ts +1 -0
- package/navigation/Dropdown/interaction.test/index.js +195 -0
- package/navigation/Dropdown/interaction.test/package.json +6 -0
- package/navigation/Dropdown/interaction.test.d.ts +1 -0
- package/navigation/Link/Link.stories/index.js +2 -1
- package/navigation/Link/Link.stories.d.ts +1 -0
- package/navigation/Link/__stories__/WithProvider/index.js +16 -0
- package/navigation/Link/__stories__/WithProvider/package.json +6 -0
- package/navigation/Link/__stories__/WithProvider.d.ts +3 -0
- package/navigation/Link/index.mdx +5 -15
- package/navigation/Link/index.test/index.js +61 -0
- package/navigation/Link/index.test/package.json +6 -0
- package/navigation/Link/index.test.d.ts +1 -0
- package/navigation/Link/interaction.test/index.js +125 -0
- package/navigation/Link/interaction.test/package.json +6 -0
- package/navigation/Link/interaction.test.d.ts +1 -0
- package/navigation/NavList/__stories__/Default/index.js +13 -1
- package/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +34 -1
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +34 -1
- package/navigation/NavList/__stories__/NavListWithoutNav/index.js +13 -1
- package/navigation/NavList/__stories__/UsingNavListAuto/index.js +35 -2
- package/navigation/NavList/__stories__/Vertical/index.js +13 -1
- package/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +34 -1
- package/navigation/NavList/index.mdx +23 -7
- package/navigation/NavList/index.test/index.js +64 -0
- package/navigation/NavList/index.test/package.json +6 -0
- package/navigation/NavList/index.test.d.ts +1 -0
- package/navigation/NavList/types.d.ts +1 -2
- package/navigation/Pagination/auto.d.ts +4 -4
- package/navigation/Pagination/index.d.ts +2 -2
- package/navigation/Pagination/index.mdx +9 -5
- package/navigation/Pagination/index.test/index.js +61 -0
- package/navigation/Pagination/index.test/package.json +6 -0
- package/navigation/Pagination/index.test.d.ts +1 -0
- package/navigation/Pagination/interaction.test/index.js +46 -0
- package/navigation/Pagination/interaction.test/package.json +6 -0
- package/navigation/Pagination/interaction.test.d.ts +1 -0
- package/navigation/SkipLink/index.test/index.js +43 -0
- package/navigation/SkipLink/index.test/package.json +6 -0
- package/navigation/SkipLink/index.test.d.ts +1 -0
- package/navigation/Tabs/auto.d.ts +2 -2
- package/navigation/Tabs/index.mdx +9 -5
- package/navigation/Tabs/index.test/index.js +49 -0
- package/navigation/Tabs/index.test/package.json +6 -0
- package/navigation/Tabs/index.test.d.ts +1 -0
- package/navigation/Tabs/interaction.test/index.js +46 -0
- package/navigation/Tabs/interaction.test/package.json +6 -0
- package/navigation/Tabs/interaction.test.d.ts +1 -0
- package/package.json +8 -10
- package/registry/index.js +8 -0
- package/registry.d.ts +5 -0
- package/src/app/BannerContainer/index.test.tsx +20 -0
- package/src/app/Footer/index.mdx +18 -5
- package/src/app/Footer/index.test.tsx +48 -0
- package/src/app/Footer/interaction.test.tsx +17 -0
- package/src/app/Header/index.mdx +7 -5
- package/src/app/Header/index.test.tsx +36 -0
- package/src/app/Loader/index.test.tsx +20 -0
- package/src/app/Masthead/index.mdx +9 -4
- package/src/app/Masthead/index.test.tsx +28 -0
- package/src/app/Masthead/interaction.test.tsx +15 -0
- package/src/app/Modal/Modal.stories.js +1 -0
- package/src/app/Modal/__stories__/WithoutModalGaps.tsx +52 -0
- package/src/app/Modal/auto.tsx +2 -2
- package/src/app/Modal/index.mdx +11 -4
- package/src/app/Modal/index.test.tsx +36 -0
- package/src/app/Modal/index.tsx +3 -3
- package/src/app/Modal/interaction.test.tsx +41 -0
- package/src/app/NotFound/index.mdx +2 -0
- package/src/app/NotFound/index.test.tsx +20 -0
- package/src/app/Panel/index.mdx +9 -4
- package/src/app/Panel/index.test.tsx +20 -0
- package/src/app/PhaseBannerHeader/index.mdx +4 -4
- package/src/app/PhaseBannerHeader/index.test.tsx +20 -0
- package/src/app/QrCodeViewer/index.mdx +4 -4
- package/src/app/QrCodeViewer/index.test.tsx +24 -0
- package/src/app/Skeleton/Skeleton.stories.js +19 -0
- package/src/app/Skeleton/__stories__/Button.tsx +6 -0
- package/src/app/Skeleton/__stories__/Circular.tsx +8 -0
- package/src/app/Skeleton/__stories__/Default.tsx +6 -0
- package/src/app/Skeleton/__stories__/NoAnimation.tsx +6 -0
- package/src/app/Skeleton/__stories__/Rectangular.tsx +8 -0
- package/src/app/Skeleton/__stories__/SpecificWidthAndHeight.tsx +8 -0
- package/src/app/Skeleton/__stories__/TextSizes.tsx +14 -0
- package/src/app/Skeleton/__stories__/UnderTypography.tsx +17 -0
- package/src/app/Skeleton/__stories__/WithChildren.tsx +11 -0
- package/src/app/Skeleton/index.tsx +4 -0
- package/src/content/Accordion/__stories__/Auto.tsx +2 -2
- package/src/content/Accordion/auto.tsx +1 -1
- package/src/content/Accordion/hooks.ts +0 -1
- package/src/content/Accordion/index.mdx +9 -5
- package/src/content/Accordion/index.test.tsx +32 -0
- package/src/content/Accordion/interaction.test.tsx +15 -0
- package/src/content/Blockquote/index.mdx +3 -5
- package/src/content/Blockquote/index.test.tsx +24 -0
- package/src/content/Card/index.mdx +3 -5
- package/src/content/Card/index.test.tsx +60 -0
- package/src/content/Chip/index.mdx +4 -5
- package/src/content/Chip/index.test.tsx +36 -0
- package/src/content/Details/Details.stories.playwright.json +1 -7
- package/src/content/Details/index.mdx +3 -5
- package/src/content/Details/index.test.tsx +20 -0
- package/src/content/Details/interaction.test.tsx +15 -0
- package/src/content/List/__stories__/Default.tsx +3 -4
- package/src/content/List/index.mdx +3 -5
- package/src/content/List/index.test.tsx +40 -0
- package/src/content/SafeHTML/index.tsx +3 -4
- package/src/content/StepNav/index.mdx +28 -5
- package/src/content/StepNav/index.test.tsx +36 -0
- package/src/content/StepNav/interaction.test.tsx +18 -0
- package/src/content/SummaryList/index.mdx +10 -5
- package/src/content/SummaryList/index.test.tsx +40 -0
- package/src/content/SummaryList/interaction.test.tsx +17 -0
- package/src/content/Table/__stories__/WithLoader.tsx +1 -0
- package/src/content/Table/index.mdx +13 -14
- package/src/content/Table/index.test.tsx +92 -0
- package/src/content/Table/index.tsx +2 -2
- package/src/content/Table/interaction.test.tsx +15 -0
- package/src/content/TaskList/index.mdx +9 -5
- package/src/content/TaskList/index.test.tsx +24 -0
- package/src/content/Timeline/index.mdx +10 -5
- package/src/content/Timeline/index.test.tsx +24 -0
- package/src/feedback/CopyToClipboard/index.mdx +3 -5
- package/src/feedback/CopyToClipboard/index.test.tsx +28 -0
- package/src/feedback/CopyToClipboard/interaction.test.tsx +41 -0
- package/src/feedback/ErrorSummary/index.mdx +3 -5
- package/src/feedback/ErrorSummary/index.test.tsx +40 -0
- package/src/feedback/NotificationBanner/index.mdx +14 -5
- package/src/feedback/NotificationBanner/index.test.tsx +28 -0
- package/src/feedback/NotificationBanner/interaction.test.tsx +32 -0
- package/src/feedback/PhaseBanner/index.mdx +8 -5
- package/src/feedback/PhaseBanner/index.test.tsx +24 -0
- package/src/feedback/PhaseBanner/interaction.test.tsx +15 -0
- package/src/feedback/WarningText/index.mdx +5 -5
- package/src/feedback/WarningText/index.test.tsx +28 -0
- package/src/form/AutoComplete/AutoComplete.stories.js +4 -1
- package/src/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
- package/src/form/AutoComplete/Status/index.tsx +10 -6
- package/src/form/AutoComplete/__stories__/Multiple.tsx +18 -0
- package/src/form/AutoComplete/__stories__/{WithInLine.tsx → MultipleShowingTwoSelected.tsx} +3 -8
- package/src/form/AutoComplete/__stories__/MultipleWithDefaultValues.tsx +16 -0
- package/src/form/AutoComplete/__stories__/MultipleWithMinLength.tsx +29 -0
- package/src/form/AutoComplete/__stories__/WithShowAllValues.tsx +0 -1
- package/src/form/AutoComplete/index.mdx +13 -20
- package/src/form/AutoComplete/index.test.tsx +56 -0
- package/src/form/AutoComplete/index.tsx +367 -215
- package/src/form/AutoComplete/interaction.test.tsx +18 -0
- package/src/form/AutoComplete/utils.ts +3 -2
- package/src/form/Button/Button.stories.playwright.json +1 -7
- package/src/form/Button/index.mdx +3 -5
- package/src/form/Button/index.test.tsx +64 -0
- package/src/form/Button/interaction.test.tsx +60 -0
- package/src/form/Checkbox/index.mdx +3 -5
- package/src/form/Checkbox/index.test.tsx +56 -0
- package/src/form/Checkbox/interaction.test.tsx +32 -0
- package/src/form/DateInputContainer/index.mdx +3 -5
- package/src/form/DateInputContainer/index.test.tsx +36 -0
- package/src/form/DateInputContainer/interaction.test.tsx +17 -0
- package/src/form/ErrorMessage/index.mdx +3 -5
- package/src/form/ErrorMessage/index.test.tsx +28 -0
- package/src/form/FileUpload/index.mdx +3 -5
- package/src/form/FileUpload/index.test.tsx +24 -0
- package/src/form/RadioContainer/index.mdx +2 -14
- package/src/form/RadioContainer/index.test.tsx +56 -0
- package/src/form/RadioContainer/interaction.test.tsx +31 -0
- package/src/form/SelectContainer/index.mdx +3 -1
- package/src/form/SelectContainer/index.test.tsx +32 -0
- package/src/form/SelectContainer/interaction.test.tsx +15 -0
- package/src/form/SingleCharacterInputs/index.mdx +3 -5
- package/src/form/SingleCharacterInputs/index.test.tsx +32 -0
- package/src/form/TextArea/index.mdx +3 -5
- package/src/form/TextArea/index.test.tsx +48 -0
- package/src/form/TextArea/interaction.test.tsx +30 -0
- package/src/form/TextInput/TextInput.stories.js +1 -0
- package/src/form/TextInput/__stories__/DisabledInputWithValue.tsx +27 -0
- package/src/form/TextInput/index.mdx +3 -5
- package/src/form/TextInput/index.test.tsx +56 -0
- package/src/form/TextInput/interaction.test.tsx +17 -0
- package/src/govgr/Footer/index.mdx +1 -1
- package/src/i18n/locales/el.ts +2 -2
- package/src/i18n/locales/en.ts +2 -2
- package/src/layouts/Basic/Basic.stories.js +1 -0
- package/src/layouts/Basic/Bottom/__stories__/Default.tsx +35 -0
- package/src/layouts/Basic/Bottom/index.mdx +9 -28
- package/src/layouts/Basic/Container/__stories__/Default.tsx +30 -0
- package/src/layouts/Basic/Container/index.mdx +23 -0
- package/src/layouts/Basic/Main/__stories__/Default.tsx +30 -0
- package/src/layouts/Basic/Main/index.mdx +10 -47
- package/src/layouts/Basic/Top/__stories__/Default.tsx +28 -0
- package/src/layouts/Basic/Top/index.mdx +10 -55
- package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +1 -0
- package/src/layouts/Basic/__stories__/WithBasicLayout.tsx +20 -0
- package/src/layouts/Basic/index.mdx +27 -25
- package/src/layouts/Basic/index.test.tsx +32 -0
- package/src/layouts/Grid/index.mdx +39 -0
- package/src/layouts/Grid/index.test.tsx +28 -0
- package/src/layouts/Screen/index.test.tsx +32 -0
- package/src/layouts/Stack/index.test.tsx +40 -0
- package/src/lazy.js +19 -3
- package/src/navigation/BackLink/index.mdx +4 -5
- package/src/navigation/BackLink/index.test.tsx +20 -0
- package/src/navigation/BackLink/interaction.test.tsx +15 -0
- package/src/navigation/BackToTopLink/index.test.tsx +24 -0
- package/src/navigation/Breadcrumbs/index.mdx +6 -5
- package/src/navigation/Breadcrumbs/index.test.tsx +20 -0
- package/src/navigation/Breadcrumbs/interaction.test.tsx +18 -0
- package/src/navigation/Drawer/auto.tsx +2 -2
- package/src/navigation/Drawer/index.mdx +4 -10
- package/src/navigation/Drawer/index.test.tsx +28 -0
- package/src/navigation/Dropdown/Dropdown.stories.js +1 -0
- package/src/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
- package/src/navigation/Dropdown/__stories__/ScrollableContent.tsx +82 -0
- package/src/navigation/Dropdown/index.mdx +3 -5
- package/src/navigation/Dropdown/index.test.tsx +60 -0
- package/src/navigation/Dropdown/interaction.test.tsx +67 -0
- package/src/navigation/Link/Link.stories.js +1 -0
- package/src/navigation/Link/__stories__/WithProvider.tsx +16 -0
- package/src/navigation/Link/index.mdx +5 -15
- package/src/navigation/Link/index.test.tsx +44 -0
- package/src/navigation/Link/interaction.test.tsx +45 -0
- package/src/navigation/NavList/__stories__/Default.tsx +18 -1
- package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +37 -1
- package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +37 -1
- package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +18 -1
- package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +39 -2
- package/src/navigation/NavList/__stories__/Vertical.tsx +18 -1
- package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +37 -1
- package/src/navigation/NavList/index.mdx +23 -7
- package/src/navigation/NavList/index.test.tsx +48 -0
- package/src/navigation/NavList/types.tsx +1 -2
- package/src/navigation/Pagination/index.mdx +9 -5
- package/src/navigation/Pagination/index.test.tsx +44 -0
- package/src/navigation/Pagination/interaction.test.tsx +17 -0
- package/src/navigation/SkipLink/index.test.tsx +20 -0
- package/src/navigation/Tabs/index.mdx +9 -5
- package/src/navigation/Tabs/index.test.tsx +28 -0
- package/src/navigation/Tabs/interaction.test.tsx +17 -0
- package/src/registry.js +8 -0
- package/src/typography/Heading/index.mdx +3 -5
- package/src/typography/Heading/index.test.tsx +20 -0
- package/src/typography/HeadingCaption/index.mdx +3 -5
- package/src/typography/HeadingCaption/index.test.tsx +24 -0
- package/src/typography/Hint/index.mdx +3 -5
- package/src/typography/Hint/index.test.tsx +24 -0
- package/src/typography/NormalText/index.mdx +3 -5
- package/src/typography/NormalText/index.test.tsx +32 -0
- package/src/typography/Paragraph/index.mdx +9 -30
- package/src/typography/Paragraph/index.test.tsx +36 -0
- package/src/typography/Typography/index.mdx +12 -0
- package/src/typography/Typography/index.tsx +4 -0
- package/src/typography/index.ts +1 -0
- package/src/utils/Base/index.mdx +13 -0
- package/src/utils/TestVariant/index.tsx +25 -0
- package/src/utils/VisuallyHidden/index.mdx +10 -5
- package/src/utils/VisuallyHidden/index.test.tsx +20 -0
- package/typography/Heading/index.mdx +3 -5
- package/typography/Heading/index.test/index.js +43 -0
- package/typography/Heading/index.test/package.json +6 -0
- package/typography/Heading/index.test.d.ts +1 -0
- package/typography/HeadingCaption/index.mdx +3 -5
- package/typography/HeadingCaption/index.test/index.js +46 -0
- package/typography/HeadingCaption/index.test/package.json +6 -0
- package/typography/HeadingCaption/index.test.d.ts +1 -0
- package/typography/Hint/index.mdx +3 -5
- package/typography/Hint/index.test/index.js +46 -0
- package/typography/Hint/index.test/package.json +6 -0
- package/typography/Hint/index.test.d.ts +1 -0
- package/typography/NormalText/index.mdx +3 -5
- package/typography/NormalText/index.test/index.js +52 -0
- package/typography/NormalText/index.test/package.json +6 -0
- package/typography/NormalText/index.test.d.ts +1 -0
- package/typography/Paragraph/index.mdx +9 -30
- package/typography/Paragraph/index.test/index.js +55 -0
- package/typography/Paragraph/index.test/package.json +6 -0
- package/typography/Paragraph/index.test.d.ts +1 -0
- package/typography/Typography/index.d.ts +3 -0
- package/typography/Typography/index.js +3 -0
- package/typography/Typography/index.mdx +12 -0
- package/typography/Typography/package.json +6 -0
- package/typography/index.d.ts +1 -0
- package/typography/index.js +2 -1
- package/utils/Base/index.mdx +13 -0
- package/utils/TestVariant/index.d.ts +7 -0
- package/utils/TestVariant/index.js +18 -0
- package/utils/TestVariant/package.json +6 -0
- package/utils/VisuallyHidden/index.mdx +10 -5
- package/utils/VisuallyHidden/index.test/index.js +43 -0
- package/utils/VisuallyHidden/index.test/package.json +6 -0
- package/utils/VisuallyHidden/index.test.d.ts +1 -0
- package/cjs/content/List/List.stories.playwright.json +0 -27
- package/cjs/layouts/Basic/Masthead/index.mdx +0 -65
- package/content/List/List.stories.playwright.json +0 -27
- package/form/AutoComplete/__stories__/WithInLine.d.ts +0 -3
- package/layouts/Basic/Masthead/index.mdx +0 -65
- package/src/content/List/List.stories.playwright.json +0 -27
- package/src/layouts/Basic/Masthead/index.mdx +0 -65
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Dropdown,
|
|
4
|
+
DropdownButton,
|
|
5
|
+
DropdownContent,
|
|
6
|
+
} from '@digigov/ui/navigation/Dropdown';
|
|
7
|
+
import { NavListItemAction, NavList } from '@digigov/ui/navigation/NavList';
|
|
8
|
+
|
|
9
|
+
const data = [
|
|
10
|
+
{
|
|
11
|
+
name: 'Item 1',
|
|
12
|
+
href: '#',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'Item 2',
|
|
16
|
+
href: '#',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'Item 3',
|
|
20
|
+
href: '#',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Item 4',
|
|
24
|
+
href: '#',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Item 5',
|
|
28
|
+
href: '#',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Item 6',
|
|
32
|
+
href: '#',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Item 7',
|
|
36
|
+
href: '#',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Item 8',
|
|
40
|
+
href: '#',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Item 9',
|
|
44
|
+
href: '#',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Item 10',
|
|
48
|
+
href: '#',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Item 11',
|
|
52
|
+
href: '#',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Item 12',
|
|
56
|
+
href: '#',
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
export const ScrollableContent = () => (
|
|
61
|
+
<Dropdown>
|
|
62
|
+
<DropdownButton
|
|
63
|
+
role="button"
|
|
64
|
+
aria-haspopup="true"
|
|
65
|
+
aria-controls="menu2"
|
|
66
|
+
arrow
|
|
67
|
+
>
|
|
68
|
+
Ενέργειες
|
|
69
|
+
</DropdownButton>
|
|
70
|
+
<DropdownContent role="menu" id="menu2" scrollable>
|
|
71
|
+
<NavList layout="vertical">
|
|
72
|
+
{data.map((item) => (
|
|
73
|
+
<NavListItemAction role="menuitem" href={item.href}>
|
|
74
|
+
{item.name}
|
|
75
|
+
</NavListItemAction>
|
|
76
|
+
))}
|
|
77
|
+
</NavList>
|
|
78
|
+
</DropdownContent>
|
|
79
|
+
</Dropdown>
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
export default ScrollableContent;
|
|
@@ -5,10 +5,6 @@ title: Dropdown
|
|
|
5
5
|
|
|
6
6
|
# Dropdown
|
|
7
7
|
|
|
8
|
-
```bash
|
|
9
|
-
import Dropdown from '@digigov/ui/navigation/Dropdown';
|
|
10
|
-
```
|
|
11
|
-
|
|
12
8
|
## How to use
|
|
13
9
|
|
|
14
10
|
<Story
|
|
@@ -39,4 +35,6 @@ You can display the dropdown menu to the top of the `Dropdown` button.
|
|
|
39
35
|
|
|
40
36
|
## API
|
|
41
37
|
|
|
42
|
-
|
|
38
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
39
|
+
|
|
40
|
+
<ComponentProps componentName={["DropdownBase","DropdownButton","DropdownContent"]} />
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { AlignRight } from '@digigov/ui/navigation/Dropdown/__stories__/AlignRight';
|
|
5
|
+
import { ContentPosition } from '@digigov/ui/navigation/Dropdown/__stories__/ContentPosition';
|
|
6
|
+
import { Default } from '@digigov/ui/navigation/Dropdown/__stories__/Default';
|
|
7
|
+
import { Dense } from '@digigov/ui/navigation/Dropdown/__stories__/Dense';
|
|
8
|
+
import { Disabled } from '@digigov/ui/navigation/Dropdown/__stories__/Disabled';
|
|
9
|
+
import { PlacementTop } from '@digigov/ui/navigation/Dropdown/__stories__/PlacementTop';
|
|
10
|
+
import { ScrollableContent } from '@digigov/ui/navigation/Dropdown/__stories__/ScrollableContent';
|
|
11
|
+
import { Secondary } from '@digigov/ui/navigation/Dropdown/__stories__/Secondary';
|
|
12
|
+
import { VariantLink } from '@digigov/ui/navigation/Dropdown/__stories__/VariantLink';
|
|
13
|
+
import { Warning } from '@digigov/ui/navigation/Dropdown/__stories__/Warning';
|
|
14
|
+
import { WithIcons } from '@digigov/ui/navigation/Dropdown/__stories__/WithIcons';
|
|
15
|
+
|
|
16
|
+
test('renders the All Dropdown variants', async ({ mount, page }) => {
|
|
17
|
+
await mount(
|
|
18
|
+
|
|
19
|
+
<div>
|
|
20
|
+
<TestVariant title="AlignRight">
|
|
21
|
+
<AlignRight />
|
|
22
|
+
</TestVariant>
|
|
23
|
+
<TestVariant title="ContentPosition">
|
|
24
|
+
<ContentPosition />
|
|
25
|
+
</TestVariant>
|
|
26
|
+
<TestVariant title="Default">
|
|
27
|
+
<Default />
|
|
28
|
+
</TestVariant>
|
|
29
|
+
<TestVariant title="Dense">
|
|
30
|
+
<Dense />
|
|
31
|
+
</TestVariant>
|
|
32
|
+
<TestVariant title="Disabled">
|
|
33
|
+
<Disabled />
|
|
34
|
+
</TestVariant>
|
|
35
|
+
<TestVariant title="PlacementTop">
|
|
36
|
+
<PlacementTop />
|
|
37
|
+
</TestVariant>
|
|
38
|
+
<TestVariant title="ScrollableContent">
|
|
39
|
+
<ScrollableContent />
|
|
40
|
+
</TestVariant>
|
|
41
|
+
<TestVariant title="Secondary">
|
|
42
|
+
<Secondary />
|
|
43
|
+
</TestVariant>
|
|
44
|
+
<TestVariant title="VariantLink">
|
|
45
|
+
<VariantLink />
|
|
46
|
+
</TestVariant>
|
|
47
|
+
<TestVariant title="Warning">
|
|
48
|
+
<Warning />
|
|
49
|
+
</TestVariant>
|
|
50
|
+
<TestVariant title="WithIcons">
|
|
51
|
+
<WithIcons />
|
|
52
|
+
</TestVariant>
|
|
53
|
+
</div>
|
|
54
|
+
)
|
|
55
|
+
await page.evaluate(() => document.fonts.ready);
|
|
56
|
+
|
|
57
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
58
|
+
expect(screenshot).toMatchSnapshot();
|
|
59
|
+
});
|
|
60
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
|
|
4
|
+
import { AlignRight } from '@digigov/ui/navigation/Dropdown/__stories__/AlignRight';
|
|
5
|
+
import { Default } from '@digigov/ui/navigation/Dropdown/__stories__/Default';
|
|
6
|
+
import { Dense } from '@digigov/ui/navigation/Dropdown/__stories__/Dense';
|
|
7
|
+
import { PlacementTop } from '@digigov/ui/navigation/Dropdown/__stories__/PlacementTop';
|
|
8
|
+
import { ScrollableContent } from '@digigov/ui/navigation/Dropdown/__stories__/ScrollableContent';
|
|
9
|
+
|
|
10
|
+
test('renders the AlignRight Align right action', async ({ mount, page }) => {
|
|
11
|
+
await mount(
|
|
12
|
+
<AlignRight />
|
|
13
|
+
)
|
|
14
|
+
await page.evaluate(() => document.fonts.ready);
|
|
15
|
+
await page.locator("#root>div>details>summary").click();
|
|
16
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
17
|
+
expect(screenshot).toMatchSnapshot();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
test('renders the Default Open dropdown action', async ({ mount, page }) => {
|
|
23
|
+
await mount(
|
|
24
|
+
<Default />
|
|
25
|
+
)
|
|
26
|
+
await page.evaluate(() => document.fonts.ready);
|
|
27
|
+
await page.locator("#root>details>summary").click();
|
|
28
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
29
|
+
expect(screenshot).toMatchSnapshot();
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
test('renders the Dense Open dropdown action', async ({ mount, page }) => {
|
|
35
|
+
await mount(
|
|
36
|
+
<Dense />
|
|
37
|
+
)
|
|
38
|
+
await page.evaluate(() => document.fonts.ready);
|
|
39
|
+
await page.locator("#root>details>summary").click();
|
|
40
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
41
|
+
expect(screenshot).toMatchSnapshot();
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
test('renders the PlacementTop Placement top action', async ({ mount, page }) => {
|
|
47
|
+
await mount(
|
|
48
|
+
<PlacementTop />
|
|
49
|
+
)
|
|
50
|
+
await page.evaluate(() => document.fonts.ready);
|
|
51
|
+
await page.locator("#root>div>details>summary").click();
|
|
52
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
53
|
+
expect(screenshot).toMatchSnapshot();
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
test('renders the ScrollableContent open content', async ({ mount, page }) => {
|
|
59
|
+
await mount(
|
|
60
|
+
<ScrollableContent />
|
|
61
|
+
)
|
|
62
|
+
await page.evaluate(() => document.fonts.ready);
|
|
63
|
+
await page.locator("#root>details>summary").click();
|
|
64
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
65
|
+
expect(screenshot).toMatchSnapshot();
|
|
66
|
+
});
|
|
67
|
+
|
|
@@ -11,3 +11,4 @@ export * from '@digigov/ui/navigation/Link/__stories__/OpensInNewTab';
|
|
|
11
11
|
export * from '@digigov/ui/navigation/Link/__stories__/NoUnderline';
|
|
12
12
|
export * from '@digigov/ui/navigation/Link/__stories__/DarkBackground';
|
|
13
13
|
export * from '@digigov/ui/navigation/Link/__stories__/DarkBackgroundNoUnderline';
|
|
14
|
+
export * from '@digigov/ui/navigation/Link/__stories__/WithProvider';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Link, LinkProvider } from '@digigov/ui/navigation/Link';
|
|
3
|
+
|
|
4
|
+
const CustomLink: React.FC<any> = (props) => {
|
|
5
|
+
return <div>{props.children}</div>;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const WithProvider = () => (
|
|
9
|
+
<LinkProvider component={CustomLink}>
|
|
10
|
+
<Link aria-label="πλοηγηθείτε στην ιστοσελίδα το govgr" role="link" href="#">
|
|
11
|
+
Σύνδεσμος
|
|
12
|
+
</Link>
|
|
13
|
+
</LinkProvider>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default WithProvider;
|
|
@@ -3,10 +3,6 @@ id: link
|
|
|
3
3
|
title: Link
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
```bash
|
|
7
|
-
import Link from '@digigov/ui/navigation/Link';
|
|
8
|
-
```
|
|
9
|
-
|
|
10
6
|
## How to use
|
|
11
7
|
|
|
12
8
|
### Default
|
|
@@ -35,19 +31,11 @@ import Link from '@digigov/ui/navigation/Link';
|
|
|
35
31
|
|
|
36
32
|
### At dark background
|
|
37
33
|
|
|
38
|
-
<Story
|
|
39
|
-
packageName="@digigov/ui"
|
|
40
|
-
component="navigation/Link"
|
|
41
|
-
story="DarkBackground.tsx"
|
|
42
|
-
/>
|
|
34
|
+
<Story packageName="@digigov/ui" component="navigation/Link" story="DarkBackground.tsx" />
|
|
43
35
|
|
|
44
36
|
### At dark background and no underline
|
|
45
37
|
|
|
46
|
-
<Story
|
|
47
|
-
packageName="@digigov/ui"
|
|
48
|
-
component="navigation/Link"
|
|
49
|
-
story="DarkBackgroundNoUnderline.tsx"
|
|
50
|
-
/>
|
|
38
|
+
<Story packageName="@digigov/ui" component="navigation/Link" story="DarkBackgroundNoUnderline.tsx" />
|
|
51
39
|
|
|
52
40
|
### Accessibility
|
|
53
41
|
|
|
@@ -57,4 +45,6 @@ implementation in the ARIA Authoring Practices Guide (APG) at
|
|
|
57
45
|
|
|
58
46
|
## API
|
|
59
47
|
|
|
60
|
-
|
|
48
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
49
|
+
|
|
50
|
+
<ComponentProps componentName={["LinkBase"]} />
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { DarkBackground } from '@digigov/ui/navigation/Link/__stories__/DarkBackground';
|
|
5
|
+
import { DarkBackgroundNoUnderline } from '@digigov/ui/navigation/Link/__stories__/DarkBackgroundNoUnderline';
|
|
6
|
+
import { Default } from '@digigov/ui/navigation/Link/__stories__/Default';
|
|
7
|
+
import { ExternalLink } from '@digigov/ui/navigation/Link/__stories__/ExternalLink';
|
|
8
|
+
import { NoUnderline } from '@digigov/ui/navigation/Link/__stories__/NoUnderline';
|
|
9
|
+
import { OpensInNewTab } from '@digigov/ui/navigation/Link/__stories__/OpensInNewTab';
|
|
10
|
+
import { WithProvider } from '@digigov/ui/navigation/Link/__stories__/WithProvider';
|
|
11
|
+
|
|
12
|
+
test('renders the All Link variants', async ({ mount, page }) => {
|
|
13
|
+
await mount(
|
|
14
|
+
|
|
15
|
+
<div>
|
|
16
|
+
<TestVariant title="DarkBackground">
|
|
17
|
+
<DarkBackground />
|
|
18
|
+
</TestVariant>
|
|
19
|
+
<TestVariant title="DarkBackgroundNoUnderline">
|
|
20
|
+
<DarkBackgroundNoUnderline />
|
|
21
|
+
</TestVariant>
|
|
22
|
+
<TestVariant title="Default">
|
|
23
|
+
<Default />
|
|
24
|
+
</TestVariant>
|
|
25
|
+
<TestVariant title="ExternalLink">
|
|
26
|
+
<ExternalLink />
|
|
27
|
+
</TestVariant>
|
|
28
|
+
<TestVariant title="NoUnderline">
|
|
29
|
+
<NoUnderline />
|
|
30
|
+
</TestVariant>
|
|
31
|
+
<TestVariant title="OpensInNewTab">
|
|
32
|
+
<OpensInNewTab />
|
|
33
|
+
</TestVariant>
|
|
34
|
+
<TestVariant title="WithProvider">
|
|
35
|
+
<WithProvider />
|
|
36
|
+
</TestVariant>
|
|
37
|
+
</div>
|
|
38
|
+
)
|
|
39
|
+
await page.evaluate(() => document.fonts.ready);
|
|
40
|
+
|
|
41
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
42
|
+
expect(screenshot).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
|
|
4
|
+
import { DarkBackground } from '@digigov/ui/navigation/Link/__stories__/DarkBackground';
|
|
5
|
+
import { Default } from '@digigov/ui/navigation/Link/__stories__/Default';
|
|
6
|
+
import { NoUnderline } from '@digigov/ui/navigation/Link/__stories__/NoUnderline';
|
|
7
|
+
|
|
8
|
+
test('renders the DarkBackground Hover and focus', async ({ mount, page }) => {
|
|
9
|
+
await mount(
|
|
10
|
+
<DarkBackground />
|
|
11
|
+
)
|
|
12
|
+
await page.evaluate(() => document.fonts.ready);
|
|
13
|
+
await page.locator("#root>section>a").hover();
|
|
14
|
+
await page.locator("#root>section>a").click();
|
|
15
|
+
|
|
16
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
17
|
+
expect(screenshot).toMatchSnapshot();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
test('renders the Default Focus', async ({ mount, page }) => {
|
|
23
|
+
await mount(
|
|
24
|
+
<Default />
|
|
25
|
+
)
|
|
26
|
+
await page.evaluate(() => document.fonts.ready);
|
|
27
|
+
await page.keyboard.press("Tab");
|
|
28
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
29
|
+
expect(screenshot).toMatchSnapshot();
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
test('renders the NoUnderline Hover and focus', async ({ mount, page }) => {
|
|
35
|
+
await mount(
|
|
36
|
+
<NoUnderline />
|
|
37
|
+
)
|
|
38
|
+
await page.evaluate(() => document.fonts.ready);
|
|
39
|
+
await page.locator("#root>a").hover();
|
|
40
|
+
await page.locator("#root>a").click();
|
|
41
|
+
|
|
42
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
43
|
+
expect(screenshot).toMatchSnapshot();
|
|
44
|
+
});
|
|
45
|
+
|
|
@@ -5,7 +5,24 @@ import {
|
|
|
5
5
|
NavListItemAction,
|
|
6
6
|
useNavList,
|
|
7
7
|
} from '@digigov/ui/navigation/NavList';
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
const links = [
|
|
10
|
+
{
|
|
11
|
+
"name": "home",
|
|
12
|
+
"href": "#home",
|
|
13
|
+
"label": "Αρχική"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "educational",
|
|
17
|
+
"label": "Εκπαιδευτικό υλικό",
|
|
18
|
+
"href": "#educational"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "news",
|
|
22
|
+
"href": "#news",
|
|
23
|
+
"label": "Νέα"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
9
26
|
|
|
10
27
|
export const Default = () => {
|
|
11
28
|
const { registerNavItem } = useNavList();
|
|
@@ -14,7 +14,43 @@ import {
|
|
|
14
14
|
NavMenuTitle,
|
|
15
15
|
useNavList,
|
|
16
16
|
} from '@digigov/ui/navigation/NavList';
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
const links = [
|
|
19
|
+
{ "name": "home", "href": "#home", "label": "Αρχική" },
|
|
20
|
+
{
|
|
21
|
+
"name": "educational",
|
|
22
|
+
"label": "Εκπαιδευτικό υλικό",
|
|
23
|
+
"subMenuHeading": "Εκπαιδευτικό υλικό",
|
|
24
|
+
"subMenu": [
|
|
25
|
+
{
|
|
26
|
+
"name": "elearning",
|
|
27
|
+
"href": "#elearning",
|
|
28
|
+
"label": "Εκπαιδευτική πλατφόρμα"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "videos",
|
|
32
|
+
"href": "#videos",
|
|
33
|
+
"label": "Βίντεο"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "presentations",
|
|
37
|
+
"href": "#presentations",
|
|
38
|
+
"label": "Παρουσιάσεις"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "promoting",
|
|
42
|
+
"href": "#promoting",
|
|
43
|
+
"label": "Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "other-texts",
|
|
47
|
+
"href": "#other-texts",
|
|
48
|
+
"label": "Άλλα κείμενα"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{ "name": "news", "href": "#news", "label": "Νέα" }
|
|
53
|
+
]
|
|
18
54
|
|
|
19
55
|
export const HorizontalWithDrawer = () => {
|
|
20
56
|
const layout = 'horizontal';
|
|
@@ -11,7 +11,43 @@ import {
|
|
|
11
11
|
NavMenuTitle,
|
|
12
12
|
useNavList,
|
|
13
13
|
} from '@digigov/ui/navigation/NavList';
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
const links = [
|
|
16
|
+
{ "name": "home", "href": "#home", "label": "Αρχική" },
|
|
17
|
+
{
|
|
18
|
+
"name": "educational",
|
|
19
|
+
"label": "Εκπαιδευτικό υλικό",
|
|
20
|
+
"subMenuHeading": "Εκπαιδευτικό υλικό",
|
|
21
|
+
"subMenu": [
|
|
22
|
+
{
|
|
23
|
+
"name": "elearning",
|
|
24
|
+
"href": "#elearning",
|
|
25
|
+
"label": "Εκπαιδευτική πλατφόρμα"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "videos",
|
|
29
|
+
"href": "#videos",
|
|
30
|
+
"label": "Βίντεο"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "presentations",
|
|
34
|
+
"href": "#presentations",
|
|
35
|
+
"label": "Παρουσιάσεις"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "promoting",
|
|
39
|
+
"href": "#promoting",
|
|
40
|
+
"label": "Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "other-texts",
|
|
44
|
+
"href": "#other-texts",
|
|
45
|
+
"label": "Άλλα κείμενα"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{ "name": "news", "href": "#news", "label": "Νέα" }
|
|
50
|
+
]
|
|
15
51
|
|
|
16
52
|
export const HorizontalWithoutDrawer = () => {
|
|
17
53
|
const layout = 'horizontal';
|
|
@@ -4,7 +4,24 @@ import {
|
|
|
4
4
|
NavListItemAction,
|
|
5
5
|
useNavList,
|
|
6
6
|
} from '@digigov/ui/navigation/NavList';
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
const links = [
|
|
9
|
+
{
|
|
10
|
+
"name": "home",
|
|
11
|
+
"href": "#home",
|
|
12
|
+
"label": "Αρχική"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "educational",
|
|
16
|
+
"label": "Εκπαιδευτικό υλικό",
|
|
17
|
+
"href": "#educational"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "news",
|
|
21
|
+
"href": "#news",
|
|
22
|
+
"label": "Νέα"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
8
25
|
|
|
9
26
|
export const NavListWithoutNav = () => {
|
|
10
27
|
const layout = 'vertical';
|
|
@@ -1,8 +1,45 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import BurgerIcon from '@digigov/
|
|
2
|
+
import BurgerIcon from '@digigov/ui/utils/SvgIcon';
|
|
3
3
|
import { Button } from '@digigov/ui/form/Button';
|
|
4
4
|
import { NavListAuto } from '@digigov/ui/navigation/NavList';
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
const links = [
|
|
7
|
+
{ "name": "home", "href": "#home", "label": "Αρχική" },
|
|
8
|
+
{
|
|
9
|
+
"name": "educational",
|
|
10
|
+
"label": "Εκπαιδευτικό υλικό",
|
|
11
|
+
"subMenuHeading": "Εκπαιδευτικό υλικό",
|
|
12
|
+
"subMenu": [
|
|
13
|
+
{
|
|
14
|
+
"name": "elearning",
|
|
15
|
+
"href": "#elearning",
|
|
16
|
+
"label": "Εκπαιδευτική πλατφόρμα"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "videos",
|
|
20
|
+
"href": "#videos",
|
|
21
|
+
"label": "Βίντεο"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "presentations",
|
|
25
|
+
"href": "#presentations",
|
|
26
|
+
"label": "Παρουσιάσεις"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "promoting",
|
|
30
|
+
"href": "#promoting",
|
|
31
|
+
"label": "Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "other-texts",
|
|
35
|
+
"href": "#other-texts",
|
|
36
|
+
"label": "Άλλα κείμενα"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{ "name": "news", "href": "#news", "label": "Νέα" }
|
|
41
|
+
]
|
|
42
|
+
|
|
6
43
|
|
|
7
44
|
export const UsingNavListAuto = () => {
|
|
8
45
|
const layout = 'horizontal';
|
|
@@ -5,7 +5,24 @@ import {
|
|
|
5
5
|
NavListItemAction,
|
|
6
6
|
useNavList,
|
|
7
7
|
} from '@digigov/ui/navigation/NavList';
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
const links = [
|
|
10
|
+
{
|
|
11
|
+
"name": "home",
|
|
12
|
+
"href": "#home",
|
|
13
|
+
"label": "Αρχική"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "educational",
|
|
17
|
+
"label": "Εκπαιδευτικό υλικό",
|
|
18
|
+
"href": "#educational"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "news",
|
|
22
|
+
"href": "#news",
|
|
23
|
+
"label": "Νέα"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
9
26
|
|
|
10
27
|
export const Vertical = () => {
|
|
11
28
|
const layout = 'vertical';
|
|
@@ -10,9 +10,45 @@ import {
|
|
|
10
10
|
NavMenuContentListItem,
|
|
11
11
|
NavMenuTitle,
|
|
12
12
|
} from '@digigov/ui/navigation/NavList';
|
|
13
|
-
import links from '@digigov/ui/navigation/NavList/__stories__/NavLinksWithSubmenu.json';
|
|
14
13
|
import { useNavList } from '@digigov/ui/navigation/NavList/hooks/useNavList';
|
|
15
14
|
|
|
15
|
+
const links = [
|
|
16
|
+
{ "name": "home", "href": "#home", "label": "Αρχική" },
|
|
17
|
+
{
|
|
18
|
+
"name": "educational",
|
|
19
|
+
"label": "Εκπαιδευτικό υλικό",
|
|
20
|
+
"subMenuHeading": "Εκπαιδευτικό υλικό",
|
|
21
|
+
"subMenu": [
|
|
22
|
+
{
|
|
23
|
+
"name": "elearning",
|
|
24
|
+
"href": "#elearning",
|
|
25
|
+
"label": "Εκπαιδευτική πλατφόρμα"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "videos",
|
|
29
|
+
"href": "#videos",
|
|
30
|
+
"label": "Βίντεο"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "presentations",
|
|
34
|
+
"href": "#presentations",
|
|
35
|
+
"label": "Παρουσιάσεις"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "promoting",
|
|
39
|
+
"href": "#promoting",
|
|
40
|
+
"label": "Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "other-texts",
|
|
44
|
+
"href": "#other-texts",
|
|
45
|
+
"label": "Άλλα κείμενα"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{ "name": "news", "href": "#news", "label": "Νέα" }
|
|
50
|
+
]
|
|
51
|
+
|
|
16
52
|
export const VerticalWithoutDrawer = () => {
|
|
17
53
|
const layout = 'vertical';
|
|
18
54
|
const border = false;
|