@bitrise/bitkit-v2 0.3.140 → 0.3.142

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 (28) hide show
  1. package/dist/components/BitkitCombobox/BitkitCombobox.d.ts +21 -0
  2. package/dist/components/BitkitCombobox/BitkitCombobox.js +107 -0
  3. package/dist/components/BitkitControlButton/BitkitControlButton.d.ts +14 -0
  4. package/dist/components/BitkitControlButton/BitkitControlButton.js +23 -0
  5. package/dist/components/BitkitSelect/BitkitSelect.js +20 -20
  6. package/dist/components/BitkitSelectMenu/BitkitSelectMenu.js +16 -16
  7. package/dist/components/index.d.ts +2 -0
  8. package/dist/main.js +582 -578
  9. package/dist/theme/common/ComboboxAndSelect.common.d.ts +3 -0
  10. package/dist/theme/common/ComboboxAndSelect.common.js +85 -0
  11. package/dist/theme/{recipes/common → common}/InputAndTextarea.common.js +1 -1
  12. package/dist/theme/recipes/ControlButton.recipe.d.ts +50 -0
  13. package/dist/theme/recipes/ControlButton.recipe.js +67 -0
  14. package/dist/theme/recipes/Input.recipe.js +1 -1
  15. package/dist/theme/recipes/Textarea.recipe.js +1 -1
  16. package/dist/theme/recipes/index.d.ts +49 -0
  17. package/dist/theme/recipes/index.js +18 -16
  18. package/dist/theme/slot-recipes/Combobox.recipe.d.ts +11 -0
  19. package/dist/theme/slot-recipes/Combobox.recipe.js +53 -0
  20. package/dist/theme/slot-recipes/DatePickerSelect.recipe.d.ts +1 -18
  21. package/dist/theme/slot-recipes/NativeSelect.recipe.js +10 -22
  22. package/dist/theme/slot-recipes/Select.recipe.d.ts +3 -19
  23. package/dist/theme/slot-recipes/Select.recipe.js +25 -91
  24. package/dist/theme/slot-recipes/index.d.ts +14 -37
  25. package/dist/theme/slot-recipes/index.js +36 -34
  26. package/dist/utilities/AssetSelectChevron.js +21 -13
  27. package/package.json +8 -8
  28. /package/dist/theme/{recipes/common → common}/InputAndTextarea.common.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import { SystemStyleObject } from '@chakra-ui/react/styled-system';
2
+ export declare const base: Record<string, SystemStyleObject>;
3
+ export declare const variants: Record<'size', Record<'md' | 'lg', Record<string, SystemStyleObject>>>;
@@ -0,0 +1,85 @@
1
+ import { rem as e } from "../themeUtils.js";
2
+ const i = {
3
+ content: {
4
+ background: "background/primary",
5
+ border: "1px solid",
6
+ borderColor: "border/minimal",
7
+ zIndex: "select",
8
+ overflowY: "auto",
9
+ boxShadow: "large",
10
+ _open: {
11
+ animationStyle: "slide-fade-in",
12
+ animationDuration: "fast"
13
+ },
14
+ _closed: {
15
+ animationStyle: "slide-fade-out",
16
+ animationDuration: "fastest"
17
+ }
18
+ },
19
+ item: {
20
+ position: "relative",
21
+ userSelect: "none",
22
+ display: "flex",
23
+ alignItems: "center",
24
+ gap: "12",
25
+ cursor: "option",
26
+ justifyContent: "space-between",
27
+ flex: "1",
28
+ textAlign: "start",
29
+ lineHeight: e(24),
30
+ _highlighted: {
31
+ bg: "background/hover"
32
+ },
33
+ _selected: {
34
+ bg: "background/selected"
35
+ }
36
+ },
37
+ itemIndicator: {
38
+ alignItems: "center",
39
+ color: "icon/interactive",
40
+ display: "flex",
41
+ justifyContent: "center"
42
+ },
43
+ itemGroupLabel: {
44
+ alignItems: "center",
45
+ display: "flex",
46
+ gap: "16",
47
+ paddingBlock: "12",
48
+ paddingInline: "16"
49
+ }
50
+ }, n = {
51
+ size: {
52
+ lg: {
53
+ item: {
54
+ paddingInline: "16",
55
+ paddingBlock: "12",
56
+ textStyle: "body/lg/regular",
57
+ _selected: {
58
+ textStyle: "body/lg/semibold"
59
+ }
60
+ },
61
+ itemIndicator: {
62
+ width: "24",
63
+ height: "24"
64
+ }
65
+ },
66
+ md: {
67
+ item: {
68
+ paddingBlock: "8",
69
+ paddingInline: "16",
70
+ textStyle: "body/md/regular",
71
+ _selected: {
72
+ textStyle: "body/md/semibold"
73
+ }
74
+ },
75
+ itemIndicator: {
76
+ width: "16",
77
+ height: "16"
78
+ }
79
+ }
80
+ }
81
+ };
82
+ export {
83
+ i as base,
84
+ n as variants
85
+ };
@@ -1,4 +1,4 @@
1
- import { rem as r } from "../../themeUtils.js";
1
+ import { rem as r } from "../themeUtils.js";
2
2
  const e = {
3
3
  appearance: "none",
4
4
  background: "background/primary",
@@ -0,0 +1,50 @@
1
+ declare const controlButtonRecipe: import('@chakra-ui/react').RecipeDefinition<{
2
+ isDanger: {
3
+ false: {
4
+ color: "button/secondary/fg";
5
+ _hover: {
6
+ background: "button/tertiary/bg-hover";
7
+ color: "button/secondary/fg-hover";
8
+ };
9
+ _active: {
10
+ background: "button/tertiary/bg-active";
11
+ color: "button/secondary/fg-active";
12
+ };
13
+ _disabled: {
14
+ color: "button/secondary/fg-disabled!";
15
+ };
16
+ };
17
+ true: {
18
+ color: "button/danger-secondary/fg";
19
+ _hover: {
20
+ background: "button/danger-secondary/bg-hover";
21
+ color: "button/danger-secondary/fg-hover";
22
+ };
23
+ _active: {
24
+ background: "button/danger-secondary/bg-active";
25
+ color: "button/danger-secondary/fg-active";
26
+ };
27
+ _disabled: {
28
+ color: "button/danger-secondary/fg-disabled!";
29
+ };
30
+ };
31
+ };
32
+ size: {
33
+ xxs: {
34
+ padding: "4";
35
+ };
36
+ xs: {
37
+ padding: "8";
38
+ };
39
+ sm: {
40
+ padding: "4";
41
+ };
42
+ md: {
43
+ padding: "8";
44
+ };
45
+ lg: {
46
+ padding: "12";
47
+ };
48
+ };
49
+ }>;
50
+ export default controlButtonRecipe;
@@ -0,0 +1,67 @@
1
+ import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
+ const r = e({
3
+ className: "control-button",
4
+ base: {
5
+ display: "inline-flex",
6
+ alignItems: "center",
7
+ justifyContent: "center",
8
+ borderRadius: "4",
9
+ cursor: "pointer",
10
+ background: "transparent",
11
+ _disabled: {
12
+ cursor: "not-allowed",
13
+ _hover: {
14
+ background: "transparent"
15
+ },
16
+ _active: {
17
+ background: "transparent"
18
+ }
19
+ }
20
+ },
21
+ variants: {
22
+ isDanger: {
23
+ false: {
24
+ color: "button/secondary/fg",
25
+ _hover: {
26
+ background: "button/tertiary/bg-hover",
27
+ color: "button/secondary/fg-hover"
28
+ },
29
+ _active: {
30
+ background: "button/tertiary/bg-active",
31
+ color: "button/secondary/fg-active"
32
+ },
33
+ _disabled: {
34
+ color: "button/secondary/fg-disabled!"
35
+ }
36
+ },
37
+ true: {
38
+ color: "button/danger-secondary/fg",
39
+ _hover: {
40
+ background: "button/danger-secondary/bg-hover",
41
+ color: "button/danger-secondary/fg-hover"
42
+ },
43
+ _active: {
44
+ background: "button/danger-secondary/bg-active",
45
+ color: "button/danger-secondary/fg-active"
46
+ },
47
+ _disabled: {
48
+ color: "button/danger-secondary/fg-disabled!"
49
+ }
50
+ }
51
+ },
52
+ size: {
53
+ xxs: { padding: "4" },
54
+ xs: { padding: "8" },
55
+ sm: { padding: "4" },
56
+ md: { padding: "8" },
57
+ lg: { padding: "12" }
58
+ }
59
+ },
60
+ defaultVariants: {
61
+ isDanger: !1,
62
+ size: "sm"
63
+ }
64
+ });
65
+ export {
66
+ r as default
67
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
- import { defaultVariants as a, variants as t, base as i } from "./common/InputAndTextarea.common.js";
2
+ import { defaultVariants as a, variants as t, base as i } from "../common/InputAndTextarea.common.js";
3
3
  const s = e({
4
4
  className: "input",
5
5
  base: i,
@@ -1,5 +1,5 @@
1
1
  import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
- import { defaultVariants as a, variants as t, base as r } from "./common/InputAndTextarea.common.js";
2
+ import { defaultVariants as a, variants as t, base as r } from "../common/InputAndTextarea.common.js";
3
3
  const o = e({
4
4
  className: "textarea",
5
5
  base: r,
@@ -62,6 +62,55 @@ declare const recipes: {
62
62
  };
63
63
  };
64
64
  }>;
65
+ controlButton: import('@chakra-ui/react').RecipeDefinition<{
66
+ isDanger: {
67
+ false: {
68
+ color: "button/secondary/fg";
69
+ _hover: {
70
+ background: "button/tertiary/bg-hover";
71
+ color: "button/secondary/fg-hover";
72
+ };
73
+ _active: {
74
+ background: "button/tertiary/bg-active";
75
+ color: "button/secondary/fg-active";
76
+ };
77
+ _disabled: {
78
+ color: "button/secondary/fg-disabled!";
79
+ };
80
+ };
81
+ true: {
82
+ color: "button/danger-secondary/fg";
83
+ _hover: {
84
+ background: "button/danger-secondary/bg-hover";
85
+ color: "button/danger-secondary/fg-hover";
86
+ };
87
+ _active: {
88
+ background: "button/danger-secondary/bg-active";
89
+ color: "button/danger-secondary/fg-active";
90
+ };
91
+ _disabled: {
92
+ color: "button/danger-secondary/fg-disabled!";
93
+ };
94
+ };
95
+ };
96
+ size: {
97
+ xxs: {
98
+ padding: "4";
99
+ };
100
+ xs: {
101
+ padding: "8";
102
+ };
103
+ sm: {
104
+ padding: "4";
105
+ };
106
+ md: {
107
+ padding: "8";
108
+ };
109
+ lg: {
110
+ padding: "12";
111
+ };
112
+ };
113
+ }>;
65
114
  colorButton: import('@chakra-ui/react').RecipeDefinition<{
66
115
  size: {
67
116
  sm: {
@@ -1,27 +1,29 @@
1
1
  import o from "./Badge.recipe.js";
2
- import e from "./Button.recipe.js";
3
- import t from "./CloseButton.recipe.js";
2
+ import t from "./Button.recipe.js";
3
+ import e from "./CloseButton.recipe.js";
4
4
  import i from "./ColorButton.recipe.js";
5
- import r from "./DefinitionTooltip.recipe.js";
6
- import p from "./Input.recipe.js";
5
+ import r from "./ControlButton.recipe.js";
6
+ import p from "./DefinitionTooltip.recipe.js";
7
+ import n from "./Input.recipe.js";
7
8
  import m from "./Link.recipe.js";
8
- import n from "./Separator.recipe.js";
9
- import c from "./Skeleton.recipe.js";
10
- import f from "./Spinner.recipe.js";
9
+ import c from "./Separator.recipe.js";
10
+ import f from "./Skeleton.recipe.js";
11
+ import l from "./Spinner.recipe.js";
11
12
  import a from "./Textarea.recipe.js";
12
- const h = {
13
+ const q = {
13
14
  badge: o,
14
- button: e,
15
- closeButton: t,
15
+ button: t,
16
+ closeButton: e,
17
+ controlButton: r,
16
18
  colorButton: i,
17
- definitionTooltip: r,
18
- input: p,
19
+ definitionTooltip: p,
20
+ input: n,
19
21
  link: m,
20
- separator: n,
21
- skeleton: c,
22
- spinner: f,
22
+ separator: c,
23
+ skeleton: f,
24
+ spinner: l,
23
25
  textarea: a
24
26
  };
25
27
  export {
26
- h as default
28
+ q as default
27
29
  };
@@ -0,0 +1,11 @@
1
+ declare const comboboxSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "input" | "label" | "root" | "item" | "itemIndicator" | "trigger" | "positioner" | "list" | "clearTrigger" | "control" | "itemText" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "empty" | "emptyHelperText", {
2
+ size: {
3
+ md: {
4
+ input: import('@chakra-ui/react').SystemStyleObject;
5
+ };
6
+ lg: {
7
+ input: import('@chakra-ui/react').SystemStyleObject;
8
+ };
9
+ };
10
+ }>;
11
+ export default comboboxSlotRecipe;
@@ -0,0 +1,53 @@
1
+ import { comboboxAnatomy as o } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as a } from "@chakra-ui/react/styled-system";
3
+ import { variants as e, base as i } from "../common/ComboboxAndSelect.common.js";
4
+ import { variants as t, base as s } from "../common/InputAndTextarea.common.js";
5
+ const m = a({
6
+ className: "combobox",
7
+ slots: [...o.keys(), "emptyHelperText"],
8
+ base: {
9
+ control: {
10
+ display: "flex",
11
+ alignItems: "center",
12
+ position: "relative"
13
+ },
14
+ input: s,
15
+ empty: {
16
+ paddingInline: "16",
17
+ paddingBlock: "8",
18
+ textStyle: "body/lg/regular"
19
+ },
20
+ emptyHelperText: {
21
+ color: "text/helper",
22
+ textStyle: "body/sm/regular"
23
+ },
24
+ ...i,
25
+ indicatorGroup: {
26
+ display: "flex",
27
+ alignItems: "center",
28
+ gap: "8",
29
+ position: "absolute",
30
+ right: "16",
31
+ top: "50%",
32
+ transform: "translateY(-50%)"
33
+ }
34
+ },
35
+ variants: {
36
+ size: {
37
+ md: {
38
+ input: t.size.md,
39
+ ...e.size.md
40
+ },
41
+ lg: {
42
+ input: t.size.lg,
43
+ ...e.size.lg
44
+ }
45
+ }
46
+ },
47
+ defaultVariants: {
48
+ size: "lg"
49
+ }
50
+ });
51
+ export {
52
+ m as default
53
+ };
@@ -4,7 +4,6 @@ declare const datePickerSelectSlotRecipe: import('@chakra-ui/react').SlotRecipeD
4
4
  trigger: {
5
5
  paddingBlock: "6";
6
6
  textStyle?: "body/md/regular" | undefined;
7
- py?: string | undefined;
8
7
  };
9
8
  indicator: {
10
9
  _icon: {
@@ -12,22 +11,6 @@ declare const datePickerSelectSlotRecipe: import('@chakra-ui/react').SlotRecipeD
12
11
  height: "16";
13
12
  };
14
13
  };
15
- item?: {
16
- py: "8";
17
- px: "16";
18
- textStyle: "body/md/regular";
19
- _selected: {
20
- textStyle: "body/md/semibold";
21
- };
22
- } | undefined;
23
- itemIndicator?: {
24
- width: "16";
25
- height: "16";
26
- } | undefined;
27
- itemGroupLabel?: {
28
- py: "12";
29
- px: "16";
30
- } | undefined;
31
14
  searchInput?: {
32
15
  paddingBlock: "12";
33
16
  textStyle: "body/md/regular";
@@ -35,7 +18,7 @@ declare const datePickerSelectSlotRecipe: import('@chakra-ui/react').SlotRecipeD
35
18
  } | undefined;
36
19
  createItem?: {
37
20
  color: "text/primary";
38
- py: "16";
21
+ paddingBlock: "16";
39
22
  textStyle: "body/md/regular";
40
23
  } | undefined;
41
24
  };
@@ -1,14 +1,11 @@
1
- import { nativeSelectAnatomy as e } from "@chakra-ui/react/anatomy";
2
- import { defineSlotRecipe as r } from "@chakra-ui/react/styled-system";
1
+ import { nativeSelectAnatomy as r } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
3
3
  import { rem as o } from "../themeUtils.js";
4
- const a = r({
4
+ const i = e({
5
5
  className: "native-select",
6
- slots: [...e.keys(), "statusIcon"],
6
+ slots: [...r.keys(), "statusIcon"],
7
7
  base: {
8
8
  root: {
9
- height: "fit-content",
10
- display: "flex",
11
- width: "100%",
12
9
  position: "relative"
13
10
  },
14
11
  field: {
@@ -22,7 +19,10 @@ const a = r({
22
19
  transition: "200ms",
23
20
  color: "input/text/inputValue",
24
21
  _hover: {
25
- borderColor: "border/hover"
22
+ borderColor: "border/hover",
23
+ _invalid: {
24
+ borderColor: "border/error"
25
+ }
26
26
  },
27
27
  _invalid: {
28
28
  borderColor: "border/error"
@@ -53,19 +53,7 @@ const a = r({
53
53
  position: "absolute",
54
54
  top: "50%",
55
55
  right: o(15),
56
- transform: "translateY(-50%)",
57
- pointerEvents: "none",
58
- color: "icon/secondary",
59
- transition: "200ms",
60
- _groupFocusWithin: {
61
- color: "icon/primary"
62
- },
63
- _groupHover: {
64
- color: "icon/primary"
65
- },
66
- _disabled: {
67
- color: "icon/on-disabled"
68
- }
56
+ transform: "translateY(-50%)"
69
57
  }
70
58
  },
71
59
  variants: {
@@ -83,5 +71,5 @@ const a = r({
83
71
  }
84
72
  });
85
73
  export {
86
- a as default
74
+ i as default
87
75
  };
@@ -1,22 +1,7 @@
1
1
  export declare const selectSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "root" | "item" | "itemIndicator" | "trigger" | "positioner" | "indicator" | "list" | "clearTrigger" | "control" | "valueText" | "itemText" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "searchInputGroup" | "searchInput" | "createItemContainer" | "createItem", {
2
2
  size: {
3
+ lg: Record<string, import('@chakra-ui/react').SystemStyleObject>;
3
4
  md: {
4
- item: {
5
- py: "8";
6
- px: "16";
7
- textStyle: "body/md/regular";
8
- _selected: {
9
- textStyle: "body/md/semibold";
10
- };
11
- };
12
- itemIndicator: {
13
- width: "16";
14
- height: "16";
15
- };
16
- itemGroupLabel: {
17
- py: "12";
18
- px: "16";
19
- };
20
5
  searchInput: {
21
6
  paddingBlock: "12";
22
7
  textStyle: "body/md/regular";
@@ -24,14 +9,13 @@ export declare const selectSlotRecipe: import('@chakra-ui/react').SlotRecipeDefi
24
9
  };
25
10
  createItem: {
26
11
  color: "text/primary";
27
- py: "16";
12
+ paddingBlock: "16";
28
13
  textStyle: "body/md/regular";
29
14
  };
30
15
  trigger: {
31
16
  textStyle: "body/md/regular";
32
- py: string;
17
+ paddingBlock: string;
33
18
  };
34
19
  };
35
- lg: {};
36
20
  };
37
21
  }>;