@hero-design/rn 7.22.0 → 7.22.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/es/index.js +62 -62
- package/lib/index.js +61 -61
- package/package.json +4 -4
- package/src/components/BottomSheet/StyledBottomSheet.tsx +10 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +326 -292
- package/src/components/BottomSheet/index.tsx +46 -26
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +180 -177
- package/src/components/List/StyledBasicListItem.tsx +1 -0
- package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -13
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +162 -1
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +3 -1
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +4 -1
- package/src/components/RichTextEditor/RichTextEditor.tsx +1 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +8 -36
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +17 -5
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4712 -4669
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +16 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +4285 -4242
- package/src/components/TextInput/StyledTextInput.tsx +11 -16
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +3 -3
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +18 -36
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +55 -237
- package/src/components/TextInput/index.tsx +27 -27
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +4 -18
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +180 -177
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -2
- package/src/theme/components/list.ts +5 -2
- package/src/theme/global/colors/swag.ts +1 -0
- package/src/theme/global/colors/types.ts +1 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +8 -2
- package/types/components/BottomSheet/index.d.ts +6 -1
- package/types/components/TextInput/StyledTextInput.d.ts +3 -9
- package/types/components/TextInput/index.d.ts +4 -4
- package/types/theme/components/list.d.ts +1 -0
- package/types/theme/global/colors/types.d.ts +1 -0
- package/types/theme/global/index.d.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[34m@hero-design/rn:build[0m: cache hit, replaying output [
|
|
1
|
+
[34m@hero-design/rn:build[0m: cache hit, replaying output [2m593e087778fd2d6f[0m
|
|
2
2
|
[34m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
3
|
[34m@hero-design/rn:build: [0m$ rollup -c
|
|
4
4
|
[34m@hero-design/rn:build: [0m[36m
|
|
5
5
|
[34m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
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
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 [
|
|
8
|
+
[34m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m26.2s[22m[39m
|
|
9
9
|
[34m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly
|
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, TouchableHighlight, Modal, TextInput as TextInput$1, PanResponder, InteractionManager, SectionList, Keyboard, FlatList, LayoutAnimation } 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, TouchableHighlight, Modal, TextInput as TextInput$1, PanResponder, InteractionManager, SectionList, Keyboard, FlatList, LayoutAnimation } from 'react-native';
|
|
3
3
|
import React, { useContext, createContext, createElement, forwardRef, useEffect, useCallback, useRef, useMemo, useState, useLayoutEffect, useImperativeHandle } from 'react';
|
|
4
4
|
import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
@@ -1328,7 +1328,8 @@ var swagSystemPalette = {
|
|
|
1328
1328
|
__alpha__secondary1: palette$2.scarletGumLight30,
|
|
1329
1329
|
__alpha__secondary2: palette$2.scarletGumLight50,
|
|
1330
1330
|
__alpha__secondary3: palette$2.scarletGumLight80,
|
|
1331
|
-
__alpha__secondary4: palette$2.scarletGumLight90
|
|
1331
|
+
__alpha__secondary4: palette$2.scarletGumLight90,
|
|
1332
|
+
__alpha__lightHighlightedSurface: '#ECE8EF'
|
|
1332
1333
|
};
|
|
1333
1334
|
|
|
1334
1335
|
var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
|
|
@@ -2033,8 +2034,8 @@ var getImageTheme = function getImageTheme(theme) {
|
|
|
2033
2034
|
|
|
2034
2035
|
var getListTheme = function getListTheme(theme) {
|
|
2035
2036
|
var colors = {
|
|
2036
|
-
checkedListItemContainerBackground: theme.colors.
|
|
2037
|
-
highlightedListItemContainerBackground: theme.colors.
|
|
2037
|
+
checkedListItemContainerBackground: theme.colors.__alpha__lightHighlightedSurface,
|
|
2038
|
+
highlightedListItemContainerBackground: theme.colors.__alpha__lightHighlightedSurface,
|
|
2038
2039
|
listItemContainerBackground: theme.colors.platformBackground,
|
|
2039
2040
|
leadingStatus: {
|
|
2040
2041
|
danger: theme.colors.dangerMediumLight,
|
|
@@ -2052,6 +2053,7 @@ var getListTheme = function getListTheme(theme) {
|
|
|
2052
2053
|
};
|
|
2053
2054
|
var radii = {
|
|
2054
2055
|
card: theme.radii.medium,
|
|
2056
|
+
basicItem: theme.radii.base,
|
|
2055
2057
|
cardShadow: theme.radii.base,
|
|
2056
2058
|
leadingStatus: theme.radii.rounded
|
|
2057
2059
|
};
|
|
@@ -15234,6 +15236,12 @@ var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
|
|
|
15234
15236
|
var StyledWrapper$7 = index$8(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15235
15237
|
flexDirection: 'column-reverse'
|
|
15236
15238
|
}));
|
|
15239
|
+
var StyledKeyboardAvoidingView = index$8(KeyboardAvoidingView)(function () {
|
|
15240
|
+
return {
|
|
15241
|
+
flex: 1,
|
|
15242
|
+
flexDirection: 'column-reverse'
|
|
15243
|
+
};
|
|
15244
|
+
});
|
|
15237
15245
|
var StyledBottomSheet = index$8(AnimatedSafeAreaView)(function (_ref) {
|
|
15238
15246
|
var theme = _ref.theme;
|
|
15239
15247
|
return {
|
|
@@ -15936,18 +15944,18 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15936
15944
|
_ref$showDivider = _ref.showDivider,
|
|
15937
15945
|
showDivider = _ref$showDivider === void 0 ? true : _ref$showDivider,
|
|
15938
15946
|
style = _ref.style,
|
|
15939
|
-
testID = _ref.testID
|
|
15947
|
+
testID = _ref.testID,
|
|
15948
|
+
_ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
|
|
15949
|
+
keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding;
|
|
15940
15950
|
|
|
15941
|
-
var
|
|
15942
|
-
|
|
15943
|
-
height = _useState2[0],
|
|
15944
|
-
setHeight = _useState2[1]; // Internal state to control modal open/close timing with animation
|
|
15951
|
+
var _Dimensions$get = Dimensions.get('window'),
|
|
15952
|
+
height = _Dimensions$get.height; // Internal state to control modal open/close timing with animation
|
|
15945
15953
|
|
|
15946
15954
|
|
|
15947
|
-
var
|
|
15948
|
-
|
|
15949
|
-
visible =
|
|
15950
|
-
setVisibility =
|
|
15955
|
+
var _useState = useState(open),
|
|
15956
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15957
|
+
visible = _useState2[0],
|
|
15958
|
+
setVisibility = _useState2[1];
|
|
15951
15959
|
|
|
15952
15960
|
var animatedValue = useRef(new Animated.Value(open ? 0 : 1));
|
|
15953
15961
|
useEffect(function () {
|
|
@@ -16005,11 +16013,9 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
16005
16013
|
opacity: interpolateOpacity
|
|
16006
16014
|
},
|
|
16007
16015
|
onPress: onRequestClose
|
|
16008
|
-
}), /*#__PURE__*/React.createElement(
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
return setHeight(nativeEvent.layout.height);
|
|
16012
|
-
},
|
|
16016
|
+
}), /*#__PURE__*/React.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
16017
|
+
behavior: Platform.OS === 'ios' ? 'padding' : 'height'
|
|
16018
|
+
}, keyboardAvoidingViewProps), /*#__PURE__*/React.createElement(StyledBottomSheet, {
|
|
16013
16019
|
style: [style, {
|
|
16014
16020
|
transform: [{
|
|
16015
16021
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -16024,7 +16030,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
16024
16030
|
showCloseButton: showCloseButton
|
|
16025
16031
|
}) : null, children, footer ? /*#__PURE__*/React.createElement(Footer$1, {
|
|
16026
16032
|
showDivider: showDivider
|
|
16027
|
-
}, footer) : null)));
|
|
16033
|
+
}, footer) : null))));
|
|
16028
16034
|
};
|
|
16029
16035
|
|
|
16030
16036
|
var colors = {
|
|
@@ -19103,10 +19109,16 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
19103
19109
|
};
|
|
19104
19110
|
|
|
19105
19111
|
var StyledContainer$3 = index$8(View)(function (_ref) {
|
|
19106
|
-
var
|
|
19112
|
+
var _theme$__hd__$textInp;
|
|
19113
|
+
|
|
19114
|
+
var theme = _ref.theme,
|
|
19115
|
+
themeVariant = _ref.themeVariant;
|
|
19107
19116
|
return {
|
|
19108
19117
|
width: '100%',
|
|
19109
|
-
marginVertical: theme.__hd__.textInput.space.containerMarginVertical
|
|
19118
|
+
marginVertical: theme.__hd__.textInput.space.containerMarginVertical,
|
|
19119
|
+
borderWidth: themeVariant === 'focused' ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
|
|
19120
|
+
borderRadius: theme.__hd__.textInput.radii.container,
|
|
19121
|
+
borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
|
|
19110
19122
|
};
|
|
19111
19123
|
});
|
|
19112
19124
|
var StyledLabelContainer = index$8(View)(function (_ref2) {
|
|
@@ -19208,19 +19220,8 @@ var StyledTextInput = index$8(TextInput$1)(function (_ref11) {
|
|
|
19208
19220
|
marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
|
|
19209
19221
|
};
|
|
19210
19222
|
});
|
|
19211
|
-
var
|
|
19212
|
-
var
|
|
19213
|
-
|
|
19214
|
-
var theme = _ref12.theme,
|
|
19215
|
-
themeVariant = _ref12.themeVariant;
|
|
19216
|
-
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
19217
|
-
borderWidth: themeVariant === 'focused' ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
|
|
19218
|
-
borderRadius: theme.__hd__.textInput.radii.container,
|
|
19219
|
-
borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
|
|
19220
|
-
});
|
|
19221
|
-
});
|
|
19222
|
-
var StyledTextInputContainer = index$8(View)(function (_ref13) {
|
|
19223
|
-
var theme = _ref13.theme;
|
|
19223
|
+
var StyledTextInputContainer = index$8(View)(function (_ref12) {
|
|
19224
|
+
var theme = _ref12.theme;
|
|
19224
19225
|
return {
|
|
19225
19226
|
flexDirection: 'row',
|
|
19226
19227
|
alignItems: 'center',
|
|
@@ -19236,8 +19237,8 @@ var StyledTextInputAndLabelContainer = index$8(View)(function () {
|
|
|
19236
19237
|
flexShrink: 1
|
|
19237
19238
|
};
|
|
19238
19239
|
});
|
|
19239
|
-
var StyledErrorAndHelpTextContainer = index$8(View)(function (
|
|
19240
|
-
var theme =
|
|
19240
|
+
var StyledErrorAndHelpTextContainer = index$8(View)(function (_ref13) {
|
|
19241
|
+
var theme = _ref13.theme;
|
|
19241
19242
|
return {
|
|
19242
19243
|
paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft
|
|
19243
19244
|
};
|
|
@@ -19259,26 +19260,26 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
19259
19260
|
isEmptyValue = _ref.isEmptyValue;
|
|
19260
19261
|
|
|
19261
19262
|
if (disabled) {
|
|
19262
|
-
return
|
|
19263
|
+
return 'disabled';
|
|
19263
19264
|
}
|
|
19264
19265
|
|
|
19265
19266
|
if (error) {
|
|
19266
|
-
return
|
|
19267
|
+
return 'error';
|
|
19267
19268
|
}
|
|
19268
19269
|
|
|
19269
19270
|
if (!editable || loading) {
|
|
19270
|
-
return
|
|
19271
|
+
return 'readonly';
|
|
19271
19272
|
}
|
|
19272
19273
|
|
|
19273
19274
|
if (isFocused) {
|
|
19274
|
-
return
|
|
19275
|
+
return 'focused';
|
|
19275
19276
|
}
|
|
19276
19277
|
|
|
19277
19278
|
if (!isEmptyValue) {
|
|
19278
|
-
return
|
|
19279
|
+
return 'filled';
|
|
19279
19280
|
}
|
|
19280
19281
|
|
|
19281
|
-
return
|
|
19282
|
+
return 'default';
|
|
19282
19283
|
};
|
|
19283
19284
|
|
|
19284
19285
|
var TextInput = function TextInput(_ref2) {
|
|
@@ -19306,9 +19307,9 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19306
19307
|
renderInputValue = _ref2.renderInputValue,
|
|
19307
19308
|
nativeProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
19308
19309
|
|
|
19309
|
-
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 :
|
|
19310
|
+
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
19310
19311
|
var isEmptyValue = displayText.length === 0;
|
|
19311
|
-
var actualSuffix = loading ?
|
|
19312
|
+
var actualSuffix = loading ? 'loading' : suffix;
|
|
19312
19313
|
|
|
19313
19314
|
var _React$useState = React.useState(false),
|
|
19314
19315
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -19330,9 +19331,9 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19330
19331
|
style: StyleSheet$1.flatten([{
|
|
19331
19332
|
color: theme.__hd__.textInput.colors.text
|
|
19332
19333
|
}, textStyle]),
|
|
19333
|
-
testID:
|
|
19334
|
+
testID: 'text-input',
|
|
19334
19335
|
accessibilityState: {
|
|
19335
|
-
disabled: variant ===
|
|
19336
|
+
disabled: variant === 'disabled' || variant === 'readonly'
|
|
19336
19337
|
},
|
|
19337
19338
|
// @ts-ignore
|
|
19338
19339
|
accessibilityLabelledBy: accessibilityLabelledBy
|
|
@@ -19358,16 +19359,15 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19358
19359
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
19359
19360
|
},
|
|
19360
19361
|
defaultValue: defaultValue,
|
|
19361
|
-
placeholder: variant ===
|
|
19362
|
+
placeholder: variant === 'focused' ? nativeProps.placeholder : undefined
|
|
19362
19363
|
});
|
|
19363
19364
|
|
|
19364
19365
|
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
19365
|
-
pointerEvents: variant ===
|
|
19366
|
-
testID: testID
|
|
19367
|
-
|
|
19368
|
-
themeVariant: variant
|
|
19369
|
-
|
|
19370
|
-
}), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
|
|
19366
|
+
pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
|
|
19367
|
+
testID: testID,
|
|
19368
|
+
style: style,
|
|
19369
|
+
themeVariant: variant
|
|
19370
|
+
}, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
|
|
19371
19371
|
pointerEvents: "none"
|
|
19372
19372
|
}, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
|
|
19373
19373
|
themeVariant: variant,
|
|
@@ -19377,8 +19377,8 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19377
19377
|
testID: "input-label",
|
|
19378
19378
|
fontSize: "small",
|
|
19379
19379
|
themeVariant: variant
|
|
19380
|
-
}, label)), typeof prefix ===
|
|
19381
|
-
intent: variant ===
|
|
19380
|
+
}, label)), typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
19381
|
+
intent: variant === 'disabled' ? 'disabled-text' : 'text',
|
|
19382
19382
|
testID: "input-prefix",
|
|
19383
19383
|
icon: prefix,
|
|
19384
19384
|
size: "xsmall"
|
|
@@ -19391,11 +19391,11 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19391
19391
|
testID: "input-label",
|
|
19392
19392
|
fontSize: "medium",
|
|
19393
19393
|
themeVariant: variant
|
|
19394
|
-
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix ===
|
|
19395
|
-
intent: variant ===
|
|
19394
|
+
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
19395
|
+
intent: variant === 'disabled' ? 'disabled-text' : 'text',
|
|
19396
19396
|
testID: "input-suffix",
|
|
19397
19397
|
icon: actualSuffix,
|
|
19398
|
-
spin: actualSuffix ===
|
|
19398
|
+
spin: actualSuffix === 'loading',
|
|
19399
19399
|
size: "xsmall"
|
|
19400
19400
|
}) : suffix), /*#__PURE__*/React.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React.createElement(StyledErrorAndMaxLengthContainer, null, !!error && /*#__PURE__*/React.createElement(StyledErrorContainer$1, null, /*#__PURE__*/React.createElement(Icon, {
|
|
19401
19401
|
testID: "input-error-icon",
|
|
@@ -20383,7 +20383,8 @@ var StyledListItemContainer = index$8(TouchableHighlight)(function (_ref3) {
|
|
|
20383
20383
|
flexDirection: 'row',
|
|
20384
20384
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
20385
20385
|
padding: theme.__hd__.list.space.listItemContainerPadding,
|
|
20386
|
-
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
|
|
20386
|
+
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled,
|
|
20387
|
+
borderRadius: theme.__hd__.list.radii.basicItem
|
|
20387
20388
|
};
|
|
20388
20389
|
});
|
|
20389
20390
|
|
|
@@ -41221,10 +41222,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41221
41222
|
}
|
|
41222
41223
|
}, []);
|
|
41223
41224
|
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
41224
|
-
testID: testID
|
|
41225
|
-
}, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, /*#__PURE__*/React.createElement(StyledBorderBackDrop, {
|
|
41225
|
+
testID: testID,
|
|
41226
41226
|
themeVariant: variant
|
|
41227
|
-
}
|
|
41227
|
+
}, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
|
|
41228
41228
|
pointerEvents: "none"
|
|
41229
41229
|
}, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
|
|
41230
41230
|
themeVariant: variant,
|
package/lib/index.js
CHANGED
|
@@ -1357,7 +1357,8 @@ var swagSystemPalette = {
|
|
|
1357
1357
|
__alpha__secondary1: palette$2.scarletGumLight30,
|
|
1358
1358
|
__alpha__secondary2: palette$2.scarletGumLight50,
|
|
1359
1359
|
__alpha__secondary3: palette$2.scarletGumLight80,
|
|
1360
|
-
__alpha__secondary4: palette$2.scarletGumLight90
|
|
1360
|
+
__alpha__secondary4: palette$2.scarletGumLight90,
|
|
1361
|
+
__alpha__lightHighlightedSurface: '#ECE8EF'
|
|
1361
1362
|
};
|
|
1362
1363
|
|
|
1363
1364
|
var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
|
|
@@ -2062,8 +2063,8 @@ var getImageTheme = function getImageTheme(theme) {
|
|
|
2062
2063
|
|
|
2063
2064
|
var getListTheme = function getListTheme(theme) {
|
|
2064
2065
|
var colors = {
|
|
2065
|
-
checkedListItemContainerBackground: theme.colors.
|
|
2066
|
-
highlightedListItemContainerBackground: theme.colors.
|
|
2066
|
+
checkedListItemContainerBackground: theme.colors.__alpha__lightHighlightedSurface,
|
|
2067
|
+
highlightedListItemContainerBackground: theme.colors.__alpha__lightHighlightedSurface,
|
|
2067
2068
|
listItemContainerBackground: theme.colors.platformBackground,
|
|
2068
2069
|
leadingStatus: {
|
|
2069
2070
|
danger: theme.colors.dangerMediumLight,
|
|
@@ -2081,6 +2082,7 @@ var getListTheme = function getListTheme(theme) {
|
|
|
2081
2082
|
};
|
|
2082
2083
|
var radii = {
|
|
2083
2084
|
card: theme.radii.medium,
|
|
2085
|
+
basicItem: theme.radii.base,
|
|
2084
2086
|
cardShadow: theme.radii.base,
|
|
2085
2087
|
leadingStatus: theme.radii.rounded
|
|
2086
2088
|
};
|
|
@@ -15263,6 +15265,12 @@ var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNat
|
|
|
15263
15265
|
var StyledWrapper$7 = index$8(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15264
15266
|
flexDirection: 'column-reverse'
|
|
15265
15267
|
}));
|
|
15268
|
+
var StyledKeyboardAvoidingView = index$8(reactNative.KeyboardAvoidingView)(function () {
|
|
15269
|
+
return {
|
|
15270
|
+
flex: 1,
|
|
15271
|
+
flexDirection: 'column-reverse'
|
|
15272
|
+
};
|
|
15273
|
+
});
|
|
15266
15274
|
var StyledBottomSheet = index$8(AnimatedSafeAreaView)(function (_ref) {
|
|
15267
15275
|
var theme = _ref.theme;
|
|
15268
15276
|
return {
|
|
@@ -15965,18 +15973,18 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15965
15973
|
_ref$showDivider = _ref.showDivider,
|
|
15966
15974
|
showDivider = _ref$showDivider === void 0 ? true : _ref$showDivider,
|
|
15967
15975
|
style = _ref.style,
|
|
15968
|
-
testID = _ref.testID
|
|
15976
|
+
testID = _ref.testID,
|
|
15977
|
+
_ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
|
|
15978
|
+
keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding;
|
|
15969
15979
|
|
|
15970
|
-
var
|
|
15971
|
-
|
|
15972
|
-
height = _useState2[0],
|
|
15973
|
-
setHeight = _useState2[1]; // Internal state to control modal open/close timing with animation
|
|
15980
|
+
var _Dimensions$get = reactNative.Dimensions.get('window'),
|
|
15981
|
+
height = _Dimensions$get.height; // Internal state to control modal open/close timing with animation
|
|
15974
15982
|
|
|
15975
15983
|
|
|
15976
|
-
var
|
|
15977
|
-
|
|
15978
|
-
visible =
|
|
15979
|
-
setVisibility =
|
|
15984
|
+
var _useState = React.useState(open),
|
|
15985
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15986
|
+
visible = _useState2[0],
|
|
15987
|
+
setVisibility = _useState2[1];
|
|
15980
15988
|
|
|
15981
15989
|
var animatedValue = React.useRef(new reactNative.Animated.Value(open ? 0 : 1));
|
|
15982
15990
|
React.useEffect(function () {
|
|
@@ -16034,11 +16042,9 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
16034
16042
|
opacity: interpolateOpacity
|
|
16035
16043
|
},
|
|
16036
16044
|
onPress: onRequestClose
|
|
16037
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
return setHeight(nativeEvent.layout.height);
|
|
16041
|
-
},
|
|
16045
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
16046
|
+
behavior: reactNative.Platform.OS === 'ios' ? 'padding' : 'height'
|
|
16047
|
+
}, keyboardAvoidingViewProps), /*#__PURE__*/React__default["default"].createElement(StyledBottomSheet, {
|
|
16042
16048
|
style: [style, {
|
|
16043
16049
|
transform: [{
|
|
16044
16050
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -16053,7 +16059,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
16053
16059
|
showCloseButton: showCloseButton
|
|
16054
16060
|
}) : null, children, footer ? /*#__PURE__*/React__default["default"].createElement(Footer$1, {
|
|
16055
16061
|
showDivider: showDivider
|
|
16056
|
-
}, footer) : null)));
|
|
16062
|
+
}, footer) : null))));
|
|
16057
16063
|
};
|
|
16058
16064
|
|
|
16059
16065
|
var colors = {
|
|
@@ -19132,10 +19138,16 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
19132
19138
|
};
|
|
19133
19139
|
|
|
19134
19140
|
var StyledContainer$3 = index$8(reactNative.View)(function (_ref) {
|
|
19135
|
-
var
|
|
19141
|
+
var _theme$__hd__$textInp;
|
|
19142
|
+
|
|
19143
|
+
var theme = _ref.theme,
|
|
19144
|
+
themeVariant = _ref.themeVariant;
|
|
19136
19145
|
return {
|
|
19137
19146
|
width: '100%',
|
|
19138
|
-
marginVertical: theme.__hd__.textInput.space.containerMarginVertical
|
|
19147
|
+
marginVertical: theme.__hd__.textInput.space.containerMarginVertical,
|
|
19148
|
+
borderWidth: themeVariant === 'focused' ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
|
|
19149
|
+
borderRadius: theme.__hd__.textInput.radii.container,
|
|
19150
|
+
borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
|
|
19139
19151
|
};
|
|
19140
19152
|
});
|
|
19141
19153
|
var StyledLabelContainer = index$8(reactNative.View)(function (_ref2) {
|
|
@@ -19237,19 +19249,8 @@ var StyledTextInput = index$8(reactNative.TextInput)(function (_ref11) {
|
|
|
19237
19249
|
marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
|
|
19238
19250
|
};
|
|
19239
19251
|
});
|
|
19240
|
-
var
|
|
19241
|
-
var
|
|
19242
|
-
|
|
19243
|
-
var theme = _ref12.theme,
|
|
19244
|
-
themeVariant = _ref12.themeVariant;
|
|
19245
|
-
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
19246
|
-
borderWidth: themeVariant === 'focused' ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
|
|
19247
|
-
borderRadius: theme.__hd__.textInput.radii.container,
|
|
19248
|
-
borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
|
|
19249
|
-
});
|
|
19250
|
-
});
|
|
19251
|
-
var StyledTextInputContainer = index$8(reactNative.View)(function (_ref13) {
|
|
19252
|
-
var theme = _ref13.theme;
|
|
19252
|
+
var StyledTextInputContainer = index$8(reactNative.View)(function (_ref12) {
|
|
19253
|
+
var theme = _ref12.theme;
|
|
19253
19254
|
return {
|
|
19254
19255
|
flexDirection: 'row',
|
|
19255
19256
|
alignItems: 'center',
|
|
@@ -19265,8 +19266,8 @@ var StyledTextInputAndLabelContainer = index$8(reactNative.View)(function () {
|
|
|
19265
19266
|
flexShrink: 1
|
|
19266
19267
|
};
|
|
19267
19268
|
});
|
|
19268
|
-
var StyledErrorAndHelpTextContainer = index$8(reactNative.View)(function (
|
|
19269
|
-
var theme =
|
|
19269
|
+
var StyledErrorAndHelpTextContainer = index$8(reactNative.View)(function (_ref13) {
|
|
19270
|
+
var theme = _ref13.theme;
|
|
19270
19271
|
return {
|
|
19271
19272
|
paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft
|
|
19272
19273
|
};
|
|
@@ -19288,26 +19289,26 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
19288
19289
|
isEmptyValue = _ref.isEmptyValue;
|
|
19289
19290
|
|
|
19290
19291
|
if (disabled) {
|
|
19291
|
-
return
|
|
19292
|
+
return 'disabled';
|
|
19292
19293
|
}
|
|
19293
19294
|
|
|
19294
19295
|
if (error) {
|
|
19295
|
-
return
|
|
19296
|
+
return 'error';
|
|
19296
19297
|
}
|
|
19297
19298
|
|
|
19298
19299
|
if (!editable || loading) {
|
|
19299
|
-
return
|
|
19300
|
+
return 'readonly';
|
|
19300
19301
|
}
|
|
19301
19302
|
|
|
19302
19303
|
if (isFocused) {
|
|
19303
|
-
return
|
|
19304
|
+
return 'focused';
|
|
19304
19305
|
}
|
|
19305
19306
|
|
|
19306
19307
|
if (!isEmptyValue) {
|
|
19307
|
-
return
|
|
19308
|
+
return 'filled';
|
|
19308
19309
|
}
|
|
19309
19310
|
|
|
19310
|
-
return
|
|
19311
|
+
return 'default';
|
|
19311
19312
|
};
|
|
19312
19313
|
|
|
19313
19314
|
var TextInput = function TextInput(_ref2) {
|
|
@@ -19335,9 +19336,9 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19335
19336
|
renderInputValue = _ref2.renderInputValue,
|
|
19336
19337
|
nativeProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
19337
19338
|
|
|
19338
|
-
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 :
|
|
19339
|
+
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
19339
19340
|
var isEmptyValue = displayText.length === 0;
|
|
19340
|
-
var actualSuffix = loading ?
|
|
19341
|
+
var actualSuffix = loading ? 'loading' : suffix;
|
|
19341
19342
|
|
|
19342
19343
|
var _React$useState = React__default["default"].useState(false),
|
|
19343
19344
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -19359,9 +19360,9 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19359
19360
|
style: reactNative.StyleSheet.flatten([{
|
|
19360
19361
|
color: theme.__hd__.textInput.colors.text
|
|
19361
19362
|
}, textStyle]),
|
|
19362
|
-
testID:
|
|
19363
|
+
testID: 'text-input',
|
|
19363
19364
|
accessibilityState: {
|
|
19364
|
-
disabled: variant ===
|
|
19365
|
+
disabled: variant === 'disabled' || variant === 'readonly'
|
|
19365
19366
|
},
|
|
19366
19367
|
// @ts-ignore
|
|
19367
19368
|
accessibilityLabelledBy: accessibilityLabelledBy
|
|
@@ -19387,16 +19388,15 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19387
19388
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
19388
19389
|
},
|
|
19389
19390
|
defaultValue: defaultValue,
|
|
19390
|
-
placeholder: variant ===
|
|
19391
|
+
placeholder: variant === 'focused' ? nativeProps.placeholder : undefined
|
|
19391
19392
|
});
|
|
19392
19393
|
|
|
19393
19394
|
return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
|
|
19394
|
-
pointerEvents: variant ===
|
|
19395
|
-
testID: testID
|
|
19396
|
-
|
|
19397
|
-
themeVariant: variant
|
|
19398
|
-
|
|
19399
|
-
}), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
|
|
19395
|
+
pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
|
|
19396
|
+
testID: testID,
|
|
19397
|
+
style: style,
|
|
19398
|
+
themeVariant: variant
|
|
19399
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
|
|
19400
19400
|
pointerEvents: "none"
|
|
19401
19401
|
}, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabel, {
|
|
19402
19402
|
themeVariant: variant,
|
|
@@ -19406,8 +19406,8 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19406
19406
|
testID: "input-label",
|
|
19407
19407
|
fontSize: "small",
|
|
19408
19408
|
themeVariant: variant
|
|
19409
|
-
}, label)), typeof prefix ===
|
|
19410
|
-
intent: variant ===
|
|
19409
|
+
}, label)), typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
19410
|
+
intent: variant === 'disabled' ? 'disabled-text' : 'text',
|
|
19411
19411
|
testID: "input-prefix",
|
|
19412
19412
|
icon: prefix,
|
|
19413
19413
|
size: "xsmall"
|
|
@@ -19420,11 +19420,11 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19420
19420
|
testID: "input-label",
|
|
19421
19421
|
fontSize: "medium",
|
|
19422
19422
|
themeVariant: variant
|
|
19423
|
-
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default["default"].createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix ===
|
|
19424
|
-
intent: variant ===
|
|
19423
|
+
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default["default"].createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
19424
|
+
intent: variant === 'disabled' ? 'disabled-text' : 'text',
|
|
19425
19425
|
testID: "input-suffix",
|
|
19426
19426
|
icon: actualSuffix,
|
|
19427
|
-
spin: actualSuffix ===
|
|
19427
|
+
spin: actualSuffix === 'loading',
|
|
19428
19428
|
size: "xsmall"
|
|
19429
19429
|
}) : suffix), /*#__PURE__*/React__default["default"].createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledErrorAndMaxLengthContainer, null, !!error && /*#__PURE__*/React__default["default"].createElement(StyledErrorContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
19430
19430
|
testID: "input-error-icon",
|
|
@@ -20412,7 +20412,8 @@ var StyledListItemContainer = index$8(reactNative.TouchableHighlight)(function (
|
|
|
20412
20412
|
flexDirection: 'row',
|
|
20413
20413
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
20414
20414
|
padding: theme.__hd__.list.space.listItemContainerPadding,
|
|
20415
|
-
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
|
|
20415
|
+
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled,
|
|
20416
|
+
borderRadius: theme.__hd__.list.radii.basicItem
|
|
20416
20417
|
};
|
|
20417
20418
|
});
|
|
20418
20419
|
|
|
@@ -41250,10 +41251,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41250
41251
|
}
|
|
41251
41252
|
}, []);
|
|
41252
41253
|
return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
|
|
41253
|
-
testID: testID
|
|
41254
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledBorderBackDrop, {
|
|
41254
|
+
testID: testID,
|
|
41255
41255
|
themeVariant: variant
|
|
41256
|
-
}
|
|
41256
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
|
|
41257
41257
|
pointerEvents: "none"
|
|
41258
41258
|
}, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabel, {
|
|
41259
41259
|
themeVariant: variant,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "7.22.
|
|
3
|
+
"version": "7.22.2",
|
|
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.22.
|
|
23
|
+
"@hero-design/colors": "7.22.2",
|
|
24
24
|
"date-fns": "^2.16.1",
|
|
25
25
|
"events": "^3.2.0",
|
|
26
26
|
"hero-editor": "^1.9.9"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/react-native": "^0.67.7",
|
|
58
58
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
59
59
|
"babel-plugin-inline-import": "^3.0.0",
|
|
60
|
-
"eslint-config-hd": "7.22.
|
|
60
|
+
"eslint-config-hd": "7.22.2",
|
|
61
61
|
"jest": "^27.3.1",
|
|
62
62
|
"react": "17.0.2",
|
|
63
63
|
"react-native": "0.65.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"rollup-plugin-copy": "^3.4.0",
|
|
71
71
|
"rollup-plugin-flow": "^1.1.1",
|
|
72
72
|
"ts-jest": "^27.0.7",
|
|
73
|
-
"prettier-config-hd": "7.22.
|
|
73
|
+
"prettier-config-hd": "7.22.2"
|
|
74
74
|
},
|
|
75
75
|
"prettier": "prettier-config-hd"
|
|
76
76
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import {
|
|
3
3
|
Animated,
|
|
4
|
+
KeyboardAvoidingView,
|
|
5
|
+
KeyboardAvoidingViewProps,
|
|
4
6
|
Pressable,
|
|
5
7
|
SafeAreaView,
|
|
6
8
|
StyleSheet,
|
|
@@ -17,6 +19,13 @@ const StyledWrapper = styled(View)<ViewProps>({
|
|
|
17
19
|
flexDirection: 'column-reverse',
|
|
18
20
|
});
|
|
19
21
|
|
|
22
|
+
const StyledKeyboardAvoidingView = styled(
|
|
23
|
+
KeyboardAvoidingView
|
|
24
|
+
)<KeyboardAvoidingViewProps>(() => ({
|
|
25
|
+
flex: 1,
|
|
26
|
+
flexDirection: 'column-reverse',
|
|
27
|
+
}));
|
|
28
|
+
|
|
20
29
|
const StyledBottomSheet = styled(AnimatedSafeAreaView)<
|
|
21
30
|
ComponentProps<typeof AnimatedSafeAreaView>
|
|
22
31
|
>(({ theme }) => ({
|
|
@@ -77,4 +86,5 @@ export {
|
|
|
77
86
|
StyledIconWrapper,
|
|
78
87
|
StyledBottomSheet,
|
|
79
88
|
StyledBackdrop,
|
|
89
|
+
StyledKeyboardAvoidingView,
|
|
80
90
|
};
|