@hero-design/rn 8.83.0-test.0 → 8.84.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 (356) hide show
  1. package/.turbo/turbo-build.log +3 -4
  2. package/CHANGELOG.md +22 -2
  3. package/es/index.js +538 -87
  4. package/eslint.config.js +2 -4
  5. package/lib/index.js +536 -84
  6. package/package.json +6 -6
  7. package/src/components/AppCue/StyledAppCue.tsx +46 -0
  8. package/src/components/AppCue/__tests__/StyledAppCue.tsx +18 -0
  9. package/src/components/AppCue/__tests__/__snapshots__/StyledAppCue.tsx.snap +200 -0
  10. package/src/components/AppCue/__tests__/__snapshots__/index.spec.tsx.snap +391 -0
  11. package/src/components/AppCue/__tests__/index.spec.tsx +61 -0
  12. package/src/components/AppCue/__tests__/utils.spec.ts +90 -0
  13. package/src/components/AppCue/index.tsx +188 -0
  14. package/src/components/AppCue/utils.ts +122 -0
  15. package/src/components/Button/Button.tsx +73 -26
  16. package/src/components/Button/StyledButton.tsx +137 -48
  17. package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +1 -1
  18. package/src/components/Button/__tests__/Button.spec.tsx +39 -31
  19. package/src/components/Button/__tests__/StyledButton.spec.tsx +52 -0
  20. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +774 -0
  21. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +489 -0
  22. package/src/components/Chip/StyledChip.tsx +9 -9
  23. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +434 -0
  24. package/src/components/Chip/__tests__/index.spec.tsx +4 -0
  25. package/src/components/Chip/index.tsx +32 -5
  26. package/src/components/Slider/{Range.tsx → RangeSlider.tsx} +29 -19
  27. package/src/components/Slider/StyledRangeSlider.tsx +16 -0
  28. package/src/components/Slider/__tests__/{Range.spec.tsx → RangeSlider.spec.tsx} +23 -9
  29. package/src/components/Slider/__tests__/{Single.spec.tsx → SingleSlider.spec.tsx} +1 -1
  30. package/src/components/Slider/__tests__/__snapshots__/{Range.spec.tsx.snap → RangeSlider.spec.tsx.snap} +110 -26
  31. package/src/components/Slider/index.tsx +3 -3
  32. package/src/components/Tabs/StyledScrollableTabs.tsx +2 -1
  33. package/src/components/Tabs/StyledTabs.tsx +1 -0
  34. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
  35. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -0
  36. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  37. package/src/index.ts +2 -0
  38. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +53 -4
  39. package/src/theme/components/appCue.ts +22 -0
  40. package/src/theme/components/button.ts +14 -4
  41. package/src/theme/components/slider.ts +8 -1
  42. package/src/theme/components/tabs.ts +1 -0
  43. package/src/theme/getTheme.ts +3 -0
  44. package/src/types.ts +1 -1
  45. package/stats/8.83.0/rn-stats.html +4844 -0
  46. package/stats/8.84.0/rn-stats.html +4842 -0
  47. package/types/components/Accordion/AccordionItem.d.ts +1 -1
  48. package/types/components/Accordion/StyledAccordion.d.ts +11 -11
  49. package/types/components/Accordion/index.d.ts +1 -1
  50. package/types/components/Alert/StyledAlert.d.ts +16 -16
  51. package/types/components/Alert/index.d.ts +1 -1
  52. package/types/components/AppCue/StyledAppCue.d.ts +20 -0
  53. package/types/components/AppCue/__tests__/StyledAppCue.d.ts +1 -0
  54. package/types/components/AppCue/index.d.ts +21 -0
  55. package/types/components/AppCue/utils.d.ts +63 -0
  56. package/types/components/Attachment/StyledAttachment.d.ts +8 -8
  57. package/types/components/Attachment/index.d.ts +0 -0
  58. package/types/components/Avatar/Avatar.d.ts +0 -0
  59. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +9 -9
  60. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  61. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  62. package/types/components/Avatar/StyledAvatar.d.ts +10 -10
  63. package/types/components/Avatar/index.d.ts +0 -0
  64. package/types/components/Badge/Status.d.ts +0 -0
  65. package/types/components/Badge/StyledBadge.d.ts +12 -12
  66. package/types/components/Badge/index.d.ts +1 -1
  67. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +15 -15
  68. package/types/components/BottomNavigation/index.d.ts +1 -1
  69. package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
  70. package/types/components/BottomSheet/Footer.d.ts +0 -0
  71. package/types/components/BottomSheet/Header.d.ts +2 -2
  72. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  73. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  74. package/types/components/BottomSheet/index.d.ts +0 -0
  75. package/types/components/Box/StyledBox.d.ts +2 -2
  76. package/types/components/Box/config.d.ts +2 -2
  77. package/types/components/Box/index.d.ts +0 -0
  78. package/types/components/Box/types.d.ts +3 -3
  79. package/types/components/Button/Button.d.ts +2 -2
  80. package/types/components/Button/IconButton.d.ts +0 -0
  81. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +6 -6
  82. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  83. package/types/components/Button/StyledButton.d.ts +33 -23
  84. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +6 -6
  85. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  86. package/types/components/Button/index.d.ts +0 -0
  87. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  88. package/types/components/Calendar/StyledCalendar.d.ts +22 -22
  89. package/types/components/Calendar/helpers.d.ts +0 -0
  90. package/types/components/Calendar/index.d.ts +0 -0
  91. package/types/components/Card/DataCard/StyledDataCard.d.ts +5 -5
  92. package/types/components/Card/DataCard/index.d.ts +0 -0
  93. package/types/components/Card/StyledCard.d.ts +4 -4
  94. package/types/components/Card/index.d.ts +0 -0
  95. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  96. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  97. package/types/components/Carousel/StyledCardCarousel.d.ts +8 -8
  98. package/types/components/Carousel/StyledCarousel.d.ts +21 -21
  99. package/types/components/Carousel/contants.d.ts +0 -0
  100. package/types/components/Carousel/index.d.ts +0 -0
  101. package/types/components/Carousel/types.d.ts +2 -2
  102. package/types/components/Checkbox/StyledCheckbox.d.ts +11 -11
  103. package/types/components/Checkbox/index.d.ts +1 -1
  104. package/types/components/Chip/StyledChip.d.ts +6 -6
  105. package/types/components/Chip/index.d.ts +2 -2
  106. package/types/components/Collapse/StyledCollapse.d.ts +6 -6
  107. package/types/components/Collapse/index.d.ts +0 -0
  108. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +2 -2
  109. package/types/components/ContentNavigator/index.d.ts +0 -0
  110. package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
  111. package/types/components/DatePicker/DatePickerCalendar.d.ts +1 -1
  112. package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
  113. package/types/components/DatePicker/StyledDatePicker.d.ts +2 -2
  114. package/types/components/DatePicker/index.d.ts +0 -0
  115. package/types/components/DatePicker/types.d.ts +0 -0
  116. package/types/components/DatePicker/useCalculateDate.d.ts +1 -1
  117. package/types/components/Divider/StyledDivider.d.ts +5 -5
  118. package/types/components/Divider/index.d.ts +0 -0
  119. package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
  120. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  121. package/types/components/Drawer/StyledDrawer.d.ts +15 -15
  122. package/types/components/Drawer/index.d.ts +0 -0
  123. package/types/components/Empty/StyledEmpty.d.ts +7 -7
  124. package/types/components/Empty/index.d.ts +0 -0
  125. package/types/components/Error/StyledError.d.ts +21 -21
  126. package/types/components/Error/index.d.ts +0 -0
  127. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  128. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +10 -10
  129. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +6 -6
  130. package/types/components/FAB/ActionGroup/index.d.ts +1 -1
  131. package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
  132. package/types/components/FAB/FAB.d.ts +1 -1
  133. package/types/components/FAB/Pair/StyledFAB.d.ts +6 -6
  134. package/types/components/FAB/Pair/index.d.ts +1 -1
  135. package/types/components/FAB/StyledFAB.d.ts +9 -9
  136. package/types/components/FAB/index.d.ts +0 -0
  137. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +10 -10
  138. package/types/components/Icon/AnimatedIcon.d.ts +1 -1
  139. package/types/components/Icon/HeroIcon/index.d.ts +4 -4
  140. package/types/components/Icon/IconList.d.ts +0 -0
  141. package/types/components/Icon/index.d.ts +1 -1
  142. package/types/components/Icon/utils.d.ts +2 -1
  143. package/types/components/Image/index.d.ts +0 -0
  144. package/types/components/List/BasicListItem.d.ts +0 -0
  145. package/types/components/List/ListItem.d.ts +0 -0
  146. package/types/components/List/StyledBasicListItem.d.ts +10 -10
  147. package/types/components/List/StyledListItem.d.ts +18 -18
  148. package/types/components/List/index.d.ts +0 -0
  149. package/types/components/MapPin/StyledMapPin.d.ts +11 -11
  150. package/types/components/MapPin/types.d.ts +1 -1
  151. package/types/components/PageControl/StyledPageControl.d.ts +4 -4
  152. package/types/components/PageControl/index.d.ts +0 -0
  153. package/types/components/PinInput/PinCell.d.ts +0 -0
  154. package/types/components/PinInput/StyledPinInput.d.ts +21 -21
  155. package/types/components/PinInput/index.d.ts +0 -0
  156. package/types/components/Portal/reducer.d.ts +1 -1
  157. package/types/components/Portal/types.d.ts +1 -1
  158. package/types/components/Progress/ProgressBar.d.ts +0 -0
  159. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  160. package/types/components/Progress/ProgressStep.d.ts +1 -1
  161. package/types/components/Progress/StyledProgressBar.d.ts +4 -4
  162. package/types/components/Progress/StyledProgressCircle.d.ts +12 -12
  163. package/types/components/Progress/StyledStep.d.ts +10 -10
  164. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  165. package/types/components/Progress/constants.d.ts +0 -0
  166. package/types/components/Progress/index.d.ts +0 -0
  167. package/types/components/Progress/types.d.ts +1 -1
  168. package/types/components/Radio/Radio.d.ts +0 -0
  169. package/types/components/Radio/RadioGroup.d.ts +0 -0
  170. package/types/components/Radio/StyledRadio.d.ts +9 -9
  171. package/types/components/Radio/index.d.ts +1 -1
  172. package/types/components/Radio/types.d.ts +1 -1
  173. package/types/components/Rate/StyledRate.d.ts +4 -4
  174. package/types/components/RefreshControl/index.d.ts +1 -1
  175. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -1
  176. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  177. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  178. package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
  179. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +4 -4
  180. package/types/components/RichTextEditor/StyledToolbar.d.ts +6 -6
  181. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  182. package/types/components/RichTextEditor/constants.d.ts +0 -0
  183. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  184. package/types/components/RichTextEditor/index.d.ts +0 -0
  185. package/types/components/RichTextEditor/types.d.ts +1 -1
  186. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  187. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  188. package/types/components/Search/SearchOneLine.d.ts +5 -5
  189. package/types/components/Search/StyledSearch.d.ts +18 -18
  190. package/types/components/Search/index.d.ts +1 -1
  191. package/types/components/Search/utils.d.ts +2 -2
  192. package/types/components/SectionHeading/StyledHeading.d.ts +7 -7
  193. package/types/components/SectionHeading/index.d.ts +0 -0
  194. package/types/components/Select/BaseOptionList.d.ts +1 -1
  195. package/types/components/Select/Footer.d.ts +0 -0
  196. package/types/components/Select/MultiSelect/Option.d.ts +2 -2
  197. package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
  198. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  199. package/types/components/Select/SingleSelect/Option.d.ts +2 -2
  200. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  201. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
  202. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  203. package/types/components/Select/StyledSelect.d.ts +6 -6
  204. package/types/components/Select/helpers.d.ts +2 -2
  205. package/types/components/Select/index.d.ts +0 -0
  206. package/types/components/Select/types.d.ts +6 -6
  207. package/types/components/Skeleton/StyledSkeleton.d.ts +6 -6
  208. package/types/components/Skeleton/index.d.ts +0 -0
  209. package/types/components/Slider/{Range.d.ts → RangeSlider.d.ts} +1 -1
  210. package/types/components/Slider/StyledRangeSlider.d.ts +10 -0
  211. package/types/components/Slider/index.d.ts +2 -2
  212. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -2
  213. package/types/components/Spinner/StyledSpinner.d.ts +13 -13
  214. package/types/components/Spinner/index.d.ts +0 -0
  215. package/types/components/Success/StyledSuccess.d.ts +19 -19
  216. package/types/components/Success/index.d.ts +0 -0
  217. package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
  218. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  219. package/types/components/Swipeable/index.d.ts +2 -2
  220. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -5
  221. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +8 -8
  222. package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
  223. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  224. package/types/components/Switch/index.d.ts +3 -3
  225. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  226. package/types/components/Tabs/SceneView.d.ts +3 -3
  227. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  228. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +2 -2
  229. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +2 -2
  230. package/types/components/Tabs/StyledScrollableTabs.d.ts +17 -17
  231. package/types/components/Tabs/StyledTabs.d.ts +14 -14
  232. package/types/components/Tabs/TabWithBadge.d.ts +3 -3
  233. package/types/components/Tabs/index.d.ts +2 -2
  234. package/types/components/Tabs/useHandlePageScroll.d.ts +1 -1
  235. package/types/components/Tabs/useIsFocused.d.ts +0 -0
  236. package/types/components/Tabs/utils.d.ts +0 -0
  237. package/types/components/Tag/StyledTag.d.ts +5 -5
  238. package/types/components/Tag/index.d.ts +0 -0
  239. package/types/components/TextInput/StyledTextInput.d.ts +28 -28
  240. package/types/components/TextInput/index.d.ts +16 -16
  241. package/types/components/TimePicker/StyledTimePicker.d.ts +2 -2
  242. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  243. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  244. package/types/components/TimePicker/index.d.ts +0 -0
  245. package/types/components/TimePicker/types.d.ts +0 -0
  246. package/types/components/Toast/StyledToast.d.ts +18 -18
  247. package/types/components/Toast/Toast.d.ts +0 -0
  248. package/types/components/Toast/ToastContainer.d.ts +0 -0
  249. package/types/components/Toast/ToastContext.d.ts +2 -2
  250. package/types/components/Toast/ToastProvider.d.ts +1 -1
  251. package/types/components/Toast/index.d.ts +0 -0
  252. package/types/components/Toast/types.d.ts +2 -2
  253. package/types/components/Toolbar/StyledToolbar.d.ts +25 -25
  254. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  255. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  256. package/types/components/Toolbar/ToolbarMessage.d.ts +4 -4
  257. package/types/components/Toolbar/index.d.ts +0 -0
  258. package/types/components/Typography/Body/StyledBody.d.ts +4 -4
  259. package/types/components/Typography/Caption/StyledCaption.d.ts +3 -3
  260. package/types/components/Typography/Label/StyledLabel.d.ts +2 -2
  261. package/types/components/Typography/Text/StyledText.d.ts +6 -6
  262. package/types/components/Typography/Text/index.d.ts +0 -0
  263. package/types/components/Typography/Title/StyledTitle.d.ts +4 -4
  264. package/types/components/Typography/index.d.ts +0 -0
  265. package/types/components/Typography/types.d.ts +1 -1
  266. package/types/index.d.ts +2 -1
  267. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  268. package/types/testHelpers/utils.d.ts +1 -1
  269. package/types/theme/ThemeProvider.d.ts +0 -0
  270. package/types/theme/ThemeSwitcher.d.ts +3 -3
  271. package/types/theme/components/accordion.d.ts +0 -0
  272. package/types/theme/components/alert.d.ts +0 -0
  273. package/types/theme/components/appCue.d.ts +16 -0
  274. package/types/theme/components/attachment.d.ts +0 -0
  275. package/types/theme/components/avatar.d.ts +0 -0
  276. package/types/theme/components/badge.d.ts +1 -1
  277. package/types/theme/components/bottomNavigation.d.ts +0 -0
  278. package/types/theme/components/bottomSheet.d.ts +0 -0
  279. package/types/theme/components/button.d.ts +15 -5
  280. package/types/theme/components/calendar.d.ts +0 -0
  281. package/types/theme/components/card.d.ts +0 -0
  282. package/types/theme/components/cardCarousel.d.ts +0 -0
  283. package/types/theme/components/carousel.d.ts +1 -1
  284. package/types/theme/components/checkbox.d.ts +0 -0
  285. package/types/theme/components/contentNavigator.d.ts +0 -0
  286. package/types/theme/components/datePicker.d.ts +0 -0
  287. package/types/theme/components/divider.d.ts +0 -0
  288. package/types/theme/components/drawer.d.ts +0 -0
  289. package/types/theme/components/empty.d.ts +1 -1
  290. package/types/theme/components/error.d.ts +1 -1
  291. package/types/theme/components/fab.d.ts +1 -1
  292. package/types/theme/components/icon.d.ts +0 -0
  293. package/types/theme/components/image.d.ts +0 -0
  294. package/types/theme/components/list.d.ts +0 -0
  295. package/types/theme/components/pageControl.d.ts +0 -0
  296. package/types/theme/components/pinInput.d.ts +1 -1
  297. package/types/theme/components/progress.d.ts +0 -0
  298. package/types/theme/components/radio.d.ts +0 -0
  299. package/types/theme/components/refreshControl.d.ts +0 -0
  300. package/types/theme/components/richTextEditor.d.ts +0 -0
  301. package/types/theme/components/sectionHeading.d.ts +0 -0
  302. package/types/theme/components/select.d.ts +0 -0
  303. package/types/theme/components/skeleton.d.ts +0 -0
  304. package/types/theme/components/slider.d.ts +6 -0
  305. package/types/theme/components/spinner.d.ts +0 -0
  306. package/types/theme/components/success.d.ts +1 -1
  307. package/types/theme/components/swipeable.d.ts +0 -0
  308. package/types/theme/components/switch.d.ts +0 -0
  309. package/types/theme/components/tabs.d.ts +1 -0
  310. package/types/theme/components/tag.d.ts +1 -1
  311. package/types/theme/components/textInput.d.ts +0 -0
  312. package/types/theme/components/timePicker.d.ts +0 -0
  313. package/types/theme/components/toast.d.ts +0 -0
  314. package/types/theme/components/toolbar.d.ts +0 -0
  315. package/types/theme/components/typography.d.ts +0 -0
  316. package/types/theme/getTheme.d.ts +3 -1
  317. package/types/theme/global/borders.d.ts +0 -0
  318. package/types/theme/global/colors/eBens.d.ts +0 -0
  319. package/types/theme/global/colors/global.d.ts +0 -0
  320. package/types/theme/global/colors/globalDark.d.ts +0 -0
  321. package/types/theme/global/colors/jobs.d.ts +0 -0
  322. package/types/theme/global/colors/swag.d.ts +0 -0
  323. package/types/theme/global/colors/swagDark.d.ts +0 -0
  324. package/types/theme/global/colors/types.d.ts +3 -3
  325. package/types/theme/global/colors/wallet.d.ts +0 -0
  326. package/types/theme/global/colors/work.d.ts +0 -0
  327. package/types/theme/global/index.d.ts +4 -4
  328. package/types/theme/global/scale.d.ts +1 -1
  329. package/types/theme/global/shadows.d.ts +1 -1
  330. package/types/theme/global/sizes.d.ts +0 -0
  331. package/types/theme/global/space.d.ts +0 -0
  332. package/types/theme/global/typography.d.ts +1 -1
  333. package/types/theme/index.d.ts +0 -0
  334. package/types/types.d.ts +1 -1
  335. package/types/utils/functions.d.ts +0 -0
  336. package/types/utils/helpers.d.ts +0 -0
  337. package/types/utils/hooks.d.ts +0 -0
  338. package/types/utils/scale.d.ts +0 -0
  339. package/.turbo/turbo-build$colon$types.log +0 -0
  340. package/.turbo/turbo-lint.log +0 -183
  341. package/.turbo/turbo-publish:npm.log +0 -9
  342. package/.turbo/turbo-test.log +0 -4726
  343. package/.turbo/turbo-type-check.log +0 -0
  344. package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +0 -31
  345. package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +0 -60
  346. package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +0 -40
  347. package/types/components/CompoundSearch/index.d.ts +0 -8
  348. package/types/components/CompoundSearch/utils.d.ts +0 -8
  349. package/types/components/HeroDesignProvider/HeroDesignContext.d.ts +0 -5
  350. package/types/components/Search/SearchBasic.d.ts +0 -31
  351. package/types/components/Search/SearchCompound.d.ts +0 -60
  352. package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -35
  353. package/types/theme/components/compoundSearch.d.ts +0 -36
  354. /package/src/components/Slider/{Single.tsx → SingleSlider.tsx} +0 -0
  355. /package/src/components/Slider/__tests__/__snapshots__/{Single.spec.tsx.snap → SingleSlider.spec.tsx.snap} +0 -0
  356. /package/types/components/Slider/{Single.d.ts → SingleSlider.d.ts} +0 -0
package/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as reactNative from 'react-native';
2
- import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, Modal as Modal$1, FlatList, TextInput as TextInput$1, PanResponder, BackHandler, InteractionManager, useWindowDimensions, Keyboard, SectionList, RefreshControl as RefreshControl$1 } from 'react-native';
2
+ import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, useWindowDimensions, TouchableWithoutFeedback, Modal as Modal$1, Image as Image$1, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, FlatList, TextInput as TextInput$1, PanResponder, BackHandler, InteractionManager, Keyboard, SectionList, RefreshControl as RefreshControl$1 } from 'react-native';
3
3
  import * as React from 'react';
4
- import React__default, { useMemo, useEffect, useCallback, useRef, useState, createContext, useContext, forwardRef, memo, useReducer, useLayoutEffect, useImperativeHandle, isValidElement } from 'react';
4
+ import React__default, { useMemo, useEffect, useCallback, useRef, useLayoutEffect, useState, createContext, useContext, forwardRef, memo, useReducer, useImperativeHandle, isValidElement } from 'react';
5
5
  import { createIconSet } from 'react-native-vector-icons';
6
6
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
7
7
  import { MonthYearPickerViewIOS, MonthYearPickerDialogueAndroid } from '@hero-design/react-native-month-year-picker';
@@ -2043,15 +2043,25 @@ var getFontSizes = function getFontSizes(baseFontSize) {
2043
2043
  });
2044
2044
  return {
2045
2045
  '7xlarge': scale(fontSizes[10]),
2046
+ // 42
2046
2047
  '6xlarge': scale(fontSizes[9]),
2048
+ // 36
2047
2049
  xxxxxlarge: scale(fontSizes[8]),
2050
+ // 32
2048
2051
  xxxxlarge: scale(fontSizes[7]),
2052
+ // 28
2049
2053
  xxxlarge: scale(fontSizes[6]),
2054
+ // 24
2050
2055
  xxlarge: scale(fontSizes[5]),
2056
+ // 20
2051
2057
  xlarge: scale(fontSizes[4]),
2058
+ // 18
2052
2059
  large: scale(fontSizes[3]),
2060
+ // 16
2053
2061
  medium: scale(fontSizes[2]),
2062
+ // 14
2054
2063
  small: scale(fontSizes[1]),
2064
+ // 12
2055
2065
  xsmall: scale(fontSizes[0]) // 10
2056
2066
  };
2057
2067
  };
@@ -2076,15 +2086,25 @@ var getLineHeights = function getLineHeights(fontSizes) {
2076
2086
  var getSpace = function getSpace(baseSpace) {
2077
2087
  return {
2078
2088
  xxsmall: scale(baseSpace * 0.25),
2089
+ // 2
2079
2090
  xsmall: scale(baseSpace * 0.5),
2091
+ // 4
2080
2092
  small: scale(baseSpace),
2093
+ // 8
2081
2094
  smallMedium: scale(baseSpace) * 1.5,
2095
+ // 12
2082
2096
  medium: scale(baseSpace * 2),
2097
+ // 16
2083
2098
  large: scale(baseSpace * 3),
2099
+ // 24
2084
2100
  xlarge: scale(baseSpace * 4),
2101
+ // 32
2085
2102
  xxlarge: scale(baseSpace * 5),
2103
+ // 40
2086
2104
  xxxlarge: scale(baseSpace * 6),
2105
+ // 48
2087
2106
  xxxxlarge: scale(baseSpace * 7),
2107
+ // 56
2088
2108
  '5xlarge': scale(baseSpace * 8) // 64
2089
2109
  };
2090
2110
  };
@@ -2092,12 +2112,19 @@ var getSpace = function getSpace(baseSpace) {
2092
2112
  var getSizes = function getSizes(baseSize) {
2093
2113
  return _objectSpread2(_objectSpread2({}, getSpace(baseSize)), {}, {
2094
2114
  xxxxxlarge: scale(baseSize * 8),
2115
+ // 64
2095
2116
  '6xlarge': scale(baseSize * 9),
2117
+ // 72
2096
2118
  '7xlarge': scale(baseSize * 10),
2119
+ // 80
2097
2120
  '9xlarge': scale(baseSize * 12),
2121
+ // 96
2098
2122
  '14xlarge': scale(baseSize * 17),
2123
+ // 136
2099
2124
  '15xlarge': scale(baseSize * 18),
2125
+ // 144
2100
2126
  '18xlarge': scale(baseSize * 21),
2127
+ // 168
2101
2128
  '19xlarge': scale(baseSize * 22) // 176
2102
2129
  });
2103
2130
  };
@@ -2105,6 +2132,7 @@ var getSizes = function getSizes(baseSize) {
2105
2132
  var getBorderWidths = function getBorderWidths(baseBorderWidth) {
2106
2133
  return {
2107
2134
  base: baseBorderWidth,
2135
+ // 1
2108
2136
  medium: baseBorderWidth * 2 // 2
2109
2137
  };
2110
2138
  };
@@ -2113,11 +2141,17 @@ var getRadii = function getRadii(baseRadius) {
2113
2141
  return {
2114
2142
  rounded: 999,
2115
2143
  base: baseRadius,
2144
+ // 4
2116
2145
  medium: baseRadius * 2,
2146
+ // 8
2117
2147
  large: baseRadius * 3,
2148
+ // 12
2118
2149
  xlarge: baseRadius * 4,
2150
+ // 16
2119
2151
  xxlarge: baseRadius * 5,
2152
+ // 20
2120
2153
  xxxlarge: baseRadius * 6,
2154
+ // 24
2121
2155
  '5xlarge': baseRadius * 8 // 32
2122
2156
  };
2123
2157
  };
@@ -2450,13 +2484,23 @@ var getButtonTheme = function getButtonTheme(theme) {
2450
2484
  "default": theme.space.xxsmall
2451
2485
  };
2452
2486
  var space = {
2453
- buttonPadding: theme.space.medium,
2454
- textButtonPadding: theme.space.smallMedium,
2455
- iconPadding: theme.space.smallMedium,
2487
+ "default": {
2488
+ buttonPadding: theme.space.medium,
2489
+ iconPadding: theme.space.smallMedium,
2490
+ textButtonPadding: theme.space.smallMedium
2491
+ },
2492
+ compact: {
2493
+ buttonPaddingVertical: theme.space.small,
2494
+ buttonPaddingHorizontal: theme.space.medium,
2495
+ iconPadding: theme.space.small
2496
+ },
2456
2497
  utilityPadding: theme.space.small
2457
2498
  };
2458
2499
  var sizes = {
2459
- iconSize: theme.fontSizes.xxlarge
2500
+ iconSize: {
2501
+ "default": theme.fontSizes.xxlarge,
2502
+ compact: theme.fontSizes.small
2503
+ }
2460
2504
  };
2461
2505
  var radii = {
2462
2506
  "default": theme.radii['5xlarge'],
@@ -3067,6 +3111,7 @@ var getProgressTheme = function getProgressTheme(theme) {
3067
3111
  completeness: {
3068
3112
  primary: theme.colors.primary,
3069
3113
  success: theme.colors.success,
3114
+ // should be emerald dark 15
3070
3115
  warning: theme.colors.warning,
3071
3116
  danger: theme.colors.error,
3072
3117
  info: theme.colors.info,
@@ -3279,12 +3324,19 @@ var getSliderTheme = function getSliderTheme(theme) {
3279
3324
  marker: theme.shadows["default"]
3280
3325
  };
3281
3326
  var sizes = {
3282
- trackHeight: theme.sizes.xsmall
3327
+ trackHeight: theme.sizes.xsmall,
3328
+ markerWidth: theme.sizes.large,
3329
+ markerHeight: theme.sizes.large,
3330
+ markerBorderRadius: theme.radii.rounded
3331
+ };
3332
+ var radii = {
3333
+ marker: theme.radii.rounded
3283
3334
  };
3284
3335
  return {
3285
3336
  colors: colors,
3286
3337
  shadows: shadows,
3287
- sizes: sizes
3338
+ sizes: sizes,
3339
+ radii: radii
3288
3340
  };
3289
3341
  };
3290
3342
 
@@ -3427,7 +3479,8 @@ var getTabsTheme = function getTabsTheme(theme) {
3427
3479
  activeBackground: theme.colors.decorativePrimarySurface,
3428
3480
  headerBottom: theme.colors.secondaryOutline,
3429
3481
  indicator: theme.colors.primary,
3430
- text: theme.colors.onDefaultGlobalSurface
3482
+ text: theme.colors.onDefaultGlobalSurface,
3483
+ headerBackground: theme.colors.defaultGlobalSurface
3431
3484
  };
3432
3485
  var space = {
3433
3486
  flatListHorizontalPadding: theme.space.small,
@@ -4030,6 +4083,26 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
4030
4083
  };
4031
4084
  };
4032
4085
 
4086
+ var getAppCueTheme = function getAppCueTheme(theme) {
4087
+ var colors = {
4088
+ background: theme.colors.darkGlobalSurface,
4089
+ backdropColor: 'rgba(0, 0, 0, 0.5)'
4090
+ };
4091
+ var space = {
4092
+ padding: theme.space.medium,
4093
+ offset: theme.space.small,
4094
+ arrowOffset: theme.space.smallMedium
4095
+ };
4096
+ var radii = {
4097
+ container: theme.radii.large
4098
+ };
4099
+ return {
4100
+ colors: colors,
4101
+ space: space,
4102
+ radii: radii
4103
+ };
4104
+ };
4105
+
4033
4106
  var getTheme$1 = function getTheme() {
4034
4107
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
4035
4108
  var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
@@ -4038,6 +4111,7 @@ var getTheme$1 = function getTheme() {
4038
4111
  __hd__: {
4039
4112
  accordion: getAccordionTheme(globalTheme),
4040
4113
  alert: getAlertTheme(globalTheme),
4114
+ appCue: getAppCueTheme(globalTheme),
4041
4115
  attachment: getAttachmentTheme(globalTheme),
4042
4116
  avatar: getAvatarTheme(globalTheme),
4043
4117
  badge: getBadgeTheme(globalTheme),
@@ -8183,6 +8257,288 @@ var Alert = function Alert(_ref2) {
8183
8257
  })) : null);
8184
8258
  };
8185
8259
 
8260
+ var StyledContent$1 = index$a(View)(function (_ref) {
8261
+ var theme = _ref.theme;
8262
+ return {
8263
+ padding: theme.__hd__.appCue.space.padding,
8264
+ backgroundColor: theme.__hd__.appCue.colors.background,
8265
+ borderRadius: theme.__hd__.appCue.radii.container,
8266
+ alignSelf: 'center'
8267
+ };
8268
+ });
8269
+ var StyledContainer$9 = index$a(View)(function (_ref2) {
8270
+ var theme = _ref2.theme;
8271
+ return {
8272
+ width: '100%',
8273
+ height: '100%',
8274
+ backgroundColor: theme.__hd__.appCue.colors.backdropColor
8275
+ };
8276
+ });
8277
+ var StyledIconContainer$1 = index$a(Animated.View)(function (_ref3) {
8278
+ var theme = _ref3.theme,
8279
+ themePlacement = _ref3.themePlacement;
8280
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
8281
+ position: 'absolute',
8282
+ color: theme.__hd__.appCue.colors.background,
8283
+ display: 'flex',
8284
+ alignItems: 'center',
8285
+ justifyContent: 'center'
8286
+ }, themePlacement === 'top' && {
8287
+ bottom: -theme.__hd__.appCue.space.arrowOffset,
8288
+ width: '100%'
8289
+ }), themePlacement === 'bottom' && {
8290
+ top: -theme.__hd__.appCue.space.arrowOffset,
8291
+ transform: [{
8292
+ rotate: '180deg'
8293
+ }],
8294
+ width: '100%'
8295
+ }), themePlacement === 'right' && {
8296
+ left: -theme.__hd__.appCue.space.arrowOffset,
8297
+ transform: [{
8298
+ rotate: '90deg'
8299
+ }],
8300
+ height: '100%'
8301
+ }), themePlacement === 'left' && {
8302
+ right: -theme.__hd__.appCue.space.arrowOffset,
8303
+ transform: [{
8304
+ rotate: '-90deg'
8305
+ }],
8306
+ height: '100%'
8307
+ });
8308
+ });
8309
+
8310
+ /**
8311
+ * Calculates the position of an element based on its placement relative to a reference position.
8312
+ *
8313
+ * @param {Object} params - The parameters for calculating the position.
8314
+ * @param {Object} params.position - The position and size of target element.
8315
+ * @param {number} params.position.pageX - The X coordinate of the target position.
8316
+ * @param {number} params.position.pageY - The Y coordinate of the target position.
8317
+ * @param {number} params.position.width - The width of the reference element.
8318
+ * @param {number} params.position.height - The height of the reference element.
8319
+ * @param {Object} params.contentSize - The size of the App Cue content.
8320
+ * @param {number} params.contentSize.width - The width of the content.
8321
+ * @param {number} params.contentSize.height - The height of the content.
8322
+ * @param {Placement} params.placement - The placement of the content relative to the reference position ('top', 'bottom', 'right', 'left').
8323
+ * @param {number} params.offset - The offset distance to display an arrow.
8324
+ *
8325
+ * @returns {Object} The calculated position of the App Cue.
8326
+ * @returns {number} return.x - The X coordinate of the App Cue.
8327
+ * @returns {number} return.y - The Y coordinate of the App Cue.
8328
+ */
8329
+ var calculatePosition = function calculatePosition(_ref) {
8330
+ var placement = _ref.placement,
8331
+ position = _ref.position,
8332
+ contentSize = _ref.contentSize,
8333
+ offset = _ref.offset;
8334
+ switch (placement) {
8335
+ case 'top':
8336
+ {
8337
+ return {
8338
+ // The X coordinate is calculated by adding the half of the width of the target element to the X coordinate of the target element.
8339
+ x: position.pageX + (position.width - contentSize.width) / 2,
8340
+ // The Y coordinate is calculated by subtracting the height of the content and the offset from the Y coordinate of the target element
8341
+ y: position.pageY - contentSize.height - offset
8342
+ };
8343
+ }
8344
+ case 'bottom':
8345
+ {
8346
+ return {
8347
+ // The X coordinate is calculated by adding the half of the width of the target element to the X coordinate of the target element.
8348
+ x: position.pageX + (position.width - contentSize.width) / 2,
8349
+ // The Y coordinate is calculated by adding the height of the target element and the offset to the Y coordinate of the target element.
8350
+ y: position.pageY + position.height + offset
8351
+ };
8352
+ }
8353
+ case 'right':
8354
+ {
8355
+ return {
8356
+ // The X coordinate is calculated by adding the width of the target element and the offset to the X coordinate of the target element.
8357
+ x: position.pageX + position.width + offset,
8358
+ // The Y coordinate is calculated by adding half of the height of the target element to the Y coordinate of the target element.
8359
+ y: position.pageY + (position.height - contentSize.height) / 2
8360
+ };
8361
+ }
8362
+ case 'left':
8363
+ {
8364
+ return {
8365
+ // The X coordinate is calculated by subtracting the width of the content and the offset from the X coordinate of the target element.
8366
+ x: position.pageX - contentSize.width - offset,
8367
+ // The Y coordinate is calculated by adding half of the height of the target element to the Y coordinate of the target element.
8368
+ y: position.pageY + (position.height - contentSize.height) / 2
8369
+ };
8370
+ }
8371
+ }
8372
+ };
8373
+ /**
8374
+ * Calculates the maximum width of the content based on its position, offset, placement, and window width.
8375
+ *
8376
+ * @param {Object} params - The parameters for the calculation.
8377
+ * @param {Object} params.position - The position and dimensions of the target element.
8378
+ * @param {number} params.position.pageX - The X coordinate of the target element.
8379
+ * @param {number} params.position.pageY - The Y coordinate of the target element.
8380
+ * @param {number} params.position.width - The width of the target element.
8381
+ * @param {number} params.position.height - The height of the target element.
8382
+ * @param {number} params.offset - The offset value to display an arrow.
8383
+ * @param {Placement} params.placement - The placement of the content relative to the element.
8384
+ * @param {number} params.windowWidth - The width of the window.
8385
+ *
8386
+ * @returns {number | undefined} The maximum width of the content.
8387
+ */
8388
+ var calulateContentMaxWidth = function calulateContentMaxWidth(_ref2) {
8389
+ var position = _ref2.position,
8390
+ offset = _ref2.offset,
8391
+ placement = _ref2.placement,
8392
+ windowWidth = _ref2.windowWidth;
8393
+ switch (placement) {
8394
+ case 'top':
8395
+ {
8396
+ return undefined;
8397
+ }
8398
+ case 'bottom':
8399
+ {
8400
+ return undefined;
8401
+ }
8402
+ case 'right':
8403
+ {
8404
+ return windowWidth - position.pageX - position.width - offset;
8405
+ }
8406
+ case 'left':
8407
+ {
8408
+ return position.pageX - offset;
8409
+ }
8410
+ }
8411
+ };
8412
+
8413
+ var AppCue = function AppCue(_ref) {
8414
+ var target = _ref.target,
8415
+ content = _ref.content,
8416
+ _ref$placement = _ref.placement,
8417
+ placement = _ref$placement === void 0 ? 'top' : _ref$placement,
8418
+ style = _ref.style,
8419
+ testID = _ref.testID;
8420
+ var targetContainerRef = useRef(null);
8421
+ var _React$useState = React__default.useState(false),
8422
+ _React$useState2 = _slicedToArray(_React$useState, 2),
8423
+ visible = _React$useState2[0],
8424
+ setVisible = _React$useState2[1];
8425
+ var theme = useTheme();
8426
+ var offset = theme.__hd__.appCue.space.offset;
8427
+ var _React$useState3 = React__default.useState({
8428
+ pageX: 0,
8429
+ pageY: 0,
8430
+ width: 0,
8431
+ height: 0
8432
+ }),
8433
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
8434
+ position = _React$useState4[0],
8435
+ setPosition = _React$useState4[1];
8436
+ var _React$useState5 = React__default.useState({
8437
+ width: 0,
8438
+ height: 0
8439
+ }),
8440
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
8441
+ contentSize = _React$useState6[0],
8442
+ setContentSize = _React$useState6[1];
8443
+ var doMeasure = useCallback(function (cb) {
8444
+ var _targetContainerRef$c;
8445
+ (_targetContainerRef$c = targetContainerRef.current) === null || _targetContainerRef$c === void 0 || _targetContainerRef$c.measure(function (_, __, width, height, pageX, pageY) {
8446
+ setPosition({
8447
+ pageX: pageX,
8448
+ pageY: pageY,
8449
+ width: width,
8450
+ height: height
8451
+ });
8452
+ cb === null || cb === void 0 || cb();
8453
+ });
8454
+ }, []);
8455
+ var handleOpen = function handleOpen() {
8456
+ doMeasure(function () {
8457
+ return setVisible(true);
8458
+ });
8459
+ };
8460
+ useLayoutEffect(function () {
8461
+ doMeasure();
8462
+ }, [doMeasure]);
8463
+ var enhancedTarget = /*#__PURE__*/React__default.cloneElement(target, {
8464
+ onPress: function onPress() {
8465
+ var _target$props, _target$props$onPress;
8466
+ handleOpen();
8467
+ (_target$props = target.props) === null || _target$props === void 0 || (_target$props$onPress = _target$props.onPress) === null || _target$props$onPress === void 0 || _target$props$onPress.call(_target$props);
8468
+ }
8469
+ }, target.props.children);
8470
+ var measureContent = function measureContent(event) {
8471
+ setContentSize({
8472
+ width: event.nativeEvent.layout.width,
8473
+ height: event.nativeEvent.layout.height
8474
+ });
8475
+ };
8476
+ var pos = calculatePosition({
8477
+ position: position,
8478
+ contentSize: contentSize,
8479
+ placement: placement,
8480
+ offset: offset
8481
+ });
8482
+ var _useWindowDimensions = useWindowDimensions(),
8483
+ windowWidth = _useWindowDimensions.width;
8484
+ var maxWidth = calulateContentMaxWidth({
8485
+ position: position,
8486
+ offset: offset,
8487
+ placement: placement,
8488
+ windowWidth: windowWidth
8489
+ });
8490
+ var renderContent = function renderContent() {
8491
+ if (typeof content === 'string') {
8492
+ return /*#__PURE__*/React__default.createElement(Typography.Body, {
8493
+ intent: "inverted"
8494
+ }, content);
8495
+ }
8496
+ return content;
8497
+ };
8498
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
8499
+ onPress: handleOpen
8500
+ }, /*#__PURE__*/React__default.createElement(View, {
8501
+ collapsable: false,
8502
+ ref: targetContainerRef,
8503
+ style: {
8504
+ alignSelf: 'center'
8505
+ }
8506
+ }, enhancedTarget)), /*#__PURE__*/React__default.createElement(Modal$1, {
8507
+ animationType: "fade",
8508
+ visible: visible,
8509
+ onDismiss: function onDismiss() {
8510
+ return setVisible(false);
8511
+ },
8512
+ transparent: true,
8513
+ presentationStyle: "overFullScreen",
8514
+ statusBarTranslucent: true
8515
+ }, /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
8516
+ testID: testID && "".concat(testID, "-backdrop"),
8517
+ onPress: function onPress() {
8518
+ return setVisible(false);
8519
+ }
8520
+ }, /*#__PURE__*/React__default.createElement(StyledContainer$9, null, /*#__PURE__*/React__default.createElement(View, {
8521
+ style: StyleSheet$1.flatten([{
8522
+ position: 'absolute',
8523
+ top: pos.y,
8524
+ left: pos.x
8525
+ }, style]),
8526
+ onLayout: measureContent,
8527
+ testID: testID
8528
+ }, /*#__PURE__*/React__default.createElement(StyledContent$1, {
8529
+ style: {
8530
+ maxWidth: maxWidth
8531
+ },
8532
+ testID: testID && "".concat(testID, "-content")
8533
+ }, renderContent()), /*#__PURE__*/React__default.createElement(StyledIconContainer$1, {
8534
+ themePlacement: placement,
8535
+ testID: testID && "".concat(testID, "-arrow")
8536
+ }, /*#__PURE__*/React__default.createElement(Icon, {
8537
+ icon: "caret-down",
8538
+ size: "small"
8539
+ })))))));
8540
+ };
8541
+
8186
8542
  var StyledContainer$8 = index$a(View)({
8187
8543
  alignItems: 'center',
8188
8544
  flexDirection: 'row'
@@ -8288,6 +8644,7 @@ var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
8288
8644
 
8289
8645
  android: {
8290
8646
  lineHeight: null,
8647
+ // center on android
8291
8648
  marginTop: theme.__hd__.avatar.spaces.titleMarginTopForAndroid[themeSize]
8292
8649
  },
8293
8650
  web: {
@@ -9287,7 +9644,15 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
9287
9644
  }, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
9288
9645
  };
9289
9646
 
9290
- var genFilledContainerStyles = function genFilledContainerStyles(theme, intent, disabled, loading) {
9647
+ var getButtonHeight = function getButtonHeight(themeIsCompact) {
9648
+ switch (themeIsCompact) {
9649
+ case true:
9650
+ return scale(36);
9651
+ default:
9652
+ return scale(60);
9653
+ }
9654
+ };
9655
+ var genFilledContainerStyles = function genFilledContainerStyles(theme, intent, disabled, loading, compact) {
9291
9656
  var backgroundColorStyling = function backgroundColorStyling() {
9292
9657
  if (!loading && disabled) {
9293
9658
  return {
@@ -9298,17 +9663,23 @@ var genFilledContainerStyles = function genFilledContainerStyles(theme, intent,
9298
9663
  backgroundColor: theme.__hd__.button.colors[intent]
9299
9664
  };
9300
9665
  };
9301
- return _objectSpread2({
9302
- height: scale(60),
9666
+ return _objectSpread2(_objectSpread2({
9667
+ height: getButtonHeight(compact),
9303
9668
  flexDirection: 'row',
9304
9669
  justifyContent: 'center',
9305
- alignItems: 'center',
9670
+ alignItems: 'center'
9671
+ }, compact ? {
9672
+ alignSelf: 'flex-start',
9673
+ paddingVertical: theme.__hd__.button.space.compact.buttonPaddingVertical,
9674
+ paddingHorizontal: theme.__hd__.button.space["default"].buttonPadding
9675
+ } : {
9306
9676
  alignSelf: 'stretch',
9307
- padding: theme.__hd__.button.space.buttonPadding,
9677
+ padding: theme.__hd__.button.space["default"].buttonPadding
9678
+ }), {}, {
9308
9679
  borderRadius: theme.__hd__.button.radii["default"]
9309
9680
  }, backgroundColorStyling());
9310
9681
  };
9311
- var genOutlineContainerStyles = function genOutlineContainerStyles(theme, intent, disabled, loading) {
9682
+ var genOutlineContainerStyles = function genOutlineContainerStyles(theme, intent, disabled, loading, compact) {
9312
9683
  var borderColorStyling = function borderColorStyling() {
9313
9684
  if (!loading && disabled) {
9314
9685
  return {
@@ -9319,13 +9690,19 @@ var genOutlineContainerStyles = function genOutlineContainerStyles(theme, intent
9319
9690
  borderColor: theme.__hd__.button.colors[intent]
9320
9691
  };
9321
9692
  };
9322
- return _objectSpread2({
9323
- height: scale(60),
9693
+ return _objectSpread2(_objectSpread2({
9694
+ height: getButtonHeight(compact),
9324
9695
  flexDirection: 'row',
9325
9696
  justifyContent: 'center',
9326
- alignItems: 'center',
9697
+ alignItems: 'center'
9698
+ }, compact ? {
9699
+ alignSelf: 'flex-start',
9700
+ paddingVertical: theme.__hd__.button.space.compact.buttonPaddingVertical - theme.__hd__.button.borderWidth["default"],
9701
+ paddingHorizontal: theme.__hd__.button.space["default"].buttonPadding - theme.__hd__.button.borderWidth["default"]
9702
+ } : {
9327
9703
  alignSelf: 'stretch',
9328
- padding: theme.__hd__.button.space.buttonPadding - theme.__hd__.button.borderWidth["default"],
9704
+ padding: theme.__hd__.button.space["default"].buttonPadding - theme.__hd__.button.borderWidth["default"]
9705
+ }), {}, {
9329
9706
  borderWidth: theme.__hd__.button.borderWidth["default"],
9330
9707
  borderRadius: theme.__hd__.button.radii["default"],
9331
9708
  backgroundColor: 'transparent'
@@ -9352,31 +9729,34 @@ var StyledButtonContainer = index$a(TouchableHighlight)(function (_ref) {
9352
9729
  _ref$loading = _ref.loading,
9353
9730
  loading = _ref$loading === void 0 ? false : _ref$loading,
9354
9731
  themeButtonVariant = _ref.themeButtonVariant,
9355
- themeInlineText = _ref.themeInlineText,
9356
- theme = _ref.theme;
9732
+ _ref$themeInlineText = _ref.themeInlineText,
9733
+ themeInlineText = _ref$themeInlineText === void 0 ? false : _ref$themeInlineText,
9734
+ theme = _ref.theme,
9735
+ _ref$themeIsCompact = _ref.themeIsCompact,
9736
+ themeIsCompact = _ref$themeIsCompact === void 0 ? false : _ref$themeIsCompact;
9357
9737
  switch (themeButtonVariant) {
9358
9738
  case 'filled-primary':
9359
- return genFilledContainerStyles(theme, 'primary', disabled, loading);
9739
+ return genFilledContainerStyles(theme, 'primary', disabled, loading, themeIsCompact);
9360
9740
  case 'filled-secondary':
9361
- return genFilledContainerStyles(theme, 'secondary', disabled, loading);
9741
+ return genFilledContainerStyles(theme, 'secondary', disabled, loading, themeIsCompact);
9362
9742
  case 'filled-danger':
9363
- return genFilledContainerStyles(theme, 'danger', disabled, loading);
9743
+ return genFilledContainerStyles(theme, 'danger', disabled, loading, themeIsCompact);
9364
9744
  case 'outlined-primary':
9365
- return genOutlineContainerStyles(theme, 'primary', disabled, loading);
9745
+ return genOutlineContainerStyles(theme, 'primary', disabled, loading, themeIsCompact);
9366
9746
  case 'outlined-secondary':
9367
- return genOutlineContainerStyles(theme, 'secondary', disabled, loading);
9747
+ return genOutlineContainerStyles(theme, 'secondary', disabled, loading, themeIsCompact);
9368
9748
  case 'outlined-danger':
9369
- return genOutlineContainerStyles(theme, 'danger', disabled, loading);
9749
+ return genOutlineContainerStyles(theme, 'danger', disabled, loading, themeIsCompact);
9370
9750
  case 'text-primary':
9371
9751
  case 'text-secondary':
9372
9752
  case 'text-danger':
9373
9753
  return {
9374
- height: themeInlineText ? undefined : scale(60),
9754
+ height: themeInlineText ? undefined : getButtonHeight(themeIsCompact),
9375
9755
  borderRadius: theme.__hd__.button.radii.text,
9376
9756
  flexDirection: 'row',
9377
9757
  justifyContent: 'center',
9378
9758
  alignItems: 'center',
9379
- padding: themeInlineText ? 0 : theme.__hd__.button.space.textButtonPadding,
9759
+ padding: themeInlineText ? 0 : theme.__hd__.button.space["default"].textButtonPadding,
9380
9760
  borderWidth: 0,
9381
9761
  backgroundColor: loading && !themeInlineText ? theme.__hd__.button.colors.textLoadingBackground : 'transparent'
9382
9762
  };
@@ -9413,6 +9793,7 @@ var StyledButtonText = index$a(Typography.Title)(function (_ref2) {
9413
9793
  textAlign: 'center'
9414
9794
  }, themeStyling());
9415
9795
  });
9796
+ var StyledSmallButtonText = StyledButtonText.withComponent(Typography.Body);
9416
9797
  var StyledButtonTitleOfVariantText = index$a(Typography.Body)(function (_ref3) {
9417
9798
  var disabled = _ref3.disabled,
9418
9799
  themeButtonVariant = _ref3.themeButtonVariant,
@@ -9431,20 +9812,22 @@ var StyledButtonTitleOfVariantText = index$a(Typography.Body)(function (_ref3) {
9431
9812
  return _objectSpread2({
9432
9813
  flexShrink: 1,
9433
9814
  lineHeight: theme.__hd__.button.lineHeights.titleOfTextVariant,
9815
+ // align text on Android
9434
9816
  textAlign: 'center'
9435
9817
  }, themeStyling());
9436
9818
  });
9437
9819
  var StyledButtonIconWrapper = index$a(View)(function (_ref4) {
9438
9820
  var themePosition = _ref4.themePosition,
9439
- theme = _ref4.theme;
9821
+ theme = _ref4.theme,
9822
+ themeIsCompact = _ref4.themeIsCompact;
9440
9823
  switch (themePosition) {
9441
9824
  case 'left':
9442
9825
  return {
9443
- paddingRight: theme.__hd__.button.space.iconPadding
9826
+ paddingRight: themeIsCompact ? theme.__hd__.button.space.compact.iconPadding : theme.__hd__.button.space["default"].iconPadding
9444
9827
  };
9445
9828
  case 'right':
9446
9829
  return {
9447
- paddingLeft: theme.__hd__.button.space.iconPadding
9830
+ paddingLeft: themeIsCompact ? theme.__hd__.button.space.compact.iconPadding : theme.__hd__.button.space["default"].iconPadding
9448
9831
  };
9449
9832
  }
9450
9833
  });
@@ -9452,7 +9835,8 @@ var StyledButtonIcon = index$a(Icon)(function (_ref5) {
9452
9835
  var disabled = _ref5.disabled,
9453
9836
  themeButtonVariant = _ref5.themeButtonVariant,
9454
9837
  themeIsPressed = _ref5.themeIsPressed,
9455
- theme = _ref5.theme;
9838
+ theme = _ref5.theme,
9839
+ themeIsCompact = _ref5.themeIsCompact;
9456
9840
  var themeStyling = function themeStyling() {
9457
9841
  switch (themeButtonVariant) {
9458
9842
  case 'filled-primary':
@@ -9476,7 +9860,7 @@ var StyledButtonIcon = index$a(Icon)(function (_ref5) {
9476
9860
  }
9477
9861
  };
9478
9862
  return _objectSpread2({
9479
- fontSize: theme.__hd__.button.sizes.iconSize
9863
+ fontSize: themeIsCompact ? theme.__hd__.button.sizes.iconSize.compact : theme.__hd__.button.sizes.iconSize["default"]
9480
9864
  }, themeStyling());
9481
9865
  });
9482
9866
 
@@ -9501,8 +9885,10 @@ var TEXT_VARIANTS = {
9501
9885
  var getThemeVariant = function getThemeVariant(variant, intent) {
9502
9886
  switch (variant) {
9503
9887
  case 'filled':
9888
+ case 'filled-compact':
9504
9889
  return FILLED_VARIANTS[intent];
9505
9890
  case 'outlined':
9891
+ case 'outlined-compact':
9506
9892
  return OUTLINED_VARIANTS[intent];
9507
9893
  case 'text':
9508
9894
  return TEXT_VARIANTS[intent];
@@ -9562,6 +9948,34 @@ var Button = function Button(_ref) {
9562
9948
  isPressed = _useState2[0],
9563
9949
  setIsPressed = _useState2[1];
9564
9950
  useDeprecation("Button variant ".concat(deprecatedVariants.join(', '), " are deprecated."), deprecatedVariants.includes(themeVariant));
9951
+ var isCompactVariant = ['filled-compact', 'outlined-compact'].includes(variant);
9952
+ var isRenderTextVariant = isTextVariant(themeVariant);
9953
+ var renderTextVariantTitle = function renderTextVariantTitle() {
9954
+ if (!isRenderTextVariant) return null;
9955
+ return /*#__PURE__*/React__default.createElement(StyledButtonTitleOfVariantText, {
9956
+ variant: isCompactVariant ? 'small-bold' : 'regular-bold',
9957
+ ellipsizeMode: "tail",
9958
+ numberOfLines: 1,
9959
+ disabled: disabled,
9960
+ themeButtonVariant: themeVariant,
9961
+ themeIsPressed: isPressed
9962
+ }, text);
9963
+ };
9964
+ var renderTitle = function renderTitle() {
9965
+ return isCompactVariant ? /*#__PURE__*/React__default.createElement(StyledSmallButtonText, {
9966
+ variant: "small",
9967
+ ellipsizeMode: "tail",
9968
+ numberOfLines: 1,
9969
+ disabled: disabled,
9970
+ themeButtonVariant: themeVariant
9971
+ }, text) : /*#__PURE__*/React__default.createElement(StyledButtonText, {
9972
+ level: "h5",
9973
+ ellipsizeMode: "tail",
9974
+ numberOfLines: 1,
9975
+ disabled: disabled,
9976
+ themeButtonVariant: themeVariant
9977
+ }, text);
9978
+ };
9565
9979
  return /*#__PURE__*/React__default.createElement(StyledButtonContainer, {
9566
9980
  accessibilityHint: accessibilityHint,
9567
9981
  accessibilityLabel: accessibilityLabel,
@@ -9578,39 +9992,31 @@ var Button = function Button(_ref) {
9578
9992
  },
9579
9993
  onPressOut: function onPressOut() {
9580
9994
  return isInlineText && setIsPressed(false);
9581
- }
9995
+ },
9996
+ themeIsCompact: isCompactVariant
9582
9997
  }, loading === true ? /*#__PURE__*/React__default.createElement(LoadingIndicator, {
9583
9998
  testID: "".concat(testID, "-loading-indicator"),
9584
9999
  themeVariant: themeVariant
9585
10000
  }) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, icon !== undefined && /*#__PURE__*/React__default.createElement(StyledButtonIconWrapper, {
9586
- themePosition: "left"
10001
+ themePosition: "left",
10002
+ themeIsCompact: isCompactVariant
9587
10003
  }, isIconName(icon) ? /*#__PURE__*/React__default.createElement(StyledButtonIcon, {
9588
10004
  disabled: disabled,
9589
10005
  icon: icon,
9590
10006
  testID: "".concat(testID, "-left-icon"),
9591
10007
  themeButtonVariant: themeVariant,
9592
- themeIsPressed: isPressed
9593
- }) : icon), isTextVariant(themeVariant) ? /*#__PURE__*/React__default.createElement(StyledButtonTitleOfVariantText, {
9594
- variant: "regular-bold",
9595
- ellipsizeMode: "tail",
9596
- numberOfLines: 1,
9597
- disabled: disabled,
9598
- themeButtonVariant: themeVariant,
9599
- themeIsPressed: isPressed
9600
- }, text) : /*#__PURE__*/React__default.createElement(StyledButtonText, {
9601
- level: "h5",
9602
- ellipsizeMode: "tail",
9603
- numberOfLines: 1,
9604
- disabled: disabled,
9605
- themeButtonVariant: themeVariant
9606
- }, text), rightIcon !== undefined && /*#__PURE__*/React__default.createElement(StyledButtonIconWrapper, {
9607
- themePosition: "right"
10008
+ themeIsPressed: isPressed,
10009
+ themeIsCompact: isCompactVariant
10010
+ }) : icon), isRenderTextVariant ? renderTextVariantTitle() : renderTitle(), rightIcon !== undefined && /*#__PURE__*/React__default.createElement(StyledButtonIconWrapper, {
10011
+ themePosition: "right",
10012
+ themeIsCompact: isCompactVariant
9608
10013
  }, isIconName(rightIcon) ? /*#__PURE__*/React__default.createElement(StyledButtonIcon, {
9609
10014
  disabled: disabled,
9610
10015
  icon: rightIcon,
9611
10016
  testID: "".concat(testID, "-right-icon"),
9612
10017
  themeButtonVariant: themeVariant,
9613
- themeIsPressed: isPressed
10018
+ themeIsPressed: isPressed,
10019
+ themeIsCompact: isCompactVariant
9614
10020
  }) : rightIcon)));
9615
10021
  };
9616
10022
 
@@ -9651,7 +10057,7 @@ var ButtonContainer = index$a(TouchableOpacity)(function (_ref) {
9651
10057
  var IconWrapper = index$a(View)(function (_ref2) {
9652
10058
  var theme = _ref2.theme;
9653
10059
  return {
9654
- paddingRight: theme.__hd__.button.space.iconPadding
10060
+ paddingRight: theme.__hd__.button.space["default"].iconPadding
9655
10061
  };
9656
10062
  });
9657
10063
  var ButtonText = index$a(Typography.Body)({
@@ -13123,16 +13529,16 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13123
13529
  var getShadowStyles = function getShadowStyles() {
13124
13530
  switch (themeVariant) {
13125
13531
  case 'compact':
13126
- case 'filled':
13532
+ case 'filter':
13127
13533
  return _objectSpread2({}, theme.__hd__.chip.shadows.filledWrapper);
13128
- case 'outlined':
13534
+ case 'selection':
13129
13535
  case 'compact-outlined':
13130
13536
  return undefined;
13131
13537
  }
13132
13538
  };
13133
13539
  var getBorderStyles = function getBorderStyles() {
13134
13540
  switch (themeVariant) {
13135
- case 'outlined':
13541
+ case 'selection':
13136
13542
  case 'compact-outlined':
13137
13543
  {
13138
13544
  return {
@@ -13141,7 +13547,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13141
13547
  };
13142
13548
  }
13143
13549
  case 'compact':
13144
- case 'filled':
13550
+ case 'filter':
13145
13551
  {
13146
13552
  return {
13147
13553
  borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
@@ -13152,14 +13558,14 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13152
13558
  var getBackgroundStyles = function getBackgroundStyles() {
13153
13559
  if (themeSelected) {
13154
13560
  switch (themeVariant) {
13155
- case 'outlined':
13561
+ case 'selection':
13156
13562
  case 'compact-outlined':
13157
13563
  {
13158
13564
  return {
13159
13565
  backgroundColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBackground : theme.__hd__.chip.colors.outlinedDefaultBackground
13160
13566
  };
13161
13567
  }
13162
- case 'filled':
13568
+ case 'filter':
13163
13569
  case 'compact':
13164
13570
  {
13165
13571
  return {
@@ -13169,14 +13575,14 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13169
13575
  }
13170
13576
  } else {
13171
13577
  switch (themeVariant) {
13172
- case 'outlined':
13578
+ case 'selection':
13173
13579
  case 'compact-outlined':
13174
13580
  {
13175
13581
  return {
13176
13582
  backgroundColor: theme.__hd__.chip.colors.outlinedDefaultBackground
13177
13583
  };
13178
13584
  }
13179
- case 'filled':
13585
+ case 'filter':
13180
13586
  case 'compact':
13181
13587
  {
13182
13588
  return {
@@ -13229,10 +13635,24 @@ var getChipLabel = function getChipLabel(label) {
13229
13635
  }
13230
13636
  return label;
13231
13637
  };
13638
+ var getChipVariant = function getChipVariant() {
13639
+ var variant = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'selection';
13640
+ switch (variant) {
13641
+ case 'selection':
13642
+ case 'filter':
13643
+ case 'compact':
13644
+ case 'compact-outlined':
13645
+ return variant;
13646
+ case 'outlined':
13647
+ return 'selection';
13648
+ case 'filled':
13649
+ return 'filter';
13650
+ }
13651
+ };
13232
13652
  var Chip = function Chip(_ref) {
13233
13653
  var label = _ref.label,
13234
13654
  _ref$variant = _ref.variant,
13235
- variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
13655
+ variant = _ref$variant === void 0 ? 'selection' : _ref$variant,
13236
13656
  _ref$selected = _ref.selected,
13237
13657
  selected = _ref$selected === void 0 ? false : _ref$selected,
13238
13658
  icon = _ref.icon,
@@ -13240,13 +13660,15 @@ var Chip = function Chip(_ref) {
13240
13660
  _ref$showSelectedIcon = _ref.showSelectedIcon,
13241
13661
  showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
13242
13662
  otherProps = _objectWithoutProperties(_ref, _excluded$s);
13243
- var shouldShowSelectedIcon = (variant === 'outlined' || variant === 'compact-outlined') && selected && showSelectedIcon;
13663
+ useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
13664
+ var renamedVariant = getChipVariant(variant);
13665
+ var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
13244
13666
  var chipLabel = useMemo(function () {
13245
13667
  return getChipLabel(label);
13246
13668
  }, [label]);
13247
13669
  return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
13248
13670
  onPress: onPress,
13249
- themeVariant: variant,
13671
+ themeVariant: renamedVariant,
13250
13672
  themeSelected: selected
13251
13673
  }, otherProps), icon && /*#__PURE__*/React__default.createElement(Box, {
13252
13674
  marginRight: "small"
@@ -14273,6 +14695,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
14273
14695
  return {
14274
14696
  list: uniqSnapPointOffsetValues,
14275
14697
  minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
14698
+ // Furthest from max height
14276
14699
  maxHeightOffset: 0 // Max height
14277
14700
  };
14278
14701
  };
@@ -16600,6 +17023,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16600
17023
  });
16601
17024
  var interpolateOpacityRightHalf = progressAnimatedValue.current.interpolate({
16602
17025
  inputRange: [50, 51],
17026
+ // Transition between left and right half
16603
17027
  outputRange: [1, 0],
16604
17028
  extrapolate: 'clamp'
16605
17029
  });
@@ -16724,6 +17148,7 @@ var ProgressBar = function ProgressBar(_ref) {
16724
17148
  });
16725
17149
  var interpolateBorderRadius = progressAnimatedValue.current.interpolate({
16726
17150
  inputRange: [99, 100],
17151
+ // Transition range to remove bother when reached 100%
16727
17152
  outputRange: [999, 0],
16728
17153
  extrapolate: 'clamp'
16729
17154
  });
@@ -16879,6 +17304,17 @@ var Slider$2 = function Slider(_ref) {
16879
17304
  });
16880
17305
  };
16881
17306
 
17307
+ var StyledMarker = index$a(View)(function (_ref) {
17308
+ var themeDisabled = _ref.themeDisabled,
17309
+ theme = _ref.theme;
17310
+ return _objectSpread2({
17311
+ height: theme.__hd__.slider.sizes.markerHeight,
17312
+ width: theme.__hd__.slider.sizes.markerWidth,
17313
+ borderRadius: theme.__hd__.slider.radii.marker,
17314
+ backgroundColor: themeDisabled ? theme.__hd__.slider.colors.disabledThumbTint : theme.__hd__.slider.colors.thumbTint
17315
+ }, theme.__hd__.slider.shadows.marker);
17316
+ });
17317
+
16882
17318
  var Slider$1 = function Slider(_ref) {
16883
17319
  var minimumValue = _ref.minimumValue,
16884
17320
  maximumValue = _ref.maximumValue,
@@ -16920,23 +17356,28 @@ var Slider$1 = function Slider(_ref) {
16920
17356
  thumbTint = _theme$__hd__$slider$.thumbTint,
16921
17357
  disabledThumbTint = _theme$__hd__$slider$.disabledThumbTint;
16922
17358
  var trackHeight = theme.__hd__.slider.sizes.trackHeight;
16923
- var trackStyle = useMemo(function () {
16924
- return {
16925
- backgroundColor: disabled ? disabledTrackBackground : trackBackground,
17359
+ // Define styles for disabled and enabled states
17360
+ var disabledStyles = {
17361
+ track: {
17362
+ backgroundColor: disabledTrackBackground,
16926
17363
  height: trackHeight
16927
- };
16928
- }, [disabled, disabledTrackBackground, trackBackground, trackHeight]);
16929
- var markerShadow = theme.__hd__.slider.shadows.marker;
16930
- var makerStyle = useMemo(function () {
16931
- return _objectSpread2({
16932
- backgroundColor: disabled ? disabledThumbTint : thumbTint
16933
- }, markerShadow);
16934
- }, [disabled, disabledThumbTint, thumbTint, markerShadow]);
16935
- var selectedStyle = useMemo(function () {
16936
- return {
16937
- backgroundColor: disabled ? disabledThumbTint : thumbTint
16938
- };
16939
- }, [disabled, disabledThumbTint, thumbTint, markerShadow]);
17364
+ },
17365
+ selected: {
17366
+ backgroundColor: disabledThumbTint
17367
+ }
17368
+ };
17369
+ var enabledStyles = {
17370
+ track: {
17371
+ backgroundColor: trackBackground,
17372
+ height: trackHeight
17373
+ },
17374
+ selected: {
17375
+ backgroundColor: thumbTint
17376
+ }
17377
+ };
17378
+ // Use styles based on the `disabled` state
17379
+ var trackStyle = disabled ? disabledStyles.track : enabledStyles.track;
17380
+ var selectedStyle = disabled ? disabledStyles.selected : enabledStyles.selected;
16940
17381
  var handleOnValueChangeStart = useCallback(function () {
16941
17382
  if (onSlidingStart) {
16942
17383
  onSlidingStart();
@@ -16956,6 +17397,13 @@ var Slider$1 = function Slider(_ref) {
16956
17397
  height: event.nativeEvent.layout.height
16957
17398
  });
16958
17399
  }, []);
17400
+ var CustomMarker = useMemo(function () {
17401
+ return function () {
17402
+ return /*#__PURE__*/React__default.createElement(StyledMarker, {
17403
+ themeDisabled: disabled
17404
+ });
17405
+ };
17406
+ }, [disabled]);
16959
17407
  return /*#__PURE__*/React__default.createElement(View, {
16960
17408
  onLayout: onLayoutCallback,
16961
17409
  style: style,
@@ -16976,8 +17424,8 @@ var Slider$1 = function Slider(_ref) {
16976
17424
  enabledTwo: !disabled,
16977
17425
  allowOverlap: allowOverlap,
16978
17426
  trackStyle: trackStyle,
16979
- markerStyle: makerStyle,
16980
- selectedStyle: selectedStyle
17427
+ selectedStyle: selectedStyle,
17428
+ customMarker: CustomMarker
16981
17429
  }));
16982
17430
  };
16983
17431
 
@@ -18459,7 +18907,8 @@ var HeaderTabWrapper$1 = index$a(View)(function (_ref) {
18459
18907
  return {
18460
18908
  paddingHorizontal: Math.max(themeInsets.left, themeInsets.right),
18461
18909
  borderBottomColor: theme.__hd__.tabs.colors.headerBottom,
18462
- borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
18910
+ borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom,
18911
+ backgroundColor: theme.__hd__.tabs.colors.headerBackground
18463
18912
  };
18464
18913
  });
18465
18914
  var HeaderTab = index$a(View)({
@@ -18521,9 +18970,11 @@ var TabContainer = index$a(View)({
18521
18970
  overflow: 'hidden'
18522
18971
  });
18523
18972
  var HeaderTabWrapper = index$a(View)(function (_ref) {
18524
- var themeInsets = _ref.themeInsets;
18973
+ var themeInsets = _ref.themeInsets,
18974
+ theme = _ref.theme;
18525
18975
  return {
18526
- paddingHorizontal: Math.max(themeInsets.left, themeInsets.right)
18976
+ paddingHorizontal: Math.max(themeInsets.left, themeInsets.right),
18977
+ backgroundColor: theme.__hd__.tabs.colors.headerBackground
18527
18978
  };
18528
18979
  });
18529
18980
  var HeaderTabItem = index$a(Animated.View)(function (_ref2) {
@@ -37505,4 +37956,4 @@ var FloatingIsland = function FloatingIsland(_ref2) {
37505
37956
  }));
37506
37957
  };
37507
37958
 
37508
- export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, index$6 as MapPin, 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 };
37959
+ export { Accordion, Alert, AppCue, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, index$6 as MapPin, 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 };