@cnamts/synapse 0.0.7-alpha → 0.0.8-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 +325 -368
- package/dist/design-system-v3.js +2791 -2637
- package/dist/design-system-v3.umd.cjs +1 -10
- package/dist/style.css +1 -1
- package/package.json +10 -2
- package/src/assets/settings.scss +2 -2
- package/src/assets/tokens.scss +107 -112
- package/src/components/BackBtn/BackBtn.vue +4 -4
- package/src/components/BackToTopBtn/BackToTopBtn.vue +1 -0
- package/src/components/CollapsibleList/CollapsibleList.mdx +1 -1
- package/src/components/CollapsibleList/CollapsibleList.vue +43 -44
- package/src/components/ContextualMenu/ContextualMenu.mdx +118 -0
- package/src/components/ContextualMenu/ContextualMenu.stories.ts +430 -0
- package/src/components/ContextualMenu/ContextualMenu.vue +101 -0
- package/src/components/ContextualMenu/tests/ContextualMenu.spec.ts +115 -0
- package/src/components/ContextualMenu/tests/__snapshots__/ContextualMenu.spec.ts.snap +10 -0
- package/src/components/ContextualMenu/types.ts +5 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +1 -2
- package/src/components/CookieBanner/CookieBanner.vue +13 -10
- package/src/components/CookieBanner/tests/__snapshots__/CookieBanner.spec.ts.snap +17 -15
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +6 -1
- package/src/components/CookiesSelection/CookiesInformation/locales.ts +1 -0
- package/src/components/CookiesSelection/CookiesTable/CookiesTable.vue +1 -0
- package/src/components/CookiesSelection/tests/__snapshots__/CookiesSelection.spec.ts.snap +17 -15
- package/src/components/CopyBtn/CopyBtn.vue +7 -7
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.vue +26 -26
- package/src/components/Customs/SyInputSelect/SyInputSelect.vue +24 -24
- package/src/components/Customs/SySelect/SySelect.vue +27 -26
- package/src/components/DataList/DataList.stories.ts +3 -2
- package/src/components/DataList/DataList.vue +1 -1
- package/src/components/DataListGroup/DataListGroup.stories.ts +3 -2
- package/src/components/DataListItem/DataListItem.vue +12 -12
- package/src/components/DialogBox/DialogBox.mdx +28 -2
- package/src/components/DialogBox/DialogBox.stories.ts +1 -1
- package/src/components/DialogBox/DialogBox.vue +3 -2
- package/src/components/DownloadBtn/DownloadBtn.vue +2 -1
- package/src/components/ExternalLinks/ExternalLinks.mdx +86 -0
- package/src/components/ExternalLinks/ExternalLinks.stories.ts +553 -0
- package/src/components/ExternalLinks/ExternalLinks.vue +200 -0
- package/src/components/ExternalLinks/config.ts +34 -0
- package/src/components/ExternalLinks/locales.ts +4 -0
- package/src/components/ExternalLinks/tests/ExternalLinks.spec.ts +154 -0
- package/src/components/ExternalLinks/tests/__snapshots__/ExternalLinks.spec.ts.snap +159 -0
- package/src/components/FooterBar/FooterBar.vue +105 -80
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +14 -13
- package/src/components/HeaderBar/HeaderBar.vue +3 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.vue +11 -7
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.vue +5 -5
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.vue +2 -2
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +10 -8
- package/src/components/HeaderBar/HeaderLogo/HeaderLogo.vue +2 -2
- package/src/components/HeaderBar/HeaderLogo/logos/Logo-mobile.vue +2 -1
- package/src/components/HeaderBar/HeaderLogo/logos/Logo.vue +2 -1
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +10 -10
- package/src/components/HeaderBar/consts.scss +1 -1
- package/src/components/HeaderLoading/HeaderLoading.vue +12 -11
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.vue +2 -1
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +9 -9
- package/src/components/HeaderToolbar/HeaderToolbar.vue +215 -202
- package/src/components/LangBtn/LangBtn.vue +8 -6
- package/src/components/LogoBrandSection/LogoBrandSection.stories.ts +2 -2
- package/src/components/NirField/NirField.stories.ts +7 -7
- package/src/components/NirField/NirField.vue +44 -47
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +33 -2
- package/src/components/NotFoundPage/NotFoundPage.vue +17 -0
- package/src/components/NotificationBar/NotificationBar.mdx +5 -5
- package/src/components/NotificationBar/NotificationBar.stories.ts +410 -314
- package/src/components/NotificationBar/NotificationBar.vue +43 -41
- package/src/components/PageContainer/PageContainer.vue +4 -4
- package/src/components/PasswordField/PasswordField.mdx +70 -0
- package/src/components/PasswordField/PasswordField.stories.ts +213 -0
- package/src/components/PasswordField/PasswordField.vue +189 -0
- package/src/components/PasswordField/config.ts +11 -0
- package/src/components/PasswordField/locales.ts +4 -0
- package/src/components/PasswordField/tests/PasswordField.spec.ts +96 -0
- package/src/components/PhoneField/PhoneField.mdx +0 -2
- package/src/components/PhoneField/PhoneField.stories.ts +10 -50
- package/src/components/PhoneField/PhoneField.vue +34 -34
- package/src/components/SkipLink/SkipLink.vue +10 -10
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +28 -26
- package/src/components/SubHeader/SubHeader.vue +32 -31
- package/src/components/SyAlert/SyAlert.vue +12 -12
- package/src/components/UserMenuBtn/UserMenuBtn.vue +1 -1
- package/src/components/UserMenuBtn/config.ts +1 -1
- package/src/components/index.ts +10 -7
- package/src/designTokens/index.ts +6 -4
- package/src/designTokens/{bootstrapColors.md → paColors.md} +1 -1
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +2 -0
- package/src/designTokens/tokens/pa/paColors.ts +171 -0
- package/src/designTokens/tokens/pa/paContextual.ts +58 -0
- package/src/designTokens/tokens/pa/paDarkTheme.ts +5 -0
- package/src/designTokens/tokens/pa/paLightTheme.ts +123 -0
- package/src/designTokens/tokens/pa/paSemantic.ts +87 -0
- package/src/stories/GuideDuDev/CreerUneIssue.mdx +64 -0
- package/src/stories/GuideDuDev/{CommentUtiliserLesRules.mdx → UtiliserLesRules.mdx} +2 -2
- package/src/stories/GuideDuDev/components.stories.ts +9 -7
- package/src/stories/Guidelines/Vuetify/Vuetify.stories.ts +163 -88
- package/src/stories/Guidelines/Vuetify/VuetifyItems.ts +250 -23
- package/src/temp/TestDTComponent.vue +5 -6
- package/src/designTokens/tokens/bootstrap/bootstrapColors.ts +0 -158
- package/src/designTokens/tokens/bootstrap/bootstrapLightTheme.ts +0 -22
- package/src/stories/GuideDuDev/CommentContribuer.mdx +0 -22
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
</template>
|
|
96
96
|
|
|
97
97
|
<style lang="scss" scoped>
|
|
98
|
-
@use '@/assets/tokens
|
|
98
|
+
@use '@/assets/tokens';
|
|
99
99
|
@use 'sass:map';
|
|
100
100
|
|
|
101
101
|
.alert {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
:deep(.v-btn--variant-text .v-btn__overlay) {
|
|
118
|
-
|
|
118
|
+
background: transparent !important;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.alert-icon :deep(.v-icon__svg) {
|
|
@@ -132,13 +132,13 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.v-btn {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
text-transform: none;
|
|
136
|
+
font-weight: bold;
|
|
137
|
+
font-size: 0.75rem;
|
|
138
|
+
letter-spacing: normal;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
@media screen and (
|
|
141
|
+
@media screen and (width <= 440px) {
|
|
142
142
|
.alert {
|
|
143
143
|
display: flex;
|
|
144
144
|
flex-direction: column;
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
@media screen and (
|
|
164
|
-
.alert{
|
|
163
|
+
@media screen and (width >= 441px) {
|
|
164
|
+
.alert {
|
|
165
165
|
.alert-icon {
|
|
166
166
|
width: 3.5rem !important;
|
|
167
167
|
height: 3.5rem !important;
|
|
@@ -175,6 +175,7 @@
|
|
|
175
175
|
&.alert--#{$type}.v-alert--variant-tonal {
|
|
176
176
|
background: map.get($map, 'background') !important;
|
|
177
177
|
color: tokens.$colors-text-base !important;
|
|
178
|
+
|
|
178
179
|
:deep(.v-alert__border) {
|
|
179
180
|
border-color: map.get($map, 'border') !important;
|
|
180
181
|
opacity: 1 !important;
|
|
@@ -184,6 +185,7 @@
|
|
|
184
185
|
|
|
185
186
|
&.alert--#{$type}.v-alert--variant-outlined {
|
|
186
187
|
background: transparent !important;
|
|
188
|
+
|
|
187
189
|
:deep(.v-alert__border) {
|
|
188
190
|
border-color: map.get($map, 'border') !important;
|
|
189
191
|
opacity: 1 !important;
|
|
@@ -194,6 +196,7 @@
|
|
|
194
196
|
&.text-#{$type} {
|
|
195
197
|
.v-alert__prepend > .v-icon {
|
|
196
198
|
background: map.get($map, 'icon-bg');
|
|
199
|
+
|
|
197
200
|
:deep(svg) {
|
|
198
201
|
fill: map.get($map, 'accent');
|
|
199
202
|
}
|
|
@@ -217,7 +220,6 @@
|
|
|
217
220
|
'icon-bg': tokens.$colors-background-warning-subdued,
|
|
218
221
|
)
|
|
219
222
|
);
|
|
220
|
-
|
|
221
223
|
@include redesign(
|
|
222
224
|
'success',
|
|
223
225
|
(
|
|
@@ -228,7 +230,6 @@
|
|
|
228
230
|
'icon-bg': tokens.$colors-background-success-subdued,
|
|
229
231
|
)
|
|
230
232
|
);
|
|
231
|
-
|
|
232
233
|
@include redesign(
|
|
233
234
|
'error',
|
|
234
235
|
(
|
|
@@ -239,7 +240,6 @@
|
|
|
239
240
|
'icon-bg': tokens.$colors-background-error-subdued,
|
|
240
241
|
)
|
|
241
242
|
);
|
|
242
|
-
|
|
243
243
|
@include redesign(
|
|
244
244
|
'info',
|
|
245
245
|
(
|
package/src/components/index.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { useNotificationService } from '../services/NotificationService'
|
|
2
2
|
export { default as BackBtn } from './BackBtn/BackBtn.vue'
|
|
3
3
|
export { default as BackToTopBtn } from './BackToTopBtn/BackToTopBtn.vue'
|
|
4
4
|
export { default as CollapsibleList } from './CollapsibleList/CollapsibleList.vue'
|
|
5
|
+
export { default as ContextualMenu } from './ContextualMenu/ContextualMenu.vue'
|
|
6
|
+
export { default as CookieBanner } from './CookieBanner/CookieBanner.vue'
|
|
7
|
+
export { default as CookiesInformation } from './CookiesSelection/CookiesInformation/CookiesInformation.vue'
|
|
8
|
+
export { default as CookiesSelection } from './CookiesSelection/CookiesSelection.vue'
|
|
9
|
+
export { default as CookiesTable } from './CookiesSelection/CookiesTable/CookiesTable.vue'
|
|
5
10
|
export { default as CopyBtn } from './CopyBtn/CopyBtn.vue'
|
|
6
11
|
export { default as SyBtnSelect } from './Customs/SyBtnSelect/SyBtnSelect.vue'
|
|
7
12
|
export { default as SyInputSelect } from './Customs/SyInputSelect/SyInputSelect.vue'
|
|
@@ -13,6 +18,7 @@ export { default as DataListItem } from './DataListItem/DataListItem.vue'
|
|
|
13
18
|
export { default as DialogBox } from './DialogBox/DialogBox.vue'
|
|
14
19
|
export { default as DownloadBtn } from './DownloadBtn/DownloadBtn.vue'
|
|
15
20
|
export { default as ErrorPage } from './ErrorPage/ErrorPage.vue'
|
|
21
|
+
export { default as ExternalLinks } from './ExternalLinks/ExternalLinks.vue'
|
|
16
22
|
export { default as FooterBar } from './FooterBar/FooterBar.vue'
|
|
17
23
|
export { default as FranceConnectBtn } from './FranceConnectBtn/FranceConnectBtn.vue'
|
|
18
24
|
export { default as HeaderBar } from './HeaderBar/HeaderBar.vue'
|
|
@@ -29,19 +35,16 @@ export { default as LangBtn } from './LangBtn/LangBtn.vue'
|
|
|
29
35
|
export { default as Logo } from './Logo/Logo.vue'
|
|
30
36
|
export { default as LogoBrandSection } from './LogoBrandSection/LogoBrandSection.vue'
|
|
31
37
|
export { default as MaintenancePage } from './MaintenancePage/MaintenancePage.vue'
|
|
32
|
-
export { default as NotFoundPage } from './NotFoundPage/NotFoundPage.vue'
|
|
33
38
|
export { default as NirField } from './NirField/NirField.vue'
|
|
34
39
|
export * from './NirField/nirValidation'
|
|
40
|
+
export { default as NotFoundPage } from './NotFoundPage/NotFoundPage.vue'
|
|
35
41
|
export { default as NotificationBar } from './NotificationBar/NotificationBar.vue'
|
|
36
|
-
export { useNotificationService } from '../services/NotificationService'
|
|
37
42
|
export * from './NotificationBar/types'
|
|
38
43
|
export { default as PageContainer } from './PageContainer/PageContainer.vue'
|
|
39
44
|
export { default as PhoneField } from './PhoneField/PhoneField.vue'
|
|
40
45
|
export { default as SkipLink } from './SkipLink/SkipLink.vue'
|
|
41
46
|
export { default as SocialMediaLinks } from './SocialMediaLinks/SocialMediaLinks.vue'
|
|
42
47
|
export { default as SubHeader } from './SubHeader/SubHeader.vue'
|
|
48
|
+
export { default as SyAlert } from './SyAlert/SyAlert.vue'
|
|
43
49
|
export { default as UserMenuBtn } from './UserMenuBtn/UserMenuBtn.vue'
|
|
44
|
-
export { default as
|
|
45
|
-
export { default as CookiesSelection } from './CookiesSelection/CookiesSelection.vue'
|
|
46
|
-
export { default as CookiesInformation } from './CookiesSelection/CookiesInformation/CookiesInformation.vue'
|
|
47
|
-
export { default as CookiesTable } from './CookiesSelection/CookiesTable/CookiesTable.vue'
|
|
50
|
+
export { default as PasswordField } from './PasswordField/PasswordField.vue'
|
|
@@ -3,8 +3,9 @@ import { cnamContextualTokens } from './tokens/cnam/cnamContextual'
|
|
|
3
3
|
import { cnamColorsTokens } from './tokens/cnam/cnamColors'
|
|
4
4
|
import { cnamLightTheme } from './tokens/cnam/cnamLightTheme'
|
|
5
5
|
import { cnamDarkTheme } from './tokens/cnam/cnamDarkTheme'
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { paColorsTokens } from '@/designTokens/tokens/pa/paColors'
|
|
7
|
+
import { paLightTheme } from '@/designTokens/tokens/pa/paLightTheme'
|
|
8
|
+
import { paDarkTheme } from '@/designTokens/tokens/pa/paDarkTheme'
|
|
8
9
|
|
|
9
10
|
export {
|
|
10
11
|
cnamColorsTokens,
|
|
@@ -12,6 +13,7 @@ export {
|
|
|
12
13
|
cnamContextualTokens,
|
|
13
14
|
cnamLightTheme,
|
|
14
15
|
cnamDarkTheme,
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
paColorsTokens,
|
|
17
|
+
paLightTheme,
|
|
18
|
+
paDarkTheme,
|
|
17
19
|
}
|
|
@@ -11,6 +11,8 @@ export const cnamLightTheme = {
|
|
|
11
11
|
success: cnamColorsTokens.turquoise.darken60,
|
|
12
12
|
warning: cnamColorsTokens.yellow.darken60,
|
|
13
13
|
risquePro: cnamColorsTokens.brick.base,
|
|
14
|
+
light: cnamColorsTokens.grey.lighten60,
|
|
15
|
+
dark: cnamColorsTokens.grey.darken80,
|
|
14
16
|
onBackground: cnamSemanticTokens.colors.background.surface,
|
|
15
17
|
onSurfaceAlt: cnamSemanticTokens.colors.background.surfaceAlt,
|
|
16
18
|
onSurface: cnamSemanticTokens.colors.background.surface,
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
export const paColorsTokens = {
|
|
2
|
+
orange: {
|
|
3
|
+
darken80: '#2d100b',
|
|
4
|
+
darken60: '#5a2017',
|
|
5
|
+
darken40: '#862f22',
|
|
6
|
+
darken20: '#b33f2e',
|
|
7
|
+
base: '#e04f39',
|
|
8
|
+
lighten20: '#e67261',
|
|
9
|
+
lighten40: '#ec9588',
|
|
10
|
+
lighten60: '#f3b9b0',
|
|
11
|
+
lighten80: '#f9dcd7',
|
|
12
|
+
lighten90: '#fcedeb',
|
|
13
|
+
lighten97: '#fefaf9',
|
|
14
|
+
},
|
|
15
|
+
yellow: {
|
|
16
|
+
darken80: '#302407',
|
|
17
|
+
darken60: '#60480e',
|
|
18
|
+
darken40: '#906b15',
|
|
19
|
+
darken20: '#c08f1c',
|
|
20
|
+
base: '#f0b323',
|
|
21
|
+
lighten20: '#f3c24f',
|
|
22
|
+
lighten40: '#f6d17b',
|
|
23
|
+
lighten60: '#f9e1a7',
|
|
24
|
+
lighten80: '#fcf0d3',
|
|
25
|
+
lighten90: '#fdf7e9',
|
|
26
|
+
lighten97: '#fffdf8',
|
|
27
|
+
},
|
|
28
|
+
green: {
|
|
29
|
+
darken80: '#112717',
|
|
30
|
+
darken60: '#224e2d',
|
|
31
|
+
darken40: '#347444',
|
|
32
|
+
darken20: '#459b5a',
|
|
33
|
+
base: '#56c271',
|
|
34
|
+
lighten20: '#78ce8d',
|
|
35
|
+
lighten40: '#9adaaa',
|
|
36
|
+
lighten60: '#bbe7c6',
|
|
37
|
+
lighten80: '#ddf3e3',
|
|
38
|
+
lighten90: '#eef9f1',
|
|
39
|
+
lighten97: '#fafdfb',
|
|
40
|
+
},
|
|
41
|
+
turquoise: {
|
|
42
|
+
darken80: '#00221c',
|
|
43
|
+
darken60: '#004439',
|
|
44
|
+
darken40: '#006755',
|
|
45
|
+
darken20: '#008972',
|
|
46
|
+
base: '#00ab8e',
|
|
47
|
+
lighten20: '#33bca5',
|
|
48
|
+
lighten40: '#66cdbb',
|
|
49
|
+
lighten60: '#99ddd2',
|
|
50
|
+
lighten80: '#cceee8',
|
|
51
|
+
lighten90: '#e5f7f4',
|
|
52
|
+
lighten97: '#f7fcfc',
|
|
53
|
+
},
|
|
54
|
+
blue: {
|
|
55
|
+
darken80: '#020d1f',
|
|
56
|
+
darken60: '#051a3e',
|
|
57
|
+
darken40: '#07275c',
|
|
58
|
+
darken20: '#0a347b',
|
|
59
|
+
base: '#0c419a',
|
|
60
|
+
lighten20: '#3d67ae',
|
|
61
|
+
lighten40: '#6d8dc2',
|
|
62
|
+
lighten60: '#9eb3d7',
|
|
63
|
+
lighten80: '#ced9eb',
|
|
64
|
+
lighten90: '#e7ecf5',
|
|
65
|
+
lighten97: '#f8f9fc',
|
|
66
|
+
},
|
|
67
|
+
cyan: {
|
|
68
|
+
darken80: '#00212d',
|
|
69
|
+
darken60: '#004259',
|
|
70
|
+
darken40: '#006386',
|
|
71
|
+
darken20: '#0084b2',
|
|
72
|
+
base: '#00a5df',
|
|
73
|
+
lighten20: '#33b7e5',
|
|
74
|
+
lighten40: '#66c9ec',
|
|
75
|
+
lighten60: '#99dbf2',
|
|
76
|
+
lighten80: '#ccedf9',
|
|
77
|
+
lighten90: '#e5f6fc',
|
|
78
|
+
lighten97: '#f7fcfe',
|
|
79
|
+
},
|
|
80
|
+
frostedBlue: {
|
|
81
|
+
darken80: '#142327',
|
|
82
|
+
darken60: '#28464d',
|
|
83
|
+
darken40: '#3d6874',
|
|
84
|
+
darken20: '#518b9a',
|
|
85
|
+
base: '#65aec1',
|
|
86
|
+
lighten20: '#84becd',
|
|
87
|
+
lighten40: '#a3ceda',
|
|
88
|
+
lighten60: '#c1dfe6',
|
|
89
|
+
lighten80: '#e0eff3',
|
|
90
|
+
lighten90: '#f0f7f9',
|
|
91
|
+
lighten97: '#fafdfd',
|
|
92
|
+
},
|
|
93
|
+
parma: {
|
|
94
|
+
darken80: '#171c26',
|
|
95
|
+
darken60: '#2f384d',
|
|
96
|
+
darken40: '#465473',
|
|
97
|
+
darken20: '#5e709a',
|
|
98
|
+
base: '#758cc0',
|
|
99
|
+
lighten20: '#91a3cd',
|
|
100
|
+
lighten40: '#acbad9',
|
|
101
|
+
lighten60: '#c8d1e6',
|
|
102
|
+
lighten80: '#e3e8f2',
|
|
103
|
+
lighten90: '#f1f3f9',
|
|
104
|
+
lighten97: '#fbfcfd',
|
|
105
|
+
},
|
|
106
|
+
mauve: {
|
|
107
|
+
darken80: '#201224',
|
|
108
|
+
darken60: '#402449',
|
|
109
|
+
darken40: '#60376d',
|
|
110
|
+
darken20: '#804992',
|
|
111
|
+
base: '#a05bb6',
|
|
112
|
+
lighten20: '#b37cc5',
|
|
113
|
+
lighten40: '#c69dd3',
|
|
114
|
+
lighten60: '#d9bde2',
|
|
115
|
+
lighten80: '#ecdef0',
|
|
116
|
+
lighten90: '#f5eff8',
|
|
117
|
+
lighten97: '#fcfafd',
|
|
118
|
+
},
|
|
119
|
+
pink: {
|
|
120
|
+
darken80: '#2d051a',
|
|
121
|
+
darken60: '#5a0a34',
|
|
122
|
+
darken40: '#87104d',
|
|
123
|
+
darken20: '#b41567',
|
|
124
|
+
base: '#e11a81',
|
|
125
|
+
lighten20: '#e7489a',
|
|
126
|
+
lighten40: '#ed76b3',
|
|
127
|
+
lighten60: '#f3a3cd',
|
|
128
|
+
lighten80: '#f9d1e6',
|
|
129
|
+
lighten90: '#fce8f2',
|
|
130
|
+
lighten97: '#fef8fb',
|
|
131
|
+
},
|
|
132
|
+
brick: {
|
|
133
|
+
darken80: '#291112',
|
|
134
|
+
darken60: '#522224',
|
|
135
|
+
darken40: '#7b3237',
|
|
136
|
+
darken20: '#a44349',
|
|
137
|
+
base: '#cd545b',
|
|
138
|
+
lighten20: '#d7767c',
|
|
139
|
+
lighten40: '#e1989d',
|
|
140
|
+
lighten60: '#ebbbbd',
|
|
141
|
+
lighten80: '#f5ddde',
|
|
142
|
+
lighten90: '#faeeef',
|
|
143
|
+
lighten97: '#fdfafa',
|
|
144
|
+
},
|
|
145
|
+
grey: {
|
|
146
|
+
darken80: '#111212',
|
|
147
|
+
darken60: '#222324',
|
|
148
|
+
darken40: '#323535',
|
|
149
|
+
darken20: '#434647',
|
|
150
|
+
base: '#545859',
|
|
151
|
+
lighten20: '#76797a',
|
|
152
|
+
lighten40: '#989b9b',
|
|
153
|
+
lighten60: '#bbbcbd',
|
|
154
|
+
lighten80: '#dddede',
|
|
155
|
+
lighten90: '#eeeeee',
|
|
156
|
+
lighten97: '#fafafa',
|
|
157
|
+
},
|
|
158
|
+
white: {
|
|
159
|
+
20: 'rgba(255, 255, 255, 0.2000)',
|
|
160
|
+
38: 'rgba(255, 255, 255, 0.3800)',
|
|
161
|
+
40: 'rgba(255, 255, 255, 0.4000)',
|
|
162
|
+
70: 'rgba(255, 255, 255, 0.7000)',
|
|
163
|
+
8: 'rgba(255, 255, 255, 0.0800)',
|
|
164
|
+
0: 'rgba(255, 255, 255, 0.0000)',
|
|
165
|
+
base: '#ffffff',
|
|
166
|
+
},
|
|
167
|
+
transparentBlue: {
|
|
168
|
+
transparentBlue18: '#a6d4eb',
|
|
169
|
+
transparentBlue8: '#ebf0f7',
|
|
170
|
+
},
|
|
171
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const paContextualTokens = {
|
|
2
|
+
colors: {
|
|
3
|
+
background: '#ffffff',
|
|
4
|
+
border: '#dddddd',
|
|
5
|
+
text: '#333333',
|
|
6
|
+
icon: '#666666',
|
|
7
|
+
overlay: 'rgba(0, 0, 0, 0.5)',
|
|
8
|
+
interactive: '#007bff',
|
|
9
|
+
},
|
|
10
|
+
gap: {
|
|
11
|
+
0: '0',
|
|
12
|
+
1: '4px',
|
|
13
|
+
2: '8px',
|
|
14
|
+
3: '122px',
|
|
15
|
+
4: '16px',
|
|
16
|
+
5: '20px',
|
|
17
|
+
6: '24px',
|
|
18
|
+
7: '28px',
|
|
19
|
+
8: '32px',
|
|
20
|
+
9: '36px',
|
|
21
|
+
10: '40px',
|
|
22
|
+
11: '44px',
|
|
23
|
+
12: '48px',
|
|
24
|
+
13: '52px',
|
|
25
|
+
14: '56px',
|
|
26
|
+
15: '60px',
|
|
27
|
+
16: '64px',
|
|
28
|
+
},
|
|
29
|
+
iconSize: {
|
|
30
|
+
xsmall: '8px',
|
|
31
|
+
small: '16px',
|
|
32
|
+
default: '24px',
|
|
33
|
+
large: '32px',
|
|
34
|
+
},
|
|
35
|
+
radius: {
|
|
36
|
+
rounded0: '0',
|
|
37
|
+
rounded: '4px',
|
|
38
|
+
roundedLg: '8px',
|
|
39
|
+
roundedPill: '64px',
|
|
40
|
+
},
|
|
41
|
+
padding: {
|
|
42
|
+
0: '0',
|
|
43
|
+
2: '8px',
|
|
44
|
+
3: '12px',
|
|
45
|
+
4: '16px',
|
|
46
|
+
6: '24px',
|
|
47
|
+
8: '32px',
|
|
48
|
+
10: '40px',
|
|
49
|
+
14: '56px',
|
|
50
|
+
16: '64px',
|
|
51
|
+
},
|
|
52
|
+
fontSize: {
|
|
53
|
+
titres: '24px',
|
|
54
|
+
titresAlternatifs: '20px',
|
|
55
|
+
corpsDeTexte: '16px',
|
|
56
|
+
liensEtLibelles: '14px',
|
|
57
|
+
},
|
|
58
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { paColorsTokens } from './paColors'
|
|
2
|
+
import { paSemanticTokens } from '../pa/paSemantic'
|
|
3
|
+
|
|
4
|
+
export const paLightTheme = {
|
|
5
|
+
primary: '#0062ac',
|
|
6
|
+
secondary: '#ac1c81',
|
|
7
|
+
accent: '#6f42c1',
|
|
8
|
+
error: '#B6052A',
|
|
9
|
+
info: '#0062AC',
|
|
10
|
+
success: '#73A839',
|
|
11
|
+
warning: '#FD7E14',
|
|
12
|
+
blue: '#007bff',
|
|
13
|
+
blueBase: '#007bff',
|
|
14
|
+
indigo: '#6610f2',
|
|
15
|
+
indigoBase: '#6610f2',
|
|
16
|
+
purple: '#6f42c1',
|
|
17
|
+
purpleBase: '#6f42c1',
|
|
18
|
+
pink: '#e83e8c',
|
|
19
|
+
pinkBase: '#e83e8c',
|
|
20
|
+
red: '#dc3545',
|
|
21
|
+
redBase: '#dc3545',
|
|
22
|
+
orange: '#fd7e14',
|
|
23
|
+
orangeBase: '#fd7e14',
|
|
24
|
+
yellow: '#ffc107',
|
|
25
|
+
yellowBase: '#ffc107',
|
|
26
|
+
green: '#28a745',
|
|
27
|
+
greenBase: '#28a745',
|
|
28
|
+
teal: '#20c997',
|
|
29
|
+
tealBase: '#20c997',
|
|
30
|
+
cyan: '#17a2b8',
|
|
31
|
+
cyanBase: '#17a2b8',
|
|
32
|
+
gray: '#8a8b8b',
|
|
33
|
+
grayBase: '#8a8b8b',
|
|
34
|
+
grayDark: '#343434',
|
|
35
|
+
grayDarkBase: '#343434',
|
|
36
|
+
risquePro: paColorsTokens.brick.base,
|
|
37
|
+
light: '#f4f5f1',
|
|
38
|
+
dark: '#343434',
|
|
39
|
+
default: '#b7cbd6',
|
|
40
|
+
brand: '#4a3f59',
|
|
41
|
+
brandSecondary: '#ac1c81',
|
|
42
|
+
brandMuted: '#b7cbd6',
|
|
43
|
+
brandMutedLite: '#E7F3F9',
|
|
44
|
+
hilitePrimary: '#0062ac',
|
|
45
|
+
hiliteSecondary: '#e6bebf',
|
|
46
|
+
onBackground: paSemanticTokens.colors.background.surface,
|
|
47
|
+
onSurfaceAlt: paSemanticTokens.colors.background.surfaceAlt,
|
|
48
|
+
onSurface: paSemanticTokens.colors.background.surface,
|
|
49
|
+
onWarning: paSemanticTokens.colors.background.warning,
|
|
50
|
+
overlayFullpage: paSemanticTokens.colors.overlay.fullpage,
|
|
51
|
+
overlayOnDark: paSemanticTokens.colors.overlay.onDark,
|
|
52
|
+
overlayOnLight: paSemanticTokens.colors.overlay.onLight,
|
|
53
|
+
interactiveDefault: paSemanticTokens.colors.interactive.default,
|
|
54
|
+
interactiveHover: paSemanticTokens.colors.interactive.hover,
|
|
55
|
+
interactivePressed: paSemanticTokens.colors.interactive.pressed,
|
|
56
|
+
interactiveFocus: paSemanticTokens.colors.interactive.focus,
|
|
57
|
+
interactiveDisabled: paSemanticTokens.colors.interactive.disabled,
|
|
58
|
+
interactiveHoverOnSelected: paSemanticTokens.colors.interactive.hoverOnSelected,
|
|
59
|
+
backgroundMain: paSemanticTokens.colors.background.main,
|
|
60
|
+
backgroundSurface: paSemanticTokens.colors.background.surface,
|
|
61
|
+
backgroundSurfaceAlt: paSemanticTokens.colors.background.surfaceAlt,
|
|
62
|
+
backgroungMainAlt: paSemanticTokens.colors.background.mainAlt,
|
|
63
|
+
backgroungRaised: paSemanticTokens.colors.background.raised,
|
|
64
|
+
backgroundAccent: paSemanticTokens.colors.background.accent,
|
|
65
|
+
backgroungAccentContrasted: paSemanticTokens.colors.background.accentContrasted,
|
|
66
|
+
backgroundAccentAlt: paSemanticTokens.colors.background.accentAlt,
|
|
67
|
+
backgroundInfo: paSemanticTokens.colors.background.info,
|
|
68
|
+
backgroundInfoSubdued: paSemanticTokens.colors.background.infoSubdued,
|
|
69
|
+
backgroundInfoContrasted: paSemanticTokens.colors.background.infoContrasted,
|
|
70
|
+
backgroundSuccess: paSemanticTokens.colors.background.success,
|
|
71
|
+
backgroundSuccessSubdued: paSemanticTokens.colors.background.successSubdued,
|
|
72
|
+
backgroundSuccessContrasted: paSemanticTokens.colors.background.successContrasted,
|
|
73
|
+
backgroundWarning: paSemanticTokens.colors.background.warning,
|
|
74
|
+
backgroundWarningSubdued: paSemanticTokens.colors.background.warningSubdued,
|
|
75
|
+
backgroundWarningContrasted: paSemanticTokens.colors.background.warningContrasted,
|
|
76
|
+
backgroundError: paSemanticTokens.colors.background.error,
|
|
77
|
+
backgroundErrorSubdued: paSemanticTokens.colors.background.errorSubdued,
|
|
78
|
+
backgroundErrorContrasted: paSemanticTokens.colors.background.errorContrasted,
|
|
79
|
+
backgroundDisabled: paSemanticTokens.colors.background.disabled,
|
|
80
|
+
backgroundDisabledOnDark: paSemanticTokens.colors.background.disabledOnDark,
|
|
81
|
+
backgroundAssure: paSemanticTokens.colors.background.assure,
|
|
82
|
+
backgroundProfessionnel: paSemanticTokens.colors.background.professionnel,
|
|
83
|
+
backgroundEntreprise: paSemanticTokens.colors.background.entreprise,
|
|
84
|
+
borderDarker: paSemanticTokens.colors.border.darker,
|
|
85
|
+
borderBase: paSemanticTokens.colors.border.base,
|
|
86
|
+
borderSubdued: paSemanticTokens.colors.border.subdued,
|
|
87
|
+
borderAccent: paSemanticTokens.colors.border.accent,
|
|
88
|
+
borderAccentContrasted: paSemanticTokens.colors.border.accentContrasted,
|
|
89
|
+
borderAccentOnDark: paSemanticTokens.colors.border.accentOnDark,
|
|
90
|
+
borderInfo: paSemanticTokens.colors.border.info,
|
|
91
|
+
borderSuccess: paSemanticTokens.colors.border.success,
|
|
92
|
+
borderWarning: paSemanticTokens.colors.border.warning,
|
|
93
|
+
borderError: paSemanticTokens.colors.border.error,
|
|
94
|
+
borderOnDark: paSemanticTokens.colors.border.onDark,
|
|
95
|
+
borderDisabled: paSemanticTokens.colors.border.disabled,
|
|
96
|
+
borderDisabledOnDark: paSemanticTokens.colors.border.disabledOnDark,
|
|
97
|
+
textBase: paSemanticTokens.colors.text.base,
|
|
98
|
+
textAccent: paSemanticTokens.colors.text.accent,
|
|
99
|
+
textAccentContrasted: paSemanticTokens.colors.text.accentContrasted,
|
|
100
|
+
textSubdued: paSemanticTokens.colors.text.subdued,
|
|
101
|
+
textInfo: paSemanticTokens.colors.text.info,
|
|
102
|
+
textSuccess: paSemanticTokens.colors.text.success,
|
|
103
|
+
textWarning: paSemanticTokens.colors.text.warning,
|
|
104
|
+
textError: paSemanticTokens.colors.text.error,
|
|
105
|
+
textDisabled: paSemanticTokens.colors.text.disabled,
|
|
106
|
+
textOnDark: paSemanticTokens.colors.text.onDark,
|
|
107
|
+
textSubduedOnDark: paSemanticTokens.colors.text.subduedOnDark,
|
|
108
|
+
textDisabledOnDark: paSemanticTokens.colors.text.disabledOnDark,
|
|
109
|
+
iconBase: paSemanticTokens.colors.icon.base,
|
|
110
|
+
iconSubdued: paSemanticTokens.colors.icon.subdued,
|
|
111
|
+
iconSubduedOnDark: paSemanticTokens.colors.icon.subduedOnDark,
|
|
112
|
+
iconAccent: paSemanticTokens.colors.icon.accent,
|
|
113
|
+
iconAccentContrasted: paSemanticTokens.colors.icon.accentContrasted,
|
|
114
|
+
iconInfo: paSemanticTokens.colors.icon.info,
|
|
115
|
+
iconSuccess: paSemanticTokens.colors.icon.success,
|
|
116
|
+
iconWarning: paSemanticTokens.colors.icon.warning,
|
|
117
|
+
iconError: paSemanticTokens.colors.icon.error,
|
|
118
|
+
iconOnDark: paSemanticTokens.colors.icon.onDark,
|
|
119
|
+
iconDisabled: paSemanticTokens.colors.icon.disabled,
|
|
120
|
+
iconDisabledOnDark: paSemanticTokens.colors.icon.disabledOnDark,
|
|
121
|
+
transparentBlue18: paColorsTokens.blue.base,
|
|
122
|
+
transparentBlue8: paColorsTokens.transparentBlue.transparentBlue8,
|
|
123
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export const paSemanticTokens = {
|
|
2
|
+
colors: {
|
|
3
|
+
background: {
|
|
4
|
+
main: '#e7ecf5',
|
|
5
|
+
surface: '#ffffff',
|
|
6
|
+
mainAlt: '#ffffff',
|
|
7
|
+
surfaceAlt: '#e7ecf5',
|
|
8
|
+
raised: '#f8f9fc',
|
|
9
|
+
accent: '#0c419a',
|
|
10
|
+
accentContrasted: '#07275c',
|
|
11
|
+
accentAlt: '#111212',
|
|
12
|
+
info: '#ced9eb',
|
|
13
|
+
infoSubdued: '#e7ecf5',
|
|
14
|
+
infoContrasted: '#0c419a',
|
|
15
|
+
success: '#cceee8',
|
|
16
|
+
successSubdued: '#e5f7f4',
|
|
17
|
+
successContrasted: '#56c271',
|
|
18
|
+
warning: '#fcf0d3',
|
|
19
|
+
warningSubdued: '#fdf7e9',
|
|
20
|
+
warningContrasted: '#f0b323',
|
|
21
|
+
error: '#f9dcd7',
|
|
22
|
+
errorSubdued: '#fcedeb',
|
|
23
|
+
errorContrasted: '#b33f2e',
|
|
24
|
+
disabled: '#dddede',
|
|
25
|
+
disabledOnDark: 'rgba(255, 255, 255, 0.0800)',
|
|
26
|
+
assure: '#ed76b3',
|
|
27
|
+
professionnel: '#66c9ec',
|
|
28
|
+
entreprise: '#f0b323',
|
|
29
|
+
},
|
|
30
|
+
border: {
|
|
31
|
+
darker: '#222324',
|
|
32
|
+
base: '#989b9b',
|
|
33
|
+
subdued: '#dddede',
|
|
34
|
+
accent: '#0c419a',
|
|
35
|
+
accentContrasted: '#07275c',
|
|
36
|
+
accentOnDark: '#ffffff',
|
|
37
|
+
info: '#0c419a',
|
|
38
|
+
success: '#224e2d',
|
|
39
|
+
warning: '#60480e',
|
|
40
|
+
error: '#b33f2e',
|
|
41
|
+
onDark: 'rgba(255, 255, 255, 0.7)',
|
|
42
|
+
disabled: '#dddede',
|
|
43
|
+
disabledOnDark: 'rgba(255, 255, 255, 0.4)',
|
|
44
|
+
},
|
|
45
|
+
text: {
|
|
46
|
+
base: '#222324',
|
|
47
|
+
accent: '#0c419a',
|
|
48
|
+
accentContrasted: '#07275c',
|
|
49
|
+
subdued: '#545859',
|
|
50
|
+
info: '#0c419a',
|
|
51
|
+
success: '#224e2d',
|
|
52
|
+
warning: '#60480e',
|
|
53
|
+
error: '#b33f2e',
|
|
54
|
+
disabled: '#989b9b',
|
|
55
|
+
onDark: '#ffffff',
|
|
56
|
+
subduedOnDark: 'rgba(255, 255, 255, 0.7)',
|
|
57
|
+
disabledOnDark: 'rgba(255, 255, 255, 0.4)',
|
|
58
|
+
},
|
|
59
|
+
icon: {
|
|
60
|
+
base: '#222324',
|
|
61
|
+
subdued: '#545859',
|
|
62
|
+
subduedOnDark: 'rgba(255, 255, 255, 0.7)',
|
|
63
|
+
accent: '#0c419a',
|
|
64
|
+
accentContrasted: '#07275c',
|
|
65
|
+
info: '#0c419a',
|
|
66
|
+
success: '#224e2d',
|
|
67
|
+
warning: '#60480e',
|
|
68
|
+
error: '#b33f2e',
|
|
69
|
+
onDark: '#ffffff',
|
|
70
|
+
disabled: '#989b9b',
|
|
71
|
+
disabledOnDark: 'rgba(255, 255, 255, 0.4)',
|
|
72
|
+
},
|
|
73
|
+
overlay: {
|
|
74
|
+
fullpage: '#989b9b',
|
|
75
|
+
onDark: '#ffffff',
|
|
76
|
+
onLight: '#0c419a',
|
|
77
|
+
},
|
|
78
|
+
interactive: {
|
|
79
|
+
default: 'rgba(255, 255, 255, 0.0000)',
|
|
80
|
+
hover: '#e7ecf5',
|
|
81
|
+
pressed: '#ced9eb',
|
|
82
|
+
focus: '#e7ecf5',
|
|
83
|
+
disabled: 'rgba(255, 255, 255, 0.0000)',
|
|
84
|
+
hoverOnSelected: '#ced9eb',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
}
|