@nattui/react-components 0.0.24 → 0.0.25
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.
|
@@ -113,6 +113,11 @@
|
|
|
113
113
|
--padding: 0 16px;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
.button__size_48 {
|
|
117
|
+
--size: 48px;
|
|
118
|
+
--padding: 0 18px;
|
|
119
|
+
}
|
|
120
|
+
|
|
116
121
|
/* ===================================================== */
|
|
117
122
|
/* Variant */
|
|
118
123
|
/* ===================================================== */
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ interface ButtonPropsInternal extends Omit<ComponentProps<"button">, "aria-press
|
|
|
19
19
|
isFullWidth?: boolean;
|
|
20
20
|
isLoading?: boolean;
|
|
21
21
|
isRounded?: boolean;
|
|
22
|
-
size?: 32 | 36 | 40 | 44;
|
|
22
|
+
size?: 32 | 36 | 40 | 44 | 48;
|
|
23
23
|
variant?: "accent" | "ghost" | "primary" | "secondary";
|
|
24
24
|
}
|
|
25
25
|
type ButtonUnionProps = ButtonIconProps | ButtonProps;
|
|
@@ -36,6 +36,7 @@ declare const BUTTON_CLASS_NAME: {
|
|
|
36
36
|
readonly 36: string;
|
|
37
37
|
readonly 40: string;
|
|
38
38
|
readonly 44: string;
|
|
39
|
+
readonly 48: string;
|
|
39
40
|
};
|
|
40
41
|
readonly VARIANT: {
|
|
41
42
|
readonly ACCENT: string;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/button.tsx
|
|
2
|
-
import styles3 from "./button.module-
|
|
2
|
+
import styles3 from "./button.module-Y4L4TGW6.module.css";
|
|
3
3
|
|
|
4
4
|
// src/button-background.tsx
|
|
5
5
|
import styles from "./button-background.module-EWE3JTY4.module.css";
|
|
@@ -62,7 +62,7 @@ function Button(props) {
|
|
|
62
62
|
isFullWidth = false,
|
|
63
63
|
isLoading = false,
|
|
64
64
|
isRounded = false,
|
|
65
|
-
size =
|
|
65
|
+
size = 40,
|
|
66
66
|
type = "button",
|
|
67
67
|
variant = "primary",
|
|
68
68
|
...rest
|
|
@@ -111,7 +111,8 @@ var BUTTON_CLASS_NAME = {
|
|
|
111
111
|
32: styles3.button__size_32,
|
|
112
112
|
36: styles3.button__size_36,
|
|
113
113
|
40: styles3.button__size_40,
|
|
114
|
-
44: styles3.button__size_44
|
|
114
|
+
44: styles3.button__size_44,
|
|
115
|
+
48: styles3.button__size_48
|
|
115
116
|
},
|
|
116
117
|
VARIANT: {
|
|
117
118
|
ACCENT: styles3.button__variant_accent,
|