@hero-design/rn 7.28.1 → 7.30.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/.eslintrc.js +2 -1
- package/.turbo/turbo-build.log +9 -9
- package/es/index.js +51 -65
- package/lib/index.js +50 -64
- package/package.json +5 -4
- package/src/components/BottomSheet/StyledBottomSheet.tsx +0 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +4 -6
- package/src/components/DatePicker/DatePickerIOS.tsx +5 -11
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +31 -12
- package/src/components/Progress/ProgressCircle.tsx +1 -1
- package/src/components/Select/Footer.tsx +2 -7
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +120 -50
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Select/StyledSelect.tsx +1 -12
- package/src/components/Tag/index.tsx +1 -1
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +4 -2
- package/src/components/TextInput/index.tsx +7 -1
- package/src/components/TimePicker/TimePickerIOS.tsx +5 -11
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +31 -12
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +2 -6
- package/src/theme/components/bottomSheet.ts +2 -3
- package/src/theme/components/select.ts +1 -5
- 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/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -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 +0 -0
- 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 +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- 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 +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +1 -5
- 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 +0 -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 +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- 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 +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- 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 -1
- 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 +0 -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 +0 -3
- 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 +0 -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 +0 -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 +0 -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 +0 -0
- package/types/theme/index.d.ts +0 -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/.expo/README.md +0 -15
- package/.expo/packager-info.json +0 -10
- package/.expo/prebuild/cached-packages.json +0 -4
- package/.expo/settings.json +0 -10
- package/.expo/xcodebuild-error.log +0 -2
- package/.expo/xcodebuild.log +0 -11199
- package/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-build:watch.log +0 -1
- package/.turbo/turbo-lint.log +0 -96
- package/.turbo/turbo-test.log +0 -909
- package/src/components/Select/__tests__/StyledSelect.spec.tsx +0 -14
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -29
- package/types/components/Accordion/utils.d.ts +0 -1
- package/types/components/Select/StyledOptionList.d.ts +0 -12
- package/types/theme/utils.d.ts +0 -2
package/.eslintrc.js
CHANGED
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
1
|
+
[34m@hero-design/rn:build[0m: cache hit, replaying output [2m46db5217a7ebe96d[0m
|
|
2
|
+
[34m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
|
+
[34m@hero-design/rn:build: [0m$ rollup -c
|
|
4
|
+
[34m@hero-design/rn:build: [0m[36m
|
|
5
|
+
[34m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
|
+
[34m@hero-design/rn:build: [0m[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
7
|
+
[34m@hero-design/rn:build: [0m[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
8
|
+
[34m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m32.7s[22m[39m
|
|
9
|
+
[34m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
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, Keyboard, SectionList, 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 ? Object.assign.bind() : 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) {
|
|
@@ -1046,6 +1046,7 @@ var blue$1 = colorScales.blue,
|
|
|
1046
1046
|
violetDark15: violet$2.darken15,
|
|
1047
1047
|
violetDark30: violet$2.darken30,
|
|
1048
1048
|
violetDark45: violet$2.darken45,
|
|
1049
|
+
violetDark60: violet$2.darken60,
|
|
1049
1050
|
violetDark75: violet$2.darken75,
|
|
1050
1051
|
violetLight30: violet$2.lighten30,
|
|
1051
1052
|
violetLight60: violet$2.lighten60,
|
|
@@ -1712,15 +1713,14 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1712
1713
|
backdrop: theme.colors.overlayGlobalSurface
|
|
1713
1714
|
};
|
|
1714
1715
|
var sizes = {
|
|
1715
|
-
sectionHeight: theme.sizes.xxxxxlarge,
|
|
1716
1716
|
closeIcon: theme.sizes.xxxlarge
|
|
1717
1717
|
};
|
|
1718
1718
|
var space = {
|
|
1719
1719
|
headerWrapperVerticalPadding: theme.space.small,
|
|
1720
1720
|
headerWrapperHorizontalPadding: theme.space.medium,
|
|
1721
1721
|
closeIconMargin: theme.space.smallMedium,
|
|
1722
|
-
footerVerticalPadding: theme.space.
|
|
1723
|
-
footerHorizontalPadding: theme.space.
|
|
1722
|
+
footerVerticalPadding: theme.space.xxsmall,
|
|
1723
|
+
footerHorizontalPadding: theme.space.smallMedium
|
|
1724
1724
|
};
|
|
1725
1725
|
var shadows = {
|
|
1726
1726
|
offset: {
|
|
@@ -2307,9 +2307,6 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
2307
2307
|
};
|
|
2308
2308
|
|
|
2309
2309
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
2310
|
-
var colors = {
|
|
2311
|
-
footerText: theme.colors.secondary
|
|
2312
|
-
};
|
|
2313
2310
|
var space = {
|
|
2314
2311
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
2315
2312
|
sectionSpacing: theme.space.smallMedium,
|
|
@@ -2326,7 +2323,6 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2326
2323
|
};
|
|
2327
2324
|
return {
|
|
2328
2325
|
space: space,
|
|
2329
|
-
colors: colors,
|
|
2330
2326
|
radii: radii
|
|
2331
2327
|
};
|
|
2332
2328
|
};
|
|
@@ -7072,7 +7068,6 @@ var StyledFooter = index$a(View)(function (_ref4) {
|
|
|
7072
7068
|
return {
|
|
7073
7069
|
paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
|
|
7074
7070
|
paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
|
|
7075
|
-
minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
|
|
7076
7071
|
alignItems: 'center',
|
|
7077
7072
|
justifyContent: 'flex-end',
|
|
7078
7073
|
flexDirection: 'row'
|
|
@@ -10803,6 +10798,9 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
10803
10798
|
}
|
|
10804
10799
|
return 'default';
|
|
10805
10800
|
};
|
|
10801
|
+
// Fix issue: Placeholder is not shown on iOS when multiline is true
|
|
10802
|
+
// https://github.com/callstack/react-native-paper/pull/3331
|
|
10803
|
+
var EMPTY_PLACEHOLDER_VALUE = ' ';
|
|
10806
10804
|
var TextInput = function TextInput(_ref2) {
|
|
10807
10805
|
var _ref3;
|
|
10808
10806
|
var label = _ref2.label,
|
|
@@ -10888,7 +10886,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
10888
10886
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
10889
10887
|
},
|
|
10890
10888
|
defaultValue: defaultValue,
|
|
10891
|
-
placeholder: isFocused || label === undefined ? nativeProps.placeholder :
|
|
10889
|
+
placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
|
|
10892
10890
|
});
|
|
10893
10891
|
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
10894
10892
|
style: style,
|
|
@@ -11050,18 +11048,16 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
11050
11048
|
return setOpen(false);
|
|
11051
11049
|
},
|
|
11052
11050
|
header: label,
|
|
11053
|
-
footer: /*#__PURE__*/React.createElement(
|
|
11051
|
+
footer: /*#__PURE__*/React.createElement(CompoundButton, {
|
|
11052
|
+
variant: "text",
|
|
11053
|
+
text: confirmLabel,
|
|
11054
11054
|
onPress: function onPress() {
|
|
11055
11055
|
if (selectingDate) {
|
|
11056
11056
|
onChange(selectingDate);
|
|
11057
11057
|
}
|
|
11058
11058
|
setOpen(false);
|
|
11059
11059
|
}
|
|
11060
|
-
}
|
|
11061
|
-
fontSize: "large",
|
|
11062
|
-
fontWeight: "semi-bold",
|
|
11063
|
-
intent: "primary"
|
|
11064
|
-
}, confirmLabel))
|
|
11060
|
+
})
|
|
11065
11061
|
}, /*#__PURE__*/React.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React.createElement(DateTimePicker, {
|
|
11066
11062
|
testID: "datePickerIOS",
|
|
11067
11063
|
value: selectingDate,
|
|
@@ -11175,7 +11171,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
11175
11171
|
var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
|
|
11176
11172
|
return {
|
|
11177
11173
|
list: uniqSnapPointOffsetValues,
|
|
11178
|
-
minHeightOffset: Math.max.apply(Math,
|
|
11174
|
+
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
11179
11175
|
maxHeightOffset: 0 // Max height
|
|
11180
11176
|
};
|
|
11181
11177
|
};
|
|
@@ -12826,48 +12822,14 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
12826
12822
|
}, text)), rightChildren);
|
|
12827
12823
|
};
|
|
12828
12824
|
|
|
12829
|
-
var SectionSpacer = index$a(View)(function (_ref) {
|
|
12830
|
-
var theme = _ref.theme;
|
|
12831
|
-
return {
|
|
12832
|
-
marginTop: theme.__hd__.select.space.sectionSpacing
|
|
12833
|
-
};
|
|
12834
|
-
});
|
|
12835
|
-
var OptionSpacer = index$a(View)(function (_ref2) {
|
|
12836
|
-
var theme = _ref2.theme;
|
|
12837
|
-
return {
|
|
12838
|
-
marginTop: theme.__hd__.select.space.optionSpacing
|
|
12839
|
-
};
|
|
12840
|
-
});
|
|
12841
|
-
var FooterText = index$a(Typography.Text)(function (_ref3) {
|
|
12842
|
-
var theme = _ref3.theme;
|
|
12843
|
-
return {
|
|
12844
|
-
color: theme.__hd__.select.colors.footerText
|
|
12845
|
-
};
|
|
12846
|
-
});
|
|
12847
|
-
var StyledSearchBar = index$a(View)(function (_ref4) {
|
|
12848
|
-
var theme = _ref4.theme;
|
|
12849
|
-
return {
|
|
12850
|
-
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
12851
|
-
paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
|
|
12852
|
-
paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
|
|
12853
|
-
};
|
|
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
|
-
});
|
|
12861
|
-
|
|
12862
12825
|
var Footer = function Footer(_ref) {
|
|
12863
12826
|
var label = _ref.label,
|
|
12864
12827
|
onPress = _ref.onPress;
|
|
12865
|
-
return /*#__PURE__*/React.createElement(
|
|
12828
|
+
return /*#__PURE__*/React.createElement(CompoundButton, {
|
|
12829
|
+
variant: "text",
|
|
12830
|
+
text: label,
|
|
12866
12831
|
onPress: onPress
|
|
12867
|
-
}
|
|
12868
|
-
fontSize: "large",
|
|
12869
|
-
fontWeight: "semi-bold"
|
|
12870
|
-
}, label));
|
|
12832
|
+
});
|
|
12871
12833
|
};
|
|
12872
12834
|
|
|
12873
12835
|
var isSections = function isSections(options) {
|
|
@@ -12932,6 +12894,33 @@ var useKeyboard = function useKeyboard() {
|
|
|
12932
12894
|
};
|
|
12933
12895
|
};
|
|
12934
12896
|
|
|
12897
|
+
var SectionSpacer = index$a(View)(function (_ref) {
|
|
12898
|
+
var theme = _ref.theme;
|
|
12899
|
+
return {
|
|
12900
|
+
marginTop: theme.__hd__.select.space.sectionSpacing
|
|
12901
|
+
};
|
|
12902
|
+
});
|
|
12903
|
+
var OptionSpacer = index$a(View)(function (_ref2) {
|
|
12904
|
+
var theme = _ref2.theme;
|
|
12905
|
+
return {
|
|
12906
|
+
marginTop: theme.__hd__.select.space.optionSpacing
|
|
12907
|
+
};
|
|
12908
|
+
});
|
|
12909
|
+
var StyledSearchBar = index$a(View)(function (_ref3) {
|
|
12910
|
+
var theme = _ref3.theme;
|
|
12911
|
+
return {
|
|
12912
|
+
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
12913
|
+
paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
|
|
12914
|
+
paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
|
|
12915
|
+
};
|
|
12916
|
+
});
|
|
12917
|
+
var StyledSectionList = index$a(SectionList)(function (_ref4) {
|
|
12918
|
+
var theme = _ref4.theme;
|
|
12919
|
+
return {
|
|
12920
|
+
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
12921
|
+
};
|
|
12922
|
+
});
|
|
12923
|
+
|
|
12935
12924
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
12936
12925
|
var keyExtractor = _ref.keyExtractor,
|
|
12937
12926
|
loading = _ref.loading,
|
|
@@ -14051,7 +14040,7 @@ var Tag = function Tag(_ref) {
|
|
|
14051
14040
|
style = _ref.style,
|
|
14052
14041
|
testID = _ref.testID,
|
|
14053
14042
|
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
14054
|
-
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent
|
|
14043
|
+
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent === 'default');
|
|
14055
14044
|
return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
14056
14045
|
themeIntent: intent,
|
|
14057
14046
|
themeVariant: variant,
|
|
@@ -14175,18 +14164,16 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
14175
14164
|
return setOpen(false);
|
|
14176
14165
|
},
|
|
14177
14166
|
header: label,
|
|
14178
|
-
footer: /*#__PURE__*/React.createElement(
|
|
14167
|
+
footer: /*#__PURE__*/React.createElement(CompoundButton, {
|
|
14168
|
+
variant: "text",
|
|
14169
|
+
text: confirmLabel,
|
|
14179
14170
|
onPress: function onPress() {
|
|
14180
14171
|
if (selectingDate) {
|
|
14181
14172
|
onChange(selectingDate);
|
|
14182
14173
|
}
|
|
14183
14174
|
setOpen(false);
|
|
14184
14175
|
}
|
|
14185
|
-
}
|
|
14186
|
-
fontSize: "large",
|
|
14187
|
-
fontWeight: "semi-bold",
|
|
14188
|
-
intent: "primary"
|
|
14189
|
-
}, confirmLabel))
|
|
14176
|
+
})
|
|
14190
14177
|
}, /*#__PURE__*/React.createElement(StyledPickerWrapper, null, /*#__PURE__*/React.createElement(DateTimePicker, {
|
|
14191
14178
|
testID: "timePickerIOS",
|
|
14192
14179
|
value: selectingDate,
|
|
@@ -25658,8 +25645,7 @@ function checkDCE() {
|
|
|
25658
25645
|
voids: a
|
|
25659
25646
|
}));
|
|
25660
25647
|
if (v.length > 0) if ("continue" === function () {
|
|
25661
|
-
var
|
|
25662
|
-
r = _v[0],
|
|
25648
|
+
var r = v[0],
|
|
25663
25649
|
n = v[v.length - 1],
|
|
25664
25650
|
_r4 = _slicedToArray(r, 2),
|
|
25665
25651
|
o = _r4[1],
|
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 ? Object.assign.bind() : 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) {
|
|
@@ -1075,6 +1075,7 @@ var blue$1 = colorScales.blue,
|
|
|
1075
1075
|
violetDark15: violet$2.darken15,
|
|
1076
1076
|
violetDark30: violet$2.darken30,
|
|
1077
1077
|
violetDark45: violet$2.darken45,
|
|
1078
|
+
violetDark60: violet$2.darken60,
|
|
1078
1079
|
violetDark75: violet$2.darken75,
|
|
1079
1080
|
violetLight30: violet$2.lighten30,
|
|
1080
1081
|
violetLight60: violet$2.lighten60,
|
|
@@ -1741,15 +1742,14 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1741
1742
|
backdrop: theme.colors.overlayGlobalSurface
|
|
1742
1743
|
};
|
|
1743
1744
|
var sizes = {
|
|
1744
|
-
sectionHeight: theme.sizes.xxxxxlarge,
|
|
1745
1745
|
closeIcon: theme.sizes.xxxlarge
|
|
1746
1746
|
};
|
|
1747
1747
|
var space = {
|
|
1748
1748
|
headerWrapperVerticalPadding: theme.space.small,
|
|
1749
1749
|
headerWrapperHorizontalPadding: theme.space.medium,
|
|
1750
1750
|
closeIconMargin: theme.space.smallMedium,
|
|
1751
|
-
footerVerticalPadding: theme.space.
|
|
1752
|
-
footerHorizontalPadding: theme.space.
|
|
1751
|
+
footerVerticalPadding: theme.space.xxsmall,
|
|
1752
|
+
footerHorizontalPadding: theme.space.smallMedium
|
|
1753
1753
|
};
|
|
1754
1754
|
var shadows = {
|
|
1755
1755
|
offset: {
|
|
@@ -2336,9 +2336,6 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
2336
2336
|
};
|
|
2337
2337
|
|
|
2338
2338
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
2339
|
-
var colors = {
|
|
2340
|
-
footerText: theme.colors.secondary
|
|
2341
|
-
};
|
|
2342
2339
|
var space = {
|
|
2343
2340
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
2344
2341
|
sectionSpacing: theme.space.smallMedium,
|
|
@@ -2355,7 +2352,6 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2355
2352
|
};
|
|
2356
2353
|
return {
|
|
2357
2354
|
space: space,
|
|
2358
|
-
colors: colors,
|
|
2359
2355
|
radii: radii
|
|
2360
2356
|
};
|
|
2361
2357
|
};
|
|
@@ -7101,7 +7097,6 @@ var StyledFooter = index$a(reactNative.View)(function (_ref4) {
|
|
|
7101
7097
|
return {
|
|
7102
7098
|
paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
|
|
7103
7099
|
paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
|
|
7104
|
-
minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
|
|
7105
7100
|
alignItems: 'center',
|
|
7106
7101
|
justifyContent: 'flex-end',
|
|
7107
7102
|
flexDirection: 'row'
|
|
@@ -10832,6 +10827,9 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
10832
10827
|
}
|
|
10833
10828
|
return 'default';
|
|
10834
10829
|
};
|
|
10830
|
+
// Fix issue: Placeholder is not shown on iOS when multiline is true
|
|
10831
|
+
// https://github.com/callstack/react-native-paper/pull/3331
|
|
10832
|
+
var EMPTY_PLACEHOLDER_VALUE = ' ';
|
|
10835
10833
|
var TextInput = function TextInput(_ref2) {
|
|
10836
10834
|
var _ref3;
|
|
10837
10835
|
var label = _ref2.label,
|
|
@@ -10917,7 +10915,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
10917
10915
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
10918
10916
|
},
|
|
10919
10917
|
defaultValue: defaultValue,
|
|
10920
|
-
placeholder: isFocused || label === undefined ? nativeProps.placeholder :
|
|
10918
|
+
placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
|
|
10921
10919
|
});
|
|
10922
10920
|
return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
|
|
10923
10921
|
style: style,
|
|
@@ -11079,18 +11077,16 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
11079
11077
|
return setOpen(false);
|
|
11080
11078
|
},
|
|
11081
11079
|
header: label,
|
|
11082
|
-
footer: /*#__PURE__*/React__default["default"].createElement(
|
|
11080
|
+
footer: /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
|
|
11081
|
+
variant: "text",
|
|
11082
|
+
text: confirmLabel,
|
|
11083
11083
|
onPress: function onPress() {
|
|
11084
11084
|
if (selectingDate) {
|
|
11085
11085
|
onChange(selectingDate);
|
|
11086
11086
|
}
|
|
11087
11087
|
setOpen(false);
|
|
11088
11088
|
}
|
|
11089
|
-
}
|
|
11090
|
-
fontSize: "large",
|
|
11091
|
-
fontWeight: "semi-bold",
|
|
11092
|
-
intent: "primary"
|
|
11093
|
-
}, confirmLabel))
|
|
11089
|
+
})
|
|
11094
11090
|
}, /*#__PURE__*/React__default["default"].createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(DateTimePicker__default["default"], {
|
|
11095
11091
|
testID: "datePickerIOS",
|
|
11096
11092
|
value: selectingDate,
|
|
@@ -11204,7 +11200,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
11204
11200
|
var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
|
|
11205
11201
|
return {
|
|
11206
11202
|
list: uniqSnapPointOffsetValues,
|
|
11207
|
-
minHeightOffset: Math.max.apply(Math,
|
|
11203
|
+
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
11208
11204
|
maxHeightOffset: 0 // Max height
|
|
11209
11205
|
};
|
|
11210
11206
|
};
|
|
@@ -12855,48 +12851,14 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
12855
12851
|
}, text)), rightChildren);
|
|
12856
12852
|
};
|
|
12857
12853
|
|
|
12858
|
-
var SectionSpacer = index$a(reactNative.View)(function (_ref) {
|
|
12859
|
-
var theme = _ref.theme;
|
|
12860
|
-
return {
|
|
12861
|
-
marginTop: theme.__hd__.select.space.sectionSpacing
|
|
12862
|
-
};
|
|
12863
|
-
});
|
|
12864
|
-
var OptionSpacer = index$a(reactNative.View)(function (_ref2) {
|
|
12865
|
-
var theme = _ref2.theme;
|
|
12866
|
-
return {
|
|
12867
|
-
marginTop: theme.__hd__.select.space.optionSpacing
|
|
12868
|
-
};
|
|
12869
|
-
});
|
|
12870
|
-
var FooterText = index$a(Typography.Text)(function (_ref3) {
|
|
12871
|
-
var theme = _ref3.theme;
|
|
12872
|
-
return {
|
|
12873
|
-
color: theme.__hd__.select.colors.footerText
|
|
12874
|
-
};
|
|
12875
|
-
});
|
|
12876
|
-
var StyledSearchBar = index$a(reactNative.View)(function (_ref4) {
|
|
12877
|
-
var theme = _ref4.theme;
|
|
12878
|
-
return {
|
|
12879
|
-
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
12880
|
-
paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
|
|
12881
|
-
paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
|
|
12882
|
-
};
|
|
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
|
-
});
|
|
12890
|
-
|
|
12891
12854
|
var Footer = function Footer(_ref) {
|
|
12892
12855
|
var label = _ref.label,
|
|
12893
12856
|
onPress = _ref.onPress;
|
|
12894
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12857
|
+
return /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
|
|
12858
|
+
variant: "text",
|
|
12859
|
+
text: label,
|
|
12895
12860
|
onPress: onPress
|
|
12896
|
-
}
|
|
12897
|
-
fontSize: "large",
|
|
12898
|
-
fontWeight: "semi-bold"
|
|
12899
|
-
}, label));
|
|
12861
|
+
});
|
|
12900
12862
|
};
|
|
12901
12863
|
|
|
12902
12864
|
var isSections = function isSections(options) {
|
|
@@ -12961,6 +12923,33 @@ var useKeyboard = function useKeyboard() {
|
|
|
12961
12923
|
};
|
|
12962
12924
|
};
|
|
12963
12925
|
|
|
12926
|
+
var SectionSpacer = index$a(reactNative.View)(function (_ref) {
|
|
12927
|
+
var theme = _ref.theme;
|
|
12928
|
+
return {
|
|
12929
|
+
marginTop: theme.__hd__.select.space.sectionSpacing
|
|
12930
|
+
};
|
|
12931
|
+
});
|
|
12932
|
+
var OptionSpacer = index$a(reactNative.View)(function (_ref2) {
|
|
12933
|
+
var theme = _ref2.theme;
|
|
12934
|
+
return {
|
|
12935
|
+
marginTop: theme.__hd__.select.space.optionSpacing
|
|
12936
|
+
};
|
|
12937
|
+
});
|
|
12938
|
+
var StyledSearchBar = index$a(reactNative.View)(function (_ref3) {
|
|
12939
|
+
var theme = _ref3.theme;
|
|
12940
|
+
return {
|
|
12941
|
+
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
12942
|
+
paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
|
|
12943
|
+
paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
|
|
12944
|
+
};
|
|
12945
|
+
});
|
|
12946
|
+
var StyledSectionList = index$a(reactNative.SectionList)(function (_ref4) {
|
|
12947
|
+
var theme = _ref4.theme;
|
|
12948
|
+
return {
|
|
12949
|
+
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
12950
|
+
};
|
|
12951
|
+
});
|
|
12952
|
+
|
|
12964
12953
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
12965
12954
|
var keyExtractor = _ref.keyExtractor,
|
|
12966
12955
|
loading = _ref.loading,
|
|
@@ -14080,7 +14069,7 @@ var Tag = function Tag(_ref) {
|
|
|
14080
14069
|
style = _ref.style,
|
|
14081
14070
|
testID = _ref.testID,
|
|
14082
14071
|
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
14083
|
-
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent
|
|
14072
|
+
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent === 'default');
|
|
14084
14073
|
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
|
|
14085
14074
|
themeIntent: intent,
|
|
14086
14075
|
themeVariant: variant,
|
|
@@ -14204,18 +14193,16 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
14204
14193
|
return setOpen(false);
|
|
14205
14194
|
},
|
|
14206
14195
|
header: label,
|
|
14207
|
-
footer: /*#__PURE__*/React__default["default"].createElement(
|
|
14196
|
+
footer: /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
|
|
14197
|
+
variant: "text",
|
|
14198
|
+
text: confirmLabel,
|
|
14208
14199
|
onPress: function onPress() {
|
|
14209
14200
|
if (selectingDate) {
|
|
14210
14201
|
onChange(selectingDate);
|
|
14211
14202
|
}
|
|
14212
14203
|
setOpen(false);
|
|
14213
14204
|
}
|
|
14214
|
-
}
|
|
14215
|
-
fontSize: "large",
|
|
14216
|
-
fontWeight: "semi-bold",
|
|
14217
|
-
intent: "primary"
|
|
14218
|
-
}, confirmLabel))
|
|
14205
|
+
})
|
|
14219
14206
|
}, /*#__PURE__*/React__default["default"].createElement(StyledPickerWrapper, null, /*#__PURE__*/React__default["default"].createElement(DateTimePicker__default["default"], {
|
|
14220
14207
|
testID: "timePickerIOS",
|
|
14221
14208
|
value: selectingDate,
|
|
@@ -25687,8 +25674,7 @@ function checkDCE() {
|
|
|
25687
25674
|
voids: a
|
|
25688
25675
|
}));
|
|
25689
25676
|
if (v.length > 0) if ("continue" === function () {
|
|
25690
|
-
var
|
|
25691
|
-
r = _v[0],
|
|
25677
|
+
var r = v[0],
|
|
25692
25678
|
n = v[v.length - 1],
|
|
25693
25679
|
_r4 = _slicedToArray(r, 2),
|
|
25694
25680
|
o = _r4[1],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.30.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": "7.
|
|
23
|
+
"@hero-design/colors": "7.30.0",
|
|
24
24
|
"date-fns": "^2.16.1",
|
|
25
25
|
"events": "^3.2.0",
|
|
26
26
|
"hero-editor": "^1.9.12"
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@babel/preset-typescript": "^7.17.12",
|
|
44
44
|
"@babel/runtime": "^7.18.9",
|
|
45
45
|
"@emotion/jest": "^11.9.3",
|
|
46
|
+
"@hero-design/eslint-plugin": "7.30.0",
|
|
46
47
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
47
48
|
"@react-native-community/slider": "4.1.12",
|
|
48
49
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"@types/react-native": "^0.67.7",
|
|
59
60
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
60
61
|
"babel-plugin-inline-import": "^3.0.0",
|
|
61
|
-
"eslint-config-hd": "7.
|
|
62
|
+
"eslint-config-hd": "7.30.0",
|
|
62
63
|
"jest": "^27.3.1",
|
|
63
64
|
"react": "17.0.2",
|
|
64
65
|
"react-native": "0.65.1",
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"rollup-plugin-copy": "^3.4.0",
|
|
73
74
|
"rollup-plugin-flow": "^1.1.1",
|
|
74
75
|
"ts-jest": "^27.0.7",
|
|
75
|
-
"prettier-config-hd": "7.
|
|
76
|
+
"prettier-config-hd": "7.30.0",
|
|
76
77
|
"rn-7-23-0": "npm:@hero-design/rn@7.23.0"
|
|
77
78
|
},
|
|
78
79
|
"prettier": "prettier-config-hd"
|
|
@@ -64,7 +64,6 @@ const StyledHeader = styled(View)<ViewProps>({
|
|
|
64
64
|
const StyledFooter = styled(View)<ViewProps>(({ theme }) => ({
|
|
65
65
|
paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
|
|
66
66
|
paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
|
|
67
|
-
minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
|
|
68
67
|
alignItems: 'center',
|
|
69
68
|
justifyContent: 'flex-end',
|
|
70
69
|
flexDirection: 'row',
|
|
@@ -225,9 +225,8 @@ exports[`BottomSheet renders correctly with close state 1`] = `
|
|
|
225
225
|
"alignItems": "center",
|
|
226
226
|
"flexDirection": "row",
|
|
227
227
|
"justifyContent": "flex-end",
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"paddingVertical": 16,
|
|
228
|
+
"paddingHorizontal": 12,
|
|
229
|
+
"paddingVertical": 2,
|
|
231
230
|
},
|
|
232
231
|
undefined,
|
|
233
232
|
]
|
|
@@ -508,9 +507,8 @@ exports[`BottomSheet renders correctly with open state 1`] = `
|
|
|
508
507
|
"alignItems": "center",
|
|
509
508
|
"flexDirection": "row",
|
|
510
509
|
"justifyContent": "flex-end",
|
|
511
|
-
"
|
|
512
|
-
"
|
|
513
|
-
"paddingVertical": 16,
|
|
510
|
+
"paddingHorizontal": 12,
|
|
511
|
+
"paddingVertical": 2,
|
|
514
512
|
},
|
|
515
513
|
undefined,
|
|
516
514
|
]
|
|
@@ -5,7 +5,7 @@ import formatDate from 'date-fns/fp/format';
|
|
|
5
5
|
|
|
6
6
|
import BottomSheet from '../BottomSheet';
|
|
7
7
|
import TextInput from '../TextInput';
|
|
8
|
-
import
|
|
8
|
+
import Button from '../Button';
|
|
9
9
|
import { StyledPickerWrapper } from './StyledDatePicker';
|
|
10
10
|
import type { DatePickerProps } from './types';
|
|
11
11
|
|
|
@@ -49,22 +49,16 @@ const DatePickerIOS = ({
|
|
|
49
49
|
onRequestClose={() => setOpen(false)}
|
|
50
50
|
header={label}
|
|
51
51
|
footer={
|
|
52
|
-
<
|
|
52
|
+
<Button
|
|
53
|
+
variant="text"
|
|
54
|
+
text={confirmLabel}
|
|
53
55
|
onPress={() => {
|
|
54
56
|
if (selectingDate) {
|
|
55
57
|
onChange(selectingDate);
|
|
56
58
|
}
|
|
57
59
|
setOpen(false);
|
|
58
60
|
}}
|
|
59
|
-
|
|
60
|
-
<Typography.Text
|
|
61
|
-
fontSize="large"
|
|
62
|
-
fontWeight="semi-bold"
|
|
63
|
-
intent="primary"
|
|
64
|
-
>
|
|
65
|
-
{confirmLabel}
|
|
66
|
-
</Typography.Text>
|
|
67
|
-
</TouchableOpacity>
|
|
61
|
+
/>
|
|
68
62
|
}
|
|
69
63
|
>
|
|
70
64
|
<StyledPickerWrapper>
|