@hero-design/rn 7.27.1 → 8.0.0-rc.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 (312) hide show
  1. package/.expo/README.md +15 -0
  2. package/.expo/packager-info.json +10 -0
  3. package/.expo/prebuild/cached-packages.json +4 -0
  4. package/.expo/settings.json +10 -0
  5. package/.expo/xcodebuild-error.log +2 -0
  6. package/.expo/xcodebuild.log +11199 -0
  7. package/.turbo/turbo-build.log +9 -9
  8. package/.turbo/turbo-build:types.log +2 -0
  9. package/.turbo/turbo-build:watch.log +1 -0
  10. package/.turbo/turbo-lint.log +96 -0
  11. package/.turbo/turbo-test.log +909 -0
  12. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  13. package/es/index.js +139 -89
  14. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  15. package/lib/index.js +138 -88
  16. package/package.json +4 -4
  17. package/src/components/Alert/index.tsx +43 -31
  18. package/src/components/BottomSheet/Header.tsx +1 -1
  19. package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -1
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
  21. package/src/components/Button/Button.tsx +7 -0
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +7 -7
  23. package/src/components/Empty/StyledEmpty.tsx +1 -1
  24. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  25. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  26. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  27. package/src/components/FAB/__tests__/index.spec.tsx +4 -4
  28. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  29. package/src/components/Icon/IconList.ts +1 -0
  30. package/src/components/Icon/index.tsx +12 -2
  31. package/src/components/List/ListItem.tsx +2 -2
  32. package/src/components/List/StyledListItem.tsx +1 -1
  33. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  34. package/src/components/RichTextEditor/MentionList.tsx +1 -1
  35. package/src/components/RichTextEditor/StyledToolbar.ts +1 -1
  36. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
  37. package/src/components/Select/{StyledOptionList.tsx → BaseOptionList.tsx} +6 -6
  38. package/src/components/Select/MultiSelect/Option.tsx +24 -11
  39. package/src/components/Select/MultiSelect/OptionList.tsx +3 -2
  40. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -2
  41. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +47 -21
  42. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +99 -72
  43. package/src/components/Select/MultiSelect/index.tsx +16 -0
  44. package/src/components/Select/SingleSelect/Option.tsx +12 -12
  45. package/src/components/Select/SingleSelect/OptionList.tsx +3 -2
  46. package/src/components/Select/SingleSelect/StyledSingleSelect.tsx +6 -0
  47. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  48. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +32 -16
  49. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +65 -54
  50. package/src/components/Select/SingleSelect/index.tsx +16 -0
  51. package/src/components/Select/StyledSelect.tsx +12 -2
  52. package/src/components/Select/types.ts +1 -0
  53. package/src/components/Switch/index.tsx +9 -1
  54. package/src/components/Tabs/ScrollableTabs.tsx +1 -1
  55. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -3
  56. package/src/components/Tabs/index.tsx +6 -0
  57. package/src/components/Tag/index.tsx +25 -17
  58. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  59. package/src/components/TextInput/__tests__/index.spec.tsx +1 -1
  60. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +7 -7
  61. package/src/components/Toast/ToastContainer.tsx +1 -1
  62. package/src/components/Toast/ToastProvider.tsx +10 -1
  63. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +5 -5
  64. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +4 -4
  65. package/src/components/Typography/Text/StyledText.tsx +2 -1
  66. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  67. package/src/components/Typography/Text/index.tsx +2 -1
  68. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +26 -18
  69. package/src/theme/components/avatar.ts +1 -1
  70. package/src/theme/components/bottomSheet.ts +5 -5
  71. package/src/theme/components/empty.ts +6 -5
  72. package/src/theme/components/fab.ts +1 -1
  73. package/src/theme/components/select.ts +3 -1
  74. package/src/theme/components/typography.ts +2 -0
  75. package/src/theme/global/colors/global.ts +1 -0
  76. package/src/theme/global/colors/types.ts +1 -0
  77. package/src/theme/global/scale.ts +1 -1
  78. package/src/theme/global/typography.ts +4 -1
  79. package/src/utils/hooks.ts +3 -1
  80. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  81. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  82. package/types/components/Accordion/index.d.ts +0 -0
  83. package/types/components/Accordion/utils.d.ts +1 -0
  84. package/types/components/Alert/StyledAlert.d.ts +0 -0
  85. package/types/components/Alert/index.d.ts +2 -1
  86. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  87. package/types/components/Attachment/index.d.ts +0 -0
  88. package/types/components/Avatar/Avatar.d.ts +0 -0
  89. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  90. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  91. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  92. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  93. package/types/components/Avatar/index.d.ts +0 -0
  94. package/types/components/Badge/Status.d.ts +0 -0
  95. package/types/components/Badge/StyledBadge.d.ts +0 -0
  96. package/types/components/Badge/index.d.ts +0 -0
  97. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  98. package/types/components/BottomNavigation/index.d.ts +0 -0
  99. package/types/components/BottomSheet/Footer.d.ts +0 -0
  100. package/types/components/BottomSheet/Header.d.ts +0 -0
  101. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  102. package/types/components/BottomSheet/index.d.ts +0 -0
  103. package/types/components/Box/StyledBox.d.ts +0 -0
  104. package/types/components/Box/config.d.ts +0 -0
  105. package/types/components/Box/index.d.ts +0 -0
  106. package/types/components/Box/types.d.ts +0 -0
  107. package/types/components/Button/Button.d.ts +0 -0
  108. package/types/components/Button/IconButton.d.ts +0 -0
  109. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  110. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  111. package/types/components/Button/StyledButton.d.ts +0 -0
  112. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  113. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  114. package/types/components/Button/index.d.ts +0 -0
  115. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  116. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  117. package/types/components/Calendar/helpers.d.ts +0 -0
  118. package/types/components/Calendar/index.d.ts +0 -0
  119. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  120. package/types/components/Card/DataCard/index.d.ts +0 -0
  121. package/types/components/Card/StyledCard.d.ts +0 -0
  122. package/types/components/Card/index.d.ts +0 -0
  123. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  124. package/types/components/Checkbox/index.d.ts +0 -0
  125. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  126. package/types/components/Collapse/index.d.ts +0 -0
  127. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  128. package/types/components/ContentNavigator/index.d.ts +0 -0
  129. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  130. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  131. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  132. package/types/components/DatePicker/index.d.ts +0 -0
  133. package/types/components/DatePicker/types.d.ts +0 -0
  134. package/types/components/Divider/StyledDivider.d.ts +0 -0
  135. package/types/components/Divider/index.d.ts +0 -0
  136. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  137. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  138. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  139. package/types/components/Drawer/index.d.ts +0 -0
  140. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  141. package/types/components/Empty/index.d.ts +0 -0
  142. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  143. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  144. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  145. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  146. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  147. package/types/components/FAB/FAB.d.ts +0 -0
  148. package/types/components/FAB/StyledFAB.d.ts +0 -0
  149. package/types/components/FAB/index.d.ts +0 -0
  150. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  151. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  152. package/types/components/Icon/IconList.d.ts +1 -1
  153. package/types/components/Icon/index.d.ts +1 -1
  154. package/types/components/Icon/utils.d.ts +1 -1
  155. package/types/components/Image/index.d.ts +0 -0
  156. package/types/components/List/BasicListItem.d.ts +0 -0
  157. package/types/components/List/ListItem.d.ts +2 -2
  158. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  159. package/types/components/List/StyledListItem.d.ts +0 -0
  160. package/types/components/List/index.d.ts +0 -0
  161. package/types/components/PinInput/PinCell.d.ts +0 -0
  162. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  163. package/types/components/PinInput/index.d.ts +0 -0
  164. package/types/components/Progress/ProgressBar.d.ts +0 -0
  165. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  166. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  167. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  168. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  169. package/types/components/Progress/constants.d.ts +0 -0
  170. package/types/components/Progress/index.d.ts +0 -0
  171. package/types/components/Progress/types.d.ts +0 -0
  172. package/types/components/Radio/Radio.d.ts +0 -0
  173. package/types/components/Radio/RadioGroup.d.ts +0 -0
  174. package/types/components/Radio/StyledRadio.d.ts +0 -0
  175. package/types/components/Radio/index.d.ts +0 -0
  176. package/types/components/Radio/types.d.ts +0 -0
  177. package/types/components/RefreshControl/index.d.ts +0 -0
  178. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  179. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  180. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  181. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  182. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  183. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  184. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  185. package/types/components/RichTextEditor/constants.d.ts +0 -0
  186. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  187. package/types/components/RichTextEditor/index.d.ts +0 -0
  188. package/types/components/RichTextEditor/types.d.ts +0 -0
  189. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  190. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  191. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  192. package/types/components/SectionHeading/index.d.ts +0 -0
  193. package/types/components/Select/BaseOptionList.d.ts +12 -0
  194. package/types/components/Select/Footer.d.ts +0 -0
  195. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  196. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  197. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  198. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  199. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  200. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
  201. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  202. package/types/components/Select/StyledOptionList.d.ts +0 -0
  203. package/types/components/Select/StyledSelect.d.ts +3 -2
  204. package/types/components/Select/helpers.d.ts +0 -0
  205. package/types/components/Select/index.d.ts +0 -0
  206. package/types/components/Select/types.d.ts +1 -0
  207. package/types/components/Slider/index.d.ts +0 -0
  208. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  209. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  210. package/types/components/Spinner/index.d.ts +0 -0
  211. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  212. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  213. package/types/components/Swipeable/index.d.ts +0 -0
  214. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  215. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  216. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  217. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  218. package/types/components/Switch/index.d.ts +1 -1
  219. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  220. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  221. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  222. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  223. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  224. package/types/components/Tabs/index.d.ts +0 -0
  225. package/types/components/Tabs/utils.d.ts +0 -0
  226. package/types/components/Tag/StyledTag.d.ts +0 -0
  227. package/types/components/Tag/index.d.ts +0 -0
  228. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  229. package/types/components/TextInput/index.d.ts +0 -0
  230. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  231. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  232. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  233. package/types/components/TimePicker/index.d.ts +0 -0
  234. package/types/components/TimePicker/types.d.ts +0 -0
  235. package/types/components/Toast/StyledToast.d.ts +0 -0
  236. package/types/components/Toast/Toast.d.ts +0 -0
  237. package/types/components/Toast/ToastContainer.d.ts +0 -0
  238. package/types/components/Toast/ToastContext.d.ts +0 -0
  239. package/types/components/Toast/ToastProvider.d.ts +1 -1
  240. package/types/components/Toast/index.d.ts +1 -1
  241. package/types/components/Toast/types.d.ts +0 -0
  242. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  243. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  244. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  245. package/types/components/Toolbar/index.d.ts +0 -0
  246. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  247. package/types/components/Typography/Text/index.d.ts +1 -1
  248. package/types/components/Typography/index.d.ts +0 -0
  249. package/types/index.d.ts +0 -0
  250. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  251. package/types/theme/ThemeProvider.d.ts +0 -0
  252. package/types/theme/ThemeSwitcher.d.ts +0 -0
  253. package/types/theme/components/accordion.d.ts +0 -0
  254. package/types/theme/components/alert.d.ts +0 -0
  255. package/types/theme/components/attachment.d.ts +0 -0
  256. package/types/theme/components/avatar.d.ts +0 -0
  257. package/types/theme/components/badge.d.ts +0 -0
  258. package/types/theme/components/bottomNavigation.d.ts +0 -0
  259. package/types/theme/components/bottomSheet.d.ts +0 -0
  260. package/types/theme/components/button.d.ts +0 -0
  261. package/types/theme/components/calendar.d.ts +0 -0
  262. package/types/theme/components/card.d.ts +0 -0
  263. package/types/theme/components/checkbox.d.ts +0 -0
  264. package/types/theme/components/contentNavigator.d.ts +0 -0
  265. package/types/theme/components/datePicker.d.ts +0 -0
  266. package/types/theme/components/divider.d.ts +0 -0
  267. package/types/theme/components/drawer.d.ts +0 -0
  268. package/types/theme/components/empty.d.ts +1 -0
  269. package/types/theme/components/fab.d.ts +0 -0
  270. package/types/theme/components/icon.d.ts +0 -0
  271. package/types/theme/components/image.d.ts +0 -0
  272. package/types/theme/components/list.d.ts +0 -0
  273. package/types/theme/components/pinInput.d.ts +0 -0
  274. package/types/theme/components/progress.d.ts +0 -0
  275. package/types/theme/components/radio.d.ts +0 -0
  276. package/types/theme/components/refreshControl.d.ts +0 -0
  277. package/types/theme/components/richTextEditor.d.ts +0 -0
  278. package/types/theme/components/sectionHeading.d.ts +0 -0
  279. package/types/theme/components/select.d.ts +3 -1
  280. package/types/theme/components/slider.d.ts +0 -0
  281. package/types/theme/components/spinner.d.ts +0 -0
  282. package/types/theme/components/swipeable.d.ts +0 -0
  283. package/types/theme/components/switch.d.ts +0 -0
  284. package/types/theme/components/tabs.d.ts +0 -0
  285. package/types/theme/components/tag.d.ts +0 -0
  286. package/types/theme/components/textInput.d.ts +0 -0
  287. package/types/theme/components/timePicker.d.ts +0 -0
  288. package/types/theme/components/toast.d.ts +0 -0
  289. package/types/theme/components/toolbar.d.ts +0 -0
  290. package/types/theme/components/typography.d.ts +2 -0
  291. package/types/theme/getTheme.d.ts +0 -0
  292. package/types/theme/global/borders.d.ts +0 -0
  293. package/types/theme/global/colors/eBens.d.ts +0 -0
  294. package/types/theme/global/colors/global.d.ts +0 -0
  295. package/types/theme/global/colors/jobs.d.ts +0 -0
  296. package/types/theme/global/colors/legacySystemPalette.d.ts +0 -0
  297. package/types/theme/global/colors/swag.d.ts +0 -0
  298. package/types/theme/global/colors/types.d.ts +1 -0
  299. package/types/theme/global/colors/wallet.d.ts +0 -0
  300. package/types/theme/global/colors/work.d.ts +0 -0
  301. package/types/theme/global/index.d.ts +1 -0
  302. package/types/theme/global/scale.d.ts +0 -0
  303. package/types/theme/global/sizes.d.ts +0 -0
  304. package/types/theme/global/space.d.ts +0 -0
  305. package/types/theme/global/typography.d.ts +1 -0
  306. package/types/theme/index.d.ts +0 -0
  307. package/types/theme/utils.d.ts +2 -0
  308. package/types/types.d.ts +0 -0
  309. package/types/utils/functions.d.ts +0 -0
  310. package/types/utils/helpers.d.ts +0 -0
  311. package/types/utils/hooks.d.ts +0 -0
  312. package/types/utils/scale.d.ts +0 -0
@@ -11,6 +11,7 @@ import {
11
11
  TextContainer,
12
12
  } from './StyledAlert';
13
13
  import type { IconName } from '../Icon';
14
+ import { useDeprecation } from '../../utils/hooks';
14
15
 
15
16
  const getIntentIcon = (
16
17
  intent: 'success' | 'info' | 'warning' | 'error' | 'notification'
@@ -61,6 +62,7 @@ interface AlertProps {
61
62
  */
62
63
  onClose?: () => void;
63
64
  /**
65
+ * @deprecated
64
66
  * Use rounded variant.
65
67
  */
66
68
  variant?: 'default' | 'round';
@@ -80,39 +82,49 @@ const Alert = ({
80
82
  title,
81
83
  intent = 'info',
82
84
  onClose,
83
- variant = 'default',
85
+ variant: _variant,
84
86
  style,
85
87
  testID,
86
- }: AlertProps): JSX.Element => (
87
- <Container
88
- themeVariant={variant}
89
- themeIntent={intent}
90
- style={style}
91
- testID={testID}
92
- >
93
- <ContentContainer showDivider={!!onClose}>
94
- {icon !== null ? (
95
- <AlertIcon icon={icon || getIntentIcon(intent)} />
88
+ }: AlertProps): JSX.Element => {
89
+ const variant: AlertProps['variant'] =
90
+ _variant === undefined ? 'default' : _variant;
91
+
92
+ useDeprecation(
93
+ "Alert's variant prop will be removed in the next major release. Rounded will be the only variant available.",
94
+ _variant !== undefined
95
+ );
96
+
97
+ return (
98
+ <Container
99
+ themeVariant={variant}
100
+ themeIntent={intent}
101
+ style={style}
102
+ testID={testID}
103
+ >
104
+ <ContentContainer showDivider={!!onClose}>
105
+ {icon !== null ? (
106
+ <AlertIcon icon={icon || getIntentIcon(intent)} />
107
+ ) : null}
108
+ <TextContainer>
109
+ {typeof title === 'string' ? (
110
+ <Typography.Text fontWeight="semi-bold">{title}</Typography.Text>
111
+ ) : (
112
+ title
113
+ )}
114
+ {typeof content === 'string' ? (
115
+ <Typography.Text>{content}</Typography.Text>
116
+ ) : (
117
+ content
118
+ )}
119
+ </TextContainer>
120
+ </ContentContainer>
121
+ {onClose ? (
122
+ <CTAWrapper onPress={onClose} testID="alert-close-icon">
123
+ <Icon icon="cancel" size="small" />
124
+ </CTAWrapper>
96
125
  ) : null}
97
- <TextContainer>
98
- {typeof title === 'string' ? (
99
- <Typography.Text fontWeight="semi-bold">{title}</Typography.Text>
100
- ) : (
101
- title
102
- )}
103
- {typeof content === 'string' ? (
104
- <Typography.Text>{content}</Typography.Text>
105
- ) : (
106
- content
107
- )}
108
- </TextContainer>
109
- </ContentContainer>
110
- {onClose ? (
111
- <CTAWrapper onPress={onClose} testID="alert-close-icon">
112
- <Icon icon="cancel" size="small" />
113
- </CTAWrapper>
114
- ) : null}
115
- </Container>
116
- );
126
+ </Container>
127
+ );
128
+ };
117
129
 
118
130
  export default Alert;
@@ -40,7 +40,7 @@ const Header = ({
40
40
  onPress={onRequestClose}
41
41
  intent="text"
42
42
  testID="bottom-sheet-close-icon"
43
- size="small"
43
+ size="xsmall"
44
44
  />
45
45
  </StyledIconWrapper>
46
46
  ) : null}
@@ -46,7 +46,7 @@ const StyledBackdrop = styled(AnimatedPressable)<
46
46
  >(({ theme }) => ({
47
47
  ...StyleSheet.absoluteFillObject,
48
48
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
49
- opacity: 0.48,
49
+ opacity: 0.4,
50
50
  }));
51
51
 
52
52
  const StyledHeaderWrapper = styled(View)(({ theme }) => ({
@@ -56,7 +56,7 @@ exports[`BottomSheet renders correctly with close state 1`] = `
56
56
  onStartShouldSetResponder={[Function]}
57
57
  style={
58
58
  Object {
59
- "backgroundColor": "#001f23",
59
+ "backgroundColor": "#000000",
60
60
  "bottom": 0,
61
61
  "left": 0,
62
62
  "opacity": 0.48,
@@ -82,8 +82,8 @@ exports[`BottomSheet renders correctly with close state 1`] = `
82
82
  "height": 3,
83
83
  "width": 0,
84
84
  },
85
- "shadowOpacity": 0.27,
86
- "shadowRadius": 4.65,
85
+ "shadowOpacity": 0.4,
86
+ "shadowRadius": 16,
87
87
  "transform": Array [
88
88
  Object {
89
89
  "scaleY": 1,
@@ -179,13 +179,13 @@ exports[`BottomSheet renders correctly with close state 1`] = `
179
179
  Array [
180
180
  Object {
181
181
  "color": "#001f23",
182
- "fontSize": 20,
182
+ "fontSize": 16,
183
183
  },
184
184
  undefined,
185
185
  ]
186
186
  }
187
187
  themeIntent="text"
188
- themeSize="small"
188
+ themeSize="xsmall"
189
189
  />
190
190
  </View>
191
191
  </View>
@@ -226,8 +226,8 @@ exports[`BottomSheet renders correctly with close state 1`] = `
226
226
  "flexDirection": "row",
227
227
  "justifyContent": "flex-end",
228
228
  "minHeight": 64,
229
- "paddingHorizontal": 12,
230
- "paddingVertical": 8,
229
+ "paddingHorizontal": 24,
230
+ "paddingVertical": 16,
231
231
  },
232
232
  undefined,
233
233
  ]
@@ -339,7 +339,7 @@ exports[`BottomSheet renders correctly with open state 1`] = `
339
339
  onStartShouldSetResponder={[Function]}
340
340
  style={
341
341
  Object {
342
- "backgroundColor": "#001f23",
342
+ "backgroundColor": "#000000",
343
343
  "bottom": 0,
344
344
  "left": 0,
345
345
  "opacity": 0,
@@ -365,8 +365,8 @@ exports[`BottomSheet renders correctly with open state 1`] = `
365
365
  "height": 3,
366
366
  "width": 0,
367
367
  },
368
- "shadowOpacity": 0.27,
369
- "shadowRadius": 4.65,
368
+ "shadowOpacity": 0.4,
369
+ "shadowRadius": 16,
370
370
  "transform": Array [
371
371
  Object {
372
372
  "scaleY": 1,
@@ -462,13 +462,13 @@ exports[`BottomSheet renders correctly with open state 1`] = `
462
462
  Array [
463
463
  Object {
464
464
  "color": "#001f23",
465
- "fontSize": 20,
465
+ "fontSize": 16,
466
466
  },
467
467
  undefined,
468
468
  ]
469
469
  }
470
470
  themeIntent="text"
471
- themeSize="small"
471
+ themeSize="xsmall"
472
472
  />
473
473
  </View>
474
474
  </View>
@@ -509,8 +509,8 @@ exports[`BottomSheet renders correctly with open state 1`] = `
509
509
  "flexDirection": "row",
510
510
  "justifyContent": "flex-end",
511
511
  "minHeight": 64,
512
- "paddingHorizontal": 12,
513
- "paddingVertical": 8,
512
+ "paddingHorizontal": 24,
513
+ "paddingVertical": 16,
514
514
  },
515
515
  undefined,
516
516
  ]
@@ -10,6 +10,7 @@ import {
10
10
  } from './StyledButton';
11
11
  import type { IconName } from '../Icon';
12
12
  import type { Intent, ThemeVariant } from './StyledButton';
13
+ import { useDeprecation } from '../../utils/hooks';
13
14
 
14
15
  export interface ButtonProps {
15
16
  /**
@@ -112,6 +113,12 @@ const Button = ({
112
113
  variant = 'filled',
113
114
  }: ButtonProps): JSX.Element => {
114
115
  const themeVariant = getThemeVariant(variant, intent);
116
+
117
+ useDeprecation(
118
+ "Button's basic-transparent variant is deprecated and will be removed in the next major release.\nPlease use other variants instead.",
119
+ variant === 'basic-transparent'
120
+ );
121
+
115
122
  return (
116
123
  <StyledButtonContainer
117
124
  accessibilityHint={accessibilityHint}
@@ -287,7 +287,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
287
287
  onStartShouldSetResponder={[Function]}
288
288
  style={
289
289
  Object {
290
- "backgroundColor": "#001f23",
290
+ "backgroundColor": "#000000",
291
291
  "bottom": 0,
292
292
  "left": 0,
293
293
  "opacity": 0.48,
@@ -313,8 +313,8 @@ exports[`DatePickerIOS renders correctly 1`] = `
313
313
  "height": 3,
314
314
  "width": 0,
315
315
  },
316
- "shadowOpacity": 0.27,
317
- "shadowRadius": 4.65,
316
+ "shadowOpacity": 0.4,
317
+ "shadowRadius": 16,
318
318
  "transform": Array [
319
319
  Object {
320
320
  "scaleY": 1,
@@ -410,13 +410,13 @@ exports[`DatePickerIOS renders correctly 1`] = `
410
410
  Array [
411
411
  Object {
412
412
  "color": "#001f23",
413
- "fontSize": 20,
413
+ "fontSize": 16,
414
414
  },
415
415
  undefined,
416
416
  ]
417
417
  }
418
418
  themeIntent="text"
419
- themeSize="small"
419
+ themeSize="xsmall"
420
420
  />
421
421
  </View>
422
422
  </View>
@@ -477,8 +477,8 @@ exports[`DatePickerIOS renders correctly 1`] = `
477
477
  "flexDirection": "row",
478
478
  "justifyContent": "flex-end",
479
479
  "minHeight": 64,
480
- "paddingHorizontal": 12,
481
- "paddingVertical": 8,
480
+ "paddingHorizontal": 24,
481
+ "paddingVertical": 16,
482
482
  },
483
483
  undefined,
484
484
  ]
@@ -32,7 +32,7 @@ const StyledDescription = styled(Text)<{ themeVariant: ThemeVariant }>(
32
32
  textAlign: 'center',
33
33
  color:
34
34
  themeVariant === 'dark'
35
- ? theme.__hd__.empty.colors.invertedText
35
+ ? theme.__hd__.empty.colors.invertedSubduedText
36
36
  : theme.__hd__.empty.colors.subduedText,
37
37
  })
38
38
  );
@@ -21,8 +21,8 @@ exports[`Empty renders empty state content correctly 1`] = `
21
21
  Array [
22
22
  Object {
23
23
  "color": "#001f23",
24
- "fontFamily": "BeVietnamPro-SemiBold",
25
- "fontSize": 28,
24
+ "fontFamily": "RebondGrotesque-SemiBold",
25
+ "fontSize": 24,
26
26
  "marginBottom": 16,
27
27
  "textAlign": "center",
28
28
  },
@@ -37,9 +37,9 @@ exports[`Empty renders empty state content correctly 1`] = `
37
37
  style={
38
38
  Array [
39
39
  Object {
40
- "color": "#bfc1c5",
41
- "fontFamily": "BeVietnamPro-Light",
42
- "fontSize": 16,
40
+ "color": "#4d6265",
41
+ "fontFamily": "RebondGrotesque-Regular",
42
+ "fontSize": 18,
43
43
  "textAlign": "center",
44
44
  },
45
45
  undefined,
@@ -88,8 +88,8 @@ exports[`Empty renders empty state with image correctly 1`] = `
88
88
  Array [
89
89
  Object {
90
90
  "color": "#001f23",
91
- "fontFamily": "BeVietnamPro-SemiBold",
92
- "fontSize": 28,
91
+ "fontFamily": "RebondGrotesque-SemiBold",
92
+ "fontSize": 24,
93
93
  "marginBottom": 16,
94
94
  "textAlign": "center",
95
95
  },
@@ -104,9 +104,9 @@ exports[`Empty renders empty state with image correctly 1`] = `
104
104
  style={
105
105
  Array [
106
106
  Object {
107
- "color": "#bfc1c5",
108
- "fontFamily": "BeVietnamPro-Light",
109
- "fontSize": 16,
107
+ "color": "#4d6265",
108
+ "fontFamily": "RebondGrotesque-Regular",
109
+ "fontSize": 18,
110
110
  "textAlign": "center",
111
111
  },
112
112
  undefined,
@@ -24,7 +24,7 @@ exports[`ActionGroup has active false 1`] = `
24
24
  pointerEvents="box-none"
25
25
  style={
26
26
  Object {
27
- "backgroundColor": "#001f23",
27
+ "backgroundColor": "#000000",
28
28
  "bottom": 0,
29
29
  "left": 0,
30
30
  "opacity": 0,
@@ -593,10 +593,10 @@ exports[`ActionGroup has active true 1`] = `
593
593
  pointerEvents="auto"
594
594
  style={
595
595
  Object {
596
- "backgroundColor": "#001f23",
596
+ "backgroundColor": "#000000",
597
597
  "bottom": 0,
598
598
  "left": 0,
599
- "opacity": 0.9,
599
+ "opacity": 0.4,
600
600
  "position": "absolute",
601
601
  "right": 0,
602
602
  "top": 0,
@@ -100,7 +100,7 @@ const ActionGroup = ({
100
100
  const interpolatedBackdropOpacityAnimation =
101
101
  tranlateXAnimation.current.interpolate({
102
102
  inputRange: [0, 1],
103
- outputRange: [0, 0.9],
103
+ outputRange: [0, 0.4],
104
104
  });
105
105
 
106
106
  const interpolatedActionGroupOpacityAnimation =
@@ -11,7 +11,7 @@ describe('FAB', () => {
11
11
  <FAB
12
12
  icon="add"
13
13
  animated
14
- style={{ backgroundColor: theme.colors.backgroundDark }}
14
+ style={{ backgroundColor: theme.colors.darkGlobalSurface }}
15
15
  />
16
16
  );
17
17
 
@@ -26,7 +26,7 @@ describe('FAB', () => {
26
26
  <FAB
27
27
  icon="pencil"
28
28
  title="Shout out"
29
- style={{ backgroundColor: theme.colors.backgroundDark }}
29
+ style={{ backgroundColor: theme.colors.darkGlobalSurface }}
30
30
  />
31
31
  );
32
32
 
@@ -41,7 +41,7 @@ describe('FAB', () => {
41
41
  const { queryAllByTestId, toJSON } = renderWithTheme(
42
42
  <FAB
43
43
  icon="add"
44
- style={{ backgroundColor: theme.colors.backgroundDark }}
44
+ style={{ backgroundColor: theme.colors.darkGlobalSurface }}
45
45
  />
46
46
  );
47
47
 
@@ -57,7 +57,7 @@ describe('FAB', () => {
57
57
  <FAB
58
58
  onPress={onPressSpy}
59
59
  icon="add"
60
- style={{ backgroundColor: theme.colors.backgroundDark }}
60
+ style={{ backgroundColor: theme.colors.darkGlobalSurface }}
61
61
  testID="fab"
62
62
  />
63
63
  );
@@ -1 +1 @@
1
- {"activate":59000,"add-emoji":59001,"add-person":59002,"adjustment":59003,"alignment":59004,"antenna":59005,"archive":59006,"assignment-warning":59007,"bank":59008,"bell":59009,"billing":59010,"bookmark":59011,"box-check":59012,"box":59013,"buildings":59014,"cake":59015,"calendar-clock":59016,"calendar":59017,"candy-box-menu":59018,"carat-down-small":59019,"carat-down":59020,"carat-left-small":59021,"carat-left":59022,"carat-right-small":59023,"carat-right":59024,"carat-up-small":59025,"carat-up":59026,"caret-down-small":59027,"caret-down":59028,"caret-left-small":59029,"caret-left":59030,"caret-right-small":59031,"caret-right":59032,"caret-up-small":59033,"caret-up":59034,"check-radio":59035,"circle-add":59036,"circle-cancel":59037,"circle-check":59038,"circle-down":59039,"circle-info":59040,"circle-left":59041,"circle-ok":59042,"circle-pencil":59043,"circle-question":59044,"circle-remove":59045,"circle-right":59046,"circle-up":59047,"circle-warning":59048,"clock-3":59049,"clock":59050,"cloud-download":59051,"cloud-upload":59052,"cog":59053,"coin":59054,"contacts":59055,"credit-card":59056,"diamond":59057,"direction-arrows":59058,"directory":59059,"document":59060,"dollar-coin-shine":59061,"double-buildings":59062,"edit-template":59063,"envelope":59064,"expense":59065,"eye-circle":59066,"eye-invisible":59067,"eye":59068,"face-meh":59069,"face-sad":59070,"face-smiley":59071,"feed":59072,"feedbacks":59073,"file-certified":59074,"file-clone":59075,"file-copy":59076,"file-csv":59077,"file-dispose":59078,"file-doc":59079,"file-excel":59080,"file-export":59081,"file-lock":59082,"file-pdf":59083,"file-powerpoint":59084,"file-search":59085,"file-secured":59086,"file-sheets":59087,"file-slide":59088,"file-verified":59089,"file-word":59090,"file":59091,"filter":59092,"folder-user":59093,"folder":59094,"format-bold":59095,"format-heading1":59096,"format-heading2":59097,"format-italic":59098,"format-list-bulleted":59099,"format-list-numbered":59100,"format-underlined":59101,"funnel-filter":59102,"global-dollar":59103,"globe":59104,"graduation-cap":59105,"graph":59106,"happy-sun":59107,"health-bag":59108,"heart":59109,"home":59110,"image":59111,"import":59112,"incident-siren":59113,"instapay":59114,"list":59115,"loading-2":59116,"loading":59117,"location":59118,"lock":59119,"looks-one":59120,"looks-two":59121,"media-content":59122,"menu":59123,"moneybag":59124,"moon":59125,"multiple-stars":59126,"multiple-users":59127,"node":59128,"open-folder":59129,"paperclip":59130,"payment-summary":59131,"pencil":59132,"phone":59133,"piggy-bank":59134,"plane":59135,"play-circle":59136,"print":59137,"raising-hands":59138,"reply-arrow":59139,"reply":59140,"reschedule":59141,"rostering":59142,"save":59143,"schedule-send":59144,"schedule":59145,"search-person":59146,"send":59147,"speaker-active":59148,"speaker":59149,"star-award":59150,"star-badge":59151,"star-medal":59152,"star":59153,"steps-circle":59154,"stopwatch":59155,"suitcase":59156,"survey":59157,"swag":59158,"switch":59159,"tag":59160,"target":59161,"teams":59162,"timesheet":59163,"touch-id":59164,"trash-bin":59165,"unlock":59166,"user":59167,"video-1":59168,"video-2":59169,"wallet":59170,"warning":59171,"activate-outlined":59172,"add-credit-card-outlined":59173,"add-person-outlined":59174,"add-section-outlined":59175,"add-time-outlined":59176,"add":59177,"adjustment-outlined":59178,"alignment-2-outlined":59179,"alignment-outlined":59180,"all-caps":59181,"arrow-down":59182,"arrow-downwards":59183,"arrow-left":59184,"arrow-leftwards":59185,"arrow-right":59186,"arrow-rightwards":59187,"arrow-up":59188,"arrow-upwards":59189,"at-sign":59190,"bell-active-outlined":59191,"bell-outlined":59192,"bell-slash-outlined":59193,"billing-outlined":59194,"body-outlined":59195,"bold":59196,"bookmark-added-outlined":59197,"bookmark-outlined":59198,"box-check-outlined":59199,"box-outlined":59200,"bullet-points":59201,"cake-outlined":59202,"calendar-dates-outlined":59203,"calendar-star-outlined":59204,"camera-outlined":59205,"cancel":59206,"chat-bubble-outlined":59207,"chat-unread-outlined":59208,"checkmark":59209,"circle-add-outlined":59210,"circle-cancel-outlined":59211,"circle-down-outlined":59212,"circle-info-outlined":59213,"circle-left-outlined":59214,"circle-ok-outlined":59215,"circle-question-outlined":59216,"circle-remove-outlined":59217,"circle-right-outlined":59218,"circle-up-outlined":59219,"circle-warning-outlined":59220,"clock-2-outlined":59221,"clock-outlined":59222,"cog-outlined":59223,"coin-outlined":59224,"comment-outlined":59225,"contacts-outlined":59226,"credit-card-outlined":59227,"cup-outlined":59228,"direction-arrows-outlined":59229,"directory-outlined":59230,"document-outlined":59231,"dollar-card-outlined":59232,"dollar-coin-shine-outlined":59233,"dollar-sign":59234,"double-buildings-outlined":59235,"double-left-arrows":59236,"double-right-arrows":59237,"download-outlined":59238,"edit-template-outlined":59239,"email-outlined":59240,"enter-arrow":59241,"envelope-outlined":59242,"expense-outlined":59243,"explore-outlined":59244,"external-link":59245,"eye-invisible-outlined":59246,"eye-outlined":59247,"face-id":59248,"face-meh-outlined":59249,"face-open-smiley-outlined":59250,"face-sad-outlined":59251,"face-smiley-outlined":59252,"feed-outlined":59253,"file-certified-outlined":59254,"file-clone-outlined":59255,"file-copy-outlined":59256,"file-dispose-outlined":59257,"file-dollar-outlined":59258,"file-download-outlined":59259,"file-export-outlined":59260,"file-lock-outlined":59261,"file-outlined":59262,"file-search-outlined":59263,"file-secured-outlined":59264,"file-verified-outlined":59265,"filter-outlined":59266,"folder-outlined":59267,"folder-user-outlined":59268,"funnel-filter-outline":59269,"graph-outlined":59270,"hand-holding-user-outlined":59271,"happy-sun-outlined":59272,"health-bag-outlined":59273,"heart-outlined":59274,"home-active-outlined":59275,"home-outlined":59276,"id-card-outlined":59277,"image-outlined":59278,"import-outlined":59279,"instapay-outlined":59280,"italic":59281,"link-1":59282,"link-2":59283,"list-outlined":59284,"live-help-outlined":59285,"location-outlined":59286,"lock-outlined":59287,"locked-file-outlined":59288,"log-out":59289,"media-content-outlined":59290,"menu-close":59291,"menu-expand":59292,"menu-fold-outlined":59293,"menu-unfold-outlined":59294,"moneybag-outlined":59295,"moon-outlined":59296,"more-horizontal":59297,"more-vertical":59298,"multiple-folders-outlined":59299,"multiple-users-outlined":59300,"near-me-outlined":59301,"node-outlined":59302,"number-points":59303,"number":59304,"payment-summary-outlined":59305,"payslip-outlined":59306,"pencil-outlined":59307,"percentage":59308,"phone-outlined":59309,"piggy-bank-outlined":59310,"plane-outlined":59311,"play-circle-outlined":59312,"print-outlined":59313,"qr-code-outlined":59314,"re-assign":59315,"redeem":59316,"refresh":59317,"remove":59318,"reply-outlined":59319,"restart":59320,"return-arrow":59321,"rostering-outlined":59322,"save-outlined":59323,"schedule-outlined":59324,"search-outlined":59325,"search-secured-outlined":59326,"send-outlined":59327,"share-1":59328,"share-2":59329,"single-down-arrow":59330,"single-left-arrow":59331,"single-right-arrow":59332,"single-up-arrow":59333,"speaker-active-outlined":59334,"speaker-outlined":59335,"star-outlined":59336,"stopwatch-outlined":59337,"strikethrough":59338,"suitcase-clock-outlined":59339,"suitcase-outlined":59340,"survey-outlined":59341,"switch-outlined":59342,"sync":59343,"target-outlined":59344,"timesheet-outlined":59345,"transfer":59346,"trash-bin-outlined":59347,"umbrela-outlined":59348,"unavailable":59349,"underline":59350,"unlock-outlined":59351,"upload-outlined":59352,"user-circle-outlined":59353,"user-gear-outlined":59354,"user-outlined":59355,"user-rectangle-outlined":59356,"video-1-outlined":59357,"video-2-outlined":59358,"wallet-outlined":59359}
1
+ {"activate":59000,"add-emoji":59001,"add-person":59002,"adjustment":59003,"alignment":59004,"antenna":59005,"archive":59006,"assignment-warning":59007,"bank":59008,"bell":59009,"billing":59010,"bookmark":59011,"box-check":59012,"box":59013,"buildings":59014,"cake":59015,"calendar-clock":59016,"calendar":59017,"candy-box-menu":59018,"carat-down-small":59019,"carat-down":59020,"carat-left-small":59021,"carat-left":59022,"carat-right-small":59023,"carat-right":59024,"carat-up-small":59025,"carat-up":59026,"caret-down-small":59027,"caret-down":59028,"caret-left-small":59029,"caret-left":59030,"caret-right-small":59031,"caret-right":59032,"caret-up-small":59033,"caret-up":59034,"check-radio":59035,"circle-add":59036,"circle-cancel":59037,"circle-check":59038,"circle-down":59039,"circle-info":59040,"circle-left":59041,"circle-ok":59042,"circle-pencil":59043,"circle-question":59044,"circle-remove":59045,"circle-right":59046,"circle-up":59047,"circle-warning":59048,"clock-3":59049,"clock":59050,"cloud-download":59051,"cloud-upload":59052,"cog":59053,"coin":59054,"contacts":59055,"credit-card":59056,"diamond":59057,"direction-arrows":59058,"directory":59059,"document":59060,"dollar-coin-shine":59061,"double-buildings":59062,"edit-template":59063,"envelope":59064,"expense":59065,"eye-circle":59066,"eye-invisible":59067,"eye":59068,"face-meh":59069,"face-sad":59070,"face-smiley":59071,"feed":59072,"feedbacks":59073,"file-certified":59074,"file-clone":59075,"file-copy":59076,"file-csv":59077,"file-dispose":59078,"file-doc":59079,"file-excel":59080,"file-export":59081,"file-lock":59082,"file-pdf":59083,"file-powerpoint":59084,"file-search":59085,"file-secured":59086,"file-sheets":59087,"file-slide":59088,"file-verified":59089,"file-word":59090,"file":59091,"filter":59092,"folder-user":59093,"folder":59094,"format-bold":59095,"format-heading1":59096,"format-heading2":59097,"format-italic":59098,"format-list-bulleted":59099,"format-list-numbered":59100,"format-underlined":59101,"funnel-filter":59102,"global-dollar":59103,"globe":59104,"graduation-cap":59105,"graph":59106,"happy-sun":59107,"health-bag":59108,"heart":59109,"home":59110,"image":59111,"import":59112,"incident-siren":59113,"instapay":59114,"list":59115,"loading-2":59116,"loading":59117,"location":59118,"lock":59119,"looks-one":59120,"looks-two":59121,"media-content":59122,"menu":59123,"moneybag":59124,"moon":59125,"multiple-stars":59126,"multiple-users":59127,"node":59128,"open-folder":59129,"paperclip":59130,"payment-summary":59131,"pencil":59132,"phone":59133,"piggy-bank":59134,"plane":59135,"play-circle":59136,"print":59137,"raising-hands":59138,"reply-arrow":59139,"reply":59140,"reschedule":59141,"rostering":59142,"save":59143,"schedule-send":59144,"schedule":59145,"search-person":59146,"send":59147,"speaker-active":59148,"speaker":59149,"star-award":59150,"star-badge":59151,"star-medal":59152,"star":59153,"steps-circle":59154,"stopwatch":59155,"suitcase":59156,"survey":59157,"swag":59158,"switch":59159,"tag":59160,"target":59161,"teams":59162,"timesheet":59163,"touch-id":59164,"trash-bin":59165,"unlock":59166,"user":59167,"video-1":59168,"video-2":59169,"wallet":59170,"warning":59171,"activate-outlined":59172,"add-credit-card-outlined":59173,"add-person-outlined":59174,"add-section-outlined":59175,"add-time-outlined":59176,"add":59177,"adjustment-outlined":59178,"alignment-2-outlined":59179,"alignment-outlined":59180,"all-caps":59181,"arrow-down":59182,"arrow-downwards":59183,"arrow-left":59184,"arrow-leftwards":59185,"arrow-right":59186,"arrow-rightwards":59187,"arrow-up":59188,"arrow-upwards":59189,"at-sign":59190,"bell-active-outlined":59191,"bell-outlined":59192,"bell-slash-outlined":59193,"billing-outlined":59194,"body-outlined":59195,"bold":59196,"bookmark-added-outlined":59197,"bookmark-outlined":59198,"box-check-outlined":59199,"box-outlined":59200,"bullet-points":59201,"cake-outlined":59202,"calendar-dates-outlined":59203,"calendar-star-outlined":59204,"camera-outlined":59205,"cancel":59206,"chat-bubble-outlined":59207,"chat-unread-outlined":59208,"checkmark":59209,"circle-add-outlined":59210,"circle-cancel-outlined":59211,"circle-down-outlined":59212,"circle-info-outlined":59213,"circle-left-outlined":59214,"circle-ok-outlined":59215,"circle-question-outlined":59216,"circle-remove-outlined":59217,"circle-right-outlined":59218,"circle-up-outlined":59219,"circle-warning-outlined":59220,"clock-2-outlined":59221,"clock-outlined":59222,"cog-outlined":59223,"coin-outlined":59224,"comment-outlined":59225,"contacts-outlined":59226,"credit-card-outlined":59227,"cup-outlined":59228,"direction-arrows-outlined":59229,"directory-outlined":59230,"document-outlined":59231,"dollar-card-outlined":59232,"dollar-coin-shine-outlined":59233,"dollar-sign":59234,"double-buildings-outlined":59235,"double-left-arrows":59236,"double-right-arrows":59237,"download-outlined":59238,"edit-template-outlined":59239,"email-outlined":59240,"enter-arrow":59241,"envelope-outlined":59242,"expense-outlined":59243,"explore-outlined":59244,"external-link":59245,"eye-invisible-outlined":59246,"eye-outlined":59247,"face-id":59248,"face-meh-outlined":59249,"face-open-smiley-outlined":59250,"face-sad-outlined":59251,"face-smiley-outlined":59252,"feed-outlined":59253,"file-certified-outlined":59254,"file-clone-outlined":59255,"file-copy-outlined":59256,"file-dispose-outlined":59257,"file-dollar-outlined":59258,"file-download-outlined":59259,"file-export-outlined":59260,"file-lock-outlined":59261,"file-outlined":59262,"file-search-outlined":59263,"file-secured-outlined":59264,"file-verified-outlined":59265,"filter-outlined":59266,"folder-outlined":59267,"folder-user-outlined":59268,"funnel-filter-outline":59269,"graph-outlined":59270,"hand-holding-user-outlined":59271,"happy-sun-outlined":59272,"health-bag-outlined":59273,"heart-outlined":59274,"home-active-outlined":59275,"home-outlined":59276,"id-card-outlined":59277,"image-outlined":59278,"import-outlined":59279,"instapay-outlined":59280,"italic":59281,"link-1":59282,"link-2":59283,"list-outlined":59284,"live-help-outlined":59285,"location-outlined":59286,"lock-outlined":59287,"locked-file-outlined":59288,"log-out":59289,"media-content-outlined":59290,"menu-close":59291,"menu-expand":59292,"menu-fold-outlined":59293,"menu-unfold-outlined":59294,"moneybag-outlined":59295,"moon-outlined":59296,"more-horizontal":59297,"more-vertical":59298,"multiple-folders-outlined":59299,"multiple-users-outlined":59300,"near-me-outlined":59301,"node-outlined":59302,"number-points":59303,"number":59304,"payment-summary-outlined":59305,"payslip-outlined":59306,"pencil-outlined":59307,"percentage":59308,"phone-outlined":59309,"piggy-bank-outlined":59310,"plane-outlined":59311,"play-circle-outlined":59312,"print-outlined":59313,"qr-code-outlined":59314,"re-assign":59315,"redeem":59316,"refresh":59317,"remove":59318,"reply-outlined":59319,"restart":59320,"return-arrow":59321,"rostering-outlined":59322,"save-outlined":59323,"schedule-outlined":59324,"search-outlined":59325,"search-secured-outlined":59326,"send-outlined":59327,"share-1":59328,"share-2":59329,"share-outlined":59330,"single-down-arrow":59331,"single-left-arrow":59332,"single-right-arrow":59333,"single-up-arrow":59334,"speaker-active-outlined":59335,"speaker-outlined":59336,"star-outlined":59337,"stopwatch-outlined":59338,"strikethrough":59339,"suitcase-clock-outlined":59340,"suitcase-outlined":59341,"survey-outlined":59342,"switch-outlined":59343,"sync":59344,"target-outlined":59345,"timesheet-outlined":59346,"transfer":59347,"trash-bin-outlined":59348,"umbrela-outlined":59349,"unavailable":59350,"underline":59351,"unlock-outlined":59352,"upload-outlined":59353,"user-circle-outlined":59354,"user-gear-outlined":59355,"user-outlined":59356,"user-rectangle-outlined":59357,"video-1-outlined":59358,"video-2-outlined":59359,"wallet-outlined":59360}
@@ -330,6 +330,7 @@ const IconList = [
330
330
  'send-outlined',
331
331
  'share-1',
332
332
  'share-2',
333
+ 'share-outlined',
333
334
  'single-down-arrow',
334
335
  'single-left-arrow',
335
336
  'single-right-arrow',
@@ -3,6 +3,7 @@ import type { StyleProp, TextStyle } from 'react-native';
3
3
  import IconList from './IconList';
4
4
  import HeroIcon from './HeroIcon';
5
5
  import AnimatedIcon from './AnimatedIcon';
6
+ import { useDeprecation } from '../../utils/hooks';
6
7
 
7
8
  export type IconName = typeof IconList[number];
8
9
 
@@ -49,8 +50,16 @@ const Icon = ({
49
50
  intent = 'text',
50
51
  testID,
51
52
  spin = false,
52
- }: IconProps) =>
53
- spin ? (
53
+ }: IconProps) => {
54
+ useDeprecation(
55
+ `${icon} icon is deprecated and will be removed in the next major release, please use ${icon.replace(
56
+ 'carat',
57
+ 'caret'
58
+ )} instead.`,
59
+ icon.startsWith('carat')
60
+ );
61
+
62
+ return spin ? (
54
63
  <AnimatedIcon
55
64
  name={icon}
56
65
  themeIntent={intent}
@@ -67,6 +76,7 @@ const Icon = ({
67
76
  testID={testID}
68
77
  />
69
78
  );
79
+ };
70
80
 
71
81
  Icon.List = IconList;
72
82
  export default Icon;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
 
3
3
  import { View } from 'react-native';
4
4
  import type { ReactNode } from 'react';
@@ -28,7 +28,7 @@ export interface ListItemProps {
28
28
  /**
29
29
  * The title of the component.
30
30
  */
31
- title?: string;
31
+ title?: string | ReactElement;
32
32
  /**
33
33
  * The subtile title of the component.
34
34
  */
@@ -29,7 +29,7 @@ const StyledListItemContainer = styled(TouchableOpacity)<{
29
29
  ...sharedStyles,
30
30
  alignItems: 'center',
31
31
  borderRadius: theme.__hd__.list.radii.card,
32
- shadowColor: theme.colors.shadow,
32
+ shadowColor: theme.colors.secondaryOutline,
33
33
  shadowRadius: theme.__hd__.list.radii.cardShadow,
34
34
  shadowOffset: theme.__hd__.list.shadows.cardOffset,
35
35
  shadowOpacity: theme.__hd__.list.opacity.cardShadow,
@@ -107,7 +107,7 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant ca
107
107
  "flexDirection": "row",
108
108
  "opacity": 1,
109
109
  "padding": 16,
110
- "shadowColor": "#ccced1",
110
+ "shadowColor": "#e8e9ea",
111
111
  "shadowOffset": Object {
112
112
  "height": 2,
113
113
  "width": 0,
@@ -207,7 +207,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant car
207
207
  "flexDirection": "row",
208
208
  "opacity": 1,
209
209
  "padding": 16,
210
- "shadowColor": "#ccced1",
210
+ "shadowColor": "#e8e9ea",
211
211
  "shadowOffset": Object {
212
212
  "height": 2,
213
213
  "width": 0,
@@ -76,7 +76,7 @@ const MentionList = <TMetaData,>({
76
76
  borderRadius: theme.__hd__.richTextEditor.radii.mention,
77
77
  padding: highlighted ? theme.__hd__.richTextEditor.space.mention : 0,
78
78
  background: highlighted
79
- ? theme.colors.lightHighlightedSurface
79
+ ? theme.colors.highlightedSurface
80
80
  : 'transparent',
81
81
  marginTop: theme.space.xxsmall,
82
82
  marginBottom: theme.space.xxsmall,
@@ -28,5 +28,5 @@ export const StyledSeparator = styled(View)(({ theme }) => ({
28
28
  flexDirection: 'row',
29
29
  alignItems: 'center',
30
30
  marginHorizontal: theme.space.small,
31
- backgroundColor: theme.colors.outline,
31
+ backgroundColor: theme.colors.secondaryOutline,
32
32
  }));
@@ -96,7 +96,7 @@ describe('EditorToolbar', () => {
96
96
 
97
97
  fireEvent(wrapper.getByTestId(testID), 'press');
98
98
  expect(wrapper.getByTestId(testID)).toHaveStyle({
99
- backgroundColor: theme.colors.lightHighlightedSurface,
99
+ backgroundColor: theme.colors.highlightedSurface,
100
100
  });
101
101
  });
102
102
 
@@ -5,7 +5,7 @@ import type { ReactElement } from 'react';
5
5
  import type { SectionListRenderItemInfo } from 'react-native';
6
6
  import SectionHeading from '../SectionHeading';
7
7
  import Spinner from '../Spinner';
8
- import { OptionSpacer, SectionSpacer } from './StyledSelect';
8
+ import { OptionSpacer, SectionSpacer, StyledSectionList } from './StyledSelect';
9
9
  import type {
10
10
  SectionData,
11
11
  OptionType,
@@ -13,7 +13,7 @@ import type {
13
13
  SectionType,
14
14
  } from './types';
15
15
 
16
- export type StyledOptionListProps<V, T extends OptionType<V>> = Pick<
16
+ export type BaseOptionListProps<V, T extends OptionType<V>> = Pick<
17
17
  SelectProps<V, T>,
18
18
  'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange'
19
19
  > & {
@@ -22,7 +22,7 @@ export type StyledOptionListProps<V, T extends OptionType<V>> = Pick<
22
22
  sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
23
23
  };
24
24
 
25
- const StyledOptionList = <V, T extends OptionType<V>>({
25
+ const BaseOptionList = <V, T extends OptionType<V>>({
26
26
  keyExtractor,
27
27
  loading,
28
28
  onEndReached,
@@ -30,13 +30,13 @@ const StyledOptionList = <V, T extends OptionType<V>>({
30
30
  sections,
31
31
  renderItem,
32
32
  sectionListRef,
33
- }: StyledOptionListProps<V, T>) => {
33
+ }: BaseOptionListProps<V, T>) => {
34
34
  const theme = useTheme();
35
35
 
36
36
  const [onEndReachedCalled, setOnEndReachedCalled] = useState(false);
37
37
 
38
38
  return (
39
- <SectionList<T, SectionType>
39
+ <StyledSectionList<T, SectionType>
40
40
  ref={sectionListRef}
41
41
  style={{
42
42
  ...(onQueryChange ? { height: Dimensions.get('screen').height } : {}),
@@ -79,4 +79,4 @@ const StyledOptionList = <V, T extends OptionType<V>>({
79
79
  );
80
80
  };
81
81
 
82
- export default StyledOptionList;
82
+ export default BaseOptionList;