@easygov/react-components 0.7.3 → 0.7.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easygov/react-components",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "private": false,
5
5
  "description": "React 19 component library for EasyGov — accessible UI components styled with eg-* design tokens.",
6
6
  "license": "MIT",
@@ -29,7 +29,10 @@
29
29
  "types": "./dist/icons.d.mts",
30
30
  "import": "./dist/icons.mjs"
31
31
  },
32
- "./styles.css": "./dist/easygov.css",
32
+ "./styles.css": {
33
+ "types": "./src/styles/styles-css.d.mts",
34
+ "default": "./dist/easygov.css"
35
+ },
33
36
  "./fonts.css": "./dist/fonts.css",
34
37
  "./fonts/noto-sans-latin": {
35
38
  "types": "./src/fonts/woff2.d.mts",
@@ -51,7 +54,8 @@
51
54
  "files": [
52
55
  "dist",
53
56
  "src/fonts/OFL.txt",
54
- "src/fonts/woff2.d.mts"
57
+ "src/fonts/woff2.d.mts",
58
+ "src/styles/styles-css.d.mts"
55
59
  ],
56
60
  "publishConfig": {
57
61
  "access": "public"
@@ -61,22 +65,22 @@
61
65
  "react-dom": "^19"
62
66
  },
63
67
  "devDependencies": {
64
- "@testing-library/jest-dom": "^6.9.1",
68
+ "@easygov/design-tokens": "0.0.0",
69
+ "@easygov/eslint-config": "0.0.0",
70
+ "@easygov/typescript-config": "0.0.0",
71
+ "@testing-library/jest-dom": "^7.0.0",
65
72
  "@testing-library/react": "^16.3.2",
66
73
  "@types/node": "^22.15.3",
67
- "@types/react": "19.2.2",
68
- "@types/react-dom": "19.2.2",
74
+ "@types/react": "19.2.18",
75
+ "@types/react-dom": "19.2.7",
69
76
  "@vitest/coverage-v8": "^4.1.9",
70
77
  "eslint": "^9.39.1",
71
- "jsdom": "^29.1.1",
78
+ "jsdom": "^30.0.0",
72
79
  "react": "^19.2.0",
73
80
  "react-dom": "^19.2.0",
74
81
  "tsup": "^8.5.1",
75
- "typescript": "5.9.2",
76
- "vitest": "^4.1.9",
77
- "@easygov/design-tokens": "0.0.0",
78
- "@easygov/eslint-config": "0.0.0",
79
- "@easygov/typescript-config": "0.0.0"
82
+ "typescript": "5.9.3",
83
+ "vitest": "^4.1.9"
80
84
  },
81
85
  "dependencies": {
82
86
  "@base-ui/react": "^1.5.0",
@@ -0,0 +1,6 @@
1
+ // Types for the "./styles.css" export — see fonts/woff2.d.mts for why a `.d.mts`
2
+ // ambient module (not `declare module "..."`) is needed for a text-asset default
3
+ // export in a package with no "type": "module".
4
+
5
+ declare const src: string;
6
+ export default src;