@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
|
@@ -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
|
)}
|
|
@@ -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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "4",
|
|
3
3
|
"stories": {
|
|
4
|
-
"digigov-ui-navigation-navlist--
|
|
4
|
+
"digigov-ui-navigation-navlist--with-sub-menu": {
|
|
5
5
|
"actionSets": [
|
|
6
6
|
{
|
|
7
7
|
"actions": [
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
|
-
"id": "
|
|
16
|
-
"title": "Hover
|
|
15
|
+
"id": "FO0jt9D4koTE",
|
|
16
|
+
"title": "Hover Item"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"actions": [
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
],
|
|
27
|
-
"id": "
|
|
28
|
-
"title": "Open
|
|
27
|
+
"id": "pSAeXNWiklxX",
|
|
28
|
+
"title": "Open submenu"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
}
|
|
@@ -1,97 +1,33 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Nav,
|
|
4
4
|
NavList,
|
|
5
5
|
NavListItemAction,
|
|
6
|
-
NavMenuContainer,
|
|
7
|
-
NavMenuContent,
|
|
8
|
-
NavMenuContentList,
|
|
9
|
-
NavMenuContentListItem,
|
|
10
|
-
NavMenuTitle,
|
|
11
6
|
useNavList
|
|
12
7
|
} from '@digigov/ui/navigation/NavList';
|
|
13
|
-
import { Link } from '@digigov/ui/navigation/Link';
|
|
14
8
|
|
|
15
9
|
const links = [
|
|
16
|
-
{ name: 'home', href: '#home', label: 'Αρχική' },
|
|
17
|
-
{
|
|
18
|
-
name: 'educational',
|
|
19
|
-
label: 'Εκπαιδευτικό υλικό',
|
|
20
|
-
subMenu: [
|
|
21
|
-
{
|
|
22
|
-
name: 'elearning',
|
|
23
|
-
href: '#elearning',
|
|
24
|
-
label: 'Εκπαιδευτική πλατφόρμα',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'videos',
|
|
28
|
-
href: '#videos',
|
|
29
|
-
label: 'Βίντεο',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'presentations',
|
|
33
|
-
href: '#presentations',
|
|
34
|
-
label: 'Παρουσιάσεις',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name: 'promoting',
|
|
38
|
-
href: '#promoting',
|
|
39
|
-
label: 'Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: 'other-texts',
|
|
43
|
-
href: '#other-texts',
|
|
44
|
-
label: 'Άλλα κείμενα',
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
},
|
|
10
|
+
{ name: 'home', href: '#home', label: 'Αρχική', active: true },
|
|
11
|
+
{ name: 'new_form', href: '#new_form', label: 'Καταχώριση φόρμας' },
|
|
48
12
|
{ name: 'news', href: '#news', label: 'Νέα' },
|
|
13
|
+
{ name: 'contact', href: '#contact', label: 'Επικοινωνία' },
|
|
49
14
|
];
|
|
50
15
|
|
|
51
|
-
|
|
52
16
|
export const Default = () => {
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
const { registerNavItemMenu, registerNavItem } = useNavList();
|
|
17
|
+
const { registerNavItem } = useNavList();
|
|
18
|
+
|
|
56
19
|
return (
|
|
57
|
-
<Nav
|
|
58
|
-
|
|
20
|
+
<Nav
|
|
21
|
+
role="menubar"
|
|
22
|
+
aria-orientation="horizontal"
|
|
23
|
+
aria-label="Nav list"
|
|
24
|
+
fixed={false}
|
|
25
|
+
>
|
|
26
|
+
<NavList>
|
|
59
27
|
{links.map((item, key) => (
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</NavListItemAction>
|
|
64
|
-
{item.subMenu &&
|
|
65
|
-
<NavMenuContainer
|
|
66
|
-
layout={layout}
|
|
67
|
-
{...registerNavItemMenu(item.name)}
|
|
68
|
-
>
|
|
69
|
-
<NavMenuTitle>{item.label}</NavMenuTitle>
|
|
70
|
-
<NavMenuContent>
|
|
71
|
-
<NavMenuContentList role="menu">
|
|
72
|
-
{item.subMenu?.map((subMenu, menuIndex) => {
|
|
73
|
-
return (
|
|
74
|
-
subMenu?.href && (
|
|
75
|
-
<NavMenuContentListItem
|
|
76
|
-
key={menuIndex}
|
|
77
|
-
role="presentation"
|
|
78
|
-
>
|
|
79
|
-
<Link
|
|
80
|
-
role="menuitem"
|
|
81
|
-
id={subMenu.name}
|
|
82
|
-
href={subMenu.href}
|
|
83
|
-
>
|
|
84
|
-
{subMenu.label}
|
|
85
|
-
</Link>
|
|
86
|
-
</NavMenuContentListItem>
|
|
87
|
-
)
|
|
88
|
-
);
|
|
89
|
-
})}
|
|
90
|
-
</NavMenuContentList>
|
|
91
|
-
</NavMenuContent>
|
|
92
|
-
</NavMenuContainer>
|
|
93
|
-
}
|
|
94
|
-
</Fragment>
|
|
28
|
+
<NavListItemAction key={key} {...registerNavItem(item)} active={item?.active}>
|
|
29
|
+
{item.label}
|
|
30
|
+
</NavListItemAction>
|
|
95
31
|
))}
|
|
96
32
|
</NavList>
|
|
97
33
|
</Nav>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Nav,
|
|
4
|
+
NavList,
|
|
5
|
+
NavListItemAction,
|
|
6
|
+
useNavList
|
|
7
|
+
} from '@digigov/ui/navigation/NavList';
|
|
8
|
+
|
|
9
|
+
const links = [
|
|
10
|
+
{ name: 'link_1', href: '#link_1', label: 'Σύνδεσμος 1', active: true },
|
|
11
|
+
{ name: 'link_2', href: '#link_2', label: 'Σύνδεσμος 2' },
|
|
12
|
+
{ name: 'link_3', href: '#link_3', label: 'Σύνδεσμος 3' },
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
export const NavVertical = () => {
|
|
16
|
+
const { registerNavItem } = useNavList();
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<Nav
|
|
20
|
+
aria-orientation="vertical"
|
|
21
|
+
aria-label="Nav list"
|
|
22
|
+
fixed={false}
|
|
23
|
+
border={false}
|
|
24
|
+
>
|
|
25
|
+
<NavList layout="vertical">
|
|
26
|
+
{links.map((item, key) => (
|
|
27
|
+
<NavListItemAction key={key} {...registerNavItem(item)} active={item?.active} >
|
|
28
|
+
{item.label}
|
|
29
|
+
</NavListItemAction>
|
|
30
|
+
))}
|
|
31
|
+
</NavList>
|
|
32
|
+
</Nav>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default NavVertical;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Nav,
|
|
4
|
+
NavList,
|
|
5
|
+
NavListItemAction,
|
|
6
|
+
useNavList
|
|
7
|
+
} from '@digigov/ui/navigation/NavList';
|
|
8
|
+
import { Heading } from '@digigov/ui/typography/Heading';
|
|
9
|
+
|
|
10
|
+
const links = [
|
|
11
|
+
{ name: 'link_1', href: '#link_1', label: 'Σύνδεσμος 1', active: true },
|
|
12
|
+
{ name: 'link_2', href: '#link_2', label: 'Σύνδεσμος 2' },
|
|
13
|
+
{ name: 'link_3', href: '#link_3', label: 'Σύνδεσμος 3' },
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export const NavVerticalWithTitle = () => {
|
|
17
|
+
const { registerNavItem } = useNavList();
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div>
|
|
21
|
+
<Heading size='sm'>Σχετικοί Σύνδεσμοι</Heading>
|
|
22
|
+
<Nav
|
|
23
|
+
aria-orientation="vertical"
|
|
24
|
+
aria-label="Nav list"
|
|
25
|
+
fixed={false}
|
|
26
|
+
border={false}
|
|
27
|
+
>
|
|
28
|
+
<NavList layout="vertical">
|
|
29
|
+
{links.map((item, key) => (
|
|
30
|
+
<NavListItemAction key={key} {...registerNavItem(item)} active={item?.active} >
|
|
31
|
+
{item.label}
|
|
32
|
+
</NavListItemAction>
|
|
33
|
+
))}
|
|
34
|
+
</NavList>
|
|
35
|
+
</Nav>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default NavVerticalWithTitle;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import NavList from '@digigov/ui/navigation/NavList/NavList';
|
|
3
|
+
import { BurgerIcon } from '@digigov/ui/icons';
|
|
4
|
+
import {
|
|
5
|
+
Nav, NavListItemAction,
|
|
6
|
+
} from '@digigov/ui/navigation/NavList';
|
|
7
|
+
import { useNavList } from '@digigov/ui/navigation/NavList/hooks/useNavList';
|
|
8
|
+
|
|
9
|
+
const links = [
|
|
10
|
+
{ name: 'home', href: '#home', label: 'Αρχική', active: true },
|
|
11
|
+
{ name: 'new_form', href: '#new_form', label: 'Καταχώριση φόρμας' },
|
|
12
|
+
{ name: 'news', href: '#news', label: 'Νέα' },
|
|
13
|
+
{ name: 'contact', href: '#contact', label: 'Επικοινωνία' },
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export const WithBurgerIcon = () => {
|
|
17
|
+
const { registerNavItem } = useNavList();
|
|
18
|
+
const [open, setOpen] = useState<boolean>(true);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div>
|
|
22
|
+
<BurgerIcon
|
|
23
|
+
mdUpHidden
|
|
24
|
+
size="lg"
|
|
25
|
+
onClick={() => {
|
|
26
|
+
setOpen(!open)
|
|
27
|
+
}}
|
|
28
|
+
/>
|
|
29
|
+
<Nav
|
|
30
|
+
role="menubar"
|
|
31
|
+
aria-orientation="horizontal"
|
|
32
|
+
aria-label="Nav list"
|
|
33
|
+
fixed={false}
|
|
34
|
+
border={false}
|
|
35
|
+
open={open}
|
|
36
|
+
>
|
|
37
|
+
<NavList>
|
|
38
|
+
{links.map((item, key) => (
|
|
39
|
+
<NavListItemAction key={key} {...registerNavItem(item)} active={item?.active} >
|
|
40
|
+
{item.label}
|
|
41
|
+
</NavListItemAction>
|
|
42
|
+
))}
|
|
43
|
+
</NavList>
|
|
44
|
+
</Nav>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default WithBurgerIcon;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Nav,
|
|
4
|
+
NavList,
|
|
5
|
+
NavListItemAction,
|
|
6
|
+
NavMenuContainer,
|
|
7
|
+
NavMenuContent,
|
|
8
|
+
NavMenuContentList,
|
|
9
|
+
NavMenuContentListItem,
|
|
10
|
+
NavMenuTitle,
|
|
11
|
+
useNavList
|
|
12
|
+
} from '@digigov/ui/navigation/NavList';
|
|
13
|
+
import { Link } from '@digigov/ui/navigation/Link';
|
|
14
|
+
|
|
15
|
+
const links = [
|
|
16
|
+
{ name: 'home', href: '#home', label: 'Αρχική' },
|
|
17
|
+
{
|
|
18
|
+
name: 'educational',
|
|
19
|
+
label: 'Εκπαιδευτικό υλικό',
|
|
20
|
+
subMenu: [
|
|
21
|
+
{
|
|
22
|
+
name: 'elearning',
|
|
23
|
+
href: '#elearning',
|
|
24
|
+
label: 'Εκπαιδευτική πλατφόρμα',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'videos',
|
|
28
|
+
href: '#videos',
|
|
29
|
+
label: 'Βίντεο',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'presentations',
|
|
33
|
+
href: '#presentations',
|
|
34
|
+
label: 'Παρουσιάσεις',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'promoting',
|
|
38
|
+
href: '#promoting',
|
|
39
|
+
label: 'Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'other-texts',
|
|
43
|
+
href: '#other-texts',
|
|
44
|
+
label: 'Άλλα κείμενα',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{ name: 'news', href: '#news', label: 'Νέα' },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
export const WithSubMenu = () => {
|
|
53
|
+
const layout = 'horizontal';
|
|
54
|
+
const border = false;
|
|
55
|
+
const { registerNavItemMenu, registerNavItem } = useNavList();
|
|
56
|
+
return (
|
|
57
|
+
<Nav open={true} border={border} aria-orientation={layout}>
|
|
58
|
+
<NavList layout={layout}>
|
|
59
|
+
{links.map((item, key) => (
|
|
60
|
+
<Fragment key={key}>
|
|
61
|
+
<NavListItemAction {...registerNavItem(item)} >
|
|
62
|
+
{item.label}
|
|
63
|
+
</NavListItemAction>
|
|
64
|
+
{item.subMenu &&
|
|
65
|
+
<NavMenuContainer
|
|
66
|
+
layout={layout}
|
|
67
|
+
{...registerNavItemMenu(item.name)}
|
|
68
|
+
>
|
|
69
|
+
<NavMenuTitle>{item.label}</NavMenuTitle>
|
|
70
|
+
<NavMenuContent>
|
|
71
|
+
<NavMenuContentList role="menu">
|
|
72
|
+
{item.subMenu?.map((subMenu, menuIndex) => {
|
|
73
|
+
return (
|
|
74
|
+
subMenu?.href && (
|
|
75
|
+
<NavMenuContentListItem
|
|
76
|
+
key={menuIndex}
|
|
77
|
+
role="presentation"
|
|
78
|
+
>
|
|
79
|
+
<Link
|
|
80
|
+
role="menuitem"
|
|
81
|
+
id={subMenu.name}
|
|
82
|
+
href={subMenu.href}
|
|
83
|
+
>
|
|
84
|
+
{subMenu.label}
|
|
85
|
+
</Link>
|
|
86
|
+
</NavMenuContentListItem>
|
|
87
|
+
)
|
|
88
|
+
);
|
|
89
|
+
})}
|
|
90
|
+
</NavMenuContentList>
|
|
91
|
+
</NavMenuContent>
|
|
92
|
+
</NavMenuContainer>
|
|
93
|
+
}
|
|
94
|
+
</Fragment>
|
|
95
|
+
))}
|
|
96
|
+
</NavList>
|
|
97
|
+
</Nav>
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export default WithSubMenu;
|
|
@@ -21,15 +21,17 @@ import { Heading } from '@digigov/ui/typography/Heading';
|
|
|
21
21
|
import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
|
|
22
22
|
|
|
23
23
|
export function Default() {
|
|
24
|
-
const { register, panel } = useTabs();
|
|
24
|
+
const { register, opened, panel } = useTabs();
|
|
25
|
+
|
|
25
26
|
return (
|
|
26
27
|
<Tabs>
|
|
27
28
|
<TabsHeading size='md'>Περιεχόμενα</TabsHeading>
|
|
28
29
|
<TabsList>
|
|
29
|
-
<TabsListItem {...register('
|
|
30
|
-
<TabsListItem {...register('
|
|
30
|
+
<TabsListItem {...register('citizen')} open={Object.keys(opened).length === 0 || opened['citizen']}>Στοιχεία πολίτη</TabsListItem>
|
|
31
|
+
<TabsListItem {...register('cases')}>Οι υποθέσεις τους</TabsListItem>
|
|
32
|
+
<TabsListItem {...register('history')}>Ιστορικό</TabsListItem>
|
|
31
33
|
</TabsList>
|
|
32
|
-
<TabsPanel {...panel('
|
|
34
|
+
<TabsPanel {...panel('citizen')} active={Object.keys(opened).length === 0 || opened['citizen']}>
|
|
33
35
|
<Heading size="md" element="h3">
|
|
34
36
|
Στοιχεία πολίτη
|
|
35
37
|
</Heading>
|
|
@@ -38,7 +40,6 @@ export function Default() {
|
|
|
38
40
|
<SummaryListItemKey>Όνομα</SummaryListItemKey>
|
|
39
41
|
<SummaryListItemValue>Γιώργος Παπαδόπουλος</SummaryListItemValue>
|
|
40
42
|
<SummaryListItemAction>
|
|
41
|
-
{' '}
|
|
42
43
|
<Link href="#">
|
|
43
44
|
Αλλαγή <VisuallyHidden> ονόματος </VisuallyHidden>
|
|
44
45
|
</Link>
|
|
@@ -52,21 +53,25 @@ export function Default() {
|
|
|
52
53
|
<SummaryListItemKey>Τηλέφωνο επικοινωνίας</SummaryListItemKey>
|
|
53
54
|
<SummaryListItemValue>6941234567</SummaryListItemValue>
|
|
54
55
|
<SummaryListItemAction>
|
|
55
|
-
{' '}
|
|
56
56
|
<Link>
|
|
57
|
-
{' '}
|
|
58
57
|
Αλλαγή <VisuallyHidden> τηλεφώνου </VisuallyHidden>
|
|
59
58
|
</Link>
|
|
60
59
|
</SummaryListItemAction>
|
|
61
60
|
</SummaryListItem>
|
|
62
61
|
</SummaryList>
|
|
63
62
|
</TabsPanel>
|
|
64
|
-
<TabsPanel {...panel('
|
|
63
|
+
<TabsPanel {...panel('cases')}>
|
|
65
64
|
<Heading size="md" element="h3">
|
|
66
|
-
|
|
65
|
+
Οι υποθέσεις τους
|
|
67
66
|
</Heading>
|
|
68
67
|
Περιεχόμενα υποθέσεων
|
|
69
68
|
</TabsPanel>
|
|
69
|
+
<TabsPanel {...panel('history')}>
|
|
70
|
+
<Heading size="md" element="h3">
|
|
71
|
+
Ιστορικό
|
|
72
|
+
</Heading>
|
|
73
|
+
Περιεχόμενο ιστορικού
|
|
74
|
+
</TabsPanel>
|
|
70
75
|
</Tabs>
|
|
71
76
|
);
|
|
72
77
|
}
|