@bitrise/bitkit-v2 0.3.80 → 0.3.82
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.
- package/dist/components/BitkitCheckbox/BitkitCheckbox.d.ts +8 -0
- package/dist/components/BitkitCheckbox/BitkitCheckbox.js +20 -0
- package/dist/components/BitkitCheckboxGroup/BitkitCheckboxGroup.d.ts +14 -0
- package/dist/components/BitkitCheckboxGroup/BitkitCheckboxGroup.js +14 -0
- package/dist/components/BitkitColorButton/BitkitColorButton.js +3 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/main.js +1092 -1088
- package/dist/theme/recipes/Skeleton.recipe.js +2 -3
- package/dist/theme/semantic-tokens/semanticColors.js +14 -2
- package/dist/theme/slot-recipes/Checkbox.recipe.d.ts +2 -0
- package/dist/theme/slot-recipes/Checkbox.recipe.js +90 -0
- package/dist/theme/slot-recipes/EmptyState.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Field.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Fieldset.recipe.d.ts +2 -0
- package/dist/theme/slot-recipes/Fieldset.recipe.js +20 -0
- package/dist/theme/slot-recipes/Switch.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/index.d.ts +5 -3
- package/dist/theme/slot-recipes/index.js +22 -18
- package/package.json +5 -5
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineRecipe as e } from "@chakra-ui/react/styled-system";
|
|
2
|
-
const
|
|
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
8
|
"--end-color": "colors.utilities.skeleton-strong",
|
|
9
|
-
overflow: "hidden",
|
|
10
9
|
display: "flex",
|
|
11
10
|
alignItems: "center",
|
|
12
11
|
justifyContent: "center"
|
|
@@ -39,5 +38,5 @@ const r = e({
|
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
t as default
|
|
43
42
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineSemanticTokens as l } from "@chakra-ui/react/styled-system";
|
|
2
|
-
import { withSlashes as
|
|
2
|
+
import { withSlashes as e } from "../themeUtils.js";
|
|
3
3
|
const r = l.colors(
|
|
4
|
-
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
1
|
+
declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "control" | "indicator" | "thumb", {
|
|
2
2
|
size: {
|
|
3
3
|
sm: {
|
|
4
4
|
root: {
|
|
@@ -24,7 +24,8 @@ declare const slotRecipes: {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
|
-
|
|
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" | "
|
|
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" | "
|
|
78
|
+
switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "control" | "indicator" | "thumb", {
|
|
77
79
|
size: {
|
|
78
80
|
sm: {
|
|
79
81
|
root: {
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import t from "./ActionBar.recipe.js";
|
|
2
|
-
import e from "./
|
|
3
|
-
import o from "./
|
|
4
|
-
import i from "./
|
|
5
|
-
import
|
|
6
|
-
import r from "./
|
|
7
|
-
import m from "./
|
|
8
|
-
import c from "./
|
|
9
|
-
import l from "./
|
|
10
|
-
|
|
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 = {
|
|
11
13
|
actionBar: t,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
20
24
|
};
|
|
21
25
|
export {
|
|
22
|
-
|
|
26
|
+
v as default
|
|
23
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.
|
|
4
|
+
"version": "0.3.82",
|
|
5
5
|
"description": "Bitrise Design System Components built with Chakra UI v3",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react",
|
|
@@ -64,20 +64,20 @@
|
|
|
64
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
75
|
"storybook": "10.1.2",
|
|
76
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.6"
|
|
80
|
+
"vite-plugin-svgr": "^4.5.0"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@chakra-ui/react": "^3.30.0",
|