@hero-design/rn 8.68.0-alpha.1 → 8.68.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 (370) hide show
  1. package/.turbo/turbo-build.log +8 -0
  2. package/CHANGELOG.md +12 -0
  3. package/es/index.js +514 -155
  4. package/lib/index.js +514 -154
  5. package/package.json +1 -1
  6. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
  7. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  8. package/src/components/Alert/StyledAlert.tsx +24 -2
  9. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +150 -30
  10. package/src/components/Alert/index.tsx +15 -10
  11. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +18 -18
  12. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -2
  13. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -1
  14. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  15. package/src/components/Badge/StyledBadge.tsx +13 -5
  16. package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +129 -13
  18. package/src/components/Badge/index.tsx +8 -2
  19. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  20. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
  21. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  22. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +21 -21
  23. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +12 -12
  24. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
  25. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  26. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  27. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -4
  28. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +3 -3
  29. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +2 -2
  30. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +30 -30
  31. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  32. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
  33. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  34. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  35. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  36. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
  37. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  38. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  39. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
  41. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +6 -6
  42. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
  43. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  44. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  45. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
  46. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -10
  47. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +14 -14
  48. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  49. package/src/components/Search/SearchOneLine.tsx +196 -0
  50. package/src/components/Search/SearchSuffixIcon.tsx +37 -0
  51. package/src/components/Search/SearchTwoLine.tsx +64 -0
  52. package/src/components/Search/StyledSearch.tsx +67 -0
  53. package/src/components/Search/__tests__/SearchOneLine.spec.tsx +197 -0
  54. package/src/components/Search/__tests__/SearchSuffixIcon.spec.tsx +12 -0
  55. package/src/components/Search/__tests__/SearchTwoLine.spec.tsx +20 -0
  56. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +707 -0
  57. package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +134 -0
  58. package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +170 -0
  59. package/src/components/Search/__tests__/__snapshots__/utils.spec.tsx.snap +115 -0
  60. package/src/components/Search/__tests__/utils.spec.tsx +19 -0
  61. package/src/components/Search/index.tsx +17 -0
  62. package/src/components/Search/utils.tsx +31 -0
  63. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  64. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  65. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
  66. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +14 -14
  67. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
  68. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  69. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -8
  70. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  71. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  72. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  73. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -32
  74. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  75. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  76. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
  77. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  78. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +2 -2
  79. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +24 -9
  80. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +19 -9
  81. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +7 -2
  82. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +24 -9
  83. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +5 -5
  84. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
  85. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +18 -18
  86. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -7
  87. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +1 -1
  88. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  89. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +1 -1
  90. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  91. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +1 -1
  92. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  93. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  94. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +1 -1
  95. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  96. package/src/index.ts +2 -0
  97. package/src/theme/ThemeSwitcher.tsx +2 -12
  98. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +136 -77
  99. package/src/theme/components/alert.ts +14 -5
  100. package/src/theme/components/badge.ts +21 -21
  101. package/src/theme/components/search.ts +56 -0
  102. package/src/theme/getTheme.ts +5 -2
  103. package/src/theme/global/colors/swagLight.ts +1 -1
  104. package/stats/8.67.0/rn-stats.html +4844 -0
  105. package/stats/8.68.0/rn-stats.html +4842 -0
  106. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  107. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  108. package/types/components/Accordion/index.d.ts +0 -0
  109. package/types/components/Alert/StyledAlert.d.ts +17 -2
  110. package/types/components/Alert/index.d.ts +0 -0
  111. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  112. package/types/components/Attachment/index.d.ts +0 -0
  113. package/types/components/Avatar/Avatar.d.ts +0 -0
  114. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  115. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  116. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  117. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  118. package/types/components/Avatar/index.d.ts +0 -0
  119. package/types/components/Badge/Status.d.ts +0 -0
  120. package/types/components/Badge/StyledBadge.d.ts +4 -0
  121. package/types/components/Badge/index.d.ts +6 -2
  122. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  123. package/types/components/BottomNavigation/index.d.ts +0 -0
  124. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  125. package/types/components/BottomSheet/Footer.d.ts +0 -0
  126. package/types/components/BottomSheet/Header.d.ts +0 -0
  127. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  128. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  129. package/types/components/BottomSheet/index.d.ts +0 -0
  130. package/types/components/Box/StyledBox.d.ts +0 -0
  131. package/types/components/Box/config.d.ts +0 -0
  132. package/types/components/Box/index.d.ts +0 -0
  133. package/types/components/Box/types.d.ts +0 -0
  134. package/types/components/Button/Button.d.ts +0 -0
  135. package/types/components/Button/IconButton.d.ts +0 -0
  136. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  137. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  138. package/types/components/Button/StyledButton.d.ts +0 -0
  139. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  140. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  141. package/types/components/Button/index.d.ts +0 -0
  142. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  143. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  144. package/types/components/Calendar/helpers.d.ts +0 -0
  145. package/types/components/Calendar/index.d.ts +0 -0
  146. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  147. package/types/components/Card/DataCard/index.d.ts +0 -0
  148. package/types/components/Card/StyledCard.d.ts +0 -0
  149. package/types/components/Card/index.d.ts +0 -0
  150. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  151. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  152. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  153. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  154. package/types/components/Carousel/contants.d.ts +0 -0
  155. package/types/components/Carousel/index.d.ts +0 -0
  156. package/types/components/Carousel/types.d.ts +0 -0
  157. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  158. package/types/components/Checkbox/index.d.ts +0 -0
  159. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  160. package/types/components/Collapse/index.d.ts +0 -0
  161. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  162. package/types/components/ContentNavigator/index.d.ts +0 -0
  163. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  164. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
  165. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  166. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  167. package/types/components/DatePicker/index.d.ts +0 -0
  168. package/types/components/DatePicker/types.d.ts +0 -0
  169. package/types/components/Divider/StyledDivider.d.ts +0 -0
  170. package/types/components/Divider/index.d.ts +0 -0
  171. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  172. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  173. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  174. package/types/components/Drawer/index.d.ts +0 -0
  175. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  176. package/types/components/Empty/index.d.ts +0 -0
  177. package/types/components/Error/StyledError.d.ts +0 -0
  178. package/types/components/Error/index.d.ts +0 -0
  179. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  180. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  181. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  182. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  183. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  184. package/types/components/FAB/FAB.d.ts +0 -0
  185. package/types/components/FAB/StyledFAB.d.ts +0 -0
  186. package/types/components/FAB/index.d.ts +0 -0
  187. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  188. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  189. package/types/components/Icon/IconList.d.ts +0 -0
  190. package/types/components/Icon/index.d.ts +0 -0
  191. package/types/components/Icon/utils.d.ts +0 -0
  192. package/types/components/Image/index.d.ts +0 -0
  193. package/types/components/List/BasicListItem.d.ts +0 -0
  194. package/types/components/List/ListItem.d.ts +0 -0
  195. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  196. package/types/components/List/StyledListItem.d.ts +0 -0
  197. package/types/components/List/index.d.ts +0 -0
  198. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  199. package/types/components/PageControl/index.d.ts +0 -0
  200. package/types/components/PinInput/PinCell.d.ts +0 -0
  201. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  202. package/types/components/PinInput/index.d.ts +0 -0
  203. package/types/components/Progress/ProgressBar.d.ts +0 -0
  204. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  205. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  206. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  207. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  208. package/types/components/Progress/constants.d.ts +0 -0
  209. package/types/components/Progress/index.d.ts +0 -0
  210. package/types/components/Progress/types.d.ts +0 -0
  211. package/types/components/Radio/Radio.d.ts +0 -0
  212. package/types/components/Radio/RadioGroup.d.ts +0 -0
  213. package/types/components/Radio/StyledRadio.d.ts +0 -0
  214. package/types/components/Radio/index.d.ts +0 -0
  215. package/types/components/Radio/types.d.ts +0 -0
  216. package/types/components/RefreshControl/index.d.ts +0 -0
  217. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  218. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  219. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  220. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  221. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  222. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  223. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  224. package/types/components/RichTextEditor/constants.d.ts +0 -0
  225. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  226. package/types/components/RichTextEditor/index.d.ts +0 -0
  227. package/types/components/RichTextEditor/types.d.ts +0 -0
  228. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  229. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  230. package/types/components/Search/SearchOneLine.d.ts +60 -0
  231. package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
  232. package/types/components/Search/SearchTwoLine.d.ts +31 -0
  233. package/types/components/Search/StyledSearch.d.ts +44 -0
  234. package/types/components/Search/index.d.ts +10 -0
  235. package/types/components/Search/utils.d.ts +8 -0
  236. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  237. package/types/components/SectionHeading/index.d.ts +0 -0
  238. package/types/components/Select/BaseOptionList.d.ts +0 -0
  239. package/types/components/Select/Footer.d.ts +0 -0
  240. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  241. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  242. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  243. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  244. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  245. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  246. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  247. package/types/components/Select/StyledSelect.d.ts +0 -0
  248. package/types/components/Select/helpers.d.ts +0 -0
  249. package/types/components/Select/index.d.ts +0 -0
  250. package/types/components/Select/types.d.ts +0 -0
  251. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  252. package/types/components/Skeleton/index.d.ts +0 -0
  253. package/types/components/Slider/index.d.ts +0 -0
  254. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  255. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  256. package/types/components/Spinner/index.d.ts +0 -0
  257. package/types/components/Success/StyledSuccess.d.ts +0 -0
  258. package/types/components/Success/index.d.ts +0 -0
  259. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  260. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  261. package/types/components/Swipeable/index.d.ts +0 -0
  262. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  263. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  264. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  265. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  266. package/types/components/Switch/index.d.ts +0 -0
  267. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  268. package/types/components/Tabs/SceneView.d.ts +0 -0
  269. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  270. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  271. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  272. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  273. package/types/components/Tabs/index.d.ts +0 -0
  274. package/types/components/Tabs/useIsFocused.d.ts +0 -0
  275. package/types/components/Tabs/utils.d.ts +0 -0
  276. package/types/components/Tag/StyledTag.d.ts +0 -0
  277. package/types/components/Tag/index.d.ts +0 -0
  278. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  279. package/types/components/TextInput/index.d.ts +0 -0
  280. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  281. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  282. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  283. package/types/components/TimePicker/index.d.ts +0 -0
  284. package/types/components/TimePicker/types.d.ts +0 -0
  285. package/types/components/Toast/StyledToast.d.ts +0 -0
  286. package/types/components/Toast/Toast.d.ts +0 -0
  287. package/types/components/Toast/ToastContainer.d.ts +0 -0
  288. package/types/components/Toast/ToastContext.d.ts +0 -0
  289. package/types/components/Toast/ToastProvider.d.ts +0 -0
  290. package/types/components/Toast/index.d.ts +0 -0
  291. package/types/components/Toast/types.d.ts +0 -0
  292. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  293. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  294. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  295. package/types/components/Toolbar/index.d.ts +0 -0
  296. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  297. package/types/components/Typography/Text/index.d.ts +0 -0
  298. package/types/components/Typography/index.d.ts +0 -0
  299. package/types/index.d.ts +2 -1
  300. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  301. package/types/theme/ThemeProvider.d.ts +0 -0
  302. package/types/theme/ThemeSwitcher.d.ts +1 -1
  303. package/types/theme/components/accordion.d.ts +0 -0
  304. package/types/theme/components/alert.d.ts +14 -5
  305. package/types/theme/components/attachment.d.ts +0 -0
  306. package/types/theme/components/avatar.d.ts +0 -0
  307. package/types/theme/components/badge.d.ts +21 -21
  308. package/types/theme/components/bottomNavigation.d.ts +0 -0
  309. package/types/theme/components/bottomSheet.d.ts +0 -0
  310. package/types/theme/components/button.d.ts +0 -0
  311. package/types/theme/components/calendar.d.ts +0 -0
  312. package/types/theme/components/card.d.ts +0 -0
  313. package/types/theme/components/cardCarousel.d.ts +0 -0
  314. package/types/theme/components/carousel.d.ts +0 -0
  315. package/types/theme/components/checkbox.d.ts +0 -0
  316. package/types/theme/components/contentNavigator.d.ts +0 -0
  317. package/types/theme/components/datePicker.d.ts +0 -0
  318. package/types/theme/components/divider.d.ts +0 -0
  319. package/types/theme/components/drawer.d.ts +0 -0
  320. package/types/theme/components/empty.d.ts +0 -0
  321. package/types/theme/components/error.d.ts +0 -0
  322. package/types/theme/components/fab.d.ts +0 -0
  323. package/types/theme/components/icon.d.ts +0 -0
  324. package/types/theme/components/image.d.ts +0 -0
  325. package/types/theme/components/list.d.ts +0 -0
  326. package/types/theme/components/pageControl.d.ts +0 -0
  327. package/types/theme/components/pinInput.d.ts +0 -0
  328. package/types/theme/components/progress.d.ts +0 -0
  329. package/types/theme/components/radio.d.ts +0 -0
  330. package/types/theme/components/refreshControl.d.ts +0 -0
  331. package/types/theme/components/richTextEditor.d.ts +0 -0
  332. package/types/theme/components/search.d.ts +38 -0
  333. package/types/theme/components/sectionHeading.d.ts +0 -0
  334. package/types/theme/components/select.d.ts +0 -0
  335. package/types/theme/components/skeleton.d.ts +0 -0
  336. package/types/theme/components/slider.d.ts +0 -0
  337. package/types/theme/components/spinner.d.ts +0 -0
  338. package/types/theme/components/success.d.ts +0 -0
  339. package/types/theme/components/swipeable.d.ts +0 -0
  340. package/types/theme/components/switch.d.ts +0 -0
  341. package/types/theme/components/tabs.d.ts +0 -0
  342. package/types/theme/components/tag.d.ts +0 -0
  343. package/types/theme/components/textInput.d.ts +0 -0
  344. package/types/theme/components/timePicker.d.ts +0 -0
  345. package/types/theme/components/toast.d.ts +0 -0
  346. package/types/theme/components/toolbar.d.ts +0 -0
  347. package/types/theme/components/typography.d.ts +0 -0
  348. package/types/theme/getTheme.d.ts +2 -0
  349. package/types/theme/global/borders.d.ts +0 -0
  350. package/types/theme/global/colors/eBens.d.ts +0 -0
  351. package/types/theme/global/colors/global.d.ts +0 -0
  352. package/types/theme/global/colors/globalDark.d.ts +0 -0
  353. package/types/theme/global/colors/jobs.d.ts +0 -0
  354. package/types/theme/global/colors/swag.d.ts +0 -0
  355. package/types/theme/global/colors/swagDark.d.ts +0 -0
  356. package/types/theme/global/colors/types.d.ts +0 -0
  357. package/types/theme/global/colors/wallet.d.ts +0 -0
  358. package/types/theme/global/colors/work.d.ts +0 -0
  359. package/types/theme/global/index.d.ts +0 -0
  360. package/types/theme/global/scale.d.ts +0 -0
  361. package/types/theme/global/sizes.d.ts +0 -0
  362. package/types/theme/global/space.d.ts +0 -0
  363. package/types/theme/global/typography.d.ts +0 -0
  364. package/types/theme/index.d.ts +0 -0
  365. package/types/types.d.ts +0 -0
  366. package/types/utils/functions.d.ts +0 -0
  367. package/types/utils/helpers.d.ts +0 -0
  368. package/types/utils/hooks.d.ts +0 -0
  369. package/types/utils/scale.d.ts +0 -0
  370. package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -35
package/es/index.js CHANGED
@@ -1916,7 +1916,7 @@ var swagBrandSystemPallete = {
1916
1916
  highlightedSurface: '#F1E9FB',
1917
1917
  pressedSurface: '#380060',
1918
1918
  decorativePrimary: '#FDFBFF',
1919
- decorativePrimarySurface: '#DDC8F5'
1919
+ decorativePrimarySurface: '#B382FD'
1920
1920
  };
1921
1921
  var swagSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette$1), swagBrandSystemPallete);
1922
1922
 
@@ -2156,11 +2156,20 @@ var getAccordionTheme = function getAccordionTheme(theme) {
2156
2156
 
2157
2157
  var getAlertTheme = function getAlertTheme(theme) {
2158
2158
  var colors = {
2159
- success: theme.colors.success,
2160
- warning: theme.colors.warning,
2161
- error: theme.colors.error,
2162
- info: theme.colors.info,
2163
- notification: theme.colors.defaultGlobalSurface,
2159
+ backgrounds: {
2160
+ success: theme.colors.successSurface,
2161
+ warning: theme.colors.warningSurface,
2162
+ error: theme.colors.errorSurface,
2163
+ info: theme.colors.infoSurface,
2164
+ notification: theme.colors.defaultGlobalSurface
2165
+ },
2166
+ texts: {
2167
+ success: theme.colors.onSuccessSurface,
2168
+ warning: theme.colors.onWarningSurface,
2169
+ error: theme.colors.onErrorSurface,
2170
+ info: theme.colors.onInfoSurface,
2171
+ notification: theme.colors.onDefaultGlobalSurface
2172
+ },
2164
2173
  divider: theme.colors.secondaryOutline
2165
2174
  };
2166
2175
  var sizes = {
@@ -2281,22 +2290,36 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2281
2290
  text: theme.colors.onDarkGlobalSurface
2282
2291
  };
2283
2292
  var fonts = {
2284
- "default": theme.fonts.neutral.semiBold
2293
+ medium: theme.fonts.neutral.regular,
2294
+ small: theme.fonts.neutral.semiBold
2285
2295
  };
2286
2296
  var fontSizes = {
2287
- "default": theme.fontSizes.small
2297
+ medium: theme.fontSizes.small,
2298
+ small: 8
2288
2299
  };
2289
2300
  var lineHeights = {
2290
- "default": theme.lineHeights.small
2301
+ medium: theme.lineHeights.small,
2302
+ small: 10
2291
2303
  };
2292
2304
  var sizes = {
2293
- height: theme.fontSizes.small + theme.sizes.small,
2294
- minWidth: theme.fontSizes.small + theme.sizes.small,
2305
+ medium: {
2306
+ height: theme.sizes.large,
2307
+ minWidth: theme.sizes.large
2308
+ },
2309
+ small: {
2310
+ height: theme.sizes.medium,
2311
+ minWidth: theme.sizes.medium
2312
+ },
2295
2313
  statusHeight: theme.sizes.small,
2296
2314
  statusWidth: theme.sizes.small
2297
2315
  };
2298
2316
  var space = {
2299
- horizontalPadding: theme.space.small,
2317
+ medium: {
2318
+ horizontalPadding: theme.space.small
2319
+ },
2320
+ small: {
2321
+ horizontalPadding: theme.space.xsmall
2322
+ },
2300
2323
  statusPositionTop: -theme.space.xxsmall,
2301
2324
  statusPositionRight: -theme.space.xxsmall
2302
2325
  };
@@ -3763,9 +3786,55 @@ var getTypographyTheme = function getTypographyTheme(theme) {
3763
3786
  };
3764
3787
  };
3765
3788
 
3789
+ var getSearchTheme = function getSearchTheme(theme) {
3790
+ var colors = {
3791
+ containerBackground: theme.colors.neutralGlobalSurface,
3792
+ surfixBackground: theme.colors.defaultGlobalSurface,
3793
+ text: theme.colors.onDefaultGlobalSurface,
3794
+ borders: theme.colors.primaryOutline
3795
+ };
3796
+ var space = {
3797
+ containerHorizontalPadding: theme.space.small,
3798
+ containerVerticalPadding: theme.space.small,
3799
+ inputHorizontalMargin: theme.space.small,
3800
+ prefixHorizontalPadding: theme.space.xsmall,
3801
+ surfixPadding: theme.space.small,
3802
+ badgeTop: -theme.space.xxsmall,
3803
+ badgeRight: -theme.space.xxsmall
3804
+ };
3805
+ var fonts = {
3806
+ text: theme.fonts.neutral.regular
3807
+ };
3808
+ var fontSizes = {
3809
+ text: theme.fontSizes.large
3810
+ };
3811
+ var borderWidths = {
3812
+ container: {
3813
+ normal: theme.borderWidths.base,
3814
+ focused: theme.borderWidths.medium
3815
+ }
3816
+ };
3817
+ var radii = {
3818
+ container: theme.radii.rounded,
3819
+ surfix: theme.radii.rounded
3820
+ };
3821
+ var sizes = {
3822
+ surfixSize: theme.sizes.xxlarge
3823
+ };
3824
+ return {
3825
+ colors: colors,
3826
+ space: space,
3827
+ fonts: fonts,
3828
+ fontSizes: fontSizes,
3829
+ borderWidths: borderWidths,
3830
+ radii: radii,
3831
+ sizes: sizes
3832
+ };
3833
+ };
3834
+
3766
3835
  var getTheme$1 = function getTheme() {
3767
3836
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
3768
- var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette;
3837
+ var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
3769
3838
  var globalTheme = getGlobalTheme(scale, systemPallete);
3770
3839
  return _objectSpread2(_objectSpread2({}, globalTheme), {}, {
3771
3840
  __hd__: {
@@ -3800,6 +3869,7 @@ var getTheme$1 = function getTheme() {
3800
3869
  rate: getRateTheme(globalTheme),
3801
3870
  refreshControl: getRefreshControlTheme(globalTheme),
3802
3871
  richTextEditor: getRichTextEditorTheme(globalTheme),
3872
+ search: getSearchTheme(globalTheme),
3803
3873
  sectionHeading: getSectionHeadingTheme(globalTheme),
3804
3874
  select: getSelectTheme(globalTheme),
3805
3875
  skeleton: getSkeletonTheme(globalTheme),
@@ -4984,7 +5054,7 @@ var useTheme = useTheme$1;
4984
5054
 
4985
5055
  var ThemeSwitcher = function ThemeSwitcher(_ref) {
4986
5056
  var _ref$name = _ref.name,
4987
- name = _ref$name === void 0 ? 'swagLight' : _ref$name,
5057
+ name = _ref$name === void 0 ? 'swag' : _ref$name,
4988
5058
  children = _ref.children;
4989
5059
  var theme = useMemo(function () {
4990
5060
  switch (name) {
@@ -5000,8 +5070,6 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
5000
5070
  return getTheme$1(scale$1, eBensSystemPalette);
5001
5071
  case 'swagDark':
5002
5072
  return getTheme$1(scale$1, swagDarkSystemPalette);
5003
- case 'swagLight':
5004
- return getTheme$1(scale$1, swagSystemPalette);
5005
5073
  }
5006
5074
  }, [name]);
5007
5075
  return /*#__PURE__*/React__default.createElement(ThemeProvider, {
@@ -6893,7 +6961,7 @@ var StyledText$3 = index$9(Text$1)(function (_ref) {
6893
6961
  });
6894
6962
  });
6895
6963
 
6896
- var _excluded$D = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6964
+ var _excluded$E = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6897
6965
  var Text = function Text(_ref) {
6898
6966
  var children = _ref.children,
6899
6967
  _ref$fontSize = _ref.fontSize,
@@ -6906,7 +6974,7 @@ var Text = function Text(_ref) {
6906
6974
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6907
6975
  _ref$allowFontScaling = _ref.allowFontScaling,
6908
6976
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6909
- nativeProps = _objectWithoutProperties(_ref, _excluded$D);
6977
+ nativeProps = _objectWithoutProperties(_ref, _excluded$E);
6910
6978
  useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
6911
6979
  return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
6912
6980
  themeFontSize: fontSize,
@@ -6936,7 +7004,7 @@ var StyledCaption = index$9(Text$1)(function (_ref) {
6936
7004
  };
6937
7005
  });
6938
7006
 
6939
- var _excluded$C = ["children", "fontWeight", "intent", "allowFontScaling"];
7007
+ var _excluded$D = ["children", "fontWeight", "intent", "allowFontScaling"];
6940
7008
  var Caption = function Caption(_ref) {
6941
7009
  var children = _ref.children,
6942
7010
  _ref$fontWeight = _ref.fontWeight,
@@ -6945,7 +7013,7 @@ var Caption = function Caption(_ref) {
6945
7013
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6946
7014
  _ref$allowFontScaling = _ref.allowFontScaling,
6947
7015
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6948
- nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7016
+ nativeProps = _objectWithoutProperties(_ref, _excluded$D);
6949
7017
  return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
6950
7018
  themeFontWeight: fontWeight,
6951
7019
  themeIntent: intent,
@@ -6964,14 +7032,14 @@ var StyledLabel$1 = index$9(Text$1)(function (_ref) {
6964
7032
  };
6965
7033
  });
6966
7034
 
6967
- var _excluded$B = ["children", "intent", "allowFontScaling"];
7035
+ var _excluded$C = ["children", "intent", "allowFontScaling"];
6968
7036
  var Label = function Label(_ref) {
6969
7037
  var children = _ref.children,
6970
7038
  _ref$intent = _ref.intent,
6971
7039
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6972
7040
  _ref$allowFontScaling = _ref.allowFontScaling,
6973
7041
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6974
- nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7042
+ nativeProps = _objectWithoutProperties(_ref, _excluded$C);
6975
7043
  return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
6976
7044
  themeIntent: intent,
6977
7045
  allowFontScaling: allowFontScaling
@@ -6992,7 +7060,7 @@ var StyledTitle$1 = index$9(Text$1)(function (_ref) {
6992
7060
  };
6993
7061
  });
6994
7062
 
6995
- var _excluded$A = ["children", "intent", "allowFontScaling", "level", "typeface"];
7063
+ var _excluded$B = ["children", "intent", "allowFontScaling", "level", "typeface"];
6996
7064
  var Title = function Title(_ref) {
6997
7065
  var children = _ref.children,
6998
7066
  _ref$intent = _ref.intent,
@@ -7003,7 +7071,7 @@ var Title = function Title(_ref) {
7003
7071
  level = _ref$level === void 0 ? 'h1' : _ref$level,
7004
7072
  _ref$typeface = _ref.typeface,
7005
7073
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7006
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
7074
+ nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7007
7075
  return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
7008
7076
  themeLevel: level,
7009
7077
  themeTypeface: typeface,
@@ -7024,7 +7092,7 @@ var FONTSIZE_MAP = {
7024
7092
  'regular-bold': 'regular',
7025
7093
  'small-bold': 'small'
7026
7094
  };
7027
- var StyledBody = index$9(Text$1)(function (_ref) {
7095
+ var StyledBody$1 = index$9(Text$1)(function (_ref) {
7028
7096
  var themeIntent = _ref.themeIntent,
7029
7097
  theme = _ref.theme,
7030
7098
  themeTypeface = _ref.themeTypeface,
@@ -7038,7 +7106,7 @@ var StyledBody = index$9(Text$1)(function (_ref) {
7038
7106
  };
7039
7107
  });
7040
7108
 
7041
- var _excluded$z = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7109
+ var _excluded$A = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7042
7110
  var Body = function Body(_ref) {
7043
7111
  var children = _ref.children,
7044
7112
  _ref$intent = _ref.intent,
@@ -7049,8 +7117,8 @@ var Body = function Body(_ref) {
7049
7117
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7050
7118
  _ref$variant = _ref.variant,
7051
7119
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
7052
- nativeProps = _objectWithoutProperties(_ref, _excluded$z);
7053
- return /*#__PURE__*/React__default.createElement(StyledBody, _extends$1({}, nativeProps, {
7120
+ nativeProps = _objectWithoutProperties(_ref, _excluded$A);
7121
+ return /*#__PURE__*/React__default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
7054
7122
  themeTypeface: typeface,
7055
7123
  themeIntent: intent,
7056
7124
  themeVariant: variant,
@@ -7616,10 +7684,10 @@ var StyledHeroIcon = index$9(HeroIcon)(function (_ref) {
7616
7684
  };
7617
7685
  });
7618
7686
 
7619
- var _excluded$y = ["style"];
7687
+ var _excluded$z = ["style"];
7620
7688
  var AnimatedIcon = function AnimatedIcon(_ref) {
7621
7689
  var style = _ref.style,
7622
- otherProps = _objectWithoutProperties(_ref, _excluded$y);
7690
+ otherProps = _objectWithoutProperties(_ref, _excluded$z);
7623
7691
  var rotateAnimation = useRef(new Animated.Value(0));
7624
7692
  useEffect(function () {
7625
7693
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -7724,7 +7792,7 @@ var AccordionItem = function AccordionItem(_ref) {
7724
7792
  }, content));
7725
7793
  };
7726
7794
 
7727
- var _excluded$x = ["key"];
7795
+ var _excluded$y = ["key"];
7728
7796
  var Accordion = function Accordion(_ref) {
7729
7797
  var items = _ref.items,
7730
7798
  activeItemKey = _ref.activeItemKey,
@@ -7745,7 +7813,7 @@ var Accordion = function Accordion(_ref) {
7745
7813
  testID: testID
7746
7814
  }, items.map(function (_ref2, index) {
7747
7815
  var key = _ref2.key,
7748
- props = _objectWithoutProperties(_ref2, _excluded$x);
7816
+ props = _objectWithoutProperties(_ref2, _excluded$y);
7749
7817
  var open = _activeItemKey === key;
7750
7818
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
7751
7819
  key: key
@@ -7768,7 +7836,7 @@ var Container$1 = index$9(View)(function (_ref) {
7768
7836
  themeIntent = _ref.themeIntent;
7769
7837
  return {
7770
7838
  borderRadius: themeVariant === 'rounded' ? theme.__hd__.alert.radii["default"] : 0,
7771
- backgroundColor: theme.__hd__.alert.colors[themeIntent],
7839
+ backgroundColor: theme.__hd__.alert.colors.backgrounds[themeIntent],
7772
7840
  minHeight: theme.__hd__.alert.sizes.height,
7773
7841
  flexDirection: 'row'
7774
7842
  };
@@ -7780,16 +7848,30 @@ var IconContainer$1 = index$9(View)(function (_ref2) {
7780
7848
  paddingLeft: theme.__hd__.alert.space.iconLeftPadding
7781
7849
  };
7782
7850
  });
7783
- var TextContainer$1 = index$9(View)(function (_ref3) {
7784
- var theme = _ref3.theme;
7851
+ var StyledIcon$2 = index$9(Icon)(function (_ref3) {
7852
+ var theme = _ref3.theme,
7853
+ themeIntent = _ref3.themeIntent;
7854
+ return {
7855
+ color: theme.__hd__.alert.colors.texts[themeIntent]
7856
+ };
7857
+ });
7858
+ var TextContainer$1 = index$9(View)(function (_ref4) {
7859
+ var theme = _ref4.theme;
7785
7860
  return {
7786
7861
  paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
7787
7862
  flex: 1
7788
7863
  };
7789
7864
  });
7790
- var ContentContainer$1 = index$9(View)(function (_ref4) {
7791
- var theme = _ref4.theme,
7792
- showDivider = _ref4.showDivider;
7865
+ var StyledBody = index$9(Typography.Body)(function (_ref5) {
7866
+ var theme = _ref5.theme,
7867
+ themeIntent = _ref5.themeIntent;
7868
+ return {
7869
+ color: theme.__hd__.alert.colors.texts[themeIntent]
7870
+ };
7871
+ });
7872
+ var ContentContainer$1 = index$9(View)(function (_ref6) {
7873
+ var theme = _ref6.theme,
7874
+ showDivider = _ref6.showDivider;
7793
7875
  return {
7794
7876
  paddingVertical: theme.__hd__.alert.space.contentPaddingHorizontal,
7795
7877
  flex: 1,
@@ -7798,8 +7880,8 @@ var ContentContainer$1 = index$9(View)(function (_ref4) {
7798
7880
  flexDirection: 'row'
7799
7881
  };
7800
7882
  });
7801
- var CTAWrapper$1 = index$9(TouchableOpacity)(function (_ref5) {
7802
- var theme = _ref5.theme;
7883
+ var CTAWrapper$1 = index$9(TouchableOpacity)(function (_ref7) {
7884
+ var theme = _ref7.theme;
7803
7885
  return {
7804
7886
  paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
7805
7887
  justifyContent: 'center'
@@ -7821,12 +7903,14 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
7821
7903
  }
7822
7904
  };
7823
7905
  var AlertIcon = function AlertIcon(_ref) {
7824
- var icon = _ref.icon;
7906
+ var icon = _ref.icon,
7907
+ intent = _ref.intent;
7825
7908
  return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
7826
7909
  testID: "alert-left-icon"
7827
- }, /*#__PURE__*/React__default.createElement(Icon, {
7910
+ }, /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7828
7911
  icon: icon,
7829
- size: "small"
7912
+ size: "small",
7913
+ themeIntent: intent
7830
7914
  })) : null;
7831
7915
  };
7832
7916
  var Alert = function Alert(_ref2) {
@@ -7850,23 +7934,28 @@ var Alert = function Alert(_ref2) {
7850
7934
  }, /*#__PURE__*/React__default.createElement(ContentContainer$1, {
7851
7935
  showDivider: !!onClose
7852
7936
  }, icon !== null ? /*#__PURE__*/React__default.createElement(AlertIcon, {
7853
- icon: icon || getIntentIcon$1(intent)
7854
- }) : null, /*#__PURE__*/React__default.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
7855
- variant: "small-bold"
7856
- }, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
7857
- variant: "small"
7937
+ icon: icon || getIntentIcon$1(intent),
7938
+ intent: intent
7939
+ }) : null, /*#__PURE__*/React__default.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7940
+ variant: "small-bold",
7941
+ themeIntent: intent
7942
+ }, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7943
+ variant: "small",
7944
+ themeIntent: intent
7858
7945
  }, content) : content)), onClose ? /*#__PURE__*/React__default.createElement(CTAWrapper$1, {
7859
7946
  onPress: onClose,
7860
7947
  testID: "alert-close-icon"
7861
- }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
7862
- variant: "small-bold"
7863
- }, actionLabel) : /*#__PURE__*/React__default.createElement(Icon, {
7948
+ }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7949
+ variant: "small-bold",
7950
+ themeIntent: intent
7951
+ }, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7864
7952
  icon: "cancel",
7865
- size: "small"
7953
+ size: "small",
7954
+ themeIntent: intent
7866
7955
  })) : null);
7867
7956
  };
7868
7957
 
7869
- var StyledContainer$6 = index$9(View)({
7958
+ var StyledContainer$7 = index$9(View)({
7870
7959
  alignItems: 'center',
7871
7960
  flexDirection: 'row'
7872
7961
  });
@@ -7908,7 +7997,7 @@ var Attachment = function Attachment(_ref) {
7908
7997
  backgroundHighlighted = _ref$backgroundHighli === void 0 ? false : _ref$backgroundHighli,
7909
7998
  style = _ref.style,
7910
7999
  testID = _ref.testID;
7911
- return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
8000
+ return /*#__PURE__*/React__default.createElement(StyledContainer$7, {
7912
8001
  testID: testID,
7913
8002
  style: style
7914
8003
  }, /*#__PURE__*/React__default.createElement(StyledContentContainer$1, {
@@ -8218,7 +8307,7 @@ var borderWidths = {
8218
8307
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8219
8308
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8220
8309
 
8221
- var _excluded$w = ["theme"];
8310
+ var _excluded$x = ["theme"];
8222
8311
  var getThemeValue = function getThemeValue(theme, key, props) {
8223
8312
  var propConfig = config[key];
8224
8313
  var propValue = props[key];
@@ -8245,18 +8334,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8245
8334
  var configKeys = Object.keys(config);
8246
8335
  var StyledBox = index$9(View)(function (_ref5) {
8247
8336
  var theme = _ref5.theme,
8248
- otherProps = _objectWithoutProperties(_ref5, _excluded$w);
8337
+ otherProps = _objectWithoutProperties(_ref5, _excluded$x);
8249
8338
  var styleProps = pick(configKeys, otherProps);
8250
8339
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8251
8340
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8252
8341
  });
8253
8342
 
8254
- var _excluded$v = ["children", "style", "testID"];
8343
+ var _excluded$w = ["children", "style", "testID"];
8255
8344
  var Box = function Box(_ref) {
8256
8345
  var children = _ref.children,
8257
8346
  style = _ref.style,
8258
8347
  testID = _ref.testID,
8259
- otherProps = _objectWithoutProperties(_ref, _excluded$v);
8348
+ otherProps = _objectWithoutProperties(_ref, _excluded$w);
8260
8349
  return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
8261
8350
  style: style,
8262
8351
  testID: testID
@@ -8436,20 +8525,25 @@ var index$8 = Object.assign(Avatar, {
8436
8525
  var StyledView$2 = index$9(Animated.View)(function (_ref) {
8437
8526
  var themeIntent = _ref.themeIntent,
8438
8527
  themePadding = _ref.themePadding,
8528
+ themeSize = _ref.themeSize,
8439
8529
  theme = _ref.theme;
8440
8530
  return {
8441
- height: theme.__hd__.badge.sizes.height,
8442
- minWidth: theme.__hd__.badge.sizes.minWidth,
8531
+ height: theme.__hd__.badge.sizes[themeSize].height,
8532
+ minWidth: theme.__hd__.badge.sizes[themeSize].minWidth,
8443
8533
  alignItems: 'center',
8444
8534
  justifyContent: 'center',
8445
8535
  backgroundColor: theme.__hd__.badge.colors[themeIntent],
8446
8536
  borderRadius: theme.radii.rounded,
8447
- paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
8537
+ paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space[themeSize].horizontalPadding : undefined
8448
8538
  };
8449
8539
  });
8450
8540
  var StyledText$1 = index$9(Typography.Caption)(function (_ref2) {
8451
- var theme = _ref2.theme;
8541
+ var theme = _ref2.theme,
8542
+ themeSize = _ref2.themeSize;
8452
8543
  return {
8544
+ fontSize: theme.__hd__.badge.fontSizes[themeSize],
8545
+ lineHeight: theme.__hd__.badge.lineHeights[themeSize],
8546
+ fontFamily: theme.__hd__.badge.fonts[themeSize],
8453
8547
  color: theme.__hd__.badge.colors.text,
8454
8548
  includeFontPadding: false,
8455
8549
  textAlignVertical: 'center',
@@ -8470,7 +8564,7 @@ var StyledStatus = index$9(Animated.View)(function (_ref3) {
8470
8564
  };
8471
8565
  });
8472
8566
 
8473
- var _excluded$u = ["children", "visible", "intent", "style", "testID"];
8567
+ var _excluded$v = ["children", "visible", "intent", "style", "testID"];
8474
8568
  var Status = function Status(_ref) {
8475
8569
  var children = _ref.children,
8476
8570
  _ref$visible = _ref.visible,
@@ -8479,7 +8573,7 @@ var Status = function Status(_ref) {
8479
8573
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8480
8574
  style = _ref.style,
8481
8575
  testID = _ref.testID,
8482
- nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8576
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8483
8577
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8484
8578
  opacity = _React$useRef.current;
8485
8579
  var isFirstRendering = React__default.useRef(true);
@@ -8512,7 +8606,7 @@ var Status = function Status(_ref) {
8512
8606
  }));
8513
8607
  };
8514
8608
 
8515
- var _excluded$t = ["content", "visible", "max", "intent", "style", "testID"];
8609
+ var _excluded$u = ["content", "visible", "max", "intent", "style", "testID", "size"];
8516
8610
  var DEFAULT_MAX_NUMBER = 99;
8517
8611
  var getPaddingState = function getPaddingState(content) {
8518
8612
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8527,7 +8621,9 @@ var Badge = function Badge(_ref) {
8527
8621
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8528
8622
  style = _ref.style,
8529
8623
  testID = _ref.testID,
8530
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8624
+ _ref$size = _ref.size,
8625
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
8626
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8531
8627
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8532
8628
  opacity = _React$useRef.current;
8533
8629
  var isFirstRendering = React__default.useRef(true);
@@ -8547,6 +8643,7 @@ var Badge = function Badge(_ref) {
8547
8643
  return /*#__PURE__*/React__default.createElement(StyledView$2, _extends$1({}, nativeProps, {
8548
8644
  themeIntent: intent,
8549
8645
  themePadding: getPaddingState(content),
8646
+ themeSize: size,
8550
8647
  style: [{
8551
8648
  opacity: opacity,
8552
8649
  transform: [{
@@ -8557,7 +8654,9 @@ var Badge = function Badge(_ref) {
8557
8654
  }]
8558
8655
  }, style],
8559
8656
  testID: testID
8560
- }), /*#__PURE__*/React__default.createElement(StyledText$1, null, content));
8657
+ }), /*#__PURE__*/React__default.createElement(StyledText$1, {
8658
+ themeSize: size
8659
+ }, content));
8561
8660
  };
8562
8661
  var Badge$1 = Object.assign(Badge, {
8563
8662
  Status: Status
@@ -8614,7 +8713,7 @@ var StyledBottomBarText = index$9(Typography.Caption)(function (_ref3) {
8614
8713
  };
8615
8714
  });
8616
8715
 
8617
- var _excluded$s = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8716
+ var _excluded$t = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8618
8717
  var getInactiveIcon = function getInactiveIcon(icon) {
8619
8718
  var inactiveIcon = "".concat(icon, "-outlined");
8620
8719
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -8625,7 +8724,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
8625
8724
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8626
8725
  selectedTabKey = _ref.selectedTabKey,
8627
8726
  tabs = _ref.tabs,
8628
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
8727
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8629
8728
  var insets = useSafeAreaInsets();
8630
8729
  /**
8631
8730
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -8711,13 +8810,13 @@ var StyledDivider = index$9(View)(function (_ref) {
8711
8810
  }, horizontalMargin), verticalMargin);
8712
8811
  });
8713
8812
 
8714
- var _excluded$r = ["marginHorizontal", "marginVertical", "style", "testID"];
8813
+ var _excluded$s = ["marginHorizontal", "marginVertical", "style", "testID"];
8715
8814
  var Divider = function Divider(_ref) {
8716
8815
  var marginHorizontal = _ref.marginHorizontal,
8717
8816
  marginVertical = _ref.marginVertical,
8718
8817
  style = _ref.style,
8719
8818
  testID = _ref.testID,
8720
- nativeProps = _objectWithoutProperties(_ref, _excluded$r);
8819
+ nativeProps = _objectWithoutProperties(_ref, _excluded$s);
8721
8820
  return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
8722
8821
  themeMarginHorizontal: marginHorizontal,
8723
8822
  themeMarginVertical: marginVertical,
@@ -8841,7 +8940,7 @@ var StyledLoadingDot = index$9(View)(function (_ref) {
8841
8940
  }, themeStyling());
8842
8941
  });
8843
8942
 
8844
- var _excluded$q = ["count", "size", "testID", "themeVariant"];
8943
+ var _excluded$r = ["count", "size", "testID", "themeVariant"];
8845
8944
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
8846
8945
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
8847
8946
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -8873,7 +8972,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
8873
8972
  size = _ref2$size === void 0 ? 12 : _ref2$size,
8874
8973
  testID = _ref2.testID,
8875
8974
  themeVariant = _ref2.themeVariant,
8876
- nativeProps = _objectWithoutProperties(_ref2, _excluded$q);
8975
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$r);
8877
8976
  var progressAnimation = useRef(new Animated.Value(0));
8878
8977
  useEffect(function () {
8879
8978
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -9308,11 +9407,11 @@ var Header = function Header(_ref) {
9308
9407
  })) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
9309
9408
  };
9310
9409
 
9311
- var _excluded$p = ["scrollEventThrottle"];
9410
+ var _excluded$q = ["scrollEventThrottle"];
9312
9411
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9313
9412
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
9314
9413
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
9315
- props = _objectWithoutProperties(_ref, _excluded$p);
9414
+ props = _objectWithoutProperties(_ref, _excluded$q);
9316
9415
  var _useContext = useContext(BottomSheetContext),
9317
9416
  setInternalShowDivider = _useContext.setInternalShowDivider;
9318
9417
  var onScrollBeginDrag = useCallback(function (e) {
@@ -11770,7 +11869,7 @@ function ContentNavigator(_ref) {
11770
11869
  }));
11771
11870
  }
11772
11871
 
11773
- var StyledContainer$5 = index$9(View)(function (_ref) {
11872
+ var StyledContainer$6 = index$9(View)(function (_ref) {
11774
11873
  var theme = _ref.theme;
11775
11874
  return {
11776
11875
  backgroundColor: theme.__hd__.calendar.colors.background
@@ -11984,7 +12083,7 @@ var Calendar = function Calendar(_ref) {
11984
12083
  var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
11985
12084
  return date !== undefined;
11986
12085
  }) || maxDate <= lastDateOfMonth;
11987
- return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
12086
+ return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
11988
12087
  testID: testID
11989
12088
  }, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
11990
12089
  value: !useMonthPicker ? format('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
@@ -12124,12 +12223,12 @@ var Indicator = index$9(View)(function (_ref2) {
12124
12223
  };
12125
12224
  });
12126
12225
 
12127
- var _excluded$o = ["intent", "children"];
12226
+ var _excluded$p = ["intent", "children"];
12128
12227
  var DataCard = function DataCard(_ref) {
12129
12228
  var _ref$intent = _ref.intent,
12130
12229
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
12131
12230
  children = _ref.children,
12132
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
12231
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12133
12232
  return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
12134
12233
  themeIntent: intent,
12135
12234
  testID: "data-card-indicator"
@@ -12147,11 +12246,11 @@ var StyledCard$1 = index$9(View)(function (_ref) {
12147
12246
  });
12148
12247
  });
12149
12248
 
12150
- var _excluded$n = ["intent", "children"];
12249
+ var _excluded$o = ["intent", "children"];
12151
12250
  var Card = function Card(_ref) {
12152
12251
  var intent = _ref.intent,
12153
12252
  children = _ref.children,
12154
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
12253
+ nativeProps = _objectWithoutProperties(_ref, _excluded$o);
12155
12254
  return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
12156
12255
  themeIntent: intent
12157
12256
  }), children);
@@ -12412,7 +12511,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
12412
12511
  });
12413
12512
  CardCarousel.displayName = 'CardCarousel';
12414
12513
 
12415
- var _excluded$m = ["rounded", "size", "testID", "style"];
12514
+ var _excluded$n = ["rounded", "size", "testID", "style"];
12416
12515
  var Image = function Image(_ref) {
12417
12516
  var _ref$rounded = _ref.rounded,
12418
12517
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12420,7 +12519,7 @@ var Image = function Image(_ref) {
12420
12519
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12421
12520
  testID = _ref.testID,
12422
12521
  style = _ref.style,
12423
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$m);
12522
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$n);
12424
12523
  var theme = useTheme();
12425
12524
  var imageSize = theme.__hd__.image.sizes[size];
12426
12525
  return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
@@ -12554,7 +12653,7 @@ var CarouselItem = function CarouselItem(_ref) {
12554
12653
  }, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
12555
12654
  };
12556
12655
 
12557
- var _excluded$l = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12656
+ var _excluded$m = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12558
12657
  function useStateFromProp(initialValue) {
12559
12658
  var _useState = useState(initialValue),
12560
12659
  _useState2 = _slicedToArray(_useState, 2),
@@ -12581,7 +12680,7 @@ var Carousel = function Carousel(_ref) {
12581
12680
  testID = _ref.testID,
12582
12681
  _ref$pageControlPosit = _ref.pageControlPosition,
12583
12682
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12584
- nativeProps = _objectWithoutProperties(_ref, _excluded$l);
12683
+ nativeProps = _objectWithoutProperties(_ref, _excluded$m);
12585
12684
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12586
12685
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12587
12686
  var theme = useTheme();
@@ -12791,7 +12890,7 @@ var StyledIcon$1 = index$9(Icon)(function (_ref4) {
12791
12890
  };
12792
12891
  });
12793
12892
 
12794
- var _excluded$k = ["label", "variant", "selected", "icon", "onPress"];
12893
+ var _excluded$l = ["label", "variant", "selected", "icon", "onPress"];
12795
12894
  var Chip = function Chip(_ref) {
12796
12895
  var label = _ref.label,
12797
12896
  _ref$variant = _ref.variant,
@@ -12800,7 +12899,7 @@ var Chip = function Chip(_ref) {
12800
12899
  selected = _ref$selected === void 0 ? false : _ref$selected,
12801
12900
  icon = _ref.icon,
12802
12901
  onPress = _ref.onPress,
12803
- otherProps = _objectWithoutProperties(_ref, _excluded$k);
12902
+ otherProps = _objectWithoutProperties(_ref, _excluded$l);
12804
12903
  var internalIcon = React__default.useMemo(function () {
12805
12904
  if (icon && variant === 'filled') {
12806
12905
  return icon;
@@ -12919,7 +13018,7 @@ var Checkbox = function Checkbox(_ref2) {
12919
13018
  })));
12920
13019
  };
12921
13020
 
12922
- var StyledContainer$4 = index$9(View)(function (_ref) {
13021
+ var StyledContainer$5 = index$9(View)(function (_ref) {
12923
13022
  var theme = _ref.theme;
12924
13023
  return {
12925
13024
  width: '100%',
@@ -13047,8 +13146,8 @@ var StyledErrorAndMaxLengthContainer = index$9(View)(function () {
13047
13146
  };
13048
13147
  });
13049
13148
 
13050
- var _excluded$j = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13051
- var getState$1 = function getState(_ref) {
13149
+ var _excluded$k = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13150
+ var getState$2 = function getState(_ref) {
13052
13151
  var disabled = _ref.disabled,
13053
13152
  error = _ref.error,
13054
13153
  editable = _ref.editable,
@@ -13084,7 +13183,7 @@ var renderErrorOrHelpText = function renderErrorOrHelpText(_ref2) {
13084
13183
  testID: "input-error-message"
13085
13184
  }, error)) : !!helpText && /*#__PURE__*/React__default.createElement(StyledHelperText, null, helpText);
13086
13185
  };
13087
- var renderInput = function renderInput(_ref3) {
13186
+ var renderInput$1 = function renderInput(_ref3) {
13088
13187
  var variant = _ref3.variant,
13089
13188
  nativeInputProps = _ref3.nativeInputProps,
13090
13189
  renderInputValue = _ref3.renderInputValue,
@@ -13095,7 +13194,7 @@ var renderInput = function renderInput(_ref3) {
13095
13194
  ref: ref
13096
13195
  }));
13097
13196
  };
13098
- var renderSuffix = function renderSuffix(_ref4) {
13197
+ var renderSuffix$1 = function renderSuffix(_ref4) {
13099
13198
  var state = _ref4.state,
13100
13199
  loading = _ref4.loading,
13101
13200
  suffix = _ref4.suffix;
@@ -13108,7 +13207,7 @@ var renderSuffix = function renderSuffix(_ref4) {
13108
13207
  size: "medium"
13109
13208
  }) : suffix;
13110
13209
  };
13111
- var renderPrefix = function renderPrefix(_ref5) {
13210
+ var renderPrefix$1 = function renderPrefix(_ref5) {
13112
13211
  var state = _ref5.state,
13113
13212
  prefix = _ref5.prefix;
13114
13213
  return typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
@@ -13159,7 +13258,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13159
13258
  allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
13160
13259
  _ref8$variant = _ref8.variant,
13161
13260
  variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
13162
- nativeProps = _objectWithoutProperties(_ref8, _excluded$j);
13261
+ nativeProps = _objectWithoutProperties(_ref8, _excluded$k);
13163
13262
  var displayText = getDisplayText(value, defaultValue);
13164
13263
  var isEmptyValue = displayText.length === 0;
13165
13264
  var _React$useState = React__default.useState({
@@ -13181,7 +13280,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13181
13280
  _React$useState8 = _slicedToArray(_React$useState7, 2),
13182
13281
  isFocused = _React$useState8[0],
13183
13282
  setIsFocused = _React$useState8[1];
13184
- var state = getState$1({
13283
+ var state = getState$2({
13185
13284
  disabled: disabled,
13186
13285
  error: error,
13187
13286
  editable: editable,
@@ -13311,7 +13410,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13311
13410
  defaultValue: defaultValue,
13312
13411
  placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
13313
13412
  });
13314
- return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
13413
+ return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
13315
13414
  style: styleWithoutBackgroundColor,
13316
13415
  pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
13317
13416
  testID: testID
@@ -13326,7 +13425,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13326
13425
  }, borderStyle]
13327
13426
  }), /*#__PURE__*/React__default.createElement(View, {
13328
13427
  onLayout: onPrefixLayout
13329
- }, renderPrefix({
13428
+ }, renderPrefix$1({
13330
13429
  state: state,
13331
13430
  prefix: prefix
13332
13431
  })), /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
@@ -13366,14 +13465,14 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13366
13465
  testID: "input-label",
13367
13466
  themeState: state,
13368
13467
  onLayout: onLabelLayout
13369
- }, label)), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput({
13468
+ }, label)), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
13370
13469
  variant: variant,
13371
13470
  nativeInputProps: nativeInputProps,
13372
13471
  renderInputValue: renderInputValue,
13373
13472
  ref: function ref(rnTextInputRef) {
13374
13473
  innerTextInput.current = rnTextInputRef;
13375
13474
  }
13376
- })), renderSuffix({
13475
+ })), renderSuffix$1({
13377
13476
  state: state,
13378
13477
  loading: loading,
13379
13478
  suffix: suffix
@@ -13704,11 +13803,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13704
13803
  }))));
13705
13804
  };
13706
13805
 
13707
- var _excluded$i = ["variant"];
13806
+ var _excluded$j = ["variant"];
13708
13807
  var DatePicker = function DatePicker(_ref) {
13709
13808
  var _ref$variant = _ref.variant,
13710
13809
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13711
- props = _objectWithoutProperties(_ref, _excluded$i);
13810
+ props = _objectWithoutProperties(_ref, _excluded$j);
13712
13811
  if (variant === 'calendar') {
13713
13812
  return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
13714
13813
  }
@@ -13719,7 +13818,7 @@ var DatePicker = function DatePicker(_ref) {
13719
13818
  };
13720
13819
 
13721
13820
  var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
13722
- var StyledContainer$3 = index$9(View)(function (_ref) {
13821
+ var StyledContainer$4 = index$9(View)(function (_ref) {
13723
13822
  var theme = _ref.theme,
13724
13823
  enableShadow = _ref.enableShadow;
13725
13824
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
@@ -13775,7 +13874,7 @@ var StyledDragableDrawerContainer = index$9(Animated.View)(function (_ref5) {
13775
13874
  maxHeight: '100%'
13776
13875
  };
13777
13876
  });
13778
- var StyledHandlerContainer = index$9(View)(function (_ref6) {
13877
+ var StyledHandlerContainer$1 = index$9(View)(function (_ref6) {
13779
13878
  var theme = _ref6.theme;
13780
13879
  return {
13781
13880
  backgroundColor: theme.__hd__.drawer.colors.background,
@@ -13943,7 +14042,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
13943
14042
  var nativeEvent = _ref3.nativeEvent;
13944
14043
  setHeight(nativeEvent.layout.height);
13945
14044
  }
13946
- }, /*#__PURE__*/React__default.createElement(StyledHandlerContainer, panResponder.panHandlers, /*#__PURE__*/React__default.createElement(StyledHandler, null)), children));
14045
+ }, /*#__PURE__*/React__default.createElement(StyledHandlerContainer$1, panResponder.panHandlers, /*#__PURE__*/React__default.createElement(StyledHandler, null)), children));
13947
14046
  };
13948
14047
 
13949
14048
  var Drawer = function Drawer(_ref) {
@@ -13978,7 +14077,7 @@ var Drawer = function Drawer(_ref) {
13978
14077
  return animation.stop();
13979
14078
  };
13980
14079
  }, [visible]);
13981
- return /*#__PURE__*/React__default.createElement(StyledContainer$3, {
14080
+ return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
13982
14081
  testID: testID,
13983
14082
  enableShadow: enableShadow,
13984
14083
  pointerEvents: "box-none"
@@ -14262,7 +14361,7 @@ var Portal$1 = Object.assign(Portal, {
14262
14361
  Host: PortalHost
14263
14362
  });
14264
14363
 
14265
- var _excluded$h = ["visible"];
14364
+ var _excluded$i = ["visible"];
14266
14365
  var DEFAULT_BACKDROP_OPACITY = 0.4;
14267
14366
  var DEFAULT_ANIMATION_CONFIG = {
14268
14367
  easing: Easing.inOut(Easing.cubic),
@@ -14358,7 +14457,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
14358
14457
  var ModalWrapper = function ModalWrapper(_ref3) {
14359
14458
  var _ref3$visible = _ref3.visible,
14360
14459
  visible = _ref3$visible === void 0 ? true : _ref3$visible,
14361
- props = _objectWithoutProperties(_ref3, _excluded$h);
14460
+ props = _objectWithoutProperties(_ref3, _excluded$i);
14362
14461
  var modalRef = useRef(null);
14363
14462
  var _useState = useState(visible),
14364
14463
  _useState2 = _slicedToArray(_useState, 2),
@@ -14468,7 +14567,7 @@ var StyledErrorDescription = index$9(Typography.Body)(function (_ref9) {
14468
14567
  };
14469
14568
  });
14470
14569
 
14471
- var _excluded$g = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14570
+ var _excluded$h = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14472
14571
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14473
14572
  var renderImage$1 = function renderImage(image) {
14474
14573
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -14494,7 +14593,7 @@ var ErrorPage = function ErrorPage(_ref) {
14494
14593
  onCtaPress = _ref.onCtaPress,
14495
14594
  secondaryCtaText = _ref.secondaryCtaText,
14496
14595
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
14497
- nativeProps = _objectWithoutProperties(_ref, _excluded$g);
14596
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
14498
14597
  var showCta = ctaText && onCtaPress !== undefined;
14499
14598
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
14500
14599
  var showButtonContainer = showCta || showSecondaryCta;
@@ -14655,11 +14754,11 @@ var StyledIconContainer = index$9(Box)(function (_ref4) {
14655
14754
  };
14656
14755
  });
14657
14756
 
14658
- var _excluded$f = ["active"];
14757
+ var _excluded$g = ["active"];
14659
14758
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
14660
14759
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
14661
14760
  var active = _ref.active,
14662
- iconProps = _objectWithoutProperties(_ref, _excluded$f);
14761
+ iconProps = _objectWithoutProperties(_ref, _excluded$g);
14663
14762
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
14664
14763
  useEffect(function () {
14665
14764
  var animation = Animated.spring(rotateAnimation.current, {
@@ -14907,7 +15006,7 @@ var ActionItem = function ActionItem(_ref) {
14907
15006
  })), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
14908
15007
  };
14909
15008
 
14910
- var StyledContainer$2 = index$9(View)({
15009
+ var StyledContainer$3 = index$9(View)({
14911
15010
  position: 'absolute',
14912
15011
  left: 0,
14913
15012
  right: 0,
@@ -15003,7 +15102,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
15003
15102
  inputRange: [0, 1],
15004
15103
  outputRange: [0, 1]
15005
15104
  });
15006
- return /*#__PURE__*/React__default.createElement(StyledContainer$2, {
15105
+ return /*#__PURE__*/React__default.createElement(StyledContainer$3, {
15007
15106
  testID: testID,
15008
15107
  pointerEvents: "box-none",
15009
15108
  style: style
@@ -15453,7 +15552,7 @@ var StyledPrefixContainer$1 = index$9(View)(function (_ref4) {
15453
15552
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
15454
15553
  };
15455
15554
  });
15456
- var StyledSuffixContainer$1 = index$9(View)(function (_ref5) {
15555
+ var StyledSuffixContainer$2 = index$9(View)(function (_ref5) {
15457
15556
  var theme = _ref5.theme;
15458
15557
  return {
15459
15558
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
@@ -15505,7 +15604,7 @@ var ListItem = function ListItem(_ref) {
15505
15604
  intent: "body"
15506
15605
  }, title) : title, !!subtitle && /*#__PURE__*/React__default.createElement(Typography.Caption, {
15507
15606
  intent: "subdued"
15508
- }, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15607
+ }, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer$2, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15509
15608
  icon: suffix,
15510
15609
  intent: disabled ? 'disabled-text' : 'primary',
15511
15610
  size: "small"
@@ -15518,7 +15617,7 @@ var StyledPrefixContainer = index$9(View)(function (_ref) {
15518
15617
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
15519
15618
  };
15520
15619
  });
15521
- var StyledSuffixContainer = index$9(View)(function (_ref2) {
15620
+ var StyledSuffixContainer$1 = index$9(View)(function (_ref2) {
15522
15621
  var theme = _ref2.theme;
15523
15622
  return {
15524
15623
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
@@ -15571,7 +15670,7 @@ var BasicListItem = function BasicListItem(_ref) {
15571
15670
  intent: "body"
15572
15671
  }, title) : title, subtitle && /*#__PURE__*/React__default.createElement(Typography.Caption, {
15573
15672
  intent: "subdued"
15574
- }, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15673
+ }, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15575
15674
  icon: suffix,
15576
15675
  size: "small",
15577
15676
  intent: disabled ? 'disabled-text' : 'primary'
@@ -15700,7 +15799,7 @@ function PinCell(_ref) {
15700
15799
  }, value));
15701
15800
  }
15702
15801
 
15703
- function getState(_ref) {
15802
+ function getState$1(_ref) {
15704
15803
  var disabled = _ref.disabled,
15705
15804
  error = _ref.error;
15706
15805
  if (disabled) {
@@ -15739,7 +15838,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
15739
15838
  _useState2 = _slicedToArray(_useState, 2),
15740
15839
  focused = _useState2[0],
15741
15840
  setFocused = _useState2[1];
15742
- var state = getState({
15841
+ var state = getState$1({
15743
15842
  disabled: disabled,
15744
15843
  error: error
15745
15844
  });
@@ -15842,7 +15941,7 @@ var THEME_INTENT_MAP = {
15842
15941
  'archived-inverted': 'archivedInverted'
15843
15942
  };
15844
15943
 
15845
- var StyledContainer$1 = index$9(View)(function (_ref) {
15944
+ var StyledContainer$2 = index$9(View)(function (_ref) {
15846
15945
  var theme = _ref.theme;
15847
15946
  return {
15848
15947
  flexDirection: 'row',
@@ -15908,7 +16007,7 @@ var StyledStrokeEnd = index$9(View)(function (_ref6) {
15908
16007
  };
15909
16008
  });
15910
16009
 
15911
- var _excluded$e = ["value", "renderValue", "intent", "style", "testID"];
16010
+ var _excluded$f = ["value", "renderValue", "intent", "style", "testID"];
15912
16011
  var HalfCircle = function HalfCircle(_ref) {
15913
16012
  var type = _ref.type,
15914
16013
  themeIntent = _ref.themeIntent;
@@ -15929,7 +16028,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
15929
16028
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
15930
16029
  style = _ref2.style,
15931
16030
  testID = _ref2.testID,
15932
- nativeProps = _objectWithoutProperties(_ref2, _excluded$e);
16031
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
15933
16032
  var theme = useTheme$1();
15934
16033
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
15935
16034
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -15969,7 +16068,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
15969
16068
  return /*#__PURE__*/React__default.createElement(View, _extends$1({}, nativeProps, {
15970
16069
  testID: testID,
15971
16070
  style: style
15972
- }), /*#__PURE__*/React__default.createElement(StyledContainer$1, null, /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(HalfCircle, {
16071
+ }), /*#__PURE__*/React__default.createElement(StyledContainer$2, null, /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(HalfCircle, {
15973
16072
  type: "foreground",
15974
16073
  themeIntent: intent
15975
16074
  }), /*#__PURE__*/React__default.createElement(Animated.View, {
@@ -16045,14 +16144,14 @@ var StyledInner = index$9(Animated.View)(function (_ref2) {
16045
16144
  };
16046
16145
  });
16047
16146
 
16048
- var _excluded$d = ["value", "intent", "style", "testID"];
16147
+ var _excluded$e = ["value", "intent", "style", "testID"];
16049
16148
  var ProgressBar = function ProgressBar(_ref) {
16050
16149
  var value = _ref.value,
16051
16150
  _ref$intent = _ref.intent,
16052
16151
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16053
16152
  style = _ref.style,
16054
16153
  testID = _ref.testID,
16055
- nativeProps = _objectWithoutProperties(_ref, _excluded$d);
16154
+ nativeProps = _objectWithoutProperties(_ref, _excluded$e);
16056
16155
  var _useState = useState(0),
16057
16156
  _useState2 = _slicedToArray(_useState, 2),
16058
16157
  width = _useState2[0],
@@ -16243,14 +16342,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
16243
16342
  }, dotProps))));
16244
16343
  };
16245
16344
 
16246
- var _excluded$c = ["testID", "size", "intent"];
16345
+ var _excluded$d = ["testID", "size", "intent"];
16247
16346
  var Spinner = function Spinner(_ref) {
16248
16347
  var testID = _ref.testID,
16249
16348
  _ref$size = _ref.size,
16250
16349
  size = _ref$size === void 0 ? 'medium' : _ref$size,
16251
16350
  _ref$intent = _ref.intent,
16252
16351
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16253
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
16352
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
16254
16353
  return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
16255
16354
  testID: testID
16256
16355
  }, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
@@ -16283,7 +16382,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
16283
16382
  }, children);
16284
16383
  };
16285
16384
 
16286
- var _excluded$b = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
16385
+ var _excluded$c = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
16287
16386
  var renderActions = function renderActions(actions, width, progress, direction) {
16288
16387
  var trans = progress.interpolate({
16289
16388
  inputRange: [0, 1],
@@ -16312,7 +16411,7 @@ var Swipeable = function Swipeable(_ref) {
16312
16411
  rightActionsWidth = _ref.rightActionsWidth,
16313
16412
  _ref$variant = _ref.variant,
16314
16413
  variant = _ref$variant === void 0 ? 'card' : _ref$variant,
16315
- swipeableProps = _objectWithoutProperties(_ref, _excluded$b);
16414
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$c);
16316
16415
  var theme = useTheme();
16317
16416
  var _useWindowDimensions = useWindowDimensions(),
16318
16417
  width = _useWindowDimensions.width;
@@ -16663,7 +16762,7 @@ var StyledSectionList = index$9(SectionList)(function (_ref4) {
16663
16762
  };
16664
16763
  });
16665
16764
 
16666
- var _excluded$a = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
16765
+ var _excluded$b = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
16667
16766
  var BaseOptionList = function BaseOptionList(_ref) {
16668
16767
  var keyExtractor = _ref.keyExtractor,
16669
16768
  loading = _ref.loading,
@@ -16672,7 +16771,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
16672
16771
  sections = _ref.sections,
16673
16772
  renderItem = _ref.renderItem,
16674
16773
  sectionListRef = _ref.sectionListRef,
16675
- rest = _objectWithoutProperties(_ref, _excluded$a);
16774
+ rest = _objectWithoutProperties(_ref, _excluded$b);
16676
16775
  var theme = useTheme$1();
16677
16776
  var _useState = useState(false),
16678
16777
  _useState2 = _slicedToArray(_useState, 2),
@@ -16742,7 +16841,7 @@ var Option$2 = function Option(_ref) {
16742
16841
  return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
16743
16842
  };
16744
16843
 
16745
- var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
16844
+ var _excluded$a = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
16746
16845
  var OptionList$1 = function OptionList(_ref) {
16747
16846
  var keyExtractor = _ref.keyExtractor,
16748
16847
  loading = _ref.loading,
@@ -16753,7 +16852,7 @@ var OptionList$1 = function OptionList(_ref) {
16753
16852
  renderOption = _ref.renderOption,
16754
16853
  value = _ref.value,
16755
16854
  sectionListRef = _ref.sectionListRef,
16756
- rest = _objectWithoutProperties(_ref, _excluded$9);
16855
+ rest = _objectWithoutProperties(_ref, _excluded$a);
16757
16856
  var renderItem = function renderItem(info) {
16758
16857
  var item = info.item;
16759
16858
  var selected = value.includes(info.item.value);
@@ -16944,7 +17043,7 @@ var StyledOptionList = index$9(BaseOptionList)(function (_ref) {
16944
17043
  };
16945
17044
  });
16946
17045
 
16947
- var _excluded$8 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17046
+ var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
16948
17047
  var OptionList = function OptionList(_ref) {
16949
17048
  var keyExtractor = _ref.keyExtractor,
16950
17049
  loading = _ref.loading,
@@ -16955,7 +17054,7 @@ var OptionList = function OptionList(_ref) {
16955
17054
  renderOption = _ref.renderOption,
16956
17055
  value = _ref.value,
16957
17056
  sectionListRef = _ref.sectionListRef,
16958
- rest = _objectWithoutProperties(_ref, _excluded$8);
17057
+ rest = _objectWithoutProperties(_ref, _excluded$9);
16959
17058
  var renderItem = function renderItem(info) {
16960
17059
  var item = info.item;
16961
17060
  var selected = item.value === value;
@@ -17105,7 +17204,7 @@ var index$4 = Object.assign(SingleSelect, {
17105
17204
  Multi: MultiSelect
17106
17205
  });
17107
17206
 
17108
- var StyledContainer = index$9(Box)(function (_ref) {
17207
+ var StyledContainer$1 = index$9(Box)(function (_ref) {
17109
17208
  var theme = _ref.theme,
17110
17209
  themeIntent = _ref.themeIntent,
17111
17210
  themeVariant = _ref.themeVariant;
@@ -17123,7 +17222,7 @@ var StyledGradientContainer = index$9(Box)(function (_ref2) {
17123
17222
  };
17124
17223
  });
17125
17224
 
17126
- var _excluded$7 = ["intent", "variant", "style", "onLayout"];
17225
+ var _excluded$8 = ["intent", "variant", "style", "onLayout"];
17127
17226
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
17128
17227
  var gradientPositions = {
17129
17228
  start: {
@@ -17155,7 +17254,7 @@ var Skeleton = function Skeleton(_ref) {
17155
17254
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
17156
17255
  style = _ref.style,
17157
17256
  onLayout = _ref.onLayout,
17158
- props = _objectWithoutProperties(_ref, _excluded$7);
17257
+ props = _objectWithoutProperties(_ref, _excluded$8);
17159
17258
  var theme = useTheme();
17160
17259
  var colors = useMemo(function () {
17161
17260
  return getGradientColors(theme, intent);
@@ -17191,7 +17290,7 @@ var Skeleton = function Skeleton(_ref) {
17191
17290
  }
17192
17291
  onLayout === null || onLayout === void 0 || onLayout(e);
17193
17292
  }, []);
17194
- return /*#__PURE__*/React__default.createElement(StyledContainer, _extends$1({
17293
+ return /*#__PURE__*/React__default.createElement(StyledContainer$1, _extends$1({
17195
17294
  style: style,
17196
17295
  themeVariant: variant,
17197
17296
  themeIntent: intent,
@@ -17287,7 +17386,7 @@ var StyledSuccessModal = index$9(ModalWrapper)({
17287
17386
  width: '100%'
17288
17387
  });
17289
17388
 
17290
- var _excluded$6 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17389
+ var _excluded$7 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17291
17390
  var renderImage = function renderImage(image) {
17292
17391
  if ( /*#__PURE__*/isValidElement(image)) {
17293
17392
  return /*#__PURE__*/React__default.cloneElement(image, {
@@ -17313,7 +17412,7 @@ var SuccessPage = function SuccessPage(_ref) {
17313
17412
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
17314
17413
  secondaryCtaText = _ref.secondaryCtaText,
17315
17414
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
17316
- nativeProps = _objectWithoutProperties(_ref, _excluded$6);
17415
+ nativeProps = _objectWithoutProperties(_ref, _excluded$7);
17317
17416
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
17318
17417
  return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
17319
17418
  testID: testID,
@@ -18331,7 +18430,7 @@ var StyledText = index$9(Typography.Caption)(function (_ref2) {
18331
18430
  };
18332
18431
  });
18333
18432
 
18334
- var _excluded$5 = ["content", "variant", "intent", "style", "testID"];
18433
+ var _excluded$6 = ["content", "variant", "intent", "style", "testID"];
18335
18434
  var Tag = function Tag(_ref) {
18336
18435
  var content = _ref.content,
18337
18436
  _ref$variant = _ref.variant,
@@ -18340,7 +18439,7 @@ var Tag = function Tag(_ref) {
18340
18439
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
18341
18440
  style = _ref.style,
18342
18441
  testID = _ref.testID,
18343
- nativeProps = _objectWithoutProperties(_ref, _excluded$5);
18442
+ nativeProps = _objectWithoutProperties(_ref, _excluded$6);
18344
18443
  useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
18345
18444
  return /*#__PURE__*/React__default.createElement(StyledView, _extends$1({}, nativeProps, {
18346
18445
  themeIntent: intent,
@@ -18658,10 +18757,10 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
18658
18757
  }));
18659
18758
  };
18660
18759
 
18661
- var _excluded$4 = ["children"];
18760
+ var _excluded$5 = ["children"];
18662
18761
  var Toolbar = function Toolbar(_ref) {
18663
18762
  var children = _ref.children,
18664
- rest = _objectWithoutProperties(_ref, _excluded$4);
18763
+ rest = _objectWithoutProperties(_ref, _excluded$5);
18665
18764
  return /*#__PURE__*/React__default.createElement(ToolbarWrapper, rest, children);
18666
18765
  };
18667
18766
  var index$1 = Object.assign(Toolbar, {
@@ -18680,7 +18779,7 @@ var StyledIconWrapper = index$9(AnimatedBox)(function (_ref) {
18680
18779
  };
18681
18780
  });
18682
18781
 
18683
- var _excluded$3 = ["options", "value", "onChange", "readonly", "disabled"];
18782
+ var _excluded$4 = ["options", "value", "onChange", "readonly", "disabled"];
18684
18783
  var Rate = function Rate(_ref) {
18685
18784
  var options = _ref.options,
18686
18785
  value = _ref.value,
@@ -18689,7 +18788,7 @@ var Rate = function Rate(_ref) {
18689
18788
  readonly = _ref$readonly === void 0 ? false : _ref$readonly,
18690
18789
  _ref$disabled = _ref.disabled,
18691
18790
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
18692
- otherProps = _objectWithoutProperties(_ref, _excluded$3);
18791
+ otherProps = _objectWithoutProperties(_ref, _excluded$4);
18693
18792
  var valueIndex = useMemo(function () {
18694
18793
  return options.findIndex(function (item) {
18695
18794
  return item.value === value;
@@ -35854,7 +35953,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
35854
35953
  break;
35855
35954
  }
35856
35955
  }, []);
35857
- return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
35956
+ return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
35858
35957
  testID: testID
35859
35958
  }, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
35860
35959
  themeVariant: "text",
@@ -36080,34 +36179,294 @@ function AnimatedScroller(_ref) {
36080
36179
  }));
36081
36180
  }
36082
36181
 
36083
- var _excluded$2 = ["fabProps"];
36182
+ var _excluded$3 = ["fabProps"];
36084
36183
  var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
36085
36184
  var fabProps = _ref.fabProps,
36086
- props = _objectWithoutProperties(_ref, _excluded$2);
36185
+ props = _objectWithoutProperties(_ref, _excluded$3);
36087
36186
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36088
36187
  ScrollComponent: /*#__PURE__*/React__default.createElement(ScrollView, props),
36089
36188
  fabProps: fabProps
36090
36189
  });
36091
36190
  };
36092
36191
 
36093
- var _excluded$1 = ["fabProps"];
36192
+ var _excluded$2 = ["fabProps"];
36094
36193
  function FlatListWithFAB(_ref) {
36095
36194
  var fabProps = _ref.fabProps,
36096
- props = _objectWithoutProperties(_ref, _excluded$1);
36195
+ props = _objectWithoutProperties(_ref, _excluded$2);
36097
36196
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36098
36197
  ScrollComponent: /*#__PURE__*/React__default.createElement(FlatList, props),
36099
36198
  fabProps: fabProps
36100
36199
  });
36101
36200
  }
36102
36201
 
36103
- var _excluded = ["fabProps"];
36202
+ var _excluded$1 = ["fabProps"];
36104
36203
  function SectionListWithFAB(_ref) {
36105
36204
  var fabProps = _ref.fabProps,
36106
- props = _objectWithoutProperties(_ref, _excluded);
36205
+ props = _objectWithoutProperties(_ref, _excluded$1);
36107
36206
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36108
36207
  ScrollComponent: /*#__PURE__*/React__default.createElement(SectionList, props),
36109
36208
  fabProps: fabProps
36110
36209
  });
36111
36210
  }
36112
36211
 
36113
- export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
36212
+ var StyledContainer = index$9(View)(function () {
36213
+ return {
36214
+ width: '100%'
36215
+ };
36216
+ });
36217
+ var StyledInputContainer = index$9(View)(function (_ref) {
36218
+ var theme = _ref.theme,
36219
+ themeFocused = _ref.themeFocused;
36220
+ return {
36221
+ flexDirection: 'row',
36222
+ alignItems: 'center',
36223
+ paddingHorizontal: theme.__hd__.search.space.containerHorizontalPadding,
36224
+ paddingVertical: theme.__hd__.search.space.containerVerticalPadding,
36225
+ backgroundColor: theme.__hd__.search.colors.containerBackground,
36226
+ height: 56,
36227
+ borderRadius: theme.__hd__.search.radii.container,
36228
+ borderWidth: theme.__hd__.search.borderWidths.container.focused,
36229
+ borderColor: themeFocused ? theme.__hd__.search.colors.borders : theme.__hd__.search.colors.containerBackground
36230
+ };
36231
+ });
36232
+ var StyledAffixContainer = index$9(View)(function (_ref2) {
36233
+ var theme = _ref2.theme;
36234
+ return {
36235
+ paddingHorizontal: theme.__hd__.search.space.prefixHorizontalPadding
36236
+ };
36237
+ });
36238
+ var StyledSuffixContainer = index$9(View)(function (_ref3) {
36239
+ var theme = _ref3.theme;
36240
+ return {
36241
+ display: 'flex',
36242
+ justifyContent: 'center',
36243
+ alignItems: 'center',
36244
+ width: theme.__hd__.search.sizes.surfixSize,
36245
+ height: theme.__hd__.search.sizes.surfixSize,
36246
+ backgroundColor: theme.__hd__.search.colors.surfixBackground,
36247
+ borderRadius: theme.__hd__.search.radii.surfix
36248
+ };
36249
+ });
36250
+ var StyledInput = index$9(TextInput$1)(function (_ref4) {
36251
+ var theme = _ref4.theme;
36252
+ return {
36253
+ textAlignVertical: 'center',
36254
+ fontSize: theme.__hd__.search.fontSizes.text,
36255
+ alignSelf: 'stretch',
36256
+ flexGrow: 1,
36257
+ flexShrink: 1,
36258
+ marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin,
36259
+ paddingVertical: 0,
36260
+ fontFamily: theme.__hd__.search.fonts.text
36261
+ };
36262
+ });
36263
+ var StyledHandlerContainer = index$9(View)(function (_ref5) {
36264
+ var theme = _ref5.theme;
36265
+ return {
36266
+ display: 'flex',
36267
+ flexDirection: 'column',
36268
+ justifyContent: 'space-between',
36269
+ alignItems: 'flex-start',
36270
+ flexGrow: 1,
36271
+ height: '100%',
36272
+ marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin
36273
+ };
36274
+ });
36275
+ var StyledBadge = index$9(Badge$1)(function (_ref6) {
36276
+ var theme = _ref6.theme;
36277
+ return {
36278
+ position: 'absolute',
36279
+ top: theme.__hd__.search.space.badgeTop,
36280
+ right: theme.__hd__.search.space.badgeRight,
36281
+ zIndex: 2
36282
+ };
36283
+ });
36284
+
36285
+ var renderPrefix = function renderPrefix(_ref) {
36286
+ var prefix = _ref.prefix;
36287
+ return typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(StyledAffixContainer, null, /*#__PURE__*/React__default.createElement(Icon, {
36288
+ intent: "text",
36289
+ testID: "input-prefix",
36290
+ icon: prefix,
36291
+ size: "small"
36292
+ })) : prefix;
36293
+ };
36294
+ var renderSuffix = function renderSuffix(_ref2) {
36295
+ var suffix = _ref2.suffix;
36296
+ return typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(StyledAffixContainer, null, /*#__PURE__*/React__default.createElement(Icon, {
36297
+ intent: "text",
36298
+ testID: "input-suffix",
36299
+ icon: suffix,
36300
+ size: "small"
36301
+ })) : suffix;
36302
+ };
36303
+
36304
+ var SearchTwoLine = function SearchTwoLine(props) {
36305
+ var _props$prefix = props.prefix,
36306
+ prefix = _props$prefix === void 0 ? 'search-outlined' : _props$prefix,
36307
+ suffix = props.suffix,
36308
+ style = props.style,
36309
+ label = props.label,
36310
+ content = props.content,
36311
+ testID = props.testID;
36312
+ return /*#__PURE__*/React__default.createElement(StyledContainer, {
36313
+ style: style,
36314
+ testID: testID
36315
+ }, /*#__PURE__*/React__default.createElement(StyledInputContainer, {
36316
+ themeFocused: false
36317
+ }, renderPrefix({
36318
+ prefix: prefix
36319
+ }), /*#__PURE__*/React__default.createElement(StyledHandlerContainer, null, /*#__PURE__*/React__default.createElement(Typography.Caption, {
36320
+ fontWeight: "semi-bold"
36321
+ }, label), content), !!suffix && renderSuffix({
36322
+ suffix: suffix
36323
+ })));
36324
+ };
36325
+
36326
+ var _excluded = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID"];
36327
+ var getState = function getState(_ref) {
36328
+ var disabled = _ref.disabled,
36329
+ editable = _ref.editable,
36330
+ isEmptyValue = _ref.isEmptyValue;
36331
+ if (disabled) {
36332
+ return 'disabled';
36333
+ }
36334
+ if (!editable) {
36335
+ return 'readonly';
36336
+ }
36337
+ if (!isEmptyValue) {
36338
+ return 'filled';
36339
+ }
36340
+ return 'default';
36341
+ };
36342
+ var renderInput = function renderInput(_ref2) {
36343
+ var nativeInputProps = _ref2.nativeInputProps,
36344
+ ref = _ref2.ref;
36345
+ return /*#__PURE__*/React__default.createElement(StyledInput, _extends$1({}, nativeInputProps, {
36346
+ ref: ref
36347
+ }));
36348
+ };
36349
+ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
36350
+ var _ref3;
36351
+ var _props$prefix = props.prefix,
36352
+ prefix = _props$prefix === void 0 ? 'search-outlined' : _props$prefix,
36353
+ suffix = props.suffix,
36354
+ style = props.style,
36355
+ allowFontScaling = props.allowFontScaling,
36356
+ accessibilityLabelledBy = props.accessibilityLabelledBy,
36357
+ _props$editable = props.editable,
36358
+ editable = _props$editable === void 0 ? true : _props$editable,
36359
+ maxLength = props.maxLength,
36360
+ value = props.value,
36361
+ defaultValue = props.defaultValue,
36362
+ placeholder = props.placeholder,
36363
+ _props$disabled = props.disabled,
36364
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
36365
+ testID = props.testID,
36366
+ nativeProps = _objectWithoutProperties(props, _excluded);
36367
+ var _React$useState = React__default.useState(false),
36368
+ _React$useState2 = _slicedToArray(_React$useState, 2),
36369
+ isFocused = _React$useState2[0],
36370
+ setIsFocused = _React$useState2[1];
36371
+ var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
36372
+ var isEmptyValue = displayText.length === 0;
36373
+ var state = getState({
36374
+ disabled: disabled,
36375
+ editable: editable,
36376
+ isFocused: isFocused,
36377
+ isEmptyValue: isEmptyValue
36378
+ });
36379
+ var innerTextInput = React__default.useRef();
36380
+ React__default.useImperativeHandle(ref, function () {
36381
+ return {
36382
+ // we don't expose this method, it's for testing https://medium.com/developer-rants/how-to-test-useref-without-mocking-useref-699165f4994e
36383
+ getNativeTextInputRef: function getNativeTextInputRef() {
36384
+ return innerTextInput.current;
36385
+ },
36386
+ setNativeProps: function setNativeProps(args) {
36387
+ var _innerTextInput$curre;
36388
+ return (_innerTextInput$curre = innerTextInput.current) === null || _innerTextInput$curre === void 0 ? void 0 : _innerTextInput$curre.setNativeProps(args);
36389
+ },
36390
+ focus: function focus() {
36391
+ var _innerTextInput$curre2;
36392
+ (_innerTextInput$curre2 = innerTextInput.current) === null || _innerTextInput$curre2 === void 0 || _innerTextInput$curre2.focus();
36393
+ },
36394
+ blur: function blur() {
36395
+ var _innerTextInput$curre3;
36396
+ return (_innerTextInput$curre3 = innerTextInput.current) === null || _innerTextInput$curre3 === void 0 ? void 0 : _innerTextInput$curre3.blur();
36397
+ },
36398
+ clear: function clear() {
36399
+ var _innerTextInput$curre4;
36400
+ return (_innerTextInput$curre4 = innerTextInput.current) === null || _innerTextInput$curre4 === void 0 ? void 0 : _innerTextInput$curre4.clear();
36401
+ },
36402
+ isFocused: function isFocused() {
36403
+ var _innerTextInput$curre5;
36404
+ return ((_innerTextInput$curre5 = innerTextInput.current) === null || _innerTextInput$curre5 === void 0 ? void 0 : _innerTextInput$curre5.isFocused()) || false;
36405
+ }
36406
+ };
36407
+ }, [innerTextInput]);
36408
+ return /*#__PURE__*/React__default.createElement(StyledContainer, {
36409
+ pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
36410
+ testID: testID,
36411
+ style: style
36412
+ }, /*#__PURE__*/React__default.createElement(StyledInputContainer, {
36413
+ themeFocused: isFocused
36414
+ }, renderPrefix({
36415
+ prefix: prefix
36416
+ }), renderInput({
36417
+ nativeInputProps: _objectSpread2(_objectSpread2({
36418
+ testID: 'text-input',
36419
+ accessibilityState: {
36420
+ disabled: state === 'disabled' || state === 'readonly'
36421
+ },
36422
+ accessibilityLabelledBy: accessibilityLabelledBy,
36423
+ allowFontScaling: allowFontScaling
36424
+ }, nativeProps), {}, {
36425
+ onFocus: function onFocus(event) {
36426
+ var _nativeProps$onFocus;
36427
+ setIsFocused(true);
36428
+ (_nativeProps$onFocus = nativeProps.onFocus) === null || _nativeProps$onFocus === void 0 || _nativeProps$onFocus.call(nativeProps, event);
36429
+ },
36430
+ onBlur: function onBlur(event) {
36431
+ var _nativeProps$onBlur;
36432
+ setIsFocused(false);
36433
+ (_nativeProps$onBlur = nativeProps.onBlur) === null || _nativeProps$onBlur === void 0 || _nativeProps$onBlur.call(nativeProps, event);
36434
+ },
36435
+ editable: editable,
36436
+ maxLength: maxLength,
36437
+ value: value,
36438
+ defaultValue: defaultValue,
36439
+ placeholder: placeholder
36440
+ }),
36441
+ ref: function ref(rnTextInputRef) {
36442
+ innerTextInput.current = rnTextInputRef;
36443
+ }
36444
+ }), !!suffix && renderSuffix({
36445
+ suffix: suffix
36446
+ })));
36447
+ });
36448
+
36449
+ var SearchSuffixIcon = function SearchSuffixIcon(props) {
36450
+ var suffix = props.suffix,
36451
+ testID = props.testID,
36452
+ style = props.style,
36453
+ badge = props.badge;
36454
+ return /*#__PURE__*/React__default.createElement(StyledSuffixContainer, {
36455
+ testID: testID,
36456
+ style: style
36457
+ }, !!badge && /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({
36458
+ intent: "primary"
36459
+ }, badge, {
36460
+ size: "small"
36461
+ })), renderSuffix({
36462
+ suffix: suffix
36463
+ }));
36464
+ };
36465
+
36466
+ var Search = {
36467
+ OneLine: SearchOneLine,
36468
+ TwoLine: SearchTwoLine,
36469
+ SuffixIcon: SearchSuffixIcon
36470
+ };
36471
+
36472
+ export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };