@forthtilliath/shadcn-ui 0.3.0 → 0.4.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/README.md +11 -0
- package/dist/styles/sources.css +6 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -43,6 +43,17 @@ import { useIsMobile } from "@forthtilliath/shadcn-ui/hooks/use-mobile";
|
|
|
43
43
|
import "@forthtilliath/shadcn-ui/styles/globals.css";
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
The components ship pre-built, so your Tailwind build must scan them or their
|
|
47
|
+
classes are never generated. Import `sources.css` from your CSS entry point —
|
|
48
|
+
its `@source` path is relative to the package itself, so it works with any
|
|
49
|
+
`node_modules` layout (a `node_modules/@forthtilliath/*/dist/**/*.js` glob finds
|
|
50
|
+
nothing under pnpm's symlinks):
|
|
51
|
+
|
|
52
|
+
```css
|
|
53
|
+
@import "@forthtilliath/shadcn-ui/styles/globals-static.css";
|
|
54
|
+
@import "@forthtilliath/shadcn-ui/styles/sources.css";
|
|
55
|
+
```
|
|
56
|
+
|
|
46
57
|
### Components (`src/components/`)
|
|
47
58
|
|
|
48
59
|
The full shadcn/ui primitive set: `accordion`, `alert`, `alert-dialog`,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* Registers shadcn-ui's components with the consumer's Tailwind build, so
|
|
2
|
+
their classes get generated: import this file from your CSS entry point.
|
|
3
|
+
The path is relative to this file, so it holds both in src/ (this monorepo)
|
|
4
|
+
and in the published dist/, whatever the node_modules layout (npm, or pnpm
|
|
5
|
+
symlinks, where a `node_modules/@forthtilliath/*` glob finds nothing). */
|
|
6
|
+
@source "../components";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forthtilliath/shadcn-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react-dom": "^19.2.8",
|
|
82
82
|
"tailwindcss": "4.3.3",
|
|
83
83
|
"typescript": "^5.9.3",
|
|
84
|
-
"@forthtilliath/eslint-config": "0.
|
|
84
|
+
"@forthtilliath/eslint-config": "0.9.0",
|
|
85
85
|
"@forthtilliath/typescript-config": "0.1.1"
|
|
86
86
|
},
|
|
87
87
|
"files": [
|