components-test-pb 0.0.4 → 0.0.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.
|
@@ -2,10 +2,10 @@ export const useButton = (props) => {
|
|
|
2
2
|
const { appearance, shape, size, disabled, ...buttonProps } = props;
|
|
3
3
|
return {
|
|
4
4
|
appearance: appearance ?? 'secondary',
|
|
5
|
-
shape: shape ?? '
|
|
5
|
+
shape: shape ?? 'rounded',
|
|
6
6
|
size: size ?? 'medium',
|
|
7
7
|
disabled: disabled ?? false,
|
|
8
8
|
components: { root: buttonProps.as ?? 'button' },
|
|
9
|
-
root: { as: buttonProps.as ?? 'button', ...buttonProps },
|
|
9
|
+
root: { as: buttonProps.as ?? 'button', disabled: disabled ?? false, ...buttonProps },
|
|
10
10
|
};
|
|
11
11
|
};
|
package/dist/Theme/tokens.d.ts
CHANGED
|
@@ -63,9 +63,9 @@ export declare const Tokens: {
|
|
|
63
63
|
readonly colorBrandStroke1: "#312dfb";
|
|
64
64
|
readonly colorBrandStroke1Hover: "#2b28e2";
|
|
65
65
|
readonly colorBrandStroke1Pressed: "#2522c9";
|
|
66
|
-
readonly colorBrandForeground1: "#
|
|
67
|
-
readonly colorBrandForeground1Hover: "#
|
|
68
|
-
readonly colorBrandForeground1Pressed: "#
|
|
66
|
+
readonly colorBrandForeground1: "#ffffff";
|
|
67
|
+
readonly colorBrandForeground1Hover: "#ffffff";
|
|
68
|
+
readonly colorBrandForeground1Pressed: "#ffffff";
|
|
69
69
|
readonly colorSubtleBackground: "transparent";
|
|
70
70
|
readonly colorSubtleBackgroundHover: "#f5f5f5";
|
|
71
71
|
readonly colorSubtleBackgroundPressed: "#e0e0e0";
|
package/dist/Theme/tokens.js
CHANGED
|
@@ -63,9 +63,9 @@ export const Tokens = {
|
|
|
63
63
|
colorBrandStroke1: '#312dfb',
|
|
64
64
|
colorBrandStroke1Hover: '#2b28e2',
|
|
65
65
|
colorBrandStroke1Pressed: '#2522c9',
|
|
66
|
-
colorBrandForeground1: '#
|
|
67
|
-
colorBrandForeground1Hover: '#
|
|
68
|
-
colorBrandForeground1Pressed: '#
|
|
66
|
+
colorBrandForeground1: '#ffffff',
|
|
67
|
+
colorBrandForeground1Hover: '#ffffff',
|
|
68
|
+
colorBrandForeground1Pressed: '#ffffff',
|
|
69
69
|
colorSubtleBackground: 'transparent',
|
|
70
70
|
colorSubtleBackgroundHover: '#f5f5f5',
|
|
71
71
|
colorSubtleBackgroundPressed: '#e0e0e0',
|
package/package.json
CHANGED
|
@@ -5,12 +5,12 @@ export const useButton = (props: ButtonProps): ButtonState => {
|
|
|
5
5
|
|
|
6
6
|
return {
|
|
7
7
|
appearance: appearance ?? 'secondary',
|
|
8
|
-
shape: shape ?? '
|
|
8
|
+
shape: shape ?? 'rounded',
|
|
9
9
|
size: size ?? 'medium',
|
|
10
10
|
disabled: disabled ?? false,
|
|
11
11
|
|
|
12
12
|
components: { root: buttonProps.as ?? 'button' },
|
|
13
13
|
|
|
14
|
-
root: { as: buttonProps.as ?? 'button', ...buttonProps } as ButtonState['root'],
|
|
14
|
+
root: { as: buttonProps.as ?? 'button', disabled: disabled ?? false, ...buttonProps } as ButtonState['root'],
|
|
15
15
|
};
|
|
16
16
|
};
|
package/src/Theme/tokens.ts
CHANGED
|
@@ -75,9 +75,9 @@ export const Tokens = {
|
|
|
75
75
|
colorBrandStroke1Hover: '#2b28e2',
|
|
76
76
|
colorBrandStroke1Pressed: '#2522c9',
|
|
77
77
|
|
|
78
|
-
colorBrandForeground1: '#
|
|
79
|
-
colorBrandForeground1Hover: '#
|
|
80
|
-
colorBrandForeground1Pressed: '#
|
|
78
|
+
colorBrandForeground1: '#ffffff',
|
|
79
|
+
colorBrandForeground1Hover: '#ffffff',
|
|
80
|
+
colorBrandForeground1Pressed: '#ffffff',
|
|
81
81
|
|
|
82
82
|
colorSubtleBackground: 'transparent',
|
|
83
83
|
colorSubtleBackgroundHover: '#f5f5f5',
|