@gouvfr-lasuite/ui-kit 0.0.1
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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/cunningham.ts +306 -0
- package/dist/index.cjs +101 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +567 -0
- package/dist/index.js +15807 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +97 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 La Suite numérique
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# design-system
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
themes: {
|
|
3
|
+
default: {
|
|
4
|
+
theme: {
|
|
5
|
+
colors: {
|
|
6
|
+
"primary-text": "#000091",
|
|
7
|
+
"primary-050": "#F5F5FE",
|
|
8
|
+
"primary-100": "#ECECFE",
|
|
9
|
+
"primary-150": "#F4F4FD",
|
|
10
|
+
"primary-200": "#E3E3FD",
|
|
11
|
+
"primary-300": "#CACAFB",
|
|
12
|
+
"primary-400": "#8585F6",
|
|
13
|
+
"primary-500": "#6A6AF4",
|
|
14
|
+
"primary-600": "#313178",
|
|
15
|
+
"primary-700": "#272747",
|
|
16
|
+
"primary-800": "#000091",
|
|
17
|
+
"primary-900": "#21213F",
|
|
18
|
+
"secondary-text": "#fff",
|
|
19
|
+
"secondary-100": "#fee9ea",
|
|
20
|
+
"secondary-200": "#fedfdf",
|
|
21
|
+
"secondary-300": "#fdbfbf",
|
|
22
|
+
"secondary-400": "#e1020f",
|
|
23
|
+
"secondary-500": "#c91a1f",
|
|
24
|
+
"secondary-600": "#5e2b2b",
|
|
25
|
+
"secondary-700": "#3b2424",
|
|
26
|
+
"secondary-800": "#341f1f",
|
|
27
|
+
"secondary-900": "#2b1919",
|
|
28
|
+
"greyscale-text": "#303C4B",
|
|
29
|
+
"greyscale-000": "#fff",
|
|
30
|
+
"greyscale-050": "#F6F6F6",
|
|
31
|
+
"greyscale-100": "#eee",
|
|
32
|
+
"greyscale-200": "#E5E5E5",
|
|
33
|
+
"greyscale-250": "#ddd",
|
|
34
|
+
"greyscale-300": "#CECECE",
|
|
35
|
+
"greyscale-350": "#ddd",
|
|
36
|
+
"greyscale-400": "#929292",
|
|
37
|
+
"greyscale-500": "#7C7C7C",
|
|
38
|
+
"greyscale-600": "#666666",
|
|
39
|
+
"greyscale-700": "#3A3A3A",
|
|
40
|
+
"greyscale-750": "#353535",
|
|
41
|
+
"greyscale-800": "#2A2A2A",
|
|
42
|
+
"greyscale-900": "#242424",
|
|
43
|
+
"greyscale-950": "#1E1E1E",
|
|
44
|
+
"greyscale-1000": "#161616",
|
|
45
|
+
"success-text": "#1f8d49",
|
|
46
|
+
"success-100": "#dffee6",
|
|
47
|
+
"success-200": "#b8fec9",
|
|
48
|
+
"success-300": "#88fdaa",
|
|
49
|
+
"success-400": "#3bea7e",
|
|
50
|
+
"success-500": "#1f8d49",
|
|
51
|
+
"success-600": "#18753c",
|
|
52
|
+
"success-700": "#204129",
|
|
53
|
+
"success-800": "#1e2e22",
|
|
54
|
+
"success-900": "#19281d",
|
|
55
|
+
"info-text": "#0078f3",
|
|
56
|
+
"info-100": "#E8EDFF",
|
|
57
|
+
"info-200": "#DDE5FF",
|
|
58
|
+
"info-300": "#BCCDFF",
|
|
59
|
+
"info-400": "#518FFF",
|
|
60
|
+
"info-500": "#0078F3",
|
|
61
|
+
"info-600": "#0063CB",
|
|
62
|
+
"info-700": "#273961",
|
|
63
|
+
"info-800": "#222A3F",
|
|
64
|
+
"info-900": "#1D2437",
|
|
65
|
+
"warning-text": "#d64d00",
|
|
66
|
+
"warning-100": "#fff4f3",
|
|
67
|
+
"warning-200": "#ffe9e6",
|
|
68
|
+
"warning-300": "#ffded9",
|
|
69
|
+
"warning-400": "#ffbeb4",
|
|
70
|
+
"warning-500": "#d64d00",
|
|
71
|
+
"warning-600": "#b34000",
|
|
72
|
+
"warning-700": "#5e2c21",
|
|
73
|
+
"warning-800": "#3e241e",
|
|
74
|
+
"warning-900": "#361e19",
|
|
75
|
+
"danger-text": "#FFF",
|
|
76
|
+
"danger-100": "#FFE9E9",
|
|
77
|
+
"danger-200": "#FFDDDD",
|
|
78
|
+
"danger-300": "#FFBDBD",
|
|
79
|
+
"danger-400": "#FF5655",
|
|
80
|
+
"danger-500": "#F60700",
|
|
81
|
+
"danger-600": "#CE0500",
|
|
82
|
+
"danger-700": "#642626",
|
|
83
|
+
"danger-800": "#412121",
|
|
84
|
+
"danger-900": "#391C1C",
|
|
85
|
+
},
|
|
86
|
+
font: {
|
|
87
|
+
sizes: {
|
|
88
|
+
xs: "0.75rem",
|
|
89
|
+
sm: "0.875rem",
|
|
90
|
+
md: "1rem",
|
|
91
|
+
lg: "1.125rem",
|
|
92
|
+
ml: "0.938rem",
|
|
93
|
+
xl: "1.25rem",
|
|
94
|
+
t: "0.6875rem",
|
|
95
|
+
s: "0.75rem",
|
|
96
|
+
h1: "2rem",
|
|
97
|
+
h2: "1.75rem",
|
|
98
|
+
h3: "1.5rem",
|
|
99
|
+
h4: "1.375rem",
|
|
100
|
+
h5: "1.25rem",
|
|
101
|
+
h6: "1.125rem",
|
|
102
|
+
"xl-alt": "5rem",
|
|
103
|
+
"lg-alt": "4.5rem",
|
|
104
|
+
"md-alt": "4rem",
|
|
105
|
+
"sm-alt": "3.5rem",
|
|
106
|
+
"xs-alt": "3rem",
|
|
107
|
+
},
|
|
108
|
+
weights: {
|
|
109
|
+
thin: 100,
|
|
110
|
+
extrabold: 800,
|
|
111
|
+
black: 900,
|
|
112
|
+
},
|
|
113
|
+
families: {
|
|
114
|
+
accent: "Marianne",
|
|
115
|
+
base: "Marianne",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
logo: {
|
|
119
|
+
src: "/assets/logo-gouv.svg",
|
|
120
|
+
widthHeader: "110px",
|
|
121
|
+
widthFooter: "220px",
|
|
122
|
+
alt: "Gouvernement Logo",
|
|
123
|
+
},
|
|
124
|
+
spacings: {
|
|
125
|
+
"0": "0",
|
|
126
|
+
none: "0",
|
|
127
|
+
auto: "auto",
|
|
128
|
+
bx: "2.2rem",
|
|
129
|
+
full: "100%",
|
|
130
|
+
"4xs": "0.125rem",
|
|
131
|
+
"3xs": "0.25rem",
|
|
132
|
+
"2xs": "0.375rem",
|
|
133
|
+
xs: "0.5rem",
|
|
134
|
+
sm: "0.75rem",
|
|
135
|
+
base: "1rem",
|
|
136
|
+
md: "1.5rem",
|
|
137
|
+
lg: "2rem",
|
|
138
|
+
xl: "2.5rem",
|
|
139
|
+
xxl: "3rem",
|
|
140
|
+
xxxl: "3.5rem",
|
|
141
|
+
"4xl": "4rem",
|
|
142
|
+
"5xl": "4.5rem",
|
|
143
|
+
"6xl": "6rem",
|
|
144
|
+
"7xl": "7.5rem",
|
|
145
|
+
},
|
|
146
|
+
breakpoints: {
|
|
147
|
+
xxs: "320px",
|
|
148
|
+
xs: "480px",
|
|
149
|
+
mobile: "768px",
|
|
150
|
+
tablet: "1024px",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
components: {
|
|
154
|
+
modal: {
|
|
155
|
+
"width-small": "342px",
|
|
156
|
+
},
|
|
157
|
+
button: {
|
|
158
|
+
"medium-height": "40px",
|
|
159
|
+
"medium-text-height": "40px",
|
|
160
|
+
"border-radius": "4px",
|
|
161
|
+
"small-height": "26px",
|
|
162
|
+
primary: {
|
|
163
|
+
"background--color": "var(--c--theme--colors--primary-text)",
|
|
164
|
+
"background--color-hover": "#1212ff",
|
|
165
|
+
"background--color-active": "#2323ff",
|
|
166
|
+
"background--color-disabled":
|
|
167
|
+
"var(--c--theme--colors--greyscale-100)",
|
|
168
|
+
color: "#fff",
|
|
169
|
+
"color-hover": "#fff",
|
|
170
|
+
"color-active": "#fff",
|
|
171
|
+
"color-focus-visible": "#fff",
|
|
172
|
+
disabled: "var(--c--theme--colors--greyscale-500)",
|
|
173
|
+
},
|
|
174
|
+
"primary-text": {
|
|
175
|
+
"background--color": "var(--c--theme--colors--primary-text)",
|
|
176
|
+
"background--color-hover": "var(--c--theme--colors--greyscale-100)",
|
|
177
|
+
"background--color-active": "var(--c--theme--colors--primary-100)",
|
|
178
|
+
"background--color-focus-visible": "#fff",
|
|
179
|
+
"background--color-disabled":
|
|
180
|
+
"var(--c--theme--colors--greyscale-000)",
|
|
181
|
+
color: "var(--c--theme--colors--primary-800)",
|
|
182
|
+
"color-hover": "var(--c--theme--colors--primary-800)",
|
|
183
|
+
disabled: "var(--c--theme--colors--greyscale-400)",
|
|
184
|
+
},
|
|
185
|
+
secondary: {
|
|
186
|
+
"background--color-hover": "#F6F6F6",
|
|
187
|
+
"background--color-active": "#EDEDED",
|
|
188
|
+
"background--color-focus-visible":
|
|
189
|
+
"var(--c--theme--colors--greyscale-000)",
|
|
190
|
+
"background--disabled": "var(--c--theme--colors--greyscale-000)",
|
|
191
|
+
color: "var(--c--theme--colors--primary-800)",
|
|
192
|
+
"border--color": "var(--c--theme--colors--greyscale-300)",
|
|
193
|
+
"border--color-hover": "var(--c--theme--colors--greyscale-300)",
|
|
194
|
+
"border--color-disabled": "var(--c--theme--colors--greyscale-300)",
|
|
195
|
+
disabled: "var(--c--theme--colors--greyscale-400)",
|
|
196
|
+
},
|
|
197
|
+
tertiary: {
|
|
198
|
+
"background--color": "var(--c--theme--colors--primary-100)",
|
|
199
|
+
"background--color-focus-visible":
|
|
200
|
+
"var(--c--theme--colors--primary-100)",
|
|
201
|
+
"background--color-hover": "var(--c--theme--colors--primary-300)",
|
|
202
|
+
"background--color-active": "var(--c--theme--colors--primary-300)",
|
|
203
|
+
"background--disabled": "var(--c--theme--colors--primary-050)",
|
|
204
|
+
color: "var(--c--theme--colors--primary-800)",
|
|
205
|
+
disabled: "var(--c--theme--colors--primary-300)",
|
|
206
|
+
},
|
|
207
|
+
"tertiary-text": {
|
|
208
|
+
"background--color-hover": "var(--c--theme--colors--greyscale-100)",
|
|
209
|
+
"color-hover": "var(--c--theme--colors--primary-text)",
|
|
210
|
+
color: "var(--c--theme--colors--primary-600)",
|
|
211
|
+
},
|
|
212
|
+
danger: {
|
|
213
|
+
"color-hover": "white",
|
|
214
|
+
"background--color": "var(--c--theme--colors--danger-600)",
|
|
215
|
+
"background--color-hover": "#FF2725",
|
|
216
|
+
"background--color-focus-visible":
|
|
217
|
+
"var(--c--theme--colors--danger-600)",
|
|
218
|
+
"background--color-disabled":
|
|
219
|
+
"var(--c--theme--colors--greyscale-100)",
|
|
220
|
+
"color-disabled": "var(--c--theme--colors--greyscale-400)",
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
datagrid: {
|
|
224
|
+
"header--color": "ref(theme.colors.greyscale-600)",
|
|
225
|
+
"header--size": "12px",
|
|
226
|
+
"header--weight": "500",
|
|
227
|
+
"body--background-color-hover": "ref(theme.colors.greyscale-100)",
|
|
228
|
+
},
|
|
229
|
+
"forms-checkbox": {
|
|
230
|
+
"border-radius": "4px",
|
|
231
|
+
"border-color": "var(--c--theme--colors--primary-800)",
|
|
232
|
+
"background-color--hover": "var(--c--theme--colors--greyscale-100)",
|
|
233
|
+
"border--color-disabled": "var(--c--theme--colors--greyscale-200)",
|
|
234
|
+
"border--color": "var(--c--theme--colors--primary-800)",
|
|
235
|
+
"background--disabled": "var(--c--theme--colors--greyscale-200)",
|
|
236
|
+
"background--enable": "var(--c--theme--colors--primary-800)",
|
|
237
|
+
"check--disabled": "var(--c--theme--colors--greyscale-300)",
|
|
238
|
+
"check--enable": "var(--c--theme--colors--greyscale-000)",
|
|
239
|
+
color: "var(--c--theme--colors--primary-text)",
|
|
240
|
+
"label--color": "var(--c--theme--colors--greyscale-1000)",
|
|
241
|
+
"label--size": "var(--c--theme--font--sizes--sm)",
|
|
242
|
+
"label--weight": "500",
|
|
243
|
+
"text--color": "var(--c--theme--colors--greyscale-600)",
|
|
244
|
+
"text--size": "var(--c--theme--font--sizes--s)",
|
|
245
|
+
"text--weight": "400",
|
|
246
|
+
"text--color-disabled": "var(--c--theme--colors--greyscale-300)",
|
|
247
|
+
},
|
|
248
|
+
"forms-labelledbox": {
|
|
249
|
+
"label-color--small": "ref(theme.colors.greyscale-950)",
|
|
250
|
+
"label-color--small--disabled": "ref(theme.colors.greyscale-300)",
|
|
251
|
+
"label-color--big": "ref(theme.colors.greyscale-950)",
|
|
252
|
+
"label-color--big--disabled": "ref(theme.colors.greyscale-300)",
|
|
253
|
+
},
|
|
254
|
+
"forms-radio": {
|
|
255
|
+
"border-color": "var(--c--theme--colors--primary-800)",
|
|
256
|
+
"background-color": "var(--c--theme--colors--greyscale-000)",
|
|
257
|
+
"accent-color": "var(--c--theme--colors--primary-800)",
|
|
258
|
+
"accent-color-disabled": "var(--c--theme--colors--greyscale-300)",
|
|
259
|
+
},
|
|
260
|
+
"forms-switch": {
|
|
261
|
+
"border--color-disabled": "var(--c--theme--colors--greyscale-300)",
|
|
262
|
+
"border--color": "var(--c--theme--colors--primary-800)",
|
|
263
|
+
"handle-background-color": "white",
|
|
264
|
+
"handle-background-color--disabled":
|
|
265
|
+
"var(--c--theme--colors--greyscale-000)",
|
|
266
|
+
"rail-background-color--disabled":
|
|
267
|
+
"var(--c--theme--colors--greyscale-000)",
|
|
268
|
+
"accent-color": "var(--c--theme--colors--primary-800)",
|
|
269
|
+
},
|
|
270
|
+
"forms-textarea": {
|
|
271
|
+
"label-color--focus": "ref(theme.colors.greyscale-1000)",
|
|
272
|
+
"border-radius": "4px",
|
|
273
|
+
"border-color": "ref(theme.colors.greyscale-400)",
|
|
274
|
+
"box-shadow--color--hover": "ref(theme.colors.greyscale-400)",
|
|
275
|
+
"box-shadow--color--focus": "ref(theme.colors.primary-800)",
|
|
276
|
+
"value-color": "ref(theme.colors.greyscale-950)",
|
|
277
|
+
"value-color--disabled": "ref(theme.colors.greyscale-300)",
|
|
278
|
+
"font-size": "14px",
|
|
279
|
+
},
|
|
280
|
+
"forms-input": {
|
|
281
|
+
"label-color--focus": "ref(theme.colors.greyscale-1000)",
|
|
282
|
+
"border-radius": "4px",
|
|
283
|
+
"border-color": "ref(theme.colors.greyscale-400)",
|
|
284
|
+
"box-shadow--color--hover": "ref(theme.colors.greyscale-400)",
|
|
285
|
+
"box-shadow--color--focus": "ref(theme.colors.primary-800)",
|
|
286
|
+
"value-color": "ref(theme.colors.greyscale-950)",
|
|
287
|
+
"value-color--disabled": "ref(theme.colors.greyscale-300)",
|
|
288
|
+
"font-size": "14px",
|
|
289
|
+
},
|
|
290
|
+
"forms-select": {
|
|
291
|
+
"label-color--focus": "ref(theme.colors.greyscale-1000)",
|
|
292
|
+
"item-font-size": "14px",
|
|
293
|
+
"border-radius": "4px",
|
|
294
|
+
"border-radius-hover": "4px",
|
|
295
|
+
"border-color": "ref(theme.colors.greyscale-400)",
|
|
296
|
+
"box-shadow--color--hover": "ref(theme.colors.greyscale-400)",
|
|
297
|
+
"box-shadow--color--focus": "ref(theme.colors.primary-800)",
|
|
298
|
+
"value-color": "ref(theme.colors.greyscale-950)",
|
|
299
|
+
"font-size": "14px",
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export default config;
|