@bitrise/bitkit-v2 0.3.104 → 0.3.106

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.
@@ -1,5 +1,5 @@
1
1
  import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
- const o = e({
2
+ const t = e({
3
3
  className: "color-button",
4
4
  base: {
5
5
  colorPalette: "neutral",
@@ -24,10 +24,25 @@ const o = e({
24
24
  lg: { height: "48", paddingInline: "16", textStyle: "comp/button/lg" }
25
25
  }
26
26
  },
27
+ compoundVariants: [
28
+ {
29
+ colorPalette: "white",
30
+ css: {
31
+ color: "text.on-color",
32
+ borderColor: "border.inverse",
33
+ "&:hover": {
34
+ backgroundColor: "white.a15"
35
+ },
36
+ "&:active": {
37
+ backgroundColor: "white.a30"
38
+ }
39
+ }
40
+ }
41
+ ],
27
42
  defaultVariants: {
28
43
  size: "sm"
29
44
  }
30
45
  });
31
46
  export {
32
- o as default
47
+ t as default
33
48
  };
@@ -505,6 +505,53 @@ const r = l.colors(
505
505
  _light: "{colors.turquoise.95}"
506
506
  }
507
507
  }
508
+ },
509
+ white: {
510
+ a00: {
511
+ value: {
512
+ _light: "rgba(255, 255, 255, 0)"
513
+ }
514
+ },
515
+ a10: {
516
+ value: {
517
+ _light: "rgba(255, 255, 255, 0.1)"
518
+ }
519
+ },
520
+ a15: {
521
+ value: {
522
+ _light: "rgba(255, 255, 255, 0.15)"
523
+ }
524
+ },
525
+ a20: {
526
+ value: {
527
+ _light: "rgba(255, 255, 255, 0.2)"
528
+ }
529
+ },
530
+ a30: {
531
+ value: {
532
+ _light: "rgba(255, 255, 255, 0.3)"
533
+ }
534
+ },
535
+ a50: {
536
+ value: {
537
+ _light: "rgba(255, 255, 255, 0.5)"
538
+ }
539
+ },
540
+ a80: {
541
+ value: {
542
+ _light: "rgba(255, 255, 255, 0.8)"
543
+ }
544
+ },
545
+ a90: {
546
+ value: {
547
+ _light: "rgba(255, 255, 255, 0.9)"
548
+ }
549
+ },
550
+ a100: {
551
+ value: {
552
+ _light: "rgb(255, 255, 255)"
553
+ }
554
+ }
508
555
  }
509
556
  },
510
557
  background: {
@@ -0,0 +1,32 @@
1
+ export declare const selectSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "trigger" | "positioner" | "list" | "root" | "control" | "indicator" | "valueText" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "searchInputGroup" | "searchInput", {
2
+ size: {
3
+ md: {
4
+ item: {
5
+ py: string | number;
6
+ px: string | number;
7
+ textStyle: "body/md/regular";
8
+ _selected: {
9
+ textStyle: "body/md/semibold";
10
+ };
11
+ };
12
+ itemIndicator: {
13
+ width: string | number;
14
+ height: string | number;
15
+ };
16
+ itemGroupLabel: {
17
+ py: string | number;
18
+ px: string | number;
19
+ };
20
+ searchInput: {
21
+ paddingBlock: string | number;
22
+ textStyle: "body/md/regular";
23
+ '--input-height': string | number;
24
+ };
25
+ trigger: {
26
+ textStyle: "body/md/regular";
27
+ py: string | number;
28
+ };
29
+ };
30
+ lg: {};
31
+ };
32
+ }>;
@@ -0,0 +1,175 @@
1
+ import { selectAnatomy as t } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
3
+ import { rem as e } from "../themeUtils.js";
4
+ const l = o({
5
+ className: "select",
6
+ slots: [...t.keys(), "searchInputGroup", "searchInput"],
7
+ base: {
8
+ trigger: {
9
+ display: "flex",
10
+ alignItems: "center",
11
+ borderWidth: "1px",
12
+ borderColor: "border/strong",
13
+ bg: "bg.muted",
14
+ color: "input/text/inputValue",
15
+ gap: e(8),
16
+ justifyContent: "space-between",
17
+ px: e(16),
18
+ py: e(8),
19
+ borderRadius: e(4),
20
+ userSelect: "none",
21
+ textAlign: "start",
22
+ focusVisibleRing: "inside",
23
+ width: "100%",
24
+ _placeholderShown: {
25
+ color: "text/secondary"
26
+ },
27
+ _disabled: {
28
+ color: "text/disabled",
29
+ bg: "background/disabled"
30
+ },
31
+ _invalid: {
32
+ borderColor: "border/error"
33
+ },
34
+ _readOnly: {
35
+ bg: "background/disabled"
36
+ }
37
+ },
38
+ indicatorGroup: {
39
+ display: "flex",
40
+ alignItems: "center",
41
+ gap: "1",
42
+ pos: "absolute",
43
+ insetEnd: "0",
44
+ top: "0",
45
+ bottom: "0",
46
+ px: e(16),
47
+ pointerEvents: "none"
48
+ },
49
+ indicator: {
50
+ display: "flex",
51
+ alignItems: "center",
52
+ justifyContent: "center",
53
+ color: "icon/secondary",
54
+ _disabled: {
55
+ color: "icon/disabled"
56
+ },
57
+ _readOnly: {
58
+ color: "icon/on-disabled"
59
+ }
60
+ },
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: e(12),
83
+ cursor: "option",
84
+ justifyContent: "space-between",
85
+ flex: "1",
86
+ px: e(16),
87
+ py: e(12),
88
+ textAlign: "start",
89
+ textStyle: "body/lg/regular",
90
+ _highlighted: {
91
+ bg: "neutral.95"
92
+ },
93
+ _selected: {
94
+ textStyle: "body/lg/semibold",
95
+ bg: "background/selected"
96
+ }
97
+ },
98
+ itemIndicator: {
99
+ alignItems: "center",
100
+ color: "icon/interactive",
101
+ display: "flex",
102
+ justifyContent: "center",
103
+ width: e(24),
104
+ height: e(24)
105
+ },
106
+ itemGroupLabel: {
107
+ alignItems: "center",
108
+ display: "flex",
109
+ gap: e(16),
110
+ py: e(12),
111
+ px: e(16)
112
+ },
113
+ control: {
114
+ pos: "relative",
115
+ width: "100% "
116
+ },
117
+ searchInput: {
118
+ border: "none",
119
+ boxShadow: "none",
120
+ outline: "none",
121
+ paddingRight: e(16),
122
+ paddingBlock: e(16),
123
+ textStyle: "body/lg/regular",
124
+ "--input-height": e(32)
125
+ },
126
+ searchInputGroup: {
127
+ borderBottom: "1px solid",
128
+ borderColor: "border/minimal",
129
+ appearance: "none",
130
+ paddingLeft: e(16)
131
+ },
132
+ valueText: {
133
+ height: e(32),
134
+ lineHeight: e(32)
135
+ }
136
+ },
137
+ variants: {
138
+ size: {
139
+ md: {
140
+ item: {
141
+ py: e(8),
142
+ px: e(16),
143
+ textStyle: "body/md/regular",
144
+ _selected: {
145
+ textStyle: "body/md/semibold"
146
+ }
147
+ },
148
+ itemIndicator: {
149
+ width: e(16),
150
+ height: e(16)
151
+ },
152
+ itemGroupLabel: {
153
+ py: e(12),
154
+ px: e(16)
155
+ },
156
+ searchInput: {
157
+ paddingBlock: e(12),
158
+ textStyle: "body/md/regular",
159
+ "--input-height": e(24)
160
+ },
161
+ trigger: {
162
+ textStyle: "body/md/regular",
163
+ py: e(4)
164
+ }
165
+ },
166
+ lg: {}
167
+ }
168
+ },
169
+ defaultVariants: {
170
+ size: "lg"
171
+ }
172
+ });
173
+ export {
174
+ l as selectSlotRecipe
175
+ };
@@ -226,6 +226,38 @@ declare const slotRecipes: {
226
226
  };
227
227
  };
228
228
  }>;
229
+ select: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "trigger" | "positioner" | "list" | "root" | "control" | "indicator" | "valueText" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "searchInputGroup" | "searchInput", {
230
+ size: {
231
+ md: {
232
+ item: {
233
+ py: string | number;
234
+ px: string | number;
235
+ textStyle: "body/md/regular";
236
+ _selected: {
237
+ textStyle: "body/md/semibold";
238
+ };
239
+ };
240
+ itemIndicator: {
241
+ width: string | number;
242
+ height: string | number;
243
+ };
244
+ itemGroupLabel: {
245
+ py: string | number;
246
+ px: string | number;
247
+ };
248
+ searchInput: {
249
+ paddingBlock: string | number;
250
+ textStyle: "body/md/regular";
251
+ '--input-height': string | number;
252
+ };
253
+ trigger: {
254
+ textStyle: "body/md/regular";
255
+ py: string | number;
256
+ };
257
+ };
258
+ lg: {};
259
+ };
260
+ }>;
229
261
  switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "control" | "indicator" | "thumb", {
230
262
  size: {
231
263
  sm: {
@@ -1,5 +1,5 @@
1
- import t from "./ActionBar.recipe.js";
2
- import e from "./Alert.recipe.js";
1
+ import e from "./ActionBar.recipe.js";
2
+ import t from "./Alert.recipe.js";
3
3
  import o from "./Card.recipe.js";
4
4
  import i from "./Checkbox.recipe.js";
5
5
  import r from "./EmptyState.recipe.js";
@@ -8,12 +8,13 @@ import m from "./Field.recipe.js";
8
8
  import c from "./Fieldset.recipe.js";
9
9
  import l from "./NativeSelect.recipe.js";
10
10
  import { numberInputSlotRecipe as a } from "./NumberInput.recipe.js";
11
- import f from "./Switch.recipe.js";
12
- import S from "./Tabs.recipe.js";
13
- import R from "./Tag.recipe.js";
11
+ import { selectSlotRecipe as f } from "./Select.recipe.js";
12
+ import S from "./Switch.recipe.js";
13
+ import R from "./Tabs.recipe.js";
14
+ import s from "./Tag.recipe.js";
14
15
  import d from "./Tooltip.recipe.js";
15
- const j = {
16
- actionBar: t,
16
+ const z = {
17
+ actionBar: e,
17
18
  card: o,
18
19
  checkbox: i,
19
20
  emptyState: r,
@@ -21,13 +22,14 @@ const j = {
21
22
  field: m,
22
23
  fieldset: c,
23
24
  nativeSelect: l,
24
- alert: e,
25
+ alert: t,
25
26
  numberInput: a,
26
- switch: f,
27
- tabs: S,
28
- tag: R,
27
+ select: f,
28
+ switch: S,
29
+ tabs: R,
30
+ tag: s,
29
31
  tooltip: d
30
32
  };
31
33
  export {
32
- j as default
34
+ z as default
33
35
  };
@@ -1,12 +1,30 @@
1
1
  export declare const COLOR_PALETTES: {
2
2
  white: {
3
- strong: {
3
+ a00: {
4
4
  value: string;
5
5
  };
6
- subtle: {
6
+ a10: {
7
7
  value: string;
8
8
  };
9
- moderate: {
9
+ a15: {
10
+ value: string;
11
+ };
12
+ a20: {
13
+ value: string;
14
+ };
15
+ a30: {
16
+ value: string;
17
+ };
18
+ a50: {
19
+ value: string;
20
+ };
21
+ a80: {
22
+ value: string;
23
+ };
24
+ a90: {
25
+ value: string;
26
+ };
27
+ a100: {
10
28
  value: string;
11
29
  };
12
30
  };
@@ -572,13 +590,31 @@ declare const colors: {
572
590
  };
573
591
  };
574
592
  white: {
575
- strong: {
593
+ a00: {
576
594
  value: string;
577
595
  };
578
- subtle: {
596
+ a10: {
579
597
  value: string;
580
598
  };
581
- moderate: {
599
+ a15: {
600
+ value: string;
601
+ };
602
+ a20: {
603
+ value: string;
604
+ };
605
+ a30: {
606
+ value: string;
607
+ };
608
+ a50: {
609
+ value: string;
610
+ };
611
+ a80: {
612
+ value: string;
613
+ };
614
+ a90: {
615
+ value: string;
616
+ };
617
+ a100: {
582
618
  value: string;
583
619
  };
584
620
  };
@@ -1,14 +1,32 @@
1
1
  import { defineTokens as e } from "@chakra-ui/react/styled-system";
2
2
  const l = {
3
3
  white: {
4
- strong: {
5
- value: "{colors.sys.fg.on-color}"
4
+ a00: {
5
+ value: "{colors.sys.white.a00}"
6
6
  },
7
- subtle: {
8
- value: "{colors.sys.fg.on-color/15}"
7
+ a10: {
8
+ value: "{colors.sys.white.a10}"
9
9
  },
10
- moderate: {
11
- value: "{colors.sys.fg.on-color/30}"
10
+ a15: {
11
+ value: "{colors.sys.white.a15}"
12
+ },
13
+ a20: {
14
+ value: "{colors.sys.white.a20}"
15
+ },
16
+ a30: {
17
+ value: "{colors.sys.white.a30}"
18
+ },
19
+ a50: {
20
+ value: "{colors.sys.white.a50}"
21
+ },
22
+ a80: {
23
+ value: "{colors.sys.white.a80}"
24
+ },
25
+ a90: {
26
+ value: "{colors.sys.white.a90}"
27
+ },
28
+ a100: {
29
+ value: "{colors.sys.white.a100}"
12
30
  }
13
31
  },
14
32
  neutral: {
@@ -123,13 +123,31 @@ declare const tokens: {
123
123
  };
124
124
  };
125
125
  white: {
126
- strong: {
126
+ a00: {
127
127
  value: string;
128
128
  };
129
- subtle: {
129
+ a10: {
130
130
  value: string;
131
131
  };
132
- moderate: {
132
+ a15: {
133
+ value: string;
134
+ };
135
+ a20: {
136
+ value: string;
137
+ };
138
+ a30: {
139
+ value: string;
140
+ };
141
+ a50: {
142
+ value: string;
143
+ };
144
+ a80: {
145
+ value: string;
146
+ };
147
+ a90: {
148
+ value: string;
149
+ };
150
+ a100: {
133
151
  value: string;
134
152
  };
135
153
  };
@@ -812,6 +830,9 @@ declare const tokens: {
812
830
  popover: {
813
831
  value: number;
814
832
  };
833
+ select: {
834
+ value: number;
835
+ };
815
836
  tooltip: {
816
837
  value: number;
817
838
  };
@@ -23,6 +23,9 @@ declare const zIndex: {
23
23
  popover: {
24
24
  value: number;
25
25
  };
26
+ select: {
27
+ value: number;
28
+ };
26
29
  tooltip: {
27
30
  value: number;
28
31
  };
@@ -24,8 +24,11 @@ const a = e.zIndex({
24
24
  popover: {
25
25
  value: 1400
26
26
  },
27
- tooltip: {
27
+ select: {
28
28
  value: 1500
29
+ },
30
+ tooltip: {
31
+ value: 1600
29
32
  }
30
33
  });
31
34
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.104",
4
+ "version": "0.3.106",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",