@preset.nz/facets 0.1.0 → 0.1.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 +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,18 @@ So you need an `@/*` alias pointing at your `src/`, those five modules present,
|
|
|
45
45
|
and Tailwind with shadcn's theme tokens (`muted-foreground`, `border` and
|
|
46
46
|
friends are used throughout).
|
|
47
47
|
|
|
48
|
+
The panel's own layout (group headers, rows, help text) is Tailwind classes in
|
|
49
|
+
this package's source. Tailwind 4 does not scan `node_modules`, so name the
|
|
50
|
+
package in your CSS. From `src/index.css`:
|
|
51
|
+
|
|
52
|
+
```css
|
|
53
|
+
@import "tailwindcss";
|
|
54
|
+
@source "../node_modules/@preset.nz/facets/src";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Nothing fails when this line is missing. The build succeeds and the panel
|
|
58
|
+
renders unstyled.
|
|
59
|
+
|
|
48
60
|
The upside is that `facets` inherits whatever primitive library you already
|
|
49
61
|
chose — Base UI, Radix, or your own — instead of dragging in a second one and
|
|
50
62
|
making your panels look foreign inside your own app.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@preset.nz/facets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Schema-as-data property/inspector panels for React: FieldDef schemas, a scope registry, an open field-renderer registry, and a generic PropertyPanel.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|