@hero-design/rn 8.68.0-alpha.1 → 8.69.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 (392) hide show
  1. package/.turbo/turbo-build.log +8 -0
  2. package/CHANGELOG.md +27 -0
  3. package/es/index.js +706 -188
  4. package/lib/index.js +707 -187
  5. package/package.json +2 -2
  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/BottomSheet/Header.tsx +50 -27
  21. package/src/components/BottomSheet/StyledBottomSheet.tsx +35 -8
  22. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +352 -1
  23. package/src/components/BottomSheet/__tests__/index.spec.tsx +30 -0
  24. package/src/components/BottomSheet/index.tsx +47 -30
  25. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  27. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +21 -21
  28. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +12 -12
  29. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
  30. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  31. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  32. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -4
  33. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +3 -3
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +2 -2
  35. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +30 -30
  36. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  37. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -2
  38. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  39. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  40. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  41. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
  42. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  43. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  44. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  45. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
  46. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +6 -6
  47. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
  48. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  49. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  50. package/src/components/Progress/ProgressStep.tsx +87 -0
  51. package/src/components/Progress/StyledStep.tsx +48 -0
  52. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +214 -5
  53. package/src/components/Progress/__tests__/index.spec.js +26 -0
  54. package/src/components/Progress/index.tsx +6 -1
  55. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -10
  56. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +14 -14
  57. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  58. package/src/components/Search/SearchOneLine.tsx +196 -0
  59. package/src/components/Search/SearchSuffixIcon.tsx +37 -0
  60. package/src/components/Search/SearchTwoLine.tsx +64 -0
  61. package/src/components/Search/StyledSearch.tsx +67 -0
  62. package/src/components/Search/__tests__/SearchOneLine.spec.tsx +197 -0
  63. package/src/components/Search/__tests__/SearchSuffixIcon.spec.tsx +12 -0
  64. package/src/components/Search/__tests__/SearchTwoLine.spec.tsx +20 -0
  65. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +707 -0
  66. package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +134 -0
  67. package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +170 -0
  68. package/src/components/Search/__tests__/__snapshots__/utils.spec.tsx.snap +115 -0
  69. package/src/components/Search/__tests__/utils.spec.tsx +19 -0
  70. package/src/components/Search/index.tsx +17 -0
  71. package/src/components/Search/utils.tsx +31 -0
  72. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  73. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  74. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
  75. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +14 -14
  76. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
  77. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  78. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -8
  79. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  80. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  81. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  82. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -32
  83. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  84. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  85. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
  86. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  87. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +2 -2
  88. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +24 -9
  89. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +19 -9
  90. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +7 -2
  91. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +24 -9
  92. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +5 -5
  93. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +2 -2
  94. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +18 -18
  95. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -7
  96. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +1 -1
  97. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  98. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +1 -1
  99. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  100. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +1 -1
  101. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  102. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  103. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +1 -1
  104. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  105. package/src/index.ts +4 -0
  106. package/src/theme/ThemeSwitcher.tsx +2 -12
  107. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +152 -77
  108. package/src/theme/components/alert.ts +14 -5
  109. package/src/theme/components/badge.ts +21 -21
  110. package/src/theme/components/bottomSheet.ts +7 -0
  111. package/src/theme/components/progress.ts +11 -1
  112. package/src/theme/components/search.ts +56 -0
  113. package/src/theme/getTheme.ts +5 -2
  114. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +7 -7
  115. package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +50 -0
  116. package/src/theme/global/colors/__tests__/swagLightJobs.spec.ts +7 -0
  117. package/src/theme/global/colors/swagLight.ts +7 -8
  118. package/src/theme/global/colors/swagLightJobs.ts +11 -0
  119. package/src/theme/global/colors/types.ts +4 -0
  120. package/src/theme/global/index.ts +2 -0
  121. package/src/theme/index.ts +2 -0
  122. package/stats/8.67.0/rn-stats.html +4844 -0
  123. package/stats/8.68.0/rn-stats.html +4842 -0
  124. package/stats/8.69.0/rn-stats.html +4842 -0
  125. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  126. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  127. package/types/components/Accordion/index.d.ts +0 -0
  128. package/types/components/Alert/StyledAlert.d.ts +17 -2
  129. package/types/components/Alert/index.d.ts +0 -0
  130. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  131. package/types/components/Attachment/index.d.ts +0 -0
  132. package/types/components/Avatar/Avatar.d.ts +0 -0
  133. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  134. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  135. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  136. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  137. package/types/components/Avatar/index.d.ts +0 -0
  138. package/types/components/Badge/Status.d.ts +0 -0
  139. package/types/components/Badge/StyledBadge.d.ts +4 -0
  140. package/types/components/Badge/index.d.ts +6 -2
  141. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  142. package/types/components/BottomNavigation/index.d.ts +0 -0
  143. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  144. package/types/components/BottomSheet/Footer.d.ts +0 -0
  145. package/types/components/BottomSheet/Header.d.ts +3 -2
  146. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  147. package/types/components/BottomSheet/StyledBottomSheet.d.ts +16 -2
  148. package/types/components/BottomSheet/index.d.ts +5 -1
  149. package/types/components/Box/StyledBox.d.ts +1 -1
  150. package/types/components/Box/config.d.ts +0 -0
  151. package/types/components/Box/index.d.ts +0 -0
  152. package/types/components/Box/types.d.ts +0 -0
  153. package/types/components/Button/Button.d.ts +0 -0
  154. package/types/components/Button/IconButton.d.ts +0 -0
  155. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  156. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  157. package/types/components/Button/StyledButton.d.ts +0 -0
  158. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  159. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  160. package/types/components/Button/index.d.ts +0 -0
  161. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  162. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  163. package/types/components/Calendar/helpers.d.ts +0 -0
  164. package/types/components/Calendar/index.d.ts +0 -0
  165. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  166. package/types/components/Card/DataCard/index.d.ts +0 -0
  167. package/types/components/Card/StyledCard.d.ts +0 -0
  168. package/types/components/Card/index.d.ts +0 -0
  169. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  170. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  171. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  172. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  173. package/types/components/Carousel/contants.d.ts +0 -0
  174. package/types/components/Carousel/index.d.ts +0 -0
  175. package/types/components/Carousel/types.d.ts +0 -0
  176. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  177. package/types/components/Checkbox/index.d.ts +0 -0
  178. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  179. package/types/components/Collapse/index.d.ts +0 -0
  180. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  181. package/types/components/ContentNavigator/index.d.ts +0 -0
  182. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  183. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
  184. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  185. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  186. package/types/components/DatePicker/index.d.ts +0 -0
  187. package/types/components/DatePicker/types.d.ts +0 -0
  188. package/types/components/Divider/StyledDivider.d.ts +0 -0
  189. package/types/components/Divider/index.d.ts +0 -0
  190. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  191. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  192. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  193. package/types/components/Drawer/index.d.ts +0 -0
  194. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  195. package/types/components/Empty/index.d.ts +0 -0
  196. package/types/components/Error/StyledError.d.ts +0 -0
  197. package/types/components/Error/index.d.ts +0 -0
  198. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  199. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  200. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  201. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  202. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  203. package/types/components/FAB/FAB.d.ts +0 -0
  204. package/types/components/FAB/StyledFAB.d.ts +0 -0
  205. package/types/components/FAB/index.d.ts +0 -0
  206. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  207. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  208. package/types/components/Icon/IconList.d.ts +0 -0
  209. package/types/components/Icon/index.d.ts +0 -0
  210. package/types/components/Icon/utils.d.ts +0 -0
  211. package/types/components/Image/index.d.ts +0 -0
  212. package/types/components/List/BasicListItem.d.ts +0 -0
  213. package/types/components/List/ListItem.d.ts +0 -0
  214. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  215. package/types/components/List/StyledListItem.d.ts +0 -0
  216. package/types/components/List/index.d.ts +0 -0
  217. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  218. package/types/components/PageControl/index.d.ts +0 -0
  219. package/types/components/PinInput/PinCell.d.ts +0 -0
  220. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  221. package/types/components/PinInput/index.d.ts +0 -0
  222. package/types/components/Progress/ProgressBar.d.ts +0 -0
  223. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  224. package/types/components/Progress/ProgressStep.d.ts +20 -0
  225. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  226. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  227. package/types/components/Progress/StyledStep.d.ts +21 -0
  228. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  229. package/types/components/Progress/constants.d.ts +0 -0
  230. package/types/components/Progress/index.d.ts +1 -0
  231. package/types/components/Progress/types.d.ts +0 -0
  232. package/types/components/Radio/Radio.d.ts +0 -0
  233. package/types/components/Radio/RadioGroup.d.ts +0 -0
  234. package/types/components/Radio/StyledRadio.d.ts +0 -0
  235. package/types/components/Radio/index.d.ts +0 -0
  236. package/types/components/Radio/types.d.ts +0 -0
  237. package/types/components/RefreshControl/index.d.ts +0 -0
  238. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  239. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  240. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  241. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  242. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  243. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  244. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  245. package/types/components/RichTextEditor/constants.d.ts +0 -0
  246. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  247. package/types/components/RichTextEditor/index.d.ts +0 -0
  248. package/types/components/RichTextEditor/types.d.ts +0 -0
  249. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  250. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  251. package/types/components/Search/SearchOneLine.d.ts +60 -0
  252. package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
  253. package/types/components/Search/SearchTwoLine.d.ts +31 -0
  254. package/types/components/Search/StyledSearch.d.ts +44 -0
  255. package/types/components/Search/index.d.ts +10 -0
  256. package/types/components/Search/utils.d.ts +8 -0
  257. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  258. package/types/components/SectionHeading/index.d.ts +0 -0
  259. package/types/components/Select/BaseOptionList.d.ts +0 -0
  260. package/types/components/Select/Footer.d.ts +0 -0
  261. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  262. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  263. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  264. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  265. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  266. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  267. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  268. package/types/components/Select/StyledSelect.d.ts +0 -0
  269. package/types/components/Select/helpers.d.ts +0 -0
  270. package/types/components/Select/index.d.ts +0 -0
  271. package/types/components/Select/types.d.ts +0 -0
  272. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  273. package/types/components/Skeleton/index.d.ts +0 -0
  274. package/types/components/Slider/index.d.ts +0 -0
  275. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  276. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  277. package/types/components/Spinner/index.d.ts +0 -0
  278. package/types/components/Success/StyledSuccess.d.ts +0 -0
  279. package/types/components/Success/index.d.ts +0 -0
  280. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  281. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  282. package/types/components/Swipeable/index.d.ts +0 -0
  283. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  284. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  285. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  286. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  287. package/types/components/Switch/index.d.ts +0 -0
  288. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  289. package/types/components/Tabs/SceneView.d.ts +0 -0
  290. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  291. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  292. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  293. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  294. package/types/components/Tabs/index.d.ts +0 -0
  295. package/types/components/Tabs/useIsFocused.d.ts +0 -0
  296. package/types/components/Tabs/utils.d.ts +0 -0
  297. package/types/components/Tag/StyledTag.d.ts +0 -0
  298. package/types/components/Tag/index.d.ts +0 -0
  299. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  300. package/types/components/TextInput/index.d.ts +0 -0
  301. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  302. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  303. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  304. package/types/components/TimePicker/index.d.ts +0 -0
  305. package/types/components/TimePicker/types.d.ts +0 -0
  306. package/types/components/Toast/StyledToast.d.ts +0 -0
  307. package/types/components/Toast/Toast.d.ts +0 -0
  308. package/types/components/Toast/ToastContainer.d.ts +0 -0
  309. package/types/components/Toast/ToastContext.d.ts +0 -0
  310. package/types/components/Toast/ToastProvider.d.ts +0 -0
  311. package/types/components/Toast/index.d.ts +0 -0
  312. package/types/components/Toast/types.d.ts +0 -0
  313. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  314. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  315. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  316. package/types/components/Toolbar/index.d.ts +0 -0
  317. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  318. package/types/components/Typography/Text/index.d.ts +0 -0
  319. package/types/components/Typography/index.d.ts +0 -0
  320. package/types/index.d.ts +3 -2
  321. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  322. package/types/theme/ThemeProvider.d.ts +0 -0
  323. package/types/theme/ThemeSwitcher.d.ts +1 -1
  324. package/types/theme/components/accordion.d.ts +0 -0
  325. package/types/theme/components/alert.d.ts +14 -5
  326. package/types/theme/components/attachment.d.ts +0 -0
  327. package/types/theme/components/avatar.d.ts +0 -0
  328. package/types/theme/components/badge.d.ts +21 -21
  329. package/types/theme/components/bottomNavigation.d.ts +0 -0
  330. package/types/theme/components/bottomSheet.d.ts +7 -0
  331. package/types/theme/components/button.d.ts +0 -0
  332. package/types/theme/components/calendar.d.ts +0 -0
  333. package/types/theme/components/card.d.ts +0 -0
  334. package/types/theme/components/cardCarousel.d.ts +0 -0
  335. package/types/theme/components/carousel.d.ts +0 -0
  336. package/types/theme/components/checkbox.d.ts +0 -0
  337. package/types/theme/components/contentNavigator.d.ts +0 -0
  338. package/types/theme/components/datePicker.d.ts +0 -0
  339. package/types/theme/components/divider.d.ts +0 -0
  340. package/types/theme/components/drawer.d.ts +0 -0
  341. package/types/theme/components/empty.d.ts +0 -0
  342. package/types/theme/components/error.d.ts +0 -0
  343. package/types/theme/components/fab.d.ts +0 -0
  344. package/types/theme/components/icon.d.ts +0 -0
  345. package/types/theme/components/image.d.ts +0 -0
  346. package/types/theme/components/list.d.ts +0 -0
  347. package/types/theme/components/pageControl.d.ts +0 -0
  348. package/types/theme/components/pinInput.d.ts +0 -0
  349. package/types/theme/components/progress.d.ts +9 -0
  350. package/types/theme/components/radio.d.ts +0 -0
  351. package/types/theme/components/refreshControl.d.ts +0 -0
  352. package/types/theme/components/richTextEditor.d.ts +0 -0
  353. package/types/theme/components/search.d.ts +38 -0
  354. package/types/theme/components/sectionHeading.d.ts +0 -0
  355. package/types/theme/components/select.d.ts +0 -0
  356. package/types/theme/components/skeleton.d.ts +0 -0
  357. package/types/theme/components/slider.d.ts +0 -0
  358. package/types/theme/components/spinner.d.ts +0 -0
  359. package/types/theme/components/success.d.ts +0 -0
  360. package/types/theme/components/swipeable.d.ts +0 -0
  361. package/types/theme/components/switch.d.ts +0 -0
  362. package/types/theme/components/tabs.d.ts +0 -0
  363. package/types/theme/components/tag.d.ts +0 -0
  364. package/types/theme/components/textInput.d.ts +0 -0
  365. package/types/theme/components/timePicker.d.ts +0 -0
  366. package/types/theme/components/toast.d.ts +0 -0
  367. package/types/theme/components/toolbar.d.ts +0 -0
  368. package/types/theme/components/typography.d.ts +0 -0
  369. package/types/theme/getTheme.d.ts +2 -0
  370. package/types/theme/global/borders.d.ts +0 -0
  371. package/types/theme/global/colors/eBens.d.ts +0 -0
  372. package/types/theme/global/colors/global.d.ts +0 -0
  373. package/types/theme/global/colors/globalDark.d.ts +0 -0
  374. package/types/theme/global/colors/jobs.d.ts +0 -0
  375. package/types/theme/global/colors/swag.d.ts +0 -0
  376. package/types/theme/global/colors/swagDark.d.ts +0 -0
  377. package/types/theme/global/colors/swagLightJobs.d.ts +47 -0
  378. package/types/theme/global/colors/types.d.ts +2 -0
  379. package/types/theme/global/colors/wallet.d.ts +0 -0
  380. package/types/theme/global/colors/work.d.ts +0 -0
  381. package/types/theme/global/index.d.ts +4 -1
  382. package/types/theme/global/scale.d.ts +0 -0
  383. package/types/theme/global/sizes.d.ts +0 -0
  384. package/types/theme/global/space.d.ts +0 -0
  385. package/types/theme/global/typography.d.ts +0 -0
  386. package/types/theme/index.d.ts +2 -2
  387. package/types/types.d.ts +0 -0
  388. package/types/utils/functions.d.ts +0 -0
  389. package/types/utils/helpers.d.ts +0 -0
  390. package/types/utils/hooks.d.ts +0 -0
  391. package/types/utils/scale.d.ts +0 -0
  392. package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -35
package/es/index.js CHANGED
@@ -1741,7 +1741,7 @@ var palette$4 = Object.assign(Object.assign({}, palette$9), {
1741
1741
  });
1742
1742
  var violet$3 = colorScales.violet;
1743
1743
  var palette$3 = Object.assign(Object.assign({}, palette$9), {
1744
- violet: violet$3.base
1744
+ violetLight90: violet$3.lighten90
1745
1745
  });
1746
1746
  var scarletGum = colorScales.scarletGum,
1747
1747
  violet1 = colorScales.violet1,
@@ -1908,18 +1908,25 @@ var swagDarkBrandSystemPalette = {
1908
1908
  var swagDarkSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette), swagDarkBrandSystemPalette);
1909
1909
 
1910
1910
  var swagBrandSystemPallete = {
1911
- primary: palette$3.violet,
1912
- onPrimary: '#FDFBFF',
1913
- secondary: '#460078',
1911
+ primary: '#460078',
1912
+ onPrimary: '#fdfbff',
1913
+ secondary: '#b382fd',
1914
1914
  onSecondary: palette$3.white,
1915
- defaultSurface: '#FDFBFF',
1916
- highlightedSurface: '#F1E9FB',
1915
+ defaultSurface: '#fdfbff',
1916
+ highlightedSurface: palette$3.violetLight90,
1917
1917
  pressedSurface: '#380060',
1918
- decorativePrimary: '#FDFBFF',
1919
- decorativePrimarySurface: '#DDC8F5'
1918
+ decorativePrimary: '#fdfbff',
1919
+ decorativePrimarySurface: '#dacce4'
1920
1920
  };
1921
1921
  var swagSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette$1), swagBrandSystemPallete);
1922
1922
 
1923
+ var swagLightJobsSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1924
+ secondary: '#40d1ff',
1925
+ onSecondary: '#460078',
1926
+ decorativeSecondary: '#fdfbff',
1927
+ decorativeSecondarySurface: '#d9f6ff'
1928
+ });
1929
+
1923
1930
  var workBrandSystemPallete = {
1924
1931
  primary: palette.black,
1925
1932
  onPrimary: palette.white,
@@ -2156,11 +2163,20 @@ var getAccordionTheme = function getAccordionTheme(theme) {
2156
2163
 
2157
2164
  var getAlertTheme = function getAlertTheme(theme) {
2158
2165
  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,
2166
+ backgrounds: {
2167
+ success: theme.colors.successSurface,
2168
+ warning: theme.colors.warningSurface,
2169
+ error: theme.colors.errorSurface,
2170
+ info: theme.colors.infoSurface,
2171
+ notification: theme.colors.defaultGlobalSurface
2172
+ },
2173
+ texts: {
2174
+ success: theme.colors.onSuccessSurface,
2175
+ warning: theme.colors.onWarningSurface,
2176
+ error: theme.colors.onErrorSurface,
2177
+ info: theme.colors.onInfoSurface,
2178
+ notification: theme.colors.onDefaultGlobalSurface
2179
+ },
2164
2180
  divider: theme.colors.secondaryOutline
2165
2181
  };
2166
2182
  var sizes = {
@@ -2281,22 +2297,36 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2281
2297
  text: theme.colors.onDarkGlobalSurface
2282
2298
  };
2283
2299
  var fonts = {
2284
- "default": theme.fonts.neutral.semiBold
2300
+ medium: theme.fonts.neutral.regular,
2301
+ small: theme.fonts.neutral.semiBold
2285
2302
  };
2286
2303
  var fontSizes = {
2287
- "default": theme.fontSizes.small
2304
+ medium: theme.fontSizes.small,
2305
+ small: 8
2288
2306
  };
2289
2307
  var lineHeights = {
2290
- "default": theme.lineHeights.small
2308
+ medium: theme.lineHeights.small,
2309
+ small: 10
2291
2310
  };
2292
2311
  var sizes = {
2293
- height: theme.fontSizes.small + theme.sizes.small,
2294
- minWidth: theme.fontSizes.small + theme.sizes.small,
2312
+ medium: {
2313
+ height: theme.sizes.large,
2314
+ minWidth: theme.sizes.large
2315
+ },
2316
+ small: {
2317
+ height: theme.sizes.medium,
2318
+ minWidth: theme.sizes.medium
2319
+ },
2295
2320
  statusHeight: theme.sizes.small,
2296
2321
  statusWidth: theme.sizes.small
2297
2322
  };
2298
2323
  var space = {
2299
- horizontalPadding: theme.space.small,
2324
+ medium: {
2325
+ horizontalPadding: theme.space.small
2326
+ },
2327
+ small: {
2328
+ horizontalPadding: theme.space.xsmall
2329
+ },
2300
2330
  statusPositionTop: -theme.space.xxsmall,
2301
2331
  statusPositionRight: -theme.space.xxsmall
2302
2332
  };
@@ -2342,17 +2372,22 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2342
2372
  var colors = {
2343
2373
  shadow: theme.colors.primaryOutline,
2344
2374
  background: theme.colors.defaultGlobalSurface,
2345
- backdrop: theme.colors.overlayGlobalSurface
2375
+ backdrop: theme.colors.overlayGlobalSurface,
2376
+ floatingHeaderIconBackground: theme.colors.archivedSurface
2346
2377
  };
2347
2378
  var sizes = {
2348
- closeIcon: theme.sizes.xxxlarge
2379
+ closeIcon: theme.sizes.xxxlarge,
2380
+ floatingCloseIcon: theme.sizes.smallMedium
2349
2381
  };
2350
2382
  var space = {
2351
2383
  headerWrapperVerticalPadding: theme.space.small,
2352
2384
  headerWrapperHorizontalPadding: theme.space.medium,
2353
2385
  closeIconMargin: theme.space.smallMedium,
2354
2386
  footerVerticalPadding: theme.space.xxsmall,
2355
- footerHorizontalPadding: theme.space.smallMedium
2387
+ footerHorizontalPadding: theme.space.smallMedium,
2388
+ floatingContentMargin: theme.space.medium,
2389
+ floatingInnerPadding: theme.space.small,
2390
+ floatingHeaderIconPadding: theme.space.small
2356
2391
  };
2357
2392
  var shadows = {
2358
2393
  offset: {
@@ -2364,7 +2399,9 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2364
2399
  elevation: 10
2365
2400
  };
2366
2401
  var radii = {
2367
- "default": theme.radii.xlarge
2402
+ "default": theme.radii.xlarge,
2403
+ floating: theme.radii['5xlarge'],
2404
+ floatingHeaderIcon: theme.radii.rounded
2368
2405
  };
2369
2406
  return {
2370
2407
  colors: colors,
@@ -3017,20 +3054,30 @@ var getProgressTheme = function getProgressTheme(theme) {
3017
3054
  dangerInverted: theme.colors.mutedError,
3018
3055
  infoInverted: theme.colors.mutedInfo,
3019
3056
  archivedInverted: theme.colors.mutedArchived
3057
+ },
3058
+ step: {
3059
+ complete: theme.colors.primary,
3060
+ incomplete: theme.colors.archivedSurface,
3061
+ current: '#DACCE4'
3020
3062
  }
3021
3063
  };
3022
3064
  var sizes = {
3023
3065
  circleDiameter: theme.sizes['6xlarge'],
3024
3066
  circleCompletenessHeight: theme.sizes.small,
3025
- barHeight: theme.sizes.small
3067
+ barHeight: theme.sizes.small,
3068
+ stepHeight: theme.sizes.small
3026
3069
  };
3027
3070
  var radii = {
3028
3071
  "default": theme.radii.rounded
3029
3072
  };
3073
+ var space = {
3074
+ stepGap: theme.space.xsmall
3075
+ };
3030
3076
  return {
3031
3077
  colors: colors,
3032
3078
  sizes: sizes,
3033
- radii: radii
3079
+ radii: radii,
3080
+ space: space
3034
3081
  };
3035
3082
  };
3036
3083
 
@@ -3763,9 +3810,55 @@ var getTypographyTheme = function getTypographyTheme(theme) {
3763
3810
  };
3764
3811
  };
3765
3812
 
3813
+ var getSearchTheme = function getSearchTheme(theme) {
3814
+ var colors = {
3815
+ containerBackground: theme.colors.neutralGlobalSurface,
3816
+ surfixBackground: theme.colors.defaultGlobalSurface,
3817
+ text: theme.colors.onDefaultGlobalSurface,
3818
+ borders: theme.colors.primaryOutline
3819
+ };
3820
+ var space = {
3821
+ containerHorizontalPadding: theme.space.small,
3822
+ containerVerticalPadding: theme.space.small,
3823
+ inputHorizontalMargin: theme.space.small,
3824
+ prefixHorizontalPadding: theme.space.xsmall,
3825
+ surfixPadding: theme.space.small,
3826
+ badgeTop: -theme.space.xxsmall,
3827
+ badgeRight: -theme.space.xxsmall
3828
+ };
3829
+ var fonts = {
3830
+ text: theme.fonts.neutral.regular
3831
+ };
3832
+ var fontSizes = {
3833
+ text: theme.fontSizes.large
3834
+ };
3835
+ var borderWidths = {
3836
+ container: {
3837
+ normal: theme.borderWidths.base,
3838
+ focused: theme.borderWidths.medium
3839
+ }
3840
+ };
3841
+ var radii = {
3842
+ container: theme.radii.rounded,
3843
+ surfix: theme.radii.rounded
3844
+ };
3845
+ var sizes = {
3846
+ surfixSize: theme.sizes.xxlarge
3847
+ };
3848
+ return {
3849
+ colors: colors,
3850
+ space: space,
3851
+ fonts: fonts,
3852
+ fontSizes: fontSizes,
3853
+ borderWidths: borderWidths,
3854
+ radii: radii,
3855
+ sizes: sizes
3856
+ };
3857
+ };
3858
+
3766
3859
  var getTheme$1 = function getTheme() {
3767
3860
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
3768
- var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette;
3861
+ var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
3769
3862
  var globalTheme = getGlobalTheme(scale, systemPallete);
3770
3863
  return _objectSpread2(_objectSpread2({}, globalTheme), {}, {
3771
3864
  __hd__: {
@@ -3800,6 +3893,7 @@ var getTheme$1 = function getTheme() {
3800
3893
  rate: getRateTheme(globalTheme),
3801
3894
  refreshControl: getRefreshControlTheme(globalTheme),
3802
3895
  richTextEditor: getRichTextEditorTheme(globalTheme),
3896
+ search: getSearchTheme(globalTheme),
3803
3897
  sectionHeading: getSectionHeadingTheme(globalTheme),
3804
3898
  select: getSelectTheme(globalTheme),
3805
3899
  skeleton: getSkeletonTheme(globalTheme),
@@ -4984,7 +5078,7 @@ var useTheme = useTheme$1;
4984
5078
 
4985
5079
  var ThemeSwitcher = function ThemeSwitcher(_ref) {
4986
5080
  var _ref$name = _ref.name,
4987
- name = _ref$name === void 0 ? 'swagLight' : _ref$name,
5081
+ name = _ref$name === void 0 ? 'swag' : _ref$name,
4988
5082
  children = _ref.children;
4989
5083
  var theme = useMemo(function () {
4990
5084
  switch (name) {
@@ -5000,8 +5094,6 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
5000
5094
  return getTheme$1(scale$1, eBensSystemPalette);
5001
5095
  case 'swagDark':
5002
5096
  return getTheme$1(scale$1, swagDarkSystemPalette);
5003
- case 'swagLight':
5004
- return getTheme$1(scale$1, swagSystemPalette);
5005
5097
  }
5006
5098
  }, [name]);
5007
5099
  return /*#__PURE__*/React__default.createElement(ThemeProvider, {
@@ -6893,7 +6985,7 @@ var StyledText$3 = index$9(Text$1)(function (_ref) {
6893
6985
  });
6894
6986
  });
6895
6987
 
6896
- var _excluded$D = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6988
+ var _excluded$F = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6897
6989
  var Text = function Text(_ref) {
6898
6990
  var children = _ref.children,
6899
6991
  _ref$fontSize = _ref.fontSize,
@@ -6906,7 +6998,7 @@ var Text = function Text(_ref) {
6906
6998
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6907
6999
  _ref$allowFontScaling = _ref.allowFontScaling,
6908
7000
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6909
- nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7001
+ nativeProps = _objectWithoutProperties(_ref, _excluded$F);
6910
7002
  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
7003
  return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
6912
7004
  themeFontSize: fontSize,
@@ -6936,7 +7028,7 @@ var StyledCaption = index$9(Text$1)(function (_ref) {
6936
7028
  };
6937
7029
  });
6938
7030
 
6939
- var _excluded$C = ["children", "fontWeight", "intent", "allowFontScaling"];
7031
+ var _excluded$E = ["children", "fontWeight", "intent", "allowFontScaling"];
6940
7032
  var Caption = function Caption(_ref) {
6941
7033
  var children = _ref.children,
6942
7034
  _ref$fontWeight = _ref.fontWeight,
@@ -6945,7 +7037,7 @@ var Caption = function Caption(_ref) {
6945
7037
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6946
7038
  _ref$allowFontScaling = _ref.allowFontScaling,
6947
7039
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6948
- nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7040
+ nativeProps = _objectWithoutProperties(_ref, _excluded$E);
6949
7041
  return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
6950
7042
  themeFontWeight: fontWeight,
6951
7043
  themeIntent: intent,
@@ -6964,14 +7056,14 @@ var StyledLabel$1 = index$9(Text$1)(function (_ref) {
6964
7056
  };
6965
7057
  });
6966
7058
 
6967
- var _excluded$B = ["children", "intent", "allowFontScaling"];
7059
+ var _excluded$D = ["children", "intent", "allowFontScaling"];
6968
7060
  var Label = function Label(_ref) {
6969
7061
  var children = _ref.children,
6970
7062
  _ref$intent = _ref.intent,
6971
7063
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6972
7064
  _ref$allowFontScaling = _ref.allowFontScaling,
6973
7065
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6974
- nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7066
+ nativeProps = _objectWithoutProperties(_ref, _excluded$D);
6975
7067
  return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
6976
7068
  themeIntent: intent,
6977
7069
  allowFontScaling: allowFontScaling
@@ -6992,7 +7084,7 @@ var StyledTitle$1 = index$9(Text$1)(function (_ref) {
6992
7084
  };
6993
7085
  });
6994
7086
 
6995
- var _excluded$A = ["children", "intent", "allowFontScaling", "level", "typeface"];
7087
+ var _excluded$C = ["children", "intent", "allowFontScaling", "level", "typeface"];
6996
7088
  var Title = function Title(_ref) {
6997
7089
  var children = _ref.children,
6998
7090
  _ref$intent = _ref.intent,
@@ -7003,7 +7095,7 @@ var Title = function Title(_ref) {
7003
7095
  level = _ref$level === void 0 ? 'h1' : _ref$level,
7004
7096
  _ref$typeface = _ref.typeface,
7005
7097
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7006
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
7098
+ nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7007
7099
  return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
7008
7100
  themeLevel: level,
7009
7101
  themeTypeface: typeface,
@@ -7024,7 +7116,7 @@ var FONTSIZE_MAP = {
7024
7116
  'regular-bold': 'regular',
7025
7117
  'small-bold': 'small'
7026
7118
  };
7027
- var StyledBody = index$9(Text$1)(function (_ref) {
7119
+ var StyledBody$1 = index$9(Text$1)(function (_ref) {
7028
7120
  var themeIntent = _ref.themeIntent,
7029
7121
  theme = _ref.theme,
7030
7122
  themeTypeface = _ref.themeTypeface,
@@ -7038,7 +7130,7 @@ var StyledBody = index$9(Text$1)(function (_ref) {
7038
7130
  };
7039
7131
  });
7040
7132
 
7041
- var _excluded$z = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7133
+ var _excluded$B = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7042
7134
  var Body = function Body(_ref) {
7043
7135
  var children = _ref.children,
7044
7136
  _ref$intent = _ref.intent,
@@ -7049,8 +7141,8 @@ var Body = function Body(_ref) {
7049
7141
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7050
7142
  _ref$variant = _ref.variant,
7051
7143
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
7052
- nativeProps = _objectWithoutProperties(_ref, _excluded$z);
7053
- return /*#__PURE__*/React__default.createElement(StyledBody, _extends$1({}, nativeProps, {
7144
+ nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7145
+ return /*#__PURE__*/React__default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
7054
7146
  themeTypeface: typeface,
7055
7147
  themeIntent: intent,
7056
7148
  themeVariant: variant,
@@ -7616,10 +7708,10 @@ var StyledHeroIcon = index$9(HeroIcon)(function (_ref) {
7616
7708
  };
7617
7709
  });
7618
7710
 
7619
- var _excluded$y = ["style"];
7711
+ var _excluded$A = ["style"];
7620
7712
  var AnimatedIcon = function AnimatedIcon(_ref) {
7621
7713
  var style = _ref.style,
7622
- otherProps = _objectWithoutProperties(_ref, _excluded$y);
7714
+ otherProps = _objectWithoutProperties(_ref, _excluded$A);
7623
7715
  var rotateAnimation = useRef(new Animated.Value(0));
7624
7716
  useEffect(function () {
7625
7717
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -7724,7 +7816,7 @@ var AccordionItem = function AccordionItem(_ref) {
7724
7816
  }, content));
7725
7817
  };
7726
7818
 
7727
- var _excluded$x = ["key"];
7819
+ var _excluded$z = ["key"];
7728
7820
  var Accordion = function Accordion(_ref) {
7729
7821
  var items = _ref.items,
7730
7822
  activeItemKey = _ref.activeItemKey,
@@ -7745,7 +7837,7 @@ var Accordion = function Accordion(_ref) {
7745
7837
  testID: testID
7746
7838
  }, items.map(function (_ref2, index) {
7747
7839
  var key = _ref2.key,
7748
- props = _objectWithoutProperties(_ref2, _excluded$x);
7840
+ props = _objectWithoutProperties(_ref2, _excluded$z);
7749
7841
  var open = _activeItemKey === key;
7750
7842
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
7751
7843
  key: key
@@ -7768,7 +7860,7 @@ var Container$1 = index$9(View)(function (_ref) {
7768
7860
  themeIntent = _ref.themeIntent;
7769
7861
  return {
7770
7862
  borderRadius: themeVariant === 'rounded' ? theme.__hd__.alert.radii["default"] : 0,
7771
- backgroundColor: theme.__hd__.alert.colors[themeIntent],
7863
+ backgroundColor: theme.__hd__.alert.colors.backgrounds[themeIntent],
7772
7864
  minHeight: theme.__hd__.alert.sizes.height,
7773
7865
  flexDirection: 'row'
7774
7866
  };
@@ -7780,16 +7872,30 @@ var IconContainer$1 = index$9(View)(function (_ref2) {
7780
7872
  paddingLeft: theme.__hd__.alert.space.iconLeftPadding
7781
7873
  };
7782
7874
  });
7783
- var TextContainer$1 = index$9(View)(function (_ref3) {
7784
- var theme = _ref3.theme;
7875
+ var StyledIcon$2 = index$9(Icon)(function (_ref3) {
7876
+ var theme = _ref3.theme,
7877
+ themeIntent = _ref3.themeIntent;
7878
+ return {
7879
+ color: theme.__hd__.alert.colors.texts[themeIntent]
7880
+ };
7881
+ });
7882
+ var TextContainer$1 = index$9(View)(function (_ref4) {
7883
+ var theme = _ref4.theme;
7785
7884
  return {
7786
7885
  paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
7787
7886
  flex: 1
7788
7887
  };
7789
7888
  });
7790
- var ContentContainer$1 = index$9(View)(function (_ref4) {
7791
- var theme = _ref4.theme,
7792
- showDivider = _ref4.showDivider;
7889
+ var StyledBody = index$9(Typography.Body)(function (_ref5) {
7890
+ var theme = _ref5.theme,
7891
+ themeIntent = _ref5.themeIntent;
7892
+ return {
7893
+ color: theme.__hd__.alert.colors.texts[themeIntent]
7894
+ };
7895
+ });
7896
+ var ContentContainer$1 = index$9(View)(function (_ref6) {
7897
+ var theme = _ref6.theme,
7898
+ showDivider = _ref6.showDivider;
7793
7899
  return {
7794
7900
  paddingVertical: theme.__hd__.alert.space.contentPaddingHorizontal,
7795
7901
  flex: 1,
@@ -7798,8 +7904,8 @@ var ContentContainer$1 = index$9(View)(function (_ref4) {
7798
7904
  flexDirection: 'row'
7799
7905
  };
7800
7906
  });
7801
- var CTAWrapper$1 = index$9(TouchableOpacity)(function (_ref5) {
7802
- var theme = _ref5.theme;
7907
+ var CTAWrapper$1 = index$9(TouchableOpacity)(function (_ref7) {
7908
+ var theme = _ref7.theme;
7803
7909
  return {
7804
7910
  paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
7805
7911
  justifyContent: 'center'
@@ -7821,12 +7927,14 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
7821
7927
  }
7822
7928
  };
7823
7929
  var AlertIcon = function AlertIcon(_ref) {
7824
- var icon = _ref.icon;
7930
+ var icon = _ref.icon,
7931
+ intent = _ref.intent;
7825
7932
  return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
7826
7933
  testID: "alert-left-icon"
7827
- }, /*#__PURE__*/React__default.createElement(Icon, {
7934
+ }, /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7828
7935
  icon: icon,
7829
- size: "small"
7936
+ size: "small",
7937
+ themeIntent: intent
7830
7938
  })) : null;
7831
7939
  };
7832
7940
  var Alert = function Alert(_ref2) {
@@ -7850,23 +7958,28 @@ var Alert = function Alert(_ref2) {
7850
7958
  }, /*#__PURE__*/React__default.createElement(ContentContainer$1, {
7851
7959
  showDivider: !!onClose
7852
7960
  }, 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"
7961
+ icon: icon || getIntentIcon$1(intent),
7962
+ intent: intent
7963
+ }) : null, /*#__PURE__*/React__default.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7964
+ variant: "small-bold",
7965
+ themeIntent: intent
7966
+ }, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7967
+ variant: "small",
7968
+ themeIntent: intent
7858
7969
  }, content) : content)), onClose ? /*#__PURE__*/React__default.createElement(CTAWrapper$1, {
7859
7970
  onPress: onClose,
7860
7971
  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, {
7972
+ }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7973
+ variant: "small-bold",
7974
+ themeIntent: intent
7975
+ }, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7864
7976
  icon: "cancel",
7865
- size: "small"
7977
+ size: "small",
7978
+ themeIntent: intent
7866
7979
  })) : null);
7867
7980
  };
7868
7981
 
7869
- var StyledContainer$6 = index$9(View)({
7982
+ var StyledContainer$7 = index$9(View)({
7870
7983
  alignItems: 'center',
7871
7984
  flexDirection: 'row'
7872
7985
  });
@@ -7908,7 +8021,7 @@ var Attachment = function Attachment(_ref) {
7908
8021
  backgroundHighlighted = _ref$backgroundHighli === void 0 ? false : _ref$backgroundHighli,
7909
8022
  style = _ref.style,
7910
8023
  testID = _ref.testID;
7911
- return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
8024
+ return /*#__PURE__*/React__default.createElement(StyledContainer$7, {
7912
8025
  testID: testID,
7913
8026
  style: style
7914
8027
  }, /*#__PURE__*/React__default.createElement(StyledContentContainer$1, {
@@ -8218,7 +8331,7 @@ var borderWidths = {
8218
8331
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8219
8332
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8220
8333
 
8221
- var _excluded$w = ["theme"];
8334
+ var _excluded$y = ["theme"];
8222
8335
  var getThemeValue = function getThemeValue(theme, key, props) {
8223
8336
  var propConfig = config[key];
8224
8337
  var propValue = props[key];
@@ -8245,18 +8358,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8245
8358
  var configKeys = Object.keys(config);
8246
8359
  var StyledBox = index$9(View)(function (_ref5) {
8247
8360
  var theme = _ref5.theme,
8248
- otherProps = _objectWithoutProperties(_ref5, _excluded$w);
8361
+ otherProps = _objectWithoutProperties(_ref5, _excluded$y);
8249
8362
  var styleProps = pick(configKeys, otherProps);
8250
8363
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8251
8364
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8252
8365
  });
8253
8366
 
8254
- var _excluded$v = ["children", "style", "testID"];
8367
+ var _excluded$x = ["children", "style", "testID"];
8255
8368
  var Box = function Box(_ref) {
8256
8369
  var children = _ref.children,
8257
8370
  style = _ref.style,
8258
8371
  testID = _ref.testID,
8259
- otherProps = _objectWithoutProperties(_ref, _excluded$v);
8372
+ otherProps = _objectWithoutProperties(_ref, _excluded$x);
8260
8373
  return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
8261
8374
  style: style,
8262
8375
  testID: testID
@@ -8436,20 +8549,25 @@ var index$8 = Object.assign(Avatar, {
8436
8549
  var StyledView$2 = index$9(Animated.View)(function (_ref) {
8437
8550
  var themeIntent = _ref.themeIntent,
8438
8551
  themePadding = _ref.themePadding,
8552
+ themeSize = _ref.themeSize,
8439
8553
  theme = _ref.theme;
8440
8554
  return {
8441
- height: theme.__hd__.badge.sizes.height,
8442
- minWidth: theme.__hd__.badge.sizes.minWidth,
8555
+ height: theme.__hd__.badge.sizes[themeSize].height,
8556
+ minWidth: theme.__hd__.badge.sizes[themeSize].minWidth,
8443
8557
  alignItems: 'center',
8444
8558
  justifyContent: 'center',
8445
8559
  backgroundColor: theme.__hd__.badge.colors[themeIntent],
8446
8560
  borderRadius: theme.radii.rounded,
8447
- paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
8561
+ paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space[themeSize].horizontalPadding : undefined
8448
8562
  };
8449
8563
  });
8450
8564
  var StyledText$1 = index$9(Typography.Caption)(function (_ref2) {
8451
- var theme = _ref2.theme;
8565
+ var theme = _ref2.theme,
8566
+ themeSize = _ref2.themeSize;
8452
8567
  return {
8568
+ fontSize: theme.__hd__.badge.fontSizes[themeSize],
8569
+ lineHeight: theme.__hd__.badge.lineHeights[themeSize],
8570
+ fontFamily: theme.__hd__.badge.fonts[themeSize],
8453
8571
  color: theme.__hd__.badge.colors.text,
8454
8572
  includeFontPadding: false,
8455
8573
  textAlignVertical: 'center',
@@ -8470,7 +8588,7 @@ var StyledStatus = index$9(Animated.View)(function (_ref3) {
8470
8588
  };
8471
8589
  });
8472
8590
 
8473
- var _excluded$u = ["children", "visible", "intent", "style", "testID"];
8591
+ var _excluded$w = ["children", "visible", "intent", "style", "testID"];
8474
8592
  var Status = function Status(_ref) {
8475
8593
  var children = _ref.children,
8476
8594
  _ref$visible = _ref.visible,
@@ -8479,7 +8597,7 @@ var Status = function Status(_ref) {
8479
8597
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8480
8598
  style = _ref.style,
8481
8599
  testID = _ref.testID,
8482
- nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8600
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
8483
8601
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8484
8602
  opacity = _React$useRef.current;
8485
8603
  var isFirstRendering = React__default.useRef(true);
@@ -8512,7 +8630,7 @@ var Status = function Status(_ref) {
8512
8630
  }));
8513
8631
  };
8514
8632
 
8515
- var _excluded$t = ["content", "visible", "max", "intent", "style", "testID"];
8633
+ var _excluded$v = ["content", "visible", "max", "intent", "style", "testID", "size"];
8516
8634
  var DEFAULT_MAX_NUMBER = 99;
8517
8635
  var getPaddingState = function getPaddingState(content) {
8518
8636
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8527,7 +8645,9 @@ var Badge = function Badge(_ref) {
8527
8645
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8528
8646
  style = _ref.style,
8529
8647
  testID = _ref.testID,
8530
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8648
+ _ref$size = _ref.size,
8649
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
8650
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8531
8651
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8532
8652
  opacity = _React$useRef.current;
8533
8653
  var isFirstRendering = React__default.useRef(true);
@@ -8547,6 +8667,7 @@ var Badge = function Badge(_ref) {
8547
8667
  return /*#__PURE__*/React__default.createElement(StyledView$2, _extends$1({}, nativeProps, {
8548
8668
  themeIntent: intent,
8549
8669
  themePadding: getPaddingState(content),
8670
+ themeSize: size,
8550
8671
  style: [{
8551
8672
  opacity: opacity,
8552
8673
  transform: [{
@@ -8557,7 +8678,9 @@ var Badge = function Badge(_ref) {
8557
8678
  }]
8558
8679
  }, style],
8559
8680
  testID: testID
8560
- }), /*#__PURE__*/React__default.createElement(StyledText$1, null, content));
8681
+ }), /*#__PURE__*/React__default.createElement(StyledText$1, {
8682
+ themeSize: size
8683
+ }, content));
8561
8684
  };
8562
8685
  var Badge$1 = Object.assign(Badge, {
8563
8686
  Status: Status
@@ -8614,7 +8737,7 @@ var StyledBottomBarText = index$9(Typography.Caption)(function (_ref3) {
8614
8737
  };
8615
8738
  });
8616
8739
 
8617
- var _excluded$s = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8740
+ var _excluded$u = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8618
8741
  var getInactiveIcon = function getInactiveIcon(icon) {
8619
8742
  var inactiveIcon = "".concat(icon, "-outlined");
8620
8743
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -8625,7 +8748,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
8625
8748
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8626
8749
  selectedTabKey = _ref.selectedTabKey,
8627
8750
  tabs = _ref.tabs,
8628
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
8751
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8629
8752
  var insets = useSafeAreaInsets();
8630
8753
  /**
8631
8754
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -8711,13 +8834,13 @@ var StyledDivider = index$9(View)(function (_ref) {
8711
8834
  }, horizontalMargin), verticalMargin);
8712
8835
  });
8713
8836
 
8714
- var _excluded$r = ["marginHorizontal", "marginVertical", "style", "testID"];
8837
+ var _excluded$t = ["marginHorizontal", "marginVertical", "style", "testID"];
8715
8838
  var Divider = function Divider(_ref) {
8716
8839
  var marginHorizontal = _ref.marginHorizontal,
8717
8840
  marginVertical = _ref.marginVertical,
8718
8841
  style = _ref.style,
8719
8842
  testID = _ref.testID,
8720
- nativeProps = _objectWithoutProperties(_ref, _excluded$r);
8843
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8721
8844
  return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
8722
8845
  themeMarginHorizontal: marginHorizontal,
8723
8846
  themeMarginVertical: marginVertical,
@@ -8737,8 +8860,29 @@ var StyledKeyboardAvoidingView = index$9(KeyboardAvoidingView)(function () {
8737
8860
  flexDirection: 'column-reverse'
8738
8861
  };
8739
8862
  });
8740
- var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref) {
8863
+ var StyledFloatingWrapper = index$9(AnimatedSafeAreaView)(function (_ref) {
8741
8864
  var theme = _ref.theme;
8865
+ return {
8866
+ margin: theme.__hd__.bottomSheet.space.floatingContentMargin
8867
+ };
8868
+ });
8869
+ var StyledFloatingBottomSheet = index$9(Animated.View)(function (_ref2) {
8870
+ var theme = _ref2.theme;
8871
+ return {
8872
+ width: '100%',
8873
+ shadowColor: theme.__hd__.bottomSheet.colors.shadow,
8874
+ shadowOffset: theme.__hd__.bottomSheet.shadows.offset,
8875
+ shadowOpacity: theme.__hd__.bottomSheet.shadows.opacity,
8876
+ shadowRadius: theme.__hd__.bottomSheet.shadows.radius,
8877
+ elevation: theme.__hd__.bottomSheet.shadows.elevation,
8878
+ backgroundColor: theme.__hd__.bottomSheet.colors.background,
8879
+ borderRadius: theme.__hd__.bottomSheet.radii.floating,
8880
+ maxHeight: '100%',
8881
+ padding: theme.__hd__.bottomSheet.space.floatingInnerPadding
8882
+ };
8883
+ });
8884
+ var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref3) {
8885
+ var theme = _ref3.theme;
8742
8886
  return {
8743
8887
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
8744
8888
  borderTopRightRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -8752,15 +8896,15 @@ var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref) {
8752
8896
  maxHeight: '94%'
8753
8897
  };
8754
8898
  });
8755
- var StyledBackdrop$2 = index$9(AnimatedPressable$2)(function (_ref2) {
8756
- var theme = _ref2.theme;
8899
+ var StyledBackdrop$2 = index$9(AnimatedPressable$2)(function (_ref4) {
8900
+ var theme = _ref4.theme;
8757
8901
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
8758
8902
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
8759
8903
  opacity: 0.4
8760
8904
  });
8761
8905
  });
8762
- var StyledHeaderWrapper = index$9(View)(function (_ref3) {
8763
- var theme = _ref3.theme;
8906
+ var StyledHeaderWrapper = index$9(View)(function (_ref5) {
8907
+ var theme = _ref5.theme;
8764
8908
  return {
8765
8909
  flexDirection: 'row',
8766
8910
  paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
@@ -8771,8 +8915,8 @@ var StyledHeader = index$9(View)({
8771
8915
  flex: 1,
8772
8916
  justifyContent: 'center'
8773
8917
  });
8774
- var StyledFooter = index$9(View)(function (_ref4) {
8775
- var theme = _ref4.theme;
8918
+ var StyledFooter = index$9(View)(function (_ref6) {
8919
+ var theme = _ref6.theme;
8776
8920
  return {
8777
8921
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
8778
8922
  paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
@@ -8781,16 +8925,24 @@ var StyledFooter = index$9(View)(function (_ref4) {
8781
8925
  flexDirection: 'row'
8782
8926
  };
8783
8927
  });
8784
- var StyledIconWrapper$4 = index$9(View)(function (_ref5) {
8785
- var theme = _ref5.theme;
8928
+ var StyledIconWrapper$4 = index$9(View)(function (_ref7) {
8929
+ var theme = _ref7.theme;
8786
8930
  return {
8787
- alignItems: 'center',
8931
+ alignItems: 'flex-end',
8788
8932
  justifyContent: 'center',
8789
8933
  width: theme.__hd__.bottomSheet.sizes.closeIcon,
8790
8934
  height: theme.__hd__.bottomSheet.sizes.closeIcon,
8791
8935
  marginLeft: theme.__hd__.bottomSheet.space.closeIconMargin
8792
8936
  };
8793
8937
  });
8938
+ var StyledFloatingHeaderWrapper = index$9(TouchableOpacity)(function (_ref8) {
8939
+ var theme = _ref8.theme;
8940
+ return {
8941
+ padding: theme.__hd__.bottomSheet.space.floatingHeaderIconPadding,
8942
+ backgroundColor: theme.__hd__.bottomSheet.colors.floatingHeaderIconBackground,
8943
+ borderRadius: theme.__hd__.bottomSheet.radii.floatingHeaderIcon
8944
+ };
8945
+ });
8794
8946
 
8795
8947
  var Footer$1 = function Footer(_ref) {
8796
8948
  var children = _ref.children,
@@ -8798,6 +8950,9 @@ var Footer$1 = function Footer(_ref) {
8798
8950
  return /*#__PURE__*/React__default.createElement(View, null, showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null, /*#__PURE__*/React__default.createElement(StyledFooter, null, children));
8799
8951
  };
8800
8952
 
8953
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
8954
+ var noop$1 = function noop() {};
8955
+
8801
8956
  var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
8802
8957
  return {
8803
8958
  backgroundColor: theme.__hd__.button.colors[intent]
@@ -8841,7 +8996,7 @@ var StyledLoadingDot = index$9(View)(function (_ref) {
8841
8996
  }, themeStyling());
8842
8997
  });
8843
8998
 
8844
- var _excluded$q = ["count", "size", "testID", "themeVariant"];
8999
+ var _excluded$s = ["count", "size", "testID", "themeVariant"];
8845
9000
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
8846
9001
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
8847
9002
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -8873,7 +9028,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
8873
9028
  size = _ref2$size === void 0 ? 12 : _ref2$size,
8874
9029
  testID = _ref2.testID,
8875
9030
  themeVariant = _ref2.themeVariant,
8876
- nativeProps = _objectWithoutProperties(_ref2, _excluded$q);
9031
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$s);
8877
9032
  var progressAnimation = useRef(new Animated.Value(0));
8878
9033
  useEffect(function () {
8879
9034
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -9284,35 +9439,43 @@ var CompoundButton = Button;
9284
9439
  CompoundButton.Icon = IconButton;
9285
9440
  CompoundButton.Utility = UtilityButton;
9286
9441
 
9287
- // eslint-disable-next-line @typescript-eslint/no-empty-function
9288
- var noop$1 = function noop() {};
9289
-
9290
9442
  var Header = function Header(_ref) {
9291
9443
  var content = _ref.content,
9292
9444
  showDivider = _ref.showDivider,
9293
9445
  _ref$onRequestClose = _ref.onRequestClose,
9294
9446
  onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
9295
- showCloseButton = _ref.showCloseButton;
9447
+ showCloseButton = _ref.showCloseButton,
9448
+ _ref$variant = _ref.variant,
9449
+ variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
9450
+ var theme = useTheme();
9296
9451
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledHeader, null, /*#__PURE__*/React__default.createElement(Typography.Body, {
9297
9452
  variant: "regular-bold"
9298
9453
  }, content)) : /*#__PURE__*/React__default.createElement(View, {
9299
9454
  style: {
9300
9455
  flex: 1
9301
9456
  }
9302
- }, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
9457
+ }, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$4, null, variant === 'fixed' ? /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
9303
9458
  icon: "cancel",
9304
9459
  onPress: onRequestClose,
9305
9460
  intent: "text",
9306
9461
  testID: "bottom-sheet-close-icon",
9307
9462
  size: "xsmall"
9308
- })) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
9463
+ }) : /*#__PURE__*/React__default.createElement(StyledFloatingHeaderWrapper, {
9464
+ onPress: onRequestClose,
9465
+ testID: "bottom-sheet-close-icon"
9466
+ }, /*#__PURE__*/React__default.createElement(Icon, {
9467
+ icon: "cancel",
9468
+ style: {
9469
+ fontSize: theme.__hd__.bottomSheet.sizes.floatingCloseIcon
9470
+ }
9471
+ }))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
9309
9472
  };
9310
9473
 
9311
- var _excluded$p = ["scrollEventThrottle"];
9474
+ var _excluded$r = ["scrollEventThrottle"];
9312
9475
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9313
9476
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
9314
9477
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
9315
- props = _objectWithoutProperties(_ref, _excluded$p);
9478
+ props = _objectWithoutProperties(_ref, _excluded$r);
9316
9479
  var _useContext = useContext(BottomSheetContext),
9317
9480
  setInternalShowDivider = _useContext.setInternalShowDivider;
9318
9481
  var onScrollBeginDrag = useCallback(function (e) {
@@ -9358,7 +9521,9 @@ var BottomSheet = function BottomSheet(_ref) {
9358
9521
  _ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
9359
9522
  keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding,
9360
9523
  _ref$supportedOrienta = _ref.supportedOrientations,
9361
- supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
9524
+ supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
9525
+ _ref$variant = _ref.variant,
9526
+ variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
9362
9527
  var _Dimensions$get = Dimensions.get('window'),
9363
9528
  height = _Dimensions$get.height;
9364
9529
  // Internal state to control modal open/close timing with animation
@@ -9416,6 +9581,8 @@ var BottomSheet = function BottomSheet(_ref) {
9416
9581
  setInternalShowDivider: setInternalShowDivider
9417
9582
  };
9418
9583
  }, [setInternalShowDivider]);
9584
+ var BottomSheetWrapperComponent = variant === 'fixed' ? React__default.Fragment : StyledFloatingWrapper;
9585
+ var BottomSheetComponent = variant === 'fixed' ? StyledBottomSheet : StyledFloatingBottomSheet;
9419
9586
  return /*#__PURE__*/React__default.createElement(Modal$1, {
9420
9587
  visible: visible,
9421
9588
  onRequestClose: onRequestClose,
@@ -9432,7 +9599,7 @@ var BottomSheet = function BottomSheet(_ref) {
9432
9599
  opacity: interpolateOpacity
9433
9600
  },
9434
9601
  onPress: onRequestClose
9435
- }), /*#__PURE__*/React__default.createElement(StyledBottomSheet, {
9602
+ }), /*#__PURE__*/React__default.createElement(BottomSheetWrapperComponent, null, /*#__PURE__*/React__default.createElement(BottomSheetComponent, {
9436
9603
  style: [style, {
9437
9604
  transform: [{
9438
9605
  scaleY: height > 0 ? 1 : 0
@@ -9441,6 +9608,7 @@ var BottomSheet = function BottomSheet(_ref) {
9441
9608
  }]
9442
9609
  }]
9443
9610
  }, header !== undefined ? /*#__PURE__*/React__default.createElement(Header, {
9611
+ variant: variant,
9444
9612
  content: header,
9445
9613
  showDivider: internalShowDivider,
9446
9614
  onRequestClose: onRequestClose,
@@ -9449,7 +9617,7 @@ var BottomSheet = function BottomSheet(_ref) {
9449
9617
  value: BottomSheetContextValue
9450
9618
  }, children), footer ? /*#__PURE__*/React__default.createElement(Footer$1, {
9451
9619
  showDivider: showDivider
9452
- }, footer) : null))));
9620
+ }, footer) : null)))));
9453
9621
  };
9454
9622
  var BottomSheet$1 = Object.assign(BottomSheet, {
9455
9623
  ScrollView: BottomSheetScrollView
@@ -11770,7 +11938,7 @@ function ContentNavigator(_ref) {
11770
11938
  }));
11771
11939
  }
11772
11940
 
11773
- var StyledContainer$5 = index$9(View)(function (_ref) {
11941
+ var StyledContainer$6 = index$9(View)(function (_ref) {
11774
11942
  var theme = _ref.theme;
11775
11943
  return {
11776
11944
  backgroundColor: theme.__hd__.calendar.colors.background
@@ -11984,7 +12152,7 @@ var Calendar = function Calendar(_ref) {
11984
12152
  var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
11985
12153
  return date !== undefined;
11986
12154
  }) || maxDate <= lastDateOfMonth;
11987
- return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
12155
+ return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
11988
12156
  testID: testID
11989
12157
  }, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
11990
12158
  value: !useMonthPicker ? format('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
@@ -12124,12 +12292,12 @@ var Indicator = index$9(View)(function (_ref2) {
12124
12292
  };
12125
12293
  });
12126
12294
 
12127
- var _excluded$o = ["intent", "children"];
12295
+ var _excluded$q = ["intent", "children"];
12128
12296
  var DataCard = function DataCard(_ref) {
12129
12297
  var _ref$intent = _ref.intent,
12130
12298
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
12131
12299
  children = _ref.children,
12132
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
12300
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
12133
12301
  return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
12134
12302
  themeIntent: intent,
12135
12303
  testID: "data-card-indicator"
@@ -12147,11 +12315,11 @@ var StyledCard$1 = index$9(View)(function (_ref) {
12147
12315
  });
12148
12316
  });
12149
12317
 
12150
- var _excluded$n = ["intent", "children"];
12318
+ var _excluded$p = ["intent", "children"];
12151
12319
  var Card = function Card(_ref) {
12152
12320
  var intent = _ref.intent,
12153
12321
  children = _ref.children,
12154
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
12322
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12155
12323
  return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
12156
12324
  themeIntent: intent
12157
12325
  }), children);
@@ -12412,7 +12580,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
12412
12580
  });
12413
12581
  CardCarousel.displayName = 'CardCarousel';
12414
12582
 
12415
- var _excluded$m = ["rounded", "size", "testID", "style"];
12583
+ var _excluded$o = ["rounded", "size", "testID", "style"];
12416
12584
  var Image = function Image(_ref) {
12417
12585
  var _ref$rounded = _ref.rounded,
12418
12586
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12420,7 +12588,7 @@ var Image = function Image(_ref) {
12420
12588
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12421
12589
  testID = _ref.testID,
12422
12590
  style = _ref.style,
12423
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$m);
12591
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$o);
12424
12592
  var theme = useTheme();
12425
12593
  var imageSize = theme.__hd__.image.sizes[size];
12426
12594
  return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
@@ -12554,7 +12722,7 @@ var CarouselItem = function CarouselItem(_ref) {
12554
12722
  }, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
12555
12723
  };
12556
12724
 
12557
- var _excluded$l = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12725
+ var _excluded$n = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12558
12726
  function useStateFromProp(initialValue) {
12559
12727
  var _useState = useState(initialValue),
12560
12728
  _useState2 = _slicedToArray(_useState, 2),
@@ -12581,7 +12749,7 @@ var Carousel = function Carousel(_ref) {
12581
12749
  testID = _ref.testID,
12582
12750
  _ref$pageControlPosit = _ref.pageControlPosition,
12583
12751
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12584
- nativeProps = _objectWithoutProperties(_ref, _excluded$l);
12752
+ nativeProps = _objectWithoutProperties(_ref, _excluded$n);
12585
12753
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12586
12754
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12587
12755
  var theme = useTheme();
@@ -12791,7 +12959,7 @@ var StyledIcon$1 = index$9(Icon)(function (_ref4) {
12791
12959
  };
12792
12960
  });
12793
12961
 
12794
- var _excluded$k = ["label", "variant", "selected", "icon", "onPress"];
12962
+ var _excluded$m = ["label", "variant", "selected", "icon", "onPress"];
12795
12963
  var Chip = function Chip(_ref) {
12796
12964
  var label = _ref.label,
12797
12965
  _ref$variant = _ref.variant,
@@ -12800,7 +12968,7 @@ var Chip = function Chip(_ref) {
12800
12968
  selected = _ref$selected === void 0 ? false : _ref$selected,
12801
12969
  icon = _ref.icon,
12802
12970
  onPress = _ref.onPress,
12803
- otherProps = _objectWithoutProperties(_ref, _excluded$k);
12971
+ otherProps = _objectWithoutProperties(_ref, _excluded$m);
12804
12972
  var internalIcon = React__default.useMemo(function () {
12805
12973
  if (icon && variant === 'filled') {
12806
12974
  return icon;
@@ -12919,7 +13087,7 @@ var Checkbox = function Checkbox(_ref2) {
12919
13087
  })));
12920
13088
  };
12921
13089
 
12922
- var StyledContainer$4 = index$9(View)(function (_ref) {
13090
+ var StyledContainer$5 = index$9(View)(function (_ref) {
12923
13091
  var theme = _ref.theme;
12924
13092
  return {
12925
13093
  width: '100%',
@@ -13047,8 +13215,8 @@ var StyledErrorAndMaxLengthContainer = index$9(View)(function () {
13047
13215
  };
13048
13216
  });
13049
13217
 
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) {
13218
+ var _excluded$l = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13219
+ var getState$2 = function getState(_ref) {
13052
13220
  var disabled = _ref.disabled,
13053
13221
  error = _ref.error,
13054
13222
  editable = _ref.editable,
@@ -13084,7 +13252,7 @@ var renderErrorOrHelpText = function renderErrorOrHelpText(_ref2) {
13084
13252
  testID: "input-error-message"
13085
13253
  }, error)) : !!helpText && /*#__PURE__*/React__default.createElement(StyledHelperText, null, helpText);
13086
13254
  };
13087
- var renderInput = function renderInput(_ref3) {
13255
+ var renderInput$1 = function renderInput(_ref3) {
13088
13256
  var variant = _ref3.variant,
13089
13257
  nativeInputProps = _ref3.nativeInputProps,
13090
13258
  renderInputValue = _ref3.renderInputValue,
@@ -13095,7 +13263,7 @@ var renderInput = function renderInput(_ref3) {
13095
13263
  ref: ref
13096
13264
  }));
13097
13265
  };
13098
- var renderSuffix = function renderSuffix(_ref4) {
13266
+ var renderSuffix$1 = function renderSuffix(_ref4) {
13099
13267
  var state = _ref4.state,
13100
13268
  loading = _ref4.loading,
13101
13269
  suffix = _ref4.suffix;
@@ -13108,7 +13276,7 @@ var renderSuffix = function renderSuffix(_ref4) {
13108
13276
  size: "medium"
13109
13277
  }) : suffix;
13110
13278
  };
13111
- var renderPrefix = function renderPrefix(_ref5) {
13279
+ var renderPrefix$1 = function renderPrefix(_ref5) {
13112
13280
  var state = _ref5.state,
13113
13281
  prefix = _ref5.prefix;
13114
13282
  return typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
@@ -13159,7 +13327,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13159
13327
  allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
13160
13328
  _ref8$variant = _ref8.variant,
13161
13329
  variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
13162
- nativeProps = _objectWithoutProperties(_ref8, _excluded$j);
13330
+ nativeProps = _objectWithoutProperties(_ref8, _excluded$l);
13163
13331
  var displayText = getDisplayText(value, defaultValue);
13164
13332
  var isEmptyValue = displayText.length === 0;
13165
13333
  var _React$useState = React__default.useState({
@@ -13181,7 +13349,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13181
13349
  _React$useState8 = _slicedToArray(_React$useState7, 2),
13182
13350
  isFocused = _React$useState8[0],
13183
13351
  setIsFocused = _React$useState8[1];
13184
- var state = getState$1({
13352
+ var state = getState$2({
13185
13353
  disabled: disabled,
13186
13354
  error: error,
13187
13355
  editable: editable,
@@ -13311,7 +13479,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13311
13479
  defaultValue: defaultValue,
13312
13480
  placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
13313
13481
  });
13314
- return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
13482
+ return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
13315
13483
  style: styleWithoutBackgroundColor,
13316
13484
  pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
13317
13485
  testID: testID
@@ -13326,7 +13494,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13326
13494
  }, borderStyle]
13327
13495
  }), /*#__PURE__*/React__default.createElement(View, {
13328
13496
  onLayout: onPrefixLayout
13329
- }, renderPrefix({
13497
+ }, renderPrefix$1({
13330
13498
  state: state,
13331
13499
  prefix: prefix
13332
13500
  })), /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
@@ -13366,14 +13534,14 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13366
13534
  testID: "input-label",
13367
13535
  themeState: state,
13368
13536
  onLayout: onLabelLayout
13369
- }, label)), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput({
13537
+ }, label)), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
13370
13538
  variant: variant,
13371
13539
  nativeInputProps: nativeInputProps,
13372
13540
  renderInputValue: renderInputValue,
13373
13541
  ref: function ref(rnTextInputRef) {
13374
13542
  innerTextInput.current = rnTextInputRef;
13375
13543
  }
13376
- })), renderSuffix({
13544
+ })), renderSuffix$1({
13377
13545
  state: state,
13378
13546
  loading: loading,
13379
13547
  suffix: suffix
@@ -13704,11 +13872,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13704
13872
  }))));
13705
13873
  };
13706
13874
 
13707
- var _excluded$i = ["variant"];
13875
+ var _excluded$k = ["variant"];
13708
13876
  var DatePicker = function DatePicker(_ref) {
13709
13877
  var _ref$variant = _ref.variant,
13710
13878
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13711
- props = _objectWithoutProperties(_ref, _excluded$i);
13879
+ props = _objectWithoutProperties(_ref, _excluded$k);
13712
13880
  if (variant === 'calendar') {
13713
13881
  return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
13714
13882
  }
@@ -13719,7 +13887,7 @@ var DatePicker = function DatePicker(_ref) {
13719
13887
  };
13720
13888
 
13721
13889
  var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
13722
- var StyledContainer$3 = index$9(View)(function (_ref) {
13890
+ var StyledContainer$4 = index$9(View)(function (_ref) {
13723
13891
  var theme = _ref.theme,
13724
13892
  enableShadow = _ref.enableShadow;
13725
13893
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
@@ -13775,7 +13943,7 @@ var StyledDragableDrawerContainer = index$9(Animated.View)(function (_ref5) {
13775
13943
  maxHeight: '100%'
13776
13944
  };
13777
13945
  });
13778
- var StyledHandlerContainer = index$9(View)(function (_ref6) {
13946
+ var StyledHandlerContainer$1 = index$9(View)(function (_ref6) {
13779
13947
  var theme = _ref6.theme;
13780
13948
  return {
13781
13949
  backgroundColor: theme.__hd__.drawer.colors.background,
@@ -13943,7 +14111,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
13943
14111
  var nativeEvent = _ref3.nativeEvent;
13944
14112
  setHeight(nativeEvent.layout.height);
13945
14113
  }
13946
- }, /*#__PURE__*/React__default.createElement(StyledHandlerContainer, panResponder.panHandlers, /*#__PURE__*/React__default.createElement(StyledHandler, null)), children));
14114
+ }, /*#__PURE__*/React__default.createElement(StyledHandlerContainer$1, panResponder.panHandlers, /*#__PURE__*/React__default.createElement(StyledHandler, null)), children));
13947
14115
  };
13948
14116
 
13949
14117
  var Drawer = function Drawer(_ref) {
@@ -13978,7 +14146,7 @@ var Drawer = function Drawer(_ref) {
13978
14146
  return animation.stop();
13979
14147
  };
13980
14148
  }, [visible]);
13981
- return /*#__PURE__*/React__default.createElement(StyledContainer$3, {
14149
+ return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
13982
14150
  testID: testID,
13983
14151
  enableShadow: enableShadow,
13984
14152
  pointerEvents: "box-none"
@@ -14262,7 +14430,7 @@ var Portal$1 = Object.assign(Portal, {
14262
14430
  Host: PortalHost
14263
14431
  });
14264
14432
 
14265
- var _excluded$h = ["visible"];
14433
+ var _excluded$j = ["visible"];
14266
14434
  var DEFAULT_BACKDROP_OPACITY = 0.4;
14267
14435
  var DEFAULT_ANIMATION_CONFIG = {
14268
14436
  easing: Easing.inOut(Easing.cubic),
@@ -14358,7 +14526,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
14358
14526
  var ModalWrapper = function ModalWrapper(_ref3) {
14359
14527
  var _ref3$visible = _ref3.visible,
14360
14528
  visible = _ref3$visible === void 0 ? true : _ref3$visible,
14361
- props = _objectWithoutProperties(_ref3, _excluded$h);
14529
+ props = _objectWithoutProperties(_ref3, _excluded$j);
14362
14530
  var modalRef = useRef(null);
14363
14531
  var _useState = useState(visible),
14364
14532
  _useState2 = _slicedToArray(_useState, 2),
@@ -14468,7 +14636,7 @@ var StyledErrorDescription = index$9(Typography.Body)(function (_ref9) {
14468
14636
  };
14469
14637
  });
14470
14638
 
14471
- var _excluded$g = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14639
+ var _excluded$i = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14472
14640
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14473
14641
  var renderImage$1 = function renderImage(image) {
14474
14642
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -14494,7 +14662,7 @@ var ErrorPage = function ErrorPage(_ref) {
14494
14662
  onCtaPress = _ref.onCtaPress,
14495
14663
  secondaryCtaText = _ref.secondaryCtaText,
14496
14664
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
14497
- nativeProps = _objectWithoutProperties(_ref, _excluded$g);
14665
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
14498
14666
  var showCta = ctaText && onCtaPress !== undefined;
14499
14667
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
14500
14668
  var showButtonContainer = showCta || showSecondaryCta;
@@ -14655,11 +14823,11 @@ var StyledIconContainer = index$9(Box)(function (_ref4) {
14655
14823
  };
14656
14824
  });
14657
14825
 
14658
- var _excluded$f = ["active"];
14826
+ var _excluded$h = ["active"];
14659
14827
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
14660
14828
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
14661
14829
  var active = _ref.active,
14662
- iconProps = _objectWithoutProperties(_ref, _excluded$f);
14830
+ iconProps = _objectWithoutProperties(_ref, _excluded$h);
14663
14831
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
14664
14832
  useEffect(function () {
14665
14833
  var animation = Animated.spring(rotateAnimation.current, {
@@ -14907,7 +15075,7 @@ var ActionItem = function ActionItem(_ref) {
14907
15075
  })), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
14908
15076
  };
14909
15077
 
14910
- var StyledContainer$2 = index$9(View)({
15078
+ var StyledContainer$3 = index$9(View)({
14911
15079
  position: 'absolute',
14912
15080
  left: 0,
14913
15081
  right: 0,
@@ -15003,7 +15171,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
15003
15171
  inputRange: [0, 1],
15004
15172
  outputRange: [0, 1]
15005
15173
  });
15006
- return /*#__PURE__*/React__default.createElement(StyledContainer$2, {
15174
+ return /*#__PURE__*/React__default.createElement(StyledContainer$3, {
15007
15175
  testID: testID,
15008
15176
  pointerEvents: "box-none",
15009
15177
  style: style
@@ -15453,7 +15621,7 @@ var StyledPrefixContainer$1 = index$9(View)(function (_ref4) {
15453
15621
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
15454
15622
  };
15455
15623
  });
15456
- var StyledSuffixContainer$1 = index$9(View)(function (_ref5) {
15624
+ var StyledSuffixContainer$2 = index$9(View)(function (_ref5) {
15457
15625
  var theme = _ref5.theme;
15458
15626
  return {
15459
15627
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
@@ -15505,7 +15673,7 @@ var ListItem = function ListItem(_ref) {
15505
15673
  intent: "body"
15506
15674
  }, title) : title, !!subtitle && /*#__PURE__*/React__default.createElement(Typography.Caption, {
15507
15675
  intent: "subdued"
15508
- }, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15676
+ }, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer$2, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15509
15677
  icon: suffix,
15510
15678
  intent: disabled ? 'disabled-text' : 'primary',
15511
15679
  size: "small"
@@ -15518,7 +15686,7 @@ var StyledPrefixContainer = index$9(View)(function (_ref) {
15518
15686
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
15519
15687
  };
15520
15688
  });
15521
- var StyledSuffixContainer = index$9(View)(function (_ref2) {
15689
+ var StyledSuffixContainer$1 = index$9(View)(function (_ref2) {
15522
15690
  var theme = _ref2.theme;
15523
15691
  return {
15524
15692
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
@@ -15571,7 +15739,7 @@ var BasicListItem = function BasicListItem(_ref) {
15571
15739
  intent: "body"
15572
15740
  }, title) : title, subtitle && /*#__PURE__*/React__default.createElement(Typography.Caption, {
15573
15741
  intent: "subdued"
15574
- }, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15742
+ }, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15575
15743
  icon: suffix,
15576
15744
  size: "small",
15577
15745
  intent: disabled ? 'disabled-text' : 'primary'
@@ -15700,7 +15868,7 @@ function PinCell(_ref) {
15700
15868
  }, value));
15701
15869
  }
15702
15870
 
15703
- function getState(_ref) {
15871
+ function getState$1(_ref) {
15704
15872
  var disabled = _ref.disabled,
15705
15873
  error = _ref.error;
15706
15874
  if (disabled) {
@@ -15739,7 +15907,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
15739
15907
  _useState2 = _slicedToArray(_useState, 2),
15740
15908
  focused = _useState2[0],
15741
15909
  setFocused = _useState2[1];
15742
- var state = getState({
15910
+ var state = getState$1({
15743
15911
  disabled: disabled,
15744
15912
  error: error
15745
15913
  });
@@ -15842,7 +16010,7 @@ var THEME_INTENT_MAP = {
15842
16010
  'archived-inverted': 'archivedInverted'
15843
16011
  };
15844
16012
 
15845
- var StyledContainer$1 = index$9(View)(function (_ref) {
16013
+ var StyledContainer$2 = index$9(View)(function (_ref) {
15846
16014
  var theme = _ref.theme;
15847
16015
  return {
15848
16016
  flexDirection: 'row',
@@ -15908,7 +16076,7 @@ var StyledStrokeEnd = index$9(View)(function (_ref6) {
15908
16076
  };
15909
16077
  });
15910
16078
 
15911
- var _excluded$e = ["value", "renderValue", "intent", "style", "testID"];
16079
+ var _excluded$g = ["value", "renderValue", "intent", "style", "testID"];
15912
16080
  var HalfCircle = function HalfCircle(_ref) {
15913
16081
  var type = _ref.type,
15914
16082
  themeIntent = _ref.themeIntent;
@@ -15929,7 +16097,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
15929
16097
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
15930
16098
  style = _ref2.style,
15931
16099
  testID = _ref2.testID,
15932
- nativeProps = _objectWithoutProperties(_ref2, _excluded$e);
16100
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
15933
16101
  var theme = useTheme$1();
15934
16102
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
15935
16103
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -15969,7 +16137,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
15969
16137
  return /*#__PURE__*/React__default.createElement(View, _extends$1({}, nativeProps, {
15970
16138
  testID: testID,
15971
16139
  style: style
15972
- }), /*#__PURE__*/React__default.createElement(StyledContainer$1, null, /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(HalfCircle, {
16140
+ }), /*#__PURE__*/React__default.createElement(StyledContainer$2, null, /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(HalfCircle, {
15973
16141
  type: "foreground",
15974
16142
  themeIntent: intent
15975
16143
  }), /*#__PURE__*/React__default.createElement(Animated.View, {
@@ -16045,14 +16213,14 @@ var StyledInner = index$9(Animated.View)(function (_ref2) {
16045
16213
  };
16046
16214
  });
16047
16215
 
16048
- var _excluded$d = ["value", "intent", "style", "testID"];
16216
+ var _excluded$f = ["value", "intent", "style", "testID"];
16049
16217
  var ProgressBar = function ProgressBar(_ref) {
16050
16218
  var value = _ref.value,
16051
16219
  _ref$intent = _ref.intent,
16052
16220
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16053
16221
  style = _ref.style,
16054
16222
  testID = _ref.testID,
16055
- nativeProps = _objectWithoutProperties(_ref, _excluded$d);
16223
+ nativeProps = _objectWithoutProperties(_ref, _excluded$f);
16056
16224
  var _useState = useState(0),
16057
16225
  _useState2 = _slicedToArray(_useState, 2),
16058
16226
  width = _useState2[0],
@@ -16098,9 +16266,99 @@ var ProgressBar = function ProgressBar(_ref) {
16098
16266
  }));
16099
16267
  };
16100
16268
 
16269
+ var StyledStepContainer = index$9(Box)({
16270
+ display: 'flex',
16271
+ flexDirection: 'row',
16272
+ justifyContent: 'space-between',
16273
+ alignItems: 'center'
16274
+ });
16275
+ var StyledStep = index$9(Box)(function (_ref) {
16276
+ var theme = _ref.theme,
16277
+ themeState = _ref.themeState,
16278
+ themeWidth = _ref.themeWidth;
16279
+ return {
16280
+ height: theme.__hd__.progress.sizes.stepHeight,
16281
+ borderRadius: theme.__hd__.progress.radii["default"],
16282
+ backgroundColor: theme.__hd__.progress.colors.step[themeState],
16283
+ width: themeWidth
16284
+ };
16285
+ });
16286
+ var StyledSingleStepContainer = index$9(Box)(function (_ref2) {
16287
+ var theme = _ref2.theme;
16288
+ return {
16289
+ height: theme.__hd__.progress.sizes.stepHeight,
16290
+ borderRadius: theme.__hd__.progress.radii["default"],
16291
+ backgroundColor: theme.__hd__.progress.colors.step.current,
16292
+ width: '100%',
16293
+ position: 'relative'
16294
+ };
16295
+ });
16296
+ var StyledSingleStep = index$9(Box)(function (_ref3) {
16297
+ var theme = _ref3.theme;
16298
+ return {
16299
+ height: theme.__hd__.progress.sizes.stepHeight,
16300
+ borderRadius: theme.__hd__.progress.radii["default"],
16301
+ backgroundColor: theme.__hd__.progress.colors.step.complete,
16302
+ width: '70%',
16303
+ position: 'absolute',
16304
+ top: 0,
16305
+ left: 0,
16306
+ bottom: 0,
16307
+ right: 0
16308
+ };
16309
+ });
16310
+
16311
+ var _excluded$e = ["steps", "current", "onLayout"];
16312
+ var getStepState = function getStepState(current, index) {
16313
+ if (index < current) {
16314
+ return 'complete';
16315
+ }
16316
+ if (index === current) {
16317
+ return 'current';
16318
+ }
16319
+ return 'incomplete';
16320
+ };
16321
+ var ProgressStep = function ProgressStep(_ref) {
16322
+ var steps = _ref.steps,
16323
+ current = _ref.current,
16324
+ onLayout = _ref.onLayout,
16325
+ props = _objectWithoutProperties(_ref, _excluded$e);
16326
+ var theme = useTheme$1();
16327
+ var _React$useState = React__default.useState(0),
16328
+ _React$useState2 = _slicedToArray(_React$useState, 2),
16329
+ containerWidth = _React$useState2[0],
16330
+ setContainerWidth = _React$useState2[1];
16331
+ var onContainerLayout = function onContainerLayout(event) {
16332
+ setContainerWidth(event.nativeEvent.layout.width);
16333
+ onLayout === null || onLayout === void 0 || onLayout(event);
16334
+ };
16335
+ // Calculate the width for each step
16336
+ var stepWidth = useMemo(function () {
16337
+ var width = 0;
16338
+ if (containerWidth > 0) {
16339
+ width = (containerWidth - (steps - 1) * theme.__hd__.progress.space.stepGap) / steps;
16340
+ }
16341
+ return width;
16342
+ }, [containerWidth, steps, theme]);
16343
+ if (steps === 1) {
16344
+ return /*#__PURE__*/React__default.createElement(StyledSingleStepContainer, props, /*#__PURE__*/React__default.createElement(StyledSingleStep, null));
16345
+ }
16346
+ return /*#__PURE__*/React__default.createElement(StyledStepContainer, _extends$1({}, props, {
16347
+ onLayout: onContainerLayout
16348
+ }), Array.from({
16349
+ length: steps
16350
+ }).map(function (_, index) {
16351
+ return /*#__PURE__*/React__default.createElement(StyledStep, {
16352
+ themeState: getStepState(current - 1, index),
16353
+ themeWidth: stepWidth
16354
+ });
16355
+ }));
16356
+ };
16357
+
16101
16358
  var Progress = {
16102
16359
  Circle: ProgressCircle,
16103
- Bar: ProgressBar
16360
+ Bar: ProgressBar,
16361
+ Step: ProgressStep
16104
16362
  };
16105
16363
 
16106
16364
  var Slider = function Slider(_ref) {
@@ -16243,14 +16501,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
16243
16501
  }, dotProps))));
16244
16502
  };
16245
16503
 
16246
- var _excluded$c = ["testID", "size", "intent"];
16504
+ var _excluded$d = ["testID", "size", "intent"];
16247
16505
  var Spinner = function Spinner(_ref) {
16248
16506
  var testID = _ref.testID,
16249
16507
  _ref$size = _ref.size,
16250
16508
  size = _ref$size === void 0 ? 'medium' : _ref$size,
16251
16509
  _ref$intent = _ref.intent,
16252
16510
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16253
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
16511
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
16254
16512
  return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
16255
16513
  testID: testID
16256
16514
  }, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
@@ -16283,7 +16541,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
16283
16541
  }, children);
16284
16542
  };
16285
16543
 
16286
- var _excluded$b = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
16544
+ var _excluded$c = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
16287
16545
  var renderActions = function renderActions(actions, width, progress, direction) {
16288
16546
  var trans = progress.interpolate({
16289
16547
  inputRange: [0, 1],
@@ -16312,7 +16570,7 @@ var Swipeable = function Swipeable(_ref) {
16312
16570
  rightActionsWidth = _ref.rightActionsWidth,
16313
16571
  _ref$variant = _ref.variant,
16314
16572
  variant = _ref$variant === void 0 ? 'card' : _ref$variant,
16315
- swipeableProps = _objectWithoutProperties(_ref, _excluded$b);
16573
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$c);
16316
16574
  var theme = useTheme();
16317
16575
  var _useWindowDimensions = useWindowDimensions(),
16318
16576
  width = _useWindowDimensions.width;
@@ -16663,7 +16921,7 @@ var StyledSectionList = index$9(SectionList)(function (_ref4) {
16663
16921
  };
16664
16922
  });
16665
16923
 
16666
- var _excluded$a = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
16924
+ var _excluded$b = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
16667
16925
  var BaseOptionList = function BaseOptionList(_ref) {
16668
16926
  var keyExtractor = _ref.keyExtractor,
16669
16927
  loading = _ref.loading,
@@ -16672,7 +16930,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
16672
16930
  sections = _ref.sections,
16673
16931
  renderItem = _ref.renderItem,
16674
16932
  sectionListRef = _ref.sectionListRef,
16675
- rest = _objectWithoutProperties(_ref, _excluded$a);
16933
+ rest = _objectWithoutProperties(_ref, _excluded$b);
16676
16934
  var theme = useTheme$1();
16677
16935
  var _useState = useState(false),
16678
16936
  _useState2 = _slicedToArray(_useState, 2),
@@ -16742,7 +17000,7 @@ var Option$2 = function Option(_ref) {
16742
17000
  return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
16743
17001
  };
16744
17002
 
16745
- var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17003
+ var _excluded$a = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
16746
17004
  var OptionList$1 = function OptionList(_ref) {
16747
17005
  var keyExtractor = _ref.keyExtractor,
16748
17006
  loading = _ref.loading,
@@ -16753,7 +17011,7 @@ var OptionList$1 = function OptionList(_ref) {
16753
17011
  renderOption = _ref.renderOption,
16754
17012
  value = _ref.value,
16755
17013
  sectionListRef = _ref.sectionListRef,
16756
- rest = _objectWithoutProperties(_ref, _excluded$9);
17014
+ rest = _objectWithoutProperties(_ref, _excluded$a);
16757
17015
  var renderItem = function renderItem(info) {
16758
17016
  var item = info.item;
16759
17017
  var selected = value.includes(info.item.value);
@@ -16944,7 +17202,7 @@ var StyledOptionList = index$9(BaseOptionList)(function (_ref) {
16944
17202
  };
16945
17203
  });
16946
17204
 
16947
- var _excluded$8 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17205
+ var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
16948
17206
  var OptionList = function OptionList(_ref) {
16949
17207
  var keyExtractor = _ref.keyExtractor,
16950
17208
  loading = _ref.loading,
@@ -16955,7 +17213,7 @@ var OptionList = function OptionList(_ref) {
16955
17213
  renderOption = _ref.renderOption,
16956
17214
  value = _ref.value,
16957
17215
  sectionListRef = _ref.sectionListRef,
16958
- rest = _objectWithoutProperties(_ref, _excluded$8);
17216
+ rest = _objectWithoutProperties(_ref, _excluded$9);
16959
17217
  var renderItem = function renderItem(info) {
16960
17218
  var item = info.item;
16961
17219
  var selected = item.value === value;
@@ -17105,7 +17363,7 @@ var index$4 = Object.assign(SingleSelect, {
17105
17363
  Multi: MultiSelect
17106
17364
  });
17107
17365
 
17108
- var StyledContainer = index$9(Box)(function (_ref) {
17366
+ var StyledContainer$1 = index$9(Box)(function (_ref) {
17109
17367
  var theme = _ref.theme,
17110
17368
  themeIntent = _ref.themeIntent,
17111
17369
  themeVariant = _ref.themeVariant;
@@ -17123,7 +17381,7 @@ var StyledGradientContainer = index$9(Box)(function (_ref2) {
17123
17381
  };
17124
17382
  });
17125
17383
 
17126
- var _excluded$7 = ["intent", "variant", "style", "onLayout"];
17384
+ var _excluded$8 = ["intent", "variant", "style", "onLayout"];
17127
17385
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
17128
17386
  var gradientPositions = {
17129
17387
  start: {
@@ -17155,7 +17413,7 @@ var Skeleton = function Skeleton(_ref) {
17155
17413
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
17156
17414
  style = _ref.style,
17157
17415
  onLayout = _ref.onLayout,
17158
- props = _objectWithoutProperties(_ref, _excluded$7);
17416
+ props = _objectWithoutProperties(_ref, _excluded$8);
17159
17417
  var theme = useTheme();
17160
17418
  var colors = useMemo(function () {
17161
17419
  return getGradientColors(theme, intent);
@@ -17191,7 +17449,7 @@ var Skeleton = function Skeleton(_ref) {
17191
17449
  }
17192
17450
  onLayout === null || onLayout === void 0 || onLayout(e);
17193
17451
  }, []);
17194
- return /*#__PURE__*/React__default.createElement(StyledContainer, _extends$1({
17452
+ return /*#__PURE__*/React__default.createElement(StyledContainer$1, _extends$1({
17195
17453
  style: style,
17196
17454
  themeVariant: variant,
17197
17455
  themeIntent: intent,
@@ -17287,7 +17545,7 @@ var StyledSuccessModal = index$9(ModalWrapper)({
17287
17545
  width: '100%'
17288
17546
  });
17289
17547
 
17290
- var _excluded$6 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17548
+ var _excluded$7 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17291
17549
  var renderImage = function renderImage(image) {
17292
17550
  if ( /*#__PURE__*/isValidElement(image)) {
17293
17551
  return /*#__PURE__*/React__default.cloneElement(image, {
@@ -17313,7 +17571,7 @@ var SuccessPage = function SuccessPage(_ref) {
17313
17571
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
17314
17572
  secondaryCtaText = _ref.secondaryCtaText,
17315
17573
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
17316
- nativeProps = _objectWithoutProperties(_ref, _excluded$6);
17574
+ nativeProps = _objectWithoutProperties(_ref, _excluded$7);
17317
17575
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
17318
17576
  return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
17319
17577
  testID: testID,
@@ -18331,7 +18589,7 @@ var StyledText = index$9(Typography.Caption)(function (_ref2) {
18331
18589
  };
18332
18590
  });
18333
18591
 
18334
- var _excluded$5 = ["content", "variant", "intent", "style", "testID"];
18592
+ var _excluded$6 = ["content", "variant", "intent", "style", "testID"];
18335
18593
  var Tag = function Tag(_ref) {
18336
18594
  var content = _ref.content,
18337
18595
  _ref$variant = _ref.variant,
@@ -18340,7 +18598,7 @@ var Tag = function Tag(_ref) {
18340
18598
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
18341
18599
  style = _ref.style,
18342
18600
  testID = _ref.testID,
18343
- nativeProps = _objectWithoutProperties(_ref, _excluded$5);
18601
+ nativeProps = _objectWithoutProperties(_ref, _excluded$6);
18344
18602
  useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
18345
18603
  return /*#__PURE__*/React__default.createElement(StyledView, _extends$1({}, nativeProps, {
18346
18604
  themeIntent: intent,
@@ -18658,10 +18916,10 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
18658
18916
  }));
18659
18917
  };
18660
18918
 
18661
- var _excluded$4 = ["children"];
18919
+ var _excluded$5 = ["children"];
18662
18920
  var Toolbar = function Toolbar(_ref) {
18663
18921
  var children = _ref.children,
18664
- rest = _objectWithoutProperties(_ref, _excluded$4);
18922
+ rest = _objectWithoutProperties(_ref, _excluded$5);
18665
18923
  return /*#__PURE__*/React__default.createElement(ToolbarWrapper, rest, children);
18666
18924
  };
18667
18925
  var index$1 = Object.assign(Toolbar, {
@@ -18680,7 +18938,7 @@ var StyledIconWrapper = index$9(AnimatedBox)(function (_ref) {
18680
18938
  };
18681
18939
  });
18682
18940
 
18683
- var _excluded$3 = ["options", "value", "onChange", "readonly", "disabled"];
18941
+ var _excluded$4 = ["options", "value", "onChange", "readonly", "disabled"];
18684
18942
  var Rate = function Rate(_ref) {
18685
18943
  var options = _ref.options,
18686
18944
  value = _ref.value,
@@ -18689,7 +18947,7 @@ var Rate = function Rate(_ref) {
18689
18947
  readonly = _ref$readonly === void 0 ? false : _ref$readonly,
18690
18948
  _ref$disabled = _ref.disabled,
18691
18949
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
18692
- otherProps = _objectWithoutProperties(_ref, _excluded$3);
18950
+ otherProps = _objectWithoutProperties(_ref, _excluded$4);
18693
18951
  var valueIndex = useMemo(function () {
18694
18952
  return options.findIndex(function (item) {
18695
18953
  return item.value === value;
@@ -35854,7 +36112,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
35854
36112
  break;
35855
36113
  }
35856
36114
  }, []);
35857
- return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
36115
+ return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
35858
36116
  testID: testID
35859
36117
  }, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
35860
36118
  themeVariant: "text",
@@ -36080,34 +36338,294 @@ function AnimatedScroller(_ref) {
36080
36338
  }));
36081
36339
  }
36082
36340
 
36083
- var _excluded$2 = ["fabProps"];
36341
+ var _excluded$3 = ["fabProps"];
36084
36342
  var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
36085
36343
  var fabProps = _ref.fabProps,
36086
- props = _objectWithoutProperties(_ref, _excluded$2);
36344
+ props = _objectWithoutProperties(_ref, _excluded$3);
36087
36345
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36088
36346
  ScrollComponent: /*#__PURE__*/React__default.createElement(ScrollView, props),
36089
36347
  fabProps: fabProps
36090
36348
  });
36091
36349
  };
36092
36350
 
36093
- var _excluded$1 = ["fabProps"];
36351
+ var _excluded$2 = ["fabProps"];
36094
36352
  function FlatListWithFAB(_ref) {
36095
36353
  var fabProps = _ref.fabProps,
36096
- props = _objectWithoutProperties(_ref, _excluded$1);
36354
+ props = _objectWithoutProperties(_ref, _excluded$2);
36097
36355
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36098
36356
  ScrollComponent: /*#__PURE__*/React__default.createElement(FlatList, props),
36099
36357
  fabProps: fabProps
36100
36358
  });
36101
36359
  }
36102
36360
 
36103
- var _excluded = ["fabProps"];
36361
+ var _excluded$1 = ["fabProps"];
36104
36362
  function SectionListWithFAB(_ref) {
36105
36363
  var fabProps = _ref.fabProps,
36106
- props = _objectWithoutProperties(_ref, _excluded);
36364
+ props = _objectWithoutProperties(_ref, _excluded$1);
36107
36365
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36108
36366
  ScrollComponent: /*#__PURE__*/React__default.createElement(SectionList, props),
36109
36367
  fabProps: fabProps
36110
36368
  });
36111
36369
  }
36112
36370
 
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 };
36371
+ var StyledContainer = index$9(View)(function () {
36372
+ return {
36373
+ width: '100%'
36374
+ };
36375
+ });
36376
+ var StyledInputContainer = index$9(View)(function (_ref) {
36377
+ var theme = _ref.theme,
36378
+ themeFocused = _ref.themeFocused;
36379
+ return {
36380
+ flexDirection: 'row',
36381
+ alignItems: 'center',
36382
+ paddingHorizontal: theme.__hd__.search.space.containerHorizontalPadding,
36383
+ paddingVertical: theme.__hd__.search.space.containerVerticalPadding,
36384
+ backgroundColor: theme.__hd__.search.colors.containerBackground,
36385
+ height: 56,
36386
+ borderRadius: theme.__hd__.search.radii.container,
36387
+ borderWidth: theme.__hd__.search.borderWidths.container.focused,
36388
+ borderColor: themeFocused ? theme.__hd__.search.colors.borders : theme.__hd__.search.colors.containerBackground
36389
+ };
36390
+ });
36391
+ var StyledAffixContainer = index$9(View)(function (_ref2) {
36392
+ var theme = _ref2.theme;
36393
+ return {
36394
+ paddingHorizontal: theme.__hd__.search.space.prefixHorizontalPadding
36395
+ };
36396
+ });
36397
+ var StyledSuffixContainer = index$9(View)(function (_ref3) {
36398
+ var theme = _ref3.theme;
36399
+ return {
36400
+ display: 'flex',
36401
+ justifyContent: 'center',
36402
+ alignItems: 'center',
36403
+ width: theme.__hd__.search.sizes.surfixSize,
36404
+ height: theme.__hd__.search.sizes.surfixSize,
36405
+ backgroundColor: theme.__hd__.search.colors.surfixBackground,
36406
+ borderRadius: theme.__hd__.search.radii.surfix
36407
+ };
36408
+ });
36409
+ var StyledInput = index$9(TextInput$1)(function (_ref4) {
36410
+ var theme = _ref4.theme;
36411
+ return {
36412
+ textAlignVertical: 'center',
36413
+ fontSize: theme.__hd__.search.fontSizes.text,
36414
+ alignSelf: 'stretch',
36415
+ flexGrow: 1,
36416
+ flexShrink: 1,
36417
+ marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin,
36418
+ paddingVertical: 0,
36419
+ fontFamily: theme.__hd__.search.fonts.text
36420
+ };
36421
+ });
36422
+ var StyledHandlerContainer = index$9(View)(function (_ref5) {
36423
+ var theme = _ref5.theme;
36424
+ return {
36425
+ display: 'flex',
36426
+ flexDirection: 'column',
36427
+ justifyContent: 'space-between',
36428
+ alignItems: 'flex-start',
36429
+ flexGrow: 1,
36430
+ height: '100%',
36431
+ marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin
36432
+ };
36433
+ });
36434
+ var StyledBadge = index$9(Badge$1)(function (_ref6) {
36435
+ var theme = _ref6.theme;
36436
+ return {
36437
+ position: 'absolute',
36438
+ top: theme.__hd__.search.space.badgeTop,
36439
+ right: theme.__hd__.search.space.badgeRight,
36440
+ zIndex: 2
36441
+ };
36442
+ });
36443
+
36444
+ var renderPrefix = function renderPrefix(_ref) {
36445
+ var prefix = _ref.prefix;
36446
+ return typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(StyledAffixContainer, null, /*#__PURE__*/React__default.createElement(Icon, {
36447
+ intent: "text",
36448
+ testID: "input-prefix",
36449
+ icon: prefix,
36450
+ size: "small"
36451
+ })) : prefix;
36452
+ };
36453
+ var renderSuffix = function renderSuffix(_ref2) {
36454
+ var suffix = _ref2.suffix;
36455
+ return typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(StyledAffixContainer, null, /*#__PURE__*/React__default.createElement(Icon, {
36456
+ intent: "text",
36457
+ testID: "input-suffix",
36458
+ icon: suffix,
36459
+ size: "small"
36460
+ })) : suffix;
36461
+ };
36462
+
36463
+ var SearchTwoLine = function SearchTwoLine(props) {
36464
+ var _props$prefix = props.prefix,
36465
+ prefix = _props$prefix === void 0 ? 'search-outlined' : _props$prefix,
36466
+ suffix = props.suffix,
36467
+ style = props.style,
36468
+ label = props.label,
36469
+ content = props.content,
36470
+ testID = props.testID;
36471
+ return /*#__PURE__*/React__default.createElement(StyledContainer, {
36472
+ style: style,
36473
+ testID: testID
36474
+ }, /*#__PURE__*/React__default.createElement(StyledInputContainer, {
36475
+ themeFocused: false
36476
+ }, renderPrefix({
36477
+ prefix: prefix
36478
+ }), /*#__PURE__*/React__default.createElement(StyledHandlerContainer, null, /*#__PURE__*/React__default.createElement(Typography.Caption, {
36479
+ fontWeight: "semi-bold"
36480
+ }, label), content), !!suffix && renderSuffix({
36481
+ suffix: suffix
36482
+ })));
36483
+ };
36484
+
36485
+ var _excluded = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID"];
36486
+ var getState = function getState(_ref) {
36487
+ var disabled = _ref.disabled,
36488
+ editable = _ref.editable,
36489
+ isEmptyValue = _ref.isEmptyValue;
36490
+ if (disabled) {
36491
+ return 'disabled';
36492
+ }
36493
+ if (!editable) {
36494
+ return 'readonly';
36495
+ }
36496
+ if (!isEmptyValue) {
36497
+ return 'filled';
36498
+ }
36499
+ return 'default';
36500
+ };
36501
+ var renderInput = function renderInput(_ref2) {
36502
+ var nativeInputProps = _ref2.nativeInputProps,
36503
+ ref = _ref2.ref;
36504
+ return /*#__PURE__*/React__default.createElement(StyledInput, _extends$1({}, nativeInputProps, {
36505
+ ref: ref
36506
+ }));
36507
+ };
36508
+ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
36509
+ var _ref3;
36510
+ var _props$prefix = props.prefix,
36511
+ prefix = _props$prefix === void 0 ? 'search-outlined' : _props$prefix,
36512
+ suffix = props.suffix,
36513
+ style = props.style,
36514
+ allowFontScaling = props.allowFontScaling,
36515
+ accessibilityLabelledBy = props.accessibilityLabelledBy,
36516
+ _props$editable = props.editable,
36517
+ editable = _props$editable === void 0 ? true : _props$editable,
36518
+ maxLength = props.maxLength,
36519
+ value = props.value,
36520
+ defaultValue = props.defaultValue,
36521
+ placeholder = props.placeholder,
36522
+ _props$disabled = props.disabled,
36523
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
36524
+ testID = props.testID,
36525
+ nativeProps = _objectWithoutProperties(props, _excluded);
36526
+ var _React$useState = React__default.useState(false),
36527
+ _React$useState2 = _slicedToArray(_React$useState, 2),
36528
+ isFocused = _React$useState2[0],
36529
+ setIsFocused = _React$useState2[1];
36530
+ var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
36531
+ var isEmptyValue = displayText.length === 0;
36532
+ var state = getState({
36533
+ disabled: disabled,
36534
+ editable: editable,
36535
+ isFocused: isFocused,
36536
+ isEmptyValue: isEmptyValue
36537
+ });
36538
+ var innerTextInput = React__default.useRef();
36539
+ React__default.useImperativeHandle(ref, function () {
36540
+ return {
36541
+ // we don't expose this method, it's for testing https://medium.com/developer-rants/how-to-test-useref-without-mocking-useref-699165f4994e
36542
+ getNativeTextInputRef: function getNativeTextInputRef() {
36543
+ return innerTextInput.current;
36544
+ },
36545
+ setNativeProps: function setNativeProps(args) {
36546
+ var _innerTextInput$curre;
36547
+ return (_innerTextInput$curre = innerTextInput.current) === null || _innerTextInput$curre === void 0 ? void 0 : _innerTextInput$curre.setNativeProps(args);
36548
+ },
36549
+ focus: function focus() {
36550
+ var _innerTextInput$curre2;
36551
+ (_innerTextInput$curre2 = innerTextInput.current) === null || _innerTextInput$curre2 === void 0 || _innerTextInput$curre2.focus();
36552
+ },
36553
+ blur: function blur() {
36554
+ var _innerTextInput$curre3;
36555
+ return (_innerTextInput$curre3 = innerTextInput.current) === null || _innerTextInput$curre3 === void 0 ? void 0 : _innerTextInput$curre3.blur();
36556
+ },
36557
+ clear: function clear() {
36558
+ var _innerTextInput$curre4;
36559
+ return (_innerTextInput$curre4 = innerTextInput.current) === null || _innerTextInput$curre4 === void 0 ? void 0 : _innerTextInput$curre4.clear();
36560
+ },
36561
+ isFocused: function isFocused() {
36562
+ var _innerTextInput$curre5;
36563
+ return ((_innerTextInput$curre5 = innerTextInput.current) === null || _innerTextInput$curre5 === void 0 ? void 0 : _innerTextInput$curre5.isFocused()) || false;
36564
+ }
36565
+ };
36566
+ }, [innerTextInput]);
36567
+ return /*#__PURE__*/React__default.createElement(StyledContainer, {
36568
+ pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
36569
+ testID: testID,
36570
+ style: style
36571
+ }, /*#__PURE__*/React__default.createElement(StyledInputContainer, {
36572
+ themeFocused: isFocused
36573
+ }, renderPrefix({
36574
+ prefix: prefix
36575
+ }), renderInput({
36576
+ nativeInputProps: _objectSpread2(_objectSpread2({
36577
+ testID: 'text-input',
36578
+ accessibilityState: {
36579
+ disabled: state === 'disabled' || state === 'readonly'
36580
+ },
36581
+ accessibilityLabelledBy: accessibilityLabelledBy,
36582
+ allowFontScaling: allowFontScaling
36583
+ }, nativeProps), {}, {
36584
+ onFocus: function onFocus(event) {
36585
+ var _nativeProps$onFocus;
36586
+ setIsFocused(true);
36587
+ (_nativeProps$onFocus = nativeProps.onFocus) === null || _nativeProps$onFocus === void 0 || _nativeProps$onFocus.call(nativeProps, event);
36588
+ },
36589
+ onBlur: function onBlur(event) {
36590
+ var _nativeProps$onBlur;
36591
+ setIsFocused(false);
36592
+ (_nativeProps$onBlur = nativeProps.onBlur) === null || _nativeProps$onBlur === void 0 || _nativeProps$onBlur.call(nativeProps, event);
36593
+ },
36594
+ editable: editable,
36595
+ maxLength: maxLength,
36596
+ value: value,
36597
+ defaultValue: defaultValue,
36598
+ placeholder: placeholder
36599
+ }),
36600
+ ref: function ref(rnTextInputRef) {
36601
+ innerTextInput.current = rnTextInputRef;
36602
+ }
36603
+ }), !!suffix && renderSuffix({
36604
+ suffix: suffix
36605
+ })));
36606
+ });
36607
+
36608
+ var SearchSuffixIcon = function SearchSuffixIcon(props) {
36609
+ var suffix = props.suffix,
36610
+ testID = props.testID,
36611
+ style = props.style,
36612
+ badge = props.badge;
36613
+ return /*#__PURE__*/React__default.createElement(StyledSuffixContainer, {
36614
+ testID: testID,
36615
+ style: style
36616
+ }, !!badge && /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({
36617
+ intent: "primary"
36618
+ }, badge, {
36619
+ size: "small"
36620
+ })), renderSuffix({
36621
+ suffix: suffix
36622
+ }));
36623
+ };
36624
+
36625
+ var Search = {
36626
+ OneLine: SearchOneLine,
36627
+ TwoLine: SearchTwoLine,
36628
+ SuffixIcon: SearchSuffixIcon
36629
+ };
36630
+
36631
+ 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, swagLightJobsSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };