@bitrise/bitkit-v2 0.3.64 → 0.3.66

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,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { useSwitchContext as n } from "@chakra-ui/react";
2
+ import { useSwitchContext as n } from "@chakra-ui/react/switch";
3
3
  import i from "../../DataDisplay/BitkitBadge/BitkitBadge.js";
4
4
  const d = ({ state: e, children: o }) => {
5
5
  const { checked: r } = n();
@@ -0,0 +1,54 @@
1
+ declare const tabsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "trigger" | "root" | "indicator" | "contentGroup", {
2
+ variant: {
3
+ line: {
4
+ list: {
5
+ borderBlockEnd: "1px solid";
6
+ borderColor: "border/regular";
7
+ };
8
+ trigger: {
9
+ bottom: "-1px";
10
+ display: "flex";
11
+ alignItems: "center";
12
+ gap: "8";
13
+ color: "text/secondary";
14
+ paddingBlockStart: "12";
15
+ paddingBlockEnd: string | number;
16
+ borderBlockEnd: "2px solid transparent";
17
+ _selected: {
18
+ color: "text/primary";
19
+ };
20
+ _hover: {
21
+ borderColor: "border/hover";
22
+ color: "text/primary";
23
+ };
24
+ _disabled: {
25
+ color: "text/disabled";
26
+ };
27
+ };
28
+ };
29
+ contained: {
30
+ trigger: {
31
+ paddingBlockStart: string | number;
32
+ paddingBlockEnd: "12";
33
+ backgroundColor: "background/tertiary";
34
+ color: "text/secondary";
35
+ borderBlockStart: "2px solid transparent";
36
+ _hover: {
37
+ backgroundColor: "background/active";
38
+ };
39
+ _disabled: {
40
+ backgroundColor: "sys/neutral/moderate";
41
+ color: "text/on-disabled";
42
+ };
43
+ _selected: {
44
+ backgroundColor: "background/primary";
45
+ color: "text/selected";
46
+ _hover: {
47
+ backgroundColor: "background/primary";
48
+ };
49
+ };
50
+ };
51
+ };
52
+ };
53
+ }>;
54
+ export default tabsSlotRecipe;
@@ -0,0 +1,104 @@
1
+ import { tabsAnatomy as r } from "@chakra-ui/react/anatomy";
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(),
6
+ className: "chakra-tabs",
7
+ base: {
8
+ list: {
9
+ display: "flex"
10
+ },
11
+ trigger: {
12
+ cursor: "pointer",
13
+ textStyle: "body/lg/semibold",
14
+ paddingInline: "16",
15
+ position: "relative",
16
+ textAlign: "left",
17
+ zIndex: 0,
18
+ _focusVisible: {
19
+ outline: o(2),
20
+ outlineColor: "sys/interactive/highlight",
21
+ outlineOffset: "0",
22
+ outlineStyle: "solid"
23
+ },
24
+ _disabled: {
25
+ cursor: "not-allowed"
26
+ },
27
+ _selected: {
28
+ zIndex: 1,
29
+ borderColor: "border/selected",
30
+ _hover: {
31
+ borderColor: "border/selected"
32
+ },
33
+ "& > svg": {
34
+ color: "icon/interactive"
35
+ }
36
+ }
37
+ },
38
+ content: {
39
+ outline: "none"
40
+ },
41
+ contentGroup: {
42
+ backgroundColor: "background/primary"
43
+ }
44
+ },
45
+ variants: {
46
+ variant: {
47
+ line: {
48
+ list: {
49
+ borderBlockEnd: "1px solid",
50
+ borderColor: "border/regular"
51
+ },
52
+ trigger: {
53
+ bottom: "-1px",
54
+ display: "flex",
55
+ alignItems: "center",
56
+ gap: "8",
57
+ color: "text/secondary",
58
+ paddingBlockStart: "12",
59
+ paddingBlockEnd: o(9),
60
+ borderBlockEnd: "2px solid transparent",
61
+ _selected: {
62
+ color: "text/primary"
63
+ },
64
+ _hover: {
65
+ borderColor: "border/hover",
66
+ color: "text/primary"
67
+ },
68
+ _disabled: {
69
+ color: "text/disabled"
70
+ }
71
+ }
72
+ },
73
+ contained: {
74
+ trigger: {
75
+ paddingBlockStart: o(10),
76
+ paddingBlockEnd: "12",
77
+ backgroundColor: "background/tertiary",
78
+ color: "text/secondary",
79
+ borderBlockStart: "2px solid transparent",
80
+ _hover: {
81
+ backgroundColor: "background/active"
82
+ },
83
+ _disabled: {
84
+ backgroundColor: "sys/neutral/moderate",
85
+ color: "text/on-disabled"
86
+ },
87
+ _selected: {
88
+ backgroundColor: "background/primary",
89
+ color: "text/selected",
90
+ _hover: {
91
+ backgroundColor: "background/primary"
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ },
98
+ defaultVariants: {
99
+ variant: "line"
100
+ }
101
+ });
102
+ export {
103
+ a as default
104
+ };
@@ -64,6 +64,59 @@ declare const slotRecipes: {
64
64
  };
65
65
  };
66
66
  }>;
67
+ tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "trigger" | "root" | "indicator" | "contentGroup", {
68
+ variant: {
69
+ line: {
70
+ list: {
71
+ borderBlockEnd: "1px solid";
72
+ borderColor: "border/regular";
73
+ };
74
+ trigger: {
75
+ bottom: "-1px";
76
+ display: "flex";
77
+ alignItems: "center";
78
+ gap: "8";
79
+ color: "text/secondary";
80
+ paddingBlockStart: "12";
81
+ paddingBlockEnd: string | number;
82
+ borderBlockEnd: "2px solid transparent";
83
+ _selected: {
84
+ color: "text/primary";
85
+ };
86
+ _hover: {
87
+ borderColor: "border/hover";
88
+ color: "text/primary";
89
+ };
90
+ _disabled: {
91
+ color: "text/disabled";
92
+ };
93
+ };
94
+ };
95
+ contained: {
96
+ trigger: {
97
+ paddingBlockStart: string | number;
98
+ paddingBlockEnd: "12";
99
+ backgroundColor: "background/tertiary";
100
+ color: "text/secondary";
101
+ borderBlockStart: "2px solid transparent";
102
+ _hover: {
103
+ backgroundColor: "background/active";
104
+ };
105
+ _disabled: {
106
+ backgroundColor: "sys/neutral/moderate";
107
+ color: "text/on-disabled";
108
+ };
109
+ _selected: {
110
+ backgroundColor: "background/primary";
111
+ color: "text/selected";
112
+ _hover: {
113
+ backgroundColor: "background/primary";
114
+ };
115
+ };
116
+ };
117
+ };
118
+ };
119
+ }>;
67
120
  tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "trigger" | "arrow" | "arrowTip" | "positioner">>;
68
121
  };
69
122
  export default slotRecipes;
@@ -2,13 +2,15 @@ import t from "./Field.recipe.js";
2
2
  import e from "./NativeSelect.js";
3
3
  import { numberInputSlotRecipe as o } from "./NumberInput.recipe.js";
4
4
  import i from "./Switch.recipe.js";
5
- import p from "./Tooltip.recipe.js";
5
+ import p from "./Tabs.recipe.js";
6
+ import r from "./Tooltip.recipe.js";
6
7
  const n = {
7
8
  field: t,
8
9
  nativeSelect: e,
9
10
  numberInput: o,
10
11
  switch: i,
11
- tooltip: p
12
+ tabs: p,
13
+ tooltip: r
12
14
  };
13
15
  export {
14
16
  n as default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.64",
4
+ "version": "0.3.66",
5
5
  "description": "Bitrise Design System Components built with Chakra UI v3",
6
6
  "keywords": [
7
7
  "react",
@@ -65,7 +65,7 @@
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.3",
68
+ "@types/react": "^19.2.4",
69
69
  "@vitejs/plugin-react": "^5.1.1",
70
70
  "axios": "^1.13.2",
71
71
  "es-toolkit": "^1.41.0",