@rfdtech/components 1.0.0 → 1.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/README.md +11 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -2,7 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Shared React component library for Ghana School of Law (GSL) projects.
|
|
4
4
|
|
|
5
|
-
Requires React 18+ and a bundler
|
|
5
|
+
Requires React 18+ and a bundler that processes CSS (Vite, Webpack, etc.).
|
|
6
|
+
|
|
7
|
+
## Styles
|
|
8
|
+
|
|
9
|
+
Component styles load automatically when you import from `@rfdtech/components` (the JS bundle includes `import './index.css'`). For reliable styling in production, add this once in your app entry (`main.tsx` or `App.tsx`):
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import "@rfdtech/components/style.css";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
After upgrading the package, clear Vite's dependency cache if styles look stale: `rm -rf node_modules/.vite`.
|
|
6
16
|
|
|
7
17
|
## Shared theming
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rfdtech/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Shared React component library for Ghana School of Law (GSL) projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"sideEffects": ["**/*.css", "./dist/index.css"],
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
11
12
|
"import": {
|
|
@@ -16,7 +17,9 @@
|
|
|
16
17
|
"types": "./dist/index.d.ts",
|
|
17
18
|
"default": "./dist/index.cjs"
|
|
18
19
|
}
|
|
19
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"./style.css": "./dist/index.css",
|
|
22
|
+
"./dist/index.css": "./dist/index.css"
|
|
20
23
|
},
|
|
21
24
|
"files": [
|
|
22
25
|
"dist"
|