@hero-design/rn 8.25.1 → 8.25.3
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 +9 -9
- package/es/index.js +22 -25
- package/lib/index.js +21 -24
- package/package.json +5 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +152 -180
- package/src/components/FAB/FAB.tsx +15 -20
- package/src/components/FAB/StyledFAB.tsx +5 -10
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +4 -4
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +28 -13
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +170 -212
- package/src/components/PinInput/index.tsx +119 -88
- package/types/components/FAB/StyledFAB.d.ts +1 -5
- package/types/components/PinInput/index.d.ts +12 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
1
|
+
[35m@hero-design/rn:build[0m: cache hit, replaying output [2mac666ba5a8b62f90[0m
|
|
2
|
+
[35m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
|
+
[35m@hero-design/rn:build: [0m$ rollup -c
|
|
4
|
+
[35m@hero-design/rn:build: [0m[36m
|
|
5
|
+
[35m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
|
+
[35m@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
|
+
[35m@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
|
+
[35m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m24.3s[22m[39m
|
|
9
|
+
[35m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as reactNative from 'react-native';
|
|
2
2
|
import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, Modal, FlatList, useWindowDimensions, TextInput as TextInput$1, PanResponder, InteractionManager, Keyboard, SectionList, RefreshControl as RefreshControl$1 } from 'react-native';
|
|
3
|
-
import React, { useContext, createContext, createElement, useMemo, forwardRef, useEffect, useCallback, useRef, useState, isValidElement,
|
|
3
|
+
import React, { useContext, createContext, createElement, useMemo, forwardRef, useEffect, useCallback, useRef, useState, isValidElement, useImperativeHandle, useLayoutEffect } from 'react';
|
|
4
4
|
import { createIconSet } from 'react-native-vector-icons';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
6
|
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
@@ -12872,12 +12872,15 @@ var StyledFAB$1 = index$a(TouchableHighlight)(function (_ref) {
|
|
|
12872
12872
|
borderRadius: theme.radii.rounded,
|
|
12873
12873
|
alignItems: 'center',
|
|
12874
12874
|
justifyContent: 'center',
|
|
12875
|
-
overflow: 'hidden',
|
|
12876
12875
|
alignSelf: 'flex-start',
|
|
12877
12876
|
paddingHorizontal: theme.__hd__.fab.space.containerPaddingHorizontal,
|
|
12878
12877
|
paddingVertical: theme.__hd__.fab.space.containerPaddingVertical,
|
|
12879
12878
|
flexDirection: 'row',
|
|
12880
|
-
elevation: theme.__hd__.fab.shadows.elevation
|
|
12879
|
+
elevation: theme.__hd__.fab.shadows.elevation,
|
|
12880
|
+
shadowColor: theme.__hd__.fab.colors.shadow,
|
|
12881
|
+
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
12882
|
+
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
12883
|
+
shadowOpacity: theme.__hd__.fab.shadows.opacity
|
|
12881
12884
|
};
|
|
12882
12885
|
});
|
|
12883
12886
|
var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
@@ -12901,15 +12904,6 @@ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
|
|
|
12901
12904
|
marginHorizontal: theme.__hd__.fab.space.titleMarginHorizontal
|
|
12902
12905
|
};
|
|
12903
12906
|
});
|
|
12904
|
-
var StyledFABContainer = index$a(Box)(function (_ref4) {
|
|
12905
|
-
var theme = _ref4.theme;
|
|
12906
|
-
return {
|
|
12907
|
-
shadowColor: theme.__hd__.fab.colors.shadow,
|
|
12908
|
-
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
12909
|
-
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
12910
|
-
shadowOpacity: theme.__hd__.fab.shadows.opacity
|
|
12911
|
-
};
|
|
12912
|
-
});
|
|
12913
12907
|
|
|
12914
12908
|
var _excluded$b = ["active"];
|
|
12915
12909
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
@@ -12975,12 +12969,11 @@ var FAB = function FAB(_ref3) {
|
|
|
12975
12969
|
style = _ref3.style;
|
|
12976
12970
|
var isIconOnly = !title;
|
|
12977
12971
|
var theme = useTheme();
|
|
12978
|
-
return /*#__PURE__*/React.createElement(
|
|
12972
|
+
return /*#__PURE__*/React.createElement(StyledFAB$1, {
|
|
12973
|
+
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
12974
|
+
onPress: onPress,
|
|
12979
12975
|
style: style,
|
|
12980
12976
|
testID: testID
|
|
12981
|
-
}, /*#__PURE__*/React.createElement(StyledFAB$1, {
|
|
12982
|
-
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
12983
|
-
onPress: onPress
|
|
12984
12977
|
}, isIconOnly ? /*#__PURE__*/React.createElement(IconOnlyContent, {
|
|
12985
12978
|
animated: animated,
|
|
12986
12979
|
active: active,
|
|
@@ -12988,7 +12981,7 @@ var FAB = function FAB(_ref3) {
|
|
|
12988
12981
|
}) : /*#__PURE__*/React.createElement(IconWithTextContent, {
|
|
12989
12982
|
icon: icon,
|
|
12990
12983
|
title: title
|
|
12991
|
-
}))
|
|
12984
|
+
}));
|
|
12992
12985
|
};
|
|
12993
12986
|
|
|
12994
12987
|
var StyledActionItem = index$a(TouchableHighlight)(function (_ref) {
|
|
@@ -13486,7 +13479,7 @@ function getState(_ref) {
|
|
|
13486
13479
|
}
|
|
13487
13480
|
return 'default';
|
|
13488
13481
|
}
|
|
13489
|
-
|
|
13482
|
+
var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
13490
13483
|
var _ref2$value = _ref2.value,
|
|
13491
13484
|
value = _ref2$value === void 0 ? '' : _ref2$value,
|
|
13492
13485
|
onChangeText = _ref2.onChangeText,
|
|
@@ -13525,19 +13518,23 @@ function PinInput(_ref2) {
|
|
|
13525
13518
|
}, []);
|
|
13526
13519
|
var changeText = useCallback(function (text) {
|
|
13527
13520
|
var pin = (text.match(/[0-9]/g) || []).join('');
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
if (pin.length === length && onFulfill) {
|
|
13532
|
-
onFulfill(pin);
|
|
13521
|
+
onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(pin);
|
|
13522
|
+
if (pin.length === length) {
|
|
13523
|
+
onFulfill === null || onFulfill === void 0 ? void 0 : onFulfill(pin);
|
|
13533
13524
|
}
|
|
13534
|
-
}, []);
|
|
13525
|
+
}, [length, onChangeText, onFulfill]);
|
|
13535
13526
|
useEffect(function () {
|
|
13536
13527
|
// Must run after animations for keyboard to automatically open
|
|
13537
13528
|
if (autoFocus) {
|
|
13538
13529
|
InteractionManager.runAfterInteractions(focus);
|
|
13539
13530
|
}
|
|
13540
13531
|
}, [inputRef]);
|
|
13532
|
+
useImperativeHandle(ref, function () {
|
|
13533
|
+
return {
|
|
13534
|
+
focus: focus,
|
|
13535
|
+
blur: blur
|
|
13536
|
+
};
|
|
13537
|
+
});
|
|
13541
13538
|
return /*#__PURE__*/React.createElement(StyledWrapper$4, {
|
|
13542
13539
|
style: style,
|
|
13543
13540
|
testID: testID
|
|
@@ -13572,7 +13569,7 @@ function PinInput(_ref2) {
|
|
|
13572
13569
|
pointerEvents: "box-only",
|
|
13573
13570
|
testID: "pin-hidden-input"
|
|
13574
13571
|
}));
|
|
13575
|
-
}
|
|
13572
|
+
});
|
|
13576
13573
|
|
|
13577
13574
|
var THEME_INTENT_MAP = {
|
|
13578
13575
|
primary: 'primary',
|
package/lib/index.js
CHANGED
|
@@ -12902,12 +12902,15 @@ var StyledFAB$1 = index$a(reactNative.TouchableHighlight)(function (_ref) {
|
|
|
12902
12902
|
borderRadius: theme.radii.rounded,
|
|
12903
12903
|
alignItems: 'center',
|
|
12904
12904
|
justifyContent: 'center',
|
|
12905
|
-
overflow: 'hidden',
|
|
12906
12905
|
alignSelf: 'flex-start',
|
|
12907
12906
|
paddingHorizontal: theme.__hd__.fab.space.containerPaddingHorizontal,
|
|
12908
12907
|
paddingVertical: theme.__hd__.fab.space.containerPaddingVertical,
|
|
12909
12908
|
flexDirection: 'row',
|
|
12910
|
-
elevation: theme.__hd__.fab.shadows.elevation
|
|
12909
|
+
elevation: theme.__hd__.fab.shadows.elevation,
|
|
12910
|
+
shadowColor: theme.__hd__.fab.colors.shadow,
|
|
12911
|
+
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
12912
|
+
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
12913
|
+
shadowOpacity: theme.__hd__.fab.shadows.opacity
|
|
12911
12914
|
};
|
|
12912
12915
|
});
|
|
12913
12916
|
var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
@@ -12931,15 +12934,6 @@ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
|
|
|
12931
12934
|
marginHorizontal: theme.__hd__.fab.space.titleMarginHorizontal
|
|
12932
12935
|
};
|
|
12933
12936
|
});
|
|
12934
|
-
var StyledFABContainer = index$a(Box)(function (_ref4) {
|
|
12935
|
-
var theme = _ref4.theme;
|
|
12936
|
-
return {
|
|
12937
|
-
shadowColor: theme.__hd__.fab.colors.shadow,
|
|
12938
|
-
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
12939
|
-
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
12940
|
-
shadowOpacity: theme.__hd__.fab.shadows.opacity
|
|
12941
|
-
};
|
|
12942
|
-
});
|
|
12943
12937
|
|
|
12944
12938
|
var _excluded$b = ["active"];
|
|
12945
12939
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
@@ -13005,12 +12999,11 @@ var FAB = function FAB(_ref3) {
|
|
|
13005
12999
|
style = _ref3.style;
|
|
13006
13000
|
var isIconOnly = !title;
|
|
13007
13001
|
var theme = useTheme();
|
|
13008
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13002
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledFAB$1, {
|
|
13003
|
+
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
13004
|
+
onPress: onPress,
|
|
13009
13005
|
style: style,
|
|
13010
13006
|
testID: testID
|
|
13011
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledFAB$1, {
|
|
13012
|
-
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
13013
|
-
onPress: onPress
|
|
13014
13007
|
}, isIconOnly ? /*#__PURE__*/React__default["default"].createElement(IconOnlyContent, {
|
|
13015
13008
|
animated: animated,
|
|
13016
13009
|
active: active,
|
|
@@ -13018,7 +13011,7 @@ var FAB = function FAB(_ref3) {
|
|
|
13018
13011
|
}) : /*#__PURE__*/React__default["default"].createElement(IconWithTextContent, {
|
|
13019
13012
|
icon: icon,
|
|
13020
13013
|
title: title
|
|
13021
|
-
}))
|
|
13014
|
+
}));
|
|
13022
13015
|
};
|
|
13023
13016
|
|
|
13024
13017
|
var StyledActionItem = index$a(reactNative.TouchableHighlight)(function (_ref) {
|
|
@@ -13516,7 +13509,7 @@ function getState(_ref) {
|
|
|
13516
13509
|
}
|
|
13517
13510
|
return 'default';
|
|
13518
13511
|
}
|
|
13519
|
-
|
|
13512
|
+
var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
13520
13513
|
var _ref2$value = _ref2.value,
|
|
13521
13514
|
value = _ref2$value === void 0 ? '' : _ref2$value,
|
|
13522
13515
|
onChangeText = _ref2.onChangeText,
|
|
@@ -13555,19 +13548,23 @@ function PinInput(_ref2) {
|
|
|
13555
13548
|
}, []);
|
|
13556
13549
|
var changeText = React.useCallback(function (text) {
|
|
13557
13550
|
var pin = (text.match(/[0-9]/g) || []).join('');
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
if (pin.length === length && onFulfill) {
|
|
13562
|
-
onFulfill(pin);
|
|
13551
|
+
onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(pin);
|
|
13552
|
+
if (pin.length === length) {
|
|
13553
|
+
onFulfill === null || onFulfill === void 0 ? void 0 : onFulfill(pin);
|
|
13563
13554
|
}
|
|
13564
|
-
}, []);
|
|
13555
|
+
}, [length, onChangeText, onFulfill]);
|
|
13565
13556
|
React.useEffect(function () {
|
|
13566
13557
|
// Must run after animations for keyboard to automatically open
|
|
13567
13558
|
if (autoFocus) {
|
|
13568
13559
|
reactNative.InteractionManager.runAfterInteractions(focus);
|
|
13569
13560
|
}
|
|
13570
13561
|
}, [inputRef]);
|
|
13562
|
+
React.useImperativeHandle(ref, function () {
|
|
13563
|
+
return {
|
|
13564
|
+
focus: focus,
|
|
13565
|
+
blur: blur
|
|
13566
|
+
};
|
|
13567
|
+
});
|
|
13571
13568
|
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
|
|
13572
13569
|
style: style,
|
|
13573
13570
|
testID: testID
|
|
@@ -13602,7 +13599,7 @@ function PinInput(_ref2) {
|
|
|
13602
13599
|
pointerEvents: "box-only",
|
|
13603
13600
|
testID: "pin-hidden-input"
|
|
13604
13601
|
}));
|
|
13605
|
-
}
|
|
13602
|
+
});
|
|
13606
13603
|
|
|
13607
13604
|
var THEME_INTENT_MAP = {
|
|
13608
13605
|
primary: 'primary',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.25.
|
|
3
|
+
"version": "8.25.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.25.
|
|
24
|
+
"@hero-design/colors": "8.25.3",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@babel/preset-typescript": "^7.17.12",
|
|
46
46
|
"@babel/runtime": "^7.18.9",
|
|
47
47
|
"@emotion/jest": "^11.9.3",
|
|
48
|
-
"@hero-design/eslint-plugin": "8.25.
|
|
48
|
+
"@hero-design/eslint-plugin": "8.25.3",
|
|
49
49
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
50
50
|
"@react-native-community/slider": "4.1.12",
|
|
51
51
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@types/react-native": "^0.67.7",
|
|
62
62
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
63
63
|
"babel-plugin-inline-import": "^3.0.0",
|
|
64
|
-
"eslint-config-hd": "8.25.
|
|
64
|
+
"eslint-config-hd": "8.25.3",
|
|
65
65
|
"jest": "^27.3.1",
|
|
66
|
-
"prettier-config-hd": "8.25.
|
|
66
|
+
"prettier-config-hd": "8.25.3",
|
|
67
67
|
"react": "18.0.0",
|
|
68
68
|
"react-native": "0.69.7",
|
|
69
69
|
"react-native-gesture-handler": "~2.1.0",
|
|
@@ -494,116 +494,102 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
494
494
|
</View>
|
|
495
495
|
</View>
|
|
496
496
|
<View
|
|
497
|
+
accessible={true}
|
|
498
|
+
focusable={false}
|
|
499
|
+
onClick={[Function]}
|
|
500
|
+
onResponderGrant={[Function]}
|
|
501
|
+
onResponderMove={[Function]}
|
|
502
|
+
onResponderRelease={[Function]}
|
|
503
|
+
onResponderTerminate={[Function]}
|
|
504
|
+
onResponderTerminationRequest={[Function]}
|
|
505
|
+
onStartShouldSetResponder={[Function]}
|
|
497
506
|
style={
|
|
498
507
|
Array [
|
|
499
|
-
Object {
|
|
508
|
+
Object {
|
|
509
|
+
"alignItems": "center",
|
|
510
|
+
"alignSelf": "flex-start",
|
|
511
|
+
"backgroundColor": "#401960",
|
|
512
|
+
"borderRadius": 999,
|
|
513
|
+
"elevation": 2,
|
|
514
|
+
"flexDirection": "row",
|
|
515
|
+
"justifyContent": "center",
|
|
516
|
+
"paddingHorizontal": 16,
|
|
517
|
+
"paddingVertical": 16,
|
|
518
|
+
"shadowColor": "#001f23",
|
|
519
|
+
"shadowOffset": Object {
|
|
520
|
+
"height": 2,
|
|
521
|
+
"width": 0,
|
|
522
|
+
},
|
|
523
|
+
"shadowOpacity": 0.12,
|
|
524
|
+
"shadowRadius": 8,
|
|
525
|
+
},
|
|
500
526
|
Array [
|
|
501
527
|
Object {
|
|
502
|
-
"
|
|
503
|
-
"
|
|
504
|
-
|
|
505
|
-
"width": 0,
|
|
506
|
-
},
|
|
507
|
-
"shadowOpacity": 0.12,
|
|
508
|
-
"shadowRadius": 8,
|
|
528
|
+
"alignSelf": "flex-end",
|
|
529
|
+
"marginRight": 24,
|
|
530
|
+
"marginTop": 24,
|
|
509
531
|
},
|
|
510
|
-
|
|
511
|
-
Object {
|
|
512
|
-
"alignSelf": "flex-end",
|
|
513
|
-
"marginRight": 24,
|
|
514
|
-
"marginTop": 24,
|
|
515
|
-
},
|
|
516
|
-
undefined,
|
|
517
|
-
],
|
|
532
|
+
undefined,
|
|
518
533
|
],
|
|
519
534
|
]
|
|
520
535
|
}
|
|
521
536
|
testID="fab"
|
|
522
537
|
>
|
|
523
|
-
<
|
|
524
|
-
|
|
525
|
-
focusable={false}
|
|
526
|
-
onClick={[Function]}
|
|
527
|
-
onResponderGrant={[Function]}
|
|
528
|
-
onResponderMove={[Function]}
|
|
529
|
-
onResponderRelease={[Function]}
|
|
530
|
-
onResponderTerminate={[Function]}
|
|
531
|
-
onResponderTerminationRequest={[Function]}
|
|
532
|
-
onStartShouldSetResponder={[Function]}
|
|
538
|
+
<HeroIcon
|
|
539
|
+
name="add"
|
|
533
540
|
style={
|
|
534
541
|
Array [
|
|
535
542
|
Object {
|
|
536
|
-
"
|
|
537
|
-
"
|
|
538
|
-
"backgroundColor": "#401960",
|
|
539
|
-
"borderRadius": 999,
|
|
540
|
-
"elevation": 2,
|
|
541
|
-
"flexDirection": "row",
|
|
542
|
-
"justifyContent": "center",
|
|
543
|
-
"overflow": "hidden",
|
|
544
|
-
"paddingHorizontal": 16,
|
|
545
|
-
"paddingVertical": 16,
|
|
543
|
+
"color": "#001f23",
|
|
544
|
+
"fontSize": 16,
|
|
546
545
|
},
|
|
547
|
-
undefined,
|
|
548
|
-
]
|
|
549
|
-
}
|
|
550
|
-
>
|
|
551
|
-
<HeroIcon
|
|
552
|
-
name="add"
|
|
553
|
-
style={
|
|
554
546
|
Array [
|
|
555
547
|
Object {
|
|
556
|
-
"color": "#
|
|
557
|
-
"
|
|
548
|
+
"color": "#ffffff",
|
|
549
|
+
"lineHeight": 24,
|
|
550
|
+
"textAlign": "center",
|
|
551
|
+
"textAlignVertical": "center",
|
|
558
552
|
},
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
553
|
+
undefined,
|
|
554
|
+
],
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
testID="styled-fab-icon"
|
|
558
|
+
themeIntent="text"
|
|
559
|
+
themeSize="xsmall"
|
|
560
|
+
/>
|
|
561
|
+
<Text
|
|
562
|
+
allowFontScaling={false}
|
|
563
|
+
style={
|
|
564
|
+
Array [
|
|
565
|
+
Object {
|
|
566
|
+
"color": "#001f23",
|
|
567
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
568
|
+
"fontSize": 14,
|
|
569
|
+
"letterSpacing": 0.42,
|
|
570
|
+
"lineHeight": 22,
|
|
571
|
+
},
|
|
577
572
|
Array [
|
|
578
573
|
Object {
|
|
579
|
-
"color": "#
|
|
580
|
-
"fontFamily": "BeVietnamPro-
|
|
581
|
-
"fontSize":
|
|
582
|
-
"
|
|
583
|
-
"
|
|
574
|
+
"color": "#ffffff",
|
|
575
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
576
|
+
"fontSize": 16,
|
|
577
|
+
"lineHeight": 24,
|
|
578
|
+
"marginHorizontal": 8,
|
|
579
|
+
"textAlign": "center",
|
|
580
|
+
"textAlignVertical": "center",
|
|
584
581
|
},
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
],
|
|
597
|
-
]
|
|
598
|
-
}
|
|
599
|
-
themeFontSize="medium"
|
|
600
|
-
themeFontWeight="regular"
|
|
601
|
-
themeIntent="body"
|
|
602
|
-
themeTypeface="neutral"
|
|
603
|
-
>
|
|
604
|
-
Shout out
|
|
605
|
-
</Text>
|
|
606
|
-
</View>
|
|
582
|
+
undefined,
|
|
583
|
+
],
|
|
584
|
+
]
|
|
585
|
+
}
|
|
586
|
+
themeFontSize="medium"
|
|
587
|
+
themeFontWeight="regular"
|
|
588
|
+
themeIntent="body"
|
|
589
|
+
themeTypeface="neutral"
|
|
590
|
+
>
|
|
591
|
+
Shout out
|
|
592
|
+
</Text>
|
|
607
593
|
</View>
|
|
608
594
|
</View>
|
|
609
595
|
`;
|
|
@@ -1102,116 +1088,102 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1102
1088
|
</View>
|
|
1103
1089
|
</View>
|
|
1104
1090
|
<View
|
|
1091
|
+
accessible={true}
|
|
1092
|
+
focusable={false}
|
|
1093
|
+
onClick={[Function]}
|
|
1094
|
+
onResponderGrant={[Function]}
|
|
1095
|
+
onResponderMove={[Function]}
|
|
1096
|
+
onResponderRelease={[Function]}
|
|
1097
|
+
onResponderTerminate={[Function]}
|
|
1098
|
+
onResponderTerminationRequest={[Function]}
|
|
1099
|
+
onStartShouldSetResponder={[Function]}
|
|
1105
1100
|
style={
|
|
1106
1101
|
Array [
|
|
1107
|
-
Object {
|
|
1102
|
+
Object {
|
|
1103
|
+
"alignItems": "center",
|
|
1104
|
+
"alignSelf": "flex-start",
|
|
1105
|
+
"backgroundColor": "#401960",
|
|
1106
|
+
"borderRadius": 999,
|
|
1107
|
+
"elevation": 2,
|
|
1108
|
+
"flexDirection": "row",
|
|
1109
|
+
"justifyContent": "center",
|
|
1110
|
+
"paddingHorizontal": 16,
|
|
1111
|
+
"paddingVertical": 16,
|
|
1112
|
+
"shadowColor": "#001f23",
|
|
1113
|
+
"shadowOffset": Object {
|
|
1114
|
+
"height": 2,
|
|
1115
|
+
"width": 0,
|
|
1116
|
+
},
|
|
1117
|
+
"shadowOpacity": 0.12,
|
|
1118
|
+
"shadowRadius": 8,
|
|
1119
|
+
},
|
|
1108
1120
|
Array [
|
|
1109
1121
|
Object {
|
|
1110
|
-
"
|
|
1111
|
-
"
|
|
1112
|
-
|
|
1113
|
-
"width": 0,
|
|
1114
|
-
},
|
|
1115
|
-
"shadowOpacity": 0.12,
|
|
1116
|
-
"shadowRadius": 8,
|
|
1122
|
+
"alignSelf": "flex-end",
|
|
1123
|
+
"marginRight": 24,
|
|
1124
|
+
"marginTop": 24,
|
|
1117
1125
|
},
|
|
1118
|
-
|
|
1119
|
-
Object {
|
|
1120
|
-
"alignSelf": "flex-end",
|
|
1121
|
-
"marginRight": 24,
|
|
1122
|
-
"marginTop": 24,
|
|
1123
|
-
},
|
|
1124
|
-
undefined,
|
|
1125
|
-
],
|
|
1126
|
+
undefined,
|
|
1126
1127
|
],
|
|
1127
1128
|
]
|
|
1128
1129
|
}
|
|
1129
1130
|
testID="fab"
|
|
1130
1131
|
>
|
|
1131
|
-
<
|
|
1132
|
-
|
|
1133
|
-
focusable={false}
|
|
1134
|
-
onClick={[Function]}
|
|
1135
|
-
onResponderGrant={[Function]}
|
|
1136
|
-
onResponderMove={[Function]}
|
|
1137
|
-
onResponderRelease={[Function]}
|
|
1138
|
-
onResponderTerminate={[Function]}
|
|
1139
|
-
onResponderTerminationRequest={[Function]}
|
|
1140
|
-
onStartShouldSetResponder={[Function]}
|
|
1132
|
+
<HeroIcon
|
|
1133
|
+
name="add"
|
|
1141
1134
|
style={
|
|
1142
1135
|
Array [
|
|
1143
1136
|
Object {
|
|
1144
|
-
"
|
|
1145
|
-
"
|
|
1146
|
-
"backgroundColor": "#401960",
|
|
1147
|
-
"borderRadius": 999,
|
|
1148
|
-
"elevation": 2,
|
|
1149
|
-
"flexDirection": "row",
|
|
1150
|
-
"justifyContent": "center",
|
|
1151
|
-
"overflow": "hidden",
|
|
1152
|
-
"paddingHorizontal": 16,
|
|
1153
|
-
"paddingVertical": 16,
|
|
1137
|
+
"color": "#001f23",
|
|
1138
|
+
"fontSize": 16,
|
|
1154
1139
|
},
|
|
1155
|
-
undefined,
|
|
1156
|
-
]
|
|
1157
|
-
}
|
|
1158
|
-
>
|
|
1159
|
-
<HeroIcon
|
|
1160
|
-
name="add"
|
|
1161
|
-
style={
|
|
1162
1140
|
Array [
|
|
1163
1141
|
Object {
|
|
1164
|
-
"color": "#
|
|
1165
|
-
"
|
|
1142
|
+
"color": "#ffffff",
|
|
1143
|
+
"lineHeight": 24,
|
|
1144
|
+
"textAlign": "center",
|
|
1145
|
+
"textAlignVertical": "center",
|
|
1166
1146
|
},
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1147
|
+
undefined,
|
|
1148
|
+
],
|
|
1149
|
+
]
|
|
1150
|
+
}
|
|
1151
|
+
testID="styled-fab-icon"
|
|
1152
|
+
themeIntent="text"
|
|
1153
|
+
themeSize="xsmall"
|
|
1154
|
+
/>
|
|
1155
|
+
<Text
|
|
1156
|
+
allowFontScaling={false}
|
|
1157
|
+
style={
|
|
1158
|
+
Array [
|
|
1159
|
+
Object {
|
|
1160
|
+
"color": "#001f23",
|
|
1161
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
1162
|
+
"fontSize": 14,
|
|
1163
|
+
"letterSpacing": 0.42,
|
|
1164
|
+
"lineHeight": 22,
|
|
1165
|
+
},
|
|
1185
1166
|
Array [
|
|
1186
1167
|
Object {
|
|
1187
|
-
"color": "#
|
|
1188
|
-
"fontFamily": "BeVietnamPro-
|
|
1189
|
-
"fontSize":
|
|
1190
|
-
"
|
|
1191
|
-
"
|
|
1168
|
+
"color": "#ffffff",
|
|
1169
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
1170
|
+
"fontSize": 16,
|
|
1171
|
+
"lineHeight": 24,
|
|
1172
|
+
"marginHorizontal": 8,
|
|
1173
|
+
"textAlign": "center",
|
|
1174
|
+
"textAlignVertical": "center",
|
|
1192
1175
|
},
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
],
|
|
1205
|
-
]
|
|
1206
|
-
}
|
|
1207
|
-
themeFontSize="medium"
|
|
1208
|
-
themeFontWeight="regular"
|
|
1209
|
-
themeIntent="body"
|
|
1210
|
-
themeTypeface="neutral"
|
|
1211
|
-
>
|
|
1212
|
-
Shout out
|
|
1213
|
-
</Text>
|
|
1214
|
-
</View>
|
|
1176
|
+
undefined,
|
|
1177
|
+
],
|
|
1178
|
+
]
|
|
1179
|
+
}
|
|
1180
|
+
themeFontSize="medium"
|
|
1181
|
+
themeFontWeight="regular"
|
|
1182
|
+
themeIntent="body"
|
|
1183
|
+
themeTypeface="neutral"
|
|
1184
|
+
>
|
|
1185
|
+
Shout out
|
|
1186
|
+
</Text>
|
|
1215
1187
|
</View>
|
|
1216
1188
|
</View>
|
|
1217
1189
|
`;
|