@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,119 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _typeof from '@babel/runtime/helpers/typeof';
3
+ import React__default from 'react';
4
+ import '../BaseMotion/index.js';
5
+ import { msToSeconds } from '../../utils/msToSeconds.js';
6
+ import { cssBezierToArray } from '../../utils/cssBezierToArray.js';
7
+ import '../../utils/index.js';
8
+ import { jsx } from 'react/jsx-runtime';
9
+ import useTheme from '../BladeProvider/useTheme.js';
10
+ import { castWebType } from '../../utils/platform/castUtils.js';
11
+ import { BaseMotionEntryExit } from '../BaseMotion/BaseMotion.js';
12
+
13
+ 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; }
14
+ 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; }
15
+ var getFromTransform = function getFromTransform(direction, fromOffset) {
16
+ if (direction === 'top') {
17
+ return "translateY(-".concat(fromOffset, ")");
18
+ }
19
+ if (direction === 'left') {
20
+ return "translateX(-".concat(fromOffset, ")");
21
+ }
22
+ if (direction === 'right') {
23
+ return "translateX(".concat(fromOffset, ")");
24
+ }
25
+ return "translateY(".concat(fromOffset, ")");
26
+ };
27
+
28
+ /**
29
+ * ## Slide
30
+ *
31
+ * Slide is one of the motion presets that we expose from blade to help you make components slide in from outside of viewport
32
+ *
33
+ * If you're looking for subtle movement on enter in the viewport itself, checkout `Move` preset instead.
34
+ *
35
+ * ### Usage
36
+ *
37
+ * #### Slide in on mount
38
+ *
39
+ * ```jsx
40
+ * <Slide direction="bottom">
41
+ * <Card />
42
+ * </Slide>
43
+ * ```
44
+ *
45
+ * #### Conditionally slide based on state
46
+ *
47
+ * ```jsx
48
+ * <Slide isVisible={isVisibleState}>
49
+ * <Card />
50
+ * </Slide>
51
+ * ```
52
+ */
53
+ var Slide = function Slide(_ref) {
54
+ var children = _ref.children,
55
+ _ref$type = _ref.type,
56
+ type = _ref$type === void 0 ? 'inout' : _ref$type,
57
+ _ref$direction = _ref.direction,
58
+ direction = _ref$direction === void 0 ? 'bottom' : _ref$direction,
59
+ isVisible = _ref.isVisible,
60
+ motionTriggers = _ref.motionTriggers,
61
+ shouldUnmountWhenHidden = _ref.shouldUnmountWhenHidden,
62
+ fromOffset = _ref.fromOffset,
63
+ delay = _ref.delay;
64
+ var _useTheme = useTheme(),
65
+ theme = _useTheme.theme;
66
+ var enterDirection = _typeof(direction) === 'object' ? direction.enter : direction;
67
+ var exitDirection = _typeof(direction) === 'object' ? direction.exit : direction;
68
+ var isEnterDirectionHorizontal = ['left', 'right'].includes(enterDirection);
69
+ var isExitDirectionHorizontal = ['left', 'right'].includes(exitDirection);
70
+ var defaultOffset = isEnterDirectionHorizontal ? '100vw' : '100vh';
71
+ var enterTransform = getFromTransform(enterDirection, fromOffset !== null && fromOffset !== void 0 ? fromOffset : defaultOffset);
72
+ var exitTransform = getFromTransform(exitDirection, fromOffset !== null && fromOffset !== void 0 ? fromOffset : defaultOffset);
73
+ var enterDelay = _typeof(delay) === 'object' ? delay.enter : delay;
74
+ var exitDelay = _typeof(delay) === 'object' ? delay.exit : delay;
75
+ var moveVariants = React__default.useMemo(function () {
76
+ return {
77
+ initial: {
78
+ // We keep element in view with opacity 0 initially so that it works with `in-view` trigger as expected
79
+ opacity: 0
80
+ },
81
+ animate: {
82
+ transform: [enterTransform, 'translateY(0%)'],
83
+ opacity: 1,
84
+ transition: _objectSpread(_objectSpread({}, enterDelay ? {
85
+ delay: msToSeconds(theme.motion.delay[enterDelay])
86
+ } : {}), {}, {
87
+ duration: msToSeconds(isEnterDirectionHorizontal ? theme.motion.duration.xmoderate : theme.motion.duration['2xgentle']),
88
+ ease: cssBezierToArray(isEnterDirectionHorizontal ? castWebType(theme.motion.easing.entrance) : castWebType(theme.motion.easing.emphasized))
89
+ })
90
+ },
91
+ exit: {
92
+ opacity: 0,
93
+ transform: exitTransform,
94
+ transitionEnd: {
95
+ transform: enterTransform
96
+ },
97
+ transition: _objectSpread(_objectSpread({}, exitDelay ? {
98
+ delay: msToSeconds(theme.motion.delay[exitDelay])
99
+ } : {}), {}, {
100
+ duration: msToSeconds(isExitDirectionHorizontal ? theme.motion.duration.moderate : theme.motion.duration.xgentle),
101
+ ease: cssBezierToArray(isExitDirectionHorizontal ? castWebType(theme.motion.easing.exit) : castWebType(theme.motion.easing.emphasized))
102
+ })
103
+ }
104
+ };
105
+ },
106
+ // eslint-disable-next-line react-hooks/exhaustive-deps
107
+ [enterDirection, exitDirection, isEnterDirectionHorizontal, isExitDirectionHorizontal, theme.name]);
108
+ return /*#__PURE__*/jsx(BaseMotionEntryExit, {
109
+ motionVariants: moveVariants,
110
+ children: children,
111
+ type: type,
112
+ isVisible: isVisible,
113
+ motionTriggers: motionTriggers,
114
+ shouldUnmountWhenHidden: shouldUnmountWhenHidden
115
+ });
116
+ };
117
+
118
+ export { Slide };
119
+ //# sourceMappingURL=Slide.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slide.web.js","sources":["../../../../../../src/components/Slide/Slide.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { SlideProps } from './types';\nimport { BaseMotionEntryExit } from '~components/BaseMotion';\nimport type { MotionVariantsType } from '~components/BaseMotion';\nimport { msToSeconds } from '~utils/msToSeconds';\nimport { cssBezierToArray } from '~utils/cssBezierToArray';\nimport { castWebType, useTheme } from '~utils';\n\nconst getFromTransform = (\n direction: SlideProps['direction'],\n fromOffset: SlideProps['fromOffset'],\n): `translate${string}` => {\n if (direction === 'top') {\n return `translateY(-${fromOffset})`;\n }\n\n if (direction === 'left') {\n return `translateX(-${fromOffset})`;\n }\n\n if (direction === 'right') {\n return `translateX(${fromOffset})`;\n }\n\n return `translateY(${fromOffset})`;\n};\n\n/**\n * ## Slide\n *\n * Slide is one of the motion presets that we expose from blade to help you make components slide in from outside of viewport\n *\n * If you're looking for subtle movement on enter in the viewport itself, checkout `Move` preset instead.\n *\n * ### Usage\n *\n * #### Slide in on mount\n *\n * ```jsx\n * <Slide direction=\"bottom\">\n * <Card />\n * </Slide>\n * ```\n *\n * #### Conditionally slide based on state\n *\n * ```jsx\n * <Slide isVisible={isVisibleState}>\n * <Card />\n * </Slide>\n * ```\n */\nconst Slide = ({\n children,\n type = 'inout',\n direction = 'bottom',\n isVisible,\n motionTriggers,\n shouldUnmountWhenHidden,\n fromOffset,\n delay,\n}: SlideProps): React.ReactElement => {\n const { theme } = useTheme();\n\n const enterDirection = typeof direction === 'object' ? direction.enter : direction;\n const exitDirection = typeof direction === 'object' ? direction.exit : direction;\n const isEnterDirectionHorizontal = ['left', 'right'].includes(enterDirection);\n const isExitDirectionHorizontal = ['left', 'right'].includes(exitDirection);\n\n const defaultOffset: SlideProps['fromOffset'] = isEnterDirectionHorizontal ? '100vw' : '100vh';\n\n const enterTransform = getFromTransform(enterDirection, fromOffset ?? defaultOffset);\n const exitTransform = getFromTransform(exitDirection, fromOffset ?? defaultOffset);\n\n const enterDelay = typeof delay === 'object' ? delay.enter : delay;\n const exitDelay = typeof delay === 'object' ? delay.exit : delay;\n\n const moveVariants: MotionVariantsType = React.useMemo(\n () => ({\n initial: {\n // We keep element in view with opacity 0 initially so that it works with `in-view` trigger as expected\n opacity: 0,\n },\n animate: {\n transform: [enterTransform, 'translateY(0%)'],\n opacity: 1,\n transition: {\n // We have to make sure we don't add delay prop because if we define it, it takes precedence in stagger.\n // Even setting `undefined` would break the stagger\n ...(enterDelay ? { delay: msToSeconds(theme.motion.delay[enterDelay]) } : {}),\n duration: msToSeconds(\n isEnterDirectionHorizontal\n ? theme.motion.duration.xmoderate\n : theme.motion.duration['2xgentle'],\n ),\n ease: cssBezierToArray(\n isEnterDirectionHorizontal\n ? castWebType(theme.motion.easing.entrance)\n : castWebType(theme.motion.easing.emphasized),\n ),\n },\n },\n exit: {\n opacity: 0,\n transform: exitTransform,\n transitionEnd: {\n transform: enterTransform,\n },\n transition: {\n // We have to make sure we don't add delay prop because if we define it, it takes precedence in stagger.\n // Even setting `undefined` would break the stagger\n ...(exitDelay ? { delay: msToSeconds(theme.motion.delay[exitDelay]) } : {}),\n duration: msToSeconds(\n isExitDirectionHorizontal\n ? theme.motion.duration.moderate\n : theme.motion.duration.xgentle,\n ),\n ease: cssBezierToArray(\n isExitDirectionHorizontal\n ? castWebType(theme.motion.easing.exit)\n : castWebType(theme.motion.easing.emphasized),\n ),\n },\n },\n }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n enterDirection,\n exitDirection,\n isEnterDirectionHorizontal,\n isExitDirectionHorizontal,\n theme.name,\n ],\n );\n\n return (\n <BaseMotionEntryExit\n motionVariants={moveVariants}\n children={children}\n type={type}\n isVisible={isVisible}\n motionTriggers={motionTriggers}\n shouldUnmountWhenHidden={shouldUnmountWhenHidden}\n />\n );\n};\n\nexport { Slide };\n"],"names":["getFromTransform","direction","fromOffset","concat","Slide","_ref","children","_ref$type","type","_ref$direction","isVisible","motionTriggers","shouldUnmountWhenHidden","delay","_useTheme","useTheme","theme","enterDirection","_typeof","enter","exitDirection","exit","isEnterDirectionHorizontal","includes","isExitDirectionHorizontal","defaultOffset","enterTransform","exitTransform","enterDelay","exitDelay","moveVariants","React","useMemo","initial","opacity","animate","transform","transition","_objectSpread","msToSeconds","motion","duration","xmoderate","ease","cssBezierToArray","castWebType","easing","entrance","emphasized","transitionEnd","moderate","xgentle","name","_jsx","BaseMotionEntryExit","motionVariants"],"mappings":";;;;;;;;;;;;;;AAQA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CACpBC,SAAkC,EAClCC,UAAoC,EACX;EACzB,IAAID,SAAS,KAAK,KAAK,EAAE;IACvB,OAAAE,cAAAA,CAAAA,MAAA,CAAsBD,UAAU,EAAA,GAAA,CAAA,CAAA;AAClC,GAAA;EAEA,IAAID,SAAS,KAAK,MAAM,EAAE;IACxB,OAAAE,cAAAA,CAAAA,MAAA,CAAsBD,UAAU,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A,CACE/B,cAAc,EACdG,aAAa,EACbE,0BAA0B,EAC1BE,yBAAyB,EACzBR,KAAK,CAACoC,IAAI,CAEd,CAAC,CAAA;EAED,oBACEC,GAAA,CAACC,mBAAmB,EAAA;AAClBC,IAAAA,cAAc,EAAEzB,YAAa;AAC7BxB,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,IAAI,EAAEA,IAAK;AACXE,IAAAA,SAAS,EAAEA,SAAU;AACrBC,IAAAA,cAAc,EAAEA,cAAe;AAC/BC,IAAAA,uBAAuB,EAAEA,uBAAAA;AAAwB,GAClD,CAAC,CAAA;AAEN;;;;"}
@@ -0,0 +1,2 @@
1
+ export { Slide } from './Slide.web.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import 'react';
3
+ import React__default from 'react';
4
4
  import { dimensions } from './spinnerTokens.js';
5
5
  import SpinnerIcon from './SpinnerIcon.js';
6
6
  import { SpinningBox } from './SpinningBox.web.js';
@@ -36,7 +36,7 @@ var getColor = function getColor(_ref) {
36
36
  }
37
37
  return getIn(theme.colors, 'interactive.icon.gray.subtle');
38
38
  };
39
- var BaseSpinner = function BaseSpinner(_ref2) {
39
+ var _BaseSpinner = function _BaseSpinner(_ref2, ref) {
40
40
  var label = _ref2.label,
41
41
  _ref2$labelPosition = _ref2.labelPosition,
42
42
  labelPosition = _ref2$labelPosition === void 0 ? 'right' : _ref2$labelPosition,
@@ -49,7 +49,9 @@ var BaseSpinner = function BaseSpinner(_ref2) {
49
49
  styledProps = _objectWithoutProperties(_ref2, _excluded);
50
50
  var _useTheme = useTheme(),
51
51
  theme = _useTheme.theme;
52
- return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread({}, metaAttribute({
52
+ return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread({
53
+ ref: ref
54
+ }, metaAttribute({
53
55
  name: MetaConstants.Spinner,
54
56
  testID: testID
55
57
  })), getStyledProps(styledProps)), {}, {
@@ -83,6 +85,7 @@ var BaseSpinner = function BaseSpinner(_ref2) {
83
85
  }))
84
86
  }));
85
87
  };
88
+ var BaseSpinner = /*#__PURE__*/React__default.forwardRef(_BaseSpinner);
86
89
 
87
90
  export { BaseSpinner };
88
91
  //# sourceMappingURL=BaseSpinner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseSpinner.js","sources":["../../../../../../../src/components/Spinner/BaseSpinner/BaseSpinner.tsx"],"sourcesContent":["import React from 'react';\nimport { dimensions } from './spinnerTokens';\nimport SpinnerIcon from './SpinnerIcon';\nimport { SpinningBox } from './SpinningBox';\nimport getIn from '~utils/lodashButBetter/get';\nimport type { Theme } from '~components/BladeProvider';\nimport { useTheme } from '~components/BladeProvider';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { FeedbackColors } from '~tokens/theme/theme';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Text } from '~components/Typography';\nimport type { TestID } from '~utils/types';\nimport { makeSize } from '~utils/makeSize';\nimport { makeAccessible } from '~utils/makeAccessible';\n\ntype BaseSpinnerProps = {\n /**\n * Sets the color of the spinner.\n *\n * @default 'default'\n */\n color?: 'primary' | 'white' | FeedbackColors;\n /**\n * Sets the label of the spinner.\n *\n * @default 'right'\n */\n label?: string;\n /**\n * Sets the label of the spinner.\n *\n */\n labelPosition?: 'right' | 'bottom';\n /**\n * Sets the size of the spinner.\n *\n * @default 'medium'\n */\n size?: 'medium' | 'large' | 'xlarge';\n /**\n * Sets the aria-label for web & accessibilityLabel react-native.\n *\n */\n accessibilityLabel: string;\n} & TestID &\n StyledPropsBlade;\n\nconst getColor = ({ color, theme }: { color: BaseSpinnerProps['color']; theme: Theme }): string => {\n if (color && color === 'white') {\n return getIn(theme.colors, 'interactive.icon.staticWhite.subtle');\n }\n if (color && color !== 'neutral') {\n return getIn(theme.colors, `interactive.icon.${color}.subtle`);\n }\n return getIn(theme.colors, 'interactive.icon.gray.subtle');\n};\n\nconst BaseSpinner = ({\n label,\n labelPosition = 'right',\n accessibilityLabel,\n color = 'neutral',\n size = 'medium',\n testID,\n ...styledProps\n}: BaseSpinnerProps): React.ReactElement => {\n const { theme } = useTheme();\n return (\n <BaseBox\n {...metaAttribute({ name: MetaConstants.Spinner, testID })}\n {...getStyledProps(styledProps)}\n >\n <BaseBox\n display=\"flex\"\n alignItems=\"center\"\n flexDirection={labelPosition === 'right' ? 'row' : 'column'}\n {...makeAccessible({\n label: accessibilityLabel,\n role: 'progressbar',\n })}\n >\n <SpinningBox>\n <SpinnerIcon dimensions={makeSize(dimensions[size])} color={getColor({ color, theme })} />\n </SpinningBox>\n {label && label.trim().length > 0 ? (\n <BaseBox\n marginLeft={labelPosition === 'right' ? 'spacing.3' : 'spacing.0'}\n marginTop={labelPosition === 'bottom' ? 'spacing.3' : 'spacing.0'}\n >\n <Text variant=\"body\" weight=\"regular\" size=\"small\" color=\"surface.text.gray.muted\">\n {label}\n </Text>\n </BaseBox>\n ) : null}\n </BaseBox>\n </BaseBox>\n );\n};\n\nexport type { BaseSpinnerProps };\nexport { BaseSpinner };\n"],"names":["getColor","_ref","color","theme","getIn","colors","concat","BaseSpinner","_ref2","label","_ref2$labelPosition","labelPosition","accessibilityLabel","_ref2$color","_ref2$size","size","testID","styledProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","_jsx","BaseBox","_objectSpread","metaAttribute","name","MetaConstants","Spinner","getStyledProps","children","_jsxs","display","alignItems","flexDirection","makeAccessible","role","SpinningBox","SpinnerIcon","dimensions","makeSize","trim","length","marginLeft","marginTop","Text","variant","weight"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;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AmB,QAAA,eAElER,GAAA,CAACuB,IAAI,EAAA;AAACC,UAAAA,OAAO,EAAC,MAAM;AAACC,UAAAA,MAAM,EAAC,SAAS;AAAChC,UAAAA,IAAI,EAAC,OAAO;AAACb,UAAAA,KAAK,EAAC,yBAAyB;AAAA4B,UAAAA,QAAA,EAC/ErB,KAAAA;SACG,CAAA;OACC,CAAC,GACR,IAAI,CAAA;KACD,CAAA,CAAA;AAAC,GAAA,CACH,CAAC,CAAA;AAEd;;;;"}
1
+ {"version":3,"file":"BaseSpinner.js","sources":["../../../../../../../src/components/Spinner/BaseSpinner/BaseSpinner.tsx"],"sourcesContent":["import React from 'react';\nimport { dimensions } from './spinnerTokens';\nimport SpinnerIcon from './SpinnerIcon';\nimport { SpinningBox } from './SpinningBox';\nimport getIn from '~utils/lodashButBetter/get';\nimport type { Theme } from '~components/BladeProvider';\nimport { useTheme } from '~components/BladeProvider';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { FeedbackColors } from '~tokens/theme/theme';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Text } from '~components/Typography';\nimport type { BladeElementRef, TestID } from '~utils/types';\nimport { makeSize } from '~utils/makeSize';\nimport { makeAccessible } from '~utils/makeAccessible';\n\ntype BaseSpinnerProps = {\n /**\n * Sets the color of the spinner.\n *\n * @default 'default'\n */\n color?: 'primary' | 'white' | FeedbackColors;\n /**\n * Sets the label of the spinner.\n *\n * @default 'right'\n */\n label?: string;\n /**\n * Sets the label of the spinner.\n *\n */\n labelPosition?: 'right' | 'bottom';\n /**\n * Sets the size of the spinner.\n *\n * @default 'medium'\n */\n size?: 'medium' | 'large' | 'xlarge';\n /**\n * Sets the aria-label for web & accessibilityLabel react-native.\n *\n */\n accessibilityLabel: string;\n} & TestID &\n StyledPropsBlade;\n\nconst getColor = ({ color, theme }: { color: BaseSpinnerProps['color']; theme: Theme }): string => {\n if (color && color === 'white') {\n return getIn(theme.colors, 'interactive.icon.staticWhite.subtle');\n }\n if (color && color !== 'neutral') {\n return getIn(theme.colors, `interactive.icon.${color}.subtle`);\n }\n return getIn(theme.colors, 'interactive.icon.gray.subtle');\n};\n\nconst _BaseSpinner = (\n {\n label,\n labelPosition = 'right',\n accessibilityLabel,\n color = 'neutral',\n size = 'medium',\n testID,\n ...styledProps\n }: BaseSpinnerProps,\n ref: React.Ref<BladeElementRef>,\n): React.ReactElement => {\n const { theme } = useTheme();\n return (\n <BaseBox\n ref={ref as never}\n {...metaAttribute({ name: MetaConstants.Spinner, testID })}\n {...getStyledProps(styledProps)}\n >\n <BaseBox\n display=\"flex\"\n alignItems=\"center\"\n flexDirection={labelPosition === 'right' ? 'row' : 'column'}\n {...makeAccessible({\n label: accessibilityLabel,\n role: 'progressbar',\n })}\n >\n <SpinningBox>\n <SpinnerIcon dimensions={makeSize(dimensions[size])} color={getColor({ color, theme })} />\n </SpinningBox>\n {label && label.trim().length > 0 ? (\n <BaseBox\n marginLeft={labelPosition === 'right' ? 'spacing.3' : 'spacing.0'}\n marginTop={labelPosition === 'bottom' ? 'spacing.3' : 'spacing.0'}\n >\n <Text variant=\"body\" weight=\"regular\" size=\"small\" color=\"surface.text.gray.muted\">\n {label}\n </Text>\n </BaseBox>\n ) : null}\n </BaseBox>\n </BaseBox>\n );\n};\n\nconst BaseSpinner = React.forwardRef(_BaseSpinner);\n\nexport type { BaseSpinnerProps };\nexport { BaseSpinner };\n"],"names":["getColor","_ref","color","theme","getIn","colors","concat","_BaseSpinner","_ref2","ref","label","_ref2$labelPosition","labelPosition","accessibilityLabel","_ref2$color","_ref2$size","size","testID","styledProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","_jsx","BaseBox","_objectSpread","metaAttribute","name","MetaConstants","Spinner","getStyledProps","children","_jsxs","display","alignItems","flexDirection","makeAccessible","role","SpinningBox","SpinnerIcon","dimensions","makeSize","trim","length","marginLeft","marginTop","Text","variant","weight","B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AAO,GAAG,WAAW,GAAG,WAAY;AAClEiC,QAAAA,SAAS,EAAEjC,aAAa,KAAK,QAAQ,GAAG,WAAW,GAAG,WAAY;QAAAmB,QAAA,eAElER,GAAA,CAACuB,IAAI,EAAA;AAACC,UAAAA,OAAO,EAAC,MAAM;AAACC,UAAAA,MAAM,EAAC,SAAS;AAAChC,UAAAA,IAAI,EAAC,OAAO;AAACd,UAAAA,KAAK,EAAC,yBAAyB;AAAA6B,UAAAA,QAAA,EAC/ErB,KAAAA;SACG,CAAA;OACC,CAAC,GACR,IAAI,CAAA;KACD,CAAA,CAAA;AAAC,GAAA,CACH,CAAC,CAAA;AAEd,CAAC,CAAA;AAED,IAAMuC,WAAW,gBAAGC,cAAK,CAACC,UAAU,CAAC5C,YAAY;;;;"}
@@ -5,7 +5,7 @@ var dimensions = {
5
5
  };
6
6
  var motion = {
7
7
  duration: 'duration.2xgentle',
8
- easing: 'easing.standard.attentive'
8
+ easing: 'easing.overshoot'
9
9
  };
10
10
 
11
11
  export { dimensions, motion };
@@ -1 +1 @@
1
- {"version":3,"file":"spinnerTokens.js","sources":["../../../../../../../src/components/Spinner/BaseSpinner/spinnerTokens.ts"],"sourcesContent":["import type { DurationString, EasingString } from '~tokens/global';\n\nconst dimensions = {\n medium: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\nconst motion: {\n duration: DurationString;\n easing: EasingString;\n} = {\n duration: 'duration.2xgentle',\n easing: 'easing.standard.attentive',\n};\n\nexport { dimensions, motion };\n"],"names":["dimensions","medium","large","xlarge","motion","duration","easing"],"mappings":"AAEA,IAAMA,UAAU,GAAG;AACjBC,EAAAA,MAAM,EAAE,EAAE;AACVC,EAAAA,KAAK,EAAE,EAAE;AACTC,EAAAA,MAAM,EAAE,EAAA;AACV,EAAU;AAEV,IAAMC,MAGL,GAAG;AACFC,EAAAA,QAAQ,EAAE,mBAAmB;AAC7BC,EAAAA,MAAM,EAAE,2BAAA;AACV;;;;"}
1
+ {"version":3,"file":"spinnerTokens.js","sources":["../../../../../../../src/components/Spinner/BaseSpinner/spinnerTokens.ts"],"sourcesContent":["import type { DurationString, EasingString } from '~tokens/global';\n\nconst dimensions = {\n medium: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\nconst motion: {\n duration: DurationString;\n easing: EasingString;\n} = {\n duration: 'duration.2xgentle',\n easing: 'easing.overshoot',\n};\n\nexport { dimensions, motion };\n"],"names":["dimensions","medium","large","xlarge","motion","duration","easing"],"mappings":"AAEA,IAAMA,UAAU,GAAG;AACjBC,EAAAA,MAAM,EAAE,EAAE;AACVC,EAAAA,KAAK,EAAE,EAAE;AACTC,EAAAA,MAAM,EAAE,EAAA;AACV,EAAU;AAEV,IAAMC,MAGL,GAAG;AACFC,EAAAA,QAAQ,EAAE,mBAAmB;AAC7BC,EAAAA,MAAM,EAAE,kBAAA;AACV;;;;"}
@@ -1,5 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
+ import React__default from 'react';
3
4
  import '../BaseSpinner/index.js';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
  import { BaseSpinner } from '../BaseSpinner/BaseSpinner.js';
@@ -7,7 +8,7 @@ import { BaseSpinner } from '../BaseSpinner/BaseSpinner.js';
7
8
  var _excluded = ["label", "labelPosition", "accessibilityLabel", "color", "size", "testID"];
8
9
  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; }
9
10
  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; }
10
- var Spinner = function Spinner(_ref) {
11
+ var _Spinner = function _Spinner(_ref, ref) {
11
12
  var _ref2;
12
13
  var label = _ref.label,
13
14
  labelPosition = _ref.labelPosition,
@@ -19,6 +20,7 @@ var Spinner = function Spinner(_ref) {
19
20
  testID = _ref.testID,
20
21
  styledProps = _objectWithoutProperties(_ref, _excluded);
21
22
  return /*#__PURE__*/jsx(BaseSpinner, _objectSpread({
23
+ ref: ref,
22
24
  label: label,
23
25
  labelPosition: labelPosition,
24
26
  accessibilityLabel: (_ref2 = accessibilityLabel !== null && accessibilityLabel !== void 0 ? accessibilityLabel : label) !== null && _ref2 !== void 0 ? _ref2 : 'Loading',
@@ -27,6 +29,7 @@ var Spinner = function Spinner(_ref) {
27
29
  testID: testID
28
30
  }, styledProps));
29
31
  };
32
+ var Spinner = /*#__PURE__*/React__default.forwardRef(_Spinner);
30
33
 
31
34
  export { Spinner };
32
35
  //# sourceMappingURL=Spinner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.js","sources":["../../../../../../../src/components/Spinner/Spinner/Spinner.tsx"],"sourcesContent":["import { BaseSpinner } from '../BaseSpinner';\nimport type { BaseSpinnerProps } from '../BaseSpinner';\n\ntype SpinnerProps = BaseSpinnerProps & {\n /**\n * Sets the color of the spinner.\n *\n * @default 'default'\n */\n color?: 'primary' | 'neutral' | 'white';\n};\n\nconst Spinner = ({\n label,\n labelPosition,\n accessibilityLabel,\n color = 'neutral',\n size = 'medium',\n testID,\n ...styledProps\n}: SpinnerProps): React.ReactElement => {\n return (\n <BaseSpinner\n label={label}\n labelPosition={labelPosition}\n accessibilityLabel={accessibilityLabel ?? label ?? 'Loading'}\n color={color}\n size={size}\n testID={testID}\n {...styledProps}\n />\n );\n};\n\nexport type { SpinnerProps };\nexport { Spinner };\n"],"names":["Spinner","_ref","_ref2","label","labelPosition","accessibilityLabel","_ref$color","color","_ref$size","size","testID","styledProps","_objectWithoutProperties","_excluded","_jsx","BaseSpinner","_objectSpread"],"mappings":";;;;;;;;;AAYA,IAAMA,OAAO,GAAG,SAAVA,OAAOA,CAAAC,IAAA,EAQ2B;AAAA,EAAA,IAAAC,KAAA,CAAA;AAAA,EAAA,IAPtCC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IACbC,kBAAkB,GAAAJ,IAAA,CAAlBI,kBAAkB;IAAAC,UAAA,GAAAL,IAAA,CAClBM,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,UAAA;IAAAE,SAAA,GAAAP,IAAA,CACjBQ,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,SAAA;IACfE,MAAM,GAAAT,IAAA,CAANS,MAAM;AACHC,IAAAA,WAAW,GAAAC,wBAAA,CAAAX,IAAA,EAAAY,SAAA,CAAA,CAAA;AAEd,EAAA,oBACEC,GAAA,CAACC,WAAW,EAAAC,aAAA,CAAA;AACVb,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,aAAa,EAAEA,aAAc;AAC7BC,IAAAA,kBAAkB,EAAAH,CAAAA,KAAA,GAAEG,kBAAkB,aAAlBA,kBAAkB,KAAA,KAAA,CAAA,GAAlBA,kBAAkB,GAAIF,KAAK,MAAAD,IAAAA,IAAAA,KAAA,KAAAA,KAAAA,CAAAA,GAAAA,KAAA,GAAI,SAAU;AAC7DK,IAAAA,KAAK,EAAEA,KAAM;AACbE,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,MAAM,EAAEA,MAAAA;GACJC,EAAAA,WAAW,CAChB,CAAC,CAAA;AAEN;;;;"}
1
+ {"version":3,"file":"Spinner.js","sources":["../../../../../../../src/components/Spinner/Spinner/Spinner.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseSpinner } from '../BaseSpinner';\nimport type { BaseSpinnerProps } from '../BaseSpinner';\nimport type { BladeElementRef } from '~utils/types';\n\ntype SpinnerProps = BaseSpinnerProps & {\n /**\n * Sets the color of the spinner.\n *\n * @default 'default'\n */\n color?: 'primary' | 'neutral' | 'white';\n};\n\nconst _Spinner = (\n {\n label,\n labelPosition,\n accessibilityLabel,\n color = 'neutral',\n size = 'medium',\n testID,\n ...styledProps\n }: SpinnerProps,\n ref: React.Ref<BladeElementRef>,\n): React.ReactElement => {\n return (\n <BaseSpinner\n ref={ref as never}\n label={label}\n labelPosition={labelPosition}\n accessibilityLabel={accessibilityLabel ?? label ?? 'Loading'}\n color={color}\n size={size}\n testID={testID}\n {...styledProps}\n />\n );\n};\n\nconst Spinner = React.forwardRef(_Spinner);\n\nexport type { SpinnerProps };\nexport { Spinner };\n"],"names":["_Spinner","_ref","ref","_ref2","label","labelPosition","accessibilityLabel","_ref$color","color","_ref$size","size","testID","styledProps","_objectWithoutProperties","_excluded","_jsx","BaseSpinner","_objectSpread","Spinner","React","forwardRef"],"mappings":";;;;;;;;;;AAcA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAUZC,GAA+B,EACR;AAAA,EAAA,IAAAC,KAAA,CAAA;AAAA,EAAA,IATrBC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,aAAa,GAAAJ,IAAA,CAAbI,aAAa;IACbC,kBAAkB,GAAAL,IAAA,CAAlBK,kBAAkB;IAAAC,UAAA,GAAAN,IAAA,CAClBO,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,UAAA;IAAAE,SAAA,GAAAR,IAAA,CACjBS,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,SAAA;IACfE,MAAM,GAAAV,IAAA,CAANU,MAAM;AACHC,IAAAA,WAAW,GAAAC,wBAAA,CAAAZ,IAAA,EAAAa,SAAA,CAAA,CAAA;AAIhB,EAAA,oBACEC,GAAA,CAACC,WAAW,EAAAC,aAAA,CAAA;AACVf,IAAAA,GAAG,EAAEA,GAAa;AAClBE,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,aAAa,EAAEA,aAAc;AAC7BC,IAAAA,kBAAkB,EAAAH,CAAAA,KAAA,GAAEG,kBAAkB,aAAlBA,kBAAkB,KAAA,KAAA,CAAA,GAAlBA,kBAAkB,GAAIF,KAAK,MAAAD,IAAAA,IAAAA,KAAA,KAAAA,KAAAA,CAAAA,GAAAA,KAAA,GAAI,SAAU;AAC7DK,IAAAA,KAAK,EAAEA,KAAM;AACbE,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,MAAM,EAAEA,MAAAA;GACJC,EAAAA,WAAW,CAChB,CAAC,CAAA;AAEN,CAAC,CAAA;AAED,IAAMM,OAAO,gBAAGC,cAAK,CAACC,UAAU,CAACpB,QAAQ;;;;"}
@@ -45,8 +45,8 @@ var FadeRect = /*#__PURE__*/React__default.memo(function (_ref3) {
45
45
  var _useTheme = useTheme(),
46
46
  theme = _useTheme.theme;
47
47
  var duration = theme.motion.duration.gentle;
48
- var enter = /*#__PURE__*/css(["animation:", " ", " ", ";animation-fill-mode:forwards;"], scaleIn, makeMotionTime(duration), theme.motion.easing.entrance.effective);
49
- var exit = /*#__PURE__*/css(["animation:", " ", " ", ";animation-fill-mode:forwards;"], fadeOut, makeMotionTime(duration), theme.motion.easing.exit.effective);
48
+ var enter = /*#__PURE__*/css(["animation:", " ", " ", ";animation-fill-mode:forwards;"], scaleIn, makeMotionTime(duration), theme.motion.easing.entrance);
49
+ var exit = /*#__PURE__*/css(["animation:", " ", " ", ";animation-fill-mode:forwards;"], fadeOut, makeMotionTime(duration), theme.motion.easing.exit);
50
50
  var _usePresence = usePresence(Boolean(show), {
51
51
  transitionDuration: duration,
52
52
  initialEnter: false
@@ -1 +1 @@
1
- {"version":3,"file":"TourMask.web.js","sources":["../../../../../../src/components/SpotlightPopoverTour/TourMask.web.tsx"],"sourcesContent":["/* eslint-disable react/jsx-no-useless-fragment */\nimport React from 'react';\nimport type { FlattenSimpleInterpolation } from 'styled-components';\nimport styled, { css, keyframes } from 'styled-components';\nimport usePresence from 'use-presence';\nimport type { SpotlightPopoverTourMaskRect } from './types';\nimport { useTheme } from '~components/BladeProvider';\nimport { useWindowSize } from '~utils/useWindowSize';\nimport { makeSpace } from '~utils';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { componentZIndices } from '~utils/componentZIndices';\n\nconst scaleIn = keyframes`\n from {\n fill-opacity: 0;\n }\n to {\n fill-opacity: 1;\n }\n`;\nconst fadeOut = keyframes`\n from {\n fill-opacity: 1;\n }\n to {\n fill-opacity: 0;\n }\n`;\n\nconst pulsingAnimation = keyframes`\n 0% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n`;\n\nconst AnimatedFade = styled.rect<{ animationType: FlattenSimpleInterpolation | null }>(\n ({ animationType }) =>\n animationType === null\n ? ''\n : css`\n ${animationType}\n `,\n);\n\nconst StyledPlusing = styled.rect<{ animationType: FlattenSimpleInterpolation | null }>(\n ({ animationType }) => {\n return animationType === null\n ? ''\n : css`\n ${animationType}\n `;\n },\n);\n\ntype FadeRectProps = React.ComponentProps<'rect'> & {\n show: boolean;\n};\nconst FadeRect = React.memo(\n ({ show, children, ...rest }: FadeRectProps): React.ReactElement => {\n const { theme } = useTheme();\n\n const duration = theme.motion.duration.gentle;\n const enter = css`\n animation: ${scaleIn} ${makeMotionTime(duration)}\n ${(theme.motion.easing.entrance.effective as unknown) as string};\n animation-fill-mode: forwards;\n `;\n\n const exit = css`\n animation: ${fadeOut} ${makeMotionTime(duration)}\n ${(theme.motion.easing.exit.effective as unknown) as string};\n animation-fill-mode: forwards;\n `;\n\n const { isVisible } = usePresence(Boolean(show), {\n transitionDuration: duration,\n initialEnter: false,\n });\n\n return (\n // @ts-expect-error styled compoennt types are different from react types\n <AnimatedFade animationType={isVisible ? enter : exit} {...rest}>\n {children}\n </AnimatedFade>\n );\n },\n);\n\nconst PulsingRect = React.memo(\n (props: React.ComponentProps<'rect'>): React.ReactElement => {\n const pulsing = css`\n animation: ${pulsingAnimation} 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n `;\n\n return (\n // @ts-expect-error styled compoennt types are different from react types\n <StyledPlusing animationType={pulsing} {...props} />\n );\n },\n);\n\ntype SpotlightPopoverTourMaskProps = {\n padding: number;\n size: SpotlightPopoverTourMaskRect;\n isTransitioning: boolean;\n};\n\nconst absoluteFill = {\n position: 'fixed',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n zIndex: componentZIndices.tourMask,\n} as const;\n\nconst _SpotlightPopoverTourMask = ({\n padding,\n size,\n isTransitioning,\n}: SpotlightPopoverTourMaskProps): React.ReactElement => {\n const { theme } = useTheme();\n const { width: windowWidth, height: windowHeight } = useWindowSize();\n\n const width = size.width + padding;\n const height = size.height + padding;\n const x = size.x - (width - size.width) / 2;\n const y = size.y - (height - size.height) / 2;\n\n const borderWidth = theme.spacing[1];\n const borderRadius = theme.spacing[2];\n\n const isSizeZero = size.width === 0 || size.height === 0;\n\n return (\n <svg\n style={absoluteFill}\n viewBox={`0 0 ${windowWidth} ${windowHeight}`}\n fill=\"none\"\n stroke=\"none\"\n {...metaAttribute({ name: MetaConstants.TourMask })}\n >\n <PulsingRect\n x={x + borderWidth / 2}\n y={y + borderWidth / 2}\n width={width - borderWidth}\n height={height - borderWidth}\n stroke={theme.colors.surface.background.primary.intense}\n strokeWidth={makeSpace(borderWidth)}\n rx={borderRadius - 1}\n ry={borderRadius - 1}\n fill=\"transparent\"\n opacity={isSizeZero ? 0 : 1}\n />\n\n <mask id=\"tour-mask\" x={0} y={0} height=\"100%\" width=\"100%\" stroke=\"none\">\n <rect height=\"100%\" width=\"100%\" fill=\"#fff\" />\n {!isSizeZero && (\n <FadeRect\n show={!isTransitioning}\n x={x}\n y={y}\n width={width}\n height={height}\n rx={borderRadius}\n ry={borderRadius}\n fill=\"#000\"\n />\n )}\n </mask>\n <rect\n height=\"100%\"\n width=\"100%\"\n mask=\"url(#tour-mask)\"\n fill={theme.colors.overlay.background.subtle}\n />\n </svg>\n );\n};\n\nconst SpotlightPopoverTourMask = assignWithoutSideEffects(React.memo(_SpotlightPopoverTourMask), {\n displayName: 'TourMask',\n});\nexport { SpotlightPopoverTourMask };\n"],"names":["scaleIn","keyframes","fadeOut","pulsingAnimation","AnimatedFade","styled","rect","withConfig","displayName","componentId","_ref","animationType","css","StyledPlusing","_ref2","FadeRect","React","memo","_ref3","show","children","rest","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","duration","motion","gentle","enter","makeMotionTime","easing","entrance","effective","exit","_usePresence","usePresence","Boolean","transitionDuration","initialEnter","isVisible","_jsx","_objectSpread","PulsingRect","props","pulsing","absoluteFill","position","top","left","bottom","right","zIndex","componentZIndices","tourMask","_SpotlightPopoverTourMask","_ref4","padding","size","isTransitioning","_useTheme2","_useWindowSize","useWindowSize","windowWidth","width","windowHeight","height","x","y","borderWidth","spacing","borderRadius","isSizeZero","_jsxs","style","viewBox","concat","fill","stroke","metaAttribute","name","MetaConstants","TourMask","colors","surface","background","primary","intense","strokeWidth","makeSpace","rx","ry","opacity","id","mask","overlay","subtle","SpotlightPopoverTourMask","assignWithoutSideEffects"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAMA,OAAO,gBAAGC,SAAS,CAOxB,CAAA,0CAAA,CAAA,CAAA,CAAA;AACD,IAAMC,OAAO,gBAAGD,SAAS,CAOxB,CAAA,0CAAA,CAAA,CAAA,CAAA;AAED,IAAME,gBAAgB,gBAAGF,SAAS,CAOjC,CAAA,kCAAA,CAAA,CAAA,CAAA;AAED,IAAMG,YAAY,gBAAGC,MAAM,CAACC,IAAI,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,2BAAA;EAAAC,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AAC,MAAM;AAACa,QAAAA,IAAI,EAAC,MAAA;AAAM,OAAE,CAAC,EAC9C,CAACL,UAAU,iBACV/B,GAAA,CAAC3B,QAAQ,EAAA;QACPI,IAAI,EAAE,CAACyC,eAAgB;AACvBQ,QAAAA,CAAC,EAAEA,CAAE;AACLC,QAAAA,CAAC,EAAEA,CAAE;AACLJ,QAAAA,KAAK,EAAEA,KAAM;AACbE,QAAAA,MAAM,EAAEA,MAAO;AACfwB,QAAAA,EAAE,EAAEnB,YAAa;AACjBoB,QAAAA,EAAE,EAAEpB,YAAa;AACjBM,QAAAA,IAAI,EAAC,MAAA;AAAM,OACZ,CACF,CAAA;KACG,CAAC,eACPpC,GAAA,CAAA,MAAA,EAAA;AACEyB,MAAAA,MAAM,EAAC,MAAM;AACbF,MAAAA,KAAK,EAAC,MAAM;AACZ8B,MAAAA,IAAI,EAAC,iBAAiB;MACtBjB,IAAI,EAAEpD,KAAK,CAAC0D,MAAM,CAACY,OAAO,CAACV,UAAU,CAACW,MAAAA;AAAO,KAC9C,CAAC,CAAA;AAAA,GAAA,CACC,CAAC,CAAA;AAEV,CAAC,CAAA;AAEKC,IAAAA,wBAAwB,gBAAGC,wBAAwB,eAACnF,cAAK,CAACC,IAAI,CAACuC,yBAAyB,CAAC,EAAE;AAC/FhD,EAAAA,WAAW,EAAE,UAAA;AACf,CAAC;;;;"}
1
+ {"version":3,"file":"TourMask.web.js","sources":["../../../../../../src/components/SpotlightPopoverTour/TourMask.web.tsx"],"sourcesContent":["/* eslint-disable react/jsx-no-useless-fragment */\nimport React from 'react';\nimport type { FlattenSimpleInterpolation } from 'styled-components';\nimport styled, { css, keyframes } from 'styled-components';\nimport usePresence from 'use-presence';\nimport type { SpotlightPopoverTourMaskRect } from './types';\nimport { useTheme } from '~components/BladeProvider';\nimport { useWindowSize } from '~utils/useWindowSize';\nimport { makeSpace } from '~utils';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { componentZIndices } from '~utils/componentZIndices';\n\nconst scaleIn = keyframes`\n from {\n fill-opacity: 0;\n }\n to {\n fill-opacity: 1;\n }\n`;\nconst fadeOut = keyframes`\n from {\n fill-opacity: 1;\n }\n to {\n fill-opacity: 0;\n }\n`;\n\nconst pulsingAnimation = keyframes`\n 0% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n`;\n\nconst AnimatedFade = styled.rect<{ animationType: FlattenSimpleInterpolation | null }>(\n ({ animationType }) =>\n animationType === null\n ? ''\n : css`\n ${animationType}\n `,\n);\n\nconst StyledPlusing = styled.rect<{ animationType: FlattenSimpleInterpolation | null }>(\n ({ animationType }) => {\n return animationType === null\n ? ''\n : css`\n ${animationType}\n `;\n },\n);\n\ntype FadeRectProps = React.ComponentProps<'rect'> & {\n show: boolean;\n};\nconst FadeRect = React.memo(\n ({ show, children, ...rest }: FadeRectProps): React.ReactElement => {\n const { theme } = useTheme();\n\n const duration = theme.motion.duration.gentle;\n const enter = css`\n animation: ${scaleIn} ${makeMotionTime(duration)}\n ${(theme.motion.easing.entrance as unknown) as string};\n animation-fill-mode: forwards;\n `;\n\n const exit = css`\n animation: ${fadeOut} ${makeMotionTime(duration)}\n ${(theme.motion.easing.exit as unknown) as string};\n animation-fill-mode: forwards;\n `;\n\n const { isVisible } = usePresence(Boolean(show), {\n transitionDuration: duration,\n initialEnter: false,\n });\n\n return (\n // @ts-expect-error styled compoennt types are different from react types\n <AnimatedFade animationType={isVisible ? enter : exit} {...rest}>\n {children}\n </AnimatedFade>\n );\n },\n);\n\nconst PulsingRect = React.memo(\n (props: React.ComponentProps<'rect'>): React.ReactElement => {\n const pulsing = css`\n animation: ${pulsingAnimation} 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n `;\n\n return (\n // @ts-expect-error styled compoennt types are different from react types\n <StyledPlusing animationType={pulsing} {...props} />\n );\n },\n);\n\ntype SpotlightPopoverTourMaskProps = {\n padding: number;\n size: SpotlightPopoverTourMaskRect;\n isTransitioning: boolean;\n};\n\nconst absoluteFill = {\n position: 'fixed',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n zIndex: componentZIndices.tourMask,\n} as const;\n\nconst _SpotlightPopoverTourMask = ({\n padding,\n size,\n isTransitioning,\n}: SpotlightPopoverTourMaskProps): React.ReactElement => {\n const { theme } = useTheme();\n const { width: windowWidth, height: windowHeight } = useWindowSize();\n\n const width = size.width + padding;\n const height = size.height + padding;\n const x = size.x - (width - size.width) / 2;\n const y = size.y - (height - size.height) / 2;\n\n const borderWidth = theme.spacing[1];\n const borderRadius = theme.spacing[2];\n\n const isSizeZero = size.width === 0 || size.height === 0;\n\n return (\n <svg\n style={absoluteFill}\n viewBox={`0 0 ${windowWidth} ${windowHeight}`}\n fill=\"none\"\n stroke=\"none\"\n {...metaAttribute({ name: MetaConstants.TourMask })}\n >\n <PulsingRect\n x={x + borderWidth / 2}\n y={y + borderWidth / 2}\n width={width - borderWidth}\n height={height - borderWidth}\n stroke={theme.colors.surface.background.primary.intense}\n strokeWidth={makeSpace(borderWidth)}\n rx={borderRadius - 1}\n ry={borderRadius - 1}\n fill=\"transparent\"\n opacity={isSizeZero ? 0 : 1}\n />\n\n <mask id=\"tour-mask\" x={0} y={0} height=\"100%\" width=\"100%\" stroke=\"none\">\n <rect height=\"100%\" width=\"100%\" fill=\"#fff\" />\n {!isSizeZero && (\n <FadeRect\n show={!isTransitioning}\n x={x}\n y={y}\n width={width}\n height={height}\n rx={borderRadius}\n ry={borderRadius}\n fill=\"#000\"\n />\n )}\n </mask>\n <rect\n height=\"100%\"\n width=\"100%\"\n mask=\"url(#tour-mask)\"\n fill={theme.colors.overlay.background.subtle}\n />\n </svg>\n );\n};\n\nconst SpotlightPopoverTourMask = assignWithoutSideEffects(React.memo(_SpotlightPopoverTourMask), {\n displayName: 'TourMask',\n});\nexport { SpotlightPopoverTourMask };\n"],"names":["scaleIn","keyframes","fadeOut","pulsingAnimation","AnimatedFade","styled","rect","withConfig","displayName","componentId","_ref","animationType","css","StyledPlusing","_ref2","FadeRect","React","memo","_ref3","show","children","rest","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","duration","motion","gentle","enter","makeMotionTime","easing","entrance","exit","_usePresence","usePresence","Boolean","transitionDuration","initialEnter","isVisible","_jsx","_objectSpread","PulsingRect","props","pulsing","absoluteFill","position","top","left","bottom","right","zIndex","componentZIndices","tourMask","_SpotlightPopoverTourMask","_ref4","padding","size","isTransitioning","_useTheme2","_useWindowSize","useWindowSize","windowWidth","width","windowHeight","height","x","y","borderWidth","spacing","borderRadius","isSizeZero","_jsxs","style","viewBox","concat","fill","stroke","metaAttribute","name","MetaConstants","TourMask","colors","surface","background","primary","intense","strokeWidth","makeSpace","rx","ry","opacity","id","mask","overlay","subtle","SpotlightPopoverTourMask","assignWithoutSideEffects"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAMA,OAAO,gBAAGC,SAAS,CAOxB,CAAA,0CAAA,CAAA,CAAA,CAAA;AACD,IAAMC,OAAO,gBAAGD,SAAS,CAOxB,CAAA,0CAAA,CAAA,CAAA,CAAA;AAED,IAAME,gBAAgB,gBAAGF,SAAS,CAOjC,CAAA,kCAAA,CAAA,CAAA,CAAA;AAED,IAAMG,YAAY,gBAAGC,MAAM,CAACC,IAAI,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,2BAAA;EAAAC,WAAA,EAAA,UAAA;AAAA,CAAA,CAAA,CAC9B,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,aAAa,GAAAD,IAAA,CAAbC,aAAa,CAAA;EAAA,OACdA,aAAa,KAAK,IAAI,GAClB,EAAE,GACFC,GAAG,CACCD,CAAAA,EAAAA,EAAAA,EAAAA,CAAAA,EAAAA,aAAa,CAChB,CAAA;AAAA,CACR,CAAA,CAAA;AAED,IAAME,aAAa,gBAAGR,MAAM,CAACC,IAAI,CAAAC,UAAA,CAAA;EAAAC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AAM,EAAC,MAAM;AACbF,MAAAA,KAAK,EAAC,MAAM;AACZ8B,MAAAA,IAAI,EAAC,iBAAiB;MACtBjB,IAAI,EAAEnD,KAAK,CAACyD,MAAM,CAACY,OAAO,CAACV,UAAU,CAACW,MAAAA;AAAO,KAC9C,CAAC,CAAA;AAAA,GAAA,CACC,CAAC,CAAA;AAEV,CAAC,CAAA;AAEKC,IAAAA,wBAAwB,gBAAGC,wBAAwB,eAAClF,cAAK,CAACC,IAAI,CAACsC,yBAAyB,CAAC,EAAE;AAC/F/C,EAAAA,WAAW,EAAE,UAAA;AACf,CAAC;;;;"}
@@ -0,0 +1,73 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _typeof from '@babel/runtime/helpers/typeof';
3
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
+ import React__default from 'react';
5
+ import { AnimatePresence } from 'framer-motion';
6
+ import { StaggerContext } from './StaggerProvider.js';
7
+ import '../BaseMotion/index.js';
8
+ import { msToSeconds } from '../../utils/msToSeconds.js';
9
+ import '../../utils/index.js';
10
+ import { jsx } from 'react/jsx-runtime';
11
+ import useTheme from '../BladeProvider/useTheme.js';
12
+ import { BaseMotionBox } from '../BaseMotion/BaseMotion.js';
13
+
14
+ var _excluded = ["children", "isVisible", "type", "shouldUnmountWhenHidden", "delay", "motionTriggers"];
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
+ var Stagger = function Stagger(_ref) {
18
+ var children = _ref.children,
19
+ _ref$isVisible = _ref.isVisible,
20
+ isVisible = _ref$isVisible === void 0 ? true : _ref$isVisible,
21
+ _ref$type = _ref.type,
22
+ type = _ref$type === void 0 ? 'inout' : _ref$type,
23
+ _ref$shouldUnmountWhe = _ref.shouldUnmountWhenHidden,
24
+ shouldUnmountWhenHidden = _ref$shouldUnmountWhe === void 0 ? false : _ref$shouldUnmountWhe,
25
+ delay = _ref.delay,
26
+ motionTriggers = _ref.motionTriggers,
27
+ boxProps = _objectWithoutProperties(_ref, _excluded);
28
+ var _useTheme = useTheme(),
29
+ theme = _useTheme.theme;
30
+ // Only need AnimatePresence when we have to unmount the component
31
+ var AnimateWrapper = shouldUnmountWhenHidden ? AnimatePresence : React__default.Fragment;
32
+ // keep it always mounted when shouldUnmountWhenHidden is false
33
+ var isMounted = shouldUnmountWhenHidden ? isVisible : true;
34
+ var enterDelay = _typeof(delay) === 'object' ? delay.enter : delay;
35
+ var exitDelay = _typeof(delay) === 'object' ? delay.exit : delay;
36
+ var staggerVariants = {
37
+ initial: {},
38
+ animate: {
39
+ transition: _objectSpread(_objectSpread({}, enterDelay ? {
40
+ delayChildren: msToSeconds(theme.motion.delay[enterDelay])
41
+ } : {}), {}, {
42
+ staggerChildren: msToSeconds(theme.motion.duration['2xquick'])
43
+ })
44
+ },
45
+ exit: {
46
+ transition: _objectSpread(_objectSpread({}, exitDelay ? {
47
+ delayChildren: msToSeconds(theme.motion.delay[exitDelay])
48
+ } : {}), {}, {
49
+ staggerChildren: msToSeconds(theme.motion.duration['2xquick'])
50
+ })
51
+ }
52
+ };
53
+ return /*#__PURE__*/jsx(AnimateWrapper, {
54
+ children: isMounted ? /*#__PURE__*/jsx(BaseMotionBox, _objectSpread(_objectSpread(_objectSpread({
55
+ type: type,
56
+ motionVariants: staggerVariants,
57
+ motionTriggers: motionTriggers
58
+ }, shouldUnmountWhenHidden ? {} : {
59
+ animateVisibility: isVisible ? 'animate' : 'exit'
60
+ }), boxProps), {}, {
61
+ children: /*#__PURE__*/jsx(StaggerContext.Provider, {
62
+ value: {
63
+ isInsideStaggerContainer: true,
64
+ staggerType: type
65
+ },
66
+ children: children
67
+ })
68
+ })) : null
69
+ });
70
+ };
71
+
72
+ export { Stagger };
73
+ //# sourceMappingURL=Stagger.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stagger.web.js","sources":["../../../../../../src/components/Stagger/Stagger.web.tsx"],"sourcesContent":["import React from 'react';\nimport { AnimatePresence } from 'framer-motion';\nimport { StaggerContext } from './StaggerProvider';\nimport type { StaggerProps } from './types';\nimport { BaseMotionBox } from '~components/BaseMotion';\nimport type { MotionVariantsType } from '~components/BaseMotion';\nimport { msToSeconds } from '~utils/msToSeconds';\nimport { useTheme } from '~utils';\n\n/**\n * ## Stagger\n *\n * Stagger is a utility motion preset we expose from blade to help you implement stagger animations.\n *\n * You can use any of the base entry / exit presets like `Fade`, `Move`, `Slide` inside of it and the components will appear one after the other instead of all at once.\n *\n * **Note:** Unlike other motion presets, Stagger is not an enhancer components and renders a Box instead. You can use BoxProps on this component.\n *\n * ### Usage\n *\n * #### Move with Stagger\n *\n * ```jsx\n * <Stagger>\n * <Move><Chip /></Move>\n * <Move><Chip /></Move>\n * <Move><Chip /></Move>\n * </Stagger>\n * ```\n *\n * #### Conditionally make the parent visible or invisible\n *\n * `isVisible` prop in this case should be on Stagger instead of children preset component\n *\n * ```jsx\n * <Stagger isVisible={isVisibleState}>\n * <Move><Chip /></Move>\n * <Move><Chip /></Move>\n * <Move><Chip /></Move>\n * </Stagger>\n * ```\n *\n */\nconst Stagger = ({\n children,\n isVisible = true,\n type = 'inout',\n shouldUnmountWhenHidden = false,\n delay,\n motionTriggers,\n ...boxProps\n}: StaggerProps): React.ReactElement => {\n const { theme } = useTheme();\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 enterDelay = typeof delay === 'object' ? delay.enter : delay;\n const exitDelay = typeof delay === 'object' ? delay.exit : delay;\n\n const staggerVariants: MotionVariantsType = {\n initial: {},\n animate: {\n transition: {\n ...(enterDelay ? { delayChildren: msToSeconds(theme.motion.delay[enterDelay]) } : {}),\n staggerChildren: msToSeconds(theme.motion.duration['2xquick']),\n },\n },\n exit: {\n transition: {\n ...(exitDelay ? { delayChildren: msToSeconds(theme.motion.delay[exitDelay]) } : {}),\n staggerChildren: msToSeconds(theme.motion.duration['2xquick']),\n },\n },\n };\n\n return (\n <AnimateWrapper>\n {isMounted ? (\n <BaseMotionBox\n type={type}\n motionVariants={staggerVariants}\n motionTriggers={motionTriggers}\n {...(shouldUnmountWhenHidden\n ? {}\n : { animateVisibility: isVisible ? 'animate' : 'exit' })}\n {...boxProps}\n >\n <StaggerContext.Provider value={{ isInsideStaggerContainer: true, staggerType: type }}>\n {children}\n </StaggerContext.Provider>\n </BaseMotionBox>\n ) : null}\n </AnimateWrapper>\n );\n};\n\nexport { Stagger };\n"],"names":["Stagger","_ref","children","_ref$isVisible","isVisible","_ref$type","type","_ref$shouldUnmountWhe","shouldUnmountWhenHidden","delay","motionTriggers","boxProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","AnimateWrapper","AnimatePresence","React","Fragment","isMounted","enterDelay","_typeof","enter","exitDelay","exit","staggerVariants","initial","animate","transition","_objectSpread","delayChildren","msToSeconds","motion","staggerChildren","duration","_jsx","BaseMotionBox","motionVariants","animateVisibility","StaggerContext","Provider","value","isInsideStaggerContainer","staggerType"],"mappings":";;;;;;;;;;;;;;;;AA2CA,IAAMA,OAAO,GAAG,SAAVA,OAAOA,CAAAC,IAAA,EAQ2B;AAAA,EAAA,IAPtCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,cAAA,GAAAF,IAAA,CACRG,SAAS;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+
3
+ var StaggerContext = /*#__PURE__*/React__default.createContext({
4
+ isInsideStaggerContainer: false,
5
+ staggerType: 'inout'
6
+ });
7
+ var useStagger = function useStagger() {
8
+ var staggerContextValue = React__default.useContext(StaggerContext);
9
+ return staggerContextValue;
10
+ };
11
+
12
+ export { StaggerContext, useStagger };
13
+ //# sourceMappingURL=StaggerProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaggerProvider.js","sources":["../../../../../../src/components/Stagger/StaggerProvider.tsx"],"sourcesContent":["import React from 'react';\nimport type { BaseMotionBoxProps } from '~components/BaseMotion';\n\ntype StaggerContextType = {\n isInsideStaggerContainer: boolean;\n staggerType: BaseMotionBoxProps['type'];\n};\n\nconst StaggerContext = React.createContext<StaggerContextType>({\n isInsideStaggerContainer: false,\n staggerType: 'inout',\n});\n\nconst useStagger = (): StaggerContextType => {\n const staggerContextValue = React.useContext(StaggerContext);\n return staggerContextValue;\n};\n\nexport { useStagger, StaggerContext };\n"],"names":["StaggerContext","React","createContext","isInsideStaggerContainer","staggerType","useStagger","staggerContextValue","useContext"],"mappings":";;AAQA,IAAMA,cAAc,gBAAGC,cAAK,CAACC,aAAa,CAAqB;AAC7DC,EAAAA,wBAAwB,EAAE,KAAK;AAC/BC,EAAAA,WAAW,EAAE,OAAA;AACf,CAAC,EAAC;AAEF,IAAMC,UAAU,GAAG,SAAbA,UAAUA,GAA6B;AAC3C,EAAA,IAAMC,mBAAmB,GAAGL,cAAK,CAACM,UAAU,CAACP,cAAc,CAAC,CAAA;AAC5D,EAAA,OAAOM,mBAAmB,CAAA;AAC5B;;;;"}
@@ -0,0 +1,2 @@
1
+ export { Stagger } from './Stagger.web.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -62,7 +62,7 @@ var useChildrenWithIndexes = function useChildrenWithIndexes(_ref) {
62
62
  totalItemsInParentGroupCount: totalItemsInParentGroupCount
63
63
  };
64
64
  };
65
- var _StepGroup = function _StepGroup(_ref2) {
65
+ var _StepGroup = function _StepGroup(_ref2, ref) {
66
66
  var _ref2$size = _ref2.size,
67
67
  size = _ref2$size === void 0 ? 'medium' : _ref2$size,
68
68
  _ref2$orientation = _ref2.orientation,
@@ -96,7 +96,9 @@ var _StepGroup = function _StepGroup(_ref2) {
96
96
  var defaultWidth = isHorizontal ? '100%' : undefined;
97
97
  return /*#__PURE__*/jsx(StepGroupContext.Provider, {
98
98
  value: contextValue,
99
- children: /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, getStyledProps(rest)), {}, {
99
+ children: /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
100
+ ref: ref
101
+ }, getStyledProps(rest)), {}, {
100
102
  display: "inline-flex",
101
103
  maxWidth: maxWidth !== null && maxWidth !== void 0 ? maxWidth : '100%',
102
104
  minWidth: minWidth,
@@ -131,7 +133,7 @@ var _StepGroup = function _StepGroup(_ref2) {
131
133
  *
132
134
  * Checkout {@link https://blade.razorpay.com/?path=/docs/components-stepgroup--docs StepGroup Documentation}
133
135
  */
134
- var StepGroup = /*#__PURE__*/assignWithoutSideEffects(_StepGroup, {
136
+ var StepGroup = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_StepGroup), {
135
137
  componentId: componentIds.StepGroup,
136
138
  displayName: componentIds.StepGroup
137
139
  });
@@ -1 +1 @@
1
- {"version":3,"file":"StepGroup.web.js","sources":["../../../../../../src/components/StepGroup/StepGroup.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { StepGroupContextType, StepGroupProps } from './types';\nimport { StepGroupContext, useStepGroup } from './StepGroupContext';\nimport { componentIds } from './componentIds';\nimport BaseBox from '~components/Box/BaseBox';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport { getComponentId } from '~utils/isValidAllowedChildren';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst useChildrenWithIndexes = ({\n _nestingLevel,\n children,\n ...parentStepGroupProps\n}: Pick<StepGroupProps, 'children' | '_nestingLevel' | 'size' | 'orientation'>): {\n childrenWithIndex: React.ReactNode;\n totalItemsInParentGroupCount: number;\n} => {\n const { totalItemsInParentGroupCount: totalItemsFromPreviousParent } = useStepGroup();\n\n let totalIndex = 0;\n const traverseGroupAndAddIndex = (\n groupChildrenProp: StepGroupProps['children'],\n nestingLevelOfGroup = 0,\n ): React.ReactNode => {\n let stepItemIndex = 0;\n return React.Children.map(groupChildrenProp, (child, index) => {\n const componentId = getComponentId(child);\n if (componentId === componentIds.StepItem) {\n return React.cloneElement(child, {\n _index: stepItemIndex++,\n _totalIndex: totalIndex++,\n _nestingLevel: nestingLevelOfGroup,\n key: index,\n });\n }\n\n if (componentId === componentIds.StepGroup && nestingLevelOfGroup < 3) {\n return React.cloneElement(child, {\n ...parentStepGroupProps,\n children: traverseGroupAndAddIndex(child.props.children, nestingLevelOfGroup + 1),\n _nestingLevel: nestingLevelOfGroup + 1,\n });\n }\n\n return child;\n });\n };\n\n const childrenWithIndex: React.ReactNode = React.useMemo(\n () => (_nestingLevel === 0 ? traverseGroupAndAddIndex(children) : children),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [children, _nestingLevel],\n );\n\n const totalItemsInParentGroupCount =\n _nestingLevel === 0 ? totalIndex : totalItemsFromPreviousParent;\n\n return { childrenWithIndex, totalItemsInParentGroupCount };\n};\n\nconst _StepGroup = ({\n size = 'medium',\n orientation = 'vertical',\n children,\n testID,\n _nestingLevel = 0,\n width,\n minWidth,\n maxWidth,\n ...rest\n}: StepGroupProps): React.ReactElement => {\n const itemsInGroupCount = React.Children.count(children);\n const { childrenWithIndex, totalItemsInParentGroupCount } = useChildrenWithIndexes({\n children,\n size,\n orientation,\n _nestingLevel,\n });\n const contextValue = React.useMemo<StepGroupContextType>(\n () => ({\n size,\n orientation,\n itemsInGroupCount,\n totalItemsInParentGroupCount,\n }),\n [size, orientation, itemsInGroupCount, totalItemsInParentGroupCount],\n );\n\n const isHorizontal = orientation === 'horizontal';\n const defaultWidth = isHorizontal ? '100%' : undefined;\n\n return (\n <StepGroupContext.Provider value={contextValue}>\n <BaseBox\n {...getStyledProps(rest)}\n display=\"inline-flex\"\n maxWidth={maxWidth ?? '100%'}\n minWidth={minWidth}\n width={width ?? defaultWidth}\n padding={_nestingLevel === 0 ? 'spacing.4' : undefined}\n overflowX={orientation === 'horizontal' ? 'auto' : undefined}\n flexDirection={orientation === 'vertical' ? 'column' : 'row'}\n {...metaAttribute({ name: MetaConstants.StepGroup, testID })}\n {...makeAnalyticsAttribute(rest)}\n >\n {childrenWithIndex}\n </BaseBox>\n </StepGroupContext.Provider>\n );\n};\n\n/**\n * ## StepGroup\n *\n * Step Group visualises sequential processes with a consistent structure. It can be interactive, guiding users through steps, or function as a timeline for reference.\n *\n * ### Usage\n *\n * ```jsx\n * <StepGroup orientation=\"vertical\" size=\"medium\">\n * <StepItem title=\"Personal Details\" />\n * <StepItem title=\"Business Details\" />\n * </StepGroup>\n * ```\n *\n * ---\n *\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-stepgroup--docs StepGroup Documentation}\n */\nconst StepGroup = assignWithoutSideEffects(_StepGroup, {\n componentId: componentIds.StepGroup,\n displayName: componentIds.StepGroup,\n});\n\nexport { StepGroup };\n"],"names":["useChildrenWithIndexes","_ref","_nestingLevel","children","parentStepGroupProps","_objectWithoutProperties","_excluded","_useStepGroup","useStepGroup","totalItemsFromPreviousParent","totalItemsInParentGroupCount","totalIndex","traverseGroupAndAddIndex","groupChildrenProp","nestingLevelOfGroup","arguments","length","undefined","stepItemIndex","React","Children","map","child","index","componentId","getComponentId","componentIds","StepItem","cloneElement","_index","_totalIndex","key","StepGroup","_objectSpread","props","childrenWithIndex","useMemo","_StepGroup","_ref2","_ref2$size","size","_ref2$orientation","orientation","testID","_ref2$_nestingLevel","width","minWidth","maxWidth","rest","_excluded2","itemsInGroupCount","count","_useChildrenWithIndex","contextValue","isHorizontal","defaultWidth","_jsx","StepGroupContext","Provider","value","BaseBox","getStyledProps","display","padding","overflowX","flexDirection","metaAttribute","name","MetaConstants","makeAnalyticsAttribute","assignWithoutSideEffects","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA,EAOvB;AAAA,EAAA,IANHC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IACbC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;AACLC,IAAAA,oBAAoB,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAKvB,EAAA,IAAAC,aAAA,GAAuEC,YAAY,EAAE;IAA/CC,4BAA4B,GAAAF,aAAA,CAA1DG,4BAA4B,CAAA;EAEpC,IAAIC,UAAU,GAAG,CAAC,CAAA;AAClB,EAAA,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAC5BC,iBAA6C,EAEzB;AAAA,IAAA,IADpBC,mBAAmB,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,CAAC,CAAA;IAEvB,IAAIG,aAAa,GAAG,CAAC,CAAA;AACrB,IAAA,OAAOC,cAAK,CAACC,QAAQ,CAACC,GAAG,CAACR,iBAAiB,EAAE,UAACS,KAAK,EAAEC,KAAK,EAAK;AAC7D,MAAA,IAAMC,WAAW,GAAGC,cAAc,CAACH,KAAK,CAAC,CAAA;AACzC,MAAA,IAAIE,WAAW,KAAKE,YAAY,CAACC,QAAQ,EAAE;AACzC,QAAA,oBAAOR,cAAK,CAACS,YAAY,CAACN,KAAK,EAAE;UAC/BO,MAAM,EAAEX,aAAa,EAAE;UACvB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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMH,SAAS,gBAAGsC,wBAAwB,CAACjC,UAAU,EAAE;EACrDb,WAAW,EAAEE,YAAY,CAACM,SAAS;EACnCuC,WAAW,EAAE7C,YAAY,CAACM,SAAAA;AAC5B,CAAC;;;;"}
1
+ {"version":3,"file":"StepGroup.web.js","sources":["../../../../../../src/components/StepGroup/StepGroup.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { StepGroupContextType, StepGroupProps } from './types';\nimport { StepGroupContext, useStepGroup } from './StepGroupContext';\nimport { componentIds } from './componentIds';\nimport BaseBox from '~components/Box/BaseBox';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport { getComponentId } from '~utils/isValidAllowedChildren';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { BladeElementRef } from '~utils/types';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst useChildrenWithIndexes = ({\n _nestingLevel,\n children,\n ...parentStepGroupProps\n}: Pick<StepGroupProps, 'children' | '_nestingLevel' | 'size' | 'orientation'>): {\n childrenWithIndex: React.ReactNode;\n totalItemsInParentGroupCount: number;\n} => {\n const { totalItemsInParentGroupCount: totalItemsFromPreviousParent } = useStepGroup();\n\n let totalIndex = 0;\n const traverseGroupAndAddIndex = (\n groupChildrenProp: StepGroupProps['children'],\n nestingLevelOfGroup = 0,\n ): React.ReactNode => {\n let stepItemIndex = 0;\n return React.Children.map(groupChildrenProp, (child, index) => {\n const componentId = getComponentId(child);\n if (componentId === componentIds.StepItem) {\n return React.cloneElement(child, {\n _index: stepItemIndex++,\n _totalIndex: totalIndex++,\n _nestingLevel: nestingLevelOfGroup,\n key: index,\n });\n }\n\n if (componentId === componentIds.StepGroup && nestingLevelOfGroup < 3) {\n return React.cloneElement(child, {\n ...parentStepGroupProps,\n children: traverseGroupAndAddIndex(child.props.children, nestingLevelOfGroup + 1),\n _nestingLevel: nestingLevelOfGroup + 1,\n });\n }\n\n return child;\n });\n };\n\n const childrenWithIndex: React.ReactNode = React.useMemo(\n () => (_nestingLevel === 0 ? traverseGroupAndAddIndex(children) : children),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [children, _nestingLevel],\n );\n\n const totalItemsInParentGroupCount =\n _nestingLevel === 0 ? totalIndex : totalItemsFromPreviousParent;\n\n return { childrenWithIndex, totalItemsInParentGroupCount };\n};\n\nconst _StepGroup = (\n {\n size = 'medium',\n orientation = 'vertical',\n children,\n testID,\n _nestingLevel = 0,\n width,\n minWidth,\n maxWidth,\n ...rest\n }: StepGroupProps,\n ref: React.Ref<BladeElementRef>,\n): React.ReactElement => {\n const itemsInGroupCount = React.Children.count(children);\n const { childrenWithIndex, totalItemsInParentGroupCount } = useChildrenWithIndexes({\n children,\n size,\n orientation,\n _nestingLevel,\n });\n const contextValue = React.useMemo<StepGroupContextType>(\n () => ({\n size,\n orientation,\n itemsInGroupCount,\n totalItemsInParentGroupCount,\n }),\n [size, orientation, itemsInGroupCount, totalItemsInParentGroupCount],\n );\n\n const isHorizontal = orientation === 'horizontal';\n const defaultWidth = isHorizontal ? '100%' : undefined;\n\n return (\n <StepGroupContext.Provider value={contextValue}>\n <BaseBox\n ref={ref as never}\n {...getStyledProps(rest)}\n display=\"inline-flex\"\n maxWidth={maxWidth ?? '100%'}\n minWidth={minWidth}\n width={width ?? defaultWidth}\n padding={_nestingLevel === 0 ? 'spacing.4' : undefined}\n overflowX={orientation === 'horizontal' ? 'auto' : undefined}\n flexDirection={orientation === 'vertical' ? 'column' : 'row'}\n {...metaAttribute({ name: MetaConstants.StepGroup, testID })}\n {...makeAnalyticsAttribute(rest)}\n >\n {childrenWithIndex}\n </BaseBox>\n </StepGroupContext.Provider>\n );\n};\n\n/**\n * ## StepGroup\n *\n * Step Group visualises sequential processes with a consistent structure. It can be interactive, guiding users through steps, or function as a timeline for reference.\n *\n * ### Usage\n *\n * ```jsx\n * <StepGroup orientation=\"vertical\" size=\"medium\">\n * <StepItem title=\"Personal Details\" />\n * <StepItem title=\"Business Details\" />\n * </StepGroup>\n * ```\n *\n * ---\n *\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-stepgroup--docs StepGroup Documentation}\n */\nconst StepGroup = assignWithoutSideEffects(React.forwardRef(_StepGroup), {\n componentId: componentIds.StepGroup,\n displayName: componentIds.StepGroup,\n});\n\nexport { StepGroup };\n"],"names":["useChildrenWithIndexes","_ref","_nestingLevel","children","parentStepGroupProps","_objectWithoutProperties","_excluded","_useStepGroup","useStepGroup","totalItemsFromPreviousParent","totalItemsInParentGroupCount","totalIndex","traverseGroupAndAddIndex","groupChildrenProp","nestingLevelOfGroup","arguments","length","undefined","stepItemIndex","React","Children","map","child","index","componentId","getComponentId","componentIds","StepItem","cloneElement","_index","_totalIndex","key","StepGroup","_objectSpread","props","childrenWithIndex","useMemo","_StepGroup","_ref2","ref","_ref2$size","size","_ref2$orientation","orientation","testID","_ref2$_nestingLevel","width","minWidth","maxWidth","rest","_excluded2","itemsInGroupCount","count","_useChildrenWithIndex","contextValue","isHorizontal","defaultWidth","_jsx","StepGroupContext","Provider","value","BaseBox","getStyledProps","display","padding","overflowX","flexDirection","metaAttribute","name","MetaConstants","makeAnalyticsAttribute","assignWithoutSideEffects","forwardRef","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA,EAOvB;AAAA,EAAA,IANHC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IACbC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;AACLC,IAAAA,oBAAoB,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAKvB,EAAA,IAAAC,aAAA,GAAuEC,YAAY,EAAE;IAA/CC,4BAA4B,GAAAF,aAAA,CAA1DG,4BAA4B,CAAA;EAEpC,IAAIC,UAAU,GAAG,CAAC,CAAA;AAClB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A,IAAA,IAALA,KAAK,KAALA,KAAAA,CAAAA,GAAAA,KAAK,GAAIU,YAAa;AAC7BQ,MAAAA,OAAO,EAAE9D,aAAa,KAAK,CAAC,GAAG,WAAW,GAAGe,SAAU;AACvDgD,MAAAA,SAAS,EAAEtB,WAAW,KAAK,YAAY,GAAG,MAAM,GAAG1B,SAAU;AAC7DiD,MAAAA,aAAa,EAAEvB,WAAW,KAAK,UAAU,GAAG,QAAQ,GAAG,KAAA;AAAM,KAAA,EACzDwB,aAAa,CAAC;MAAEC,IAAI,EAAEC,aAAa,CAACrC,SAAS;AAAEY,MAAAA,MAAM,EAANA,MAAAA;AAAO,KAAC,CAAC,CAAA,EACxD0B,sBAAsB,CAACrB,IAAI,CAAC,CAAA,EAAA,EAAA,EAAA;AAAA9C,MAAAA,QAAA,EAE/BgC,iBAAAA;KACM,CAAA,CAAA;AAAC,GACe,CAAC,CAAA;AAEhC,CAAC,CAAA;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACMH,IAAAA,SAAS,gBAAGuC,wBAAwB,eAACpD,cAAK,CAACqD,UAAU,CAACnC,UAAU,CAAC,EAAE;EACvEb,WAAW,EAAEE,YAAY,CAACM,SAAS;EACnCyC,WAAW,EAAE/C,YAAY,CAACM,SAAAA;AAC5B,CAAC;;;;"}
@@ -48,7 +48,7 @@ var InteractiveItemHeaderBox = /*#__PURE__*/styled.button.withConfig({
48
48
  backgroundColor: props.isSelected ? props.theme.colors.interactive.background.primary.faded : props.theme.colors.transparent,
49
49
  borderRadius: props.theme.border.radius.medium,
50
50
  width: '100%',
51
- transition: "background-color ".concat(props.theme.motion.duration.xquick, " ").concat(props.theme.motion.easing.standard.effective),
51
+ transition: "background-color ".concat(props.theme.motion.duration.xquick, " ").concat(props.theme.motion.easing.standard),
52
52
  ':not([disabled]):hover': {
53
53
  backgroundColor: props.isSelected ? props.theme.colors.interactive.background.primary.fadedHighlighted : props.theme.colors.interactive.background.gray.fadedHighlighted
54
54
  },