@hero-design/rn 8.103.2-alpha.0 → 8.103.2
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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +2 -2
- package/es/index.js +42 -59
- package/lib/index.js +41 -58
- package/package.json +1 -1
- package/src/components/BottomSheet/StyledBottomSheet.tsx +4 -3
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +153 -170
- package/src/components/BottomSheet/index.tsx +42 -31
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +356 -390
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +3552 -3616
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2469 -2517
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +177 -194
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -1
- package/src/theme/components/bottomSheet.ts +0 -1
- package/stats/8.103.1/rn-stats.html +1 -3
- package/stats/8.103.2/rn-stats.html +4842 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +1 -1
- package/types/theme/components/bottomSheet.d.ts +0 -1
- package/src/components/BottomSheet/ContentContainer.tsx +0 -34
- package/types/components/BottomSheet/ContentContainer.d.ts +0 -10
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:3349) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
2
2
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
3
|
[36m
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
@@ -15,7 +15,7 @@ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/sr
|
|
|
15
15
|
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
16
16
|
[39m
|
|
17
17
|
[1m[33m(!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.[39m[22m
|
|
18
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m
|
|
18
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m 13.2s[22m[39m
|
|
19
19
|
[36m
|
|
20
20
|
[1m/home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/types.ts[22m → [1m., .[22m...[39m
|
|
21
21
|
[1m[33m(!) Generated empty chunks[39m[22m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
-
## 8.103.2
|
|
3
|
+
## 8.103.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
7
|
+
- [#4050](https://github.com/Thinkei/hero-design/pull/4050) [`44c253319e985a85bf75e00effc140733dd73ee9`](https://github.com/Thinkei/hero-design/commit/44c253319e985a85bf75e00effc140733dd73ee9) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - Revert BottomSheet Fix overlapping with dynamic island in iOS
|
|
8
8
|
|
|
9
9
|
## 8.103.1
|
|
10
10
|
|
package/es/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { StyleSheet as StyleSheet$1, Platform, Dimensions, Animated, View, UIMan
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useMemo, useEffect, useCallback, useRef, useLayoutEffect, useState, createContext, forwardRef, useContext, memo, useReducer, useImperativeHandle, isValidElement } from 'react';
|
|
5
5
|
import { createIconSet } from 'react-native-vector-icons';
|
|
6
|
-
import { useSafeAreaInsets
|
|
6
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
7
7
|
import { MonthYearPickerViewIOS, MonthYearPickerDialogueAndroid } from '@hero-design/react-native-month-year-picker';
|
|
8
8
|
import Svg, { G, ForeignObject, Line as Line$1, Path as Path$1, Rect, Mask, Circle as Circle$1, Defs, ClipPath } from 'react-native-svg';
|
|
9
9
|
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
@@ -5676,8 +5676,7 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
5676
5676
|
footerHorizontalPadding: theme.space.smallMedium,
|
|
5677
5677
|
floatingContentMargin: theme.space.medium,
|
|
5678
5678
|
floatingInnerPadding: theme.space.small,
|
|
5679
|
-
floatingHeaderIconPadding: theme.space.small
|
|
5680
|
-
contentPaddingBottom: theme.space.large
|
|
5679
|
+
floatingHeaderIconPadding: theme.space.small
|
|
5681
5680
|
};
|
|
5682
5681
|
var radii = {
|
|
5683
5682
|
"default": theme.radii.xlarge,
|
|
@@ -8575,7 +8574,7 @@ var StyledBody$1 = index$b(Typography.Body)(function (_ref5) {
|
|
|
8575
8574
|
color: theme.__hd__.alert.colors.texts[themeIntent]
|
|
8576
8575
|
};
|
|
8577
8576
|
});
|
|
8578
|
-
var ContentContainer$
|
|
8577
|
+
var ContentContainer$1 = index$b(View)(function (_ref6) {
|
|
8579
8578
|
var theme = _ref6.theme,
|
|
8580
8579
|
showDivider = _ref6.showDivider;
|
|
8581
8580
|
return {
|
|
@@ -8637,7 +8636,7 @@ var Alert = function Alert(_ref2) {
|
|
|
8637
8636
|
themeIntent: intent,
|
|
8638
8637
|
style: style,
|
|
8639
8638
|
testID: testID
|
|
8640
|
-
}, /*#__PURE__*/React__default.createElement(ContentContainer$
|
|
8639
|
+
}, /*#__PURE__*/React__default.createElement(ContentContainer$1, {
|
|
8641
8640
|
showDivider: !!onClose
|
|
8642
8641
|
}, icon !== null ? /*#__PURE__*/React__default.createElement(AlertIcon, {
|
|
8643
8642
|
icon: icon || getIntentIcon$1(intent),
|
|
@@ -10012,6 +10011,38 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
10012
10011
|
|
|
10013
10012
|
var BottomSheetContext = /*#__PURE__*/createContext({});
|
|
10014
10013
|
|
|
10014
|
+
var StyledDivider = index$b(View)(function (_ref) {
|
|
10015
|
+
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
10016
|
+
themeMarginVertical = _ref.themeMarginVertical,
|
|
10017
|
+
theme = _ref.theme;
|
|
10018
|
+
var horizontalMargin = themeMarginHorizontal !== undefined ? {
|
|
10019
|
+
marginHorizontal: theme.__hd__.divider.space[themeMarginHorizontal]
|
|
10020
|
+
} : {};
|
|
10021
|
+
var verticalMargin = themeMarginVertical !== undefined ? {
|
|
10022
|
+
marginVertical: theme.__hd__.divider.space[themeMarginVertical]
|
|
10023
|
+
} : {};
|
|
10024
|
+
return _objectSpread2(_objectSpread2({
|
|
10025
|
+
maxWidth: '100%',
|
|
10026
|
+
borderBottomColor: theme.__hd__.divider.colors["default"],
|
|
10027
|
+
borderBottomWidth: theme.__hd__.divider.borderWidths["default"]
|
|
10028
|
+
}, horizontalMargin), verticalMargin);
|
|
10029
|
+
});
|
|
10030
|
+
|
|
10031
|
+
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10032
|
+
var Divider = function Divider(_ref) {
|
|
10033
|
+
var marginHorizontal = _ref.marginHorizontal,
|
|
10034
|
+
marginVertical = _ref.marginVertical,
|
|
10035
|
+
style = _ref.style,
|
|
10036
|
+
testID = _ref.testID,
|
|
10037
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
10038
|
+
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10039
|
+
themeMarginHorizontal: marginHorizontal,
|
|
10040
|
+
themeMarginVertical: marginVertical,
|
|
10041
|
+
style: style,
|
|
10042
|
+
testID: testID
|
|
10043
|
+
}));
|
|
10044
|
+
};
|
|
10045
|
+
|
|
10015
10046
|
var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
|
|
10016
10047
|
var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
|
|
10017
10048
|
var StyledWrapper$a = index$b(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
@@ -10039,15 +10070,14 @@ var StyledFloatingBottomSheet = index$b(Animated.View)(function (_ref2) {
|
|
|
10039
10070
|
padding: theme.__hd__.bottomSheet.space.floatingInnerPadding
|
|
10040
10071
|
};
|
|
10041
10072
|
});
|
|
10042
|
-
var StyledBottomSheet = index$b(
|
|
10073
|
+
var StyledBottomSheet = index$b(AnimatedSafeAreaView)(function (_ref3) {
|
|
10043
10074
|
var theme = _ref3.theme;
|
|
10044
10075
|
return {
|
|
10045
10076
|
borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
10046
10077
|
borderTopRightRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
10047
10078
|
backgroundColor: theme.__hd__.bottomSheet.colors.background,
|
|
10048
10079
|
width: '100%',
|
|
10049
|
-
maxHeight: '
|
|
10050
|
-
paddingBottom: theme.__hd__.bottomSheet.space.contentPaddingBottom
|
|
10080
|
+
maxHeight: '94%'
|
|
10051
10081
|
};
|
|
10052
10082
|
});
|
|
10053
10083
|
var StyledBackdrop$2 = index$b(AnimatedPressable$1)(function (_ref4) {
|
|
@@ -10098,54 +10128,6 @@ var StyledFloatingHeaderWrapper = index$b(TouchableOpacity)(function (_ref8) {
|
|
|
10098
10128
|
};
|
|
10099
10129
|
});
|
|
10100
10130
|
|
|
10101
|
-
var ContentContainer$1 = function ContentContainer(_ref) {
|
|
10102
|
-
var children = _ref.children,
|
|
10103
|
-
variant = _ref.variant,
|
|
10104
|
-
style = _ref.style;
|
|
10105
|
-
return variant === 'fixed' ? /*#__PURE__*/React__default.createElement(SafeAreaView$1, {
|
|
10106
|
-
edges: ['left', 'right', 'top'],
|
|
10107
|
-
style: {
|
|
10108
|
-
maxHeight: '94%'
|
|
10109
|
-
}
|
|
10110
|
-
}, /*#__PURE__*/React__default.createElement(StyledBottomSheet, {
|
|
10111
|
-
style: style
|
|
10112
|
-
}, children)) : /*#__PURE__*/React__default.createElement(StyledFloatingWrapper, null, /*#__PURE__*/React__default.createElement(StyledFloatingBottomSheet, {
|
|
10113
|
-
style: style
|
|
10114
|
-
}, children));
|
|
10115
|
-
};
|
|
10116
|
-
|
|
10117
|
-
var StyledDivider = index$b(View)(function (_ref) {
|
|
10118
|
-
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
10119
|
-
themeMarginVertical = _ref.themeMarginVertical,
|
|
10120
|
-
theme = _ref.theme;
|
|
10121
|
-
var horizontalMargin = themeMarginHorizontal !== undefined ? {
|
|
10122
|
-
marginHorizontal: theme.__hd__.divider.space[themeMarginHorizontal]
|
|
10123
|
-
} : {};
|
|
10124
|
-
var verticalMargin = themeMarginVertical !== undefined ? {
|
|
10125
|
-
marginVertical: theme.__hd__.divider.space[themeMarginVertical]
|
|
10126
|
-
} : {};
|
|
10127
|
-
return _objectSpread2(_objectSpread2({
|
|
10128
|
-
maxWidth: '100%',
|
|
10129
|
-
borderBottomColor: theme.__hd__.divider.colors["default"],
|
|
10130
|
-
borderBottomWidth: theme.__hd__.divider.borderWidths["default"]
|
|
10131
|
-
}, horizontalMargin), verticalMargin);
|
|
10132
|
-
});
|
|
10133
|
-
|
|
10134
|
-
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10135
|
-
var Divider = function Divider(_ref) {
|
|
10136
|
-
var marginHorizontal = _ref.marginHorizontal,
|
|
10137
|
-
marginVertical = _ref.marginVertical,
|
|
10138
|
-
style = _ref.style,
|
|
10139
|
-
testID = _ref.testID,
|
|
10140
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
10141
|
-
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10142
|
-
themeMarginHorizontal: marginHorizontal,
|
|
10143
|
-
themeMarginVertical: marginVertical,
|
|
10144
|
-
style: style,
|
|
10145
|
-
testID: testID
|
|
10146
|
-
}));
|
|
10147
|
-
};
|
|
10148
|
-
|
|
10149
10131
|
var Footer$1 = function Footer(_ref) {
|
|
10150
10132
|
var children = _ref.children,
|
|
10151
10133
|
showDivider = _ref.showDivider;
|
|
@@ -10972,6 +10954,8 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
10972
10954
|
setInternalShowDivider: setInternalShowDivider
|
|
10973
10955
|
};
|
|
10974
10956
|
}, [setInternalShowDivider]);
|
|
10957
|
+
var BottomSheetWrapperComponent = variant === 'fixed' ? React__default.Fragment : StyledFloatingWrapper;
|
|
10958
|
+
var BottomSheetComponent = variant === 'fixed' ? StyledBottomSheet : StyledFloatingBottomSheet;
|
|
10975
10959
|
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
10976
10960
|
visible: visible,
|
|
10977
10961
|
onRequestClose: onRequestClose,
|
|
@@ -10988,8 +10972,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
10988
10972
|
opacity: interpolateOpacity
|
|
10989
10973
|
},
|
|
10990
10974
|
onPress: onRequestClose
|
|
10991
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
10992
|
-
variant: variant,
|
|
10975
|
+
}), /*#__PURE__*/React__default.createElement(BottomSheetWrapperComponent, null, /*#__PURE__*/React__default.createElement(BottomSheetComponent, {
|
|
10993
10976
|
style: [style, {
|
|
10994
10977
|
transform: [{
|
|
10995
10978
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -11007,7 +10990,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
11007
10990
|
value: BottomSheetContextValue
|
|
11008
10991
|
}, children), footer ? /*#__PURE__*/React__default.createElement(Footer$1, {
|
|
11009
10992
|
showDivider: showDivider
|
|
11010
|
-
}, footer) : null))));
|
|
10993
|
+
}, footer) : null)))));
|
|
11011
10994
|
};
|
|
11012
10995
|
var BottomSheet$1 = Object.assign(BottomSheet, {
|
|
11013
10996
|
ScrollView: BottomSheetScrollView
|
package/lib/index.js
CHANGED
|
@@ -5705,8 +5705,7 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
5705
5705
|
footerHorizontalPadding: theme.space.smallMedium,
|
|
5706
5706
|
floatingContentMargin: theme.space.medium,
|
|
5707
5707
|
floatingInnerPadding: theme.space.small,
|
|
5708
|
-
floatingHeaderIconPadding: theme.space.small
|
|
5709
|
-
contentPaddingBottom: theme.space.large
|
|
5708
|
+
floatingHeaderIconPadding: theme.space.small
|
|
5710
5709
|
};
|
|
5711
5710
|
var radii = {
|
|
5712
5711
|
"default": theme.radii.xlarge,
|
|
@@ -8604,7 +8603,7 @@ var StyledBody$1 = index$b(Typography.Body)(function (_ref5) {
|
|
|
8604
8603
|
color: theme.__hd__.alert.colors.texts[themeIntent]
|
|
8605
8604
|
};
|
|
8606
8605
|
});
|
|
8607
|
-
var ContentContainer$
|
|
8606
|
+
var ContentContainer$1 = index$b(reactNative.View)(function (_ref6) {
|
|
8608
8607
|
var theme = _ref6.theme,
|
|
8609
8608
|
showDivider = _ref6.showDivider;
|
|
8610
8609
|
return {
|
|
@@ -8666,7 +8665,7 @@ var Alert = function Alert(_ref2) {
|
|
|
8666
8665
|
themeIntent: intent,
|
|
8667
8666
|
style: style,
|
|
8668
8667
|
testID: testID
|
|
8669
|
-
}, /*#__PURE__*/React__namespace.default.createElement(ContentContainer$
|
|
8668
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ContentContainer$1, {
|
|
8670
8669
|
showDivider: !!onClose
|
|
8671
8670
|
}, icon !== null ? /*#__PURE__*/React__namespace.default.createElement(AlertIcon, {
|
|
8672
8671
|
icon: icon || getIntentIcon$1(intent),
|
|
@@ -10041,6 +10040,38 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
10041
10040
|
|
|
10042
10041
|
var BottomSheetContext = /*#__PURE__*/React.createContext({});
|
|
10043
10042
|
|
|
10043
|
+
var StyledDivider = index$b(reactNative.View)(function (_ref) {
|
|
10044
|
+
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
10045
|
+
themeMarginVertical = _ref.themeMarginVertical,
|
|
10046
|
+
theme = _ref.theme;
|
|
10047
|
+
var horizontalMargin = themeMarginHorizontal !== undefined ? {
|
|
10048
|
+
marginHorizontal: theme.__hd__.divider.space[themeMarginHorizontal]
|
|
10049
|
+
} : {};
|
|
10050
|
+
var verticalMargin = themeMarginVertical !== undefined ? {
|
|
10051
|
+
marginVertical: theme.__hd__.divider.space[themeMarginVertical]
|
|
10052
|
+
} : {};
|
|
10053
|
+
return _objectSpread2(_objectSpread2({
|
|
10054
|
+
maxWidth: '100%',
|
|
10055
|
+
borderBottomColor: theme.__hd__.divider.colors["default"],
|
|
10056
|
+
borderBottomWidth: theme.__hd__.divider.borderWidths["default"]
|
|
10057
|
+
}, horizontalMargin), verticalMargin);
|
|
10058
|
+
});
|
|
10059
|
+
|
|
10060
|
+
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10061
|
+
var Divider = function Divider(_ref) {
|
|
10062
|
+
var marginHorizontal = _ref.marginHorizontal,
|
|
10063
|
+
marginVertical = _ref.marginVertical,
|
|
10064
|
+
style = _ref.style,
|
|
10065
|
+
testID = _ref.testID,
|
|
10066
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
10067
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10068
|
+
themeMarginHorizontal: marginHorizontal,
|
|
10069
|
+
themeMarginVertical: marginVertical,
|
|
10070
|
+
style: style,
|
|
10071
|
+
testID: testID
|
|
10072
|
+
}));
|
|
10073
|
+
};
|
|
10074
|
+
|
|
10044
10075
|
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
10045
10076
|
var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
|
|
10046
10077
|
var StyledWrapper$a = index$b(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
@@ -10068,15 +10099,14 @@ var StyledFloatingBottomSheet = index$b(reactNative.Animated.View)(function (_re
|
|
|
10068
10099
|
padding: theme.__hd__.bottomSheet.space.floatingInnerPadding
|
|
10069
10100
|
};
|
|
10070
10101
|
});
|
|
10071
|
-
var StyledBottomSheet = index$b(
|
|
10102
|
+
var StyledBottomSheet = index$b(AnimatedSafeAreaView)(function (_ref3) {
|
|
10072
10103
|
var theme = _ref3.theme;
|
|
10073
10104
|
return {
|
|
10074
10105
|
borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
10075
10106
|
borderTopRightRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
10076
10107
|
backgroundColor: theme.__hd__.bottomSheet.colors.background,
|
|
10077
10108
|
width: '100%',
|
|
10078
|
-
maxHeight: '
|
|
10079
|
-
paddingBottom: theme.__hd__.bottomSheet.space.contentPaddingBottom
|
|
10109
|
+
maxHeight: '94%'
|
|
10080
10110
|
};
|
|
10081
10111
|
});
|
|
10082
10112
|
var StyledBackdrop$2 = index$b(AnimatedPressable$1)(function (_ref4) {
|
|
@@ -10127,54 +10157,6 @@ var StyledFloatingHeaderWrapper = index$b(reactNative.TouchableOpacity)(function
|
|
|
10127
10157
|
};
|
|
10128
10158
|
});
|
|
10129
10159
|
|
|
10130
|
-
var ContentContainer$1 = function ContentContainer(_ref) {
|
|
10131
|
-
var children = _ref.children,
|
|
10132
|
-
variant = _ref.variant,
|
|
10133
|
-
style = _ref.style;
|
|
10134
|
-
return variant === 'fixed' ? /*#__PURE__*/React__namespace.default.createElement(reactNativeSafeAreaContext.SafeAreaView, {
|
|
10135
|
-
edges: ['left', 'right', 'top'],
|
|
10136
|
-
style: {
|
|
10137
|
-
maxHeight: '94%'
|
|
10138
|
-
}
|
|
10139
|
-
}, /*#__PURE__*/React__namespace.default.createElement(StyledBottomSheet, {
|
|
10140
|
-
style: style
|
|
10141
|
-
}, children)) : /*#__PURE__*/React__namespace.default.createElement(StyledFloatingWrapper, null, /*#__PURE__*/React__namespace.default.createElement(StyledFloatingBottomSheet, {
|
|
10142
|
-
style: style
|
|
10143
|
-
}, children));
|
|
10144
|
-
};
|
|
10145
|
-
|
|
10146
|
-
var StyledDivider = index$b(reactNative.View)(function (_ref) {
|
|
10147
|
-
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
10148
|
-
themeMarginVertical = _ref.themeMarginVertical,
|
|
10149
|
-
theme = _ref.theme;
|
|
10150
|
-
var horizontalMargin = themeMarginHorizontal !== undefined ? {
|
|
10151
|
-
marginHorizontal: theme.__hd__.divider.space[themeMarginHorizontal]
|
|
10152
|
-
} : {};
|
|
10153
|
-
var verticalMargin = themeMarginVertical !== undefined ? {
|
|
10154
|
-
marginVertical: theme.__hd__.divider.space[themeMarginVertical]
|
|
10155
|
-
} : {};
|
|
10156
|
-
return _objectSpread2(_objectSpread2({
|
|
10157
|
-
maxWidth: '100%',
|
|
10158
|
-
borderBottomColor: theme.__hd__.divider.colors["default"],
|
|
10159
|
-
borderBottomWidth: theme.__hd__.divider.borderWidths["default"]
|
|
10160
|
-
}, horizontalMargin), verticalMargin);
|
|
10161
|
-
});
|
|
10162
|
-
|
|
10163
|
-
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10164
|
-
var Divider = function Divider(_ref) {
|
|
10165
|
-
var marginHorizontal = _ref.marginHorizontal,
|
|
10166
|
-
marginVertical = _ref.marginVertical,
|
|
10167
|
-
style = _ref.style,
|
|
10168
|
-
testID = _ref.testID,
|
|
10169
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
10170
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10171
|
-
themeMarginHorizontal: marginHorizontal,
|
|
10172
|
-
themeMarginVertical: marginVertical,
|
|
10173
|
-
style: style,
|
|
10174
|
-
testID: testID
|
|
10175
|
-
}));
|
|
10176
|
-
};
|
|
10177
|
-
|
|
10178
10160
|
var Footer$1 = function Footer(_ref) {
|
|
10179
10161
|
var children = _ref.children,
|
|
10180
10162
|
showDivider = _ref.showDivider;
|
|
@@ -11001,6 +10983,8 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
11001
10983
|
setInternalShowDivider: setInternalShowDivider
|
|
11002
10984
|
};
|
|
11003
10985
|
}, [setInternalShowDivider]);
|
|
10986
|
+
var BottomSheetWrapperComponent = variant === 'fixed' ? React__namespace.default.Fragment : StyledFloatingWrapper;
|
|
10987
|
+
var BottomSheetComponent = variant === 'fixed' ? StyledBottomSheet : StyledFloatingBottomSheet;
|
|
11004
10988
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Modal, {
|
|
11005
10989
|
visible: visible,
|
|
11006
10990
|
onRequestClose: onRequestClose,
|
|
@@ -11017,8 +11001,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
11017
11001
|
opacity: interpolateOpacity
|
|
11018
11002
|
},
|
|
11019
11003
|
onPress: onRequestClose
|
|
11020
|
-
}), /*#__PURE__*/React__namespace.default.createElement(
|
|
11021
|
-
variant: variant,
|
|
11004
|
+
}), /*#__PURE__*/React__namespace.default.createElement(BottomSheetWrapperComponent, null, /*#__PURE__*/React__namespace.default.createElement(BottomSheetComponent, {
|
|
11022
11005
|
style: [style, {
|
|
11023
11006
|
transform: [{
|
|
11024
11007
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -11036,7 +11019,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
11036
11019
|
value: BottomSheetContextValue
|
|
11037
11020
|
}, children), footer ? /*#__PURE__*/React__namespace.default.createElement(Footer$1, {
|
|
11038
11021
|
showDivider: showDivider
|
|
11039
|
-
}, footer) : null))));
|
|
11022
|
+
}, footer) : null)))));
|
|
11040
11023
|
};
|
|
11041
11024
|
var BottomSheet$1 = Object.assign(BottomSheet, {
|
|
11042
11025
|
ScrollView: BottomSheetScrollView
|
package/package.json
CHANGED
|
@@ -39,13 +39,14 @@ const StyledFloatingBottomSheet = styled(Animated.View)(({ theme }) => ({
|
|
|
39
39
|
padding: theme.__hd__.bottomSheet.space.floatingInnerPadding,
|
|
40
40
|
}));
|
|
41
41
|
|
|
42
|
-
const StyledBottomSheet = styled(
|
|
42
|
+
const StyledBottomSheet = styled(AnimatedSafeAreaView)<
|
|
43
|
+
ComponentProps<typeof AnimatedSafeAreaView>
|
|
44
|
+
>(({ theme }) => ({
|
|
43
45
|
borderTopLeftRadius: theme.__hd__.bottomSheet.radii.default,
|
|
44
46
|
borderTopRightRadius: theme.__hd__.bottomSheet.radii.default,
|
|
45
47
|
backgroundColor: theme.__hd__.bottomSheet.colors.background,
|
|
46
48
|
width: '100%',
|
|
47
|
-
maxHeight: '
|
|
48
|
-
paddingBottom: theme.__hd__.bottomSheet.space.contentPaddingBottom,
|
|
49
|
+
maxHeight: '94%',
|
|
49
50
|
}));
|
|
50
51
|
|
|
51
52
|
const StyledBackdrop = styled(AnimatedPressable)<
|