@lab-anssi/ui-kit 1.39.0 → 1.41.0
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/assets/dsfr-variables.css +47 -12
- package/dist/assets/lab-anssi-theme.mac.css +69 -0
- package/dist/assets/lab-anssi-theme.msc.css +109 -0
- package/dist/assets/lab-anssi-theme.mss.css +108 -0
- package/dist/assets/lab-anssi-theme.nis2.css +69 -0
- package/dist/webcomponents/lab-anssi-ui-kit.iife.js +10 -10
- package/dist/webcomponents/lab-anssi-ui-kit.jsx.d.ts +20 -0
- package/package.json +33 -25
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
declare namespace JSX {
|
|
2
2
|
interface IntrinsicElements {
|
|
3
|
+
"dsfr-accordion": {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
content: string;
|
|
7
|
+
"is-expanded"?: string;
|
|
8
|
+
"title-markup-level"?: string;
|
|
9
|
+
};
|
|
3
10
|
"dsfr-alert": {
|
|
4
11
|
"button-close-label"?: string;
|
|
5
12
|
"has-title"?: string;
|
|
@@ -301,6 +308,19 @@ declare namespace JSX {
|
|
|
301
308
|
"prev-and-next-has-lg-label"?: string;
|
|
302
309
|
"current-page-index"?: string;
|
|
303
310
|
};
|
|
311
|
+
"dsfr-quote": {
|
|
312
|
+
text: string;
|
|
313
|
+
size?: string;
|
|
314
|
+
"has-author"?: string;
|
|
315
|
+
author?: string;
|
|
316
|
+
"has-details"?: string;
|
|
317
|
+
sources?: string;
|
|
318
|
+
"has-image"?: string;
|
|
319
|
+
src?: string;
|
|
320
|
+
alt?: string;
|
|
321
|
+
accent?: string;
|
|
322
|
+
"source-url"?: string;
|
|
323
|
+
};
|
|
304
324
|
"dsfr-radio": {
|
|
305
325
|
id: string;
|
|
306
326
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lab-anssi/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/betagouv/lab-anssi-ui-kit.git"
|
|
@@ -16,52 +16,59 @@
|
|
|
16
16
|
"!dist/**/*.spec.*"
|
|
17
17
|
],
|
|
18
18
|
"type": "module",
|
|
19
|
+
"exports": {
|
|
20
|
+
"./dist/webcomponents": {
|
|
21
|
+
"types": "./dist/webcomponents/lab-anssi-ui-kit.jsx.d.ts",
|
|
22
|
+
"import": "./dist/webcomponents/lab-anssi-ui-kit.iife.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
19
25
|
"peerDependencies": {
|
|
20
26
|
"svelte": "~5.38.8"
|
|
21
27
|
},
|
|
22
28
|
"devDependencies": {
|
|
23
|
-
"@chromatic-com/storybook": "~
|
|
29
|
+
"@chromatic-com/storybook": "~5.0.0",
|
|
24
30
|
"@eslint/compat": "~1.4.1",
|
|
25
|
-
"@eslint/js": "~9.39.
|
|
31
|
+
"@eslint/js": "~9.39.2",
|
|
26
32
|
"@fullhuman/postcss-purgecss": "~7.0.2",
|
|
27
|
-
"@gouvfr/dsfr": "1.14.
|
|
28
|
-
"@storybook/addon-a11y": "~
|
|
29
|
-
"@storybook/addon-docs": "~
|
|
33
|
+
"@gouvfr/dsfr": "1.14.3",
|
|
34
|
+
"@storybook/addon-a11y": "~10.1.11",
|
|
35
|
+
"@storybook/addon-docs": "~10.1.11",
|
|
30
36
|
"@storybook/addon-svelte-csf": "~5.0.10",
|
|
31
|
-
"@storybook/addon-themes": "~
|
|
32
|
-
"@storybook/addon-vitest": "~
|
|
33
|
-
"@storybook/svelte-vite": "~
|
|
34
|
-
"@sveltejs/vite-plugin-svelte": "~6.2.
|
|
37
|
+
"@storybook/addon-themes": "~10.1.11",
|
|
38
|
+
"@storybook/addon-vitest": "~10.1.11",
|
|
39
|
+
"@storybook/svelte-vite": "~10.1.11",
|
|
40
|
+
"@sveltejs/vite-plugin-svelte": "~6.2.3",
|
|
35
41
|
"@testing-library/jest-dom": "~6.9.1",
|
|
36
|
-
"@testing-library/svelte": "~5.
|
|
42
|
+
"@testing-library/svelte": "~5.3.1",
|
|
37
43
|
"@types/node": "~24.10.1",
|
|
38
44
|
"@vitest/browser": "3.2.4",
|
|
39
45
|
"@vitest/coverage-v8": "3.2.4",
|
|
40
46
|
"concurrently": "~9.2.1",
|
|
41
47
|
"cssnano": "~7.1.2",
|
|
42
48
|
"dotenv": "~17.2.3",
|
|
43
|
-
"eslint": "~9.39.
|
|
49
|
+
"eslint": "~9.39.2",
|
|
44
50
|
"eslint-config-prettier": "~10.1.8",
|
|
45
|
-
"eslint-plugin-storybook": "~
|
|
46
|
-
"eslint-plugin-svelte": "~3.13.
|
|
51
|
+
"eslint-plugin-storybook": "~10.1.11",
|
|
52
|
+
"eslint-plugin-svelte": "~3.13.1",
|
|
47
53
|
"globals": "~16.5.0",
|
|
48
54
|
"http-server": "~14.1.1",
|
|
49
55
|
"husky": "~9.1.7",
|
|
50
|
-
"lint-staged": "~16.2.
|
|
51
|
-
"playwright": "~1.
|
|
56
|
+
"lint-staged": "~16.2.7",
|
|
57
|
+
"playwright": "~1.57.0",
|
|
52
58
|
"postcss": "~8.5.6",
|
|
53
59
|
"postcss-discard-empty": "~7.0.1",
|
|
54
60
|
"postcss-root-to-host": "~0.0.0",
|
|
55
|
-
"prettier": "~3.
|
|
56
|
-
"prettier-plugin-svelte": "~3.4.
|
|
57
|
-
"publint": "~0.3.
|
|
58
|
-
"sass": "~1.
|
|
59
|
-
"storybook": "~
|
|
60
|
-
"
|
|
61
|
-
"svelte
|
|
61
|
+
"prettier": "~3.7.4",
|
|
62
|
+
"prettier-plugin-svelte": "~3.4.1",
|
|
63
|
+
"publint": "~0.3.16",
|
|
64
|
+
"sass": "~1.97.2",
|
|
65
|
+
"storybook": "~10.1.11",
|
|
66
|
+
"style-dictionary": "^5.1.3",
|
|
67
|
+
"svelte": "~5.46.1",
|
|
68
|
+
"svelte-check": "~4.3.5",
|
|
62
69
|
"typescript": "~5.9.3",
|
|
63
|
-
"typescript-eslint": "~8.
|
|
64
|
-
"vite": "~7.
|
|
70
|
+
"typescript-eslint": "~8.52.0",
|
|
71
|
+
"vite": "~7.3.1",
|
|
65
72
|
"vitest": "~3.2.4",
|
|
66
73
|
"wait-on": "~9.0.3"
|
|
67
74
|
},
|
|
@@ -76,6 +83,7 @@
|
|
|
76
83
|
},
|
|
77
84
|
"scripts": {
|
|
78
85
|
"build": "vite build && npm run prepack",
|
|
86
|
+
"build:tokens": "node src/tokens/build.config.ts && pnpm prettier -w .storybook/lab-anssi-themes.css",
|
|
79
87
|
"build:webcomponents": "vite -c vite.webcomponents.config.ts build",
|
|
80
88
|
"build:styles:dsfr": "sass src/lib/styles/dsfr-variables.scss dist/assets/dsfr-variables.css -I node_modules -I node_modules/@gouvfr/dsfr --no-source-map",
|
|
81
89
|
"test": "vitest run",
|