@hero-design/rn 7.23.0 → 7.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +1364 -9239
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +1368 -9238
  6. package/package.json +7 -4
  7. package/rollup.config.js +1 -0
  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 +14 -9
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +29 -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/Empty/index.tsx +1 -2
  51. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  52. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  53. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  54. package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
  55. package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
  56. package/src/components/Icon/HeroIcon/index.tsx +3 -7
  57. package/src/components/Icon/IconList.ts +36 -6
  58. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  59. package/src/components/Icon/index.tsx +1 -0
  60. package/src/components/List/BasicListItem.tsx +13 -8
  61. package/src/components/List/ListItem.tsx +8 -6
  62. package/src/components/List/StyledBasicListItem.tsx +2 -2
  63. package/src/components/List/StyledListItem.tsx +2 -2
  64. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
  65. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
  66. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
  67. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
  68. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  69. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  70. package/src/components/Progress/ProgressBar.tsx +1 -1
  71. package/src/components/Progress/ProgressCircle.tsx +1 -1
  72. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
  73. package/src/components/Progress/types.ts +7 -1
  74. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
  75. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
  76. package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
  77. package/src/components/RefreshControl/index.tsx +4 -2
  78. package/src/components/RichTextEditor/MentionList.tsx +12 -3
  79. package/src/components/RichTextEditor/RichTextEditor.tsx +4 -8
  80. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -4
  81. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  82. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
  83. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +154 -238
  84. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +435 -650
  85. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
  86. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +144 -228
  87. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +414 -629
  88. package/src/components/Select/StyledOptionList.tsx +0 -1
  89. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  90. package/src/components/Spinner/AnimatedSpinner.tsx +22 -7
  91. package/src/components/Spinner/StyledSpinner.tsx +15 -11
  92. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
  93. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
  94. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +12 -8
  95. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +543 -83
  96. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +12 -8
  97. package/src/components/Spinner/index.tsx +6 -1
  98. package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
  99. package/src/components/Swipeable/SwipeableAction.tsx +45 -0
  100. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
  101. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
  102. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
  103. package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
  104. package/src/components/Swipeable/index.tsx +160 -0
  105. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
  106. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  107. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  108. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
  109. package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
  110. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  111. package/src/components/Tabs/StyledTabs.tsx +1 -1
  112. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  113. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  114. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
  115. package/src/components/TextInput/StyledTextInput.tsx +7 -12
  116. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +12 -6
  117. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +31 -146
  118. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -14
  119. package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
  120. package/src/components/TextInput/index.tsx +8 -6
  121. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
  122. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +29 -27
  123. package/src/components/Toast/Toast.tsx +0 -3
  124. package/src/components/Toast/ToastProvider.tsx +1 -0
  125. package/src/components/Toast/__tests__/index.spec.tsx +1 -1
  126. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  127. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  128. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
  129. package/src/emotion.d.ts +1 -0
  130. package/src/index.ts +10 -0
  131. package/src/theme/ThemeSwitcher.tsx +7 -1
  132. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +96 -78
  133. package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
  134. package/src/theme/components/alert.ts +1 -1
  135. package/src/theme/components/attachment.ts +28 -0
  136. package/src/theme/components/avatar.ts +1 -1
  137. package/src/theme/components/badge.ts +2 -1
  138. package/src/theme/components/bottomNavigation.ts +1 -1
  139. package/src/theme/components/bottomSheet.ts +2 -2
  140. package/src/theme/components/button.ts +4 -20
  141. package/src/theme/components/calendar.ts +3 -3
  142. package/src/theme/components/card.ts +1 -1
  143. package/src/theme/components/checkbox.ts +2 -2
  144. package/src/theme/components/divider.ts +1 -1
  145. package/src/theme/components/drawer.ts +2 -2
  146. package/src/theme/components/empty.ts +3 -3
  147. package/src/theme/components/fab.ts +7 -7
  148. package/src/theme/components/icon.ts +4 -4
  149. package/src/theme/components/list.ts +0 -2
  150. package/src/theme/components/pinInput.ts +4 -4
  151. package/src/theme/components/progress.ts +6 -5
  152. package/src/theme/components/radio.ts +1 -1
  153. package/src/theme/components/richTextEditor.ts +2 -2
  154. package/src/theme/components/slider.ts +2 -2
  155. package/src/theme/components/spinner.ts +4 -1
  156. package/src/theme/components/swipeable.ts +13 -0
  157. package/src/theme/components/switch.ts +4 -4
  158. package/src/theme/components/tabs.ts +6 -5
  159. package/src/theme/components/tag.ts +2 -2
  160. package/src/theme/components/textInput.ts +23 -33
  161. package/src/theme/components/toast.ts +3 -3
  162. package/src/theme/components/toolbar.ts +3 -3
  163. package/src/theme/components/typography.ts +7 -7
  164. package/src/theme/getTheme.ts +7 -1
  165. package/src/theme/global/colors/eBens.ts +23 -0
  166. package/src/theme/global/colors/global.ts +15 -6
  167. package/src/theme/global/colors/jobs.ts +15 -10
  168. package/src/theme/global/colors/legacySystemPalette.ts +6 -6
  169. package/src/theme/global/colors/swag.ts +32 -53
  170. package/src/theme/global/colors/types.ts +35 -15
  171. package/src/theme/global/colors/wallet.ts +23 -0
  172. package/src/theme/global/colors/work.ts +15 -11
  173. package/src/theme/global/index.ts +4 -0
  174. package/src/theme/index.ts +4 -0
  175. package/src/types.ts +2 -0
  176. package/src/utils/functions.ts +2 -0
  177. package/src/utils/scale.ts +1 -1
  178. package/testUtils/setup.tsx +13 -0
  179. package/tsconfig.json +8 -2
  180. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  181. package/types/components/Alert/StyledAlert.d.ts +15 -15
  182. package/types/components/Attachment/StyledAttachment.d.ts +28 -0
  183. package/types/components/Attachment/index.d.ts +37 -0
  184. package/types/components/Avatar/StyledAvatar.d.ts +15 -15
  185. package/types/components/Avatar/index.d.ts +1 -1
  186. package/types/components/Badge/Status.d.ts +1 -1
  187. package/types/components/Badge/StyledBadge.d.ts +8 -8
  188. package/types/components/Badge/index.d.ts +1 -1
  189. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  190. package/types/components/BottomSheet/Header.d.ts +1 -1
  191. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  192. package/types/components/Box/StyledBox.d.ts +4 -4
  193. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  194. package/types/components/Button/StyledButton.d.ts +15 -18
  195. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  196. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  197. package/types/components/Calendar/helpers.d.ts +2 -2
  198. package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
  199. package/types/components/Card/StyledCard.d.ts +7 -7
  200. package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
  201. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  202. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  203. package/types/components/ContentNavigator/index.d.ts +2 -1
  204. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  205. package/types/components/Divider/StyledDivider.d.ts +5 -5
  206. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  207. package/types/components/Empty/StyledEmpty.d.ts +9 -9
  208. package/types/components/Empty/index.d.ts +1 -2
  209. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  210. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  211. package/types/components/FAB/StyledFAB.d.ts +8 -8
  212. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  213. package/types/components/Icon/IconList.d.ts +1 -1
  214. package/types/components/Icon/index.d.ts +4 -1
  215. package/types/components/Icon/utils.d.ts +1 -1
  216. package/types/components/List/StyledBasicListItem.d.ts +16 -16
  217. package/types/components/List/StyledListItem.d.ts +25 -25
  218. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  219. package/types/components/Progress/ProgressBar.d.ts +1 -1
  220. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  221. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  222. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  223. package/types/components/Progress/types.d.ts +1 -1
  224. package/types/components/Radio/StyledRadio.d.ts +9 -9
  225. package/types/components/RefreshControl/index.d.ts +1 -2
  226. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  227. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  228. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  229. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  230. package/types/components/RichTextEditor/index.d.ts +2 -2
  231. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  232. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  233. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  234. package/types/components/Select/StyledSelect.d.ts +11 -11
  235. package/types/components/Select/helpers.d.ts +1 -1
  236. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  237. package/types/components/Spinner/StyledSpinner.d.ts +13 -12
  238. package/types/components/Spinner/index.d.ts +5 -1
  239. package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
  240. package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
  241. package/types/components/Swipeable/index.d.ts +45 -0
  242. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
  243. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
  244. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  245. package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
  246. package/types/components/Tabs/StyledTabs.d.ts +22 -22
  247. package/types/components/Tag/StyledTag.d.ts +6 -6
  248. package/types/components/TextInput/StyledTextInput.d.ts +46 -45
  249. package/types/components/TextInput/index.d.ts +6 -6
  250. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  251. package/types/components/Toast/StyledToast.d.ts +17 -17
  252. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  253. package/types/components/Typography/Text/StyledText.d.ts +3 -3
  254. package/types/index.d.ts +4 -2
  255. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  256. package/types/theme/ThemeSwitcher.d.ts +2 -2
  257. package/types/theme/components/attachment.d.ts +21 -0
  258. package/types/theme/components/badge.d.ts +1 -0
  259. package/types/theme/components/button.d.ts +0 -15
  260. package/types/theme/components/list.d.ts +0 -1
  261. package/types/theme/components/progress.d.ts +1 -0
  262. package/types/theme/components/spinner.d.ts +4 -1
  263. package/types/theme/components/swipeable.d.ts +9 -0
  264. package/types/theme/components/tabs.d.ts +1 -0
  265. package/types/theme/components/tag.d.ts +2 -2
  266. package/types/theme/components/textInput.d.ts +0 -10
  267. package/types/theme/getTheme.d.ts +4 -0
  268. package/types/theme/global/colors/eBens.d.ts +3 -0
  269. package/types/theme/global/colors/types.d.ts +23 -16
  270. package/types/theme/global/colors/wallet.d.ts +3 -0
  271. package/types/theme/global/index.d.ts +26 -12
  272. package/types/theme/index.d.ts +2 -2
  273. package/types/types.d.ts +2 -1
  274. package/types/utils/functions.d.ts +1 -0
  275. package/types/utils/hooks.d.ts +1 -1
  276. package/src/components/Icon/HeroIcon/selection.json +0 -7029
@@ -6,10 +6,7 @@ import {
6
6
  StyledMark,
7
7
  } from './StyledCalendar';
8
8
 
9
- const getCellVariant = (
10
- isSelected: boolean = false,
11
- isCurrent: boolean = false
12
- ) => {
9
+ const getCellVariant = (isSelected = false, isCurrent = false) => {
13
10
  if (isSelected) return 'selected';
14
11
  if (isCurrent) return 'current';
15
12
 
@@ -65,7 +65,7 @@ exports[`CalendarRowItem renders correctly 1`] = `
65
65
  style={
66
66
  Array [
67
67
  Object {
68
- "backgroundColor": "#001f23",
68
+ "backgroundColor": "#401960",
69
69
  "borderRadius": 999,
70
70
  "bottom": "10%",
71
71
  "height": 4,
@@ -147,7 +147,7 @@ exports[`CalendarRowItem renders correctly 2`] = `
147
147
  style={
148
148
  Array [
149
149
  Object {
150
- "backgroundColor": "#001f23",
150
+ "backgroundColor": "#401960",
151
151
  "borderRadius": 999,
152
152
  "bottom": "10%",
153
153
  "height": 4,
@@ -195,7 +195,7 @@ exports[`CalendarRowItem renders correctly when is current date 1`] = `
195
195
  style={
196
196
  Object {
197
197
  "alignItems": "center",
198
- "backgroundColor": "#001f23",
198
+ "backgroundColor": "#401960",
199
199
  "borderColor": "#001f23",
200
200
  "borderRadius": 999,
201
201
  "borderWidth": 0,
@@ -277,7 +277,7 @@ exports[`CalendarRowItem renders correctly when selected, and is current date eq
277
277
  style={
278
278
  Object {
279
279
  "alignItems": "center",
280
- "backgroundColor": "#001f23",
280
+ "backgroundColor": "#401960",
281
281
  "borderColor": "#001f23",
282
282
  "borderRadius": 999,
283
283
  "borderWidth": 0,
@@ -359,7 +359,7 @@ exports[`CalendarRowItem renders correctly when selected, and is current date eq
359
359
  style={
360
360
  Object {
361
361
  "alignItems": "center",
362
- "backgroundColor": "#001f23",
362
+ "backgroundColor": "#401960",
363
363
  "borderColor": "#001f23",
364
364
  "borderRadius": 999,
365
365
  "borderWidth": 0,
@@ -12,6 +12,7 @@ import {
12
12
  } from './StyledCalendar';
13
13
  import CalendarRowItem from './CalendarRowItem';
14
14
  import { getValidDate, initArray, isEqDate } from './helpers';
15
+ import { noop } from '../../utils/functions';
15
16
 
16
17
  const DAYS_OF_WEEK = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
17
18
  // Sunday first column => 0
@@ -69,9 +70,9 @@ const Calendar = ({
69
70
  value,
70
71
  visibleDate,
71
72
  onChange,
72
- onPreviousPress = () => {},
73
- onNextPress = () => {},
74
- onTitlePress = () => {},
73
+ onPreviousPress = noop,
74
+ onNextPress = noop,
75
+ onTitlePress = noop,
75
76
  minDate,
76
77
  maxDate,
77
78
  markedDates = [],
@@ -53,7 +53,7 @@ exports[`Indicator renders correctly when intent is primary 1`] = `
53
53
  style={
54
54
  Array [
55
55
  Object {
56
- "backgroundColor": "#001f23",
56
+ "backgroundColor": "#401960",
57
57
  "height": "100%",
58
58
  "width": 16,
59
59
  },
@@ -5,7 +5,7 @@ exports[`LeftDataCard renders correctly 1`] = `
5
5
  style={
6
6
  Array [
7
7
  Object {
8
- "backgroundColor": "#001f23",
8
+ "backgroundColor": "#401960",
9
9
  "height": "100%",
10
10
  "width": 16,
11
11
  },
@@ -42,7 +42,7 @@ exports[`Card renders correctly when intent is primary 1`] = `
42
42
  style={
43
43
  Array [
44
44
  Object {
45
- "backgroundColor": "#001f23",
45
+ "backgroundColor": "#401960",
46
46
  "borderRadius": 12,
47
47
  "overflow": "hidden",
48
48
  },
@@ -27,18 +27,20 @@ export const StyledDescription = styled(Typography.Text)(({ theme }) => ({
27
27
  flex: 1,
28
28
  }));
29
29
 
30
+ export const StyledCheckboxContainer = styled(View)(({ theme }) => ({
31
+ height: theme.__hd__.checkbox.sizes.icon,
32
+ width: theme.__hd__.checkbox.sizes.icon,
33
+ overflow: 'hidden',
34
+ }));
35
+
30
36
  export const StyledCheckbox = styled(View)<{ themeDisabled: boolean }>(
31
37
  ({ theme, themeDisabled }) => ({
32
- flexDirection: 'row',
33
- justifyContent: 'center',
34
- height: theme.__hd__.checkbox.sizes.icon,
35
- width: theme.__hd__.checkbox.sizes.icon,
38
+ flex: 1,
36
39
  borderRadius: theme.__hd__.checkbox.radii.icon,
37
40
  borderWidth: theme.__hd__.checkbox.borderWidths.icon,
38
41
  borderColor: themeDisabled
39
42
  ? theme.__hd__.checkbox.colors.disabledBorder
40
43
  : theme.__hd__.checkbox.colors.default,
41
- overflow: 'hidden',
42
44
  })
43
45
  );
44
46
 
@@ -8,11 +8,7 @@ exports[`StyledCheckbox renders correctly when disabled is false 1`] = `
8
8
  "borderColor": "#001f23",
9
9
  "borderRadius": 4,
10
10
  "borderWidth": 2,
11
- "flexDirection": "row",
12
- "height": 24,
13
- "justifyContent": "center",
14
- "overflow": "hidden",
15
- "width": 24,
11
+ "flex": 1,
16
12
  },
17
13
  undefined,
18
14
  ]
@@ -26,14 +22,10 @@ exports[`StyledCheckbox renders correctly when disabled is true 1`] = `
26
22
  style={
27
23
  Array [
28
24
  Object {
29
- "borderColor": "#4d6265",
25
+ "borderColor": "#bfc1c5",
30
26
  "borderRadius": 4,
31
27
  "borderWidth": 2,
32
- "flexDirection": "row",
33
- "height": 24,
34
- "justifyContent": "center",
35
- "overflow": "hidden",
36
- "width": 24,
28
+ "flex": 1,
37
29
  },
38
30
  undefined,
39
31
  ]
@@ -105,7 +97,7 @@ exports[`StyledWrapper renders correctly when disabled is true, withBorder is tr
105
97
  onStartShouldSetResponder={[Function]}
106
98
  style={
107
99
  Object {
108
- "borderColor": "#4d6265",
100
+ "borderColor": "#bfc1c5",
109
101
  "borderRadius": 8,
110
102
  "borderWidth": 1,
111
103
  "flexDirection": "row",
@@ -24,20 +24,29 @@ exports[`Checkbox renders correctly when checked is false and there is no descri
24
24
  style={
25
25
  Array [
26
26
  Object {
27
- "borderColor": "#001f23",
28
- "borderRadius": 4,
29
- "borderWidth": 2,
30
- "flexDirection": "row",
31
27
  "height": 24,
32
- "justifyContent": "center",
33
28
  "overflow": "hidden",
34
29
  "width": 24,
35
30
  },
36
31
  undefined,
37
32
  ]
38
33
  }
39
- themeDisabled={false}
40
- />
34
+ >
35
+ <View
36
+ style={
37
+ Array [
38
+ Object {
39
+ "borderColor": "#001f23",
40
+ "borderRadius": 4,
41
+ "borderWidth": 2,
42
+ "flex": 1,
43
+ },
44
+ undefined,
45
+ ]
46
+ }
47
+ themeDisabled={false}
48
+ />
49
+ </View>
41
50
  </View>
42
51
  `;
43
52
 
@@ -65,19 +74,13 @@ exports[`Checkbox renders correctly when checked is true and there is no descrip
65
74
  style={
66
75
  Array [
67
76
  Object {
68
- "borderColor": "#001f23",
69
- "borderRadius": 4,
70
- "borderWidth": 2,
71
- "flexDirection": "row",
72
77
  "height": 24,
73
- "justifyContent": "center",
74
78
  "overflow": "hidden",
75
79
  "width": 24,
76
80
  },
77
81
  undefined,
78
82
  ]
79
83
  }
80
- themeDisabled={false}
81
84
  >
82
85
  <HeroIcon
83
86
  name="box-check"
@@ -100,6 +103,20 @@ exports[`Checkbox renders correctly when checked is true and there is no descrip
100
103
  themeIntent="text"
101
104
  themeSize="medium"
102
105
  />
106
+ <View
107
+ style={
108
+ Array [
109
+ Object {
110
+ "borderColor": "#001f23",
111
+ "borderRadius": 4,
112
+ "borderWidth": 2,
113
+ "flex": 1,
114
+ },
115
+ undefined,
116
+ ]
117
+ }
118
+ themeDisabled={false}
119
+ />
103
120
  </View>
104
121
  </View>
105
122
  `;
@@ -153,20 +170,29 @@ exports[`Checkbox renders correctly when disabled is false, withBorder is false
153
170
  style={
154
171
  Array [
155
172
  Object {
156
- "borderColor": "#001f23",
157
- "borderRadius": 4,
158
- "borderWidth": 2,
159
- "flexDirection": "row",
160
173
  "height": 24,
161
- "justifyContent": "center",
162
174
  "overflow": "hidden",
163
175
  "width": 24,
164
176
  },
165
177
  undefined,
166
178
  ]
167
179
  }
168
- themeDisabled={false}
169
- />
180
+ >
181
+ <View
182
+ style={
183
+ Array [
184
+ Object {
185
+ "borderColor": "#001f23",
186
+ "borderRadius": 4,
187
+ "borderWidth": 2,
188
+ "flex": 1,
189
+ },
190
+ undefined,
191
+ ]
192
+ }
193
+ themeDisabled={false}
194
+ />
195
+ </View>
170
196
  </View>
171
197
  `;
172
198
 
@@ -223,20 +249,29 @@ exports[`Checkbox renders correctly when disabled is false, withBorder is true 1
223
249
  style={
224
250
  Array [
225
251
  Object {
226
- "borderColor": "#001f23",
227
- "borderRadius": 4,
228
- "borderWidth": 2,
229
- "flexDirection": "row",
230
252
  "height": 24,
231
- "justifyContent": "center",
232
253
  "overflow": "hidden",
233
254
  "width": 24,
234
255
  },
235
256
  undefined,
236
257
  ]
237
258
  }
238
- themeDisabled={false}
239
- />
259
+ >
260
+ <View
261
+ style={
262
+ Array [
263
+ Object {
264
+ "borderColor": "#001f23",
265
+ "borderRadius": 4,
266
+ "borderWidth": 2,
267
+ "flex": 1,
268
+ },
269
+ undefined,
270
+ ]
271
+ }
272
+ themeDisabled={false}
273
+ />
274
+ </View>
240
275
  </View>
241
276
  `;
242
277
 
@@ -289,20 +324,29 @@ exports[`Checkbox renders correctly when disabled is true, withBorder is false 1
289
324
  style={
290
325
  Array [
291
326
  Object {
292
- "borderColor": "#4d6265",
293
- "borderRadius": 4,
294
- "borderWidth": 2,
295
- "flexDirection": "row",
296
327
  "height": 24,
297
- "justifyContent": "center",
298
328
  "overflow": "hidden",
299
329
  "width": 24,
300
330
  },
301
331
  undefined,
302
332
  ]
303
333
  }
304
- themeDisabled={true}
305
- />
334
+ >
335
+ <View
336
+ style={
337
+ Array [
338
+ Object {
339
+ "borderColor": "#bfc1c5",
340
+ "borderRadius": 4,
341
+ "borderWidth": 2,
342
+ "flex": 1,
343
+ },
344
+ undefined,
345
+ ]
346
+ }
347
+ themeDisabled={true}
348
+ />
349
+ </View>
306
350
  </View>
307
351
  `;
308
352
 
@@ -321,7 +365,7 @@ exports[`Checkbox renders correctly when disabled is true, withBorder is true 1`
321
365
  onStartShouldSetResponder={[Function]}
322
366
  style={
323
367
  Object {
324
- "borderColor": "#4d6265",
368
+ "borderColor": "#bfc1c5",
325
369
  "borderRadius": 8,
326
370
  "borderWidth": 1,
327
371
  "flexDirection": "row",
@@ -359,19 +403,28 @@ exports[`Checkbox renders correctly when disabled is true, withBorder is true 1`
359
403
  style={
360
404
  Array [
361
405
  Object {
362
- "borderColor": "#4d6265",
363
- "borderRadius": 4,
364
- "borderWidth": 2,
365
- "flexDirection": "row",
366
406
  "height": 24,
367
- "justifyContent": "center",
368
407
  "overflow": "hidden",
369
408
  "width": 24,
370
409
  },
371
410
  undefined,
372
411
  ]
373
412
  }
374
- themeDisabled={true}
375
- />
413
+ >
414
+ <View
415
+ style={
416
+ Array [
417
+ Object {
418
+ "borderColor": "#bfc1c5",
419
+ "borderRadius": 4,
420
+ "borderWidth": 2,
421
+ "flex": 1,
422
+ },
423
+ undefined,
424
+ ]
425
+ }
426
+ themeDisabled={true}
427
+ />
428
+ </View>
376
429
  </View>
377
430
  `;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
  import {
4
4
  StyledCheckbox,
5
+ StyledCheckboxContainer,
5
6
  StyledCheckMark,
6
7
  StyledDescription,
7
8
  StyledWrapper,
@@ -60,7 +61,7 @@ const Checkbox = ({
60
61
  {description}
61
62
  </StyledDescription>
62
63
  )}
63
- <StyledCheckbox themeDisabled={disabled}>
64
+ <StyledCheckboxContainer>
64
65
  {checked && (
65
66
  <StyledCheckMark
66
67
  icon="box-check"
@@ -68,7 +69,8 @@ const Checkbox = ({
68
69
  testID="check-mark"
69
70
  />
70
71
  )}
71
- </StyledCheckbox>
72
+ <StyledCheckbox themeDisabled={disabled} />
73
+ </StyledCheckboxContainer>
72
74
  </StyledWrapper>
73
75
  );
74
76
 
@@ -146,7 +146,7 @@ exports[`rendering renders correctly when icon buttons are disabled 1`] = `
146
146
  style={
147
147
  Array [
148
148
  Object {
149
- "color": "#4d6265",
149
+ "color": "#bfc1c5",
150
150
  "fontSize": 24,
151
151
  },
152
152
  undefined,
@@ -205,7 +205,7 @@ exports[`rendering renders correctly when icon buttons are disabled 1`] = `
205
205
  style={
206
206
  Array [
207
207
  Object {
208
- "color": "#4d6265",
208
+ "color": "#bfc1c5",
209
209
  "fontSize": 24,
210
210
  },
211
211
  undefined,
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { ReactElement } from 'react';
2
3
  import type { StyleProp, ViewStyle } from 'react-native';
3
4
  import { Value, Wrapper } from './StyledContentNavigator';
4
5
  import Button from '../Button';
@@ -7,7 +8,7 @@ interface ContentNavigatorProps {
7
8
  /**
8
9
  * The navigator's content value.
9
10
  */
10
- value: number | string;
11
+ value: number | string | ReactElement;
11
12
  /**
12
13
  * Handler to handle press event of previous icon.
13
14
  */
@@ -61,14 +62,18 @@ function ContentNavigator({
61
62
  disabled={previousDisabled}
62
63
  testID="previous-icon-button"
63
64
  />
64
- <Value
65
- fontWeight="semi-bold"
66
- fontSize={fontSize}
67
- onPress={onPress}
68
- testID="content-navigator-value"
69
- >
70
- {value}
71
- </Value>
65
+ {typeof value === 'string' || typeof value === 'number' ? (
66
+ <Value
67
+ fontWeight="semi-bold"
68
+ fontSize={fontSize}
69
+ onPress={onPress}
70
+ testID="content-navigator-value"
71
+ >
72
+ {value}
73
+ </Value>
74
+ ) : (
75
+ value
76
+ )}
72
77
  <Button.Icon
73
78
  icon="arrow-right"
74
79
  onPress={onNextPress}
@@ -61,6 +61,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
61
61
  undefined,
62
62
  ]
63
63
  }
64
+ themeFocused={false}
64
65
  themeVariant="filled"
65
66
  />
66
67
  <View
@@ -138,6 +139,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
138
139
  "flexGrow": 2,
139
140
  "fontSize": 14,
140
141
  "marginHorizontal": 8,
142
+ "paddingVertical": 0,
141
143
  "textAlignVertical": "center",
142
144
  },
143
145
  Object {
@@ -61,6 +61,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
61
61
  undefined,
62
62
  ]
63
63
  }
64
+ themeFocused={false}
64
65
  themeVariant="filled"
65
66
  />
66
67
  <View
@@ -138,6 +139,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
138
139
  "flexGrow": 2,
139
140
  "fontSize": 14,
140
141
  "marginHorizontal": 8,
142
+ "paddingVertical": 0,
141
143
  "textAlignVertical": "center",
142
144
  },
143
145
  Object {
@@ -251,32 +253,6 @@ exports[`DatePickerIOS renders correctly 1`] = `
251
253
  ]
252
254
  }
253
255
  >
254
- <View
255
- accessible={true}
256
- collapsable={false}
257
- focusable={true}
258
- nativeID="animatedComponent"
259
- onBlur={[Function]}
260
- onClick={[Function]}
261
- onFocus={[Function]}
262
- onResponderGrant={[Function]}
263
- onResponderMove={[Function]}
264
- onResponderRelease={[Function]}
265
- onResponderTerminate={[Function]}
266
- onResponderTerminationRequest={[Function]}
267
- onStartShouldSetResponder={[Function]}
268
- style={
269
- Object {
270
- "backgroundColor": "#001f23",
271
- "bottom": 0,
272
- "left": 0,
273
- "opacity": 0.48,
274
- "position": "absolute",
275
- "right": 0,
276
- "top": 0,
277
- }
278
- }
279
- />
280
256
  <View
281
257
  onLayout={[Function]}
282
258
  style={
@@ -294,6 +270,32 @@ exports[`DatePickerIOS renders correctly 1`] = `
294
270
  ]
295
271
  }
296
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
+ />
297
299
  <RCTSafeAreaView
298
300
  collapsable={false}
299
301
  emulateUnlessSupported={true}
@@ -502,7 +504,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
502
504
  style={
503
505
  Array [
504
506
  Object {
505
- "color": "#001f23",
507
+ "color": "#401960",
506
508
  "fontFamily": "BeVietnamPro-SemiBold",
507
509
  "fontSize": 16,
508
510
  "letterSpacing": 0.48,
@@ -124,8 +124,6 @@ const DragableDrawer = ({
124
124
 
125
125
  return () => animation.stop();
126
126
  }
127
-
128
- return () => {};
129
127
  }, [animatedToValue]);
130
128
 
131
129
  const panResponder = useRef(
@@ -37,7 +37,7 @@ exports[`Empty renders empty state content correctly 1`] = `
37
37
  style={
38
38
  Array [
39
39
  Object {
40
- "color": "#4d6265",
40
+ "color": "#bfc1c5",
41
41
  "fontFamily": "BeVietnamPro-Light",
42
42
  "fontSize": 16,
43
43
  "textAlign": "center",
@@ -104,7 +104,7 @@ exports[`Empty renders empty state with image correctly 1`] = `
104
104
  style={
105
105
  Array [
106
106
  Object {
107
- "color": "#4d6265",
107
+ "color": "#bfc1c5",
108
108
  "fontFamily": "BeVietnamPro-Light",
109
109
  "fontSize": 16,
110
110
  "textAlign": "center",
@@ -24,8 +24,7 @@ interface EmptyProps {
24
24
  */
25
25
  description?: string;
26
26
  /**
27
- * Empty's variant
28
- * 'dark' if rendered on a dark background and 'light' otherwise
27
+ * Empty's variant.
29
28
  */
30
29
  variant?: 'light' | 'dark';
31
30
  /**