@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
package/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as reactNative from 'react-native';
|
|
2
|
-
import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, Modal, TextInput as TextInput$1, PanResponder, TouchableHighlight, InteractionManager, useWindowDimensions,
|
|
2
|
+
import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, Modal, TextInput as TextInput$1, PanResponder, TouchableHighlight, InteractionManager, useWindowDimensions, SectionList, Keyboard, FlatList, LayoutAnimation, RefreshControl as RefreshControl$1 } from 'react-native';
|
|
3
3
|
import React, { useContext, createContext, createElement, useMemo, forwardRef, useEffect, useCallback, useRef, useState, useLayoutEffect, useImperativeHandle } from 'react';
|
|
4
4
|
import { createIconSet } from 'react-native-vector-icons';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
@@ -76,7 +76,7 @@ function _defineProperty(obj, key, value) {
|
|
|
76
76
|
return obj;
|
|
77
77
|
}
|
|
78
78
|
function _extends$1() {
|
|
79
|
-
_extends$1 = Object.assign
|
|
79
|
+
_extends$1 = Object.assign || function (target) {
|
|
80
80
|
for (var i = 1; i < arguments.length; i++) {
|
|
81
81
|
var source = arguments[i];
|
|
82
82
|
for (var key in source) {
|
|
@@ -1231,6 +1231,7 @@ var globalPalette = {
|
|
|
1231
1231
|
disabledOnDefaultGlobalSurface: palette$6.greyLight30,
|
|
1232
1232
|
darkGlobalSurface: palette$6.maasstrichtBlue,
|
|
1233
1233
|
onDarkGlobalSurface: palette$6.white,
|
|
1234
|
+
overlayGlobalSurface: palette$6.black,
|
|
1234
1235
|
// Outlines
|
|
1235
1236
|
primaryOutline: palette$6.maasstrichtBlue,
|
|
1236
1237
|
secondaryOutline: palette$6.greyLight75,
|
|
@@ -1416,7 +1417,7 @@ var getFonts = function getFonts(_ref) {
|
|
|
1416
1417
|
};
|
|
1417
1418
|
};
|
|
1418
1419
|
var getFontSizes = function getFontSizes(baseFontSize) {
|
|
1419
|
-
var fontSizes = Array.from(new Array(
|
|
1420
|
+
var fontSizes = Array.from(new Array(11));
|
|
1420
1421
|
fontSizes.forEach(function (_, index) {
|
|
1421
1422
|
if (index === 0) {
|
|
1422
1423
|
fontSizes[0] = baseFontSize;
|
|
@@ -1426,6 +1427,7 @@ var getFontSizes = function getFontSizes(baseFontSize) {
|
|
|
1426
1427
|
return undefined;
|
|
1427
1428
|
});
|
|
1428
1429
|
return {
|
|
1430
|
+
'7xlarge': scale(fontSizes[10]),
|
|
1429
1431
|
xxxxxlarge: scale(fontSizes[8]),
|
|
1430
1432
|
xxxxlarge: scale(fontSizes[7]),
|
|
1431
1433
|
xxxlarge: scale(fontSizes[6]),
|
|
@@ -1441,6 +1443,7 @@ var getFontSizes = function getFontSizes(baseFontSize) {
|
|
|
1441
1443
|
var getLineHeights = function getLineHeights(fontSizes) {
|
|
1442
1444
|
var additionalSpace = 8;
|
|
1443
1445
|
return {
|
|
1446
|
+
'7xlarge': fontSizes['7xlarge'] + additionalSpace,
|
|
1444
1447
|
xxxxxlarge: fontSizes.xxxxxlarge + additionalSpace,
|
|
1445
1448
|
xxxxlarge: fontSizes.xxxxlarge + additionalSpace,
|
|
1446
1449
|
xxxlarge: fontSizes.xxxlarge + additionalSpace,
|
|
@@ -1706,7 +1709,7 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1706
1709
|
var colors = {
|
|
1707
1710
|
shadow: theme.colors.primaryOutline,
|
|
1708
1711
|
background: theme.colors.defaultGlobalSurface,
|
|
1709
|
-
backdrop: theme.colors.
|
|
1712
|
+
backdrop: theme.colors.overlayGlobalSurface
|
|
1710
1713
|
};
|
|
1711
1714
|
var sizes = {
|
|
1712
1715
|
sectionHeight: theme.sizes.xxxxxlarge,
|
|
@@ -1716,16 +1719,16 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1716
1719
|
headerWrapperVerticalPadding: theme.space.small,
|
|
1717
1720
|
headerWrapperHorizontalPadding: theme.space.medium,
|
|
1718
1721
|
closeIconMargin: theme.space.smallMedium,
|
|
1719
|
-
footerVerticalPadding: theme.space.
|
|
1720
|
-
footerHorizontalPadding: theme.space.
|
|
1722
|
+
footerVerticalPadding: theme.space.medium,
|
|
1723
|
+
footerHorizontalPadding: theme.space.large
|
|
1721
1724
|
};
|
|
1722
1725
|
var shadows = {
|
|
1723
1726
|
offset: {
|
|
1724
1727
|
width: 0,
|
|
1725
1728
|
height: 3
|
|
1726
1729
|
},
|
|
1727
|
-
opacity: 0.
|
|
1728
|
-
radius:
|
|
1730
|
+
opacity: 0.4,
|
|
1731
|
+
radius: theme.radii.xlarge,
|
|
1729
1732
|
elevation: 10
|
|
1730
1733
|
};
|
|
1731
1734
|
var radii = {
|
|
@@ -1964,15 +1967,16 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1964
1967
|
var colors = {
|
|
1965
1968
|
text: theme.colors.onDefaultGlobalSurface,
|
|
1966
1969
|
invertedText: theme.colors.onDarkGlobalSurface,
|
|
1967
|
-
subduedText: theme.colors.
|
|
1970
|
+
subduedText: theme.colors.mutedOnDefaultGlobalSurface,
|
|
1971
|
+
invertedSubduedText: theme.colors.onDarkGlobalSurface
|
|
1968
1972
|
};
|
|
1969
1973
|
var fontSizes = {
|
|
1970
|
-
title: theme.fontSizes.
|
|
1971
|
-
description: theme.fontSizes.
|
|
1974
|
+
title: theme.fontSizes.xxxlarge,
|
|
1975
|
+
description: theme.fontSizes.xlarge
|
|
1972
1976
|
};
|
|
1973
1977
|
var fonts = {
|
|
1974
|
-
title: theme.fonts.
|
|
1975
|
-
description: theme.fonts.
|
|
1978
|
+
title: theme.fonts.playful.semiBold,
|
|
1979
|
+
description: theme.fonts.playful.regular
|
|
1976
1980
|
};
|
|
1977
1981
|
return {
|
|
1978
1982
|
fontSizes: fontSizes,
|
|
@@ -1989,7 +1993,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
1989
1993
|
icon: theme.colors.onPrimary,
|
|
1990
1994
|
headerText: theme.colors.onDarkGlobalSurface,
|
|
1991
1995
|
actionItemBackground: theme.colors.primary,
|
|
1992
|
-
backdropBackground: theme.colors.
|
|
1996
|
+
backdropBackground: theme.colors.overlayGlobalSurface,
|
|
1993
1997
|
titleText: theme.colors.onDarkGlobalSurface,
|
|
1994
1998
|
actionItemText: theme.colors.onPrimary
|
|
1995
1999
|
};
|
|
@@ -2310,10 +2314,12 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2310
2314
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
2311
2315
|
sectionSpacing: theme.space.smallMedium,
|
|
2312
2316
|
optionSpacing: theme.space.xsmall,
|
|
2313
|
-
|
|
2317
|
+
optionListHorizontalPadding: theme.space.smallMedium,
|
|
2314
2318
|
searchBarMarginTopSpacing: theme.space.small,
|
|
2315
2319
|
searchBarHorizontalSpacing: theme.space.medium,
|
|
2316
|
-
searchBarBottomSpacing: theme.space.small
|
|
2320
|
+
searchBarBottomSpacing: theme.space.small,
|
|
2321
|
+
singleSelectContentPaddingBottom: theme.space.medium,
|
|
2322
|
+
suffixMarginRight: theme.space.smallMedium
|
|
2317
2323
|
};
|
|
2318
2324
|
var radii = {
|
|
2319
2325
|
option: theme.radii.base
|
|
@@ -2689,7 +2695,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
2689
2695
|
large: theme.fontSizes.large,
|
|
2690
2696
|
xlarge: theme.fontSizes.xlarge,
|
|
2691
2697
|
xxxlarge: theme.fontSizes.xxxlarge,
|
|
2692
|
-
xxxxxlarge: theme.fontSizes.xxxxxlarge
|
|
2698
|
+
xxxxxlarge: theme.fontSizes.xxxxxlarge,
|
|
2699
|
+
'7xlarge': theme.fontSizes['7xlarge']
|
|
2693
2700
|
};
|
|
2694
2701
|
var lineHeights = {
|
|
2695
2702
|
small: theme.lineHeights.small,
|
|
@@ -2697,7 +2704,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
2697
2704
|
large: theme.lineHeights.large,
|
|
2698
2705
|
xlarge: theme.lineHeights.xlarge,
|
|
2699
2706
|
xxxlarge: theme.lineHeights.xxxlarge,
|
|
2700
|
-
xxxxxlarge: theme.lineHeights.xxxxxlarge
|
|
2707
|
+
xxxxxlarge: theme.lineHeights.xxxxxlarge,
|
|
2708
|
+
'7xlarge': theme.lineHeights['7xlarge']
|
|
2701
2709
|
};
|
|
2702
2710
|
return {
|
|
2703
2711
|
colors: colors,
|
|
@@ -7044,7 +7052,7 @@ var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref2) {
|
|
|
7044
7052
|
var theme = _ref2.theme;
|
|
7045
7053
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
7046
7054
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
7047
|
-
opacity: 0.
|
|
7055
|
+
opacity: 0.4
|
|
7048
7056
|
});
|
|
7049
7057
|
});
|
|
7050
7058
|
var StyledHeaderWrapper = index$a(View)(function (_ref3) {
|
|
@@ -7597,7 +7605,7 @@ var Header = function Header(_ref) {
|
|
|
7597
7605
|
onPress: onRequestClose,
|
|
7598
7606
|
intent: "text",
|
|
7599
7607
|
testID: "bottom-sheet-close-icon",
|
|
7600
|
-
size: "
|
|
7608
|
+
size: "xsmall"
|
|
7601
7609
|
})) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
|
|
7602
7610
|
};
|
|
7603
7611
|
|
|
@@ -11167,7 +11175,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
11167
11175
|
var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
|
|
11168
11176
|
return {
|
|
11169
11177
|
list: uniqSnapPointOffsetValues,
|
|
11170
|
-
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
11178
|
+
minHeightOffset: Math.max.apply(Math, _toConsumableArray(uniqSnapPointOffsetValues)),
|
|
11171
11179
|
maxHeightOffset: 0 // Max height
|
|
11172
11180
|
};
|
|
11173
11181
|
};
|
|
@@ -11393,7 +11401,7 @@ var StyledDescription = index$a(Text$1)(function (_ref3) {
|
|
|
11393
11401
|
fontFamily: theme.__hd__.empty.fonts.description,
|
|
11394
11402
|
fontSize: theme.__hd__.empty.fontSizes.description,
|
|
11395
11403
|
textAlign: 'center',
|
|
11396
|
-
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.
|
|
11404
|
+
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedSubduedText : theme.__hd__.empty.colors.subduedText
|
|
11397
11405
|
};
|
|
11398
11406
|
});
|
|
11399
11407
|
|
|
@@ -11664,7 +11672,7 @@ var ActionGroup = function ActionGroup(_ref2) {
|
|
|
11664
11672
|
});
|
|
11665
11673
|
var interpolatedBackdropOpacityAnimation = tranlateXAnimation.current.interpolate({
|
|
11666
11674
|
inputRange: [0, 1],
|
|
11667
|
-
outputRange: [0, 0.
|
|
11675
|
+
outputRange: [0, 0.4]
|
|
11668
11676
|
});
|
|
11669
11677
|
var interpolatedActionGroupOpacityAnimation = tranlateXAnimation.current.interpolate({
|
|
11670
11678
|
inputRange: [0, 1],
|
|
@@ -12844,6 +12852,12 @@ var StyledSearchBar = index$a(View)(function (_ref4) {
|
|
|
12844
12852
|
paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
|
|
12845
12853
|
};
|
|
12846
12854
|
});
|
|
12855
|
+
var StyledSectionList = index$a(SectionList)(function (_ref5) {
|
|
12856
|
+
var theme = _ref5.theme;
|
|
12857
|
+
return {
|
|
12858
|
+
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
12859
|
+
};
|
|
12860
|
+
});
|
|
12847
12861
|
|
|
12848
12862
|
var Footer = function Footer(_ref) {
|
|
12849
12863
|
var label = _ref.label,
|
|
@@ -12918,7 +12932,7 @@ var useKeyboard = function useKeyboard() {
|
|
|
12918
12932
|
};
|
|
12919
12933
|
};
|
|
12920
12934
|
|
|
12921
|
-
var
|
|
12935
|
+
var BaseOptionList = function BaseOptionList(_ref) {
|
|
12922
12936
|
var keyExtractor = _ref.keyExtractor,
|
|
12923
12937
|
loading = _ref.loading,
|
|
12924
12938
|
onEndReached = _ref.onEndReached,
|
|
@@ -12931,7 +12945,7 @@ var StyledOptionList = function StyledOptionList(_ref) {
|
|
|
12931
12945
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12932
12946
|
onEndReachedCalled = _useState2[0],
|
|
12933
12947
|
setOnEndReachedCalled = _useState2[1];
|
|
12934
|
-
return /*#__PURE__*/React.createElement(
|
|
12948
|
+
return /*#__PURE__*/React.createElement(StyledSectionList, {
|
|
12935
12949
|
ref: sectionListRef,
|
|
12936
12950
|
style: _objectSpread2({}, onQueryChange ? {
|
|
12937
12951
|
height: Dimensions.get('screen').height
|
|
@@ -12973,18 +12987,25 @@ var Option$2 = function Option(_ref) {
|
|
|
12973
12987
|
_ref$disabled = _ref.disabled,
|
|
12974
12988
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
12975
12989
|
selected = _ref.selected,
|
|
12976
|
-
onPress = _ref.onPress
|
|
12990
|
+
onPress = _ref.onPress,
|
|
12991
|
+
_ref$highlighted = _ref.highlighted,
|
|
12992
|
+
highlighted = _ref$highlighted === void 0 ? false : _ref$highlighted;
|
|
12977
12993
|
var theme = useTheme();
|
|
12978
|
-
|
|
12994
|
+
var props = {
|
|
12979
12995
|
selected: selected,
|
|
12980
12996
|
disabled: disabled,
|
|
12981
12997
|
onPress: onPress,
|
|
12982
12998
|
title: text,
|
|
12983
|
-
suffix: selected
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12999
|
+
suffix: selected === true ? /*#__PURE__*/React.createElement(Icon, {
|
|
13000
|
+
icon: "checkmark",
|
|
13001
|
+
intent: disabled ? 'disabled-text' : 'primary',
|
|
13002
|
+
size: "small",
|
|
13003
|
+
style: {
|
|
13004
|
+
marginRight: theme.__hd__.select.space.suffixMarginRight
|
|
13005
|
+
}
|
|
13006
|
+
}) : undefined
|
|
13007
|
+
};
|
|
13008
|
+
return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
|
|
12988
13009
|
};
|
|
12989
13010
|
|
|
12990
13011
|
var OptionList$1 = function OptionList(_ref) {
|
|
@@ -13016,10 +13037,11 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
13016
13037
|
selected: selected,
|
|
13017
13038
|
text: item.text,
|
|
13018
13039
|
disabled: item.disabled,
|
|
13019
|
-
onPress: onItemPress
|
|
13040
|
+
onPress: onItemPress,
|
|
13041
|
+
highlighted: item.highlighted
|
|
13020
13042
|
});
|
|
13021
13043
|
};
|
|
13022
|
-
return /*#__PURE__*/React.createElement(
|
|
13044
|
+
return /*#__PURE__*/React.createElement(BaseOptionList, {
|
|
13023
13045
|
keyExtractor: keyExtractor,
|
|
13024
13046
|
loading: loading,
|
|
13025
13047
|
onEndReached: onEndReached,
|
|
@@ -13074,6 +13096,9 @@ function MultiSelect(_ref) {
|
|
|
13074
13096
|
}).map(function (opt) {
|
|
13075
13097
|
return opt.text;
|
|
13076
13098
|
}).join(', ');
|
|
13099
|
+
useDeprecation("Select's onDimiss is deprecated and will be removed in the next major release. Please use onDismiss instead.", onDimiss !== undefined);
|
|
13100
|
+
useDeprecation("Select's numberOfLines is deprecated and will be removed in the next major release. Please use inputProps.numberOfLines instead.", numberOfLines !== undefined);
|
|
13101
|
+
useDeprecation("Select's inputProps.required is deprecated and will be removed in the next major release. Please use Select's required prop instead.", (inputProps === null || inputProps === void 0 ? void 0 : inputProps.required) !== undefined);
|
|
13077
13102
|
useEffect(function () {
|
|
13078
13103
|
setSelectingValue(value);
|
|
13079
13104
|
}, [open]);
|
|
@@ -13158,19 +13183,25 @@ var Option$1 = function Option(_ref) {
|
|
|
13158
13183
|
_ref$disabled = _ref.disabled,
|
|
13159
13184
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
13160
13185
|
selected = _ref.selected,
|
|
13161
|
-
onPress = _ref.onPress
|
|
13162
|
-
|
|
13163
|
-
|
|
13186
|
+
onPress = _ref.onPress,
|
|
13187
|
+
_ref$highlighted = _ref.highlighted,
|
|
13188
|
+
highlighted = _ref$highlighted === void 0 ? false : _ref$highlighted;
|
|
13189
|
+
var props = {
|
|
13164
13190
|
selected: selected,
|
|
13165
13191
|
disabled: disabled,
|
|
13166
13192
|
onPress: onPress,
|
|
13167
|
-
title: text
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
}
|
|
13171
|
-
});
|
|
13193
|
+
title: text
|
|
13194
|
+
};
|
|
13195
|
+
return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
|
|
13172
13196
|
};
|
|
13173
13197
|
|
|
13198
|
+
var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
|
|
13199
|
+
var theme = _ref.theme;
|
|
13200
|
+
return {
|
|
13201
|
+
paddingBottom: theme.__hd__.select.space.singleSelectContentPaddingBottom
|
|
13202
|
+
};
|
|
13203
|
+
});
|
|
13204
|
+
|
|
13174
13205
|
var OptionList = function OptionList(_ref) {
|
|
13175
13206
|
var keyExtractor = _ref.keyExtractor,
|
|
13176
13207
|
loading = _ref.loading,
|
|
@@ -13198,7 +13229,8 @@ var OptionList = function OptionList(_ref) {
|
|
|
13198
13229
|
selected: selected,
|
|
13199
13230
|
text: item.text,
|
|
13200
13231
|
disabled: item.disabled,
|
|
13201
|
-
onPress: onItemPress
|
|
13232
|
+
onPress: onItemPress,
|
|
13233
|
+
highlighted: item.highlighted
|
|
13202
13234
|
});
|
|
13203
13235
|
};
|
|
13204
13236
|
return /*#__PURE__*/React.createElement(StyledOptionList, {
|
|
@@ -13250,6 +13282,9 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
13250
13282
|
var displayedValue = (_flatOptions$find = flatOptions.find(function (opt) {
|
|
13251
13283
|
return value === opt.value;
|
|
13252
13284
|
})) === null || _flatOptions$find === void 0 ? void 0 : _flatOptions$find.text;
|
|
13285
|
+
useDeprecation("Select's onDimiss is deprecated and will be removed in the next major release. Please use onDismiss instead.", onDimiss !== undefined);
|
|
13286
|
+
useDeprecation("Select's numberOfLines is deprecated and will be removed in the next major release. Please use inputProps.numberOfLines instead.", numberOfLines !== undefined);
|
|
13287
|
+
useDeprecation("Select's inputProps.required is deprecated and will be removed in the next major release. Please use Select's required prop instead.", (inputProps === null || inputProps === void 0 ? void 0 : inputProps.required) !== undefined);
|
|
13253
13288
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
|
|
13254
13289
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
13255
13290
|
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
@@ -13665,7 +13700,9 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
13665
13700
|
icon: item,
|
|
13666
13701
|
testID: "hero-icon-".concat(item),
|
|
13667
13702
|
size: "small",
|
|
13668
|
-
|
|
13703
|
+
style: {
|
|
13704
|
+
color: color
|
|
13705
|
+
}
|
|
13669
13706
|
});
|
|
13670
13707
|
}
|
|
13671
13708
|
if (typeof item === 'string') {
|
|
@@ -14014,7 +14051,7 @@ var Tag = function Tag(_ref) {
|
|
|
14014
14051
|
style = _ref.style,
|
|
14015
14052
|
testID = _ref.testID,
|
|
14016
14053
|
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
14017
|
-
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use
|
|
14054
|
+
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent !== 'default');
|
|
14018
14055
|
return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
14019
14056
|
themeIntent: intent,
|
|
14020
14057
|
themeVariant: variant,
|
|
@@ -14370,7 +14407,7 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14370
14407
|
var _ref2$displayType = _ref2.displayType,
|
|
14371
14408
|
displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
|
|
14372
14409
|
_ref2$position = _ref2.position,
|
|
14373
|
-
position = _ref2$position === void 0 ? '
|
|
14410
|
+
position = _ref2$position === void 0 ? 'bottom' : _ref2$position,
|
|
14374
14411
|
style = _ref2.style;
|
|
14375
14412
|
var theme = useTheme$1();
|
|
14376
14413
|
var _useState = useState([]),
|
|
@@ -14433,8 +14470,9 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
14433
14470
|
var children = _ref.children,
|
|
14434
14471
|
_ref$displayType = _ref.displayType,
|
|
14435
14472
|
displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
|
|
14436
|
-
|
|
14437
|
-
|
|
14473
|
+
_position = _ref.position;
|
|
14474
|
+
var position = _position === undefined ? 'bottom' : _position;
|
|
14475
|
+
useDeprecation("Toast's position prop is deprecated and will be removed in the next major release.\nPlease remove it.", _position !== undefined);
|
|
14438
14476
|
var toastRef = useRef(null);
|
|
14439
14477
|
// @ts-expect-error: TODO: @tungv Fix this type error
|
|
14440
14478
|
var _useState = useState(null),
|
|
@@ -25620,7 +25658,8 @@ function checkDCE() {
|
|
|
25620
25658
|
voids: a
|
|
25621
25659
|
}));
|
|
25622
25660
|
if (v.length > 0) if ("continue" === function () {
|
|
25623
|
-
var
|
|
25661
|
+
var _v = _slicedToArray(v, 1),
|
|
25662
|
+
r = _v[0],
|
|
25624
25663
|
n = v[v.length - 1],
|
|
25625
25664
|
_r4 = _slicedToArray(r, 2),
|
|
25626
25665
|
o = _r4[1],
|