@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,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
|
|
4
|
+
import { Multiple } from '@digigov/ui/form/AutoComplete/__stories__/Multiple';
|
|
5
|
+
|
|
6
|
+
test('renders the Multiple show chip', async ({ mount, page }) => {
|
|
7
|
+
await mount(
|
|
8
|
+
<Multiple />
|
|
9
|
+
)
|
|
10
|
+
await page.evaluate(() => document.fonts.ready);
|
|
11
|
+
await page.locator("#root>div>div>fieldset>div>div:nth-child(2)>button").click();
|
|
12
|
+
await page.locator("#root>div>div>fieldset>div>div:nth-child(2)>ul:nth-child(4)>div>li:nth-child(3)").click();
|
|
13
|
+
await page.locator("#root>div>div>fieldset>div>div:nth-child(2)>button").click();
|
|
14
|
+
|
|
15
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
16
|
+
expect(screenshot).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
@@ -4,6 +4,7 @@ export const keyCodes = {
|
|
|
4
4
|
32: 'space',
|
|
5
5
|
38: 'up',
|
|
6
6
|
40: 'down',
|
|
7
|
+
8: 'backspace',
|
|
7
8
|
};
|
|
8
9
|
export function isIosDevice(): boolean | undefined {
|
|
9
10
|
return (
|
|
@@ -293,8 +294,8 @@ export function suggest(
|
|
|
293
294
|
syncResults(
|
|
294
295
|
query
|
|
295
296
|
? results.filter(function (result) {
|
|
296
|
-
|
|
297
|
-
|
|
297
|
+
return result.toLowerCase().indexOf(query.toLowerCase()) !== -1;
|
|
298
|
+
})
|
|
298
299
|
: results
|
|
299
300
|
);
|
|
300
301
|
}
|
|
@@ -98,12 +98,6 @@
|
|
|
98
98
|
"args": {
|
|
99
99
|
"selector": "html>body>div:nth-child(5)>button"
|
|
100
100
|
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "click",
|
|
104
|
-
"args": {
|
|
105
|
-
"selector": "html"
|
|
106
|
-
}
|
|
107
101
|
}
|
|
108
102
|
],
|
|
109
103
|
"id": "wPoD1odPNvOc",
|
|
@@ -112,4 +106,4 @@
|
|
|
112
106
|
]
|
|
113
107
|
}
|
|
114
108
|
}
|
|
115
|
-
}
|
|
109
|
+
}
|
|
@@ -8,10 +8,6 @@ title: Button
|
|
|
8
8
|
Use the button component to help users carry out an action like starting an
|
|
9
9
|
application or saving their information.
|
|
10
10
|
|
|
11
|
-
```bash
|
|
12
|
-
import Button from '@digigov/ui/form/Button';
|
|
13
|
-
```
|
|
14
|
-
|
|
15
11
|
## How to use
|
|
16
12
|
|
|
17
13
|
### Default buttons
|
|
@@ -110,4 +106,6 @@ implementation in the ARIA Authoring Practices Guide (APG) at [button](https://w
|
|
|
110
106
|
|
|
111
107
|
## API
|
|
112
108
|
|
|
113
|
-
|
|
109
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
110
|
+
|
|
111
|
+
<ComponentProps componentName={["Button","ButtonLink","CallToAction","ButtonGroup"]} />
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { Back } from '@digigov/ui/form/Button/__stories__/Back';
|
|
5
|
+
import { ButtonLinkButton } from '@digigov/ui/form/Button/__stories__/ButtonLinkButton';
|
|
6
|
+
import { CallToActionButton } from '@digigov/ui/form/Button/__stories__/CallToActionButton';
|
|
7
|
+
import { Dense } from '@digigov/ui/form/Button/__stories__/Dense';
|
|
8
|
+
import { Disabled } from '@digigov/ui/form/Button/__stories__/Disabled';
|
|
9
|
+
import { GroupingButtons } from '@digigov/ui/form/Button/__stories__/GroupingButtons';
|
|
10
|
+
import { GroupingButtonsAndLinks } from '@digigov/ui/form/Button/__stories__/GroupingButtonsAndLinks';
|
|
11
|
+
import { Primary } from '@digigov/ui/form/Button/__stories__/Primary';
|
|
12
|
+
import { Secondary } from '@digigov/ui/form/Button/__stories__/Secondary';
|
|
13
|
+
import { ThemeToggle } from '@digigov/ui/form/Button/__stories__/ThemeToggle';
|
|
14
|
+
import { Warning } from '@digigov/ui/form/Button/__stories__/Warning';
|
|
15
|
+
import { WithVariantLink } from '@digigov/ui/form/Button/__stories__/WithVariantLink';
|
|
16
|
+
|
|
17
|
+
test('renders the All Button variants', async ({ mount, page }) => {
|
|
18
|
+
await mount(
|
|
19
|
+
|
|
20
|
+
<div>
|
|
21
|
+
<TestVariant title="Back">
|
|
22
|
+
<Back />
|
|
23
|
+
</TestVariant>
|
|
24
|
+
<TestVariant title="ButtonLinkButton">
|
|
25
|
+
<ButtonLinkButton />
|
|
26
|
+
</TestVariant>
|
|
27
|
+
<TestVariant title="CallToActionButton">
|
|
28
|
+
<CallToActionButton />
|
|
29
|
+
</TestVariant>
|
|
30
|
+
<TestVariant title="Dense">
|
|
31
|
+
<Dense />
|
|
32
|
+
</TestVariant>
|
|
33
|
+
<TestVariant title="Disabled">
|
|
34
|
+
<Disabled />
|
|
35
|
+
</TestVariant>
|
|
36
|
+
<TestVariant title="GroupingButtons">
|
|
37
|
+
<GroupingButtons />
|
|
38
|
+
</TestVariant>
|
|
39
|
+
<TestVariant title="GroupingButtonsAndLinks">
|
|
40
|
+
<GroupingButtonsAndLinks />
|
|
41
|
+
</TestVariant>
|
|
42
|
+
<TestVariant title="Primary">
|
|
43
|
+
<Primary />
|
|
44
|
+
</TestVariant>
|
|
45
|
+
<TestVariant title="Secondary">
|
|
46
|
+
<Secondary />
|
|
47
|
+
</TestVariant>
|
|
48
|
+
<TestVariant title="ThemeToggle">
|
|
49
|
+
<ThemeToggle />
|
|
50
|
+
</TestVariant>
|
|
51
|
+
<TestVariant title="Warning">
|
|
52
|
+
<Warning />
|
|
53
|
+
</TestVariant>
|
|
54
|
+
<TestVariant title="WithVariantLink">
|
|
55
|
+
<WithVariantLink />
|
|
56
|
+
</TestVariant>
|
|
57
|
+
</div>
|
|
58
|
+
)
|
|
59
|
+
await page.evaluate(() => document.fonts.ready);
|
|
60
|
+
|
|
61
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
62
|
+
expect(screenshot).toMatchSnapshot();
|
|
63
|
+
});
|
|
64
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
|
|
4
|
+
import { Primary } from '@digigov/ui/form/Button/__stories__/Primary';
|
|
5
|
+
import { Secondary } from '@digigov/ui/form/Button/__stories__/Secondary';
|
|
6
|
+
import { ThemeToggle } from '@digigov/ui/form/Button/__stories__/ThemeToggle';
|
|
7
|
+
import { Warning } from '@digigov/ui/form/Button/__stories__/Warning';
|
|
8
|
+
|
|
9
|
+
test('renders the Primary Hover and click', async ({ mount, page }) => {
|
|
10
|
+
await mount(
|
|
11
|
+
<Primary />
|
|
12
|
+
)
|
|
13
|
+
await page.evaluate(() => document.fonts.ready);
|
|
14
|
+
await page.locator("#root>button").hover();
|
|
15
|
+
await page.locator("#root>button").click();
|
|
16
|
+
|
|
17
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
18
|
+
expect(screenshot).toMatchSnapshot();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
test('renders the Secondary Hover and click', async ({ mount, page }) => {
|
|
24
|
+
await mount(
|
|
25
|
+
<Secondary />
|
|
26
|
+
)
|
|
27
|
+
await page.evaluate(() => document.fonts.ready);
|
|
28
|
+
await page.locator("#root>button").hover();
|
|
29
|
+
await page.locator("#root>button").click();
|
|
30
|
+
|
|
31
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
32
|
+
expect(screenshot).toMatchSnapshot();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
test('renders the ThemeToggle change theme', async ({ mount, page }) => {
|
|
38
|
+
await mount(
|
|
39
|
+
<ThemeToggle />
|
|
40
|
+
)
|
|
41
|
+
await page.evaluate(() => document.fonts.ready);
|
|
42
|
+
await page.locator("#root>button").click();
|
|
43
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
44
|
+
expect(screenshot).toMatchSnapshot();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
test('renders the Warning Hover and click', async ({ mount, page }) => {
|
|
50
|
+
await mount(
|
|
51
|
+
<Warning />
|
|
52
|
+
)
|
|
53
|
+
await page.evaluate(() => document.fonts.ready);
|
|
54
|
+
await page.locator("#root>button").hover();
|
|
55
|
+
await page.locator("#root>button").click();
|
|
56
|
+
|
|
57
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
58
|
+
expect(screenshot).toMatchSnapshot();
|
|
59
|
+
});
|
|
60
|
+
|
|
@@ -5,10 +5,6 @@ title: Checkbox
|
|
|
5
5
|
|
|
6
6
|
# Checkbox
|
|
7
7
|
|
|
8
|
-
```bash
|
|
9
|
-
import Checkbox from '@digigov/ui/form/Checkbox';
|
|
10
|
-
```
|
|
11
|
-
|
|
12
8
|
## How to use
|
|
13
9
|
|
|
14
10
|
<Story
|
|
@@ -82,4 +78,6 @@ implementation in the ARIA Authoring Practices Guide (APG) at [Checkbox](https:/
|
|
|
82
78
|
|
|
83
79
|
## API
|
|
84
80
|
|
|
85
|
-
|
|
81
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
82
|
+
|
|
83
|
+
<ComponentProps componentName={["Checkbox","CheckboxItem"]} />
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { ConditionalReveal } from '@digigov/ui/form/Checkbox/__stories__/ConditionalReveal';
|
|
5
|
+
import { Default } from '@digigov/ui/form/Checkbox/__stories__/Default';
|
|
6
|
+
import { Dense } from '@digigov/ui/form/Checkbox/__stories__/Dense';
|
|
7
|
+
import { Inline } from '@digigov/ui/form/Checkbox/__stories__/Inline';
|
|
8
|
+
import { InlineWithDivider } from '@digigov/ui/form/Checkbox/__stories__/InlineWithDivider';
|
|
9
|
+
import { MultipleQuestions } from '@digigov/ui/form/Checkbox/__stories__/MultipleQuestions';
|
|
10
|
+
import { NoneAnswer } from '@digigov/ui/form/Checkbox/__stories__/NoneAnswer';
|
|
11
|
+
import { NoneAnswerWithError } from '@digigov/ui/form/Checkbox/__stories__/NoneAnswerWithError';
|
|
12
|
+
import { WithErrorMessage } from '@digigov/ui/form/Checkbox/__stories__/WithErrorMessage';
|
|
13
|
+
import { WithHint } from '@digigov/ui/form/Checkbox/__stories__/WithHint';
|
|
14
|
+
|
|
15
|
+
test('renders the All Checkbox variants', async ({ mount, page }) => {
|
|
16
|
+
await mount(
|
|
17
|
+
|
|
18
|
+
<div>
|
|
19
|
+
<TestVariant title="ConditionalReveal">
|
|
20
|
+
<ConditionalReveal />
|
|
21
|
+
</TestVariant>
|
|
22
|
+
<TestVariant title="Default">
|
|
23
|
+
<Default />
|
|
24
|
+
</TestVariant>
|
|
25
|
+
<TestVariant title="Dense">
|
|
26
|
+
<Dense />
|
|
27
|
+
</TestVariant>
|
|
28
|
+
<TestVariant title="Inline">
|
|
29
|
+
<Inline />
|
|
30
|
+
</TestVariant>
|
|
31
|
+
<TestVariant title="InlineWithDivider">
|
|
32
|
+
<InlineWithDivider />
|
|
33
|
+
</TestVariant>
|
|
34
|
+
<TestVariant title="MultipleQuestions">
|
|
35
|
+
<MultipleQuestions />
|
|
36
|
+
</TestVariant>
|
|
37
|
+
<TestVariant title="NoneAnswer">
|
|
38
|
+
<NoneAnswer />
|
|
39
|
+
</TestVariant>
|
|
40
|
+
<TestVariant title="NoneAnswerWithError">
|
|
41
|
+
<NoneAnswerWithError />
|
|
42
|
+
</TestVariant>
|
|
43
|
+
<TestVariant title="WithErrorMessage">
|
|
44
|
+
<WithErrorMessage />
|
|
45
|
+
</TestVariant>
|
|
46
|
+
<TestVariant title="WithHint">
|
|
47
|
+
<WithHint />
|
|
48
|
+
</TestVariant>
|
|
49
|
+
</div>
|
|
50
|
+
)
|
|
51
|
+
await page.evaluate(() => document.fonts.ready);
|
|
52
|
+
|
|
53
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
54
|
+
expect(screenshot).toMatchSnapshot();
|
|
55
|
+
});
|
|
56
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
|
|
4
|
+
import { MultipleQuestions } from '@digigov/ui/form/Checkbox/__stories__/MultipleQuestions';
|
|
5
|
+
import { WithHint } from '@digigov/ui/form/Checkbox/__stories__/WithHint';
|
|
6
|
+
|
|
7
|
+
test('renders the MultipleQuestions check first box', async ({ mount, page }) => {
|
|
8
|
+
await mount(
|
|
9
|
+
<MultipleQuestions />
|
|
10
|
+
)
|
|
11
|
+
await page.evaluate(() => document.fonts.ready);
|
|
12
|
+
await page.locator("#root>div>fieldset>div>div:nth-child(1)>label>input").click();
|
|
13
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
14
|
+
expect(screenshot).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
test('renders the WithHint click first option', async ({ mount, page }) => {
|
|
20
|
+
await mount(
|
|
21
|
+
<WithHint />
|
|
22
|
+
)
|
|
23
|
+
await page.evaluate(() => document.fonts.ready);
|
|
24
|
+
await page.locator("#root>div>fieldset>div>div:nth-child(1)>label>input").click();
|
|
25
|
+
await page.locator("#root>div>fieldset>div>div:nth-child(2)>label>input").click();
|
|
26
|
+
await page.keyboard.press("Tab");
|
|
27
|
+
await page.keyboard.press("Space");
|
|
28
|
+
|
|
29
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
30
|
+
expect(screenshot).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
|
|
@@ -5,10 +5,6 @@ title: DateInputContainer
|
|
|
5
5
|
|
|
6
6
|
# DateInputContainer
|
|
7
7
|
|
|
8
|
-
```bash
|
|
9
|
-
import DateInputContainer from '@digigov/ui/form/DateInputContainer';
|
|
10
|
-
```
|
|
11
|
-
|
|
12
8
|
## How to use
|
|
13
9
|
|
|
14
10
|
<Story
|
|
@@ -45,4 +41,6 @@ If you’re highlighting just one field - either the day, month or year - only s
|
|
|
45
41
|
|
|
46
42
|
## API
|
|
47
43
|
|
|
48
|
-
|
|
44
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
45
|
+
|
|
46
|
+
<ComponentProps componentName={["DateInputContainer","DateInputItem"]} />
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { Default } from '@digigov/ui/form/DateInputContainer/__stories__/Default';
|
|
5
|
+
import { Dense } from '@digigov/ui/form/DateInputContainer/__stories__/Dense';
|
|
6
|
+
import { MultipleQuestions } from '@digigov/ui/form/DateInputContainer/__stories__/MultipleQuestions';
|
|
7
|
+
import { WithErrorMessage } from '@digigov/ui/form/DateInputContainer/__stories__/WithErrorMessage';
|
|
8
|
+
import { WithErrorMessageForSingleField } from '@digigov/ui/form/DateInputContainer/__stories__/WithErrorMessageForSingleField';
|
|
9
|
+
|
|
10
|
+
test('renders the All DateInputContainer variants', async ({ mount, page }) => {
|
|
11
|
+
await mount(
|
|
12
|
+
|
|
13
|
+
<div>
|
|
14
|
+
<TestVariant title="Default">
|
|
15
|
+
<Default />
|
|
16
|
+
</TestVariant>
|
|
17
|
+
<TestVariant title="Dense">
|
|
18
|
+
<Dense />
|
|
19
|
+
</TestVariant>
|
|
20
|
+
<TestVariant title="MultipleQuestions">
|
|
21
|
+
<MultipleQuestions />
|
|
22
|
+
</TestVariant>
|
|
23
|
+
<TestVariant title="WithErrorMessage">
|
|
24
|
+
<WithErrorMessage />
|
|
25
|
+
</TestVariant>
|
|
26
|
+
<TestVariant title="WithErrorMessageForSingleField">
|
|
27
|
+
<WithErrorMessageForSingleField />
|
|
28
|
+
</TestVariant>
|
|
29
|
+
</div>
|
|
30
|
+
)
|
|
31
|
+
await page.evaluate(() => document.fonts.ready);
|
|
32
|
+
|
|
33
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
34
|
+
expect(screenshot).toMatchSnapshot();
|
|
35
|
+
});
|
|
36
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
|
|
4
|
+
import { Default } from '@digigov/ui/form/DateInputContainer/__stories__/Default';
|
|
5
|
+
|
|
6
|
+
test('renders the Default Actions with mouse', async ({ mount, page }) => {
|
|
7
|
+
await mount(
|
|
8
|
+
<Default />
|
|
9
|
+
)
|
|
10
|
+
await page.evaluate(() => document.fonts.ready);
|
|
11
|
+
await page.locator("#root>div>fieldset>div>div:nth-child(1)>label>input").click();
|
|
12
|
+
await page.keyboard.insertText("undefined");
|
|
13
|
+
|
|
14
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
15
|
+
expect(screenshot).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
|
|
@@ -8,10 +8,6 @@ title: ErrorMessage
|
|
|
8
8
|
Follow the validation pattern and show an error message when there is a validation error.
|
|
9
9
|
In the error message explain what went wrong and how to fix it.
|
|
10
10
|
|
|
11
|
-
```bash
|
|
12
|
-
import ErrorMessage from '@digigov/ui/form/ErrorMessage';
|
|
13
|
-
```
|
|
14
|
-
|
|
15
11
|
## How to use
|
|
16
12
|
|
|
17
13
|
<Story
|
|
@@ -22,4 +18,6 @@ import ErrorMessage from '@digigov/ui/form/ErrorMessage';
|
|
|
22
18
|
|
|
23
19
|
## API
|
|
24
20
|
|
|
25
|
-
|
|
21
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
22
|
+
|
|
23
|
+
<ComponentProps componentName={["ErrorMessage"]} />
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { DateInputError } from '@digigov/ui/form/ErrorMessage/__stories__/DateInputError';
|
|
5
|
+
import { Default } from '@digigov/ui/form/ErrorMessage/__stories__/Default';
|
|
6
|
+
import { ErrorMessageOnly } from '@digigov/ui/form/ErrorMessage/__stories__/ErrorMessageOnly';
|
|
7
|
+
|
|
8
|
+
test('renders the All ErrorMessage variants', async ({ mount, page }) => {
|
|
9
|
+
await mount(
|
|
10
|
+
|
|
11
|
+
<div>
|
|
12
|
+
<TestVariant title="DateInputError">
|
|
13
|
+
<DateInputError />
|
|
14
|
+
</TestVariant>
|
|
15
|
+
<TestVariant title="Default">
|
|
16
|
+
<Default />
|
|
17
|
+
</TestVariant>
|
|
18
|
+
<TestVariant title="ErrorMessageOnly">
|
|
19
|
+
<ErrorMessageOnly />
|
|
20
|
+
</TestVariant>
|
|
21
|
+
</div>
|
|
22
|
+
)
|
|
23
|
+
await page.evaluate(() => document.fonts.ready);
|
|
24
|
+
|
|
25
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
26
|
+
expect(screenshot).toMatchSnapshot();
|
|
27
|
+
});
|
|
28
|
+
|
|
@@ -5,10 +5,6 @@ title: FileUpload
|
|
|
5
5
|
|
|
6
6
|
# FileUpload
|
|
7
7
|
|
|
8
|
-
```bash
|
|
9
|
-
import FileUpload from '@digigov/ui/form/FileUpload';
|
|
10
|
-
```
|
|
11
|
-
|
|
12
8
|
## How to use
|
|
13
9
|
|
|
14
10
|
<Story
|
|
@@ -29,4 +25,6 @@ Error messages should be styled like this:
|
|
|
29
25
|
|
|
30
26
|
## API
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
29
|
+
|
|
30
|
+
<ComponentProps componentName={["FileUpload", "FileUploadContainer"]} />
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { Default } from '@digigov/ui/form/FileUpload/__stories__/Default';
|
|
5
|
+
import { WithErrorMessage } from '@digigov/ui/form/FileUpload/__stories__/WithErrorMessage';
|
|
6
|
+
|
|
7
|
+
test('renders the All FileUpload variants', async ({ mount, page }) => {
|
|
8
|
+
await mount(
|
|
9
|
+
|
|
10
|
+
<div>
|
|
11
|
+
<TestVariant title="Default">
|
|
12
|
+
<Default />
|
|
13
|
+
</TestVariant>
|
|
14
|
+
<TestVariant title="WithErrorMessage">
|
|
15
|
+
<WithErrorMessage />
|
|
16
|
+
</TestVariant>
|
|
17
|
+
</div>
|
|
18
|
+
)
|
|
19
|
+
await page.evaluate(() => document.fonts.ready);
|
|
20
|
+
|
|
21
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
22
|
+
expect(screenshot).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
|
|
@@ -5,10 +5,6 @@ title: RadioContainer
|
|
|
5
5
|
|
|
6
6
|
# RadioContainer
|
|
7
7
|
|
|
8
|
-
```bash
|
|
9
|
-
import RadioContainer from '@digigov/ui/form/RadioContainer';
|
|
10
|
-
```
|
|
11
|
-
|
|
12
8
|
## How to use
|
|
13
9
|
|
|
14
10
|
<Story
|
|
@@ -83,14 +79,6 @@ implementation in the ARIA Authoring Practices Guide (APG) at [Radio](https://ww
|
|
|
83
79
|
|
|
84
80
|
## API
|
|
85
81
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<PropTypes packageName="@digigov/ui" component="RadioContainer" />
|
|
89
|
-
|
|
90
|
-
### RadioConditional
|
|
91
|
-
|
|
92
|
-
<PropTypes packageName="@digigov/ui" component="RadioConditional" />
|
|
93
|
-
|
|
94
|
-
### RadioItem
|
|
82
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
95
83
|
|
|
96
|
-
<
|
|
84
|
+
<ComponentProps componentName={["RadioItem","RadioContainer","RadioConditional","ChoiceDividerText"]} />
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { ConditionalReveal } from '@digigov/ui/form/RadioContainer/__stories__/ConditionalReveal';
|
|
5
|
+
import { Default } from '@digigov/ui/form/RadioContainer/__stories__/Default';
|
|
6
|
+
import { Dense } from '@digigov/ui/form/RadioContainer/__stories__/Dense';
|
|
7
|
+
import { Inline } from '@digigov/ui/form/RadioContainer/__stories__/Inline';
|
|
8
|
+
import { InlineWithDivider } from '@digigov/ui/form/RadioContainer/__stories__/InlineWithDivider';
|
|
9
|
+
import { MultipleQuestions } from '@digigov/ui/form/RadioContainer/__stories__/MultipleQuestions';
|
|
10
|
+
import { NoneAnswer } from '@digigov/ui/form/RadioContainer/__stories__/NoneAnswer';
|
|
11
|
+
import { WithErrorMessage } from '@digigov/ui/form/RadioContainer/__stories__/WithErrorMessage';
|
|
12
|
+
import { WithHints } from '@digigov/ui/form/RadioContainer/__stories__/WithHints';
|
|
13
|
+
import { WithMediumLegend } from '@digigov/ui/form/RadioContainer/__stories__/WithMediumLegend';
|
|
14
|
+
|
|
15
|
+
test('renders the All RadioContainer variants', async ({ mount, page }) => {
|
|
16
|
+
await mount(
|
|
17
|
+
|
|
18
|
+
<div>
|
|
19
|
+
<TestVariant title="ConditionalReveal">
|
|
20
|
+
<ConditionalReveal />
|
|
21
|
+
</TestVariant>
|
|
22
|
+
<TestVariant title="Default">
|
|
23
|
+
<Default />
|
|
24
|
+
</TestVariant>
|
|
25
|
+
<TestVariant title="Dense">
|
|
26
|
+
<Dense />
|
|
27
|
+
</TestVariant>
|
|
28
|
+
<TestVariant title="Inline">
|
|
29
|
+
<Inline />
|
|
30
|
+
</TestVariant>
|
|
31
|
+
<TestVariant title="InlineWithDivider">
|
|
32
|
+
<InlineWithDivider />
|
|
33
|
+
</TestVariant>
|
|
34
|
+
<TestVariant title="MultipleQuestions">
|
|
35
|
+
<MultipleQuestions />
|
|
36
|
+
</TestVariant>
|
|
37
|
+
<TestVariant title="NoneAnswer">
|
|
38
|
+
<NoneAnswer />
|
|
39
|
+
</TestVariant>
|
|
40
|
+
<TestVariant title="WithErrorMessage">
|
|
41
|
+
<WithErrorMessage />
|
|
42
|
+
</TestVariant>
|
|
43
|
+
<TestVariant title="WithHints">
|
|
44
|
+
<WithHints />
|
|
45
|
+
</TestVariant>
|
|
46
|
+
<TestVariant title="WithMediumLegend">
|
|
47
|
+
<WithMediumLegend />
|
|
48
|
+
</TestVariant>
|
|
49
|
+
</div>
|
|
50
|
+
)
|
|
51
|
+
await page.evaluate(() => document.fonts.ready);
|
|
52
|
+
|
|
53
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
54
|
+
expect(screenshot).toMatchSnapshot();
|
|
55
|
+
});
|
|
56
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
|
|
4
|
+
import { Default } from '@digigov/ui/form/RadioContainer/__stories__/Default';
|
|
5
|
+
import { WithHints } from '@digigov/ui/form/RadioContainer/__stories__/WithHints';
|
|
6
|
+
|
|
7
|
+
test('renders the Default Navigate with keyboard', async ({ mount, page }) => {
|
|
8
|
+
await mount(
|
|
9
|
+
<Default />
|
|
10
|
+
)
|
|
11
|
+
await page.evaluate(() => document.fonts.ready);
|
|
12
|
+
await page.keyboard.press("Tab");
|
|
13
|
+
await page.keyboard.press("Space");
|
|
14
|
+
await page.keyboard.press("ArrowDown");
|
|
15
|
+
|
|
16
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
17
|
+
expect(screenshot).toMatchSnapshot();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
test('renders the WithHints Click first', async ({ mount, page }) => {
|
|
23
|
+
await mount(
|
|
24
|
+
<WithHints />
|
|
25
|
+
)
|
|
26
|
+
await page.evaluate(() => document.fonts.ready);
|
|
27
|
+
await page.locator("#root>div>fieldset>div>div:nth-child(1)>label>input").click();
|
|
28
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
29
|
+
expect(screenshot).toMatchSnapshot();
|
|
30
|
+
});
|
|
31
|
+
|
|
@@ -45,4 +45,6 @@ implementation in the ARIA Authoring Practices Guide (APG) at
|
|
|
45
45
|
|
|
46
46
|
## API
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
49
|
+
|
|
50
|
+
<ComponentProps componentName={["SelectContainer","SelectOption"]} />
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
import TestVariant from '@digigov/ui/utils/TestVariant'
|
|
4
|
+
import { Default } from '@digigov/ui/form/SelectContainer/__stories__/Default';
|
|
5
|
+
import { Dense } from '@digigov/ui/form/SelectContainer/__stories__/Dense';
|
|
6
|
+
import { DisabledInput } from '@digigov/ui/form/SelectContainer/__stories__/DisabledInput';
|
|
7
|
+
import { WithHint } from '@digigov/ui/form/SelectContainer/__stories__/WithHint';
|
|
8
|
+
|
|
9
|
+
test('renders the All SelectContainer variants', async ({ mount, page }) => {
|
|
10
|
+
await mount(
|
|
11
|
+
|
|
12
|
+
<div>
|
|
13
|
+
<TestVariant title="Default">
|
|
14
|
+
<Default />
|
|
15
|
+
</TestVariant>
|
|
16
|
+
<TestVariant title="Dense">
|
|
17
|
+
<Dense />
|
|
18
|
+
</TestVariant>
|
|
19
|
+
<TestVariant title="DisabledInput">
|
|
20
|
+
<DisabledInput />
|
|
21
|
+
</TestVariant>
|
|
22
|
+
<TestVariant title="WithHint">
|
|
23
|
+
<WithHint />
|
|
24
|
+
</TestVariant>
|
|
25
|
+
</div>
|
|
26
|
+
)
|
|
27
|
+
await page.evaluate(() => document.fonts.ready);
|
|
28
|
+
|
|
29
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
30
|
+
expect(screenshot).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { test, expect } from '@playwright/experimental-ct-react';
|
|
3
|
+
|
|
4
|
+
import { Default } from '@digigov/ui/form/SelectContainer/__stories__/Default';
|
|
5
|
+
|
|
6
|
+
test('renders the Default SelectContainer with mouse', async ({ mount, page }) => {
|
|
7
|
+
await mount(
|
|
8
|
+
<Default />
|
|
9
|
+
)
|
|
10
|
+
await page.evaluate(() => document.fonts.ready);
|
|
11
|
+
await page.locator("#root>div>label>select").click();
|
|
12
|
+
const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
|
|
13
|
+
expect(screenshot).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
|