@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/lib/index.js
CHANGED
|
@@ -105,7 +105,7 @@ function _defineProperty(obj, key, value) {
|
|
|
105
105
|
return obj;
|
|
106
106
|
}
|
|
107
107
|
function _extends$1() {
|
|
108
|
-
_extends$1 = Object.assign
|
|
108
|
+
_extends$1 = Object.assign || function (target) {
|
|
109
109
|
for (var i = 1; i < arguments.length; i++) {
|
|
110
110
|
var source = arguments[i];
|
|
111
111
|
for (var key in source) {
|
|
@@ -1260,6 +1260,7 @@ var globalPalette = {
|
|
|
1260
1260
|
disabledOnDefaultGlobalSurface: palette$6.greyLight30,
|
|
1261
1261
|
darkGlobalSurface: palette$6.maasstrichtBlue,
|
|
1262
1262
|
onDarkGlobalSurface: palette$6.white,
|
|
1263
|
+
overlayGlobalSurface: palette$6.black,
|
|
1263
1264
|
// Outlines
|
|
1264
1265
|
primaryOutline: palette$6.maasstrichtBlue,
|
|
1265
1266
|
secondaryOutline: palette$6.greyLight75,
|
|
@@ -1445,7 +1446,7 @@ var getFonts = function getFonts(_ref) {
|
|
|
1445
1446
|
};
|
|
1446
1447
|
};
|
|
1447
1448
|
var getFontSizes = function getFontSizes(baseFontSize) {
|
|
1448
|
-
var fontSizes = Array.from(new Array(
|
|
1449
|
+
var fontSizes = Array.from(new Array(11));
|
|
1449
1450
|
fontSizes.forEach(function (_, index) {
|
|
1450
1451
|
if (index === 0) {
|
|
1451
1452
|
fontSizes[0] = baseFontSize;
|
|
@@ -1455,6 +1456,7 @@ var getFontSizes = function getFontSizes(baseFontSize) {
|
|
|
1455
1456
|
return undefined;
|
|
1456
1457
|
});
|
|
1457
1458
|
return {
|
|
1459
|
+
'7xlarge': scale(fontSizes[10]),
|
|
1458
1460
|
xxxxxlarge: scale(fontSizes[8]),
|
|
1459
1461
|
xxxxlarge: scale(fontSizes[7]),
|
|
1460
1462
|
xxxlarge: scale(fontSizes[6]),
|
|
@@ -1470,6 +1472,7 @@ var getFontSizes = function getFontSizes(baseFontSize) {
|
|
|
1470
1472
|
var getLineHeights = function getLineHeights(fontSizes) {
|
|
1471
1473
|
var additionalSpace = 8;
|
|
1472
1474
|
return {
|
|
1475
|
+
'7xlarge': fontSizes['7xlarge'] + additionalSpace,
|
|
1473
1476
|
xxxxxlarge: fontSizes.xxxxxlarge + additionalSpace,
|
|
1474
1477
|
xxxxlarge: fontSizes.xxxxlarge + additionalSpace,
|
|
1475
1478
|
xxxlarge: fontSizes.xxxlarge + additionalSpace,
|
|
@@ -1735,7 +1738,7 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1735
1738
|
var colors = {
|
|
1736
1739
|
shadow: theme.colors.primaryOutline,
|
|
1737
1740
|
background: theme.colors.defaultGlobalSurface,
|
|
1738
|
-
backdrop: theme.colors.
|
|
1741
|
+
backdrop: theme.colors.overlayGlobalSurface
|
|
1739
1742
|
};
|
|
1740
1743
|
var sizes = {
|
|
1741
1744
|
sectionHeight: theme.sizes.xxxxxlarge,
|
|
@@ -1745,16 +1748,16 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1745
1748
|
headerWrapperVerticalPadding: theme.space.small,
|
|
1746
1749
|
headerWrapperHorizontalPadding: theme.space.medium,
|
|
1747
1750
|
closeIconMargin: theme.space.smallMedium,
|
|
1748
|
-
footerVerticalPadding: theme.space.
|
|
1749
|
-
footerHorizontalPadding: theme.space.
|
|
1751
|
+
footerVerticalPadding: theme.space.medium,
|
|
1752
|
+
footerHorizontalPadding: theme.space.large
|
|
1750
1753
|
};
|
|
1751
1754
|
var shadows = {
|
|
1752
1755
|
offset: {
|
|
1753
1756
|
width: 0,
|
|
1754
1757
|
height: 3
|
|
1755
1758
|
},
|
|
1756
|
-
opacity: 0.
|
|
1757
|
-
radius:
|
|
1759
|
+
opacity: 0.4,
|
|
1760
|
+
radius: theme.radii.xlarge,
|
|
1758
1761
|
elevation: 10
|
|
1759
1762
|
};
|
|
1760
1763
|
var radii = {
|
|
@@ -1993,15 +1996,16 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1993
1996
|
var colors = {
|
|
1994
1997
|
text: theme.colors.onDefaultGlobalSurface,
|
|
1995
1998
|
invertedText: theme.colors.onDarkGlobalSurface,
|
|
1996
|
-
subduedText: theme.colors.
|
|
1999
|
+
subduedText: theme.colors.mutedOnDefaultGlobalSurface,
|
|
2000
|
+
invertedSubduedText: theme.colors.onDarkGlobalSurface
|
|
1997
2001
|
};
|
|
1998
2002
|
var fontSizes = {
|
|
1999
|
-
title: theme.fontSizes.
|
|
2000
|
-
description: theme.fontSizes.
|
|
2003
|
+
title: theme.fontSizes.xxxlarge,
|
|
2004
|
+
description: theme.fontSizes.xlarge
|
|
2001
2005
|
};
|
|
2002
2006
|
var fonts = {
|
|
2003
|
-
title: theme.fonts.
|
|
2004
|
-
description: theme.fonts.
|
|
2007
|
+
title: theme.fonts.playful.semiBold,
|
|
2008
|
+
description: theme.fonts.playful.regular
|
|
2005
2009
|
};
|
|
2006
2010
|
return {
|
|
2007
2011
|
fontSizes: fontSizes,
|
|
@@ -2018,7 +2022,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2018
2022
|
icon: theme.colors.onPrimary,
|
|
2019
2023
|
headerText: theme.colors.onDarkGlobalSurface,
|
|
2020
2024
|
actionItemBackground: theme.colors.primary,
|
|
2021
|
-
backdropBackground: theme.colors.
|
|
2025
|
+
backdropBackground: theme.colors.overlayGlobalSurface,
|
|
2022
2026
|
titleText: theme.colors.onDarkGlobalSurface,
|
|
2023
2027
|
actionItemText: theme.colors.onPrimary
|
|
2024
2028
|
};
|
|
@@ -2339,10 +2343,12 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2339
2343
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
2340
2344
|
sectionSpacing: theme.space.smallMedium,
|
|
2341
2345
|
optionSpacing: theme.space.xsmall,
|
|
2342
|
-
|
|
2346
|
+
optionListHorizontalPadding: theme.space.smallMedium,
|
|
2343
2347
|
searchBarMarginTopSpacing: theme.space.small,
|
|
2344
2348
|
searchBarHorizontalSpacing: theme.space.medium,
|
|
2345
|
-
searchBarBottomSpacing: theme.space.small
|
|
2349
|
+
searchBarBottomSpacing: theme.space.small,
|
|
2350
|
+
singleSelectContentPaddingBottom: theme.space.medium,
|
|
2351
|
+
suffixMarginRight: theme.space.smallMedium
|
|
2346
2352
|
};
|
|
2347
2353
|
var radii = {
|
|
2348
2354
|
option: theme.radii.base
|
|
@@ -2718,7 +2724,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
2718
2724
|
large: theme.fontSizes.large,
|
|
2719
2725
|
xlarge: theme.fontSizes.xlarge,
|
|
2720
2726
|
xxxlarge: theme.fontSizes.xxxlarge,
|
|
2721
|
-
xxxxxlarge: theme.fontSizes.xxxxxlarge
|
|
2727
|
+
xxxxxlarge: theme.fontSizes.xxxxxlarge,
|
|
2728
|
+
'7xlarge': theme.fontSizes['7xlarge']
|
|
2722
2729
|
};
|
|
2723
2730
|
var lineHeights = {
|
|
2724
2731
|
small: theme.lineHeights.small,
|
|
@@ -2726,7 +2733,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
2726
2733
|
large: theme.lineHeights.large,
|
|
2727
2734
|
xlarge: theme.lineHeights.xlarge,
|
|
2728
2735
|
xxxlarge: theme.lineHeights.xxxlarge,
|
|
2729
|
-
xxxxxlarge: theme.lineHeights.xxxxxlarge
|
|
2736
|
+
xxxxxlarge: theme.lineHeights.xxxxxlarge,
|
|
2737
|
+
'7xlarge': theme.lineHeights['7xlarge']
|
|
2730
2738
|
};
|
|
2731
2739
|
return {
|
|
2732
2740
|
colors: colors,
|
|
@@ -7073,7 +7081,7 @@ var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref2) {
|
|
|
7073
7081
|
var theme = _ref2.theme;
|
|
7074
7082
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
7075
7083
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
7076
|
-
opacity: 0.
|
|
7084
|
+
opacity: 0.4
|
|
7077
7085
|
});
|
|
7078
7086
|
});
|
|
7079
7087
|
var StyledHeaderWrapper = index$a(reactNative.View)(function (_ref3) {
|
|
@@ -7626,7 +7634,7 @@ var Header = function Header(_ref) {
|
|
|
7626
7634
|
onPress: onRequestClose,
|
|
7627
7635
|
intent: "text",
|
|
7628
7636
|
testID: "bottom-sheet-close-icon",
|
|
7629
|
-
size: "
|
|
7637
|
+
size: "xsmall"
|
|
7630
7638
|
})) : null), showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null);
|
|
7631
7639
|
};
|
|
7632
7640
|
|
|
@@ -11196,7 +11204,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
11196
11204
|
var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
|
|
11197
11205
|
return {
|
|
11198
11206
|
list: uniqSnapPointOffsetValues,
|
|
11199
|
-
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
11207
|
+
minHeightOffset: Math.max.apply(Math, _toConsumableArray(uniqSnapPointOffsetValues)),
|
|
11200
11208
|
maxHeightOffset: 0 // Max height
|
|
11201
11209
|
};
|
|
11202
11210
|
};
|
|
@@ -11422,7 +11430,7 @@ var StyledDescription = index$a(reactNative.Text)(function (_ref3) {
|
|
|
11422
11430
|
fontFamily: theme.__hd__.empty.fonts.description,
|
|
11423
11431
|
fontSize: theme.__hd__.empty.fontSizes.description,
|
|
11424
11432
|
textAlign: 'center',
|
|
11425
|
-
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.
|
|
11433
|
+
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedSubduedText : theme.__hd__.empty.colors.subduedText
|
|
11426
11434
|
};
|
|
11427
11435
|
});
|
|
11428
11436
|
|
|
@@ -11693,7 +11701,7 @@ var ActionGroup = function ActionGroup(_ref2) {
|
|
|
11693
11701
|
});
|
|
11694
11702
|
var interpolatedBackdropOpacityAnimation = tranlateXAnimation.current.interpolate({
|
|
11695
11703
|
inputRange: [0, 1],
|
|
11696
|
-
outputRange: [0, 0.
|
|
11704
|
+
outputRange: [0, 0.4]
|
|
11697
11705
|
});
|
|
11698
11706
|
var interpolatedActionGroupOpacityAnimation = tranlateXAnimation.current.interpolate({
|
|
11699
11707
|
inputRange: [0, 1],
|
|
@@ -12873,6 +12881,12 @@ var StyledSearchBar = index$a(reactNative.View)(function (_ref4) {
|
|
|
12873
12881
|
paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
|
|
12874
12882
|
};
|
|
12875
12883
|
});
|
|
12884
|
+
var StyledSectionList = index$a(reactNative.SectionList)(function (_ref5) {
|
|
12885
|
+
var theme = _ref5.theme;
|
|
12886
|
+
return {
|
|
12887
|
+
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
12888
|
+
};
|
|
12889
|
+
});
|
|
12876
12890
|
|
|
12877
12891
|
var Footer = function Footer(_ref) {
|
|
12878
12892
|
var label = _ref.label,
|
|
@@ -12947,7 +12961,7 @@ var useKeyboard = function useKeyboard() {
|
|
|
12947
12961
|
};
|
|
12948
12962
|
};
|
|
12949
12963
|
|
|
12950
|
-
var
|
|
12964
|
+
var BaseOptionList = function BaseOptionList(_ref) {
|
|
12951
12965
|
var keyExtractor = _ref.keyExtractor,
|
|
12952
12966
|
loading = _ref.loading,
|
|
12953
12967
|
onEndReached = _ref.onEndReached,
|
|
@@ -12960,7 +12974,7 @@ var StyledOptionList = function StyledOptionList(_ref) {
|
|
|
12960
12974
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12961
12975
|
onEndReachedCalled = _useState2[0],
|
|
12962
12976
|
setOnEndReachedCalled = _useState2[1];
|
|
12963
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12977
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledSectionList, {
|
|
12964
12978
|
ref: sectionListRef,
|
|
12965
12979
|
style: _objectSpread2({}, onQueryChange ? {
|
|
12966
12980
|
height: reactNative.Dimensions.get('screen').height
|
|
@@ -13002,18 +13016,25 @@ var Option$2 = function Option(_ref) {
|
|
|
13002
13016
|
_ref$disabled = _ref.disabled,
|
|
13003
13017
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
13004
13018
|
selected = _ref.selected,
|
|
13005
|
-
onPress = _ref.onPress
|
|
13019
|
+
onPress = _ref.onPress,
|
|
13020
|
+
_ref$highlighted = _ref.highlighted,
|
|
13021
|
+
highlighted = _ref$highlighted === void 0 ? false : _ref$highlighted;
|
|
13006
13022
|
var theme = useTheme();
|
|
13007
|
-
|
|
13023
|
+
var props = {
|
|
13008
13024
|
selected: selected,
|
|
13009
13025
|
disabled: disabled,
|
|
13010
13026
|
onPress: onPress,
|
|
13011
13027
|
title: text,
|
|
13012
|
-
suffix: selected
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13028
|
+
suffix: selected === true ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
13029
|
+
icon: "checkmark",
|
|
13030
|
+
intent: disabled ? 'disabled-text' : 'primary',
|
|
13031
|
+
size: "small",
|
|
13032
|
+
style: {
|
|
13033
|
+
marginRight: theme.__hd__.select.space.suffixMarginRight
|
|
13034
|
+
}
|
|
13035
|
+
}) : undefined
|
|
13036
|
+
};
|
|
13037
|
+
return highlighted === true ? /*#__PURE__*/React__default["default"].createElement(List.Item, props) : /*#__PURE__*/React__default["default"].createElement(List.BasicItem, props);
|
|
13017
13038
|
};
|
|
13018
13039
|
|
|
13019
13040
|
var OptionList$1 = function OptionList(_ref) {
|
|
@@ -13045,10 +13066,11 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
13045
13066
|
selected: selected,
|
|
13046
13067
|
text: item.text,
|
|
13047
13068
|
disabled: item.disabled,
|
|
13048
|
-
onPress: onItemPress
|
|
13069
|
+
onPress: onItemPress,
|
|
13070
|
+
highlighted: item.highlighted
|
|
13049
13071
|
});
|
|
13050
13072
|
};
|
|
13051
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13073
|
+
return /*#__PURE__*/React__default["default"].createElement(BaseOptionList, {
|
|
13052
13074
|
keyExtractor: keyExtractor,
|
|
13053
13075
|
loading: loading,
|
|
13054
13076
|
onEndReached: onEndReached,
|
|
@@ -13103,6 +13125,9 @@ function MultiSelect(_ref) {
|
|
|
13103
13125
|
}).map(function (opt) {
|
|
13104
13126
|
return opt.text;
|
|
13105
13127
|
}).join(', ');
|
|
13128
|
+
useDeprecation("Select's onDimiss is deprecated and will be removed in the next major release. Please use onDismiss instead.", onDimiss !== undefined);
|
|
13129
|
+
useDeprecation("Select's numberOfLines is deprecated and will be removed in the next major release. Please use inputProps.numberOfLines instead.", numberOfLines !== undefined);
|
|
13130
|
+
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);
|
|
13106
13131
|
React.useEffect(function () {
|
|
13107
13132
|
setSelectingValue(value);
|
|
13108
13133
|
}, [open]);
|
|
@@ -13187,19 +13212,25 @@ var Option$1 = function Option(_ref) {
|
|
|
13187
13212
|
_ref$disabled = _ref.disabled,
|
|
13188
13213
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
13189
13214
|
selected = _ref.selected,
|
|
13190
|
-
onPress = _ref.onPress
|
|
13191
|
-
|
|
13192
|
-
|
|
13215
|
+
onPress = _ref.onPress,
|
|
13216
|
+
_ref$highlighted = _ref.highlighted,
|
|
13217
|
+
highlighted = _ref$highlighted === void 0 ? false : _ref$highlighted;
|
|
13218
|
+
var props = {
|
|
13193
13219
|
selected: selected,
|
|
13194
13220
|
disabled: disabled,
|
|
13195
13221
|
onPress: onPress,
|
|
13196
|
-
title: text
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
}
|
|
13200
|
-
});
|
|
13222
|
+
title: text
|
|
13223
|
+
};
|
|
13224
|
+
return highlighted === true ? /*#__PURE__*/React__default["default"].createElement(List.Item, props) : /*#__PURE__*/React__default["default"].createElement(List.BasicItem, props);
|
|
13201
13225
|
};
|
|
13202
13226
|
|
|
13227
|
+
var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
|
|
13228
|
+
var theme = _ref.theme;
|
|
13229
|
+
return {
|
|
13230
|
+
paddingBottom: theme.__hd__.select.space.singleSelectContentPaddingBottom
|
|
13231
|
+
};
|
|
13232
|
+
});
|
|
13233
|
+
|
|
13203
13234
|
var OptionList = function OptionList(_ref) {
|
|
13204
13235
|
var keyExtractor = _ref.keyExtractor,
|
|
13205
13236
|
loading = _ref.loading,
|
|
@@ -13227,7 +13258,8 @@ var OptionList = function OptionList(_ref) {
|
|
|
13227
13258
|
selected: selected,
|
|
13228
13259
|
text: item.text,
|
|
13229
13260
|
disabled: item.disabled,
|
|
13230
|
-
onPress: onItemPress
|
|
13261
|
+
onPress: onItemPress,
|
|
13262
|
+
highlighted: item.highlighted
|
|
13231
13263
|
});
|
|
13232
13264
|
};
|
|
13233
13265
|
return /*#__PURE__*/React__default["default"].createElement(StyledOptionList, {
|
|
@@ -13279,6 +13311,9 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
13279
13311
|
var displayedValue = (_flatOptions$find = flatOptions.find(function (opt) {
|
|
13280
13312
|
return value === opt.value;
|
|
13281
13313
|
})) === null || _flatOptions$find === void 0 ? void 0 : _flatOptions$find.text;
|
|
13314
|
+
useDeprecation("Select's onDimiss is deprecated and will be removed in the next major release. Please use onDismiss instead.", onDimiss !== undefined);
|
|
13315
|
+
useDeprecation("Select's numberOfLines is deprecated and will be removed in the next major release. Please use inputProps.numberOfLines instead.", numberOfLines !== undefined);
|
|
13316
|
+
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);
|
|
13282
13317
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
13283
13318
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
13284
13319
|
}, /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
|
|
@@ -13694,7 +13729,9 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
13694
13729
|
icon: item,
|
|
13695
13730
|
testID: "hero-icon-".concat(item),
|
|
13696
13731
|
size: "small",
|
|
13697
|
-
|
|
13732
|
+
style: {
|
|
13733
|
+
color: color
|
|
13734
|
+
}
|
|
13698
13735
|
});
|
|
13699
13736
|
}
|
|
13700
13737
|
if (typeof item === 'string') {
|
|
@@ -14043,7 +14080,7 @@ var Tag = function Tag(_ref) {
|
|
|
14043
14080
|
style = _ref.style,
|
|
14044
14081
|
testID = _ref.testID,
|
|
14045
14082
|
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
14046
|
-
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use
|
|
14083
|
+
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent !== 'default');
|
|
14047
14084
|
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
|
|
14048
14085
|
themeIntent: intent,
|
|
14049
14086
|
themeVariant: variant,
|
|
@@ -14399,7 +14436,7 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
14399
14436
|
var _ref2$displayType = _ref2.displayType,
|
|
14400
14437
|
displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
|
|
14401
14438
|
_ref2$position = _ref2.position,
|
|
14402
|
-
position = _ref2$position === void 0 ? '
|
|
14439
|
+
position = _ref2$position === void 0 ? 'bottom' : _ref2$position,
|
|
14403
14440
|
style = _ref2.style;
|
|
14404
14441
|
var theme = useTheme$1();
|
|
14405
14442
|
var _useState = React.useState([]),
|
|
@@ -14462,8 +14499,9 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
14462
14499
|
var children = _ref.children,
|
|
14463
14500
|
_ref$displayType = _ref.displayType,
|
|
14464
14501
|
displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
|
|
14465
|
-
|
|
14466
|
-
|
|
14502
|
+
_position = _ref.position;
|
|
14503
|
+
var position = _position === undefined ? 'bottom' : _position;
|
|
14504
|
+
useDeprecation("Toast's position prop is deprecated and will be removed in the next major release.\nPlease remove it.", _position !== undefined);
|
|
14467
14505
|
var toastRef = React.useRef(null);
|
|
14468
14506
|
// @ts-expect-error: TODO: @tungv Fix this type error
|
|
14469
14507
|
var _useState = React.useState(null),
|
|
@@ -25649,7 +25687,8 @@ function checkDCE() {
|
|
|
25649
25687
|
voids: a
|
|
25650
25688
|
}));
|
|
25651
25689
|
if (v.length > 0) if ("continue" === function () {
|
|
25652
|
-
var
|
|
25690
|
+
var _v = _slicedToArray(v, 1),
|
|
25691
|
+
r = _v[0],
|
|
25653
25692
|
n = v[v.length - 1],
|
|
25654
25693
|
_r4 = _slicedToArray(r, 2),
|
|
25655
25694
|
o = _r4[1],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@emotion/native": "^11.9.3",
|
|
22
22
|
"@emotion/react": "^11.9.3",
|
|
23
|
-
"@hero-design/colors": "
|
|
23
|
+
"@hero-design/colors": "8.0.0-rc.0",
|
|
24
24
|
"date-fns": "^2.16.1",
|
|
25
25
|
"events": "^3.2.0",
|
|
26
26
|
"hero-editor": "^1.9.12"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@types/react-native": "^0.67.7",
|
|
59
59
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
60
60
|
"babel-plugin-inline-import": "^3.0.0",
|
|
61
|
-
"eslint-config-hd": "
|
|
61
|
+
"eslint-config-hd": "8.0.0-rc.0",
|
|
62
62
|
"jest": "^27.3.1",
|
|
63
63
|
"react": "17.0.2",
|
|
64
64
|
"react-native": "0.65.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"rollup-plugin-copy": "^3.4.0",
|
|
73
73
|
"rollup-plugin-flow": "^1.1.1",
|
|
74
74
|
"ts-jest": "^27.0.7",
|
|
75
|
-
"prettier-config-hd": "
|
|
75
|
+
"prettier-config-hd": "8.0.0-rc.0",
|
|
76
76
|
"rn-7-23-0": "npm:@hero-design/rn@7.23.0"
|
|
77
77
|
},
|
|
78
78
|
"prettier": "prettier-config-hd"
|
|
@@ -46,7 +46,7 @@ const StyledBackdrop = styled(AnimatedPressable)<
|
|
|
46
46
|
>(({ theme }) => ({
|
|
47
47
|
...StyleSheet.absoluteFillObject,
|
|
48
48
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
49
|
-
opacity: 0.
|
|
49
|
+
opacity: 0.4,
|
|
50
50
|
}));
|
|
51
51
|
|
|
52
52
|
const StyledHeaderWrapper = styled(View)(({ theme }) => ({
|
|
@@ -56,7 +56,7 @@ exports[`BottomSheet renders correctly with close state 1`] = `
|
|
|
56
56
|
onStartShouldSetResponder={[Function]}
|
|
57
57
|
style={
|
|
58
58
|
Object {
|
|
59
|
-
"backgroundColor": "#
|
|
59
|
+
"backgroundColor": "#000000",
|
|
60
60
|
"bottom": 0,
|
|
61
61
|
"left": 0,
|
|
62
62
|
"opacity": 0.48,
|
|
@@ -82,8 +82,8 @@ exports[`BottomSheet renders correctly with close state 1`] = `
|
|
|
82
82
|
"height": 3,
|
|
83
83
|
"width": 0,
|
|
84
84
|
},
|
|
85
|
-
"shadowOpacity": 0.
|
|
86
|
-
"shadowRadius":
|
|
85
|
+
"shadowOpacity": 0.4,
|
|
86
|
+
"shadowRadius": 16,
|
|
87
87
|
"transform": Array [
|
|
88
88
|
Object {
|
|
89
89
|
"scaleY": 1,
|
|
@@ -179,13 +179,13 @@ exports[`BottomSheet renders correctly with close state 1`] = `
|
|
|
179
179
|
Array [
|
|
180
180
|
Object {
|
|
181
181
|
"color": "#001f23",
|
|
182
|
-
"fontSize":
|
|
182
|
+
"fontSize": 16,
|
|
183
183
|
},
|
|
184
184
|
undefined,
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
themeIntent="text"
|
|
188
|
-
themeSize="
|
|
188
|
+
themeSize="xsmall"
|
|
189
189
|
/>
|
|
190
190
|
</View>
|
|
191
191
|
</View>
|
|
@@ -226,8 +226,8 @@ exports[`BottomSheet renders correctly with close state 1`] = `
|
|
|
226
226
|
"flexDirection": "row",
|
|
227
227
|
"justifyContent": "flex-end",
|
|
228
228
|
"minHeight": 64,
|
|
229
|
-
"paddingHorizontal":
|
|
230
|
-
"paddingVertical":
|
|
229
|
+
"paddingHorizontal": 24,
|
|
230
|
+
"paddingVertical": 16,
|
|
231
231
|
},
|
|
232
232
|
undefined,
|
|
233
233
|
]
|
|
@@ -339,7 +339,7 @@ exports[`BottomSheet renders correctly with open state 1`] = `
|
|
|
339
339
|
onStartShouldSetResponder={[Function]}
|
|
340
340
|
style={
|
|
341
341
|
Object {
|
|
342
|
-
"backgroundColor": "#
|
|
342
|
+
"backgroundColor": "#000000",
|
|
343
343
|
"bottom": 0,
|
|
344
344
|
"left": 0,
|
|
345
345
|
"opacity": 0,
|
|
@@ -365,8 +365,8 @@ exports[`BottomSheet renders correctly with open state 1`] = `
|
|
|
365
365
|
"height": 3,
|
|
366
366
|
"width": 0,
|
|
367
367
|
},
|
|
368
|
-
"shadowOpacity": 0.
|
|
369
|
-
"shadowRadius":
|
|
368
|
+
"shadowOpacity": 0.4,
|
|
369
|
+
"shadowRadius": 16,
|
|
370
370
|
"transform": Array [
|
|
371
371
|
Object {
|
|
372
372
|
"scaleY": 1,
|
|
@@ -462,13 +462,13 @@ exports[`BottomSheet renders correctly with open state 1`] = `
|
|
|
462
462
|
Array [
|
|
463
463
|
Object {
|
|
464
464
|
"color": "#001f23",
|
|
465
|
-
"fontSize":
|
|
465
|
+
"fontSize": 16,
|
|
466
466
|
},
|
|
467
467
|
undefined,
|
|
468
468
|
]
|
|
469
469
|
}
|
|
470
470
|
themeIntent="text"
|
|
471
|
-
themeSize="
|
|
471
|
+
themeSize="xsmall"
|
|
472
472
|
/>
|
|
473
473
|
</View>
|
|
474
474
|
</View>
|
|
@@ -509,8 +509,8 @@ exports[`BottomSheet renders correctly with open state 1`] = `
|
|
|
509
509
|
"flexDirection": "row",
|
|
510
510
|
"justifyContent": "flex-end",
|
|
511
511
|
"minHeight": 64,
|
|
512
|
-
"paddingHorizontal":
|
|
513
|
-
"paddingVertical":
|
|
512
|
+
"paddingHorizontal": 24,
|
|
513
|
+
"paddingVertical": 16,
|
|
514
514
|
},
|
|
515
515
|
undefined,
|
|
516
516
|
]
|
|
@@ -287,7 +287,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
287
287
|
onStartShouldSetResponder={[Function]}
|
|
288
288
|
style={
|
|
289
289
|
Object {
|
|
290
|
-
"backgroundColor": "#
|
|
290
|
+
"backgroundColor": "#000000",
|
|
291
291
|
"bottom": 0,
|
|
292
292
|
"left": 0,
|
|
293
293
|
"opacity": 0.48,
|
|
@@ -313,8 +313,8 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
313
313
|
"height": 3,
|
|
314
314
|
"width": 0,
|
|
315
315
|
},
|
|
316
|
-
"shadowOpacity": 0.
|
|
317
|
-
"shadowRadius":
|
|
316
|
+
"shadowOpacity": 0.4,
|
|
317
|
+
"shadowRadius": 16,
|
|
318
318
|
"transform": Array [
|
|
319
319
|
Object {
|
|
320
320
|
"scaleY": 1,
|
|
@@ -410,13 +410,13 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
410
410
|
Array [
|
|
411
411
|
Object {
|
|
412
412
|
"color": "#001f23",
|
|
413
|
-
"fontSize":
|
|
413
|
+
"fontSize": 16,
|
|
414
414
|
},
|
|
415
415
|
undefined,
|
|
416
416
|
]
|
|
417
417
|
}
|
|
418
418
|
themeIntent="text"
|
|
419
|
-
themeSize="
|
|
419
|
+
themeSize="xsmall"
|
|
420
420
|
/>
|
|
421
421
|
</View>
|
|
422
422
|
</View>
|
|
@@ -477,8 +477,8 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
477
477
|
"flexDirection": "row",
|
|
478
478
|
"justifyContent": "flex-end",
|
|
479
479
|
"minHeight": 64,
|
|
480
|
-
"paddingHorizontal":
|
|
481
|
-
"paddingVertical":
|
|
480
|
+
"paddingHorizontal": 24,
|
|
481
|
+
"paddingVertical": 16,
|
|
482
482
|
},
|
|
483
483
|
undefined,
|
|
484
484
|
]
|
|
@@ -32,7 +32,7 @@ const StyledDescription = styled(Text)<{ themeVariant: ThemeVariant }>(
|
|
|
32
32
|
textAlign: 'center',
|
|
33
33
|
color:
|
|
34
34
|
themeVariant === 'dark'
|
|
35
|
-
? theme.__hd__.empty.colors.
|
|
35
|
+
? theme.__hd__.empty.colors.invertedSubduedText
|
|
36
36
|
: theme.__hd__.empty.colors.subduedText,
|
|
37
37
|
})
|
|
38
38
|
);
|
|
@@ -21,8 +21,8 @@ exports[`Empty renders empty state content correctly 1`] = `
|
|
|
21
21
|
Array [
|
|
22
22
|
Object {
|
|
23
23
|
"color": "#001f23",
|
|
24
|
-
"fontFamily": "
|
|
25
|
-
"fontSize":
|
|
24
|
+
"fontFamily": "RebondGrotesque-SemiBold",
|
|
25
|
+
"fontSize": 24,
|
|
26
26
|
"marginBottom": 16,
|
|
27
27
|
"textAlign": "center",
|
|
28
28
|
},
|
|
@@ -37,9 +37,9 @@ exports[`Empty renders empty state content correctly 1`] = `
|
|
|
37
37
|
style={
|
|
38
38
|
Array [
|
|
39
39
|
Object {
|
|
40
|
-
"color": "#
|
|
41
|
-
"fontFamily": "
|
|
42
|
-
"fontSize":
|
|
40
|
+
"color": "#4d6265",
|
|
41
|
+
"fontFamily": "RebondGrotesque-Regular",
|
|
42
|
+
"fontSize": 18,
|
|
43
43
|
"textAlign": "center",
|
|
44
44
|
},
|
|
45
45
|
undefined,
|
|
@@ -88,8 +88,8 @@ exports[`Empty renders empty state with image correctly 1`] = `
|
|
|
88
88
|
Array [
|
|
89
89
|
Object {
|
|
90
90
|
"color": "#001f23",
|
|
91
|
-
"fontFamily": "
|
|
92
|
-
"fontSize":
|
|
91
|
+
"fontFamily": "RebondGrotesque-SemiBold",
|
|
92
|
+
"fontSize": 24,
|
|
93
93
|
"marginBottom": 16,
|
|
94
94
|
"textAlign": "center",
|
|
95
95
|
},
|
|
@@ -104,9 +104,9 @@ exports[`Empty renders empty state with image correctly 1`] = `
|
|
|
104
104
|
style={
|
|
105
105
|
Array [
|
|
106
106
|
Object {
|
|
107
|
-
"color": "#
|
|
108
|
-
"fontFamily": "
|
|
109
|
-
"fontSize":
|
|
107
|
+
"color": "#4d6265",
|
|
108
|
+
"fontFamily": "RebondGrotesque-Regular",
|
|
109
|
+
"fontSize": 18,
|
|
110
110
|
"textAlign": "center",
|
|
111
111
|
},
|
|
112
112
|
undefined,
|
|
@@ -24,7 +24,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
24
24
|
pointerEvents="box-none"
|
|
25
25
|
style={
|
|
26
26
|
Object {
|
|
27
|
-
"backgroundColor": "#
|
|
27
|
+
"backgroundColor": "#000000",
|
|
28
28
|
"bottom": 0,
|
|
29
29
|
"left": 0,
|
|
30
30
|
"opacity": 0,
|
|
@@ -593,10 +593,10 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
593
593
|
pointerEvents="auto"
|
|
594
594
|
style={
|
|
595
595
|
Object {
|
|
596
|
-
"backgroundColor": "#
|
|
596
|
+
"backgroundColor": "#000000",
|
|
597
597
|
"bottom": 0,
|
|
598
598
|
"left": 0,
|
|
599
|
-
"opacity": 0.
|
|
599
|
+
"opacity": 0.4,
|
|
600
600
|
"position": "absolute",
|
|
601
601
|
"right": 0,
|
|
602
602
|
"top": 0,
|
|
@@ -100,7 +100,7 @@ const ActionGroup = ({
|
|
|
100
100
|
const interpolatedBackdropOpacityAnimation =
|
|
101
101
|
tranlateXAnimation.current.interpolate({
|
|
102
102
|
inputRange: [0, 1],
|
|
103
|
-
outputRange: [0, 0.
|
|
103
|
+
outputRange: [0, 0.4],
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
const interpolatedActionGroupOpacityAnimation =
|