@bitrise/bitkit-v2 0.3.67 → 0.3.68

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,8 +1,13 @@
1
1
  import { defineGlobalStyles as o } from "@chakra-ui/react/styled-system";
2
- const e = o({
2
+ import { rem as t } from "./themeUtils.js";
3
+ const n = o({
3
4
  "*": {
4
5
  "--global-font-mono": "fonts.mono",
5
- "--global-font-body": "fonts.body"
6
+ "--global-font-body": "fonts.body",
7
+ "--focus-ring-width": t(3),
8
+ "--focus-ring-offset": "0",
9
+ "--focus-ring-style": "solid",
10
+ "--focus-ring-color": "colors.sys.interactive.highlight"
6
11
  },
7
12
  body: {
8
13
  color: "text/body",
@@ -10,14 +15,9 @@ const e = o({
10
15
  },
11
16
  "a, summary, button, input, textarea, select, [tabindex]:not([tabindex='-1'])": {
12
17
  outline: "none",
13
- _focusVisible: {
14
- outline: "3px",
15
- outlineColor: "sys/interactive/highlight",
16
- outlineOffset: "0",
17
- outlineStyle: "solid"
18
- }
18
+ focusVisibleRing: "outside"
19
19
  }
20
20
  });
21
21
  export {
22
- e as default
22
+ n as default
23
23
  };
@@ -1,7 +1,7 @@
1
1
  import { switchAnatomy as i } from "@chakra-ui/react/anatomy";
2
2
  import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
3
3
  import { rem as t } from "../themeUtils.js";
4
- const l = e({
4
+ const o = e({
5
5
  slots: i.keys(),
6
6
  className: "switch",
7
7
  base: {
@@ -54,9 +54,7 @@ const l = e({
54
54
  _readOnly: {
55
55
  cursor: "default"
56
56
  },
57
- _focusVisible: {
58
- outline: "3px solid var(--colors-sys-interactive-highlight)"
59
- }
57
+ focusVisibleRing: "outside"
60
58
  },
61
59
  thumb: {
62
60
  width: "var(--switch-height)",
@@ -114,5 +112,5 @@ const l = e({
114
112
  }
115
113
  });
116
114
  export {
117
- l as default
115
+ o as default
118
116
  };
@@ -1,26 +1,21 @@
1
- import { tabsAnatomy as r } from "@chakra-ui/react/anatomy";
1
+ import { tabsAnatomy as o } from "@chakra-ui/react/anatomy";
2
2
  import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
3
- import { rem as o } from "../themeUtils.js";
4
- const a = e({
5
- slots: r.keys(),
3
+ import { rem as r } from "../themeUtils.js";
4
+ const l = e({
5
+ slots: o.keys(),
6
6
  className: "chakra-tabs",
7
7
  base: {
8
8
  list: {
9
9
  display: "flex"
10
10
  },
11
11
  trigger: {
12
+ "--focus-ring-width": r(2),
12
13
  cursor: "pointer",
13
14
  textStyle: "body/lg/semibold",
14
15
  paddingInline: "16",
15
16
  position: "relative",
16
17
  textAlign: "left",
17
18
  zIndex: 0,
18
- _focusVisible: {
19
- outline: o(2),
20
- outlineColor: "sys/interactive/highlight",
21
- outlineOffset: "0",
22
- outlineStyle: "solid"
23
- },
24
19
  _disabled: {
25
20
  cursor: "not-allowed"
26
21
  },
@@ -56,7 +51,7 @@ const a = e({
56
51
  gap: "8",
57
52
  color: "text/secondary",
58
53
  paddingBlockStart: "12",
59
- paddingBlockEnd: o(9),
54
+ paddingBlockEnd: r(9),
60
55
  borderBlockEnd: "2px solid transparent",
61
56
  _selected: {
62
57
  color: "text/primary"
@@ -72,7 +67,7 @@ const a = e({
72
67
  },
73
68
  contained: {
74
69
  trigger: {
75
- paddingBlockStart: o(10),
70
+ paddingBlockStart: r(10),
76
71
  paddingBlockEnd: "12",
77
72
  backgroundColor: "background/tertiary",
78
73
  color: "text/secondary",
@@ -100,5 +95,5 @@ const a = e({
100
95
  }
101
96
  });
102
97
  export {
103
- a as default
98
+ l as default
104
99
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.67",
4
+ "version": "0.3.68",
5
5
  "description": "Bitrise Design System Components built with Chakra UI v3",
6
6
  "keywords": [
7
7
  "react",