@bitrise/bitkit-v2 0.3.118 → 0.3.119
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 +10 -3
- package/dist/components/BitkitCheckbox/BitkitCheckbox.js +17 -15
- package/dist/components/BitkitCheckboxGroup/BitkitCheckboxGroup.d.ts +2 -1
- package/dist/components/BitkitCheckboxGroup/BitkitCheckboxGroup.js +12 -9
- package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.d.ts +1 -1
- package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.js +17 -9
- package/dist/components/BitkitRadio/BitkitRadio.d.ts +17 -0
- package/dist/components/BitkitRadio/BitkitRadio.js +22 -0
- package/dist/components/BitkitRadioGroup/BitkitRadioGroup.d.ts +17 -0
- package/dist/components/BitkitRadioGroup/BitkitRadioGroup.js +40 -0
- package/dist/components/BitkitTooltip/BitkitTooltip.d.ts +3 -2
- package/dist/components/BitkitTooltip/BitkitTooltip.js +15 -13
- package/dist/components/index.d.ts +2 -0
- package/dist/main.js +1098 -1094
- package/dist/theme/recipes/Badge.recipe.d.ts +8 -0
- package/dist/theme/recipes/Badge.recipe.js +15 -2
- package/dist/theme/recipes/index.d.ts +8 -0
- package/dist/theme/slot-recipes/Checkbox.recipe.d.ts +30 -1
- package/dist/theme/slot-recipes/Checkbox.recipe.js +35 -4
- package/dist/theme/slot-recipes/Fieldset.recipe.js +7 -0
- package/dist/theme/slot-recipes/RadioGroup.recipe.d.ts +38 -0
- package/dist/theme/slot-recipes/RadioGroup.recipe.js +93 -0
- package/dist/theme/slot-recipes/Select.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/index.d.ts +68 -2
- package/dist/theme/slot-recipes/index.js +16 -14
- package/package.json +1 -1
|
@@ -5,14 +5,23 @@ const t = e({
|
|
|
5
5
|
colorPalette: "neutral",
|
|
6
6
|
display: "inline-flex",
|
|
7
7
|
alignItems: "center",
|
|
8
|
+
justifyContent: "center",
|
|
8
9
|
gap: "4",
|
|
9
|
-
|
|
10
|
+
paddingInline: "4",
|
|
10
11
|
borderRadius: "4",
|
|
11
12
|
textStyle: "comp/badge/sm",
|
|
12
13
|
color: "colorPalette.strong",
|
|
13
14
|
background: "colorPalette.subtle"
|
|
14
15
|
},
|
|
15
16
|
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
xxs: {
|
|
19
|
+
paddingBlock: "2"
|
|
20
|
+
},
|
|
21
|
+
xs: {
|
|
22
|
+
paddingBlock: "4"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
16
25
|
variant: {
|
|
17
26
|
subtle: {
|
|
18
27
|
color: "colorPalette.strong",
|
|
@@ -33,7 +42,11 @@ const t = e({
|
|
|
33
42
|
color: "text/primary"
|
|
34
43
|
}
|
|
35
44
|
}
|
|
36
|
-
]
|
|
45
|
+
],
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
variant: "subtle",
|
|
48
|
+
size: "xs"
|
|
49
|
+
}
|
|
37
50
|
});
|
|
38
51
|
export {
|
|
39
52
|
t as default
|
|
@@ -1,2 +1,31 @@
|
|
|
1
|
-
declare const checkboxSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "group" | "control",
|
|
1
|
+
declare const checkboxSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "group" | "control", {
|
|
2
|
+
size: {
|
|
3
|
+
md: {
|
|
4
|
+
control: {
|
|
5
|
+
width: "20";
|
|
6
|
+
height: "20";
|
|
7
|
+
'& > svg': {
|
|
8
|
+
width: "20";
|
|
9
|
+
height: "20";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
label: {
|
|
13
|
+
textStyle: "body/md/regular";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
lg: {
|
|
17
|
+
control: {
|
|
18
|
+
width: "24";
|
|
19
|
+
height: "24";
|
|
20
|
+
'& > svg': {
|
|
21
|
+
width: "24";
|
|
22
|
+
height: "24";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
label: {
|
|
26
|
+
textStyle: "body/lg/regular";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
2
31
|
export default checkboxSlotRecipe;
|
|
@@ -7,11 +7,10 @@ const l = e({
|
|
|
7
7
|
root: {
|
|
8
8
|
display: "inline-flex",
|
|
9
9
|
alignItems: "flex-start",
|
|
10
|
-
gap: "8px"
|
|
10
|
+
gap: "8px",
|
|
11
|
+
width: "fit-content"
|
|
11
12
|
},
|
|
12
13
|
control: {
|
|
13
|
-
width: "24",
|
|
14
|
-
height: "24",
|
|
15
14
|
position: "relative",
|
|
16
15
|
borderRadius: "4",
|
|
17
16
|
backgroundColor: "background/primary",
|
|
@@ -73,7 +72,6 @@ const l = e({
|
|
|
73
72
|
}
|
|
74
73
|
},
|
|
75
74
|
label: {
|
|
76
|
-
textStyle: "body/lg/regular",
|
|
77
75
|
userSelect: "none",
|
|
78
76
|
color: "input/text/inputValue",
|
|
79
77
|
_disabled: {
|
|
@@ -83,6 +81,39 @@ const l = e({
|
|
|
83
81
|
color: "text/disabled"
|
|
84
82
|
}
|
|
85
83
|
}
|
|
84
|
+
},
|
|
85
|
+
variants: {
|
|
86
|
+
size: {
|
|
87
|
+
md: {
|
|
88
|
+
control: {
|
|
89
|
+
width: "20",
|
|
90
|
+
height: "20",
|
|
91
|
+
"& > svg": {
|
|
92
|
+
width: "20",
|
|
93
|
+
height: "20"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
label: {
|
|
97
|
+
textStyle: "body/md/regular"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
lg: {
|
|
101
|
+
control: {
|
|
102
|
+
width: "24",
|
|
103
|
+
height: "24",
|
|
104
|
+
"& > svg": {
|
|
105
|
+
width: "24",
|
|
106
|
+
height: "24"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
label: {
|
|
110
|
+
textStyle: "body/lg/regular"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
defaultVariants: {
|
|
116
|
+
size: "lg"
|
|
86
117
|
}
|
|
87
118
|
});
|
|
88
119
|
export {
|
|
@@ -4,11 +4,18 @@ const r = t({
|
|
|
4
4
|
className: "fieldset",
|
|
5
5
|
slots: e.keys(),
|
|
6
6
|
base: {
|
|
7
|
+
errorText: {
|
|
8
|
+
display: "block",
|
|
9
|
+
marginBlockStart: "12",
|
|
10
|
+
textStyle: "comp/input/helperText",
|
|
11
|
+
color: "input/text/error"
|
|
12
|
+
},
|
|
7
13
|
legend: {
|
|
8
14
|
textStyle: "body/md/semibold",
|
|
9
15
|
color: "text/primary"
|
|
10
16
|
},
|
|
11
17
|
helperText: {
|
|
18
|
+
display: "block",
|
|
12
19
|
marginBlockStart: "4",
|
|
13
20
|
textStyle: "comp/input/helperText",
|
|
14
21
|
color: "text/helper"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const radioGroupSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "item" | "itemText" | "itemControl" | "itemAddon" | "itemIndicator", {
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
root: {
|
|
5
|
+
flexDirection: "row";
|
|
6
|
+
gap: "24";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
vertical: {
|
|
10
|
+
root: {
|
|
11
|
+
alignItems: "flex-start";
|
|
12
|
+
flexDirection: "column";
|
|
13
|
+
gap: "12";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
md: {
|
|
19
|
+
itemControl: {
|
|
20
|
+
width: "20";
|
|
21
|
+
height: "20";
|
|
22
|
+
};
|
|
23
|
+
itemText: {
|
|
24
|
+
textStyle: "body/md/regular";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
lg: {
|
|
28
|
+
itemControl: {
|
|
29
|
+
width: "24";
|
|
30
|
+
height: "24";
|
|
31
|
+
};
|
|
32
|
+
itemText: {
|
|
33
|
+
textStyle: "body/lg/regular";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
export default radioGroupSlotRecipe;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { radioGroupAnatomy as o } from "@chakra-ui/react/anatomy";
|
|
2
|
+
import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
|
|
3
|
+
const i = e({
|
|
4
|
+
className: "radio-group",
|
|
5
|
+
slots: o.keys(),
|
|
6
|
+
base: {
|
|
7
|
+
root: {
|
|
8
|
+
display: "flex"
|
|
9
|
+
},
|
|
10
|
+
item: {
|
|
11
|
+
display: "inline-flex",
|
|
12
|
+
gap: "8",
|
|
13
|
+
alignItems: "flex-start",
|
|
14
|
+
justifyContent: "center"
|
|
15
|
+
},
|
|
16
|
+
itemControl: {
|
|
17
|
+
border: "1px solid",
|
|
18
|
+
borderColor: "border/regular",
|
|
19
|
+
backgroundColor: "background/primary",
|
|
20
|
+
borderRadius: "50%",
|
|
21
|
+
display: "flex",
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
focusVisibleRing: "outside",
|
|
25
|
+
"& > .dot": {
|
|
26
|
+
width: "12",
|
|
27
|
+
height: "12",
|
|
28
|
+
borderRadius: "50%",
|
|
29
|
+
backgroundColor: "icon/interactive"
|
|
30
|
+
},
|
|
31
|
+
_hover: {
|
|
32
|
+
borderColor: "border/hover"
|
|
33
|
+
},
|
|
34
|
+
_disabled: {
|
|
35
|
+
backgroundColor: "background/disabled",
|
|
36
|
+
borderColor: "border/disabled",
|
|
37
|
+
"& > .dot": {
|
|
38
|
+
backgroundColor: "icon/disabled"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
itemText: {
|
|
43
|
+
color: "input/text/inputValue",
|
|
44
|
+
_disabled: {
|
|
45
|
+
color: "text/disabled"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
variants: {
|
|
50
|
+
orientation: {
|
|
51
|
+
horizontal: {
|
|
52
|
+
root: {
|
|
53
|
+
flexDirection: "row",
|
|
54
|
+
gap: "24"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
vertical: {
|
|
58
|
+
root: {
|
|
59
|
+
alignItems: "flex-start",
|
|
60
|
+
flexDirection: "column",
|
|
61
|
+
gap: "12"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
size: {
|
|
66
|
+
md: {
|
|
67
|
+
itemControl: {
|
|
68
|
+
width: "20",
|
|
69
|
+
height: "20"
|
|
70
|
+
},
|
|
71
|
+
itemText: {
|
|
72
|
+
textStyle: "body/md/regular"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
lg: {
|
|
76
|
+
itemControl: {
|
|
77
|
+
width: "24",
|
|
78
|
+
height: "24"
|
|
79
|
+
},
|
|
80
|
+
itemText: {
|
|
81
|
+
textStyle: "body/lg/regular"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
defaultVariants: {
|
|
87
|
+
orientation: "horizontal",
|
|
88
|
+
size: "lg"
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
export {
|
|
92
|
+
i as default
|
|
93
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const selectSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "trigger" | "positioner" | "root" | "indicator" | "list" | "control" | "valueText" | "
|
|
1
|
+
export declare const selectSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "trigger" | "positioner" | "root" | "indicator" | "list" | "control" | "valueText" | "item" | "itemText" | "itemIndicator" | "clearTrigger" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "searchInputGroup" | "searchInput", {
|
|
2
2
|
size: {
|
|
3
3
|
md: {
|
|
4
4
|
item: {
|
|
@@ -217,7 +217,36 @@ declare const slotRecipes: {
|
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
219
|
}>;
|
|
220
|
-
checkbox: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "group" | "control",
|
|
220
|
+
checkbox: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "group" | "control", {
|
|
221
|
+
size: {
|
|
222
|
+
md: {
|
|
223
|
+
control: {
|
|
224
|
+
width: "20";
|
|
225
|
+
height: "20";
|
|
226
|
+
'& > svg': {
|
|
227
|
+
width: "20";
|
|
228
|
+
height: "20";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
label: {
|
|
232
|
+
textStyle: "body/md/regular";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
lg: {
|
|
236
|
+
control: {
|
|
237
|
+
width: "24";
|
|
238
|
+
height: "24";
|
|
239
|
+
'& > svg': {
|
|
240
|
+
width: "24";
|
|
241
|
+
height: "24";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
label: {
|
|
245
|
+
textStyle: "body/lg/regular";
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
}>;
|
|
221
250
|
emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "description" | "root" | "indicator", {
|
|
222
251
|
colorScheme: {
|
|
223
252
|
white: {
|
|
@@ -355,7 +384,44 @@ declare const slotRecipes: {
|
|
|
355
384
|
};
|
|
356
385
|
};
|
|
357
386
|
}>;
|
|
358
|
-
|
|
387
|
+
radioGroup: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "item" | "itemText" | "itemControl" | "itemAddon" | "itemIndicator", {
|
|
388
|
+
orientation: {
|
|
389
|
+
horizontal: {
|
|
390
|
+
root: {
|
|
391
|
+
flexDirection: "row";
|
|
392
|
+
gap: "24";
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
vertical: {
|
|
396
|
+
root: {
|
|
397
|
+
alignItems: "flex-start";
|
|
398
|
+
flexDirection: "column";
|
|
399
|
+
gap: "12";
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
size: {
|
|
404
|
+
md: {
|
|
405
|
+
itemControl: {
|
|
406
|
+
width: "20";
|
|
407
|
+
height: "20";
|
|
408
|
+
};
|
|
409
|
+
itemText: {
|
|
410
|
+
textStyle: "body/md/regular";
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
lg: {
|
|
414
|
+
itemControl: {
|
|
415
|
+
width: "24";
|
|
416
|
+
height: "24";
|
|
417
|
+
};
|
|
418
|
+
itemText: {
|
|
419
|
+
textStyle: "body/lg/regular";
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
}>;
|
|
424
|
+
select: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "trigger" | "positioner" | "root" | "indicator" | "list" | "control" | "valueText" | "item" | "itemText" | "itemIndicator" | "clearTrigger" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "searchInputGroup" | "searchInput", {
|
|
359
425
|
size: {
|
|
360
426
|
md: {
|
|
361
427
|
item: {
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import t from "./ActionBar.recipe.js";
|
|
2
2
|
import e from "./Alert.recipe.js";
|
|
3
3
|
import o from "./Avatar.recipe.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import r from "./Card.recipe.js";
|
|
5
|
+
import i from "./Checkbox.recipe.js";
|
|
6
6
|
import p from "./EmptyState.recipe.js";
|
|
7
7
|
import m from "./ExpandableCard.recipe.js";
|
|
8
8
|
import c from "./Field.recipe.js";
|
|
9
9
|
import l from "./Fieldset.recipe.js";
|
|
10
10
|
import a from "./NativeSelect.recipe.js";
|
|
11
11
|
import { numberInputSlotRecipe as f } from "./NumberInput.recipe.js";
|
|
12
|
-
import
|
|
13
|
-
import R from "./
|
|
12
|
+
import S from "./RadioGroup.recipe.js";
|
|
13
|
+
import { selectSlotRecipe as R } from "./Select.recipe.js";
|
|
14
|
+
import d from "./Switch.recipe.js";
|
|
14
15
|
import s from "./Tabs.recipe.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
16
|
+
import n from "./Tag.recipe.js";
|
|
17
|
+
import b from "./Tooltip.recipe.js";
|
|
18
|
+
const E = {
|
|
18
19
|
actionBar: t,
|
|
19
20
|
avatar: o,
|
|
20
|
-
card:
|
|
21
|
-
checkbox:
|
|
21
|
+
card: r,
|
|
22
|
+
checkbox: i,
|
|
22
23
|
emptyState: p,
|
|
23
24
|
expandableCard: m,
|
|
24
25
|
field: c,
|
|
@@ -26,12 +27,13 @@ const D = {
|
|
|
26
27
|
nativeSelect: a,
|
|
27
28
|
alert: e,
|
|
28
29
|
numberInput: f,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
radioGroup: S,
|
|
31
|
+
select: R,
|
|
32
|
+
switch: d,
|
|
31
33
|
tabs: s,
|
|
32
|
-
tag:
|
|
33
|
-
tooltip:
|
|
34
|
+
tag: n,
|
|
35
|
+
tooltip: b
|
|
34
36
|
};
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
E as default
|
|
37
39
|
};
|