@hero-design/rn 7.2.0 → 7.3.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 (244) hide show
  1. package/.expo/README.md +15 -0
  2. package/.expo/packager-info.json +10 -0
  3. package/.expo/prebuild/cached-packages.json +4 -0
  4. package/.expo/settings.json +10 -0
  5. package/.expo/xcodebuild-error.log +2 -0
  6. package/.expo/xcodebuild.log +11199 -0
  7. package/.turbo/turbo-build.log +8 -0
  8. package/.turbo/turbo-build:types.log +2 -0
  9. package/.turbo/turbo-publish:npm.log +0 -0
  10. package/.turbo/turbo-test.log +131 -0
  11. package/.turbo/turbo-type-check.log +7 -0
  12. package/es/index.js +2406 -469
  13. package/jest.config.js +1 -1
  14. package/lib/index.js +2423 -481
  15. package/package.json +4 -38
  16. package/playground/components/Avatar.tsx +102 -0
  17. package/playground/components/Badge.tsx +146 -9
  18. package/playground/components/Button.tsx +138 -35
  19. package/playground/components/Card.tsx +40 -14
  20. package/playground/components/Collapse.tsx +99 -0
  21. package/playground/components/Drawer.tsx +32 -0
  22. package/playground/components/FAB.tsx +15 -0
  23. package/playground/components/IconButton.tsx +67 -0
  24. package/playground/components/Progress.tsx +95 -0
  25. package/playground/components/Tabs.tsx +106 -14
  26. package/playground/components/Tag.tsx +45 -0
  27. package/playground/index.tsx +18 -0
  28. package/src/components/Avatar/StyledAvatar.tsx +61 -0
  29. package/src/components/Avatar/__tests__/StyledAvatar.spec.tsx +48 -0
  30. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +87 -0
  31. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +88 -0
  32. package/src/components/Avatar/__tests__/index.spec.tsx +26 -0
  33. package/src/components/Avatar/index.tsx +71 -0
  34. package/src/components/Badge/Status.tsx +77 -0
  35. package/src/components/Badge/StyledBadge.tsx +38 -26
  36. package/src/components/Badge/__tests__/Badge.spec.tsx +16 -0
  37. package/src/components/Badge/__tests__/Status.spec.tsx +27 -0
  38. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +133 -52
  39. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +89 -0
  40. package/src/components/Badge/index.tsx +77 -19
  41. package/src/components/Button/Button.tsx +163 -0
  42. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +58 -0
  43. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +20 -0
  44. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +101 -0
  45. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +606 -0
  46. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +24 -0
  47. package/src/components/Button/LoadingIndicator/index.tsx +140 -0
  48. package/src/components/Button/StyledButton.tsx +254 -0
  49. package/src/components/Button/__tests__/Button.spec.tsx +86 -0
  50. package/src/components/Button/__tests__/{index.spec.tsx → IconButton.spec.tsx} +0 -0
  51. package/src/components/Button/__tests__/StyledButton.spec.tsx +154 -0
  52. package/src/components/Button/__tests__/__snapshots__/{index.spec.tsx.snap → IconButton.spec.tsx.snap} +0 -0
  53. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +895 -0
  54. package/src/components/Button/index.tsx +10 -2
  55. package/src/components/Card/StyledCard.tsx +27 -5
  56. package/src/components/Card/__tests__/StyledCard.spec.tsx +15 -3
  57. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +34 -2
  58. package/src/components/Card/__tests__/index.spec.tsx +16 -21
  59. package/src/components/Card/index.tsx +15 -2
  60. package/src/components/Collapse/StyledCollapse.tsx +15 -0
  61. package/src/components/Collapse/__tests__/StyledCollapse.spec.tsx +26 -0
  62. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +37 -0
  63. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +84 -0
  64. package/src/components/Collapse/__tests__/index.spec.tsx +42 -0
  65. package/src/components/Collapse/index.tsx +109 -0
  66. package/src/components/Divider/index.tsx +1 -1
  67. package/src/components/Drawer/StyledDrawer.tsx +39 -0
  68. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +244 -0
  69. package/src/components/Drawer/__tests__/index.spec.tsx +37 -0
  70. package/src/components/Drawer/index.tsx +93 -0
  71. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +78 -62
  72. package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +2 -0
  73. package/src/components/FAB/ActionGroup/index.tsx +13 -1
  74. package/src/components/FAB/FAB.tsx +63 -13
  75. package/src/components/FAB/StyledFAB.tsx +25 -6
  76. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +6 -2
  77. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +7 -3
  78. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +88 -6
  79. package/src/components/FAB/__tests__/index.spec.tsx +16 -0
  80. package/src/components/Progress/ProgressBar.tsx +73 -0
  81. package/src/components/Progress/ProgressCircle.tsx +165 -0
  82. package/src/components/Progress/StyledProgressBar.tsx +21 -0
  83. package/src/components/Progress/StyledProgressCircle.tsx +66 -0
  84. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +641 -0
  85. package/src/components/Progress/__tests__/index.spec.js +46 -0
  86. package/src/components/Progress/index.tsx +6 -0
  87. package/src/components/Progress/types.ts +1 -0
  88. package/src/components/Tabs/ActiveTabIndicator.tsx +37 -0
  89. package/src/components/Tabs/ScrollableTabs.tsx +216 -0
  90. package/src/components/Tabs/StyledScrollableTabs.tsx +60 -0
  91. package/src/components/Tabs/StyledTabs.tsx +30 -44
  92. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +84 -0
  93. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +591 -0
  94. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +317 -224
  95. package/src/components/Tabs/__tests__/index.spec.tsx +22 -21
  96. package/src/components/Tabs/index.tsx +155 -114
  97. package/src/components/Tabs/utils.ts +13 -0
  98. package/src/components/Tag/StyledTag.tsx +35 -0
  99. package/src/components/Tag/__tests__/Tag.spec.tsx +41 -0
  100. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +153 -0
  101. package/src/components/Tag/index.tsx +41 -0
  102. package/src/components/Typography/Text/index.tsx +1 -1
  103. package/src/index.ts +10 -0
  104. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +181 -22
  105. package/src/theme/components/avatar.ts +40 -0
  106. package/src/theme/components/badge.ts +14 -16
  107. package/src/theme/components/button.ts +57 -0
  108. package/src/theme/components/card.ts +5 -5
  109. package/src/theme/components/drawer.ts +24 -0
  110. package/src/theme/components/fab.ts +9 -2
  111. package/src/theme/components/progress.ts +27 -0
  112. package/src/theme/components/tabs.ts +22 -7
  113. package/src/theme/components/tag.ts +39 -0
  114. package/src/theme/global/borders.ts +13 -1
  115. package/src/theme/global/colors.ts +7 -2
  116. package/src/theme/global/index.ts +3 -1
  117. package/src/theme/global/scale.ts +3 -0
  118. package/src/theme/index.ts +15 -0
  119. package/src/utils/hooks.ts +10 -0
  120. package/testUtils/setup.tsx +43 -0
  121. package/types/playground/components/Avatar.d.ts +2 -0
  122. package/types/playground/components/Badge.d.ts +0 -0
  123. package/types/playground/components/BottomNavigation.d.ts +0 -0
  124. package/types/playground/components/Button.d.ts +0 -0
  125. package/types/playground/components/Card.d.ts +0 -0
  126. package/types/playground/components/Collapse.d.ts +2 -0
  127. package/types/playground/components/Divider.d.ts +0 -0
  128. package/types/playground/components/Drawer.d.ts +2 -0
  129. package/types/playground/components/FAB.d.ts +0 -0
  130. package/types/playground/components/Icon.d.ts +0 -0
  131. package/types/playground/components/IconButton.d.ts +2 -0
  132. package/types/playground/components/Progress.d.ts +2 -0
  133. package/types/playground/components/Tabs.d.ts +0 -0
  134. package/types/playground/components/Tag.d.ts +2 -0
  135. package/types/playground/components/Typography.d.ts +0 -0
  136. package/types/playground/index.d.ts +0 -0
  137. package/types/src/components/Avatar/StyledAvatar.d.ts +46 -0
  138. package/types/src/components/Avatar/__tests__/StyledAvatar.spec.d.ts +1 -0
  139. package/types/src/components/Avatar/__tests__/index.spec.d.ts +1 -0
  140. package/types/src/components/Avatar/index.d.ts +25 -0
  141. package/types/src/components/Badge/Status.d.ts +24 -0
  142. package/types/src/components/Badge/StyledBadge.d.ts +17 -9
  143. package/types/src/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  144. package/types/src/components/Badge/__tests__/Status.spec.d.ts +1 -0
  145. package/types/src/components/Badge/index.d.ts +17 -7
  146. package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  147. package/types/src/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  148. package/types/src/components/BottomNavigation/index.d.ts +0 -0
  149. package/types/src/components/Button/Button.d.ts +57 -0
  150. package/types/src/components/Button/IconButton.d.ts +0 -0
  151. package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +20 -0
  152. package/types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +1 -0
  153. package/types/src/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +1 -0
  154. package/types/src/components/Button/LoadingIndicator/index.d.ts +26 -0
  155. package/types/src/components/Button/StyledButton.d.ts +40 -0
  156. package/types/src/components/Button/__tests__/Button.spec.d.ts +1 -0
  157. package/types/src/components/Button/__tests__/IconButton.spec.d.ts +1 -0
  158. package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +1 -0
  159. package/types/src/components/Button/__tests__/index.spec.d.ts +0 -0
  160. package/types/src/components/Button/index.d.ts +8 -4
  161. package/types/src/components/Card/StyledCard.d.ts +9 -1
  162. package/types/src/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  163. package/types/src/components/Card/__tests__/index.spec.d.ts +0 -0
  164. package/types/src/components/Card/index.d.ts +5 -1
  165. package/types/src/components/Collapse/StyledCollapse.d.ts +15 -0
  166. package/types/src/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
  167. package/types/src/components/Collapse/__tests__/index.spec.d.ts +1 -0
  168. package/types/src/components/Collapse/index.d.ts +23 -0
  169. package/types/src/components/Divider/StyledDivider.d.ts +0 -0
  170. package/types/src/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  171. package/types/src/components/Divider/index.d.ts +0 -0
  172. package/types/src/components/Drawer/StyledDrawer.d.ts +25 -0
  173. package/types/src/components/Drawer/__tests__/index.spec.d.ts +1 -0
  174. package/types/src/components/Drawer/index.d.ts +25 -0
  175. package/types/src/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  176. package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  177. package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  178. package/types/src/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  179. package/types/src/components/FAB/ActionGroup/index.d.ts +8 -1
  180. package/types/src/components/FAB/AnimatedFABIcon.d.ts +0 -0
  181. package/types/src/components/FAB/FAB.d.ts +5 -1
  182. package/types/src/components/FAB/StyledFAB.d.ts +8 -2
  183. package/types/src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  184. package/types/src/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  185. package/types/src/components/FAB/__tests__/index.spec.d.ts +0 -0
  186. package/types/src/components/FAB/index.d.ts +2 -2
  187. package/types/src/components/Icon/HeroIcon/index.d.ts +0 -0
  188. package/types/src/components/Icon/IconList.d.ts +0 -0
  189. package/types/src/components/Icon/__tests__/index.spec.d.ts +0 -0
  190. package/types/src/components/Icon/index.d.ts +0 -0
  191. package/types/src/components/Icon/utils.d.ts +1 -1
  192. package/types/src/components/Progress/ProgressBar.d.ts +18 -0
  193. package/types/src/components/Progress/ProgressCircle.d.ts +18 -0
  194. package/types/src/components/Progress/StyledProgressBar.d.ts +18 -0
  195. package/types/src/components/Progress/StyledProgressCircle.d.ts +38 -0
  196. package/types/src/components/Progress/__tests__/index.spec.d.ts +1 -0
  197. package/types/src/components/Progress/index.d.ts +5 -0
  198. package/types/src/components/Progress/types.d.ts +1 -0
  199. package/types/src/components/Tabs/ActiveTabIndicator.d.ts +8 -0
  200. package/types/src/components/Tabs/ScrollableTabs.d.ts +3 -0
  201. package/types/src/components/Tabs/StyledScrollableTabs.d.ts +61 -0
  202. package/types/src/components/Tabs/StyledTabs.d.ts +22 -22
  203. package/types/src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
  204. package/types/src/components/Tabs/__tests__/index.spec.d.ts +0 -0
  205. package/types/src/components/Tabs/index.d.ts +28 -19
  206. package/types/src/components/Tabs/utils.d.ts +2 -0
  207. package/types/src/components/Tag/StyledTag.d.ts +20 -0
  208. package/types/src/components/Tag/__tests__/Tag.spec.d.ts +1 -0
  209. package/types/src/components/Tag/index.d.ts +21 -0
  210. package/types/src/components/Typography/Text/StyledText.d.ts +0 -0
  211. package/types/src/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  212. package/types/src/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  213. package/types/src/components/Typography/Text/index.d.ts +0 -0
  214. package/types/src/components/Typography/index.d.ts +0 -0
  215. package/types/src/index.d.ts +6 -1
  216. package/types/src/testHelpers/renderWithTheme.d.ts +0 -0
  217. package/types/src/theme/__tests__/index.spec.d.ts +0 -0
  218. package/types/src/theme/components/avatar.d.ts +32 -0
  219. package/types/src/theme/components/badge.d.ts +12 -13
  220. package/types/src/theme/components/bottomNavigation.d.ts +0 -0
  221. package/types/src/theme/components/button.d.ts +37 -0
  222. package/types/src/theme/components/card.d.ts +3 -3
  223. package/types/src/theme/components/divider.d.ts +0 -0
  224. package/types/src/theme/components/drawer.d.ts +21 -0
  225. package/types/src/theme/components/fab.d.ts +8 -1
  226. package/types/src/theme/components/icon.d.ts +0 -0
  227. package/types/src/theme/components/progress.d.ts +21 -0
  228. package/types/src/theme/components/tabs.d.ts +14 -2
  229. package/types/src/theme/components/tag.d.ts +30 -0
  230. package/types/src/theme/components/typography.d.ts +0 -0
  231. package/types/src/theme/global/borders.d.ts +7 -1
  232. package/types/src/theme/global/colors.d.ts +6 -1
  233. package/types/src/theme/global/index.d.ts +7 -1
  234. package/types/src/theme/global/scale.d.ts +1 -0
  235. package/types/src/theme/global/space.d.ts +0 -0
  236. package/types/src/theme/global/typography.d.ts +0 -0
  237. package/types/src/theme/index.d.ts +10 -0
  238. package/types/src/types.d.ts +0 -0
  239. package/types/src/utils/__tests__/scale.spec.d.ts +0 -0
  240. package/types/src/utils/helpers.d.ts +0 -0
  241. package/types/src/utils/hooks.d.ts +1 -0
  242. package/types/src/utils/scale.d.ts +0 -0
  243. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -34
  244. package/testUtils/setup.ts +0 -18
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+
3
+ import { StyledLoadingDot } from '../StyledLoadingIndicator';
4
+ import renderWithTheme from '../../../../testHelpers/renderWithTheme';
5
+
6
+ describe('StyledLoadingIndicator', () => {
7
+ it.each`
8
+ themeVariant
9
+ ${'basic-transparent'}
10
+ ${'filled-primary'}
11
+ ${'filled-secondary'}
12
+ ${'outlined-primary'}
13
+ ${'outlined-secondary'}
14
+ `('has $themeVariant style', ({ themeVariant }) => {
15
+ const { toJSON } = renderWithTheme(
16
+ <StyledLoadingDot themeVariant={themeVariant} />
17
+ );
18
+ expect(toJSON()).toMatchSnapshot();
19
+ });
20
+ });
@@ -0,0 +1,101 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`StyledLoadingIndicator has basic-transparent style 1`] = `
4
+ <View
5
+ style={
6
+ Array [
7
+ Object {
8
+ "backgroundColor": "#ffffff",
9
+ "borderRadius": 8,
10
+ "height": 12,
11
+ "marginBottom": 4,
12
+ "marginHorizontal": 8,
13
+ "marginTop": 4,
14
+ "width": 12,
15
+ },
16
+ undefined,
17
+ ]
18
+ }
19
+ themeVariant="basic-transparent"
20
+ />
21
+ `;
22
+
23
+ exports[`StyledLoadingIndicator has filled-primary style 1`] = `
24
+ <View
25
+ style={
26
+ Array [
27
+ Object {
28
+ "backgroundColor": "#ffffff",
29
+ "borderRadius": 8,
30
+ "height": 12,
31
+ "marginBottom": 4,
32
+ "marginHorizontal": 8,
33
+ "marginTop": 4,
34
+ "width": 12,
35
+ },
36
+ undefined,
37
+ ]
38
+ }
39
+ themeVariant="filled-primary"
40
+ />
41
+ `;
42
+
43
+ exports[`StyledLoadingIndicator has filled-secondary style 1`] = `
44
+ <View
45
+ style={
46
+ Array [
47
+ Object {
48
+ "backgroundColor": "#ffffff",
49
+ "borderRadius": 8,
50
+ "height": 12,
51
+ "marginBottom": 4,
52
+ "marginHorizontal": 8,
53
+ "marginTop": 4,
54
+ "width": 12,
55
+ },
56
+ undefined,
57
+ ]
58
+ }
59
+ themeVariant="filled-secondary"
60
+ />
61
+ `;
62
+
63
+ exports[`StyledLoadingIndicator has outlined-primary style 1`] = `
64
+ <View
65
+ style={
66
+ Array [
67
+ Object {
68
+ "backgroundColor": "#7622d7",
69
+ "borderRadius": 8,
70
+ "height": 12,
71
+ "marginBottom": 4,
72
+ "marginHorizontal": 8,
73
+ "marginTop": 4,
74
+ "width": 12,
75
+ },
76
+ undefined,
77
+ ]
78
+ }
79
+ themeVariant="outlined-primary"
80
+ />
81
+ `;
82
+
83
+ exports[`StyledLoadingIndicator has outlined-secondary style 1`] = `
84
+ <View
85
+ style={
86
+ Array [
87
+ Object {
88
+ "backgroundColor": "#4568fb",
89
+ "borderRadius": 8,
90
+ "height": 12,
91
+ "marginBottom": 4,
92
+ "marginHorizontal": 8,
93
+ "marginTop": 4,
94
+ "width": 12,
95
+ },
96
+ undefined,
97
+ ]
98
+ }
99
+ themeVariant="outlined-secondary"
100
+ />
101
+ `;
@@ -0,0 +1,606 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`LoadingIndicator renders correctly when themeVariant is basic-transparent 1`] = `
4
+ <View
5
+ collapsable={false}
6
+ nativeID="animatedComponent"
7
+ style={
8
+ Array [
9
+ Object {
10
+ "alignItems": "center",
11
+ "flexDirection": "row",
12
+ "justifyContent": "center",
13
+ "paddingVertical": 2,
14
+ },
15
+ Object {},
16
+ ]
17
+ }
18
+ >
19
+ <View
20
+ collapsable={false}
21
+ nativeID="animatedComponent"
22
+ style={
23
+ Object {
24
+ "transform": Array [
25
+ Object {
26
+ "scale": 1,
27
+ },
28
+ ],
29
+ }
30
+ }
31
+ >
32
+ <View
33
+ collapsable={false}
34
+ nativeID="animatedComponent"
35
+ size={12}
36
+ style={
37
+ Array [
38
+ Object {
39
+ "backgroundColor": "#ffffff",
40
+ "borderRadius": 8,
41
+ "height": 12,
42
+ "marginBottom": 4,
43
+ "marginHorizontal": 8,
44
+ "marginTop": 4,
45
+ "width": 12,
46
+ },
47
+ Object {},
48
+ ]
49
+ }
50
+ themeVariant="basic-transparent"
51
+ />
52
+ </View>
53
+ <View
54
+ collapsable={false}
55
+ nativeID="animatedComponent"
56
+ style={
57
+ Object {
58
+ "transform": Array [
59
+ Object {
60
+ "scale": 1,
61
+ },
62
+ ],
63
+ }
64
+ }
65
+ >
66
+ <View
67
+ collapsable={false}
68
+ nativeID="animatedComponent"
69
+ size={12}
70
+ style={
71
+ Array [
72
+ Object {
73
+ "backgroundColor": "#ffffff",
74
+ "borderRadius": 8,
75
+ "height": 12,
76
+ "marginBottom": 4,
77
+ "marginHorizontal": 8,
78
+ "marginTop": 4,
79
+ "width": 12,
80
+ },
81
+ Object {},
82
+ ]
83
+ }
84
+ themeVariant="basic-transparent"
85
+ />
86
+ </View>
87
+ <View
88
+ collapsable={false}
89
+ nativeID="animatedComponent"
90
+ style={
91
+ Object {
92
+ "transform": Array [
93
+ Object {
94
+ "scale": 1,
95
+ },
96
+ ],
97
+ }
98
+ }
99
+ >
100
+ <View
101
+ collapsable={false}
102
+ nativeID="animatedComponent"
103
+ size={12}
104
+ style={
105
+ Array [
106
+ Object {
107
+ "backgroundColor": "#ffffff",
108
+ "borderRadius": 8,
109
+ "height": 12,
110
+ "marginBottom": 4,
111
+ "marginHorizontal": 8,
112
+ "marginTop": 4,
113
+ "width": 12,
114
+ },
115
+ Object {},
116
+ ]
117
+ }
118
+ themeVariant="basic-transparent"
119
+ />
120
+ </View>
121
+ </View>
122
+ `;
123
+
124
+ exports[`LoadingIndicator renders correctly when themeVariant is filled-primary 1`] = `
125
+ <View
126
+ collapsable={false}
127
+ nativeID="animatedComponent"
128
+ style={
129
+ Array [
130
+ Object {
131
+ "alignItems": "center",
132
+ "flexDirection": "row",
133
+ "justifyContent": "center",
134
+ "paddingVertical": 2,
135
+ },
136
+ Object {},
137
+ ]
138
+ }
139
+ >
140
+ <View
141
+ collapsable={false}
142
+ nativeID="animatedComponent"
143
+ style={
144
+ Object {
145
+ "transform": Array [
146
+ Object {
147
+ "scale": 1,
148
+ },
149
+ ],
150
+ }
151
+ }
152
+ >
153
+ <View
154
+ collapsable={false}
155
+ nativeID="animatedComponent"
156
+ size={12}
157
+ style={
158
+ Array [
159
+ Object {
160
+ "backgroundColor": "#ffffff",
161
+ "borderRadius": 8,
162
+ "height": 12,
163
+ "marginBottom": 4,
164
+ "marginHorizontal": 8,
165
+ "marginTop": 4,
166
+ "width": 12,
167
+ },
168
+ Object {},
169
+ ]
170
+ }
171
+ themeVariant="filled-primary"
172
+ />
173
+ </View>
174
+ <View
175
+ collapsable={false}
176
+ nativeID="animatedComponent"
177
+ style={
178
+ Object {
179
+ "transform": Array [
180
+ Object {
181
+ "scale": 1,
182
+ },
183
+ ],
184
+ }
185
+ }
186
+ >
187
+ <View
188
+ collapsable={false}
189
+ nativeID="animatedComponent"
190
+ size={12}
191
+ style={
192
+ Array [
193
+ Object {
194
+ "backgroundColor": "#ffffff",
195
+ "borderRadius": 8,
196
+ "height": 12,
197
+ "marginBottom": 4,
198
+ "marginHorizontal": 8,
199
+ "marginTop": 4,
200
+ "width": 12,
201
+ },
202
+ Object {},
203
+ ]
204
+ }
205
+ themeVariant="filled-primary"
206
+ />
207
+ </View>
208
+ <View
209
+ collapsable={false}
210
+ nativeID="animatedComponent"
211
+ style={
212
+ Object {
213
+ "transform": Array [
214
+ Object {
215
+ "scale": 1,
216
+ },
217
+ ],
218
+ }
219
+ }
220
+ >
221
+ <View
222
+ collapsable={false}
223
+ nativeID="animatedComponent"
224
+ size={12}
225
+ style={
226
+ Array [
227
+ Object {
228
+ "backgroundColor": "#ffffff",
229
+ "borderRadius": 8,
230
+ "height": 12,
231
+ "marginBottom": 4,
232
+ "marginHorizontal": 8,
233
+ "marginTop": 4,
234
+ "width": 12,
235
+ },
236
+ Object {},
237
+ ]
238
+ }
239
+ themeVariant="filled-primary"
240
+ />
241
+ </View>
242
+ </View>
243
+ `;
244
+
245
+ exports[`LoadingIndicator renders correctly when themeVariant is filled-secondary 1`] = `
246
+ <View
247
+ collapsable={false}
248
+ nativeID="animatedComponent"
249
+ style={
250
+ Array [
251
+ Object {
252
+ "alignItems": "center",
253
+ "flexDirection": "row",
254
+ "justifyContent": "center",
255
+ "paddingVertical": 2,
256
+ },
257
+ Object {},
258
+ ]
259
+ }
260
+ >
261
+ <View
262
+ collapsable={false}
263
+ nativeID="animatedComponent"
264
+ style={
265
+ Object {
266
+ "transform": Array [
267
+ Object {
268
+ "scale": 1,
269
+ },
270
+ ],
271
+ }
272
+ }
273
+ >
274
+ <View
275
+ collapsable={false}
276
+ nativeID="animatedComponent"
277
+ size={12}
278
+ style={
279
+ Array [
280
+ Object {
281
+ "backgroundColor": "#ffffff",
282
+ "borderRadius": 8,
283
+ "height": 12,
284
+ "marginBottom": 4,
285
+ "marginHorizontal": 8,
286
+ "marginTop": 4,
287
+ "width": 12,
288
+ },
289
+ Object {},
290
+ ]
291
+ }
292
+ themeVariant="filled-secondary"
293
+ />
294
+ </View>
295
+ <View
296
+ collapsable={false}
297
+ nativeID="animatedComponent"
298
+ style={
299
+ Object {
300
+ "transform": Array [
301
+ Object {
302
+ "scale": 1,
303
+ },
304
+ ],
305
+ }
306
+ }
307
+ >
308
+ <View
309
+ collapsable={false}
310
+ nativeID="animatedComponent"
311
+ size={12}
312
+ style={
313
+ Array [
314
+ Object {
315
+ "backgroundColor": "#ffffff",
316
+ "borderRadius": 8,
317
+ "height": 12,
318
+ "marginBottom": 4,
319
+ "marginHorizontal": 8,
320
+ "marginTop": 4,
321
+ "width": 12,
322
+ },
323
+ Object {},
324
+ ]
325
+ }
326
+ themeVariant="filled-secondary"
327
+ />
328
+ </View>
329
+ <View
330
+ collapsable={false}
331
+ nativeID="animatedComponent"
332
+ style={
333
+ Object {
334
+ "transform": Array [
335
+ Object {
336
+ "scale": 1,
337
+ },
338
+ ],
339
+ }
340
+ }
341
+ >
342
+ <View
343
+ collapsable={false}
344
+ nativeID="animatedComponent"
345
+ size={12}
346
+ style={
347
+ Array [
348
+ Object {
349
+ "backgroundColor": "#ffffff",
350
+ "borderRadius": 8,
351
+ "height": 12,
352
+ "marginBottom": 4,
353
+ "marginHorizontal": 8,
354
+ "marginTop": 4,
355
+ "width": 12,
356
+ },
357
+ Object {},
358
+ ]
359
+ }
360
+ themeVariant="filled-secondary"
361
+ />
362
+ </View>
363
+ </View>
364
+ `;
365
+
366
+ exports[`LoadingIndicator renders correctly when themeVariant is outlined-primary 1`] = `
367
+ <View
368
+ collapsable={false}
369
+ nativeID="animatedComponent"
370
+ style={
371
+ Array [
372
+ Object {
373
+ "alignItems": "center",
374
+ "flexDirection": "row",
375
+ "justifyContent": "center",
376
+ "paddingVertical": 2,
377
+ },
378
+ Object {},
379
+ ]
380
+ }
381
+ >
382
+ <View
383
+ collapsable={false}
384
+ nativeID="animatedComponent"
385
+ style={
386
+ Object {
387
+ "transform": Array [
388
+ Object {
389
+ "scale": 1,
390
+ },
391
+ ],
392
+ }
393
+ }
394
+ >
395
+ <View
396
+ collapsable={false}
397
+ nativeID="animatedComponent"
398
+ size={12}
399
+ style={
400
+ Array [
401
+ Object {
402
+ "backgroundColor": "#7622d7",
403
+ "borderRadius": 8,
404
+ "height": 12,
405
+ "marginBottom": 4,
406
+ "marginHorizontal": 8,
407
+ "marginTop": 4,
408
+ "width": 12,
409
+ },
410
+ Object {},
411
+ ]
412
+ }
413
+ themeVariant="outlined-primary"
414
+ />
415
+ </View>
416
+ <View
417
+ collapsable={false}
418
+ nativeID="animatedComponent"
419
+ style={
420
+ Object {
421
+ "transform": Array [
422
+ Object {
423
+ "scale": 1,
424
+ },
425
+ ],
426
+ }
427
+ }
428
+ >
429
+ <View
430
+ collapsable={false}
431
+ nativeID="animatedComponent"
432
+ size={12}
433
+ style={
434
+ Array [
435
+ Object {
436
+ "backgroundColor": "#7622d7",
437
+ "borderRadius": 8,
438
+ "height": 12,
439
+ "marginBottom": 4,
440
+ "marginHorizontal": 8,
441
+ "marginTop": 4,
442
+ "width": 12,
443
+ },
444
+ Object {},
445
+ ]
446
+ }
447
+ themeVariant="outlined-primary"
448
+ />
449
+ </View>
450
+ <View
451
+ collapsable={false}
452
+ nativeID="animatedComponent"
453
+ style={
454
+ Object {
455
+ "transform": Array [
456
+ Object {
457
+ "scale": 1,
458
+ },
459
+ ],
460
+ }
461
+ }
462
+ >
463
+ <View
464
+ collapsable={false}
465
+ nativeID="animatedComponent"
466
+ size={12}
467
+ style={
468
+ Array [
469
+ Object {
470
+ "backgroundColor": "#7622d7",
471
+ "borderRadius": 8,
472
+ "height": 12,
473
+ "marginBottom": 4,
474
+ "marginHorizontal": 8,
475
+ "marginTop": 4,
476
+ "width": 12,
477
+ },
478
+ Object {},
479
+ ]
480
+ }
481
+ themeVariant="outlined-primary"
482
+ />
483
+ </View>
484
+ </View>
485
+ `;
486
+
487
+ exports[`LoadingIndicator renders correctly when themeVariant is outlined-secondary 1`] = `
488
+ <View
489
+ collapsable={false}
490
+ nativeID="animatedComponent"
491
+ style={
492
+ Array [
493
+ Object {
494
+ "alignItems": "center",
495
+ "flexDirection": "row",
496
+ "justifyContent": "center",
497
+ "paddingVertical": 2,
498
+ },
499
+ Object {},
500
+ ]
501
+ }
502
+ >
503
+ <View
504
+ collapsable={false}
505
+ nativeID="animatedComponent"
506
+ style={
507
+ Object {
508
+ "transform": Array [
509
+ Object {
510
+ "scale": 1,
511
+ },
512
+ ],
513
+ }
514
+ }
515
+ >
516
+ <View
517
+ collapsable={false}
518
+ nativeID="animatedComponent"
519
+ size={12}
520
+ style={
521
+ Array [
522
+ Object {
523
+ "backgroundColor": "#4568fb",
524
+ "borderRadius": 8,
525
+ "height": 12,
526
+ "marginBottom": 4,
527
+ "marginHorizontal": 8,
528
+ "marginTop": 4,
529
+ "width": 12,
530
+ },
531
+ Object {},
532
+ ]
533
+ }
534
+ themeVariant="outlined-secondary"
535
+ />
536
+ </View>
537
+ <View
538
+ collapsable={false}
539
+ nativeID="animatedComponent"
540
+ style={
541
+ Object {
542
+ "transform": Array [
543
+ Object {
544
+ "scale": 1,
545
+ },
546
+ ],
547
+ }
548
+ }
549
+ >
550
+ <View
551
+ collapsable={false}
552
+ nativeID="animatedComponent"
553
+ size={12}
554
+ style={
555
+ Array [
556
+ Object {
557
+ "backgroundColor": "#4568fb",
558
+ "borderRadius": 8,
559
+ "height": 12,
560
+ "marginBottom": 4,
561
+ "marginHorizontal": 8,
562
+ "marginTop": 4,
563
+ "width": 12,
564
+ },
565
+ Object {},
566
+ ]
567
+ }
568
+ themeVariant="outlined-secondary"
569
+ />
570
+ </View>
571
+ <View
572
+ collapsable={false}
573
+ nativeID="animatedComponent"
574
+ style={
575
+ Object {
576
+ "transform": Array [
577
+ Object {
578
+ "scale": 1,
579
+ },
580
+ ],
581
+ }
582
+ }
583
+ >
584
+ <View
585
+ collapsable={false}
586
+ nativeID="animatedComponent"
587
+ size={12}
588
+ style={
589
+ Array [
590
+ Object {
591
+ "backgroundColor": "#4568fb",
592
+ "borderRadius": 8,
593
+ "height": 12,
594
+ "marginBottom": 4,
595
+ "marginHorizontal": 8,
596
+ "marginTop": 4,
597
+ "width": 12,
598
+ },
599
+ Object {},
600
+ ]
601
+ }
602
+ themeVariant="outlined-secondary"
603
+ />
604
+ </View>
605
+ </View>
606
+ `;