@hero-design/rn 8.43.1 → 8.44.0

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 (133) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +10 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +366 -359
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +366 -359
  7. package/package.json +1 -1
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
  9. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  19. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
  21. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
  23. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
  29. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  30. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  31. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  32. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  33. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  36. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
  37. package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
  40. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
  41. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  42. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
  49. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  50. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  51. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
  52. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  53. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  54. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
  55. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  56. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
  57. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
  58. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  59. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  60. package/src/components/Icon/IconList.ts +2 -0
  61. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  62. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  63. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
  64. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
  65. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
  66. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
  67. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
  68. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
  69. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  70. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  71. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  72. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  73. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  74. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  75. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  76. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
  77. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
  78. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
  79. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  80. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  81. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  82. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
  83. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
  84. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
  85. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  86. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  87. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
  88. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
  89. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
  90. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  91. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
  92. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
  93. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
  94. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  95. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  96. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  97. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  98. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  99. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  100. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
  101. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  102. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  103. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
  104. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  105. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
  106. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  107. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  108. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
  109. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
  110. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  111. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
  112. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  113. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  114. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  115. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
  116. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
  117. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
  118. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  119. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
  120. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
  121. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  122. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  123. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  124. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  125. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  126. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  127. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  128. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  129. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  130. package/src/testHelpers/renderWithTheme.tsx +2 -2
  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
@@ -3,494 +3,634 @@
3
3
  exports[`CalendarRowItem renders correctly 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "alignItems": "center",
9
- "flexBasis": "14%",
10
- "height": 48,
11
- "justifyContent": "center",
12
- "width": 48,
13
- },
14
- undefined,
15
- ]
6
+ {
7
+ "flex": 1,
8
+ }
16
9
  }
17
- testID="calendar-date-cell"
18
10
  >
19
11
  <View
20
- accessibilityState={
21
- {
22
- "busy": undefined,
23
- "checked": undefined,
24
- "disabled": undefined,
25
- "expanded": undefined,
26
- "selected": undefined,
27
- }
28
- }
29
- accessibilityValue={
30
- {
31
- "max": undefined,
32
- "min": undefined,
33
- "now": undefined,
34
- "text": undefined,
35
- }
36
- }
37
- accessible={true}
38
- collapsable={false}
39
- focusable={true}
40
- onClick={[Function]}
41
- onResponderGrant={[Function]}
42
- onResponderMove={[Function]}
43
- onResponderRelease={[Function]}
44
- onResponderTerminate={[Function]}
45
- onResponderTerminationRequest={[Function]}
46
- onStartShouldSetResponder={[Function]}
47
12
  style={
48
- {
49
- "alignItems": "center",
50
- "backgroundColor": undefined,
51
- "borderColor": "#001f23",
52
- "borderRadius": 999,
53
- "borderWidth": 0,
54
- "height": 44,
55
- "justifyContent": "center",
56
- "opacity": 1,
57
- "width": 44,
58
- }
13
+ [
14
+ {
15
+ "alignItems": "center",
16
+ "flexBasis": "14%",
17
+ "height": 48,
18
+ "justifyContent": "center",
19
+ "width": 48,
20
+ },
21
+ undefined,
22
+ ]
59
23
  }
24
+ testID="calendar-date-cell"
60
25
  >
61
- <Text
62
- allowFontScaling={false}
63
- style={
64
- [
65
- {
66
- "color": "#001f23",
67
- "fontFamily": "BeVietnamPro-Regular",
68
- "fontSize": 14,
69
- "letterSpacing": 0.48,
70
- "lineHeight": 22,
71
- },
72
- undefined,
73
- ]
74
- }
75
- themeIntent="body"
76
- themeTypeface="neutral"
77
- themeVariant="small"
78
- >
79
- 10
80
- </Text>
81
26
  <View
27
+ accessibilityState={
28
+ {
29
+ "busy": undefined,
30
+ "checked": undefined,
31
+ "disabled": undefined,
32
+ "expanded": undefined,
33
+ "selected": undefined,
34
+ }
35
+ }
36
+ accessibilityValue={
37
+ {
38
+ "max": undefined,
39
+ "min": undefined,
40
+ "now": undefined,
41
+ "text": undefined,
42
+ }
43
+ }
44
+ accessible={true}
45
+ collapsable={false}
46
+ focusable={true}
47
+ onClick={[Function]}
48
+ onResponderGrant={[Function]}
49
+ onResponderMove={[Function]}
50
+ onResponderRelease={[Function]}
51
+ onResponderTerminate={[Function]}
52
+ onResponderTerminationRequest={[Function]}
53
+ onStartShouldSetResponder={[Function]}
82
54
  style={
83
- [
84
- {
85
- "backgroundColor": "#401960",
86
- "borderRadius": 999,
87
- "bottom": "10%",
88
- "height": 4,
89
- "position": "absolute",
90
- "width": 4,
91
- },
92
- undefined,
93
- ]
55
+ {
56
+ "alignItems": "center",
57
+ "backgroundColor": undefined,
58
+ "borderColor": "#001f23",
59
+ "borderRadius": 999,
60
+ "borderWidth": 0,
61
+ "height": 44,
62
+ "justifyContent": "center",
63
+ "opacity": 1,
64
+ "width": 44,
65
+ }
94
66
  }
95
- testID="calendar-date-mark"
96
- variant="primary"
97
- />
67
+ >
68
+ <Text
69
+ allowFontScaling={false}
70
+ style={
71
+ [
72
+ {
73
+ "color": "#001f23",
74
+ "fontFamily": "BeVietnamPro-Regular",
75
+ "fontSize": 14,
76
+ "letterSpacing": 0.48,
77
+ "lineHeight": 22,
78
+ },
79
+ undefined,
80
+ ]
81
+ }
82
+ themeIntent="body"
83
+ themeTypeface="neutral"
84
+ themeVariant="small"
85
+ >
86
+ 10
87
+ </Text>
88
+ <View
89
+ style={
90
+ [
91
+ {
92
+ "backgroundColor": "#401960",
93
+ "borderRadius": 999,
94
+ "bottom": "10%",
95
+ "height": 4,
96
+ "position": "absolute",
97
+ "width": 4,
98
+ },
99
+ undefined,
100
+ ]
101
+ }
102
+ testID="calendar-date-mark"
103
+ variant="primary"
104
+ />
105
+ </View>
98
106
  </View>
107
+ <View
108
+ pointerEvents="box-none"
109
+ position="bottom"
110
+ style={
111
+ [
112
+ {
113
+ "bottom": 0,
114
+ "elevation": 9999,
115
+ "flexDirection": "column-reverse",
116
+ "left": 0,
117
+ "paddingHorizontal": 24,
118
+ "paddingVertical": 16,
119
+ "position": "absolute",
120
+ "right": 0,
121
+ "top": 0,
122
+ },
123
+ undefined,
124
+ ]
125
+ }
126
+ />
99
127
  </View>
100
128
  `;
101
129
 
102
130
  exports[`CalendarRowItem renders correctly 2`] = `
103
131
  <View
104
132
  style={
105
- [
106
- {
107
- "alignItems": "center",
108
- "flexBasis": "14%",
109
- "height": 48,
110
- "justifyContent": "center",
111
- "width": 48,
112
- },
113
- undefined,
114
- ]
133
+ {
134
+ "flex": 1,
135
+ }
115
136
  }
116
- testID="calendar-date-cell"
117
137
  >
118
138
  <View
119
- accessibilityState={
120
- {
121
- "busy": undefined,
122
- "checked": undefined,
123
- "disabled": undefined,
124
- "expanded": undefined,
125
- "selected": undefined,
126
- }
127
- }
128
- accessibilityValue={
129
- {
130
- "max": undefined,
131
- "min": undefined,
132
- "now": undefined,
133
- "text": undefined,
134
- }
135
- }
136
- accessible={true}
137
- collapsable={false}
138
- focusable={true}
139
- onClick={[Function]}
140
- onResponderGrant={[Function]}
141
- onResponderMove={[Function]}
142
- onResponderRelease={[Function]}
143
- onResponderTerminate={[Function]}
144
- onResponderTerminationRequest={[Function]}
145
- onStartShouldSetResponder={[Function]}
146
139
  style={
147
- {
148
- "alignItems": "center",
149
- "backgroundColor": undefined,
150
- "borderColor": "#001f23",
151
- "borderRadius": 999,
152
- "borderWidth": 0,
153
- "height": 44,
154
- "justifyContent": "center",
155
- "opacity": 1,
156
- "width": 44,
157
- }
140
+ [
141
+ {
142
+ "alignItems": "center",
143
+ "flexBasis": "14%",
144
+ "height": 48,
145
+ "justifyContent": "center",
146
+ "width": 48,
147
+ },
148
+ undefined,
149
+ ]
158
150
  }
151
+ testID="calendar-date-cell"
159
152
  >
160
- <Text
161
- allowFontScaling={false}
162
- style={
163
- [
164
- {
165
- "color": "#4d6265",
166
- "fontFamily": "BeVietnamPro-Regular",
167
- "fontSize": 14,
168
- "letterSpacing": 0.48,
169
- "lineHeight": 22,
170
- },
171
- undefined,
172
- ]
173
- }
174
- themeIntent="subdued"
175
- themeTypeface="neutral"
176
- themeVariant="small"
177
- >
178
- 10
179
- </Text>
180
153
  <View
154
+ accessibilityState={
155
+ {
156
+ "busy": undefined,
157
+ "checked": undefined,
158
+ "disabled": undefined,
159
+ "expanded": undefined,
160
+ "selected": undefined,
161
+ }
162
+ }
163
+ accessibilityValue={
164
+ {
165
+ "max": undefined,
166
+ "min": undefined,
167
+ "now": undefined,
168
+ "text": undefined,
169
+ }
170
+ }
171
+ accessible={true}
172
+ collapsable={false}
173
+ focusable={true}
174
+ onClick={[Function]}
175
+ onResponderGrant={[Function]}
176
+ onResponderMove={[Function]}
177
+ onResponderRelease={[Function]}
178
+ onResponderTerminate={[Function]}
179
+ onResponderTerminationRequest={[Function]}
180
+ onStartShouldSetResponder={[Function]}
181
181
  style={
182
- [
183
- {
184
- "backgroundColor": "#401960",
185
- "borderRadius": 999,
186
- "bottom": "10%",
187
- "height": 4,
188
- "position": "absolute",
189
- "width": 4,
190
- },
191
- undefined,
192
- ]
182
+ {
183
+ "alignItems": "center",
184
+ "backgroundColor": undefined,
185
+ "borderColor": "#001f23",
186
+ "borderRadius": 999,
187
+ "borderWidth": 0,
188
+ "height": 44,
189
+ "justifyContent": "center",
190
+ "opacity": 1,
191
+ "width": 44,
192
+ }
193
193
  }
194
- testID="calendar-date-mark"
195
- variant="primary"
196
- />
194
+ >
195
+ <Text
196
+ allowFontScaling={false}
197
+ style={
198
+ [
199
+ {
200
+ "color": "#4d6265",
201
+ "fontFamily": "BeVietnamPro-Regular",
202
+ "fontSize": 14,
203
+ "letterSpacing": 0.48,
204
+ "lineHeight": 22,
205
+ },
206
+ undefined,
207
+ ]
208
+ }
209
+ themeIntent="subdued"
210
+ themeTypeface="neutral"
211
+ themeVariant="small"
212
+ >
213
+ 10
214
+ </Text>
215
+ <View
216
+ style={
217
+ [
218
+ {
219
+ "backgroundColor": "#401960",
220
+ "borderRadius": 999,
221
+ "bottom": "10%",
222
+ "height": 4,
223
+ "position": "absolute",
224
+ "width": 4,
225
+ },
226
+ undefined,
227
+ ]
228
+ }
229
+ testID="calendar-date-mark"
230
+ variant="primary"
231
+ />
232
+ </View>
197
233
  </View>
234
+ <View
235
+ pointerEvents="box-none"
236
+ position="bottom"
237
+ style={
238
+ [
239
+ {
240
+ "bottom": 0,
241
+ "elevation": 9999,
242
+ "flexDirection": "column-reverse",
243
+ "left": 0,
244
+ "paddingHorizontal": 24,
245
+ "paddingVertical": 16,
246
+ "position": "absolute",
247
+ "right": 0,
248
+ "top": 0,
249
+ },
250
+ undefined,
251
+ ]
252
+ }
253
+ />
198
254
  </View>
199
255
  `;
200
256
 
201
257
  exports[`CalendarRowItem renders correctly when is current date 1`] = `
202
258
  <View
203
259
  style={
204
- [
205
- {
206
- "alignItems": "center",
207
- "flexBasis": "14%",
208
- "height": 48,
209
- "justifyContent": "center",
210
- "width": 48,
211
- },
212
- undefined,
213
- ]
260
+ {
261
+ "flex": 1,
262
+ }
214
263
  }
215
- testID="calendar-date-cell"
216
264
  >
217
265
  <View
218
- accessibilityState={
219
- {
220
- "busy": undefined,
221
- "checked": undefined,
222
- "disabled": undefined,
223
- "expanded": undefined,
224
- "selected": undefined,
225
- }
226
- }
227
- accessibilityValue={
228
- {
229
- "max": undefined,
230
- "min": undefined,
231
- "now": undefined,
232
- "text": undefined,
233
- }
234
- }
235
- accessible={true}
236
- collapsable={false}
237
- focusable={true}
238
- onClick={[Function]}
239
- onResponderGrant={[Function]}
240
- onResponderMove={[Function]}
241
- onResponderRelease={[Function]}
242
- onResponderTerminate={[Function]}
243
- onResponderTerminationRequest={[Function]}
244
- onStartShouldSetResponder={[Function]}
245
266
  style={
246
- {
247
- "alignItems": "center",
248
- "backgroundColor": "#401960",
249
- "borderColor": "#001f23",
250
- "borderRadius": 999,
251
- "borderWidth": 0,
252
- "height": 44,
253
- "justifyContent": "center",
254
- "opacity": 1,
255
- "width": 44,
256
- }
267
+ [
268
+ {
269
+ "alignItems": "center",
270
+ "flexBasis": "14%",
271
+ "height": 48,
272
+ "justifyContent": "center",
273
+ "width": 48,
274
+ },
275
+ undefined,
276
+ ]
257
277
  }
278
+ testID="calendar-date-cell"
258
279
  >
259
- <Text
260
- allowFontScaling={false}
261
- style={
262
- [
263
- {
264
- "color": "#ffffff",
265
- "fontFamily": "BeVietnamPro-Regular",
266
- "fontSize": 14,
267
- "letterSpacing": 0.48,
268
- "lineHeight": 22,
269
- },
270
- undefined,
271
- ]
272
- }
273
- themeIntent="inverted"
274
- themeTypeface="neutral"
275
- themeVariant="small"
276
- >
277
- 10
278
- </Text>
279
280
  <View
281
+ accessibilityState={
282
+ {
283
+ "busy": undefined,
284
+ "checked": undefined,
285
+ "disabled": undefined,
286
+ "expanded": undefined,
287
+ "selected": undefined,
288
+ }
289
+ }
290
+ accessibilityValue={
291
+ {
292
+ "max": undefined,
293
+ "min": undefined,
294
+ "now": undefined,
295
+ "text": undefined,
296
+ }
297
+ }
298
+ accessible={true}
299
+ collapsable={false}
300
+ focusable={true}
301
+ onClick={[Function]}
302
+ onResponderGrant={[Function]}
303
+ onResponderMove={[Function]}
304
+ onResponderRelease={[Function]}
305
+ onResponderTerminate={[Function]}
306
+ onResponderTerminationRequest={[Function]}
307
+ onStartShouldSetResponder={[Function]}
280
308
  style={
281
- [
282
- {
283
- "backgroundColor": "#ffffff",
284
- "borderRadius": 999,
285
- "bottom": "10%",
286
- "height": 4,
287
- "position": "absolute",
288
- "width": 4,
289
- },
290
- undefined,
291
- ]
309
+ {
310
+ "alignItems": "center",
311
+ "backgroundColor": "#401960",
312
+ "borderColor": "#001f23",
313
+ "borderRadius": 999,
314
+ "borderWidth": 0,
315
+ "height": 44,
316
+ "justifyContent": "center",
317
+ "opacity": 1,
318
+ "width": 44,
319
+ }
292
320
  }
293
- testID="calendar-date-mark"
294
- variant="inverted"
295
- />
321
+ >
322
+ <Text
323
+ allowFontScaling={false}
324
+ style={
325
+ [
326
+ {
327
+ "color": "#ffffff",
328
+ "fontFamily": "BeVietnamPro-Regular",
329
+ "fontSize": 14,
330
+ "letterSpacing": 0.48,
331
+ "lineHeight": 22,
332
+ },
333
+ undefined,
334
+ ]
335
+ }
336
+ themeIntent="inverted"
337
+ themeTypeface="neutral"
338
+ themeVariant="small"
339
+ >
340
+ 10
341
+ </Text>
342
+ <View
343
+ style={
344
+ [
345
+ {
346
+ "backgroundColor": "#ffffff",
347
+ "borderRadius": 999,
348
+ "bottom": "10%",
349
+ "height": 4,
350
+ "position": "absolute",
351
+ "width": 4,
352
+ },
353
+ undefined,
354
+ ]
355
+ }
356
+ testID="calendar-date-mark"
357
+ variant="inverted"
358
+ />
359
+ </View>
296
360
  </View>
361
+ <View
362
+ pointerEvents="box-none"
363
+ position="bottom"
364
+ style={
365
+ [
366
+ {
367
+ "bottom": 0,
368
+ "elevation": 9999,
369
+ "flexDirection": "column-reverse",
370
+ "left": 0,
371
+ "paddingHorizontal": 24,
372
+ "paddingVertical": 16,
373
+ "position": "absolute",
374
+ "right": 0,
375
+ "top": 0,
376
+ },
377
+ undefined,
378
+ ]
379
+ }
380
+ />
297
381
  </View>
298
382
  `;
299
383
 
300
384
  exports[`CalendarRowItem renders correctly when selected, and is current date equal to $current 1`] = `
301
385
  <View
302
386
  style={
303
- [
304
- {
305
- "alignItems": "center",
306
- "flexBasis": "14%",
307
- "height": 48,
308
- "justifyContent": "center",
309
- "width": 48,
310
- },
311
- undefined,
312
- ]
387
+ {
388
+ "flex": 1,
389
+ }
313
390
  }
314
- testID="calendar-date-cell"
315
391
  >
316
392
  <View
317
- accessibilityState={
318
- {
319
- "busy": undefined,
320
- "checked": undefined,
321
- "disabled": undefined,
322
- "expanded": undefined,
323
- "selected": undefined,
324
- }
325
- }
326
- accessibilityValue={
327
- {
328
- "max": undefined,
329
- "min": undefined,
330
- "now": undefined,
331
- "text": undefined,
332
- }
333
- }
334
- accessible={true}
335
- collapsable={false}
336
- focusable={true}
337
- onClick={[Function]}
338
- onResponderGrant={[Function]}
339
- onResponderMove={[Function]}
340
- onResponderRelease={[Function]}
341
- onResponderTerminate={[Function]}
342
- onResponderTerminationRequest={[Function]}
343
- onStartShouldSetResponder={[Function]}
344
393
  style={
345
- {
346
- "alignItems": "center",
347
- "backgroundColor": "#401960",
348
- "borderColor": "#001f23",
349
- "borderRadius": 999,
350
- "borderWidth": 0,
351
- "height": 44,
352
- "justifyContent": "center",
353
- "opacity": 1,
354
- "width": 44,
355
- }
394
+ [
395
+ {
396
+ "alignItems": "center",
397
+ "flexBasis": "14%",
398
+ "height": 48,
399
+ "justifyContent": "center",
400
+ "width": 48,
401
+ },
402
+ undefined,
403
+ ]
356
404
  }
405
+ testID="calendar-date-cell"
357
406
  >
358
- <Text
359
- allowFontScaling={false}
360
- style={
361
- [
362
- {
363
- "color": "#ffffff",
364
- "fontFamily": "BeVietnamPro-Regular",
365
- "fontSize": 14,
366
- "letterSpacing": 0.48,
367
- "lineHeight": 22,
368
- },
369
- undefined,
370
- ]
371
- }
372
- themeIntent="inverted"
373
- themeTypeface="neutral"
374
- themeVariant="small"
375
- >
376
- 10
377
- </Text>
378
407
  <View
408
+ accessibilityState={
409
+ {
410
+ "busy": undefined,
411
+ "checked": undefined,
412
+ "disabled": undefined,
413
+ "expanded": undefined,
414
+ "selected": undefined,
415
+ }
416
+ }
417
+ accessibilityValue={
418
+ {
419
+ "max": undefined,
420
+ "min": undefined,
421
+ "now": undefined,
422
+ "text": undefined,
423
+ }
424
+ }
425
+ accessible={true}
426
+ collapsable={false}
427
+ focusable={true}
428
+ onClick={[Function]}
429
+ onResponderGrant={[Function]}
430
+ onResponderMove={[Function]}
431
+ onResponderRelease={[Function]}
432
+ onResponderTerminate={[Function]}
433
+ onResponderTerminationRequest={[Function]}
434
+ onStartShouldSetResponder={[Function]}
379
435
  style={
380
- [
381
- {
382
- "backgroundColor": "#ffffff",
383
- "borderRadius": 999,
384
- "bottom": "10%",
385
- "height": 4,
386
- "position": "absolute",
387
- "width": 4,
388
- },
389
- undefined,
390
- ]
436
+ {
437
+ "alignItems": "center",
438
+ "backgroundColor": "#401960",
439
+ "borderColor": "#001f23",
440
+ "borderRadius": 999,
441
+ "borderWidth": 0,
442
+ "height": 44,
443
+ "justifyContent": "center",
444
+ "opacity": 1,
445
+ "width": 44,
446
+ }
391
447
  }
392
- testID="calendar-date-mark"
393
- variant="inverted"
394
- />
448
+ >
449
+ <Text
450
+ allowFontScaling={false}
451
+ style={
452
+ [
453
+ {
454
+ "color": "#ffffff",
455
+ "fontFamily": "BeVietnamPro-Regular",
456
+ "fontSize": 14,
457
+ "letterSpacing": 0.48,
458
+ "lineHeight": 22,
459
+ },
460
+ undefined,
461
+ ]
462
+ }
463
+ themeIntent="inverted"
464
+ themeTypeface="neutral"
465
+ themeVariant="small"
466
+ >
467
+ 10
468
+ </Text>
469
+ <View
470
+ style={
471
+ [
472
+ {
473
+ "backgroundColor": "#ffffff",
474
+ "borderRadius": 999,
475
+ "bottom": "10%",
476
+ "height": 4,
477
+ "position": "absolute",
478
+ "width": 4,
479
+ },
480
+ undefined,
481
+ ]
482
+ }
483
+ testID="calendar-date-mark"
484
+ variant="inverted"
485
+ />
486
+ </View>
395
487
  </View>
488
+ <View
489
+ pointerEvents="box-none"
490
+ position="bottom"
491
+ style={
492
+ [
493
+ {
494
+ "bottom": 0,
495
+ "elevation": 9999,
496
+ "flexDirection": "column-reverse",
497
+ "left": 0,
498
+ "paddingHorizontal": 24,
499
+ "paddingVertical": 16,
500
+ "position": "absolute",
501
+ "right": 0,
502
+ "top": 0,
503
+ },
504
+ undefined,
505
+ ]
506
+ }
507
+ />
396
508
  </View>
397
509
  `;
398
510
 
399
511
  exports[`CalendarRowItem renders correctly when selected, and is current date equal to $current 2`] = `
400
512
  <View
401
513
  style={
402
- [
403
- {
404
- "alignItems": "center",
405
- "flexBasis": "14%",
406
- "height": 48,
407
- "justifyContent": "center",
408
- "width": 48,
409
- },
410
- undefined,
411
- ]
514
+ {
515
+ "flex": 1,
516
+ }
412
517
  }
413
- testID="calendar-date-cell"
414
518
  >
415
519
  <View
416
- accessibilityState={
417
- {
418
- "busy": undefined,
419
- "checked": undefined,
420
- "disabled": undefined,
421
- "expanded": undefined,
422
- "selected": undefined,
423
- }
424
- }
425
- accessibilityValue={
426
- {
427
- "max": undefined,
428
- "min": undefined,
429
- "now": undefined,
430
- "text": undefined,
431
- }
432
- }
433
- accessible={true}
434
- collapsable={false}
435
- focusable={true}
436
- onClick={[Function]}
437
- onResponderGrant={[Function]}
438
- onResponderMove={[Function]}
439
- onResponderRelease={[Function]}
440
- onResponderTerminate={[Function]}
441
- onResponderTerminationRequest={[Function]}
442
- onStartShouldSetResponder={[Function]}
443
520
  style={
444
- {
445
- "alignItems": "center",
446
- "backgroundColor": "#401960",
447
- "borderColor": "#001f23",
448
- "borderRadius": 999,
449
- "borderWidth": 0,
450
- "height": 44,
451
- "justifyContent": "center",
452
- "opacity": 1,
453
- "width": 44,
454
- }
521
+ [
522
+ {
523
+ "alignItems": "center",
524
+ "flexBasis": "14%",
525
+ "height": 48,
526
+ "justifyContent": "center",
527
+ "width": 48,
528
+ },
529
+ undefined,
530
+ ]
455
531
  }
532
+ testID="calendar-date-cell"
456
533
  >
457
- <Text
458
- allowFontScaling={false}
459
- style={
460
- [
461
- {
462
- "color": "#ffffff",
463
- "fontFamily": "BeVietnamPro-Regular",
464
- "fontSize": 14,
465
- "letterSpacing": 0.48,
466
- "lineHeight": 22,
467
- },
468
- undefined,
469
- ]
470
- }
471
- themeIntent="inverted"
472
- themeTypeface="neutral"
473
- themeVariant="small"
474
- >
475
- 10
476
- </Text>
477
534
  <View
535
+ accessibilityState={
536
+ {
537
+ "busy": undefined,
538
+ "checked": undefined,
539
+ "disabled": undefined,
540
+ "expanded": undefined,
541
+ "selected": undefined,
542
+ }
543
+ }
544
+ accessibilityValue={
545
+ {
546
+ "max": undefined,
547
+ "min": undefined,
548
+ "now": undefined,
549
+ "text": undefined,
550
+ }
551
+ }
552
+ accessible={true}
553
+ collapsable={false}
554
+ focusable={true}
555
+ onClick={[Function]}
556
+ onResponderGrant={[Function]}
557
+ onResponderMove={[Function]}
558
+ onResponderRelease={[Function]}
559
+ onResponderTerminate={[Function]}
560
+ onResponderTerminationRequest={[Function]}
561
+ onStartShouldSetResponder={[Function]}
478
562
  style={
479
- [
480
- {
481
- "backgroundColor": "#ffffff",
482
- "borderRadius": 999,
483
- "bottom": "10%",
484
- "height": 4,
485
- "position": "absolute",
486
- "width": 4,
487
- },
488
- undefined,
489
- ]
563
+ {
564
+ "alignItems": "center",
565
+ "backgroundColor": "#401960",
566
+ "borderColor": "#001f23",
567
+ "borderRadius": 999,
568
+ "borderWidth": 0,
569
+ "height": 44,
570
+ "justifyContent": "center",
571
+ "opacity": 1,
572
+ "width": 44,
573
+ }
490
574
  }
491
- testID="calendar-date-mark"
492
- variant="inverted"
493
- />
575
+ >
576
+ <Text
577
+ allowFontScaling={false}
578
+ style={
579
+ [
580
+ {
581
+ "color": "#ffffff",
582
+ "fontFamily": "BeVietnamPro-Regular",
583
+ "fontSize": 14,
584
+ "letterSpacing": 0.48,
585
+ "lineHeight": 22,
586
+ },
587
+ undefined,
588
+ ]
589
+ }
590
+ themeIntent="inverted"
591
+ themeTypeface="neutral"
592
+ themeVariant="small"
593
+ >
594
+ 10
595
+ </Text>
596
+ <View
597
+ style={
598
+ [
599
+ {
600
+ "backgroundColor": "#ffffff",
601
+ "borderRadius": 999,
602
+ "bottom": "10%",
603
+ "height": 4,
604
+ "position": "absolute",
605
+ "width": 4,
606
+ },
607
+ undefined,
608
+ ]
609
+ }
610
+ testID="calendar-date-mark"
611
+ variant="inverted"
612
+ />
613
+ </View>
494
614
  </View>
615
+ <View
616
+ pointerEvents="box-none"
617
+ position="bottom"
618
+ style={
619
+ [
620
+ {
621
+ "bottom": 0,
622
+ "elevation": 9999,
623
+ "flexDirection": "column-reverse",
624
+ "left": 0,
625
+ "paddingHorizontal": 24,
626
+ "paddingVertical": 16,
627
+ "position": "absolute",
628
+ "right": 0,
629
+ "top": 0,
630
+ },
631
+ undefined,
632
+ ]
633
+ }
634
+ />
495
635
  </View>
496
636
  `;