@code-sherpas/pharos-react 1.1.1 → 2.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.
Files changed (2) hide show
  1. package/package.json +11 -8
  2. package/styles.css.d.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-sherpas/pharos-react",
3
- "version": "1.1.1",
3
+ "version": "2.0.1",
4
4
  "description": "React component library for Code Sherpas. Consumes @code-sherpas/pharos-tokens. Vite library mode + CSS Modules — no Tailwind, no CSS framework required at the consumer.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,14 +17,18 @@
17
17
  },
18
18
  "type": "module",
19
19
  "files": [
20
- "dist"
20
+ "dist",
21
+ "styles.css.d.ts"
21
22
  ],
22
23
  "exports": {
23
24
  ".": {
24
25
  "types": "./dist/index.d.ts",
25
26
  "import": "./dist/index.js"
26
27
  },
27
- "./styles.css": "./dist/styles.css",
28
+ "./styles.css": {
29
+ "types": "./styles.css.d.ts",
30
+ "default": "./dist/styles.css"
31
+ },
28
32
  "./Avatar": {
29
33
  "types": "./dist/components/Avatar.d.ts",
30
34
  "import": "./dist/components/Avatar.js"
@@ -110,15 +114,14 @@
110
114
  "**/*.css"
111
115
  ],
112
116
  "engines": {
113
- "node": ">=22",
114
- "pnpm": "10.33.0"
117
+ "node": ">=22"
115
118
  },
116
119
  "lint-staged": {
117
120
  "*.{ts,tsx,js,mjs,cjs,json,md,mdx,css,yml,yaml}": "prettier --write"
118
121
  },
119
122
  "peerDependencies": {
120
123
  "@base-ui/react": "^1.4.1",
121
- "@code-sherpas/pharos-tokens": "^0.8.0",
124
+ "@code-sherpas/pharos-tokens": "^1.0.0",
122
125
  "react": ">=18",
123
126
  "react-dom": ">=18"
124
127
  },
@@ -129,7 +132,7 @@
129
132
  "devDependencies": {
130
133
  "@base-ui/react": "^1.4.1",
131
134
  "@changesets/cli": "^2.27.10",
132
- "@code-sherpas/pharos-tokens": "^0.8.0",
135
+ "@code-sherpas/pharos-tokens": "^1.0.0",
133
136
  "@fontsource/inter": "^5.2.8",
134
137
  "@fontsource/outfit": "^5.2.8",
135
138
  "@storybook/addon-a11y": "^10.6.2",
@@ -175,7 +178,7 @@
175
178
  "test:e2e": "pnpm --filter @examples/saas-demo test:e2e",
176
179
  "dev:demo": "bash scripts/check-node-version.sh && pnpm --filter @examples/saas-demo dev",
177
180
  "typecheck": "tsc --noEmit",
178
- "verify:dist-types": "tsc --noEmit -p tsconfig.dist-smoke.json",
181
+ "verify:dist-types": "tsc --noEmit -p tsconfig.dist-smoke.json && tsc --noEmit -p tsconfig.css-entry-types.json",
179
182
  "verify:dist-rsc": "node scripts/verify-dist-rsc.mjs",
180
183
  "lint": "eslint .",
181
184
  "format": "prettier --write .",
@@ -0,0 +1,5 @@
1
+ // Types for the stylesheet entry point (`./styles.css`). A stylesheet exports
2
+ // nothing; this file only lets TypeScript resolve its side-effect import
3
+ // (`import '@code-sherpas/pharos-react/styles.css'`), which TypeScript 6 and
4
+ // later check by default (`noUncheckedSideEffectImports`).
5
+ export {};