@hero-design/rn 8.83.0-test.0 → 8.83.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 (347) hide show
  1. package/.turbo/turbo-build.log +3 -4
  2. package/CHANGELOG.md +16 -2
  3. package/es/index.js +431 -38
  4. package/eslint.config.js +2 -4
  5. package/lib/index.js +429 -35
  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/Chip/StyledChip.tsx +9 -9
  16. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +434 -0
  17. package/src/components/Chip/__tests__/index.spec.tsx +4 -0
  18. package/src/components/Chip/index.tsx +32 -5
  19. package/src/components/Slider/{Range.tsx → RangeSlider.tsx} +29 -19
  20. package/src/components/Slider/StyledRangeSlider.tsx +16 -0
  21. package/src/components/Slider/__tests__/{Range.spec.tsx → RangeSlider.spec.tsx} +23 -9
  22. package/src/components/Slider/__tests__/{Single.spec.tsx → SingleSlider.spec.tsx} +1 -1
  23. package/src/components/Slider/__tests__/__snapshots__/{Range.spec.tsx.snap → RangeSlider.spec.tsx.snap} +110 -26
  24. package/src/components/Slider/index.tsx +3 -3
  25. package/src/components/Tabs/StyledScrollableTabs.tsx +2 -1
  26. package/src/components/Tabs/StyledTabs.tsx +1 -0
  27. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
  28. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -0
  29. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  30. package/src/index.ts +2 -0
  31. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +39 -0
  32. package/src/theme/components/appCue.ts +22 -0
  33. package/src/theme/components/slider.ts +8 -1
  34. package/src/theme/components/tabs.ts +1 -0
  35. package/src/theme/getTheme.ts +3 -0
  36. package/src/types.ts +1 -1
  37. package/stats/8.83.0/rn-stats.html +4844 -0
  38. package/types/components/Accordion/AccordionItem.d.ts +1 -1
  39. package/types/components/Accordion/StyledAccordion.d.ts +11 -11
  40. package/types/components/Accordion/index.d.ts +1 -1
  41. package/types/components/Alert/StyledAlert.d.ts +16 -16
  42. package/types/components/Alert/index.d.ts +1 -1
  43. package/types/components/AppCue/StyledAppCue.d.ts +20 -0
  44. package/types/components/AppCue/__tests__/StyledAppCue.d.ts +1 -0
  45. package/types/components/AppCue/index.d.ts +21 -0
  46. package/types/components/AppCue/utils.d.ts +63 -0
  47. package/types/components/Attachment/StyledAttachment.d.ts +8 -8
  48. package/types/components/Attachment/index.d.ts +0 -0
  49. package/types/components/Avatar/Avatar.d.ts +0 -0
  50. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +9 -9
  51. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  52. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  53. package/types/components/Avatar/StyledAvatar.d.ts +10 -10
  54. package/types/components/Avatar/index.d.ts +0 -0
  55. package/types/components/Badge/Status.d.ts +0 -0
  56. package/types/components/Badge/StyledBadge.d.ts +12 -12
  57. package/types/components/Badge/index.d.ts +1 -1
  58. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +15 -15
  59. package/types/components/BottomNavigation/index.d.ts +1 -1
  60. package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
  61. package/types/components/BottomSheet/Footer.d.ts +0 -0
  62. package/types/components/BottomSheet/Header.d.ts +2 -2
  63. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  64. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  65. package/types/components/BottomSheet/index.d.ts +0 -0
  66. package/types/components/Box/StyledBox.d.ts +2 -2
  67. package/types/components/Box/config.d.ts +2 -2
  68. package/types/components/Box/index.d.ts +0 -0
  69. package/types/components/Box/types.d.ts +3 -3
  70. package/types/components/Button/Button.d.ts +1 -1
  71. package/types/components/Button/IconButton.d.ts +0 -0
  72. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +6 -6
  73. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  74. package/types/components/Button/StyledButton.d.ts +22 -22
  75. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +6 -6
  76. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  77. package/types/components/Button/index.d.ts +0 -0
  78. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  79. package/types/components/Calendar/StyledCalendar.d.ts +22 -22
  80. package/types/components/Calendar/helpers.d.ts +0 -0
  81. package/types/components/Calendar/index.d.ts +0 -0
  82. package/types/components/Card/DataCard/StyledDataCard.d.ts +5 -5
  83. package/types/components/Card/DataCard/index.d.ts +0 -0
  84. package/types/components/Card/StyledCard.d.ts +4 -4
  85. package/types/components/Card/index.d.ts +0 -0
  86. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  87. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  88. package/types/components/Carousel/StyledCardCarousel.d.ts +8 -8
  89. package/types/components/Carousel/StyledCarousel.d.ts +21 -21
  90. package/types/components/Carousel/contants.d.ts +0 -0
  91. package/types/components/Carousel/index.d.ts +0 -0
  92. package/types/components/Carousel/types.d.ts +2 -2
  93. package/types/components/Checkbox/StyledCheckbox.d.ts +11 -11
  94. package/types/components/Checkbox/index.d.ts +1 -1
  95. package/types/components/Chip/StyledChip.d.ts +6 -6
  96. package/types/components/Chip/index.d.ts +2 -2
  97. package/types/components/Collapse/StyledCollapse.d.ts +6 -6
  98. package/types/components/Collapse/index.d.ts +0 -0
  99. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +2 -2
  100. package/types/components/ContentNavigator/index.d.ts +0 -0
  101. package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
  102. package/types/components/DatePicker/DatePickerCalendar.d.ts +1 -1
  103. package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
  104. package/types/components/DatePicker/StyledDatePicker.d.ts +2 -2
  105. package/types/components/DatePicker/index.d.ts +0 -0
  106. package/types/components/DatePicker/types.d.ts +0 -0
  107. package/types/components/DatePicker/useCalculateDate.d.ts +1 -1
  108. package/types/components/Divider/StyledDivider.d.ts +5 -5
  109. package/types/components/Divider/index.d.ts +0 -0
  110. package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
  111. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  112. package/types/components/Drawer/StyledDrawer.d.ts +15 -15
  113. package/types/components/Drawer/index.d.ts +0 -0
  114. package/types/components/Empty/StyledEmpty.d.ts +7 -7
  115. package/types/components/Empty/index.d.ts +0 -0
  116. package/types/components/Error/StyledError.d.ts +21 -21
  117. package/types/components/Error/index.d.ts +0 -0
  118. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  119. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +10 -10
  120. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +6 -6
  121. package/types/components/FAB/ActionGroup/index.d.ts +1 -1
  122. package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
  123. package/types/components/FAB/FAB.d.ts +1 -1
  124. package/types/components/FAB/Pair/StyledFAB.d.ts +6 -6
  125. package/types/components/FAB/Pair/index.d.ts +1 -1
  126. package/types/components/FAB/StyledFAB.d.ts +9 -9
  127. package/types/components/FAB/index.d.ts +0 -0
  128. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +10 -10
  129. package/types/components/Icon/AnimatedIcon.d.ts +1 -1
  130. package/types/components/Icon/HeroIcon/index.d.ts +4 -4
  131. package/types/components/Icon/IconList.d.ts +0 -0
  132. package/types/components/Icon/index.d.ts +1 -1
  133. package/types/components/Icon/utils.d.ts +2 -1
  134. package/types/components/Image/index.d.ts +0 -0
  135. package/types/components/List/BasicListItem.d.ts +0 -0
  136. package/types/components/List/ListItem.d.ts +0 -0
  137. package/types/components/List/StyledBasicListItem.d.ts +10 -10
  138. package/types/components/List/StyledListItem.d.ts +18 -18
  139. package/types/components/List/index.d.ts +0 -0
  140. package/types/components/MapPin/StyledMapPin.d.ts +11 -11
  141. package/types/components/MapPin/types.d.ts +1 -1
  142. package/types/components/PageControl/StyledPageControl.d.ts +4 -4
  143. package/types/components/PageControl/index.d.ts +0 -0
  144. package/types/components/PinInput/PinCell.d.ts +0 -0
  145. package/types/components/PinInput/StyledPinInput.d.ts +21 -21
  146. package/types/components/PinInput/index.d.ts +0 -0
  147. package/types/components/Portal/reducer.d.ts +1 -1
  148. package/types/components/Portal/types.d.ts +1 -1
  149. package/types/components/Progress/ProgressBar.d.ts +0 -0
  150. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  151. package/types/components/Progress/ProgressStep.d.ts +1 -1
  152. package/types/components/Progress/StyledProgressBar.d.ts +4 -4
  153. package/types/components/Progress/StyledProgressCircle.d.ts +12 -12
  154. package/types/components/Progress/StyledStep.d.ts +10 -10
  155. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  156. package/types/components/Progress/constants.d.ts +0 -0
  157. package/types/components/Progress/index.d.ts +0 -0
  158. package/types/components/Progress/types.d.ts +1 -1
  159. package/types/components/Radio/Radio.d.ts +0 -0
  160. package/types/components/Radio/RadioGroup.d.ts +0 -0
  161. package/types/components/Radio/StyledRadio.d.ts +9 -9
  162. package/types/components/Radio/index.d.ts +1 -1
  163. package/types/components/Radio/types.d.ts +1 -1
  164. package/types/components/Rate/StyledRate.d.ts +4 -4
  165. package/types/components/RefreshControl/index.d.ts +1 -1
  166. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -1
  167. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  168. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  169. package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
  170. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +4 -4
  171. package/types/components/RichTextEditor/StyledToolbar.d.ts +6 -6
  172. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  173. package/types/components/RichTextEditor/constants.d.ts +0 -0
  174. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  175. package/types/components/RichTextEditor/index.d.ts +0 -0
  176. package/types/components/RichTextEditor/types.d.ts +1 -1
  177. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  178. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  179. package/types/components/Search/SearchOneLine.d.ts +5 -5
  180. package/types/components/Search/StyledSearch.d.ts +18 -18
  181. package/types/components/Search/index.d.ts +1 -1
  182. package/types/components/Search/utils.d.ts +2 -2
  183. package/types/components/SectionHeading/StyledHeading.d.ts +7 -7
  184. package/types/components/SectionHeading/index.d.ts +0 -0
  185. package/types/components/Select/BaseOptionList.d.ts +1 -1
  186. package/types/components/Select/Footer.d.ts +0 -0
  187. package/types/components/Select/MultiSelect/Option.d.ts +2 -2
  188. package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
  189. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  190. package/types/components/Select/SingleSelect/Option.d.ts +2 -2
  191. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  192. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
  193. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  194. package/types/components/Select/StyledSelect.d.ts +6 -6
  195. package/types/components/Select/helpers.d.ts +2 -2
  196. package/types/components/Select/index.d.ts +0 -0
  197. package/types/components/Select/types.d.ts +6 -6
  198. package/types/components/Skeleton/StyledSkeleton.d.ts +6 -6
  199. package/types/components/Skeleton/index.d.ts +0 -0
  200. package/types/components/Slider/{Range.d.ts → RangeSlider.d.ts} +1 -1
  201. package/types/components/Slider/StyledRangeSlider.d.ts +10 -0
  202. package/types/components/Slider/index.d.ts +2 -2
  203. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -2
  204. package/types/components/Spinner/StyledSpinner.d.ts +13 -13
  205. package/types/components/Spinner/index.d.ts +0 -0
  206. package/types/components/Success/StyledSuccess.d.ts +19 -19
  207. package/types/components/Success/index.d.ts +0 -0
  208. package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
  209. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  210. package/types/components/Swipeable/index.d.ts +2 -2
  211. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -5
  212. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +8 -8
  213. package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
  214. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  215. package/types/components/Switch/index.d.ts +3 -3
  216. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  217. package/types/components/Tabs/SceneView.d.ts +3 -3
  218. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  219. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +2 -2
  220. package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +2 -2
  221. package/types/components/Tabs/StyledScrollableTabs.d.ts +17 -17
  222. package/types/components/Tabs/StyledTabs.d.ts +14 -14
  223. package/types/components/Tabs/TabWithBadge.d.ts +3 -3
  224. package/types/components/Tabs/index.d.ts +2 -2
  225. package/types/components/Tabs/useHandlePageScroll.d.ts +1 -1
  226. package/types/components/Tabs/useIsFocused.d.ts +0 -0
  227. package/types/components/Tabs/utils.d.ts +0 -0
  228. package/types/components/Tag/StyledTag.d.ts +5 -5
  229. package/types/components/Tag/index.d.ts +0 -0
  230. package/types/components/TextInput/StyledTextInput.d.ts +28 -28
  231. package/types/components/TextInput/index.d.ts +16 -16
  232. package/types/components/TimePicker/StyledTimePicker.d.ts +2 -2
  233. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  234. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  235. package/types/components/TimePicker/index.d.ts +0 -0
  236. package/types/components/TimePicker/types.d.ts +0 -0
  237. package/types/components/Toast/StyledToast.d.ts +18 -18
  238. package/types/components/Toast/Toast.d.ts +0 -0
  239. package/types/components/Toast/ToastContainer.d.ts +0 -0
  240. package/types/components/Toast/ToastContext.d.ts +2 -2
  241. package/types/components/Toast/ToastProvider.d.ts +1 -1
  242. package/types/components/Toast/index.d.ts +0 -0
  243. package/types/components/Toast/types.d.ts +2 -2
  244. package/types/components/Toolbar/StyledToolbar.d.ts +25 -25
  245. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  246. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  247. package/types/components/Toolbar/ToolbarMessage.d.ts +4 -4
  248. package/types/components/Toolbar/index.d.ts +0 -0
  249. package/types/components/Typography/Body/StyledBody.d.ts +4 -4
  250. package/types/components/Typography/Caption/StyledCaption.d.ts +3 -3
  251. package/types/components/Typography/Label/StyledLabel.d.ts +2 -2
  252. package/types/components/Typography/Text/StyledText.d.ts +6 -6
  253. package/types/components/Typography/Text/index.d.ts +0 -0
  254. package/types/components/Typography/Title/StyledTitle.d.ts +4 -4
  255. package/types/components/Typography/index.d.ts +0 -0
  256. package/types/components/Typography/types.d.ts +1 -1
  257. package/types/index.d.ts +2 -1
  258. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  259. package/types/testHelpers/utils.d.ts +1 -1
  260. package/types/theme/ThemeProvider.d.ts +0 -0
  261. package/types/theme/ThemeSwitcher.d.ts +3 -3
  262. package/types/theme/components/accordion.d.ts +0 -0
  263. package/types/theme/components/alert.d.ts +0 -0
  264. package/types/theme/components/appCue.d.ts +16 -0
  265. package/types/theme/components/attachment.d.ts +0 -0
  266. package/types/theme/components/avatar.d.ts +0 -0
  267. package/types/theme/components/badge.d.ts +1 -1
  268. package/types/theme/components/bottomNavigation.d.ts +0 -0
  269. package/types/theme/components/bottomSheet.d.ts +0 -0
  270. package/types/theme/components/button.d.ts +1 -1
  271. package/types/theme/components/calendar.d.ts +0 -0
  272. package/types/theme/components/card.d.ts +0 -0
  273. package/types/theme/components/cardCarousel.d.ts +0 -0
  274. package/types/theme/components/carousel.d.ts +1 -1
  275. package/types/theme/components/checkbox.d.ts +0 -0
  276. package/types/theme/components/contentNavigator.d.ts +0 -0
  277. package/types/theme/components/datePicker.d.ts +0 -0
  278. package/types/theme/components/divider.d.ts +0 -0
  279. package/types/theme/components/drawer.d.ts +0 -0
  280. package/types/theme/components/empty.d.ts +1 -1
  281. package/types/theme/components/error.d.ts +1 -1
  282. package/types/theme/components/fab.d.ts +1 -1
  283. package/types/theme/components/icon.d.ts +0 -0
  284. package/types/theme/components/image.d.ts +0 -0
  285. package/types/theme/components/list.d.ts +0 -0
  286. package/types/theme/components/pageControl.d.ts +0 -0
  287. package/types/theme/components/pinInput.d.ts +1 -1
  288. package/types/theme/components/progress.d.ts +0 -0
  289. package/types/theme/components/radio.d.ts +0 -0
  290. package/types/theme/components/refreshControl.d.ts +0 -0
  291. package/types/theme/components/richTextEditor.d.ts +0 -0
  292. package/types/theme/components/sectionHeading.d.ts +0 -0
  293. package/types/theme/components/select.d.ts +0 -0
  294. package/types/theme/components/skeleton.d.ts +0 -0
  295. package/types/theme/components/slider.d.ts +6 -0
  296. package/types/theme/components/spinner.d.ts +0 -0
  297. package/types/theme/components/success.d.ts +1 -1
  298. package/types/theme/components/swipeable.d.ts +0 -0
  299. package/types/theme/components/switch.d.ts +0 -0
  300. package/types/theme/components/tabs.d.ts +1 -0
  301. package/types/theme/components/tag.d.ts +1 -1
  302. package/types/theme/components/textInput.d.ts +0 -0
  303. package/types/theme/components/timePicker.d.ts +0 -0
  304. package/types/theme/components/toast.d.ts +0 -0
  305. package/types/theme/components/toolbar.d.ts +0 -0
  306. package/types/theme/components/typography.d.ts +0 -0
  307. package/types/theme/getTheme.d.ts +3 -1
  308. package/types/theme/global/borders.d.ts +0 -0
  309. package/types/theme/global/colors/eBens.d.ts +0 -0
  310. package/types/theme/global/colors/global.d.ts +0 -0
  311. package/types/theme/global/colors/globalDark.d.ts +0 -0
  312. package/types/theme/global/colors/jobs.d.ts +0 -0
  313. package/types/theme/global/colors/swag.d.ts +0 -0
  314. package/types/theme/global/colors/swagDark.d.ts +0 -0
  315. package/types/theme/global/colors/types.d.ts +3 -3
  316. package/types/theme/global/colors/wallet.d.ts +0 -0
  317. package/types/theme/global/colors/work.d.ts +0 -0
  318. package/types/theme/global/index.d.ts +4 -4
  319. package/types/theme/global/scale.d.ts +1 -1
  320. package/types/theme/global/shadows.d.ts +1 -1
  321. package/types/theme/global/sizes.d.ts +0 -0
  322. package/types/theme/global/space.d.ts +0 -0
  323. package/types/theme/global/typography.d.ts +1 -1
  324. package/types/theme/index.d.ts +0 -0
  325. package/types/types.d.ts +1 -1
  326. package/types/utils/functions.d.ts +0 -0
  327. package/types/utils/helpers.d.ts +0 -0
  328. package/types/utils/hooks.d.ts +0 -0
  329. package/types/utils/scale.d.ts +0 -0
  330. package/.turbo/turbo-build$colon$types.log +0 -0
  331. package/.turbo/turbo-lint.log +0 -183
  332. package/.turbo/turbo-publish:npm.log +0 -9
  333. package/.turbo/turbo-test.log +0 -4726
  334. package/.turbo/turbo-type-check.log +0 -0
  335. package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +0 -31
  336. package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +0 -60
  337. package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +0 -40
  338. package/types/components/CompoundSearch/index.d.ts +0 -8
  339. package/types/components/CompoundSearch/utils.d.ts +0 -8
  340. package/types/components/HeroDesignProvider/HeroDesignContext.d.ts +0 -5
  341. package/types/components/Search/SearchBasic.d.ts +0 -31
  342. package/types/components/Search/SearchCompound.d.ts +0 -60
  343. package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -35
  344. package/types/theme/components/compoundSearch.d.ts +0 -36
  345. /package/src/components/Slider/{Single.tsx → SingleSlider.tsx} +0 -0
  346. /package/src/components/Slider/__tests__/__snapshots__/{Single.spec.tsx.snap → SingleSlider.spec.tsx.snap} +0 -0
  347. /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
  };
@@ -3067,6 +3101,7 @@ var getProgressTheme = function getProgressTheme(theme) {
3067
3101
  completeness: {
3068
3102
  primary: theme.colors.primary,
3069
3103
  success: theme.colors.success,
3104
+ // should be emerald dark 15
3070
3105
  warning: theme.colors.warning,
3071
3106
  danger: theme.colors.error,
3072
3107
  info: theme.colors.info,
@@ -3279,12 +3314,19 @@ var getSliderTheme = function getSliderTheme(theme) {
3279
3314
  marker: theme.shadows["default"]
3280
3315
  };
3281
3316
  var sizes = {
3282
- trackHeight: theme.sizes.xsmall
3317
+ trackHeight: theme.sizes.xsmall,
3318
+ markerWidth: theme.sizes.large,
3319
+ markerHeight: theme.sizes.large,
3320
+ markerBorderRadius: theme.radii.rounded
3321
+ };
3322
+ var radii = {
3323
+ marker: theme.radii.rounded
3283
3324
  };
3284
3325
  return {
3285
3326
  colors: colors,
3286
3327
  shadows: shadows,
3287
- sizes: sizes
3328
+ sizes: sizes,
3329
+ radii: radii
3288
3330
  };
3289
3331
  };
3290
3332
 
@@ -3427,7 +3469,8 @@ var getTabsTheme = function getTabsTheme(theme) {
3427
3469
  activeBackground: theme.colors.decorativePrimarySurface,
3428
3470
  headerBottom: theme.colors.secondaryOutline,
3429
3471
  indicator: theme.colors.primary,
3430
- text: theme.colors.onDefaultGlobalSurface
3472
+ text: theme.colors.onDefaultGlobalSurface,
3473
+ headerBackground: theme.colors.defaultGlobalSurface
3431
3474
  };
3432
3475
  var space = {
3433
3476
  flatListHorizontalPadding: theme.space.small,
@@ -4030,6 +4073,26 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
4030
4073
  };
4031
4074
  };
4032
4075
 
4076
+ var getAppCueTheme = function getAppCueTheme(theme) {
4077
+ var colors = {
4078
+ background: theme.colors.darkGlobalSurface,
4079
+ backdropColor: 'rgba(0, 0, 0, 0.5)'
4080
+ };
4081
+ var space = {
4082
+ padding: theme.space.medium,
4083
+ offset: theme.space.small,
4084
+ arrowOffset: theme.space.smallMedium
4085
+ };
4086
+ var radii = {
4087
+ container: theme.radii.large
4088
+ };
4089
+ return {
4090
+ colors: colors,
4091
+ space: space,
4092
+ radii: radii
4093
+ };
4094
+ };
4095
+
4033
4096
  var getTheme$1 = function getTheme() {
4034
4097
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
4035
4098
  var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
@@ -4038,6 +4101,7 @@ var getTheme$1 = function getTheme() {
4038
4101
  __hd__: {
4039
4102
  accordion: getAccordionTheme(globalTheme),
4040
4103
  alert: getAlertTheme(globalTheme),
4104
+ appCue: getAppCueTheme(globalTheme),
4041
4105
  attachment: getAttachmentTheme(globalTheme),
4042
4106
  avatar: getAvatarTheme(globalTheme),
4043
4107
  badge: getBadgeTheme(globalTheme),
@@ -8183,6 +8247,288 @@ var Alert = function Alert(_ref2) {
8183
8247
  })) : null);
8184
8248
  };
8185
8249
 
8250
+ var StyledContent$1 = index$a(View)(function (_ref) {
8251
+ var theme = _ref.theme;
8252
+ return {
8253
+ padding: theme.__hd__.appCue.space.padding,
8254
+ backgroundColor: theme.__hd__.appCue.colors.background,
8255
+ borderRadius: theme.__hd__.appCue.radii.container,
8256
+ alignSelf: 'center'
8257
+ };
8258
+ });
8259
+ var StyledContainer$9 = index$a(View)(function (_ref2) {
8260
+ var theme = _ref2.theme;
8261
+ return {
8262
+ width: '100%',
8263
+ height: '100%',
8264
+ backgroundColor: theme.__hd__.appCue.colors.backdropColor
8265
+ };
8266
+ });
8267
+ var StyledIconContainer$1 = index$a(Animated.View)(function (_ref3) {
8268
+ var theme = _ref3.theme,
8269
+ themePlacement = _ref3.themePlacement;
8270
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
8271
+ position: 'absolute',
8272
+ color: theme.__hd__.appCue.colors.background,
8273
+ display: 'flex',
8274
+ alignItems: 'center',
8275
+ justifyContent: 'center'
8276
+ }, themePlacement === 'top' && {
8277
+ bottom: -theme.__hd__.appCue.space.arrowOffset,
8278
+ width: '100%'
8279
+ }), themePlacement === 'bottom' && {
8280
+ top: -theme.__hd__.appCue.space.arrowOffset,
8281
+ transform: [{
8282
+ rotate: '180deg'
8283
+ }],
8284
+ width: '100%'
8285
+ }), themePlacement === 'right' && {
8286
+ left: -theme.__hd__.appCue.space.arrowOffset,
8287
+ transform: [{
8288
+ rotate: '90deg'
8289
+ }],
8290
+ height: '100%'
8291
+ }), themePlacement === 'left' && {
8292
+ right: -theme.__hd__.appCue.space.arrowOffset,
8293
+ transform: [{
8294
+ rotate: '-90deg'
8295
+ }],
8296
+ height: '100%'
8297
+ });
8298
+ });
8299
+
8300
+ /**
8301
+ * Calculates the position of an element based on its placement relative to a reference position.
8302
+ *
8303
+ * @param {Object} params - The parameters for calculating the position.
8304
+ * @param {Object} params.position - The position and size of target element.
8305
+ * @param {number} params.position.pageX - The X coordinate of the target position.
8306
+ * @param {number} params.position.pageY - The Y coordinate of the target position.
8307
+ * @param {number} params.position.width - The width of the reference element.
8308
+ * @param {number} params.position.height - The height of the reference element.
8309
+ * @param {Object} params.contentSize - The size of the App Cue content.
8310
+ * @param {number} params.contentSize.width - The width of the content.
8311
+ * @param {number} params.contentSize.height - The height of the content.
8312
+ * @param {Placement} params.placement - The placement of the content relative to the reference position ('top', 'bottom', 'right', 'left').
8313
+ * @param {number} params.offset - The offset distance to display an arrow.
8314
+ *
8315
+ * @returns {Object} The calculated position of the App Cue.
8316
+ * @returns {number} return.x - The X coordinate of the App Cue.
8317
+ * @returns {number} return.y - The Y coordinate of the App Cue.
8318
+ */
8319
+ var calculatePosition = function calculatePosition(_ref) {
8320
+ var placement = _ref.placement,
8321
+ position = _ref.position,
8322
+ contentSize = _ref.contentSize,
8323
+ offset = _ref.offset;
8324
+ switch (placement) {
8325
+ case 'top':
8326
+ {
8327
+ return {
8328
+ // The X coordinate is calculated by adding the half of the width of the target element to the X coordinate of the target element.
8329
+ x: position.pageX + (position.width - contentSize.width) / 2,
8330
+ // The Y coordinate is calculated by subtracting the height of the content and the offset from the Y coordinate of the target element
8331
+ y: position.pageY - contentSize.height - offset
8332
+ };
8333
+ }
8334
+ case 'bottom':
8335
+ {
8336
+ return {
8337
+ // The X coordinate is calculated by adding the half of the width of the target element to the X coordinate of the target element.
8338
+ x: position.pageX + (position.width - contentSize.width) / 2,
8339
+ // The Y coordinate is calculated by adding the height of the target element and the offset to the Y coordinate of the target element.
8340
+ y: position.pageY + position.height + offset
8341
+ };
8342
+ }
8343
+ case 'right':
8344
+ {
8345
+ return {
8346
+ // The X coordinate is calculated by adding the width of the target element and the offset to the X coordinate of the target element.
8347
+ x: position.pageX + position.width + offset,
8348
+ // The Y coordinate is calculated by adding half of the height of the target element to the Y coordinate of the target element.
8349
+ y: position.pageY + (position.height - contentSize.height) / 2
8350
+ };
8351
+ }
8352
+ case 'left':
8353
+ {
8354
+ return {
8355
+ // The X coordinate is calculated by subtracting the width of the content and the offset from the X coordinate of the target element.
8356
+ x: position.pageX - contentSize.width - offset,
8357
+ // The Y coordinate is calculated by adding half of the height of the target element to the Y coordinate of the target element.
8358
+ y: position.pageY + (position.height - contentSize.height) / 2
8359
+ };
8360
+ }
8361
+ }
8362
+ };
8363
+ /**
8364
+ * Calculates the maximum width of the content based on its position, offset, placement, and window width.
8365
+ *
8366
+ * @param {Object} params - The parameters for the calculation.
8367
+ * @param {Object} params.position - The position and dimensions of the target element.
8368
+ * @param {number} params.position.pageX - The X coordinate of the target element.
8369
+ * @param {number} params.position.pageY - The Y coordinate of the target element.
8370
+ * @param {number} params.position.width - The width of the target element.
8371
+ * @param {number} params.position.height - The height of the target element.
8372
+ * @param {number} params.offset - The offset value to display an arrow.
8373
+ * @param {Placement} params.placement - The placement of the content relative to the element.
8374
+ * @param {number} params.windowWidth - The width of the window.
8375
+ *
8376
+ * @returns {number | undefined} The maximum width of the content.
8377
+ */
8378
+ var calulateContentMaxWidth = function calulateContentMaxWidth(_ref2) {
8379
+ var position = _ref2.position,
8380
+ offset = _ref2.offset,
8381
+ placement = _ref2.placement,
8382
+ windowWidth = _ref2.windowWidth;
8383
+ switch (placement) {
8384
+ case 'top':
8385
+ {
8386
+ return undefined;
8387
+ }
8388
+ case 'bottom':
8389
+ {
8390
+ return undefined;
8391
+ }
8392
+ case 'right':
8393
+ {
8394
+ return windowWidth - position.pageX - position.width - offset;
8395
+ }
8396
+ case 'left':
8397
+ {
8398
+ return position.pageX - offset;
8399
+ }
8400
+ }
8401
+ };
8402
+
8403
+ var AppCue = function AppCue(_ref) {
8404
+ var target = _ref.target,
8405
+ content = _ref.content,
8406
+ _ref$placement = _ref.placement,
8407
+ placement = _ref$placement === void 0 ? 'top' : _ref$placement,
8408
+ style = _ref.style,
8409
+ testID = _ref.testID;
8410
+ var targetContainerRef = useRef(null);
8411
+ var _React$useState = React__default.useState(false),
8412
+ _React$useState2 = _slicedToArray(_React$useState, 2),
8413
+ visible = _React$useState2[0],
8414
+ setVisible = _React$useState2[1];
8415
+ var theme = useTheme();
8416
+ var offset = theme.__hd__.appCue.space.offset;
8417
+ var _React$useState3 = React__default.useState({
8418
+ pageX: 0,
8419
+ pageY: 0,
8420
+ width: 0,
8421
+ height: 0
8422
+ }),
8423
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
8424
+ position = _React$useState4[0],
8425
+ setPosition = _React$useState4[1];
8426
+ var _React$useState5 = React__default.useState({
8427
+ width: 0,
8428
+ height: 0
8429
+ }),
8430
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
8431
+ contentSize = _React$useState6[0],
8432
+ setContentSize = _React$useState6[1];
8433
+ var doMeasure = useCallback(function (cb) {
8434
+ var _targetContainerRef$c;
8435
+ (_targetContainerRef$c = targetContainerRef.current) === null || _targetContainerRef$c === void 0 || _targetContainerRef$c.measure(function (_, __, width, height, pageX, pageY) {
8436
+ setPosition({
8437
+ pageX: pageX,
8438
+ pageY: pageY,
8439
+ width: width,
8440
+ height: height
8441
+ });
8442
+ cb === null || cb === void 0 || cb();
8443
+ });
8444
+ }, []);
8445
+ var handleOpen = function handleOpen() {
8446
+ doMeasure(function () {
8447
+ return setVisible(true);
8448
+ });
8449
+ };
8450
+ useLayoutEffect(function () {
8451
+ doMeasure();
8452
+ }, [doMeasure]);
8453
+ var enhancedTarget = /*#__PURE__*/React__default.cloneElement(target, {
8454
+ onPress: function onPress() {
8455
+ var _target$props, _target$props$onPress;
8456
+ handleOpen();
8457
+ (_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);
8458
+ }
8459
+ }, target.props.children);
8460
+ var measureContent = function measureContent(event) {
8461
+ setContentSize({
8462
+ width: event.nativeEvent.layout.width,
8463
+ height: event.nativeEvent.layout.height
8464
+ });
8465
+ };
8466
+ var pos = calculatePosition({
8467
+ position: position,
8468
+ contentSize: contentSize,
8469
+ placement: placement,
8470
+ offset: offset
8471
+ });
8472
+ var _useWindowDimensions = useWindowDimensions(),
8473
+ windowWidth = _useWindowDimensions.width;
8474
+ var maxWidth = calulateContentMaxWidth({
8475
+ position: position,
8476
+ offset: offset,
8477
+ placement: placement,
8478
+ windowWidth: windowWidth
8479
+ });
8480
+ var renderContent = function renderContent() {
8481
+ if (typeof content === 'string') {
8482
+ return /*#__PURE__*/React__default.createElement(Typography.Body, {
8483
+ intent: "inverted"
8484
+ }, content);
8485
+ }
8486
+ return content;
8487
+ };
8488
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
8489
+ onPress: handleOpen
8490
+ }, /*#__PURE__*/React__default.createElement(View, {
8491
+ collapsable: false,
8492
+ ref: targetContainerRef,
8493
+ style: {
8494
+ alignSelf: 'center'
8495
+ }
8496
+ }, enhancedTarget)), /*#__PURE__*/React__default.createElement(Modal$1, {
8497
+ animationType: "fade",
8498
+ visible: visible,
8499
+ onDismiss: function onDismiss() {
8500
+ return setVisible(false);
8501
+ },
8502
+ transparent: true,
8503
+ presentationStyle: "overFullScreen",
8504
+ statusBarTranslucent: true
8505
+ }, /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
8506
+ testID: testID && "".concat(testID, "-backdrop"),
8507
+ onPress: function onPress() {
8508
+ return setVisible(false);
8509
+ }
8510
+ }, /*#__PURE__*/React__default.createElement(StyledContainer$9, null, /*#__PURE__*/React__default.createElement(View, {
8511
+ style: StyleSheet$1.flatten([{
8512
+ position: 'absolute',
8513
+ top: pos.y,
8514
+ left: pos.x
8515
+ }, style]),
8516
+ onLayout: measureContent,
8517
+ testID: testID
8518
+ }, /*#__PURE__*/React__default.createElement(StyledContent$1, {
8519
+ style: {
8520
+ maxWidth: maxWidth
8521
+ },
8522
+ testID: testID && "".concat(testID, "-content")
8523
+ }, renderContent()), /*#__PURE__*/React__default.createElement(StyledIconContainer$1, {
8524
+ themePlacement: placement,
8525
+ testID: testID && "".concat(testID, "-arrow")
8526
+ }, /*#__PURE__*/React__default.createElement(Icon, {
8527
+ icon: "caret-down",
8528
+ size: "small"
8529
+ })))))));
8530
+ };
8531
+
8186
8532
  var StyledContainer$8 = index$a(View)({
8187
8533
  alignItems: 'center',
8188
8534
  flexDirection: 'row'
@@ -8288,6 +8634,7 @@ var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
8288
8634
 
8289
8635
  android: {
8290
8636
  lineHeight: null,
8637
+ // center on android
8291
8638
  marginTop: theme.__hd__.avatar.spaces.titleMarginTopForAndroid[themeSize]
8292
8639
  },
8293
8640
  web: {
@@ -9431,6 +9778,7 @@ var StyledButtonTitleOfVariantText = index$a(Typography.Body)(function (_ref3) {
9431
9778
  return _objectSpread2({
9432
9779
  flexShrink: 1,
9433
9780
  lineHeight: theme.__hd__.button.lineHeights.titleOfTextVariant,
9781
+ // align text on Android
9434
9782
  textAlign: 'center'
9435
9783
  }, themeStyling());
9436
9784
  });
@@ -13123,16 +13471,16 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13123
13471
  var getShadowStyles = function getShadowStyles() {
13124
13472
  switch (themeVariant) {
13125
13473
  case 'compact':
13126
- case 'filled':
13474
+ case 'filter':
13127
13475
  return _objectSpread2({}, theme.__hd__.chip.shadows.filledWrapper);
13128
- case 'outlined':
13476
+ case 'selection':
13129
13477
  case 'compact-outlined':
13130
13478
  return undefined;
13131
13479
  }
13132
13480
  };
13133
13481
  var getBorderStyles = function getBorderStyles() {
13134
13482
  switch (themeVariant) {
13135
- case 'outlined':
13483
+ case 'selection':
13136
13484
  case 'compact-outlined':
13137
13485
  {
13138
13486
  return {
@@ -13141,7 +13489,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13141
13489
  };
13142
13490
  }
13143
13491
  case 'compact':
13144
- case 'filled':
13492
+ case 'filter':
13145
13493
  {
13146
13494
  return {
13147
13495
  borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
@@ -13152,14 +13500,14 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13152
13500
  var getBackgroundStyles = function getBackgroundStyles() {
13153
13501
  if (themeSelected) {
13154
13502
  switch (themeVariant) {
13155
- case 'outlined':
13503
+ case 'selection':
13156
13504
  case 'compact-outlined':
13157
13505
  {
13158
13506
  return {
13159
13507
  backgroundColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBackground : theme.__hd__.chip.colors.outlinedDefaultBackground
13160
13508
  };
13161
13509
  }
13162
- case 'filled':
13510
+ case 'filter':
13163
13511
  case 'compact':
13164
13512
  {
13165
13513
  return {
@@ -13169,14 +13517,14 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13169
13517
  }
13170
13518
  } else {
13171
13519
  switch (themeVariant) {
13172
- case 'outlined':
13520
+ case 'selection':
13173
13521
  case 'compact-outlined':
13174
13522
  {
13175
13523
  return {
13176
13524
  backgroundColor: theme.__hd__.chip.colors.outlinedDefaultBackground
13177
13525
  };
13178
13526
  }
13179
- case 'filled':
13527
+ case 'filter':
13180
13528
  case 'compact':
13181
13529
  {
13182
13530
  return {
@@ -13229,10 +13577,24 @@ var getChipLabel = function getChipLabel(label) {
13229
13577
  }
13230
13578
  return label;
13231
13579
  };
13580
+ var getChipVariant = function getChipVariant() {
13581
+ var variant = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'selection';
13582
+ switch (variant) {
13583
+ case 'selection':
13584
+ case 'filter':
13585
+ case 'compact':
13586
+ case 'compact-outlined':
13587
+ return variant;
13588
+ case 'outlined':
13589
+ return 'selection';
13590
+ case 'filled':
13591
+ return 'filter';
13592
+ }
13593
+ };
13232
13594
  var Chip = function Chip(_ref) {
13233
13595
  var label = _ref.label,
13234
13596
  _ref$variant = _ref.variant,
13235
- variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
13597
+ variant = _ref$variant === void 0 ? 'selection' : _ref$variant,
13236
13598
  _ref$selected = _ref.selected,
13237
13599
  selected = _ref$selected === void 0 ? false : _ref$selected,
13238
13600
  icon = _ref.icon,
@@ -13240,13 +13602,15 @@ var Chip = function Chip(_ref) {
13240
13602
  _ref$showSelectedIcon = _ref.showSelectedIcon,
13241
13603
  showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
13242
13604
  otherProps = _objectWithoutProperties(_ref, _excluded$s);
13243
- var shouldShowSelectedIcon = (variant === 'outlined' || variant === 'compact-outlined') && selected && showSelectedIcon;
13605
+ useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
13606
+ var renamedVariant = getChipVariant(variant);
13607
+ var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
13244
13608
  var chipLabel = useMemo(function () {
13245
13609
  return getChipLabel(label);
13246
13610
  }, [label]);
13247
13611
  return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
13248
13612
  onPress: onPress,
13249
- themeVariant: variant,
13613
+ themeVariant: renamedVariant,
13250
13614
  themeSelected: selected
13251
13615
  }, otherProps), icon && /*#__PURE__*/React__default.createElement(Box, {
13252
13616
  marginRight: "small"
@@ -14273,6 +14637,7 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
14273
14637
  return {
14274
14638
  list: uniqSnapPointOffsetValues,
14275
14639
  minHeightOffset: Math.max.apply(Math, uniqSnapPointOffsetValues),
14640
+ // Furthest from max height
14276
14641
  maxHeightOffset: 0 // Max height
14277
14642
  };
14278
14643
  };
@@ -16600,6 +16965,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16600
16965
  });
16601
16966
  var interpolateOpacityRightHalf = progressAnimatedValue.current.interpolate({
16602
16967
  inputRange: [50, 51],
16968
+ // Transition between left and right half
16603
16969
  outputRange: [1, 0],
16604
16970
  extrapolate: 'clamp'
16605
16971
  });
@@ -16724,6 +17090,7 @@ var ProgressBar = function ProgressBar(_ref) {
16724
17090
  });
16725
17091
  var interpolateBorderRadius = progressAnimatedValue.current.interpolate({
16726
17092
  inputRange: [99, 100],
17093
+ // Transition range to remove bother when reached 100%
16727
17094
  outputRange: [999, 0],
16728
17095
  extrapolate: 'clamp'
16729
17096
  });
@@ -16879,6 +17246,17 @@ var Slider$2 = function Slider(_ref) {
16879
17246
  });
16880
17247
  };
16881
17248
 
17249
+ var StyledMarker = index$a(View)(function (_ref) {
17250
+ var themeDisabled = _ref.themeDisabled,
17251
+ theme = _ref.theme;
17252
+ return _objectSpread2({
17253
+ height: theme.__hd__.slider.sizes.markerHeight,
17254
+ width: theme.__hd__.slider.sizes.markerWidth,
17255
+ borderRadius: theme.__hd__.slider.radii.marker,
17256
+ backgroundColor: themeDisabled ? theme.__hd__.slider.colors.disabledThumbTint : theme.__hd__.slider.colors.thumbTint
17257
+ }, theme.__hd__.slider.shadows.marker);
17258
+ });
17259
+
16882
17260
  var Slider$1 = function Slider(_ref) {
16883
17261
  var minimumValue = _ref.minimumValue,
16884
17262
  maximumValue = _ref.maximumValue,
@@ -16920,23 +17298,28 @@ var Slider$1 = function Slider(_ref) {
16920
17298
  thumbTint = _theme$__hd__$slider$.thumbTint,
16921
17299
  disabledThumbTint = _theme$__hd__$slider$.disabledThumbTint;
16922
17300
  var trackHeight = theme.__hd__.slider.sizes.trackHeight;
16923
- var trackStyle = useMemo(function () {
16924
- return {
16925
- backgroundColor: disabled ? disabledTrackBackground : trackBackground,
17301
+ // Define styles for disabled and enabled states
17302
+ var disabledStyles = {
17303
+ track: {
17304
+ backgroundColor: disabledTrackBackground,
16926
17305
  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]);
17306
+ },
17307
+ selected: {
17308
+ backgroundColor: disabledThumbTint
17309
+ }
17310
+ };
17311
+ var enabledStyles = {
17312
+ track: {
17313
+ backgroundColor: trackBackground,
17314
+ height: trackHeight
17315
+ },
17316
+ selected: {
17317
+ backgroundColor: thumbTint
17318
+ }
17319
+ };
17320
+ // Use styles based on the `disabled` state
17321
+ var trackStyle = disabled ? disabledStyles.track : enabledStyles.track;
17322
+ var selectedStyle = disabled ? disabledStyles.selected : enabledStyles.selected;
16940
17323
  var handleOnValueChangeStart = useCallback(function () {
16941
17324
  if (onSlidingStart) {
16942
17325
  onSlidingStart();
@@ -16956,6 +17339,13 @@ var Slider$1 = function Slider(_ref) {
16956
17339
  height: event.nativeEvent.layout.height
16957
17340
  });
16958
17341
  }, []);
17342
+ var CustomMarker = useMemo(function () {
17343
+ return function () {
17344
+ return /*#__PURE__*/React__default.createElement(StyledMarker, {
17345
+ themeDisabled: disabled
17346
+ });
17347
+ };
17348
+ }, [disabled]);
16959
17349
  return /*#__PURE__*/React__default.createElement(View, {
16960
17350
  onLayout: onLayoutCallback,
16961
17351
  style: style,
@@ -16976,8 +17366,8 @@ var Slider$1 = function Slider(_ref) {
16976
17366
  enabledTwo: !disabled,
16977
17367
  allowOverlap: allowOverlap,
16978
17368
  trackStyle: trackStyle,
16979
- markerStyle: makerStyle,
16980
- selectedStyle: selectedStyle
17369
+ selectedStyle: selectedStyle,
17370
+ customMarker: CustomMarker
16981
17371
  }));
16982
17372
  };
16983
17373
 
@@ -18459,7 +18849,8 @@ var HeaderTabWrapper$1 = index$a(View)(function (_ref) {
18459
18849
  return {
18460
18850
  paddingHorizontal: Math.max(themeInsets.left, themeInsets.right),
18461
18851
  borderBottomColor: theme.__hd__.tabs.colors.headerBottom,
18462
- borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
18852
+ borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom,
18853
+ backgroundColor: theme.__hd__.tabs.colors.headerBackground
18463
18854
  };
18464
18855
  });
18465
18856
  var HeaderTab = index$a(View)({
@@ -18521,9 +18912,11 @@ var TabContainer = index$a(View)({
18521
18912
  overflow: 'hidden'
18522
18913
  });
18523
18914
  var HeaderTabWrapper = index$a(View)(function (_ref) {
18524
- var themeInsets = _ref.themeInsets;
18915
+ var themeInsets = _ref.themeInsets,
18916
+ theme = _ref.theme;
18525
18917
  return {
18526
- paddingHorizontal: Math.max(themeInsets.left, themeInsets.right)
18918
+ paddingHorizontal: Math.max(themeInsets.left, themeInsets.right),
18919
+ backgroundColor: theme.__hd__.tabs.colors.headerBackground
18527
18920
  };
18528
18921
  });
18529
18922
  var HeaderTabItem = index$a(Animated.View)(function (_ref2) {
@@ -37505,4 +37898,4 @@ var FloatingIsland = function FloatingIsland(_ref2) {
37505
37898
  }));
37506
37899
  };
37507
37900
 
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 };
37901
+ 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 };