@hero-design/rn 8.38.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.
Files changed (139) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +201 -196
  4. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/lib/index.js +201 -196
  6. package/package.json +13 -12
  7. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +64 -64
  8. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +4 -4
  9. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +104 -104
  10. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +107 -107
  11. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +17 -17
  12. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +10 -10
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +76 -76
  14. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +8 -8
  15. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +24 -24
  16. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +42 -42
  17. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +10 -10
  18. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +46 -46
  19. package/src/components/BottomNavigation/index.tsx +4 -0
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +30 -30
  21. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +42 -42
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +20 -20
  23. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +210 -210
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +214 -214
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +4 -4
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +105 -105
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +35 -35
  29. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +14 -14
  30. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
  31. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +2 -2
  32. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +24 -24
  33. package/src/components/Carousel/CardCarousel.tsx +1 -1
  34. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +88 -88
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +15 -15
  36. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +2 -2
  37. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +342 -342
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +12 -12
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +56 -56
  40. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +3 -3
  41. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  42. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +2 -2
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +39 -39
  44. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +90 -90
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +30 -30
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +30 -30
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +71 -71
  48. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +24 -24
  49. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +11 -11
  50. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  51. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +23 -23
  52. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +69 -69
  53. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +157 -157
  54. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +16 -16
  55. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +14 -14
  56. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +46 -46
  57. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  58. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  59. package/src/components/Icon/IconList.ts +2 -0
  60. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +11 -11
  61. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  62. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +34 -34
  63. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +98 -98
  64. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +16 -16
  65. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +28 -28
  66. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  67. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +30 -30
  68. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +6 -6
  69. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +138 -138
  70. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +136 -136
  71. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +24 -24
  72. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +39 -39
  73. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +78 -78
  74. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  75. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +27 -27
  76. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +4 -4
  77. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +72 -72
  78. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +6 -6
  79. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +38 -38
  80. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +12 -12
  81. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +460 -460
  82. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +838 -838
  83. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +7 -7
  84. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +443 -443
  85. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +628 -628
  86. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +98 -98
  87. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +21 -21
  88. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +132 -132
  89. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +25 -25
  90. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +69 -69
  91. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +9 -9
  92. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  93. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +26 -26
  94. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +19 -19
  95. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +9 -9
  96. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  97. package/src/components/Tabs/SceneView.tsx +5 -2
  98. package/src/components/Tabs/ScrollableTabs.tsx +1 -1
  99. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +23 -23
  100. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +336 -336
  101. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +80 -80
  102. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +13 -13
  103. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +225 -225
  104. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +58 -58
  105. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +106 -106
  106. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +561 -561
  107. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +60 -60
  108. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +101 -101
  109. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +108 -108
  110. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +8 -8
  111. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +66 -66
  112. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +52 -52
  113. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +32 -32
  114. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +38 -38
  115. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +20 -20
  116. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
  117. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +16 -16
  118. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  119. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +40 -40
  120. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +40 -40
  121. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +46 -46
  122. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +302 -302
  123. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +1 -1
  124. package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +1 -1
  125. package/src/theme/global/colors/__tests__/__snapshots__/globalDark.spec.ts.snap +1 -1
  126. package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +1 -1
  127. package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +1 -1
  128. package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +1 -1
  129. package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +1 -1
  130. package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +1 -1
  131. package/types/components/Icon/IconList.d.ts +1 -1
  132. package/types/components/Icon/index.d.ts +1 -1
  133. package/types/components/Icon/utils.d.ts +1 -1
  134. package/types/components/RichTextEditor/EditorEvent.d.ts +1 -0
  135. package/src/components/Modal/__tests__/ModalContentWrapper.spec.tsx +0 -25
  136. package/src/components/Modal/__tests__/ModalPresenter.spec.tsx +0 -57
  137. package/src/components/Modal/__tests__/__snapshots__/ModalContentWrapper.spec.tsx.snap +0 -35
  138. package/src/components/Modal/__tests__/__snapshots__/ModalPresenter.spec.tsx.snap +0 -55
  139. package/src/components/Modal/__tests__/index.spec.tsx +0 -50
@@ -4,12 +4,12 @@ exports[`Option renders correctly when not selected 1`] = `
4
4
  <View
5
5
  collapsable={false}
6
6
  style={
7
- Object {
7
+ {
8
8
  "alignItems": "center",
9
9
  "justifyContent": "center",
10
10
  "paddingHorizontal": 16,
11
- "transform": Array [
12
- Object {
11
+ "transform": [
12
+ {
13
13
  "translateX": 0,
14
14
  },
15
15
  ],
@@ -19,7 +19,7 @@ exports[`Option renders correctly when not selected 1`] = `
19
19
  >
20
20
  <View
21
21
  style={
22
- Object {
22
+ {
23
23
  "paddingHorizontal": 8,
24
24
  }
25
25
  }
@@ -28,8 +28,8 @@ exports[`Option renders correctly when not selected 1`] = `
28
28
  <HeroIcon
29
29
  name="user"
30
30
  style={
31
- Array [
32
- Object {
31
+ [
32
+ {
33
33
  "color": "#001f23",
34
34
  "fontSize": 24,
35
35
  },
@@ -42,7 +42,7 @@ exports[`Option renders correctly when not selected 1`] = `
42
42
  <View
43
43
  collapsable={false}
44
44
  style={
45
- Object {
45
+ {
46
46
  "backgroundColor": "#cb300a",
47
47
  "borderRadius": 999,
48
48
  "height": 8,
@@ -50,8 +50,8 @@ exports[`Option renders correctly when not selected 1`] = `
50
50
  "position": "absolute",
51
51
  "right": -2,
52
52
  "top": -2,
53
- "transform": Array [
54
- Object {
53
+ "transform": [
54
+ {
55
55
  "scale": 1,
56
56
  },
57
57
  ],
@@ -68,13 +68,13 @@ exports[`Option renders correctly when selected 1`] = `
68
68
  <View
69
69
  collapsable={false}
70
70
  style={
71
- Object {
71
+ {
72
72
  "alignItems": "center",
73
73
  "borderRadius": 999,
74
74
  "flex": 1,
75
75
  "justifyContent": "center",
76
- "transform": Array [
77
- Object {
76
+ "transform": [
77
+ {
78
78
  "translateX": 0,
79
79
  },
80
80
  ],
@@ -84,7 +84,7 @@ exports[`Option renders correctly when selected 1`] = `
84
84
  >
85
85
  <View
86
86
  style={
87
- Object {
87
+ {
88
88
  "paddingHorizontal": 8,
89
89
  }
90
90
  }
@@ -93,8 +93,8 @@ exports[`Option renders correctly when selected 1`] = `
93
93
  <Text
94
94
  allowFontScaling={false}
95
95
  style={
96
- Array [
97
- Object {
96
+ [
97
+ {
98
98
  "color": "#001f23",
99
99
  "fontFamily": "BeVietnamPro-Regular",
100
100
  "fontSize": 16,
@@ -113,7 +113,7 @@ exports[`Option renders correctly when selected 1`] = `
113
113
  <View
114
114
  collapsable={false}
115
115
  style={
116
- Object {
116
+ {
117
117
  "backgroundColor": "#cb300a",
118
118
  "borderRadius": 999,
119
119
  "height": 8,
@@ -121,8 +121,8 @@ exports[`Option renders correctly when selected 1`] = `
121
121
  "position": "absolute",
122
122
  "right": -2,
123
123
  "top": -2,
124
- "transform": Array [
125
- Object {
124
+ "transform": [
125
+ {
126
126
  "scale": 1,
127
127
  },
128
128
  ],
@@ -139,8 +139,8 @@ exports[`OptionContent renders correctly there is no badge 1`] = `
139
139
  <HeroIcon
140
140
  name="user"
141
141
  style={
142
- Array [
143
- Object {
142
+ [
143
+ {
144
144
  "color": "#001f23",
145
145
  "fontSize": 24,
146
146
  },
@@ -155,7 +155,7 @@ exports[`OptionContent renders correctly there is no badge 1`] = `
155
155
  exports[`OptionContent renders correctly when there is a badge 1`] = `
156
156
  <View
157
157
  style={
158
- Object {
158
+ {
159
159
  "paddingHorizontal": 8,
160
160
  }
161
161
  }
@@ -164,8 +164,8 @@ exports[`OptionContent renders correctly when there is a badge 1`] = `
164
164
  <HeroIcon
165
165
  name="user"
166
166
  style={
167
- Array [
168
- Object {
167
+ [
168
+ {
169
169
  "color": "#001f23",
170
170
  "fontSize": 24,
171
171
  },
@@ -178,7 +178,7 @@ exports[`OptionContent renders correctly when there is a badge 1`] = `
178
178
  <View
179
179
  collapsable={false}
180
180
  style={
181
- Object {
181
+ {
182
182
  "backgroundColor": "#cb300a",
183
183
  "borderRadius": 999,
184
184
  "height": 8,
@@ -186,8 +186,8 @@ exports[`OptionContent renders correctly when there is a badge 1`] = `
186
186
  "position": "absolute",
187
187
  "right": -2,
188
188
  "top": -2,
189
- "transform": Array [
190
- Object {
189
+ "transform": [
190
+ {
191
191
  "scale": 1,
192
192
  },
193
193
  ],
@@ -13,8 +13,8 @@ exports[`SelectorSwitch renders correctly 1`] = `
13
13
  onResponderTerminationRequest={[Function]}
14
14
  onStartShouldSetResponder={[Function]}
15
15
  style={
16
- Array [
17
- Object {
16
+ [
17
+ {
18
18
  "backgroundColor": "#ffffff",
19
19
  "borderRadius": 999,
20
20
  "flexDirection": "row",
@@ -31,13 +31,13 @@ exports[`SelectorSwitch renders correctly 1`] = `
31
31
  collapsable={false}
32
32
  onLayout={[Function]}
33
33
  style={
34
- Object {
34
+ {
35
35
  "alignItems": "center",
36
36
  "borderRadius": 999,
37
37
  "flex": 1,
38
38
  "justifyContent": "center",
39
- "transform": Array [
40
- Object {
39
+ "transform": [
40
+ {
41
41
  "translateX": 0,
42
42
  },
43
43
  ],
@@ -48,8 +48,8 @@ exports[`SelectorSwitch renders correctly 1`] = `
48
48
  <Text
49
49
  allowFontScaling={false}
50
50
  style={
51
- Array [
52
- Object {
51
+ [
52
+ {
53
53
  "color": "#001f23",
54
54
  "fontFamily": "BeVietnamPro-Regular",
55
55
  "fontSize": 16,
@@ -70,12 +70,12 @@ exports[`SelectorSwitch renders correctly 1`] = `
70
70
  collapsable={false}
71
71
  onLayout={[Function]}
72
72
  style={
73
- Object {
73
+ {
74
74
  "alignItems": "center",
75
75
  "justifyContent": "center",
76
76
  "paddingHorizontal": 16,
77
- "transform": Array [
78
- Object {
77
+ "transform": [
78
+ {
79
79
  "translateX": 0,
80
80
  },
81
81
  ],
@@ -85,7 +85,7 @@ exports[`SelectorSwitch renders correctly 1`] = `
85
85
  >
86
86
  <View
87
87
  style={
88
- Object {
88
+ {
89
89
  "paddingHorizontal": 8,
90
90
  }
91
91
  }
@@ -94,8 +94,8 @@ exports[`SelectorSwitch renders correctly 1`] = `
94
94
  <HeroIcon
95
95
  name="multiple-users"
96
96
  style={
97
- Array [
98
- Object {
97
+ [
98
+ {
99
99
  "color": "#001f23",
100
100
  "fontSize": 24,
101
101
  },
@@ -108,7 +108,7 @@ exports[`SelectorSwitch renders correctly 1`] = `
108
108
  <View
109
109
  collapsable={false}
110
110
  style={
111
- Object {
111
+ {
112
112
  "backgroundColor": "#cb300a",
113
113
  "borderRadius": 999,
114
114
  "height": 8,
@@ -116,8 +116,8 @@ exports[`SelectorSwitch renders correctly 1`] = `
116
116
  "position": "absolute",
117
117
  "right": -2,
118
118
  "top": -2,
119
- "transform": Array [
120
- Object {
119
+ "transform": [
120
+ {
121
121
  "scale": 1,
122
122
  },
123
123
  ],
@@ -131,7 +131,7 @@ exports[`SelectorSwitch renders correctly 1`] = `
131
131
  <View
132
132
  collapsable={false}
133
133
  style={
134
- Object {
134
+ {
135
135
  "backgroundColor": "#ccd2d3",
136
136
  "borderRadius": 999,
137
137
  "bottom": 0,
@@ -139,8 +139,8 @@ exports[`SelectorSwitch renders correctly 1`] = `
139
139
  "position": "absolute",
140
140
  "right": 0,
141
141
  "top": 0,
142
- "transform": Array [
143
- Object {
142
+ "transform": [
143
+ {
144
144
  "translateX": 0,
145
145
  },
146
146
  ],
@@ -4,7 +4,7 @@ exports[`StyledKnot renders correct style 1`] = `
4
4
  <View
5
5
  collapsable={false}
6
6
  style={
7
- Object {
7
+ {
8
8
  "backgroundColor": "#ffffff",
9
9
  "borderRadius": 999,
10
10
  "height": 16,
@@ -17,8 +17,8 @@ exports[`StyledKnot renders correct style 1`] = `
17
17
  exports[`StyledWrapper renders correct style with variant checked 1`] = `
18
18
  <View
19
19
  style={
20
- Array [
21
- Object {
20
+ [
21
+ {
22
22
  "backgroundColor": "#401960",
23
23
  "borderRadius": 999,
24
24
  "display": "flex",
@@ -37,8 +37,8 @@ exports[`StyledWrapper renders correct style with variant checked 1`] = `
37
37
  exports[`StyledWrapper renders correct style with variant disabled-checked 1`] = `
38
38
  <View
39
39
  style={
40
- Array [
41
- Object {
40
+ [
41
+ {
42
42
  "backgroundColor": "#ece8ef",
43
43
  "borderRadius": 999,
44
44
  "display": "flex",
@@ -57,8 +57,8 @@ exports[`StyledWrapper renders correct style with variant disabled-checked 1`] =
57
57
  exports[`StyledWrapper renders correct style with variant disabled-unchecked 1`] = `
58
58
  <View
59
59
  style={
60
- Array [
61
- Object {
60
+ [
61
+ {
62
62
  "backgroundColor": "#bfc1c5",
63
63
  "borderRadius": 999,
64
64
  "display": "flex",
@@ -77,8 +77,8 @@ exports[`StyledWrapper renders correct style with variant disabled-unchecked 1`]
77
77
  exports[`StyledWrapper renders correct style with variant unchecked 1`] = `
78
78
  <View
79
79
  style={
80
- Array [
81
- Object {
80
+ [
81
+ {
82
82
  "backgroundColor": "#808f91",
83
83
  "borderRadius": 999,
84
84
  "display": "flex",
@@ -3,7 +3,7 @@
3
3
  exports[`Switch renders correctly 1`] = `
4
4
  <View
5
5
  accessibilityState={
6
- Object {
6
+ {
7
7
  "disabled": false,
8
8
  }
9
9
  }
@@ -17,8 +17,8 @@ exports[`Switch renders correctly 1`] = `
17
17
  onResponderTerminationRequest={[Function]}
18
18
  onStartShouldSetResponder={[Function]}
19
19
  style={
20
- Array [
21
- Object {
20
+ [
21
+ {
22
22
  "backgroundColor": "#808f91",
23
23
  "borderRadius": 999,
24
24
  "display": "flex",
@@ -36,7 +36,7 @@ exports[`Switch renders correctly 1`] = `
36
36
  <View
37
37
  collapsable={false}
38
38
  style={
39
- Object {
39
+ {
40
40
  "backgroundColor": "#ffffff",
41
41
  "borderRadius": 999,
42
42
  "height": 16,
@@ -51,7 +51,7 @@ exports[`Switch renders correctly 1`] = `
51
51
  exports[`Switch trigger press function correctly 1`] = `
52
52
  <View
53
53
  accessibilityState={
54
- Object {
54
+ {
55
55
  "disabled": false,
56
56
  }
57
57
  }
@@ -65,8 +65,8 @@ exports[`Switch trigger press function correctly 1`] = `
65
65
  onResponderTerminationRequest={[Function]}
66
66
  onStartShouldSetResponder={[Function]}
67
67
  style={
68
- Array [
69
- Object {
68
+ [
69
+ {
70
70
  "backgroundColor": "#808f91",
71
71
  "borderRadius": 999,
72
72
  "display": "flex",
@@ -84,7 +84,7 @@ exports[`Switch trigger press function correctly 1`] = `
84
84
  <View
85
85
  collapsable={false}
86
86
  style={
87
- Object {
87
+ {
88
88
  "backgroundColor": "#ffffff",
89
89
  "borderRadius": 999,
90
90
  "height": 16,
@@ -29,7 +29,7 @@ const SceneView = ({
29
29
 
30
30
  React.useEffect(() => {
31
31
  let unsubscribe: (() => void) | undefined;
32
- let timer: number | undefined;
32
+ let timer: ReturnType<typeof setTimeout>;
33
33
 
34
34
  if (!lazy && isLoading) {
35
35
  // If lazy mode is not enabled, render the scene with a delay if not loaded already
@@ -39,7 +39,10 @@ const SceneView = ({
39
39
 
40
40
  return () => {
41
41
  unsubscribe?.();
42
- clearTimeout(timer);
42
+
43
+ if (timer) {
44
+ clearTimeout(timer);
45
+ }
43
46
  };
44
47
  }, [index, isLoading, lazy, focused]);
45
48
 
@@ -25,7 +25,7 @@ const ScrollableTab = ({
25
25
  );
26
26
 
27
27
  React.useEffect(() => {
28
- let timeoutHandle: number | null = null;
28
+ let timeoutHandle: ReturnType<typeof setTimeout>;
29
29
  if (selectedTabIndex !== -1) {
30
30
  // If the selected tab is changed too quickly, the setPage is crashed and not work anymore
31
31
  // We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
@@ -5,12 +5,12 @@ exports[`ScenceView lazy not renders child correctly when the scence is lazy and
5
5
  accessibilityElementsHidden={true}
6
6
  importantForAccessibility="no-hide-descendants"
7
7
  style={
8
- Array [
9
- Object {
8
+ [
9
+ {
10
10
  "flex": 1,
11
11
  },
12
- Array [
13
- Object {
12
+ [
13
+ {
14
14
  "flex": 1,
15
15
  "overflow": "hidden",
16
16
  },
@@ -27,12 +27,12 @@ exports[`ScenceView lazy not renders child correctly when the scence is lazy and
27
27
  accessibilityElementsHidden={true}
28
28
  importantForAccessibility="no-hide-descendants"
29
29
  style={
30
- Array [
31
- Object {
30
+ [
31
+ {
32
32
  "flex": 1,
33
33
  },
34
- Array [
35
- Object {
34
+ [
35
+ {
36
36
  "flex": 1,
37
37
  "overflow": "hidden",
38
38
  },
@@ -45,8 +45,8 @@ exports[`ScenceView lazy not renders child correctly when the scence is lazy and
45
45
  <Text
46
46
  allowFontScaling={false}
47
47
  style={
48
- Array [
49
- Object {
48
+ [
49
+ {
50
50
  "color": "#001f23",
51
51
  "fontFamily": "BeVietnamPro-Regular",
52
52
  "fontSize": 14,
@@ -70,16 +70,16 @@ exports[`ScenceView lazy renders child correctly when the scence is focused and
70
70
  accessibilityElementsHidden={false}
71
71
  importantForAccessibility="auto"
72
72
  style={
73
- Array [
74
- Object {
73
+ [
74
+ {
75
75
  "flex": 1,
76
76
  },
77
- Array [
78
- Object {
77
+ [
78
+ {
79
79
  "flex": 1,
80
80
  "overflow": "hidden",
81
81
  },
82
- Object {
82
+ {
83
83
  "bottom": 0,
84
84
  "left": 0,
85
85
  "position": "absolute",
@@ -94,8 +94,8 @@ exports[`ScenceView lazy renders child correctly when the scence is focused and
94
94
  <Text
95
95
  allowFontScaling={false}
96
96
  style={
97
- Array [
98
- Object {
97
+ [
98
+ {
99
99
  "color": "#001f23",
100
100
  "fontFamily": "BeVietnamPro-Regular",
101
101
  "fontSize": 14,
@@ -119,12 +119,12 @@ exports[`ScenceView lazy renders child correctly when the scence is focused and
119
119
  accessibilityElementsHidden={true}
120
120
  importantForAccessibility="no-hide-descendants"
121
121
  style={
122
- Array [
123
- Object {
122
+ [
123
+ {
124
124
  "flex": 1,
125
125
  },
126
- Array [
127
- Object {
126
+ [
127
+ {
128
128
  "flex": 1,
129
129
  "overflow": "hidden",
130
130
  },
@@ -137,8 +137,8 @@ exports[`ScenceView lazy renders child correctly when the scence is focused and
137
137
  <Text
138
138
  allowFontScaling={false}
139
139
  style={
140
- Array [
141
- Object {
140
+ [
141
+ {
142
142
  "color": "#001f23",
143
143
  "fontFamily": "BeVietnamPro-Regular",
144
144
  "fontSize": 14,