@hanzo/ui 3.8.4 → 3.8.6
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/package.json +2 -2
- package/primitives/button.tsx +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/ui",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.6",
|
|
4
4
|
"description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"tailwind-merge": "^2.3.0",
|
|
85
85
|
"tailwindcss-animate": "^1.0.7",
|
|
86
86
|
"tailwindcss-interaction-media": "^0.1.0",
|
|
87
|
-
"@hanzo/react-drawer": "0.1.
|
|
87
|
+
"@hanzo/react-drawer": "0.1.1"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@hookform/resolvers": "^3.3.2",
|
package/primitives/button.tsx
CHANGED
|
@@ -5,13 +5,13 @@ import { cva, type VariantProps } from "class-variance-authority"
|
|
|
5
5
|
import { cn } from "../util"
|
|
6
6
|
|
|
7
7
|
const variant = {
|
|
8
|
-
primary: "bg-primary text-primary-fg
|
|
9
|
-
secondary: "bg-secondary text-secondary-fg
|
|
10
|
-
outline: "text-foreground bg-background border border-muted-4
|
|
11
|
-
destructive: "bg-destructive text-destructive-fg font-sans whitespace-nowrap
|
|
12
|
-
ghost: "text-foreground
|
|
13
|
-
link: "text-foreground
|
|
14
|
-
linkFG: "text-foreground
|
|
8
|
+
primary: "bg-primary text-primary-fg sm:hover:bg-primary-hover font-nav whitespace-nowrap not-typography",
|
|
9
|
+
secondary: "bg-secondary text-secondary-fg sm:hover:bg-secondary-hover font-nav whitespace-nowrap not-typography",
|
|
10
|
+
outline: "text-foreground bg-background border border-muted-4 sm:hover:bg-level-1 sm:hover:text-accent sm:hover:border-accent font-nav whitespace-nowrap not-typography",
|
|
11
|
+
destructive: "bg-destructive text-destructive-fg font-sans whitespace-nowrap sm:hover:bg-destructive-hover",
|
|
12
|
+
ghost: "text-foreground sm:hover:bg-level-1 sm:hover:text-accent whitespace-nowrap font-sans ",
|
|
13
|
+
link: "text-foreground sm:hover:text-muted-1 font-sans ",
|
|
14
|
+
linkFG: "text-foreground sm:hover:text-muted-1 font-sans ", // marker to style nav as regular link
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
const size = {
|