@coinbase/cds-web 8.25.1 → 8.27.0

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dts/alpha/select/DefaultSelectControl.d.ts +1 -1
  3. package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
  4. package/dts/alpha/select/DefaultSelectDropdown.d.ts.map +1 -1
  5. package/dts/alpha/select/DefaultSelectOptionGroup.d.ts +8 -0
  6. package/dts/alpha/select/DefaultSelectOptionGroup.d.ts.map +1 -0
  7. package/dts/alpha/select/Select.d.ts +21 -454
  8. package/dts/alpha/select/Select.d.ts.map +1 -1
  9. package/dts/alpha/select/index.d.ts +2 -0
  10. package/dts/alpha/select/index.d.ts.map +1 -1
  11. package/dts/alpha/select/types.d.ts +594 -0
  12. package/dts/alpha/select/types.d.ts.map +1 -0
  13. package/dts/alpha/select-chip/SelectChip.d.ts +26 -0
  14. package/dts/alpha/select-chip/SelectChip.d.ts.map +1 -0
  15. package/dts/alpha/select-chip/SelectChipControl.d.ts +13 -0
  16. package/dts/alpha/select-chip/SelectChipControl.d.ts.map +1 -0
  17. package/dts/alpha/select-chip/index.d.ts +3 -0
  18. package/dts/alpha/select-chip/index.d.ts.map +1 -0
  19. package/dts/cells/CellAccessory.d.ts +1 -1
  20. package/dts/cells/CellAccessory.d.ts.map +1 -1
  21. package/dts/chips/Chip.d.ts.map +1 -1
  22. package/dts/chips/SelectChip.d.ts +8 -0
  23. package/dts/chips/SelectChip.d.ts.map +1 -1
  24. package/dts/controls/SearchInput.d.ts +1 -1
  25. package/esm/alpha/select/DefaultSelectControl.js +46 -8
  26. package/esm/alpha/select/DefaultSelectDropdown.js +137 -60
  27. package/esm/alpha/select/DefaultSelectOptionGroup.js +118 -0
  28. package/esm/alpha/select/Select.js +16 -31
  29. package/esm/alpha/select/index.js +3 -1
  30. package/esm/alpha/select/types.js +46 -0
  31. package/esm/alpha/select-chip/SelectChip.js +50 -0
  32. package/esm/alpha/select-chip/SelectChipControl.js +116 -0
  33. package/esm/alpha/select-chip/index.js +2 -0
  34. package/esm/cells/CellAccessory.js +9 -0
  35. package/esm/chips/Chip.js +5 -2
  36. package/esm/chips/SelectChip.js +10 -0
  37. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -8,6 +8,23 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  <!-- template-start -->
10
10
 
11
+ ## 8.27.0 (12/3/2025 PST)
12
+
13
+ #### 🚀 Updates
14
+
15
+ - Feat: introduce `unselected` state for ListCell. [[#194](https://github.com/coinbase/cds/pull/194)] [DX-4947]
16
+
17
+ ## 8.26.0 (12/1/2025 PST)
18
+
19
+ #### 🚀 Updates
20
+
21
+ - Add SelectChip alpha component. [[#180](https://github.com/coinbase/cds/pull/180)]
22
+ - Add support for option grouping. [[#180](https://github.com/coinbase/cds/pull/180)]
23
+
24
+ #### 🐞 Fixes
25
+
26
+ - Fix Select select all when options disabled. [[#180](https://github.com/coinbase/cds/pull/180)]
27
+
11
28
  ## 8.25.1 (12/1/2025 PST)
12
29
 
13
30
  #### 🐞 Fixes
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SelectControlProps, SelectType } from './Select';
2
+ import { type SelectControlProps, type SelectType } from './Select';
3
3
  type DefaultSelectControlBase = <
4
4
  Type extends SelectType,
5
5
  SelectOptionValue extends string = string,
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultSelectControl.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAe9E,OAAO,KAAK,EAAE,kBAAkB,EAAgB,UAAU,EAAE,MAAM,UAAU,CAAC;AAyB7E,KAAK,wBAAwB,GAAG,CAC9B,IAAI,SAAS,UAAU,EACvB,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;CAAE,KAClF,KAAK,CAAC,YAAY,CAAC;AA0UxB,eAAO,MAAM,oBAAoB,EAAoC,wBAAwB,CAAC"}
1
+ {"version":3,"file":"DefaultSelectControl.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAe9E,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,UAAU,EAChB,MAAM,UAAU,CAAC;AAyBlB,KAAK,wBAAwB,GAAG,CAC9B,IAAI,SAAS,UAAU,EACvB,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;CAAE,KAClF,KAAK,CAAC,YAAY,CAAC;AAwXxB,eAAO,MAAM,oBAAoB,EAAoC,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultSelectDropdown.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectDropdown.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMhE,KAAK,yBAAyB,GAAG,CAC/B,IAAI,SAAS,UAAU,EACvB,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KACtF,KAAK,CAAC,YAAY,CAAC;AA6TxB,eAAO,MAAM,qBAAqB,EAAqC,yBAAyB,CAAC"}
1
+ {"version":3,"file":"DefaultSelectDropdown.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectDropdown.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAsC,UAAU,EAAE,MAAM,UAAU,CAAC;AAMpG,KAAK,yBAAyB,GAAG,CAC/B,IAAI,SAAS,UAAU,EACvB,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KACtF,KAAK,CAAC,YAAY,CAAC;AA2ZxB,eAAO,MAAM,qBAAqB,EAAqC,yBAAyB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { SelectOptionGroupProps, SelectType } from './Select';
2
+ export declare const DefaultSelectOptionGroup: <
3
+ Type extends SelectType = 'single',
4
+ SelectOptionValue extends string = string,
5
+ >(
6
+ props: SelectOptionGroupProps<Type, SelectOptionValue>,
7
+ ) => React.ReactElement;
8
+ //# sourceMappingURL=DefaultSelectOptionGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultSelectOptionGroup.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectOptionGroup.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAqB,UAAU,EAAE,MAAM,UAAU,CAAC;AA+ItF,eAAO,MAAM,wBAAwB,EAAwC,CAC3E,IAAI,SAAS,UAAU,GAAG,QAAQ,EAClC,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,CAAC,KACnD,KAAK,CAAC,YAAY,CAAC"}
@@ -1,458 +1,26 @@
1
- import type { SharedAccessibilityProps } from '@coinbase/cds-common';
2
1
  import { type UseFloatingReturn } from '@floating-ui/react-dom';
3
- import type { CellBaseProps } from '../../cells/Cell';
4
- import type { InputStackBaseProps } from '../../controls/InputStack';
5
- import type { AriaHasPopupType } from '../../hooks/useA11yControlledVisibility';
6
- import { type BoxDefaultElement, type BoxProps } from '../../layout/Box';
7
- import type { InteractableBlendStyles } from '../../system/Interactable';
8
- import type { PressableDefaultElement, PressableProps } from '../../system/Pressable';
2
+ import { type SelectDropdownProps, type SelectProps, type SelectType } from './types';
3
+ export type {
4
+ SelectBaseProps,
5
+ SelectControlComponent,
6
+ SelectControlProps,
7
+ SelectDropdownComponent,
8
+ SelectDropdownProps,
9
+ SelectEmptyDropdownContentComponent,
10
+ SelectEmptyDropdownContentProps,
11
+ SelectOption,
12
+ SelectOptionComponent,
13
+ SelectOptionCustomUI,
14
+ SelectOptionGroup,
15
+ SelectOptionGroupComponent,
16
+ SelectOptionGroupCustomUI,
17
+ SelectOptionGroupProps,
18
+ SelectOptionProps,
19
+ SelectProps,
20
+ SelectType,
21
+ } from './types';
22
+ export { isSelectOptionGroup } from './types';
9
23
  export declare const defaultAccessibilityRoles: SelectDropdownProps['accessibilityRoles'];
10
- export type SelectType = 'single' | 'multi';
11
- /**
12
- * Configuration for a single option in the Select component
13
- */
14
- export type SelectOption<SelectOptionValue extends string = string> = {
15
- /** The value associated with this option */
16
- value: SelectOptionValue | null;
17
- /** The label displayed for the option */
18
- label?: React.ReactNode;
19
- /** Additional description text shown below the label */
20
- description?: React.ReactNode;
21
- /** Whether this option is disabled and cannot be selected */
22
- disabled?: boolean;
23
- };
24
- /**
25
- * Props for individual option components within the Select dropdown
26
- */
27
- export type SelectOptionProps<
28
- Type extends SelectType = 'single',
29
- SelectOptionValue extends string = string,
30
- > = SelectOption<SelectOptionValue> &
31
- Pick<CellBaseProps, 'accessory' | 'media' | 'end'> &
32
- Omit<PressableProps<PressableDefaultElement>, 'value' | 'type' | 'onClick'> & {
33
- /** Click handler for the option */
34
- onClick?: (value: SelectOptionValue | null) => void;
35
- /** Whether this is for single or multi-select */
36
- type?: Type;
37
- /** Whether this option is currently selected */
38
- selected?: boolean;
39
- /** Whether the option is in an indeterminate state (for multi-select) */
40
- indeterminate?: boolean;
41
- /** Whether to allow multiline text in the option */
42
- multiline?: boolean;
43
- /** ARIA role for the option element */
44
- accessibilityRole?: string;
45
- /** Whether to use compact styling for the option */
46
- compact?: boolean;
47
- /** Inline styles for the option */
48
- style?: React.CSSProperties;
49
- /** Custom styles for different parts of the option */
50
- styles?: {
51
- /** Styles for the option cell element */
52
- optionCell?: React.CSSProperties;
53
- /** Styles for the option content wrapper */
54
- optionContent?: React.CSSProperties;
55
- /** Styles for the option label element */
56
- optionLabel?: React.CSSProperties;
57
- /** Styles for the option description element */
58
- optionDescription?: React.CSSProperties;
59
- /** Styles for the select all divider element */
60
- selectAllDivider?: React.CSSProperties;
61
- };
62
- /** CSS class name for the option */
63
- className?: string;
64
- /** Custom class names for different parts of the option */
65
- classNames?: {
66
- /** Class name for the option cell element */
67
- optionCell?: string;
68
- /** Class name for the option content wrapper */
69
- optionContent?: string;
70
- /** Class name for the option label element */
71
- optionLabel?: string;
72
- /** Class name for the option description element */
73
- optionDescription?: string;
74
- /** Class name for the select all divider element */
75
- selectAllDivider?: string;
76
- };
77
- };
78
- /**
79
- * Custom UI to render for an option in the Select component options array
80
- */
81
- export type SelectOptionCustomUI<
82
- Type extends SelectType = 'single',
83
- SelectOptionValue extends string = string,
84
- > = Pick<SelectOptionProps<Type>, 'accessory' | 'media' | 'end'> & {
85
- /** Custom component to render the option */
86
- Component?: SelectOptionComponent<Type, SelectOptionValue>;
87
- };
88
- export type SelectOptionComponent<
89
- Type extends SelectType = 'single',
90
- SelectOptionValue extends string = string,
91
- > = React.FC<
92
- SelectOptionProps<Type, SelectOptionValue> & {
93
- ref?: React.Ref<HTMLButtonElement>;
94
- }
95
- >;
96
- export type SelectEmptyDropdownContentProps = {
97
- label: string;
98
- /** Custom styles for different parts of the empty dropdown content */
99
- styles?: {
100
- /** Styles for the container element */
101
- emptyContentsContainer?: React.CSSProperties;
102
- /** Styles for the text element */
103
- emptyContentsText?: React.CSSProperties;
104
- };
105
- /** Custom class names for different parts of the empty dropdown content */
106
- classNames?: {
107
- /** Class name for the container element */
108
- emptyContentsContainer?: string;
109
- /** Class name for the text element */
110
- emptyContentsText?: string;
111
- };
112
- };
113
- export type SelectEmptyDropdownContentComponent = React.FC<SelectEmptyDropdownContentProps>;
114
- type SelectState<Type extends SelectType = 'single', SelectOptionValue extends string = string> = {
115
- value: Type extends 'multi' ? SelectOptionValue[] : SelectOptionValue | null;
116
- onChange: (
117
- value: Type extends 'multi'
118
- ? SelectOptionValue | SelectOptionValue[] | null
119
- : SelectOptionValue | null,
120
- ) => void;
121
- };
122
- /**
123
- * Props for the select control component (the clickable input that opens the dropdown)
124
- */
125
- export type SelectControlProps<
126
- Type extends SelectType = 'single',
127
- SelectOptionValue extends string = string,
128
- > = Pick<SharedAccessibilityProps, 'accessibilityLabel'> &
129
- Omit<BoxProps<BoxDefaultElement>, 'borderWidth' | 'onChange'> &
130
- Pick<
131
- InputStackBaseProps,
132
- 'disabled' | 'startNode' | 'variant' | 'labelVariant' | 'testID' | 'endNode'
133
- > &
134
- SelectState<Type, SelectOptionValue> & {
135
- /** Array of options to display in the select dropdown */
136
- options: (SelectOption<SelectOptionValue> & SelectOptionCustomUI<Type, SelectOptionValue>)[];
137
- /** Label displayed above the control */
138
- label?: React.ReactNode;
139
- /** Placeholder text displayed when no option is selected */
140
- placeholder?: React.ReactNode;
141
- /** Helper text displayed below the select */
142
- helperText?: React.ReactNode;
143
- /** Whether this is for single or multi-select */
144
- type?: Type;
145
- /** Whether the dropdown is currently open */
146
- open: boolean;
147
- /** Function to update the dropdown open state */
148
- setOpen: (open: boolean | ((open: boolean) => boolean)) => void;
149
- /** Maximum number of selected options to show before truncating */
150
- maxSelectedOptionsToShow?: number;
151
- /** Label to show for showcasing count of hidden selected options */
152
- hiddenSelectedOptionsLabel?: string;
153
- /** Accessibility label for each chip in a multi-select */
154
- removeSelectedOptionAccessibilityLabel?: string;
155
- /** Blend styles for control interactivity */
156
- blendStyles?: InteractableBlendStyles;
157
- /** ARIA haspopup attribute value */
158
- ariaHaspopup?: AriaHasPopupType;
159
- /** Whether to use compact styling for the control */
160
- compact?: boolean;
161
- /** Inline styles for the control */
162
- style?: React.CSSProperties;
163
- /** Custom styles for different parts of the control */
164
- styles?: {
165
- /** Styles for the start node element */
166
- controlStartNode?: React.CSSProperties;
167
- /** Styles for the input node element */
168
- controlInputNode?: React.CSSProperties;
169
- /** Styles for the value node element */
170
- controlValueNode?: React.CSSProperties;
171
- /** Styles for the label node element */
172
- controlLabelNode?: React.CSSProperties;
173
- /** Styles for the helper text node element */
174
- controlHelperTextNode?: React.CSSProperties;
175
- /** Styles for the end node element */
176
- controlEndNode?: React.CSSProperties;
177
- };
178
- /** CSS class name for the control */
179
- className?: string;
180
- /** Custom class names for different parts of the control */
181
- classNames?: {
182
- /** Class name for the start node element */
183
- controlStartNode?: string;
184
- /** Class name for the input node element */
185
- controlInputNode?: string;
186
- /** Class name for the value node element */
187
- controlValueNode?: string;
188
- /** Class name for the label node element */
189
- controlLabelNode?: string;
190
- /** Class name for the helper text node element */
191
- controlHelperTextNode?: string;
192
- /** Class name for the end node element */
193
- controlEndNode?: string;
194
- };
195
- };
196
- export type SelectControlComponent<
197
- Type extends SelectType = 'single',
198
- SelectOptionValue extends string = string,
199
- > = React.FC<
200
- SelectControlProps<Type, SelectOptionValue> & {
201
- ref?: React.Ref<HTMLElement>;
202
- }
203
- >;
204
- /**
205
- * Props for the dropdown component that contains the list of options
206
- */
207
- export type SelectDropdownProps<
208
- Type extends SelectType = 'single',
209
- SelectOptionValue extends string = string,
210
- > = SelectState<Type, SelectOptionValue> &
211
- Pick<SharedAccessibilityProps, 'accessibilityLabel'> &
212
- Omit<BoxProps<BoxDefaultElement>, 'onChange'> &
213
- Pick<SelectOptionProps<Type>, 'accessory' | 'media' | 'end'> & {
214
- /** Whether this is for single or multi-select */
215
- type?: Type;
216
- /** Array of options with their configuration and optional custom components */
217
- options: (SelectOption<SelectOptionValue> & SelectOptionCustomUI<Type, SelectOptionValue>)[];
218
- /** Whether the dropdown is currently open */
219
- open: boolean;
220
- /** Function to update the dropdown open state */
221
- setOpen: (open: boolean | ((open: boolean) => boolean)) => void;
222
- /** Label displayed above the dropdown */
223
- label?: React.ReactNode;
224
- /** Whether the dropdown is disabled */
225
- disabled?: boolean;
226
- /** Label for the "Select All" option in multi-select mode */
227
- selectAllLabel?: string;
228
- /** Label displayed when there are no options available */
229
- emptyOptionsLabel?: string;
230
- /** Label for the "Clear All" option in multi-select mode */
231
- clearAllLabel?: string;
232
- /** Whether to hide the "Select All" option in multi-select mode */
233
- hideSelectAll?: boolean;
234
- /** Reference to the control element for positioning */
235
- controlRef: React.MutableRefObject<HTMLElement | null>;
236
- /** Inline styles for the dropdown */
237
- style?: React.CSSProperties;
238
- /** Custom styles for dropdown elements */
239
- styles?: {
240
- /** Styles for the dropdown root container */
241
- root?: React.CSSProperties;
242
- /** Styles for individual options */
243
- option?: React.CSSProperties;
244
- /** Blend styles for option interactivity */
245
- optionBlendStyles?: InteractableBlendStyles;
246
- /** Styles for the option cell element */
247
- optionCell?: React.CSSProperties;
248
- /** Styles for the option content wrapper */
249
- optionContent?: React.CSSProperties;
250
- /** Styles for the option label element */
251
- optionLabel?: React.CSSProperties;
252
- /** Styles for the option description element */
253
- optionDescription?: React.CSSProperties;
254
- /** Styles for the select all divider element */
255
- selectAllDivider?: React.CSSProperties;
256
- /** Styles for the empty contents container element */
257
- emptyContentsContainer?: React.CSSProperties;
258
- /** Styles for the empty contents text element */
259
- emptyContentsText?: React.CSSProperties;
260
- };
261
- /** CSS class name for the dropdown */
262
- className?: string;
263
- /** Custom class names for dropdown elements */
264
- classNames?: {
265
- /** Class name for the dropdown root container */
266
- root?: string;
267
- /** Class name for individual options */
268
- option?: string;
269
- /** Class name for the option cell element */
270
- optionCell?: string;
271
- /** Class name for the option content wrapper */
272
- optionContent?: string;
273
- /** Class name for the option label element */
274
- optionLabel?: string;
275
- /** Class name for the option description element */
276
- optionDescription?: string;
277
- /** Class name for the select all divider element */
278
- selectAllDivider?: string;
279
- /** Class name for the empty contents container element */
280
- emptyContentsContainer?: string;
281
- /** Class name for the empty contents text element */
282
- emptyContentsText?: string;
283
- };
284
- /** Whether to use compact styling for the dropdown */
285
- compact?: boolean;
286
- /** Custom component to render individual options */
287
- SelectOptionComponent?: SelectOptionComponent<Type, SelectOptionValue>;
288
- /** Custom component to render the "Select All" option */
289
- SelectAllOptionComponent?: SelectOptionComponent<Type, SelectOptionValue>;
290
- /** Custom component to render when no options are available */
291
- SelectEmptyDropdownContentsComponent?: SelectEmptyDropdownContentComponent;
292
- /** Accessibility roles for dropdown and option elements */
293
- accessibilityRoles?: {
294
- /** ARIA role for the dropdown element */
295
- dropdown?: AriaHasPopupType;
296
- /** ARIA role for option elements */
297
- option?: string;
298
- };
299
- };
300
- export type SelectDropdownComponent<
301
- Type extends SelectType = 'single',
302
- SelectOptionValue extends string = string,
303
- > = React.FC<
304
- SelectDropdownProps<Type, SelectOptionValue> & {
305
- ref?: React.Ref<HTMLElement>;
306
- }
307
- >;
308
- export type SelectBaseProps<
309
- Type extends SelectType = 'single',
310
- SelectOptionValue extends string = string,
311
- > = Pick<SharedAccessibilityProps, 'accessibilityLabel'> &
312
- SelectState<Type, SelectOptionValue> &
313
- Pick<
314
- SelectControlProps<Type, SelectOptionValue>,
315
- | 'label'
316
- | 'placeholder'
317
- | 'helperText'
318
- | 'hiddenSelectedOptionsLabel'
319
- | 'removeSelectedOptionAccessibilityLabel'
320
- | 'startNode'
321
- | 'variant'
322
- | 'disabled'
323
- | 'labelVariant'
324
- | 'endNode'
325
- > &
326
- Pick<SelectOptionProps<Type>, 'accessory' | 'media' | 'end'> &
327
- Pick<
328
- SelectDropdownProps<Type>,
329
- | 'selectAllLabel'
330
- | 'emptyOptionsLabel'
331
- | 'clearAllLabel'
332
- | 'hideSelectAll'
333
- | 'accessibilityRoles'
334
- > & {
335
- /** Whether the select allows single or multiple selections */
336
- type?: Type;
337
- /** Array of options to display in the select dropdown */
338
- options: (SelectOption<SelectOptionValue> & SelectOptionCustomUI<Type, SelectOptionValue>)[];
339
- /** Controlled open state of the dropdown */
340
- open?: boolean;
341
- /** Callback to update the open state */
342
- setOpen?: (open: boolean | ((open: boolean) => boolean)) => void;
343
- /** Whether clicking outside the dropdown should close it */
344
- disableClickOutsideClose?: boolean;
345
- /** Whether to use compact styling for the select */
346
- compact?: boolean;
347
- /** Initial open state when component mounts (uncontrolled mode) */
348
- defaultOpen?: boolean;
349
- /** Maximum number of selected options to show before truncating */
350
- maxSelectedOptionsToShow?: number;
351
- /** Custom component to render the dropdown container */
352
- SelectDropdownComponent?: SelectDropdownComponent<Type, SelectOptionValue>;
353
- /** Custom component to render the select control */
354
- SelectControlComponent?: SelectControlComponent<Type, SelectOptionValue>;
355
- /** Custom component to render individual options */
356
- SelectOptionComponent?: SelectOptionComponent<Type, SelectOptionValue>;
357
- /** Custom component to render the "Select All" option */
358
- SelectAllOptionComponent?: SelectOptionComponent<Type, SelectOptionValue>;
359
- /** Custom component to render when no options are available */
360
- SelectEmptyDropdownContentsComponent?: SelectEmptyDropdownContentComponent;
361
- /** Accessibility label for the control */
362
- controlAccessibilityLabel?: string;
363
- /** Inline styles for the root element */
364
- style?: React.CSSProperties;
365
- /** CSS class name for the root element */
366
- className?: string;
367
- /** Test ID for the root element */
368
- testID?: string;
369
- };
370
- /**
371
- * Props for the Select component
372
- */
373
- export type SelectProps<
374
- Type extends SelectType = 'single',
375
- SelectOptionValue extends string = string,
376
- > = SelectBaseProps<Type, SelectOptionValue> & {
377
- /** Custom styles for different parts of the select */
378
- styles?: {
379
- /** Styles for the root container */
380
- root?: React.CSSProperties;
381
- /** Styles for the control element */
382
- control?: React.CSSProperties;
383
- /** Styles for the start node element */
384
- controlStartNode?: React.CSSProperties;
385
- /** Styles for the input node element */
386
- controlInputNode?: React.CSSProperties;
387
- /** Styles for the value node element */
388
- controlValueNode?: React.CSSProperties;
389
- /** Styles for the label node element */
390
- controlLabelNode?: React.CSSProperties;
391
- /** Styles for the helper text node element */
392
- controlHelperTextNode?: React.CSSProperties;
393
- /** Styles for the end node element */
394
- controlEndNode?: React.CSSProperties;
395
- /** Blend styles for control interactivity */
396
- controlBlendStyles?: InteractableBlendStyles;
397
- /** Styles for the dropdown container */
398
- dropdown?: React.CSSProperties;
399
- /** Styles for individual options */
400
- option?: React.CSSProperties;
401
- /** Styles for the option cell element */
402
- optionCell?: React.CSSProperties;
403
- /** Styles for the option content wrapper */
404
- optionContent?: React.CSSProperties;
405
- /** Styles for the option label element */
406
- optionLabel?: React.CSSProperties;
407
- /** Styles for the option description element */
408
- optionDescription?: React.CSSProperties;
409
- /** Blend styles for option interactivity */
410
- optionBlendStyles?: InteractableBlendStyles;
411
- /** Styles for the select all divider element */
412
- selectAllDivider?: React.CSSProperties;
413
- /** Styles for the empty contents container element */
414
- emptyContentsContainer?: React.CSSProperties;
415
- /** Styles for the empty contents text element */
416
- emptyContentsText?: React.CSSProperties;
417
- };
418
- /** Custom class names for different parts of the select */
419
- classNames?: {
420
- /** Class name for the root container */
421
- root?: string;
422
- /** Class name for the control element */
423
- control?: string;
424
- /** Class name for the start node element */
425
- controlStartNode?: string;
426
- /** Class name for the input node element */
427
- controlInputNode?: string;
428
- /** Class name for the value node element */
429
- controlValueNode?: string;
430
- /** Class name for the label node element */
431
- controlLabelNode?: string;
432
- /** Class name for the helper text node element */
433
- controlHelperTextNode?: string;
434
- /** Class name for the end node element */
435
- controlEndNode?: string;
436
- /** Class name for the dropdown container */
437
- dropdown?: string;
438
- /** Class name for individual options */
439
- option?: string;
440
- /** Class name for the option cell element */
441
- optionCell?: string;
442
- /** Class name for the option content wrapper */
443
- optionContent?: string;
444
- /** Class name for the option label element */
445
- optionLabel?: string;
446
- /** Class name for the option description element */
447
- optionDescription?: string;
448
- /** Class name for the select all divider element */
449
- selectAllDivider?: string;
450
- /** Class name for the empty contents container element */
451
- emptyContentsContainer?: string;
452
- /** Class name for the empty contents text element */
453
- emptyContentsText?: string;
454
- };
455
- };
456
24
  export type SelectRef = HTMLElement &
457
25
  Pick<SelectProps, 'open' | 'setOpen'> & {
458
26
  refs: UseFloatingReturn['refs'];
@@ -466,5 +34,4 @@ type SelectComponent = <
466
34
  },
467
35
  ) => React.ReactElement;
468
36
  export declare const Select: SelectComponent;
469
- export {};
470
37
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/Select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,OAAO,EAAO,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG9E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAQtF,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,oBAAoB,CAG/E,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,iBAAiB,SAAS,MAAM,GAAG,MAAM,IAAI;IACpE,4CAA4C;IAC5C,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAChC,yCAAyC;IACzC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,wDAAwD;IACxD,WAAW,CAAC,EAAE,KAAK,CAAC,SAA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ACV,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,mCAAmC,EACnC,+BAA+B,EAC/B,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,UAAU,GACX,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,oBAAoB,CAG/E,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,GACjC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IACtC,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AAEJ,KAAK,eAAe,GAAG,CACrB,IAAI,SAAS,UAAU,GAAG,QAAQ,EAClC,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,WAAW,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;CAAE,KACzE,KAAK,CAAC,YAAY,CAAC;AAkQxB,eAAO,MAAM,MAAM,EAAiB,eAAe,CAAC"}
@@ -3,5 +3,7 @@ export * from './DefaultSelectControl';
3
3
  export * from './DefaultSelectDropdown';
4
4
  export * from './DefaultSelectEmptyDropdownContents';
5
5
  export * from './DefaultSelectOption';
6
+ export * from './DefaultSelectOptionGroup';
6
7
  export * from './Select';
8
+ export * from './types';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}