@20minutes/hela 2.16.10 → 2.17.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.
Files changed (28) hide show
  1. package/dist/index.es.js +1062 -869
  2. package/dist/index.umd.cjs +1 -0
  3. package/dist/js/scripts.es.js +7 -4
  4. package/dist/js/{scripts.umd.js → scripts.umd.cjs} +1 -1
  5. package/dist/scss/abstracts/variables/_token-variables.scss +69 -69
  6. package/dist/scss/abstracts/variables/_variables.scss +45 -46
  7. package/dist/src/components/atoms/InlineSeparator/InlineSeparator.stories.d.ts +1 -1
  8. package/dist/src/components/atoms/Link/Link.d.ts +5 -3
  9. package/dist/src/components/atoms/Link/Link.stories.d.ts +3 -1
  10. package/dist/src/components/atoms/ScrollToTopButton/ScrollToTopButton.stories.d.ts +112 -112
  11. package/dist/src/components/atoms/SkipLink/SkipLink.stories.d.ts +1 -1
  12. package/dist/src/components/molecules/DiscoverList/DiscoverList.stories.d.ts +104 -104
  13. package/dist/src/components/molecules/Elections/SearchBanner/SearchBanner.stories.d.ts +69 -69
  14. package/dist/src/components/molecules/VerticalTimeline/VerticalTimeline.stories.d.ts +105 -105
  15. package/dist/src/components/organisms/Footer/Footer.stories.d.ts +2 -2
  16. package/dist/src/constants/cssProperties/typography.d.ts +5 -4
  17. package/dist/src/constants/tokenNameList.d.ts +5 -5
  18. package/dist/src/constants/tokenVariables.d.ts +364 -132
  19. package/dist/src/helpers/forwardRef.d.ts +2 -2
  20. package/dist/src/helpers/imgHelper.d.ts +1 -1
  21. package/dist/src/helpers/storybookHelper.d.ts +3 -3
  22. package/dist/src/helpers/systemPropsHelper/classNameWithModifier.d.ts +2 -2
  23. package/dist/src/helpers/systemPropsHelper/classNamesWithModifiers.d.ts +3 -3
  24. package/dist/src/helpers/systemPropsHelper/typographySystemClassName.d.ts +1 -1
  25. package/dist/src/types/ComponentWithAs.d.ts +3 -2
  26. package/dist/style.css +1 -1
  27. package/package.json +38 -40
  28. package/dist/index.umd.js +0 -1
package/package.json CHANGED
@@ -1,23 +1,25 @@
1
1
  {
2
2
  "name": "@20minutes/hela",
3
- "version": "2.16.10",
3
+ "version": "2.17.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/20minutes/hela.git"
7
7
  },
8
8
  "license": "MIT",
9
9
  "author": "20 Minutes",
10
+ "type": "module",
10
11
  "storybook": {
11
12
  "url": "https://developers.20minutes.fr/hela/"
12
13
  },
13
- "main": "./dist/index.umd.js",
14
+ "main": "./dist/index.umd.cjs",
14
15
  "module": "./dist/index.es.js",
15
16
  "source": "src/index.ts",
16
17
  "types": "./dist/index.d.ts",
17
18
  "exports": {
18
19
  ".": {
20
+ "types": "./dist/index.d.ts",
19
21
  "import": "./dist/index.es.js",
20
- "require": "./dist/index.umd.js"
22
+ "require": "./dist/index.umd.cjs"
21
23
  },
22
24
  "./style.css": {
23
25
  "import": "./dist/style.css",
@@ -25,8 +27,9 @@
25
27
  },
26
28
  "./scss/abstracts": "./dist/scss/abstracts/_index.scss",
27
29
  "./scripts": {
30
+ "types": "./dist/src/assets/scripts/initScripts.d.ts",
28
31
  "import": "./dist/js/scripts.es.js",
29
- "require": "./dist/js/scripts.umd.js"
32
+ "require": "./dist/js/scripts.umd.cjs"
30
33
  }
31
34
  },
32
35
  "files": [
@@ -43,9 +46,11 @@
43
46
  "build:local": "NODE_ENV=development yarn build:library && yarn pack -f 20minutes-hela-dev-$(date +\"%s\").tgz && npx serv -p 8181",
44
47
  "storybook": "storybook dev -p 6006",
45
48
  "build:storybook": "storybook build",
49
+ "lint": "yarn lint:ts && yarn lint:scss",
46
50
  "lint:scss": "stylelint 'src/**/*.scss'",
47
51
  "lint:ts": "eslint src bin .storybook tests",
48
- "test": "vitest",
52
+ "test": "vitest run --silent",
53
+ "test:coverage": "vitest run --coverage",
49
54
  "upload:artifacts": "tsx bin/uploadArtifacts",
50
55
  "upload:storybook:start": "tsx bin/uploadStorybook start",
51
56
  "upload:storybook:end": "tsx bin/uploadStorybook end"
@@ -60,8 +65,8 @@
60
65
  },
61
66
  "engines": {
62
67
  "npm": "please-use-yarn-instead",
63
- "yarn": ">= 1.22.0",
64
- "node": ">=22"
68
+ "yarn": ">= 1.22.22",
69
+ "node": ">= 22.21.1"
65
70
  },
66
71
  "dependencies": {
67
72
  "a11y-dialog": "^8.1.5",
@@ -76,71 +81,64 @@
76
81
  "react-dom": "^18.3.1"
77
82
  },
78
83
  "devDependencies": {
79
- "@20minutes/eslint-config": "^1.2.7",
80
- "@aws-sdk/client-s3": "3.989.0",
81
- "@babel/core": "^7.29.0",
82
- "@babel/eslint-parser": "^7.28.6",
84
+ "@20minutes/eslint-config": "^2.0.0",
85
+ "@aws-sdk/client-s3": "3.1001.0",
83
86
  "@csstools/postcss-sass": "^5.1.1",
84
- "@eslint/compat": "^2.0.2",
85
- "@eslint/eslintrc": "^3.3.3",
86
- "@eslint/js": "^9.39.2",
87
- "@octokit/core": "5.1.0",
88
- "@storybook/addon-docs": "^9.1.5",
89
- "@storybook/addon-links": "^9.1.5",
87
+ "@octokit/core": "7.0.6",
88
+ "@storybook/addon-docs": "^10.2.15",
89
+ "@storybook/addon-links": "^10.2.15",
90
90
  "@storybook/csf": "^0.1.13",
91
- "@storybook/react-vite": "^9.1.5",
91
+ "@storybook/react-vite": "^10.2.15",
92
92
  "@svgr/cli": "^8.1.0",
93
93
  "@testing-library/dom": "^10.4.1",
94
94
  "@testing-library/react": "^16.3.2",
95
- "@types/node": "^25.2.3",
95
+ "@types/node": "^25.3.3",
96
96
  "@types/react": "^18.3.12",
97
97
  "@types/react-dom": "^18.3.1",
98
- "@typescript-eslint/eslint-plugin": "^8.55.0",
99
- "@typescript-eslint/parser": "^8.55.0",
98
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
99
+ "@typescript-eslint/parser": "^8.56.1",
100
100
  "@vitejs/plugin-react": "^5.1.4",
101
- "autoprefixer": "^10.4.24",
101
+ "@vitest/coverage-v8": "^4.0.18",
102
+ "autoprefixer": "^10.4.27",
102
103
  "dotenv": "^17.3.1",
103
- "eslint": "^8.57.1",
104
- "eslint-config-airbnb": "^19.0.4",
104
+ "eslint": "^9.39.2",
105
105
  "eslint-config-prettier": "^10.1.8",
106
106
  "eslint-import-resolver-typescript": "^4.4.4",
107
- "eslint-plugin-babel": "^5.3.1",
108
107
  "eslint-plugin-import": "^2.32.0",
109
108
  "eslint-plugin-jsx-a11y": "^6.10.2",
110
109
  "eslint-plugin-prettier": "^5.5.5",
111
110
  "eslint-plugin-react": "^7.37.5",
112
- "eslint-plugin-simple-import-sort": "^12.1.1",
113
- "eslint-plugin-storybook": "^9.1.5",
114
- "globals": "^17.3.0",
111
+ "eslint-plugin-react-hooks": "^7.0.1",
112
+ "eslint-plugin-storybook": "^10.2.15",
113
+ "globals": "^17.4.0",
115
114
  "husky": "^9.1.7",
116
- "jsdom": "^28.0.0",
117
- "lint-staged": "^16.2.7",
118
- "postcss": "^8.5.6",
115
+ "jsdom": "^28.1.0",
116
+ "lint-staged": "^16.3.2",
117
+ "postcss": "^8.5.8",
119
118
  "postcss-inline-svg": "^6.0.0",
120
119
  "postcss-scss": "^4.0.9",
121
120
  "postcss-url": "^10.1.3",
122
121
  "prettier": "^3.8.1",
123
122
  "react": "^18.3.1",
124
123
  "react-dom": "^18.3.1",
125
- "react-syntax-highlighter": "^15.6.6",
124
+ "react-syntax-highlighter": "^16.1.1",
126
125
  "rollup-plugin-peer-deps-external": "^2.2.4",
127
- "rollup-plugin-visualizer": "^6.0.5",
126
+ "rollup-plugin-visualizer": "^7.0.1",
128
127
  "sass": "^1.97.3",
129
- "storybook": "^9.1.5",
130
- "style-dictionary": "^3.9.2",
131
- "stylelint": "^15.11.0",
132
- "stylelint-config-standard-scss": "^11.1.0",
133
- "stylelint-prettier": "^4.1.0",
128
+ "storybook": "^10.2.15",
129
+ "style-dictionary": "^5.3.3",
130
+ "stylelint": "^17.4.0",
131
+ "stylelint-config-standard-scss": "^17.0.0",
132
+ "stylelint-prettier": "^5.0.3",
134
133
  "svg-sprite": "2.0.4",
135
134
  "tsx": "^4.21.0",
136
- "typescript": "^4.9.5",
135
+ "typescript": "^5.9.3",
137
136
  "vite": "^7.3.1",
138
137
  "vite-plugin-dts": "^4.5.4",
139
138
  "vite-tsconfig-paths": "^6.1.1",
140
139
  "vitest": "^4.0.18"
141
140
  },
142
141
  "resolutions": {
143
- "jackspeak": "2.1.1",
144
142
  "prismjs": "^1.30.0",
145
143
  "uri-js": "npm:uri-js-replace"
146
144
  }