@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
@@ -39,6 +39,25 @@ Object {
39
39
  "textPaddingHorizontal": 12,
40
40
  },
41
41
  },
42
+ "attachment": Object {
43
+ "colors": Object {
44
+ "highlightedBackground": "#ece8ef",
45
+ },
46
+ "radii": Object {
47
+ "container": 8,
48
+ "image": 4,
49
+ },
50
+ "sizes": Object {
51
+ "imageHeight": 48,
52
+ "imageWidth": 32,
53
+ },
54
+ "space": Object {
55
+ "containerPadding": 16,
56
+ "containerVerticalPadding": 12,
57
+ "ctaPadding": 16,
58
+ "textHorizontalPadding": 8,
59
+ },
60
+ },
42
61
  "avatar": Object {
43
62
  "borderWidths": Object {
44
63
  "default": 1,
@@ -46,7 +65,7 @@ Object {
46
65
  "colors": Object {
47
66
  "danger": "#f46363",
48
67
  "info": "#b5c3fd",
49
- "primary": "#001f23",
68
+ "primary": "#401960",
50
69
  "success": "#5ace7d",
51
70
  "warning": "#ffbe71",
52
71
  },
@@ -79,6 +98,7 @@ Object {
79
98
  "archived": "#737479",
80
99
  "danger": "#de350b",
81
100
  "info": "#4568fb",
101
+ "primary": "#401960",
82
102
  "success": "#017d6d",
83
103
  "text": "#ffffff",
84
104
  "warning": "#ffa234",
@@ -104,7 +124,7 @@ Object {
104
124
  "bottomNavigation": Object {
105
125
  "colors": Object {
106
126
  "background": "#ffffff",
107
- "shadow": "#001f23",
127
+ "shadow": "#401960",
108
128
  },
109
129
  "shadows": Object {
110
130
  "elevation": 10,
@@ -158,28 +178,13 @@ Object {
158
178
  },
159
179
  "colors": Object {
160
180
  "danger": "#de350b",
161
- "defaultText": "#ffffff",
181
+ "defaultText": "#001f23",
162
182
  "disabledBackground": "#bfc1c5",
163
183
  "disabledBorder": "#bfc1c5",
164
184
  "disabledText": "#bfc1c5",
165
185
  "invertedText": "#ffffff",
166
- "pressedDanger": "#de350b",
167
- "pressedPrimary": "#4d6265",
168
- "pressedSecondary": "#401960",
169
- "primary": "#001f23",
170
- "secondary": "#401960",
171
- "underlayColors": Object {
172
- "basic-transparent": "#4d6265",
173
- "filled-danger": "#f46363",
174
- "filled-primary": "#4d6265",
175
- "filled-secondary": "#808f91",
176
- "outlined-danger": "#fcebe7",
177
- "outlined-primary": "#f6f6f7",
178
- "outlined-secondary": "#ecf0ff",
179
- "text-danger": "#fcebe7",
180
- "text-primary": "#f6f6f7",
181
- "text-secondary": "#ecf0ff",
182
- },
186
+ "primary": "#401960",
187
+ "secondary": "#795e90",
183
188
  "utilityBackground": "#f6f6f7",
184
189
  },
185
190
  "fontSize": Object {
@@ -212,7 +217,7 @@ Object {
212
217
  "background": "#ffffff",
213
218
  "border": "#001f23",
214
219
  "inverted": "#ffffff",
215
- "primary": "#001f23",
220
+ "primary": "#401960",
216
221
  },
217
222
  "radii": Object {
218
223
  "default": 999,
@@ -235,9 +240,9 @@ Object {
235
240
  "colors": Object {
236
241
  "archived": "#ccced1",
237
242
  "danger": "#f46363",
238
- "dataCardIndicator": "#001f23",
243
+ "dataCardIndicator": "#401960",
239
244
  "info": "#b5c3fd",
240
- "primary": "#001f23",
245
+ "primary": "#401960",
241
246
  "success": "#5ace7d",
242
247
  "warning": "#ffbe71",
243
248
  },
@@ -255,7 +260,7 @@ Object {
255
260
  },
256
261
  "colors": Object {
257
262
  "default": "#001f23",
258
- "disabledBorder": "#4d6265",
263
+ "disabledBorder": "#bfc1c5",
259
264
  },
260
265
  "radii": Object {
261
266
  "icon": 4,
@@ -326,7 +331,7 @@ Object {
326
331
  "empty": Object {
327
332
  "colors": Object {
328
333
  "invertedText": "#ffffff",
329
- "subduedText": "#4d6265",
334
+ "subduedText": "#bfc1c5",
330
335
  "text": "#001f23",
331
336
  },
332
337
  "fontSizes": Object {
@@ -348,10 +353,10 @@ Object {
348
353
  },
349
354
  "fab": Object {
350
355
  "colors": Object {
351
- "actionItemBackground": "#001f23",
356
+ "actionItemBackground": "#401960",
352
357
  "actionItemText": "#ffffff",
353
358
  "backdropBackground": "#001f23",
354
- "buttonBackground": "#001f23",
359
+ "buttonBackground": "#401960",
355
360
  "headerText": "#ffffff",
356
361
  "icon": "#ffffff",
357
362
  "titleText": "#ffffff",
@@ -399,11 +404,11 @@ Object {
399
404
  "icon": Object {
400
405
  "colors": Object {
401
406
  "danger": "#de350b",
402
- "disabledText": "#4d6265",
407
+ "disabledText": "#bfc1c5",
403
408
  "info": "#b5c3fd",
404
409
  "invertedText": "#ffffff",
405
- "primary": "#001f23",
406
- "secondary": "#401960",
410
+ "primary": "#401960",
411
+ "secondary": "#795e90",
407
412
  "success": "#5ace7d",
408
413
  "text": "#001f23",
409
414
  "warning": "#ffbe71",
@@ -424,8 +429,7 @@ Object {
424
429
  },
425
430
  "list": Object {
426
431
  "colors": Object {
427
- "checkedListItemContainerBackground": "#d9d1df",
428
- "highlightedListItemContainerBackground": "#ece8ef",
432
+ "checkedListItemContainerBackground": "#ece8ef",
429
433
  "leadingStatus": Object {
430
434
  "archived": "#ccced1",
431
435
  "danger": "#f46363",
@@ -470,9 +474,9 @@ Object {
470
474
  },
471
475
  "colors": Object {
472
476
  "default": "#001f23",
473
- "disabled": "#4d6265",
474
- "error": "#f46363",
475
- "mask": "#4d6265",
477
+ "disabled": "#bfc1c5",
478
+ "error": "#de350b",
479
+ "mask": "#001f23",
476
480
  },
477
481
  "fontSizes": Object {
478
482
  "cellText": 28,
@@ -498,13 +502,14 @@ Object {
498
502
  },
499
503
  "progress": Object {
500
504
  "colors": Object {
505
+ "archived": "#737479",
501
506
  "background": "#e8e9ea",
502
507
  "danger": "#de350b",
503
- "info": "#b5c3fd",
508
+ "info": "#4568fb",
504
509
  "innerBackground": "#ffffff",
505
- "primary": "#001f23",
506
- "success": "#5ace7d",
507
- "warning": "#ffbe71",
510
+ "primary": "#401960",
511
+ "success": "#017d6d",
512
+ "warning": "#ffa234",
508
513
  },
509
514
  "radii": Object {
510
515
  "default": 999,
@@ -532,7 +537,7 @@ Object {
532
537
  },
533
538
  "refreshControl": Object {
534
539
  "colors": Object {
535
- "indicator": "#001f23",
540
+ "indicator": "#401960",
536
541
  },
537
542
  },
538
543
  "richTextEditor": Object {
@@ -573,7 +578,7 @@ Object {
573
578
  },
574
579
  "select": Object {
575
580
  "colors": Object {
576
- "footerText": "#401960",
581
+ "footerText": "#795e90",
577
582
  },
578
583
  "radii": Object {
579
584
  "option": 4,
@@ -597,7 +602,10 @@ Object {
597
602
  },
598
603
  "spinner": Object {
599
604
  "colors": Object {
600
- "dot": "#001f23",
605
+ "dot": Object {
606
+ "inverted": "#ffffff",
607
+ "primary": "#401960",
608
+ },
601
609
  },
602
610
  "radii": Object {
603
611
  "default": 999,
@@ -617,17 +625,24 @@ Object {
617
625
  },
618
626
  },
619
627
  },
628
+ "swipeable": Object {
629
+ "colors": Object {
630
+ "danger": "#f46363",
631
+ "primary": "#401960",
632
+ "success": "#5ace7d",
633
+ },
634
+ },
620
635
  "switch": Object {
621
636
  "colors": Object {
622
637
  "backgroundColors": Object {
623
638
  "checked": "#401960",
624
- "disabled-checked": "#a08cb0",
639
+ "disabled-checked": "#ece8ef",
625
640
  "disabled-unchecked": "#bfc1c5",
626
641
  "unchecked": "#808f91",
627
642
  },
628
643
  "selector": Object {
629
644
  "background": "#f6f6f7",
630
- "textBackground": "#401960",
645
+ "textBackground": "#ffffff",
631
646
  },
632
647
  "thumb": "#ffffff",
633
648
  },
@@ -669,9 +684,10 @@ Object {
669
684
  },
670
685
  "colors": Object {
671
686
  "active": "#001f23",
672
- "activeBackground": "#e6e9e9",
687
+ "activeBackground": "#ccd2d3",
673
688
  "headerBottom": "#e8e9ea",
674
689
  "inactive": "#001f23",
690
+ "indicator": "#401960",
675
691
  "text": "#001f23",
676
692
  },
677
693
  "radii": Object {
@@ -702,7 +718,7 @@ Object {
702
718
  "defaultBackground": undefined,
703
719
  "info": "#4568fb",
704
720
  "infoBackground": "#ecf0ff",
705
- "primary": "#001f23",
721
+ "primary": "#401960",
706
722
  "primaryBackground": undefined,
707
723
  "success": "#017d6d",
708
724
  "successBackground": "#f0fef4",
@@ -732,52 +748,42 @@ Object {
732
748
  },
733
749
  "colors": Object {
734
750
  "asterisks": Object {
735
- "default": "#f46363",
751
+ "default": "#de350b",
736
752
  "disabled": "#bfc1c5",
737
- "error": "#f46363",
738
- "filled": "#f46363",
739
- "focused": "#f46363",
753
+ "error": "#de350b",
754
+ "filled": "#de350b",
740
755
  "readonly": "#808f91",
741
756
  },
742
757
  "borders": Object {
743
758
  "default": "#001f23",
744
759
  "disabled": "#bfc1c5",
745
- "error": "#f46363",
760
+ "error": "#de350b",
746
761
  "filled": "#001f23",
747
- "focused": "#001f23",
748
762
  "readonly": "#808f91",
749
763
  },
750
- "disabledLabel": "#bfc1c5",
751
- "error": "#f46363",
752
- "label": "#001f23",
764
+ "error": "#de350b",
753
765
  "labelBackground": "#ffffff",
754
766
  "labels": Object {
755
767
  "default": "#001f23",
756
768
  "disabled": "#bfc1c5",
757
769
  "error": "#001f23",
758
770
  "filled": "#001f23",
759
- "focused": "#001f23",
760
- "readonly": "#bfc1c5",
771
+ "readonly": "#808f91",
761
772
  },
762
773
  "labelsInsideTextInput": Object {
763
774
  "default": "#001f23",
764
775
  "disabled": "#bfc1c5",
765
776
  "error": "#001f23",
766
777
  "filled": "#001f23",
767
- "focused": "#001f23",
768
- "readonly": "#bfc1c5",
778
+ "readonly": "#808f91",
769
779
  },
770
780
  "maxLengthLabels": Object {
771
781
  "default": "#001f23",
772
782
  "disabled": "#bfc1c5",
773
- "error": "#f46363",
783
+ "error": "#de350b",
774
784
  "filled": "#001f23",
775
- "focused": "#001f23",
776
- "readonly": "#bfc1c5",
785
+ "readonly": "#808f91",
777
786
  },
778
- "placeholderIfFocued": "#808f91",
779
- "placeholderIfNotFocused": "#001f23",
780
- "readonlyLabel": "#808f91",
781
787
  "text": "#001f23",
782
788
  },
783
789
  "fontSizes": Object {
@@ -853,13 +859,13 @@ Object {
853
859
  },
854
860
  "colors": Object {
855
861
  "background": "#ffffff",
856
- "border": "#e8e9ea",
862
+ "border": "#001f23",
857
863
  "danger": "#ffbe71",
858
- "disabled": "#808f91",
859
- "error": "#de350b",
864
+ "disabled": "#bfc1c5",
865
+ "error": "#f46363",
860
866
  "info": "#b5c3fd",
861
- "primary": "#001f23",
862
- "secondary": "#401960",
867
+ "primary": "#401960",
868
+ "secondary": "#795e90",
863
869
  "success": "#5ace7d",
864
870
  },
865
871
  "space": Object {
@@ -871,13 +877,13 @@ Object {
871
877
  "colors": Object {
872
878
  "body": "#001f23",
873
879
  "danger": "#de350b",
874
- "info": "#b5c3fd",
880
+ "info": "#4568fb",
875
881
  "inverted": "#ffffff",
876
- "primary": "#001f23",
877
- "secondary": "#401960",
882
+ "primary": "#401960",
883
+ "secondary": "#795e90",
878
884
  "subdued": "#4d6265",
879
- "success": "#5ace7d",
880
- "warning": "#ffbe71",
885
+ "success": "#017d6d",
886
+ "warning": "#ffa234",
881
887
  },
882
888
  "fontSizes": Object {
883
889
  "large": 16,
@@ -919,9 +925,14 @@ Object {
919
925
  "dangerBackground": "#fcebe7",
920
926
  "dangerLight": "#f46363",
921
927
  "dangerMediumLight": "#e3602a",
928
+ "darkGlobalSurface": "#001f23",
929
+ "decorativePrimary": "#ffffff",
930
+ "decorativePrimarySurface": "#ccd2d3",
922
931
  "defaultGlobalSurface": "#ffffff",
932
+ "defaultSurface": "#f6f6f7",
923
933
  "disabledLightText": "#bfc1c5",
924
934
  "disabledOnDefaultGlobalSurface": "#bfc1c5",
935
+ "disabledOutline": "#bfc1c5",
925
936
  "disabledSecondary": "#a08cb0",
926
937
  "disabledText": "#808f91",
927
938
  "error": "#f46363",
@@ -933,8 +944,10 @@ Object {
933
944
  "globalSecondary": "#4d6265",
934
945
  "globalSecondaryOutline": "#e8e9ea",
935
946
  "highlightedSecondarySurface": "#ecf0ff",
936
- "highlightedSurface": "#d9d1df",
947
+ "highlightedSurface": "#ece8ef",
937
948
  "inactiveBackground": "#808f91",
949
+ "inactiveOnDefaultGlobalSurface": "#808f91",
950
+ "inactiveOutline": "#808f91",
938
951
  "info": "#b5c3fd",
939
952
  "infoBackground": "#ecf0ff",
940
953
  "infoLight": "#b5c3fd",
@@ -943,10 +956,12 @@ Object {
943
956
  "invertedText": "#ffffff",
944
957
  "lightHighlightedSurface": "#ece8ef",
945
958
  "mutedGlobalPrimary": "#4d6265",
959
+ "mutedOnDefaultGlobalSurface": "#4d6265",
946
960
  "mutedPrimary": "#e6e9e9",
947
961
  "mutedSecondary": "#808f91",
948
962
  "neutralGlobalSurface": "#f6f6f7",
949
963
  "onArchivedSurface": "#737479",
964
+ "onDarkGlobalSurface": "#ffffff",
950
965
  "onDefaultGlobalSurface": "#001f23",
951
966
  "onErrorSurface": "#de350b",
952
967
  "onGlobalPrimary": "#ffffff",
@@ -957,14 +972,17 @@ Object {
957
972
  "onWarningSurface": "#ffa234",
958
973
  "outline": "#e8e9ea",
959
974
  "platformBackground": "#ffffff",
960
- "primary": "#001f23",
975
+ "pressedSurface": "#664780",
976
+ "primary": "#401960",
961
977
  "primaryBackground": "#f3e6f6",
962
978
  "primaryBackgroundDark": "#4d6265",
963
979
  "primaryDark": "#795e90",
964
980
  "primaryLight": "#c282d1",
965
- "secondary": "#401960",
981
+ "primaryOutline": "#001f23",
982
+ "secondary": "#795e90",
966
983
  "secondaryBackground": "#ecf0ff",
967
984
  "secondaryLight": "#b5c3fd",
985
+ "secondaryOutline": "#e8e9ea",
968
986
  "shadow": "#ccced1",
969
987
  "subduedText": "#4d6265",
970
988
  "success": "#5ace7d",
@@ -0,0 +1,13 @@
1
+ import { theme as runningTheme } from 'rn-7-23-0';
2
+ import latestTheme from '..';
3
+
4
+ it('should be compatible with v7', () => {
5
+ const missingKeys = Object.keys(runningTheme.colors).filter(
6
+ // Safe access to extract missing keys
7
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8
+ // @ts-ignore
9
+ (k) => latestTheme.colors[k] === undefined
10
+ );
11
+
12
+ expect(missingKeys).toEqual([]);
13
+ });
@@ -7,7 +7,7 @@ const getAlertTheme = (theme: GlobalTheme) => {
7
7
  error: theme.colors.error,
8
8
  info: theme.colors.info,
9
9
  notification: theme.colors.defaultGlobalSurface,
10
- divider: theme.colors.globalSecondaryOutline,
10
+ divider: theme.colors.secondaryOutline,
11
11
  };
12
12
 
13
13
  const sizes = {
@@ -0,0 +1,28 @@
1
+ import type { GlobalTheme } from '../global';
2
+
3
+ const getAttachmentTheme = (theme: GlobalTheme) => {
4
+ const colors = {
5
+ highlightedBackground: theme.colors.highlightedSurface,
6
+ };
7
+
8
+ const sizes = {
9
+ imageHeight: theme.sizes.xxxlarge,
10
+ imageWidth: theme.sizes.xlarge,
11
+ };
12
+
13
+ const space = {
14
+ containerPadding: theme.space.medium,
15
+ containerVerticalPadding: theme.space.smallMedium,
16
+ ctaPadding: theme.space.medium,
17
+ textHorizontalPadding: theme.space.small,
18
+ };
19
+
20
+ const radii = {
21
+ image: theme.radii.base,
22
+ container: theme.radii.medium,
23
+ };
24
+
25
+ return { colors, radii, sizes, space };
26
+ };
27
+
28
+ export default getAttachmentTheme;
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getAvatarTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- primary: theme.colors.globalPrimary,
5
+ primary: theme.colors.primary,
6
6
  info: theme.colors.info,
7
7
  danger: theme.colors.error,
8
8
  success: theme.colors.success,
@@ -2,12 +2,13 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getBadgeTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
+ primary: theme.colors.primary,
5
6
  danger: theme.colors.onErrorSurface,
6
7
  info: theme.colors.onInfoSurface,
7
8
  success: theme.colors.onSuccessSurface,
8
9
  warning: theme.colors.onWarningSurface,
9
10
  archived: theme.colors.onArchivedSurface,
10
- text: theme.colors.onGlobalPrimary,
11
+ text: theme.colors.onDarkGlobalSurface,
11
12
  };
12
13
 
13
14
  const fonts = {
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getBottomNavigationTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- shadow: theme.colors.globalPrimary,
5
+ shadow: theme.colors.primary,
6
6
  background: theme.colors.defaultGlobalSurface,
7
7
  };
8
8
 
@@ -2,9 +2,9 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getBottomSheetTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- shadow: theme.colors.globalPrimary,
5
+ shadow: theme.colors.primaryOutline,
6
6
  background: theme.colors.defaultGlobalSurface,
7
- backdrop: theme.colors.globalPrimary,
7
+ backdrop: theme.colors.darkGlobalSurface,
8
8
  };
9
9
 
10
10
  const sizes = {
@@ -36,31 +36,15 @@ const getButtonTheme = (theme: GlobalTheme) => {
36
36
  };
37
37
 
38
38
  const colors = {
39
- primary: theme.colors.globalPrimary,
40
- pressedPrimary: theme.colors.globalSecondary,
39
+ primary: theme.colors.primary,
41
40
  secondary: theme.colors.secondary,
42
- pressedSecondary: theme.colors.secondary,
43
- danger: theme.colors.onErrorSurface, // FIXME: This doesn't make sense
44
- pressedDanger: theme.colors.onErrorSurface, // FIXME: This doesn't make sense
45
- defaultText: theme.colors.onGlobalPrimary,
41
+ danger: theme.colors.onErrorSurface,
42
+ defaultText: theme.colors.onDefaultGlobalSurface,
46
43
  disabledText: theme.colors.disabledOnDefaultGlobalSurface,
47
44
  disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
48
45
  disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
49
- invertedText: theme.colors.onGlobalPrimary,
46
+ invertedText: theme.colors.onDarkGlobalSurface,
50
47
  utilityBackground: theme.colors.neutralGlobalSurface,
51
- underlayColors: {
52
- 'filled-primary': theme.colors.mutedGlobalPrimary,
53
- 'filled-secondary': theme.colors.mutedSecondary,
54
- 'filled-danger': theme.colors.error,
55
- 'outlined-primary': theme.colors.neutralGlobalSurface,
56
- 'outlined-secondary': theme.colors.highlightedSecondarySurface,
57
-
58
- 'outlined-danger': theme.colors.errorSurface,
59
- 'text-primary': theme.colors.neutralGlobalSurface,
60
- 'text-secondary': theme.colors.highlightedSecondarySurface,
61
- 'text-danger': theme.colors.errorSurface,
62
- 'basic-transparent': theme.colors.mutedGlobalPrimary,
63
- },
64
48
  };
65
49
 
66
50
  return {
@@ -3,9 +3,9 @@ import type { GlobalTheme } from '../global';
3
3
  const getCalendarTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  background: theme.colors.defaultGlobalSurface,
6
- border: theme.colors.globalPrimaryOutline,
7
- primary: theme.colors.globalPrimary,
8
- inverted: theme.colors.onGlobalPrimary,
6
+ border: theme.colors.primaryOutline,
7
+ primary: theme.colors.primary,
8
+ inverted: theme.colors.onDarkGlobalSurface,
9
9
  };
10
10
 
11
11
  const cellSize = theme.sizes.xxxlarge;
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getCardTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- dataCardIndicator: theme.colors.globalPrimary,
5
+ dataCardIndicator: theme.colors.primary,
6
6
  primary: theme.colors.primary,
7
7
  info: theme.colors.info,
8
8
  success: theme.colors.success,
@@ -2,8 +2,8 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getCheckboxTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- default: theme.colors.globalPrimary,
6
- disabledBorder: theme.colors.mutedGlobalPrimary,
5
+ default: theme.colors.primaryOutline,
6
+ disabledBorder: theme.colors.disabledOutline,
7
7
  };
8
8
 
9
9
  const space = {
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getDividerTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- default: theme.colors.globalSecondaryOutline,
5
+ default: theme.colors.secondaryOutline,
6
6
  };
7
7
 
8
8
  const space = {
@@ -2,10 +2,10 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getDrawerTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- shadow: theme.colors.globalPrimary,
5
+ shadow: theme.colors.primaryOutline,
6
6
  background: theme.colors.defaultGlobalSurface,
7
7
  backdrop: theme.colors.defaultGlobalSurface,
8
- handler: theme.colors.globalPrimary,
8
+ handler: theme.colors.onDefaultGlobalSurface,
9
9
  };
10
10
 
11
11
  const radii = {
@@ -12,9 +12,9 @@ const getEmptyTheme = (theme: GlobalTheme) => {
12
12
  };
13
13
 
14
14
  const colors = {
15
- text: theme.colors.globalPrimary,
16
- invertedText: theme.colors.onGlobalPrimary,
17
- subduedText: theme.colors.globalSecondary,
15
+ text: theme.colors.onDefaultGlobalSurface,
16
+ invertedText: theme.colors.onDarkGlobalSurface,
17
+ subduedText: theme.colors.disabledOnDefaultGlobalSurface,
18
18
  };
19
19
 
20
20
  const fontSizes = {
@@ -2,13 +2,13 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getFABTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- buttonBackground: theme.colors.globalPrimary,
6
- icon: theme.colors.onGlobalPrimary,
7
- headerText: theme.colors.onGlobalPrimary,
8
- actionItemBackground: theme.colors.globalPrimary,
9
- backdropBackground: theme.colors.globalPrimary,
10
- titleText: theme.colors.onGlobalPrimary,
11
- actionItemText: theme.colors.onGlobalPrimary,
5
+ buttonBackground: theme.colors.primary,
6
+ icon: theme.colors.onPrimary,
7
+ headerText: theme.colors.onDarkGlobalSurface,
8
+ actionItemBackground: theme.colors.primary,
9
+ backdropBackground: theme.colors.darkGlobalSurface,
10
+ titleText: theme.colors.onDarkGlobalSurface,
11
+ actionItemText: theme.colors.onPrimary,
12
12
  };
13
13
 
14
14
  const sizes = {