@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
@@ -24,7 +24,7 @@ exports[`ActionGroup has active false 1`] = `
24
24
  pointerEvents="box-none"
25
25
  style={
26
26
  Object {
27
- "backgroundColor": "#ffffff",
27
+ "backgroundColor": "#292a2b",
28
28
  "bottom": 0,
29
29
  "left": 0,
30
30
  "opacity": 0,
@@ -66,6 +66,7 @@ exports[`ActionGroup has active false 1`] = `
66
66
  },
67
67
  Array [
68
68
  Object {
69
+ "color": "#ffffff",
69
70
  "fontFamily": "BeVietnamPro-SemiBold",
70
71
  "fontSize": 24,
71
72
  "lineHeight": 32,
@@ -101,7 +102,7 @@ exports[`ActionGroup has active false 1`] = `
101
102
  Object {
102
103
  "alignItems": "center",
103
104
  "alignSelf": "flex-end",
104
- "backgroundColor": "#d1d9fe",
105
+ "backgroundColor": "#4d6265",
105
106
  "borderRadius": 999,
106
107
  "flexDirection": "row",
107
108
  "margin": 8,
@@ -124,7 +125,12 @@ exports[`ActionGroup has active false 1`] = `
124
125
  "color": "#292a2b",
125
126
  "fontSize": 24,
126
127
  },
127
- undefined,
128
+ Array [
129
+ Object {
130
+ "color": "#ffffff",
131
+ },
132
+ undefined,
133
+ ],
128
134
  ]
129
135
  }
130
136
  themeIntent="text"
@@ -142,6 +148,7 @@ exports[`ActionGroup has active false 1`] = `
142
148
  },
143
149
  Array [
144
150
  Object {
151
+ "color": "#ffffff",
145
152
  "fontFamily": "BeVietnamPro-Regular",
146
153
  "fontSize": 14,
147
154
  "lineHeight": 22,
@@ -174,7 +181,7 @@ exports[`ActionGroup has active false 1`] = `
174
181
  Object {
175
182
  "alignItems": "center",
176
183
  "alignSelf": "flex-end",
177
- "backgroundColor": "#d1d9fe",
184
+ "backgroundColor": "#4d6265",
178
185
  "borderRadius": 999,
179
186
  "flexDirection": "row",
180
187
  "margin": 8,
@@ -197,7 +204,12 @@ exports[`ActionGroup has active false 1`] = `
197
204
  "color": "#292a2b",
198
205
  "fontSize": 24,
199
206
  },
200
- undefined,
207
+ Array [
208
+ Object {
209
+ "color": "#ffffff",
210
+ },
211
+ undefined,
212
+ ],
201
213
  ]
202
214
  }
203
215
  themeIntent="text"
@@ -215,6 +227,7 @@ exports[`ActionGroup has active false 1`] = `
215
227
  },
216
228
  Array [
217
229
  Object {
230
+ "color": "#ffffff",
218
231
  "fontFamily": "BeVietnamPro-Regular",
219
232
  "fontSize": 14,
220
233
  "lineHeight": 22,
@@ -247,7 +260,7 @@ exports[`ActionGroup has active false 1`] = `
247
260
  Object {
248
261
  "alignItems": "center",
249
262
  "alignSelf": "flex-end",
250
- "backgroundColor": "#d1d9fe",
263
+ "backgroundColor": "#4d6265",
251
264
  "borderRadius": 999,
252
265
  "flexDirection": "row",
253
266
  "margin": 8,
@@ -270,7 +283,12 @@ exports[`ActionGroup has active false 1`] = `
270
283
  "color": "#292a2b",
271
284
  "fontSize": 24,
272
285
  },
273
- undefined,
286
+ Array [
287
+ Object {
288
+ "color": "#ffffff",
289
+ },
290
+ undefined,
291
+ ],
274
292
  ]
275
293
  }
276
294
  themeIntent="text"
@@ -288,6 +306,7 @@ exports[`ActionGroup has active false 1`] = `
288
306
  },
289
307
  Array [
290
308
  Object {
309
+ "color": "#ffffff",
291
310
  "fontFamily": "BeVietnamPro-Regular",
292
311
  "fontSize": 14,
293
312
  "lineHeight": 22,
@@ -320,7 +339,7 @@ exports[`ActionGroup has active false 1`] = `
320
339
  Object {
321
340
  "alignItems": "center",
322
341
  "alignSelf": "flex-end",
323
- "backgroundColor": "#d1d9fe",
342
+ "backgroundColor": "#4d6265",
324
343
  "borderRadius": 999,
325
344
  "flexDirection": "row",
326
345
  "margin": 8,
@@ -343,7 +362,12 @@ exports[`ActionGroup has active false 1`] = `
343
362
  "color": "#292a2b",
344
363
  "fontSize": 24,
345
364
  },
346
- undefined,
365
+ Array [
366
+ Object {
367
+ "color": "#ffffff",
368
+ },
369
+ undefined,
370
+ ],
347
371
  ]
348
372
  }
349
373
  themeIntent="text"
@@ -361,6 +385,7 @@ exports[`ActionGroup has active false 1`] = `
361
385
  },
362
386
  Array [
363
387
  Object {
388
+ "color": "#ffffff",
364
389
  "fontFamily": "BeVietnamPro-Regular",
365
390
  "fontSize": 14,
366
391
  "lineHeight": 22,
@@ -393,7 +418,7 @@ exports[`ActionGroup has active false 1`] = `
393
418
  Object {
394
419
  "alignItems": "center",
395
420
  "alignSelf": "flex-end",
396
- "backgroundColor": "#d1d9fe",
421
+ "backgroundColor": "#4d6265",
397
422
  "borderRadius": 999,
398
423
  "flexDirection": "row",
399
424
  "margin": 8,
@@ -416,7 +441,12 @@ exports[`ActionGroup has active false 1`] = `
416
441
  "color": "#292a2b",
417
442
  "fontSize": 24,
418
443
  },
419
- undefined,
444
+ Array [
445
+ Object {
446
+ "color": "#ffffff",
447
+ },
448
+ undefined,
449
+ ],
420
450
  ]
421
451
  }
422
452
  themeIntent="text"
@@ -434,6 +464,7 @@ exports[`ActionGroup has active false 1`] = `
434
464
  },
435
465
  Array [
436
466
  Object {
467
+ "color": "#ffffff",
437
468
  "fontFamily": "BeVietnamPro-Regular",
438
469
  "fontSize": 14,
439
470
  "lineHeight": 22,
@@ -556,7 +587,7 @@ exports[`ActionGroup has active true 1`] = `
556
587
  pointerEvents="auto"
557
588
  style={
558
589
  Object {
559
- "backgroundColor": "#ffffff",
590
+ "backgroundColor": "#292a2b",
560
591
  "bottom": 0,
561
592
  "left": 0,
562
593
  "opacity": 0.9,
@@ -598,6 +629,7 @@ exports[`ActionGroup has active true 1`] = `
598
629
  },
599
630
  Array [
600
631
  Object {
632
+ "color": "#ffffff",
601
633
  "fontFamily": "BeVietnamPro-SemiBold",
602
634
  "fontSize": 24,
603
635
  "lineHeight": 32,
@@ -633,7 +665,7 @@ exports[`ActionGroup has active true 1`] = `
633
665
  Object {
634
666
  "alignItems": "center",
635
667
  "alignSelf": "flex-end",
636
- "backgroundColor": "#d1d9fe",
668
+ "backgroundColor": "#4d6265",
637
669
  "borderRadius": 999,
638
670
  "flexDirection": "row",
639
671
  "margin": 8,
@@ -656,7 +688,12 @@ exports[`ActionGroup has active true 1`] = `
656
688
  "color": "#292a2b",
657
689
  "fontSize": 24,
658
690
  },
659
- undefined,
691
+ Array [
692
+ Object {
693
+ "color": "#ffffff",
694
+ },
695
+ undefined,
696
+ ],
660
697
  ]
661
698
  }
662
699
  themeIntent="text"
@@ -674,6 +711,7 @@ exports[`ActionGroup has active true 1`] = `
674
711
  },
675
712
  Array [
676
713
  Object {
714
+ "color": "#ffffff",
677
715
  "fontFamily": "BeVietnamPro-Regular",
678
716
  "fontSize": 14,
679
717
  "lineHeight": 22,
@@ -706,7 +744,7 @@ exports[`ActionGroup has active true 1`] = `
706
744
  Object {
707
745
  "alignItems": "center",
708
746
  "alignSelf": "flex-end",
709
- "backgroundColor": "#d1d9fe",
747
+ "backgroundColor": "#4d6265",
710
748
  "borderRadius": 999,
711
749
  "flexDirection": "row",
712
750
  "margin": 8,
@@ -729,7 +767,12 @@ exports[`ActionGroup has active true 1`] = `
729
767
  "color": "#292a2b",
730
768
  "fontSize": 24,
731
769
  },
732
- undefined,
770
+ Array [
771
+ Object {
772
+ "color": "#ffffff",
773
+ },
774
+ undefined,
775
+ ],
733
776
  ]
734
777
  }
735
778
  themeIntent="text"
@@ -747,6 +790,7 @@ exports[`ActionGroup has active true 1`] = `
747
790
  },
748
791
  Array [
749
792
  Object {
793
+ "color": "#ffffff",
750
794
  "fontFamily": "BeVietnamPro-Regular",
751
795
  "fontSize": 14,
752
796
  "lineHeight": 22,
@@ -779,7 +823,7 @@ exports[`ActionGroup has active true 1`] = `
779
823
  Object {
780
824
  "alignItems": "center",
781
825
  "alignSelf": "flex-end",
782
- "backgroundColor": "#d1d9fe",
826
+ "backgroundColor": "#4d6265",
783
827
  "borderRadius": 999,
784
828
  "flexDirection": "row",
785
829
  "margin": 8,
@@ -802,7 +846,12 @@ exports[`ActionGroup has active true 1`] = `
802
846
  "color": "#292a2b",
803
847
  "fontSize": 24,
804
848
  },
805
- undefined,
849
+ Array [
850
+ Object {
851
+ "color": "#ffffff",
852
+ },
853
+ undefined,
854
+ ],
806
855
  ]
807
856
  }
808
857
  themeIntent="text"
@@ -820,6 +869,7 @@ exports[`ActionGroup has active true 1`] = `
820
869
  },
821
870
  Array [
822
871
  Object {
872
+ "color": "#ffffff",
823
873
  "fontFamily": "BeVietnamPro-Regular",
824
874
  "fontSize": 14,
825
875
  "lineHeight": 22,
@@ -852,7 +902,7 @@ exports[`ActionGroup has active true 1`] = `
852
902
  Object {
853
903
  "alignItems": "center",
854
904
  "alignSelf": "flex-end",
855
- "backgroundColor": "#d1d9fe",
905
+ "backgroundColor": "#4d6265",
856
906
  "borderRadius": 999,
857
907
  "flexDirection": "row",
858
908
  "margin": 8,
@@ -875,7 +925,12 @@ exports[`ActionGroup has active true 1`] = `
875
925
  "color": "#292a2b",
876
926
  "fontSize": 24,
877
927
  },
878
- undefined,
928
+ Array [
929
+ Object {
930
+ "color": "#ffffff",
931
+ },
932
+ undefined,
933
+ ],
879
934
  ]
880
935
  }
881
936
  themeIntent="text"
@@ -893,6 +948,7 @@ exports[`ActionGroup has active true 1`] = `
893
948
  },
894
949
  Array [
895
950
  Object {
951
+ "color": "#ffffff",
896
952
  "fontFamily": "BeVietnamPro-Regular",
897
953
  "fontSize": 14,
898
954
  "lineHeight": 22,
@@ -925,7 +981,7 @@ exports[`ActionGroup has active true 1`] = `
925
981
  Object {
926
982
  "alignItems": "center",
927
983
  "alignSelf": "flex-end",
928
- "backgroundColor": "#d1d9fe",
984
+ "backgroundColor": "#4d6265",
929
985
  "borderRadius": 999,
930
986
  "flexDirection": "row",
931
987
  "margin": 8,
@@ -948,7 +1004,12 @@ exports[`ActionGroup has active true 1`] = `
948
1004
  "color": "#292a2b",
949
1005
  "fontSize": 24,
950
1006
  },
951
- undefined,
1007
+ Array [
1008
+ Object {
1009
+ "color": "#ffffff",
1010
+ },
1011
+ undefined,
1012
+ ],
952
1013
  ]
953
1014
  }
954
1015
  themeIntent="text"
@@ -966,6 +1027,7 @@ exports[`ActionGroup has active true 1`] = `
966
1027
  },
967
1028
  Array [
968
1029
  Object {
1030
+ "color": "#ffffff",
969
1031
  "fontFamily": "BeVietnamPro-Regular",
970
1032
  "fontSize": 14,
971
1033
  "lineHeight": 22,
@@ -1,5 +1,6 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
2
  import { Animated, View, StyleProp, ViewStyle } from 'react-native';
3
+ import { IconName } from '../../Icon';
3
4
  import ActionItem, { ActionItemProps } from './ActionItem';
4
5
  import {
5
6
  StyledBackdrop,
@@ -45,6 +46,11 @@ export interface ActionGroupProps {
45
46
  */
46
47
  fabTitle?: string;
47
48
 
49
+ /**
50
+ * Icon name of the floating action button
51
+ */
52
+ fabIcon?: IconName;
53
+
48
54
  /**
49
55
  * Additional style.
50
56
  */
@@ -69,6 +75,7 @@ const ActionGroup = ({
69
75
  items,
70
76
  testID,
71
77
  fabTitle,
78
+ fabIcon = 'add',
72
79
  }: ActionGroupProps) => {
73
80
  const tranlateXAnimation = useRef<Animated.Value>(
74
81
  new Animated.Value(active ? 1 : 0)
@@ -126,7 +133,7 @@ const ActionGroup = ({
126
133
  </StyledActionGroupContainer>
127
134
  <StyledFAB
128
135
  testID="fab"
129
- icon="add"
136
+ icon={fabIcon}
130
137
  onPress={onPress}
131
138
  animated
132
139
  active={active}