@hero-design/rn 8.39.0 → 8.39.1
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 +1 -1
- package/es/index.js +4 -2
- package/lib/index.js +4 -2
- package/package.json +13 -12
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +64 -64
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +4 -4
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +104 -104
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +107 -107
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +17 -17
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +10 -10
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +76 -76
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +8 -8
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +24 -24
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +42 -42
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +10 -10
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +46 -46
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +30 -30
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +42 -42
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +20 -20
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +210 -210
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +214 -214
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +4 -4
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +105 -105
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +35 -35
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +14 -14
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +24 -24
- package/src/components/Carousel/CardCarousel.tsx +1 -1
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +88 -88
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +15 -15
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +2 -2
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +342 -342
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +12 -12
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +56 -56
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +3 -3
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +2 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +39 -39
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +90 -90
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +30 -30
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +30 -30
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +71 -71
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +24 -24
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +11 -11
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +23 -23
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +69 -69
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +157 -157
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +16 -16
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +14 -14
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +46 -46
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +11 -11
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +34 -34
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +98 -98
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +16 -16
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +28 -28
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +30 -30
- package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +6 -6
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +138 -138
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +136 -136
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +24 -24
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +39 -39
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +78 -78
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +27 -27
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +4 -4
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +72 -72
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +6 -6
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +38 -38
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +12 -12
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +460 -460
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +838 -838
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +7 -7
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +443 -443
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +628 -628
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +98 -98
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +21 -21
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +132 -132
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +25 -25
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +69 -69
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +9 -9
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +26 -26
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +19 -19
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +9 -9
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Tabs/SceneView.tsx +5 -2
- package/src/components/Tabs/ScrollableTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +23 -23
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +336 -336
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +80 -80
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +13 -13
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +225 -225
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +58 -58
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +106 -106
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +561 -561
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +60 -60
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +101 -101
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +108 -108
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +8 -8
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +66 -66
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +52 -52
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +32 -32
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +38 -38
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +20 -20
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +16 -16
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +40 -40
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +40 -40
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +46 -46
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +302 -302
- package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/globalDark.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +1 -1
- package/types/components/RichTextEditor/EditorEvent.d.ts +1 -0
- package/src/components/Modal/__tests__/ModalContentWrapper.spec.tsx +0 -25
- package/src/components/Modal/__tests__/ModalPresenter.spec.tsx +0 -57
- package/src/components/Modal/__tests__/__snapshots__/ModalContentWrapper.spec.tsx.snap +0 -35
- package/src/components/Modal/__tests__/__snapshots__/ModalPresenter.spec.tsx.snap +0 -55
- package/src/components/Modal/__tests__/index.spec.tsx +0 -50
package/.turbo/turbo-build.log
CHANGED
|
@@ -4,5 +4,5 @@ $ rollup -c
|
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
5
5
|
[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
|
|
6
6
|
[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
|
|
7
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [
|
|
7
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m26.7s[22m[39m
|
|
8
8
|
$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
package/es/index.js
CHANGED
|
@@ -16725,7 +16725,9 @@ var SceneView = function SceneView(_ref) {
|
|
|
16725
16725
|
}, 0);
|
|
16726
16726
|
}
|
|
16727
16727
|
return function () {
|
|
16728
|
-
|
|
16728
|
+
if (timer) {
|
|
16729
|
+
clearTimeout(timer);
|
|
16730
|
+
}
|
|
16729
16731
|
};
|
|
16730
16732
|
}, [index, isLoading, lazy, focused]);
|
|
16731
16733
|
return /*#__PURE__*/React.createElement(TabScreen, {
|
|
@@ -16940,7 +16942,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
16940
16942
|
return item.key === selectedTabKey;
|
|
16941
16943
|
});
|
|
16942
16944
|
React.useEffect(function () {
|
|
16943
|
-
var timeoutHandle
|
|
16945
|
+
var timeoutHandle;
|
|
16944
16946
|
if (selectedTabIndex !== -1) {
|
|
16945
16947
|
// If the selected tab is changed too quickly, the setPage is crashed and not work anymore
|
|
16946
16948
|
// We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
|
package/lib/index.js
CHANGED
|
@@ -16756,7 +16756,9 @@ var SceneView = function SceneView(_ref) {
|
|
|
16756
16756
|
}, 0);
|
|
16757
16757
|
}
|
|
16758
16758
|
return function () {
|
|
16759
|
-
|
|
16759
|
+
if (timer) {
|
|
16760
|
+
clearTimeout(timer);
|
|
16761
|
+
}
|
|
16760
16762
|
};
|
|
16761
16763
|
}, [index, isLoading, lazy, focused]);
|
|
16762
16764
|
return /*#__PURE__*/React__default["default"].createElement(TabScreen, {
|
|
@@ -16971,7 +16973,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
16971
16973
|
return item.key === selectedTabKey;
|
|
16972
16974
|
});
|
|
16973
16975
|
React__default["default"].useEffect(function () {
|
|
16974
|
-
var timeoutHandle
|
|
16976
|
+
var timeoutHandle;
|
|
16975
16977
|
if (selectedTabIndex !== -1) {
|
|
16976
16978
|
// If the selected tab is changed too quickly, the setPage is crashed and not work anymore
|
|
16977
16979
|
// We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.39.
|
|
3
|
+
"version": "8.39.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.39.
|
|
24
|
+
"@hero-design/colors": "8.39.1",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21",
|
|
28
28
|
"nanoid": "^4.0.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@hero-design/react-native-month-year-picker": "^8.39.
|
|
31
|
+
"@hero-design/react-native-month-year-picker": "^8.39.1",
|
|
32
32
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
33
33
|
"@react-native-community/slider": "4.1.12",
|
|
34
34
|
"react": "18.0.0",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@babel/preset-react": "^7.16.7",
|
|
48
48
|
"@babel/preset-typescript": "^7.17.12",
|
|
49
49
|
"@babel/runtime": "^7.18.9",
|
|
50
|
-
"@emotion/jest": "^11.
|
|
51
|
-
"@hero-design/eslint-plugin": "8.39.
|
|
52
|
-
"@hero-design/react-native-month-year-picker": "^8.39.
|
|
50
|
+
"@emotion/jest": "^11.11.0",
|
|
51
|
+
"@hero-design/eslint-plugin": "8.39.1",
|
|
52
|
+
"@hero-design/react-native-month-year-picker": "^8.39.1",
|
|
53
53
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
54
54
|
"@react-native-community/slider": "4.1.12",
|
|
55
55
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -58,17 +58,18 @@
|
|
|
58
58
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
59
59
|
"@rollup/plugin-replace": "^4.0.0",
|
|
60
60
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
61
|
-
"@testing-library/jest-native": "^4.
|
|
61
|
+
"@testing-library/jest-native": "^5.4.2",
|
|
62
62
|
"@testing-library/react-native": "^9.1.0",
|
|
63
|
-
"@types/jest": "^
|
|
63
|
+
"@types/jest": "^29.5.3",
|
|
64
64
|
"@types/react": "^17.0.39",
|
|
65
65
|
"@types/react-native": "^0.67.7",
|
|
66
66
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
67
67
|
"babel-plugin-inline-import": "^3.0.0",
|
|
68
|
-
"eslint-config-hd": "8.39.
|
|
68
|
+
"eslint-config-hd": "8.39.1",
|
|
69
69
|
"eslint-plugin-import": "^2.27.5",
|
|
70
|
-
"jest": "^
|
|
71
|
-
"
|
|
70
|
+
"jest": "^29.6.2",
|
|
71
|
+
"jest-environment-jsdom": "^29.6.2",
|
|
72
|
+
"prettier-config-hd": "8.39.1",
|
|
72
73
|
"react": "18.0.0",
|
|
73
74
|
"react-native": "0.69.7",
|
|
74
75
|
"react-native-gesture-handler": "~2.5.0",
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"rollup": "^2.68.0",
|
|
82
83
|
"rollup-plugin-copy": "^3.4.0",
|
|
83
84
|
"rollup-plugin-flow": "^1.1.1",
|
|
84
|
-
"ts-jest": "^
|
|
85
|
+
"ts-jest": "^29.1.1"
|
|
85
86
|
},
|
|
86
87
|
"prettier": "prettier-config-hd"
|
|
87
88
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
style={
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
[
|
|
7
|
+
{
|
|
8
8
|
"backgroundColor": "#ffffff",
|
|
9
9
|
"borderRadius": 0,
|
|
10
10
|
"padding": 16,
|
|
@@ -26,7 +26,7 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
26
26
|
onResponderTerminationRequest={[Function]}
|
|
27
27
|
onStartShouldSetResponder={[Function]}
|
|
28
28
|
style={
|
|
29
|
-
|
|
29
|
+
{
|
|
30
30
|
"flexDirection": "row",
|
|
31
31
|
"justifyContent": "space-between",
|
|
32
32
|
"opacity": 1,
|
|
@@ -36,8 +36,8 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
36
36
|
<Text
|
|
37
37
|
allowFontScaling={false}
|
|
38
38
|
style={
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
[
|
|
40
|
+
{
|
|
41
41
|
"color": "#001f23",
|
|
42
42
|
"fontFamily": "BeVietnamPro-Regular",
|
|
43
43
|
"fontSize": 16,
|
|
@@ -56,8 +56,8 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
56
56
|
<HeroIcon
|
|
57
57
|
name="arrow-down"
|
|
58
58
|
style={
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
[
|
|
60
|
+
{
|
|
61
61
|
"color": "#795e90",
|
|
62
62
|
"fontSize": 20,
|
|
63
63
|
},
|
|
@@ -72,7 +72,7 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
72
72
|
collapsable={false}
|
|
73
73
|
onLayout={[Function]}
|
|
74
74
|
style={
|
|
75
|
-
|
|
75
|
+
{
|
|
76
76
|
"height": 0,
|
|
77
77
|
"margin": 0,
|
|
78
78
|
"overflow": "hidden",
|
|
@@ -82,8 +82,8 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
82
82
|
>
|
|
83
83
|
<View
|
|
84
84
|
style={
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
[
|
|
86
|
+
{
|
|
87
87
|
"height": 1334,
|
|
88
88
|
},
|
|
89
89
|
undefined,
|
|
@@ -93,13 +93,13 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
93
93
|
<View
|
|
94
94
|
onLayout={[Function]}
|
|
95
95
|
style={
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
[
|
|
97
|
+
{
|
|
98
98
|
"margin": 0,
|
|
99
99
|
"padding": 0,
|
|
100
100
|
},
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
[
|
|
102
|
+
{
|
|
103
103
|
"paddingTop": 16,
|
|
104
104
|
},
|
|
105
105
|
undefined,
|
|
@@ -110,8 +110,8 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
110
110
|
<Text
|
|
111
111
|
allowFontScaling={false}
|
|
112
112
|
style={
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
[
|
|
114
|
+
{
|
|
115
115
|
"color": "#001f23",
|
|
116
116
|
"fontFamily": "BeVietnamPro-Regular",
|
|
117
117
|
"fontSize": 16,
|
|
@@ -136,8 +136,8 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
136
136
|
exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
137
137
|
<View
|
|
138
138
|
style={
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
[
|
|
140
|
+
{
|
|
141
141
|
"backgroundColor": "#ffffff",
|
|
142
142
|
"borderRadius": 0,
|
|
143
143
|
"padding": 16,
|
|
@@ -159,7 +159,7 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
159
159
|
onResponderTerminationRequest={[Function]}
|
|
160
160
|
onStartShouldSetResponder={[Function]}
|
|
161
161
|
style={
|
|
162
|
-
|
|
162
|
+
{
|
|
163
163
|
"flexDirection": "row",
|
|
164
164
|
"justifyContent": "space-between",
|
|
165
165
|
"opacity": 1,
|
|
@@ -169,8 +169,8 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
169
169
|
<Text
|
|
170
170
|
allowFontScaling={false}
|
|
171
171
|
style={
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
[
|
|
173
|
+
{
|
|
174
174
|
"color": "#001f23",
|
|
175
175
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
176
176
|
"fontSize": 16,
|
|
@@ -189,8 +189,8 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
189
189
|
<HeroIcon
|
|
190
190
|
name="arrow-down"
|
|
191
191
|
style={
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
[
|
|
193
|
+
{
|
|
194
194
|
"color": "#795e90",
|
|
195
195
|
"fontSize": 20,
|
|
196
196
|
},
|
|
@@ -205,7 +205,7 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
205
205
|
collapsable={false}
|
|
206
206
|
onLayout={[Function]}
|
|
207
207
|
style={
|
|
208
|
-
|
|
208
|
+
{
|
|
209
209
|
"height": 0,
|
|
210
210
|
"margin": 0,
|
|
211
211
|
"overflow": "hidden",
|
|
@@ -215,8 +215,8 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
215
215
|
>
|
|
216
216
|
<View
|
|
217
217
|
style={
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
[
|
|
219
|
+
{
|
|
220
220
|
"height": 1334,
|
|
221
221
|
},
|
|
222
222
|
undefined,
|
|
@@ -226,13 +226,13 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
226
226
|
<View
|
|
227
227
|
onLayout={[Function]}
|
|
228
228
|
style={
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
[
|
|
230
|
+
{
|
|
231
231
|
"margin": 0,
|
|
232
232
|
"padding": 0,
|
|
233
233
|
},
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
[
|
|
235
|
+
{
|
|
236
236
|
"paddingTop": 16,
|
|
237
237
|
},
|
|
238
238
|
undefined,
|
|
@@ -243,8 +243,8 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
243
243
|
<Text
|
|
244
244
|
allowFontScaling={false}
|
|
245
245
|
style={
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
[
|
|
247
|
+
{
|
|
248
248
|
"color": "#001f23",
|
|
249
249
|
"fontFamily": "BeVietnamPro-Regular",
|
|
250
250
|
"fontSize": 16,
|
|
@@ -269,8 +269,8 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
269
269
|
exports[`AccordionItem renders correctly when open 1`] = `
|
|
270
270
|
<View
|
|
271
271
|
style={
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
[
|
|
273
|
+
{
|
|
274
274
|
"backgroundColor": "#ffffff",
|
|
275
275
|
"borderRadius": 0,
|
|
276
276
|
"padding": 16,
|
|
@@ -292,7 +292,7 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
292
292
|
onResponderTerminationRequest={[Function]}
|
|
293
293
|
onStartShouldSetResponder={[Function]}
|
|
294
294
|
style={
|
|
295
|
-
|
|
295
|
+
{
|
|
296
296
|
"flexDirection": "row",
|
|
297
297
|
"justifyContent": "space-between",
|
|
298
298
|
"opacity": 1,
|
|
@@ -302,8 +302,8 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
302
302
|
<Text
|
|
303
303
|
allowFontScaling={false}
|
|
304
304
|
style={
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
[
|
|
306
|
+
{
|
|
307
307
|
"color": "#001f23",
|
|
308
308
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
309
309
|
"fontSize": 16,
|
|
@@ -322,8 +322,8 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
322
322
|
<HeroIcon
|
|
323
323
|
name="arrow-up"
|
|
324
324
|
style={
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
[
|
|
326
|
+
{
|
|
327
327
|
"color": "#795e90",
|
|
328
328
|
"fontSize": 20,
|
|
329
329
|
},
|
|
@@ -338,7 +338,7 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
338
338
|
collapsable={false}
|
|
339
339
|
onLayout={[Function]}
|
|
340
340
|
style={
|
|
341
|
-
|
|
341
|
+
{
|
|
342
342
|
"height": 0,
|
|
343
343
|
"margin": 0,
|
|
344
344
|
"overflow": "hidden",
|
|
@@ -348,8 +348,8 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
348
348
|
>
|
|
349
349
|
<View
|
|
350
350
|
style={
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
[
|
|
352
|
+
{
|
|
353
353
|
"height": 1334,
|
|
354
354
|
},
|
|
355
355
|
undefined,
|
|
@@ -359,13 +359,13 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
359
359
|
<View
|
|
360
360
|
onLayout={[Function]}
|
|
361
361
|
style={
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
[
|
|
363
|
+
{
|
|
364
364
|
"margin": 0,
|
|
365
365
|
"padding": 0,
|
|
366
366
|
},
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
[
|
|
368
|
+
{
|
|
369
369
|
"paddingTop": 16,
|
|
370
370
|
},
|
|
371
371
|
undefined,
|
|
@@ -376,8 +376,8 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
376
376
|
<Text
|
|
377
377
|
allowFontScaling={false}
|
|
378
378
|
style={
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
[
|
|
380
|
+
{
|
|
381
381
|
"color": "#001f23",
|
|
382
382
|
"fontFamily": "BeVietnamPro-Regular",
|
|
383
383
|
"fontSize": 16,
|
|
@@ -402,8 +402,8 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
402
402
|
exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
403
403
|
<View
|
|
404
404
|
style={
|
|
405
|
-
|
|
406
|
-
|
|
405
|
+
[
|
|
406
|
+
{
|
|
407
407
|
"backgroundColor": "#ffffff",
|
|
408
408
|
"borderRadius": 8,
|
|
409
409
|
"padding": 16,
|
|
@@ -425,7 +425,7 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
425
425
|
onResponderTerminationRequest={[Function]}
|
|
426
426
|
onStartShouldSetResponder={[Function]}
|
|
427
427
|
style={
|
|
428
|
-
|
|
428
|
+
{
|
|
429
429
|
"flexDirection": "row",
|
|
430
430
|
"justifyContent": "space-between",
|
|
431
431
|
"opacity": 1,
|
|
@@ -435,8 +435,8 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
435
435
|
<Text
|
|
436
436
|
allowFontScaling={false}
|
|
437
437
|
style={
|
|
438
|
-
|
|
439
|
-
|
|
438
|
+
[
|
|
439
|
+
{
|
|
440
440
|
"color": "#001f23",
|
|
441
441
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
442
442
|
"fontSize": 16,
|
|
@@ -455,8 +455,8 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
455
455
|
<HeroIcon
|
|
456
456
|
name="arrow-down"
|
|
457
457
|
style={
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
[
|
|
459
|
+
{
|
|
460
460
|
"color": "#795e90",
|
|
461
461
|
"fontSize": 20,
|
|
462
462
|
},
|
|
@@ -471,7 +471,7 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
471
471
|
collapsable={false}
|
|
472
472
|
onLayout={[Function]}
|
|
473
473
|
style={
|
|
474
|
-
|
|
474
|
+
{
|
|
475
475
|
"height": 0,
|
|
476
476
|
"margin": 0,
|
|
477
477
|
"overflow": "hidden",
|
|
@@ -481,8 +481,8 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
481
481
|
>
|
|
482
482
|
<View
|
|
483
483
|
style={
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
[
|
|
485
|
+
{
|
|
486
486
|
"height": 1334,
|
|
487
487
|
},
|
|
488
488
|
undefined,
|
|
@@ -492,13 +492,13 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
492
492
|
<View
|
|
493
493
|
onLayout={[Function]}
|
|
494
494
|
style={
|
|
495
|
-
|
|
496
|
-
|
|
495
|
+
[
|
|
496
|
+
{
|
|
497
497
|
"margin": 0,
|
|
498
498
|
"padding": 0,
|
|
499
499
|
},
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
[
|
|
501
|
+
{
|
|
502
502
|
"paddingTop": 16,
|
|
503
503
|
},
|
|
504
504
|
undefined,
|
|
@@ -509,8 +509,8 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
509
509
|
<Text
|
|
510
510
|
allowFontScaling={false}
|
|
511
511
|
style={
|
|
512
|
-
|
|
513
|
-
|
|
512
|
+
[
|
|
513
|
+
{
|
|
514
514
|
"color": "#001f23",
|
|
515
515
|
"fontFamily": "BeVietnamPro-Regular",
|
|
516
516
|
"fontSize": 16,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
exports[`StyledItemWrapper has correct style when variant is card 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
style={
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
[
|
|
7
|
+
{
|
|
8
8
|
"backgroundColor": "#ffffff",
|
|
9
9
|
"borderRadius": 8,
|
|
10
10
|
"padding": 16,
|
|
@@ -19,8 +19,8 @@ exports[`StyledItemWrapper has correct style when variant is card 1`] = `
|
|
|
19
19
|
exports[`StyledItemWrapper has correct style when variant is default 1`] = `
|
|
20
20
|
<View
|
|
21
21
|
style={
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
[
|
|
23
|
+
{
|
|
24
24
|
"backgroundColor": "#ffffff",
|
|
25
25
|
"borderRadius": 0,
|
|
26
26
|
"padding": 16,
|