@coinbase/cds-mobile 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.
- package/CHANGELOG.md +21 -0
- package/dts/alpha/select/DefaultSelectControl.d.ts +2 -8
- package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectDropdown.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectOptionGroup.d.ts +8 -0
- package/dts/alpha/select/DefaultSelectOptionGroup.d.ts.map +1 -0
- package/dts/alpha/select/Select.d.ts +23 -366
- package/dts/alpha/select/Select.d.ts.map +1 -1
- package/dts/alpha/select/index.d.ts +2 -0
- package/dts/alpha/select/index.d.ts.map +1 -1
- package/dts/alpha/select/types.d.ts +486 -0
- package/dts/alpha/select/types.d.ts.map +1 -0
- package/dts/alpha/select-chip/SelectChip.d.ts +26 -0
- package/dts/alpha/select-chip/SelectChip.d.ts.map +1 -0
- package/dts/alpha/select-chip/SelectChipControl.d.ts +14 -0
- package/dts/alpha/select-chip/SelectChipControl.d.ts.map +1 -0
- package/dts/alpha/select-chip/index.d.ts +3 -0
- package/dts/alpha/select-chip/index.d.ts.map +1 -0
- package/dts/cells/CellAccessory.d.ts +1 -1
- package/dts/cells/CellAccessory.d.ts.map +1 -1
- package/dts/chips/Chip.d.ts.map +1 -1
- package/dts/chips/SelectChip.d.ts +8 -0
- package/dts/chips/SelectChip.d.ts.map +1 -1
- package/dts/examples/ExampleScreen.d.ts +26 -1
- package/dts/examples/ExampleScreen.d.ts.map +1 -1
- package/esm/alpha/select/DefaultSelectControl.js +46 -8
- package/esm/alpha/select/DefaultSelectDropdown.js +100 -31
- package/esm/alpha/select/DefaultSelectOption.js +1 -1
- package/esm/alpha/select/DefaultSelectOptionGroup.js +90 -0
- package/esm/alpha/select/Select.js +10 -26
- package/esm/alpha/select/index.js +3 -1
- package/esm/alpha/select/types.js +50 -0
- package/esm/alpha/select-chip/SelectChip.js +31 -0
- package/esm/alpha/select-chip/SelectChipControl.js +111 -0
- package/esm/alpha/select-chip/__stories__/SelectChip.stories.js +538 -0
- package/esm/alpha/select-chip/index.js +2 -0
- package/esm/banner/__stories__/Banner.stories.js +133 -294
- package/esm/banner/__stories__/BannerActions.stories.js +276 -0
- package/esm/banner/__stories__/BannerLayout.stories.js +329 -0
- package/esm/cells/Cell.js +1 -1
- package/esm/cells/CellAccessory.js +9 -0
- package/esm/cells/__stories__/ListCell.stories.js +81 -87
- package/esm/cells/__stories__/ListCellFallback.stories.js +1 -0
- package/esm/chips/Chip.js +4 -1
- package/esm/chips/SelectChip.js +9 -0
- package/esm/examples/ExampleScreen.js +79 -58
- package/esm/icons/__stories__/IconSheet.js +35 -13
- package/esm/illustrations/__stories__/HeroSquare.stories.js +70 -2
- package/esm/illustrations/__stories__/Pictogram.stories.js +70 -2
- package/esm/illustrations/__stories__/SpotIcon.stories.js +70 -2
- package/esm/illustrations/__stories__/SpotRectangle.stories.js +68 -2
- package/esm/illustrations/__stories__/SpotSquare.stories.js +68 -2
- package/esm/media/__stories__/CarouselMedia.stories.js +2 -5
- package/esm/numpad/__stories__/Numpad.stories.js +8 -5
- package/esm/page/__stories__/PageFooter.stories.js +5 -4
- package/esm/page/__stories__/PageFooterInPage.stories.js +20 -19
- package/esm/page/__stories__/PageHeader.stories.js +4 -4
- package/esm/page/__stories__/PageHeaderInErrorEmptyState.stories.js +6 -4
- package/esm/page/__stories__/PageHeaderInPage.stories.js +20 -18
- package/esm/section-header/__stories__/SectionHeader.stories.js +4 -4
- package/esm/sticky-footer/__stories__/StickyFooter.stories.js +6 -8
- package/esm/tour/__stories__/Tour.stories.js +13 -166
- package/esm/typography/__stories__/TextBody.stories.js +2 -0
- package/esm/typography/__stories__/TextCaption.stories.js +2 -0
- package/esm/typography/__stories__/TextCore.stories.js +2 -0
- package/esm/typography/__stories__/TextDisplay1.stories.js +2 -0
- package/esm/typography/__stories__/TextDisplay2.stories.js +2 -0
- package/esm/typography/__stories__/TextDisplay3.stories.js +2 -0
- package/esm/typography/__stories__/TextHeadline.stories.js +2 -0
- package/esm/typography/__stories__/TextLabel1.stories.js +2 -0
- package/esm/typography/__stories__/TextLabel2.stories.js +2 -0
- package/esm/typography/__stories__/TextLegal.stories.js +2 -0
- package/esm/typography/__stories__/TextTitle1.stories.js +2 -0
- package/esm/typography/__stories__/TextTitle2.stories.js +2 -0
- package/esm/typography/__stories__/TextTitle3.stories.js +2 -0
- package/esm/typography/__stories__/TextTitle4.stories.js +2 -0
- package/package.json +2 -2
- package/esm/icons/__stories__/Icon.stories.js +0 -98
- package/esm/illustrations/__stories__/getIllustrationSheet.js +0 -164
- /package/esm/alpha/select/__stories__/{Select.stories.js → AlphaSelect.stories.js} +0 -0
- /package/esm/alpha/tabbed-chips/__stories__/{TabbedChips.stories.js → AlphaTabbedChips.stories.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,27 @@ 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
|
+
|
|
28
|
+
#### 📘 Misc
|
|
29
|
+
|
|
30
|
+
- Update storybook examples. [[#200](https://github.com/coinbase/cds/pull/200)]
|
|
31
|
+
|
|
11
32
|
## 8.25.1 ((12/1/2025, 11:18 AM PST))
|
|
12
33
|
|
|
13
34
|
This is an artificial version bump with no new change.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TouchableOpacity } from 'react-native';
|
|
2
|
-
import type { SelectControlProps,
|
|
2
|
+
import type { SelectControlProps, SelectType } from './Select';
|
|
3
3
|
type DefaultSelectControlComponent = <
|
|
4
4
|
Type extends SelectType,
|
|
5
5
|
SelectOptionValue extends string = string,
|
|
@@ -22,13 +22,7 @@ export declare const DefaultSelectControlComponent: import('react').MemoExoticCo
|
|
|
22
22
|
value: string | string[] | null;
|
|
23
23
|
onChange: (value: string | string[] | null) => void;
|
|
24
24
|
} & {
|
|
25
|
-
options: (
|
|
26
|
-
Pick<
|
|
27
|
-
import('./Select').SelectOptionProps<SelectType, string>,
|
|
28
|
-
'end' | 'media' | 'accessory'
|
|
29
|
-
> & {
|
|
30
|
-
Component?: import('./Select').SelectOptionComponent<SelectType, string> | undefined;
|
|
31
|
-
})[];
|
|
25
|
+
options: import('./types').SelectOptionList<SelectType, string>;
|
|
32
26
|
label?: React.ReactNode;
|
|
33
27
|
placeholder?: React.ReactNode;
|
|
34
28
|
helperText?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultSelectControl.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAc3D,OAAO,KAAK,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"DefaultSelectControl.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAc3D,OAAO,KAAK,EAAE,kBAAkB,EAAgB,UAAU,EAAE,MAAM,UAAU,CAAC;AAkB7E,KAAK,6BAA6B,GAAG,CACnC,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,gBAAgB,CAAC,CAAA;CAAE,KACvF,KAAK,CAAC,YAAY,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;wBAwOe,CAAC;wBAEhC,CAAC;wBAGE,CAAC;wBAEZ,CAAA;6BAIA,CAAf;sBACe,CAAb;;qDA8DJ,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAoC,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultSelectDropdown.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectDropdown.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultSelectDropdown.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/DefaultSelectDropdown.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAOvE,OAAO,KAAK,EAAE,mBAAmB,EAAsC,UAAU,EAAE,MAAM,UAAU,CAAC;AAGpG,KAAK,yBAAyB,GAAG,CAC/B,IAAI,SAAS,UAAU,GAAG,QAAQ,EAClC,iBAAiB,SAAS,MAAM,GAAG,MAAM,EAEzC,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;CAAE,KAC1F,KAAK,CAAC,YAAY,CAAC;AA2UxB,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":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAiHnE,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,369 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { AccessibilityRole, StyleProp, TouchableOpacity, ViewStyle } from 'react-native';
|
|
4
|
-
import type { SharedAccessibilityProps } from '@coinbase/cds-common/types';
|
|
5
|
-
import type { CellBaseProps } from '../../cells/Cell';
|
|
6
|
-
import type { InputStackBaseProps } from '../../controls/InputStack';
|
|
7
|
-
import type { BoxProps } from '../../layout';
|
|
8
|
-
import type { DrawerRefBaseProps } from '../../overlays';
|
|
9
|
-
import type { InteractableBlendStyles } from '../../system/Interactable';
|
|
10
|
-
import type { PressableProps } from '../../system/Pressable';
|
|
1
|
+
import { isSelectOptionGroup, type SelectComponent, type SelectDropdownProps } from './types';
|
|
11
2
|
export declare const defaultAccessibilityRoles: SelectDropdownProps['accessibilityRoles'];
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Omit<PressableProps, 'value' | 'type' | 'onClick'> & {
|
|
35
|
-
/** Press handler for the option */
|
|
36
|
-
onPress?: (value: SelectOptionValue | null) => void;
|
|
37
|
-
/** Whether this is for single or multi-select */
|
|
38
|
-
type?: Type;
|
|
39
|
-
/** Whether this option is currently selected */
|
|
40
|
-
selected?: boolean;
|
|
41
|
-
/** Whether the option is in an indeterminate state (for multi-select) */
|
|
42
|
-
indeterminate?: boolean;
|
|
43
|
-
/** Whether to allow multiline text in the option */
|
|
44
|
-
multiline?: boolean;
|
|
45
|
-
/** Accessibility role for the option element */
|
|
46
|
-
accessibilityRole?: AccessibilityRole;
|
|
47
|
-
/** Whether to use compact styling for the option */
|
|
48
|
-
compact?: boolean;
|
|
49
|
-
/** Style object for the option */
|
|
50
|
-
style?: StyleProp<ViewStyle>;
|
|
51
|
-
/** Custom styles for different parts of the option */
|
|
52
|
-
styles?: {
|
|
53
|
-
/** Styles for the option cell element */
|
|
54
|
-
optionCell?: StyleProp<ViewStyle>;
|
|
55
|
-
/** Styles for the option content wrapper */
|
|
56
|
-
optionContent?: StyleProp<ViewStyle>;
|
|
57
|
-
/** Styles for the option label element */
|
|
58
|
-
optionLabel?: StyleProp<ViewStyle>;
|
|
59
|
-
/** Styles for the option description element */
|
|
60
|
-
optionDescription?: StyleProp<ViewStyle>;
|
|
61
|
-
/** Styles for the select all divider element */
|
|
62
|
-
selectAllDivider?: StyleProp<ViewStyle>;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Custom UI to render for an option in the Select component options array
|
|
67
|
-
*/
|
|
68
|
-
export type SelectOptionCustomUI<
|
|
69
|
-
Type extends SelectType = 'single',
|
|
70
|
-
SelectOptionValue extends string = string,
|
|
71
|
-
> = Pick<SelectOptionProps<Type>, 'accessory' | 'media' | 'end'> & {
|
|
72
|
-
/** Custom component to render the option */
|
|
73
|
-
Component?: SelectOptionComponent<Type, SelectOptionValue>;
|
|
74
|
-
};
|
|
75
|
-
export type SelectOptionComponent<
|
|
76
|
-
Type extends SelectType = 'single',
|
|
77
|
-
SelectOptionValue extends string = string,
|
|
78
|
-
> = React.FC<
|
|
79
|
-
SelectOptionProps<Type, SelectOptionValue> & {
|
|
80
|
-
/** Ref forwarding currently not supported. This will be updated once Cell supports ref forwarding. */
|
|
81
|
-
ref?: React.Ref<View>;
|
|
82
|
-
}
|
|
83
|
-
>;
|
|
84
|
-
export type SelectEmptyDropdownContentProps = {
|
|
85
|
-
label: string;
|
|
86
|
-
/** Custom styles for different parts of the empty dropdown content */
|
|
87
|
-
styles?: {
|
|
88
|
-
/** Styles for the container element */
|
|
89
|
-
emptyContentsContainer?: StyleProp<ViewStyle>;
|
|
90
|
-
/** Styles for the text element */
|
|
91
|
-
emptyContentsText?: StyleProp<ViewStyle>;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
export type SelectEmptyDropdownContentComponent = React.FC<SelectEmptyDropdownContentProps>;
|
|
95
|
-
type SelectState<Type extends SelectType = 'single', SelectOptionValue extends string = string> = {
|
|
96
|
-
value: Type extends 'multi' ? SelectOptionValue[] : SelectOptionValue | null;
|
|
97
|
-
onChange: (
|
|
98
|
-
value: Type extends 'multi'
|
|
99
|
-
? SelectOptionValue | SelectOptionValue[] | null
|
|
100
|
-
: SelectOptionValue | null,
|
|
101
|
-
) => void;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Props for the select control component (the clickable input that opens the dropdown)
|
|
105
|
-
*/
|
|
106
|
-
export type SelectControlProps<
|
|
107
|
-
Type extends SelectType = 'single',
|
|
108
|
-
SelectOptionValue extends string = string,
|
|
109
|
-
> = Pick<SharedAccessibilityProps, 'accessibilityLabel' | 'accessibilityHint'> &
|
|
110
|
-
Omit<BoxProps, 'borderWidth' | 'onChange'> &
|
|
111
|
-
Pick<
|
|
112
|
-
InputStackBaseProps,
|
|
113
|
-
'disabled' | 'startNode' | 'variant' | 'labelVariant' | 'testID' | 'endNode'
|
|
114
|
-
> &
|
|
115
|
-
SelectState<Type, SelectOptionValue> & {
|
|
116
|
-
/** Array of options to display in the select dropdown */
|
|
117
|
-
options: (SelectOption<SelectOptionValue> & SelectOptionCustomUI<Type, SelectOptionValue>)[];
|
|
118
|
-
/** Label displayed above the control */
|
|
119
|
-
label?: React.ReactNode;
|
|
120
|
-
/** Placeholder text displayed when no option is selected */
|
|
121
|
-
placeholder?: React.ReactNode;
|
|
122
|
-
/** Helper text displayed below the select */
|
|
123
|
-
helperText?: React.ReactNode;
|
|
124
|
-
/** Whether this is for single or multi-select */
|
|
125
|
-
type?: Type;
|
|
126
|
-
/** Whether the dropdown is currently open */
|
|
127
|
-
open: boolean;
|
|
128
|
-
/** Function to update the dropdown open state */
|
|
129
|
-
setOpen: (open: boolean | ((open: boolean) => boolean)) => void;
|
|
130
|
-
/** Maximum number of selected options to show before truncating */
|
|
131
|
-
maxSelectedOptionsToShow?: number;
|
|
132
|
-
/** Label to show for showcasing count of hidden selected options */
|
|
133
|
-
hiddenSelectedOptionsLabel?: string;
|
|
134
|
-
/** Accessibility label for each chip in a multi-select */
|
|
135
|
-
removeSelectedOptionAccessibilityLabel?: string;
|
|
136
|
-
/** Blend styles for control interactivity */
|
|
137
|
-
blendStyles?: InteractableBlendStyles;
|
|
138
|
-
/** Whether to use compact styling for the control */
|
|
139
|
-
compact?: boolean;
|
|
140
|
-
/** Style object for the control */
|
|
141
|
-
style?: StyleProp<ViewStyle>;
|
|
142
|
-
/** Custom styles for different parts of the control */
|
|
143
|
-
styles?: {
|
|
144
|
-
/** Styles for the start node element */
|
|
145
|
-
controlStartNode?: StyleProp<ViewStyle>;
|
|
146
|
-
/** Styles for the input node element */
|
|
147
|
-
controlInputNode?: StyleProp<ViewStyle>;
|
|
148
|
-
/** Styles for the value node element */
|
|
149
|
-
controlValueNode?: StyleProp<ViewStyle>;
|
|
150
|
-
/** Styles for the label node element */
|
|
151
|
-
controlLabelNode?: StyleProp<ViewStyle>;
|
|
152
|
-
/** Styles for the helper text node element */
|
|
153
|
-
controlHelperTextNode?: StyleProp<ViewStyle>;
|
|
154
|
-
/** Styles for the end node element */
|
|
155
|
-
controlEndNode?: StyleProp<ViewStyle>;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
export type SelectControlComponent<
|
|
159
|
-
Type extends SelectType = 'single',
|
|
160
|
-
SelectOptionValue extends string = string,
|
|
161
|
-
> = React.FC<
|
|
162
|
-
SelectControlProps<Type, SelectOptionValue> & {
|
|
163
|
-
ref?: React.Ref<TouchableOpacity>;
|
|
164
|
-
}
|
|
165
|
-
>;
|
|
166
|
-
/**
|
|
167
|
-
* Props for the dropdown component that contains the list of options
|
|
168
|
-
*/
|
|
169
|
-
export type SelectDropdownProps<
|
|
170
|
-
Type extends SelectType = 'single',
|
|
171
|
-
SelectOptionValue extends string = string,
|
|
172
|
-
> = SelectState<Type, SelectOptionValue> &
|
|
173
|
-
Pick<SharedAccessibilityProps, 'accessibilityLabel'> &
|
|
174
|
-
Omit<BoxProps, 'onChange'> &
|
|
175
|
-
Pick<SelectOptionProps<Type, SelectOptionValue>, 'accessory' | 'media' | 'end'> & {
|
|
176
|
-
/** Whether this is for single or multi-select */
|
|
177
|
-
type?: Type;
|
|
178
|
-
/** Array of options with their configuration and optional custom components */
|
|
179
|
-
options: (SelectOption<SelectOptionValue> & SelectOptionCustomUI<Type, SelectOptionValue>)[];
|
|
180
|
-
/** Whether the dropdown is currently open */
|
|
181
|
-
open: boolean;
|
|
182
|
-
/** Function to update the dropdown open state */
|
|
183
|
-
setOpen: (open: boolean | ((open: boolean) => boolean)) => void;
|
|
184
|
-
/** Label displayed above the dropdown */
|
|
185
|
-
label?: React.ReactNode;
|
|
186
|
-
/** Whether the dropdown is disabled */
|
|
187
|
-
disabled?: boolean;
|
|
188
|
-
/** Label for the "Select All" option in multi-select mode */
|
|
189
|
-
selectAllLabel?: string;
|
|
190
|
-
/** Label displayed when there are no options available */
|
|
191
|
-
emptyOptionsLabel?: string;
|
|
192
|
-
/** Label for the "Clear All" option in multi-select mode */
|
|
193
|
-
clearAllLabel?: string;
|
|
194
|
-
/** Whether to hide the "Select All" option in multi-select mode */
|
|
195
|
-
hideSelectAll?: boolean;
|
|
196
|
-
/** Reference to the control element for positioning */
|
|
197
|
-
controlRef: React.MutableRefObject<View | null>;
|
|
198
|
-
/** Inline styles for the dropdown */
|
|
199
|
-
style?: StyleProp<ViewStyle>;
|
|
200
|
-
/** Custom styles for dropdown elements */
|
|
201
|
-
styles?: {
|
|
202
|
-
/** Styles for the dropdown root container */
|
|
203
|
-
root?: StyleProp<ViewStyle>;
|
|
204
|
-
/** Styles for individual options */
|
|
205
|
-
option?: StyleProp<ViewStyle>;
|
|
206
|
-
/** Blend styles for option interactivity */
|
|
207
|
-
optionBlendStyles?: InteractableBlendStyles;
|
|
208
|
-
/** Styles for the option cell element */
|
|
209
|
-
optionCell?: StyleProp<ViewStyle>;
|
|
210
|
-
/** Styles for the option content wrapper */
|
|
211
|
-
optionContent?: StyleProp<ViewStyle>;
|
|
212
|
-
/** Styles for the option label element */
|
|
213
|
-
optionLabel?: StyleProp<ViewStyle>;
|
|
214
|
-
/** Styles for the option description element */
|
|
215
|
-
optionDescription?: StyleProp<ViewStyle>;
|
|
216
|
-
/** Styles for the select all divider element */
|
|
217
|
-
selectAllDivider?: StyleProp<ViewStyle>;
|
|
218
|
-
/** Styles for the empty contents container element */
|
|
219
|
-
emptyContentsContainer?: StyleProp<ViewStyle>;
|
|
220
|
-
/** Styles for the empty contents text element */
|
|
221
|
-
emptyContentsText?: StyleProp<ViewStyle>;
|
|
222
|
-
};
|
|
223
|
-
/** Whether to use compact styling for the dropdown */
|
|
224
|
-
compact?: boolean;
|
|
225
|
-
/** Custom component to render individual options */
|
|
226
|
-
SelectOptionComponent?: SelectOptionComponent<Type, SelectOptionValue>;
|
|
227
|
-
/** Custom component to render the "Select All" option */
|
|
228
|
-
SelectAllOptionComponent?: SelectOptionComponent<Type, SelectOptionValue>;
|
|
229
|
-
/** Custom component to render when no options are available */
|
|
230
|
-
SelectEmptyDropdownContentsComponent?: SelectEmptyDropdownContentComponent;
|
|
231
|
-
/** Accessibility roles for dropdown elements */
|
|
232
|
-
accessibilityRoles?: {
|
|
233
|
-
/** Accessibility role for option elements */
|
|
234
|
-
option?: AccessibilityRole;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
export type SelectDropdownComponent<
|
|
238
|
-
Type extends SelectType = 'single',
|
|
239
|
-
SelectOptionValue extends string = string,
|
|
240
|
-
> = React.FC<
|
|
241
|
-
SelectDropdownProps<Type, SelectOptionValue> & {
|
|
242
|
-
ref?: React.Ref<DrawerRefBaseProps>;
|
|
243
|
-
}
|
|
244
|
-
>;
|
|
245
|
-
export type SelectBaseProps<
|
|
246
|
-
Type extends SelectType = 'single',
|
|
247
|
-
SelectOptionValue extends string = string,
|
|
248
|
-
> = Pick<SharedAccessibilityProps, 'accessibilityLabel' | 'accessibilityHint'> &
|
|
249
|
-
SelectState<Type, SelectOptionValue> &
|
|
250
|
-
Pick<
|
|
251
|
-
SelectControlProps<Type, SelectOptionValue>,
|
|
252
|
-
| 'label'
|
|
253
|
-
| 'placeholder'
|
|
254
|
-
| 'helperText'
|
|
255
|
-
| 'hiddenSelectedOptionsLabel'
|
|
256
|
-
| 'removeSelectedOptionAccessibilityLabel'
|
|
257
|
-
| 'startNode'
|
|
258
|
-
| 'variant'
|
|
259
|
-
| 'disabled'
|
|
260
|
-
| 'labelVariant'
|
|
261
|
-
| 'endNode'
|
|
262
|
-
> &
|
|
263
|
-
Pick<SelectOptionProps<Type, SelectOptionValue>, 'accessory' | 'media' | 'end'> &
|
|
264
|
-
Pick<
|
|
265
|
-
SelectDropdownProps<Type, SelectOptionValue>,
|
|
266
|
-
| 'selectAllLabel'
|
|
267
|
-
| 'emptyOptionsLabel'
|
|
268
|
-
| 'clearAllLabel'
|
|
269
|
-
| 'hideSelectAll'
|
|
270
|
-
| 'accessibilityRoles'
|
|
271
|
-
> & {
|
|
272
|
-
/** Whether the select allows single or multiple selections */
|
|
273
|
-
type?: Type;
|
|
274
|
-
/** Array of options to display in the select dropdown */
|
|
275
|
-
options: (SelectOption<SelectOptionValue> & SelectOptionCustomUI<Type, SelectOptionValue>)[];
|
|
276
|
-
/** Controlled open state of the dropdown */
|
|
277
|
-
open?: boolean;
|
|
278
|
-
/** Callback to update the open state */
|
|
279
|
-
setOpen?: (open: boolean | ((open: boolean) => boolean)) => void;
|
|
280
|
-
/** Whether clicking outside the dropdown should close it */
|
|
281
|
-
disableClickOutsideClose?: boolean;
|
|
282
|
-
/** Whether to use compact styling for the select */
|
|
283
|
-
compact?: boolean;
|
|
284
|
-
/** Initial open state when component mounts (uncontrolled mode) */
|
|
285
|
-
defaultOpen?: boolean;
|
|
286
|
-
/** Maximum number of selected options to show before truncating */
|
|
287
|
-
maxSelectedOptionsToShow?: number;
|
|
288
|
-
/** Custom component to render the dropdown container */
|
|
289
|
-
SelectDropdownComponent?: SelectDropdownComponent<Type, SelectOptionValue>;
|
|
290
|
-
/** Custom component to render the select control */
|
|
291
|
-
SelectControlComponent?: SelectControlComponent<Type, SelectOptionValue>;
|
|
292
|
-
/** Custom component to render individual options */
|
|
293
|
-
SelectOptionComponent?: SelectOptionComponent<Type, SelectOptionValue>;
|
|
294
|
-
/** Custom component to render the "Select All" option */
|
|
295
|
-
SelectAllOptionComponent?: SelectOptionComponent<Type, SelectOptionValue>;
|
|
296
|
-
/** Custom component to render when no options are available */
|
|
297
|
-
SelectEmptyDropdownContentsComponent?: SelectEmptyDropdownContentComponent;
|
|
298
|
-
/** Inline styles for the root element */
|
|
299
|
-
style?: StyleProp<ViewStyle>;
|
|
300
|
-
/** Test ID for the root element */
|
|
301
|
-
testID?: string;
|
|
302
|
-
};
|
|
303
|
-
/**
|
|
304
|
-
* Props for the Select component
|
|
305
|
-
*/
|
|
306
|
-
export type SelectProps<
|
|
307
|
-
Type extends SelectType = 'single',
|
|
308
|
-
SelectOptionValue extends string = string,
|
|
309
|
-
> = SelectBaseProps<Type, SelectOptionValue> & {
|
|
310
|
-
/** Custom styles for different parts of the select */
|
|
311
|
-
styles?: {
|
|
312
|
-
/** Styles for the root element */
|
|
313
|
-
root?: StyleProp<ViewStyle>;
|
|
314
|
-
/** Styles for the control element */
|
|
315
|
-
control?: StyleProp<ViewStyle>;
|
|
316
|
-
/** Styles for the start node element */
|
|
317
|
-
controlStartNode?: StyleProp<ViewStyle>;
|
|
318
|
-
/** Styles for the input node element */
|
|
319
|
-
controlInputNode?: StyleProp<ViewStyle>;
|
|
320
|
-
/** Styles for the value node element */
|
|
321
|
-
controlValueNode?: StyleProp<ViewStyle>;
|
|
322
|
-
/** Styles for the label node element */
|
|
323
|
-
controlLabelNode?: StyleProp<ViewStyle>;
|
|
324
|
-
/** Styles for the helper text node element */
|
|
325
|
-
controlHelperTextNode?: StyleProp<ViewStyle>;
|
|
326
|
-
/** Styles for the end node element */
|
|
327
|
-
controlEndNode?: StyleProp<ViewStyle>;
|
|
328
|
-
/** Blend styles for control interactivity */
|
|
329
|
-
controlBlendStyles?: InteractableBlendStyles;
|
|
330
|
-
/** Styles for the dropdown container */
|
|
331
|
-
dropdown?: StyleProp<ViewStyle>;
|
|
332
|
-
/** Styles for individual options */
|
|
333
|
-
option?: StyleProp<ViewStyle>;
|
|
334
|
-
/** Styles for the option cell element */
|
|
335
|
-
optionCell?: StyleProp<ViewStyle>;
|
|
336
|
-
/** Styles for the option content wrapper */
|
|
337
|
-
optionContent?: StyleProp<ViewStyle>;
|
|
338
|
-
/** Styles for the option label element */
|
|
339
|
-
optionLabel?: StyleProp<ViewStyle>;
|
|
340
|
-
/** Styles for the option description element */
|
|
341
|
-
optionDescription?: StyleProp<ViewStyle>;
|
|
342
|
-
/** Blend styles for option interactivity */
|
|
343
|
-
optionBlendStyles?: InteractableBlendStyles;
|
|
344
|
-
/** Styles for the select all divider element */
|
|
345
|
-
selectAllDivider?: StyleProp<ViewStyle>;
|
|
346
|
-
/** Styles for the empty contents container element */
|
|
347
|
-
emptyContentsContainer?: StyleProp<ViewStyle>;
|
|
348
|
-
/** Styles for the empty contents text element */
|
|
349
|
-
emptyContentsText?: StyleProp<ViewStyle>;
|
|
350
|
-
};
|
|
351
|
-
};
|
|
352
|
-
export type SelectRef = View &
|
|
353
|
-
Pick<SelectProps, 'open' | 'setOpen'> & {
|
|
354
|
-
refs: {
|
|
355
|
-
reference: React.RefObject<View>;
|
|
356
|
-
floating: React.RefObject<View> | null;
|
|
357
|
-
};
|
|
358
|
-
};
|
|
359
|
-
type SelectComponent = <
|
|
360
|
-
Type extends SelectType = 'single',
|
|
361
|
-
SelectOptionValue extends string = string,
|
|
362
|
-
>(
|
|
363
|
-
props: SelectProps<Type, SelectOptionValue> & {
|
|
364
|
-
ref?: React.Ref<SelectRef>;
|
|
365
|
-
},
|
|
366
|
-
) => React.ReactElement;
|
|
3
|
+
export type {
|
|
4
|
+
SelectBaseProps,
|
|
5
|
+
SelectComponent,
|
|
6
|
+
SelectControlComponent,
|
|
7
|
+
SelectControlProps,
|
|
8
|
+
SelectDropdownComponent,
|
|
9
|
+
SelectDropdownProps,
|
|
10
|
+
SelectEmptyDropdownContentComponent,
|
|
11
|
+
SelectEmptyDropdownContentProps,
|
|
12
|
+
SelectOption,
|
|
13
|
+
SelectOptionComponent,
|
|
14
|
+
SelectOptionCustomUI,
|
|
15
|
+
SelectOptionGroup,
|
|
16
|
+
SelectOptionGroupComponent,
|
|
17
|
+
SelectOptionGroupCustomUI,
|
|
18
|
+
SelectOptionGroupProps,
|
|
19
|
+
SelectOptionProps,
|
|
20
|
+
SelectProps,
|
|
21
|
+
SelectRef,
|
|
22
|
+
SelectType,
|
|
23
|
+
} from './types';
|
|
24
|
+
export { isSelectOptionGroup };
|
|
367
25
|
export declare const Select: SelectComponent;
|
|
368
|
-
export {};
|
|
369
26
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/alpha/select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2E,MAAM,OAAO,CAAC;AAChG,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAQ7D,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,oBAAoB,CAE/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,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ot":"","sources":["../../../src/alpha/select/Select.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,mBAAmB,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAIzB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,oBAAoB,CAE/E,CAAC;AAGF,YAAY,EACV,eAAe,EACf,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,SAAS,EACT,UAAU,GACX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAoL/B,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"}
|