@bitrise/bitkit-v2 0.3.103 → 0.3.105

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,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
  };
@@ -812,6 +812,9 @@ declare const tokens: {
812
812
  popover: {
813
813
  value: number;
814
814
  };
815
+ select: {
816
+ value: number;
817
+ };
815
818
  tooltip: {
816
819
  value: number;
817
820
  };
@@ -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.103",
4
+ "version": "0.3.105",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",