@bitrise/bitkit-v2 0.3.71 → 0.3.73
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/dist/components/BitkitCloseButton/BitkitCloseButton.d.ts +7 -0
- package/dist/components/BitkitCloseButton/BitkitCloseButton.js +12 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +1076 -1074
- package/dist/theme/recipes/CloseButton.recipe.d.ts +21 -0
- package/dist/theme/recipes/CloseButton.recipe.js +42 -0
- package/dist/theme/recipes/ColorButton.recipe.js +33 -0
- package/dist/theme/recipes/index.d.ts +39 -0
- package/dist/theme/recipes/index.js +20 -16
- package/package.json +1 -1
- package/dist/components/BitkitColorButton/BitkitColorButton.d.ts +0 -8
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const closeButtonRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
2
|
+
size: {
|
|
3
|
+
xs: {
|
|
4
|
+
h: "24";
|
|
5
|
+
w: "24";
|
|
6
|
+
'& > svg': {
|
|
7
|
+
h: "16";
|
|
8
|
+
w: "16";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
sm: {
|
|
12
|
+
h: "32";
|
|
13
|
+
w: "32";
|
|
14
|
+
};
|
|
15
|
+
md: {
|
|
16
|
+
h: "40";
|
|
17
|
+
w: "40";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
export default closeButtonRecipe;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineRecipe as e } from "@chakra-ui/react/styled-system";
|
|
2
|
+
const r = e({
|
|
3
|
+
className: "close-button",
|
|
4
|
+
base: {
|
|
5
|
+
display: "inline-flex",
|
|
6
|
+
alignItems: "center",
|
|
7
|
+
justifyContent: "center",
|
|
8
|
+
borderRadius: "4",
|
|
9
|
+
color: "colorPalette.strong",
|
|
10
|
+
cursor: "pointer",
|
|
11
|
+
"&:hover": {
|
|
12
|
+
backgroundColor: "colorPalette.subtle"
|
|
13
|
+
},
|
|
14
|
+
"&:active": {
|
|
15
|
+
backgroundColor: "colorPalette.moderate"
|
|
16
|
+
},
|
|
17
|
+
_disabled: {
|
|
18
|
+
cursor: "not-allowed",
|
|
19
|
+
color: "icon/disabled",
|
|
20
|
+
"&:hover": {
|
|
21
|
+
backgroundColor: "transparent"
|
|
22
|
+
},
|
|
23
|
+
"&:active": {
|
|
24
|
+
backgroundColor: "transparent"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
variants: {
|
|
29
|
+
size: {
|
|
30
|
+
xs: { h: "24", w: "24", "& > svg": { h: "16", w: "16" } },
|
|
31
|
+
sm: { h: "32", w: "32" },
|
|
32
|
+
md: { h: "40", w: "40" }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
size: "xs",
|
|
37
|
+
colorPalette: "neutral"
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
r as default
|
|
42
|
+
};
|
|
@@ -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,45 @@ declare const recipes: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
|
+
closeButton: import('@chakra-ui/react').RecipeDefinition<{
|
|
40
|
+
size: {
|
|
41
|
+
xs: {
|
|
42
|
+
h: "24";
|
|
43
|
+
w: "24";
|
|
44
|
+
'& > svg': {
|
|
45
|
+
h: "16";
|
|
46
|
+
w: "16";
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
sm: {
|
|
50
|
+
h: "32";
|
|
51
|
+
w: "32";
|
|
52
|
+
};
|
|
53
|
+
md: {
|
|
54
|
+
h: "40";
|
|
55
|
+
w: "40";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
colorButton: import('@chakra-ui/react').RecipeDefinition<{
|
|
60
|
+
size: {
|
|
61
|
+
sm: {
|
|
62
|
+
height: "32";
|
|
63
|
+
paddingInline: "12";
|
|
64
|
+
textStyle: "comp/button/sm";
|
|
65
|
+
};
|
|
66
|
+
md: {
|
|
67
|
+
height: "40";
|
|
68
|
+
paddingInline: "12";
|
|
69
|
+
textStyle: "comp/button/md";
|
|
70
|
+
};
|
|
71
|
+
lg: {
|
|
72
|
+
height: "48";
|
|
73
|
+
paddingInline: "16";
|
|
74
|
+
textStyle: "comp/button/lg";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}>;
|
|
39
78
|
input: import('@chakra-ui/react').RecipeDefinition<Record<"size", Record<"md" | "lg", import('@chakra-ui/react').SystemStyleObject>>>;
|
|
40
79
|
link: import('@chakra-ui/react').RecipeDefinition<{
|
|
41
80
|
variant: {
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import e from "./Badge.recipe.js";
|
|
2
|
-
import
|
|
3
|
-
import t from "./
|
|
4
|
-
import
|
|
5
|
-
import p from "./
|
|
6
|
-
import i from "./
|
|
7
|
-
import m from "./
|
|
8
|
-
import n from "./
|
|
9
|
-
|
|
2
|
+
import o from "./Button.recipe.js";
|
|
3
|
+
import t from "./CloseButton.recipe.js";
|
|
4
|
+
import r from "./ColorButton.recipe.js";
|
|
5
|
+
import p from "./Input.recipe.js";
|
|
6
|
+
import i from "./Link.recipe.js";
|
|
7
|
+
import m from "./Separator.recipe.js";
|
|
8
|
+
import n from "./Skeleton.recipe.js";
|
|
9
|
+
import c from "./Spinner.recipe.js";
|
|
10
|
+
import a from "./Textarea.recipe.js";
|
|
11
|
+
const g = {
|
|
10
12
|
badge: e,
|
|
11
|
-
button:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
button: o,
|
|
14
|
+
closeButton: t,
|
|
15
|
+
colorButton: r,
|
|
16
|
+
input: p,
|
|
17
|
+
link: i,
|
|
18
|
+
separator: m,
|
|
19
|
+
skeleton: n,
|
|
20
|
+
spinner: c,
|
|
21
|
+
textarea: a
|
|
18
22
|
};
|
|
19
23
|
export {
|
|
20
|
-
|
|
24
|
+
g as default
|
|
21
25
|
};
|
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;
|