@noya-app/noya-designsystem 0.1.34 → 0.1.35
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3055 -18989
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3291 -19378
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Button.tsx +4 -9
package/package.json
CHANGED
|
@@ -10,10 +10,8 @@ import { Tooltip } from "./Tooltip";
|
|
|
10
10
|
type ButtonVariant =
|
|
11
11
|
| "normal"
|
|
12
12
|
| "primary"
|
|
13
|
-
| "primaryGradient"
|
|
14
13
|
| "secondary"
|
|
15
14
|
| "secondaryBright"
|
|
16
|
-
| "white"
|
|
17
15
|
| "thin"
|
|
18
16
|
| "floating"
|
|
19
17
|
| "none";
|
|
@@ -23,16 +21,14 @@ type ButtonSize = "small" | "normal" | "large" | "floating";
|
|
|
23
21
|
const variantStyles: Record<ButtonVariant, string> = {
|
|
24
22
|
normal:
|
|
25
23
|
"bg-input-background text-text hover:bg-input-background-light active:bg-active-background min-w-[31px]",
|
|
26
|
-
primary:
|
|
27
|
-
|
|
28
|
-
"bg-gradient-to-r from-primary to-primary-light text-text hover:bg-primary-light",
|
|
24
|
+
primary:
|
|
25
|
+
"bg-primary text-white hover:bg-primary-light active:bg-primary min-w-[31px]",
|
|
29
26
|
secondary:
|
|
30
|
-
"bg-secondary text-white hover:bg-secondary-light active:bg-secondary",
|
|
27
|
+
"bg-secondary text-white hover:bg-secondary-light active:bg-secondary min-w-[31px]",
|
|
31
28
|
secondaryBright: "bg-[#0ab557] text-white hover:opacity-80 active:opacity-90",
|
|
32
|
-
white: "bg-white hover:opacity-80 active:opacity-90",
|
|
33
|
-
thin: "bg-transparent text-text hover:bg-input-background-light",
|
|
34
29
|
floating:
|
|
35
30
|
"bg-white text-text shadow-[0_1px_2px_rgba(0,0,0,0.1)] hover:opacity-80 active:opacity-90",
|
|
31
|
+
thin: "bg-transparent text-text hover:bg-input-background-light",
|
|
36
32
|
none: "bg-transparent text-text hover:bg-input-background-light",
|
|
37
33
|
};
|
|
38
34
|
|
|
@@ -59,7 +55,6 @@ export interface ButtonRootProps {
|
|
|
59
55
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
60
56
|
onPointerDown?: (event: React.PointerEvent<HTMLButtonElement>) => void;
|
|
61
57
|
contentStyle?: CSSProperties;
|
|
62
|
-
defaultBackground?: string;
|
|
63
58
|
as?: React.ElementType;
|
|
64
59
|
htmlFor?: string;
|
|
65
60
|
href?: string;
|