@cnamts/synapse 0.0.0-alpha.0 → 0.0.2-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/README.md +72 -2
- package/dist/design-system-v3.d.ts +234 -2
- package/dist/design-system-v3.js +3020 -2142
- package/dist/design-system-v3.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +11 -10
- package/src/components/CollapsibleList/CollapsibleList.mdx +47 -0
- package/src/components/CollapsibleList/CollapsibleList.stories.ts +52 -0
- package/src/components/CollapsibleList/CollapsibleList.vue +157 -0
- package/src/components/CollapsibleList/tests/CollapsibleList.spec.ts +60 -0
- package/src/components/CollapsibleList/types.d.ts +5 -0
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.mdx +42 -0
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.stories.ts +154 -0
- package/src/components/Customs/CustomInputSelect/CustomInputSelect.vue +185 -0
- package/src/components/Customs/CustomInputSelect/tests/CustomInputSelect.spec.ts +216 -0
- package/src/components/Customs/CustomSelect/CustomSelect.mdx +47 -0
- package/src/components/Customs/CustomSelect/CustomSelect.stories.ts +182 -0
- package/src/components/Customs/CustomSelect/CustomSelect.vue +188 -0
- package/src/components/Customs/CustomSelect/tests/CustomSelect.spec.ts +236 -0
- package/src/components/FooterBar/A11yCompliance.ts +9 -0
- package/src/components/FooterBar/FooterBar.mdx +115 -0
- package/src/components/FooterBar/FooterBar.stories.ts +632 -0
- package/src/components/FooterBar/FooterBar.vue +330 -0
- package/src/components/FooterBar/config.ts +20 -0
- package/src/components/FooterBar/defaultSocialMediaLinks.ts +21 -0
- package/src/components/FooterBar/locales.ts +16 -0
- package/src/components/FooterBar/tests/FooterBar.spec.ts +167 -0
- package/src/components/FooterBar/tests/FooterBarConfig.spec.ts +36 -0
- package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +27 -0
- package/src/components/FooterBar/types.d.ts +10 -0
- package/src/components/LangBtn/LangBtn.mdx +2 -1
- package/src/components/LangBtn/LangBtn.vue +3 -3
- package/src/components/Logo/Logo.mdx +26 -0
- package/src/components/Logo/Logo.stories.ts +217 -0
- package/src/components/Logo/Logo.vue +397 -0
- package/src/components/Logo/LogoSize.ts +7 -0
- package/src/components/Logo/locales.ts +6 -0
- package/src/components/Logo/logoDimensionsMapping.ts +16 -0
- package/src/components/Logo/tests/Logo.spec.ts +75 -0
- package/src/components/Logo/types.d.ts +8 -0
- package/src/components/SocialMediaLinks/DefaultSocialMediaLinks.ts +21 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +15 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +72 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +92 -0
- package/src/components/SocialMediaLinks/locales.ts +3 -0
- package/src/components/SocialMediaLinks/tests/DefaultSocialMediaLinks.spec.ts +21 -0
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +89 -0
- package/src/components/SocialMediaLinks/tests/__snapshots__/SocialMediaLinks.spec.ts.snap +24 -0
- package/src/components/SocialMediaLinks/types.d.ts +5 -0
- package/src/components/index.ts +6 -0
- package/src/directives/clickOutside.ts +24 -0
- package/src/temp/TestDTComponent.vue +6 -10
- package/src/temp/gridsTests.vue +0 -4
- package/src/utils/propValidator/index.ts +20 -0
- package/src/utils/propValidator/tests/propValidator.spec.ts +40 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import {Controls, Canvas, Meta, Source} from '@storybook/blocks';
|
|
2
|
+
import * as FooterBarStories from './FooterBar.stories.ts';
|
|
3
|
+
|
|
4
|
+
<Meta of={FooterBarStories} />
|
|
5
|
+
|
|
6
|
+
# FooterBar
|
|
7
|
+
|
|
8
|
+
Le composant `FooterBar` est utilisé pour afficher une barre de pied de page avec des liens et des informations supplémentaires.
|
|
9
|
+
|
|
10
|
+
<Canvas of={FooterBarStories.Default} />
|
|
11
|
+
|
|
12
|
+
# Api
|
|
13
|
+
|
|
14
|
+
<Controls of={FooterBarStories.Default} />
|
|
15
|
+
|
|
16
|
+
# Exemple d'utilisation
|
|
17
|
+
|
|
18
|
+
<Source dark code={`
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
import FooterBar from '@/components/FooterBar/FooterBar.vue'
|
|
21
|
+
import CollapsibleList from '@/components/CollapsibleList/CollapsibleList.vue'
|
|
22
|
+
import { computed } from 'vue'
|
|
23
|
+
import { useDisplay } from 'vuetify'
|
|
24
|
+
|
|
25
|
+
const docProps = {
|
|
26
|
+
sitemapRoute: '/',
|
|
27
|
+
cguRoute: '/',
|
|
28
|
+
cookiesRoute: '/',
|
|
29
|
+
legalNoticeRoute: '/',
|
|
30
|
+
a11yStatementRoute: '/',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const remboursementItems = [
|
|
34
|
+
{
|
|
35
|
+
text: 'Ce qui est remboursé',
|
|
36
|
+
href: 'https://www.ameli.fr/assure/remboursements/rembourse',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
text: 'Ce qui reste à votre charge',
|
|
40
|
+
href: 'https://www.ameli.fr/assure/remboursements/reste-charge',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
text: 'Être bien remboursé',
|
|
44
|
+
href: 'https://www.ameli.fr/assure/remboursements/etre-bien-rembourse',
|
|
45
|
+
},
|
|
46
|
+
]
|
|
47
|
+
const healthItems = [
|
|
48
|
+
{
|
|
49
|
+
text: 'Mon espace santé',
|
|
50
|
+
href: 'https://www.ameli.fr/assure/sante/mon-espace-sante',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
text: 'Accomplir les bons gestes',
|
|
54
|
+
href: 'https://www.ameli.fr/assure/sante/bons-gestes',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
text: 'Réagir en cas d’urgence',
|
|
58
|
+
href: 'https://www.ameli.fr/assure/sante/urgence',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
text: 'Télésanté',
|
|
62
|
+
href: 'https://www.ameli.fr/assure/sante/telesante',
|
|
63
|
+
},
|
|
64
|
+
]
|
|
65
|
+
const { smAndDown } = useDisplay()
|
|
66
|
+
const isMobile = computed(() => smAndDown.value)
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<main>
|
|
71
|
+
<div class="div-height">
|
|
72
|
+
<h2 class="text-center">
|
|
73
|
+
Scroll to see footer and test scroll to top
|
|
74
|
+
</h2>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<FooterBar
|
|
78
|
+
v-bind="docProps"
|
|
79
|
+
>
|
|
80
|
+
<VRow
|
|
81
|
+
:no-gutters="isMobile"
|
|
82
|
+
class="max-width-none"
|
|
83
|
+
>
|
|
84
|
+
<VCol
|
|
85
|
+
cols="12"
|
|
86
|
+
sm="6"
|
|
87
|
+
>
|
|
88
|
+
<CollapsibleList
|
|
89
|
+
:items="remboursementItems"
|
|
90
|
+
list-title="Remboursement"
|
|
91
|
+
class="theme--dark"
|
|
92
|
+
/>
|
|
93
|
+
</VCol>
|
|
94
|
+
|
|
95
|
+
<VCol
|
|
96
|
+
cols="12"
|
|
97
|
+
sm="6"
|
|
98
|
+
>
|
|
99
|
+
<CollapsibleList
|
|
100
|
+
:items="healthItems"
|
|
101
|
+
list-title="Santé"
|
|
102
|
+
class="theme--dark"
|
|
103
|
+
/>
|
|
104
|
+
</VCol>
|
|
105
|
+
</VRow>
|
|
106
|
+
</FooterBar>
|
|
107
|
+
</main>
|
|
108
|
+
</template>
|
|
109
|
+
|
|
110
|
+
<style scoped>
|
|
111
|
+
.div-height {
|
|
112
|
+
min-height: 1000px;
|
|
113
|
+
}
|
|
114
|
+
</style>
|
|
115
|
+
`} />
|