@razorpay/blade 11.39.0 → 12.0.1

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 (647) hide show
  1. package/build/lib/native/components/Accordion/Accordion.js +2 -2
  2. package/build/lib/native/components/Accordion/Accordion.js.map +1 -1
  3. package/build/lib/native/components/Accordion/AccordionButton.native.js +8 -10
  4. package/build/lib/native/components/Accordion/AccordionButton.native.js.map +1 -1
  5. package/build/lib/native/components/Accordion/AccordionItemBody.js +7 -8
  6. package/build/lib/native/components/Accordion/AccordionItemBody.js.map +1 -1
  7. package/build/lib/native/components/Accordion/AccordionItemHeader.js +3 -8
  8. package/build/lib/native/components/Accordion/AccordionItemHeader.js.map +1 -1
  9. package/build/lib/native/components/Accordion/commonStyles.js +1 -1
  10. package/build/lib/native/components/Accordion/commonStyles.js.map +1 -1
  11. package/build/lib/native/components/ActionList/ActionList.js +1 -1
  12. package/build/lib/native/components/ActionList/ActionList.js.map +1 -1
  13. package/build/lib/native/components/ActionList/ActionListItem.js +9 -8
  14. package/build/lib/native/components/ActionList/ActionListItem.js.map +1 -1
  15. package/build/lib/native/components/ActionList/ActionListNoResults.js +2 -1
  16. package/build/lib/native/components/ActionList/ActionListNoResults.js.map +1 -1
  17. package/build/lib/native/components/Alert/Alert.js +4 -3
  18. package/build/lib/native/components/Alert/Alert.js.map +1 -1
  19. package/build/lib/native/components/Amount/Amount.js +4 -2
  20. package/build/lib/native/components/Amount/Amount.js.map +1 -1
  21. package/build/lib/native/components/AnimateInteractions/AnimateInteractions.native.js +11 -0
  22. package/build/lib/native/components/AnimateInteractions/AnimateInteractions.native.js.map +1 -0
  23. package/build/lib/native/components/Badge/Badge.js +10 -9
  24. package/build/lib/native/components/Badge/Badge.js.map +1 -1
  25. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js +11 -10
  26. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  27. package/build/lib/native/components/BaseMenu/BaseMenuItem/BaseMenuItem.js +8 -6
  28. package/build/lib/native/components/BaseMenu/BaseMenuItem/BaseMenuItem.js.map +1 -1
  29. package/build/lib/native/components/BottomNav/BottomNav.native.js +4 -10
  30. package/build/lib/native/components/BottomNav/BottomNav.native.js.map +1 -1
  31. package/build/lib/native/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  32. package/build/lib/native/components/Box/Box.js +1 -1
  33. package/build/lib/native/components/Box/Box.js.map +1 -1
  34. package/build/lib/native/components/Button/BaseButton/BaseButton.js +1 -1
  35. package/build/lib/native/components/Button/BaseButton/BaseButton.js.map +1 -1
  36. package/build/lib/native/components/Card/Card.js +1 -1
  37. package/build/lib/native/components/Card/Card.js.map +1 -1
  38. package/build/lib/native/components/Card/CardFooter.js +4 -8
  39. package/build/lib/native/components/Card/CardFooter.js.map +1 -1
  40. package/build/lib/native/components/Card/CardHeader.js +5 -9
  41. package/build/lib/native/components/Card/CardHeader.js.map +1 -1
  42. package/build/lib/native/components/Card/CardRoot.native.js +1 -1
  43. package/build/lib/native/components/Card/CardRoot.native.js.map +1 -1
  44. package/build/lib/native/components/Carousel/Carousel.native.js +1 -1
  45. package/build/lib/native/components/Carousel/Carousel.native.js.map +1 -1
  46. package/build/lib/native/components/Carousel/Indicators/StyledIndicatorButton.native.js +1 -1
  47. package/build/lib/native/components/Carousel/Indicators/StyledIndicatorButton.native.js.map +1 -1
  48. package/build/lib/native/components/Carousel/Indicators/getIndicatorButtonStyles.js +1 -1
  49. package/build/lib/native/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  50. package/build/lib/native/components/Carousel/NavigationButton/getNavigationButtonStyles.js +1 -1
  51. package/build/lib/native/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  52. package/build/lib/native/components/Checkbox/Checkbox.js +6 -4
  53. package/build/lib/native/components/Checkbox/Checkbox.js.map +1 -1
  54. package/build/lib/native/components/Checkbox/CheckboxIcon/Fade.native.js +1 -1
  55. package/build/lib/native/components/Checkbox/CheckboxIcon/Fade.native.js.map +1 -1
  56. package/build/lib/native/components/Chip/Chip.js +5 -3
  57. package/build/lib/native/components/Chip/Chip.js.map +1 -1
  58. package/build/lib/native/components/Chip/ChipGroup.js +4 -3
  59. package/build/lib/native/components/Chip/ChipGroup.js.map +1 -1
  60. package/build/lib/native/components/Chip/chipTokens.js +1 -1
  61. package/build/lib/native/components/Chip/chipTokens.js.map +1 -1
  62. package/build/lib/native/components/Collapsible/Collapsible.js +2 -2
  63. package/build/lib/native/components/Collapsible/Collapsible.js.map +1 -1
  64. package/build/lib/native/components/Collapsible/commonStyles.js +1 -1
  65. package/build/lib/native/components/Collapsible/commonStyles.js.map +1 -1
  66. package/build/lib/native/components/Counter/Counter.js +13 -12
  67. package/build/lib/native/components/Counter/Counter.js.map +1 -1
  68. package/build/lib/native/components/Divider/Divider.js +2 -2
  69. package/build/lib/native/components/Divider/Divider.js.map +1 -1
  70. package/build/lib/native/components/Drawer/Drawer.native.js +4 -10
  71. package/build/lib/native/components/Drawer/Drawer.native.js.map +1 -1
  72. package/build/lib/native/components/Drawer/DrawerSubcomponents.native.js +4 -9
  73. package/build/lib/native/components/Drawer/DrawerSubcomponents.native.js.map +1 -1
  74. package/build/lib/native/components/Dropdown/Dropdown.js +2 -1
  75. package/build/lib/native/components/Dropdown/Dropdown.js.map +1 -1
  76. package/build/lib/native/components/Fade/Fade.native.js +11 -0
  77. package/build/lib/native/components/Fade/Fade.native.js.map +1 -0
  78. package/build/lib/native/components/Form/CharacterCounter/CharacterCounter.js +3 -9
  79. package/build/lib/native/components/Form/CharacterCounter/CharacterCounter.js.map +1 -1
  80. package/build/lib/native/components/Form/FormLabel.js +10 -10
  81. package/build/lib/native/components/Indicator/Indicator.js +7 -6
  82. package/build/lib/native/components/Indicator/Indicator.js.map +1 -1
  83. package/build/lib/native/components/Input/BaseInput/AnimatedBaseInputWrapper.native.js +1 -1
  84. package/build/lib/native/components/Input/BaseInput/AnimatedBaseInputWrapper.native.js.map +1 -1
  85. package/build/lib/native/components/Input/BaseInput/BaseInput.js +2 -1
  86. package/build/lib/native/components/Input/BaseInput/BaseInput.js.map +1 -1
  87. package/build/lib/native/components/Input/BaseInput/BaseInputTagSlot.native.js +3 -3
  88. package/build/lib/native/components/Input/BaseInput/BaseInputVisuals.js +8 -10
  89. package/build/lib/native/components/Input/BaseInput/BaseInputVisuals.js.map +1 -1
  90. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js +9 -8
  91. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js.map +1 -1
  92. package/build/lib/native/components/Input/BaseInput/baseInputTokens.js +1 -1
  93. package/build/lib/native/components/Input/BaseInput/baseInputTokens.js.map +1 -1
  94. package/build/lib/native/components/Link/BaseLink/BaseLink.js +1 -1
  95. package/build/lib/native/components/Link/BaseLink/BaseLink.js.map +1 -1
  96. package/build/lib/native/components/List/List.js +1 -1
  97. package/build/lib/native/components/List/List.js.map +1 -1
  98. package/build/lib/native/components/List/ListItem.js +8 -10
  99. package/build/lib/native/components/List/ListItem.js.map +1 -1
  100. package/build/lib/native/components/List/ListItemCode.js +3 -9
  101. package/build/lib/native/components/List/ListItemCode.js.map +1 -1
  102. package/build/lib/native/components/List/ListItemText.js +3 -8
  103. package/build/lib/native/components/List/ListItemText.js.map +1 -1
  104. package/build/lib/native/components/Menu/Menu.native.js +4 -10
  105. package/build/lib/native/components/Menu/Menu.native.js.map +1 -1
  106. package/build/lib/native/components/Menu/MenuItem.native.js +4 -10
  107. package/build/lib/native/components/Menu/MenuItem.native.js.map +1 -1
  108. package/build/lib/native/components/Menu/MenuOverlay.native.js +4 -10
  109. package/build/lib/native/components/Menu/MenuOverlay.native.js.map +1 -1
  110. package/build/lib/native/components/Menu/VisualSubComponents/MenuDivider.native.js +4 -10
  111. package/build/lib/native/components/Menu/VisualSubComponents/MenuDivider.native.js.map +1 -1
  112. package/build/lib/native/components/Menu/VisualSubComponents/MenuHeaderFooter.native.js +4 -10
  113. package/build/lib/native/components/Menu/VisualSubComponents/MenuHeaderFooter.native.js.map +1 -1
  114. package/build/lib/native/components/Modal/Modal.native.js +4 -9
  115. package/build/lib/native/components/Modal/Modal.native.js.map +1 -1
  116. package/build/lib/native/components/Modal/ModalBody.native.js +3 -8
  117. package/build/lib/native/components/Modal/ModalBody.native.js.map +1 -1
  118. package/build/lib/native/components/Modal/ModalFooter.native.js +3 -8
  119. package/build/lib/native/components/Modal/ModalFooter.native.js.map +1 -1
  120. package/build/lib/native/components/Modal/ModalHeader.native.js +3 -8
  121. package/build/lib/native/components/Modal/ModalHeader.native.js.map +1 -1
  122. package/build/lib/native/components/Morph/Morph.native.js +11 -0
  123. package/build/lib/native/components/Morph/Morph.native.js.map +1 -0
  124. package/build/lib/native/components/Move/Move.native.js +11 -0
  125. package/build/lib/native/components/Move/Move.native.js.map +1 -0
  126. package/build/lib/native/components/Popover/PopoverContent.js +6 -8
  127. package/build/lib/native/components/Popover/PopoverContent.js.map +1 -1
  128. package/build/lib/native/components/Popover/PopoverContentWrapper.native.js +1 -1
  129. package/build/lib/native/components/Popover/PopoverContentWrapper.native.js.map +1 -1
  130. package/build/lib/native/components/ProgressBar/CircularProgressBar.native.js +7 -9
  131. package/build/lib/native/components/ProgressBar/CircularProgressBar.native.js.map +1 -1
  132. package/build/lib/native/components/ProgressBar/CircularProgressLabel.js +3 -8
  133. package/build/lib/native/components/ProgressBar/CircularProgressLabel.js.map +1 -1
  134. package/build/lib/native/components/ProgressBar/ProgressBar.js +2 -2
  135. package/build/lib/native/components/ProgressBar/ProgressBar.js.map +1 -1
  136. package/build/lib/native/components/Radio/Radio.js +2 -1
  137. package/build/lib/native/components/Radio/Radio.js.map +1 -1
  138. package/build/lib/native/components/Radio/RadioIcon/Fade.native.js +1 -1
  139. package/build/lib/native/components/Radio/RadioIcon/Fade.native.js.map +1 -1
  140. package/build/lib/native/components/Radio/RadioIcon/RadioIconWrapperStyles.js +1 -1
  141. package/build/lib/native/components/Radio/RadioIcon/RadioIconWrapperStyles.js.map +1 -1
  142. package/build/lib/native/components/Scale/Scale.native.js +11 -0
  143. package/build/lib/native/components/Scale/Scale.native.js.map +1 -0
  144. package/build/lib/native/components/SideNav/SideNav.native.js +4 -10
  145. package/build/lib/native/components/SideNav/SideNav.native.js.map +1 -1
  146. package/build/lib/native/components/SideNav/SideNavBody.native.js +4 -10
  147. package/build/lib/native/components/SideNav/SideNavBody.native.js.map +1 -1
  148. package/build/lib/native/components/SideNav/SideNavFooter.native.js +4 -10
  149. package/build/lib/native/components/SideNav/SideNavFooter.native.js.map +1 -1
  150. package/build/lib/native/components/SideNav/SideNavItems/SideNavItem.native.js +4 -10
  151. package/build/lib/native/components/SideNav/SideNavItems/SideNavItem.native.js.map +1 -1
  152. package/build/lib/native/components/SideNav/SideNavItems/SideNavLink.native.js +4 -10
  153. package/build/lib/native/components/SideNav/SideNavItems/SideNavLink.native.js.map +1 -1
  154. package/build/lib/native/components/SideNav/SideNavLevel.native.js +4 -10
  155. package/build/lib/native/components/SideNav/SideNavLevel.native.js.map +1 -1
  156. package/build/lib/native/components/SideNav/SideNavSection.native.js +4 -10
  157. package/build/lib/native/components/SideNav/SideNavSection.native.js.map +1 -1
  158. package/build/lib/native/components/SideNav/tokens.js.map +1 -1
  159. package/build/lib/native/components/Skeleton/PulseAnimation.native.js +1 -1
  160. package/build/lib/native/components/Skeleton/PulseAnimation.native.js.map +1 -1
  161. package/build/lib/native/components/Skeleton/Skeleton.js +2 -2
  162. package/build/lib/native/components/Skeleton/Skeleton.js.map +1 -1
  163. package/build/lib/native/components/Slide/Slide.native.js +11 -0
  164. package/build/lib/native/components/Slide/Slide.native.js.map +1 -0
  165. package/build/lib/native/components/Spinner/BaseSpinner/BaseSpinner.js +4 -3
  166. package/build/lib/native/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  167. package/build/lib/native/components/Spinner/BaseSpinner/spinnerTokens.js +1 -1
  168. package/build/lib/native/components/Spinner/BaseSpinner/spinnerTokens.js.map +1 -1
  169. package/build/lib/native/components/Spinner/Spinner/Spinner.js +2 -1
  170. package/build/lib/native/components/Spinner/Spinner/Spinner.js.map +1 -1
  171. package/build/lib/native/components/Stagger/Stagger.native.js +11 -0
  172. package/build/lib/native/components/Stagger/Stagger.native.js.map +1 -0
  173. package/build/lib/native/components/StepGroup/StepGroup.native.js +4 -10
  174. package/build/lib/native/components/StepGroup/StepGroup.native.js.map +1 -1
  175. package/build/lib/native/components/StepGroup/StepItem.native.js +4 -10
  176. package/build/lib/native/components/StepGroup/StepItem.native.js.map +1 -1
  177. package/build/lib/native/components/Switch/Switch.js +2 -1
  178. package/build/lib/native/components/Switch/Switch.js.map +1 -1
  179. package/build/lib/native/components/Switch/getTrackStyles.js +1 -1
  180. package/build/lib/native/components/Switch/getTrackStyles.js.map +1 -1
  181. package/build/lib/native/components/Switch/switchTokens.js +1 -1
  182. package/build/lib/native/components/Switch/switchTokens.js.map +1 -1
  183. package/build/lib/native/components/Table/Table.native.js +4 -9
  184. package/build/lib/native/components/Table/Table.native.js.map +1 -1
  185. package/build/lib/native/components/Table/TableBody.native.js +3 -8
  186. package/build/lib/native/components/Table/TableBody.native.js.map +1 -1
  187. package/build/lib/native/components/Table/TableEditableCell.native.js +3 -9
  188. package/build/lib/native/components/Table/TableEditableCell.native.js.map +1 -1
  189. package/build/lib/native/components/Table/TableFooter.native.js +3 -8
  190. package/build/lib/native/components/Table/TableFooter.native.js.map +1 -1
  191. package/build/lib/native/components/Table/TableHeader.native.js +3 -8
  192. package/build/lib/native/components/Table/TableHeader.native.js.map +1 -1
  193. package/build/lib/native/components/Table/TablePagination.native.js +3 -8
  194. package/build/lib/native/components/Table/TablePagination.native.js.map +1 -1
  195. package/build/lib/native/components/Table/TableToolbar.native.js +3 -8
  196. package/build/lib/native/components/Table/TableToolbar.native.js.map +1 -1
  197. package/build/lib/native/components/Table/tokens.js.map +1 -1
  198. package/build/lib/native/components/Tabs/Tabs.native.js +6 -8
  199. package/build/lib/native/components/Tabs/Tabs.native.js.map +1 -1
  200. package/build/lib/native/components/Tag/AnimatedTag.native.js +1 -1
  201. package/build/lib/native/components/Tag/AnimatedTag.native.js.map +1 -1
  202. package/build/lib/native/components/Tag/Tag.js +3 -2
  203. package/build/lib/native/components/Tag/Tag.js.map +1 -1
  204. package/build/lib/native/components/Tooltip/TooltipContent.js +8 -8
  205. package/build/lib/native/components/Tooltip/TooltipContentWrapper.native.js +1 -1
  206. package/build/lib/native/components/Tooltip/TooltipContentWrapper.native.js.map +1 -1
  207. package/build/lib/native/components/TopNav/TabNav/TabNav.native.js +4 -10
  208. package/build/lib/native/components/TopNav/TabNav/TabNav.native.js.map +1 -1
  209. package/build/lib/native/components/TopNav/TabNav/TabNavItem.native.js +4 -10
  210. package/build/lib/native/components/TopNav/TabNav/TabNavItem.native.js.map +1 -1
  211. package/build/lib/native/components/TopNav/TopNav.native.js +4 -10
  212. package/build/lib/native/components/TopNav/TopNav.native.js.map +1 -1
  213. package/build/lib/native/components/Typography/Code/Code.js +1 -1
  214. package/build/lib/native/components/Typography/Code/Code.js.map +1 -1
  215. package/build/lib/native/components/Typography/Display/Display.js +2 -2
  216. package/build/lib/native/components/Typography/Display/Display.js.map +1 -1
  217. package/build/lib/native/components/Typography/Heading/Heading.js +2 -2
  218. package/build/lib/native/components/Typography/Heading/Heading.js.map +1 -1
  219. package/build/lib/native/components/Typography/Text/Text.js +2 -2
  220. package/build/lib/native/components/Typography/Text/Text.js.map +1 -1
  221. package/build/lib/native/components/index.js +7 -0
  222. package/build/lib/native/components/index.js.map +1 -1
  223. package/build/lib/native/tokens/global/motion.js +1 -1
  224. package/build/lib/native/tokens/global/motion.js.map +1 -1
  225. package/build/lib/native/utils/getMotionRefs.js +4 -0
  226. package/build/lib/native/utils/getMotionRefs.js.map +1 -0
  227. package/build/lib/web/development/components/Accordion/Accordion.js +6 -3
  228. package/build/lib/web/development/components/Accordion/Accordion.js.map +1 -1
  229. package/build/lib/web/development/components/Accordion/commonStyles.js +1 -1
  230. package/build/lib/web/development/components/Accordion/commonStyles.js.map +1 -1
  231. package/build/lib/web/development/components/ActionList/ActionList.js +3 -0
  232. package/build/lib/web/development/components/ActionList/ActionList.js.map +1 -1
  233. package/build/lib/web/development/components/Alert/Alert.js +6 -3
  234. package/build/lib/web/development/components/Alert/Alert.js.map +1 -1
  235. package/build/lib/web/development/components/Amount/Amount.js +3 -2
  236. package/build/lib/web/development/components/Amount/Amount.js.map +1 -1
  237. package/build/lib/web/development/components/AnimateInteractions/AnimateInteractions.web.js +37 -0
  238. package/build/lib/web/development/components/AnimateInteractions/AnimateInteractions.web.js.map +1 -0
  239. package/build/lib/web/development/components/AnimateInteractions/AnimateInteractionsProvider.js +12 -0
  240. package/build/lib/web/development/components/AnimateInteractions/AnimateInteractionsProvider.js.map +1 -0
  241. package/build/lib/web/development/components/AnimateInteractions/index.js +2 -0
  242. package/build/lib/web/development/components/AnimateInteractions/index.js.map +1 -0
  243. package/build/lib/web/development/components/AnimateInteractions/useFocusWithin.js +30 -0
  244. package/build/lib/web/development/components/AnimateInteractions/useFocusWithin.js.map +1 -0
  245. package/build/lib/web/development/components/Badge/Badge.js +4 -2
  246. package/build/lib/web/development/components/Badge/Badge.js.map +1 -1
  247. package/build/lib/web/development/components/BaseMotion/BaseMotion.js +123 -0
  248. package/build/lib/web/development/components/BaseMotion/BaseMotion.js.map +1 -0
  249. package/build/lib/web/development/components/BaseMotion/baseMotionUtils.js +60 -0
  250. package/build/lib/web/development/components/BaseMotion/baseMotionUtils.js.map +1 -0
  251. package/build/lib/web/development/components/BaseMotion/index.js +3 -0
  252. package/build/lib/web/development/components/BaseMotion/index.js.map +1 -0
  253. package/build/lib/web/development/components/BaseMotion/types.js +2 -0
  254. package/build/lib/web/development/components/BaseMotion/types.js.map +1 -0
  255. package/build/lib/web/development/components/BottomNav/BottomNav.web.js +4 -2
  256. package/build/lib/web/development/components/BottomNav/BottomNav.web.js.map +1 -1
  257. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js +1 -1
  258. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js.map +1 -1
  259. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js +1 -1
  260. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  261. package/build/lib/web/development/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  262. package/build/lib/web/development/components/Box/Box.js +2 -2
  263. package/build/lib/web/development/components/Box/Box.js.map +1 -1
  264. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js +3 -1
  265. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js.map +1 -1
  266. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js +1 -1
  267. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js.map +1 -1
  268. package/build/lib/web/development/components/Button/IconButton/StyledIconButton.web.js +1 -1
  269. package/build/lib/web/development/components/Button/IconButton/StyledIconButton.web.js.map +1 -1
  270. package/build/lib/web/development/components/ButtonGroup/ButtonGroup.web.js +3 -2
  271. package/build/lib/web/development/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  272. package/build/lib/web/development/components/Card/Card.js +3 -1
  273. package/build/lib/web/development/components/Card/Card.js.map +1 -1
  274. package/build/lib/web/development/components/Card/CardRoot.web.js +6 -4
  275. package/build/lib/web/development/components/Card/CardRoot.web.js.map +1 -1
  276. package/build/lib/web/development/components/Carousel/Carousel.web.js +6 -3
  277. package/build/lib/web/development/components/Carousel/Carousel.web.js.map +1 -1
  278. package/build/lib/web/development/components/Carousel/Indicators/getIndicatorButtonStyles.js +1 -1
  279. package/build/lib/web/development/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  280. package/build/lib/web/development/components/Carousel/NavigationButton/getNavigationButtonStyles.js +1 -1
  281. package/build/lib/web/development/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  282. package/build/lib/web/development/components/Checkbox/Checkbox.js +13 -3
  283. package/build/lib/web/development/components/Checkbox/Checkbox.js.map +1 -1
  284. package/build/lib/web/development/components/Checkbox/CheckboxIcon/Fade.web.js +2 -2
  285. package/build/lib/web/development/components/Checkbox/CheckboxIcon/Fade.web.js.map +1 -1
  286. package/build/lib/web/development/components/Chip/Chip.js +11 -2
  287. package/build/lib/web/development/components/Chip/Chip.js.map +1 -1
  288. package/build/lib/web/development/components/Chip/ChipGroup.js +5 -2
  289. package/build/lib/web/development/components/Chip/ChipGroup.js.map +1 -1
  290. package/build/lib/web/development/components/Chip/chipTokens.js +1 -1
  291. package/build/lib/web/development/components/Chip/chipTokens.js.map +1 -1
  292. package/build/lib/web/development/components/Collapsible/Collapsible.js +6 -3
  293. package/build/lib/web/development/components/Collapsible/Collapsible.js.map +1 -1
  294. package/build/lib/web/development/components/Collapsible/commonStyles.js +2 -2
  295. package/build/lib/web/development/components/Collapsible/commonStyles.js.map +1 -1
  296. package/build/lib/web/development/components/Counter/Counter.js +4 -2
  297. package/build/lib/web/development/components/Counter/Counter.js.map +1 -1
  298. package/build/lib/web/development/components/Divider/Divider.js +4 -2
  299. package/build/lib/web/development/components/Divider/Divider.js.map +1 -1
  300. package/build/lib/web/development/components/Drawer/Drawer.web.js +4 -4
  301. package/build/lib/web/development/components/Drawer/Drawer.web.js.map +1 -1
  302. package/build/lib/web/development/components/Dropdown/Dropdown.js +4 -3
  303. package/build/lib/web/development/components/Dropdown/Dropdown.js.map +1 -1
  304. package/build/lib/web/development/components/Fade/Fade.web.js +62 -0
  305. package/build/lib/web/development/components/Fade/Fade.web.js.map +1 -0
  306. package/build/lib/web/development/components/Fade/index.js +2 -0
  307. package/build/lib/web/development/components/Fade/index.js.map +1 -0
  308. package/build/lib/web/development/components/FileUpload/FileUpload.web.js +11 -2
  309. package/build/lib/web/development/components/FileUpload/FileUpload.web.js.map +1 -1
  310. package/build/lib/web/development/components/FileUpload/fileUploadTokens.js +1 -1
  311. package/build/lib/web/development/components/FileUpload/fileUploadTokens.js.map +1 -1
  312. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js +1 -1
  313. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js.map +1 -1
  314. package/build/lib/web/development/components/Indicator/Indicator.js +4 -2
  315. package/build/lib/web/development/components/Indicator/Indicator.js.map +1 -1
  316. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +3 -3
  317. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  318. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +21 -7
  319. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  320. package/build/lib/web/development/components/Input/BaseInput/baseInputTokens.js +2 -2
  321. package/build/lib/web/development/components/Input/BaseInput/baseInputTokens.js.map +1 -1
  322. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js +1 -1
  323. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js.map +1 -1
  324. package/build/lib/web/development/components/List/List.js +5 -3
  325. package/build/lib/web/development/components/List/List.js.map +1 -1
  326. package/build/lib/web/development/components/Modal/Modal.web.js +2 -2
  327. package/build/lib/web/development/components/Modal/Modal.web.js.map +1 -1
  328. package/build/lib/web/development/components/Modal/ModalBackdrop.js +2 -2
  329. package/build/lib/web/development/components/Modal/ModalBackdrop.js.map +1 -1
  330. package/build/lib/web/development/components/Morph/Morph.web.js +48 -0
  331. package/build/lib/web/development/components/Morph/Morph.web.js.map +1 -0
  332. package/build/lib/web/development/components/Morph/index.js +2 -0
  333. package/build/lib/web/development/components/Morph/index.js.map +1 -0
  334. package/build/lib/web/development/components/Move/Move.web.js +66 -0
  335. package/build/lib/web/development/components/Move/Move.web.js.map +1 -0
  336. package/build/lib/web/development/components/Move/index.js +2 -0
  337. package/build/lib/web/development/components/Move/index.js.map +1 -0
  338. package/build/lib/web/development/components/ProgressBar/CircularProgressBar.web.js +1 -1
  339. package/build/lib/web/development/components/ProgressBar/CircularProgressBar.web.js.map +1 -1
  340. package/build/lib/web/development/components/ProgressBar/ProgressBar.js +8 -4
  341. package/build/lib/web/development/components/ProgressBar/ProgressBar.js.map +1 -1
  342. package/build/lib/web/development/components/Radio/Radio.js +13 -3
  343. package/build/lib/web/development/components/Radio/Radio.js.map +1 -1
  344. package/build/lib/web/development/components/Radio/RadioIcon/Fade.web.js +3 -3
  345. package/build/lib/web/development/components/Radio/RadioIcon/Fade.web.js.map +1 -1
  346. package/build/lib/web/development/components/Radio/RadioIcon/RadioIconWrapperStyles.js +1 -1
  347. package/build/lib/web/development/components/Radio/RadioIcon/RadioIconWrapperStyles.js.map +1 -1
  348. package/build/lib/web/development/components/Scale/Scale.web.js +47 -0
  349. package/build/lib/web/development/components/Scale/Scale.web.js.map +1 -0
  350. package/build/lib/web/development/components/Scale/index.js +2 -0
  351. package/build/lib/web/development/components/Scale/index.js.map +1 -0
  352. package/build/lib/web/development/components/SideNav/SideNav.web.js +7 -5
  353. package/build/lib/web/development/components/SideNav/SideNav.web.js.map +1 -1
  354. package/build/lib/web/development/components/SideNav/tokens.js +1 -1
  355. package/build/lib/web/development/components/SideNav/tokens.js.map +1 -1
  356. package/build/lib/web/development/components/Skeleton/PulseAnimation.web.js +1 -1
  357. package/build/lib/web/development/components/Skeleton/PulseAnimation.web.js.map +1 -1
  358. package/build/lib/web/development/components/Skeleton/Skeleton.js +4 -1
  359. package/build/lib/web/development/components/Skeleton/Skeleton.js.map +1 -1
  360. package/build/lib/web/development/components/Slide/Slide.web.js +119 -0
  361. package/build/lib/web/development/components/Slide/Slide.web.js.map +1 -0
  362. package/build/lib/web/development/components/Slide/index.js +2 -0
  363. package/build/lib/web/development/components/Slide/index.js.map +1 -0
  364. package/build/lib/web/development/components/Spinner/BaseSpinner/BaseSpinner.js +6 -3
  365. package/build/lib/web/development/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  366. package/build/lib/web/development/components/Spinner/BaseSpinner/spinnerTokens.js +1 -1
  367. package/build/lib/web/development/components/Spinner/BaseSpinner/spinnerTokens.js.map +1 -1
  368. package/build/lib/web/development/components/Spinner/Spinner/Spinner.js +4 -1
  369. package/build/lib/web/development/components/Spinner/Spinner/Spinner.js.map +1 -1
  370. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js +2 -2
  371. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  372. package/build/lib/web/development/components/Stagger/Stagger.web.js +73 -0
  373. package/build/lib/web/development/components/Stagger/Stagger.web.js.map +1 -0
  374. package/build/lib/web/development/components/Stagger/StaggerProvider.js +13 -0
  375. package/build/lib/web/development/components/Stagger/StaggerProvider.js.map +1 -0
  376. package/build/lib/web/development/components/Stagger/index.js +2 -0
  377. package/build/lib/web/development/components/Stagger/index.js.map +1 -0
  378. package/build/lib/web/development/components/StepGroup/StepGroup.web.js +5 -3
  379. package/build/lib/web/development/components/StepGroup/StepGroup.web.js.map +1 -1
  380. package/build/lib/web/development/components/StepGroup/StepItem.web.js +1 -1
  381. package/build/lib/web/development/components/StepGroup/StepItem.web.js.map +1 -1
  382. package/build/lib/web/development/components/Switch/AnimatedThumbIcon.web.js +1 -1
  383. package/build/lib/web/development/components/Switch/AnimatedThumbIcon.web.js.map +1 -1
  384. package/build/lib/web/development/components/Switch/Switch.js +13 -3
  385. package/build/lib/web/development/components/Switch/Switch.js.map +1 -1
  386. package/build/lib/web/development/components/Switch/getTrackStyles.js +1 -1
  387. package/build/lib/web/development/components/Switch/getTrackStyles.js.map +1 -1
  388. package/build/lib/web/development/components/Switch/switchTokens.js +6 -6
  389. package/build/lib/web/development/components/Switch/switchTokens.js.map +1 -1
  390. package/build/lib/web/development/components/Table/Table.web.js +4 -2
  391. package/build/lib/web/development/components/Table/Table.web.js.map +1 -1
  392. package/build/lib/web/development/components/Table/tokens.js +2 -2
  393. package/build/lib/web/development/components/Table/tokens.js.map +1 -1
  394. package/build/lib/web/development/components/Tabs/TabIndicator.web.js +1 -1
  395. package/build/lib/web/development/components/Tabs/TabIndicator.web.js.map +1 -1
  396. package/build/lib/web/development/components/Tabs/TabItem.web.js +2 -2
  397. package/build/lib/web/development/components/Tabs/TabItem.web.js.map +1 -1
  398. package/build/lib/web/development/components/Tabs/Tabs.web.js +34 -1
  399. package/build/lib/web/development/components/Tabs/Tabs.web.js.map +1 -1
  400. package/build/lib/web/development/components/Tag/AnimatedTag.web.js +2 -2
  401. package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
  402. package/build/lib/web/development/components/Tag/Tag.js +31 -29
  403. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  404. package/build/lib/web/development/components/Toast/Toast.web.js +2 -2
  405. package/build/lib/web/development/components/Toast/Toast.web.js.map +1 -1
  406. package/build/lib/web/development/components/Toast/ToastContainer.web.js +1 -1
  407. package/build/lib/web/development/components/Toast/ToastContainer.web.js.map +1 -1
  408. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js +2 -2
  409. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  410. package/build/lib/web/development/components/TopNav/TopNav.web.js +4 -2
  411. package/build/lib/web/development/components/TopNav/TopNav.web.js.map +1 -1
  412. package/build/lib/web/development/components/Typography/Code/Code.js +30 -27
  413. package/build/lib/web/development/components/Typography/Code/Code.js.map +1 -1
  414. package/build/lib/web/development/components/Typography/Display/Display.js +6 -2
  415. package/build/lib/web/development/components/Typography/Display/Display.js.map +1 -1
  416. package/build/lib/web/development/components/Typography/Heading/Heading.js +4 -1
  417. package/build/lib/web/development/components/Typography/Heading/Heading.js.map +1 -1
  418. package/build/lib/web/development/components/Typography/Text/Text.js +6 -10
  419. package/build/lib/web/development/components/Typography/Text/Text.js.map +1 -1
  420. package/build/lib/web/development/components/index.js +14 -0
  421. package/build/lib/web/development/components/index.js.map +1 -1
  422. package/build/lib/web/development/tokens/global/motion.js +22 -28
  423. package/build/lib/web/development/tokens/global/motion.js.map +1 -1
  424. package/build/lib/web/development/utils/cssBezierToArray.js +12 -0
  425. package/build/lib/web/development/utils/cssBezierToArray.js.map +1 -0
  426. package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js +1 -1
  427. package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -1
  428. package/build/lib/web/development/utils/getMotionRefs.js +86 -0
  429. package/build/lib/web/development/utils/getMotionRefs.js.map +1 -0
  430. package/build/lib/web/development/utils/msToSeconds.js +6 -0
  431. package/build/lib/web/development/utils/msToSeconds.js.map +1 -0
  432. package/build/lib/web/production/components/Accordion/Accordion.js +6 -3
  433. package/build/lib/web/production/components/Accordion/Accordion.js.map +1 -1
  434. package/build/lib/web/production/components/Accordion/commonStyles.js +1 -1
  435. package/build/lib/web/production/components/Accordion/commonStyles.js.map +1 -1
  436. package/build/lib/web/production/components/ActionList/ActionList.js +3 -0
  437. package/build/lib/web/production/components/ActionList/ActionList.js.map +1 -1
  438. package/build/lib/web/production/components/Alert/Alert.js +6 -3
  439. package/build/lib/web/production/components/Alert/Alert.js.map +1 -1
  440. package/build/lib/web/production/components/Amount/Amount.js +3 -2
  441. package/build/lib/web/production/components/Amount/Amount.js.map +1 -1
  442. package/build/lib/web/production/components/AnimateInteractions/AnimateInteractions.web.js +37 -0
  443. package/build/lib/web/production/components/AnimateInteractions/AnimateInteractions.web.js.map +1 -0
  444. package/build/lib/web/production/components/AnimateInteractions/AnimateInteractionsProvider.js +12 -0
  445. package/build/lib/web/production/components/AnimateInteractions/AnimateInteractionsProvider.js.map +1 -0
  446. package/build/lib/web/production/components/AnimateInteractions/index.js +2 -0
  447. package/build/lib/web/production/components/AnimateInteractions/index.js.map +1 -0
  448. package/build/lib/web/production/components/AnimateInteractions/useFocusWithin.js +30 -0
  449. package/build/lib/web/production/components/AnimateInteractions/useFocusWithin.js.map +1 -0
  450. package/build/lib/web/production/components/Badge/Badge.js +4 -2
  451. package/build/lib/web/production/components/Badge/Badge.js.map +1 -1
  452. package/build/lib/web/production/components/BaseMotion/BaseMotion.js +123 -0
  453. package/build/lib/web/production/components/BaseMotion/BaseMotion.js.map +1 -0
  454. package/build/lib/web/production/components/BaseMotion/baseMotionUtils.js +60 -0
  455. package/build/lib/web/production/components/BaseMotion/baseMotionUtils.js.map +1 -0
  456. package/build/lib/web/production/components/BaseMotion/index.js +3 -0
  457. package/build/lib/web/production/components/BaseMotion/index.js.map +1 -0
  458. package/build/lib/web/production/components/BaseMotion/types.js +2 -0
  459. package/build/lib/web/production/components/BaseMotion/types.js.map +1 -0
  460. package/build/lib/web/production/components/BottomNav/BottomNav.web.js +4 -2
  461. package/build/lib/web/production/components/BottomNav/BottomNav.web.js.map +1 -1
  462. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +1 -1
  463. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  464. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js +1 -1
  465. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  466. package/build/lib/web/production/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  467. package/build/lib/web/production/components/Box/Box.js +2 -2
  468. package/build/lib/web/production/components/Box/Box.js.map +1 -1
  469. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js +3 -1
  470. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js.map +1 -1
  471. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js +1 -1
  472. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js.map +1 -1
  473. package/build/lib/web/production/components/Button/IconButton/StyledIconButton.web.js +1 -1
  474. package/build/lib/web/production/components/Button/IconButton/StyledIconButton.web.js.map +1 -1
  475. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js +3 -2
  476. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  477. package/build/lib/web/production/components/Card/Card.js +3 -1
  478. package/build/lib/web/production/components/Card/Card.js.map +1 -1
  479. package/build/lib/web/production/components/Card/CardRoot.web.js +6 -4
  480. package/build/lib/web/production/components/Card/CardRoot.web.js.map +1 -1
  481. package/build/lib/web/production/components/Carousel/Carousel.web.js +6 -3
  482. package/build/lib/web/production/components/Carousel/Carousel.web.js.map +1 -1
  483. package/build/lib/web/production/components/Carousel/Indicators/getIndicatorButtonStyles.js +1 -1
  484. package/build/lib/web/production/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  485. package/build/lib/web/production/components/Carousel/NavigationButton/getNavigationButtonStyles.js +1 -1
  486. package/build/lib/web/production/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  487. package/build/lib/web/production/components/Checkbox/Checkbox.js +13 -3
  488. package/build/lib/web/production/components/Checkbox/Checkbox.js.map +1 -1
  489. package/build/lib/web/production/components/Checkbox/CheckboxIcon/Fade.web.js +2 -2
  490. package/build/lib/web/production/components/Checkbox/CheckboxIcon/Fade.web.js.map +1 -1
  491. package/build/lib/web/production/components/Chip/Chip.js +11 -2
  492. package/build/lib/web/production/components/Chip/Chip.js.map +1 -1
  493. package/build/lib/web/production/components/Chip/ChipGroup.js +5 -2
  494. package/build/lib/web/production/components/Chip/ChipGroup.js.map +1 -1
  495. package/build/lib/web/production/components/Chip/chipTokens.js +1 -1
  496. package/build/lib/web/production/components/Chip/chipTokens.js.map +1 -1
  497. package/build/lib/web/production/components/Collapsible/Collapsible.js +6 -3
  498. package/build/lib/web/production/components/Collapsible/Collapsible.js.map +1 -1
  499. package/build/lib/web/production/components/Collapsible/commonStyles.js +2 -2
  500. package/build/lib/web/production/components/Collapsible/commonStyles.js.map +1 -1
  501. package/build/lib/web/production/components/Counter/Counter.js +4 -2
  502. package/build/lib/web/production/components/Counter/Counter.js.map +1 -1
  503. package/build/lib/web/production/components/Divider/Divider.js +4 -2
  504. package/build/lib/web/production/components/Divider/Divider.js.map +1 -1
  505. package/build/lib/web/production/components/Drawer/Drawer.web.js +4 -4
  506. package/build/lib/web/production/components/Drawer/Drawer.web.js.map +1 -1
  507. package/build/lib/web/production/components/Dropdown/Dropdown.js +4 -3
  508. package/build/lib/web/production/components/Dropdown/Dropdown.js.map +1 -1
  509. package/build/lib/web/production/components/Fade/Fade.web.js +62 -0
  510. package/build/lib/web/production/components/Fade/Fade.web.js.map +1 -0
  511. package/build/lib/web/production/components/Fade/index.js +2 -0
  512. package/build/lib/web/production/components/Fade/index.js.map +1 -0
  513. package/build/lib/web/production/components/FileUpload/FileUpload.web.js +11 -2
  514. package/build/lib/web/production/components/FileUpload/FileUpload.web.js.map +1 -1
  515. package/build/lib/web/production/components/FileUpload/fileUploadTokens.js +1 -1
  516. package/build/lib/web/production/components/FileUpload/fileUploadTokens.js.map +1 -1
  517. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js +1 -1
  518. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js.map +1 -1
  519. package/build/lib/web/production/components/Indicator/Indicator.js +4 -2
  520. package/build/lib/web/production/components/Indicator/Indicator.js.map +1 -1
  521. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +3 -3
  522. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  523. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +21 -7
  524. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  525. package/build/lib/web/production/components/Input/BaseInput/baseInputTokens.js +2 -2
  526. package/build/lib/web/production/components/Input/BaseInput/baseInputTokens.js.map +1 -1
  527. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js +1 -1
  528. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js.map +1 -1
  529. package/build/lib/web/production/components/List/List.js +5 -3
  530. package/build/lib/web/production/components/List/List.js.map +1 -1
  531. package/build/lib/web/production/components/Modal/Modal.web.js +2 -2
  532. package/build/lib/web/production/components/Modal/Modal.web.js.map +1 -1
  533. package/build/lib/web/production/components/Modal/ModalBackdrop.js +2 -2
  534. package/build/lib/web/production/components/Modal/ModalBackdrop.js.map +1 -1
  535. package/build/lib/web/production/components/Morph/Morph.web.js +48 -0
  536. package/build/lib/web/production/components/Morph/Morph.web.js.map +1 -0
  537. package/build/lib/web/production/components/Morph/index.js +2 -0
  538. package/build/lib/web/production/components/Morph/index.js.map +1 -0
  539. package/build/lib/web/production/components/Move/Move.web.js +66 -0
  540. package/build/lib/web/production/components/Move/Move.web.js.map +1 -0
  541. package/build/lib/web/production/components/Move/index.js +2 -0
  542. package/build/lib/web/production/components/Move/index.js.map +1 -0
  543. package/build/lib/web/production/components/ProgressBar/CircularProgressBar.web.js +1 -1
  544. package/build/lib/web/production/components/ProgressBar/CircularProgressBar.web.js.map +1 -1
  545. package/build/lib/web/production/components/ProgressBar/ProgressBar.js +8 -4
  546. package/build/lib/web/production/components/ProgressBar/ProgressBar.js.map +1 -1
  547. package/build/lib/web/production/components/Radio/Radio.js +13 -3
  548. package/build/lib/web/production/components/Radio/Radio.js.map +1 -1
  549. package/build/lib/web/production/components/Radio/RadioIcon/Fade.web.js +3 -3
  550. package/build/lib/web/production/components/Radio/RadioIcon/Fade.web.js.map +1 -1
  551. package/build/lib/web/production/components/Radio/RadioIcon/RadioIconWrapperStyles.js +1 -1
  552. package/build/lib/web/production/components/Radio/RadioIcon/RadioIconWrapperStyles.js.map +1 -1
  553. package/build/lib/web/production/components/Scale/Scale.web.js +47 -0
  554. package/build/lib/web/production/components/Scale/Scale.web.js.map +1 -0
  555. package/build/lib/web/production/components/Scale/index.js +2 -0
  556. package/build/lib/web/production/components/Scale/index.js.map +1 -0
  557. package/build/lib/web/production/components/SideNav/SideNav.web.js +7 -5
  558. package/build/lib/web/production/components/SideNav/SideNav.web.js.map +1 -1
  559. package/build/lib/web/production/components/SideNav/tokens.js +1 -1
  560. package/build/lib/web/production/components/SideNav/tokens.js.map +1 -1
  561. package/build/lib/web/production/components/Skeleton/PulseAnimation.web.js +1 -1
  562. package/build/lib/web/production/components/Skeleton/PulseAnimation.web.js.map +1 -1
  563. package/build/lib/web/production/components/Skeleton/Skeleton.js +4 -1
  564. package/build/lib/web/production/components/Skeleton/Skeleton.js.map +1 -1
  565. package/build/lib/web/production/components/Slide/Slide.web.js +119 -0
  566. package/build/lib/web/production/components/Slide/Slide.web.js.map +1 -0
  567. package/build/lib/web/production/components/Slide/index.js +2 -0
  568. package/build/lib/web/production/components/Slide/index.js.map +1 -0
  569. package/build/lib/web/production/components/Spinner/BaseSpinner/BaseSpinner.js +6 -3
  570. package/build/lib/web/production/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  571. package/build/lib/web/production/components/Spinner/BaseSpinner/spinnerTokens.js +1 -1
  572. package/build/lib/web/production/components/Spinner/BaseSpinner/spinnerTokens.js.map +1 -1
  573. package/build/lib/web/production/components/Spinner/Spinner/Spinner.js +4 -1
  574. package/build/lib/web/production/components/Spinner/Spinner/Spinner.js.map +1 -1
  575. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js +2 -2
  576. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  577. package/build/lib/web/production/components/Stagger/Stagger.web.js +73 -0
  578. package/build/lib/web/production/components/Stagger/Stagger.web.js.map +1 -0
  579. package/build/lib/web/production/components/Stagger/StaggerProvider.js +13 -0
  580. package/build/lib/web/production/components/Stagger/StaggerProvider.js.map +1 -0
  581. package/build/lib/web/production/components/Stagger/index.js +2 -0
  582. package/build/lib/web/production/components/Stagger/index.js.map +1 -0
  583. package/build/lib/web/production/components/StepGroup/StepGroup.web.js +5 -3
  584. package/build/lib/web/production/components/StepGroup/StepGroup.web.js.map +1 -1
  585. package/build/lib/web/production/components/StepGroup/StepItem.web.js +1 -1
  586. package/build/lib/web/production/components/StepGroup/StepItem.web.js.map +1 -1
  587. package/build/lib/web/production/components/Switch/AnimatedThumbIcon.web.js +1 -1
  588. package/build/lib/web/production/components/Switch/AnimatedThumbIcon.web.js.map +1 -1
  589. package/build/lib/web/production/components/Switch/Switch.js +13 -3
  590. package/build/lib/web/production/components/Switch/Switch.js.map +1 -1
  591. package/build/lib/web/production/components/Switch/getTrackStyles.js +1 -1
  592. package/build/lib/web/production/components/Switch/getTrackStyles.js.map +1 -1
  593. package/build/lib/web/production/components/Switch/switchTokens.js +6 -6
  594. package/build/lib/web/production/components/Switch/switchTokens.js.map +1 -1
  595. package/build/lib/web/production/components/Table/Table.web.js +4 -2
  596. package/build/lib/web/production/components/Table/Table.web.js.map +1 -1
  597. package/build/lib/web/production/components/Table/tokens.js +2 -2
  598. package/build/lib/web/production/components/Table/tokens.js.map +1 -1
  599. package/build/lib/web/production/components/Tabs/TabIndicator.web.js +1 -1
  600. package/build/lib/web/production/components/Tabs/TabIndicator.web.js.map +1 -1
  601. package/build/lib/web/production/components/Tabs/TabItem.web.js +2 -2
  602. package/build/lib/web/production/components/Tabs/TabItem.web.js.map +1 -1
  603. package/build/lib/web/production/components/Tabs/Tabs.web.js +34 -1
  604. package/build/lib/web/production/components/Tabs/Tabs.web.js.map +1 -1
  605. package/build/lib/web/production/components/Tag/AnimatedTag.web.js +2 -2
  606. package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
  607. package/build/lib/web/production/components/Tag/Tag.js +31 -29
  608. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  609. package/build/lib/web/production/components/Toast/Toast.web.js +2 -2
  610. package/build/lib/web/production/components/Toast/Toast.web.js.map +1 -1
  611. package/build/lib/web/production/components/Toast/ToastContainer.web.js +1 -1
  612. package/build/lib/web/production/components/Toast/ToastContainer.web.js.map +1 -1
  613. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js +2 -2
  614. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  615. package/build/lib/web/production/components/TopNav/TopNav.web.js +4 -2
  616. package/build/lib/web/production/components/TopNav/TopNav.web.js.map +1 -1
  617. package/build/lib/web/production/components/Typography/Code/Code.js +30 -27
  618. package/build/lib/web/production/components/Typography/Code/Code.js.map +1 -1
  619. package/build/lib/web/production/components/Typography/Display/Display.js +6 -2
  620. package/build/lib/web/production/components/Typography/Display/Display.js.map +1 -1
  621. package/build/lib/web/production/components/Typography/Heading/Heading.js +4 -1
  622. package/build/lib/web/production/components/Typography/Heading/Heading.js.map +1 -1
  623. package/build/lib/web/production/components/Typography/Text/Text.js +6 -10
  624. package/build/lib/web/production/components/Typography/Text/Text.js.map +1 -1
  625. package/build/lib/web/production/components/index.js +14 -0
  626. package/build/lib/web/production/components/index.js.map +1 -1
  627. package/build/lib/web/production/tokens/global/motion.js +22 -28
  628. package/build/lib/web/production/tokens/global/motion.js.map +1 -1
  629. package/build/lib/web/production/utils/cssBezierToArray.js +12 -0
  630. package/build/lib/web/production/utils/cssBezierToArray.js.map +1 -0
  631. package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js +1 -1
  632. package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -1
  633. package/build/lib/web/production/utils/getMotionRefs.js +86 -0
  634. package/build/lib/web/production/utils/getMotionRefs.js.map +1 -0
  635. package/build/lib/web/production/utils/msToSeconds.js +6 -0
  636. package/build/lib/web/production/utils/msToSeconds.js.map +1 -0
  637. package/build/types/components/index.d.ts +18052 -5479
  638. package/build/types/components/index.native.d.ts +8077 -2278
  639. package/build/types/tokens/index.d.ts +103 -93
  640. package/build/types/tokens/index.native.d.ts +103 -93
  641. package/build/types/utils/index.d.ts +84 -71
  642. package/build/types/utils/index.native.d.ts +84 -71
  643. package/codemods/migrate-motion-tokens/transformers/__tests__/migrate-motion-tokens.test.ts +130 -0
  644. package/codemods/migrate-motion-tokens/transformers/index.ts +1 -0
  645. package/codemods/migrate-motion-tokens/transformers/migrate-motion.ts +24 -0
  646. package/codemods/migrate-motion-tokens/transformers/motionTokenMapping.json +11 -0
  647. package/package.json +3 -1
@@ -0,0 +1,123 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
+ import React__default from 'react';
4
+ import { m, AnimatePresence } from 'framer-motion';
5
+ import styled from 'styled-components';
6
+ import { mergeRefs } from '@mantine/hooks';
7
+ import { makeAnimationVariables, useMotionVariants } from './baseMotionUtils.js';
8
+ import { useAnimateInteractions } from '../AnimateInteractions/AnimateInteractionsProvider.js';
9
+ import { useStagger } from '../Stagger/StaggerProvider.js';
10
+ import { useMemoizedStyles } from '../Box/BaseBox/useMemoizedStyles.web.js';
11
+ import { jsx } from 'react/jsx-runtime';
12
+
13
+ var _excluded = ["children", "motionVariants", "type", "motionTriggers", "animateVisibility"],
14
+ _excluded2 = ["children"];
15
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
+ // Creating empty styled component so that the final component supports `as` prop
18
+ var StyledDiv = /*#__PURE__*/styled.div.withConfig({
19
+ displayName: "BaseMotion__StyledDiv",
20
+ componentId: "sc-6hsu2h-0"
21
+ })(function (props) {
22
+ // We're turning normal div into Box here because our BaseBox does not forward the props to next component which is needed for enhancer component wrapper
23
+ var boxStyles = useMemoizedStyles(props);
24
+ return boxStyles;
25
+ });
26
+ var MotionDiv = m(StyledDiv);
27
+ var _BaseMotionBox = function _BaseMotionBox(_ref, ref) {
28
+ var children = _ref.children,
29
+ userMotionVariants = _ref.motionVariants,
30
+ _ref$type = _ref.type,
31
+ type = _ref$type === void 0 ? 'inout' : _ref$type,
32
+ _ref$motionTriggers = _ref.motionTriggers,
33
+ motionTriggers = _ref$motionTriggers === void 0 ? ['mount'] : _ref$motionTriggers,
34
+ animateVisibility = _ref.animateVisibility,
35
+ rest = _objectWithoutProperties(_ref, _excluded);
36
+ var _useAnimateInteractio = useAnimateInteractions(),
37
+ isInsideAnimateInteractionsContainer = _useAnimateInteractio.isInsideAnimateInteractionsContainer;
38
+ var _useStagger = useStagger(),
39
+ isInsideStaggerContainer = _useStagger.isInsideStaggerContainer,
40
+ staggerType = _useStagger.staggerType;
41
+ var shouldSkipAnimationVariables = isInsideAnimateInteractionsContainer && motionTriggers.includes('on-animate-interactions') || isInsideStaggerContainer;
42
+ var animationVariables = shouldSkipAnimationVariables ? {} : makeAnimationVariables(motionTriggers, {
43
+ animateVisibility: animateVisibility
44
+ });
45
+ var motionVariants = useMotionVariants(userMotionVariants, isInsideStaggerContainer ? staggerType : type);
46
+ return /*#__PURE__*/jsx(MotionDiv, _objectSpread(_objectSpread(_objectSpread({
47
+ ref: ref,
48
+ viewport: {
49
+ amount: 0.8,
50
+ once: true
51
+ },
52
+ variants: motionVariants
53
+ }, animationVariables), rest), {}, {
54
+ children: children
55
+ }));
56
+ };
57
+
58
+ /**
59
+ * Base motion component that handles animation variables, reduced motion, type and motionTriggers prop, etc
60
+ */
61
+ var BaseMotionBox = /*#__PURE__*/React__default.forwardRef(_BaseMotionBox);
62
+ var _BaseMotionEnhancerBox = function _BaseMotionEnhancerBox(_ref2, ref) {
63
+ var children = _ref2.children,
64
+ motionBoxArgs = _objectWithoutProperties(_ref2, _excluded2);
65
+ return /*#__PURE__*/jsx(BaseMotionBox
66
+ // we need the ref of this item in AnimateInteractions to pass down ref that adds focusWithin logic
67
+ , _objectSpread(_objectSpread({
68
+ ref: mergeRefs(children.props.ref, ref),
69
+ as: children.type
70
+ }, motionBoxArgs), children.props));
71
+ };
72
+
73
+ /**
74
+ * Used in AnimateInteraction, Scale, etc
75
+ *
76
+ * Enhances the child to add motion support
77
+ */
78
+ var BaseMotionEnhancerBox = /*#__PURE__*/React__default.forwardRef(_BaseMotionEnhancerBox);
79
+
80
+ /**
81
+ * Base component for entry / exit animations
82
+ *
83
+ * Handles states, entry exit controls, animation variables, mount / unmount, etc
84
+ */
85
+ var BaseMotionEntryExit = function BaseMotionEntryExit(_ref3) {
86
+ var children = _ref3.children,
87
+ motionVariants = _ref3.motionVariants,
88
+ _ref3$isVisible = _ref3.isVisible,
89
+ isVisible = _ref3$isVisible === void 0 ? true : _ref3$isVisible,
90
+ _ref3$type = _ref3.type,
91
+ type = _ref3$type === void 0 ? 'inout' : _ref3$type,
92
+ _ref3$motionTriggers = _ref3.motionTriggers,
93
+ motionTriggers = _ref3$motionTriggers === void 0 ? ['mount'] : _ref3$motionTriggers,
94
+ _ref3$shouldUnmountWh = _ref3.shouldUnmountWhenHidden,
95
+ shouldUnmountWhenHidden = _ref3$shouldUnmountWh === void 0 ? false : _ref3$shouldUnmountWh;
96
+ // Only need AnimatePresence when we have to unmount the component
97
+ var AnimateWrapper = shouldUnmountWhenHidden ? AnimatePresence : React__default.Fragment;
98
+ // keep it always mounted when shouldUnmountWhenHidden is false
99
+ var isMounted = shouldUnmountWhenHidden ? isVisible : true;
100
+ var motionMeta = React__default.useMemo(function () {
101
+ return {
102
+ isEnhanced: true,
103
+ // @ts-expect-error: ref does exist on children prop
104
+ innerRef: children.ref
105
+ };
106
+ // @ts-expect-error: ref does exist on children prop
107
+ }, [children.ref]);
108
+ return /*#__PURE__*/jsx(AnimateWrapper, {
109
+ children: isMounted ? /*#__PURE__*/jsx(BaseMotionBox, _objectSpread(_objectSpread(_objectSpread({
110
+ as: children.type,
111
+ motionVariants: motionVariants,
112
+ motionTriggers: motionTriggers,
113
+ type: type
114
+ }, shouldUnmountWhenHidden ? {} : {
115
+ animateVisibility: isVisible ? 'animate' : 'exit'
116
+ }), children.props), {}, {
117
+ _motionMeta: motionMeta
118
+ })) : null
119
+ });
120
+ };
121
+
122
+ export { BaseMotionBox, BaseMotionEnhancerBox, BaseMotionEntryExit, MotionDiv };
123
+ //# sourceMappingURL=BaseMotion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseMotion.js","sources":["../../../../../../src/components/BaseMotion/BaseMotion.tsx"],"sourcesContent":["import React from 'react';\nimport { m as motion, AnimatePresence } from 'framer-motion';\nimport styled from 'styled-components';\nimport { mergeRefs } from '@mantine/hooks';\nimport type { BaseMotionBoxProps, MotionMeta, BaseMotionEntryExitProps } from './types';\nimport { makeAnimationVariables, useMotionVariants } from './baseMotionUtils';\nimport { useAnimateInteractions } from '~components/AnimateInteractions/AnimateInteractionsProvider';\nimport { useStagger } from '~components/Stagger/StaggerProvider';\nimport type { BladeElementRef } from '~utils/types';\nimport { useMemoizedStyles } from '~components/Box/BaseBox/useMemoizedStyles';\nimport type { BoxProps } from '~components/Box';\nimport type { Theme } from '~components/BladeProvider';\n\n// Creating empty styled component so that the final component supports `as` prop\nconst StyledDiv = styled.div((props: BoxProps & { theme: Theme }) => {\n // We're turning normal div into Box here because our BaseBox does not forward the props to next component which is needed for enhancer component wrapper\n const boxStyles = useMemoizedStyles(props);\n return boxStyles;\n});\n\nconst MotionDiv = motion(StyledDiv);\n\nconst _BaseMotionBox = (\n {\n children,\n motionVariants: userMotionVariants,\n type = 'inout',\n motionTriggers = ['mount'],\n animateVisibility,\n ...rest\n }: BaseMotionBoxProps,\n ref: React.Ref<BladeElementRef>,\n): React.ReactElement => {\n const { isInsideAnimateInteractionsContainer } = useAnimateInteractions();\n const { isInsideStaggerContainer, staggerType } = useStagger();\n const shouldSkipAnimationVariables =\n (isInsideAnimateInteractionsContainer && motionTriggers.includes('on-animate-interactions')) ||\n isInsideStaggerContainer;\n\n const animationVariables = shouldSkipAnimationVariables\n ? {}\n : makeAnimationVariables(motionTriggers, {\n animateVisibility,\n });\n\n const motionVariants = useMotionVariants(\n userMotionVariants,\n isInsideStaggerContainer ? staggerType : type,\n );\n\n return (\n <MotionDiv\n ref={ref as never}\n viewport={{ amount: 0.8, once: true }}\n variants={motionVariants}\n {...animationVariables}\n {...rest}\n >\n {children}\n </MotionDiv>\n );\n};\n\n/**\n * Base motion component that handles animation variables, reduced motion, type and motionTriggers prop, etc\n */\nconst BaseMotionBox = React.forwardRef(_BaseMotionBox);\n\nconst _BaseMotionEnhancerBox: React.ForwardRefRenderFunction<HTMLDivElement, BaseMotionBoxProps> = (\n { children, ...motionBoxArgs },\n ref,\n) => {\n return (\n <BaseMotionBox\n // we need the ref of this item in AnimateInteractions to pass down ref that adds focusWithin logic\n ref={mergeRefs(children.props.ref, ref)}\n as={children.type}\n {...motionBoxArgs}\n // We pass the props of children and not pass the children itself since the `as` prop already renders the children and we don't want to re-render it inside\n {...children.props}\n />\n );\n};\n\n/**\n * Used in AnimateInteraction, Scale, etc\n *\n * Enhances the child to add motion support\n */\nconst BaseMotionEnhancerBox = React.forwardRef(_BaseMotionEnhancerBox);\n\n/**\n * Base component for entry / exit animations\n *\n * Handles states, entry exit controls, animation variables, mount / unmount, etc\n */\nconst BaseMotionEntryExit = ({\n children,\n motionVariants,\n isVisible = true,\n type = 'inout',\n motionTriggers = ['mount'],\n shouldUnmountWhenHidden = false,\n}: BaseMotionEntryExitProps): React.ReactElement => {\n // Only need AnimatePresence when we have to unmount the component\n const AnimateWrapper = shouldUnmountWhenHidden ? AnimatePresence : React.Fragment;\n // keep it always mounted when shouldUnmountWhenHidden is false\n const isMounted = shouldUnmountWhenHidden ? isVisible : true;\n\n const motionMeta: MotionMeta = React.useMemo(() => {\n return {\n isEnhanced: true,\n // @ts-expect-error: ref does exist on children prop\n innerRef: children.ref,\n };\n // @ts-expect-error: ref does exist on children prop\n }, [children.ref]);\n\n return (\n <AnimateWrapper>\n {isMounted ? (\n <BaseMotionBox\n as={children.type}\n motionVariants={motionVariants}\n motionTriggers={motionTriggers}\n type={type}\n {...(shouldUnmountWhenHidden\n ? {}\n : { animateVisibility: isVisible ? 'animate' : 'exit' })}\n // We pass the props of children and not pass the children itself since the `as` prop already renders the children and we don't want to re-render it inside\n {...children.props}\n _motionMeta={motionMeta}\n />\n ) : null}\n </AnimateWrapper>\n );\n};\n\nexport { MotionDiv, BaseMotionBox, BaseMotionEnhancerBox, BaseMotionEntryExit };\n"],"names":["StyledDiv","styled","div","withConfig","displayName","componentId","props","boxStyles","useMemoizedStyles","MotionDiv","motion","_BaseMotionBox","_ref","ref","children","userMotionVariants","motionVariants","_ref$type","type","_ref$motionTriggers","motionTriggers","animateVisibility","rest","_objectWithoutProperties","_excluded","_useAnimateInteractio","useAnimateInteractions","isInsideAnimateInteractionsContainer","_useStagger","useStagger","isInsideStaggerContainer","staggerType","shouldSkipAnimationVariables","includes","animationVariables","makeAnimationVariables","useMotionVariants","_jsx","_objectSpread","viewport","amount","once","variants","BaseMotionBox","React","forwardRef","_BaseMotionEnhancerBox","_ref2","motionBoxArgs","_excluded2","mergeRefs","as","BaseMotionEnhancerBox","BaseMotionEntryExit","_ref3","_ref3$isVisible","isVisible","_ref3$type","_ref3$motionTriggers","_ref3$shouldUnmountWh","shouldUnmountWhenHidden","AnimateWrapper","AnimatePresence","Fragment","isMounted","motionMeta","useMemo","isEnhanced","innerRef","_motionMeta"],"mappings":";;;;;;;;;;;;;;;;AAaA;AACA,IAAMA,SAAS,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,uBAAA;EAAAC,WAAA,EAAA,aAAA;AAAA,CAAC,CAAA,CAAA,UAACC,KAAkC,EAAK;AACnE;AACA,EAAA,IAAMC,SAAS,GAAGC,iBAAiB,CAACF,KAAK,CAAC,CAAA;AAC1C,EAAA,OAAOC,SAAS,CAAA;AAClB,CAAC,CAAC,CAAA;AAEF,IAAME,SAAS,GAAGC,CAAM,CAACV,SAAS,EAAC;AAEnC,IAAMW,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EASlBC,GAA+B,EACR;AAAA,EAAA,IARrBC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACQC,kBAAkB,GAAAH,IAAA,CAAlCI,cAAc;IAAAC,SAAA,GAAAL,IAAA,CACdM,IAAI;AAAJA,IAAAA,IAAI,GAAAD,S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ers/defineProperty';
2
+
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ // This type is exported in new framer-motion versions but does not exist in earlier versions so adding it manually here
6
+
7
+ var motionTriggersArrayToGesturePropsMap = {
8
+ mount: 'animate',
9
+ hover: 'whileHover',
10
+ 'in-view': 'whileInView',
11
+ tap: 'whileTap',
12
+ focus: 'whileFocus'
13
+ };
14
+ var makeAnimationVariables = function makeAnimationVariables(motionTriggers, _ref) {
15
+ var animateVisibility = _ref.animateVisibility;
16
+ var interactionVariables = motionTriggers.reduce(function (prevProps, currentTrigger) {
17
+ if (currentTrigger === 'on-animate-interactions') {
18
+ return prevProps;
19
+ }
20
+
21
+ // Sometimes animations are conditional. In those cases we use those conditional values in animate
22
+ if (currentTrigger === 'mount' && animateVisibility) {
23
+ prevProps.animate = animateVisibility;
24
+ return prevProps;
25
+ }
26
+ prevProps[motionTriggersArrayToGesturePropsMap[currentTrigger]] = 'animate';
27
+ return prevProps;
28
+ }, {});
29
+ return _objectSpread({
30
+ initial: 'initial',
31
+ exit: 'exit'
32
+ }, interactionVariables);
33
+ };
34
+ var useMotionVariants = function useMotionVariants(motionVariants, type) {
35
+ var _motionVariants$anima, _motionVariants$anima2, _motionVariants$anima3, _motionVariants$exit$;
36
+ if (!motionVariants) {
37
+ return undefined;
38
+ }
39
+ var shouldSkipEntryAnimation = type === 'out';
40
+ var shouldSkipExitAnimation = type === 'in';
41
+
42
+ // We override durations to stop animations but still continue with the expected position changes
43
+ var newMotionVariants = {
44
+ initial: _objectSpread({}, motionVariants.initial),
45
+ animate: _objectSpread(_objectSpread({}, motionVariants.animate), {}, {
46
+ transition: _objectSpread(_objectSpread({}, (_motionVariants$anima = motionVariants.animate) === null || _motionVariants$anima === void 0 ? void 0 : _motionVariants$anima.transition), {}, {
47
+ duration: shouldSkipEntryAnimation ? 0.0001 : (_motionVariants$anima2 = motionVariants.animate) === null || _motionVariants$anima2 === void 0 ? void 0 : (_motionVariants$anima3 = _motionVariants$anima2.transition) === null || _motionVariants$anima3 === void 0 ? void 0 : _motionVariants$anima3.duration
48
+ })
49
+ }),
50
+ exit: _objectSpread(_objectSpread({}, motionVariants.exit), {}, {
51
+ transition: _objectSpread(_objectSpread({}, motionVariants.exit.transition), {}, {
52
+ duration: shouldSkipExitAnimation ? 0.0001 : (_motionVariants$exit$ = motionVariants.exit.transition) === null || _motionVariants$exit$ === void 0 ? void 0 : _motionVariants$exit$.duration
53
+ })
54
+ })
55
+ };
56
+ return newMotionVariants;
57
+ };
58
+
59
+ export { makeAnimationVariables, useMotionVariants };
60
+ //# sourceMappingURL=baseMotionUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseMotionUtils.js","sources":["../../../../../../src/components/BaseMotion/baseMotionUtils.ts"],"sourcesContent":["import type { BaseMotionBoxProps, MotionTriggersType, MotionVariantsType } from './types';\n\n// This type is exported in new framer-motion versions but does not exist in earlier versions so adding it manually here\ntype AnimationType = 'animate' | 'whileHover' | 'whileInView' | 'whileTap' | 'whileFocus';\n\nconst motionTriggersArrayToGesturePropsMap: Record<\n Exclude<MotionTriggersType, 'on-animate-interactions'>,\n AnimationType\n> = {\n mount: 'animate',\n hover: 'whileHover',\n 'in-view': 'whileInView',\n tap: 'whileTap',\n focus: 'whileFocus',\n};\n\ntype AnimationVariablesType = Partial<\n Record<Exclude<AnimationType, 'animate'>, keyof MotionVariantsType>\n> & {\n animate?: BaseMotionBoxProps['animateVisibility'] | BaseMotionBoxProps['animate'];\n};\n\nconst makeAnimationVariables = (\n motionTriggers: MotionTriggersType[],\n { animateVisibility }: { animateVisibility: BaseMotionBoxProps['animateVisibility'] },\n): AnimationVariablesType & {\n initial: string;\n exit: string;\n} => {\n const interactionVariables = motionTriggers.reduce<AnimationVariablesType>(\n (prevProps, currentTrigger) => {\n if (currentTrigger === 'on-animate-interactions') {\n return prevProps;\n }\n\n // Sometimes animations are conditional. In those cases we use those conditional values in animate\n if (currentTrigger === 'mount' && animateVisibility) {\n prevProps.animate = animateVisibility;\n return prevProps;\n }\n\n prevProps[motionTriggersArrayToGesturePropsMap[currentTrigger]] = 'animate';\n return prevProps;\n },\n {},\n );\n\n return { initial: 'initial', exit: 'exit', ...interactionVariables };\n};\n\nconst useMotionVariants = (\n motionVariants: BaseMotionBoxProps['motionVariants'],\n type: BaseMotionBoxProps['type'],\n): BaseMotionBoxProps['motionVariants'] => {\n if (!motionVariants) {\n return undefined;\n }\n\n const shouldSkipEntryAnimation = type === 'out';\n const shouldSkipExitAnimation = type === 'in';\n\n // We override durations to stop animations but still continue with the expected position changes\n const newMotionVariants: BaseMotionBoxProps['motionVariants'] = {\n initial: {\n ...motionVariants.initial,\n },\n animate: {\n ...motionVariants.animate,\n transition: {\n ...motionVariants.animate?.transition,\n duration: shouldSkipEntryAnimation ? 0.0001 : motionVariants.animate?.transition?.duration,\n },\n },\n exit: {\n ...motionVariants.exit,\n transition: {\n ...motionVariants.exit.transition,\n duration: shouldSkipExitAnimation ? 0.0001 : motionVariants.exit.transition?.duration,\n },\n },\n };\n\n return newMotionVariants;\n};\n\nexport { makeAnimationVariables, useMotionVariants };\n"],"names":["motionTriggersArrayToGesturePropsMap","mount","hover","tap","focus","makeAnimationVariables","motionTriggers","_ref","animateVisibility","interactionVariables","reduce","prevProps","currentTrigger","animate","_objectSpread","initial","exit","useMotionVariants","motionVariants","type","_motionVariants$anima","_motionVariants$anima2","_motionVariants$anima3","_motionVariants$exit$","undefined","shouldSkipEntryAnimation","shouldSkipExitAnimation","newMotionVariants","transition","duration"],"mappings":";;;;AAEA;;AAGA,IAAMA,oCAGL,GAAG;AACFC,EAAAA,KAAK,EAAE,SAAS;AAChBC,EAAAA,KAAK,EAAE,YAAY;AACnB,EAAA,SAAS,EAAE,aAAa;AACxBC,EAAAA,GAAG,EAAE,UAAU;AACfC,EAAAA,KAAK,EAAE,YAAA;AACT,CAAC,CAAA;AAQKC,IAAAA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAC1BC,cAAoC,EAAAC,IAAA,EAKjC;AAAA,EAAA,IAJDC,iBAAiB,GAAAD,IAAA,CAAjBC,iBAAiB,CAAA;EAKnB,IAAMC,oBAAoB,GAAGH,cAAc,CAACI,MAAM,CAChD,UAACC,SAAS,EAAEC,cAAc,EAAK;IAC7B,IAAIA,cAAc,KAAK,yBAAyB,EAAE;AAChD,MAAA,OAAOD,SAAS,CAAA;AAClB,KAAA;;AAEA;AACA,IAAA,IAAIC,cAAc,KAAK,OAAO,IAAIJ,iBAAiB,EAAE;MACnDG,SAAS,CAACE,OAAO,GAAGL,iBAAiB,CAAA;AACrC,MAAA,OAAOG,SAAS,CAAA;AAClB,KAAA;AAEAA,IAAAA,SAAS,CAACX,oCAAoC,CAACY,cAAc,CAAC,CAAC,GAAG,SAAS,CAAA;AAC3E,IAAA,OAAOD,SAAS,CAAA;GACjB,EACD,EACF,CAAC,CAAA;AAED,EAAA,OAAAG,aAAA,CAAA;AAASC,IAAAA,OAAO,EAAE,SAAS;AAAEC,IAAAA,IAAI,EAAE,MAAA;AAAM,GAAA,EAAKP,oBAAoB,CAAA,CAAA;AACpE,EAAC;AAEKQ,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,CACrBC,cAAoD,EACpDC,IAAgC,EACS;AAAA,EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA,EAAAC,qBAAA,CAAA;EACzC,IAAI,CAACL,c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AAA,GAAGL,cAAc,CAACF,IAAI,CAACY,UAAU,MAAA,IAAA,IAAAL,qBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAA9BA,qBAAA,CAAgCM,QAAAA;AAAQ,OAAA,CAAA;AACtF,KAAA,CAAA;GAEJ,CAAA;AAED,EAAA,OAAOF,iBAAiB,CAAA;AAC1B;;;;"}
@@ -0,0 +1,3 @@
1
+ export { BaseMotionBox, BaseMotionEnhancerBox, BaseMotionEntryExit, MotionDiv } from './BaseMotion.js';
2
+ import './types.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -29,7 +29,7 @@ var _excluded = ["children", "zIndex", "testID"],
29
29
  _excluded2 = ["title", "href", "rel", "target", "as", "isActive", "onClick", "icon", "testID"];
30
30
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31
31
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32
- var BottomNav = function BottomNav(_ref) {
32
+ var _BottomNav = function _BottomNav(_ref, ref) {
33
33
  var children = _ref.children,
34
34
  _ref$zIndex = _ref.zIndex,
35
35
  zIndex = _ref$zIndex === void 0 ? componentZIndices.bottomNav : _ref$zIndex,
@@ -45,6 +45,7 @@ var BottomNav = function BottomNav(_ref) {
45
45
  }
46
46
  }
47
47
  return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
48
+ ref: ref,
48
49
  role: "navigation",
49
50
  position: "fixed",
50
51
  bottom: "spacing.0",
@@ -77,7 +78,7 @@ var StyledBottomNavItem = /*#__PURE__*/styled(BaseBox).withConfig({
77
78
  border: 'none',
78
79
  paddingLeft: makeSpace(props.theme.spacing[0]),
79
80
  paddingRight: makeSpace(props.theme.spacing[0]),
80
- transition: "color ".concat(makeMotionTime(props.theme.motion.duration['2xquick']), " ").concat(props.theme.motion.easing.standard.effective),
81
+ transition: "color ".concat(makeMotionTime(props.theme.motion.duration['2xquick']), " ").concat(props.theme.motion.easing.standard),
81
82
  '&[aria-current="page"]': {
82
83
  color: props.theme.colors.interactive.text.primary.subtle
83
84
  },
@@ -135,6 +136,7 @@ var BottomNavItem = function BottomNavItem(_ref2) {
135
136
  })]
136
137
  }));
137
138
  };
139
+ var BottomNav = /*#__PURE__*/React__default.forwardRef(_BottomNav);
138
140
 
139
141
  export { BottomNav, BottomNavItem };
140
142
  //# sourceMappingURL=BottomNav.web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BottomNav.web.js","sources":["../../../../../../src/components/BottomNav/BottomNav.web.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport type { BottomNavItemProps, BottomNavProps } from './types';\nimport BaseBox from '~components/Box/BaseBox';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport { Text } from '~components/Typography';\nimport { makeMotionTime, makeSpace } from '~utils';\nimport { componentZIndices } from '~utils/componentZIndices';\nimport { getFocusRingStyles } from '~utils/getFocusRingStyles';\nimport { throwBladeError } from '~utils/logger';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\n/**\n * ### BottomNav component\n *\n * Bottom navigation component is a persistent user interface element at the bottom of a mobile app screen, providing quick access to core functionalities through icons and labels.\n *\n * ---\n *\n * #### Usage\n *\n * ```jsx\n * import { NavLink } from 'react-router-dom';\n *\n * <BottomNav>\n * <BottomNavItem\n * as={NavLink}\n * isActive={true}\n * title=\"Payments\"\n * icon={WalletIcon}\n * href=\"/payments\"\n * />\n * <BottomNavItem\n * as={NavLink}\n * title=\"Transactions\"\n * icon={TransactionsIcon}\n * href=\"/transactions\"\n * />\n * <BottomNavItem\n * title=\"More\"\n * icon={MoreIcon}\n * onClick={() => {\n * // This can be used to open SideNav drawer\n * setIsSideNavOpen(true)\n * }}\n * />\n * </BottomNav>\n * ```\n *\n * Checkout {@link https://blade.razorpay.com/??path=/docs/components-bottomnav--doc BottomNav Documentation}\n\n */\nconst BottomNav = ({\n children,\n zIndex = componentZIndices.bottomNav,\n testID,\n ...rest\n}: BottomNavProps): React.ReactElement => {\n if (__DEV__) {\n const childrenCount = React.Children.count(children);\n if (childrenCount > 5 && childrenCount < 2) {\n throwBladeError({\n moduleName: 'BottomNav',\n message: 'children cannot be less than 2 and more than 5',\n });\n }\n }\n\n return (\n <BaseBox\n role=\"navigation\"\n position=\"fixed\"\n bottom=\"spacing.0\"\n left=\"spacing.0\"\n elevation=\"midRaised\"\n width=\"100%\"\n backgroundColor=\"surface.background.gray.intense\"\n borderTopWidth=\"thin\"\n borderTopColor=\"surface.border.gray.muted\"\n paddingX=\"spacing.2\"\n display=\"flex\"\n flexDirection=\"row\"\n {...getStyledProps(rest)}\n zIndex={zIndex}\n {...metaAttribute({\n testID,\n name: MetaConstants.BottomNav,\n })}\n {...makeAnalyticsAttribute(rest)}\n >\n {children}\n </BaseBox>\n );\n};\n\nconst StyledBottomNavItem = styled(BaseBox)<{ to?: string }>((props) => {\n return {\n textDecoration: 'none',\n color: props.theme.colors.interactive.text.gray.subtle,\n backgroundColor: 'transparent',\n border: 'none',\n paddingLeft: makeSpace(props.theme.spacing[0]),\n paddingRight: makeSpace(props.theme.spacing[0]),\n transition: `color ${makeMotionTime(props.theme.motion.duration['2xquick'])} ${\n props.theme.motion.easing.standard.effective\n }`,\n '&[aria-current=\"page\"]': {\n color: props.theme.colors.interactive.text.primary.subtle,\n },\n '&:focus-visible': {\n ...getFocusRingStyles({ theme: props.theme }),\n },\n };\n});\n\nconst BottomNavItem = ({\n title,\n href,\n rel,\n target,\n as,\n isActive,\n onClick,\n icon: Icon,\n testID,\n ...rest\n}: BottomNavItemProps): React.ReactElement => {\n const isRouterLink = as && href;\n const defaultRenderElement = href ? 'a' : 'button';\n const defaultRel = target === '_blank' ? 'noreferrer noopener' : undefined;\n\n return (\n <StyledBottomNavItem\n as={isRouterLink ? as : defaultRenderElement}\n href={as ? undefined : href}\n to={href} // for react router\n rel={rel ?? defaultRel}\n target={target}\n paddingTop=\"spacing.5\"\n paddingBottom=\"spacing.4\"\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n flexDirection=\"column\"\n flex=\"1\"\n cursor=\"pointer\"\n onClick={onClick}\n gap=\"spacing.1\"\n {...makeAccessible({\n current: isActive ? 'page' : undefined,\n })}\n {...metaAttribute({\n name: MetaConstants.BottomNavItem,\n testID,\n })}\n {...makeAnalyticsAttribute(rest)}\n >\n <Icon color=\"currentColor\" size=\"large\" />\n <Text truncateAfterLines={1} color=\"currentColor\" size=\"xsmall\" weight=\"semibold\">\n {title}\n </Text>\n </StyledBottomNavItem>\n );\n};\n\nexport { BottomNav, BottomNavItem };\n"],"names":["BottomNav","_ref","children","_ref$zIndex","zIndex","componentZIndices","bottomNav","testID","rest","_objectWithoutProperties","_excluded","childrenCount","React","Children","count","throwBladeError","moduleName","message","_jsx","BaseBox","_objectSpread","role","position","bottom","left","elevation","width","backgroundColor","borderTopWidth","borderTopColor","paddingX","display","flexDirection","getStyledProps","metaAttribute","name","MetaConstants","makeAnalyticsAttribute","StyledBottomNavItem","styled","withConfig","displayName","componentId","props","textDecoration","color","theme","colors","interactive","text","gray","subtle","border","paddingLeft","makeSpace","spacing","paddingRight","transition","concat","makeMotionTime","motion","duration","easing","standard","effective","primary","getFocusRingStyles","BottomNavItem","_ref2","title","href","rel","target","as","isActive","onClick","Icon","icon","_excluded2","isRouterLink","defaultRenderElement","defaultRel","undefined","_jsxs","to","paddingTop","paddingBottom","alignItems","justifyContent","flex","cursor","gap","makeAccessible","current","size","Text","truncateAfterLines","weight"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAK2B;AAAA,EAAA,IAJxCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,WAAA,GAAAF,IAAA,CACRG,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAA,KAAA,CAAA,GAAGE,iBAAiB,CAACC,SAAS,GAAAH,WAAA;IACpCI,MAAM,GAAAN,IAAA,CAANM,MAAM;AACHC,IAAAA,IAAI,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA,CAAA,CAAA;AAEP,EAAA,IAAI,KAAO,EAAE;IACX,IAAMC,aAAa,GAAGC,cAAK,CAACC,QAAQ,CAACC,KAAK,CAACZ,QAAQ,CAAC,CAAA;AACpD,IAAA,IAAIS,aAAa,GAAG,CAAC,IAAIA,aAAa,GAAG,CAAC,EAAE;AAC1CI,MAAAA,eAAe,CAAC;AACdC,QAAAA,UAAU,EAAE,WAAW;AACvBC,QAAAA,OAAO,EAAE,gDAAA;AACX,OAAC,CAAC,CAAA;AACJ,KAAA;AACF,GAAA;EAEA,oBACEC,GAAA,CAACC,OAAO,EAAAC,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAA;AACNC,IAAAA,IAAI,EAAC,YAAY;AACjBC,IAAAA,QAAQ,EAAC,OAAO;AAChBC,IAAAA,MAAM,EAAC,WAAW;AAClBC,IAAAA,IAAI,EAAC,WAAW;AAChBC,IAAAA,SAAS,EAA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EAAC,cAAc;AAACiD,MAAAA,IAAI,EAAC,QAAQ;AAACG,MAAAA,MAAM,EAAC,UAAU;AAAA/F,MAAAA,QAAA,EAC9EmE,KAAAA;AAAK,KACF,CAAC,CAAA;AAAA,GAAA,CACY,CAAC,CAAA;AAE1B;;;;"}
1
+ {"version":3,"file":"BottomNav.web.js","sources":["../../../../../../src/components/BottomNav/BottomNav.web.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport type { BottomNavItemProps, BottomNavProps } from './types';\nimport BaseBox from '~components/Box/BaseBox';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport { Text } from '~components/Typography';\nimport { makeMotionTime, makeSpace } from '~utils';\nimport { componentZIndices } from '~utils/componentZIndices';\nimport { getFocusRingStyles } from '~utils/getFocusRingStyles';\nimport { throwBladeError } from '~utils/logger';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { BladeElementRef } from '~utils/types';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\n/**\n * ### BottomNav component\n *\n * Bottom navigation component is a persistent user interface element at the bottom of a mobile app screen, providing quick access to core functionalities through icons and labels.\n *\n * ---\n *\n * #### Usage\n *\n * ```jsx\n * import { NavLink } from 'react-router-dom';\n *\n * <BottomNav>\n * <BottomNavItem\n * as={NavLink}\n * isActive={true}\n * title=\"Payments\"\n * icon={WalletIcon}\n * href=\"/payments\"\n * />\n * <BottomNavItem\n * as={NavLink}\n * title=\"Transactions\"\n * icon={TransactionsIcon}\n * href=\"/transactions\"\n * />\n * <BottomNavItem\n * title=\"More\"\n * icon={MoreIcon}\n * onClick={() => {\n * // This can be used to open SideNav drawer\n * setIsSideNavOpen(true)\n * }}\n * />\n * </BottomNav>\n * ```\n *\n * Checkout {@link https://blade.razorpay.com/??path=/docs/components-bottomnav--doc BottomNav Documentation}\n\n */\nconst _BottomNav = (\n { children, zIndex = componentZIndices.bottomNav, testID, ...rest }: BottomNavProps,\n ref: React.Ref<BladeElementRef>,\n): React.ReactElement => {\n if (__DEV__) {\n const childrenCount = React.Children.count(children);\n if (childrenCount > 5 && childrenCount < 2) {\n throwBladeError({\n moduleName: 'BottomNav',\n message: 'children cannot be less than 2 and more than 5',\n });\n }\n }\n\n return (\n <BaseBox\n ref={ref as never}\n role=\"navigation\"\n position=\"fixed\"\n bottom=\"spacing.0\"\n left=\"spacing.0\"\n elevation=\"midRaised\"\n width=\"100%\"\n backgroundColor=\"surface.background.gray.intense\"\n borderTopWidth=\"thin\"\n borderTopColor=\"surface.border.gray.muted\"\n paddingX=\"spacing.2\"\n display=\"flex\"\n flexDirection=\"row\"\n {...getStyledProps(rest)}\n zIndex={zIndex}\n {...metaAttribute({\n testID,\n name: MetaConstants.BottomNav,\n })}\n {...makeAnalyticsAttribute(rest)}\n >\n {children}\n </BaseBox>\n );\n};\n\nconst StyledBottomNavItem = styled(BaseBox)<{ to?: string }>((props) => {\n return {\n textDecoration: 'none',\n color: props.theme.colors.interactive.text.gray.subtle,\n backgroundColor: 'transparent',\n border: 'none',\n paddingLeft: makeSpace(props.theme.spacing[0]),\n paddingRight: makeSpace(props.theme.spacing[0]),\n transition: `color ${makeMotionTime(props.theme.motion.duration['2xquick'])} ${\n props.theme.motion.easing.standard\n }`,\n '&[aria-current=\"page\"]': {\n color: props.theme.colors.interactive.text.primary.subtle,\n },\n '&:focus-visible': {\n ...getFocusRingStyles({ theme: props.theme }),\n },\n };\n});\n\nconst BottomNavItem = ({\n title,\n href,\n rel,\n target,\n as,\n isActive,\n onClick,\n icon: Icon,\n testID,\n ...rest\n}: BottomNavItemProps): React.ReactElement => {\n const isRouterLink = as && href;\n const defaultRenderElement = href ? 'a' : 'button';\n const defaultRel = target === '_blank' ? 'noreferrer noopener' : undefined;\n\n return (\n <StyledBottomNavItem\n as={isRouterLink ? as : defaultRenderElement}\n href={as ? undefined : href}\n to={href} // for react router\n rel={rel ?? defaultRel}\n target={target}\n paddingTop=\"spacing.5\"\n paddingBottom=\"spacing.4\"\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n flexDirection=\"column\"\n flex=\"1\"\n cursor=\"pointer\"\n onClick={onClick}\n gap=\"spacing.1\"\n {...makeAccessible({\n current: isActive ? 'page' : undefined,\n })}\n {...metaAttribute({\n name: MetaConstants.BottomNavItem,\n testID,\n })}\n {...makeAnalyticsAttribute(rest)}\n >\n <Icon color=\"currentColor\" size=\"large\" />\n <Text truncateAfterLines={1} color=\"currentColor\" size=\"xsmall\" weight=\"semibold\">\n {title}\n </Text>\n </StyledBottomNavItem>\n );\n};\n\nconst BottomNav = React.forwardRef(_BottomNav);\n\nexport { BottomNav, BottomNavItem };\n"],"names":["_BottomNav","_ref","ref","children","_ref$zIndex","zIndex","componentZIndices","bottomNav","testID","rest","_objectWithoutProperties","_excluded","childrenCount","React","Children","count","throwBladeError","moduleName","message","_jsx","BaseBox","_objectSpread","role","position","bottom","left","elevation","width","backgroundColor","borderTopWidth","borderTopColor","paddingX","display","flexDirection","getStyledProps","metaAttribute","name","MetaConstants","BottomNav","makeAnalyticsAttribute","StyledBottomNavItem","styled","withConfig","displayName","componentId","props","textDecoration","color","theme","colors","interactive","text","gray","subtle","border","paddingLeft","makeSpace","spacing","paddingRight","transition","concat","makeMotionTime","motion","duration","easing","standard","primary","getFocusRingStyles","BottomNavItem","_ref2","title","href","rel","target","as","isActive","onClick","Icon","icon","_excluded2","isRouterLink","defaultRenderElement","defaultRel","undefined","_jsxs","to","paddingTop","paddingBottom","alignItems","justifyContent","flex","cursor","gap","makeAccessible","current","size","Text","truncateAfterLines","weight","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAEdC,GAA+B,EACR;AAAA,EAAA,IAFrBC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,WAAA,GAAAH,IAAA,CAAEI,MAAM;AAANA,IAAAA,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D,IAAAA,OAAO,EAAC,MAAM;AACdwD,IAAAA,UAAU,EAAC,QAAQ;AACnBC,IAAAA,cAAc,EAAC,QAAQ;AACvBxD,IAAAA,aAAa,EAAC,QAAQ;AACtByD,IAAAA,IAAI,EAAC,GAAG;AACRC,IAAAA,MAAM,EAAC,SAAS;AAChBf,IAAAA,OAAO,EAAEA,OAAQ;AACjBgB,IAAAA,GAAG,EAAC,WAAA;AAAW,GAAA,EACXC,cAAc,CAAC;AACjBC,IAAAA,OAAO,EAAEnB,QAAQ,GAAG,MAAM,GAAGQ,SAAAA;GAC9B,CAAC,CACEhD,EAAAA,aAAa,CAAC;IAChBC,IAAI,EAAEC,aAAa,CAAC+B,aAAa;AACjC5D,IAAAA,MAAM,EAANA,MAAAA;AACF,GAAC,CAAC,CAAA,EACE+B,sBAAsB,CAAC9B,IAAI,CAAC,CAAA,EAAA,EAAA,EAAA;IAAAN,QAAA,EAAA,cAEhCgB,GAAA,CAAC0D,IAAI,EAAA;AAAC9B,MAAAA,KAAK,EAAC,cAAc;AAACgD,MAAAA,IAAI,EAAC,OAAA;AAAO,KAAE,CAAC,eAC1C5E,GAAA,CAAC6E,IAAI,EAAA;AAACC,MAAAA,kBAAkB,EAAE,CAAE;AAAClD,MAAAA,KAAK,EAAC,cAAc;AAACgD,MAAAA,IAAI,EAAC,QAAQ;AAACG,MAAAA,MAAM,EAAC,UAAU;AAAA/F,MAAAA,QAAA,EAC9EmE,KAAAA;AAAK,KACF,CAAC,CAAA;AAAA,GAAA,CACY,CAAC,CAAA;AAE1B,EAAC;AAED,IAAMhC,SAAS,gBAAGzB,cAAK,CAACsF,UAAU,CAACnG,UAAU;;;;"}
@@ -393,7 +393,7 @@ var _BottomSheet = function _BottomSheet(_ref2) {
393
393
  }, [isReady]);
394
394
 
395
395
  // usePresence hook waits for the animation to finish before unmounting the component
396
- // It's similar to framer-motions usePresence hook
396
+ // It's similar to motion/react's usePresence hook
397
397
  // https://www.framer.com/docs/animate-presence/#usepresence
398
398
  var _usePresence = usePresence(Boolean(_isOpen), {
399
399
  transitionDuration: theme.motion.duration.moderate
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheet.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable react/jsx-no-useless-fragment */\n/* eslint-disable consistent-return */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport React from 'react';\nimport styled from 'styled-components';\nimport { rubberbandIfOutOfBounds, useDrag } from '@use-gesture/react';\nimport usePresence from 'use-presence';\nimport { clearAllBodyScrollLocks } from 'body-scroll-lock-upgrade';\nimport { BottomSheetHeader } from './BottomSheetHeader';\nimport { BottomSheetFooter } from './BottomSheetFooter';\nimport { BottomSheetBody } from './BottomSheetBody';\nimport type { SnapPoints } from './utils';\nimport { computeMaxContent, computeSnapPointBounds } from './utils';\nimport { BottomSheetBackdrop } from './BottomSheetBackdrop';\nimport type { BottomSheetContextProps } from './BottomSheetContext';\nimport { BottomSheetContext, useBottomSheetAndDropdownGlue } from './BottomSheetContext';\nimport { ComponentIds } from './componentIds';\nimport type { BottomSheetProps } from './types';\nimport { BottomSheetGrabHandle } from './BottomSheetGrabHandle';\nimport { useBottomSheetStack } from './BottomSheetStack';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { useScrollLock } from '~utils/useScrollLock';\nimport { useWindowSize } from '~utils/useWindowSize';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { useTheme } from '~components/BladeProvider';\nimport { useId } from '~utils/useId';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeSize } from '~utils/makeSize';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { size } from '~tokens/global';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport { componentZIndices } from '~utils/componentZIndices';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nexport const BOTTOM_SHEET_EASING = 'cubic-bezier(.15,0,.24,.97)';\nconst AUTOCOMPLETE_DEFAULT_SNAPPOINT = 0.85;\n\nconst BottomSheetSurface = styled.div<{\n windowHeight: number;\n isDragging: boolean;\n}>(({ theme, windowHeight, isDragging }) => {\n return {\n background: theme.colors.popup.background.subtle,\n borderTopLeftRadius: makeSize(size[16]),\n borderTopRightRadius: makeSize(size[16]),\n borderColor: theme.colors.popup.border.subtle,\n // this is reverse top elevation of highRaised elevation token\n boxShadow: '0px -24px 48px -12px hsla(217, 56%, 17%, 0.18)',\n opacity: 0,\n pointerEvents: 'none',\n transitionDuration: isDragging\n ? undefined\n : `${makeMotionTime(theme.motion.duration.moderate)}`,\n transitionTimingFunction: BOTTOM_SHEET_EASING,\n willChange: 'transform, opacity, height',\n transitionProperty: 'transform, opacity, height',\n position: 'fixed',\n left: 0,\n right: 0,\n bottom: 0,\n top: windowHeight,\n backgroundColor: theme.colors.popup.background.subtle,\n justifyContent: 'center',\n alignItems: 'center',\n touchAction: 'none',\n overflow: 'hidden',\n };\n});\n\nconst _BottomSheet = ({\n isOpen,\n onDismiss,\n children,\n initialFocusRef,\n snapPoints = [0.35, 0.5, 0.85],\n zIndex = componentZIndices.bottomSheet,\n ...dataAnalyticsProps\n}: BottomSheetProps): React.ReactElement => {\n const { theme } = useTheme();\n const dimensions = useWindowSize();\n const [contentHeight, setContentHeight] = React.useState(0);\n const [headerHeight, setHeaderHeight] = React.useState(0);\n const [footerHeight, setFooterHeight] = React.useState(0);\n const [grabHandleHeight, setGrabHandleHeight] = React.useState(0);\n const [hasBodyPadding, setHasBodyPadding] = React.useState(true);\n const [isHeaderEmpty, setIsHeaderEmpty] = React.useState(false);\n\n const bottomSheetAndDropdownGlue = useBottomSheetAndDropdownGlue();\n const [positionY, _setPositionY] = React.useState(0);\n const _isOpen = isOpen ?? bottomSheetAndDropdownGlue?.isOpen;\n const [isDragging, setIsDragging] = React.useState(false);\n\n const preventScrollingRef = React.useRef(true);\n const scrollRef = React.useRef<HTMLDivElement>(null);\n const grabHandleRef = React.useRef<HTMLDivElement>(null);\n const defaultInitialFocusRef = React.useRef<any>(null);\n const originalFocusElement = React.useRef<HTMLElement | null>(null);\n const initialSnapPoint = React.useRef<number>(snapPoints[1]);\n const totalHeight = React.useMemo(() => {\n return grabHandleHeight + headerHeight + footerHeight + contentHeight;\n }, [contentHeight, footerHeight, grabHandleHeight, headerHeight]);\n\n const id = useId();\n const {\n stack,\n addBottomSheetToStack,\n removeBottomSheetFromStack,\n getTopOfTheStack,\n getCurrentStackIndexById,\n } = useBottomSheetStack();\n const currentStackIndex = getCurrentStackIndexById(id);\n const isOnTopOfStack = getTopOfTheStack() === id;\n const bottomSheetZIndex = zIndex - currentStackIndex;\n\n const setPositionY = React.useCallback(\n (value: number, limit = true) => {\n // In AutoComplete, we want BottomSheet to be docked to top snappoint so we remove the limits\n const shouldLimitPositionY =\n limit && !bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader;\n\n const maxValue = computeMaxContent({\n contentHeight,\n footerHeight,\n headerHeight: headerHeight + grabHandleHeight,\n maxHeight: value,\n });\n _setPositionY(shouldLimitPositionY ? maxValue : value);\n },\n [\n bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader,\n contentHeight,\n footerHeight,\n grabHandleHeight,\n headerHeight,\n ],\n );\n\n // locks the body scroll to prevent accidental scrolling of content when we drag the sheet\n // We are ready when we calculated the height of the content\n const isReady = contentHeight > 0;\n // only lock the body when we atleast have 1 bottomsheet open\n const shouldLock = isReady && stack.length > 0;\n const scrollLockRef = useScrollLock({\n enabled: shouldLock,\n targetRef: scrollRef,\n reserveScrollBarGap: true,\n });\n\n // clear all body locks to avoid memory leaks & accidental body locking\n React.useEffect(() => {\n const hasNoBottomSheets = stack.length < 1;\n if (hasNoBottomSheets) {\n clearAllBodyScrollLocks();\n }\n }, [stack]);\n\n // take the grabHandle's height into headerHeight too\n useIsomorphicLayoutEffect(() => {\n if (!grabHandleRef.current) return;\n setGrabHandleHeight(grabHandleRef.current.getBoundingClientRect().height);\n }, [grabHandleRef.current, _isOpen]);\n\n // if bottomSheet height is >35% & <50% then set initial snapPoint to 35%\n useIsomorphicLayoutEffect(() => {\n if (bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader) {\n initialSnapPoint.current = AUTOCOMPLETE_DEFAULT_SNAPPOINT;\n } else {\n const middleSnapPoint = snapPoints[1] * dimensions.height;\n const lowerSnapPoint = snapPoints[0] * dimensions.height;\n if (totalHeight > lowerSnapPoint && totalHeight < middleSnapPoint) {\n initialSnapPoint.current = snapPoints[0];\n }\n }\n }, [dimensions.height, snapPoints, totalHeight]);\n\n const returnFocus = React.useCallback(() => {\n if (!originalFocusElement.current) return;\n originalFocusElement.current.focus();\n // After returning focus we will clear the original focus\n // Because if sheet can be opened up via multiple triggers\n // We want to ensure the focus returns back to the most recent triggerer\n originalFocusElement.current = null;\n }, [originalFocusElement]);\n\n const focusOnInitialRef = React.useCallback(() => {\n if (!initialFocusRef) {\n // focus on close button\n defaultInitialFocusRef.current?.focus();\n } else {\n // focus on the initialRef passed by the user\n initialFocusRef.current?.focus();\n }\n }, [initialFocusRef]);\n\n // focus on the initial ref when the sheet is opened\n React.useLayoutEffect(() => {\n if (_isOpen) {\n focusOnInitialRef();\n }\n }, [_isOpen, focusOnInitialRef]);\n\n const handleOnOpen = React.useCallback(() => {\n setPositionY(dimensions.height * initialSnapPoint.current);\n scrollLockRef.current.activate();\n // initialize the original focused element\n // On first render it will be the activeElement, eg: the button trigger or select input\n // On Subsequent open operations it won't further update the original focus\n originalFocusElement.current =\n originalFocusElement.current ?? (document.activeElement as HTMLElement);\n }, [dimensions.height, scrollLockRef, setPositionY]);\n\n const handleOnClose = React.useCallback(() => {\n setPositionY(0);\n }, [setPositionY]);\n\n const close = React.useCallback(() => {\n onDismiss?.();\n bottomSheetAndDropdownGlue?.onBottomSheetDismiss();\n returnFocus();\n }, [bottomSheetAndDropdownGlue, onDismiss, returnFocus]);\n\n // sync controlled state to our actions\n React.useEffect(() => {\n if (_isOpen) {\n // open on the next frame, otherwise the animations will not run on first render\n window.setTimeout(() => {\n handleOnOpen();\n });\n } else {\n handleOnClose();\n }\n }, [_isOpen, handleOnClose, handleOnOpen]);\n\n // let the Dropdown component know that it's rendering a bottomsheet\n React.useEffect(() => {\n if (!bottomSheetAndDropdownGlue) return;\n bottomSheetAndDropdownGlue.setDropdownHasBottomSheet(true);\n }, [bottomSheetAndDropdownGlue]);\n\n const bind = useDrag(\n ({\n active,\n last,\n cancel,\n tap,\n movement: [_movementX, movementY],\n velocity: [_velocityX, velocityY],\n lastOffset: [_, lastOffsetY],\n down,\n dragging,\n args: [{ isContentDragging = false } = {}] = [],\n }) => {\n setIsDragging(Boolean(dragging));\n // lastOffsetY is the previous position user stopped dragging the sheet\n // movementY is the drag amount from the bottom of the screen, so as you drag up the movementY goes into negatives\n // and rawY is the calculated offset from the last position of the bottomsheet to current drag amount.\n const rawY = lastOffsetY - movementY;\n\n const lowerSnapPoint = dimensions.height * snapPoints[0];\n const upperSnapPoint = dimensions.height * snapPoints[snapPoints.length - 1];\n\n // predictedY is used to create velocity driven swipe\n // the faster you swipe the more distance you cover\n // this enables users to reach upper & lower snappoint with a single swipe\n const predictedDistance = movementY * (velocityY / 2);\n const predictedY = Math.max(\n lowerSnapPoint,\n Math.min(upperSnapPoint, rawY - predictedDistance * 2),\n );\n\n let newY = rawY;\n\n if (down) {\n // Ensure that users aren't able to drag the sheet\n // more than the upperSnapPoint or maximum height of the sheet\n // this is basically a clamp() function but creates a nice rubberband effect\n const dampening = 0.55;\n if (totalHeight < upperSnapPoint) {\n newY = rubberbandIfOutOfBounds(rawY, 0, totalHeight, dampening);\n } else {\n newY = rubberbandIfOutOfBounds(rawY, 0, upperSnapPoint, dampening);\n }\n } else {\n newY = predictedY;\n }\n\n const isPosAtUpperSnapPoint = newY >= upperSnapPoint;\n\n if (isContentDragging) {\n if (isPosAtUpperSnapPoint) {\n newY = upperSnapPoint;\n }\n\n // keep the newY at upper snap point\n // until the scrollable content is not at top\n // and previously saved Y position is greater than or equal to upper snap point\n // Note: how using newY won't work here since we need the previous value of the newY\n // since we always keep updating the newY,\n // this is cruicial in making the scroll feel natural\n const isContentScrolledAtTop = scrollRef.current && scrollRef.current.scrollTop <= 0;\n if (lastOffsetY === upperSnapPoint && !isContentScrolledAtTop) {\n newY = upperSnapPoint;\n }\n preventScrollingRef.current = newY < upperSnapPoint;\n }\n\n if (last) {\n // calculate the nearest snapPoint\n const [nearest, lower] = computeSnapPointBounds(\n newY,\n snapPoints.map((point) => dimensions.height * point) as SnapPoints,\n );\n\n // This ensure that the lower snapPoint will always have atleast some buffer\n // When the bottomsheet total height is less than the lower snapPoint\n // Video walkthrough: https://www.loom.com/share/a9a8db7688d64194b13df8b3e25859ae\n const lowerPointBuffer = 60;\n const lowerestSnap = Math.min(lower, totalHeight) - lowerPointBuffer;\n\n const shouldClose = rawY < lowerestSnap;\n if (shouldClose) {\n setIsDragging(false);\n cancel();\n close();\n return;\n }\n\n // if we stop dragging assign snap to the nearest point\n if (!active && !tap) {\n newY = nearest;\n }\n }\n\n setPositionY(newY, !down);\n },\n {\n from: [0, positionY],\n filterTaps: true,\n enabled: isOnTopOfStack && _isOpen,\n },\n );\n\n // Here we are preventing the scrolling of the content, until the preventScrollingRef value is true\n useIsomorphicLayoutEffect(() => {\n const scrollElement = scrollRef.current;\n if (!scrollElement) return;\n\n const preventScrolling = (e: Event) => {\n if (preventScrollingRef?.current) {\n e.preventDefault();\n }\n };\n\n // https://www.bram.us/2016/05/02/prevent-overscroll-bounce-in-ios-mobilesafari-pure-css/\n const preventSafariOverscroll = (e: Event) => {\n if (scrollElement.scrollTop < 0) {\n // TODO: figure this out, it doesn't seem to work >iOS12\n // requestAnimationFrame(() => {\n // elem.style.overflow = 'hidden';\n // elem.scrollTop = 0;\n // elem.style.removeProperty('overflow');\n // });\n e.preventDefault();\n }\n };\n\n scrollElement.addEventListener('scroll', preventScrolling);\n scrollElement.addEventListener('touchmove', preventScrolling);\n scrollElement.addEventListener('touchstart', preventSafariOverscroll);\n return () => {\n scrollElement.removeEventListener('scroll', preventScrolling);\n scrollElement.removeEventListener('touchmove', preventScrolling);\n scrollElement.removeEventListener('touchstart', preventSafariOverscroll);\n };\n // Only run this hook when we know all the layout calculations are done,\n // Otherwise the scrollRef.current will be null.\n // isReady prop will ensure that we are done measuring the content height\n }, [isReady]);\n\n // usePresence hook waits for the animation to finish before unmounting the component\n // It's similar to framer-motions usePresence hook\n // https://www.framer.com/docs/animate-presence/#usepresence\n const { isMounted, isVisible } = usePresence(Boolean(_isOpen), {\n transitionDuration: theme.motion.duration.moderate,\n });\n\n const isHeaderFloating = !hasBodyPadding && isHeaderEmpty;\n const contextValue: BottomSheetContextProps = React.useMemo(\n () => ({\n isInBottomSheet: true,\n isOpen: Boolean(isVisible),\n close,\n positionY,\n headerHeight,\n contentHeight,\n footerHeight,\n setContentHeight,\n setFooterHeight,\n setHeaderHeight,\n setHasBodyPadding,\n setIsHeaderEmpty,\n scrollRef,\n bind,\n defaultInitialFocusRef,\n isHeaderFloating,\n }),\n [\n isVisible,\n close,\n positionY,\n headerHeight,\n contentHeight,\n footerHeight,\n setContentHeight,\n setFooterHeight,\n setHeaderHeight,\n setHasBodyPadding,\n setIsHeaderEmpty,\n scrollRef,\n bind,\n defaultInitialFocusRef,\n isHeaderFloating,\n ],\n );\n\n React.useEffect(() => {\n if (isMounted) {\n addBottomSheetToStack(id);\n } else {\n removeBottomSheetFromStack(id);\n }\n }, [addBottomSheetToStack, id, isMounted, removeBottomSheetFromStack]);\n\n // We will need to reset these values otherwise the next time the bottomsheet opens\n // this will be populated and the animations won't run\n // why?: because how the usePresence hook works, we actually just unmount the\n // html contents not the whole <BottomSheet /> react component\n React.useEffect(() => {\n if (!isMounted) {\n setHeaderHeight(0);\n setFooterHeight(0);\n setContentHeight(0);\n setGrabHandleHeight(0);\n _setPositionY(0);\n }\n }, [isMounted, scrollLockRef]);\n\n // We don't want to destroy the react tree when we are rendering inside Dropdown\n // Because if we bail out early then ActionList won't render,\n // and Dropdown manages it's state based on the rendered JSX of ActionList\n // If we don't render ActionList Dropdown state will reset each time we open/close BottomSheet\n const isInsideDropdown = Boolean(bottomSheetAndDropdownGlue);\n if (!isMounted && !isInsideDropdown) {\n return <></>;\n }\n\n return (\n <BottomSheetContext.Provider value={contextValue}>\n <BottomSheetBackdrop zIndex={bottomSheetZIndex} />\n <BottomSheetSurface\n {...metaAttribute({\n name: MetaConstants.BottomSheet,\n testID: 'bottomsheet-surface',\n })}\n {...makeAccessible({ modal: true, role: 'dialog' })}\n windowHeight={dimensions.height}\n isDragging={isDragging}\n style={{\n opacity: isVisible ? 1 : 0,\n pointerEvents: isVisible ? 'all' : 'none',\n height: positionY,\n bottom: 0,\n top: 'auto',\n zIndex: bottomSheetZIndex,\n }}\n {...makeAnalyticsAttribute(dataAnalyticsProps)}\n >\n <BaseBox height=\"100%\" display=\"flex\" flexDirection=\"column\">\n <BottomSheetGrabHandle\n ref={grabHandleRef}\n isHeaderFloating={isHeaderFloating}\n {...metaAttribute({ name: ComponentIds.BottomSheetGrabHandle })}\n {...bind()}\n />\n {children}\n </BaseBox>\n </BottomSheetSurface>\n </BottomSheetContext.Provider>\n );\n};\n\nconst BottomSheet = assignWithoutSideEffects(_BottomSheet, {\n componentId: ComponentIds.BottomSheet,\n});\n\nexport { BottomSheet, BottomSheetBody, BottomSheetHeader, BottomSheetFooter };\nexport type { BottomSheetProps };\n"],"names":["BOTTOM_SHEET_EASING","AUTOCOMPLETE_DEFAULT_SNAPPOINT","BottomSheetSurface","styled","div","withConfig","displayName","componentId","_ref","theme","windowHeight","isDragging","background","colors","popup","subtle","borderTopLeftRadius","makeSize","size","borderTopRightRadius","borderColor","border","boxShadow","opacity","pointerEvents","transitionDuration","undefined","concat","makeMotionTime","motion","duration","moderate","transitionTimingFunction","willChange","transitionProperty","position","left","right","bottom","top","backgroundColor","justifyContent","alignItems","touchAction","overflow","_BottomSheet","_ref2","isOpen","onDismiss","children","initialFocusRef","_ref2$snapPoints","snapPoints","_ref2$zIndex","zIndex","componentZIndices","bottomSheet","dataAnalyticsProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","dimensions","useWindowSize","_React$useState","React","useState","_React$useState2","_slicedToArray","contentHeight","setContentHeight","_React$useState3","_React$useState4","headerHeight","setHeaderHeight","_React$useState5","_React$useState6","footerHeight","setFooterHeight","_React$useState7","_React$useState8","grabHandleHeight","setGrabHandleHeight","_React$useState9","_React$useState10","hasBodyPadding","setHasBodyPadding","_React$useState11","_React$useState12","isHeaderEmpty","setIsHeaderEmpty","bottomSheetAndDropdownGlue","useBottomSheetAndDropdownGlue","_React$useState13","_React$useState14","positionY","_setPositionY","_isOpen","_React$useState15","_React$useState16","setIsDragging","preventScrollingRef","useRef","scrollRef","grabHandleRef","defaultInitialFocusRef","originalFocusElement","initialSnapPoint","totalHeight","useMemo","id","useId","_useBottomSheetStack","useBottomSheetStack","stack","addBottomSheetToStack","removeBottomSheetFromStack","getTopOfTheStack","getCurrentStackIndexById","currentStackIndex","isOnTopOfStack","bottomSheetZIndex","setPositionY","useCallback","value","limit","arguments","length","shouldLimitPositionY","hasAutoCompleteInBottomSheetHeader","maxValue","computeMaxContent","maxHeight","isReady","shouldLock","scrollLockRef","useScrollLock","enabled","targetRef","reserveScrollBarGap","useEffect","hasNoBottomSheets","clearAllBodyScrollLocks","useIsomorphicLayoutEffect","current","getBoundingClientRect","height","middleSnapPoint","lowerSnapPoint","returnFocus","focus","focusOnInitialRef","_defaultInitialFocusR","_initialFocusRef$curr","useLayoutEffect","handleOnOpen","_originalFocusElement","activate","document","activeElement","handleOnClose","close","onBottomSheetDismiss","window","setTimeout","setDropdownHasBottomSheet","bind","useDrag","_ref3","active","last","cancel","tap","_ref3$movement","movement","_movementX","movementY","_ref3$velocity","velocity","_velocityX","velocityY","_ref3$lastOffset","lastOffset","_","lastOffsetY","down","dragging","_ref3$args","args","_ref3$args2","_ref3$args3","_ref3$args3$","_ref3$args3$2","_ref3$args3$2$isConte","isContentDragging","Boolean","rawY","upperSnapPoint","predictedDistance","predictedY","Math","max","min","newY","dampening","rubberbandIfOutOfBounds","isPosAtUpperSnapPoint","isContentScrolledAtTop","scrollTop","_computeSnapPointBoun","computeSnapPointBounds","map","point","_computeSnapPointBoun2","nearest","lower","lowerPointBuffer","lowerestSnap","shouldClose","from","filterTaps","scrollElement","preventScrolling","e","preventDefault","preventSafariOverscroll","addEventListener","removeEventListener","_usePresence","usePresence","isMounted","isVisible","isHeaderFloating","contextValue","isInBottomSheet","isInsideDropdown","_jsx","_Fragment","_jsxs","BottomSheetContext","Provider","BottomSheetBackdrop","_objectSpread","metaAttribute","name","MetaConstants","BottomSheet","testID","makeAccessible","modal","role","style","makeAnalyticsAttribute","BaseBox","display","flexDirection","BottomSheetGrabHandle","ref","ComponentIds","assignWithoutSideEffects"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCO,IAAMA,mBAAmB,GAAG,8BAA6B;AAChE,IAAMC,8BAA8B,GAAG,IAAI,CAAA;AAE3C,IAAMC,kBAAkB,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,oCAAA;EAAAC,WAAA,EAAA,UAAA;AAAA,CAGlC,CAAA,CAAA,UAAAC,IAAA,EAAyC;AAAA,EAAA,IAAtCC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IAAEC,UAAU,GAAAH,IAAA,CAAVG,UAAU,CAAA;EACnC,OAAO;IACLC,UAAU,EAAEH,KAAK,CAACI,MAAM,CAACC,KAAK,CAACF,UAAU,CAACG,MAAM;AAChDC,IAAAA,mBAAmB,EAAEC,QAAQ,CAACC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvCC,IAAAA,oBAAoB,EAAEF,QAAQ,CAACC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A;MAAAR,QAAA,eAE9C6L,IAAA,CAACe,OAAO,EAAA;AAAC3G,QAAAA,MAAM,EAAC,MAAM;AAAC4G,QAAAA,OAAO,EAAC,MAAM;AAACC,QAAAA,aAAa,EAAC,QAAQ;AAAA9M,QAAAA,QAAA,gBAC1D2L,GAAA,CAACoB,qBAAqB,EAAAd,aAAA,CAAAA,aAAA,CAAA;AACpBe,UAAAA,GAAG,EAAEzJ,aAAc;AACnBgI,UAAAA,gBAAgB,EAAEA,gBAAAA;AAAiB,SAAA,EAC/BW,aAAa,CAAC;UAAEC,IAAI,EAAEc,YAAY,CAACF,qBAAAA;SAAuB,CAAC,GAC3D1F,IAAI,EAAE,CACX,CAAC,EACDrH,QAAQ,CAAA;OACF,CAAA;AAAC,KAAA,CACQ,CAAC,CAAA;AAAA,GACM,CAAC,CAAA;AAElC,CAAC,CAAA;AAED,IAAMqM,WAAW,gBAAGa,wBAAwB,CAACtN,YAAY,EAAE;EACzDtC,WAAW,EAAE2P,YAAY,CAACZ,WAAAA;AAC5B,CAAC;;;;"}
1
+ {"version":3,"file":"BottomSheet.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheet.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable react/jsx-no-useless-fragment */\n/* eslint-disable consistent-return */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport React from 'react';\nimport styled from 'styled-components';\nimport { rubberbandIfOutOfBounds, useDrag } from '@use-gesture/react';\nimport usePresence from 'use-presence';\nimport { clearAllBodyScrollLocks } from 'body-scroll-lock-upgrade';\nimport { BottomSheetHeader } from './BottomSheetHeader';\nimport { BottomSheetFooter } from './BottomSheetFooter';\nimport { BottomSheetBody } from './BottomSheetBody';\nimport type { SnapPoints } from './utils';\nimport { computeMaxContent, computeSnapPointBounds } from './utils';\nimport { BottomSheetBackdrop } from './BottomSheetBackdrop';\nimport type { BottomSheetContextProps } from './BottomSheetContext';\nimport { BottomSheetContext, useBottomSheetAndDropdownGlue } from './BottomSheetContext';\nimport { ComponentIds } from './componentIds';\nimport type { BottomSheetProps } from './types';\nimport { BottomSheetGrabHandle } from './BottomSheetGrabHandle';\nimport { useBottomSheetStack } from './BottomSheetStack';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { useScrollLock } from '~utils/useScrollLock';\nimport { useWindowSize } from '~utils/useWindowSize';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { useTheme } from '~components/BladeProvider';\nimport { useId } from '~utils/useId';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeSize } from '~utils/makeSize';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { size } from '~tokens/global';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport { componentZIndices } from '~utils/componentZIndices';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nexport const BOTTOM_SHEET_EASING = 'cubic-bezier(.15,0,.24,.97)';\nconst AUTOCOMPLETE_DEFAULT_SNAPPOINT = 0.85;\n\nconst BottomSheetSurface = styled.div<{\n windowHeight: number;\n isDragging: boolean;\n}>(({ theme, windowHeight, isDragging }) => {\n return {\n background: theme.colors.popup.background.subtle,\n borderTopLeftRadius: makeSize(size[16]),\n borderTopRightRadius: makeSize(size[16]),\n borderColor: theme.colors.popup.border.subtle,\n // this is reverse top elevation of highRaised elevation token\n boxShadow: '0px -24px 48px -12px hsla(217, 56%, 17%, 0.18)',\n opacity: 0,\n pointerEvents: 'none',\n transitionDuration: isDragging\n ? undefined\n : `${makeMotionTime(theme.motion.duration.moderate)}`,\n transitionTimingFunction: BOTTOM_SHEET_EASING,\n willChange: 'transform, opacity, height',\n transitionProperty: 'transform, opacity, height',\n position: 'fixed',\n left: 0,\n right: 0,\n bottom: 0,\n top: windowHeight,\n backgroundColor: theme.colors.popup.background.subtle,\n justifyContent: 'center',\n alignItems: 'center',\n touchAction: 'none',\n overflow: 'hidden',\n };\n});\n\nconst _BottomSheet = ({\n isOpen,\n onDismiss,\n children,\n initialFocusRef,\n snapPoints = [0.35, 0.5, 0.85],\n zIndex = componentZIndices.bottomSheet,\n ...dataAnalyticsProps\n}: BottomSheetProps): React.ReactElement => {\n const { theme } = useTheme();\n const dimensions = useWindowSize();\n const [contentHeight, setContentHeight] = React.useState(0);\n const [headerHeight, setHeaderHeight] = React.useState(0);\n const [footerHeight, setFooterHeight] = React.useState(0);\n const [grabHandleHeight, setGrabHandleHeight] = React.useState(0);\n const [hasBodyPadding, setHasBodyPadding] = React.useState(true);\n const [isHeaderEmpty, setIsHeaderEmpty] = React.useState(false);\n\n const bottomSheetAndDropdownGlue = useBottomSheetAndDropdownGlue();\n const [positionY, _setPositionY] = React.useState(0);\n const _isOpen = isOpen ?? bottomSheetAndDropdownGlue?.isOpen;\n const [isDragging, setIsDragging] = React.useState(false);\n\n const preventScrollingRef = React.useRef(true);\n const scrollRef = React.useRef<HTMLDivElement>(null);\n const grabHandleRef = React.useRef<HTMLDivElement>(null);\n const defaultInitialFocusRef = React.useRef<any>(null);\n const originalFocusElement = React.useRef<HTMLElement | null>(null);\n const initialSnapPoint = React.useRef<number>(snapPoints[1]);\n const totalHeight = React.useMemo(() => {\n return grabHandleHeight + headerHeight + footerHeight + contentHeight;\n }, [contentHeight, footerHeight, grabHandleHeight, headerHeight]);\n\n const id = useId();\n const {\n stack,\n addBottomSheetToStack,\n removeBottomSheetFromStack,\n getTopOfTheStack,\n getCurrentStackIndexById,\n } = useBottomSheetStack();\n const currentStackIndex = getCurrentStackIndexById(id);\n const isOnTopOfStack = getTopOfTheStack() === id;\n const bottomSheetZIndex = zIndex - currentStackIndex;\n\n const setPositionY = React.useCallback(\n (value: number, limit = true) => {\n // In AutoComplete, we want BottomSheet to be docked to top snappoint so we remove the limits\n const shouldLimitPositionY =\n limit && !bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader;\n\n const maxValue = computeMaxContent({\n contentHeight,\n footerHeight,\n headerHeight: headerHeight + grabHandleHeight,\n maxHeight: value,\n });\n _setPositionY(shouldLimitPositionY ? maxValue : value);\n },\n [\n bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader,\n contentHeight,\n footerHeight,\n grabHandleHeight,\n headerHeight,\n ],\n );\n\n // locks the body scroll to prevent accidental scrolling of content when we drag the sheet\n // We are ready when we calculated the height of the content\n const isReady = contentHeight > 0;\n // only lock the body when we atleast have 1 bottomsheet open\n const shouldLock = isReady && stack.length > 0;\n const scrollLockRef = useScrollLock({\n enabled: shouldLock,\n targetRef: scrollRef,\n reserveScrollBarGap: true,\n });\n\n // clear all body locks to avoid memory leaks & accidental body locking\n React.useEffect(() => {\n const hasNoBottomSheets = stack.length < 1;\n if (hasNoBottomSheets) {\n clearAllBodyScrollLocks();\n }\n }, [stack]);\n\n // take the grabHandle's height into headerHeight too\n useIsomorphicLayoutEffect(() => {\n if (!grabHandleRef.current) return;\n setGrabHandleHeight(grabHandleRef.current.getBoundingClientRect().height);\n }, [grabHandleRef.current, _isOpen]);\n\n // if bottomSheet height is >35% & <50% then set initial snapPoint to 35%\n useIsomorphicLayoutEffect(() => {\n if (bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader) {\n initialSnapPoint.current = AUTOCOMPLETE_DEFAULT_SNAPPOINT;\n } else {\n const middleSnapPoint = snapPoints[1] * dimensions.height;\n const lowerSnapPoint = snapPoints[0] * dimensions.height;\n if (totalHeight > lowerSnapPoint && totalHeight < middleSnapPoint) {\n initialSnapPoint.current = snapPoints[0];\n }\n }\n }, [dimensions.height, snapPoints, totalHeight]);\n\n const returnFocus = React.useCallback(() => {\n if (!originalFocusElement.current) return;\n originalFocusElement.current.focus();\n // After returning focus we will clear the original focus\n // Because if sheet can be opened up via multiple triggers\n // We want to ensure the focus returns back to the most recent triggerer\n originalFocusElement.current = null;\n }, [originalFocusElement]);\n\n const focusOnInitialRef = React.useCallback(() => {\n if (!initialFocusRef) {\n // focus on close button\n defaultInitialFocusRef.current?.focus();\n } else {\n // focus on the initialRef passed by the user\n initialFocusRef.current?.focus();\n }\n }, [initialFocusRef]);\n\n // focus on the initial ref when the sheet is opened\n React.useLayoutEffect(() => {\n if (_isOpen) {\n focusOnInitialRef();\n }\n }, [_isOpen, focusOnInitialRef]);\n\n const handleOnOpen = React.useCallback(() => {\n setPositionY(dimensions.height * initialSnapPoint.current);\n scrollLockRef.current.activate();\n // initialize the original focused element\n // On first render it will be the activeElement, eg: the button trigger or select input\n // On Subsequent open operations it won't further update the original focus\n originalFocusElement.current =\n originalFocusElement.current ?? (document.activeElement as HTMLElement);\n }, [dimensions.height, scrollLockRef, setPositionY]);\n\n const handleOnClose = React.useCallback(() => {\n setPositionY(0);\n }, [setPositionY]);\n\n const close = React.useCallback(() => {\n onDismiss?.();\n bottomSheetAndDropdownGlue?.onBottomSheetDismiss();\n returnFocus();\n }, [bottomSheetAndDropdownGlue, onDismiss, returnFocus]);\n\n // sync controlled state to our actions\n React.useEffect(() => {\n if (_isOpen) {\n // open on the next frame, otherwise the animations will not run on first render\n window.setTimeout(() => {\n handleOnOpen();\n });\n } else {\n handleOnClose();\n }\n }, [_isOpen, handleOnClose, handleOnOpen]);\n\n // let the Dropdown component know that it's rendering a bottomsheet\n React.useEffect(() => {\n if (!bottomSheetAndDropdownGlue) return;\n bottomSheetAndDropdownGlue.setDropdownHasBottomSheet(true);\n }, [bottomSheetAndDropdownGlue]);\n\n const bind = useDrag(\n ({\n active,\n last,\n cancel,\n tap,\n movement: [_movementX, movementY],\n velocity: [_velocityX, velocityY],\n lastOffset: [_, lastOffsetY],\n down,\n dragging,\n args: [{ isContentDragging = false } = {}] = [],\n }) => {\n setIsDragging(Boolean(dragging));\n // lastOffsetY is the previous position user stopped dragging the sheet\n // movementY is the drag amount from the bottom of the screen, so as you drag up the movementY goes into negatives\n // and rawY is the calculated offset from the last position of the bottomsheet to current drag amount.\n const rawY = lastOffsetY - movementY;\n\n const lowerSnapPoint = dimensions.height * snapPoints[0];\n const upperSnapPoint = dimensions.height * snapPoints[snapPoints.length - 1];\n\n // predictedY is used to create velocity driven swipe\n // the faster you swipe the more distance you cover\n // this enables users to reach upper & lower snappoint with a single swipe\n const predictedDistance = movementY * (velocityY / 2);\n const predictedY = Math.max(\n lowerSnapPoint,\n Math.min(upperSnapPoint, rawY - predictedDistance * 2),\n );\n\n let newY = rawY;\n\n if (down) {\n // Ensure that users aren't able to drag the sheet\n // more than the upperSnapPoint or maximum height of the sheet\n // this is basically a clamp() function but creates a nice rubberband effect\n const dampening = 0.55;\n if (totalHeight < upperSnapPoint) {\n newY = rubberbandIfOutOfBounds(rawY, 0, totalHeight, dampening);\n } else {\n newY = rubberbandIfOutOfBounds(rawY, 0, upperSnapPoint, dampening);\n }\n } else {\n newY = predictedY;\n }\n\n const isPosAtUpperSnapPoint = newY >= upperSnapPoint;\n\n if (isContentDragging) {\n if (isPosAtUpperSnapPoint) {\n newY = upperSnapPoint;\n }\n\n // keep the newY at upper snap point\n // until the scrollable content is not at top\n // and previously saved Y position is greater than or equal to upper snap point\n // Note: how using newY won't work here since we need the previous value of the newY\n // since we always keep updating the newY,\n // this is cruicial in making the scroll feel natural\n const isContentScrolledAtTop = scrollRef.current && scrollRef.current.scrollTop <= 0;\n if (lastOffsetY === upperSnapPoint && !isContentScrolledAtTop) {\n newY = upperSnapPoint;\n }\n preventScrollingRef.current = newY < upperSnapPoint;\n }\n\n if (last) {\n // calculate the nearest snapPoint\n const [nearest, lower] = computeSnapPointBounds(\n newY,\n snapPoints.map((point) => dimensions.height * point) as SnapPoints,\n );\n\n // This ensure that the lower snapPoint will always have atleast some buffer\n // When the bottomsheet total height is less than the lower snapPoint\n // Video walkthrough: https://www.loom.com/share/a9a8db7688d64194b13df8b3e25859ae\n const lowerPointBuffer = 60;\n const lowerestSnap = Math.min(lower, totalHeight) - lowerPointBuffer;\n\n const shouldClose = rawY < lowerestSnap;\n if (shouldClose) {\n setIsDragging(false);\n cancel();\n close();\n return;\n }\n\n // if we stop dragging assign snap to the nearest point\n if (!active && !tap) {\n newY = nearest;\n }\n }\n\n setPositionY(newY, !down);\n },\n {\n from: [0, positionY],\n filterTaps: true,\n enabled: isOnTopOfStack && _isOpen,\n },\n );\n\n // Here we are preventing the scrolling of the content, until the preventScrollingRef value is true\n useIsomorphicLayoutEffect(() => {\n const scrollElement = scrollRef.current;\n if (!scrollElement) return;\n\n const preventScrolling = (e: Event) => {\n if (preventScrollingRef?.current) {\n e.preventDefault();\n }\n };\n\n // https://www.bram.us/2016/05/02/prevent-overscroll-bounce-in-ios-mobilesafari-pure-css/\n const preventSafariOverscroll = (e: Event) => {\n if (scrollElement.scrollTop < 0) {\n // TODO: figure this out, it doesn't seem to work >iOS12\n // requestAnimationFrame(() => {\n // elem.style.overflow = 'hidden';\n // elem.scrollTop = 0;\n // elem.style.removeProperty('overflow');\n // });\n e.preventDefault();\n }\n };\n\n scrollElement.addEventListener('scroll', preventScrolling);\n scrollElement.addEventListener('touchmove', preventScrolling);\n scrollElement.addEventListener('touchstart', preventSafariOverscroll);\n return () => {\n scrollElement.removeEventListener('scroll', preventScrolling);\n scrollElement.removeEventListener('touchmove', preventScrolling);\n scrollElement.removeEventListener('touchstart', preventSafariOverscroll);\n };\n // Only run this hook when we know all the layout calculations are done,\n // Otherwise the scrollRef.current will be null.\n // isReady prop will ensure that we are done measuring the content height\n }, [isReady]);\n\n // usePresence hook waits for the animation to finish before unmounting the component\n // It's similar to motion/react's usePresence hook\n // https://www.framer.com/docs/animate-presence/#usepresence\n const { isMounted, isVisible } = usePresence(Boolean(_isOpen), {\n transitionDuration: theme.motion.duration.moderate,\n });\n\n const isHeaderFloating = !hasBodyPadding && isHeaderEmpty;\n const contextValue: BottomSheetContextProps = React.useMemo(\n () => ({\n isInBottomSheet: true,\n isOpen: Boolean(isVisible),\n close,\n positionY,\n headerHeight,\n contentHeight,\n footerHeight,\n setContentHeight,\n setFooterHeight,\n setHeaderHeight,\n setHasBodyPadding,\n setIsHeaderEmpty,\n scrollRef,\n bind,\n defaultInitialFocusRef,\n isHeaderFloating,\n }),\n [\n isVisible,\n close,\n positionY,\n headerHeight,\n contentHeight,\n footerHeight,\n setContentHeight,\n setFooterHeight,\n setHeaderHeight,\n setHasBodyPadding,\n setIsHeaderEmpty,\n scrollRef,\n bind,\n defaultInitialFocusRef,\n isHeaderFloating,\n ],\n );\n\n React.useEffect(() => {\n if (isMounted) {\n addBottomSheetToStack(id);\n } else {\n removeBottomSheetFromStack(id);\n }\n }, [addBottomSheetToStack, id, isMounted, removeBottomSheetFromStack]);\n\n // We will need to reset these values otherwise the next time the bottomsheet opens\n // this will be populated and the animations won't run\n // why?: because how the usePresence hook works, we actually just unmount the\n // html contents not the whole <BottomSheet /> react component\n React.useEffect(() => {\n if (!isMounted) {\n setHeaderHeight(0);\n setFooterHeight(0);\n setContentHeight(0);\n setGrabHandleHeight(0);\n _setPositionY(0);\n }\n }, [isMounted, scrollLockRef]);\n\n // We don't want to destroy the react tree when we are rendering inside Dropdown\n // Because if we bail out early then ActionList won't render,\n // and Dropdown manages it's state based on the rendered JSX of ActionList\n // If we don't render ActionList Dropdown state will reset each time we open/close BottomSheet\n const isInsideDropdown = Boolean(bottomSheetAndDropdownGlue);\n if (!isMounted && !isInsideDropdown) {\n return <></>;\n }\n\n return (\n <BottomSheetContext.Provider value={contextValue}>\n <BottomSheetBackdrop zIndex={bottomSheetZIndex} />\n <BottomSheetSurface\n {...metaAttribute({\n name: MetaConstants.BottomSheet,\n testID: 'bottomsheet-surface',\n })}\n {...makeAccessible({ modal: true, role: 'dialog' })}\n windowHeight={dimensions.height}\n isDragging={isDragging}\n style={{\n opacity: isVisible ? 1 : 0,\n pointerEvents: isVisible ? 'all' : 'none',\n height: positionY,\n bottom: 0,\n top: 'auto',\n zIndex: bottomSheetZIndex,\n }}\n {...makeAnalyticsAttribute(dataAnalyticsProps)}\n >\n <BaseBox height=\"100%\" display=\"flex\" flexDirection=\"column\">\n <BottomSheetGrabHandle\n ref={grabHandleRef}\n isHeaderFloating={isHeaderFloating}\n {...metaAttribute({ name: ComponentIds.BottomSheetGrabHandle })}\n {...bind()}\n />\n {children}\n </BaseBox>\n </BottomSheetSurface>\n </BottomSheetContext.Provider>\n );\n};\n\nconst BottomSheet = assignWithoutSideEffects(_BottomSheet, {\n componentId: ComponentIds.BottomSheet,\n});\n\nexport { BottomSheet, BottomSheetBody, BottomSheetHeader, BottomSheetFooter };\nexport type { BottomSheetProps };\n"],"names":["BOTTOM_SHEET_EASING","AUTOCOMPLETE_DEFAULT_SNAPPOINT","BottomSheetSurface","styled","div","withConfig","displayName","componentId","_ref","theme","windowHeight","isDragging","background","colors","popup","subtle","borderTopLeftRadius","makeSize","size","borderTopRightRadius","borderColor","border","boxShadow","opacity","pointerEvents","transitionDuration","undefined","concat","makeMotionTime","motion","duration","moderate","transitionTimingFunction","willChange","transitionProperty","position","left","right","bottom","top","backgroundColor","justifyContent","alignItems","touchAction","overflow","_BottomSheet","_ref2","isOpen","onDismiss","children","initialFocusRef","_ref2$snapPoints","snapPoints","_ref2$zIndex","zIndex","componentZIndices","bottomSheet","dataAnalyticsProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","dimensions","useWindowSize","_React$useState","React","useState","_React$useState2","_slicedToArray","contentHeight","setContentHeight","_React$useState3","_React$useState4","headerHeight","setHeaderHeight","_React$useState5","_React$useState6","footerHeight","setFooterHeight","_React$useState7","_React$useState8","grabHandleHeight","setGrabHandleHeight","_React$useState9","_React$useState10","hasBodyPadding","setHasBodyPadding","_React$useState11","_React$useState12","isHeaderEmpty","setIsHeaderEmpty","bottomSheetAndDropdownGlue","useBottomSheetAndDropdownGlue","_React$useState13","_React$useState14","positionY","_setPositionY","_isOpen","_React$useState15","_React$useState16","setIsDragging","preventScrollingRef","useRef","scrollRef","grabHandleRef","defaultInitialFocusRef","originalFocusElement","initialSnapPoint","totalHeight","useMemo","id","useId","_useBottomSheetStack","useBottomSheetStack","stack","addBottomSheetToStack","removeBottomSheetFromStack","getTopOfTheStack","getCurrentStackIndexById","currentStackIndex","isOnTopOfStack","bottomSheetZIndex","setPositionY","useCallback","value","limit","arguments","length","shouldLimitPositionY","hasAutoCompleteInBottomSheetHeader","maxValue","computeMaxContent","maxHeight","isReady","shouldLock","scrollLockRef","useScrollLock","enabled","targetRef","reserveScrollBarGap","useEffect","hasNoBottomSheets","clearAllBodyScrollLocks","useIsomorphicLayoutEffect","current","getBoundingClientRect","height","middleSnapPoint","lowerSnapPoint","returnFocus","focus","focusOnInitialRef","_defaultInitialFocusR","_initialFocusRef$curr","useLayoutEffect","handleOnOpen","_originalFocusElement","activate","document","activeElement","handleOnClose","close","onBottomSheetDismiss","window","setTimeout","setDropdownHasBottomSheet","bind","useDrag","_ref3","active","last","cancel","tap","_ref3$movement","movement","_movementX","movementY","_ref3$velocity","velocity","_velocityX","velocityY","_ref3$lastOffset","lastOffset","_","lastOffsetY","down","dragging","_ref3$args","args","_ref3$args2","_ref3$args3","_ref3$args3$","_ref3$args3$2","_ref3$args3$2$isConte","isContentDragging","Boolean","rawY","upperSnapPoint","predictedDistance","predictedY","Math","max","min","newY","dampening","rubberbandIfOutOfBounds","isPosAtUpperSnapPoint","isContentScrolledAtTop","scrollTop","_computeSnapPointBoun","computeSnapPointBounds","map","point","_computeSnapPointBoun2","nearest","lower","lowerPointBuffer","lowerestSnap","shouldClose","from","filterTaps","scrollElement","preventScrolling","e","preventDefault","preventSafariOverscroll","addEventListener","removeEventListener","_usePresence","usePresence","isMounted","isVisible","isHeaderFloating","contextValue","isInBottomSheet","isInsideDropdown","_jsx","_Fragment","_jsxs","BottomSheetContext","Provider","BottomSheetBackdrop","_objectSpread","metaAttribute","name","MetaConstants","BottomSheet","testID","makeAccessible","modal","role","style","makeAnalyticsAttribute","BaseBox","display","flexDirection","BottomSheetGrabHandle","ref","ComponentIds","assignWithoutSideEffects"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoC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 -22,7 +22,7 @@ var StyledBottomSheetBackdrop = /*#__PURE__*/styled(BaseBox).withConfig({
22
22
  isOpen = _ref.isOpen;
23
23
  return {
24
24
  transitionDuration: "".concat(makeMotionTime(theme.motion.duration.moderate)),
25
- transitionTimingFunction: isOpen ? castWebType(theme.motion.easing.entrance.revealing) : castWebType(theme.motion.easing.exit.revealing),
25
+ transitionTimingFunction: isOpen ? castWebType(theme.motion.easing.entrance) : castWebType(theme.motion.easing.exit),
26
26
  pointerEvents: isOpen ? 'all' : 'none',
27
27
  transitionProperty: 'opacity'
28
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetBackdrop.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheetBackdrop.web.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport React from 'react';\nimport styled from 'styled-components';\nimport { useBottomSheetContext } from './BottomSheetContext';\nimport BaseBox from '~components/Box/BaseBox';\nimport { castWebType } from '~utils';\nimport { metaAttribute } from '~utils/metaAttribute';\nimport { makeMotionTime } from '~utils/makeMotionTime';\n\nconst StyledBottomSheetBackdrop = styled(BaseBox)<{ isOpen: boolean }>(({ theme, isOpen }) => {\n return {\n transitionDuration: `${makeMotionTime(theme.motion.duration.moderate)}`,\n transitionTimingFunction: isOpen\n ? castWebType(theme.motion.easing.entrance.revealing)\n : castWebType(theme.motion.easing.exit.revealing),\n pointerEvents: isOpen ? 'all' : 'none',\n transitionProperty: 'opacity',\n };\n});\n\nconst BottomSheetBackdrop = ({ zIndex }: { zIndex: number }): React.ReactElement => {\n const { close, isOpen } = useBottomSheetContext();\n\n return (\n <StyledBottomSheetBackdrop\n {...metaAttribute({ testID: 'bottomsheet-backdrop' })}\n onClick={() => {\n close();\n }}\n isOpen={isOpen}\n opacity={isOpen ? 1 : 0}\n position=\"fixed\"\n left=\"spacing.0\"\n top=\"spacing.0\"\n bottom=\"spacing.0\"\n right=\"spacing.0\"\n zIndex={zIndex}\n backgroundColor=\"overlay.background.subtle\"\n />\n );\n};\n\nexport { BottomSheetBackdrop };\n"],"names":["StyledBottomSheetBackdrop","styled","BaseBox","withConfig","displayName","componentId","_ref","theme","isOpen","transitionDuration","concat","makeMotionTime","motion","duration","moderate","transitionTimingFunction","castWebType","easing","entrance","revealing","exit","pointerEvents","transitionProperty","BottomSheetBackdrop","_ref2","zIndex","_useBottomSheetContex","useBottomSheetContext","close","_jsx","_objectSpread","metaAttribute","testID","onClick","opacity","position","left","top","bottom","right","backgroundColor"],"mappings":";;;;;;;;;;;;;;;;AASA,IAAMA,yBAAyB,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,mDAAA;EAAAC,WAAA,EAAA,cAAA;AAAA,CAAsB,CAAA,CAAA,UAAAC,IAAA,EAAuB;AAAA,EAAA,IAApBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,MAAM,GAAAF,IAAA,CAANE,MAAM,CAAA;EACrF,OAAO;AACLC,IAAAA,kBAAkB,EAAAC,EAAAA,CAAAA,MAAA,CAAKC,cAAc,CAACJ,KAAK,CAACK,MAAM,CAACC,QAAQ,CAACC,QAAQ,CAAC,CAAE;IACvEC,wBAAwB,EAAEP,MAAM,GAC5BQ,WAAW,CAACT,KAAK,CAACK,MAAM,CAACK,MAAM,CAACC,QAAQ,CAACC,SAAS,CAAC,GACnDH,WAAW,CAACT,KAAK,CAACK,MAAM,CAACK,MAAM,CAACG,IAAI,CAACD,SAAS,CAAC;AACnDE,IAAAA,aAAa,EAAEb,MAAM,GAAG,KAAK,GAAG,MAAM;AACtCc,IAAAA,kBAAkB,EAAE,SAAA;GACrB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,KAAA,EAA2D;AAAA,EAAA,IAArDC,MAAM,GAAAD,KAAA,CAANC,MAAM,CAAA;AACnC,EAAA,IAAAC,qBAAA,GAA0BC,qBAAqB,EAAE;IAAzCC,KAAK,GAAAF,qBAAA,CAALE,KAAK;IAAEpB,MAAM,GAAAkB,qBAAA,CAANlB,MAAM,CAAA;EAErB,oBACEqB,GAAA,CAAC7B,yBAAyB,EAAA8B,aAAA,CAAAA,aAAA,CACpBC,EAAAA,EAAAA,aAAa,CAAC;AAAEC,IAAAA,MAAM,EAAE,sBAAA;AAAuB,GAAC,CAAC,CAAA,EAAA,EAAA,EAAA;IACrDC,OAAO,EAAE,SAAAA,OAAAA,GAAM;AACbL,MAAAA,KAAK,EAAE,CAAA;KACP;AACFpB,IAAAA,MAAM,EAAEA,MAAO;AACf0B,IAAAA,OAAO,EAAE1B,MAAM,GAAG,CAAC,GAAG,CAAE;AACxB2B,IAAAA,QAAQ,EAAC,OAAO;AAChBC,IAAAA,IAAI,EAAC,WAAW;AAChBC,IAAAA,GAAG,EAAC,WAAW;AACfC,IAAAA,MAAM,EAAC,WAAW;AAClBC,IAAAA,KAAK,EAAC,WAAW;AACjBd,IAAAA,MAAM,EAAEA,MAAO;AACfe,IAAAA,eAAe,EAAC,2BAAA;AAA2B,GAAA,CAC5C,CAAC,CAAA;AAEN;;;;"}
1
+ {"version":3,"file":"BottomSheetBackdrop.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheetBackdrop.web.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport React from 'react';\nimport styled from 'styled-components';\nimport { useBottomSheetContext } from './BottomSheetContext';\nimport BaseBox from '~components/Box/BaseBox';\nimport { castWebType } from '~utils';\nimport { metaAttribute } from '~utils/metaAttribute';\nimport { makeMotionTime } from '~utils/makeMotionTime';\n\nconst StyledBottomSheetBackdrop = styled(BaseBox)<{ isOpen: boolean }>(({ theme, isOpen }) => {\n return {\n transitionDuration: `${makeMotionTime(theme.motion.duration.moderate)}`,\n transitionTimingFunction: isOpen\n ? castWebType(theme.motion.easing.entrance)\n : castWebType(theme.motion.easing.exit),\n pointerEvents: isOpen ? 'all' : 'none',\n transitionProperty: 'opacity',\n };\n});\n\nconst BottomSheetBackdrop = ({ zIndex }: { zIndex: number }): React.ReactElement => {\n const { close, isOpen } = useBottomSheetContext();\n\n return (\n <StyledBottomSheetBackdrop\n {...metaAttribute({ testID: 'bottomsheet-backdrop' })}\n onClick={() => {\n close();\n }}\n isOpen={isOpen}\n opacity={isOpen ? 1 : 0}\n position=\"fixed\"\n left=\"spacing.0\"\n top=\"spacing.0\"\n bottom=\"spacing.0\"\n right=\"spacing.0\"\n zIndex={zIndex}\n backgroundColor=\"overlay.background.subtle\"\n />\n );\n};\n\nexport { BottomSheetBackdrop };\n"],"names":["StyledBottomSheetBackdrop","styled","BaseBox","withConfig","displayName","componentId","_ref","theme","isOpen","transitionDuration","concat","makeMotionTime","motion","duration","moderate","transitionTimingFunction","castWebType","easing","entrance","exit","pointerEvents","transitionProperty","BottomSheetBackdrop","_ref2","zIndex","_useBottomSheetContex","useBottomSheetContext","close","_jsx","_objectSpread","metaAttribute","testID","onClick","opacity","position","left","top","bottom","right","backgroundColor"],"mappings":";;;;;;;;;;;;;;;;AASA,IAAMA,yBAAyB,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,mDAAA;EAAAC,WAAA,EAAA,cAAA;AAAA,CAAsB,CAAA,CAAA,UAAAC,IAAA,EAAuB;AAAA,EAAA,IAApBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,MAAM,GAAAF,IAAA,CAANE,MAAM,CAAA;EACrF,OAAO;AACLC,IAAAA,kBAAkB,EAAAC,EAAAA,CAAAA,MAAA,CAAKC,cAAc,CAACJ,KAAK,CAACK,MAAM,CAACC,QAAQ,CAACC,QAAQ,CAAC,CAAE;IACvEC,wBAAwB,EAAEP,MAAM,GAC5BQ,WAAW,CAACT,KAAK,CAACK,MAAM,CAACK,MAAM,CAACC,QAAQ,CAAC,GACzCF,WAAW,CAACT,KAAK,CAACK,MAAM,CAACK,MAAM,CAACE,IAAI,CAAC;AACzCC,IAAAA,aAAa,EAAEZ,MAAM,G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