@hero-design/rn 7.24.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 (248) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +845 -752
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +846 -750
  6. package/package.json +6 -5
  7. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
  8. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  9. package/src/components/Attachment/StyledAttachment.tsx +44 -0
  10. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +158 -0
  11. package/src/components/Attachment/__tests__/index.spec.tsx +59 -0
  12. package/src/components/Attachment/index.tsx +77 -0
  13. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  14. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  15. package/src/components/Badge/Status.tsx +1 -1
  16. package/src/components/Badge/StyledBadge.tsx +8 -1
  17. package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
  18. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +44 -0
  19. package/src/components/Badge/index.tsx +1 -1
  20. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  21. package/src/components/BottomSheet/Header.tsx +2 -1
  22. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
  23. package/src/components/BottomSheet/index.tsx +4 -4
  24. package/src/components/Button/Button.tsx +0 -11
  25. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  27. package/src/components/Button/LoadingIndicator/index.tsx +1 -1
  28. package/src/components/Button/StyledButton.tsx +24 -63
  29. package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +2 -2
  30. package/src/components/Button/__tests__/Button.spec.tsx +10 -5
  31. package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -70
  32. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +301 -1206
  33. package/src/components/Calendar/CalendarRowItem.tsx +1 -4
  34. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
  35. package/src/components/Calendar/index.tsx +4 -3
  36. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  37. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  38. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  39. package/src/components/Checkbox/StyledCheckbox.tsx +7 -5
  40. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -12
  41. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +95 -42
  42. package/src/components/Checkbox/index.tsx +4 -2
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  44. package/src/components/ContentNavigator/index.tsx +14 -9
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +28 -27
  47. package/src/components/Drawer/DragableDrawer/index.tsx +0 -2
  48. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  49. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  50. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  51. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  52. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  53. package/src/components/Icon/IconList.ts +30 -3
  54. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  55. package/src/components/List/BasicListItem.tsx +13 -8
  56. package/src/components/List/ListItem.tsx +8 -6
  57. package/src/components/List/StyledBasicListItem.tsx +2 -2
  58. package/src/components/List/StyledListItem.tsx +2 -2
  59. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
  60. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
  61. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
  62. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
  63. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  64. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  65. package/src/components/Progress/ProgressBar.tsx +1 -1
  66. package/src/components/Progress/ProgressCircle.tsx +1 -1
  67. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
  68. package/src/components/Progress/types.ts +7 -1
  69. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
  70. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
  71. package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
  72. package/src/components/RefreshControl/index.tsx +4 -2
  73. package/src/components/RichTextEditor/MentionList.tsx +12 -3
  74. package/src/components/RichTextEditor/RichTextEditor.tsx +3 -4
  75. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -4
  76. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  77. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
  78. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +146 -234
  79. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +430 -650
  80. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
  81. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +136 -224
  82. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +409 -629
  83. package/src/components/Select/StyledOptionList.tsx +0 -1
  84. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  85. package/src/components/Spinner/StyledSpinner.tsx +1 -2
  86. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  87. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +16 -16
  88. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  89. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
  90. package/src/components/Swipeable/index.tsx +14 -2
  91. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
  92. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  93. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  94. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
  95. package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
  96. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  97. package/src/components/Tabs/StyledTabs.tsx +1 -1
  98. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  99. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  100. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
  101. package/src/components/TextInput/StyledTextInput.tsx +1 -0
  102. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +11 -10
  103. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +27 -14
  104. package/src/components/TextInput/index.tsx +1 -0
  105. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
  106. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +28 -27
  107. package/src/components/Toast/Toast.tsx +0 -3
  108. package/src/components/Toast/ToastProvider.tsx +1 -0
  109. package/src/components/Toast/__tests__/index.spec.tsx +1 -1
  110. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  111. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  112. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
  113. package/src/emotion.d.ts +1 -0
  114. package/src/index.ts +6 -0
  115. package/src/theme/ThemeSwitcher.tsx +7 -1
  116. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +87 -74
  117. package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
  118. package/src/theme/components/alert.ts +1 -1
  119. package/src/theme/components/attachment.ts +28 -0
  120. package/src/theme/components/avatar.ts +1 -1
  121. package/src/theme/components/badge.ts +2 -1
  122. package/src/theme/components/bottomNavigation.ts +1 -1
  123. package/src/theme/components/bottomSheet.ts +2 -2
  124. package/src/theme/components/button.ts +4 -20
  125. package/src/theme/components/calendar.ts +3 -3
  126. package/src/theme/components/card.ts +1 -1
  127. package/src/theme/components/checkbox.ts +2 -2
  128. package/src/theme/components/divider.ts +1 -1
  129. package/src/theme/components/drawer.ts +2 -2
  130. package/src/theme/components/empty.ts +3 -3
  131. package/src/theme/components/fab.ts +7 -7
  132. package/src/theme/components/icon.ts +4 -4
  133. package/src/theme/components/list.ts +0 -2
  134. package/src/theme/components/pinInput.ts +4 -4
  135. package/src/theme/components/progress.ts +6 -5
  136. package/src/theme/components/radio.ts +1 -1
  137. package/src/theme/components/richTextEditor.ts +2 -2
  138. package/src/theme/components/slider.ts +2 -2
  139. package/src/theme/components/switch.ts +4 -4
  140. package/src/theme/components/tabs.ts +6 -5
  141. package/src/theme/components/tag.ts +2 -2
  142. package/src/theme/components/textInput.ts +23 -28
  143. package/src/theme/components/toast.ts +3 -3
  144. package/src/theme/components/toolbar.ts +3 -3
  145. package/src/theme/components/typography.ts +7 -7
  146. package/src/theme/getTheme.ts +4 -1
  147. package/src/theme/global/colors/eBens.ts +23 -0
  148. package/src/theme/global/colors/global.ts +15 -6
  149. package/src/theme/global/colors/jobs.ts +15 -9
  150. package/src/theme/global/colors/legacySystemPalette.ts +6 -6
  151. package/src/theme/global/colors/swag.ts +32 -53
  152. package/src/theme/global/colors/types.ts +35 -15
  153. package/src/theme/global/colors/wallet.ts +23 -0
  154. package/src/theme/global/colors/work.ts +15 -9
  155. package/src/theme/global/index.ts +4 -0
  156. package/src/theme/index.ts +4 -0
  157. package/src/utils/functions.ts +2 -0
  158. package/src/utils/scale.ts +1 -1
  159. package/tsconfig.json +8 -2
  160. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  161. package/types/components/Alert/StyledAlert.d.ts +15 -15
  162. package/types/components/Attachment/StyledAttachment.d.ts +28 -0
  163. package/types/components/Attachment/index.d.ts +37 -0
  164. package/types/components/Avatar/StyledAvatar.d.ts +15 -15
  165. package/types/components/Avatar/index.d.ts +1 -1
  166. package/types/components/Badge/Status.d.ts +1 -1
  167. package/types/components/Badge/StyledBadge.d.ts +8 -8
  168. package/types/components/Badge/index.d.ts +1 -1
  169. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  170. package/types/components/BottomSheet/Header.d.ts +1 -1
  171. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  172. package/types/components/Box/StyledBox.d.ts +4 -4
  173. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  174. package/types/components/Button/StyledButton.d.ts +15 -18
  175. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  176. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  177. package/types/components/Calendar/helpers.d.ts +2 -2
  178. package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
  179. package/types/components/Card/StyledCard.d.ts +7 -7
  180. package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
  181. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  182. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  183. package/types/components/ContentNavigator/index.d.ts +2 -1
  184. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  185. package/types/components/Divider/StyledDivider.d.ts +5 -5
  186. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  187. package/types/components/Empty/StyledEmpty.d.ts +9 -9
  188. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  189. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  190. package/types/components/FAB/StyledFAB.d.ts +8 -8
  191. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  192. package/types/components/Icon/IconList.d.ts +1 -1
  193. package/types/components/Icon/index.d.ts +1 -1
  194. package/types/components/Icon/utils.d.ts +1 -1
  195. package/types/components/List/StyledBasicListItem.d.ts +16 -16
  196. package/types/components/List/StyledListItem.d.ts +25 -25
  197. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  198. package/types/components/Progress/ProgressBar.d.ts +1 -1
  199. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  200. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  201. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  202. package/types/components/Progress/types.d.ts +1 -1
  203. package/types/components/Radio/StyledRadio.d.ts +9 -9
  204. package/types/components/RefreshControl/index.d.ts +1 -2
  205. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  206. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  207. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  208. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  209. package/types/components/RichTextEditor/index.d.ts +2 -2
  210. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  211. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  212. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  213. package/types/components/Select/StyledSelect.d.ts +11 -11
  214. package/types/components/Select/helpers.d.ts +1 -1
  215. package/types/components/Spinner/StyledSpinner.d.ts +12 -12
  216. package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
  217. package/types/components/Swipeable/index.d.ts +7 -3
  218. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
  219. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
  220. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  221. package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
  222. package/types/components/Tabs/StyledTabs.d.ts +22 -22
  223. package/types/components/Tag/StyledTag.d.ts +6 -6
  224. package/types/components/TextInput/StyledTextInput.d.ts +44 -44
  225. package/types/components/TextInput/index.d.ts +5 -5
  226. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  227. package/types/components/Toast/StyledToast.d.ts +17 -17
  228. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  229. package/types/components/Typography/Text/StyledText.d.ts +3 -3
  230. package/types/index.d.ts +3 -2
  231. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  232. package/types/theme/ThemeSwitcher.d.ts +2 -2
  233. package/types/theme/components/attachment.d.ts +21 -0
  234. package/types/theme/components/badge.d.ts +1 -0
  235. package/types/theme/components/button.d.ts +0 -15
  236. package/types/theme/components/list.d.ts +0 -1
  237. package/types/theme/components/progress.d.ts +1 -0
  238. package/types/theme/components/tabs.d.ts +1 -0
  239. package/types/theme/components/tag.d.ts +2 -2
  240. package/types/theme/components/textInput.d.ts +0 -5
  241. package/types/theme/getTheme.d.ts +2 -0
  242. package/types/theme/global/colors/eBens.d.ts +3 -0
  243. package/types/theme/global/colors/types.d.ts +23 -16
  244. package/types/theme/global/colors/wallet.d.ts +3 -0
  245. package/types/theme/global/index.d.ts +26 -12
  246. package/types/theme/index.d.ts +2 -2
  247. package/types/utils/functions.d.ts +1 -0
  248. package/types/utils/hooks.d.ts +1 -1
@@ -251,7 +251,7 @@ exports[`rendering renders correctly when disabled 1`] = `
251
251
  Array [
252
252
  Object {
253
253
  "alignItems": "center",
254
- "borderColor": "#4d6265",
254
+ "borderColor": "#bfc1c5",
255
255
  "borderRadius": 8,
256
256
  "borderWidth": 1,
257
257
  "height": 48,
@@ -268,8 +268,8 @@ exports[`rendering renders correctly when disabled 1`] = `
268
268
  style={
269
269
  Array [
270
270
  Object {
271
- "backgroundColor": "#4d6265",
272
- "borderColor": "#4d6265",
271
+ "backgroundColor": "#bfc1c5",
272
+ "borderColor": "#bfc1c5",
273
273
  "borderRadius": 999,
274
274
  "borderWidth": 1,
275
275
  "height": 16,
@@ -297,7 +297,7 @@ exports[`rendering renders correctly when disabled 1`] = `
297
297
  Array [
298
298
  Object {
299
299
  "alignItems": "center",
300
- "borderColor": "#4d6265",
300
+ "borderColor": "#bfc1c5",
301
301
  "borderRadius": 8,
302
302
  "borderWidth": 1,
303
303
  "height": 48,
@@ -314,8 +314,8 @@ exports[`rendering renders correctly when disabled 1`] = `
314
314
  style={
315
315
  Array [
316
316
  Object {
317
- "backgroundColor": "#4d6265",
318
- "borderColor": "#4d6265",
317
+ "backgroundColor": "#bfc1c5",
318
+ "borderColor": "#bfc1c5",
319
319
  "borderRadius": 999,
320
320
  "borderWidth": 1,
321
321
  "height": 16,
@@ -343,7 +343,7 @@ exports[`rendering renders correctly when disabled 1`] = `
343
343
  Array [
344
344
  Object {
345
345
  "alignItems": "center",
346
- "borderColor": "#4d6265",
346
+ "borderColor": "#bfc1c5",
347
347
  "borderRadius": 8,
348
348
  "borderWidth": 1,
349
349
  "height": 48,
@@ -360,7 +360,7 @@ exports[`rendering renders correctly when disabled 1`] = `
360
360
  style={
361
361
  Array [
362
362
  Object {
363
- "borderColor": "#4d6265",
363
+ "borderColor": "#bfc1c5",
364
364
  "borderRadius": 999,
365
365
  "borderWidth": 1,
366
366
  "height": 16,
@@ -388,7 +388,7 @@ exports[`rendering renders correctly when disabled 1`] = `
388
388
  Array [
389
389
  Object {
390
390
  "alignItems": "center",
391
- "borderColor": "#4d6265",
391
+ "borderColor": "#bfc1c5",
392
392
  "borderRadius": 8,
393
393
  "borderWidth": 1,
394
394
  "height": 48,
@@ -405,7 +405,7 @@ exports[`rendering renders correctly when disabled 1`] = `
405
405
  style={
406
406
  Array [
407
407
  Object {
408
- "borderColor": "#4d6265",
408
+ "borderColor": "#bfc1c5",
409
409
  "borderRadius": 999,
410
410
  "borderWidth": 1,
411
411
  "height": 16,
@@ -786,7 +786,7 @@ exports[`rendering renders correctly when there is error 1`] = `
786
786
  Array [
787
787
  Object {
788
788
  "alignItems": "center",
789
- "borderColor": "#f46363",
789
+ "borderColor": "#de350b",
790
790
  "borderRadius": 8,
791
791
  "borderWidth": 1,
792
792
  "height": 48,
@@ -803,8 +803,8 @@ exports[`rendering renders correctly when there is error 1`] = `
803
803
  style={
804
804
  Array [
805
805
  Object {
806
- "backgroundColor": "#f46363",
807
- "borderColor": "#f46363",
806
+ "backgroundColor": "#de350b",
807
+ "borderColor": "#de350b",
808
808
  "borderRadius": 999,
809
809
  "borderWidth": 1,
810
810
  "height": 16,
@@ -832,7 +832,7 @@ exports[`rendering renders correctly when there is error 1`] = `
832
832
  Array [
833
833
  Object {
834
834
  "alignItems": "center",
835
- "borderColor": "#f46363",
835
+ "borderColor": "#de350b",
836
836
  "borderRadius": 8,
837
837
  "borderWidth": 1,
838
838
  "height": 48,
@@ -849,8 +849,8 @@ exports[`rendering renders correctly when there is error 1`] = `
849
849
  style={
850
850
  Array [
851
851
  Object {
852
- "backgroundColor": "#f46363",
853
- "borderColor": "#f46363",
852
+ "backgroundColor": "#de350b",
853
+ "borderColor": "#de350b",
854
854
  "borderRadius": 999,
855
855
  "borderWidth": 1,
856
856
  "height": 16,
@@ -878,7 +878,7 @@ exports[`rendering renders correctly when there is error 1`] = `
878
878
  Array [
879
879
  Object {
880
880
  "alignItems": "center",
881
- "borderColor": "#f46363",
881
+ "borderColor": "#de350b",
882
882
  "borderRadius": 8,
883
883
  "borderWidth": 1,
884
884
  "height": 48,
@@ -895,7 +895,7 @@ exports[`rendering renders correctly when there is error 1`] = `
895
895
  style={
896
896
  Array [
897
897
  Object {
898
- "borderColor": "#f46363",
898
+ "borderColor": "#de350b",
899
899
  "borderRadius": 999,
900
900
  "borderWidth": 1,
901
901
  "height": 16,
@@ -923,7 +923,7 @@ exports[`rendering renders correctly when there is error 1`] = `
923
923
  Array [
924
924
  Object {
925
925
  "alignItems": "center",
926
- "borderColor": "#f46363",
926
+ "borderColor": "#de350b",
927
927
  "borderRadius": 8,
928
928
  "borderWidth": 1,
929
929
  "height": 48,
@@ -940,7 +940,7 @@ exports[`rendering renders correctly when there is error 1`] = `
940
940
  style={
941
941
  Array [
942
942
  Object {
943
- "borderColor": "#f46363",
943
+ "borderColor": "#de350b",
944
944
  "borderRadius": 999,
945
945
  "borderWidth": 1,
946
946
  "height": 16,
@@ -984,7 +984,7 @@ exports[`rendering renders correctly when there is error 1`] = `
984
984
  style={
985
985
  Array [
986
986
  Object {
987
- "color": "#f46363",
987
+ "color": "#de350b",
988
988
  "fontFamily": "BeVietnamPro-Regular",
989
989
  "fontSize": 12,
990
990
  "paddingLeft": 4,
@@ -12,7 +12,7 @@ export interface ProgressBarProps extends ViewProps {
12
12
  /**
13
13
  * Set intent for your progress.
14
14
  */
15
- intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
15
+ intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
16
16
  /**
17
17
  * Additional style.
18
18
  */
@@ -21,7 +21,7 @@ export interface ProgressCircleProps extends ViewProps {
21
21
  /**
22
22
  * Set intent for your progress.
23
23
  */
24
- intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
24
+ intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
25
25
  /**
26
26
  * Additional style.
27
27
  */
@@ -22,7 +22,7 @@ exports[`Progress.Bar renders correctly 1`] = `
22
22
  style={
23
23
  Object {
24
24
  "alignSelf": "stretch",
25
- "backgroundColor": "#001f23",
25
+ "backgroundColor": "#401960",
26
26
  "borderBottomRightRadius": 999,
27
27
  "borderTopRightRadius": 999,
28
28
  "flex": 1,
@@ -60,7 +60,7 @@ exports[`Progress.Bar renders correctly with intent 1`] = `
60
60
  style={
61
61
  Object {
62
62
  "alignSelf": "stretch",
63
- "backgroundColor": "#5ace7d",
63
+ "backgroundColor": "#017d6d",
64
64
  "borderBottomRightRadius": 999,
65
65
  "borderTopRightRadius": 999,
66
66
  "flex": 1,
@@ -108,7 +108,7 @@ exports[`Progress.Circle renders correctly 1`] = `
108
108
  style={
109
109
  Array [
110
110
  Object {
111
- "backgroundColor": "#001f23",
111
+ "backgroundColor": "#401960",
112
112
  "borderRadius": 999,
113
113
  "height": 72,
114
114
  "width": 72,
@@ -200,7 +200,7 @@ exports[`Progress.Circle renders correctly 1`] = `
200
200
  style={
201
201
  Array [
202
202
  Object {
203
- "backgroundColor": "#001f23",
203
+ "backgroundColor": "#401960",
204
204
  "borderRadius": 999,
205
205
  "height": 72,
206
206
  "width": 72,
@@ -268,7 +268,7 @@ exports[`Progress.Circle renders correctly 1`] = `
268
268
  style={
269
269
  Array [
270
270
  Object {
271
- "backgroundColor": "#001f23",
271
+ "backgroundColor": "#401960",
272
272
  "borderRadius": 999,
273
273
  "height": 5.3999999999999995,
274
274
  "left": 33.3,
@@ -305,7 +305,7 @@ exports[`Progress.Circle renders correctly 1`] = `
305
305
  style={
306
306
  Array [
307
307
  Object {
308
- "backgroundColor": "#001f23",
308
+ "backgroundColor": "#401960",
309
309
  "borderRadius": 999,
310
310
  "height": 5.3999999999999995,
311
311
  "left": 33.3,
@@ -395,7 +395,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
395
395
  style={
396
396
  Array [
397
397
  Object {
398
- "backgroundColor": "#5ace7d",
398
+ "backgroundColor": "#017d6d",
399
399
  "borderRadius": 999,
400
400
  "height": 72,
401
401
  "width": 72,
@@ -487,7 +487,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
487
487
  style={
488
488
  Array [
489
489
  Object {
490
- "backgroundColor": "#5ace7d",
490
+ "backgroundColor": "#017d6d",
491
491
  "borderRadius": 999,
492
492
  "height": 72,
493
493
  "width": 72,
@@ -555,7 +555,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
555
555
  style={
556
556
  Array [
557
557
  Object {
558
- "backgroundColor": "#5ace7d",
558
+ "backgroundColor": "#017d6d",
559
559
  "borderRadius": 999,
560
560
  "height": 5.3999999999999995,
561
561
  "left": 33.3,
@@ -592,7 +592,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
592
592
  style={
593
593
  Array [
594
594
  Object {
595
- "backgroundColor": "#5ace7d",
595
+ "backgroundColor": "#017d6d",
596
596
  "borderRadius": 999,
597
597
  "height": 5.3999999999999995,
598
598
  "left": 33.3,
@@ -1 +1,7 @@
1
- export type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info';
1
+ export type ThemeIntent =
2
+ | 'primary'
3
+ | 'success'
4
+ | 'warning'
5
+ | 'danger'
6
+ | 'info'
7
+ | 'archived';
@@ -2,13 +2,10 @@
2
2
 
3
3
  exports[`rendering renders correctly when checked 1`] = `
4
4
  <View
5
- accessibilityState={
6
- Object {
7
- "disabled": false,
8
- }
9
- }
10
5
  accessible={true}
6
+ collapsable={false}
11
7
  focusable={true}
8
+ nativeID="animatedComponent"
12
9
  onClick={[Function]}
13
10
  onResponderGrant={[Function]}
14
11
  onResponderMove={[Function]}
@@ -17,17 +14,14 @@ exports[`rendering renders correctly when checked 1`] = `
17
14
  onResponderTerminationRequest={[Function]}
18
15
  onStartShouldSetResponder={[Function]}
19
16
  style={
20
- Array [
21
- Object {
22
- "alignItems": "center",
23
- "backgroundColor": "#d9d1df",
24
- "borderRadius": 4,
25
- "flexDirection": "row",
26
- "opacity": 1,
27
- "padding": 16,
28
- },
29
- undefined,
30
- ]
17
+ Object {
18
+ "alignItems": "center",
19
+ "backgroundColor": "#ece8ef",
20
+ "borderRadius": 4,
21
+ "flexDirection": "row",
22
+ "opacity": 1,
23
+ "padding": 16,
24
+ }
31
25
  }
32
26
  >
33
27
  <View
@@ -107,13 +101,10 @@ exports[`rendering renders correctly when checked 1`] = `
107
101
 
108
102
  exports[`rendering renders correctly when not checked 1`] = `
109
103
  <View
110
- accessibilityState={
111
- Object {
112
- "disabled": false,
113
- }
114
- }
115
104
  accessible={true}
105
+ collapsable={false}
116
106
  focusable={true}
107
+ nativeID="animatedComponent"
117
108
  onClick={[Function]}
118
109
  onResponderGrant={[Function]}
119
110
  onResponderMove={[Function]}
@@ -122,17 +113,14 @@ exports[`rendering renders correctly when not checked 1`] = `
122
113
  onResponderTerminationRequest={[Function]}
123
114
  onStartShouldSetResponder={[Function]}
124
115
  style={
125
- Array [
126
- Object {
127
- "alignItems": "center",
128
- "backgroundColor": "#ffffff",
129
- "borderRadius": 4,
130
- "flexDirection": "row",
131
- "opacity": 1,
132
- "padding": 16,
133
- },
134
- undefined,
135
- ]
116
+ Object {
117
+ "alignItems": "center",
118
+ "backgroundColor": "#ffffff",
119
+ "borderRadius": 4,
120
+ "flexDirection": "row",
121
+ "opacity": 1,
122
+ "padding": 16,
123
+ }
136
124
  }
137
125
  >
138
126
  <View
@@ -3,13 +3,10 @@
3
3
  exports[`rendering renders correctly 1`] = `
4
4
  <View>
5
5
  <View
6
- accessibilityState={
7
- Object {
8
- "disabled": false,
9
- }
10
- }
11
6
  accessible={true}
7
+ collapsable={false}
12
8
  focusable={true}
9
+ nativeID="animatedComponent"
13
10
  onClick={[Function]}
14
11
  onResponderGrant={[Function]}
15
12
  onResponderMove={[Function]}
@@ -18,17 +15,14 @@ exports[`rendering renders correctly 1`] = `
18
15
  onResponderTerminationRequest={[Function]}
19
16
  onStartShouldSetResponder={[Function]}
20
17
  style={
21
- Array [
22
- Object {
23
- "alignItems": "center",
24
- "backgroundColor": "#ffffff",
25
- "borderRadius": 4,
26
- "flexDirection": "row",
27
- "opacity": 1,
28
- "padding": 16,
29
- },
30
- undefined,
31
- ]
18
+ Object {
19
+ "alignItems": "center",
20
+ "backgroundColor": "#ffffff",
21
+ "borderRadius": 4,
22
+ "flexDirection": "row",
23
+ "opacity": 1,
24
+ "padding": 16,
25
+ }
32
26
  }
33
27
  >
34
28
  <View
@@ -100,13 +94,10 @@ exports[`rendering renders correctly 1`] = `
100
94
  }
101
95
  />
102
96
  <View
103
- accessibilityState={
104
- Object {
105
- "disabled": false,
106
- }
107
- }
108
97
  accessible={true}
98
+ collapsable={false}
109
99
  focusable={true}
100
+ nativeID="animatedComponent"
110
101
  onClick={[Function]}
111
102
  onResponderGrant={[Function]}
112
103
  onResponderMove={[Function]}
@@ -115,17 +106,14 @@ exports[`rendering renders correctly 1`] = `
115
106
  onResponderTerminationRequest={[Function]}
116
107
  onStartShouldSetResponder={[Function]}
117
108
  style={
118
- Array [
119
- Object {
120
- "alignItems": "center",
121
- "backgroundColor": "#ffffff",
122
- "borderRadius": 4,
123
- "flexDirection": "row",
124
- "opacity": 1,
125
- "padding": 16,
126
- },
127
- undefined,
128
- ]
109
+ Object {
110
+ "alignItems": "center",
111
+ "backgroundColor": "#ffffff",
112
+ "borderRadius": 4,
113
+ "flexDirection": "row",
114
+ "opacity": 1,
115
+ "padding": 16,
116
+ }
129
117
  }
130
118
  >
131
119
  <View
@@ -197,13 +185,10 @@ exports[`rendering renders correctly 1`] = `
197
185
  }
198
186
  />
199
187
  <View
200
- accessibilityState={
201
- Object {
202
- "disabled": false,
203
- }
204
- }
205
188
  accessible={true}
189
+ collapsable={false}
206
190
  focusable={true}
191
+ nativeID="animatedComponent"
207
192
  onClick={[Function]}
208
193
  onResponderGrant={[Function]}
209
194
  onResponderMove={[Function]}
@@ -212,17 +197,14 @@ exports[`rendering renders correctly 1`] = `
212
197
  onResponderTerminationRequest={[Function]}
213
198
  onStartShouldSetResponder={[Function]}
214
199
  style={
215
- Array [
216
- Object {
217
- "alignItems": "center",
218
- "backgroundColor": "#d9d1df",
219
- "borderRadius": 4,
220
- "flexDirection": "row",
221
- "opacity": 1,
222
- "padding": 16,
223
- },
224
- undefined,
225
- ]
200
+ Object {
201
+ "alignItems": "center",
202
+ "backgroundColor": "#ece8ef",
203
+ "borderRadius": 4,
204
+ "flexDirection": "row",
205
+ "opacity": 1,
206
+ "padding": 16,
207
+ }
226
208
  }
227
209
  >
228
210
  <View
@@ -15,9 +15,7 @@ const ExampleList = ({
15
15
  }}
16
16
  refreshControl={refreshControl}
17
17
  >
18
- <Text>
19
- Pull down to see RefreshControl indicator
20
- </Text>
18
+ <Text>Pull down to see RefreshControl indicator</Text>
21
19
  </ScrollView>
22
20
  );
23
21
  };
@@ -5,8 +5,10 @@ import {
5
5
  } from 'react-native';
6
6
  import { useTheme } from '../../theme';
7
7
 
8
- export interface RefreshControlProps
9
- extends Omit<NativeRefreshControlProps, 'colors' | 'tintColor'> {}
8
+ export type RefreshControlProps = Omit<
9
+ NativeRefreshControlProps,
10
+ 'colors' | 'tintColor'
11
+ >;
10
12
 
11
13
  const RefreshControl = ({ ...props }: RefreshControlProps) => {
12
14
  const theme = useTheme();
@@ -21,11 +21,18 @@ export interface MentionListProps<TMetaData = unknown> {
21
21
  */
22
22
  render: (
23
23
  searchText: string,
24
- onSelect: (id: string, name: string, options?: OnSelectOptionsType<TMetaData>) => void
24
+ onSelect: (
25
+ id: string,
26
+ name: string,
27
+ options?: OnSelectOptionsType<TMetaData>
28
+ ) => void
25
29
  ) => JSX.Element;
26
30
  }
27
31
 
28
- const MentionList = <TMetaData, >({ name: eventPrefix, render }: MentionListProps<TMetaData>) => {
32
+ const MentionList = <TMetaData,>({
33
+ name: eventPrefix,
34
+ render,
35
+ }: MentionListProps<TMetaData>) => {
29
36
  const theme = useTheme();
30
37
  const [search, setSearch] = useState<string>('');
31
38
  const [target, setTarget] = useState<string | null>(null);
@@ -68,7 +75,9 @@ const MentionList = <TMetaData, >({ name: eventPrefix, render }: MentionListProp
68
75
  color: theme.colors.secondary,
69
76
  borderRadius: theme.__hd__.richTextEditor.radii.mention,
70
77
  padding: highlighted ? theme.__hd__.richTextEditor.space.mention : 0,
71
- background: highlighted ? theme.colors.lightHighlightedSurface : 'transparent',
78
+ background: highlighted
79
+ ? theme.colors.lightHighlightedSurface
80
+ : 'transparent',
72
81
  marginTop: theme.space.xxsmall,
73
82
  marginBottom: theme.space.xxsmall,
74
83
  display: 'inline-flex',
@@ -105,7 +105,6 @@ export interface RichTextEditorProps {
105
105
  forwardedRef?: Ref<RichTextEditorRef>;
106
106
  }
107
107
 
108
- const noop = () => {};
109
108
  const defaultValue: EditorValue = [
110
109
  {
111
110
  type: 'paragraph',
@@ -117,8 +116,8 @@ const RichTextEditor: ComponentType<RichTextEditorProps> = ({
117
116
  autoFocus = true,
118
117
  name,
119
118
  placeholder = '',
120
- onChange = noop,
121
- onCursorChange = noop,
119
+ onChange,
120
+ onCursorChange,
122
121
  error = '',
123
122
  style = {},
124
123
  label,
@@ -291,7 +290,7 @@ const RichTextEditor: ComponentType<RichTextEditorProps> = ({
291
290
 
292
291
  break;
293
292
  case '@hero-editor/webview/cursor-change':
294
- onCursorChange(messageData);
293
+ onCursorChange?.(messageData);
295
294
 
296
295
  break;
297
296
 
@@ -28,7 +28,7 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
28
28
  style={
29
29
  Array [
30
30
  Object {
31
- "borderColor": "#f46363",
31
+ "borderColor": "#de350b",
32
32
  "borderRadius": 8,
33
33
  "borderWidth": 1,
34
34
  "bottom": 0,
@@ -240,7 +240,7 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
240
240
  },
241
241
  Array [
242
242
  Object {
243
- "color": "#f46363",
243
+ "color": "#de350b",
244
244
  "fontSize": 12,
245
245
  "marginLeft": 4,
246
246
  },
@@ -289,7 +289,7 @@ exports[`RichTextEditor should render correctly 1`] = `
289
289
  style={
290
290
  Array [
291
291
  Object {
292
- "borderColor": "#f46363",
292
+ "borderColor": "#de350b",
293
293
  "borderRadius": 8,
294
294
  "borderWidth": 1,
295
295
  "bottom": 0,
@@ -500,7 +500,7 @@ exports[`RichTextEditor should render correctly 1`] = `
500
500
  },
501
501
  Array [
502
502
  Object {
503
- "color": "#f46363",
503
+ "color": "#de350b",
504
504
  "fontSize": 12,
505
505
  "marginLeft": 4,
506
506
  },
@@ -58,7 +58,7 @@ exports[`SectionHeading allows to customise the icon 1`] = `
58
58
  style={
59
59
  Array [
60
60
  Object {
61
- "color": "#001f23",
61
+ "color": "#401960",
62
62
  "fontFamily": "BeVietnamPro-Regular",
63
63
  "fontSize": 16,
64
64
  "letterSpacing": 0.48,
@@ -2,13 +2,10 @@
2
2
 
3
3
  exports[`Option renders correctly 1`] = `
4
4
  <View
5
- accessibilityState={
6
- Object {
7
- "disabled": false,
8
- }
9
- }
10
5
  accessible={true}
6
+ collapsable={false}
11
7
  focusable={true}
8
+ nativeID="animatedComponent"
12
9
  onClick={[Function]}
13
10
  onResponderGrant={[Function]}
14
11
  onResponderMove={[Function]}
@@ -17,19 +14,15 @@ exports[`Option renders correctly 1`] = `
17
14
  onResponderTerminationRequest={[Function]}
18
15
  onStartShouldSetResponder={[Function]}
19
16
  style={
20
- Array [
21
- Object {
22
- "alignItems": "center",
23
- "backgroundColor": "#d9d1df",
24
- "borderRadius": 4,
25
- "flexDirection": "row",
26
- "opacity": 1,
27
- "padding": 16,
28
- },
29
- Object {
30
- "marginHorizontal": 12,
31
- },
32
- ]
17
+ Object {
18
+ "alignItems": "center",
19
+ "backgroundColor": "#ece8ef",
20
+ "borderRadius": 4,
21
+ "flexDirection": "row",
22
+ "marginHorizontal": 12,
23
+ "opacity": 1,
24
+ "padding": 16,
25
+ }
33
26
  }
34
27
  >
35
28
  <View
@@ -77,13 +70,13 @@ exports[`Option renders correctly 1`] = `
77
70
  style={
78
71
  Array [
79
72
  Object {
80
- "color": "#001f23",
73
+ "color": "#401960",
81
74
  "fontSize": 20,
82
75
  },
83
76
  undefined,
84
77
  ]
85
78
  }
86
- themeIntent="text"
79
+ themeIntent="primary"
87
80
  themeSize="small"
88
81
  />
89
82
  </View>