@zukhruf/shadcn 0.3.27 → 0.3.29
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/package.json +1 -1
package/README.md
CHANGED
|
@@ -130,6 +130,17 @@ Use `cn` around `buttonVariants`. `Button` merges the classes that conflict thro
|
|
|
130
130
|
- **Keep your own components in the app.** A component that you make from the components of this package belongs to the app. Do not add it to this package. The sync writes over the generated source, and the package holds only the components of shadcn/ui.
|
|
131
131
|
- **Remove the outline of a `Card` with `ring-0`.** `Card` draws its outline with `ring-1`, not with a border. Thus `border-0` does not remove the outline.
|
|
132
132
|
- **Use the standard names of the theme variables.** Set `--primary`, `--background` and the other variables of the [theme](#theme). Do not add a brand prefix, for example `--acme-primary`. The components read only the standard names.
|
|
133
|
+
- **Put a `DropdownMenuLabel` in a `DropdownMenuGroup`.** `DropdownMenuLabel` uses `Menu.GroupLabel` of Base UI, and that component reads the context of a group. A label outside a group throws Base UI error #31, and the full menu stops. Radix UI accepted a label outside a group, thus an app that moves from Radix UI must find these labels. text2sql found one when it moved.
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
<DropdownMenuContent>
|
|
137
|
+
<DropdownMenuGroup>
|
|
138
|
+
<DropdownMenuLabel>Account</DropdownMenuLabel>
|
|
139
|
+
<DropdownMenuItem>Profile</DropdownMenuItem>
|
|
140
|
+
</DropdownMenuGroup>
|
|
141
|
+
</DropdownMenuContent>
|
|
142
|
+
```
|
|
143
|
+
|
|
133
144
|
- **Show an error at the place where it occurs.** Show a form error or a field error next to the field or the action that failed, for example with `FieldError`. Show the error of a background task or of a mutation as a toast. Use `toast` and `Toaster` of this package, which use the toast of Base UI.
|
|
134
145
|
|
|
135
146
|
## Your own components
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zukhruf/shadcn",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.29",
|
|
4
4
|
"description": "Every shadcn/ui component for Base UI with the nova preset, as one package: import the components from one entry and the styles from one stylesheet.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|