@hero-design/rn 7.28.1 → 7.29.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 +50 -65
- package/lib/index.js +49 -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
|
+
[33m@hero-design/rn:build[0m: cache hit, replaying output [2md9bdf9ebe573456b[0m
|
|
2
|
+
[33m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
|
+
[33m@hero-design/rn:build: [0m$ rollup -c
|
|
4
|
+
[33m@hero-design/rn:build: [0m[36m
|
|
5
|
+
[33m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
|
+
[33m@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
|
+
[33m@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
|
+
[33m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m27s[22m[39m
|
|
9
|
+
[33m@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) {
|
|
@@ -1712,15 +1712,14 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1712
1712
|
backdrop: theme.colors.overlayGlobalSurface
|
|
1713
1713
|
};
|
|
1714
1714
|
var sizes = {
|
|
1715
|
-
sectionHeight: theme.sizes.xxxxxlarge,
|
|
1716
1715
|
closeIcon: theme.sizes.xxxlarge
|
|
1717
1716
|
};
|
|
1718
1717
|
var space = {
|
|
1719
1718
|
headerWrapperVerticalPadding: theme.space.small,
|
|
1720
1719
|
headerWrapperHorizontalPadding: theme.space.medium,
|
|
1721
1720
|
closeIconMargin: theme.space.smallMedium,
|
|
1722
|
-
footerVerticalPadding: theme.space.
|
|
1723
|
-
footerHorizontalPadding: theme.space.
|
|
1721
|
+
footerVerticalPadding: theme.space.xxsmall,
|
|
1722
|
+
footerHorizontalPadding: theme.space.smallMedium
|
|
1724
1723
|
};
|
|
1725
1724
|
var shadows = {
|
|
1726
1725
|
offset: {
|
|
@@ -2307,9 +2306,6 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
2307
2306
|
};
|
|
2308
2307
|
|
|
2309
2308
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
2310
|
-
var colors = {
|
|
2311
|
-
footerText: theme.colors.secondary
|
|
2312
|
-
};
|
|
2313
2309
|
var space = {
|
|
2314
2310
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
2315
2311
|
sectionSpacing: theme.space.smallMedium,
|
|
@@ -2326,7 +2322,6 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2326
2322
|
};
|
|
2327
2323
|
return {
|
|
2328
2324
|
space: space,
|
|
2329
|
-
colors: colors,
|
|
2330
2325
|
radii: radii
|
|
2331
2326
|
};
|
|
2332
2327
|
};
|
|
@@ -7072,7 +7067,6 @@ var StyledFooter = index$a(View)(function (_ref4) {
|
|
|
7072
7067
|
return {
|
|
7073
7068
|
paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
|
|
7074
7069
|
paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
|
|
7075
|
-
minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
|
|
7076
7070
|
alignItems: 'center',
|
|
7077
7071
|
justifyContent: 'flex-end',
|
|
7078
7072
|
flexDirection: 'row'
|
|
@@ -10803,6 +10797,9 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
10803
10797
|
}
|
|
10804
10798
|
return 'default';
|
|
10805
10799
|
};
|
|
10800
|
+
// Fix issue: Placeholder is not shown on iOS when multiline is true
|
|
10801
|
+
// https://github.com/callstack/react-native-paper/pull/3331
|
|
10802
|
+
var EMPTY_PLACEHOLDER_VALUE = ' ';
|
|
10806
10803
|
var TextInput = function TextInput(_ref2) {
|
|
10807
10804
|
var _ref3;
|
|
10808
10805
|
var label = _ref2.label,
|
|
@@ -10888,7 +10885,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
10888
10885
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
10889
10886
|
},
|
|
10890
10887
|
defaultValue: defaultValue,
|
|
10891
|
-
placeholder: isFocused || label === undefined ? nativeProps.placeholder :
|
|
10888
|
+
placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
|
|
10892
10889
|
});
|
|
10893
10890
|
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
10894
10891
|
style: style,
|
|
@@ -11050,18 +11047,16 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
11050
11047
|
return setOpen(false);
|
|
11051
11048
|
},
|
|
11052
11049
|
header: label,
|
|
11053
|
-
footer: /*#__PURE__*/React.createElement(
|
|
11050
|
+
footer: /*#__PURE__*/React.createElement(CompoundButton, {
|
|
11051
|
+
variant: "text",
|
|
11052
|
+
text: confirmLabel,
|
|
11054
11053
|
onPress: function onPress() {
|
|
11055
11054
|
if (selectingDate) {
|
|
11056
11055
|
onChange(selectingDate);
|
|
11057
11056
|
}
|
|
11058
11057
|
setOpen(false);
|
|
11059
11058
|
}
|
|
11060
|
-
}
|
|
11061
|
-
fontSize: "large",
|
|
11062
|
-
fontWeight: "semi-bold",
|
|
11063
|
-
intent: "primary"
|
|
11064
|
-
}, confirmLabel))
|
|
11059
|
+
})
|
|
11065
11060
|
}, /*#__PURE__*/React.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React.createElement(DateTimePicker, {
|
|
11066
11061
|
testID: "datePickerIOS",
|
|
11067
11062
|
value: selectingDate,
|
|
@@ -11175,7 +11170,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
11175
11170
|
var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
|
|
11176
11171
|
return {
|
|
11177
11172
|
list: uniqSnapPointOffsetValues,
|
|
11178
|
-
minHeightOffset: Math.max.apply(Math,
|
|
11173
|
+
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
11179
11174
|
maxHeightOffset: 0 // Max height
|
|
11180
11175
|
};
|
|
11181
11176
|
};
|
|
@@ -12826,48 +12821,14 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
12826
12821
|
}, text)), rightChildren);
|
|
12827
12822
|
};
|
|
12828
12823
|
|
|
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
12824
|
var Footer = function Footer(_ref) {
|
|
12863
12825
|
var label = _ref.label,
|
|
12864
12826
|
onPress = _ref.onPress;
|
|
12865
|
-
return /*#__PURE__*/React.createElement(
|
|
12827
|
+
return /*#__PURE__*/React.createElement(CompoundButton, {
|
|
12828
|
+
variant: "text",
|
|
12829
|
+
text: label,
|
|
12866
12830
|
onPress: onPress
|
|
12867
|
-
}
|
|
12868
|
-
fontSize: "large",
|
|
12869
|
-
fontWeight: "semi-bold"
|
|
12870
|
-
}, label));
|
|
12831
|
+
});
|
|
12871
12832
|
};
|
|
12872
12833
|
|
|
12873
12834
|
var isSections = function isSections(options) {
|
|
@@ -12932,6 +12893,33 @@ var useKeyboard = function useKeyboard() {
|
|
|
12932
12893
|
};
|
|
12933
12894
|
};
|
|
12934
12895
|
|
|
12896
|
+
var SectionSpacer = index$a(View)(function (_ref) {
|
|
12897
|
+
var theme = _ref.theme;
|
|
12898
|
+
return {
|
|
12899
|
+
marginTop: theme.__hd__.select.space.sectionSpacing
|
|
12900
|
+
};
|
|
12901
|
+
});
|
|
12902
|
+
var OptionSpacer = index$a(View)(function (_ref2) {
|
|
12903
|
+
var theme = _ref2.theme;
|
|
12904
|
+
return {
|
|
12905
|
+
marginTop: theme.__hd__.select.space.optionSpacing
|
|
12906
|
+
};
|
|
12907
|
+
});
|
|
12908
|
+
var StyledSearchBar = index$a(View)(function (_ref3) {
|
|
12909
|
+
var theme = _ref3.theme;
|
|
12910
|
+
return {
|
|
12911
|
+
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
12912
|
+
paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
|
|
12913
|
+
paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
|
|
12914
|
+
};
|
|
12915
|
+
});
|
|
12916
|
+
var StyledSectionList = index$a(SectionList)(function (_ref4) {
|
|
12917
|
+
var theme = _ref4.theme;
|
|
12918
|
+
return {
|
|
12919
|
+
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
12920
|
+
};
|
|
12921
|
+
});
|
|
12922
|
+
|
|
12935
12923
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
12936
12924
|
var keyExtractor = _ref.keyExtractor,
|
|
12937
12925
|
loading = _ref.loading,
|
|
@@ -14051,7 +14039,7 @@ var Tag = function Tag(_ref) {
|
|
|
14051
14039
|
style = _ref.style,
|
|
14052
14040
|
testID = _ref.testID,
|
|
14053
14041
|
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
|
|
14042
|
+
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent === 'default');
|
|
14055
14043
|
return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
14056
14044
|
themeIntent: intent,
|
|
14057
14045
|
themeVariant: variant,
|
|
@@ -14175,18 +14163,16 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
14175
14163
|
return setOpen(false);
|
|
14176
14164
|
},
|
|
14177
14165
|
header: label,
|
|
14178
|
-
footer: /*#__PURE__*/React.createElement(
|
|
14166
|
+
footer: /*#__PURE__*/React.createElement(CompoundButton, {
|
|
14167
|
+
variant: "text",
|
|
14168
|
+
text: confirmLabel,
|
|
14179
14169
|
onPress: function onPress() {
|
|
14180
14170
|
if (selectingDate) {
|
|
14181
14171
|
onChange(selectingDate);
|
|
14182
14172
|
}
|
|
14183
14173
|
setOpen(false);
|
|
14184
14174
|
}
|
|
14185
|
-
}
|
|
14186
|
-
fontSize: "large",
|
|
14187
|
-
fontWeight: "semi-bold",
|
|
14188
|
-
intent: "primary"
|
|
14189
|
-
}, confirmLabel))
|
|
14175
|
+
})
|
|
14190
14176
|
}, /*#__PURE__*/React.createElement(StyledPickerWrapper, null, /*#__PURE__*/React.createElement(DateTimePicker, {
|
|
14191
14177
|
testID: "timePickerIOS",
|
|
14192
14178
|
value: selectingDate,
|
|
@@ -25658,8 +25644,7 @@ function checkDCE() {
|
|
|
25658
25644
|
voids: a
|
|
25659
25645
|
}));
|
|
25660
25646
|
if (v.length > 0) if ("continue" === function () {
|
|
25661
|
-
var
|
|
25662
|
-
r = _v[0],
|
|
25647
|
+
var r = v[0],
|
|
25663
25648
|
n = v[v.length - 1],
|
|
25664
25649
|
_r4 = _slicedToArray(r, 2),
|
|
25665
25650
|
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) {
|
|
@@ -1741,15 +1741,14 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1741
1741
|
backdrop: theme.colors.overlayGlobalSurface
|
|
1742
1742
|
};
|
|
1743
1743
|
var sizes = {
|
|
1744
|
-
sectionHeight: theme.sizes.xxxxxlarge,
|
|
1745
1744
|
closeIcon: theme.sizes.xxxlarge
|
|
1746
1745
|
};
|
|
1747
1746
|
var space = {
|
|
1748
1747
|
headerWrapperVerticalPadding: theme.space.small,
|
|
1749
1748
|
headerWrapperHorizontalPadding: theme.space.medium,
|
|
1750
1749
|
closeIconMargin: theme.space.smallMedium,
|
|
1751
|
-
footerVerticalPadding: theme.space.
|
|
1752
|
-
footerHorizontalPadding: theme.space.
|
|
1750
|
+
footerVerticalPadding: theme.space.xxsmall,
|
|
1751
|
+
footerHorizontalPadding: theme.space.smallMedium
|
|
1753
1752
|
};
|
|
1754
1753
|
var shadows = {
|
|
1755
1754
|
offset: {
|
|
@@ -2336,9 +2335,6 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
2336
2335
|
};
|
|
2337
2336
|
|
|
2338
2337
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
2339
|
-
var colors = {
|
|
2340
|
-
footerText: theme.colors.secondary
|
|
2341
|
-
};
|
|
2342
2338
|
var space = {
|
|
2343
2339
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
2344
2340
|
sectionSpacing: theme.space.smallMedium,
|
|
@@ -2355,7 +2351,6 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2355
2351
|
};
|
|
2356
2352
|
return {
|
|
2357
2353
|
space: space,
|
|
2358
|
-
colors: colors,
|
|
2359
2354
|
radii: radii
|
|
2360
2355
|
};
|
|
2361
2356
|
};
|
|
@@ -7101,7 +7096,6 @@ var StyledFooter = index$a(reactNative.View)(function (_ref4) {
|
|
|
7101
7096
|
return {
|
|
7102
7097
|
paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
|
|
7103
7098
|
paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
|
|
7104
|
-
minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
|
|
7105
7099
|
alignItems: 'center',
|
|
7106
7100
|
justifyContent: 'flex-end',
|
|
7107
7101
|
flexDirection: 'row'
|
|
@@ -10832,6 +10826,9 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
10832
10826
|
}
|
|
10833
10827
|
return 'default';
|
|
10834
10828
|
};
|
|
10829
|
+
// Fix issue: Placeholder is not shown on iOS when multiline is true
|
|
10830
|
+
// https://github.com/callstack/react-native-paper/pull/3331
|
|
10831
|
+
var EMPTY_PLACEHOLDER_VALUE = ' ';
|
|
10835
10832
|
var TextInput = function TextInput(_ref2) {
|
|
10836
10833
|
var _ref3;
|
|
10837
10834
|
var label = _ref2.label,
|
|
@@ -10917,7 +10914,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
10917
10914
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
10918
10915
|
},
|
|
10919
10916
|
defaultValue: defaultValue,
|
|
10920
|
-
placeholder: isFocused || label === undefined ? nativeProps.placeholder :
|
|
10917
|
+
placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
|
|
10921
10918
|
});
|
|
10922
10919
|
return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
|
|
10923
10920
|
style: style,
|
|
@@ -11079,18 +11076,16 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
11079
11076
|
return setOpen(false);
|
|
11080
11077
|
},
|
|
11081
11078
|
header: label,
|
|
11082
|
-
footer: /*#__PURE__*/React__default["default"].createElement(
|
|
11079
|
+
footer: /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
|
|
11080
|
+
variant: "text",
|
|
11081
|
+
text: confirmLabel,
|
|
11083
11082
|
onPress: function onPress() {
|
|
11084
11083
|
if (selectingDate) {
|
|
11085
11084
|
onChange(selectingDate);
|
|
11086
11085
|
}
|
|
11087
11086
|
setOpen(false);
|
|
11088
11087
|
}
|
|
11089
|
-
}
|
|
11090
|
-
fontSize: "large",
|
|
11091
|
-
fontWeight: "semi-bold",
|
|
11092
|
-
intent: "primary"
|
|
11093
|
-
}, confirmLabel))
|
|
11088
|
+
})
|
|
11094
11089
|
}, /*#__PURE__*/React__default["default"].createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(DateTimePicker__default["default"], {
|
|
11095
11090
|
testID: "datePickerIOS",
|
|
11096
11091
|
value: selectingDate,
|
|
@@ -11204,7 +11199,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
|
|
|
11204
11199
|
var uniqSnapPointOffsetValues = Array.from(new Set([].concat(_toConsumableArray(snapPointsOffsetValues), [0])));
|
|
11205
11200
|
return {
|
|
11206
11201
|
list: uniqSnapPointOffsetValues,
|
|
11207
|
-
minHeightOffset: Math.max.apply(Math,
|
|
11202
|
+
minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
|
|
11208
11203
|
maxHeightOffset: 0 // Max height
|
|
11209
11204
|
};
|
|
11210
11205
|
};
|
|
@@ -12855,48 +12850,14 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
12855
12850
|
}, text)), rightChildren);
|
|
12856
12851
|
};
|
|
12857
12852
|
|
|
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
12853
|
var Footer = function Footer(_ref) {
|
|
12892
12854
|
var label = _ref.label,
|
|
12893
12855
|
onPress = _ref.onPress;
|
|
12894
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12856
|
+
return /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
|
|
12857
|
+
variant: "text",
|
|
12858
|
+
text: label,
|
|
12895
12859
|
onPress: onPress
|
|
12896
|
-
}
|
|
12897
|
-
fontSize: "large",
|
|
12898
|
-
fontWeight: "semi-bold"
|
|
12899
|
-
}, label));
|
|
12860
|
+
});
|
|
12900
12861
|
};
|
|
12901
12862
|
|
|
12902
12863
|
var isSections = function isSections(options) {
|
|
@@ -12961,6 +12922,33 @@ var useKeyboard = function useKeyboard() {
|
|
|
12961
12922
|
};
|
|
12962
12923
|
};
|
|
12963
12924
|
|
|
12925
|
+
var SectionSpacer = index$a(reactNative.View)(function (_ref) {
|
|
12926
|
+
var theme = _ref.theme;
|
|
12927
|
+
return {
|
|
12928
|
+
marginTop: theme.__hd__.select.space.sectionSpacing
|
|
12929
|
+
};
|
|
12930
|
+
});
|
|
12931
|
+
var OptionSpacer = index$a(reactNative.View)(function (_ref2) {
|
|
12932
|
+
var theme = _ref2.theme;
|
|
12933
|
+
return {
|
|
12934
|
+
marginTop: theme.__hd__.select.space.optionSpacing
|
|
12935
|
+
};
|
|
12936
|
+
});
|
|
12937
|
+
var StyledSearchBar = index$a(reactNative.View)(function (_ref3) {
|
|
12938
|
+
var theme = _ref3.theme;
|
|
12939
|
+
return {
|
|
12940
|
+
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
12941
|
+
paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
|
|
12942
|
+
paddingBottom: theme.__hd__.select.space.searchBarBottomSpacing
|
|
12943
|
+
};
|
|
12944
|
+
});
|
|
12945
|
+
var StyledSectionList = index$a(reactNative.SectionList)(function (_ref4) {
|
|
12946
|
+
var theme = _ref4.theme;
|
|
12947
|
+
return {
|
|
12948
|
+
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
12949
|
+
};
|
|
12950
|
+
});
|
|
12951
|
+
|
|
12964
12952
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
12965
12953
|
var keyExtractor = _ref.keyExtractor,
|
|
12966
12954
|
loading = _ref.loading,
|
|
@@ -14080,7 +14068,7 @@ var Tag = function Tag(_ref) {
|
|
|
14080
14068
|
style = _ref.style,
|
|
14081
14069
|
testID = _ref.testID,
|
|
14082
14070
|
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
|
|
14071
|
+
useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use primary intent instead.", intent === 'default');
|
|
14084
14072
|
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
|
|
14085
14073
|
themeIntent: intent,
|
|
14086
14074
|
themeVariant: variant,
|
|
@@ -14204,18 +14192,16 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
14204
14192
|
return setOpen(false);
|
|
14205
14193
|
},
|
|
14206
14194
|
header: label,
|
|
14207
|
-
footer: /*#__PURE__*/React__default["default"].createElement(
|
|
14195
|
+
footer: /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
|
|
14196
|
+
variant: "text",
|
|
14197
|
+
text: confirmLabel,
|
|
14208
14198
|
onPress: function onPress() {
|
|
14209
14199
|
if (selectingDate) {
|
|
14210
14200
|
onChange(selectingDate);
|
|
14211
14201
|
}
|
|
14212
14202
|
setOpen(false);
|
|
14213
14203
|
}
|
|
14214
|
-
}
|
|
14215
|
-
fontSize: "large",
|
|
14216
|
-
fontWeight: "semi-bold",
|
|
14217
|
-
intent: "primary"
|
|
14218
|
-
}, confirmLabel))
|
|
14204
|
+
})
|
|
14219
14205
|
}, /*#__PURE__*/React__default["default"].createElement(StyledPickerWrapper, null, /*#__PURE__*/React__default["default"].createElement(DateTimePicker__default["default"], {
|
|
14220
14206
|
testID: "timePickerIOS",
|
|
14221
14207
|
value: selectingDate,
|
|
@@ -25687,8 +25673,7 @@ function checkDCE() {
|
|
|
25687
25673
|
voids: a
|
|
25688
25674
|
}));
|
|
25689
25675
|
if (v.length > 0) if ("continue" === function () {
|
|
25690
|
-
var
|
|
25691
|
-
r = _v[0],
|
|
25676
|
+
var r = v[0],
|
|
25692
25677
|
n = v[v.length - 1],
|
|
25693
25678
|
_r4 = _slicedToArray(r, 2),
|
|
25694
25679
|
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.29.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.29.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.29.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.29.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.29.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>
|