@hero-design/rn 7.28.0 → 8.0.0-rc.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/.expo/README.md +15 -0
- package/.expo/packager-info.json +10 -0
- package/.expo/prebuild/cached-packages.json +4 -0
- package/.expo/settings.json +10 -0
- package/.expo/xcodebuild-error.log +2 -0
- package/.expo/xcodebuild.log +11199 -0
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-build:types.log +2 -0
- package/.turbo/turbo-build:watch.log +1 -0
- package/.turbo/turbo-lint.log +96 -0
- package/.turbo/turbo-test.log +909 -0
- package/es/index.js +88 -49
- package/lib/index.js +87 -48
- package/package.json +4 -4
- package/src/components/Alert/index.tsx +1 -0
- package/src/components/BottomSheet/Header.tsx +1 -1
- package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +7 -7
- package/src/components/Empty/StyledEmpty.tsx +1 -1
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/List/ListItem.tsx +2 -2
- package/src/components/Select/{StyledOptionList.tsx → BaseOptionList.tsx} +6 -6
- package/src/components/Select/MultiSelect/Option.tsx +24 -11
- package/src/components/Select/MultiSelect/OptionList.tsx +3 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +47 -21
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +99 -72
- package/src/components/Select/MultiSelect/index.tsx +16 -0
- package/src/components/Select/SingleSelect/Option.tsx +12 -12
- package/src/components/Select/SingleSelect/OptionList.tsx +3 -2
- package/src/components/Select/SingleSelect/StyledSingleSelect.tsx +6 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +32 -16
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +65 -54
- package/src/components/Select/SingleSelect/index.tsx +16 -0
- package/src/components/Select/StyledSelect.tsx +12 -2
- package/src/components/Select/types.ts +1 -0
- package/src/components/Tabs/ScrollableTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -3
- package/src/components/Tag/index.tsx +1 -1
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +7 -7
- package/src/components/Toast/ToastContainer.tsx +1 -1
- package/src/components/Toast/ToastProvider.tsx +10 -1
- package/src/components/Toast/__tests__/ToastContainer.spec.tsx +5 -5
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +4 -4
- package/src/components/Typography/Text/StyledText.tsx +2 -1
- package/src/components/Typography/Text/index.tsx +2 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +20 -12
- package/src/theme/components/bottomSheet.ts +5 -5
- package/src/theme/components/empty.ts +6 -5
- package/src/theme/components/fab.ts +1 -1
- package/src/theme/components/select.ts +3 -1
- package/src/theme/components/typography.ts +2 -0
- package/src/theme/global/colors/global.ts +1 -0
- package/src/theme/global/colors/types.ts +1 -0
- package/src/theme/global/typography.ts +4 -1
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Accordion/utils.d.ts +1 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +1 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +2 -2
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +12 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +2 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +2 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledOptionList.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +3 -2
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +1 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/TabWithBadge.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +1 -1
- package/types/components/Toast/index.d.ts +1 -1
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +1 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +3 -1
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +2 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/legacySystemPalette.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +1 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +1 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +1 -0
- package/types/theme/index.d.ts +0 -0
- package/types/theme/utils.d.ts +2 -0
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
|
@@ -258,7 +258,7 @@ Array [
|
|
|
258
258
|
onStartShouldSetResponder={[Function]}
|
|
259
259
|
style={
|
|
260
260
|
Object {
|
|
261
|
-
"backgroundColor": "#
|
|
261
|
+
"backgroundColor": "#000000",
|
|
262
262
|
"bottom": 0,
|
|
263
263
|
"left": 0,
|
|
264
264
|
"opacity": 0.48,
|
|
@@ -283,8 +283,8 @@ Array [
|
|
|
283
283
|
"height": 3,
|
|
284
284
|
"width": 0,
|
|
285
285
|
},
|
|
286
|
-
"shadowOpacity": 0.
|
|
287
|
-
"shadowRadius":
|
|
286
|
+
"shadowOpacity": 0.4,
|
|
287
|
+
"shadowRadius": 16,
|
|
288
288
|
"transform": Array [
|
|
289
289
|
Object {
|
|
290
290
|
"scaleY": 1,
|
|
@@ -378,13 +378,13 @@ Array [
|
|
|
378
378
|
Array [
|
|
379
379
|
Object {
|
|
380
380
|
"color": "#001f23",
|
|
381
|
-
"fontSize":
|
|
381
|
+
"fontSize": 16,
|
|
382
382
|
},
|
|
383
383
|
undefined,
|
|
384
384
|
]
|
|
385
385
|
}
|
|
386
386
|
themeIntent="text"
|
|
387
|
-
themeSize="
|
|
387
|
+
themeSize="xsmall"
|
|
388
388
|
/>
|
|
389
389
|
</View>
|
|
390
390
|
</View>
|
|
@@ -457,7 +457,14 @@ Array [
|
|
|
457
457
|
4,
|
|
458
458
|
]
|
|
459
459
|
}
|
|
460
|
-
style={
|
|
460
|
+
style={
|
|
461
|
+
Array [
|
|
462
|
+
Object {
|
|
463
|
+
"paddingHorizontal": 12,
|
|
464
|
+
},
|
|
465
|
+
Object {},
|
|
466
|
+
]
|
|
467
|
+
}
|
|
461
468
|
>
|
|
462
469
|
<View>
|
|
463
470
|
<View
|
|
@@ -1271,8 +1278,8 @@ Array [
|
|
|
1271
1278
|
"flexDirection": "row",
|
|
1272
1279
|
"justifyContent": "flex-end",
|
|
1273
1280
|
"minHeight": 64,
|
|
1274
|
-
"paddingHorizontal":
|
|
1275
|
-
"paddingVertical":
|
|
1281
|
+
"paddingHorizontal": 24,
|
|
1282
|
+
"paddingVertical": 16,
|
|
1276
1283
|
},
|
|
1277
1284
|
undefined,
|
|
1278
1285
|
]
|
|
@@ -1585,7 +1592,7 @@ Array [
|
|
|
1585
1592
|
onStartShouldSetResponder={[Function]}
|
|
1586
1593
|
style={
|
|
1587
1594
|
Object {
|
|
1588
|
-
"backgroundColor": "#
|
|
1595
|
+
"backgroundColor": "#000000",
|
|
1589
1596
|
"bottom": 0,
|
|
1590
1597
|
"left": 0,
|
|
1591
1598
|
"opacity": 0.48,
|
|
@@ -1612,8 +1619,8 @@ Array [
|
|
|
1612
1619
|
"height": 3,
|
|
1613
1620
|
"width": 0,
|
|
1614
1621
|
},
|
|
1615
|
-
"shadowOpacity": 0.
|
|
1616
|
-
"shadowRadius":
|
|
1622
|
+
"shadowOpacity": 0.4,
|
|
1623
|
+
"shadowRadius": 16,
|
|
1617
1624
|
"transform": Array [
|
|
1618
1625
|
Object {
|
|
1619
1626
|
"scaleY": 1,
|
|
@@ -1709,13 +1716,13 @@ Array [
|
|
|
1709
1716
|
Array [
|
|
1710
1717
|
Object {
|
|
1711
1718
|
"color": "#001f23",
|
|
1712
|
-
"fontSize":
|
|
1719
|
+
"fontSize": 16,
|
|
1713
1720
|
},
|
|
1714
1721
|
undefined,
|
|
1715
1722
|
]
|
|
1716
1723
|
}
|
|
1717
1724
|
themeIntent="text"
|
|
1718
|
-
themeSize="
|
|
1725
|
+
themeSize="xsmall"
|
|
1719
1726
|
/>
|
|
1720
1727
|
</View>
|
|
1721
1728
|
</View>
|
|
@@ -1791,7 +1798,14 @@ Array [
|
|
|
1791
1798
|
0,
|
|
1792
1799
|
]
|
|
1793
1800
|
}
|
|
1794
|
-
style={
|
|
1801
|
+
style={
|
|
1802
|
+
Array [
|
|
1803
|
+
Object {
|
|
1804
|
+
"paddingHorizontal": 12,
|
|
1805
|
+
},
|
|
1806
|
+
Object {},
|
|
1807
|
+
]
|
|
1808
|
+
}
|
|
1795
1809
|
>
|
|
1796
1810
|
<View>
|
|
1797
1811
|
<View
|
|
@@ -1874,7 +1888,6 @@ Array [
|
|
|
1874
1888
|
"backgroundColor": "#ece8ef",
|
|
1875
1889
|
"borderRadius": 4,
|
|
1876
1890
|
"flexDirection": "row",
|
|
1877
|
-
"marginHorizontal": 12,
|
|
1878
1891
|
"opacity": 1,
|
|
1879
1892
|
"padding": 16,
|
|
1880
1893
|
}
|
|
@@ -1929,7 +1942,9 @@ Array [
|
|
|
1929
1942
|
"color": "#401960",
|
|
1930
1943
|
"fontSize": 20,
|
|
1931
1944
|
},
|
|
1932
|
-
|
|
1945
|
+
Object {
|
|
1946
|
+
"marginRight": 12,
|
|
1947
|
+
},
|
|
1933
1948
|
]
|
|
1934
1949
|
}
|
|
1935
1950
|
themeIntent="primary"
|
|
@@ -2021,7 +2036,6 @@ Array [
|
|
|
2021
2036
|
"backgroundColor": "#ece8ef",
|
|
2022
2037
|
"borderRadius": 4,
|
|
2023
2038
|
"flexDirection": "row",
|
|
2024
|
-
"marginHorizontal": 12,
|
|
2025
2039
|
"opacity": 1,
|
|
2026
2040
|
"padding": 16,
|
|
2027
2041
|
}
|
|
@@ -2076,7 +2090,9 @@ Array [
|
|
|
2076
2090
|
"color": "#401960",
|
|
2077
2091
|
"fontSize": 20,
|
|
2078
2092
|
},
|
|
2079
|
-
|
|
2093
|
+
Object {
|
|
2094
|
+
"marginRight": 12,
|
|
2095
|
+
},
|
|
2080
2096
|
]
|
|
2081
2097
|
}
|
|
2082
2098
|
themeIntent="primary"
|
|
@@ -2168,7 +2184,6 @@ Array [
|
|
|
2168
2184
|
"backgroundColor": "#ffffff",
|
|
2169
2185
|
"borderRadius": 4,
|
|
2170
2186
|
"flexDirection": "row",
|
|
2171
|
-
"marginHorizontal": 12,
|
|
2172
2187
|
"opacity": 1,
|
|
2173
2188
|
"padding": 16,
|
|
2174
2189
|
}
|
|
@@ -2290,7 +2305,6 @@ Array [
|
|
|
2290
2305
|
"backgroundColor": "#ffffff",
|
|
2291
2306
|
"borderRadius": 4,
|
|
2292
2307
|
"flexDirection": "row",
|
|
2293
|
-
"marginHorizontal": 12,
|
|
2294
2308
|
"opacity": 1,
|
|
2295
2309
|
"padding": 16,
|
|
2296
2310
|
}
|
|
@@ -2412,7 +2426,6 @@ Array [
|
|
|
2412
2426
|
"backgroundColor": "#ffffff",
|
|
2413
2427
|
"borderRadius": 4,
|
|
2414
2428
|
"flexDirection": "row",
|
|
2415
|
-
"marginHorizontal": 12,
|
|
2416
2429
|
"opacity": 1,
|
|
2417
2430
|
"padding": 16,
|
|
2418
2431
|
}
|
|
@@ -2534,7 +2547,6 @@ Array [
|
|
|
2534
2547
|
"backgroundColor": "#ffffff",
|
|
2535
2548
|
"borderRadius": 4,
|
|
2536
2549
|
"flexDirection": "row",
|
|
2537
|
-
"marginHorizontal": 12,
|
|
2538
2550
|
"opacity": 1,
|
|
2539
2551
|
"padding": 16,
|
|
2540
2552
|
}
|
|
@@ -2657,7 +2669,6 @@ Array [
|
|
|
2657
2669
|
"backgroundColor": "#ffffff",
|
|
2658
2670
|
"borderRadius": 4,
|
|
2659
2671
|
"flexDirection": "row",
|
|
2660
|
-
"marginHorizontal": 12,
|
|
2661
2672
|
"opacity": 0.38,
|
|
2662
2673
|
"padding": 16,
|
|
2663
2674
|
}
|
|
@@ -2778,8 +2789,8 @@ Array [
|
|
|
2778
2789
|
"flexDirection": "row",
|
|
2779
2790
|
"justifyContent": "flex-end",
|
|
2780
2791
|
"minHeight": 64,
|
|
2781
|
-
"paddingHorizontal":
|
|
2782
|
-
"paddingVertical":
|
|
2792
|
+
"paddingHorizontal": 24,
|
|
2793
|
+
"paddingVertical": 16,
|
|
2783
2794
|
},
|
|
2784
2795
|
undefined,
|
|
2785
2796
|
]
|
|
@@ -3091,7 +3102,7 @@ Array [
|
|
|
3091
3102
|
onStartShouldSetResponder={[Function]}
|
|
3092
3103
|
style={
|
|
3093
3104
|
Object {
|
|
3094
|
-
"backgroundColor": "#
|
|
3105
|
+
"backgroundColor": "#000000",
|
|
3095
3106
|
"bottom": 0,
|
|
3096
3107
|
"left": 0,
|
|
3097
3108
|
"opacity": 0.48,
|
|
@@ -3116,8 +3127,8 @@ Array [
|
|
|
3116
3127
|
"height": 3,
|
|
3117
3128
|
"width": 0,
|
|
3118
3129
|
},
|
|
3119
|
-
"shadowOpacity": 0.
|
|
3120
|
-
"shadowRadius":
|
|
3130
|
+
"shadowOpacity": 0.4,
|
|
3131
|
+
"shadowRadius": 16,
|
|
3121
3132
|
"transform": Array [
|
|
3122
3133
|
Object {
|
|
3123
3134
|
"scaleY": 1,
|
|
@@ -3211,13 +3222,13 @@ Array [
|
|
|
3211
3222
|
Array [
|
|
3212
3223
|
Object {
|
|
3213
3224
|
"color": "#001f23",
|
|
3214
|
-
"fontSize":
|
|
3225
|
+
"fontSize": 16,
|
|
3215
3226
|
},
|
|
3216
3227
|
undefined,
|
|
3217
3228
|
]
|
|
3218
3229
|
}
|
|
3219
3230
|
themeIntent="text"
|
|
3220
|
-
themeSize="
|
|
3231
|
+
themeSize="xsmall"
|
|
3221
3232
|
/>
|
|
3222
3233
|
</View>
|
|
3223
3234
|
</View>
|
|
@@ -3293,7 +3304,14 @@ Array [
|
|
|
3293
3304
|
0,
|
|
3294
3305
|
]
|
|
3295
3306
|
}
|
|
3296
|
-
style={
|
|
3307
|
+
style={
|
|
3308
|
+
Array [
|
|
3309
|
+
Object {
|
|
3310
|
+
"paddingHorizontal": 12,
|
|
3311
|
+
},
|
|
3312
|
+
Object {},
|
|
3313
|
+
]
|
|
3314
|
+
}
|
|
3297
3315
|
>
|
|
3298
3316
|
<View>
|
|
3299
3317
|
<View
|
|
@@ -3374,7 +3392,6 @@ Array [
|
|
|
3374
3392
|
"backgroundColor": "#ece8ef",
|
|
3375
3393
|
"borderRadius": 4,
|
|
3376
3394
|
"flexDirection": "row",
|
|
3377
|
-
"marginHorizontal": 12,
|
|
3378
3395
|
"opacity": 1,
|
|
3379
3396
|
"padding": 16,
|
|
3380
3397
|
}
|
|
@@ -3429,7 +3446,9 @@ Array [
|
|
|
3429
3446
|
"color": "#401960",
|
|
3430
3447
|
"fontSize": 20,
|
|
3431
3448
|
},
|
|
3432
|
-
|
|
3449
|
+
Object {
|
|
3450
|
+
"marginRight": 12,
|
|
3451
|
+
},
|
|
3433
3452
|
]
|
|
3434
3453
|
}
|
|
3435
3454
|
themeIntent="primary"
|
|
@@ -3519,7 +3538,6 @@ Array [
|
|
|
3519
3538
|
"backgroundColor": "#ece8ef",
|
|
3520
3539
|
"borderRadius": 4,
|
|
3521
3540
|
"flexDirection": "row",
|
|
3522
|
-
"marginHorizontal": 12,
|
|
3523
3541
|
"opacity": 1,
|
|
3524
3542
|
"padding": 16,
|
|
3525
3543
|
}
|
|
@@ -3574,7 +3592,9 @@ Array [
|
|
|
3574
3592
|
"color": "#401960",
|
|
3575
3593
|
"fontSize": 20,
|
|
3576
3594
|
},
|
|
3577
|
-
|
|
3595
|
+
Object {
|
|
3596
|
+
"marginRight": 12,
|
|
3597
|
+
},
|
|
3578
3598
|
]
|
|
3579
3599
|
}
|
|
3580
3600
|
themeIntent="primary"
|
|
@@ -3664,7 +3684,6 @@ Array [
|
|
|
3664
3684
|
"backgroundColor": "#ffffff",
|
|
3665
3685
|
"borderRadius": 4,
|
|
3666
3686
|
"flexDirection": "row",
|
|
3667
|
-
"marginHorizontal": 12,
|
|
3668
3687
|
"opacity": 1,
|
|
3669
3688
|
"padding": 16,
|
|
3670
3689
|
}
|
|
@@ -3784,7 +3803,6 @@ Array [
|
|
|
3784
3803
|
"backgroundColor": "#ffffff",
|
|
3785
3804
|
"borderRadius": 4,
|
|
3786
3805
|
"flexDirection": "row",
|
|
3787
|
-
"marginHorizontal": 12,
|
|
3788
3806
|
"opacity": 1,
|
|
3789
3807
|
"padding": 16,
|
|
3790
3808
|
}
|
|
@@ -3904,7 +3922,6 @@ Array [
|
|
|
3904
3922
|
"backgroundColor": "#ffffff",
|
|
3905
3923
|
"borderRadius": 4,
|
|
3906
3924
|
"flexDirection": "row",
|
|
3907
|
-
"marginHorizontal": 12,
|
|
3908
3925
|
"opacity": 1,
|
|
3909
3926
|
"padding": 16,
|
|
3910
3927
|
}
|
|
@@ -4024,7 +4041,6 @@ Array [
|
|
|
4024
4041
|
"backgroundColor": "#ffffff",
|
|
4025
4042
|
"borderRadius": 4,
|
|
4026
4043
|
"flexDirection": "row",
|
|
4027
|
-
"marginHorizontal": 12,
|
|
4028
4044
|
"opacity": 1,
|
|
4029
4045
|
"padding": 16,
|
|
4030
4046
|
}
|
|
@@ -4145,7 +4161,6 @@ Array [
|
|
|
4145
4161
|
"backgroundColor": "#ffffff",
|
|
4146
4162
|
"borderRadius": 4,
|
|
4147
4163
|
"flexDirection": "row",
|
|
4148
|
-
"marginHorizontal": 12,
|
|
4149
4164
|
"opacity": 0.38,
|
|
4150
4165
|
"padding": 16,
|
|
4151
4166
|
}
|
|
@@ -4266,8 +4281,8 @@ Array [
|
|
|
4266
4281
|
"flexDirection": "row",
|
|
4267
4282
|
"justifyContent": "flex-end",
|
|
4268
4283
|
"minHeight": 64,
|
|
4269
|
-
"paddingHorizontal":
|
|
4270
|
-
"paddingVertical":
|
|
4284
|
+
"paddingHorizontal": 24,
|
|
4285
|
+
"paddingVertical": 16,
|
|
4271
4286
|
},
|
|
4272
4287
|
undefined,
|
|
4273
4288
|
]
|
|
@@ -4594,7 +4609,7 @@ Array [
|
|
|
4594
4609
|
onStartShouldSetResponder={[Function]}
|
|
4595
4610
|
style={
|
|
4596
4611
|
Object {
|
|
4597
|
-
"backgroundColor": "#
|
|
4612
|
+
"backgroundColor": "#000000",
|
|
4598
4613
|
"bottom": 0,
|
|
4599
4614
|
"left": 0,
|
|
4600
4615
|
"opacity": 0.48,
|
|
@@ -4621,8 +4636,8 @@ Array [
|
|
|
4621
4636
|
"height": 3,
|
|
4622
4637
|
"width": 0,
|
|
4623
4638
|
},
|
|
4624
|
-
"shadowOpacity": 0.
|
|
4625
|
-
"shadowRadius":
|
|
4639
|
+
"shadowOpacity": 0.4,
|
|
4640
|
+
"shadowRadius": 16,
|
|
4626
4641
|
"transform": Array [
|
|
4627
4642
|
Object {
|
|
4628
4643
|
"scaleY": 1,
|
|
@@ -4718,13 +4733,13 @@ Array [
|
|
|
4718
4733
|
Array [
|
|
4719
4734
|
Object {
|
|
4720
4735
|
"color": "#001f23",
|
|
4721
|
-
"fontSize":
|
|
4736
|
+
"fontSize": 16,
|
|
4722
4737
|
},
|
|
4723
4738
|
undefined,
|
|
4724
4739
|
]
|
|
4725
4740
|
}
|
|
4726
4741
|
themeIntent="text"
|
|
4727
|
-
themeSize="
|
|
4742
|
+
themeSize="xsmall"
|
|
4728
4743
|
/>
|
|
4729
4744
|
</View>
|
|
4730
4745
|
</View>
|
|
@@ -4800,7 +4815,14 @@ Array [
|
|
|
4800
4815
|
0,
|
|
4801
4816
|
]
|
|
4802
4817
|
}
|
|
4803
|
-
style={
|
|
4818
|
+
style={
|
|
4819
|
+
Array [
|
|
4820
|
+
Object {
|
|
4821
|
+
"paddingHorizontal": 12,
|
|
4822
|
+
},
|
|
4823
|
+
Object {},
|
|
4824
|
+
]
|
|
4825
|
+
}
|
|
4804
4826
|
>
|
|
4805
4827
|
<View>
|
|
4806
4828
|
<View
|
|
@@ -4883,7 +4905,6 @@ Array [
|
|
|
4883
4905
|
"backgroundColor": "#ece8ef",
|
|
4884
4906
|
"borderRadius": 4,
|
|
4885
4907
|
"flexDirection": "row",
|
|
4886
|
-
"marginHorizontal": 12,
|
|
4887
4908
|
"opacity": 1,
|
|
4888
4909
|
"padding": 16,
|
|
4889
4910
|
}
|
|
@@ -4938,7 +4959,9 @@ Array [
|
|
|
4938
4959
|
"color": "#401960",
|
|
4939
4960
|
"fontSize": 20,
|
|
4940
4961
|
},
|
|
4941
|
-
|
|
4962
|
+
Object {
|
|
4963
|
+
"marginRight": 12,
|
|
4964
|
+
},
|
|
4942
4965
|
]
|
|
4943
4966
|
}
|
|
4944
4967
|
themeIntent="primary"
|
|
@@ -5030,7 +5053,6 @@ Array [
|
|
|
5030
5053
|
"backgroundColor": "#ece8ef",
|
|
5031
5054
|
"borderRadius": 4,
|
|
5032
5055
|
"flexDirection": "row",
|
|
5033
|
-
"marginHorizontal": 12,
|
|
5034
5056
|
"opacity": 1,
|
|
5035
5057
|
"padding": 16,
|
|
5036
5058
|
}
|
|
@@ -5085,7 +5107,9 @@ Array [
|
|
|
5085
5107
|
"color": "#401960",
|
|
5086
5108
|
"fontSize": 20,
|
|
5087
5109
|
},
|
|
5088
|
-
|
|
5110
|
+
Object {
|
|
5111
|
+
"marginRight": 12,
|
|
5112
|
+
},
|
|
5089
5113
|
]
|
|
5090
5114
|
}
|
|
5091
5115
|
themeIntent="primary"
|
|
@@ -5177,7 +5201,6 @@ Array [
|
|
|
5177
5201
|
"backgroundColor": "#ffffff",
|
|
5178
5202
|
"borderRadius": 4,
|
|
5179
5203
|
"flexDirection": "row",
|
|
5180
|
-
"marginHorizontal": 12,
|
|
5181
5204
|
"opacity": 1,
|
|
5182
5205
|
"padding": 16,
|
|
5183
5206
|
}
|
|
@@ -5299,7 +5322,6 @@ Array [
|
|
|
5299
5322
|
"backgroundColor": "#ffffff",
|
|
5300
5323
|
"borderRadius": 4,
|
|
5301
5324
|
"flexDirection": "row",
|
|
5302
|
-
"marginHorizontal": 12,
|
|
5303
5325
|
"opacity": 1,
|
|
5304
5326
|
"padding": 16,
|
|
5305
5327
|
}
|
|
@@ -5421,7 +5443,6 @@ Array [
|
|
|
5421
5443
|
"backgroundColor": "#ffffff",
|
|
5422
5444
|
"borderRadius": 4,
|
|
5423
5445
|
"flexDirection": "row",
|
|
5424
|
-
"marginHorizontal": 12,
|
|
5425
5446
|
"opacity": 1,
|
|
5426
5447
|
"padding": 16,
|
|
5427
5448
|
}
|
|
@@ -5543,7 +5564,6 @@ Array [
|
|
|
5543
5564
|
"backgroundColor": "#ffffff",
|
|
5544
5565
|
"borderRadius": 4,
|
|
5545
5566
|
"flexDirection": "row",
|
|
5546
|
-
"marginHorizontal": 12,
|
|
5547
5567
|
"opacity": 1,
|
|
5548
5568
|
"padding": 16,
|
|
5549
5569
|
}
|
|
@@ -5666,7 +5686,6 @@ Array [
|
|
|
5666
5686
|
"backgroundColor": "#ffffff",
|
|
5667
5687
|
"borderRadius": 4,
|
|
5668
5688
|
"flexDirection": "row",
|
|
5669
|
-
"marginHorizontal": 12,
|
|
5670
5689
|
"opacity": 0.38,
|
|
5671
5690
|
"padding": 16,
|
|
5672
5691
|
}
|
|
@@ -5787,8 +5806,8 @@ Array [
|
|
|
5787
5806
|
"flexDirection": "row",
|
|
5788
5807
|
"justifyContent": "flex-end",
|
|
5789
5808
|
"minHeight": 64,
|
|
5790
|
-
"paddingHorizontal":
|
|
5791
|
-
"paddingVertical":
|
|
5809
|
+
"paddingHorizontal": 24,
|
|
5810
|
+
"paddingVertical": 16,
|
|
5792
5811
|
},
|
|
5793
5812
|
undefined,
|
|
5794
5813
|
]
|
|
@@ -6100,7 +6119,7 @@ Array [
|
|
|
6100
6119
|
onStartShouldSetResponder={[Function]}
|
|
6101
6120
|
style={
|
|
6102
6121
|
Object {
|
|
6103
|
-
"backgroundColor": "#
|
|
6122
|
+
"backgroundColor": "#000000",
|
|
6104
6123
|
"bottom": 0,
|
|
6105
6124
|
"left": 0,
|
|
6106
6125
|
"opacity": 0.48,
|
|
@@ -6125,8 +6144,8 @@ Array [
|
|
|
6125
6144
|
"height": 3,
|
|
6126
6145
|
"width": 0,
|
|
6127
6146
|
},
|
|
6128
|
-
"shadowOpacity": 0.
|
|
6129
|
-
"shadowRadius":
|
|
6147
|
+
"shadowOpacity": 0.4,
|
|
6148
|
+
"shadowRadius": 16,
|
|
6130
6149
|
"transform": Array [
|
|
6131
6150
|
Object {
|
|
6132
6151
|
"scaleY": 1,
|
|
@@ -6220,13 +6239,13 @@ Array [
|
|
|
6220
6239
|
Array [
|
|
6221
6240
|
Object {
|
|
6222
6241
|
"color": "#001f23",
|
|
6223
|
-
"fontSize":
|
|
6242
|
+
"fontSize": 16,
|
|
6224
6243
|
},
|
|
6225
6244
|
undefined,
|
|
6226
6245
|
]
|
|
6227
6246
|
}
|
|
6228
6247
|
themeIntent="text"
|
|
6229
|
-
themeSize="
|
|
6248
|
+
themeSize="xsmall"
|
|
6230
6249
|
/>
|
|
6231
6250
|
</View>
|
|
6232
6251
|
</View>
|
|
@@ -6291,7 +6310,14 @@ Array [
|
|
|
6291
6310
|
3,
|
|
6292
6311
|
]
|
|
6293
6312
|
}
|
|
6294
|
-
style={
|
|
6313
|
+
style={
|
|
6314
|
+
Array [
|
|
6315
|
+
Object {
|
|
6316
|
+
"paddingHorizontal": 12,
|
|
6317
|
+
},
|
|
6318
|
+
Object {},
|
|
6319
|
+
]
|
|
6320
|
+
}
|
|
6295
6321
|
>
|
|
6296
6322
|
<View>
|
|
6297
6323
|
<View
|
|
@@ -6425,7 +6451,6 @@ Array [
|
|
|
6425
6451
|
"backgroundColor": "#ffffff",
|
|
6426
6452
|
"borderRadius": 4,
|
|
6427
6453
|
"flexDirection": "row",
|
|
6428
|
-
"marginHorizontal": 12,
|
|
6429
6454
|
"opacity": 1,
|
|
6430
6455
|
"padding": 16,
|
|
6431
6456
|
}
|
|
@@ -6643,7 +6668,6 @@ Array [
|
|
|
6643
6668
|
"backgroundColor": "#ece8ef",
|
|
6644
6669
|
"borderRadius": 4,
|
|
6645
6670
|
"flexDirection": "row",
|
|
6646
|
-
"marginHorizontal": 12,
|
|
6647
6671
|
"opacity": 1,
|
|
6648
6672
|
"padding": 16,
|
|
6649
6673
|
}
|
|
@@ -6698,7 +6722,9 @@ Array [
|
|
|
6698
6722
|
"color": "#401960",
|
|
6699
6723
|
"fontSize": 20,
|
|
6700
6724
|
},
|
|
6701
|
-
|
|
6725
|
+
Object {
|
|
6726
|
+
"marginRight": 12,
|
|
6727
|
+
},
|
|
6702
6728
|
]
|
|
6703
6729
|
}
|
|
6704
6730
|
themeIntent="primary"
|
|
@@ -6778,7 +6804,6 @@ Array [
|
|
|
6778
6804
|
"backgroundColor": "#ece8ef",
|
|
6779
6805
|
"borderRadius": 4,
|
|
6780
6806
|
"flexDirection": "row",
|
|
6781
|
-
"marginHorizontal": 12,
|
|
6782
6807
|
"opacity": 1,
|
|
6783
6808
|
"padding": 16,
|
|
6784
6809
|
}
|
|
@@ -6833,7 +6858,9 @@ Array [
|
|
|
6833
6858
|
"color": "#401960",
|
|
6834
6859
|
"fontSize": 20,
|
|
6835
6860
|
},
|
|
6836
|
-
|
|
6861
|
+
Object {
|
|
6862
|
+
"marginRight": 12,
|
|
6863
|
+
},
|
|
6837
6864
|
]
|
|
6838
6865
|
}
|
|
6839
6866
|
themeIntent="primary"
|
|
@@ -6913,8 +6940,8 @@ Array [
|
|
|
6913
6940
|
"flexDirection": "row",
|
|
6914
6941
|
"justifyContent": "flex-end",
|
|
6915
6942
|
"minHeight": 64,
|
|
6916
|
-
"paddingHorizontal":
|
|
6917
|
-
"paddingVertical":
|
|
6943
|
+
"paddingHorizontal": 24,
|
|
6944
|
+
"paddingVertical": 16,
|
|
6918
6945
|
},
|
|
6919
6946
|
undefined,
|
|
6920
6947
|
]
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
TextInputProps as NativeTextInputProps,
|
|
5
5
|
} from 'react-native';
|
|
6
6
|
import { TouchableOpacity, View } from 'react-native';
|
|
7
|
+
import { useDeprecation } from '../../../utils/hooks';
|
|
7
8
|
import BottomSheet from '../../BottomSheet';
|
|
8
9
|
import Box from '../../Box';
|
|
9
10
|
import TextInput from '../../TextInput';
|
|
@@ -83,6 +84,21 @@ function MultiSelect<V, T extends OptionType<V>>({
|
|
|
83
84
|
.map((opt) => opt.text)
|
|
84
85
|
.join(', ');
|
|
85
86
|
|
|
87
|
+
useDeprecation(
|
|
88
|
+
"Select's onDimiss is deprecated and will be removed in the next major release. Please use onDismiss instead.",
|
|
89
|
+
onDimiss !== undefined
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
useDeprecation(
|
|
93
|
+
"Select's numberOfLines is deprecated and will be removed in the next major release. Please use inputProps.numberOfLines instead.",
|
|
94
|
+
numberOfLines !== undefined
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
useDeprecation(
|
|
98
|
+
"Select's inputProps.required is deprecated and will be removed in the next major release. Please use Select's required prop instead.",
|
|
99
|
+
inputProps?.required !== undefined
|
|
100
|
+
);
|
|
101
|
+
|
|
86
102
|
useEffect(() => {
|
|
87
103
|
setSelectingValue(value);
|
|
88
104
|
}, [open]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
|
-
import { useTheme } from '../../../theme';
|
|
4
3
|
import List from '../../List';
|
|
5
4
|
|
|
6
5
|
const Option = ({
|
|
@@ -8,23 +7,24 @@ const Option = ({
|
|
|
8
7
|
disabled = false,
|
|
9
8
|
selected,
|
|
10
9
|
onPress,
|
|
10
|
+
highlighted = false,
|
|
11
11
|
}: {
|
|
12
12
|
text: string | ReactElement;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
selected: boolean;
|
|
15
15
|
onPress: () => void;
|
|
16
|
+
highlighted?: boolean;
|
|
16
17
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/>
|
|
18
|
+
const props = {
|
|
19
|
+
selected,
|
|
20
|
+
disabled,
|
|
21
|
+
onPress,
|
|
22
|
+
title: text,
|
|
23
|
+
};
|
|
24
|
+
return highlighted === true ? (
|
|
25
|
+
<List.Item {...props} />
|
|
26
|
+
) : (
|
|
27
|
+
<List.BasicItem {...props} />
|
|
28
28
|
);
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SectionListRenderItemInfo, SectionList } from 'react-native';
|
|
3
|
-
import StyledOptionList from '../StyledOptionList';
|
|
4
3
|
import Option from './Option';
|
|
5
4
|
import type { SingleSelectProps } from '.';
|
|
6
5
|
import type { OptionType, SectionData, SectionType } from '../types';
|
|
6
|
+
import { StyledOptionList } from './StyledSingleSelect';
|
|
7
7
|
|
|
8
8
|
type OptionListProps<V, T extends OptionType<V>> = Pick<
|
|
9
9
|
SingleSelectProps<V, T>,
|
|
@@ -49,12 +49,13 @@ const OptionList = <V, T extends OptionType<V>>({
|
|
|
49
49
|
text={item.text}
|
|
50
50
|
disabled={item.disabled}
|
|
51
51
|
onPress={onItemPress}
|
|
52
|
+
highlighted={item.highlighted}
|
|
52
53
|
/>
|
|
53
54
|
);
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
return (
|
|
57
|
-
<StyledOptionList
|
|
58
|
+
<StyledOptionList<V, T>
|
|
58
59
|
keyExtractor={keyExtractor}
|
|
59
60
|
loading={loading}
|
|
60
61
|
onEndReached={onEndReached}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import styled from '@emotion/native';
|
|
2
|
+
import BaseOptionList from '../BaseOptionList';
|
|
3
|
+
|
|
4
|
+
export const StyledOptionList = styled(BaseOptionList)(({ theme }) => ({
|
|
5
|
+
paddingBottom: theme.__hd__.select.space.singleSelectContentPaddingBottom,
|
|
6
|
+
})) as typeof BaseOptionList;
|