@bitrise/bitkit-v2 0.3.141 → 0.3.143

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,58 @@
1
+ declare const controlButtonRecipe: import('@chakra-ui/react').RecipeDefinition<{
2
+ isDanger: {
3
+ false: {
4
+ color: "button/secondary/fg";
5
+ _hover: {
6
+ background: "button/tertiary/bg-hover";
7
+ color: "button/secondary/fg-hover";
8
+ _active: {
9
+ background: "button/tertiary/bg-active";
10
+ color: "button/secondary/fg-active";
11
+ };
12
+ };
13
+ _active: {
14
+ background: "button/tertiary/bg-active";
15
+ color: "button/secondary/fg-active";
16
+ };
17
+ _disabled: {
18
+ color: "button/secondary/fg-disabled!";
19
+ };
20
+ };
21
+ true: {
22
+ color: "button/danger-secondary/fg";
23
+ _hover: {
24
+ background: "button/danger-secondary/bg-hover";
25
+ color: "button/danger-secondary/fg-hover";
26
+ _active: {
27
+ background: "button/danger-secondary/bg-active";
28
+ color: "button/danger-secondary/fg-active";
29
+ };
30
+ };
31
+ _active: {
32
+ background: "button/danger-secondary/bg-active";
33
+ color: "button/danger-secondary/fg-active";
34
+ };
35
+ _disabled: {
36
+ color: "button/danger-secondary/fg-disabled!";
37
+ };
38
+ };
39
+ };
40
+ size: {
41
+ xxs: {
42
+ padding: "4";
43
+ };
44
+ xs: {
45
+ padding: "8";
46
+ };
47
+ sm: {
48
+ padding: "4";
49
+ };
50
+ md: {
51
+ padding: "8";
52
+ };
53
+ lg: {
54
+ padding: "12";
55
+ };
56
+ };
57
+ }>;
58
+ export default controlButtonRecipe;
@@ -0,0 +1,75 @@
1
+ import { defineRecipe as o } from "@chakra-ui/react/styled-system";
2
+ const a = o({
3
+ className: "control-button",
4
+ base: {
5
+ display: "inline-flex",
6
+ alignItems: "center",
7
+ justifyContent: "center",
8
+ borderRadius: "4",
9
+ cursor: "pointer",
10
+ background: "transparent",
11
+ _disabled: {
12
+ cursor: "not-allowed",
13
+ _hover: {
14
+ background: "transparent"
15
+ },
16
+ _active: {
17
+ background: "transparent"
18
+ }
19
+ }
20
+ },
21
+ variants: {
22
+ isDanger: {
23
+ false: {
24
+ color: "button/secondary/fg",
25
+ _hover: {
26
+ background: "button/tertiary/bg-hover",
27
+ color: "button/secondary/fg-hover",
28
+ _active: {
29
+ background: "button/tertiary/bg-active",
30
+ color: "button/secondary/fg-active"
31
+ }
32
+ },
33
+ _active: {
34
+ background: "button/tertiary/bg-active",
35
+ color: "button/secondary/fg-active"
36
+ },
37
+ _disabled: {
38
+ color: "button/secondary/fg-disabled!"
39
+ }
40
+ },
41
+ true: {
42
+ color: "button/danger-secondary/fg",
43
+ _hover: {
44
+ background: "button/danger-secondary/bg-hover",
45
+ color: "button/danger-secondary/fg-hover",
46
+ _active: {
47
+ background: "button/danger-secondary/bg-active",
48
+ color: "button/danger-secondary/fg-active"
49
+ }
50
+ },
51
+ _active: {
52
+ background: "button/danger-secondary/bg-active",
53
+ color: "button/danger-secondary/fg-active"
54
+ },
55
+ _disabled: {
56
+ color: "button/danger-secondary/fg-disabled!"
57
+ }
58
+ }
59
+ },
60
+ size: {
61
+ xxs: { padding: "4" },
62
+ xs: { padding: "8" },
63
+ sm: { padding: "4" },
64
+ md: { padding: "8" },
65
+ lg: { padding: "12" }
66
+ }
67
+ },
68
+ defaultVariants: {
69
+ isDanger: !1,
70
+ size: "sm"
71
+ }
72
+ });
73
+ export {
74
+ a as default
75
+ };
@@ -62,6 +62,63 @@ declare const recipes: {
62
62
  };
63
63
  };
64
64
  }>;
65
+ controlButton: import('@chakra-ui/react').RecipeDefinition<{
66
+ isDanger: {
67
+ false: {
68
+ color: "button/secondary/fg";
69
+ _hover: {
70
+ background: "button/tertiary/bg-hover";
71
+ color: "button/secondary/fg-hover";
72
+ _active: {
73
+ background: "button/tertiary/bg-active";
74
+ color: "button/secondary/fg-active";
75
+ };
76
+ };
77
+ _active: {
78
+ background: "button/tertiary/bg-active";
79
+ color: "button/secondary/fg-active";
80
+ };
81
+ _disabled: {
82
+ color: "button/secondary/fg-disabled!";
83
+ };
84
+ };
85
+ true: {
86
+ color: "button/danger-secondary/fg";
87
+ _hover: {
88
+ background: "button/danger-secondary/bg-hover";
89
+ color: "button/danger-secondary/fg-hover";
90
+ _active: {
91
+ background: "button/danger-secondary/bg-active";
92
+ color: "button/danger-secondary/fg-active";
93
+ };
94
+ };
95
+ _active: {
96
+ background: "button/danger-secondary/bg-active";
97
+ color: "button/danger-secondary/fg-active";
98
+ };
99
+ _disabled: {
100
+ color: "button/danger-secondary/fg-disabled!";
101
+ };
102
+ };
103
+ };
104
+ size: {
105
+ xxs: {
106
+ padding: "4";
107
+ };
108
+ xs: {
109
+ padding: "8";
110
+ };
111
+ sm: {
112
+ padding: "4";
113
+ };
114
+ md: {
115
+ padding: "8";
116
+ };
117
+ lg: {
118
+ padding: "12";
119
+ };
120
+ };
121
+ }>;
65
122
  colorButton: import('@chakra-ui/react').RecipeDefinition<{
66
123
  size: {
67
124
  sm: {
@@ -1,27 +1,29 @@
1
1
  import o from "./Badge.recipe.js";
2
- import e from "./Button.recipe.js";
3
- import t from "./CloseButton.recipe.js";
2
+ import t from "./Button.recipe.js";
3
+ import e from "./CloseButton.recipe.js";
4
4
  import i from "./ColorButton.recipe.js";
5
- import r from "./DefinitionTooltip.recipe.js";
6
- import p from "./Input.recipe.js";
5
+ import r from "./ControlButton.recipe.js";
6
+ import p from "./DefinitionTooltip.recipe.js";
7
+ import n from "./Input.recipe.js";
7
8
  import m from "./Link.recipe.js";
8
- import n from "./Separator.recipe.js";
9
- import c from "./Skeleton.recipe.js";
10
- import f from "./Spinner.recipe.js";
9
+ import c from "./Separator.recipe.js";
10
+ import f from "./Skeleton.recipe.js";
11
+ import l from "./Spinner.recipe.js";
11
12
  import a from "./Textarea.recipe.js";
12
- const h = {
13
+ const q = {
13
14
  badge: o,
14
- button: e,
15
- closeButton: t,
15
+ button: t,
16
+ closeButton: e,
17
+ controlButton: r,
16
18
  colorButton: i,
17
- definitionTooltip: r,
18
- input: p,
19
+ definitionTooltip: p,
20
+ input: n,
19
21
  link: m,
20
- separator: n,
21
- skeleton: c,
22
- spinner: f,
22
+ separator: c,
23
+ skeleton: f,
24
+ spinner: l,
23
25
  textarea: a
24
26
  };
25
27
  export {
26
- h as default
28
+ q as default
27
29
  };
@@ -1,10 +1,13 @@
1
1
  import { tooltipAnatomy as t } from "@chakra-ui/react/anatomy";
2
- import { defineSlotRecipe as a } from "@chakra-ui/react/styled-system";
2
+ import { defineSlotRecipe as r } from "@chakra-ui/react/styled-system";
3
3
  import { rem as o } from "../themeUtils.js";
4
- const e = a({
4
+ const e = r({
5
5
  className: "tooltip",
6
6
  slots: t.keys(),
7
7
  base: {
8
+ positioner: {
9
+ pointerEvents: "none"
10
+ },
8
11
  content: {
9
12
  "--tooltip-bg": "colors.background.contrast",
10
13
  backgroundColor: "var(--tooltip-bg)",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.141",
4
+ "version": "0.3.143",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",