@cnamts/synapse 0.0.4-alpha → 0.0.6-alpha
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/dist/design-system-v3.d.ts +1277 -499
- package/dist/design-system-v3.js +4193 -1573
- package/dist/design-system-v3.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +18 -17
- package/src/assets/settings.scss +3 -0
- package/src/assets/tokens.scss +16 -17
- package/src/components/BackBtn/Accessibilite.mdx +14 -0
- package/src/components/BackBtn/Accessibilite.stories.ts +166 -0
- package/src/components/BackBtn/AccessibiliteItems.ts +102 -0
- package/src/components/BackBtn/BackBtn.mdx +1 -1
- package/src/components/BackBtn/BackBtn.stories.ts +8 -8
- package/src/components/BackBtn/BackBtn.vue +0 -1
- package/src/components/BackBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/BackToTopBtn/Accessibilite.mdx +14 -0
- package/src/components/BackToTopBtn/Accessibilite.stories.ts +166 -0
- package/src/components/BackToTopBtn/AccessibiliteItems.ts +52 -0
- package/src/components/BackToTopBtn/BackToTopBtn.mdx +1 -1
- package/src/components/BackToTopBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/CollapsibleList/Accessibilite.mdx +14 -0
- package/src/components/CollapsibleList/Accessibilite.stories.ts +170 -0
- package/src/components/CollapsibleList/AccessibiliteItems.ts +122 -0
- package/src/components/CollapsibleList/CollapsibleList.stories.ts +1 -1
- package/src/components/CollapsibleList/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/CookieBanner/Accessibilite.mdx +14 -0
- package/src/components/CookieBanner/Accessibilite.stories.ts +219 -0
- package/src/components/CookieBanner/AccessibiliteItems.ts +356 -0
- package/src/components/CookieBanner/CookieBanner.mdx +219 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +678 -0
- package/src/components/CookieBanner/CookieBanner.vue +225 -0
- package/src/components/CookieBanner/config.ts +38 -0
- package/src/components/CookieBanner/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/CookieBanner/locales.ts +12 -0
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +129 -0
- package/src/components/CookieBanner/tests/__snapshots__/CookieBanner.spec.ts.snap +197 -0
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +123 -0
- package/src/components/CookiesSelection/CookiesInformation/locales.ts +21 -0
- package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.spec.ts +121 -0
- package/src/components/CookiesSelection/CookiesSelection.vue +127 -0
- package/src/components/CookiesSelection/CookiesTable/CookiesTable.vue +47 -0
- package/src/components/CookiesSelection/CookiesTable/headers.ts +14 -0
- package/src/components/CookiesSelection/CookiesTable/tests/CookiesTable.spec.ts +30 -0
- package/src/components/CookiesSelection/CookiesTable/tests/__snapshots__/CookiesTable.spec.ts.snap +3 -0
- package/src/components/CookiesSelection/locales.ts +10 -0
- package/src/components/CookiesSelection/tests/CookiesSelection.spec.ts +184 -0
- package/src/components/CookiesSelection/tests/__snapshots__/CookiesSelection.spec.ts.snap +192 -0
- package/src/components/CookiesSelection/types.ts +15 -0
- package/src/components/CopyBtn/Accessibilite.mdx +14 -0
- package/src/components/CopyBtn/Accessibilite.stories.ts +166 -0
- package/src/components/CopyBtn/AccessibiliteItems.ts +105 -0
- package/src/components/CopyBtn/CopyBtn.mdx +1 -1
- package/src/components/CopyBtn/CopyBtn.stories.ts +4 -4
- package/src/components/CopyBtn/CopyBtn.vue +0 -1
- package/src/components/CopyBtn/config.ts +2 -0
- package/src/components/CopyBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyBtnSelect/Accessibilite.mdx +14 -0
- package/src/components/Customs/SyBtnSelect/Accessibilite.stories.ts +193 -0
- package/src/components/Customs/SyBtnSelect/AccessibiliteItems.ts +139 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.mdx +45 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.stories.ts +662 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.vue +254 -0
- package/src/components/Customs/SyBtnSelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyBtnSelect/tests/SyBtnSelect.spec.ts +168 -0
- package/src/components/Customs/SyInputSelect/Accessibilite.mdx +14 -0
- package/src/components/Customs/SyInputSelect/Accessibilite.stories.ts +166 -0
- package/src/components/Customs/SyInputSelect/AccessibiliteItems.ts +96 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.mdx +41 -0
- package/src/components/Customs/{CustomInputSelect/CustomInputSelect.stories.ts → SyInputSelect/SyInputSelect.stories.ts} +30 -83
- package/src/components/Customs/{CustomInputSelect/CustomInputSelect.vue → SyInputSelect/SyInputSelect.vue} +46 -6
- package/src/components/Customs/SyInputSelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyInputSelect/tests/SyInputSelect.spec.ts +140 -0
- package/src/components/Customs/SySelect/Accessibilite.mdx +14 -0
- package/src/components/Customs/SySelect/Accessibilite.stories.ts +217 -0
- package/src/components/Customs/SySelect/AccessibiliteItems.ts +173 -0
- package/src/components/Customs/{CustomSelect/CustomSelect.mdx → SySelect/SySelect.mdx} +9 -8
- package/src/components/Customs/{CustomSelect/CustomSelect.stories.ts → SySelect/SySelect.stories.ts} +25 -79
- package/src/components/Customs/{CustomSelect/CustomSelect.vue → SySelect/SySelect.vue} +44 -13
- package/src/components/Customs/SySelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/{CustomInputSelect/tests/CustomInputSelect.spec.ts → SySelect/tests/SySelect.spec.ts} +48 -71
- package/src/components/Customs/SyTextField/Accessibilite.mdx +14 -0
- package/src/components/Customs/SyTextField/Accessibilite.stories.ts +224 -0
- package/src/components/Customs/SyTextField/AccessibiliteItems.ts +198 -0
- package/src/components/Customs/SyTextField/SyTextField.mdx +44 -0
- package/src/components/Customs/{CustomTextField/CustomTextField.stories.ts → SyTextField/SyTextField.stories.ts} +145 -34
- package/src/components/Customs/{CustomTextField/CustomTextField.vue → SyTextField/SyTextField.vue} +27 -7
- package/src/components/Customs/SyTextField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/{CustomTextField/tests/CustomTextField.spec.ts → SyTextField/tests/SyTextField.spec.ts} +3 -3
- package/src/components/Customs/{CustomTextField/tests/__snapshots__/CustomTextField.spec.ts.snap → SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap} +5 -6
- package/src/components/DataList/Accessibilite.mdx +14 -0
- package/src/components/DataList/Accessibilite.stories.ts +166 -0
- package/src/components/DataList/AccessibiliteItems.ts +47 -0
- package/src/components/DataList/DataList.mdx +1 -1
- package/src/components/DataList/DataList.stories.ts +10 -10
- package/src/components/DataList/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/DataListGroup/Accessibilite.mdx +14 -0
- package/src/components/DataListGroup/Accessibilite.stories.ts +225 -0
- package/src/components/DataListGroup/AccessibiliteItems.ts +79 -0
- package/src/components/DataListGroup/DataListGroup.mdx +1 -1
- package/src/components/DataListGroup/DataListGroup.stories.ts +7 -7
- package/src/components/DataListGroup/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/DialogBox/Accessibilite.mdx +14 -0
- package/src/components/DialogBox/Accessibilite.stories.ts +189 -0
- package/src/components/DialogBox/AccessibiliteItems.ts +167 -0
- package/src/components/DialogBox/DialogBox.mdx +14 -0
- package/src/components/DialogBox/DialogBox.stories.ts +798 -0
- package/src/components/DialogBox/DialogBox.vue +181 -0
- package/src/components/DialogBox/config.ts +25 -0
- package/src/components/DialogBox/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/DialogBox/locales.ts +5 -0
- package/src/components/DialogBox/tests/DialogBox.spec.ts +329 -0
- package/src/components/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap +46 -0
- package/src/components/DownloadBtn/AccessibiliteItems.ts +1 -31
- package/src/components/DownloadBtn/DownloadBtn.mdx +3 -3
- package/src/components/DownloadBtn/DownloadBtn.stories.ts +6 -6
- package/src/components/ErrorPage/Accessibilite.mdx +14 -0
- package/src/components/ErrorPage/Accessibilite.stories.ts +189 -0
- package/src/components/ErrorPage/AccessibiliteItems.ts +205 -0
- package/src/components/ErrorPage/ErrorPage.mdx +21 -0
- package/src/components/ErrorPage/ErrorPage.stories.ts +133 -0
- package/src/components/ErrorPage/ErrorPage.vue +93 -0
- package/src/components/ErrorPage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/ErrorPage/locales.ts +5 -0
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +40 -0
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +78 -0
- package/src/components/FooterBar/Accessibilite.mdx +14 -0
- package/src/components/FooterBar/Accessibilite.stories.ts +223 -0
- package/src/components/FooterBar/AccessibiliteItems.ts +257 -0
- package/src/components/FooterBar/FooterBar.mdx +2 -2
- package/src/components/FooterBar/FooterBar.stories.ts +556 -8
- package/src/components/FooterBar/FooterBar.vue +80 -73
- package/src/components/FooterBar/config.ts +2 -3
- package/src/components/FooterBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FooterBar/tests/FooterBar.spec.ts +1 -1
- package/src/components/FooterBar/tests/FooterBarConfig.spec.ts +1 -1
- package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +24 -22
- package/src/components/FranceConnectBtn/Accessibilite.mdx +14 -0
- package/src/components/FranceConnectBtn/Accessibilite.stories.ts +194 -0
- package/src/components/FranceConnectBtn/AccessibiliteItems.ts +169 -0
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +1 -1
- package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +3 -3
- package/src/components/FranceConnectBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderBar/Accessibilite.mdx +14 -0
- package/src/components/HeaderBar/Accessibilite.stories.ts +223 -0
- package/src/components/HeaderBar/AccessibiliteItems.ts +194 -0
- package/src/components/HeaderBar/HeaderBar.stories.ts +60 -2
- package/src/components/HeaderBar/HeaderBar.vue +1 -9
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.mdx +14 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.stories.ts +223 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/AccessibiliteItems.ts +174 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderBar/tests/__snapshots__/HeaderBar.spec.ts.snap +1 -1
- package/src/components/HeaderLoading/Accessibilite.mdx +14 -0
- package/src/components/HeaderLoading/Accessibilite.stories.ts +167 -0
- package/src/components/HeaderLoading/AccessibiliteItems.ts +29 -0
- package/src/components/HeaderLoading/HeaderLoading.mdx +1 -1
- package/src/components/HeaderLoading/HeaderLoading.stories.ts +1 -1
- package/src/components/HeaderLoading/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.mdx +6 -6
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +35 -33
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +1 -1
- package/src/components/HeaderToolbar/Accessibilite.mdx +14 -0
- package/src/components/HeaderToolbar/Accessibilite.stories.ts +203 -0
- package/src/components/HeaderToolbar/AccessibiliteItems.ts +200 -0
- package/src/components/HeaderToolbar/HeaderToolbar.mdx +1 -1
- package/src/components/HeaderToolbar/HeaderToolbar.stories.ts +2 -2
- package/src/components/HeaderToolbar/HeaderToolbar.vue +3 -2
- package/src/components/HeaderToolbar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderToolbar/tests/HeaderToolbar.spec.ts +36 -2
- package/src/components/LangBtn/Accessibilite.mdx +14 -0
- package/src/components/LangBtn/Accessibilite.stories.ts +168 -0
- package/src/components/LangBtn/AccessibiliteItems.ts +101 -0
- package/src/components/LangBtn/LangBtn.mdx +1 -1
- package/src/components/LangBtn/LangBtn.stories.ts +4 -4
- package/src/components/LangBtn/LangBtn.vue +3 -2
- package/src/components/LangBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/LangBtn/tests/LangBtn.spec.ts +1 -1
- package/src/components/LangBtn/tests/__snapshots__/LangBtn.spec.ts.snap +1 -1
- package/src/components/Logo/Accessibilite.mdx +14 -0
- package/src/components/Logo/Accessibilite.stories.ts +223 -0
- package/src/components/Logo/AccessibiliteItems.ts +155 -0
- package/src/components/Logo/Logo.mdx +1 -1
- package/src/components/Logo/Logo.stories.ts +8 -8
- package/src/components/Logo/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/LogoBrandSection/Accessibilite.mdx +14 -0
- package/src/components/LogoBrandSection/Accessibilite.stories.ts +223 -0
- package/src/components/LogoBrandSection/AccessibiliteItems.ts +194 -0
- package/src/components/LogoBrandSection/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/MaintenancePage/Accessibilite.mdx +14 -0
- package/src/components/MaintenancePage/Accessibilite.stories.ts +189 -0
- package/src/components/MaintenancePage/AccessibiliteItems.ts +173 -0
- package/src/components/MaintenancePage/MaintenancePage.mdx +11 -0
- package/src/components/MaintenancePage/MaintenancePage.stories.ts +41 -0
- package/src/components/MaintenancePage/MaintenancePage.vue +25 -0
- package/src/components/MaintenancePage/assets/maintenance.svg +1 -0
- package/src/components/MaintenancePage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/MaintenancePage/index.ts +3 -0
- package/src/components/MaintenancePage/locales.ts +5 -0
- package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +12 -0
- package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +3 -0
- package/src/components/NirField/Accessibilite.mdx +14 -0
- package/src/components/NirField/Accessibilite.stories.ts +214 -0
- package/src/components/NirField/AccessibiliteItems.ts +243 -0
- package/src/components/NirField/NirField.mdx +216 -0
- package/src/components/NirField/NirField.stories.ts +359 -0
- package/src/components/NirField/NirField.vue +450 -0
- package/src/components/NirField/config.ts +16 -0
- package/src/components/NirField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NirField/locales.ts +12 -0
- package/src/components/NirField/nirValidation.ts +42 -0
- package/src/components/NirField/tests/NirField.spec.ts +119 -0
- package/src/components/NotFoundPage/Accessibilite.mdx +14 -0
- package/src/components/NotFoundPage/Accessibilite.stories.ts +190 -0
- package/src/components/NotFoundPage/AccessibiliteItems.ts +205 -0
- package/src/components/NotFoundPage/NotFoundPage.mdx +19 -0
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +76 -0
- package/src/components/NotFoundPage/NotFoundPage.vue +52 -0
- package/src/components/NotFoundPage/assets/not-found.svg +1 -0
- package/src/components/NotFoundPage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NotFoundPage/locales.ts +6 -0
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +38 -0
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +76 -0
- package/src/components/NotificationBar/Accessibilite.mdx +14 -0
- package/src/components/NotificationBar/Accessibilite.stories.ts +166 -0
- package/src/components/NotificationBar/AccessibiliteItems.ts +144 -0
- package/src/components/NotificationBar/NotificationBar.mdx +1 -1
- package/src/components/NotificationBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NotificationBar/options.ts +1 -0
- package/src/components/PageContainer/Accessibilite.mdx +14 -0
- package/src/components/PageContainer/Accessibilite.stories.ts +166 -0
- package/src/components/PageContainer/AccessibiliteItems.ts +52 -0
- package/src/components/PageContainer/PageContainer.mdx +1 -1
- package/src/components/PageContainer/PageContainer.stories.ts +4 -4
- package/src/components/PageContainer/PageContainer.vue +16 -15
- package/src/components/PageContainer/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/PageContainer/tests/PageContainer.spec.ts +1 -1
- package/src/components/PageContainer/tests/__snapshots__/PageContainer.spec.ts.snap +2 -2
- package/src/components/PhoneField/Accessibilite.mdx +14 -0
- package/src/components/PhoneField/Accessibilite.stories.ts +216 -0
- package/src/components/PhoneField/AccessibiliteItems.ts +238 -0
- package/src/components/PhoneField/PhoneField.mdx +1 -1
- package/src/components/PhoneField/PhoneField.stories.ts +2 -2
- package/src/components/PhoneField/PhoneField.vue +5 -6
- package/src/components/PhoneField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/PhoneField/tests/PhoneField.spec.ts +3 -3
- package/src/components/SkipLink/Accessibilite.mdx +14 -0
- package/src/components/SkipLink/Accessibilite.stories.ts +167 -0
- package/src/components/SkipLink/AccessibiliteItems.ts +77 -0
- package/src/components/SkipLink/SkipLink.stories.ts +2 -2
- package/src/components/SkipLink/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SocialMediaLinks/Accessibilite.mdx +14 -0
- package/src/components/SocialMediaLinks/Accessibilite.stories.ts +170 -0
- package/src/components/SocialMediaLinks/AccessibiliteItems.ts +160 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +18 -14
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +3 -2
- package/src/components/SocialMediaLinks/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +1 -1
- package/src/components/SocialMediaLinks/tests/__snapshots__/SocialMediaLinks.spec.ts.snap +2 -2
- package/src/components/SubHeader/Accessibilite.mdx +14 -0
- package/src/components/SubHeader/Accessibilite.stories.ts +166 -0
- package/src/components/SubHeader/AccessibiliteItems.ts +146 -0
- package/src/components/SubHeader/SubHeader.mdx +1 -1
- package/src/components/SubHeader/SubHeader.stories.ts +11 -11
- package/src/components/SubHeader/SubHeader.vue +1 -1
- package/src/components/SubHeader/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SyAlert/Accessibilite.mdx +14 -0
- package/src/components/SyAlert/Accessibilite.stories.ts +166 -0
- package/src/components/SyAlert/AccessibiliteItems.ts +122 -0
- package/src/components/{Alert/Alert.mdx → SyAlert/SyAlert.mdx} +9 -9
- package/src/components/{Alert/Alert.stories.ts → SyAlert/SyAlert.stories.ts} +22 -22
- package/src/components/SyAlert/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/{Alert/tests/Alert.spec.ts → SyAlert/tests/SyAlert.spec.ts} +5 -5
- package/src/components/{Alert/tests/__snapshots__/Alert.spec.ts.snap → SyAlert/tests/__snapshots__/SyAlert.spec.ts.snap} +2 -2
- package/src/components/UserMenuBtn/Accessibilite.mdx +14 -0
- package/src/components/UserMenuBtn/Accessibilite.stories.ts +189 -0
- package/src/components/UserMenuBtn/AccessibiliteItems.ts +155 -0
- package/src/components/UserMenuBtn/UserMenuBtn.mdx +35 -0
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +540 -0
- package/src/components/UserMenuBtn/UserMenuBtn.vue +101 -0
- package/src/components/UserMenuBtn/config.ts +24 -0
- package/src/components/UserMenuBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/UserMenuBtn/tests/UserMenuBtn.spec.ts +125 -0
- package/src/components/index.ts +19 -4
- package/src/composables/index.ts +8 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +84 -0
- package/src/composables/rules/useFieldValidation.ts +90 -0
- package/src/designTokens/index.ts +2 -0
- package/src/designTokens/tokens/cnam/cnamDarkTheme.ts +5 -0
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +1 -0
- package/src/main.ts +3 -0
- package/src/stories/Fondamentaux/Arrondis.mdx +24 -0
- package/src/stories/{Guidelines → Fondamentaux}/Colors.mdx +1 -1
- package/src/stories/Fondamentaux/Conteneurs.mdx +7 -0
- package/src/stories/Fondamentaux/CustomisationEtThemes.mdx +7 -0
- package/src/stories/Fondamentaux/Elevations.mdx +14 -0
- package/src/stories/Fondamentaux/Espacements.mdx +29 -0
- package/src/stories/{Guidelines → Fondamentaux}/Introduction.mdx +1 -1
- package/src/stories/Fondamentaux/StylesTypographiques.mdx +33 -0
- package/src/stories/Fondamentaux/Typographie.mdx +58 -0
- package/src/stories/GuideDuDev/CommentUtiliserLesRules.mdx +120 -0
- package/src/stories/GuideDuDev/components.stories.ts +5 -5
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
- package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/Accessibilite.stories.ts +1 -1
- package/src/stories/{Fondamentaux → Guidelines}/EcoConception/Econception.stories.ts +2 -2
- package/src/stories/Guidelines/Vuetify/Vuetify.mdx +11 -0
- package/src/stories/Guidelines/Vuetify/Vuetify.stories.ts +138 -0
- package/src/stories/Guidelines/Vuetify/VuetifyItems.ts +350 -0
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.mdx +0 -40
- package/src/components/Customs/CustomSelect/tests/CustomSelect.spec.ts +0 -236
- package/src/components/Customs/CustomTextField/CustomTextField.mdx +0 -44
- package/src/stories/Guidelines/CustomisationEtThemes.mdx +0 -3
- package/src/stories/Guidelines/Typo.mdx +0 -53
- /package/src/components/Customs/{CustomInputSelect → SyInputSelect}/config.ts +0 -0
- /package/src/components/Customs/{CustomTextField → SyTextField}/types.d.ts +0 -0
- /package/src/components/{Alert/Alert.vue → SyAlert/SyAlert.vue} +0 -0
- /package/src/components/{Alert → SyAlert}/locales.ts +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/Accessibilite.mdx +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/AccessibiliteItems.ts +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/constants/ExpertiseLevelEnum.ts +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/constants/RGAALevelEnum.ts +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/EcoConception/EcoConception.mdx +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/EcoConception/ecoDesignItems.ts +0 -0
|
@@ -202,6 +202,30 @@ type Story = StoryObj<typeof meta>
|
|
|
202
202
|
|
|
203
203
|
export const Default: Story = {
|
|
204
204
|
parameters: {
|
|
205
|
+
sourceCode: [
|
|
206
|
+
{
|
|
207
|
+
name: 'Template',
|
|
208
|
+
code: `<template>
|
|
209
|
+
<FooterBar v-bind="docProps" />
|
|
210
|
+
</template>
|
|
211
|
+
`,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'Script',
|
|
215
|
+
code: `<script setup lang="ts">
|
|
216
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
217
|
+
|
|
218
|
+
const docProps = {
|
|
219
|
+
sitemapRoute: '/',
|
|
220
|
+
cguRoute: '/',
|
|
221
|
+
cookiesRoute: '/',
|
|
222
|
+
legalNoticeRoute: '/',
|
|
223
|
+
a11yStatementRoute: '/',
|
|
224
|
+
}
|
|
225
|
+
</script>
|
|
226
|
+
`,
|
|
227
|
+
},
|
|
228
|
+
],
|
|
205
229
|
controls: { exclude: ['logoSize', 'items'] },
|
|
206
230
|
},
|
|
207
231
|
args: {
|
|
@@ -290,6 +314,43 @@ export const Default: Story = {
|
|
|
290
314
|
|
|
291
315
|
export const changeLinks: Story = {
|
|
292
316
|
parameters: {
|
|
317
|
+
sourceCode: [
|
|
318
|
+
{
|
|
319
|
+
name: 'Template',
|
|
320
|
+
code: `<template>
|
|
321
|
+
<FooterBar :link-items="items" />
|
|
322
|
+
</template>
|
|
323
|
+
`,
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: 'Script',
|
|
327
|
+
code: `<script setup lang="ts">
|
|
328
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
329
|
+
|
|
330
|
+
const items = [
|
|
331
|
+
{
|
|
332
|
+
text: 'Accueil',
|
|
333
|
+
href: '/',
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
text: 'Plan du site',
|
|
337
|
+
href: '/sitemap',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
text: 'Conditions générales d\\'utilisation',
|
|
341
|
+
href: '/cgu',
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
text: 'Aide',
|
|
345
|
+
href: 'https://www.ameli.fr/assure/aide',
|
|
346
|
+
ariaLabel: 'Aide (s’ouvre sur le site ameli.fr)',
|
|
347
|
+
openInNewTab: true,
|
|
348
|
+
},
|
|
349
|
+
]
|
|
350
|
+
</script>
|
|
351
|
+
`,
|
|
352
|
+
},
|
|
353
|
+
],
|
|
293
354
|
controls: { include: ['linkItems'] },
|
|
294
355
|
},
|
|
295
356
|
args: {
|
|
@@ -329,6 +390,47 @@ export const changeLinks: Story = {
|
|
|
329
390
|
|
|
330
391
|
export const slotPrepend: Story = {
|
|
331
392
|
parameters: {
|
|
393
|
+
sourceCode: [
|
|
394
|
+
{
|
|
395
|
+
name: 'Template',
|
|
396
|
+
code: `<template>
|
|
397
|
+
<FooterBar :link-items="items">
|
|
398
|
+
<template #prepend>
|
|
399
|
+
<li class="text--secondary my-3 mx-4">
|
|
400
|
+
Texte ajouté
|
|
401
|
+
</li>
|
|
402
|
+
</template>
|
|
403
|
+
</FooterBar>
|
|
404
|
+
</template>
|
|
405
|
+
`,
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
name: 'Script',
|
|
409
|
+
code: `<script setup lang="ts">
|
|
410
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
411
|
+
|
|
412
|
+
const items = [
|
|
413
|
+
{
|
|
414
|
+
text: 'Plan du site',
|
|
415
|
+
href: '/sitemap',
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
text: 'Conditions générales d\\'utilisation',
|
|
419
|
+
href: '/cgu',
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
text: 'Gestion des cookies',
|
|
423
|
+
href: '/cookies',
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
text: 'Mentions légales',
|
|
427
|
+
href: '/mentions-legales',
|
|
428
|
+
},
|
|
429
|
+
]
|
|
430
|
+
</script>
|
|
431
|
+
`,
|
|
432
|
+
},
|
|
433
|
+
],
|
|
332
434
|
controls: { include: ['prepend'] },
|
|
333
435
|
},
|
|
334
436
|
args: {
|
|
@@ -356,6 +458,49 @@ export const slotPrepend: Story = {
|
|
|
356
458
|
|
|
357
459
|
export const slotAppend: Story = {
|
|
358
460
|
parameters: {
|
|
461
|
+
sourceCode: [
|
|
462
|
+
{
|
|
463
|
+
name: 'Template',
|
|
464
|
+
code: `<template>
|
|
465
|
+
<FooterBar :link-items="items">
|
|
466
|
+
<template #append>
|
|
467
|
+
<li class="text--secondary my-3 mx-4">
|
|
468
|
+
{{ currentYear }}
|
|
469
|
+
</li>
|
|
470
|
+
</template>
|
|
471
|
+
</FooterBar>
|
|
472
|
+
</template>
|
|
473
|
+
`,
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
name: 'Script',
|
|
477
|
+
code: `<script setup lang="ts">
|
|
478
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
479
|
+
|
|
480
|
+
const items = [
|
|
481
|
+
{
|
|
482
|
+
text: 'Plan du site',
|
|
483
|
+
href: '/sitemap',
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
text: 'Conditions générales d\\'utilisation',
|
|
487
|
+
href: '/cgu',
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
text: 'Gestion des cookies',
|
|
491
|
+
href: '/cookies',
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
text: 'Mentions légales',
|
|
495
|
+
href: '/mentions-legales',
|
|
496
|
+
},
|
|
497
|
+
]
|
|
498
|
+
|
|
499
|
+
const currentYear = new Date().getFullYear()
|
|
500
|
+
</script>
|
|
501
|
+
`,
|
|
502
|
+
},
|
|
503
|
+
],
|
|
359
504
|
controls: { include: ['append'] },
|
|
360
505
|
},
|
|
361
506
|
args: {
|
|
@@ -383,11 +528,48 @@ export const slotAppend: Story = {
|
|
|
383
528
|
|
|
384
529
|
export const extendedMode: Story = {
|
|
385
530
|
parameters: {
|
|
531
|
+
sourceCode: [
|
|
532
|
+
{
|
|
533
|
+
name: 'Template',
|
|
534
|
+
code: `<template>
|
|
535
|
+
<FooterBar :link-items="items">
|
|
536
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
537
|
+
</FooterBar>
|
|
538
|
+
</template>
|
|
539
|
+
`,
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
name: 'Script',
|
|
543
|
+
code: `<script setup lang="ts">
|
|
544
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
545
|
+
|
|
546
|
+
const items = [
|
|
547
|
+
{
|
|
548
|
+
text: 'Plan du site',
|
|
549
|
+
href: '/sitemap',
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
text: 'Conditions générales d\\'utilisation',
|
|
553
|
+
href: '/cgu',
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
text: 'Gestion des cookies',
|
|
557
|
+
href: '/cookies',
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
text: 'Mentions légales',
|
|
561
|
+
href: '/mentions-legales',
|
|
562
|
+
},
|
|
563
|
+
]
|
|
564
|
+
</script>
|
|
565
|
+
`,
|
|
566
|
+
},
|
|
567
|
+
],
|
|
386
568
|
controls: { include: ['default'] },
|
|
387
569
|
},
|
|
388
570
|
args: {
|
|
389
571
|
items: items,
|
|
390
|
-
default: '<p class="text--secondary mb-0">
|
|
572
|
+
default: '<p class="text--secondary mb-0">Contenu supplémentaire.</p>',
|
|
391
573
|
},
|
|
392
574
|
render: (args) => {
|
|
393
575
|
return {
|
|
@@ -397,7 +579,7 @@ export const extendedMode: Story = {
|
|
|
397
579
|
},
|
|
398
580
|
template: `
|
|
399
581
|
<FooterBar :link-items="args.items">
|
|
400
|
-
<p class="text--secondary mb-0">
|
|
582
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
401
583
|
</FooterBar>
|
|
402
584
|
`,
|
|
403
585
|
}
|
|
@@ -406,6 +588,50 @@ export const extendedMode: Story = {
|
|
|
406
588
|
|
|
407
589
|
export const slotLogo: Story = {
|
|
408
590
|
parameters: {
|
|
591
|
+
sourceCode: [
|
|
592
|
+
{
|
|
593
|
+
name: 'Template',
|
|
594
|
+
code: `<template>
|
|
595
|
+
<FooterBar :link-items="items">
|
|
596
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
597
|
+
<template #logo>
|
|
598
|
+
<Logo
|
|
599
|
+
:risque-pro="true"
|
|
600
|
+
aria-label="Risque Pro"
|
|
601
|
+
/>
|
|
602
|
+
</template>
|
|
603
|
+
</FooterBar>
|
|
604
|
+
</template>
|
|
605
|
+
`,
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
name: 'Script',
|
|
609
|
+
code: `<script setup lang="ts">
|
|
610
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
611
|
+
import { Logo } from '@cnamts/synapse'
|
|
612
|
+
|
|
613
|
+
const items = [
|
|
614
|
+
{
|
|
615
|
+
text: 'Plan du site',
|
|
616
|
+
href: '/sitemap',
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
text: 'Conditions générales d\\'utilisation',
|
|
620
|
+
href: '/cgu',
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
text: 'Gestion des cookies',
|
|
624
|
+
href: '/cookies',
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
text: 'Mentions légales',
|
|
628
|
+
href: '/mentions-legales',
|
|
629
|
+
},
|
|
630
|
+
]
|
|
631
|
+
</script>
|
|
632
|
+
`,
|
|
633
|
+
},
|
|
634
|
+
],
|
|
409
635
|
controls: { include: ['logo'] },
|
|
410
636
|
},
|
|
411
637
|
args: {
|
|
@@ -420,7 +646,7 @@ export const slotLogo: Story = {
|
|
|
420
646
|
},
|
|
421
647
|
template: `
|
|
422
648
|
<FooterBar :link-items="args.items">
|
|
423
|
-
<p class="text--secondary mb-0">
|
|
649
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
424
650
|
<template #logo>
|
|
425
651
|
<Logo
|
|
426
652
|
:risque-pro="true"
|
|
@@ -435,6 +661,93 @@ export const slotLogo: Story = {
|
|
|
435
661
|
|
|
436
662
|
export const collapsibleList: Story = {
|
|
437
663
|
parameters: {
|
|
664
|
+
sourceCode: [
|
|
665
|
+
{
|
|
666
|
+
name: 'Template',
|
|
667
|
+
code: `<template>
|
|
668
|
+
<FooterBar :link-items="items">
|
|
669
|
+
<VRow class="max-width-none">
|
|
670
|
+
<VCol cols="12" sm="6">
|
|
671
|
+
<CollapsibleList
|
|
672
|
+
:items="remboursementItems"
|
|
673
|
+
list-title="Remboursement"
|
|
674
|
+
class="theme--dark"
|
|
675
|
+
/>
|
|
676
|
+
</VCol>
|
|
677
|
+
<VCol cols="12" sm="6">
|
|
678
|
+
<CollapsibleList
|
|
679
|
+
:items="healthItems"
|
|
680
|
+
list-title="Santé"
|
|
681
|
+
class="theme--dark"
|
|
682
|
+
/>
|
|
683
|
+
</VCol>
|
|
684
|
+
</VRow>
|
|
685
|
+
</FooterBar>
|
|
686
|
+
</template>
|
|
687
|
+
`,
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
name: 'Script',
|
|
691
|
+
code: `<script setup lang="ts">
|
|
692
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
693
|
+
import { CollapsibleList } from '@cnamts/synapse'
|
|
694
|
+
|
|
695
|
+
const items = [
|
|
696
|
+
{
|
|
697
|
+
text: 'Plan du site',
|
|
698
|
+
href: '/sitemap',
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
text: 'Conditions générales d\\'utilisation',
|
|
702
|
+
href: '/cgu',
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
text: 'Gestion des cookies',
|
|
706
|
+
href: '/cookies',
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
text: 'Mentions légales',
|
|
710
|
+
href: '/mentions-legales',
|
|
711
|
+
},
|
|
712
|
+
]
|
|
713
|
+
|
|
714
|
+
const remboursementItems = [
|
|
715
|
+
{
|
|
716
|
+
text: 'Ce qui est remboursé',
|
|
717
|
+
href: 'https://www.ameli.fr/assure/remboursements/rembourse',
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
text: 'Ce qui reste à votre charge',
|
|
721
|
+
href: 'https://www.ameli.fr/assure/remboursements/reste-charge',
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
text: 'Être bien remboursé',
|
|
725
|
+
href: 'https://www.ameli.fr/assure/remboursements/etre-bien-rembourse',
|
|
726
|
+
},
|
|
727
|
+
]
|
|
728
|
+
|
|
729
|
+
const healthItems = [
|
|
730
|
+
{
|
|
731
|
+
text: 'Mon espace santé',
|
|
732
|
+
href: 'https://www.ameli.fr/assure/sante/mon-espace-sante',
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
text: 'Accomplir les bons gestes',
|
|
736
|
+
href: 'https://www.ameli.fr/assure/sante/bons-gestes',
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
text: 'Réagir en cas d’urgence',
|
|
740
|
+
href: 'https://www.ameli.fr/assure/sante/urgence',
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
text: 'Télésanté',
|
|
744
|
+
href: 'https://www.ameli.fr/assure/sante/telesante',
|
|
745
|
+
},
|
|
746
|
+
]
|
|
747
|
+
</script>
|
|
748
|
+
`,
|
|
749
|
+
},
|
|
750
|
+
],
|
|
438
751
|
controls: { include: ['default'] },
|
|
439
752
|
},
|
|
440
753
|
args: {
|
|
@@ -488,6 +801,46 @@ export const collapsibleList: Story = {
|
|
|
488
801
|
|
|
489
802
|
export const hideSectionLogo: Story = {
|
|
490
803
|
parameters: {
|
|
804
|
+
sourceCode: [
|
|
805
|
+
{
|
|
806
|
+
name: 'Template',
|
|
807
|
+
code: `<template>
|
|
808
|
+
<FooterBar
|
|
809
|
+
:link-items="items"
|
|
810
|
+
hide-logo
|
|
811
|
+
>
|
|
812
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
813
|
+
</FooterBar>
|
|
814
|
+
</template>
|
|
815
|
+
`,
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
name: 'Script',
|
|
819
|
+
code: `<script setup lang="ts">
|
|
820
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
821
|
+
|
|
822
|
+
const items = [
|
|
823
|
+
{
|
|
824
|
+
text: 'Plan du site',
|
|
825
|
+
href: '/sitemap',
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
text: 'Conditions générales d\\'utilisation',
|
|
829
|
+
href: '/cgu',
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
text: 'Gestion des cookies',
|
|
833
|
+
href: '/cookies',
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
text: 'Mentions légales',
|
|
837
|
+
href: '/mentions-legales',
|
|
838
|
+
},
|
|
839
|
+
]
|
|
840
|
+
</script>
|
|
841
|
+
`,
|
|
842
|
+
},
|
|
843
|
+
],
|
|
491
844
|
controls: { include: ['hideLogo'] },
|
|
492
845
|
},
|
|
493
846
|
args: {
|
|
@@ -502,7 +855,7 @@ export const hideSectionLogo: Story = {
|
|
|
502
855
|
},
|
|
503
856
|
template: `
|
|
504
857
|
<FooterBar :hide-logo="args.hideLogo" :link-items="args.items">
|
|
505
|
-
<p class="text--secondary mb-0">
|
|
858
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
506
859
|
</FooterBar>
|
|
507
860
|
`,
|
|
508
861
|
}
|
|
@@ -511,6 +864,46 @@ export const hideSectionLogo: Story = {
|
|
|
511
864
|
|
|
512
865
|
export const hideSectionSocialMediaLinks: Story = {
|
|
513
866
|
parameters: {
|
|
867
|
+
sourceCode: [
|
|
868
|
+
{
|
|
869
|
+
name: 'Template',
|
|
870
|
+
code: `<template>
|
|
871
|
+
<FooterBar
|
|
872
|
+
:link-items="items"
|
|
873
|
+
hide-social-media-link
|
|
874
|
+
>
|
|
875
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
876
|
+
</FooterBar>
|
|
877
|
+
</template>
|
|
878
|
+
`,
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
name: 'Script',
|
|
882
|
+
code: `<script setup lang="ts">
|
|
883
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
884
|
+
|
|
885
|
+
const items = [
|
|
886
|
+
{
|
|
887
|
+
text: 'Plan du site',
|
|
888
|
+
href: '/sitemap',
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
text: 'Conditions générales d\\'utilisation',
|
|
892
|
+
href: '/cgu',
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
text: 'Gestion des cookies',
|
|
896
|
+
href: '/cookies',
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
text: 'Mentions légales',
|
|
900
|
+
href: '/mentions-legales',
|
|
901
|
+
},
|
|
902
|
+
]
|
|
903
|
+
</script>
|
|
904
|
+
`,
|
|
905
|
+
},
|
|
906
|
+
],
|
|
514
907
|
controls: { include: ['hideSocialMediaLinks'] },
|
|
515
908
|
},
|
|
516
909
|
args: {
|
|
@@ -525,7 +918,7 @@ export const hideSectionSocialMediaLinks: Story = {
|
|
|
525
918
|
},
|
|
526
919
|
template: `
|
|
527
920
|
<FooterBar :hide-social-media-links="args.hideSocialMediaLinks" :link-items="args.items">
|
|
528
|
-
<p class="text--secondary mb-0">
|
|
921
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
529
922
|
</FooterBar>
|
|
530
923
|
`,
|
|
531
924
|
}
|
|
@@ -534,6 +927,70 @@ export const hideSectionSocialMediaLinks: Story = {
|
|
|
534
927
|
|
|
535
928
|
export const customSocialMediaLinks: Story = {
|
|
536
929
|
parameters: {
|
|
930
|
+
sourceCode: [
|
|
931
|
+
{
|
|
932
|
+
name: 'Template',
|
|
933
|
+
code: `<template>
|
|
934
|
+
<FooterBar
|
|
935
|
+
:link-items="items"
|
|
936
|
+
:social-media-links="socialMediaLinks"
|
|
937
|
+
>
|
|
938
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
939
|
+
</FooterBar>
|
|
940
|
+
</template>
|
|
941
|
+
`,
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
name: 'Script',
|
|
945
|
+
code: `<script setup lang="ts">
|
|
946
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
947
|
+
import { mdiFacebook, mdiTwitter, mdiLinkedin, mdiYoutube } from '@mdi/js'
|
|
948
|
+
|
|
949
|
+
const items = [
|
|
950
|
+
{
|
|
951
|
+
text: 'Plan du site',
|
|
952
|
+
href: '/sitemap',
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
text: 'Conditions générales d\\'utilisation',
|
|
956
|
+
href: '/cgu',
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
text: 'Gestion des cookies',
|
|
960
|
+
href: '/cookies',
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
text: 'Mentions légales',
|
|
964
|
+
href: '/mentions-legales',
|
|
965
|
+
},
|
|
966
|
+
]
|
|
967
|
+
|
|
968
|
+
const socialMediaLinks = [
|
|
969
|
+
{
|
|
970
|
+
icon: mdiFacebook,
|
|
971
|
+
name: 'Facebook',
|
|
972
|
+
href: 'https://www.facebook.com',
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
icon: mdiTwitter,
|
|
976
|
+
name: 'Twitter',
|
|
977
|
+
href: 'https://www.twitter.com',
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
icon: mdiLinkedin,
|
|
981
|
+
name: 'LinkedIn',
|
|
982
|
+
href: 'https://www.linkedin.com',
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
icon: mdiYoutube,
|
|
986
|
+
name: 'YouTube',
|
|
987
|
+
href: 'https://youtube.com',
|
|
988
|
+
},
|
|
989
|
+
]
|
|
990
|
+
</script>
|
|
991
|
+
`,
|
|
992
|
+
},
|
|
993
|
+
],
|
|
537
994
|
controls: { include: ['socialMediaLinks'] },
|
|
538
995
|
},
|
|
539
996
|
args: {
|
|
@@ -569,7 +1026,7 @@ export const customSocialMediaLinks: Story = {
|
|
|
569
1026
|
},
|
|
570
1027
|
template: `
|
|
571
1028
|
<FooterBar :social-media-links="args.socialMediaLinks" :link-items="args.items">
|
|
572
|
-
<p class="text--secondary mb-0">
|
|
1029
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
573
1030
|
</FooterBar>
|
|
574
1031
|
`,
|
|
575
1032
|
}
|
|
@@ -578,6 +1035,46 @@ export const customSocialMediaLinks: Story = {
|
|
|
578
1035
|
|
|
579
1036
|
export const lightTheme: Story = {
|
|
580
1037
|
parameters: {
|
|
1038
|
+
sourceCode: [
|
|
1039
|
+
{
|
|
1040
|
+
name: 'Template',
|
|
1041
|
+
code: `<template>
|
|
1042
|
+
<FooterBar
|
|
1043
|
+
:link-items="items"
|
|
1044
|
+
light
|
|
1045
|
+
>
|
|
1046
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
1047
|
+
</FooterBar>
|
|
1048
|
+
</template>
|
|
1049
|
+
`,
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
name: 'Script',
|
|
1053
|
+
code: `<script setup lang="ts">
|
|
1054
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
1055
|
+
|
|
1056
|
+
const items = [
|
|
1057
|
+
{
|
|
1058
|
+
text: 'Plan du site',
|
|
1059
|
+
href: '/sitemap',
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
text: 'Conditions générales d\\'utilisation',
|
|
1063
|
+
href: '/cgu',
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
text: 'Gestion des cookies',
|
|
1067
|
+
href: '/cookies',
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
text: 'Mentions légales',
|
|
1071
|
+
href: '/mentions-legales',
|
|
1072
|
+
},
|
|
1073
|
+
]
|
|
1074
|
+
</script>
|
|
1075
|
+
`,
|
|
1076
|
+
},
|
|
1077
|
+
],
|
|
581
1078
|
controls: { include: ['light'] },
|
|
582
1079
|
},
|
|
583
1080
|
args: {
|
|
@@ -592,7 +1089,7 @@ export const lightTheme: Story = {
|
|
|
592
1089
|
},
|
|
593
1090
|
template: `
|
|
594
1091
|
<FooterBar :light="args.light" :link-items="args.items">
|
|
595
|
-
<p class="text--secondary mb-0">
|
|
1092
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
596
1093
|
</FooterBar>
|
|
597
1094
|
`,
|
|
598
1095
|
}
|
|
@@ -601,6 +1098,57 @@ export const lightTheme: Story = {
|
|
|
601
1098
|
|
|
602
1099
|
export const customTheme: Story = {
|
|
603
1100
|
parameters: {
|
|
1101
|
+
sourceCode: [
|
|
1102
|
+
{
|
|
1103
|
+
name: 'Template',
|
|
1104
|
+
code: `<template>
|
|
1105
|
+
<FooterBar
|
|
1106
|
+
:link-items="items"
|
|
1107
|
+
:vuetify-options="vuetifyOptions"
|
|
1108
|
+
>
|
|
1109
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
1110
|
+
</FooterBar>
|
|
1111
|
+
</template>
|
|
1112
|
+
`,
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
name: 'Script',
|
|
1116
|
+
code: `<script setup lang="ts">
|
|
1117
|
+
import { FooterBar } from '@cnamts/synapse'
|
|
1118
|
+
|
|
1119
|
+
const items = [
|
|
1120
|
+
{
|
|
1121
|
+
text: 'Plan du site',
|
|
1122
|
+
href: '/sitemap',
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
text: 'Conditions générales d\\'utilisation',
|
|
1126
|
+
href: '/cgu',
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
text: 'Gestion des cookies',
|
|
1130
|
+
href: '/cookies',
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
text: 'Mentions légales',
|
|
1134
|
+
href: '/mentions-legales',
|
|
1135
|
+
},
|
|
1136
|
+
]
|
|
1137
|
+
|
|
1138
|
+
const vuetifyOptions = {
|
|
1139
|
+
footer: {
|
|
1140
|
+
elevation: 3,
|
|
1141
|
+
color: 'rgb(50, 53, 53)',
|
|
1142
|
+
height: 'auto',
|
|
1143
|
+
},
|
|
1144
|
+
goTopBtn: {
|
|
1145
|
+
color: 'rgb(50, 53, 53)',
|
|
1146
|
+
},
|
|
1147
|
+
}
|
|
1148
|
+
</script>
|
|
1149
|
+
`,
|
|
1150
|
+
},
|
|
1151
|
+
],
|
|
604
1152
|
controls: { include: ['vuetifyOptions'] },
|
|
605
1153
|
},
|
|
606
1154
|
args: {
|
|
@@ -624,7 +1172,7 @@ export const customTheme: Story = {
|
|
|
624
1172
|
},
|
|
625
1173
|
template: `
|
|
626
1174
|
<FooterBar :vuetify-options="args.vuetifyOptions" :link-items="args.items">
|
|
627
|
-
<p class="text--secondary mb-0">
|
|
1175
|
+
<p class="text--secondary mb-0">Contenu supplémentaire.</p>
|
|
628
1176
|
</FooterBar>
|
|
629
1177
|
`,
|
|
630
1178
|
}
|