@bitrise/bitkit-v2 0.3.79 → 0.3.81

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,11 +1,14 @@
1
1
  import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
- const a = e({
2
+ const t = e({
3
3
  className: "skeleton",
4
4
  base: {
5
5
  "--animate-from": "200%",
6
6
  "--animate-to": "-200%",
7
7
  "--start-color": "colors.utilities.skeleton",
8
- "--end-color": "colors.utilities.skeleton-strong"
8
+ "--end-color": "colors.utilities.skeleton-strong",
9
+ display: "flex",
10
+ alignItems: "center",
11
+ justifyContent: "center"
9
12
  },
10
13
  variants: {
11
14
  loading: {
@@ -35,5 +38,5 @@ const a = e({
35
38
  }
36
39
  });
37
40
  export {
38
- a as default
41
+ t as default
39
42
  };
@@ -1,7 +1,7 @@
1
1
  import { defineSemanticTokens as l } from "@chakra-ui/react/styled-system";
2
- import { withSlashes as s } from "../themeUtils.js";
2
+ import { withSlashes as e } from "../themeUtils.js";
3
3
  const r = l.colors(
4
- s({
4
+ e({
5
5
  brand: {
6
6
  primary: {
7
7
  value: {
@@ -1203,6 +1203,18 @@ const r = l.colors(
1203
1203
  }
1204
1204
  }
1205
1205
  },
1206
+ checkbox: {
1207
+ selection: {
1208
+ value: {
1209
+ _light: "{colors.sys.purple}"
1210
+ }
1211
+ },
1212
+ "selection-disabled": {
1213
+ value: {
1214
+ _light: "{colors.sys.purple.disabled}"
1215
+ }
1216
+ }
1217
+ },
1206
1218
  toggle: {
1207
1219
  frameOn: {
1208
1220
  value: {
@@ -0,0 +1,2 @@
1
+ declare const checkboxSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "group" | "root" | "control" | "indicator", import('@chakra-ui/react').SlotRecipeVariantRecord<"label" | "group" | "root" | "control" | "indicator">>;
2
+ export default checkboxSlotRecipe;
@@ -0,0 +1,90 @@
1
+ import { checkboxAnatomy as o } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
3
+ const l = e({
4
+ className: "checkbox",
5
+ slots: o.keys(),
6
+ base: {
7
+ root: {
8
+ display: "inline-flex",
9
+ alignItems: "flex-start",
10
+ gap: "8px"
11
+ },
12
+ control: {
13
+ width: "24",
14
+ height: "24",
15
+ position: "relative",
16
+ borderRadius: "4",
17
+ backgroundColor: "background/primary",
18
+ border: "1px solid",
19
+ borderColor: "border/regular",
20
+ focusVisibleRing: "outside",
21
+ "& > svg": {
22
+ position: "absolute",
23
+ left: "-1px",
24
+ visibility: "hidden"
25
+ },
26
+ _checked: {
27
+ backgroundColor: "input/checkbox/selection",
28
+ borderColor: "input/checkbox/selection !important",
29
+ "& > svg": {
30
+ top: 0,
31
+ color: "icon/on-color",
32
+ visibility: "visible"
33
+ },
34
+ _disabled: {
35
+ backgroundColor: "input/checkbox/selection-disabled",
36
+ borderColor: "input/checkbox/selection-disabled !important"
37
+ },
38
+ _readOnly: {
39
+ "& > svg": {
40
+ color: "icon/on-disabled"
41
+ }
42
+ }
43
+ },
44
+ _hover: {
45
+ borderColor: "border/hover"
46
+ },
47
+ _indeterminate: {
48
+ backgroundColor: "input/checkbox/selection",
49
+ borderColor: "input/checkbox/selection !important",
50
+ "& > svg": {
51
+ top: "-1px",
52
+ color: "icon/on-color",
53
+ visibility: "visible"
54
+ },
55
+ _disabled: {
56
+ backgroundColor: "input/checkbox/selection-disabled",
57
+ borderColor: "input/checkbox/selection-disabled !important"
58
+ },
59
+ _readOnly: {
60
+ "& > svg": {
61
+ color: "icon/on-disabled"
62
+ }
63
+ }
64
+ },
65
+ _disabled: {
66
+ backgroundColor: "background/disabled",
67
+ borderColor: "border/disabled",
68
+ cursor: "not-allowed"
69
+ },
70
+ _readOnly: {
71
+ backgroundColor: "background/disabled",
72
+ borderColor: "border/regular !important"
73
+ }
74
+ },
75
+ label: {
76
+ textStyle: "body/lg/regular",
77
+ userSelect: "none",
78
+ color: "input/text/inputValue",
79
+ _disabled: {
80
+ color: "text/disabled"
81
+ },
82
+ _readOnly: {
83
+ color: "text/disabled"
84
+ }
85
+ }
86
+ }
87
+ });
88
+ export {
89
+ l as default
90
+ };
@@ -1,4 +1,4 @@
1
- declare const emptyStateSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "description" | "root" | "indicator", {
1
+ declare const emptyStateSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
2
2
  colorScheme: {
3
3
  white: {
4
4
  root: {
@@ -1,2 +1,2 @@
1
- declare const fieldSlotRecipe: 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">>;
1
+ declare const fieldSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"input" | "label" | "select" | "textarea" | "root" | "helperText" | "errorText" | "requiredIndicator", import('@chakra-ui/react').SlotRecipeVariantRecord<"input" | "label" | "select" | "textarea" | "root" | "helperText" | "errorText" | "requiredIndicator">>;
2
2
  export default fieldSlotRecipe;
@@ -0,0 +1,2 @@
1
+ declare const fieldsetSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "legend" | "root" | "helperText" | "errorText", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "legend" | "root" | "helperText" | "errorText">>;
2
+ export default fieldsetSlotRecipe;
@@ -0,0 +1,20 @@
1
+ import { fieldsetAnatomy as e } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as t } from "@chakra-ui/react/styled-system";
3
+ const r = t({
4
+ className: "fieldset",
5
+ slots: e.keys(),
6
+ base: {
7
+ legend: {
8
+ textStyle: "body/md/semibold",
9
+ color: "text/primary"
10
+ },
11
+ helperText: {
12
+ marginBlockStart: "4",
13
+ textStyle: "comp/input/helperText",
14
+ color: "text/helper"
15
+ }
16
+ }
17
+ });
18
+ export {
19
+ r as default
20
+ };
@@ -1,4 +1,4 @@
1
- declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "control" | "thumb", {
1
+ declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "control" | "indicator" | "thumb", {
2
2
  size: {
3
3
  sm: {
4
4
  root: {
@@ -0,0 +1,48 @@
1
+ declare const tagSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "closeTrigger" | "root" | "startElement" | "endElement", {
2
+ disabled: {
3
+ true: {
4
+ root: {
5
+ backgroundColor: "background/disabled";
6
+ borderColor: "border/disabled";
7
+ color: "text/on-disabled";
8
+ };
9
+ };
10
+ false: {};
11
+ };
12
+ size: {
13
+ sm: {
14
+ root: {
15
+ height: "24";
16
+ paddingInline: "4";
17
+ '&:has(button)': {
18
+ paddingInlineEnd: "1";
19
+ };
20
+ };
21
+ label: {
22
+ paddingInline: "4";
23
+ textStyle: "comp/tag/sm";
24
+ };
25
+ endElement: {
26
+ width: "20";
27
+ height: "20";
28
+ };
29
+ };
30
+ md: {
31
+ root: {
32
+ height: "32";
33
+ paddingInline: "6";
34
+ '&:has(button)': {
35
+ paddingInlineEnd: string | number;
36
+ };
37
+ };
38
+ startElement: {
39
+ marginInlineEnd: "-2px";
40
+ };
41
+ label: {
42
+ paddingInline: "6";
43
+ textStyle: "comp/tag/md";
44
+ };
45
+ };
46
+ };
47
+ }>;
48
+ export default tagSlotRecipe;
@@ -0,0 +1,84 @@
1
+ import { tagAnatomy as e } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
3
+ import { rem as t } from "../themeUtils.js";
4
+ const d = o({
5
+ className: "tag",
6
+ slots: e.keys(),
7
+ base: {
8
+ root: {
9
+ colorPalette: "neutral",
10
+ backgroundColor: "colorPalette.subtle",
11
+ borderRadius: "4",
12
+ border: "1px solid",
13
+ borderColor: "colorPalette.muted",
14
+ display: "inline-flex",
15
+ alignItems: "center",
16
+ overflow: "hidden",
17
+ color: "colorPalette.strong"
18
+ }
19
+ },
20
+ compoundVariants: [
21
+ {
22
+ colorPalette: "neutral",
23
+ disabled: !1,
24
+ css: {
25
+ root: {
26
+ color: "text/primary"
27
+ }
28
+ }
29
+ }
30
+ ],
31
+ variants: {
32
+ disabled: {
33
+ true: {
34
+ root: {
35
+ backgroundColor: "background/disabled",
36
+ borderColor: "border/disabled",
37
+ color: "text/on-disabled"
38
+ }
39
+ },
40
+ false: {}
41
+ },
42
+ size: {
43
+ sm: {
44
+ root: {
45
+ height: "24",
46
+ paddingInline: "4",
47
+ "&:has(button)": {
48
+ paddingInlineEnd: "1"
49
+ }
50
+ },
51
+ label: {
52
+ paddingInline: "4",
53
+ textStyle: "comp/tag/sm"
54
+ },
55
+ endElement: {
56
+ width: "20",
57
+ height: "20"
58
+ }
59
+ },
60
+ md: {
61
+ root: {
62
+ height: "32",
63
+ paddingInline: "6",
64
+ "&:has(button)": {
65
+ paddingInlineEnd: t(3)
66
+ }
67
+ },
68
+ startElement: {
69
+ marginInlineEnd: "-2px"
70
+ },
71
+ label: {
72
+ paddingInline: "6",
73
+ textStyle: "comp/tag/md"
74
+ }
75
+ }
76
+ }
77
+ },
78
+ defaultVariants: {
79
+ size: "md"
80
+ }
81
+ });
82
+ export {
83
+ d as default
84
+ };
@@ -24,7 +24,8 @@ declare const slotRecipes: {
24
24
  };
25
25
  };
26
26
  }>;
27
- emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "description" | "root" | "indicator", {
27
+ checkbox: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "group" | "root" | "control" | "indicator", import('@chakra-ui/react').SlotRecipeVariantRecord<"label" | "group" | "root" | "control" | "indicator">>;
28
+ emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
28
29
  colorScheme: {
29
30
  white: {
30
31
  root: {
@@ -38,7 +39,8 @@ declare const slotRecipes: {
38
39
  };
39
40
  };
40
41
  }>;
41
- 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">>;
42
+ field: import('@chakra-ui/react').SlotRecipeDefinition<"input" | "label" | "select" | "textarea" | "root" | "helperText" | "errorText" | "requiredIndicator", import('@chakra-ui/react').SlotRecipeVariantRecord<"input" | "label" | "select" | "textarea" | "root" | "helperText" | "errorText" | "requiredIndicator">>;
43
+ fieldset: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "legend" | "root" | "helperText" | "errorText", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "legend" | "root" | "helperText" | "errorText">>;
42
44
  nativeSelect: import('@chakra-ui/react').SlotRecipeDefinition<"field" | "root" | "indicator" | "statusIcon", {
43
45
  size: {
44
46
  md: {
@@ -73,7 +75,7 @@ declare const slotRecipes: {
73
75
  };
74
76
  };
75
77
  }>;
76
- switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "control" | "thumb", {
78
+ switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "control" | "indicator" | "thumb", {
77
79
  size: {
78
80
  sm: {
79
81
  root: {
@@ -156,6 +158,53 @@ declare const slotRecipes: {
156
158
  };
157
159
  };
158
160
  }>;
161
+ tag: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "closeTrigger" | "root" | "startElement" | "endElement", {
162
+ disabled: {
163
+ true: {
164
+ root: {
165
+ backgroundColor: "background/disabled";
166
+ borderColor: "border/disabled";
167
+ color: "text/on-disabled";
168
+ };
169
+ };
170
+ false: {};
171
+ };
172
+ size: {
173
+ sm: {
174
+ root: {
175
+ height: "24";
176
+ paddingInline: "4";
177
+ '&:has(button)': {
178
+ paddingInlineEnd: "1";
179
+ };
180
+ };
181
+ label: {
182
+ paddingInline: "4";
183
+ textStyle: "comp/tag/sm";
184
+ };
185
+ endElement: {
186
+ width: "20";
187
+ height: "20";
188
+ };
189
+ };
190
+ md: {
191
+ root: {
192
+ height: "32";
193
+ paddingInline: "6";
194
+ '&:has(button)': {
195
+ paddingInlineEnd: string | number;
196
+ };
197
+ };
198
+ startElement: {
199
+ marginInlineEnd: "-2px";
200
+ };
201
+ label: {
202
+ paddingInline: "6";
203
+ textStyle: "comp/tag/md";
204
+ };
205
+ };
206
+ };
207
+ }>;
159
208
  tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", {
160
209
  size: {
161
210
  sm: {
@@ -1,21 +1,27 @@
1
1
  import t from "./ActionBar.recipe.js";
2
- import e from "./EmptyState.recipe.js";
3
- import o from "./Field.recipe.js";
4
- import i from "./NativeSelect.recipe.js";
5
- import { numberInputSlotRecipe as p } from "./NumberInput.recipe.js";
6
- import r from "./Switch.recipe.js";
7
- import m from "./Tabs.recipe.js";
8
- import c from "./Tooltip.recipe.js";
9
- const b = {
2
+ import e from "./Checkbox.recipe.js";
3
+ import o from "./EmptyState.recipe.js";
4
+ import i from "./Field.recipe.js";
5
+ import p from "./Fieldset.recipe.js";
6
+ import r from "./NativeSelect.recipe.js";
7
+ import { numberInputSlotRecipe as m } from "./NumberInput.recipe.js";
8
+ import c from "./Switch.recipe.js";
9
+ import l from "./Tabs.recipe.js";
10
+ import f from "./Tag.recipe.js";
11
+ import S from "./Tooltip.recipe.js";
12
+ const v = {
10
13
  actionBar: t,
11
- emptyState: e,
12
- field: o,
13
- nativeSelect: i,
14
- numberInput: p,
15
- switch: r,
16
- tabs: m,
17
- tooltip: c
14
+ checkbox: e,
15
+ emptyState: o,
16
+ field: i,
17
+ fieldset: p,
18
+ nativeSelect: r,
19
+ numberInput: m,
20
+ switch: c,
21
+ tabs: l,
22
+ tag: f,
23
+ tooltip: S
18
24
  };
19
25
  export {
20
- b as default
26
+ v as default
21
27
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.79",
4
+ "version": "0.3.81",
5
5
  "description": "Bitrise Design System Components built with Chakra UI v3",
6
6
  "keywords": [
7
7
  "react",
@@ -60,24 +60,24 @@
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.1.0",
64
- "@storybook/react-vite": "10.1.0",
63
+ "@storybook/addon-docs": "10.1.2",
64
+ "@storybook/react-vite": "10.1.2",
65
65
  "@svgr/plugin-jsx": "^8.1.0",
66
66
  "@types/node": "^24.10.1",
67
- "@types/react-dom": "^19.2.3",
68
67
  "@types/react": "^19.2.7",
68
+ "@types/react-dom": "^19.2.3",
69
69
  "@vitejs/plugin-react": "^5.1.1",
70
70
  "axios": "^1.13.2",
71
71
  "es-toolkit": "^1.42.0",
72
- "react-dom": "^19.2.0",
73
72
  "react": "^19.2.0",
73
+ "react-dom": "^19.2.0",
74
74
  "release-it": "^19.0.6",
75
- "storybook": "10.1.0",
76
- "tsx": "^4.20.6",
75
+ "storybook": "10.1.2",
76
+ "tsx": "^4.21.0",
77
77
  "typescript": "^5.9.3",
78
+ "vite": "^7.2.6",
78
79
  "vite-plugin-dts": "^4.5.4",
79
- "vite-plugin-svgr": "^4.5.0",
80
- "vite": "^7.2.4"
80
+ "vite-plugin-svgr": "^4.5.0"
81
81
  },
82
82
  "dependencies": {
83
83
  "@chakra-ui/react": "^3.30.0",