@cnamts/synapse 0.0.6-alpha → 0.0.7-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 +8 -6
- package/dist/design-system-v3.js +19 -16
- package/dist/design-system-v3.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/BackBtn/BackBtn.stories.ts +4 -1
- package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +3 -3
- package/src/components/CookieBanner/CookieBanner.stories.ts +2 -0
- package/src/components/CopyBtn/CopyBtn.stories.ts +5 -2
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.stories.ts +11 -51
- package/src/components/Customs/SyInputSelect/SyInputSelect.mdx +4 -1
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +19 -7
- package/src/components/Customs/SySelect/SySelect.mdx +1 -2
- package/src/components/Customs/SySelect/SySelect.stories.ts +0 -2
- package/src/components/DownloadBtn/DownloadBtn.mdx +3 -4
- package/src/components/DownloadBtn/DownloadBtn.stories.ts +20 -21
- package/src/components/ErrorPage/ErrorPage.vue +1 -1
- package/src/components/FooterBar/FooterBar.vue +6 -2
- package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +2 -1
- package/src/components/HeaderBar/HeaderBar.stories.ts +19 -12
- package/src/components/HeaderBar/HeaderBar.vue +8 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.vue +1 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +104 -32
- package/src/components/HeaderToolbar/HeaderToolbar.vue +23 -1
- package/src/components/NirField/NirField.mdx +1 -4
- package/src/components/NirField/NirField.stories.ts +65 -12
- package/src/components/NirField/NirField.vue +5 -2
- package/src/components/NirField/tests/NirField.spec.ts +1 -0
- package/src/components/PageContainer/PageContainer.stories.ts +5 -5
- package/src/components/PageContainer/PageContainer.vue +9 -4
- package/src/components/PageContainer/tests/PageContainer.spec.ts +1 -1
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +7 -1
- package/src/components/SocialMediaLinks/tests/__snapshots__/SocialMediaLinks.spec.ts.snap +2 -2
- package/src/components/SubHeader/SubHeader.stories.ts +6 -3
- package/src/components/SyAlert/SyAlert.vue +7 -0
- package/src/components/index.ts +1 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{{ locales.followUs }}
|
|
18
18
|
</span>
|
|
19
19
|
|
|
20
|
-
<ul class="d-flex max-width-none">
|
|
20
|
+
<ul class="vd-social-media-links-content d-flex max-width-none">
|
|
21
21
|
<li
|
|
22
22
|
v-for="(social, index) in props.links"
|
|
23
23
|
:key="index"
|
|
@@ -82,11 +82,17 @@ li {
|
|
|
82
82
|
.vd-social-media-links-label {
|
|
83
83
|
text-align: right;
|
|
84
84
|
}
|
|
85
|
+
.vd-social-media-links-content {
|
|
86
|
+
justify-content: flex-end;
|
|
87
|
+
}
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
@media (max-width: 767px) {
|
|
88
91
|
.vd-social-media-links-label {
|
|
89
92
|
text-align: left;
|
|
90
93
|
}
|
|
94
|
+
.vd-social-media-links-content {
|
|
95
|
+
justify-content: flex-start;
|
|
96
|
+
}
|
|
91
97
|
}
|
|
92
98
|
</style>
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`SocialMediaLinks > renders correctly with default props 1`] = `
|
|
4
4
|
"<div data-v-9d3df26f="" class="d-flex flex-column"><span data-v-9d3df26f="" class="vd-social-media-links-label text-subtitle-2 text--primary">Suivez-nous :</span>
|
|
5
|
-
<ul data-v-9d3df26f="" class="d-flex max-width-none"></ul>
|
|
5
|
+
<ul data-v-9d3df26f="" class="vd-social-media-links-content d-flex max-width-none"></ul>
|
|
6
6
|
</div>"
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
exports[`SocialMediaLinks > renders correctly with provided links 1`] = `
|
|
10
10
|
"<div data-v-9d3df26f="" class="d-flex flex-column"><span data-v-9d3df26f="" class="vd-social-media-links-label text-subtitle-2 text--primary">Suivez-nous :</span>
|
|
11
|
-
<ul data-v-9d3df26f="" class="d-flex max-width-none">
|
|
11
|
+
<ul data-v-9d3df26f="" class="vd-social-media-links-content d-flex max-width-none">
|
|
12
12
|
<li data-v-9d3df26f=""><a data-v-9d3df26f="" class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-text" href="https://twitter.com" id="social-btn-0" target="_blank" rel="noopener noreferrer" aria-label="Lien vers Twitter"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
|
|
13
13
|
<!----><span class="v-btn__content" data-no-activator=""><i data-v-9d3df26f="" class="mdi-twitter mdi v-icon notranslate v-theme--light vd-social-media-links-icon" style="font-size: 30px; height: 30px; width: 30px;" aria-hidden="true"></i></span>
|
|
14
14
|
<!---->
|
|
@@ -295,8 +295,9 @@ export const ActionBtn: Story = {
|
|
|
295
295
|
code: `
|
|
296
296
|
<script setup lang="ts">
|
|
297
297
|
import { SubHeader } from '@cnamts/synapse'
|
|
298
|
+
import { ref } from 'vue'
|
|
298
299
|
|
|
299
|
-
const items = [
|
|
300
|
+
const items = ref([
|
|
300
301
|
{
|
|
301
302
|
title: 'Informations patient',
|
|
302
303
|
items: [
|
|
@@ -317,10 +318,12 @@ export const ActionBtn: Story = {
|
|
|
317
318
|
{ key: 'Dernière modification', value: '04/06/2020' },
|
|
318
319
|
],
|
|
319
320
|
},
|
|
320
|
-
]
|
|
321
|
+
])
|
|
321
322
|
|
|
322
323
|
const updateInfo = (eventValue: { dataListIndex: number, itemIndex: number }) => {
|
|
323
|
-
|
|
324
|
+
if (items) {
|
|
325
|
+
items[eventValue.dataListIndex].items[eventValue.itemIndex].value = '25/09/1970'
|
|
326
|
+
}
|
|
324
327
|
}
|
|
325
328
|
</script>
|
|
326
329
|
`,
|
package/src/components/index.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { default as NotFoundPage } from './NotFoundPage/NotFoundPage.vue'
|
|
|
33
33
|
export { default as NirField } from './NirField/NirField.vue'
|
|
34
34
|
export * from './NirField/nirValidation'
|
|
35
35
|
export { default as NotificationBar } from './NotificationBar/NotificationBar.vue'
|
|
36
|
+
export { useNotificationService } from '../services/NotificationService'
|
|
36
37
|
export * from './NotificationBar/types'
|
|
37
38
|
export { default as PageContainer } from './PageContainer/PageContainer.vue'
|
|
38
39
|
export { default as PhoneField } from './PhoneField/PhoneField.vue'
|