@zmzai/theme 0.2.0 → 0.2.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/package.json +1 -1
- package/src/components/badge/Badge.tsx +1 -1
- package/src/components/button/button.styles.ts +2 -2
- package/src/components/card/card.styles.ts +1 -1
- package/src/components/input/input.styles.ts +2 -2
- package/src/components/select/Select.tsx +2 -2
- package/src/components/textarea/Textarea.tsx +2 -2
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { cva } from "class-variance-authority";
|
|
|
5
5
|
import { cn } from "../../utils/cn";
|
|
6
6
|
|
|
7
7
|
export const badgeVariants = cva(
|
|
8
|
-
"inline-flex items-center gap-1.5 rounded-
|
|
8
|
+
"inline-flex items-center gap-1.5 rounded-sm font-medium text-xs whitespace-nowrap",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -4,13 +4,13 @@ import { cva } from "class-variance-authority";
|
|
|
4
4
|
* Button variant styles.
|
|
5
5
|
*
|
|
6
6
|
* Design:
|
|
7
|
-
* -
|
|
7
|
+
* - 锐角 2px(v0.2 暖纸风),hover 轻微缩放
|
|
8
8
|
* - primary: black fill, white text, hover scale + shadow
|
|
9
9
|
* - secondary: transparent, border, hover fill
|
|
10
10
|
* - ghost: no border, subtle hover bg
|
|
11
11
|
*/
|
|
12
12
|
export const buttonVariants = cva(
|
|
13
|
-
"inline-flex cursor-pointer items-center justify-center gap-2 rounded-
|
|
13
|
+
"inline-flex cursor-pointer items-center justify-center gap-2 rounded-sm font-semibold transition-colors transition-transform disabled:pointer-events-none disabled:opacity-40 select-none",
|
|
14
14
|
{
|
|
15
15
|
variants: {
|
|
16
16
|
variant: {
|
|
@@ -8,7 +8,7 @@ import { cva } from "class-variance-authority";
|
|
|
8
8
|
* - interactive: hover lifts up + shadow + border darkens
|
|
9
9
|
*/
|
|
10
10
|
export const cardVariants = cva(
|
|
11
|
-
"bg-bg border rounded-
|
|
11
|
+
"bg-bg border rounded-sm transition-colors transition-transform duration-200",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
@@ -13,9 +13,9 @@ export const inputVariants = cva(
|
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
15
|
default:
|
|
16
|
-
"border border-line rounded-
|
|
16
|
+
"border border-line rounded-sm px-4 py-2.5 text-sm focus:border-ink",
|
|
17
17
|
brutal:
|
|
18
|
-
"border-2 border-ink rounded-
|
|
18
|
+
"border-2 border-ink rounded-sm px-4 py-3 text-sm",
|
|
19
19
|
},
|
|
20
20
|
size: {
|
|
21
21
|
sm: "text-xs py-2 px-3",
|
|
@@ -18,7 +18,7 @@ export function SelectTrigger({
|
|
|
18
18
|
return (
|
|
19
19
|
<SelectPrimitive.Trigger
|
|
20
20
|
className={cn(
|
|
21
|
-
"inline-flex h-9 items-center justify-between gap-2 rounded-
|
|
21
|
+
"inline-flex h-9 items-center justify-between gap-2 rounded-sm border border-line bg-bg px-3 py-2 text-sm font-medium text-ink outline-none transition-colors",
|
|
22
22
|
"hover:border-ink/40 focus:border-ink data-[placeholder]:text-ink-3",
|
|
23
23
|
className
|
|
24
24
|
)}
|
|
@@ -48,7 +48,7 @@ export function SelectContent({
|
|
|
48
48
|
position={position}
|
|
49
49
|
sideOffset={4}
|
|
50
50
|
className={cn(
|
|
51
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-
|
|
51
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-sm border border-line bg-bg p-1 shadow-lg",
|
|
52
52
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
53
53
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
54
54
|
className
|
|
@@ -25,9 +25,9 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
|
|
|
25
25
|
className={cn(
|
|
26
26
|
"w-full resize-none bg-bg font-sans text-ink placeholder:text-ink-3 outline-none transition-all",
|
|
27
27
|
variant === "default" &&
|
|
28
|
-
"border border-line rounded-
|
|
28
|
+
"border border-line rounded-sm px-4 py-2.5 text-sm focus:border-ink",
|
|
29
29
|
variant === "brutal" &&
|
|
30
|
-
"border-2 border-ink rounded-
|
|
30
|
+
"border-2 border-ink rounded-sm px-4 py-3 text-sm",
|
|
31
31
|
className
|
|
32
32
|
)}
|
|
33
33
|
{...props}
|