@bitrise/bitkit-v2 0.3.139 → 0.3.141

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.
@@ -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",
@@ -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,
@@ -12,6 +12,10 @@ const o = {
12
12
  textStyle: "comp/link/md-hover"
13
13
  }
14
14
  },
15
+ _active: {
16
+ color: "text/primary",
17
+ textStyle: "comp/link/md-hover"
18
+ },
15
19
  _focusVisible: {
16
20
  borderRadius: "2",
17
21
  background: "background/primary",
@@ -24,7 +28,7 @@ const o = {
24
28
  }
25
29
  }, i = r({
26
30
  className: "breadcrumb",
27
- slots: [...e.keys(), "overflowMenu", "overflowMenuItem"],
31
+ slots: e.extendWith("overflowMenu", "overflowMenuItem").keys(),
28
32
  base: {
29
33
  list: {
30
34
  display: "flex",
@@ -69,6 +73,10 @@ const o = {
69
73
  color: "text/primary"
70
74
  }
71
75
  },
76
+ _active: {
77
+ backgroundColor: "background/active",
78
+ color: "text/primary"
79
+ },
72
80
  _highlighted: {
73
81
  backgroundColor: "background/hover"
74
82
  }
@@ -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
  }>;
@@ -1,21 +1,22 @@
1
- import { selectAnatomy as t } from "@chakra-ui/react/anatomy";
2
- import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
1
+ import { selectAnatomy as o } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as r } from "@chakra-ui/react/styled-system";
3
+ import { variants as t, base as n } from "../common/ComboboxAndSelect.common.js";
3
4
  import { rem as e } from "../themeUtils.js";
4
- const a = o({
5
+ const c = r({
5
6
  className: "select",
6
- slots: [...t.keys(), "searchInputGroup", "searchInput", "createItemContainer", "createItem"],
7
+ slots: [...o.keys(), "searchInputGroup", "searchInput", "createItemContainer", "createItem"],
7
8
  base: {
8
9
  trigger: {
9
10
  display: "flex",
10
11
  alignItems: "center",
11
12
  borderWidth: e(1),
12
13
  borderColor: "border/strong",
13
- bg: "bg.muted",
14
+ background: "bg.muted",
14
15
  color: "input/text/inputValue",
15
16
  gap: "8",
16
17
  justifyContent: "space-between",
17
- px: "16",
18
- py: e(11),
18
+ paddingInline: "16",
19
+ paddingBlock: e(11),
19
20
  borderRadius: "4",
20
21
  userSelect: "none",
21
22
  textAlign: "start",
@@ -26,24 +27,24 @@ const a = o({
26
27
  },
27
28
  _disabled: {
28
29
  color: "text/disabled",
29
- bg: "background/disabled"
30
+ background: "background/disabled"
30
31
  },
31
32
  _invalid: {
32
33
  borderColor: "border/error"
33
34
  },
34
35
  _readOnly: {
35
- bg: "background/disabled"
36
+ background: "background/disabled"
36
37
  }
37
38
  },
38
39
  indicatorGroup: {
39
40
  display: "flex",
40
41
  alignItems: "center",
41
42
  gap: "8",
42
- pos: "absolute",
43
+ position: "absolute",
43
44
  insetEnd: "0",
44
45
  top: "0",
45
46
  bottom: "0",
46
- px: "16",
47
+ paddingInline: "16",
47
48
  pointerEvents: "none"
48
49
  },
49
50
  indicator: {
@@ -58,62 +59,10 @@ const a = o({
58
59
  color: "icon/on-disabled"
59
60
  }
60
61
  },
61
- content: {
62
- background: "background/primary",
63
- display: "flex",
64
- flexDirection: "column",
65
- zIndex: "select",
66
- overflowY: "auto",
67
- boxShadow: "large",
68
- _open: {
69
- animationStyle: "slide-fade-in",
70
- animationDuration: "fast"
71
- },
72
- _closed: {
73
- animationStyle: "slide-fade-out",
74
- animationDuration: "fastest"
75
- }
76
- },
77
- item: {
78
- position: "relative",
79
- userSelect: "none",
80
- display: "flex",
81
- alignItems: "center",
82
- gap: "12",
83
- cursor: "option",
84
- justifyContent: "space-between",
85
- flex: "1",
86
- px: "16",
87
- py: "12",
88
- textAlign: "start",
89
- textStyle: "body/lg/regular",
90
- lineHeight: e(24),
91
- _highlighted: {
92
- bg: "neutral.95"
93
- },
94
- _selected: {
95
- textStyle: "body/lg/semibold",
96
- bg: "background/selected"
97
- }
98
- },
99
- itemIndicator: {
100
- alignItems: "center",
101
- color: "icon/interactive",
102
- display: "flex",
103
- justifyContent: "center",
104
- width: "24",
105
- height: "24"
106
- },
107
- itemGroupLabel: {
108
- alignItems: "center",
109
- display: "flex",
110
- gap: "16",
111
- py: "12",
112
- px: "16"
113
- },
62
+ ...n,
114
63
  control: {
115
- pos: "relative",
116
- width: "100% "
64
+ position: "relative",
65
+ width: "100%"
117
66
  },
118
67
  searchInput: {
119
68
  border: "none",
@@ -138,7 +87,7 @@ const a = o({
138
87
  gap: "12",
139
88
  paddingInlineEnd: "24",
140
89
  paddingInlineStart: "16",
141
- py: "20",
90
+ paddingBlock: "20",
142
91
  color: "text/primary",
143
92
  textStyle: "body/lg/regular",
144
93
  textDecoration: "none",
@@ -146,14 +95,14 @@ const a = o({
146
95
  cursor: "pointer",
147
96
  textAlign: "start",
148
97
  _hover: {
149
- bg: "button/secondary/bg-hover",
98
+ background: "button/secondary/bg-hover",
150
99
  textDecoration: "none",
151
100
  _active: {
152
- bg: "button/secondary/bg-active"
101
+ background: "button/secondary/bg-active"
153
102
  }
154
103
  },
155
104
  _active: {
156
- bg: "button/secondary/bg-active"
105
+ background: "button/secondary/bg-active"
157
106
  },
158
107
  _focusVisible: {
159
108
  outlineOffset: "-3px"
@@ -162,23 +111,9 @@ const a = o({
162
111
  },
163
112
  variants: {
164
113
  size: {
114
+ lg: t.size.lg,
165
115
  md: {
166
- item: {
167
- py: "8",
168
- px: "16",
169
- textStyle: "body/md/regular",
170
- _selected: {
171
- textStyle: "body/md/semibold"
172
- }
173
- },
174
- itemIndicator: {
175
- width: "16",
176
- height: "16"
177
- },
178
- itemGroupLabel: {
179
- py: "12",
180
- px: "16"
181
- },
116
+ ...t.size.md,
182
117
  searchInput: {
183
118
  paddingBlock: "12",
184
119
  textStyle: "body/md/regular",
@@ -186,15 +121,14 @@ const a = o({
186
121
  },
187
122
  createItem: {
188
123
  color: "text/primary",
189
- py: "16",
124
+ paddingBlock: "16",
190
125
  textStyle: "body/md/regular"
191
126
  },
192
127
  trigger: {
193
128
  textStyle: "body/md/regular",
194
- py: e(9)
129
+ paddingBlock: e(9)
195
130
  }
196
- },
197
- lg: {}
131
+ }
198
132
  }
199
133
  },
200
134
  defaultVariants: {
@@ -202,5 +136,5 @@ const a = o({
202
136
  }
203
137
  });
204
138
  export {
205
- a as selectSlotRecipe
139
+ c as selectSlotRecipe
206
140
  };
@@ -263,7 +263,6 @@ declare const slotRecipes: {
263
263
  trigger: {
264
264
  paddingBlock: "6";
265
265
  textStyle?: "body/md/regular" | undefined;
266
- py?: string | undefined;
267
266
  };
268
267
  indicator: {
269
268
  _icon: {
@@ -271,22 +270,6 @@ declare const slotRecipes: {
271
270
  height: "16";
272
271
  };
273
272
  };
274
- item?: {
275
- py: "8";
276
- px: "16";
277
- textStyle: "body/md/regular";
278
- _selected: {
279
- textStyle: "body/md/semibold";
280
- };
281
- } | undefined;
282
- itemIndicator?: {
283
- width: "16";
284
- height: "16";
285
- } | undefined;
286
- itemGroupLabel?: {
287
- py: "12";
288
- px: "16";
289
- } | undefined;
290
273
  searchInput?: {
291
274
  paddingBlock: "12";
292
275
  textStyle: "body/md/regular";
@@ -294,7 +277,7 @@ declare const slotRecipes: {
294
277
  } | undefined;
295
278
  createItem?: {
296
279
  color: "text/primary";
297
- py: "16";
280
+ paddingBlock: "16";
298
281
  textStyle: "body/md/regular";
299
282
  } | undefined;
300
283
  };
@@ -330,6 +313,16 @@ declare const slotRecipes: {
330
313
  };
331
314
  };
332
315
  }>;
316
+ combobox: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "input" | "label" | "root" | "item" | "itemIndicator" | "trigger" | "positioner" | "list" | "clearTrigger" | "control" | "itemText" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "empty" | "emptyHelperText", {
317
+ size: {
318
+ md: {
319
+ input: import('@chakra-ui/react').SystemStyleObject;
320
+ };
321
+ lg: {
322
+ input: import('@chakra-ui/react').SystemStyleObject;
323
+ };
324
+ };
325
+ }>;
333
326
  emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "description" | "indicator", {
334
327
  colorScheme: {
335
328
  white: {
@@ -506,23 +499,8 @@ declare const slotRecipes: {
506
499
  }>;
507
500
  select: 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", {
508
501
  size: {
502
+ lg: Record<string, import('@chakra-ui/react').SystemStyleObject>;
509
503
  md: {
510
- item: {
511
- py: "8";
512
- px: "16";
513
- textStyle: "body/md/regular";
514
- _selected: {
515
- textStyle: "body/md/semibold";
516
- };
517
- };
518
- itemIndicator: {
519
- width: "16";
520
- height: "16";
521
- };
522
- itemGroupLabel: {
523
- py: "12";
524
- px: "16";
525
- };
526
504
  searchInput: {
527
505
  paddingBlock: "12";
528
506
  textStyle: "body/md/regular";
@@ -530,15 +508,14 @@ declare const slotRecipes: {
530
508
  };
531
509
  createItem: {
532
510
  color: "text/primary";
533
- py: "16";
511
+ paddingBlock: "16";
534
512
  textStyle: "body/md/regular";
535
513
  };
536
514
  trigger: {
537
515
  textStyle: "body/md/regular";
538
- py: string;
516
+ paddingBlock: string;
539
517
  };
540
518
  };
541
- lg: {};
542
519
  };
543
520
  }>;
544
521
  switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "control" | "thumb", {