@digigov/ui 1.0.0-290a96e2 → 1.0.0-3bfc7d37
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/__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/__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/ImageLogo/index.js +3 -0
- package/es/icons/ImageLogoSet/index.js +3 -0
- 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/__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/ImageLogo/index.js +3 -0
- package/esm/icons/ImageLogoSet/index.js +3 -0
- package/esm/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/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/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/__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/ImageLogo/index.tsx +5 -0
- package/src/icons/ImageLogoSet/index.tsx +4 -0
- 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
|
@@ -132,8 +132,8 @@ export const Default = () => (
|
|
|
132
132
|
{data &&
|
|
133
133
|
data.map((field, index) => {
|
|
134
134
|
return (
|
|
135
|
-
<TimelineItem key={index}
|
|
136
|
-
<TimelineHeading size="md"
|
|
135
|
+
<TimelineItem key={index}>
|
|
136
|
+
<TimelineHeading size="md">
|
|
137
137
|
{field.title}
|
|
138
138
|
{field.codename && (
|
|
139
139
|
<>
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Timeline,
|
|
4
|
+
TimelineItem,
|
|
5
|
+
TimelineHeading,
|
|
6
|
+
TimelineContent,
|
|
7
|
+
TimelineActions,
|
|
8
|
+
} from '@digigov/ui/content/Timeline';
|
|
9
|
+
import { Button, ButtonGroup } from '@digigov/ui/form/Button';
|
|
10
|
+
import { Hint } from '@digigov/ui/typography/Hint';
|
|
11
|
+
import {
|
|
12
|
+
SummaryList,
|
|
13
|
+
SummaryListItem,
|
|
14
|
+
SummaryListItemAction,
|
|
15
|
+
SummaryListItemKey,
|
|
16
|
+
SummaryListItemValue,
|
|
17
|
+
} from '@digigov/ui/content/SummaryList';
|
|
18
|
+
|
|
19
|
+
const data = [
|
|
20
|
+
{
|
|
21
|
+
title: 'Απάντηση',
|
|
22
|
+
codename: '(KEP-APA)',
|
|
23
|
+
date: '7 Απριλίου 2023, 12:32μ.μ.',
|
|
24
|
+
details: [
|
|
25
|
+
{
|
|
26
|
+
name: 'Ημερομηνία',
|
|
27
|
+
value: '7 Απριλίου 2023, 12:32μ.μ.',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Χειριστής',
|
|
31
|
+
value: 'Καλλιόπη Παπαδοπούλου',
|
|
32
|
+
actions: ['Ανάθεση'],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Κωδικός επαλήθευσης',
|
|
36
|
+
value: '637283494',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Κατάσταση',
|
|
40
|
+
value: 'Εισερχόμενη',
|
|
41
|
+
actions: ['Αλλαγή'],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: 'Συμπληρωματικά έγγραφα ',
|
|
47
|
+
codename: '(MORE-DOCS)',
|
|
48
|
+
date: '5 Απριλίου 2023, 8:32π.μ.',
|
|
49
|
+
details: [
|
|
50
|
+
{
|
|
51
|
+
name: 'Ημερομηνία',
|
|
52
|
+
value: '7 Απριλίου 2023, 12:32μ.μ.',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Χειριστής',
|
|
56
|
+
value: 'Μαρία Φλούπη',
|
|
57
|
+
actions: ['Ανάθεση'],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Κωδικός επαλήθευσης',
|
|
61
|
+
value: '637283494',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Κατάσταση',
|
|
65
|
+
value: 'Εισερχόμενη',
|
|
66
|
+
actions: ['Αλλαγή'],
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: 'Αίτηση για συμπληρωματικά έγγραφα',
|
|
72
|
+
codename: '(MORE-DOCS-REQUEST)',
|
|
73
|
+
date: '5 Απριλίου 2023, 8:32π.μ.',
|
|
74
|
+
details: [
|
|
75
|
+
{
|
|
76
|
+
name: 'Ημερομηνία',
|
|
77
|
+
value: '5 Απριλίου 2023, 8:32π.μ.',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Χειριστής',
|
|
81
|
+
value: 'Μαρία Φλούπη',
|
|
82
|
+
actions: ['Ανάθεση'],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'Κωδικός επαλήθευσης',
|
|
86
|
+
value: '974256',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'Κατάσταση',
|
|
90
|
+
value: 'Εισερχόμενη',
|
|
91
|
+
actions: ['Αλλαγή'],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
title: 'Αίτηση Βεβαίωσης Μόνιμης Κατοικίας',
|
|
97
|
+
codename: '(PERMRES-FOREIS)',
|
|
98
|
+
date: '3 Απριλίου 2023, 5:42μ.μ.',
|
|
99
|
+
actions: [
|
|
100
|
+
{
|
|
101
|
+
label: 'Απάντηση',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: 'Αίτημα για συμπληρωματικά έγγραφα',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
details: [
|
|
108
|
+
{
|
|
109
|
+
name: 'Ημερομηνία',
|
|
110
|
+
value: '3 Απριλίου 2023, 5:42μ.μ.',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'Χειριστής',
|
|
114
|
+
value: 'Μαρία Φλούπη',
|
|
115
|
+
actions: ['Ανάθεση'],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Κωδικός επαλήθευσης',
|
|
119
|
+
value: '475747',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'Κατάσταση',
|
|
123
|
+
value: 'Εισερχόμενη',
|
|
124
|
+
actions: ['Αλλαγή'],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
];
|
|
129
|
+
|
|
130
|
+
export const Dense = () => (
|
|
131
|
+
<Timeline dense>
|
|
132
|
+
{data &&
|
|
133
|
+
data.map((field, index) => {
|
|
134
|
+
return (
|
|
135
|
+
<TimelineItem key={index}>
|
|
136
|
+
<TimelineHeading size="md">
|
|
137
|
+
{field.title}
|
|
138
|
+
{field.codename && (
|
|
139
|
+
<>
|
|
140
|
+
{' - '} {field.codename}
|
|
141
|
+
</>
|
|
142
|
+
)}
|
|
143
|
+
</TimelineHeading>
|
|
144
|
+
<Hint>{field.date}</Hint>
|
|
145
|
+
<TimelineContent>
|
|
146
|
+
{field.details && (
|
|
147
|
+
<SummaryList>
|
|
148
|
+
{field.details.map((field, index) => {
|
|
149
|
+
return (
|
|
150
|
+
<SummaryListItem key={index}>
|
|
151
|
+
<SummaryListItemKey>{field.name}</SummaryListItemKey>
|
|
152
|
+
<SummaryListItemValue>
|
|
153
|
+
{field.value}
|
|
154
|
+
</SummaryListItemValue>
|
|
155
|
+
{field.actions && (
|
|
156
|
+
<SummaryListItemAction>
|
|
157
|
+
<ButtonGroup>
|
|
158
|
+
{field.actions &&
|
|
159
|
+
field.actions.map((action, subIndex) => {
|
|
160
|
+
return (
|
|
161
|
+
<Button key={subIndex} variant="link">
|
|
162
|
+
{action}
|
|
163
|
+
</Button>
|
|
164
|
+
);
|
|
165
|
+
})}
|
|
166
|
+
</ButtonGroup>
|
|
167
|
+
</SummaryListItemAction>
|
|
168
|
+
)}
|
|
169
|
+
</SummaryListItem>
|
|
170
|
+
);
|
|
171
|
+
})}
|
|
172
|
+
</SummaryList>
|
|
173
|
+
)}
|
|
174
|
+
</TimelineContent>
|
|
175
|
+
<TimelineActions>
|
|
176
|
+
<ButtonGroup>
|
|
177
|
+
{(field.actions || []).map((action, subIndex) => (
|
|
178
|
+
<Button key={subIndex} variant="link">
|
|
179
|
+
{action.label}
|
|
180
|
+
</Button>
|
|
181
|
+
))}
|
|
182
|
+
<Button color="secondary" variant="link">
|
|
183
|
+
Προβολή εγγράφου
|
|
184
|
+
</Button>
|
|
185
|
+
<Button color="secondary" variant="link">
|
|
186
|
+
Λήψη PDF
|
|
187
|
+
</Button>
|
|
188
|
+
</ButtonGroup>
|
|
189
|
+
</TimelineActions>
|
|
190
|
+
</TimelineItem>
|
|
191
|
+
);
|
|
192
|
+
})}
|
|
193
|
+
</Timeline>
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
export default Dense;
|
|
@@ -11,3 +11,4 @@ export * from '@digigov/ui/feedback/ErrorSummary/__stories__/Default';
|
|
|
11
11
|
export * from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToInput';
|
|
12
12
|
export * from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToField';
|
|
13
13
|
export * from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToCheckbox';
|
|
14
|
+
export * from '@digigov/ui/feedback/ErrorSummary/__stories__/WithBackLinkAndButton';
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import { Link } from '@digigov/ui/navigation/Link';
|
|
11
11
|
import { Heading } from '@digigov/ui/typography/Heading';
|
|
12
12
|
import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
|
|
13
|
+
import { Hint } from '@digigov/ui/typography/Hint';
|
|
13
14
|
|
|
14
15
|
export const LinkedToCheckbox = () => (
|
|
15
16
|
<div>
|
|
@@ -17,12 +18,12 @@ export const LinkedToCheckbox = () => (
|
|
|
17
18
|
<Heading size="sm">Υπήρξε κάποιο πρόβλημα</Heading>
|
|
18
19
|
<Link href="#england">Επιλέξτε μία ή παραπάνω χώρες.</Link>
|
|
19
20
|
</ErrorSummary>
|
|
20
|
-
|
|
21
21
|
<FieldContainer error>
|
|
22
22
|
<Fieldset>
|
|
23
23
|
<FieldsetLegend>
|
|
24
24
|
Θα ταξιδέψετε σε κάποια από αυτές τις χώρες;
|
|
25
25
|
</FieldsetLegend>
|
|
26
|
+
<Hint>Πείτε μας σχετικά με πρόσφατες αλλαγές. Επιλέξτε ό,τι ισχύει.</Hint>
|
|
26
27
|
<ErrorMessage>
|
|
27
28
|
<VisuallyHidden>Λάθος:</VisuallyHidden> Επιλέξτε μία ή παραπάνω χώρες.
|
|
28
29
|
</ErrorMessage>
|
|
@@ -20,23 +20,21 @@ export const LinkedToField = () => (
|
|
|
20
20
|
<ErrorSummary>
|
|
21
21
|
<Heading size="sm">Υπήρξε κάποιο πρόβλημα</Heading>
|
|
22
22
|
<Link href="#passport-date">
|
|
23
|
-
|
|
24
|
-
παρελθόν.
|
|
23
|
+
Πρέπει να συμπληρώσετε το έτος.
|
|
25
24
|
</Link>
|
|
26
25
|
</ErrorSummary>
|
|
27
26
|
<FieldContainer error id="passport-date">
|
|
28
27
|
<Fieldset>
|
|
29
|
-
<FieldsetLegend
|
|
28
|
+
<FieldsetLegend>Ποιά είναι η ημερομηνία γέννησής σας;</FieldsetLegend>
|
|
30
29
|
<Hint>Για παράδειγμα, 05 11 2020</Hint>
|
|
31
30
|
<ErrorMessage>
|
|
32
|
-
<VisuallyHidden>Λάθος:</VisuallyHidden
|
|
33
|
-
διαβατηρίου σας θα πρέπει να είναι στο παρελθόν.
|
|
31
|
+
<VisuallyHidden>Λάθος:</VisuallyHidden>Η ημερομηνία γέννησης πρέπει να έχει έτος.
|
|
34
32
|
</ErrorMessage>
|
|
35
33
|
<DateInputContainer>
|
|
36
34
|
<DateInputItem name="day">Ημέρα</DateInputItem>
|
|
37
35
|
<DateInputItem name="month">Μήνας</DateInputItem>
|
|
38
36
|
<DateInputItem error width={4} name="year">
|
|
39
|
-
|
|
37
|
+
Έτος
|
|
40
38
|
</DateInputItem>
|
|
41
39
|
</DateInputContainer>
|
|
42
40
|
</Fieldset>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ErrorSummary } from '@digigov/ui/feedback/ErrorSummary';
|
|
3
|
+
import {
|
|
4
|
+
DateInputContainer,
|
|
5
|
+
DateInputItem,
|
|
6
|
+
} from '@digigov/ui/form/DateInputContainer';
|
|
7
|
+
import { ErrorMessage } from '@digigov/ui/form/ErrorMessage';
|
|
8
|
+
import {
|
|
9
|
+
FieldContainer,
|
|
10
|
+
Fieldset,
|
|
11
|
+
FieldsetLegend,
|
|
12
|
+
} from '@digigov/ui/form/FieldContainer';
|
|
13
|
+
import { Link } from '@digigov/ui/navigation/Link';
|
|
14
|
+
import { Heading } from '@digigov/ui/typography/Heading';
|
|
15
|
+
import { Hint } from '@digigov/ui/typography/Hint';
|
|
16
|
+
import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
|
|
17
|
+
import { BackLink } from '@digigov/ui/navigation/BackLink';
|
|
18
|
+
import Button from '@digigov/ui/form/Button';
|
|
19
|
+
|
|
20
|
+
export const WithBackLinkAndButton = () => (
|
|
21
|
+
<div>
|
|
22
|
+
<BackLink href="/">Πίσω</BackLink>
|
|
23
|
+
<ErrorSummary>
|
|
24
|
+
<Heading size="sm">Υπήρξε κάποιο πρόβλημα</Heading>
|
|
25
|
+
<Link href="#passport-date">
|
|
26
|
+
Πρέπει να συμπληρώσετε το έτος
|
|
27
|
+
</Link>
|
|
28
|
+
</ErrorSummary>
|
|
29
|
+
<FieldContainer error id="passport-date">
|
|
30
|
+
<Fieldset>
|
|
31
|
+
<FieldsetLegend>Ποιά είναι η ημερομηνία γέννησής σας</FieldsetLegend>
|
|
32
|
+
<Hint>Για παράδειγμα, 05 11 2020</Hint>
|
|
33
|
+
<ErrorMessage>
|
|
34
|
+
<VisuallyHidden>Λάθος:</VisuallyHidden>Η ημερομηνία γέννησης πρέπει να έχει έτος.
|
|
35
|
+
</ErrorMessage>
|
|
36
|
+
<DateInputContainer>
|
|
37
|
+
<DateInputItem name="day">Ημέρα</DateInputItem>
|
|
38
|
+
<DateInputItem name="month">Μήνας</DateInputItem>
|
|
39
|
+
<DateInputItem error width={4} name="year">
|
|
40
|
+
Έτος
|
|
41
|
+
</DateInputItem>
|
|
42
|
+
</DateInputContainer>
|
|
43
|
+
</Fieldset>
|
|
44
|
+
</FieldContainer>
|
|
45
|
+
<Button>Συνέχεια</Button>
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export default WithBackLinkAndButton;
|
|
@@ -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
|
Πείτε μας σχετικά με πρόσφατες αλλαγές. Επιλέξτε ό,τι ισχύει.
|