@hero-design/rn 7.13.0 → 7.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/.eslintrc.json +3 -1
  2. package/.turbo/turbo-build.log +9 -8
  3. package/assets/fonts/hero-icons.ttf +0 -0
  4. package/babel.config.js +16 -0
  5. package/es/index.js +26977 -7611
  6. package/lib/assets/fonts/hero-icons.ttf +0 -0
  7. package/lib/index.js +26983 -7613
  8. package/package.json +9 -4
  9. package/rollup.config.js +1 -0
  10. package/src/components/Accordion/AccordionItem.tsx +50 -0
  11. package/src/components/Accordion/StyledAccordion.tsx +29 -0
  12. package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +56 -0
  13. package/src/components/Accordion/__tests__/StyledAccordion.spec.tsx +17 -0
  14. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +529 -0
  15. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +33 -0
  16. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +822 -0
  17. package/src/components/Accordion/__tests__/index.spec.tsx +54 -0
  18. package/src/components/Accordion/index.tsx +82 -0
  19. package/src/components/Accordion/utils.tsx +11 -0
  20. package/src/components/Button/IconButton.tsx +1 -1
  21. package/src/components/Calendar/CalendarRowItem.tsx +54 -0
  22. package/src/components/Calendar/StyledCalendar.tsx +76 -0
  23. package/src/components/Calendar/__tests__/CalendarRowItem.spec.tsx +76 -0
  24. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +411 -0
  25. package/src/components/Calendar/__tests__/helper.spec.ts +50 -0
  26. package/src/components/Calendar/__tests__/index.spec.tsx +99 -0
  27. package/src/components/Calendar/helpers.ts +29 -0
  28. package/src/components/Calendar/index.tsx +217 -0
  29. package/src/components/Collapse/index.tsx +13 -15
  30. package/src/components/ContentNavigator/index.tsx +6 -0
  31. package/src/components/Empty/StyledEmpty.tsx +47 -0
  32. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +66 -0
  33. package/src/components/Empty/__tests__/index.spec.tsx +17 -0
  34. package/src/components/Empty/index.tsx +53 -0
  35. package/src/components/FAB/ActionGroup/ActionItem.tsx +6 -2
  36. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -0
  37. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +7 -1
  38. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +84 -22
  39. package/src/components/FAB/ActionGroup/index.tsx +8 -1
  40. package/src/components/Icon/HeroIcon/selection.json +1 -1
  41. package/src/components/Icon/IconList.ts +14 -0
  42. package/src/components/List/BasicListItem.tsx +44 -34
  43. package/src/components/List/ListItem.tsx +67 -58
  44. package/src/components/List/StyledBasicListItem.tsx +2 -3
  45. package/src/components/List/StyledListItem.tsx +2 -2
  46. package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +5 -2
  47. package/src/components/List/__tests__/StyledListItem.spec.tsx +4 -1
  48. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +15 -10
  49. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +52 -32
  50. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +128 -48
  51. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +132 -52
  52. package/src/components/RichTextEditor/EditorEvent.ts +7 -0
  53. package/src/components/RichTextEditor/EditorToolbar.tsx +220 -0
  54. package/src/components/RichTextEditor/MentionList.tsx +69 -0
  55. package/src/components/RichTextEditor/RichTextEditor.tsx +396 -0
  56. package/src/components/RichTextEditor/StyledRichTextEditor.ts +20 -0
  57. package/src/components/RichTextEditor/StyledToolbar.ts +32 -0
  58. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +130 -0
  59. package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +109 -0
  60. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +245 -0
  61. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +324 -0
  62. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +45 -0
  63. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +526 -0
  64. package/src/components/RichTextEditor/constants.ts +20 -0
  65. package/src/components/RichTextEditor/hero-editor.d.ts +8 -0
  66. package/src/components/RichTextEditor/index.tsx +8 -0
  67. package/src/components/RichTextEditor/utils/events.ts +31 -0
  68. package/src/components/RichTextEditor/utils/rnWebView.ts +19 -0
  69. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +77 -0
  70. package/src/components/SectionHeading/__tests__/index.spec.tsx +14 -0
  71. package/src/components/SectionHeading/index.tsx +16 -9
  72. package/src/components/Tag/StyledTag.tsx +12 -2
  73. package/src/components/Tag/__tests__/Tag.spec.tsx +35 -8
  74. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +118 -4
  75. package/src/components/Tag/index.tsx +9 -2
  76. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1 -0
  77. package/src/components/Typography/Text/StyledText.tsx +2 -1
  78. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
  79. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +22 -0
  80. package/src/components/Typography/Text/index.tsx +2 -1
  81. package/src/index.ts +8 -0
  82. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +101 -4
  83. package/src/theme/components/accordion.ts +19 -0
  84. package/src/theme/components/calendar.ts +34 -0
  85. package/src/theme/components/card.ts +1 -1
  86. package/src/theme/components/empty.ts +38 -0
  87. package/src/theme/components/fab.ts +4 -3
  88. package/src/theme/components/list.ts +1 -0
  89. package/src/theme/components/pinInput.ts +1 -1
  90. package/src/theme/components/richTextEditor.ts +34 -0
  91. package/src/theme/components/tag.ts +8 -2
  92. package/src/theme/components/typography.ts +1 -0
  93. package/src/theme/global/borders.ts +6 -6
  94. package/src/theme/global/colors.ts +4 -1
  95. package/src/theme/index.ts +12 -0
  96. package/testUtils/setup.tsx +17 -0
  97. package/types/components/Accordion/AccordionItem.d.ts +14 -0
  98. package/types/components/Accordion/StyledAccordion.d.ts +32 -0
  99. package/types/components/Accordion/__tests__/AccordionItem.spec.d.ts +1 -0
  100. package/types/components/Accordion/__tests__/StyledAccordion.spec.d.ts +1 -0
  101. package/types/components/Accordion/__tests__/index.spec.d.ts +1 -0
  102. package/types/components/Accordion/index.d.ts +38 -0
  103. package/types/components/Accordion/utils.d.ts +1 -0
  104. package/types/components/Button/IconButton.d.ts +1 -1
  105. package/types/components/Calendar/CalendarRowItem.d.ts +10 -0
  106. package/types/components/Calendar/StyledCalendar.d.ts +54 -0
  107. package/types/components/Calendar/__tests__/CalendarRowItem.spec.d.ts +1 -0
  108. package/types/components/Calendar/__tests__/helper.spec.d.ts +1 -0
  109. package/types/components/Calendar/__tests__/index.spec.d.ts +1 -0
  110. package/types/components/Calendar/helpers.d.ts +3 -0
  111. package/types/components/Calendar/index.d.ts +40 -0
  112. package/types/components/Collapse/index.d.ts +1 -1
  113. package/types/components/ContentNavigator/index.d.ts +5 -1
  114. package/types/components/Empty/StyledEmpty.d.ts +31 -0
  115. package/types/components/Empty/__tests__/index.spec.d.ts +1 -0
  116. package/types/components/Empty/index.d.ts +26 -0
  117. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +6 -1
  118. package/types/components/FAB/ActionGroup/index.d.ts +6 -1
  119. package/types/components/FAB/index.d.ts +1 -1
  120. package/types/components/Icon/IconList.d.ts +1 -1
  121. package/types/components/Icon/utils.d.ts +1 -1
  122. package/types/components/List/StyledBasicListItem.d.ts +3 -3
  123. package/types/components/List/StyledListItem.d.ts +3 -3
  124. package/types/components/RichTextEditor/EditorEvent.d.ts +3 -0
  125. package/types/components/RichTextEditor/EditorToolbar.d.ts +17 -0
  126. package/types/components/RichTextEditor/MentionList.d.ts +12 -0
  127. package/types/components/RichTextEditor/RichTextEditor.d.ts +65 -0
  128. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +16 -0
  129. package/types/components/RichTextEditor/StyledToolbar.d.ts +21 -0
  130. package/types/components/RichTextEditor/__tests__/EditorToolbar.spec.d.ts +1 -0
  131. package/types/components/RichTextEditor/__tests__/MentionList.spec.d.ts +1 -0
  132. package/types/components/RichTextEditor/__tests__/RichTextEditor.spec.d.ts +1 -0
  133. package/types/components/RichTextEditor/constants.d.ts +19 -0
  134. package/types/components/RichTextEditor/index.d.ts +5 -0
  135. package/types/components/RichTextEditor/utils/events.d.ts +8 -0
  136. package/types/components/RichTextEditor/utils/rnWebView.d.ts +7 -0
  137. package/types/components/SectionHeading/index.d.ts +2 -2
  138. package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
  139. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  140. package/types/components/Tag/StyledTag.d.ts +1 -1
  141. package/types/components/Tag/index.d.ts +1 -1
  142. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  143. package/types/components/Typography/Text/index.d.ts +1 -1
  144. package/types/index.d.ts +5 -1
  145. package/types/theme/components/accordion.d.ts +13 -0
  146. package/types/theme/components/calendar.d.ts +26 -0
  147. package/types/theme/components/empty.d.ts +28 -0
  148. package/types/theme/components/fab.d.ts +1 -0
  149. package/types/theme/components/list.d.ts +1 -0
  150. package/types/theme/components/richTextEditor.d.ts +26 -0
  151. package/types/theme/components/tag.d.ts +8 -2
  152. package/types/theme/components/typography.d.ts +1 -0
  153. package/types/theme/global/colors.d.ts +4 -1
  154. package/types/theme/global/index.d.ts +4 -1
  155. package/types/theme/index.d.ts +8 -0
@@ -0,0 +1,529 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`AccordionItem renders correctly when header is an element 1`] = `
4
+ <View
5
+ style={
6
+ Array [
7
+ Object {
8
+ "backgroundColor": "#ffffff",
9
+ "borderRadius": 0,
10
+ "padding": 16,
11
+ },
12
+ undefined,
13
+ ]
14
+ }
15
+ themeVariant="default"
16
+ >
17
+ <View
18
+ accessible={true}
19
+ collapsable={false}
20
+ focusable={false}
21
+ nativeID="animatedComponent"
22
+ onClick={[Function]}
23
+ onResponderGrant={[Function]}
24
+ onResponderMove={[Function]}
25
+ onResponderRelease={[Function]}
26
+ onResponderTerminate={[Function]}
27
+ onResponderTerminationRequest={[Function]}
28
+ onStartShouldSetResponder={[Function]}
29
+ style={
30
+ Object {
31
+ "flexDirection": "row",
32
+ "justifyContent": "space-between",
33
+ "opacity": 1,
34
+ }
35
+ }
36
+ >
37
+ <Text
38
+ style={
39
+ Array [
40
+ Object {
41
+ "color": "#292a2b",
42
+ "fontFamily": "BeVietnamPro-Regular",
43
+ "fontSize": 14,
44
+ "letterSpacing": 0.42,
45
+ "lineHeight": 22,
46
+ },
47
+ undefined,
48
+ ]
49
+ }
50
+ themeFontSize="medium"
51
+ themeFontWeight="regular"
52
+ themeIntent="body"
53
+ >
54
+ Accordion header
55
+ </Text>
56
+ <HeroIcon
57
+ name="arrow-down"
58
+ style={
59
+ Array [
60
+ Object {
61
+ "color": "#7622d7",
62
+ "fontSize": 20,
63
+ },
64
+ undefined,
65
+ ]
66
+ }
67
+ themeIntent="primary"
68
+ themeSize="small"
69
+ />
70
+ </View>
71
+ <View
72
+ collapsable={false}
73
+ nativeID="animatedComponent"
74
+ style={
75
+ Object {
76
+ "height": 0,
77
+ "margin": 0,
78
+ "overflow": "hidden",
79
+ "padding": 0,
80
+ }
81
+ }
82
+ >
83
+ <View
84
+ style={
85
+ Array [
86
+ Object {
87
+ "height": 1334,
88
+ },
89
+ undefined,
90
+ ]
91
+ }
92
+ >
93
+ <View
94
+ onLayout={[Function]}
95
+ style={
96
+ Array [
97
+ Object {
98
+ "margin": 0,
99
+ "padding": 0,
100
+ },
101
+ Array [
102
+ Object {
103
+ "paddingTop": 16,
104
+ },
105
+ undefined,
106
+ ],
107
+ ]
108
+ }
109
+ >
110
+ <Text
111
+ style={
112
+ Array [
113
+ Object {
114
+ "color": "#292a2b",
115
+ "fontFamily": "BeVietnamPro-Regular",
116
+ "fontSize": 14,
117
+ "letterSpacing": 0.42,
118
+ "lineHeight": 22,
119
+ },
120
+ undefined,
121
+ ]
122
+ }
123
+ themeFontSize="medium"
124
+ themeFontWeight="regular"
125
+ themeIntent="body"
126
+ >
127
+ Accordion content
128
+ </Text>
129
+ </View>
130
+ </View>
131
+ </View>
132
+ </View>
133
+ `;
134
+
135
+ exports[`AccordionItem renders correctly when header is string 1`] = `
136
+ <View
137
+ style={
138
+ Array [
139
+ Object {
140
+ "backgroundColor": "#ffffff",
141
+ "borderRadius": 0,
142
+ "padding": 16,
143
+ },
144
+ undefined,
145
+ ]
146
+ }
147
+ themeVariant="default"
148
+ >
149
+ <View
150
+ accessible={true}
151
+ collapsable={false}
152
+ focusable={false}
153
+ nativeID="animatedComponent"
154
+ onClick={[Function]}
155
+ onResponderGrant={[Function]}
156
+ onResponderMove={[Function]}
157
+ onResponderRelease={[Function]}
158
+ onResponderTerminate={[Function]}
159
+ onResponderTerminationRequest={[Function]}
160
+ onStartShouldSetResponder={[Function]}
161
+ style={
162
+ Object {
163
+ "flexDirection": "row",
164
+ "justifyContent": "space-between",
165
+ "opacity": 1,
166
+ }
167
+ }
168
+ >
169
+ <Text
170
+ style={
171
+ Array [
172
+ Object {
173
+ "color": "#292a2b",
174
+ "fontFamily": "BeVietnamPro-SemiBold",
175
+ "fontSize": 16,
176
+ "letterSpacing": 0.48,
177
+ "lineHeight": 24,
178
+ },
179
+ undefined,
180
+ ]
181
+ }
182
+ themeFontSize="large"
183
+ themeFontWeight="semi-bold"
184
+ themeIntent="body"
185
+ >
186
+ Accordion header
187
+ </Text>
188
+ <HeroIcon
189
+ name="arrow-down"
190
+ style={
191
+ Array [
192
+ Object {
193
+ "color": "#7622d7",
194
+ "fontSize": 20,
195
+ },
196
+ undefined,
197
+ ]
198
+ }
199
+ themeIntent="primary"
200
+ themeSize="small"
201
+ />
202
+ </View>
203
+ <View
204
+ collapsable={false}
205
+ nativeID="animatedComponent"
206
+ style={
207
+ Object {
208
+ "height": 0,
209
+ "margin": 0,
210
+ "overflow": "hidden",
211
+ "padding": 0,
212
+ }
213
+ }
214
+ >
215
+ <View
216
+ style={
217
+ Array [
218
+ Object {
219
+ "height": 1334,
220
+ },
221
+ undefined,
222
+ ]
223
+ }
224
+ >
225
+ <View
226
+ onLayout={[Function]}
227
+ style={
228
+ Array [
229
+ Object {
230
+ "margin": 0,
231
+ "padding": 0,
232
+ },
233
+ Array [
234
+ Object {
235
+ "paddingTop": 16,
236
+ },
237
+ undefined,
238
+ ],
239
+ ]
240
+ }
241
+ >
242
+ <Text
243
+ style={
244
+ Array [
245
+ Object {
246
+ "color": "#292a2b",
247
+ "fontFamily": "BeVietnamPro-Regular",
248
+ "fontSize": 14,
249
+ "letterSpacing": 0.42,
250
+ "lineHeight": 22,
251
+ },
252
+ undefined,
253
+ ]
254
+ }
255
+ themeFontSize="medium"
256
+ themeFontWeight="regular"
257
+ themeIntent="body"
258
+ >
259
+ Accordion content
260
+ </Text>
261
+ </View>
262
+ </View>
263
+ </View>
264
+ </View>
265
+ `;
266
+
267
+ exports[`AccordionItem renders correctly when open 1`] = `
268
+ <View
269
+ style={
270
+ Array [
271
+ Object {
272
+ "backgroundColor": "#ffffff",
273
+ "borderRadius": 0,
274
+ "padding": 16,
275
+ },
276
+ undefined,
277
+ ]
278
+ }
279
+ themeVariant="default"
280
+ >
281
+ <View
282
+ accessible={true}
283
+ collapsable={false}
284
+ focusable={false}
285
+ nativeID="animatedComponent"
286
+ onClick={[Function]}
287
+ onResponderGrant={[Function]}
288
+ onResponderMove={[Function]}
289
+ onResponderRelease={[Function]}
290
+ onResponderTerminate={[Function]}
291
+ onResponderTerminationRequest={[Function]}
292
+ onStartShouldSetResponder={[Function]}
293
+ style={
294
+ Object {
295
+ "flexDirection": "row",
296
+ "justifyContent": "space-between",
297
+ "opacity": 1,
298
+ }
299
+ }
300
+ >
301
+ <Text
302
+ style={
303
+ Array [
304
+ Object {
305
+ "color": "#292a2b",
306
+ "fontFamily": "BeVietnamPro-SemiBold",
307
+ "fontSize": 16,
308
+ "letterSpacing": 0.48,
309
+ "lineHeight": 24,
310
+ },
311
+ undefined,
312
+ ]
313
+ }
314
+ themeFontSize="large"
315
+ themeFontWeight="semi-bold"
316
+ themeIntent="body"
317
+ >
318
+ Accordion header
319
+ </Text>
320
+ <HeroIcon
321
+ name="arrow-up"
322
+ style={
323
+ Array [
324
+ Object {
325
+ "color": "#7622d7",
326
+ "fontSize": 20,
327
+ },
328
+ undefined,
329
+ ]
330
+ }
331
+ themeIntent="primary"
332
+ themeSize="small"
333
+ />
334
+ </View>
335
+ <View
336
+ collapsable={false}
337
+ nativeID="animatedComponent"
338
+ style={
339
+ Object {
340
+ "height": 0,
341
+ "margin": 0,
342
+ "overflow": "hidden",
343
+ "padding": 0,
344
+ }
345
+ }
346
+ >
347
+ <View
348
+ style={
349
+ Array [
350
+ Object {
351
+ "height": 1334,
352
+ },
353
+ undefined,
354
+ ]
355
+ }
356
+ >
357
+ <View
358
+ onLayout={[Function]}
359
+ style={
360
+ Array [
361
+ Object {
362
+ "margin": 0,
363
+ "padding": 0,
364
+ },
365
+ Array [
366
+ Object {
367
+ "paddingTop": 16,
368
+ },
369
+ undefined,
370
+ ],
371
+ ]
372
+ }
373
+ >
374
+ <Text
375
+ style={
376
+ Array [
377
+ Object {
378
+ "color": "#292a2b",
379
+ "fontFamily": "BeVietnamPro-Regular",
380
+ "fontSize": 14,
381
+ "letterSpacing": 0.42,
382
+ "lineHeight": 22,
383
+ },
384
+ undefined,
385
+ ]
386
+ }
387
+ themeFontSize="medium"
388
+ themeFontWeight="regular"
389
+ themeIntent="body"
390
+ >
391
+ Accordion content
392
+ </Text>
393
+ </View>
394
+ </View>
395
+ </View>
396
+ </View>
397
+ `;
398
+
399
+ exports[`AccordionItem renders correctly when variant is card 1`] = `
400
+ <View
401
+ style={
402
+ Array [
403
+ Object {
404
+ "backgroundColor": "#ffffff",
405
+ "borderRadius": 8,
406
+ "padding": 16,
407
+ },
408
+ undefined,
409
+ ]
410
+ }
411
+ themeVariant="card"
412
+ >
413
+ <View
414
+ accessible={true}
415
+ collapsable={false}
416
+ focusable={false}
417
+ nativeID="animatedComponent"
418
+ onClick={[Function]}
419
+ onResponderGrant={[Function]}
420
+ onResponderMove={[Function]}
421
+ onResponderRelease={[Function]}
422
+ onResponderTerminate={[Function]}
423
+ onResponderTerminationRequest={[Function]}
424
+ onStartShouldSetResponder={[Function]}
425
+ style={
426
+ Object {
427
+ "flexDirection": "row",
428
+ "justifyContent": "space-between",
429
+ "opacity": 1,
430
+ }
431
+ }
432
+ >
433
+ <Text
434
+ style={
435
+ Array [
436
+ Object {
437
+ "color": "#292a2b",
438
+ "fontFamily": "BeVietnamPro-SemiBold",
439
+ "fontSize": 16,
440
+ "letterSpacing": 0.48,
441
+ "lineHeight": 24,
442
+ },
443
+ undefined,
444
+ ]
445
+ }
446
+ themeFontSize="large"
447
+ themeFontWeight="semi-bold"
448
+ themeIntent="body"
449
+ >
450
+ Accordion header
451
+ </Text>
452
+ <HeroIcon
453
+ name="arrow-down"
454
+ style={
455
+ Array [
456
+ Object {
457
+ "color": "#7622d7",
458
+ "fontSize": 20,
459
+ },
460
+ undefined,
461
+ ]
462
+ }
463
+ themeIntent="primary"
464
+ themeSize="small"
465
+ />
466
+ </View>
467
+ <View
468
+ collapsable={false}
469
+ nativeID="animatedComponent"
470
+ style={
471
+ Object {
472
+ "height": 0,
473
+ "margin": 0,
474
+ "overflow": "hidden",
475
+ "padding": 0,
476
+ }
477
+ }
478
+ >
479
+ <View
480
+ style={
481
+ Array [
482
+ Object {
483
+ "height": 1334,
484
+ },
485
+ undefined,
486
+ ]
487
+ }
488
+ >
489
+ <View
490
+ onLayout={[Function]}
491
+ style={
492
+ Array [
493
+ Object {
494
+ "margin": 0,
495
+ "padding": 0,
496
+ },
497
+ Array [
498
+ Object {
499
+ "paddingTop": 16,
500
+ },
501
+ undefined,
502
+ ],
503
+ ]
504
+ }
505
+ >
506
+ <Text
507
+ style={
508
+ Array [
509
+ Object {
510
+ "color": "#292a2b",
511
+ "fontFamily": "BeVietnamPro-Regular",
512
+ "fontSize": 14,
513
+ "letterSpacing": 0.42,
514
+ "lineHeight": 22,
515
+ },
516
+ undefined,
517
+ ]
518
+ }
519
+ themeFontSize="medium"
520
+ themeFontWeight="regular"
521
+ themeIntent="body"
522
+ >
523
+ Accordion content
524
+ </Text>
525
+ </View>
526
+ </View>
527
+ </View>
528
+ </View>
529
+ `;
@@ -0,0 +1,33 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`StyledItemWrapper has correct style when variant is card 1`] = `
4
+ <View
5
+ style={
6
+ Array [
7
+ Object {
8
+ "backgroundColor": "#ffffff",
9
+ "borderRadius": 8,
10
+ "padding": 16,
11
+ },
12
+ undefined,
13
+ ]
14
+ }
15
+ themeVariant="card"
16
+ />
17
+ `;
18
+
19
+ exports[`StyledItemWrapper has correct style when variant is default 1`] = `
20
+ <View
21
+ style={
22
+ Array [
23
+ Object {
24
+ "backgroundColor": "#ffffff",
25
+ "borderRadius": 0,
26
+ "padding": 16,
27
+ },
28
+ undefined,
29
+ ]
30
+ }
31
+ themeVariant="default"
32
+ />
33
+ `;