@bitrise/bitkit-v2 0.3.71 → 0.3.72
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.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineRecipe as e } from "@chakra-ui/react/styled-system";
|
|
2
|
+
const o = e({
|
|
3
|
+
className: "color-button",
|
|
4
|
+
base: {
|
|
5
|
+
display: "inline-flex",
|
|
6
|
+
alignItems: "center",
|
|
7
|
+
justifyContent: "center",
|
|
8
|
+
border: "1px solid",
|
|
9
|
+
borderRadius: "4",
|
|
10
|
+
color: "colorPalette.strong",
|
|
11
|
+
cursor: "pointer",
|
|
12
|
+
"&:hover": {
|
|
13
|
+
backgroundColor: "colorPalette.subtle"
|
|
14
|
+
},
|
|
15
|
+
"&:active": {
|
|
16
|
+
backgroundColor: "colorPalette.moderate"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
variants: {
|
|
20
|
+
size: {
|
|
21
|
+
sm: { height: "32", paddingInline: "12", textStyle: "comp/button/sm" },
|
|
22
|
+
md: { height: "40", paddingInline: "12", textStyle: "comp/button/md" },
|
|
23
|
+
lg: { height: "48", paddingInline: "16", textStyle: "comp/button/lg" }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
colorPalette: "neutral",
|
|
28
|
+
size: "sm"
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
o as default
|
|
33
|
+
};
|
|
@@ -36,6 +36,25 @@ declare const recipes: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
|
+
colorButton: import('@chakra-ui/react').RecipeDefinition<{
|
|
40
|
+
size: {
|
|
41
|
+
sm: {
|
|
42
|
+
height: "32";
|
|
43
|
+
paddingInline: "12";
|
|
44
|
+
textStyle: "comp/button/sm";
|
|
45
|
+
};
|
|
46
|
+
md: {
|
|
47
|
+
height: "40";
|
|
48
|
+
paddingInline: "12";
|
|
49
|
+
textStyle: "comp/button/md";
|
|
50
|
+
};
|
|
51
|
+
lg: {
|
|
52
|
+
height: "48";
|
|
53
|
+
paddingInline: "16";
|
|
54
|
+
textStyle: "comp/button/lg";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
39
58
|
input: import('@chakra-ui/react').RecipeDefinition<Record<"size", Record<"md" | "lg", import('@chakra-ui/react').SystemStyleObject>>>;
|
|
40
59
|
link: import('@chakra-ui/react').RecipeDefinition<{
|
|
41
60
|
variant: {
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import e from "./Badge.recipe.js";
|
|
2
|
-
import
|
|
2
|
+
import o from "./Button.recipe.js";
|
|
3
|
+
import r from "./ColorButton.recipe.js";
|
|
3
4
|
import t from "./Input.recipe.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
5
|
+
import p from "./Link.recipe.js";
|
|
6
|
+
import i from "./Separator.recipe.js";
|
|
7
|
+
import m from "./Skeleton.recipe.js";
|
|
8
|
+
import n from "./Spinner.recipe.js";
|
|
9
|
+
import c from "./Textarea.recipe.js";
|
|
10
|
+
const x = {
|
|
10
11
|
badge: e,
|
|
11
|
-
button:
|
|
12
|
+
button: o,
|
|
13
|
+
colorButton: r,
|
|
12
14
|
input: t,
|
|
13
|
-
link:
|
|
14
|
-
separator:
|
|
15
|
-
skeleton:
|
|
16
|
-
spinner:
|
|
17
|
-
textarea:
|
|
15
|
+
link: p,
|
|
16
|
+
separator: i,
|
|
17
|
+
skeleton: m,
|
|
18
|
+
spinner: n,
|
|
19
|
+
textarea: c
|
|
18
20
|
};
|
|
19
21
|
export {
|
|
20
|
-
|
|
22
|
+
x as default
|
|
21
23
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HTMLChakraProps } from '@chakra-ui/react/styled-system';
|
|
2
|
-
import { ColorPaletteKeys } from '../../theme/tokens/colors';
|
|
3
|
-
export interface ColorButtonProps extends HTMLChakraProps<'button'> {
|
|
4
|
-
size: 'sm' | 'md' | 'lg';
|
|
5
|
-
colorPalette: ColorPaletteKeys;
|
|
6
|
-
}
|
|
7
|
-
declare const BitkitColorButton: import('react').ForwardRefExoticComponent<ColorButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
|
-
export default BitkitColorButton;
|