@bitrise/bitkit-v2 0.3.226 → 0.3.228
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/AGENTS.md +1 -0
- package/dist/components/BitkitBreadcrumb/BitkitBreadcrumb.js +2 -1
- package/dist/components/BitkitBreadcrumb/BitkitBreadcrumb.js.map +1 -1
- package/dist/components/BitkitCombobox/BitkitCombobox.d.ts +13 -5
- package/dist/components/BitkitCombobox/BitkitCombobox.js +8 -5
- package/dist/components/BitkitCombobox/BitkitCombobox.js.map +1 -1
- package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.d.ts +2 -1
- package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.js +2 -1
- package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.js.map +1 -1
- package/dist/components/BitkitDialog/BitkitDialog.js +2 -1
- package/dist/components/BitkitDialog/BitkitDialog.js.map +1 -1
- package/dist/components/BitkitList/BitkitList.js +2 -1
- package/dist/components/BitkitList/BitkitList.js.map +1 -1
- package/dist/components/BitkitMultiselect/BitkitMultiselect.d.ts +13 -5
- package/dist/components/BitkitMultiselect/BitkitMultiselect.js +7 -5
- package/dist/components/BitkitMultiselect/BitkitMultiselect.js.map +1 -1
- package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.d.ts +6 -3
- package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.js +3 -2
- package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.js.map +1 -1
- package/dist/components/BitkitPageFooter/BitkitPageFooter.js +2 -1
- package/dist/components/BitkitPageFooter/BitkitPageFooter.js.map +1 -1
- package/dist/components/BitkitSegmentedControl/BitkitSegmentedControl.js +2 -1
- package/dist/components/BitkitSegmentedControl/BitkitSegmentedControl.js.map +1 -1
- package/dist/components/BitkitSelect/BitkitSelect.d.ts +13 -5
- package/dist/components/BitkitSelect/BitkitSelect.js +22 -14
- package/dist/components/BitkitSelect/BitkitSelect.js.map +1 -1
- package/dist/components/BitkitSelectMenu/BitkitSelectMenu.d.ts +6 -6
- package/dist/components/BitkitSelectMenu/BitkitSelectMenu.js +3 -2
- package/dist/components/BitkitSelectMenu/BitkitSelectMenu.js.map +1 -1
- package/dist/components/BitkitSelectMenu/BitkitSelectMenuAction.d.ts +32 -0
- package/dist/components/BitkitSelectMenu/BitkitSelectMenuAction.js +49 -0
- package/dist/components/BitkitSelectMenu/BitkitSelectMenuAction.js.map +1 -0
- package/dist/components/BitkitSelectMenu/SelectMenuShell.d.ts +8 -5
- package/dist/components/BitkitSelectMenu/SelectMenuShell.js +63 -73
- package/dist/components/BitkitSelectMenu/SelectMenuShell.js.map +1 -1
- package/dist/components/BitkitSelectableTag/BitkitSelectableTag.js +2 -1
- package/dist/components/BitkitSelectableTag/BitkitSelectableTag.js.map +1 -1
- package/dist/components/BitkitSettingsCard/BitkitSettingsCard.js +2 -1
- package/dist/components/BitkitSettingsCard/BitkitSettingsCard.js.map +1 -1
- package/dist/components/BitkitSidebar/BitkitSidebar.js +2 -1
- package/dist/components/BitkitSidebar/BitkitSidebar.js.map +1 -1
- package/dist/components/BitkitSplitButton/BitkitSplitButton.js +2 -1
- package/dist/components/BitkitSplitButton/BitkitSplitButton.js.map +1 -1
- package/dist/components/BitkitSteps/BitkitSteps.js +2 -1
- package/dist/components/BitkitSteps/BitkitSteps.js.map +1 -1
- package/dist/components/BitkitStepsCard/BitkitStepsCard.js +2 -1
- package/dist/components/BitkitStepsCard/BitkitStepsCard.js.map +1 -1
- package/dist/components/BitkitTreeView/BitkitTreeView.js +2 -1
- package/dist/components/BitkitTreeView/BitkitTreeView.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +5 -4
- package/dist/theme/recipes/DefinitionTooltip.recipe.js +1 -0
- package/dist/theme/recipes/DefinitionTooltip.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Combobox.recipe.d.ts +10 -0
- package/dist/theme/slot-recipes/Combobox.recipe.js +23 -14
- package/dist/theme/slot-recipes/Combobox.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/DatePickerSelect.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Select.recipe.d.ts +11 -3
- package/dist/theme/slot-recipes/Select.recipe.js +106 -87
- package/dist/theme/slot-recipes/Select.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/index.d.ts +22 -4
- package/dist/utilities/withSubComponents.d.ts +11 -0
- package/dist/utilities/withSubComponents.js +16 -0
- package/dist/utilities/withSubComponents.js.map +1 -0
- package/package.json +1 -1
|
@@ -10,8 +10,8 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
10
10
|
"searchInputGroup",
|
|
11
11
|
"searchInput",
|
|
12
12
|
"searchClear",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"actionContainer",
|
|
14
|
+
"action",
|
|
15
15
|
"checkbox",
|
|
16
16
|
"checkmark",
|
|
17
17
|
"itemList",
|
|
@@ -32,13 +32,15 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
32
32
|
color: "input/text/inputValue",
|
|
33
33
|
gap: "8",
|
|
34
34
|
justifyContent: "space-between",
|
|
35
|
-
|
|
35
|
+
paddingInlineStart: "16",
|
|
36
|
+
paddingInlineEnd: "48",
|
|
36
37
|
paddingBlock: rem(11),
|
|
37
38
|
borderRadius: "4",
|
|
38
39
|
userSelect: "none",
|
|
39
40
|
textAlign: "start",
|
|
40
41
|
focusVisibleRing: "inside",
|
|
41
42
|
width: "100%",
|
|
43
|
+
_open: { borderColor: "border/focus" },
|
|
42
44
|
_placeholderShown: { color: "text/secondary" },
|
|
43
45
|
_disabled: {
|
|
44
46
|
color: "text/disabled",
|
|
@@ -71,7 +73,9 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
71
73
|
...base.content,
|
|
72
74
|
overflow: "hidden",
|
|
73
75
|
display: "flex",
|
|
74
|
-
flexDirection: "column"
|
|
76
|
+
flexDirection: "column",
|
|
77
|
+
maxWidth: rem(800),
|
|
78
|
+
focusVisibleRing: "none"
|
|
75
79
|
},
|
|
76
80
|
item: {
|
|
77
81
|
...base.item,
|
|
@@ -90,6 +94,14 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
90
94
|
position: "relative",
|
|
91
95
|
width: "100%"
|
|
92
96
|
},
|
|
97
|
+
valueText: {
|
|
98
|
+
display: "flex",
|
|
99
|
+
alignItems: "center",
|
|
100
|
+
gap: "8",
|
|
101
|
+
flex: "1 1 0",
|
|
102
|
+
minWidth: 0,
|
|
103
|
+
overflow: "hidden"
|
|
104
|
+
},
|
|
93
105
|
itemList: {
|
|
94
106
|
flex: "1 1 auto",
|
|
95
107
|
minHeight: 0,
|
|
@@ -99,7 +111,6 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
99
111
|
itemContent: {
|
|
100
112
|
display: "flex",
|
|
101
113
|
flexDirection: "column",
|
|
102
|
-
alignItems: "flex-start",
|
|
103
114
|
flex: "1 0 0",
|
|
104
115
|
minWidth: 0
|
|
105
116
|
},
|
|
@@ -124,6 +135,7 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
124
135
|
overflow: "hidden",
|
|
125
136
|
textOverflow: "ellipsis",
|
|
126
137
|
maxWidth: "100%",
|
|
138
|
+
minWidth: 0,
|
|
127
139
|
"[data-disabled] &": { color: "text/disabled" }
|
|
128
140
|
},
|
|
129
141
|
itemHelperText: {
|
|
@@ -133,6 +145,7 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
133
145
|
overflow: "hidden",
|
|
134
146
|
textOverflow: "ellipsis",
|
|
135
147
|
maxWidth: "100%",
|
|
148
|
+
minWidth: 0,
|
|
136
149
|
"[data-disabled] &": { color: "text/disabled" }
|
|
137
150
|
},
|
|
138
151
|
checkbox: {
|
|
@@ -197,13 +210,13 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
197
210
|
flexShrink: 0,
|
|
198
211
|
_hover: { background: "background/hover" }
|
|
199
212
|
},
|
|
200
|
-
|
|
213
|
+
actionContainer: {
|
|
201
214
|
borderTop: "1px solid",
|
|
202
215
|
borderColor: "border/minimal",
|
|
203
216
|
paddingBlock: "8",
|
|
204
217
|
flexShrink: 0
|
|
205
218
|
},
|
|
206
|
-
|
|
219
|
+
action: {
|
|
207
220
|
display: "flex",
|
|
208
221
|
alignItems: "center",
|
|
209
222
|
gap: "12",
|
|
@@ -222,94 +235,100 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
222
235
|
_focusVisible: { outlineOffset: "-3px" }
|
|
223
236
|
}
|
|
224
237
|
},
|
|
225
|
-
variants: {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
paddingInlineEnd: "24",
|
|
237
|
-
paddingBlock: "8",
|
|
238
|
-
gap: "8"
|
|
238
|
+
variants: {
|
|
239
|
+
hasStatusIcon: {
|
|
240
|
+
true: { trigger: { paddingInlineEnd: "96" } },
|
|
241
|
+
false: {}
|
|
242
|
+
},
|
|
243
|
+
size: {
|
|
244
|
+
lg: {
|
|
245
|
+
...variants.size.lg,
|
|
246
|
+
checkbox: {
|
|
247
|
+
width: "24",
|
|
248
|
+
height: "24"
|
|
239
249
|
},
|
|
240
|
-
|
|
250
|
+
item: {
|
|
251
|
+
...variants.size.lg.item,
|
|
252
|
+
"&:has([data-slot=\"avatar\"])": {
|
|
253
|
+
paddingInlineStart: "12",
|
|
254
|
+
paddingInlineEnd: "24",
|
|
255
|
+
paddingBlock: "8",
|
|
256
|
+
gap: "8"
|
|
257
|
+
},
|
|
258
|
+
"&:has([data-slot=\"checkbox\"])": {
|
|
259
|
+
minHeight: "48",
|
|
260
|
+
paddingInlineEnd: "24",
|
|
261
|
+
paddingBlock: "12",
|
|
262
|
+
gap: "12"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
itemList: { maxHeight: rem(280) },
|
|
266
|
+
itemLabel: {
|
|
267
|
+
textStyle: "body/lg/regular",
|
|
268
|
+
lineHeight: "normal"
|
|
269
|
+
},
|
|
270
|
+
itemLoadingLabel: { textStyle: "body/lg/regular" },
|
|
271
|
+
emptyState: { paddingBlock: "12" },
|
|
272
|
+
action: {
|
|
241
273
|
minHeight: "48",
|
|
242
|
-
paddingInlineEnd: "24",
|
|
243
274
|
paddingBlock: "12",
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
emptyState: { paddingBlock: "12" },
|
|
254
|
-
createItem: {
|
|
255
|
-
minHeight: "48",
|
|
256
|
-
paddingBlock: "12",
|
|
257
|
-
textStyle: "body/lg/regular",
|
|
258
|
-
lineHeight: "normal"
|
|
259
|
-
},
|
|
260
|
-
searchInputGroup: {
|
|
261
|
-
height: rem(56),
|
|
262
|
-
paddingBlock: "16"
|
|
263
|
-
},
|
|
264
|
-
searchInput: { textStyle: "body/lg/regular" },
|
|
265
|
-
searchClear: { padding: "8" }
|
|
266
|
-
},
|
|
267
|
-
md: {
|
|
268
|
-
...variants.size.md,
|
|
269
|
-
checkbox: {
|
|
270
|
-
width: "20",
|
|
271
|
-
height: "20"
|
|
275
|
+
textStyle: "body/lg/regular",
|
|
276
|
+
lineHeight: "normal"
|
|
277
|
+
},
|
|
278
|
+
searchInputGroup: {
|
|
279
|
+
height: rem(56),
|
|
280
|
+
paddingBlock: "16"
|
|
281
|
+
},
|
|
282
|
+
searchInput: { textStyle: "body/lg/regular" },
|
|
283
|
+
searchClear: { padding: "8" }
|
|
272
284
|
},
|
|
273
|
-
|
|
274
|
-
...variants.size.md
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
paddingBlock: "4",
|
|
279
|
-
gap: "8"
|
|
285
|
+
md: {
|
|
286
|
+
...variants.size.md,
|
|
287
|
+
checkbox: {
|
|
288
|
+
width: "20",
|
|
289
|
+
height: "20"
|
|
280
290
|
},
|
|
281
|
-
|
|
291
|
+
item: {
|
|
292
|
+
...variants.size.md.item,
|
|
293
|
+
"&:has([data-slot=\"avatar\"])": {
|
|
294
|
+
paddingInlineStart: "12",
|
|
295
|
+
paddingInlineEnd: "24",
|
|
296
|
+
paddingBlock: "4",
|
|
297
|
+
gap: "8"
|
|
298
|
+
},
|
|
299
|
+
"&:has([data-slot=\"checkbox\"])": {
|
|
300
|
+
minHeight: "40",
|
|
301
|
+
paddingInlineEnd: "24",
|
|
302
|
+
paddingBlock: "8",
|
|
303
|
+
gap: "12"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
itemList: { maxHeight: rem(236) },
|
|
307
|
+
itemLabel: {
|
|
308
|
+
textStyle: "body/md/regular",
|
|
309
|
+
lineHeight: "normal"
|
|
310
|
+
},
|
|
311
|
+
itemLoadingLabel: { textStyle: "body/md/regular" },
|
|
312
|
+
emptyState: { paddingBlock: "8" },
|
|
313
|
+
action: {
|
|
282
314
|
minHeight: "40",
|
|
283
|
-
paddingInlineEnd: "24",
|
|
284
315
|
paddingBlock: "8",
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
lineHeight: "normal"
|
|
300
|
-
},
|
|
301
|
-
trigger: {
|
|
302
|
-
textStyle: "body/md/regular",
|
|
303
|
-
paddingBlock: rem(9)
|
|
304
|
-
},
|
|
305
|
-
searchInputGroup: {
|
|
306
|
-
height: "48",
|
|
307
|
-
paddingBlock: "12"
|
|
308
|
-
},
|
|
309
|
-
searchInput: { textStyle: "body/md/regular" },
|
|
310
|
-
searchClear: { padding: "4" }
|
|
316
|
+
textStyle: "body/md/regular",
|
|
317
|
+
lineHeight: "normal"
|
|
318
|
+
},
|
|
319
|
+
trigger: {
|
|
320
|
+
textStyle: "body/md/regular",
|
|
321
|
+
paddingBlock: rem(9)
|
|
322
|
+
},
|
|
323
|
+
searchInputGroup: {
|
|
324
|
+
height: "48",
|
|
325
|
+
paddingBlock: "12"
|
|
326
|
+
},
|
|
327
|
+
searchInput: { textStyle: "body/md/regular" },
|
|
328
|
+
searchClear: { padding: "4" }
|
|
329
|
+
}
|
|
311
330
|
}
|
|
312
|
-
}
|
|
331
|
+
},
|
|
313
332
|
defaultVariants: { size: "lg" }
|
|
314
333
|
});
|
|
315
334
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Select.recipe.ts"],"sourcesContent":["import { selectAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { base, variants } from '../common/ComboboxAndSelect.common';\nimport { rem } from '../themeUtils';\n\nexport const selectSlotRecipe = defineSlotRecipe({\n className: 'select',\n slots: [\n ...selectAnatomy.keys(),\n 'searchInputGroup',\n 'searchInput',\n 'searchClear',\n 'createItemContainer',\n 'createItem',\n 'checkbox',\n 'checkmark',\n 'itemList',\n 'itemContent',\n 'itemLabel',\n 'itemHelperText',\n 'itemLoading',\n 'itemLoadingLabel',\n 'emptyState',\n ],\n base: {\n trigger: {\n display: 'flex',\n alignItems: 'center',\n borderWidth: rem(1),\n borderColor: 'border/strong',\n background: 'bg.muted',\n color: 'input/text/inputValue',\n gap: '8',\n justifyContent: 'space-between',\n paddingInline: '16',\n paddingBlock: rem(11),\n borderRadius: '4',\n userSelect: 'none',\n textAlign: 'start',\n focusVisibleRing: 'inside',\n width: '100%',\n _placeholderShown: {\n color: 'text/secondary',\n },\n _disabled: {\n color: 'text/disabled',\n background: 'background/disabled',\n },\n _invalid: {\n borderColor: 'border/error',\n },\n _readOnly: {\n background: 'background/disabled',\n },\n },\n indicatorGroup: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n position: 'absolute',\n insetEnd: 0,\n top: 0,\n bottom: 0,\n paddingInline: '16',\n pointerEvents: 'none',\n },\n indicator: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: 'icon/secondary',\n _disabled: {\n color: 'icon/disabled',\n },\n _readOnly: {\n color: 'icon/on-disabled',\n },\n },\n ...base,\n content: {\n ...base.content,\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n },\n item: {\n ...base.item,\n _active: {\n background: 'background/active',\n },\n _selected: {\n background: 'background/selected',\n _highlighted: {\n background: 'background/selected-hover',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n color: 'text/disabled',\n _highlighted: {\n background: 'transparent',\n },\n },\n },\n control: {\n position: 'relative',\n width: '100%',\n },\n itemList: {\n flex: '1 1 auto',\n minHeight: 0,\n overflowY: 'auto',\n paddingBlock: '8',\n },\n itemContent: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n flex: '1 0 0',\n minWidth: 0,\n },\n itemLoading: {\n flexShrink: 0,\n },\n itemLoadingLabel: {\n color: 'text/secondary',\n flex: '1 0 0',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n emptyState: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n paddingInline: '16',\n },\n itemLabel: {\n color: 'text/body',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n itemHelperText: {\n color: 'text/helper',\n textStyle: 'body/sm/regular',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n checkbox: {\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n borderWidth: rem(1),\n borderColor: 'border/regular',\n borderRadius: '4',\n background: 'background/primary',\n boxShadow: 'inset/field',\n color: 'icon/on-color',\n '[data-state=checked] &': {\n background: 'input/checkbox/selection',\n borderColor: 'input/checkbox/selection',\n boxShadow: 'none',\n },\n '[data-disabled] &': {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n },\n },\n checkmark: {\n opacity: 0,\n color: 'icon/on-color',\n '[data-state=checked] &': {\n opacity: 1,\n },\n },\n searchInputGroup: {\n borderBottom: '1px solid',\n borderColor: 'border/minimal',\n background: 'background/primary',\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineStart: '16',\n paddingInlineEnd: '12',\n overflow: 'hidden',\n flexShrink: 0,\n _hover: {\n background: 'background/secondary',\n },\n _focusWithin: {\n background: 'background/primary',\n },\n },\n searchInput: {\n flex: '1 0 0',\n minWidth: 0,\n border: 'none',\n outline: 'none',\n background: 'transparent',\n color: 'input/text/inputValue',\n paddingInline: 0,\n paddingBlock: 0,\n _placeholder: {\n color: 'input/text/placeholder',\n },\n },\n searchClear: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '4',\n color: 'icon/primary',\n cursor: 'pointer',\n flexShrink: 0,\n _hover: {\n background: 'background/hover',\n },\n },\n createItemContainer: {\n borderTop: '1px solid',\n borderColor: 'border/minimal',\n paddingBlock: '8',\n flexShrink: 0,\n },\n createItem: {\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineEnd: '24',\n paddingInlineStart: '16',\n color: 'text/primary',\n width: '100%',\n cursor: 'pointer',\n textAlign: 'start',\n _icon: {\n color: 'icon/secondary',\n },\n _hover: {\n background: 'button/secondary/bg-hover',\n _active: {\n background: 'button/secondary/bg-active',\n },\n },\n _active: {\n background: 'button/secondary/bg-active',\n },\n _focusVisible: {\n outlineOffset: '-3px',\n },\n },\n },\n\n variants: {\n size: {\n lg: {\n ...variants.size.lg,\n checkbox: {\n width: '24',\n height: '24',\n },\n item: {\n ...variants.size.lg.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '48',\n paddingInlineEnd: '24',\n paddingBlock: '12',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 48px item + 16px paddingBlock\n maxHeight: rem(280),\n },\n itemLabel: {\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/lg/regular',\n },\n emptyState: {\n paddingBlock: '12',\n },\n createItem: {\n minHeight: '48',\n paddingBlock: '12',\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n searchInputGroup: {\n height: rem(56),\n paddingBlock: '16',\n },\n searchInput: {\n textStyle: 'body/lg/regular',\n },\n searchClear: {\n padding: '8',\n },\n },\n md: {\n ...variants.size.md,\n checkbox: {\n width: '20',\n height: '20',\n },\n item: {\n ...variants.size.md.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '4',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '40',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 40px item (checkbox/avatar row) + 16px paddingBlock\n maxHeight: rem(236),\n },\n itemLabel: {\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/md/regular',\n },\n emptyState: {\n paddingBlock: '8',\n },\n createItem: {\n minHeight: '40',\n paddingBlock: '8',\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n trigger: {\n textStyle: 'body/md/regular',\n paddingBlock: rem(9),\n },\n searchInputGroup: {\n height: '48',\n paddingBlock: '12',\n },\n searchInput: {\n textStyle: 'body/md/regular',\n },\n searchClear: {\n padding: '4',\n },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n"],"mappings":";;;;;AAMA,IAAa,mBAAmB,iBAAiB;CAC/C,WAAW;CACX,OAAO;EACL,GAAG,cAAc,KAAK;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM;EACJ,SAAS;GACP,SAAS;GACT,YAAY;GACZ,aAAa,IAAI,CAAC;GAClB,aAAa;GACb,YAAY;GACZ,OAAO;GACP,KAAK;GACL,gBAAgB;GAChB,eAAe;GACf,cAAc,IAAI,EAAE;GACpB,cAAc;GACd,YAAY;GACZ,WAAW;GACX,kBAAkB;GAClB,OAAO;GACP,mBAAmB,EACjB,OAAO,iBACT;GACA,WAAW;IACT,OAAO;IACP,YAAY;GACd;GACA,UAAU,EACR,aAAa,eACf;GACA,WAAW,EACT,YAAY,sBACd;EACF;EACA,gBAAgB;GACd,SAAS;GACT,YAAY;GACZ,KAAK;GACL,UAAU;GACV,UAAU;GACV,KAAK;GACL,QAAQ;GACR,eAAe;GACf,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACP,WAAW,EACT,OAAO,gBACT;GACA,WAAW,EACT,OAAO,mBACT;EACF;EACA,GAAG;EACH,SAAS;GACP,GAAG,KAAK;GACR,UAAU;GACV,SAAS;GACT,eAAe;EACjB;EACA,MAAM;GACJ,GAAG,KAAK;GACR,SAAS,EACP,YAAY,oBACd;GACA,WAAW;IACT,YAAY;IACZ,cAAc,EACZ,YAAY,4BACd;GACF;GACA,WAAW;IACT,QAAQ;IACR,OAAO;IACP,cAAc,EACZ,YAAY,cACd;GACF;EACF;EACA,SAAS;GACP,UAAU;GACV,OAAO;EACT;EACA,UAAU;GACR,MAAM;GACN,WAAW;GACX,WAAW;GACX,cAAc;EAChB;EACA,aAAa;GACX,SAAS;GACT,eAAe;GACf,YAAY;GACZ,MAAM;GACN,UAAU;EACZ;EACA,aAAa,EACX,YAAY,EACd;EACA,kBAAkB;GAChB,OAAO;GACP,MAAM;GACN,UAAU;GACV,UAAU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AS;IACP,WAAW;IACX,cAAc,IAAI,CAAC;GACrB;GACA,kBAAkB;IAChB,QAAQ;IACR,cAAc;GAChB;GACA,aAAa,EACX,WAAW,kBACb;GACA,aAAa,EACX,SAAS,IACX;EACF;CACF,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Select.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Select.recipe.ts"],"sourcesContent":["import { selectAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { base, variants } from '../common/ComboboxAndSelect.common';\nimport { rem } from '../themeUtils';\n\nexport const selectSlotRecipe = defineSlotRecipe({\n className: 'select',\n slots: [\n ...selectAnatomy.keys(),\n 'searchInputGroup',\n 'searchInput',\n 'searchClear',\n 'actionContainer',\n 'action',\n 'checkbox',\n 'checkmark',\n 'itemList',\n 'itemContent',\n 'itemLabel',\n 'itemHelperText',\n 'itemLoading',\n 'itemLoadingLabel',\n 'emptyState',\n ],\n base: {\n trigger: {\n display: 'flex',\n alignItems: 'center',\n borderWidth: rem(1),\n borderColor: 'border/strong',\n background: 'bg.muted',\n color: 'input/text/inputValue',\n gap: '8',\n justifyContent: 'space-between',\n paddingInlineStart: '16',\n paddingInlineEnd: '48',\n paddingBlock: rem(11),\n borderRadius: '4',\n userSelect: 'none',\n textAlign: 'start',\n focusVisibleRing: 'inside',\n width: '100%',\n _open: {\n borderColor: 'border/focus',\n },\n _placeholderShown: {\n color: 'text/secondary',\n },\n _disabled: {\n color: 'text/disabled',\n background: 'background/disabled',\n },\n _invalid: {\n borderColor: 'border/error',\n },\n _readOnly: {\n background: 'background/disabled',\n },\n },\n indicatorGroup: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n position: 'absolute',\n insetEnd: 0,\n top: 0,\n bottom: 0,\n paddingInline: '16',\n pointerEvents: 'none',\n },\n indicator: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: 'icon/secondary',\n _disabled: {\n color: 'icon/disabled',\n },\n _readOnly: {\n color: 'icon/on-disabled',\n },\n },\n ...base,\n content: {\n ...base.content,\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n maxWidth: rem(800),\n focusVisibleRing: 'none',\n },\n item: {\n ...base.item,\n _active: {\n background: 'background/active',\n },\n _selected: {\n background: 'background/selected',\n _highlighted: {\n background: 'background/selected-hover',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n color: 'text/disabled',\n _highlighted: {\n background: 'transparent',\n },\n },\n },\n control: {\n position: 'relative',\n width: '100%',\n },\n valueText: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flex: '1 1 0',\n minWidth: 0,\n overflow: 'hidden',\n },\n itemList: {\n flex: '1 1 auto',\n minHeight: 0,\n overflowY: 'auto',\n paddingBlock: '8',\n },\n itemContent: {\n display: 'flex',\n flexDirection: 'column',\n flex: '1 0 0',\n minWidth: 0,\n },\n itemLoading: {\n flexShrink: 0,\n },\n itemLoadingLabel: {\n color: 'text/secondary',\n flex: '1 0 0',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n emptyState: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n paddingInline: '16',\n },\n itemLabel: {\n color: 'text/body',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n minWidth: 0,\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n itemHelperText: {\n color: 'text/helper',\n textStyle: 'body/sm/regular',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n minWidth: 0,\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n checkbox: {\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n borderWidth: rem(1),\n borderColor: 'border/regular',\n borderRadius: '4',\n background: 'background/primary',\n boxShadow: 'inset/field',\n color: 'icon/on-color',\n '[data-state=checked] &': {\n background: 'input/checkbox/selection',\n borderColor: 'input/checkbox/selection',\n boxShadow: 'none',\n },\n '[data-disabled] &': {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n },\n },\n checkmark: {\n opacity: 0,\n color: 'icon/on-color',\n '[data-state=checked] &': {\n opacity: 1,\n },\n },\n searchInputGroup: {\n borderBottom: '1px solid',\n borderColor: 'border/minimal',\n background: 'background/primary',\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineStart: '16',\n paddingInlineEnd: '12',\n overflow: 'hidden',\n flexShrink: 0,\n _hover: {\n background: 'background/secondary',\n },\n _focusWithin: {\n background: 'background/primary',\n },\n },\n searchInput: {\n flex: '1 0 0',\n minWidth: 0,\n border: 'none',\n outline: 'none',\n background: 'transparent',\n color: 'input/text/inputValue',\n paddingInline: 0,\n paddingBlock: 0,\n _placeholder: {\n color: 'input/text/placeholder',\n },\n },\n searchClear: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '4',\n color: 'icon/primary',\n cursor: 'pointer',\n flexShrink: 0,\n _hover: {\n background: 'background/hover',\n },\n },\n actionContainer: {\n borderTop: '1px solid',\n borderColor: 'border/minimal',\n paddingBlock: '8',\n flexShrink: 0,\n },\n action: {\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineEnd: '24',\n paddingInlineStart: '16',\n color: 'text/primary',\n width: '100%',\n cursor: 'pointer',\n textAlign: 'start',\n _icon: {\n color: 'icon/secondary',\n },\n _hover: {\n background: 'button/secondary/bg-hover',\n _active: {\n background: 'button/secondary/bg-active',\n },\n },\n _active: {\n background: 'button/secondary/bg-active',\n },\n _focusVisible: {\n outlineOffset: '-3px',\n },\n },\n },\n\n variants: {\n hasStatusIcon: {\n true: {\n trigger: {\n paddingInlineEnd: '96',\n },\n },\n false: {},\n },\n size: {\n lg: {\n ...variants.size.lg,\n checkbox: {\n width: '24',\n height: '24',\n },\n item: {\n ...variants.size.lg.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '48',\n paddingInlineEnd: '24',\n paddingBlock: '12',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 48px item + 16px paddingBlock\n maxHeight: rem(280),\n },\n itemLabel: {\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/lg/regular',\n },\n emptyState: {\n paddingBlock: '12',\n },\n action: {\n minHeight: '48',\n paddingBlock: '12',\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n searchInputGroup: {\n height: rem(56),\n paddingBlock: '16',\n },\n searchInput: {\n textStyle: 'body/lg/regular',\n },\n searchClear: {\n padding: '8',\n },\n },\n md: {\n ...variants.size.md,\n checkbox: {\n width: '20',\n height: '20',\n },\n item: {\n ...variants.size.md.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '4',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '40',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 40px item (checkbox/avatar row) + 16px paddingBlock\n maxHeight: rem(236),\n },\n itemLabel: {\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/md/regular',\n },\n emptyState: {\n paddingBlock: '8',\n },\n action: {\n minHeight: '40',\n paddingBlock: '8',\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n trigger: {\n textStyle: 'body/md/regular',\n paddingBlock: rem(9),\n },\n searchInputGroup: {\n height: '48',\n paddingBlock: '12',\n },\n searchInput: {\n textStyle: 'body/md/regular',\n },\n searchClear: {\n padding: '4',\n },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n"],"mappings":";;;;;AAMA,IAAa,mBAAmB,iBAAiB;CAC/C,WAAW;CACX,OAAO;EACL,GAAG,cAAc,KAAK;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM;EACJ,SAAS;GACP,SAAS;GACT,YAAY;GACZ,aAAa,IAAI,CAAC;GAClB,aAAa;GACb,YAAY;GACZ,OAAO;GACP,KAAK;GACL,gBAAgB;GAChB,oBAAoB;GACpB,kBAAkB;GAClB,cAAc,IAAI,EAAE;GACpB,cAAc;GACd,YAAY;GACZ,WAAW;GACX,kBAAkB;GAClB,OAAO;GACP,OAAO,EACL,aAAa,eACf;GACA,mBAAmB,EACjB,OAAO,iBACT;GACA,WAAW;IACT,OAAO;IACP,YAAY;GACd;GACA,UAAU,EACR,aAAa,eACf;GACA,WAAW,EACT,YAAY,sBACd;EACF;EACA,gBAAgB;GACd,SAAS;GACT,YAAY;GACZ,KAAK;GACL,UAAU;GACV,UAAU;GACV,KAAK;GACL,QAAQ;GACR,eAAe;GACf,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACP,WAAW,EACT,OAAO,gBACT;GACA,WAAW,EACT,OAAO,mBACT;EACF;EACA,GAAG;EACH,SAAS;GACP,GAAG,KAAK;GACR,UAAU;GACV,SAAS;GACT,eAAe;GACf,UAAU,IAAI,GAAG;GACjB,kBAAkB;EACpB;EACA,MAAM;GACJ,GAAG,KAAK;GACR,SAAS,EACP,YAAY,oBACd;GACA,WAAW;IACT,YAAY;IACZ,cAAc,EACZ,YAAY,4BACd;GACF;GACA,WAAW;IACT,QAAQ;IACR,OAAO;IACP,cAAc,EACZ,YAAY,cACd;GACF;EACF;EACA,SAAS;GACP,UAAU;GACV,OAAO;EACT;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,KAAK;GACL,MAAM;GACN,UAAU;GACV,U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MACpB,kBAAkB;MAClB,cAAc;MACd,KAAK;KACP;KACA,mCAAiC;MAC/B,WAAW;MACX,kBAAkB;MAClB,cAAc;MACd,KAAK;KACP;IACF;IACA,UAAU,EAER,WAAW,IAAI,GAAG,EACpB;IACA,WAAW;KACT,WAAW;KACX,YAAY;IACd;IACA,kBAAkB,EAChB,WAAW,kBACb;IACA,YAAY,EACV,cAAc,IAChB;IACA,QAAQ;KACN,WAAW;KACX,cAAc;KACd,WAAW;KACX,YAAY;IACd;IACA,SAAS;KACP,WAAW;KACX,cAAc,IAAI,CAAC;IACrB;IACA,kBAAkB;KAChB,QAAQ;KACR,cAAc;IAChB;IACA,aAAa,EACX,WAAW,kBACb;IACA,aAAa,EACX,SAAS,IACX;GACF;EACF;CACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
|
|
@@ -453,6 +453,7 @@ declare const slotRecipes: {
|
|
|
453
453
|
height: "16";
|
|
454
454
|
};
|
|
455
455
|
input: {
|
|
456
|
+
paddingInlineEnd: "96";
|
|
456
457
|
lineHeight: "normal";
|
|
457
458
|
paddingInline: string;
|
|
458
459
|
paddingBlock: string;
|
|
@@ -474,6 +475,7 @@ declare const slotRecipes: {
|
|
|
474
475
|
height: "24";
|
|
475
476
|
};
|
|
476
477
|
input: {
|
|
478
|
+
paddingInlineEnd: "96";
|
|
477
479
|
lineHeight: "normal";
|
|
478
480
|
paddingInline: string;
|
|
479
481
|
paddingBlock: string;
|
|
@@ -482,6 +484,14 @@ declare const slotRecipes: {
|
|
|
482
484
|
};
|
|
483
485
|
};
|
|
484
486
|
};
|
|
487
|
+
hasStatusIcon: {
|
|
488
|
+
true: {
|
|
489
|
+
input: {
|
|
490
|
+
paddingInlineEnd: "128";
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
false: {};
|
|
494
|
+
};
|
|
485
495
|
}>;
|
|
486
496
|
dataWidget: import('@chakra-ui/react').SlotRecipeDefinition<"title" | "root" | "action" | "items", import('@chakra-ui/react').SlotRecipeVariantRecord<"title" | "root" | "action" | "items">>;
|
|
487
497
|
datePicker: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "input" | "label" | "table" | "view" | "root" | "trigger" | "positioner" | "valueText" | "clearTrigger" | "control" | "monthSelect" | "nextTrigger" | "presetTrigger" | "prevTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect" | "months", {
|
|
@@ -573,7 +583,7 @@ declare const slotRecipes: {
|
|
|
573
583
|
emptyState?: {
|
|
574
584
|
paddingBlock: "8";
|
|
575
585
|
} | undefined;
|
|
576
|
-
|
|
586
|
+
action?: {
|
|
577
587
|
minHeight: "40";
|
|
578
588
|
paddingBlock: "8";
|
|
579
589
|
textStyle: "body/md/regular";
|
|
@@ -1508,7 +1518,15 @@ declare const slotRecipes: {
|
|
|
1508
1518
|
};
|
|
1509
1519
|
};
|
|
1510
1520
|
}>;
|
|
1511
|
-
select: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "checkbox" | "emptyState" | "list" | "root" | "item" | "itemContent" | "itemIndicator" | "trigger" | "positioner" | "indicator" | "itemGroup" | "itemGroupLabel" | "itemText" | "valueText" | "
|
|
1521
|
+
select: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "label" | "checkbox" | "emptyState" | "list" | "root" | "item" | "itemContent" | "itemIndicator" | "trigger" | "positioner" | "indicator" | "itemGroup" | "itemGroupLabel" | "itemText" | "valueText" | "action" | "clearTrigger" | "control" | "actionContainer" | "searchInputGroup" | "searchInput" | "searchClear" | "itemList" | "itemLabel" | "itemHelperText" | "indicatorGroup" | "checkmark" | "itemLoading" | "itemLoadingLabel", {
|
|
1522
|
+
hasStatusIcon: {
|
|
1523
|
+
true: {
|
|
1524
|
+
trigger: {
|
|
1525
|
+
paddingInlineEnd: "96";
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
false: {};
|
|
1529
|
+
};
|
|
1512
1530
|
size: {
|
|
1513
1531
|
lg: {
|
|
1514
1532
|
checkbox: {
|
|
@@ -1548,7 +1566,7 @@ declare const slotRecipes: {
|
|
|
1548
1566
|
emptyState: {
|
|
1549
1567
|
paddingBlock: "12";
|
|
1550
1568
|
};
|
|
1551
|
-
|
|
1569
|
+
action: {
|
|
1552
1570
|
minHeight: "48";
|
|
1553
1571
|
paddingBlock: "12";
|
|
1554
1572
|
textStyle: "body/lg/regular";
|
|
@@ -1607,7 +1625,7 @@ declare const slotRecipes: {
|
|
|
1607
1625
|
emptyState: {
|
|
1608
1626
|
paddingBlock: "8";
|
|
1609
1627
|
};
|
|
1610
|
-
|
|
1628
|
+
action: {
|
|
1611
1629
|
minHeight: "40";
|
|
1612
1630
|
paddingBlock: "8";
|
|
1613
1631
|
textStyle: "body/md/regular";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attaches sub-components to a component for dot-notation access (e.g. `BitkitSelect.Action`)
|
|
3
|
+
* while preserving the component's type on the default export.
|
|
4
|
+
*
|
|
5
|
+
* `forwardRef` + a bare `Object.assign` loses the component's type info; this helper keeps it via
|
|
6
|
+
* the `T & S` return type. Prefer this over `Object.assign(Component, { ... })` for compound exports.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* export default withSubComponents(BitkitSelect, { Action: BitkitSelectMenuAction });
|
|
10
|
+
*/
|
|
11
|
+
export declare const withSubComponents: <T extends object, S extends Record<string, unknown>>(component: T, subs: S) => T & S;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region lib/utilities/withSubComponents.ts
|
|
2
|
+
/**
|
|
3
|
+
* Attaches sub-components to a component for dot-notation access (e.g. `BitkitSelect.Action`)
|
|
4
|
+
* while preserving the component's type on the default export.
|
|
5
|
+
*
|
|
6
|
+
* `forwardRef` + a bare `Object.assign` loses the component's type info; this helper keeps it via
|
|
7
|
+
* the `T & S` return type. Prefer this over `Object.assign(Component, { ... })` for compound exports.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* export default withSubComponents(BitkitSelect, { Action: BitkitSelectMenuAction });
|
|
11
|
+
*/
|
|
12
|
+
var withSubComponents = (component, subs) => Object.assign(component, subs);
|
|
13
|
+
//#endregion
|
|
14
|
+
export { withSubComponents };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=withSubComponents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withSubComponents.js","names":[],"sources":["../../lib/utilities/withSubComponents.ts"],"sourcesContent":["/**\n * Attaches sub-components to a component for dot-notation access (e.g. `BitkitSelect.Action`)\n * while preserving the component's type on the default export.\n *\n * `forwardRef` + a bare `Object.assign` loses the component's type info; this helper keeps it via\n * the `T & S` return type. Prefer this over `Object.assign(Component, { ... })` for compound exports.\n *\n * @example\n * export default withSubComponents(BitkitSelect, { Action: BitkitSelectMenuAction });\n */\n\nexport const withSubComponents = <T extends object, S extends Record<string, unknown>>(component: T, subs: S): T & S =>\n Object.assign(component, subs);\n"],"mappings":";;;;;;;;;;;AAWA,IAAa,qBAA0E,WAAc,SACnG,OAAO,OAAO,WAAW,IAAI"}
|