@bitrise/bitkit-v2 0.3.66 → 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
  };
@@ -0,0 +1,15 @@
1
+ declare const emptyStateSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
2
+ colorScheme: {
3
+ white: {
4
+ root: {
5
+ backgroundColor: "background/primary";
6
+ };
7
+ };
8
+ grey: {
9
+ root: {
10
+ backgroundColor: "background/secondary";
11
+ };
12
+ };
13
+ };
14
+ }>;
15
+ export default emptyStateSlotRecipe;
@@ -0,0 +1,58 @@
1
+ import { emptyStateAnatomy as o } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
3
+ import { rem as r } from "../themeUtils.js";
4
+ const n = e({
5
+ slots: o.keys(),
6
+ className: "empty-state",
7
+ base: {
8
+ root: {
9
+ border: "1px solid",
10
+ borderColor: "border/minimal",
11
+ borderRadius: "4",
12
+ padding: ["32", "48"]
13
+ },
14
+ content: {
15
+ maxWidth: r(480),
16
+ marginInline: "auto",
17
+ display: "flex",
18
+ flexDirection: "column",
19
+ alignItems: "center",
20
+ textAlign: "center"
21
+ },
22
+ indicator: {
23
+ color: "icon/tertiary"
24
+ },
25
+ title: {
26
+ textStyle: "heading/h4",
27
+ color: "text/secondary",
28
+ marginBlock: "8"
29
+ },
30
+ description: {
31
+ textStyle: "body/md/regular",
32
+ color: "text/secondary",
33
+ "&:has(+ *)": {
34
+ marginBlockEnd: "24"
35
+ }
36
+ }
37
+ },
38
+ variants: {
39
+ colorScheme: {
40
+ white: {
41
+ root: {
42
+ backgroundColor: "background/primary"
43
+ }
44
+ },
45
+ grey: {
46
+ root: {
47
+ backgroundColor: "background/secondary"
48
+ }
49
+ }
50
+ }
51
+ },
52
+ defaultVariants: {
53
+ colorScheme: "grey"
54
+ }
55
+ });
56
+ export {
57
+ n as default
58
+ };
@@ -1,4 +1,4 @@
1
- declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "control" | "thumb" | "indicator", {
1
+ declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "control" | "thumb", {
2
2
  size: {
3
3
  sm: {
4
4
  root: {
@@ -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,4 +1,4 @@
1
- declare const tabsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "trigger" | "root" | "indicator" | "contentGroup", {
1
+ declare const tabsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "root" | "indicator" | "trigger" | "contentGroup", {
2
2
  variant: {
3
3
  line: {
4
4
  list: {
@@ -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
  };
@@ -1,4 +1,18 @@
1
1
  declare const slotRecipes: {
2
+ emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
3
+ colorScheme: {
4
+ white: {
5
+ root: {
6
+ backgroundColor: "background/primary";
7
+ };
8
+ };
9
+ grey: {
10
+ root: {
11
+ backgroundColor: "background/secondary";
12
+ };
13
+ };
14
+ };
15
+ }>;
2
16
  field: import('@chakra-ui/react').SlotRecipeDefinition<"input" | "label" | "select" | "textarea" | "root" | "errorText" | "helperText" | "requiredIndicator", import('@chakra-ui/react').SlotRecipeVariantRecord<"input" | "label" | "select" | "textarea" | "root" | "errorText" | "helperText" | "requiredIndicator">>;
3
17
  nativeSelect: import('@chakra-ui/react').SlotRecipeDefinition<"field" | "root" | "indicator", {
4
18
  size: {
@@ -34,7 +48,7 @@ declare const slotRecipes: {
34
48
  };
35
49
  };
36
50
  }>;
37
- switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "control" | "thumb" | "indicator", {
51
+ switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "control" | "thumb", {
38
52
  size: {
39
53
  sm: {
40
54
  root: {
@@ -64,7 +78,7 @@ declare const slotRecipes: {
64
78
  };
65
79
  };
66
80
  }>;
67
- tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "trigger" | "root" | "indicator" | "contentGroup", {
81
+ tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "root" | "indicator" | "trigger" | "contentGroup", {
68
82
  variant: {
69
83
  line: {
70
84
  list: {
@@ -1,15 +1,17 @@
1
- import t from "./Field.recipe.js";
2
- import e from "./NativeSelect.js";
3
- import { numberInputSlotRecipe as o } from "./NumberInput.recipe.js";
4
- import i from "./Switch.recipe.js";
5
- import p from "./Tabs.recipe.js";
1
+ import t from "./EmptyState.recipe.js";
2
+ import e from "./Field.recipe.js";
3
+ import o from "./NativeSelect.js";
4
+ import { numberInputSlotRecipe as i } from "./NumberInput.recipe.js";
5
+ import p from "./Switch.recipe.js";
6
+ import m from "./Tabs.recipe.js";
6
7
  import r from "./Tooltip.recipe.js";
7
8
  const n = {
8
- field: t,
9
- nativeSelect: e,
10
- numberInput: o,
11
- switch: i,
12
- tabs: p,
9
+ emptyState: t,
10
+ field: e,
11
+ nativeSelect: o,
12
+ numberInput: i,
13
+ switch: p,
14
+ tabs: m,
13
15
  tooltip: r
14
16
  };
15
17
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.66",
4
+ "version": "0.3.68",
5
5
  "description": "Bitrise Design System Components built with Chakra UI v3",
6
6
  "keywords": [
7
7
  "react",
@@ -60,19 +60,19 @@
60
60
  "@figma-export/output-components-as-svg": "^6.2.4",
61
61
  "@figma-export/transform-svg-with-svgo": "^6.2.4",
62
62
  "@google-cloud/storage": "^7.17.3",
63
- "@storybook/addon-docs": "10.0.7",
64
- "@storybook/react-vite": "10.0.7",
63
+ "@storybook/addon-docs": "10.0.8",
64
+ "@storybook/react-vite": "10.0.8",
65
65
  "@svgr/plugin-jsx": "^8.1.0",
66
66
  "@types/node": "^24.10.1",
67
67
  "@types/react-dom": "^19.2.3",
68
- "@types/react": "^19.2.4",
68
+ "@types/react": "^19.2.6",
69
69
  "@vitejs/plugin-react": "^5.1.1",
70
70
  "axios": "^1.13.2",
71
- "es-toolkit": "^1.41.0",
71
+ "es-toolkit": "^1.42.0",
72
72
  "react-dom": "^19.2.0",
73
73
  "react": "^19.2.0",
74
74
  "release-it": "^19.0.6",
75
- "storybook": "10.0.7",
75
+ "storybook": "10.0.8",
76
76
  "tsx": "^4.20.6",
77
77
  "typescript": "^5.9.3",
78
78
  "vite-plugin-dts": "^4.5.4",