@bitrise/bitkit-v2 0.3.142 → 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.
@@ -1,19 +1,19 @@
1
- import { jsx as t } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import { Skeleton as d } from "@chakra-ui/react/skeleton";
3
3
  import { useRecipe as f, chakra as k } from "@chakra-ui/react/styled-system";
4
4
  import { forwardRef as u } from "react";
5
5
  import x from "../BitkitTooltip/BitkitTooltip.js";
6
- const B = u((r, n) => {
7
- const { icon: s, isDanger: l, label: i, size: o = "sm", state: e, tooltipProps: a, ...c } = r, m = f({ key: "controlButton" }), p = o === "xxs" || o === "xs" ? "16" : "24";
8
- return /* @__PURE__ */ t(x, { text: i, ...a, children: /* @__PURE__ */ t(
6
+ const B = u((r, s) => {
7
+ const { icon: n, isDanger: l, label: i, size: t = "sm", state: e, tooltipProps: a, ...c } = r, m = f({ key: "controlButton" }), p = t === "xxs" || t === "xs" ? "16" : "24";
8
+ return /* @__PURE__ */ o(x, { showArrow: !1, size: "sm", text: i, ...a, children: /* @__PURE__ */ o(
9
9
  k.button,
10
10
  {
11
- ref: n,
11
+ ref: s,
12
12
  "aria-label": i,
13
13
  disabled: e === "disabled" || e === "skeleton",
14
14
  ...c,
15
- css: m({ isDanger: l, size: o }),
16
- children: /* @__PURE__ */ t(d, { loading: e === "skeleton", children: /* @__PURE__ */ t(s, { size: p }) })
15
+ css: m({ isDanger: l, size: t }),
16
+ children: /* @__PURE__ */ o(d, { loading: e === "skeleton", children: /* @__PURE__ */ o(n, { size: p }) })
17
17
  }
18
18
  ) });
19
19
  });
@@ -5,6 +5,10 @@ declare const controlButtonRecipe: import('@chakra-ui/react').RecipeDefinition<{
5
5
  _hover: {
6
6
  background: "button/tertiary/bg-hover";
7
7
  color: "button/secondary/fg-hover";
8
+ _active: {
9
+ background: "button/tertiary/bg-active";
10
+ color: "button/secondary/fg-active";
11
+ };
8
12
  };
9
13
  _active: {
10
14
  background: "button/tertiary/bg-active";
@@ -19,6 +23,10 @@ declare const controlButtonRecipe: import('@chakra-ui/react').RecipeDefinition<{
19
23
  _hover: {
20
24
  background: "button/danger-secondary/bg-hover";
21
25
  color: "button/danger-secondary/fg-hover";
26
+ _active: {
27
+ background: "button/danger-secondary/bg-active";
28
+ color: "button/danger-secondary/fg-active";
29
+ };
22
30
  };
23
31
  _active: {
24
32
  background: "button/danger-secondary/bg-active";
@@ -1,5 +1,5 @@
1
- import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
- const r = e({
1
+ import { defineRecipe as o } from "@chakra-ui/react/styled-system";
2
+ const a = o({
3
3
  className: "control-button",
4
4
  base: {
5
5
  display: "inline-flex",
@@ -24,7 +24,11 @@ const r = e({
24
24
  color: "button/secondary/fg",
25
25
  _hover: {
26
26
  background: "button/tertiary/bg-hover",
27
- color: "button/secondary/fg-hover"
27
+ color: "button/secondary/fg-hover",
28
+ _active: {
29
+ background: "button/tertiary/bg-active",
30
+ color: "button/secondary/fg-active"
31
+ }
28
32
  },
29
33
  _active: {
30
34
  background: "button/tertiary/bg-active",
@@ -38,7 +42,11 @@ const r = e({
38
42
  color: "button/danger-secondary/fg",
39
43
  _hover: {
40
44
  background: "button/danger-secondary/bg-hover",
41
- color: "button/danger-secondary/fg-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
+ }
42
50
  },
43
51
  _active: {
44
52
  background: "button/danger-secondary/bg-active",
@@ -63,5 +71,5 @@ const r = e({
63
71
  }
64
72
  });
65
73
  export {
66
- r as default
74
+ a as default
67
75
  };
@@ -69,6 +69,10 @@ declare const recipes: {
69
69
  _hover: {
70
70
  background: "button/tertiary/bg-hover";
71
71
  color: "button/secondary/fg-hover";
72
+ _active: {
73
+ background: "button/tertiary/bg-active";
74
+ color: "button/secondary/fg-active";
75
+ };
72
76
  };
73
77
  _active: {
74
78
  background: "button/tertiary/bg-active";
@@ -83,6 +87,10 @@ declare const recipes: {
83
87
  _hover: {
84
88
  background: "button/danger-secondary/bg-hover";
85
89
  color: "button/danger-secondary/fg-hover";
90
+ _active: {
91
+ background: "button/danger-secondary/bg-active";
92
+ color: "button/danger-secondary/fg-active";
93
+ };
86
94
  };
87
95
  _active: {
88
96
  background: "button/danger-secondary/bg-active";
@@ -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.142",
4
+ "version": "0.3.143",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",