@digigov/ui 1.0.0-079f34f3d → 1.0.0-21c8c3dc
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/BannerContainer.stories.d.ts +10 -0
- package/app/BannerContainer/BannerContainer.stories.js +35 -0
- package/app/BannerContainer/__stories__/CookiesBanner.d.ts +2 -0
- package/app/BannerContainer/__stories__/CookiesBanner.js +42 -0
- package/app/Footer/__stories__/FooterAllInclusive.js +33 -23
- package/app/Footer/__stories__/FooterWithLink.js +16 -12
- package/app/Footer/__stories__/FooterWithLogo.js +17 -15
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
- package/app/Masthead/Masthead.stories.d.ts +2 -0
- package/app/Masthead/Masthead.stories.js +28 -0
- package/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/app/Masthead/__stories__/WithElements.d.ts +2 -0
- package/app/Masthead/__stories__/WithElements.js +41 -0
- package/app/Masthead/__stories__/WithLogo.d.ts +2 -0
- package/app/Masthead/__stories__/WithLogo.js +37 -0
- package/content/Blockquote/Blockquote.stories.d.ts +1 -0
- package/content/Blockquote/Blockquote.stories.js +14 -0
- package/content/Blockquote/__stories__/Dense.d.ts +2 -0
- package/content/Blockquote/__stories__/Dense.js +24 -0
- package/content/Card/Card.stories.d.ts +2 -0
- package/content/Card/Card.stories.js +28 -0
- package/content/Card/__stories__/Default.js +1 -1
- package/content/Card/__stories__/Dense.d.ts +2 -0
- package/content/Card/__stories__/Dense.js +28 -0
- package/content/Card/__stories__/WithLink.d.ts +2 -0
- package/content/Card/__stories__/WithLink.js +24 -0
- package/content/StepNav/StepNav.stories.d.ts +1 -0
- package/content/StepNav/StepNav.stories.js +14 -0
- package/content/StepNav/__stories__/Dense.d.ts +2 -0
- package/content/StepNav/__stories__/Dense.js +204 -0
- package/content/SummaryList/SummaryList.stories.d.ts +1 -0
- package/content/SummaryList/SummaryList.stories.js +14 -0
- package/content/SummaryList/__stories__/Default.js +7 -3
- package/content/SummaryList/__stories__/WithActions.js +13 -7
- package/content/SummaryList/__stories__/WithoutActions.d.ts +2 -0
- package/content/SummaryList/__stories__/WithoutActions.js +22 -0
- package/content/SummaryList/__stories__/WithoutBorders.js +12 -2
- package/content/Table/__stories__/RowColors.js +5 -5
- package/content/TaskList/TaskList.stories.d.ts +1 -0
- package/content/TaskList/TaskList.stories.js +14 -0
- package/content/TaskList/__stories__/Dense.d.ts +2 -0
- package/content/TaskList/__stories__/Dense.js +93 -0
- package/content/Timeline/Timeline.stories.d.ts +1 -0
- package/content/Timeline/Timeline.stories.js +14 -0
- package/content/Timeline/__stories__/Default.js +2 -4
- package/content/Timeline/__stories__/Dense.d.ts +2 -0
- package/content/Timeline/__stories__/Dense.js +141 -0
- package/es/app/BannerContainer/BannerContainer.stories.js +10 -0
- package/es/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
- package/es/app/Footer/__stories__/FooterAllInclusive.js +33 -23
- package/es/app/Footer/__stories__/FooterWithLink.js +16 -12
- package/es/app/Footer/__stories__/FooterWithLogo.js +17 -15
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
- package/es/app/Masthead/Masthead.stories.js +3 -1
- package/es/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/es/app/Masthead/__stories__/WithElements.js +21 -0
- package/es/app/Masthead/__stories__/WithLogo.js +19 -0
- package/es/content/Blockquote/Blockquote.stories.js +2 -1
- package/es/content/Blockquote/__stories__/Dense.js +11 -0
- package/es/content/Card/Card.stories.js +3 -1
- package/es/content/Card/__stories__/Default.js +1 -1
- package/es/content/Card/__stories__/Dense.js +14 -0
- package/es/content/Card/__stories__/WithLink.js +10 -0
- package/es/content/StepNav/StepNav.stories.js +2 -1
- package/es/content/StepNav/__stories__/Dense.js +180 -0
- package/es/content/SummaryList/SummaryList.stories.js +1 -0
- package/es/content/SummaryList/__stories__/Default.js +7 -3
- package/es/content/SummaryList/__stories__/WithActions.js +5 -5
- package/es/content/SummaryList/__stories__/WithoutActions.js +9 -0
- package/es/content/SummaryList/__stories__/WithoutBorders.js +10 -2
- package/es/content/Table/__stories__/RowColors.js +5 -5
- package/es/content/TaskList/TaskList.stories.js +2 -1
- package/es/content/TaskList/__stories__/Dense.js +76 -0
- package/es/content/Timeline/Timeline.stories.js +2 -1
- package/es/content/Timeline/__stories__/Default.js +2 -4
- package/es/content/Timeline/__stories__/Dense.js +124 -0
- package/es/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
- package/es/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
- package/es/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/es/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
- package/es/form/Button/__stories__/CallToActionButton.js +1 -4
- package/es/form/Button/__stories__/GroupingButtons.js +0 -3
- package/es/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
- package/es/form/Button/__stories__/Primary.js +0 -3
- package/es/form/Button/__stories__/Secondary.js +0 -3
- package/es/form/Button/__stories__/WithVariantLink.js +0 -4
- package/es/form/Checkbox/__stories__/WithHint.js +1 -1
- package/es/form/DateInputContainer/__stories__/Default.js +1 -1
- package/es/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
- package/es/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
- package/es/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
- package/es/form/ErrorMessage/ErrorMessage.stories.js +3 -1
- package/es/form/ErrorMessage/__stories__/DateInputError.js +24 -0
- package/es/form/ErrorMessage/__stories__/Default.js +11 -8
- package/es/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
- package/es/form/FileUpload/__stories__/Default.js +2 -2
- package/es/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
- package/es/form/RadioContainer/RadioContainer.stories.js +1 -0
- package/es/form/RadioContainer/__stories__/Default.js +7 -4
- package/es/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
- package/es/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
- package/es/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
- package/es/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
- package/es/form/RadioContainer/__stories__/WithHints.js +1 -1
- package/es/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
- package/es/form/TextInput/__stories__/FixedWidths.js +8 -18
- package/es/form/TextInput/__stories__/FluidWidths.js +8 -18
- package/es/govgr/Footer/Copyright.js +3 -3
- package/es/icons/Icon/index.js +2 -2
- package/es/icons/ImageLogo/index.js +3 -0
- package/es/icons/ImageLogoSet/index.js +3 -0
- package/es/layouts/Grid/Grid.stories.js +1 -0
- package/es/layouts/Grid/__stories__/ResponsiveSpacing.js +79 -0
- package/es/navigation/Link/index.js +1 -1
- package/es/navigation/NavList/NavList.stories.js +5 -1
- package/es/navigation/NavList/NavList.stories.playwright.json +5 -5
- package/es/navigation/NavList/__stories__/Default.js +20 -54
- package/es/navigation/NavList/__stories__/NavVertical.js +37 -0
- package/es/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
- package/es/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
- package/es/navigation/NavList/__stories__/WithSubMenu.js +73 -0
- package/es/navigation/Tabs/__stories__/Default.js +15 -4
- package/es/registry.js +8 -2
- package/esm/app/BannerContainer/BannerContainer.stories.js +10 -0
- package/esm/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +33 -23
- package/esm/app/Footer/__stories__/FooterWithLink.js +16 -12
- package/esm/app/Footer/__stories__/FooterWithLogo.js +17 -15
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
- package/esm/app/Masthead/Masthead.stories.js +3 -1
- package/esm/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/esm/app/Masthead/__stories__/WithElements.js +21 -0
- package/esm/app/Masthead/__stories__/WithLogo.js +19 -0
- package/esm/content/Blockquote/Blockquote.stories.js +2 -1
- package/esm/content/Blockquote/__stories__/Dense.js +11 -0
- package/esm/content/Card/Card.stories.js +3 -1
- package/esm/content/Card/__stories__/Default.js +1 -1
- package/esm/content/Card/__stories__/Dense.js +14 -0
- package/esm/content/Card/__stories__/WithLink.js +10 -0
- package/esm/content/StepNav/StepNav.stories.js +2 -1
- package/esm/content/StepNav/__stories__/Dense.js +180 -0
- package/esm/content/SummaryList/SummaryList.stories.js +1 -0
- package/esm/content/SummaryList/__stories__/Default.js +7 -3
- package/esm/content/SummaryList/__stories__/WithActions.js +5 -5
- package/esm/content/SummaryList/__stories__/WithoutActions.js +9 -0
- package/esm/content/SummaryList/__stories__/WithoutBorders.js +10 -2
- package/esm/content/Table/__stories__/RowColors.js +5 -5
- package/esm/content/TaskList/TaskList.stories.js +2 -1
- package/esm/content/TaskList/__stories__/Dense.js +76 -0
- package/esm/content/Timeline/Timeline.stories.js +2 -1
- package/esm/content/Timeline/__stories__/Default.js +2 -4
- package/esm/content/Timeline/__stories__/Dense.js +124 -0
- package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
- package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
- package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
- package/esm/form/Button/__stories__/CallToActionButton.js +1 -4
- package/esm/form/Button/__stories__/GroupingButtons.js +0 -3
- package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
- package/esm/form/Button/__stories__/Primary.js +0 -3
- package/esm/form/Button/__stories__/Secondary.js +0 -3
- package/esm/form/Button/__stories__/WithVariantLink.js +0 -4
- package/esm/form/Checkbox/__stories__/WithHint.js +1 -1
- package/esm/form/DateInputContainer/__stories__/Default.js +1 -1
- package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
- package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
- package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
- package/esm/form/ErrorMessage/ErrorMessage.stories.js +3 -1
- package/esm/form/ErrorMessage/__stories__/DateInputError.js +24 -0
- package/esm/form/ErrorMessage/__stories__/Default.js +11 -8
- package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
- package/esm/form/FileUpload/__stories__/Default.js +2 -2
- package/esm/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
- package/esm/form/RadioContainer/RadioContainer.stories.js +1 -0
- package/esm/form/RadioContainer/__stories__/Default.js +7 -4
- package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
- package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
- package/esm/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
- package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
- package/esm/form/RadioContainer/__stories__/WithHints.js +1 -1
- package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
- package/esm/form/TextInput/__stories__/FixedWidths.js +8 -18
- package/esm/form/TextInput/__stories__/FluidWidths.js +8 -18
- package/esm/govgr/Footer/Copyright.js +3 -3
- package/esm/icons/Icon/index.js +2 -2
- package/esm/icons/ImageLogo/index.js +3 -0
- package/esm/icons/ImageLogoSet/index.js +3 -0
- package/esm/index.js +1 -1
- package/esm/layouts/Grid/Grid.stories.js +1 -0
- package/esm/layouts/Grid/__stories__/ResponsiveSpacing.js +79 -0
- package/esm/navigation/Link/index.js +1 -1
- package/esm/navigation/NavList/NavList.stories.js +5 -1
- package/esm/navigation/NavList/NavList.stories.playwright.json +5 -5
- package/esm/navigation/NavList/__stories__/Default.js +20 -54
- package/esm/navigation/NavList/__stories__/NavVertical.js +37 -0
- package/esm/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
- package/esm/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
- package/esm/navigation/NavList/__stories__/WithSubMenu.js +73 -0
- package/esm/navigation/Tabs/__stories__/Default.js +15 -4
- package/esm/registry.js +8 -2
- package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
- package/feedback/ErrorSummary/ErrorSummary.stories.js +14 -0
- package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -1
- package/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
- package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.d.ts +2 -0
- package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +57 -0
- package/form/Button/__stories__/CallToActionButton.d.ts +0 -3
- package/form/Button/__stories__/CallToActionButton.js +1 -4
- package/form/Button/__stories__/GroupingButtons.d.ts +0 -3
- package/form/Button/__stories__/GroupingButtons.js +0 -3
- package/form/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -3
- package/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
- package/form/Button/__stories__/Primary.d.ts +0 -3
- package/form/Button/__stories__/Primary.js +0 -3
- package/form/Button/__stories__/Secondary.d.ts +0 -3
- package/form/Button/__stories__/Secondary.js +0 -3
- package/form/Button/__stories__/WithVariantLink.d.ts +0 -3
- package/form/Button/__stories__/WithVariantLink.js +0 -3
- package/form/Checkbox/__stories__/WithHint.js +1 -1
- package/form/DateInputContainer/__stories__/Default.js +1 -1
- package/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
- package/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
- package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
- package/form/ErrorMessage/ErrorMessage.stories.d.ts +2 -0
- package/form/ErrorMessage/ErrorMessage.stories.js +28 -0
- package/form/ErrorMessage/__stories__/DateInputError.d.ts +2 -0
- package/form/ErrorMessage/__stories__/DateInputError.js +41 -0
- package/form/ErrorMessage/__stories__/Default.js +11 -8
- package/form/ErrorMessage/__stories__/ErrorMessageOnly.d.ts +2 -0
- package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +26 -0
- package/form/FileUpload/__stories__/Default.js +2 -2
- package/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
- package/form/RadioContainer/RadioContainer.stories.d.ts +1 -0
- package/form/RadioContainer/RadioContainer.stories.js +14 -0
- package/form/RadioContainer/__stories__/Default.js +7 -4
- package/form/RadioContainer/__stories__/InlineWithDivider.js +6 -6
- package/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
- package/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
- package/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
- package/form/RadioContainer/__stories__/WithHints.js +1 -1
- package/form/RadioContainer/__stories__/WithMediumLegend.d.ts +2 -0
- package/form/RadioContainer/__stories__/WithMediumLegend.js +38 -0
- package/form/TextInput/__stories__/FixedWidths.js +8 -18
- package/form/TextInput/__stories__/FluidWidths.js +8 -18
- package/govgr/Footer/Copyright.js +3 -3
- package/icons/Icon/index.d.ts +2 -2
- package/icons/Icon/index.js +1 -1
- package/icons/ImageLogo/index.d.ts +3 -0
- package/icons/ImageLogo/index.js +30 -0
- package/icons/ImageLogoSet/index.d.ts +3 -0
- package/icons/ImageLogoSet/index.js +30 -0
- package/layouts/Basic/Content/index.d.ts +1 -1
- package/layouts/Basic/Side/index.d.ts +1 -1
- package/layouts/Grid/Grid.stories.d.ts +1 -0
- package/layouts/Grid/Grid.stories.js +14 -0
- package/layouts/Grid/__stories__/ResponsiveSpacing.d.ts +2 -0
- package/layouts/Grid/__stories__/ResponsiveSpacing.js +93 -0
- package/navigation/Link/index.d.ts +1 -1
- package/navigation/Link/index.js +12 -13
- package/navigation/NavList/NavList.stories.d.ts +4 -0
- package/navigation/NavList/NavList.stories.js +56 -0
- package/navigation/NavList/NavList.stories.playwright.json +5 -5
- package/navigation/NavList/__stories__/Default.js +19 -60
- package/navigation/NavList/__stories__/NavVertical.d.ts +2 -0
- package/navigation/NavList/__stories__/NavVertical.js +53 -0
- package/navigation/NavList/__stories__/NavVerticalWithTitle.d.ts +2 -0
- package/navigation/NavList/__stories__/NavVerticalWithTitle.js +59 -0
- package/navigation/NavList/__stories__/WithBurgerIcon.d.ts +2 -0
- package/navigation/NavList/__stories__/WithBurgerIcon.js +82 -0
- package/navigation/NavList/__stories__/WithSubMenu.d.ts +2 -0
- package/navigation/NavList/__stories__/WithSubMenu.js +96 -0
- package/navigation/Tabs/__stories__/Default.js +16 -4
- package/package.json +3 -3
- package/registry.d.ts +6 -2
- package/registry.js +11 -2
- package/src/app/BannerContainer/BannerContainer.stories.js +12 -0
- package/src/app/BannerContainer/__stories__/CookiesBanner.tsx +32 -0
- package/src/app/Footer/__stories__/Default.tsx +1 -1
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +14 -18
- package/src/app/Footer/__stories__/FooterWithLink.tsx +5 -7
- package/src/app/Footer/__stories__/FooterWithLogo.tsx +11 -13
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +58 -58
- package/src/app/Masthead/Masthead.stories.js +2 -0
- package/src/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/src/app/Masthead/__stories__/WithElements.tsx +31 -0
- package/src/app/Masthead/__stories__/WithLogo.tsx +28 -0
- package/src/content/Blockquote/Blockquote.stories.js +1 -0
- package/src/content/Blockquote/__stories__/Dense.tsx +11 -0
- package/src/content/Card/Card.stories.js +2 -0
- package/src/content/Card/__stories__/Default.tsx +1 -1
- package/src/content/Card/__stories__/Dense.tsx +24 -0
- package/src/content/Card/__stories__/WithLink.tsx +25 -0
- package/src/content/StepNav/StepNav.stories.js +1 -0
- package/src/content/StepNav/__stories__/Dense.tsx +261 -0
- package/src/content/SummaryList/SummaryList.stories.js +1 -0
- package/src/content/SummaryList/__stories__/Default.tsx +30 -21
- package/src/content/SummaryList/__stories__/WithActions.tsx +37 -41
- package/src/content/SummaryList/__stories__/WithoutActions.tsx +27 -0
- package/src/content/SummaryList/__stories__/WithoutBorders.tsx +31 -17
- package/src/content/Table/__stories__/RowColors.tsx +5 -5
- package/src/content/TaskList/TaskList.stories.js +1 -0
- package/src/content/TaskList/__stories__/Dense.tsx +118 -0
- package/src/content/Timeline/Timeline.stories.js +1 -0
- package/src/content/Timeline/__stories__/Default.tsx +2 -2
- package/src/content/Timeline/__stories__/Dense.tsx +196 -0
- package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
- package/src/feedback/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -1
- package/src/feedback/ErrorSummary/__stories__/LinkedToField.tsx +4 -6
- package/src/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.tsx +49 -0
- package/src/form/Button/__stories__/CallToActionButton.tsx +1 -4
- package/src/form/Button/__stories__/GroupingButtons.tsx +0 -3
- package/src/form/Button/__stories__/GroupingButtonsAndLinks.tsx +0 -3
- package/src/form/Button/__stories__/Primary.tsx +1 -3
- package/src/form/Button/__stories__/Secondary.tsx +0 -3
- package/src/form/Button/__stories__/WithVariantLink.tsx +1 -3
- package/src/form/Checkbox/__stories__/WithHint.tsx +1 -1
- package/src/form/DateInputContainer/__stories__/Default.tsx +1 -1
- package/src/form/DateInputContainer/__stories__/MultipleQuestions.tsx +2 -2
- package/src/form/DateInputContainer/__stories__/WithErrorMessage.tsx +1 -1
- package/src/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +1 -1
- package/src/form/ErrorMessage/ErrorMessage.stories.js +2 -0
- package/src/form/ErrorMessage/__stories__/DateInputError.tsx +34 -0
- package/src/form/ErrorMessage/__stories__/Default.tsx +12 -6
- package/src/form/ErrorMessage/__stories__/ErrorMessageOnly.tsx +12 -0
- package/src/form/FileUpload/__stories__/Default.tsx +2 -2
- package/src/form/FileUpload/__stories__/WithErrorMessage.tsx +2 -2
- package/src/form/RadioContainer/RadioContainer.stories.js +1 -0
- package/src/form/RadioContainer/__stories__/Default.tsx +7 -4
- package/src/form/RadioContainer/__stories__/InlineWithDivider.tsx +5 -5
- package/src/form/RadioContainer/__stories__/MultipleQuestions.tsx +1 -1
- package/src/form/RadioContainer/__stories__/NoneAnswer.tsx +3 -3
- package/src/form/RadioContainer/__stories__/WithErrorMessage.tsx +1 -1
- package/src/form/RadioContainer/__stories__/WithHints.tsx +1 -1
- package/src/form/RadioContainer/__stories__/WithMediumLegend.tsx +32 -0
- package/src/form/TextInput/__stories__/FixedWidths.tsx +8 -8
- package/src/form/TextInput/__stories__/FluidWidths.tsx +2 -2
- package/src/govgr/Footer/Copyright.tsx +11 -11
- package/src/icons/Icon/index.tsx +2 -2
- package/src/icons/ImageLogo/index.tsx +5 -0
- package/src/icons/ImageLogoSet/index.tsx +4 -0
- package/src/layouts/Grid/Grid.stories.js +1 -0
- package/src/layouts/Grid/__stories__/ResponsiveSpacing.tsx +43 -0
- package/src/navigation/Link/index.tsx +1 -1
- package/src/navigation/NavList/NavList.stories.js +4 -0
- package/src/navigation/NavList/NavList.stories.playwright.json +5 -5
- package/src/navigation/NavList/__stories__/Default.tsx +16 -80
- package/src/navigation/NavList/__stories__/NavVertical.tsx +36 -0
- package/src/navigation/NavList/__stories__/NavVerticalWithTitle.tsx +40 -0
- package/src/navigation/NavList/__stories__/WithBurgerIcon.tsx +49 -0
- package/src/navigation/NavList/__stories__/WithSubMenu.tsx +101 -0
- package/src/navigation/Tabs/__stories__/Default.tsx +14 -9
- package/src/registry.js +10 -4
- /package/es/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
- /package/es/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
- /package/esm/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
- /package/esm/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
- /package/form/SelectContainer/{Select.stories.d.ts → SelectContainer.stories.d.ts} +0 -0
- /package/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
- /package/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
- /package/src/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
- /package/src/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CallToAction } from '@digigov/ui/form/Button/CallToAction';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* My primary descrition is the best description that was described
|
|
6
|
-
*/
|
|
7
4
|
export const CallToActionButton = () => (
|
|
8
5
|
<CallToAction
|
|
9
6
|
href="#"
|
|
@@ -11,7 +8,7 @@ export const CallToActionButton = () => (
|
|
|
11
8
|
aria-label="Είσοδος στην υπηρεσία"
|
|
12
9
|
tabIndex={0}
|
|
13
10
|
>
|
|
14
|
-
Είσοδος
|
|
11
|
+
Είσοδος στην υπηρεσία
|
|
15
12
|
</CallToAction>
|
|
16
13
|
);
|
|
17
14
|
export default CallToActionButton;
|
|
@@ -4,9 +4,6 @@ import { Button, ButtonGroup } from '@digigov/ui/form/Button';
|
|
|
4
4
|
|
|
5
5
|
import { Link } from '@digigov/ui/navigation/Link';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* My deescrition is the best description that was described
|
|
9
|
-
*/
|
|
10
7
|
export const GroupingButtonsAndLinks = () => (
|
|
11
8
|
<ButtonGroup>
|
|
12
9
|
<Button aria-label="Συνεχίστε στην επόμενη σελίδα">Συνέχεια</Button>
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import { Button } from '@digigov/ui/form/Button';
|
|
3
4
|
|
|
4
|
-
/**
|
|
5
|
-
* My primary descrition is the best description that was described
|
|
6
|
-
*/
|
|
7
5
|
export const Primary = () => (
|
|
8
6
|
<Button aria-label="Συνεχίστε στην επόμενη σελίδα">Συνέχεια</Button>
|
|
9
7
|
);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from '@digigov/ui/form/Button';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* My primary descrition is the best description that was described
|
|
6
|
-
*/
|
|
7
4
|
export const Secondary = () => (
|
|
8
5
|
<Button color="secondary" aria-label="Συνεχίστε στην επόμενη σελίδα">
|
|
9
6
|
Συνέχεια
|
|
@@ -13,7 +13,7 @@ import { Hint } from '@digigov/ui/typography/Hint';
|
|
|
13
13
|
export const WithHint = () => (
|
|
14
14
|
<FieldContainer>
|
|
15
15
|
<Fieldset aria-describedby="nationality-hint">
|
|
16
|
-
<FieldsetLegend
|
|
16
|
+
<FieldsetLegend>Ποιά είναι η υπηκοότητα σας;</FieldsetLegend>
|
|
17
17
|
<Hint id="nationality-hint">
|
|
18
18
|
Αν έχετε πολλαπλή υπηκοότητα, επιλέξτε ό,τι ισχύει.
|
|
19
19
|
</Hint>
|
|
@@ -17,14 +17,14 @@ export const MultipleQuestions = () => (
|
|
|
17
17
|
<FieldContainer aria-describedby='passport-hint'>
|
|
18
18
|
<Fieldset>
|
|
19
19
|
<FieldsetLegend size="md">
|
|
20
|
-
Πότε εκδόθηκε το
|
|
20
|
+
Πότε εκδόθηκε το διαβατήριό σας;
|
|
21
21
|
</FieldsetLegend>
|
|
22
22
|
<Hint id='passport-hint'>Για παράδειγμα, 05 11 2020</Hint>
|
|
23
23
|
<DateInputContainer>
|
|
24
24
|
<DateInputItem name="day">Ημέρα</DateInputItem>
|
|
25
25
|
<DateInputItem name="month">Μήνας</DateInputItem>
|
|
26
26
|
<DateInputItem width={4} name="year">
|
|
27
|
-
|
|
27
|
+
Έτος
|
|
28
28
|
</DateInputItem>
|
|
29
29
|
</DateInputContainer>
|
|
30
30
|
</Fieldset>
|
|
@@ -28,7 +28,7 @@ export const WithErrorMessageForSingleField = () => (
|
|
|
28
28
|
<DateInputItem name="day">Ημέρα</DateInputItem>
|
|
29
29
|
<DateInputItem name="month">Μήνας</DateInputItem>
|
|
30
30
|
<DateInputItem error width={4} name="year" defaultValue={2043}>
|
|
31
|
-
|
|
31
|
+
Έτος
|
|
32
32
|
</DateInputItem>
|
|
33
33
|
</DateInputContainer>
|
|
34
34
|
</Fieldset>
|
|
@@ -8,3 +8,5 @@ export default {
|
|
|
8
8
|
displayName: 'ErrorMessage',
|
|
9
9
|
};
|
|
10
10
|
export * from '@digigov/ui/form/ErrorMessage/__stories__/Default';
|
|
11
|
+
export * from '@digigov/ui/form/ErrorMessage/__stories__/DateInputError';
|
|
12
|
+
export * from '@digigov/ui/form/ErrorMessage/__stories__/ErrorMessageOnly';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
DateInputContainer,
|
|
4
|
+
DateInputItem,
|
|
5
|
+
} from '@digigov/ui/form/DateInputContainer';
|
|
6
|
+
import { ErrorMessage } from '@digigov/ui/form/ErrorMessage';
|
|
7
|
+
import {
|
|
8
|
+
FieldContainer,
|
|
9
|
+
Fieldset,
|
|
10
|
+
FieldsetLegend,
|
|
11
|
+
} from '@digigov/ui/form/FieldContainer';
|
|
12
|
+
import { Hint } from '@digigov/ui/typography/Hint';
|
|
13
|
+
import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
|
|
14
|
+
|
|
15
|
+
export const DateInputError = () => (
|
|
16
|
+
<FieldContainer error id="passport-date">
|
|
17
|
+
<Fieldset>
|
|
18
|
+
<FieldsetLegend>Ποιά είναι η ημερομηνία γέννησής σας;</FieldsetLegend>
|
|
19
|
+
<Hint>Για παράδειγμα, 05 11 2020</Hint>
|
|
20
|
+
<ErrorMessage>
|
|
21
|
+
<VisuallyHidden>Λάθος:</VisuallyHidden>Η ημερομηνία γέννησης πρέπει να έχει έτος.
|
|
22
|
+
</ErrorMessage>
|
|
23
|
+
<DateInputContainer>
|
|
24
|
+
<DateInputItem name="day">Ημέρα</DateInputItem>
|
|
25
|
+
<DateInputItem name="month">Μήνας</DateInputItem>
|
|
26
|
+
<DateInputItem error width={4} name="year">
|
|
27
|
+
Έτος
|
|
28
|
+
</DateInputItem>
|
|
29
|
+
</DateInputContainer>
|
|
30
|
+
</Fieldset>
|
|
31
|
+
</FieldContainer>
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
export default DateInputError;
|
|
@@ -16,21 +16,27 @@ export const Default = () => (
|
|
|
16
16
|
<FieldContainer error>
|
|
17
17
|
<Fieldset aria-describedby="country-hint">
|
|
18
18
|
<FieldsetLegend>
|
|
19
|
-
|
|
19
|
+
Ποιά είναι η εθνικότητα σας;
|
|
20
20
|
</FieldsetLegend>
|
|
21
21
|
<Hint id="country-hint">
|
|
22
22
|
Αν έχετε πολλαπλή υπηκοότητα, επιλέξτε ό,τι ισχύει.
|
|
23
23
|
</Hint>
|
|
24
24
|
<ErrorMessage id="country-error">
|
|
25
25
|
<VisuallyHidden>Λάθος:</VisuallyHidden>
|
|
26
|
-
Επιλέξτε
|
|
26
|
+
Επιλέξτε αν η εθνικότητα σας είναι ελληνική, κυπριακή ή κάποιας άλλης χώρας.
|
|
27
27
|
</ErrorMessage>
|
|
28
28
|
<Checkbox aria-describedby="country-error">
|
|
29
|
-
<CheckboxItem name="
|
|
30
|
-
|
|
29
|
+
<CheckboxItem name="greek" value="greek">
|
|
30
|
+
Ελληνική
|
|
31
|
+
<Hint>
|
|
32
|
+
συμπεριλαμβανομένων απόδημων πολιτών
|
|
33
|
+
</Hint>
|
|
31
34
|
</CheckboxItem>
|
|
32
|
-
<CheckboxItem name="
|
|
33
|
-
|
|
35
|
+
<CheckboxItem name="cypriot" value="cypriot">
|
|
36
|
+
Κυπριακή
|
|
37
|
+
</CheckboxItem>
|
|
38
|
+
<CheckboxItem name="another_country" value="another_country">
|
|
39
|
+
Άλλη χώρα
|
|
34
40
|
</CheckboxItem>
|
|
35
41
|
</Checkbox>
|
|
36
42
|
</Fieldset>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { ErrorMessage } from '@digigov/ui/form/ErrorMessage';
|
|
4
|
+
import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
|
|
5
|
+
|
|
6
|
+
export const ErrorMessageOnly = () => (
|
|
7
|
+
<ErrorMessage id="birth-date-error">
|
|
8
|
+
<VisuallyHidden>Λάθος:</VisuallyHidden>Η ημερομηνία γέννησης πρέπει να είναι στο παρελθόν.
|
|
9
|
+
</ErrorMessage>
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export default ErrorMessageOnly;
|
|
@@ -13,8 +13,8 @@ export const Default = () => (
|
|
|
13
13
|
<FieldContainer>
|
|
14
14
|
<Fieldset>
|
|
15
15
|
<FieldsetLegend size="md">Λογότυπο επιχείρησης</FieldsetLegend>
|
|
16
|
-
<Hint id=
|
|
17
|
-
<FileUpload aria-describedby=
|
|
16
|
+
<Hint id="file-hint">Το αρχείο μπορεί να είναι png ή jpeg.</Hint>
|
|
17
|
+
<FileUpload aria-describedby="file-hint">Επιλογή αρχείου</FileUpload>
|
|
18
18
|
</Fieldset>
|
|
19
19
|
</FieldContainer>
|
|
20
20
|
);
|
|
@@ -15,12 +15,12 @@ export const WithErrorMessage = () => (
|
|
|
15
15
|
<FieldContainer error>
|
|
16
16
|
<Fieldset>
|
|
17
17
|
<FieldsetLegend size="md">Λογότυπο επιχείρησης</FieldsetLegend>
|
|
18
|
-
<Hint id="
|
|
18
|
+
<Hint id="file-hint">Το αρχείο μπορεί να είναι png ή jpeg.</Hint>
|
|
19
19
|
<ErrorMessage>
|
|
20
20
|
<VisuallyHidden>Λάθος:</VisuallyHidden> Το επιλεγμένο αρχείο πρέπει να
|
|
21
21
|
είναι μικρότερο από 2MB.
|
|
22
22
|
</ErrorMessage>
|
|
23
|
-
<FileUpload aria-describedby="
|
|
23
|
+
<FileUpload aria-describedby="file-hint">Επιλογή αρχείου</FileUpload>
|
|
24
24
|
</Fieldset>
|
|
25
25
|
</FieldContainer>
|
|
26
26
|
);
|
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
displayName: 'RadioContainer',
|
|
9
9
|
};
|
|
10
10
|
export * from '@digigov/ui/form/RadioContainer/__stories__/Default';
|
|
11
|
+
export * from '@digigov/ui/form/RadioContainer/__stories__/WithMediumLegend';
|
|
11
12
|
export * from '@digigov/ui/form/RadioContainer/__stories__/MultipleQuestions';
|
|
12
13
|
export * from '@digigov/ui/form/RadioContainer/__stories__/Inline';
|
|
13
14
|
export * from '@digigov/ui/form/RadioContainer/__stories__/WithHints';
|
|
@@ -10,16 +10,19 @@ import { RadioContainer, RadioItem } from '@digigov/ui/form/RadioContainer';
|
|
|
10
10
|
export const Default = () => (
|
|
11
11
|
<FieldContainer>
|
|
12
12
|
<Fieldset>
|
|
13
|
-
<FieldsetLegend
|
|
13
|
+
<FieldsetLegend>Ποιά είναι η χώρα της διαμονής σας;</FieldsetLegend>
|
|
14
14
|
<RadioContainer>
|
|
15
15
|
<RadioItem name="country" value="greece">
|
|
16
16
|
Ελλάδα
|
|
17
17
|
</RadioItem>
|
|
18
|
+
<RadioItem name="country" value="cyprus">
|
|
19
|
+
Κύπρος
|
|
20
|
+
</RadioItem>
|
|
18
21
|
<RadioItem name="country" value="eu">
|
|
19
|
-
Χώρα
|
|
22
|
+
Χώρα της Ευρωπαϊκής Ένωσης
|
|
20
23
|
</RadioItem>
|
|
21
|
-
<RadioItem name="country" value="
|
|
22
|
-
|
|
24
|
+
<RadioItem name="country" value="us">
|
|
25
|
+
Hνωμένες Πολιτείες της Αμερικής
|
|
23
26
|
</RadioItem>
|
|
24
27
|
</RadioContainer>
|
|
25
28
|
</Fieldset>
|
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
FieldsetLegend,
|
|
7
7
|
} from '@digigov/ui/form/FieldContainer';
|
|
8
8
|
import { RadioContainer, RadioItem } from '@digigov/ui/form/RadioContainer';
|
|
9
|
+
import Hint from '@digigov/ui/typography/Hint';
|
|
9
10
|
|
|
10
|
-
import { Hint } from '@digigov/ui/typography/Hint';
|
|
11
11
|
|
|
12
12
|
export const InlineWithDivider = () => (
|
|
13
13
|
<FieldContainer>
|
|
14
|
-
<Fieldset aria-describedby="
|
|
14
|
+
<Fieldset aria-describedby="feeling-hint">
|
|
15
15
|
<FieldsetLegend>Έχετε αλλάξει το όνομα σας;</FieldsetLegend>
|
|
16
16
|
<Hint id="name-hint">
|
|
17
|
-
Συμπεριλαμβάνεται αλλαγή του
|
|
18
|
-
γράφετε το
|
|
17
|
+
Συμπεριλαμβάνεται αλλαγή του επιθέτου σας ή αλλαγή του τρόπου που
|
|
18
|
+
γράφετε το όνομά σας.
|
|
19
19
|
</Hint>
|
|
20
20
|
<RadioContainer layout='horizontal'>
|
|
21
21
|
<RadioItem name="changed_name" value="yes">
|
|
22
22
|
Ναι
|
|
23
23
|
</RadioItem>
|
|
24
|
-
<RadioItem name="changed_name" value="no"
|
|
24
|
+
<RadioItem dividerText='ή' name="changed_name" value="no">
|
|
25
25
|
Όχι
|
|
26
26
|
</RadioItem>
|
|
27
27
|
</RadioContainer>
|
|
@@ -13,7 +13,7 @@ export const MultipleQuestions = () => (
|
|
|
13
13
|
<FieldContainer>
|
|
14
14
|
<Fieldset aria-describedby="country-hint">
|
|
15
15
|
<FieldsetLegend size="sm">
|
|
16
|
-
|
|
16
|
+
Ποιά είναι η χώρα της διαμονής σας;
|
|
17
17
|
</FieldsetLegend>
|
|
18
18
|
<Hint id="country-hint">
|
|
19
19
|
Πείτε μας σχετικά με πρόσφατες αλλαγές. Επιλέξτε ό,τι ισχύει.
|
|
@@ -9,8 +9,8 @@ import { RadioContainer, RadioItem } from '@digigov/ui/form/RadioContainer';
|
|
|
9
9
|
|
|
10
10
|
export const NoneAnswer = () => (
|
|
11
11
|
<FieldContainer>
|
|
12
|
-
<Fieldset>
|
|
13
|
-
<FieldsetLegend>Πόσα παιδιά έχετε;</FieldsetLegend>
|
|
12
|
+
<Fieldset aria-describedby="name-hint">
|
|
13
|
+
<FieldsetLegend size='md'>Πόσα παιδιά έχετε;</FieldsetLegend>
|
|
14
14
|
<RadioContainer>
|
|
15
15
|
<RadioItem name="children" value="onetwo">
|
|
16
16
|
1-2 παιδιά
|
|
@@ -18,7 +18,7 @@ export const NoneAnswer = () => (
|
|
|
18
18
|
<RadioItem name="children" value="threefour">
|
|
19
19
|
3 ή περισσότερα παιδιά
|
|
20
20
|
</RadioItem>
|
|
21
|
-
<RadioItem
|
|
21
|
+
<RadioItem dividerText="ή" name="children" value="none">
|
|
22
22
|
Κανένα παιδί
|
|
23
23
|
</RadioItem>
|
|
24
24
|
</RadioContainer>
|
|
@@ -14,7 +14,7 @@ import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
|
|
|
14
14
|
export const WithErrorMessage = () => (
|
|
15
15
|
<FieldContainer error>
|
|
16
16
|
<Fieldset aria-describedby="travel-hint travel-error">
|
|
17
|
-
<FieldsetLegend>
|
|
17
|
+
<FieldsetLegend size='md'>
|
|
18
18
|
Θα ταξιδέψετε σε κάποια από αυτές τις χώρες;
|
|
19
19
|
</FieldsetLegend>
|
|
20
20
|
<Hint id="travel-hint">Μπορείτε να επιλέξετε μόνο μία επιλογή.</Hint>
|
|
@@ -14,7 +14,7 @@ export const WithHints = () => (
|
|
|
14
14
|
<Fieldset aria-describedby="login-hint">
|
|
15
15
|
<FieldsetLegend size="md">Πώς θέλετε να συνδεθείτε;</FieldsetLegend>
|
|
16
16
|
<Hint id="login-hint">
|
|
17
|
-
Θα χρειαστείτε έναν λογαριασμό με τον οποίο θα αποδείξετε την
|
|
17
|
+
Θα χρειαστείτε έναν λογαριασμό με τον οποίο θα αποδείξετε την ταυτότητά
|
|
18
18
|
σας ώστε να προχωρήσετε.
|
|
19
19
|
</Hint>
|
|
20
20
|
<RadioContainer>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
FieldContainer,
|
|
5
|
+
Fieldset,
|
|
6
|
+
FieldsetLegend,
|
|
7
|
+
} from '@digigov/ui/form/FieldContainer';
|
|
8
|
+
import { RadioContainer, RadioItem } from '@digigov/ui/form/RadioContainer';
|
|
9
|
+
|
|
10
|
+
export const WithMediumLegend = () => (
|
|
11
|
+
<FieldContainer>
|
|
12
|
+
<Fieldset>
|
|
13
|
+
<FieldsetLegend size="md">Ποιά είναι η χώρα της διαμονής σας;</FieldsetLegend>
|
|
14
|
+
<RadioContainer>
|
|
15
|
+
<RadioItem name="country" value="greece">
|
|
16
|
+
Ελλάδα
|
|
17
|
+
</RadioItem>
|
|
18
|
+
<RadioItem name="country" value="cyprus">
|
|
19
|
+
Κύπρος
|
|
20
|
+
</RadioItem>
|
|
21
|
+
<RadioItem name="country" value="eu">
|
|
22
|
+
Χώρα της Ευρωπαϊκής Ένωσης
|
|
23
|
+
</RadioItem>
|
|
24
|
+
<RadioItem name="country" value="us">
|
|
25
|
+
Hνωμένες Πολιτείες της Αμερικής
|
|
26
|
+
</RadioItem>
|
|
27
|
+
</RadioContainer>
|
|
28
|
+
</Fieldset>
|
|
29
|
+
</FieldContainer>
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export default WithMediumLegend;
|
|
@@ -5,44 +5,44 @@ import { LabelTitle } from '@digigov/ui/form/LabelContainer';
|
|
|
5
5
|
import { TextInput } from '@digigov/ui/form/TextInput';
|
|
6
6
|
|
|
7
7
|
export const FixedWidths = () => (
|
|
8
|
-
|
|
8
|
+
<div>
|
|
9
9
|
<FieldContainer>
|
|
10
10
|
<LabelContainer>
|
|
11
11
|
<LabelTitle size="sm">Πεδίο 20 χαρακτήρων</LabelTitle>
|
|
12
|
-
|
|
12
|
+
<TextInput name="inputext" maxWidth={'20-char'}></TextInput>
|
|
13
13
|
</LabelContainer>
|
|
14
14
|
</FieldContainer>
|
|
15
15
|
<FieldContainer>
|
|
16
16
|
<LabelContainer>
|
|
17
17
|
<LabelTitle size="sm">Πεδίο 10 χαρακτήρων</LabelTitle>
|
|
18
|
-
|
|
18
|
+
<TextInput name="inputext" maxWidth={'10-char'}></TextInput>
|
|
19
19
|
</LabelContainer>
|
|
20
20
|
</FieldContainer>
|
|
21
21
|
<FieldContainer>
|
|
22
22
|
<LabelContainer>
|
|
23
23
|
<LabelTitle size="sm">Πεδίο 5 χαρακτήρων</LabelTitle>
|
|
24
|
-
|
|
24
|
+
<TextInput name="inputext" maxWidth={'5-char'}></TextInput>
|
|
25
25
|
</LabelContainer>
|
|
26
26
|
</FieldContainer>
|
|
27
27
|
<FieldContainer>
|
|
28
28
|
<LabelContainer>
|
|
29
29
|
<LabelTitle size="sm">Πεδίο 4 χαρακτήρων</LabelTitle>
|
|
30
|
-
|
|
30
|
+
<TextInput name="inputext" maxWidth={'4-char'}></TextInput>
|
|
31
31
|
</LabelContainer>
|
|
32
32
|
</FieldContainer>
|
|
33
33
|
<FieldContainer>
|
|
34
34
|
<LabelContainer>
|
|
35
35
|
<LabelTitle size="sm">Πεδίο 3 χαρακτήρων</LabelTitle>
|
|
36
|
-
|
|
36
|
+
<TextInput name="inputext" maxWidth={'3-char'}></TextInput>
|
|
37
37
|
</LabelContainer>
|
|
38
38
|
</FieldContainer>
|
|
39
39
|
<FieldContainer>
|
|
40
40
|
<LabelContainer>
|
|
41
41
|
<LabelTitle size="sm">Πεδίο 2 χαρακτήρων</LabelTitle>
|
|
42
|
-
|
|
42
|
+
<TextInput name="inputext" maxWidth={'2-char'}></TextInput>
|
|
43
43
|
</LabelContainer>
|
|
44
44
|
</FieldContainer>
|
|
45
|
-
|
|
45
|
+
</div>
|
|
46
46
|
);
|
|
47
47
|
|
|
48
48
|
export default FixedWidths;
|
|
@@ -5,7 +5,7 @@ import { LabelTitle } from '@digigov/ui/form/LabelContainer';
|
|
|
5
5
|
import { TextInput } from '@digigov/ui/form/TextInput';
|
|
6
6
|
|
|
7
7
|
export const FluidWidths = () => (
|
|
8
|
-
|
|
8
|
+
<div>
|
|
9
9
|
<FieldContainer>
|
|
10
10
|
<LabelContainer>
|
|
11
11
|
<LabelTitle size="sm">Μέγιστο πλάτος</LabelTitle>
|
|
@@ -42,7 +42,7 @@ export const FluidWidths = () => (
|
|
|
42
42
|
<TextInput name="inputext" width='25%'></TextInput>
|
|
43
43
|
</LabelContainer>
|
|
44
44
|
</FieldContainer>
|
|
45
|
-
|
|
45
|
+
</div>
|
|
46
46
|
);
|
|
47
47
|
|
|
48
48
|
export default FluidWidths;
|
|
@@ -23,13 +23,13 @@ export const Copyright: React.FC<CopyrightProps> = ({
|
|
|
23
23
|
const { t } = useTranslation();
|
|
24
24
|
const copyrightInfo = minDigitalCopyright
|
|
25
25
|
? {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
url: 'https://mindigital.gr',
|
|
27
|
+
label: t('footer.mindigital'),
|
|
28
|
+
}
|
|
29
29
|
: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
url: 'https://grnet.gr',
|
|
31
|
+
label: t('footer.grnet'),
|
|
32
|
+
};
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<CopyrightContainer {...props}>
|
|
@@ -40,23 +40,23 @@ export const Copyright: React.FC<CopyrightProps> = ({
|
|
|
40
40
|
{copyright}
|
|
41
41
|
{createdBy || (
|
|
42
42
|
<>
|
|
43
|
-
{t('footer.created_by')}
|
|
43
|
+
{`${t('footer.created_by')} `}
|
|
44
44
|
<Link
|
|
45
45
|
href={copyrightInfo.url}
|
|
46
46
|
target="_blank"
|
|
47
47
|
rel="noopener noreferrer"
|
|
48
48
|
>
|
|
49
|
-
{copyrightInfo.label}
|
|
50
|
-
</Link>
|
|
49
|
+
{`${copyrightInfo.label}`}
|
|
50
|
+
</Link>
|
|
51
51
|
{!minDigitalCopyright && (
|
|
52
52
|
<>
|
|
53
|
-
{t('footer.created_for')}
|
|
53
|
+
{` ${t('footer.created_for')} `}
|
|
54
54
|
<Link
|
|
55
55
|
href="https://mindigital.gr"
|
|
56
56
|
target="_blank"
|
|
57
57
|
rel="noopener noreferrer"
|
|
58
58
|
>
|
|
59
|
-
{t('footer.mindigital')}
|
|
59
|
+
{`${t('footer.mindigital')}`}
|
|
60
60
|
</Link>
|
|
61
61
|
</>
|
|
62
62
|
)}
|
package/src/icons/Icon/index.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '@digigov/react-
|
|
1
|
+
export * from '@digigov/react-icons/Icon';
|
|
2
2
|
export * from '@digigov/react-icons';
|
|
3
3
|
export * from '@digigov/react-icons/icons';
|
|
4
4
|
|
|
5
|
-
import Icon from '@digigov/react-
|
|
5
|
+
import Icon from '@digigov/react-icons/Icon';
|
|
6
6
|
export default Icon;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Card } from '@digigov/ui/content/Card';
|
|
3
|
+
import { Grid } from '@digigov/ui/layouts/Grid';
|
|
4
|
+
|
|
5
|
+
export const ResponsiveSpacing = () => {
|
|
6
|
+
return (
|
|
7
|
+
<>
|
|
8
|
+
<Grid role="grid" aria-label="grid-example" container spacing={{xs:1, sm:4, md:6, lg:8, xl:12}}>
|
|
9
|
+
<Grid role="row" xs={12} sm={6} md={4}>
|
|
10
|
+
<Card variant="border" role="gridcell">
|
|
11
|
+
1
|
|
12
|
+
</Card>
|
|
13
|
+
</Grid>
|
|
14
|
+
<Grid role="row" xs={12} sm={6} md={4}>
|
|
15
|
+
<Card variant="border" role="gridcell">
|
|
16
|
+
1
|
|
17
|
+
</Card>
|
|
18
|
+
</Grid>
|
|
19
|
+
<Grid role="row" xs={12} sm={6} md={4}>
|
|
20
|
+
<Card variant="border" role="gridcell">
|
|
21
|
+
1
|
|
22
|
+
</Card>
|
|
23
|
+
</Grid>
|
|
24
|
+
<Grid role="row" xs={12} sm={6} md={4}>
|
|
25
|
+
<Card variant="border" role="gridcell">
|
|
26
|
+
1
|
|
27
|
+
</Card>
|
|
28
|
+
</Grid>
|
|
29
|
+
<Grid role="row" xs={12} sm={6} md={4}>
|
|
30
|
+
<Card variant="border" role="gridcell">
|
|
31
|
+
1
|
|
32
|
+
</Card>
|
|
33
|
+
</Grid>
|
|
34
|
+
<Grid role="row" xs={12} sm={6} md={4}>
|
|
35
|
+
<Card variant="border" role="gridcell">
|
|
36
|
+
1
|
|
37
|
+
</Card>
|
|
38
|
+
</Grid>
|
|
39
|
+
</Grid>
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
export default ResponsiveSpacing;
|
|
@@ -8,4 +8,8 @@ export default {
|
|
|
8
8
|
displayName: 'NavList',
|
|
9
9
|
};
|
|
10
10
|
export * from '@digigov/ui/navigation/NavList/__stories__/Default';
|
|
11
|
+
export * from '@digigov/ui/navigation/NavList/__stories__/NavVertical';
|
|
12
|
+
export * from '@digigov/ui/navigation/NavList/__stories__/NavVerticalWithTitle';
|
|
13
|
+
export * from '@digigov/ui/navigation/NavList/__stories__/WithSubMenu';
|
|
11
14
|
export * from '@digigov/ui/navigation/NavList/__stories__/NavVerticalLayout';
|
|
15
|
+
export * from '@digigov/ui/navigation/NavList/__stories__/WithBurgerIcon';
|