@hero-design/rn 7.22.3 → 7.24.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 (197) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +2974 -10456
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +2977 -10455
  6. package/package.json +8 -6
  7. package/rollup.config.js +1 -0
  8. package/src/components/Box/StyledBox.tsx +1 -2
  9. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +19 -4
  10. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +19 -4
  11. package/src/components/Empty/index.tsx +1 -2
  12. package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
  13. package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
  14. package/src/components/Icon/HeroIcon/index.tsx +3 -7
  15. package/src/components/Icon/IconList.ts +8 -5
  16. package/src/components/Icon/index.tsx +1 -0
  17. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +69 -0
  18. package/src/components/RefreshControl/__tests__/index.spec.tsx +55 -0
  19. package/src/components/RefreshControl/index.tsx +23 -0
  20. package/src/components/RichTextEditor/MentionList.tsx +25 -4
  21. package/src/components/RichTextEditor/RichTextEditor.tsx +3 -4
  22. package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +6 -6
  23. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +38 -8
  24. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -4
  25. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +95 -20
  26. package/src/components/Select/MultiSelect/index.tsx +1 -1
  27. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -4
  28. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +95 -20
  29. package/src/components/Select/SingleSelect/index.tsx +1 -1
  30. package/src/components/Select/types.ts +1 -3
  31. package/src/components/Spinner/AnimatedSpinner.tsx +22 -7
  32. package/src/components/Spinner/StyledSpinner.tsx +16 -11
  33. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
  34. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
  35. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
  36. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +532 -72
  37. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
  38. package/src/components/Spinner/index.tsx +6 -1
  39. package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
  40. package/src/components/Swipeable/SwipeableAction.tsx +45 -0
  41. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
  42. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
  43. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
  44. package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
  45. package/src/components/Swipeable/index.tsx +148 -0
  46. package/src/components/TextInput/StyledTextInput.tsx +18 -19
  47. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +14 -8
  48. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +52 -150
  49. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +247 -52
  50. package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
  51. package/src/components/TextInput/index.tsx +27 -9
  52. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +19 -4
  53. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +19 -4
  54. package/src/index.ts +8 -0
  55. package/src/theme/ThemeSwitcher.tsx +9 -2
  56. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +20 -9
  57. package/src/theme/components/refreshControl.ts +11 -0
  58. package/src/theme/components/richTextEditor.ts +6 -5
  59. package/src/theme/components/spinner.ts +4 -1
  60. package/src/theme/components/swipeable.ts +13 -0
  61. package/src/theme/components/textInput.ts +0 -5
  62. package/src/theme/getTheme.ts +6 -0
  63. package/src/theme/global/colors/jobs.ts +17 -0
  64. package/src/theme/global/colors/work.ts +0 -2
  65. package/src/theme/global/index.ts +8 -1
  66. package/src/theme/index.ts +6 -1
  67. package/src/types.ts +2 -0
  68. package/src/utils/__tests__/helpers.spec.ts +27 -0
  69. package/src/utils/helpers.ts +21 -0
  70. package/testUtils/setup.tsx +13 -0
  71. package/tsconfig.prod.json +4 -0
  72. package/types/components/Empty/index.d.ts +1 -2
  73. package/types/components/Icon/IconList.d.ts +1 -1
  74. package/types/components/Icon/index.d.ts +4 -1
  75. package/types/components/Icon/utils.d.ts +1 -1
  76. package/types/components/RefreshControl/index.d.ts +5 -0
  77. package/types/components/RichTextEditor/MentionList.d.ts +7 -3
  78. package/types/components/RichTextEditor/index.d.ts +1 -1
  79. package/types/components/Select/types.d.ts +1 -3
  80. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  81. package/types/components/Spinner/StyledSpinner.d.ts +1 -0
  82. package/types/components/Spinner/index.d.ts +5 -1
  83. package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
  84. package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
  85. package/types/components/Swipeable/index.d.ts +41 -0
  86. package/types/components/TextInput/StyledTextInput.d.ts +11 -4
  87. package/types/components/TextInput/index.d.ts +1 -1
  88. package/types/index.d.ts +4 -2
  89. package/types/theme/ThemeSwitcher.d.ts +1 -1
  90. package/types/theme/components/refreshControl.d.ts +7 -0
  91. package/types/theme/components/richTextEditor.d.ts +4 -3
  92. package/types/theme/components/spinner.d.ts +4 -1
  93. package/types/theme/components/swipeable.d.ts +9 -0
  94. package/types/theme/components/textInput.d.ts +0 -5
  95. package/types/theme/getTheme.d.ts +4 -0
  96. package/types/theme/global/colors/jobs.d.ts +3 -0
  97. package/types/theme/global/index.d.ts +2 -1
  98. package/types/theme/index.d.ts +2 -2
  99. package/types/types.d.ts +2 -1
  100. package/types/utils/helpers.d.ts +2 -0
  101. package/src/components/Box/__tests__/helpers.spec.ts +0 -14
  102. package/src/components/Box/helpers.ts +0 -10
  103. package/src/components/Icon/HeroIcon/selection.json +0 -7029
  104. package/types/components/Accordion/__tests__/AccordionItem.spec.d.ts +0 -1
  105. package/types/components/Accordion/__tests__/StyledAccordion.spec.d.ts +0 -1
  106. package/types/components/Accordion/__tests__/index.spec.d.ts +0 -1
  107. package/types/components/Alert/__tests__/index.spec.d.ts +0 -1
  108. package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -1
  109. package/types/components/Avatar/__tests__/index.spec.d.ts +0 -1
  110. package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -1
  111. package/types/components/Badge/__tests__/Status.spec.d.ts +0 -1
  112. package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
  113. package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -1
  114. package/types/components/Box/__tests__/helpers.spec.d.ts +0 -1
  115. package/types/components/Box/__tests__/index.spec.d.ts +0 -1
  116. package/types/components/Box/helpers.d.ts +0 -1
  117. package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -1
  118. package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -1
  119. package/types/components/Button/UtilityButton/__tests__/index.spec.d.ts +0 -1
  120. package/types/components/Button/__tests__/Button.spec.d.ts +0 -1
  121. package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -1
  122. package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -1
  123. package/types/components/Calendar/__tests__/CalendarRowItem.spec.d.ts +0 -1
  124. package/types/components/Calendar/__tests__/helper.spec.d.ts +0 -1
  125. package/types/components/Calendar/__tests__/index.spec.d.ts +0 -1
  126. package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +0 -1
  127. package/types/components/Card/DataCard/__tests__/index.spec.d.ts +0 -1
  128. package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
  129. package/types/components/Card/__tests__/index.spec.d.ts +0 -1
  130. package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -1
  131. package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -1
  132. package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
  133. package/types/components/Collapse/__tests__/index.spec.d.ts +0 -1
  134. package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -1
  135. package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -1
  136. package/types/components/DatePicker/__tests__/DatePicker.spec.d.ts +0 -1
  137. package/types/components/DatePicker/__tests__/DatePickerAndroid.spec.d.ts +0 -1
  138. package/types/components/DatePicker/__tests__/DatePickerIOS.spec.d.ts +0 -1
  139. package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
  140. package/types/components/Drawer/DragableDrawer/__tests__/helpers.spec.d.ts +0 -1
  141. package/types/components/Drawer/DragableDrawer/__tests__/index.spec.d.ts +0 -1
  142. package/types/components/Drawer/__tests__/index.spec.d.ts +0 -1
  143. package/types/components/Empty/__tests__/index.spec.d.ts +0 -1
  144. package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
  145. package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
  146. package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
  147. package/types/components/FAB/__tests__/index.spec.d.ts +0 -1
  148. package/types/components/Icon/__tests__/index.spec.d.ts +0 -1
  149. package/types/components/Image/__tests__/index.spec.d.ts +0 -1
  150. package/types/components/List/__tests__/BasicListItem.spec.d.ts +0 -1
  151. package/types/components/List/__tests__/ListItem.spec.d.ts +0 -1
  152. package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +0 -1
  153. package/types/components/List/__tests__/StyledListItem.spec.d.ts +0 -1
  154. package/types/components/PinInput/__tests__/PinCell.spec.d.ts +0 -1
  155. package/types/components/PinInput/__tests__/StyledPinInput.spec.d.ts +0 -1
  156. package/types/components/PinInput/__tests__/index.spec.d.ts +0 -1
  157. package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -1
  158. package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -1
  159. package/types/components/RichTextEditor/__tests__/EditorToolbar.spec.d.ts +0 -1
  160. package/types/components/RichTextEditor/__tests__/MentionList.spec.d.ts +0 -1
  161. package/types/components/RichTextEditor/__tests__/RichTextEditor.spec.d.ts +0 -1
  162. package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -1
  163. package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -1
  164. package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +0 -1
  165. package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +0 -1
  166. package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -1
  167. package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +0 -1
  168. package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +0 -1
  169. package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +0 -1
  170. package/types/components/Select/__tests__/StyledSelect.spec.d.ts +0 -1
  171. package/types/components/Select/__tests__/helpers.spec.d.ts +0 -1
  172. package/types/components/Slider/__tests__/index.spec.d.ts +0 -1
  173. package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -1
  174. package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -1
  175. package/types/components/Spinner/__tests__/index.spec.d.ts +0 -1
  176. package/types/components/Switch/SelectorSwitch/__tests__/Option.spec.d.ts +0 -1
  177. package/types/components/Switch/SelectorSwitch/__tests__/index.spec.d.ts +0 -1
  178. package/types/components/Switch/__tests__/StyledSwitch.spec.d.ts +0 -1
  179. package/types/components/Switch/__tests__/index.spec.d.ts +0 -1
  180. package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
  181. package/types/components/Tabs/__tests__/TabWithBadge.spec.d.ts +0 -1
  182. package/types/components/Tabs/__tests__/index.spec.d.ts +0 -1
  183. package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -1
  184. package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -1
  185. package/types/components/TextInput/__tests__/index.spec.d.ts +0 -1
  186. package/types/components/TimePicker/__tests__/TimePicker.spec.d.ts +0 -1
  187. package/types/components/TimePicker/__tests__/TimePickerAndroid.spec.d.ts +0 -1
  188. package/types/components/TimePicker/__tests__/TimePickerIOS.spec.d.ts +0 -1
  189. package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -1
  190. package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -1
  191. package/types/components/Toast/__tests__/index.spec.d.ts +0 -1
  192. package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +0 -1
  193. package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +0 -1
  194. package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
  195. package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
  196. package/types/theme/__tests__/index.spec.d.ts +0 -1
  197. package/types/utils/__tests__/scale.spec.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
3
+ exports[`StyledSpinnerContainer renders correctly when intent is $themeIntent, and size is $themeSize 1`] = `
4
4
  <View
5
5
  style={
6
6
  Array [
@@ -33,13 +33,13 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
33
33
  Array [
34
34
  Object {
35
35
  "flexDirection": "row",
36
- "marginBottom": 8,
36
+ "marginBottom": 4,
37
37
  },
38
38
  Object {},
39
39
  ]
40
40
  }
41
41
  themePosition="top"
42
- themeSize="medium"
42
+ themeSize="small"
43
43
  >
44
44
  <View
45
45
  collapsable={false}
@@ -49,15 +49,16 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
49
49
  Object {
50
50
  "backgroundColor": "#001f23",
51
51
  "borderRadius": 999,
52
- "height": 16,
53
- "opacity": 1,
54
- "width": 16,
52
+ "height": 8,
53
+ "opacity": 0.9,
54
+ "width": 8,
55
55
  },
56
56
  Object {},
57
57
  ]
58
58
  }
59
+ themeIntent="primary"
59
60
  themePosition="topLeft"
60
- themeSize="medium"
61
+ themeSize="small"
61
62
  />
62
63
  <View
63
64
  collapsable={false}
@@ -67,16 +68,17 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
67
68
  Object {
68
69
  "backgroundColor": "#001f23",
69
70
  "borderRadius": 999,
70
- "height": 16,
71
- "marginLeft": 8,
72
- "opacity": 0.75,
73
- "width": 16,
71
+ "height": 8,
72
+ "marginLeft": 4,
73
+ "opacity": 0.675,
74
+ "width": 8,
74
75
  },
75
76
  Object {},
76
77
  ]
77
78
  }
79
+ themeIntent="primary"
78
80
  themePosition="topRight"
79
- themeSize="medium"
81
+ themeSize="small"
80
82
  />
81
83
  </View>
82
84
  <View
@@ -92,7 +94,7 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
92
94
  ]
93
95
  }
94
96
  themePosition="bottom"
95
- themeSize="medium"
97
+ themeSize="small"
96
98
  >
97
99
  <View
98
100
  collapsable={false}
@@ -102,15 +104,16 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
102
104
  Object {
103
105
  "backgroundColor": "#001f23",
104
106
  "borderRadius": 999,
105
- "height": 16,
106
- "opacity": 0.5,
107
- "width": 16,
107
+ "height": 8,
108
+ "opacity": 0.45,
109
+ "width": 8,
108
110
  },
109
111
  Object {},
110
112
  ]
111
113
  }
114
+ themeIntent="primary"
112
115
  themePosition="bottomLeft"
113
- themeSize="medium"
116
+ themeSize="small"
114
117
  />
115
118
  <View
116
119
  collapsable={false}
@@ -120,23 +123,24 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
120
123
  Object {
121
124
  "backgroundColor": "#001f23",
122
125
  "borderRadius": 999,
123
- "height": 16,
124
- "marginLeft": 8,
125
- "opacity": 0.25,
126
- "width": 16,
126
+ "height": 8,
127
+ "marginLeft": 4,
128
+ "opacity": 0.225,
129
+ "width": 8,
127
130
  },
128
131
  Object {},
129
132
  ]
130
133
  }
134
+ themeIntent="primary"
131
135
  themePosition="bottomRight"
132
- themeSize="medium"
136
+ themeSize="small"
133
137
  />
134
138
  </View>
135
139
  </View>
136
140
  </View>
137
141
  `;
138
142
 
139
- exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
143
+ exports[`StyledSpinnerContainer renders correctly when intent is $themeIntent, and size is $themeSize 2`] = `
140
144
  <View
141
145
  style={
142
146
  Array [
@@ -183,15 +187,16 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
183
187
  style={
184
188
  Array [
185
189
  Object {
186
- "backgroundColor": "#001f23",
190
+ "backgroundColor": "#ffffff",
187
191
  "borderRadius": 999,
188
192
  "height": 8,
189
- "opacity": 1,
193
+ "opacity": 0.9,
190
194
  "width": 8,
191
195
  },
192
196
  Object {},
193
197
  ]
194
198
  }
199
+ themeIntent="inverted"
195
200
  themePosition="topLeft"
196
201
  themeSize="small"
197
202
  />
@@ -201,16 +206,17 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
201
206
  style={
202
207
  Array [
203
208
  Object {
204
- "backgroundColor": "#001f23",
209
+ "backgroundColor": "#ffffff",
205
210
  "borderRadius": 999,
206
211
  "height": 8,
207
212
  "marginLeft": 4,
208
- "opacity": 0.75,
213
+ "opacity": 0.675,
209
214
  "width": 8,
210
215
  },
211
216
  Object {},
212
217
  ]
213
218
  }
219
+ themeIntent="inverted"
214
220
  themePosition="topRight"
215
221
  themeSize="small"
216
222
  />
@@ -236,15 +242,16 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
236
242
  style={
237
243
  Array [
238
244
  Object {
239
- "backgroundColor": "#001f23",
245
+ "backgroundColor": "#ffffff",
240
246
  "borderRadius": 999,
241
247
  "height": 8,
242
- "opacity": 0.5,
248
+ "opacity": 0.45,
243
249
  "width": 8,
244
250
  },
245
251
  Object {},
246
252
  ]
247
253
  }
254
+ themeIntent="inverted"
248
255
  themePosition="bottomLeft"
249
256
  themeSize="small"
250
257
  />
@@ -254,16 +261,17 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
254
261
  style={
255
262
  Array [
256
263
  Object {
257
- "backgroundColor": "#001f23",
264
+ "backgroundColor": "#ffffff",
258
265
  "borderRadius": 999,
259
266
  "height": 8,
260
267
  "marginLeft": 4,
261
- "opacity": 0.25,
268
+ "opacity": 0.225,
262
269
  "width": 8,
263
270
  },
264
271
  Object {},
265
272
  ]
266
273
  }
274
+ themeIntent="inverted"
267
275
  themePosition="bottomRight"
268
276
  themeSize="small"
269
277
  />
@@ -272,90 +280,347 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
272
280
  </View>
273
281
  `;
274
282
 
275
- exports[`StyledSpinnerRow renders correctly when position is bottom, and size is medium 1`] = `
283
+ exports[`StyledSpinnerContainer renders correctly when intent is $themeIntent, and size is $themeSize 3`] = `
276
284
  <View
277
285
  style={
278
286
  Array [
279
287
  Object {
280
- "flexDirection": "row",
281
- "marginBottom": 0,
288
+ "alignItems": "center",
289
+ "height": "100%",
290
+ "justifyContent": "center",
282
291
  },
283
292
  undefined,
284
293
  ]
285
294
  }
286
- themePosition="bottom"
287
- themeSize="medium"
288
- />
295
+ >
296
+ <View
297
+ collapsable={false}
298
+ nativeID="animatedComponent"
299
+ style={
300
+ Object {
301
+ "transform": Array [
302
+ Object {
303
+ "rotate": "0deg",
304
+ },
305
+ ],
306
+ }
307
+ }
308
+ >
309
+ <View
310
+ collapsable={false}
311
+ nativeID="animatedComponent"
312
+ style={
313
+ Array [
314
+ Object {
315
+ "flexDirection": "row",
316
+ "marginBottom": 8,
317
+ },
318
+ Object {},
319
+ ]
320
+ }
321
+ themePosition="top"
322
+ themeSize="medium"
323
+ >
324
+ <View
325
+ collapsable={false}
326
+ nativeID="animatedComponent"
327
+ style={
328
+ Array [
329
+ Object {
330
+ "backgroundColor": "#001f23",
331
+ "borderRadius": 999,
332
+ "height": 16,
333
+ "opacity": 0.9,
334
+ "width": 16,
335
+ },
336
+ Object {},
337
+ ]
338
+ }
339
+ themeIntent="primary"
340
+ themePosition="topLeft"
341
+ themeSize="medium"
342
+ />
343
+ <View
344
+ collapsable={false}
345
+ nativeID="animatedComponent"
346
+ style={
347
+ Array [
348
+ Object {
349
+ "backgroundColor": "#001f23",
350
+ "borderRadius": 999,
351
+ "height": 16,
352
+ "marginLeft": 8,
353
+ "opacity": 0.675,
354
+ "width": 16,
355
+ },
356
+ Object {},
357
+ ]
358
+ }
359
+ themeIntent="primary"
360
+ themePosition="topRight"
361
+ themeSize="medium"
362
+ />
363
+ </View>
364
+ <View
365
+ collapsable={false}
366
+ nativeID="animatedComponent"
367
+ style={
368
+ Array [
369
+ Object {
370
+ "flexDirection": "row",
371
+ "marginBottom": 0,
372
+ },
373
+ Object {},
374
+ ]
375
+ }
376
+ themePosition="bottom"
377
+ themeSize="medium"
378
+ >
379
+ <View
380
+ collapsable={false}
381
+ nativeID="animatedComponent"
382
+ style={
383
+ Array [
384
+ Object {
385
+ "backgroundColor": "#001f23",
386
+ "borderRadius": 999,
387
+ "height": 16,
388
+ "opacity": 0.45,
389
+ "width": 16,
390
+ },
391
+ Object {},
392
+ ]
393
+ }
394
+ themeIntent="primary"
395
+ themePosition="bottomLeft"
396
+ themeSize="medium"
397
+ />
398
+ <View
399
+ collapsable={false}
400
+ nativeID="animatedComponent"
401
+ style={
402
+ Array [
403
+ Object {
404
+ "backgroundColor": "#001f23",
405
+ "borderRadius": 999,
406
+ "height": 16,
407
+ "marginLeft": 8,
408
+ "opacity": 0.225,
409
+ "width": 16,
410
+ },
411
+ Object {},
412
+ ]
413
+ }
414
+ themeIntent="primary"
415
+ themePosition="bottomRight"
416
+ themeSize="medium"
417
+ />
418
+ </View>
419
+ </View>
420
+ </View>
289
421
  `;
290
422
 
291
- exports[`StyledSpinnerRow renders correctly when position is bottom, and size is small 1`] = `
423
+ exports[`StyledSpinnerContainer renders correctly when intent is $themeIntent, and size is $themeSize 4`] = `
292
424
  <View
293
425
  style={
294
426
  Array [
295
427
  Object {
296
- "flexDirection": "row",
297
- "marginBottom": 0,
428
+ "alignItems": "center",
429
+ "height": "100%",
430
+ "justifyContent": "center",
298
431
  },
299
432
  undefined,
300
433
  ]
301
434
  }
302
- themePosition="bottom"
303
- themeSize="small"
304
- />
435
+ >
436
+ <View
437
+ collapsable={false}
438
+ nativeID="animatedComponent"
439
+ style={
440
+ Object {
441
+ "transform": Array [
442
+ Object {
443
+ "rotate": "0deg",
444
+ },
445
+ ],
446
+ }
447
+ }
448
+ >
449
+ <View
450
+ collapsable={false}
451
+ nativeID="animatedComponent"
452
+ style={
453
+ Array [
454
+ Object {
455
+ "flexDirection": "row",
456
+ "marginBottom": 8,
457
+ },
458
+ Object {},
459
+ ]
460
+ }
461
+ themePosition="top"
462
+ themeSize="medium"
463
+ >
464
+ <View
465
+ collapsable={false}
466
+ nativeID="animatedComponent"
467
+ style={
468
+ Array [
469
+ Object {
470
+ "backgroundColor": "#ffffff",
471
+ "borderRadius": 999,
472
+ "height": 16,
473
+ "opacity": 0.9,
474
+ "width": 16,
475
+ },
476
+ Object {},
477
+ ]
478
+ }
479
+ themeIntent="inverted"
480
+ themePosition="topLeft"
481
+ themeSize="medium"
482
+ />
483
+ <View
484
+ collapsable={false}
485
+ nativeID="animatedComponent"
486
+ style={
487
+ Array [
488
+ Object {
489
+ "backgroundColor": "#ffffff",
490
+ "borderRadius": 999,
491
+ "height": 16,
492
+ "marginLeft": 8,
493
+ "opacity": 0.675,
494
+ "width": 16,
495
+ },
496
+ Object {},
497
+ ]
498
+ }
499
+ themeIntent="inverted"
500
+ themePosition="topRight"
501
+ themeSize="medium"
502
+ />
503
+ </View>
504
+ <View
505
+ collapsable={false}
506
+ nativeID="animatedComponent"
507
+ style={
508
+ Array [
509
+ Object {
510
+ "flexDirection": "row",
511
+ "marginBottom": 0,
512
+ },
513
+ Object {},
514
+ ]
515
+ }
516
+ themePosition="bottom"
517
+ themeSize="medium"
518
+ >
519
+ <View
520
+ collapsable={false}
521
+ nativeID="animatedComponent"
522
+ style={
523
+ Array [
524
+ Object {
525
+ "backgroundColor": "#ffffff",
526
+ "borderRadius": 999,
527
+ "height": 16,
528
+ "opacity": 0.45,
529
+ "width": 16,
530
+ },
531
+ Object {},
532
+ ]
533
+ }
534
+ themeIntent="inverted"
535
+ themePosition="bottomLeft"
536
+ themeSize="medium"
537
+ />
538
+ <View
539
+ collapsable={false}
540
+ nativeID="animatedComponent"
541
+ style={
542
+ Array [
543
+ Object {
544
+ "backgroundColor": "#ffffff",
545
+ "borderRadius": 999,
546
+ "height": 16,
547
+ "marginLeft": 8,
548
+ "opacity": 0.225,
549
+ "width": 16,
550
+ },
551
+ Object {},
552
+ ]
553
+ }
554
+ themeIntent="inverted"
555
+ themePosition="bottomRight"
556
+ themeSize="medium"
557
+ />
558
+ </View>
559
+ </View>
560
+ </View>
305
561
  `;
306
562
 
307
- exports[`StyledSpinnerRow renders correctly when position is top, and size is medium 1`] = `
563
+ exports[`StyledSpinnerDot renders correctly when position is bottomLeft, size is medium, intent is inverted 1`] = `
308
564
  <View
309
565
  style={
310
566
  Array [
311
567
  Object {
312
- "flexDirection": "row",
313
- "marginBottom": 8,
568
+ "backgroundColor": "#ffffff",
569
+ "borderRadius": 999,
570
+ "height": 16,
571
+ "opacity": 0.45,
572
+ "width": 16,
314
573
  },
315
574
  undefined,
316
575
  ]
317
576
  }
318
- themePosition="top"
577
+ themeIntent="inverted"
578
+ themePosition="bottomLeft"
319
579
  themeSize="medium"
320
580
  />
321
581
  `;
322
582
 
323
- exports[`StyledSpinnerRow renders correctly when position is top, and size is small 1`] = `
583
+ exports[`StyledSpinnerDot renders correctly when position is bottomLeft, size is medium, intent is primary 1`] = `
324
584
  <View
325
585
  style={
326
586
  Array [
327
587
  Object {
328
- "flexDirection": "row",
329
- "marginBottom": 4,
588
+ "backgroundColor": "#001f23",
589
+ "borderRadius": 999,
590
+ "height": 16,
591
+ "opacity": 0.45,
592
+ "width": 16,
330
593
  },
331
594
  undefined,
332
595
  ]
333
596
  }
334
- themePosition="top"
335
- themeSize="small"
597
+ themeIntent="primary"
598
+ themePosition="bottomLeft"
599
+ themeSize="medium"
336
600
  />
337
601
  `;
338
602
 
339
- exports[`StyledSpinnerText renders correctly when position is bottomLeft, size is medium 1`] = `
603
+ exports[`StyledSpinnerDot renders correctly when position is bottomLeft, size is small, intent is inverted 1`] = `
340
604
  <View
341
605
  style={
342
606
  Array [
343
607
  Object {
344
- "backgroundColor": "#001f23",
608
+ "backgroundColor": "#ffffff",
345
609
  "borderRadius": 999,
346
- "height": 16,
347
- "opacity": 0.5,
348
- "width": 16,
610
+ "height": 8,
611
+ "opacity": 0.45,
612
+ "width": 8,
349
613
  },
350
614
  undefined,
351
615
  ]
352
616
  }
617
+ themeIntent="inverted"
353
618
  themePosition="bottomLeft"
354
- themeSize="medium"
619
+ themeSize="small"
355
620
  />
356
621
  `;
357
622
 
358
- exports[`StyledSpinnerText renders correctly when position is bottomLeft, size is small 1`] = `
623
+ exports[`StyledSpinnerDot renders correctly when position is bottomLeft, size is small, intent is primary 1`] = `
359
624
  <View
360
625
  style={
361
626
  Array [
@@ -363,18 +628,40 @@ exports[`StyledSpinnerText renders correctly when position is bottomLeft, size i
363
628
  "backgroundColor": "#001f23",
364
629
  "borderRadius": 999,
365
630
  "height": 8,
366
- "opacity": 0.5,
631
+ "opacity": 0.45,
367
632
  "width": 8,
368
633
  },
369
634
  undefined,
370
635
  ]
371
636
  }
637
+ themeIntent="primary"
372
638
  themePosition="bottomLeft"
373
639
  themeSize="small"
374
640
  />
375
641
  `;
376
642
 
377
- exports[`StyledSpinnerText renders correctly when position is bottomRight, size is medium 1`] = `
643
+ exports[`StyledSpinnerDot renders correctly when position is bottomRight, size is medium, intent is inverted 1`] = `
644
+ <View
645
+ style={
646
+ Array [
647
+ Object {
648
+ "backgroundColor": "#ffffff",
649
+ "borderRadius": 999,
650
+ "height": 16,
651
+ "marginLeft": 8,
652
+ "opacity": 0.225,
653
+ "width": 16,
654
+ },
655
+ undefined,
656
+ ]
657
+ }
658
+ themeIntent="inverted"
659
+ themePosition="bottomRight"
660
+ themeSize="medium"
661
+ />
662
+ `;
663
+
664
+ exports[`StyledSpinnerDot renders correctly when position is bottomRight, size is medium, intent is primary 1`] = `
378
665
  <View
379
666
  style={
380
667
  Array [
@@ -383,18 +670,40 @@ exports[`StyledSpinnerText renders correctly when position is bottomRight, size
383
670
  "borderRadius": 999,
384
671
  "height": 16,
385
672
  "marginLeft": 8,
386
- "opacity": 0.25,
673
+ "opacity": 0.225,
387
674
  "width": 16,
388
675
  },
389
676
  undefined,
390
677
  ]
391
678
  }
679
+ themeIntent="primary"
392
680
  themePosition="bottomRight"
393
681
  themeSize="medium"
394
682
  />
395
683
  `;
396
684
 
397
- exports[`StyledSpinnerText renders correctly when position is bottomRight, size is small 1`] = `
685
+ exports[`StyledSpinnerDot renders correctly when position is bottomRight, size is small, intent is inverted 1`] = `
686
+ <View
687
+ style={
688
+ Array [
689
+ Object {
690
+ "backgroundColor": "#ffffff",
691
+ "borderRadius": 999,
692
+ "height": 8,
693
+ "marginLeft": 4,
694
+ "opacity": 0.225,
695
+ "width": 8,
696
+ },
697
+ undefined,
698
+ ]
699
+ }
700
+ themeIntent="inverted"
701
+ themePosition="bottomRight"
702
+ themeSize="small"
703
+ />
704
+ `;
705
+
706
+ exports[`StyledSpinnerDot renders correctly when position is bottomRight, size is small, intent is primary 1`] = `
398
707
  <View
399
708
  style={
400
709
  Array [
@@ -403,18 +712,39 @@ exports[`StyledSpinnerText renders correctly when position is bottomRight, size
403
712
  "borderRadius": 999,
404
713
  "height": 8,
405
714
  "marginLeft": 4,
406
- "opacity": 0.25,
715
+ "opacity": 0.225,
407
716
  "width": 8,
408
717
  },
409
718
  undefined,
410
719
  ]
411
720
  }
721
+ themeIntent="primary"
412
722
  themePosition="bottomRight"
413
723
  themeSize="small"
414
724
  />
415
725
  `;
416
726
 
417
- exports[`StyledSpinnerText renders correctly when position is topLeft, size is medium 1`] = `
727
+ exports[`StyledSpinnerDot renders correctly when position is topLeft, size is medium, intent is inverted 1`] = `
728
+ <View
729
+ style={
730
+ Array [
731
+ Object {
732
+ "backgroundColor": "#ffffff",
733
+ "borderRadius": 999,
734
+ "height": 16,
735
+ "opacity": 0.9,
736
+ "width": 16,
737
+ },
738
+ undefined,
739
+ ]
740
+ }
741
+ themeIntent="inverted"
742
+ themePosition="topLeft"
743
+ themeSize="medium"
744
+ />
745
+ `;
746
+
747
+ exports[`StyledSpinnerDot renders correctly when position is topLeft, size is medium, intent is primary 1`] = `
418
748
  <View
419
749
  style={
420
750
  Array [
@@ -422,18 +752,39 @@ exports[`StyledSpinnerText renders correctly when position is topLeft, size is m
422
752
  "backgroundColor": "#001f23",
423
753
  "borderRadius": 999,
424
754
  "height": 16,
425
- "opacity": 1,
755
+ "opacity": 0.9,
426
756
  "width": 16,
427
757
  },
428
758
  undefined,
429
759
  ]
430
760
  }
761
+ themeIntent="primary"
431
762
  themePosition="topLeft"
432
763
  themeSize="medium"
433
764
  />
434
765
  `;
435
766
 
436
- exports[`StyledSpinnerText renders correctly when position is topLeft, size is small 1`] = `
767
+ exports[`StyledSpinnerDot renders correctly when position is topLeft, size is small, intent is inverted 1`] = `
768
+ <View
769
+ style={
770
+ Array [
771
+ Object {
772
+ "backgroundColor": "#ffffff",
773
+ "borderRadius": 999,
774
+ "height": 8,
775
+ "opacity": 0.9,
776
+ "width": 8,
777
+ },
778
+ undefined,
779
+ ]
780
+ }
781
+ themeIntent="inverted"
782
+ themePosition="topLeft"
783
+ themeSize="small"
784
+ />
785
+ `;
786
+
787
+ exports[`StyledSpinnerDot renders correctly when position is topLeft, size is small, intent is primary 1`] = `
437
788
  <View
438
789
  style={
439
790
  Array [
@@ -441,18 +792,40 @@ exports[`StyledSpinnerText renders correctly when position is topLeft, size is s
441
792
  "backgroundColor": "#001f23",
442
793
  "borderRadius": 999,
443
794
  "height": 8,
444
- "opacity": 1,
795
+ "opacity": 0.9,
445
796
  "width": 8,
446
797
  },
447
798
  undefined,
448
799
  ]
449
800
  }
801
+ themeIntent="primary"
450
802
  themePosition="topLeft"
451
803
  themeSize="small"
452
804
  />
453
805
  `;
454
806
 
455
- exports[`StyledSpinnerText renders correctly when position is topRight, size is medium 1`] = `
807
+ exports[`StyledSpinnerDot renders correctly when position is topRight, size is medium, intent is inverted 1`] = `
808
+ <View
809
+ style={
810
+ Array [
811
+ Object {
812
+ "backgroundColor": "#ffffff",
813
+ "borderRadius": 999,
814
+ "height": 16,
815
+ "marginLeft": 8,
816
+ "opacity": 0.675,
817
+ "width": 16,
818
+ },
819
+ undefined,
820
+ ]
821
+ }
822
+ themeIntent="inverted"
823
+ themePosition="topRight"
824
+ themeSize="medium"
825
+ />
826
+ `;
827
+
828
+ exports[`StyledSpinnerDot renders correctly when position is topRight, size is medium, intent is primary 1`] = `
456
829
  <View
457
830
  style={
458
831
  Array [
@@ -461,18 +834,40 @@ exports[`StyledSpinnerText renders correctly when position is topRight, size is
461
834
  "borderRadius": 999,
462
835
  "height": 16,
463
836
  "marginLeft": 8,
464
- "opacity": 0.75,
837
+ "opacity": 0.675,
465
838
  "width": 16,
466
839
  },
467
840
  undefined,
468
841
  ]
469
842
  }
843
+ themeIntent="primary"
470
844
  themePosition="topRight"
471
845
  themeSize="medium"
472
846
  />
473
847
  `;
474
848
 
475
- exports[`StyledSpinnerText renders correctly when position is topRight, size is small 1`] = `
849
+ exports[`StyledSpinnerDot renders correctly when position is topRight, size is small, intent is inverted 1`] = `
850
+ <View
851
+ style={
852
+ Array [
853
+ Object {
854
+ "backgroundColor": "#ffffff",
855
+ "borderRadius": 999,
856
+ "height": 8,
857
+ "marginLeft": 4,
858
+ "opacity": 0.675,
859
+ "width": 8,
860
+ },
861
+ undefined,
862
+ ]
863
+ }
864
+ themeIntent="inverted"
865
+ themePosition="topRight"
866
+ themeSize="small"
867
+ />
868
+ `;
869
+
870
+ exports[`StyledSpinnerDot renders correctly when position is topRight, size is small, intent is primary 1`] = `
476
871
  <View
477
872
  style={
478
873
  Array [
@@ -481,13 +876,78 @@ exports[`StyledSpinnerText renders correctly when position is topRight, size is
481
876
  "borderRadius": 999,
482
877
  "height": 8,
483
878
  "marginLeft": 4,
484
- "opacity": 0.75,
879
+ "opacity": 0.675,
485
880
  "width": 8,
486
881
  },
487
882
  undefined,
488
883
  ]
489
884
  }
885
+ themeIntent="primary"
490
886
  themePosition="topRight"
491
887
  themeSize="small"
492
888
  />
493
889
  `;
890
+
891
+ exports[`StyledSpinnerRow renders correctly when position is bottom, and size is medium 1`] = `
892
+ <View
893
+ style={
894
+ Array [
895
+ Object {
896
+ "flexDirection": "row",
897
+ "marginBottom": 0,
898
+ },
899
+ undefined,
900
+ ]
901
+ }
902
+ themePosition="bottom"
903
+ themeSize="medium"
904
+ />
905
+ `;
906
+
907
+ exports[`StyledSpinnerRow renders correctly when position is bottom, and size is small 1`] = `
908
+ <View
909
+ style={
910
+ Array [
911
+ Object {
912
+ "flexDirection": "row",
913
+ "marginBottom": 0,
914
+ },
915
+ undefined,
916
+ ]
917
+ }
918
+ themePosition="bottom"
919
+ themeSize="small"
920
+ />
921
+ `;
922
+
923
+ exports[`StyledSpinnerRow renders correctly when position is top, and size is medium 1`] = `
924
+ <View
925
+ style={
926
+ Array [
927
+ Object {
928
+ "flexDirection": "row",
929
+ "marginBottom": 8,
930
+ },
931
+ undefined,
932
+ ]
933
+ }
934
+ themePosition="top"
935
+ themeSize="medium"
936
+ />
937
+ `;
938
+
939
+ exports[`StyledSpinnerRow renders correctly when position is top, and size is small 1`] = `
940
+ <View
941
+ style={
942
+ Array [
943
+ Object {
944
+ "flexDirection": "row",
945
+ "marginBottom": 4,
946
+ },
947
+ undefined,
948
+ ]
949
+ }
950
+ themePosition="top"
951
+ themeSize="small"
952
+ />
953
+ `;