@cnamts/synapse 0.0.3-alpha → 0.0.5-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 +1461 -68
- package/dist/design-system-v3.js +4775 -1673
- package/dist/design-system-v3.umd.cjs +10 -1
- package/dist/style.css +1 -1
- package/package.json +6 -2
- package/src/assets/tokens.scss +0 -1
- package/src/components/Alert/Accessibilite.mdx +14 -0
- package/src/components/Alert/Accessibilite.stories.ts +166 -0
- package/src/components/Alert/AccessibiliteItems.ts +152 -0
- package/src/components/Alert/Alert.mdx +1 -1
- package/src/components/Alert/Alert.stories.ts +91 -1
- package/src/components/Alert/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/BackBtn/Accessibilite.mdx +14 -0
- package/src/components/BackBtn/Accessibilite.stories.ts +166 -0
- package/src/components/BackBtn/AccessibiliteItems.ts +132 -0
- package/src/components/BackBtn/BackBtn.mdx +1 -1
- package/src/components/BackBtn/BackBtn.stories.ts +84 -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 +82 -0
- package/src/components/BackToTopBtn/BackToTopBtn.mdx +3 -3
- package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +172 -11
- package/src/components/BackToTopBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/CollapsibleList/Accessibilite.mdx +14 -0
- package/src/components/CollapsibleList/Accessibilite.stories.ts +166 -0
- package/src/components/CollapsibleList/AccessibiliteItems.ts +129 -0
- package/src/components/CollapsibleList/CollapsibleList.mdx +2 -2
- package/src/components/CollapsibleList/CollapsibleList.stories.ts +37 -1
- package/src/components/CollapsibleList/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/CopyBtn/Accessibilite.mdx +14 -0
- package/src/components/CopyBtn/Accessibilite.stories.ts +166 -0
- package/src/components/CopyBtn/AccessibiliteItems.ts +135 -0
- package/src/components/CopyBtn/CopyBtn.mdx +1 -1
- package/src/components/CopyBtn/CopyBtn.stories.ts +120 -1
- package/src/components/CopyBtn/CopyBtn.vue +1 -1
- package/src/components/CopyBtn/config.ts +2 -0
- package/src/components/CopyBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.mdx +44 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.stories.ts +606 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.vue +246 -0
- package/src/components/Customs/SyBtnSelect/tests/SyBtnSelect.spec.ts +168 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.mdx +40 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +420 -0
- package/src/components/Customs/{CustomInputSelect/CustomInputSelect.vue → SyInputSelect/SyInputSelect.vue} +89 -54
- package/src/components/Customs/SyInputSelect/config.ts +10 -0
- package/src/components/Customs/SyInputSelect/tests/SyInputSelect.spec.ts +140 -0
- package/src/components/Customs/{CustomSelect/CustomSelect.mdx → SySelect/SySelect.mdx} +10 -10
- package/src/components/Customs/SySelect/SySelect.stories.ts +338 -0
- package/src/components/Customs/{CustomSelect/CustomSelect.vue → SySelect/SySelect.vue} +34 -11
- package/src/components/Customs/{CustomInputSelect/tests/CustomInputSelect.spec.ts → SySelect/tests/SySelect.spec.ts} +48 -71
- package/src/components/Customs/SyTextField/SyTextField.mdx +44 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +403 -0
- package/src/components/Customs/SyTextField/SyTextField.vue +110 -0
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +93 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap +57 -0
- package/src/components/Customs/SyTextField/types.d.ts +3 -0
- package/src/components/DataList/DataList.mdx +77 -0
- package/src/components/DataList/DataList.stories.ts +960 -0
- package/src/components/DataList/DataList.vue +140 -0
- package/src/components/DataList/DataListLoading/DataListLoading.vue +56 -0
- package/src/components/DataList/DataListLoading/tests/DataListLoading.spec.ts +23 -0
- package/src/components/DataList/locales.ts +3 -0
- package/src/components/DataList/tests/DataList.spec.ts +194 -0
- package/src/components/DataList/types.d.ts +23 -0
- package/src/components/DataListGroup/DataListGroup.mdx +77 -0
- package/src/components/DataListGroup/DataListGroup.stories.ts +987 -0
- package/src/components/DataListGroup/DataListGroup.vue +59 -0
- package/src/components/DataListGroup/tests/DataListGroup.spec.ts +54 -0
- package/src/components/DataListGroup/tests/data/dataListGroupItems.ts +41 -0
- package/src/components/DataListGroup/types.d.ts +15 -0
- package/src/components/DataListItem/DataListItem.vue +135 -0
- package/src/components/DataListItem/config.ts +17 -0
- package/src/components/DataListItem/locales.ts +3 -0
- package/src/components/DataListItem/tests/DataListItem.spec.ts +156 -0
- package/src/components/DataListItem/types.d.ts +23 -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/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/Accessibilite.mdx +14 -0
- package/src/components/DownloadBtn/Accessibilite.stories.ts +166 -0
- package/src/components/DownloadBtn/AccessibiliteItems.ts +129 -0
- package/src/components/DownloadBtn/DownloadBtn.mdx +5 -6
- package/src/components/DownloadBtn/DownloadBtn.stories.ts +207 -2
- package/src/components/DownloadBtn/constants/ExpertiseLevelEnum.ts +4 -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/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/FooterBar.mdx +2 -2
- package/src/components/FooterBar/FooterBar.stories.ts +557 -9
- package/src/components/FooterBar/config.ts +2 -3
- 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 +2 -2
- package/src/components/FranceConnectBtn/Accessibilite.mdx +14 -0
- package/src/components/FranceConnectBtn/Accessibilite.stories.ts +194 -0
- package/src/components/FranceConnectBtn/AccessibiliteItems.ts +199 -0
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +1 -1
- package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +58 -1
- package/src/components/FranceConnectBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderBar/HeaderBar.mdx +164 -45
- package/src/components/HeaderBar/HeaderBar.stories.ts +618 -16
- package/src/components/HeaderBar/HeaderBar.vue +60 -22
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.mdx +433 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.stories.ts +1089 -0
- package/src/components/HeaderBar/{HeaderComplexMenu/HeaderComplexMenu.vue → HeaderBurgerMenu/HeaderBurgerMenu.vue} +74 -45
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.mdx +38 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.stories.ts +89 -0
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuItem/tests/__snapshots__/HeaderMenuItem.spec.ts.snap +1 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.mdx +17 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.stories.ts +121 -0
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuSection/HeaderMenuSection.vue +2 -2
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuSection/tests/HeaderMenuSection.spec.ts +1 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.mdx +43 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.stories.ts +261 -0
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderSubMenu/HeaderSubMenu.vue +17 -3
- package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderSubMenu/tests/HeaderSubMenu.spec.ts +1 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.spec.ts +180 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/HeaderBurgerMenu.spec.ts.snap +13 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/HeaderComplexMenu.spec.ts.snap +13 -0
- package/src/components/HeaderBar/HeaderLogo/HeaderLogo.vue +62 -25
- package/src/components/HeaderBar/HeaderLogo/tests/HeaderLogo.spec.ts +49 -1
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +19 -23
- package/src/components/HeaderBar/HeaderMenuBtn/tests/HeaderMenuBtn.spec.ts +70 -0
- package/src/components/HeaderBar/Usages.mdx +85 -0
- package/src/components/HeaderBar/consts.scss +0 -1
- package/src/components/HeaderBar/tests/HeaderBar.spec.ts +8 -2
- package/src/components/HeaderBar/tests/__snapshots__/HeaderBar.spec.ts.snap +5 -10
- package/src/components/HeaderLoading/HeaderLoading.mdx +28 -0
- package/src/components/HeaderLoading/HeaderLoading.stories.ts +62 -0
- package/src/components/HeaderLoading/HeaderLoading.vue +45 -0
- package/src/components/HeaderLoading/tests/HeaderLoading.spec.ts +22 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.mdx +128 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +784 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.vue +194 -0
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +74 -0
- package/src/components/HeaderNavigationBar/HorizontalNavbar/config.ts +18 -0
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +127 -0
- package/src/components/HeaderNavigationBar/types.ts +7 -0
- package/src/components/HeaderToolbar/HeaderToolbar.mdx +31 -0
- package/src/components/HeaderToolbar/HeaderToolbar.stories.ts +343 -0
- package/src/components/HeaderToolbar/HeaderToolbar.vue +487 -0
- package/src/components/HeaderToolbar/tests/HeaderToolbar.spec.ts +230 -0
- package/src/components/HeaderToolbar/types.d.ts +20 -0
- package/src/components/LangBtn/Accessibilite.mdx +14 -0
- package/src/components/LangBtn/Accessibilite.stories.ts +166 -0
- package/src/components/LangBtn/AccessibiliteItems.ts +132 -0
- package/src/components/LangBtn/LangBtn.mdx +1 -1
- package/src/components/LangBtn/LangBtn.stories.ts +125 -8
- 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/Logo.mdx +2 -2
- package/src/components/Logo/Logo.stories.ts +147 -1
- package/src/components/LogoBrandSection/LogoBrandSection.mdx +14 -0
- package/src/components/LogoBrandSection/LogoBrandSection.stories.ts +158 -0
- package/src/components/LogoBrandSection/LogoBrandSection.vue +312 -0
- package/src/components/LogoBrandSection/assets/ameli-pro.svg +1 -0
- package/src/components/LogoBrandSection/assets/ameli.svg +1 -0
- package/src/components/LogoBrandSection/assets/cnam.svg +1 -0
- package/src/components/LogoBrandSection/assets/compte-ameli.svg +1 -0
- package/src/components/LogoBrandSection/dividerDimensionsMapping.ts +14 -0
- package/src/components/LogoBrandSection/locales.ts +14 -0
- package/src/components/LogoBrandSection/secondaryLogoMapping.ts +24 -0
- package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +365 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/LogoBrandSection.spec.ts.snap +14 -0
- package/src/components/LogoBrandSection/types.ts +8 -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/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/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/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 +174 -0
- package/src/components/NotificationBar/NotificationBar.mdx +6 -6
- package/src/components/NotificationBar/NotificationBar.stories.ts +1 -1
- package/src/components/NotificationBar/NotificationBar.vue +2 -2
- package/src/components/NotificationBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NotificationBar/options.ts +1 -0
- package/src/components/NotificationBar/tests/NotificationBar.spec.ts +1 -1
- 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 +86 -1
- package/src/components/PageContainer/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/PhoneField/PhoneField.mdx +49 -0
- package/src/components/PhoneField/PhoneField.stories.ts +869 -0
- package/src/components/PhoneField/PhoneField.vue +230 -0
- package/src/components/PhoneField/indicatifs.ts +104 -0
- package/src/components/PhoneField/locales.ts +4 -0
- package/src/components/PhoneField/tests/PhoneField.spec.ts +179 -0
- 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 +50 -1
- package/src/components/SkipLink/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +33 -2
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +38 -1
- 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/SubHeader.mdx +31 -0
- package/src/components/SubHeader/SubHeader.stories.ts +1032 -0
- package/src/components/SubHeader/SubHeader.vue +185 -0
- package/src/components/SubHeader/config.ts +12 -0
- package/src/components/SubHeader/locales.ts +3 -0
- package/src/components/SubHeader/tests/SubHeader.spec.ts +144 -0
- package/src/components/UserMenuBtn/UserMenuBtn.mdx +35 -0
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +438 -0
- package/src/components/UserMenuBtn/UserMenuBtn.vue +105 -0
- package/src/components/UserMenuBtn/config.ts +24 -0
- package/src/components/UserMenuBtn/tests/UserMenuBtn.spec.ts +125 -0
- package/src/components/index.ts +33 -7
- package/src/composables/index.ts +8 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +82 -0
- package/src/composables/rules/useFieldValidation.ts +53 -0
- package/src/composables/widthable/index.ts +29 -0
- package/src/composables/widthable/tests/widthable.spec.ts +52 -0
- package/src/designTokens/index.ts +2 -0
- package/src/designTokens/tokens/cnam/cnamDarkTheme.ts +5 -0
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +3 -2
- package/src/main.ts +3 -0
- package/src/modules.d.ts +4 -0
- package/src/services/index.ts +1 -0
- package/src/stories/Demarrer/Accueil.mdx +10 -0
- package/src/stories/Demarrer/Accueil.stories.ts +76 -0
- package/src/stories/Demarrer/PolitiqueDeConfidentialite.mdx +9 -0
- package/src/stories/Demarrer/PolitiqueDeConfidentialite.stories.ts +20 -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 +132 -0
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +52 -48
- package/src/stories/GuideDuDev/vuetifyOptions.mdx +31 -28
- package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/Accessibilite.mdx +1 -2
- package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/Accessibilite.stories.ts +1 -1
- package/src/stories/{Fondamentaux → Guidelines}/EcoConception/Econception.stories.ts +2 -2
- package/src/utils/functions/throttleDisplayFn/tests/throttleDisplayFn.spec.ts +47 -0
- package/src/utils/functions/throttleDisplayFn/throttleDisplayFn.ts +26 -0
- package/src/utils/rules/exactLength/index.ts +33 -0
- package/src/utils/rules/exactLength/locales.ts +6 -0
- package/src/utils/rules/required/index.ts +25 -0
- package/src/utils/rules/required/locales.ts +5 -0
- package/src/utils/rules/required/ruleMessageHelper.ts +14 -0
- package/src/utils/rules/required/tests/index.spec.ts +47 -0
- package/src/utils/rules/required/tests/rulesMessageHelper.spec.ts +22 -0
- package/src/utils/rules/types.d.ts +15 -0
- package/src/components/Beta/beta.mdx +0 -5
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.mdx +0 -42
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.stories.ts +0 -154
- package/src/components/Customs/CustomSelect/CustomSelect.stories.ts +0 -182
- package/src/components/Customs/CustomSelect/tests/CustomSelect.spec.ts +0 -236
- package/src/components/Deprecated/deprecated.mdx +0 -5
- package/src/components/HeaderBar/HeaderComplexMenu/HeaderComplexMenu.stories.ts +0 -272
- package/src/components/HeaderBar/HeaderComplexMenu/HeaderMenuItem/HeaderMenuItem.stories.ts +0 -49
- package/src/components/HeaderBar/HeaderComplexMenu/HeaderMenuSection/HeaderMenuSection.stories.ts +0 -56
- package/src/components/HeaderBar/HeaderComplexMenu/HeaderSubMenu/HeaderSubMenu.stories.ts +0 -137
- package/src/components/HeaderBar/HeaderComplexMenu/tests/HeaderComplexMenu.spec.ts +0 -129
- package/src/components/HeaderBar/HeaderComplexMenu/tests/__snapshots__/HeaderComplexMenu.spec.ts.snap +0 -18
- package/src/stories/Guidelines/CustomisationEtThemes.mdx +0 -3
- package/src/stories/Guidelines/Typo.mdx +0 -53
- package/src/stories/Home/Accueil.mdx +0 -7
- package/src/stories/Home/PolitiqueDeConfidentialite.mdx +0 -4
- package/src/stories/Home/synapse.webp +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuItem/HeaderMenuItem.vue +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/HeaderMenuItem/tests/HeaderMenuItem.spec.ts +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/conts.ts +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/locals.ts +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/tests/useHandleSubMenus.spec.ts +0 -0
- /package/src/components/HeaderBar/{HeaderComplexMenu → HeaderBurgerMenu}/useHandleSubMenus.ts +0 -0
- /package/src/components/Logo/{types.d.ts → types.ts} +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
|
@@ -60,7 +60,7 @@ const healthItems = [
|
|
|
60
60
|
const currentYear = new Date().getFullYear()
|
|
61
61
|
|
|
62
62
|
const meta = {
|
|
63
|
-
title: '
|
|
63
|
+
title: 'Composants/Structure/FooterBar',
|
|
64
64
|
component: FooterBar,
|
|
65
65
|
parameters: {
|
|
66
66
|
layout: 'fullscreen',
|
|
@@ -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
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { VariantType, DensityType } from '@/types/vuetifyTypes'
|
|
2
|
-
import { cnamColorsTokens } from '@/designTokens'
|
|
3
2
|
|
|
4
3
|
export const config = {
|
|
5
4
|
footer: {
|
|
6
5
|
elevation: 3,
|
|
7
|
-
color:
|
|
6
|
+
color: 'backgroundSurface',
|
|
8
7
|
height: 'auto',
|
|
9
8
|
},
|
|
10
9
|
goTopBtn: {
|
|
@@ -12,7 +11,7 @@ export const config = {
|
|
|
12
11
|
density: 'compact' as DensityType,
|
|
13
12
|
icon: 'true',
|
|
14
13
|
variant: 'text' as VariantType,
|
|
15
|
-
color:
|
|
14
|
+
color: 'backgroundSurface',
|
|
16
15
|
},
|
|
17
16
|
goTopBtnIcon: {
|
|
18
17
|
color: 'white',
|