@hero-design/rn 7.24.0 → 7.25.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 (253) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +844 -751
  4. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/lib/index.js +845 -749
  6. package/package.json +6 -5
  7. package/rollup.config.js +1 -1
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
  9. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  10. package/src/components/Attachment/StyledAttachment.tsx +44 -0
  11. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +158 -0
  12. package/src/components/Attachment/__tests__/index.spec.tsx +59 -0
  13. package/src/components/Attachment/index.tsx +77 -0
  14. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  15. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  16. package/src/components/Badge/Status.tsx +1 -1
  17. package/src/components/Badge/StyledBadge.tsx +8 -1
  18. package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +44 -0
  20. package/src/components/Badge/index.tsx +1 -1
  21. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  22. package/src/components/BottomSheet/Header.tsx +2 -1
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
  24. package/src/components/BottomSheet/index.tsx +4 -4
  25. package/src/components/Button/Button.tsx +0 -11
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
  27. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  28. package/src/components/Button/LoadingIndicator/index.tsx +1 -1
  29. package/src/components/Button/StyledButton.tsx +24 -63
  30. package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +2 -2
  31. package/src/components/Button/__tests__/Button.spec.tsx +10 -5
  32. package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -70
  33. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +301 -1206
  34. package/src/components/Calendar/CalendarRowItem.tsx +1 -4
  35. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
  36. package/src/components/Calendar/index.tsx +4 -3
  37. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  38. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  39. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Checkbox/StyledCheckbox.tsx +7 -5
  41. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -12
  42. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +95 -42
  43. package/src/components/Checkbox/index.tsx +4 -2
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  45. package/src/components/ContentNavigator/index.tsx +2 -1
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +28 -27
  48. package/src/components/Drawer/DragableDrawer/index.tsx +0 -2
  49. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  50. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  51. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  52. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  53. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  54. package/src/components/Icon/HeroIcon/index.tsx +5 -1
  55. package/src/components/Icon/IconList.ts +30 -3
  56. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  57. package/src/components/List/BasicListItem.tsx +13 -8
  58. package/src/components/List/ListItem.tsx +8 -6
  59. package/src/components/List/StyledBasicListItem.tsx +2 -2
  60. package/src/components/List/StyledListItem.tsx +2 -2
  61. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
  62. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
  63. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
  64. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
  65. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  66. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  67. package/src/components/Progress/ProgressBar.tsx +1 -1
  68. package/src/components/Progress/ProgressCircle.tsx +1 -1
  69. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
  70. package/src/components/Progress/types.ts +7 -1
  71. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
  72. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
  73. package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
  74. package/src/components/RefreshControl/index.tsx +4 -2
  75. package/src/components/RichTextEditor/MentionList.tsx +12 -3
  76. package/src/components/RichTextEditor/RichTextEditor.tsx +3 -4
  77. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -4
  78. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  79. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
  80. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +146 -234
  81. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +430 -650
  82. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
  83. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +136 -224
  84. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +409 -629
  85. package/src/components/Select/StyledOptionList.tsx +0 -1
  86. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  87. package/src/components/Spinner/StyledSpinner.tsx +1 -2
  88. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  89. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +16 -16
  90. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  91. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
  92. package/src/components/Swipeable/index.tsx +14 -2
  93. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
  94. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  95. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  96. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
  97. package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
  98. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  99. package/src/components/Tabs/StyledTabs.tsx +1 -1
  100. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  101. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  102. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
  103. package/src/components/TextInput/StyledTextInput.tsx +1 -0
  104. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +11 -10
  105. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +27 -14
  106. package/src/components/TextInput/index.tsx +1 -0
  107. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
  108. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +28 -27
  109. package/src/components/Toast/Toast.tsx +0 -3
  110. package/src/components/Toast/ToastProvider.tsx +1 -0
  111. package/src/components/Toast/__tests__/index.spec.tsx +1 -1
  112. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  113. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  114. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
  115. package/src/emotion.d.ts +1 -0
  116. package/src/index.ts +6 -0
  117. package/src/theme/ThemeSwitcher.tsx +7 -1
  118. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +87 -74
  119. package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
  120. package/src/theme/components/alert.ts +1 -1
  121. package/src/theme/components/attachment.ts +28 -0
  122. package/src/theme/components/avatar.ts +1 -1
  123. package/src/theme/components/badge.ts +2 -1
  124. package/src/theme/components/bottomNavigation.ts +1 -1
  125. package/src/theme/components/bottomSheet.ts +2 -2
  126. package/src/theme/components/button.ts +4 -20
  127. package/src/theme/components/calendar.ts +3 -3
  128. package/src/theme/components/card.ts +1 -1
  129. package/src/theme/components/checkbox.ts +2 -2
  130. package/src/theme/components/divider.ts +1 -1
  131. package/src/theme/components/drawer.ts +2 -2
  132. package/src/theme/components/empty.ts +3 -3
  133. package/src/theme/components/fab.ts +7 -7
  134. package/src/theme/components/icon.ts +4 -4
  135. package/src/theme/components/list.ts +0 -2
  136. package/src/theme/components/pinInput.ts +4 -4
  137. package/src/theme/components/progress.ts +6 -5
  138. package/src/theme/components/radio.ts +1 -1
  139. package/src/theme/components/richTextEditor.ts +2 -2
  140. package/src/theme/components/slider.ts +2 -2
  141. package/src/theme/components/switch.ts +4 -4
  142. package/src/theme/components/tabs.ts +6 -5
  143. package/src/theme/components/tag.ts +2 -2
  144. package/src/theme/components/textInput.ts +23 -28
  145. package/src/theme/components/toast.ts +3 -3
  146. package/src/theme/components/toolbar.ts +3 -3
  147. package/src/theme/components/typography.ts +7 -7
  148. package/src/theme/getTheme.ts +4 -1
  149. package/src/theme/global/colors/eBens.ts +23 -0
  150. package/src/theme/global/colors/global.ts +15 -6
  151. package/src/theme/global/colors/jobs.ts +15 -9
  152. package/src/theme/global/colors/legacySystemPalette.ts +6 -6
  153. package/src/theme/global/colors/swag.ts +32 -53
  154. package/src/theme/global/colors/types.ts +35 -15
  155. package/src/theme/global/colors/wallet.ts +23 -0
  156. package/src/theme/global/colors/work.ts +15 -9
  157. package/src/theme/global/index.ts +4 -0
  158. package/src/theme/index.ts +4 -0
  159. package/src/utils/functions.ts +2 -0
  160. package/src/utils/scale.ts +1 -1
  161. package/tsconfig.json +8 -2
  162. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  163. package/types/components/Alert/StyledAlert.d.ts +15 -15
  164. package/types/components/Attachment/StyledAttachment.d.ts +28 -0
  165. package/types/components/Attachment/index.d.ts +37 -0
  166. package/types/components/Avatar/StyledAvatar.d.ts +15 -15
  167. package/types/components/Avatar/index.d.ts +1 -1
  168. package/types/components/Badge/Status.d.ts +1 -1
  169. package/types/components/Badge/StyledBadge.d.ts +8 -8
  170. package/types/components/Badge/index.d.ts +1 -1
  171. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  172. package/types/components/BottomSheet/Header.d.ts +1 -1
  173. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  174. package/types/components/Box/StyledBox.d.ts +4 -4
  175. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  176. package/types/components/Button/StyledButton.d.ts +15 -18
  177. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  178. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  179. package/types/components/Calendar/helpers.d.ts +2 -2
  180. package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
  181. package/types/components/Card/StyledCard.d.ts +7 -7
  182. package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
  183. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  184. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  185. package/types/components/ContentNavigator/index.d.ts +2 -1
  186. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  187. package/types/components/Divider/StyledDivider.d.ts +5 -5
  188. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  189. package/types/components/Empty/StyledEmpty.d.ts +9 -9
  190. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  191. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  192. package/types/components/FAB/StyledFAB.d.ts +8 -8
  193. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  194. package/types/components/Icon/IconList.d.ts +1 -1
  195. package/types/components/Icon/index.d.ts +1 -1
  196. package/types/components/Icon/utils.d.ts +1 -1
  197. package/types/components/List/StyledBasicListItem.d.ts +16 -16
  198. package/types/components/List/StyledListItem.d.ts +25 -25
  199. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  200. package/types/components/Progress/ProgressBar.d.ts +1 -1
  201. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  202. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  203. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  204. package/types/components/Progress/types.d.ts +1 -1
  205. package/types/components/Radio/StyledRadio.d.ts +9 -9
  206. package/types/components/RefreshControl/index.d.ts +1 -2
  207. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  208. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  209. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  210. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  211. package/types/components/RichTextEditor/index.d.ts +2 -2
  212. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  213. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  214. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  215. package/types/components/Select/StyledSelect.d.ts +11 -11
  216. package/types/components/Select/helpers.d.ts +1 -1
  217. package/types/components/Spinner/StyledSpinner.d.ts +12 -12
  218. package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
  219. package/types/components/Swipeable/index.d.ts +7 -3
  220. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
  221. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
  222. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  223. package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
  224. package/types/components/Tabs/StyledTabs.d.ts +22 -22
  225. package/types/components/Tag/StyledTag.d.ts +6 -6
  226. package/types/components/TextInput/StyledTextInput.d.ts +44 -44
  227. package/types/components/TextInput/index.d.ts +5 -5
  228. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  229. package/types/components/Toast/StyledToast.d.ts +17 -17
  230. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  231. package/types/components/Typography/Text/StyledText.d.ts +3 -3
  232. package/types/index.d.ts +3 -2
  233. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  234. package/types/theme/ThemeSwitcher.d.ts +2 -2
  235. package/types/theme/components/attachment.d.ts +21 -0
  236. package/types/theme/components/badge.d.ts +1 -0
  237. package/types/theme/components/button.d.ts +0 -15
  238. package/types/theme/components/list.d.ts +0 -1
  239. package/types/theme/components/progress.d.ts +1 -0
  240. package/types/theme/components/tabs.d.ts +1 -0
  241. package/types/theme/components/tag.d.ts +2 -2
  242. package/types/theme/components/textInput.d.ts +0 -5
  243. package/types/theme/getTheme.d.ts +2 -0
  244. package/types/theme/global/colors/eBens.d.ts +3 -0
  245. package/types/theme/global/colors/types.d.ts +23 -16
  246. package/types/theme/global/colors/wallet.d.ts +3 -0
  247. package/types/theme/global/index.d.ts +26 -12
  248. package/types/theme/index.d.ts +2 -2
  249. package/types/utils/functions.d.ts +1 -0
  250. package/types/utils/hooks.d.ts +1 -1
  251. package/assets/fonts/hero-icons.ttf +0 -0
  252. package/lib/assets/fonts/hero-icons.ttf +0 -0
  253. package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
@@ -73,7 +73,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
73
73
  },
74
74
  Array [
75
75
  Object {
76
- "color": "#f46363",
76
+ "color": "#de350b",
77
77
  },
78
78
  undefined,
79
79
  ],
@@ -161,6 +161,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
161
161
  "flexGrow": 2,
162
162
  "fontSize": 14,
163
163
  "marginHorizontal": 8,
164
+ "paddingVertical": 0,
164
165
  "textAlignVertical": "center",
165
166
  },
166
167
  Object {
@@ -328,7 +329,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
328
329
  },
329
330
  Array [
330
331
  Object {
331
- "color": "#f46363",
332
+ "color": "#de350b",
332
333
  },
333
334
  undefined,
334
335
  ],
@@ -416,6 +417,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
416
417
  "flexGrow": 2,
417
418
  "fontSize": 14,
418
419
  "marginHorizontal": 8,
420
+ "paddingVertical": 0,
419
421
  "textAlignVertical": "center",
420
422
  },
421
423
  Object {
@@ -656,6 +658,7 @@ exports[`TextInput disabled renders correctly 1`] = `
656
658
  "flexGrow": 2,
657
659
  "fontSize": 14,
658
660
  "marginHorizontal": 8,
661
+ "paddingVertical": 0,
659
662
  "textAlignVertical": "center",
660
663
  },
661
664
  Object {
@@ -722,7 +725,7 @@ exports[`TextInput error renders correctly 1`] = `
722
725
  style={
723
726
  Array [
724
727
  Object {
725
- "borderColor": "#f46363",
728
+ "borderColor": "#de350b",
726
729
  "borderRadius": 8,
727
730
  "borderWidth": 1,
728
731
  "bottom": 0,
@@ -796,7 +799,7 @@ exports[`TextInput error renders correctly 1`] = `
796
799
  },
797
800
  Array [
798
801
  Object {
799
- "color": "#f46363",
802
+ "color": "#de350b",
800
803
  "fontSize": 14,
801
804
  },
802
805
  undefined,
@@ -858,6 +861,7 @@ exports[`TextInput error renders correctly 1`] = `
858
861
  "flexGrow": 2,
859
862
  "fontSize": 14,
860
863
  "marginHorizontal": 8,
864
+ "paddingVertical": 0,
861
865
  "textAlignVertical": "center",
862
866
  },
863
867
  Object {
@@ -931,7 +935,7 @@ exports[`TextInput error renders correctly 1`] = `
931
935
  },
932
936
  Array [
933
937
  Object {
934
- "color": "#f46363",
938
+ "color": "#de350b",
935
939
  "fontSize": 12,
936
940
  "marginLeft": 4,
937
941
  },
@@ -1086,6 +1090,7 @@ exports[`TextInput filled renders correctly 1`] = `
1086
1090
  "flexGrow": 2,
1087
1091
  "fontSize": 14,
1088
1092
  "marginHorizontal": 8,
1093
+ "paddingVertical": 0,
1089
1094
  "textAlignVertical": "center",
1090
1095
  },
1091
1096
  Object {
@@ -1241,7 +1246,7 @@ exports[`TextInput helper text renders correctly 1`] = `
1241
1246
  },
1242
1247
  Array [
1243
1248
  Object {
1244
- "color": "#f46363",
1249
+ "color": "#de350b",
1245
1250
  "fontSize": 14,
1246
1251
  },
1247
1252
  undefined,
@@ -1303,6 +1308,7 @@ exports[`TextInput helper text renders correctly 1`] = `
1303
1308
  "flexGrow": 2,
1304
1309
  "fontSize": 14,
1305
1310
  "marginHorizontal": 8,
1311
+ "paddingVertical": 0,
1306
1312
  "textAlignVertical": "center",
1307
1313
  },
1308
1314
  Object {
@@ -1505,6 +1511,7 @@ exports[`TextInput idle renders correctly 1`] = `
1505
1511
  "flexGrow": 2,
1506
1512
  "fontSize": 14,
1507
1513
  "marginHorizontal": 8,
1514
+ "paddingVertical": 0,
1508
1515
  "textAlignVertical": "center",
1509
1516
  },
1510
1517
  Object {
@@ -1659,7 +1666,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
1659
1666
  },
1660
1667
  Array [
1661
1668
  Object {
1662
- "color": "#f46363",
1669
+ "color": "#de350b",
1663
1670
  "fontSize": 14,
1664
1671
  },
1665
1672
  undefined,
@@ -1721,6 +1728,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
1721
1728
  "flexGrow": 2,
1722
1729
  "fontSize": 14,
1723
1730
  "marginHorizontal": 8,
1731
+ "paddingVertical": 0,
1724
1732
  "textAlignVertical": "center",
1725
1733
  },
1726
1734
  Object {
@@ -1865,6 +1873,7 @@ exports[`TextInput loading renders correctly 1`] = `
1865
1873
  "flexGrow": 2,
1866
1874
  "fontSize": 14,
1867
1875
  "marginHorizontal": 8,
1876
+ "paddingVertical": 0,
1868
1877
  "textAlignVertical": "center",
1869
1878
  },
1870
1879
  Object {
@@ -1959,7 +1968,7 @@ exports[`TextInput max length renders correctly 1`] = `
1959
1968
  style={
1960
1969
  Array [
1961
1970
  Object {
1962
- "borderColor": "#f46363",
1971
+ "borderColor": "#de350b",
1963
1972
  "borderRadius": 8,
1964
1973
  "borderWidth": 1,
1965
1974
  "bottom": 0,
@@ -2003,7 +2012,7 @@ exports[`TextInput max length renders correctly 1`] = `
2003
2012
  },
2004
2013
  Array [
2005
2014
  Object {
2006
- "color": "#f46363",
2015
+ "color": "#de350b",
2007
2016
  },
2008
2017
  undefined,
2009
2018
  ],
@@ -2076,6 +2085,7 @@ exports[`TextInput max length renders correctly 1`] = `
2076
2085
  "flexGrow": 2,
2077
2086
  "fontSize": 14,
2078
2087
  "marginHorizontal": 8,
2088
+ "paddingVertical": 0,
2079
2089
  "textAlignVertical": "center",
2080
2090
  },
2081
2091
  Object {
@@ -2150,7 +2160,7 @@ exports[`TextInput max length renders correctly 1`] = `
2150
2160
  },
2151
2161
  Array [
2152
2162
  Object {
2153
- "color": "#f46363",
2163
+ "color": "#de350b",
2154
2164
  "fontSize": 12,
2155
2165
  "marginLeft": 4,
2156
2166
  },
@@ -2179,7 +2189,7 @@ exports[`TextInput max length renders correctly 1`] = `
2179
2189
  Array [
2180
2190
  Object {
2181
2191
  "alignSelf": "flex-end",
2182
- "color": "#f46363",
2192
+ "color": "#de350b",
2183
2193
  "flex": 1,
2184
2194
  "flexGrow": 1,
2185
2195
  "fontSize": 12,
@@ -2307,7 +2317,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
2307
2317
  },
2308
2318
  Array [
2309
2319
  Object {
2310
- "color": "#f46363",
2320
+ "color": "#de350b",
2311
2321
  "fontSize": 14,
2312
2322
  },
2313
2323
  undefined,
@@ -2369,6 +2379,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
2369
2379
  "flexGrow": 2,
2370
2380
  "fontSize": 14,
2371
2381
  "marginHorizontal": 8,
2382
+ "paddingVertical": 0,
2372
2383
  "textAlignVertical": "center",
2373
2384
  },
2374
2385
  Object {
@@ -2527,7 +2538,7 @@ exports[`TextInput readonly renders correctly 1`] = `
2527
2538
  },
2528
2539
  Array [
2529
2540
  Object {
2530
- "color": "#bfc1c5",
2541
+ "color": "#808f91",
2531
2542
  },
2532
2543
  undefined,
2533
2544
  ],
@@ -2588,6 +2599,7 @@ exports[`TextInput readonly renders correctly 1`] = `
2588
2599
  "flexGrow": 2,
2589
2600
  "fontSize": 14,
2590
2601
  "marginHorizontal": 8,
2602
+ "paddingVertical": 0,
2591
2603
  "textAlignVertical": "center",
2592
2604
  },
2593
2605
  Object {
@@ -2743,7 +2755,7 @@ exports[`TextInput required renders correctly 1`] = `
2743
2755
  },
2744
2756
  Array [
2745
2757
  Object {
2746
- "color": "#f46363",
2758
+ "color": "#de350b",
2747
2759
  "fontSize": 14,
2748
2760
  },
2749
2761
  undefined,
@@ -2805,6 +2817,7 @@ exports[`TextInput required renders correctly 1`] = `
2805
2817
  "flexGrow": 2,
2806
2818
  "fontSize": 14,
2807
2819
  "marginHorizontal": 8,
2820
+ "paddingVertical": 0,
2808
2821
  "textAlignVertical": "center",
2809
2822
  },
2810
2823
  Object {
@@ -191,6 +191,7 @@ const TextInput = ({
191
191
  accessibilityState: {
192
192
  disabled: variant === 'disabled' || variant === 'readonly',
193
193
  },
194
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
194
195
  // @ts-ignore
195
196
  accessibilityLabelledBy,
196
197
  ...nativeProps,
@@ -139,6 +139,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
139
139
  "flexGrow": 2,
140
140
  "fontSize": 14,
141
141
  "marginHorizontal": 8,
142
+ "paddingVertical": 0,
142
143
  "textAlignVertical": "center",
143
144
  },
144
145
  Object {
@@ -139,6 +139,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
139
139
  "flexGrow": 2,
140
140
  "fontSize": 14,
141
141
  "marginHorizontal": 8,
142
+ "paddingVertical": 0,
142
143
  "textAlignVertical": "center",
143
144
  },
144
145
  Object {
@@ -252,32 +253,6 @@ exports[`TimePickerIOS renders correctly 1`] = `
252
253
  ]
253
254
  }
254
255
  >
255
- <View
256
- accessible={true}
257
- collapsable={false}
258
- focusable={true}
259
- nativeID="animatedComponent"
260
- onBlur={[Function]}
261
- onClick={[Function]}
262
- onFocus={[Function]}
263
- onResponderGrant={[Function]}
264
- onResponderMove={[Function]}
265
- onResponderRelease={[Function]}
266
- onResponderTerminate={[Function]}
267
- onResponderTerminationRequest={[Function]}
268
- onStartShouldSetResponder={[Function]}
269
- style={
270
- Object {
271
- "backgroundColor": "#001f23",
272
- "bottom": 0,
273
- "left": 0,
274
- "opacity": 0.48,
275
- "position": "absolute",
276
- "right": 0,
277
- "top": 0,
278
- }
279
- }
280
- />
281
256
  <View
282
257
  onLayout={[Function]}
283
258
  style={
@@ -295,6 +270,32 @@ exports[`TimePickerIOS renders correctly 1`] = `
295
270
  ]
296
271
  }
297
272
  >
273
+ <View
274
+ accessible={true}
275
+ collapsable={false}
276
+ focusable={true}
277
+ nativeID="animatedComponent"
278
+ onBlur={[Function]}
279
+ onClick={[Function]}
280
+ onFocus={[Function]}
281
+ onResponderGrant={[Function]}
282
+ onResponderMove={[Function]}
283
+ onResponderRelease={[Function]}
284
+ onResponderTerminate={[Function]}
285
+ onResponderTerminationRequest={[Function]}
286
+ onStartShouldSetResponder={[Function]}
287
+ style={
288
+ Object {
289
+ "backgroundColor": "#001f23",
290
+ "bottom": 0,
291
+ "left": 0,
292
+ "opacity": 0.48,
293
+ "position": "absolute",
294
+ "right": 0,
295
+ "top": 0,
296
+ }
297
+ }
298
+ />
298
299
  <RCTSafeAreaView
299
300
  collapsable={false}
300
301
  emulateUnlessSupported={true}
@@ -503,7 +504,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
503
504
  style={
504
505
  Array [
505
506
  Object {
506
- "color": "#001f23",
507
+ "color": "#401960",
507
508
  "fontFamily": "BeVietnamPro-SemiBold",
508
509
  "fontSize": 16,
509
510
  "letterSpacing": 0.48,
@@ -66,9 +66,6 @@ const Toast = ({
66
66
 
67
67
  return () => clearTimeout(id);
68
68
  }
69
-
70
- // Consistent return
71
- return () => {};
72
69
  }, []);
73
70
 
74
71
  useEffect(() => {
@@ -20,6 +20,7 @@ const ToastProvider = ({
20
20
  position = 'top',
21
21
  }: ToastProviderProps) => {
22
22
  const toastRef = useRef<ToastControllerContextType>(null);
23
+ // @ts-expect-error: TODO: @tungv Fix this type error
23
24
  const [refState, setRefState] = useState<ToastControllerContextType>(null);
24
25
 
25
26
  useEffect(() => {
@@ -70,7 +70,7 @@ describe('Toast', () => {
70
70
  it(`"hide" method works correctly`, () => {
71
71
  const Component = () => {
72
72
  const toast = Toast.useToast();
73
- const [id, setId] = useState(null);
73
+ const [id, setId] = useState('');
74
74
 
75
75
  useEffect(() => {
76
76
  const toastId = toast.show({
@@ -41,7 +41,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
41
41
  style={
42
42
  Array [
43
43
  Object {
44
- "color": "#001f23",
44
+ "color": "#401960",
45
45
  "fontSize": 24,
46
46
  },
47
47
  undefined,
@@ -55,7 +55,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
55
55
  style={
56
56
  Array [
57
57
  Object {
58
- "color": "#001f23",
58
+ "color": "#401960",
59
59
  "fontFamily": "BeVietnamPro-SemiBold",
60
60
  "fontSize": 12,
61
61
  "letterSpacing": 0.36,
@@ -97,7 +97,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
97
97
  style={
98
98
  Array [
99
99
  Object {
100
- "color": "#001f23",
100
+ "color": "#401960",
101
101
  "fontSize": 24,
102
102
  },
103
103
  undefined,
@@ -111,7 +111,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
111
111
  style={
112
112
  Array [
113
113
  Object {
114
- "color": "#001f23",
114
+ "color": "#401960",
115
115
  "fontFamily": "BeVietnamPro-SemiBold",
116
116
  "fontSize": 12,
117
117
  "letterSpacing": 0.36,
@@ -171,7 +171,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
171
171
  style={
172
172
  Array [
173
173
  Object {
174
- "color": "#001f23",
174
+ "color": "#401960",
175
175
  "fontSize": 24,
176
176
  },
177
177
  undefined,
@@ -185,7 +185,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
185
185
  style={
186
186
  Array [
187
187
  Object {
188
- "color": "#001f23",
188
+ "color": "#401960",
189
189
  "fontFamily": "BeVietnamPro-SemiBold",
190
190
  "fontSize": 12,
191
191
  "letterSpacing": 0.36,
@@ -227,7 +227,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
227
227
  style={
228
228
  Array [
229
229
  Object {
230
- "color": "#001f23",
230
+ "color": "#401960",
231
231
  "fontSize": 24,
232
232
  },
233
233
  undefined,
@@ -241,7 +241,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
241
241
  style={
242
242
  Array [
243
243
  Object {
244
- "color": "#001f23",
244
+ "color": "#401960",
245
245
  "fontFamily": "BeVietnamPro-SemiBold",
246
246
  "fontSize": 12,
247
247
  "letterSpacing": 0.36,
@@ -301,7 +301,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
301
301
  style={
302
302
  Array [
303
303
  Object {
304
- "color": "#001f23",
304
+ "color": "#401960",
305
305
  "fontSize": 24,
306
306
  },
307
307
  undefined,
@@ -315,7 +315,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
315
315
  style={
316
316
  Array [
317
317
  Object {
318
- "color": "#001f23",
318
+ "color": "#401960",
319
319
  "fontFamily": "BeVietnamPro-SemiBold",
320
320
  "fontSize": 12,
321
321
  "letterSpacing": 0.36,
@@ -357,7 +357,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
357
357
  style={
358
358
  Array [
359
359
  Object {
360
- "color": "#001f23",
360
+ "color": "#401960",
361
361
  "fontSize": 24,
362
362
  },
363
363
  undefined,
@@ -371,7 +371,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
371
371
  style={
372
372
  Array [
373
373
  Object {
374
- "color": "#001f23",
374
+ "color": "#401960",
375
375
  "fontFamily": "BeVietnamPro-SemiBold",
376
376
  "fontSize": 12,
377
377
  "letterSpacing": 0.36,
@@ -27,7 +27,7 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
27
27
  style={
28
28
  Array [
29
29
  Object {
30
- "color": "#4d6265",
30
+ "color": "#bfc1c5",
31
31
  "fontSize": 24,
32
32
  },
33
33
  undefined,
@@ -159,7 +159,7 @@ exports[`ToolbarItems renders correctly when intent is info 1`] = `
159
159
  style={
160
160
  Array [
161
161
  Object {
162
- "color": "#b5c3fd",
162
+ "color": "#4568fb",
163
163
  "fontFamily": "BeVietnamPro-SemiBold",
164
164
  "fontSize": 12,
165
165
  "letterSpacing": 0.36,
@@ -204,7 +204,7 @@ exports[`ToolbarItems renders correctly when intent is primary 1`] = `
204
204
  style={
205
205
  Array [
206
206
  Object {
207
- "color": "#001f23",
207
+ "color": "#401960",
208
208
  "fontSize": 24,
209
209
  },
210
210
  undefined,
@@ -218,7 +218,7 @@ exports[`ToolbarItems renders correctly when intent is primary 1`] = `
218
218
  style={
219
219
  Array [
220
220
  Object {
221
- "color": "#001f23",
221
+ "color": "#401960",
222
222
  "fontFamily": "BeVietnamPro-SemiBold",
223
223
  "fontSize": 12,
224
224
  "letterSpacing": 0.36,
@@ -277,7 +277,7 @@ exports[`ToolbarItems renders correctly when intent is success 1`] = `
277
277
  style={
278
278
  Array [
279
279
  Object {
280
- "color": "#5ace7d",
280
+ "color": "#017d6d",
281
281
  "fontFamily": "BeVietnamPro-SemiBold",
282
282
  "fontSize": 12,
283
283
  "letterSpacing": 0.36,
@@ -336,7 +336,7 @@ exports[`ToolbarItems renders correctly when intent is warning 1`] = `
336
336
  style={
337
337
  Array [
338
338
  Object {
339
- "color": "#ffbe71",
339
+ "color": "#ffa234",
340
340
  "fontFamily": "BeVietnamPro-SemiBold",
341
341
  "fontSize": 12,
342
342
  "letterSpacing": 0.36,
@@ -49,7 +49,7 @@ exports[`StyledText has info intent style 1`] = `
49
49
  style={
50
50
  Array [
51
51
  Object {
52
- "color": "#b5c3fd",
52
+ "color": "#4568fb",
53
53
  "fontFamily": "BeVietnamPro-Regular",
54
54
  "fontSize": 14,
55
55
  "letterSpacing": 0.42,
@@ -159,7 +159,7 @@ exports[`StyledText has primary intent style 1`] = `
159
159
  style={
160
160
  Array [
161
161
  Object {
162
- "color": "#001f23",
162
+ "color": "#401960",
163
163
  "fontFamily": "BeVietnamPro-Regular",
164
164
  "fontSize": 14,
165
165
  "letterSpacing": 0.42,
@@ -269,7 +269,7 @@ exports[`StyledText has success intent style 1`] = `
269
269
  style={
270
270
  Array [
271
271
  Object {
272
- "color": "#5ace7d",
272
+ "color": "#017d6d",
273
273
  "fontFamily": "BeVietnamPro-Regular",
274
274
  "fontSize": 14,
275
275
  "letterSpacing": 0.42,
@@ -291,7 +291,7 @@ exports[`StyledText has warning intent style 1`] = `
291
291
  style={
292
292
  Array [
293
293
  Object {
294
- "color": "#ffbe71",
294
+ "color": "#ffa234",
295
295
  "fontFamily": "BeVietnamPro-Regular",
296
296
  "fontSize": 14,
297
297
  "letterSpacing": 0.42,
package/src/emotion.d.ts CHANGED
@@ -2,5 +2,6 @@ import '@emotion/react';
2
2
  import { Theme as HeroTheme } from './theme';
3
3
 
4
4
  declare module '@emotion/react' {
5
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
5
6
  export interface Theme extends HeroTheme {}
6
7
  }
package/src/index.ts CHANGED
@@ -5,12 +5,15 @@ import theme, {
5
5
  swagSystemPalette,
6
6
  workSystemPalette,
7
7
  jobsSystemPalette,
8
+ walletSystemPalette,
9
+ eBensSystemPalette,
8
10
  ThemeSwitcher,
9
11
  } from './theme';
10
12
  import { scale } from './utils/scale';
11
13
 
12
14
  import Accordion from './components/Accordion';
13
15
  import Alert from './components/Alert';
16
+ import Attachment from './components/Attachment';
14
17
  import Avatar from './components/Avatar';
15
18
  import Badge from './components/Badge';
16
19
  import BottomNavigation from './components/BottomNavigation';
@@ -59,8 +62,11 @@ export {
59
62
  swagSystemPalette,
60
63
  workSystemPalette,
61
64
  jobsSystemPalette,
65
+ walletSystemPalette,
66
+ eBensSystemPalette,
62
67
  Accordion,
63
68
  Alert,
69
+ Attachment,
64
70
  Avatar,
65
71
  Badge,
66
72
  BottomNavigation,
@@ -6,10 +6,12 @@ import {
6
6
  swagSystemPalette,
7
7
  workSystemPalette,
8
8
  jobsSystemPalette,
9
+ walletSystemPalette,
10
+ eBensSystemPalette,
9
11
  } from './global';
10
12
  import ThemeProvider from './ThemeProvider';
11
13
 
12
- type ThemeName = 'swag' | 'work' | 'jobs';
14
+ type ThemeName = 'swag' | 'work' | 'jobs' | 'wallet' | 'eBens';
13
15
 
14
16
  const ThemeSwitcher = ({
15
17
  name = 'swag',
@@ -26,6 +28,10 @@ const ThemeSwitcher = ({
26
28
  return getTheme(defaultScale, workSystemPalette);
27
29
  case 'jobs':
28
30
  return getTheme(defaultScale, jobsSystemPalette);
31
+ case 'wallet':
32
+ return getTheme(defaultScale, walletSystemPalette);
33
+ case 'eBens':
34
+ return getTheme(defaultScale, eBensSystemPalette);
29
35
  }
30
36
  }, [name]);
31
37
  return <ThemeProvider theme={theme}>{children}</ThemeProvider>;