@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.
- package/dist/components/BitkitNativeSelect/BitkitNativeSelect.d.ts +19 -0
- package/dist/components/BitkitNativeSelect/BitkitNativeSelect.js +54 -0
- package/dist/components/BitkitSelect/BitkitSelect.d.ts +24 -7
- package/dist/components/BitkitSelect/BitkitSelect.js +88 -45
- package/dist/components/BitkitSelectMenu/BitkitSelectMenu.d.ts +16 -0
- package/dist/components/BitkitSelectMenu/BitkitSelectMenu.js +57 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/main.js +1082 -1078
- package/dist/theme/slot-recipes/Select.recipe.d.ts +32 -0
- package/dist/theme/slot-recipes/Select.recipe.js +175 -0
- package/dist/theme/slot-recipes/index.d.ts +32 -0
- package/dist/theme/slot-recipes/index.js +14 -12
- package/dist/theme/tokens/index.d.ts +3 -0
- package/dist/theme/tokens/zIndex.d.ts +3 -0
- package/dist/theme/tokens/zIndex.js +4 -1
- package/package.json +1 -1
|
@@ -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
|
|
2
|
-
import
|
|
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 "./
|
|
12
|
-
import S from "./
|
|
13
|
-
import R from "./
|
|
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
|
|
16
|
-
actionBar:
|
|
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:
|
|
25
|
+
alert: t,
|
|
25
26
|
numberInput: a,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
select: f,
|
|
28
|
+
switch: S,
|
|
29
|
+
tabs: R,
|
|
30
|
+
tag: s,
|
|
29
31
|
tooltip: d
|
|
30
32
|
};
|
|
31
33
|
export {
|
|
32
|
-
|
|
34
|
+
z as default
|
|
33
35
|
};
|