@hero-design/rn 7.2.2 → 7.3.2

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 (243) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +2389 -449
  3. package/jest.config.js +1 -1
  4. package/lib/index.js +2410 -465
  5. package/package.json +4 -2
  6. package/playground/components/Avatar.tsx +102 -0
  7. package/playground/components/Badge.tsx +146 -9
  8. package/playground/components/Button.tsx +138 -35
  9. package/playground/components/Card.tsx +36 -1
  10. package/playground/components/Collapse.tsx +99 -0
  11. package/playground/components/Drawer.tsx +32 -0
  12. package/playground/components/FAB.tsx +15 -0
  13. package/playground/components/IconButton.tsx +67 -0
  14. package/playground/components/Progress.tsx +95 -0
  15. package/playground/components/Tabs.tsx +106 -14
  16. package/playground/components/Tag.tsx +45 -0
  17. package/playground/index.tsx +18 -0
  18. package/src/components/Avatar/StyledAvatar.tsx +61 -0
  19. package/src/components/Avatar/__tests__/StyledAvatar.spec.tsx +48 -0
  20. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +87 -0
  21. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +88 -0
  22. package/src/components/Avatar/__tests__/index.spec.tsx +26 -0
  23. package/src/components/Avatar/index.tsx +71 -0
  24. package/src/components/Badge/Status.tsx +77 -0
  25. package/src/components/Badge/StyledBadge.tsx +38 -26
  26. package/src/components/Badge/__tests__/Badge.spec.tsx +16 -0
  27. package/src/components/Badge/__tests__/Status.spec.tsx +27 -0
  28. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +133 -52
  29. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +89 -0
  30. package/src/components/Badge/index.tsx +77 -19
  31. package/src/components/Button/Button.tsx +163 -0
  32. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +58 -0
  33. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +20 -0
  34. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +101 -0
  35. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +606 -0
  36. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +24 -0
  37. package/src/components/Button/LoadingIndicator/index.tsx +140 -0
  38. package/src/components/Button/StyledButton.tsx +254 -0
  39. package/src/components/Button/__tests__/Button.spec.tsx +86 -0
  40. package/src/components/Button/__tests__/{index.spec.tsx → IconButton.spec.tsx} +0 -0
  41. package/src/components/Button/__tests__/StyledButton.spec.tsx +154 -0
  42. package/src/components/Button/__tests__/__snapshots__/{index.spec.tsx.snap → IconButton.spec.tsx.snap} +0 -0
  43. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +895 -0
  44. package/src/components/Button/index.tsx +10 -2
  45. package/src/components/Card/StyledCard.tsx +27 -4
  46. package/src/components/Card/__tests__/StyledCard.spec.tsx +15 -3
  47. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +34 -1
  48. package/src/components/Card/__tests__/index.spec.tsx +16 -21
  49. package/src/components/Card/index.tsx +15 -2
  50. package/src/components/Collapse/StyledCollapse.tsx +15 -0
  51. package/src/components/Collapse/__tests__/StyledCollapse.spec.tsx +26 -0
  52. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +37 -0
  53. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +84 -0
  54. package/src/components/Collapse/__tests__/index.spec.tsx +42 -0
  55. package/src/components/Collapse/index.tsx +109 -0
  56. package/src/components/Divider/index.tsx +1 -1
  57. package/src/components/Drawer/StyledDrawer.tsx +39 -0
  58. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +244 -0
  59. package/src/components/Drawer/__tests__/index.spec.tsx +37 -0
  60. package/src/components/Drawer/index.tsx +93 -0
  61. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +78 -62
  62. package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +2 -0
  63. package/src/components/FAB/ActionGroup/index.tsx +13 -0
  64. package/src/components/FAB/FAB.tsx +63 -13
  65. package/src/components/FAB/StyledFAB.tsx +25 -6
  66. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +6 -2
  67. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +7 -3
  68. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +88 -6
  69. package/src/components/FAB/__tests__/index.spec.tsx +16 -0
  70. package/src/components/Progress/ProgressBar.tsx +73 -0
  71. package/src/components/Progress/ProgressCircle.tsx +165 -0
  72. package/src/components/Progress/StyledProgressBar.tsx +21 -0
  73. package/src/components/Progress/StyledProgressCircle.tsx +66 -0
  74. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +641 -0
  75. package/src/components/Progress/__tests__/index.spec.js +46 -0
  76. package/src/components/Progress/index.tsx +6 -0
  77. package/src/components/Progress/types.ts +1 -0
  78. package/src/components/Tabs/ActiveTabIndicator.tsx +37 -0
  79. package/src/components/Tabs/ScrollableTabs.tsx +216 -0
  80. package/src/components/Tabs/StyledScrollableTabs.tsx +60 -0
  81. package/src/components/Tabs/StyledTabs.tsx +30 -44
  82. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +84 -0
  83. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +591 -0
  84. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +317 -224
  85. package/src/components/Tabs/__tests__/index.spec.tsx +22 -21
  86. package/src/components/Tabs/index.tsx +155 -114
  87. package/src/components/Tabs/utils.ts +13 -0
  88. package/src/components/Tag/StyledTag.tsx +35 -0
  89. package/src/components/Tag/__tests__/Tag.spec.tsx +41 -0
  90. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +153 -0
  91. package/src/components/Tag/index.tsx +41 -0
  92. package/src/components/Typography/Text/index.tsx +1 -1
  93. package/src/index.ts +10 -0
  94. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +182 -20
  95. package/src/theme/components/avatar.ts +40 -0
  96. package/src/theme/components/badge.ts +14 -16
  97. package/src/theme/components/button.ts +57 -0
  98. package/src/theme/components/card.ts +8 -2
  99. package/src/theme/components/drawer.ts +24 -0
  100. package/src/theme/components/fab.ts +9 -2
  101. package/src/theme/components/progress.ts +27 -0
  102. package/src/theme/components/tabs.ts +22 -7
  103. package/src/theme/components/tag.ts +39 -0
  104. package/src/theme/global/borders.ts +13 -1
  105. package/src/theme/global/colors.ts +6 -1
  106. package/src/theme/global/index.ts +3 -1
  107. package/src/theme/global/scale.ts +3 -0
  108. package/src/theme/index.ts +16 -1
  109. package/src/utils/hooks.ts +10 -0
  110. package/testUtils/setup.tsx +43 -0
  111. package/types/playground/components/Avatar.d.ts +2 -0
  112. package/types/playground/components/Badge.d.ts +0 -0
  113. package/types/playground/components/BottomNavigation.d.ts +0 -0
  114. package/types/playground/components/Button.d.ts +0 -0
  115. package/types/playground/components/Card.d.ts +0 -0
  116. package/types/playground/components/Collapse.d.ts +2 -0
  117. package/types/playground/components/Divider.d.ts +0 -0
  118. package/types/playground/components/Drawer.d.ts +2 -0
  119. package/types/playground/components/FAB.d.ts +0 -0
  120. package/types/playground/components/Icon.d.ts +0 -0
  121. package/types/playground/components/IconButton.d.ts +2 -0
  122. package/types/playground/components/Progress.d.ts +2 -0
  123. package/types/playground/components/Tabs.d.ts +0 -0
  124. package/types/playground/components/Tag.d.ts +2 -0
  125. package/types/playground/components/Typography.d.ts +0 -0
  126. package/types/playground/index.d.ts +0 -0
  127. package/types/src/components/Avatar/StyledAvatar.d.ts +46 -0
  128. package/types/src/components/{BottomNavigation/__tests__/BottomNavigation.spec.d.ts → Avatar/__tests__/StyledAvatar.spec.d.ts} +0 -0
  129. package/types/src/components/{Card/__tests__/Card.spec.d.ts → Avatar/__tests__/index.spec.d.ts} +0 -0
  130. package/types/src/components/Avatar/index.d.ts +25 -0
  131. package/types/src/components/Badge/Status.d.ts +24 -0
  132. package/types/src/components/Badge/StyledBadge.d.ts +17 -9
  133. package/types/src/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  134. package/types/src/components/{FAB/__tests__/StyledFABContainer.spec.d.ts → Badge/__tests__/Status.spec.d.ts} +0 -0
  135. package/types/src/components/Badge/index.d.ts +17 -7
  136. package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  137. package/types/src/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  138. package/types/src/components/BottomNavigation/index.d.ts +0 -0
  139. package/types/src/components/Button/Button.d.ts +57 -0
  140. package/types/src/components/Button/IconButton.d.ts +0 -0
  141. package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +20 -0
  142. package/types/src/components/{FAB/__tests__/StyledFABIcon.spec.d.ts → Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts} +0 -0
  143. package/types/src/components/{Icon/__tests__/Icon.spec.d.ts → Button/LoadingIndicator/__tests__/index.spec.d.ts} +0 -0
  144. package/types/src/components/Button/LoadingIndicator/index.d.ts +26 -0
  145. package/types/src/components/Button/StyledButton.d.ts +40 -0
  146. package/types/src/components/{Tabs/__tests__/Tabs.spec.d.ts → Button/__tests__/Button.spec.d.ts} +0 -0
  147. package/types/src/components/Button/__tests__/IconButton.spec.d.ts +1 -0
  148. package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +1 -0
  149. package/types/src/components/Button/__tests__/index.spec.d.ts +0 -0
  150. package/types/src/components/Button/index.d.ts +8 -4
  151. package/types/src/components/Card/StyledCard.d.ts +9 -1
  152. package/types/src/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  153. package/types/src/components/Card/__tests__/index.spec.d.ts +0 -0
  154. package/types/src/components/Card/index.d.ts +5 -1
  155. package/types/src/components/Collapse/StyledCollapse.d.ts +15 -0
  156. package/types/src/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
  157. package/types/src/components/Collapse/__tests__/index.spec.d.ts +1 -0
  158. package/types/src/components/Collapse/index.d.ts +23 -0
  159. package/types/src/components/Divider/StyledDivider.d.ts +0 -0
  160. package/types/src/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  161. package/types/src/components/Divider/index.d.ts +0 -0
  162. package/types/src/components/Drawer/StyledDrawer.d.ts +25 -0
  163. package/types/src/components/Drawer/__tests__/index.spec.d.ts +1 -0
  164. package/types/src/components/Drawer/index.d.ts +25 -0
  165. package/types/src/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  166. package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  167. package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  168. package/types/src/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  169. package/types/src/components/FAB/ActionGroup/index.d.ts +5 -1
  170. package/types/src/components/FAB/AnimatedFABIcon.d.ts +0 -0
  171. package/types/src/components/FAB/FAB.d.ts +5 -1
  172. package/types/src/components/FAB/StyledFAB.d.ts +8 -2
  173. package/types/src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  174. package/types/src/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  175. package/types/src/components/FAB/__tests__/index.spec.d.ts +0 -0
  176. package/types/src/components/FAB/index.d.ts +2 -2
  177. package/types/src/components/Icon/HeroIcon/index.d.ts +0 -0
  178. package/types/src/components/Icon/IconList.d.ts +0 -0
  179. package/types/src/components/Icon/__tests__/index.spec.d.ts +0 -0
  180. package/types/src/components/Icon/index.d.ts +0 -0
  181. package/types/src/components/Icon/utils.d.ts +1 -1
  182. package/types/src/components/Progress/ProgressBar.d.ts +18 -0
  183. package/types/src/components/Progress/ProgressCircle.d.ts +18 -0
  184. package/types/src/components/Progress/StyledProgressBar.d.ts +18 -0
  185. package/types/src/components/Progress/StyledProgressCircle.d.ts +38 -0
  186. package/types/src/components/Progress/__tests__/index.spec.d.ts +1 -0
  187. package/types/src/components/Progress/index.d.ts +5 -0
  188. package/types/src/components/Progress/types.d.ts +1 -0
  189. package/types/src/components/Tabs/ActiveTabIndicator.d.ts +8 -0
  190. package/types/src/components/Tabs/ScrollableTab.d.ts +3 -0
  191. package/types/src/components/Tabs/ScrollableTabs.d.ts +3 -0
  192. package/types/src/components/Tabs/StyledScrollableTab.d.ts +61 -0
  193. package/types/src/components/Tabs/StyledScrollableTabs.d.ts +61 -0
  194. package/types/src/components/Tabs/StyledTabs.d.ts +22 -22
  195. package/types/src/components/Tabs/__tests__/ScrollableTab.spec.d.ts +1 -0
  196. package/types/src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
  197. package/types/src/components/Tabs/__tests__/index.spec.d.ts +0 -0
  198. package/types/src/components/Tabs/index.d.ts +28 -19
  199. package/types/src/components/Tabs/utils.d.ts +2 -0
  200. package/types/src/components/Tag/StyledTag.d.ts +20 -0
  201. package/types/src/components/Tag/__tests__/Tag.spec.d.ts +1 -0
  202. package/types/src/components/Tag/index.d.ts +21 -0
  203. package/types/src/components/Typography/Text/StyledText.d.ts +0 -0
  204. package/types/src/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  205. package/types/src/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  206. package/types/src/components/Typography/Text/index.d.ts +0 -0
  207. package/types/src/components/Typography/index.d.ts +0 -0
  208. package/types/src/index.d.ts +6 -1
  209. package/types/src/testHelpers/renderWithTheme.d.ts +0 -0
  210. package/types/src/theme/__tests__/index.spec.d.ts +0 -0
  211. package/types/src/theme/components/avatar.d.ts +32 -0
  212. package/types/src/theme/components/badge.d.ts +12 -13
  213. package/types/src/theme/components/bottomNavigation.d.ts +0 -0
  214. package/types/src/theme/components/button.d.ts +37 -0
  215. package/types/src/theme/components/card.d.ts +5 -1
  216. package/types/src/theme/components/divider.d.ts +0 -0
  217. package/types/src/theme/components/drawer.d.ts +21 -0
  218. package/types/src/theme/components/fab.d.ts +8 -1
  219. package/types/src/theme/components/icon.d.ts +0 -0
  220. package/types/src/theme/components/progress.d.ts +21 -0
  221. package/types/src/theme/components/tabs.d.ts +14 -2
  222. package/types/src/theme/components/tag.d.ts +30 -0
  223. package/types/src/theme/components/typography.d.ts +0 -0
  224. package/types/src/theme/global/borders.d.ts +7 -1
  225. package/types/src/theme/global/colors.d.ts +6 -1
  226. package/types/src/theme/global/index.d.ts +7 -1
  227. package/types/src/theme/global/scale.d.ts +1 -0
  228. package/types/src/theme/global/space.d.ts +0 -0
  229. package/types/src/theme/global/typography.d.ts +0 -0
  230. package/types/src/theme/index.d.ts +10 -0
  231. package/types/src/types.d.ts +0 -0
  232. package/types/src/utils/__tests__/scale.spec.d.ts +0 -0
  233. package/types/src/utils/helpers.d.ts +0 -0
  234. package/types/src/utils/hooks.d.ts +1 -0
  235. package/types/src/utils/scale.d.ts +0 -0
  236. package/.expo/README.md +0 -15
  237. package/.expo/packager-info.json +0 -10
  238. package/.expo/settings.json +0 -10
  239. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -33
  240. package/testUtils/setup.ts +0 -18
  241. package/types/src/components/FAB/StyledFABContainer.d.ts +0 -3
  242. package/types/src/components/FAB/StyledFABIcon.d.ts +0 -3
  243. package/types/src/styled-components.d.ts +0 -6
@@ -0,0 +1,895 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`StyledButtonContainer has basic-transparent style 1`] = `
4
+ <View
5
+ style={
6
+ Array [
7
+ Object {
8
+ "alignItems": "center",
9
+ "backgroundColor": "transparent",
10
+ "borderColor": "#ffffff",
11
+ "borderRadius": 32,
12
+ "borderWidth": 2,
13
+ "flexDirection": "row",
14
+ "justifyContent": "center",
15
+ "opacity": 1,
16
+ "padding": 14,
17
+ "width": "100%",
18
+ },
19
+ undefined,
20
+ ]
21
+ }
22
+ themeVariant="basic-transparent"
23
+ />
24
+ `;
25
+
26
+ exports[`StyledButtonContainer has filled-primary style 1`] = `
27
+ <View
28
+ style={
29
+ Array [
30
+ Object {
31
+ "alignItems": "center",
32
+ "backgroundColor": "#7622d7",
33
+ "borderRadius": 32,
34
+ "flexDirection": "row",
35
+ "justifyContent": "center",
36
+ "padding": 16,
37
+ "width": "100%",
38
+ },
39
+ undefined,
40
+ ]
41
+ }
42
+ themeVariant="filled-primary"
43
+ />
44
+ `;
45
+
46
+ exports[`StyledButtonContainer has filled-secondary style 1`] = `
47
+ <View
48
+ style={
49
+ Array [
50
+ Object {
51
+ "alignItems": "center",
52
+ "backgroundColor": "#4568fb",
53
+ "borderRadius": 32,
54
+ "flexDirection": "row",
55
+ "justifyContent": "center",
56
+ "padding": 16,
57
+ "width": "100%",
58
+ },
59
+ undefined,
60
+ ]
61
+ }
62
+ themeVariant="filled-secondary"
63
+ />
64
+ `;
65
+
66
+ exports[`StyledButtonContainer has outlined-primary style 1`] = `
67
+ <View
68
+ style={
69
+ Array [
70
+ Object {
71
+ "alignItems": "center",
72
+ "backgroundColor": "transparent",
73
+ "borderColor": "#7622d7",
74
+ "borderRadius": 32,
75
+ "borderWidth": 2,
76
+ "flexDirection": "row",
77
+ "justifyContent": "center",
78
+ "padding": 14,
79
+ "width": "100%",
80
+ },
81
+ undefined,
82
+ ]
83
+ }
84
+ themeVariant="outlined-primary"
85
+ />
86
+ `;
87
+
88
+ exports[`StyledButtonContainer has outlined-secondary style 1`] = `
89
+ <View
90
+ style={
91
+ Array [
92
+ Object {
93
+ "alignItems": "center",
94
+ "backgroundColor": "transparent",
95
+ "borderColor": "#4568fb",
96
+ "borderRadius": 32,
97
+ "borderWidth": 2,
98
+ "flexDirection": "row",
99
+ "justifyContent": "center",
100
+ "padding": 14,
101
+ "width": "100%",
102
+ },
103
+ undefined,
104
+ ]
105
+ }
106
+ themeVariant="outlined-secondary"
107
+ />
108
+ `;
109
+
110
+ exports[`StyledButtonContainer has pressed with the correct variant basic-transparent style 1`] = `
111
+ <View
112
+ pressed={true}
113
+ style={
114
+ Array [
115
+ Object {
116
+ "alignItems": "center",
117
+ "backgroundColor": "transparent",
118
+ "borderColor": "#ffffff",
119
+ "borderRadius": 32,
120
+ "borderWidth": 2,
121
+ "flexDirection": "row",
122
+ "justifyContent": "center",
123
+ "opacity": 0.6,
124
+ "padding": 14,
125
+ "width": "100%",
126
+ },
127
+ undefined,
128
+ ]
129
+ }
130
+ themeVariant="basic-transparent"
131
+ />
132
+ `;
133
+
134
+ exports[`StyledButtonContainer has pressed with the correct variant filled-primary style 1`] = `
135
+ <View
136
+ pressed={true}
137
+ style={
138
+ Array [
139
+ Object {
140
+ "alignItems": "center",
141
+ "backgroundColor": "#c8a7ef",
142
+ "borderRadius": 32,
143
+ "flexDirection": "row",
144
+ "justifyContent": "center",
145
+ "padding": 16,
146
+ "width": "100%",
147
+ },
148
+ undefined,
149
+ ]
150
+ }
151
+ themeVariant="filled-primary"
152
+ />
153
+ `;
154
+
155
+ exports[`StyledButtonContainer has pressed with the correct variant filled-secondary style 1`] = `
156
+ <View
157
+ pressed={true}
158
+ style={
159
+ Array [
160
+ Object {
161
+ "alignItems": "center",
162
+ "backgroundColor": "#d1d9fe",
163
+ "borderRadius": 32,
164
+ "flexDirection": "row",
165
+ "justifyContent": "center",
166
+ "padding": 16,
167
+ "width": "100%",
168
+ },
169
+ undefined,
170
+ ]
171
+ }
172
+ themeVariant="filled-secondary"
173
+ />
174
+ `;
175
+
176
+ exports[`StyledButtonContainer has pressed with the correct variant outlined-primary style 1`] = `
177
+ <View
178
+ pressed={true}
179
+ style={
180
+ Array [
181
+ Object {
182
+ "alignItems": "center",
183
+ "backgroundColor": "transparent",
184
+ "borderColor": "#c8a7ef",
185
+ "borderRadius": 32,
186
+ "borderWidth": 2,
187
+ "flexDirection": "row",
188
+ "justifyContent": "center",
189
+ "padding": 14,
190
+ "width": "100%",
191
+ },
192
+ undefined,
193
+ ]
194
+ }
195
+ themeVariant="outlined-primary"
196
+ />
197
+ `;
198
+
199
+ exports[`StyledButtonContainer has pressed with the correct variant outlined-secondary style 1`] = `
200
+ <View
201
+ pressed={true}
202
+ style={
203
+ Array [
204
+ Object {
205
+ "alignItems": "center",
206
+ "backgroundColor": "transparent",
207
+ "borderColor": "#d1d9fe",
208
+ "borderRadius": 32,
209
+ "borderWidth": 2,
210
+ "flexDirection": "row",
211
+ "justifyContent": "center",
212
+ "padding": 14,
213
+ "width": "100%",
214
+ },
215
+ undefined,
216
+ ]
217
+ }
218
+ themeVariant="outlined-secondary"
219
+ />
220
+ `;
221
+
222
+ exports[`StyledButtonContainer renders disabled correctly 1`] = `
223
+ <View
224
+ disabled={true}
225
+ style={
226
+ Array [
227
+ Object {
228
+ "alignItems": "center",
229
+ "backgroundColor": "#ccced1",
230
+ "borderRadius": 32,
231
+ "flexDirection": "row",
232
+ "justifyContent": "center",
233
+ "padding": 16,
234
+ "width": "100%",
235
+ },
236
+ undefined,
237
+ ]
238
+ }
239
+ themeVariant="filled-primary"
240
+ />
241
+ `;
242
+
243
+ exports[`StyledButtonIcon has basic-transparent style 1`] = `
244
+ <HeroIcon
245
+ name="bell"
246
+ style={
247
+ Array [
248
+ Object {
249
+ "color": "#292a2b",
250
+ "fontSize": 24,
251
+ },
252
+ Array [
253
+ Object {
254
+ "color": "#ffffff",
255
+ "fontSize": 20,
256
+ },
257
+ undefined,
258
+ ],
259
+ ]
260
+ }
261
+ themeIntent="text"
262
+ themeSize="medium"
263
+ />
264
+ `;
265
+
266
+ exports[`StyledButtonIcon has filled-primary style 1`] = `
267
+ <HeroIcon
268
+ name="bell"
269
+ style={
270
+ Array [
271
+ Object {
272
+ "color": "#292a2b",
273
+ "fontSize": 24,
274
+ },
275
+ Array [
276
+ Object {
277
+ "color": "#ffffff",
278
+ "fontSize": 20,
279
+ },
280
+ undefined,
281
+ ],
282
+ ]
283
+ }
284
+ themeIntent="text"
285
+ themeSize="medium"
286
+ />
287
+ `;
288
+
289
+ exports[`StyledButtonIcon has filled-secondary style 1`] = `
290
+ <HeroIcon
291
+ name="bell"
292
+ style={
293
+ Array [
294
+ Object {
295
+ "color": "#292a2b",
296
+ "fontSize": 24,
297
+ },
298
+ Array [
299
+ Object {
300
+ "color": "#ffffff",
301
+ "fontSize": 20,
302
+ },
303
+ undefined,
304
+ ],
305
+ ]
306
+ }
307
+ themeIntent="text"
308
+ themeSize="medium"
309
+ />
310
+ `;
311
+
312
+ exports[`StyledButtonIcon has outlined-primary style 1`] = `
313
+ <HeroIcon
314
+ name="bell"
315
+ style={
316
+ Array [
317
+ Object {
318
+ "color": "#292a2b",
319
+ "fontSize": 24,
320
+ },
321
+ Array [
322
+ Object {
323
+ "color": "#7622d7",
324
+ "fontSize": 18,
325
+ "lineHeight": 24,
326
+ },
327
+ undefined,
328
+ ],
329
+ ]
330
+ }
331
+ themeIntent="text"
332
+ themeSize="medium"
333
+ />
334
+ `;
335
+
336
+ exports[`StyledButtonIcon has outlined-secondary style 1`] = `
337
+ <HeroIcon
338
+ name="bell"
339
+ style={
340
+ Array [
341
+ Object {
342
+ "color": "#292a2b",
343
+ "fontSize": 24,
344
+ },
345
+ Array [
346
+ Object {
347
+ "color": "#4568fb",
348
+ "fontSize": 18,
349
+ "lineHeight": 24,
350
+ },
351
+ undefined,
352
+ ],
353
+ ]
354
+ }
355
+ themeIntent="text"
356
+ themeSize="medium"
357
+ />
358
+ `;
359
+
360
+ exports[`StyledButtonIcon has pressed with the correct variant basic-transparent style 1`] = `
361
+ <HeroIcon
362
+ name="bell"
363
+ style={
364
+ Array [
365
+ Object {
366
+ "color": "#292a2b",
367
+ "fontSize": 24,
368
+ },
369
+ Array [
370
+ Object {
371
+ "color": "#ffffff",
372
+ "fontSize": 20,
373
+ },
374
+ undefined,
375
+ ],
376
+ ]
377
+ }
378
+ themeIntent="text"
379
+ themeSize="medium"
380
+ />
381
+ `;
382
+
383
+ exports[`StyledButtonIcon has pressed with the correct variant filled-primary style 1`] = `
384
+ <HeroIcon
385
+ name="bell"
386
+ style={
387
+ Array [
388
+ Object {
389
+ "color": "#292a2b",
390
+ "fontSize": 24,
391
+ },
392
+ Array [
393
+ Object {
394
+ "color": "#ffffff",
395
+ "fontSize": 20,
396
+ },
397
+ undefined,
398
+ ],
399
+ ]
400
+ }
401
+ themeIntent="text"
402
+ themeSize="medium"
403
+ />
404
+ `;
405
+
406
+ exports[`StyledButtonIcon has pressed with the correct variant filled-secondary style 1`] = `
407
+ <HeroIcon
408
+ name="bell"
409
+ style={
410
+ Array [
411
+ Object {
412
+ "color": "#292a2b",
413
+ "fontSize": 24,
414
+ },
415
+ Array [
416
+ Object {
417
+ "color": "#ffffff",
418
+ "fontSize": 20,
419
+ },
420
+ undefined,
421
+ ],
422
+ ]
423
+ }
424
+ themeIntent="text"
425
+ themeSize="medium"
426
+ />
427
+ `;
428
+
429
+ exports[`StyledButtonIcon has pressed with the correct variant outlined-primary style 1`] = `
430
+ <HeroIcon
431
+ name="bell"
432
+ style={
433
+ Array [
434
+ Object {
435
+ "color": "#292a2b",
436
+ "fontSize": 24,
437
+ },
438
+ Array [
439
+ Object {
440
+ "color": "#c8a7ef",
441
+ "fontSize": 18,
442
+ "lineHeight": 24,
443
+ },
444
+ undefined,
445
+ ],
446
+ ]
447
+ }
448
+ themeIntent="text"
449
+ themeSize="medium"
450
+ />
451
+ `;
452
+
453
+ exports[`StyledButtonIcon has pressed with the correct variant outlined-secondary style 1`] = `
454
+ <HeroIcon
455
+ name="bell"
456
+ style={
457
+ Array [
458
+ Object {
459
+ "color": "#292a2b",
460
+ "fontSize": 24,
461
+ },
462
+ Array [
463
+ Object {
464
+ "color": "#d1d9fe",
465
+ "fontSize": 18,
466
+ "lineHeight": 24,
467
+ },
468
+ undefined,
469
+ ],
470
+ ]
471
+ }
472
+ themeIntent="text"
473
+ themeSize="medium"
474
+ />
475
+ `;
476
+
477
+ exports[`StyledButtonIcon renders disabled correctly 1`] = `
478
+ <HeroIcon
479
+ name="bell"
480
+ style={
481
+ Array [
482
+ Object {
483
+ "color": "#292a2b",
484
+ "fontSize": 24,
485
+ },
486
+ Array [
487
+ Object {
488
+ "color": "#ffffff",
489
+ "fontSize": 20,
490
+ },
491
+ undefined,
492
+ ],
493
+ ]
494
+ }
495
+ themeIntent="text"
496
+ themeSize="medium"
497
+ />
498
+ `;
499
+
500
+ exports[`StyledButtonIconWrapper has left style 1`] = `
501
+ <View
502
+ style={
503
+ Array [
504
+ Object {
505
+ "paddingRight": 8,
506
+ },
507
+ undefined,
508
+ ]
509
+ }
510
+ themePosition="left"
511
+ />
512
+ `;
513
+
514
+ exports[`StyledButtonIconWrapper has right style 1`] = `
515
+ <View
516
+ style={
517
+ Array [
518
+ Object {
519
+ "paddingLeft": 8,
520
+ },
521
+ undefined,
522
+ ]
523
+ }
524
+ themePosition="right"
525
+ />
526
+ `;
527
+
528
+ exports[`StyledButtonText has basic-transparent style 1`] = `
529
+ <Text
530
+ style={
531
+ Array [
532
+ Object {
533
+ "color": "#292a2b",
534
+ "fontFamily": "BeVietnamPro-Regular",
535
+ "fontSize": 14,
536
+ "letterSpacing": 0.42,
537
+ "lineHeight": 22,
538
+ },
539
+ Array [
540
+ Object {
541
+ "color": "#ffffff",
542
+ "flexShrink": 1,
543
+ "fontFamily": "BeVietnamPro-SemiBold",
544
+ "fontSize": 18,
545
+ "lineHeight": 24,
546
+ "textAlign": "center",
547
+ },
548
+ undefined,
549
+ ],
550
+ ]
551
+ }
552
+ themeFontSize="medium"
553
+ themeFontWeight="regular"
554
+ themeIntent="body"
555
+ themeVariant="basic-transparent"
556
+ >
557
+ Example
558
+ </Text>
559
+ `;
560
+
561
+ exports[`StyledButtonText has filled-primary style 1`] = `
562
+ <Text
563
+ style={
564
+ Array [
565
+ Object {
566
+ "color": "#292a2b",
567
+ "fontFamily": "BeVietnamPro-Regular",
568
+ "fontSize": 14,
569
+ "letterSpacing": 0.42,
570
+ "lineHeight": 22,
571
+ },
572
+ Array [
573
+ Object {
574
+ "color": "#ffffff",
575
+ "flexShrink": 1,
576
+ "fontFamily": "BeVietnamPro-SemiBold",
577
+ "fontSize": 18,
578
+ "lineHeight": 24,
579
+ "textAlign": "center",
580
+ },
581
+ undefined,
582
+ ],
583
+ ]
584
+ }
585
+ themeFontSize="medium"
586
+ themeFontWeight="regular"
587
+ themeIntent="body"
588
+ themeVariant="filled-primary"
589
+ >
590
+ Example
591
+ </Text>
592
+ `;
593
+
594
+ exports[`StyledButtonText has filled-secondary style 1`] = `
595
+ <Text
596
+ style={
597
+ Array [
598
+ Object {
599
+ "color": "#292a2b",
600
+ "fontFamily": "BeVietnamPro-Regular",
601
+ "fontSize": 14,
602
+ "letterSpacing": 0.42,
603
+ "lineHeight": 22,
604
+ },
605
+ Array [
606
+ Object {
607
+ "color": "#ffffff",
608
+ "flexShrink": 1,
609
+ "fontFamily": "BeVietnamPro-SemiBold",
610
+ "fontSize": 18,
611
+ "lineHeight": 24,
612
+ "textAlign": "center",
613
+ },
614
+ undefined,
615
+ ],
616
+ ]
617
+ }
618
+ themeFontSize="medium"
619
+ themeFontWeight="regular"
620
+ themeIntent="body"
621
+ themeVariant="filled-secondary"
622
+ >
623
+ Example
624
+ </Text>
625
+ `;
626
+
627
+ exports[`StyledButtonText has outlined-primary style 1`] = `
628
+ <Text
629
+ style={
630
+ Array [
631
+ Object {
632
+ "color": "#292a2b",
633
+ "fontFamily": "BeVietnamPro-Regular",
634
+ "fontSize": 14,
635
+ "letterSpacing": 0.42,
636
+ "lineHeight": 22,
637
+ },
638
+ Array [
639
+ Object {
640
+ "color": "#7622d7",
641
+ "flexShrink": 1,
642
+ "fontFamily": "BeVietnamPro-SemiBold",
643
+ "fontSize": 18,
644
+ "lineHeight": 24,
645
+ "textAlign": "center",
646
+ },
647
+ undefined,
648
+ ],
649
+ ]
650
+ }
651
+ themeFontSize="medium"
652
+ themeFontWeight="regular"
653
+ themeIntent="body"
654
+ themeVariant="outlined-primary"
655
+ >
656
+ Example
657
+ </Text>
658
+ `;
659
+
660
+ exports[`StyledButtonText has outlined-secondary style 1`] = `
661
+ <Text
662
+ style={
663
+ Array [
664
+ Object {
665
+ "color": "#292a2b",
666
+ "fontFamily": "BeVietnamPro-Regular",
667
+ "fontSize": 14,
668
+ "letterSpacing": 0.42,
669
+ "lineHeight": 22,
670
+ },
671
+ Array [
672
+ Object {
673
+ "color": "#4568fb",
674
+ "flexShrink": 1,
675
+ "fontFamily": "BeVietnamPro-SemiBold",
676
+ "fontSize": 18,
677
+ "lineHeight": 24,
678
+ "textAlign": "center",
679
+ },
680
+ undefined,
681
+ ],
682
+ ]
683
+ }
684
+ themeFontSize="medium"
685
+ themeFontWeight="regular"
686
+ themeIntent="body"
687
+ themeVariant="outlined-secondary"
688
+ >
689
+ Example
690
+ </Text>
691
+ `;
692
+
693
+ exports[`StyledButtonText has pressed with the correct variant basic-transparent style 1`] = `
694
+ <Text
695
+ pressed={true}
696
+ style={
697
+ Array [
698
+ Object {
699
+ "color": "#292a2b",
700
+ "fontFamily": "BeVietnamPro-Regular",
701
+ "fontSize": 14,
702
+ "letterSpacing": 0.42,
703
+ "lineHeight": 22,
704
+ },
705
+ Array [
706
+ Object {
707
+ "color": "#ffffff",
708
+ "flexShrink": 1,
709
+ "fontFamily": "BeVietnamPro-SemiBold",
710
+ "fontSize": 18,
711
+ "lineHeight": 24,
712
+ "textAlign": "center",
713
+ },
714
+ undefined,
715
+ ],
716
+ ]
717
+ }
718
+ themeFontSize="medium"
719
+ themeFontWeight="regular"
720
+ themeIntent="body"
721
+ themeVariant="basic-transparent"
722
+ >
723
+ Example
724
+ </Text>
725
+ `;
726
+
727
+ exports[`StyledButtonText has pressed with the correct variant filled-primary style 1`] = `
728
+ <Text
729
+ pressed={true}
730
+ style={
731
+ Array [
732
+ Object {
733
+ "color": "#292a2b",
734
+ "fontFamily": "BeVietnamPro-Regular",
735
+ "fontSize": 14,
736
+ "letterSpacing": 0.42,
737
+ "lineHeight": 22,
738
+ },
739
+ Array [
740
+ Object {
741
+ "color": "#ffffff",
742
+ "flexShrink": 1,
743
+ "fontFamily": "BeVietnamPro-SemiBold",
744
+ "fontSize": 18,
745
+ "lineHeight": 24,
746
+ "textAlign": "center",
747
+ },
748
+ undefined,
749
+ ],
750
+ ]
751
+ }
752
+ themeFontSize="medium"
753
+ themeFontWeight="regular"
754
+ themeIntent="body"
755
+ themeVariant="filled-primary"
756
+ >
757
+ Example
758
+ </Text>
759
+ `;
760
+
761
+ exports[`StyledButtonText has pressed with the correct variant filled-secondary style 1`] = `
762
+ <Text
763
+ pressed={true}
764
+ style={
765
+ Array [
766
+ Object {
767
+ "color": "#292a2b",
768
+ "fontFamily": "BeVietnamPro-Regular",
769
+ "fontSize": 14,
770
+ "letterSpacing": 0.42,
771
+ "lineHeight": 22,
772
+ },
773
+ Array [
774
+ Object {
775
+ "color": "#ffffff",
776
+ "flexShrink": 1,
777
+ "fontFamily": "BeVietnamPro-SemiBold",
778
+ "fontSize": 18,
779
+ "lineHeight": 24,
780
+ "textAlign": "center",
781
+ },
782
+ undefined,
783
+ ],
784
+ ]
785
+ }
786
+ themeFontSize="medium"
787
+ themeFontWeight="regular"
788
+ themeIntent="body"
789
+ themeVariant="filled-secondary"
790
+ >
791
+ Example
792
+ </Text>
793
+ `;
794
+
795
+ exports[`StyledButtonText has pressed with the correct variant outlined-primary style 1`] = `
796
+ <Text
797
+ pressed={true}
798
+ style={
799
+ Array [
800
+ Object {
801
+ "color": "#292a2b",
802
+ "fontFamily": "BeVietnamPro-Regular",
803
+ "fontSize": 14,
804
+ "letterSpacing": 0.42,
805
+ "lineHeight": 22,
806
+ },
807
+ Array [
808
+ Object {
809
+ "color": "#c8a7ef",
810
+ "flexShrink": 1,
811
+ "fontFamily": "BeVietnamPro-SemiBold",
812
+ "fontSize": 18,
813
+ "lineHeight": 24,
814
+ "textAlign": "center",
815
+ },
816
+ undefined,
817
+ ],
818
+ ]
819
+ }
820
+ themeFontSize="medium"
821
+ themeFontWeight="regular"
822
+ themeIntent="body"
823
+ themeVariant="outlined-primary"
824
+ >
825
+ Example
826
+ </Text>
827
+ `;
828
+
829
+ exports[`StyledButtonText has pressed with the correct variant outlined-secondary style 1`] = `
830
+ <Text
831
+ pressed={true}
832
+ style={
833
+ Array [
834
+ Object {
835
+ "color": "#292a2b",
836
+ "fontFamily": "BeVietnamPro-Regular",
837
+ "fontSize": 14,
838
+ "letterSpacing": 0.42,
839
+ "lineHeight": 22,
840
+ },
841
+ Array [
842
+ Object {
843
+ "color": "#d1d9fe",
844
+ "flexShrink": 1,
845
+ "fontFamily": "BeVietnamPro-SemiBold",
846
+ "fontSize": 18,
847
+ "lineHeight": 24,
848
+ "textAlign": "center",
849
+ },
850
+ undefined,
851
+ ],
852
+ ]
853
+ }
854
+ themeFontSize="medium"
855
+ themeFontWeight="regular"
856
+ themeIntent="body"
857
+ themeVariant="outlined-secondary"
858
+ >
859
+ Example
860
+ </Text>
861
+ `;
862
+
863
+ exports[`StyledButtonText renders disabled correctly 1`] = `
864
+ <Text
865
+ disabled={true}
866
+ style={
867
+ Array [
868
+ Object {
869
+ "color": "#292a2b",
870
+ "fontFamily": "BeVietnamPro-Regular",
871
+ "fontSize": 14,
872
+ "letterSpacing": 0.42,
873
+ "lineHeight": 22,
874
+ },
875
+ Array [
876
+ Object {
877
+ "color": "#ffffff",
878
+ "flexShrink": 1,
879
+ "fontFamily": "BeVietnamPro-SemiBold",
880
+ "fontSize": 18,
881
+ "lineHeight": 24,
882
+ "textAlign": "center",
883
+ },
884
+ undefined,
885
+ ],
886
+ ]
887
+ }
888
+ themeFontSize="medium"
889
+ themeFontWeight="regular"
890
+ themeIntent="body"
891
+ themeVariant="filled-primary"
892
+ >
893
+ Example
894
+ </Text>
895
+ `;