@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.
Files changed (26) hide show
  1. package/dist/components/BitkitCheckbox/BitkitCheckbox.d.ts +10 -3
  2. package/dist/components/BitkitCheckbox/BitkitCheckbox.js +17 -15
  3. package/dist/components/BitkitCheckboxGroup/BitkitCheckboxGroup.d.ts +2 -1
  4. package/dist/components/BitkitCheckboxGroup/BitkitCheckboxGroup.js +12 -9
  5. package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.d.ts +1 -1
  6. package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.js +17 -9
  7. package/dist/components/BitkitRadio/BitkitRadio.d.ts +17 -0
  8. package/dist/components/BitkitRadio/BitkitRadio.js +22 -0
  9. package/dist/components/BitkitRadioGroup/BitkitRadioGroup.d.ts +17 -0
  10. package/dist/components/BitkitRadioGroup/BitkitRadioGroup.js +40 -0
  11. package/dist/components/BitkitTooltip/BitkitTooltip.d.ts +3 -2
  12. package/dist/components/BitkitTooltip/BitkitTooltip.js +15 -13
  13. package/dist/components/index.d.ts +2 -0
  14. package/dist/main.js +1098 -1094
  15. package/dist/theme/recipes/Badge.recipe.d.ts +8 -0
  16. package/dist/theme/recipes/Badge.recipe.js +15 -2
  17. package/dist/theme/recipes/index.d.ts +8 -0
  18. package/dist/theme/slot-recipes/Checkbox.recipe.d.ts +30 -1
  19. package/dist/theme/slot-recipes/Checkbox.recipe.js +35 -4
  20. package/dist/theme/slot-recipes/Fieldset.recipe.js +7 -0
  21. package/dist/theme/slot-recipes/RadioGroup.recipe.d.ts +38 -0
  22. package/dist/theme/slot-recipes/RadioGroup.recipe.js +93 -0
  23. package/dist/theme/slot-recipes/Select.recipe.d.ts +1 -1
  24. package/dist/theme/slot-recipes/index.d.ts +68 -2
  25. package/dist/theme/slot-recipes/index.js +16 -14
  26. package/package.json +1 -1
@@ -1,4 +1,12 @@
1
1
  declare const badgeRecipe: import('@chakra-ui/react').RecipeDefinition<{
2
+ size: {
3
+ xxs: {
4
+ paddingBlock: "2";
5
+ };
6
+ xs: {
7
+ paddingBlock: "4";
8
+ };
9
+ };
2
10
  variant: {
3
11
  subtle: {
4
12
  color: "colorPalette.strong";
@@ -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
- padding: "4",
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,5 +1,13 @@
1
1
  declare const recipes: {
2
2
  badge: import('@chakra-ui/react').RecipeDefinition<{
3
+ size: {
4
+ xxs: {
5
+ paddingBlock: "2";
6
+ };
7
+ xs: {
8
+ paddingBlock: "4";
9
+ };
10
+ };
3
11
  variant: {
4
12
  subtle: {
5
13
  color: "colorPalette.strong";
@@ -1,2 +1,31 @@
1
- declare const checkboxSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "group" | "control", import('@chakra-ui/react').SlotRecipeVariantRecord<"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" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "searchInputGroup" | "searchInput", {
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", import('@chakra-ui/react').SlotRecipeVariantRecord<"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
- select: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "trigger" | "positioner" | "root" | "indicator" | "list" | "control" | "valueText" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "searchInputGroup" | "searchInput", {
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 i from "./Card.recipe.js";
5
- import r from "./Checkbox.recipe.js";
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 { selectSlotRecipe as S } from "./Select.recipe.js";
13
- import R from "./Switch.recipe.js";
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 d from "./Tag.recipe.js";
16
- import n from "./Tooltip.recipe.js";
17
- const D = {
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: i,
21
- checkbox: r,
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
- select: S,
30
- switch: R,
30
+ radioGroup: S,
31
+ select: R,
32
+ switch: d,
31
33
  tabs: s,
32
- tag: d,
33
- tooltip: n
34
+ tag: n,
35
+ tooltip: b
34
36
  };
35
37
  export {
36
- D as default
38
+ E as default
37
39
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.118",
4
+ "version": "0.3.119",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",