@razorpay/blade 11.38.1 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (637) 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/Badge/Badge.js +10 -9
  22. package/build/lib/native/components/Badge/Badge.js.map +1 -1
  23. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js +11 -10
  24. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  25. package/build/lib/native/components/BaseMenu/BaseMenuItem/BaseMenuItem.js +8 -6
  26. package/build/lib/native/components/BaseMenu/BaseMenuItem/BaseMenuItem.js.map +1 -1
  27. package/build/lib/native/components/BottomNav/BottomNav.native.js +4 -10
  28. package/build/lib/native/components/BottomNav/BottomNav.native.js.map +1 -1
  29. package/build/lib/native/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  30. package/build/lib/native/components/Box/Box.js +1 -1
  31. package/build/lib/native/components/Box/Box.js.map +1 -1
  32. package/build/lib/native/components/Button/BaseButton/BaseButton.js +1 -1
  33. package/build/lib/native/components/Button/BaseButton/BaseButton.js.map +1 -1
  34. package/build/lib/native/components/Card/Card.js +1 -1
  35. package/build/lib/native/components/Card/Card.js.map +1 -1
  36. package/build/lib/native/components/Card/CardFooter.js +4 -8
  37. package/build/lib/native/components/Card/CardFooter.js.map +1 -1
  38. package/build/lib/native/components/Card/CardHeader.js +5 -9
  39. package/build/lib/native/components/Card/CardHeader.js.map +1 -1
  40. package/build/lib/native/components/Card/CardRoot.native.js +1 -1
  41. package/build/lib/native/components/Card/CardRoot.native.js.map +1 -1
  42. package/build/lib/native/components/Carousel/Carousel.native.js +1 -1
  43. package/build/lib/native/components/Carousel/Carousel.native.js.map +1 -1
  44. package/build/lib/native/components/Carousel/Indicators/StyledIndicatorButton.native.js +1 -1
  45. package/build/lib/native/components/Carousel/Indicators/StyledIndicatorButton.native.js.map +1 -1
  46. package/build/lib/native/components/Carousel/Indicators/getIndicatorButtonStyles.js +1 -1
  47. package/build/lib/native/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  48. package/build/lib/native/components/Carousel/NavigationButton/getNavigationButtonStyles.js +1 -1
  49. package/build/lib/native/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  50. package/build/lib/native/components/Checkbox/Checkbox.js +6 -4
  51. package/build/lib/native/components/Checkbox/Checkbox.js.map +1 -1
  52. package/build/lib/native/components/Checkbox/CheckboxIcon/Fade.native.js +1 -1
  53. package/build/lib/native/components/Checkbox/CheckboxIcon/Fade.native.js.map +1 -1
  54. package/build/lib/native/components/Chip/Chip.js +5 -3
  55. package/build/lib/native/components/Chip/Chip.js.map +1 -1
  56. package/build/lib/native/components/Chip/ChipGroup.js +4 -3
  57. package/build/lib/native/components/Chip/ChipGroup.js.map +1 -1
  58. package/build/lib/native/components/Chip/chipTokens.js +1 -1
  59. package/build/lib/native/components/Chip/chipTokens.js.map +1 -1
  60. package/build/lib/native/components/Collapsible/Collapsible.js +2 -2
  61. package/build/lib/native/components/Collapsible/Collapsible.js.map +1 -1
  62. package/build/lib/native/components/Collapsible/commonStyles.js +1 -1
  63. package/build/lib/native/components/Collapsible/commonStyles.js.map +1 -1
  64. package/build/lib/native/components/Counter/Counter.js +13 -12
  65. package/build/lib/native/components/Counter/Counter.js.map +1 -1
  66. package/build/lib/native/components/Divider/Divider.js +2 -2
  67. package/build/lib/native/components/Divider/Divider.js.map +1 -1
  68. package/build/lib/native/components/Drawer/Drawer.native.js +4 -10
  69. package/build/lib/native/components/Drawer/Drawer.native.js.map +1 -1
  70. package/build/lib/native/components/Drawer/DrawerSubcomponents.native.js +4 -9
  71. package/build/lib/native/components/Drawer/DrawerSubcomponents.native.js.map +1 -1
  72. package/build/lib/native/components/Dropdown/Dropdown.js +2 -1
  73. package/build/lib/native/components/Dropdown/Dropdown.js.map +1 -1
  74. package/build/lib/native/components/Fade/Fade.native.js +11 -0
  75. package/build/lib/native/components/Fade/Fade.native.js.map +1 -0
  76. package/build/lib/native/components/Form/CharacterCounter/CharacterCounter.js +3 -9
  77. package/build/lib/native/components/Form/CharacterCounter/CharacterCounter.js.map +1 -1
  78. package/build/lib/native/components/Form/FormLabel.js +10 -10
  79. package/build/lib/native/components/Icons/RayIcon/RayIcon.js +12 -0
  80. package/build/lib/native/components/Icons/RayIcon/RayIcon.js.map +1 -0
  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/StepGroup/StepGroup.native.js +4 -10
  172. package/build/lib/native/components/StepGroup/StepGroup.native.js.map +1 -1
  173. package/build/lib/native/components/StepGroup/StepItem.native.js +4 -10
  174. package/build/lib/native/components/StepGroup/StepItem.native.js.map +1 -1
  175. package/build/lib/native/components/Switch/Switch.js +2 -1
  176. package/build/lib/native/components/Switch/Switch.js.map +1 -1
  177. package/build/lib/native/components/Switch/getTrackStyles.js +1 -1
  178. package/build/lib/native/components/Switch/getTrackStyles.js.map +1 -1
  179. package/build/lib/native/components/Switch/switchTokens.js +1 -1
  180. package/build/lib/native/components/Switch/switchTokens.js.map +1 -1
  181. package/build/lib/native/components/Table/Table.native.js +4 -9
  182. package/build/lib/native/components/Table/Table.native.js.map +1 -1
  183. package/build/lib/native/components/Table/TableBody.native.js +3 -8
  184. package/build/lib/native/components/Table/TableBody.native.js.map +1 -1
  185. package/build/lib/native/components/Table/TableEditableCell.native.js +3 -9
  186. package/build/lib/native/components/Table/TableEditableCell.native.js.map +1 -1
  187. package/build/lib/native/components/Table/TableFooter.native.js +3 -8
  188. package/build/lib/native/components/Table/TableFooter.native.js.map +1 -1
  189. package/build/lib/native/components/Table/TableHeader.native.js +3 -8
  190. package/build/lib/native/components/Table/TableHeader.native.js.map +1 -1
  191. package/build/lib/native/components/Table/TablePagination.native.js +3 -8
  192. package/build/lib/native/components/Table/TablePagination.native.js.map +1 -1
  193. package/build/lib/native/components/Table/TableToolbar.native.js +3 -8
  194. package/build/lib/native/components/Table/TableToolbar.native.js.map +1 -1
  195. package/build/lib/native/components/Table/tokens.js.map +1 -1
  196. package/build/lib/native/components/Tabs/Tabs.native.js +6 -8
  197. package/build/lib/native/components/Tabs/Tabs.native.js.map +1 -1
  198. package/build/lib/native/components/Tag/AnimatedTag.native.js +1 -1
  199. package/build/lib/native/components/Tag/AnimatedTag.native.js.map +1 -1
  200. package/build/lib/native/components/Tag/Tag.js +3 -2
  201. package/build/lib/native/components/Tag/Tag.js.map +1 -1
  202. package/build/lib/native/components/Tooltip/TooltipContent.js +8 -8
  203. package/build/lib/native/components/Tooltip/TooltipContentWrapper.native.js +1 -1
  204. package/build/lib/native/components/Tooltip/TooltipContentWrapper.native.js.map +1 -1
  205. package/build/lib/native/components/TopNav/TabNav/TabNav.native.js +4 -10
  206. package/build/lib/native/components/TopNav/TabNav/TabNav.native.js.map +1 -1
  207. package/build/lib/native/components/TopNav/TabNav/TabNavItem.native.js +4 -10
  208. package/build/lib/native/components/TopNav/TabNav/TabNavItem.native.js.map +1 -1
  209. package/build/lib/native/components/TopNav/TopNav.native.js +4 -10
  210. package/build/lib/native/components/TopNav/TopNav.native.js.map +1 -1
  211. package/build/lib/native/components/Typography/Code/Code.js +1 -1
  212. package/build/lib/native/components/Typography/Code/Code.js.map +1 -1
  213. package/build/lib/native/components/Typography/Display/Display.js +2 -2
  214. package/build/lib/native/components/Typography/Display/Display.js.map +1 -1
  215. package/build/lib/native/components/Typography/Heading/Heading.js +2 -2
  216. package/build/lib/native/components/Typography/Heading/Heading.js.map +1 -1
  217. package/build/lib/native/components/Typography/Text/Text.js +2 -2
  218. package/build/lib/native/components/Typography/Text/Text.js.map +1 -1
  219. package/build/lib/native/components/index.js +6 -0
  220. package/build/lib/native/components/index.js.map +1 -1
  221. package/build/lib/native/tokens/global/motion.js +1 -1
  222. package/build/lib/native/tokens/global/motion.js.map +1 -1
  223. package/build/lib/native/utils/getMotionRefs.js +4 -0
  224. package/build/lib/native/utils/getMotionRefs.js.map +1 -0
  225. package/build/lib/web/development/components/Accordion/Accordion.js +6 -3
  226. package/build/lib/web/development/components/Accordion/Accordion.js.map +1 -1
  227. package/build/lib/web/development/components/Accordion/commonStyles.js +1 -1
  228. package/build/lib/web/development/components/Accordion/commonStyles.js.map +1 -1
  229. package/build/lib/web/development/components/ActionList/ActionList.js +3 -0
  230. package/build/lib/web/development/components/ActionList/ActionList.js.map +1 -1
  231. package/build/lib/web/development/components/Alert/Alert.js +6 -3
  232. package/build/lib/web/development/components/Alert/Alert.js.map +1 -1
  233. package/build/lib/web/development/components/Amount/Amount.js +3 -2
  234. package/build/lib/web/development/components/Amount/Amount.js.map +1 -1
  235. package/build/lib/web/development/components/AnimateInteractions/AnimateInteractionsProvider.js +12 -0
  236. package/build/lib/web/development/components/AnimateInteractions/AnimateInteractionsProvider.js.map +1 -0
  237. package/build/lib/web/development/components/Badge/Badge.js +4 -2
  238. package/build/lib/web/development/components/Badge/Badge.js.map +1 -1
  239. package/build/lib/web/development/components/BaseMotion/BaseMotion.js +123 -0
  240. package/build/lib/web/development/components/BaseMotion/BaseMotion.js.map +1 -0
  241. package/build/lib/web/development/components/BaseMotion/baseMotionUtils.js +60 -0
  242. package/build/lib/web/development/components/BaseMotion/baseMotionUtils.js.map +1 -0
  243. package/build/lib/web/development/components/BaseMotion/index.js +3 -0
  244. package/build/lib/web/development/components/BaseMotion/index.js.map +1 -0
  245. package/build/lib/web/development/components/BaseMotion/types.js +2 -0
  246. package/build/lib/web/development/components/BaseMotion/types.js.map +1 -0
  247. package/build/lib/web/development/components/BottomNav/BottomNav.web.js +4 -2
  248. package/build/lib/web/development/components/BottomNav/BottomNav.web.js.map +1 -1
  249. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js +1 -1
  250. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js.map +1 -1
  251. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js +1 -1
  252. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  253. package/build/lib/web/development/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  254. package/build/lib/web/development/components/Box/Box.js +2 -2
  255. package/build/lib/web/development/components/Box/Box.js.map +1 -1
  256. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js +3 -1
  257. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js.map +1 -1
  258. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js +1 -1
  259. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js.map +1 -1
  260. package/build/lib/web/development/components/Button/IconButton/StyledIconButton.web.js +1 -1
  261. package/build/lib/web/development/components/Button/IconButton/StyledIconButton.web.js.map +1 -1
  262. package/build/lib/web/development/components/ButtonGroup/ButtonGroup.web.js +3 -2
  263. package/build/lib/web/development/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  264. package/build/lib/web/development/components/Card/Card.js +3 -1
  265. package/build/lib/web/development/components/Card/Card.js.map +1 -1
  266. package/build/lib/web/development/components/Card/CardRoot.web.js +6 -4
  267. package/build/lib/web/development/components/Card/CardRoot.web.js.map +1 -1
  268. package/build/lib/web/development/components/Carousel/Carousel.web.js +6 -3
  269. package/build/lib/web/development/components/Carousel/Carousel.web.js.map +1 -1
  270. package/build/lib/web/development/components/Carousel/Indicators/getIndicatorButtonStyles.js +1 -1
  271. package/build/lib/web/development/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  272. package/build/lib/web/development/components/Carousel/NavigationButton/getNavigationButtonStyles.js +1 -1
  273. package/build/lib/web/development/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  274. package/build/lib/web/development/components/Checkbox/Checkbox.js +13 -3
  275. package/build/lib/web/development/components/Checkbox/Checkbox.js.map +1 -1
  276. package/build/lib/web/development/components/Checkbox/CheckboxIcon/Fade.web.js +2 -2
  277. package/build/lib/web/development/components/Checkbox/CheckboxIcon/Fade.web.js.map +1 -1
  278. package/build/lib/web/development/components/Chip/Chip.js +11 -2
  279. package/build/lib/web/development/components/Chip/Chip.js.map +1 -1
  280. package/build/lib/web/development/components/Chip/ChipGroup.js +5 -2
  281. package/build/lib/web/development/components/Chip/ChipGroup.js.map +1 -1
  282. package/build/lib/web/development/components/Chip/chipTokens.js +1 -1
  283. package/build/lib/web/development/components/Chip/chipTokens.js.map +1 -1
  284. package/build/lib/web/development/components/Collapsible/Collapsible.js +6 -3
  285. package/build/lib/web/development/components/Collapsible/Collapsible.js.map +1 -1
  286. package/build/lib/web/development/components/Collapsible/commonStyles.js +2 -2
  287. package/build/lib/web/development/components/Collapsible/commonStyles.js.map +1 -1
  288. package/build/lib/web/development/components/Counter/Counter.js +4 -2
  289. package/build/lib/web/development/components/Counter/Counter.js.map +1 -1
  290. package/build/lib/web/development/components/Divider/Divider.js +4 -2
  291. package/build/lib/web/development/components/Divider/Divider.js.map +1 -1
  292. package/build/lib/web/development/components/Drawer/Drawer.web.js +4 -4
  293. package/build/lib/web/development/components/Drawer/Drawer.web.js.map +1 -1
  294. package/build/lib/web/development/components/Dropdown/Dropdown.js +4 -3
  295. package/build/lib/web/development/components/Dropdown/Dropdown.js.map +1 -1
  296. package/build/lib/web/development/components/Fade/Fade.web.js +62 -0
  297. package/build/lib/web/development/components/Fade/Fade.web.js.map +1 -0
  298. package/build/lib/web/development/components/Fade/index.js +2 -0
  299. package/build/lib/web/development/components/Fade/index.js.map +1 -0
  300. package/build/lib/web/development/components/FileUpload/FileUpload.web.js +11 -2
  301. package/build/lib/web/development/components/FileUpload/FileUpload.web.js.map +1 -1
  302. package/build/lib/web/development/components/FileUpload/fileUploadTokens.js +1 -1
  303. package/build/lib/web/development/components/FileUpload/fileUploadTokens.js.map +1 -1
  304. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js +1 -1
  305. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js.map +1 -1
  306. package/build/lib/web/development/components/Icons/RayIcon/RayIcon.js +37 -0
  307. package/build/lib/web/development/components/Icons/RayIcon/RayIcon.js.map +1 -0
  308. package/build/lib/web/development/components/Icons/RayIcon/index.js +2 -0
  309. package/build/lib/web/development/components/Icons/RayIcon/index.js.map +1 -0
  310. package/build/lib/web/development/components/Icons/index.js +1 -0
  311. package/build/lib/web/development/components/Icons/index.js.map +1 -1
  312. package/build/lib/web/development/components/Indicator/Indicator.js +4 -2
  313. package/build/lib/web/development/components/Indicator/Indicator.js.map +1 -1
  314. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +3 -3
  315. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  316. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +21 -7
  317. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  318. package/build/lib/web/development/components/Input/BaseInput/baseInputTokens.js +2 -2
  319. package/build/lib/web/development/components/Input/BaseInput/baseInputTokens.js.map +1 -1
  320. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js +1 -1
  321. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js.map +1 -1
  322. package/build/lib/web/development/components/List/List.js +5 -3
  323. package/build/lib/web/development/components/List/List.js.map +1 -1
  324. package/build/lib/web/development/components/Modal/Modal.web.js +2 -2
  325. package/build/lib/web/development/components/Modal/Modal.web.js.map +1 -1
  326. package/build/lib/web/development/components/Modal/ModalBackdrop.js +2 -2
  327. package/build/lib/web/development/components/Modal/ModalBackdrop.js.map +1 -1
  328. package/build/lib/web/development/components/Morph/Morph.web.js +48 -0
  329. package/build/lib/web/development/components/Morph/Morph.web.js.map +1 -0
  330. package/build/lib/web/development/components/Morph/index.js +2 -0
  331. package/build/lib/web/development/components/Morph/index.js.map +1 -0
  332. package/build/lib/web/development/components/Move/Move.web.js +66 -0
  333. package/build/lib/web/development/components/Move/Move.web.js.map +1 -0
  334. package/build/lib/web/development/components/Move/index.js +2 -0
  335. package/build/lib/web/development/components/Move/index.js.map +1 -0
  336. package/build/lib/web/development/components/ProgressBar/CircularProgressBar.web.js +1 -1
  337. package/build/lib/web/development/components/ProgressBar/CircularProgressBar.web.js.map +1 -1
  338. package/build/lib/web/development/components/ProgressBar/ProgressBar.js +8 -4
  339. package/build/lib/web/development/components/ProgressBar/ProgressBar.js.map +1 -1
  340. package/build/lib/web/development/components/Radio/Radio.js +13 -3
  341. package/build/lib/web/development/components/Radio/Radio.js.map +1 -1
  342. package/build/lib/web/development/components/Radio/RadioIcon/Fade.web.js +3 -3
  343. package/build/lib/web/development/components/Radio/RadioIcon/Fade.web.js.map +1 -1
  344. package/build/lib/web/development/components/Radio/RadioIcon/RadioIconWrapperStyles.js +1 -1
  345. package/build/lib/web/development/components/Radio/RadioIcon/RadioIconWrapperStyles.js.map +1 -1
  346. package/build/lib/web/development/components/Scale/Scale.web.js +47 -0
  347. package/build/lib/web/development/components/Scale/Scale.web.js.map +1 -0
  348. package/build/lib/web/development/components/Scale/index.js +2 -0
  349. package/build/lib/web/development/components/Scale/index.js.map +1 -0
  350. package/build/lib/web/development/components/SideNav/SideNav.web.js +7 -5
  351. package/build/lib/web/development/components/SideNav/SideNav.web.js.map +1 -1
  352. package/build/lib/web/development/components/SideNav/tokens.js +1 -1
  353. package/build/lib/web/development/components/SideNav/tokens.js.map +1 -1
  354. package/build/lib/web/development/components/Skeleton/PulseAnimation.web.js +1 -1
  355. package/build/lib/web/development/components/Skeleton/PulseAnimation.web.js.map +1 -1
  356. package/build/lib/web/development/components/Skeleton/Skeleton.js +4 -1
  357. package/build/lib/web/development/components/Skeleton/Skeleton.js.map +1 -1
  358. package/build/lib/web/development/components/Slide/Slide.web.js +119 -0
  359. package/build/lib/web/development/components/Slide/Slide.web.js.map +1 -0
  360. package/build/lib/web/development/components/Slide/index.js +2 -0
  361. package/build/lib/web/development/components/Slide/index.js.map +1 -0
  362. package/build/lib/web/development/components/Spinner/BaseSpinner/BaseSpinner.js +6 -3
  363. package/build/lib/web/development/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  364. package/build/lib/web/development/components/Spinner/BaseSpinner/spinnerTokens.js +1 -1
  365. package/build/lib/web/development/components/Spinner/BaseSpinner/spinnerTokens.js.map +1 -1
  366. package/build/lib/web/development/components/Spinner/Spinner/Spinner.js +4 -1
  367. package/build/lib/web/development/components/Spinner/Spinner/Spinner.js.map +1 -1
  368. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js +2 -2
  369. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  370. package/build/lib/web/development/components/Stagger/StaggerProvider.js +13 -0
  371. package/build/lib/web/development/components/Stagger/StaggerProvider.js.map +1 -0
  372. package/build/lib/web/development/components/StepGroup/StepGroup.web.js +5 -3
  373. package/build/lib/web/development/components/StepGroup/StepGroup.web.js.map +1 -1
  374. package/build/lib/web/development/components/StepGroup/StepItem.web.js +1 -1
  375. package/build/lib/web/development/components/StepGroup/StepItem.web.js.map +1 -1
  376. package/build/lib/web/development/components/Switch/AnimatedThumbIcon.web.js +1 -1
  377. package/build/lib/web/development/components/Switch/AnimatedThumbIcon.web.js.map +1 -1
  378. package/build/lib/web/development/components/Switch/Switch.js +13 -3
  379. package/build/lib/web/development/components/Switch/Switch.js.map +1 -1
  380. package/build/lib/web/development/components/Switch/getTrackStyles.js +1 -1
  381. package/build/lib/web/development/components/Switch/getTrackStyles.js.map +1 -1
  382. package/build/lib/web/development/components/Switch/switchTokens.js +6 -6
  383. package/build/lib/web/development/components/Switch/switchTokens.js.map +1 -1
  384. package/build/lib/web/development/components/Table/Table.web.js +4 -2
  385. package/build/lib/web/development/components/Table/Table.web.js.map +1 -1
  386. package/build/lib/web/development/components/Table/tokens.js +2 -2
  387. package/build/lib/web/development/components/Table/tokens.js.map +1 -1
  388. package/build/lib/web/development/components/Tabs/TabIndicator.web.js +1 -1
  389. package/build/lib/web/development/components/Tabs/TabIndicator.web.js.map +1 -1
  390. package/build/lib/web/development/components/Tabs/TabItem.web.js +2 -2
  391. package/build/lib/web/development/components/Tabs/TabItem.web.js.map +1 -1
  392. package/build/lib/web/development/components/Tabs/Tabs.web.js +34 -1
  393. package/build/lib/web/development/components/Tabs/Tabs.web.js.map +1 -1
  394. package/build/lib/web/development/components/Tag/AnimatedTag.web.js +2 -2
  395. package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
  396. package/build/lib/web/development/components/Tag/Tag.js +31 -29
  397. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  398. package/build/lib/web/development/components/Toast/Toast.web.js +2 -2
  399. package/build/lib/web/development/components/Toast/Toast.web.js.map +1 -1
  400. package/build/lib/web/development/components/Toast/ToastContainer.web.js +1 -1
  401. package/build/lib/web/development/components/Toast/ToastContainer.web.js.map +1 -1
  402. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js +2 -2
  403. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  404. package/build/lib/web/development/components/TopNav/TopNav.web.js +4 -2
  405. package/build/lib/web/development/components/TopNav/TopNav.web.js.map +1 -1
  406. package/build/lib/web/development/components/Typography/Code/Code.js +30 -27
  407. package/build/lib/web/development/components/Typography/Code/Code.js.map +1 -1
  408. package/build/lib/web/development/components/Typography/Display/Display.js +6 -2
  409. package/build/lib/web/development/components/Typography/Display/Display.js.map +1 -1
  410. package/build/lib/web/development/components/Typography/Heading/Heading.js +4 -1
  411. package/build/lib/web/development/components/Typography/Heading/Heading.js.map +1 -1
  412. package/build/lib/web/development/components/Typography/Text/Text.js +6 -10
  413. package/build/lib/web/development/components/Typography/Text/Text.js.map +1 -1
  414. package/build/lib/web/development/components/index.js +11 -0
  415. package/build/lib/web/development/components/index.js.map +1 -1
  416. package/build/lib/web/development/tokens/global/motion.js +22 -28
  417. package/build/lib/web/development/tokens/global/motion.js.map +1 -1
  418. package/build/lib/web/development/utils/cssBezierToArray.js +12 -0
  419. package/build/lib/web/development/utils/cssBezierToArray.js.map +1 -0
  420. package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js +1 -1
  421. package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -1
  422. package/build/lib/web/development/utils/getMotionRefs.js +86 -0
  423. package/build/lib/web/development/utils/getMotionRefs.js.map +1 -0
  424. package/build/lib/web/development/utils/msToSeconds.js +6 -0
  425. package/build/lib/web/development/utils/msToSeconds.js.map +1 -0
  426. package/build/lib/web/production/components/Accordion/Accordion.js +6 -3
  427. package/build/lib/web/production/components/Accordion/Accordion.js.map +1 -1
  428. package/build/lib/web/production/components/Accordion/commonStyles.js +1 -1
  429. package/build/lib/web/production/components/Accordion/commonStyles.js.map +1 -1
  430. package/build/lib/web/production/components/ActionList/ActionList.js +3 -0
  431. package/build/lib/web/production/components/ActionList/ActionList.js.map +1 -1
  432. package/build/lib/web/production/components/Alert/Alert.js +6 -3
  433. package/build/lib/web/production/components/Alert/Alert.js.map +1 -1
  434. package/build/lib/web/production/components/Amount/Amount.js +3 -2
  435. package/build/lib/web/production/components/Amount/Amount.js.map +1 -1
  436. package/build/lib/web/production/components/AnimateInteractions/AnimateInteractionsProvider.js +12 -0
  437. package/build/lib/web/production/components/AnimateInteractions/AnimateInteractionsProvider.js.map +1 -0
  438. package/build/lib/web/production/components/Badge/Badge.js +4 -2
  439. package/build/lib/web/production/components/Badge/Badge.js.map +1 -1
  440. package/build/lib/web/production/components/BaseMotion/BaseMotion.js +123 -0
  441. package/build/lib/web/production/components/BaseMotion/BaseMotion.js.map +1 -0
  442. package/build/lib/web/production/components/BaseMotion/baseMotionUtils.js +60 -0
  443. package/build/lib/web/production/components/BaseMotion/baseMotionUtils.js.map +1 -0
  444. package/build/lib/web/production/components/BaseMotion/index.js +3 -0
  445. package/build/lib/web/production/components/BaseMotion/index.js.map +1 -0
  446. package/build/lib/web/production/components/BaseMotion/types.js +2 -0
  447. package/build/lib/web/production/components/BaseMotion/types.js.map +1 -0
  448. package/build/lib/web/production/components/BottomNav/BottomNav.web.js +4 -2
  449. package/build/lib/web/production/components/BottomNav/BottomNav.web.js.map +1 -1
  450. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +1 -1
  451. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  452. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js +1 -1
  453. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  454. package/build/lib/web/production/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  455. package/build/lib/web/production/components/Box/Box.js +2 -2
  456. package/build/lib/web/production/components/Box/Box.js.map +1 -1
  457. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js +3 -1
  458. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js.map +1 -1
  459. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js +1 -1
  460. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js.map +1 -1
  461. package/build/lib/web/production/components/Button/IconButton/StyledIconButton.web.js +1 -1
  462. package/build/lib/web/production/components/Button/IconButton/StyledIconButton.web.js.map +1 -1
  463. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js +3 -2
  464. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  465. package/build/lib/web/production/components/Card/Card.js +3 -1
  466. package/build/lib/web/production/components/Card/Card.js.map +1 -1
  467. package/build/lib/web/production/components/Card/CardRoot.web.js +6 -4
  468. package/build/lib/web/production/components/Card/CardRoot.web.js.map +1 -1
  469. package/build/lib/web/production/components/Carousel/Carousel.web.js +6 -3
  470. package/build/lib/web/production/components/Carousel/Carousel.web.js.map +1 -1
  471. package/build/lib/web/production/components/Carousel/Indicators/getIndicatorButtonStyles.js +1 -1
  472. package/build/lib/web/production/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  473. package/build/lib/web/production/components/Carousel/NavigationButton/getNavigationButtonStyles.js +1 -1
  474. package/build/lib/web/production/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  475. package/build/lib/web/production/components/Checkbox/Checkbox.js +13 -3
  476. package/build/lib/web/production/components/Checkbox/Checkbox.js.map +1 -1
  477. package/build/lib/web/production/components/Checkbox/CheckboxIcon/Fade.web.js +2 -2
  478. package/build/lib/web/production/components/Checkbox/CheckboxIcon/Fade.web.js.map +1 -1
  479. package/build/lib/web/production/components/Chip/Chip.js +11 -2
  480. package/build/lib/web/production/components/Chip/Chip.js.map +1 -1
  481. package/build/lib/web/production/components/Chip/ChipGroup.js +5 -2
  482. package/build/lib/web/production/components/Chip/ChipGroup.js.map +1 -1
  483. package/build/lib/web/production/components/Chip/chipTokens.js +1 -1
  484. package/build/lib/web/production/components/Chip/chipTokens.js.map +1 -1
  485. package/build/lib/web/production/components/Collapsible/Collapsible.js +6 -3
  486. package/build/lib/web/production/components/Collapsible/Collapsible.js.map +1 -1
  487. package/build/lib/web/production/components/Collapsible/commonStyles.js +2 -2
  488. package/build/lib/web/production/components/Collapsible/commonStyles.js.map +1 -1
  489. package/build/lib/web/production/components/Counter/Counter.js +4 -2
  490. package/build/lib/web/production/components/Counter/Counter.js.map +1 -1
  491. package/build/lib/web/production/components/Divider/Divider.js +4 -2
  492. package/build/lib/web/production/components/Divider/Divider.js.map +1 -1
  493. package/build/lib/web/production/components/Drawer/Drawer.web.js +4 -4
  494. package/build/lib/web/production/components/Drawer/Drawer.web.js.map +1 -1
  495. package/build/lib/web/production/components/Dropdown/Dropdown.js +4 -3
  496. package/build/lib/web/production/components/Dropdown/Dropdown.js.map +1 -1
  497. package/build/lib/web/production/components/Fade/Fade.web.js +62 -0
  498. package/build/lib/web/production/components/Fade/Fade.web.js.map +1 -0
  499. package/build/lib/web/production/components/Fade/index.js +2 -0
  500. package/build/lib/web/production/components/Fade/index.js.map +1 -0
  501. package/build/lib/web/production/components/FileUpload/FileUpload.web.js +11 -2
  502. package/build/lib/web/production/components/FileUpload/FileUpload.web.js.map +1 -1
  503. package/build/lib/web/production/components/FileUpload/fileUploadTokens.js +1 -1
  504. package/build/lib/web/production/components/FileUpload/fileUploadTokens.js.map +1 -1
  505. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js +1 -1
  506. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js.map +1 -1
  507. package/build/lib/web/production/components/Icons/RayIcon/RayIcon.js +37 -0
  508. package/build/lib/web/production/components/Icons/RayIcon/RayIcon.js.map +1 -0
  509. package/build/lib/web/production/components/Icons/RayIcon/index.js +2 -0
  510. package/build/lib/web/production/components/Icons/RayIcon/index.js.map +1 -0
  511. package/build/lib/web/production/components/Icons/index.js +1 -0
  512. package/build/lib/web/production/components/Icons/index.js.map +1 -1
  513. package/build/lib/web/production/components/Indicator/Indicator.js +4 -2
  514. package/build/lib/web/production/components/Indicator/Indicator.js.map +1 -1
  515. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +3 -3
  516. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  517. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +21 -7
  518. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  519. package/build/lib/web/production/components/Input/BaseInput/baseInputTokens.js +2 -2
  520. package/build/lib/web/production/components/Input/BaseInput/baseInputTokens.js.map +1 -1
  521. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js +1 -1
  522. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js.map +1 -1
  523. package/build/lib/web/production/components/List/List.js +5 -3
  524. package/build/lib/web/production/components/List/List.js.map +1 -1
  525. package/build/lib/web/production/components/Modal/Modal.web.js +2 -2
  526. package/build/lib/web/production/components/Modal/Modal.web.js.map +1 -1
  527. package/build/lib/web/production/components/Modal/ModalBackdrop.js +2 -2
  528. package/build/lib/web/production/components/Modal/ModalBackdrop.js.map +1 -1
  529. package/build/lib/web/production/components/Morph/Morph.web.js +48 -0
  530. package/build/lib/web/production/components/Morph/Morph.web.js.map +1 -0
  531. package/build/lib/web/production/components/Morph/index.js +2 -0
  532. package/build/lib/web/production/components/Morph/index.js.map +1 -0
  533. package/build/lib/web/production/components/Move/Move.web.js +66 -0
  534. package/build/lib/web/production/components/Move/Move.web.js.map +1 -0
  535. package/build/lib/web/production/components/Move/index.js +2 -0
  536. package/build/lib/web/production/components/Move/index.js.map +1 -0
  537. package/build/lib/web/production/components/ProgressBar/CircularProgressBar.web.js +1 -1
  538. package/build/lib/web/production/components/ProgressBar/CircularProgressBar.web.js.map +1 -1
  539. package/build/lib/web/production/components/ProgressBar/ProgressBar.js +8 -4
  540. package/build/lib/web/production/components/ProgressBar/ProgressBar.js.map +1 -1
  541. package/build/lib/web/production/components/Radio/Radio.js +13 -3
  542. package/build/lib/web/production/components/Radio/Radio.js.map +1 -1
  543. package/build/lib/web/production/components/Radio/RadioIcon/Fade.web.js +3 -3
  544. package/build/lib/web/production/components/Radio/RadioIcon/Fade.web.js.map +1 -1
  545. package/build/lib/web/production/components/Radio/RadioIcon/RadioIconWrapperStyles.js +1 -1
  546. package/build/lib/web/production/components/Radio/RadioIcon/RadioIconWrapperStyles.js.map +1 -1
  547. package/build/lib/web/production/components/Scale/Scale.web.js +47 -0
  548. package/build/lib/web/production/components/Scale/Scale.web.js.map +1 -0
  549. package/build/lib/web/production/components/Scale/index.js +2 -0
  550. package/build/lib/web/production/components/Scale/index.js.map +1 -0
  551. package/build/lib/web/production/components/SideNav/SideNav.web.js +7 -5
  552. package/build/lib/web/production/components/SideNav/SideNav.web.js.map +1 -1
  553. package/build/lib/web/production/components/SideNav/tokens.js +1 -1
  554. package/build/lib/web/production/components/SideNav/tokens.js.map +1 -1
  555. package/build/lib/web/production/components/Skeleton/PulseAnimation.web.js +1 -1
  556. package/build/lib/web/production/components/Skeleton/PulseAnimation.web.js.map +1 -1
  557. package/build/lib/web/production/components/Skeleton/Skeleton.js +4 -1
  558. package/build/lib/web/production/components/Skeleton/Skeleton.js.map +1 -1
  559. package/build/lib/web/production/components/Slide/Slide.web.js +119 -0
  560. package/build/lib/web/production/components/Slide/Slide.web.js.map +1 -0
  561. package/build/lib/web/production/components/Slide/index.js +2 -0
  562. package/build/lib/web/production/components/Slide/index.js.map +1 -0
  563. package/build/lib/web/production/components/Spinner/BaseSpinner/BaseSpinner.js +6 -3
  564. package/build/lib/web/production/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  565. package/build/lib/web/production/components/Spinner/BaseSpinner/spinnerTokens.js +1 -1
  566. package/build/lib/web/production/components/Spinner/BaseSpinner/spinnerTokens.js.map +1 -1
  567. package/build/lib/web/production/components/Spinner/Spinner/Spinner.js +4 -1
  568. package/build/lib/web/production/components/Spinner/Spinner/Spinner.js.map +1 -1
  569. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js +2 -2
  570. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  571. package/build/lib/web/production/components/Stagger/StaggerProvider.js +13 -0
  572. package/build/lib/web/production/components/Stagger/StaggerProvider.js.map +1 -0
  573. package/build/lib/web/production/components/StepGroup/StepGroup.web.js +5 -3
  574. package/build/lib/web/production/components/StepGroup/StepGroup.web.js.map +1 -1
  575. package/build/lib/web/production/components/StepGroup/StepItem.web.js +1 -1
  576. package/build/lib/web/production/components/StepGroup/StepItem.web.js.map +1 -1
  577. package/build/lib/web/production/components/Switch/AnimatedThumbIcon.web.js +1 -1
  578. package/build/lib/web/production/components/Switch/AnimatedThumbIcon.web.js.map +1 -1
  579. package/build/lib/web/production/components/Switch/Switch.js +13 -3
  580. package/build/lib/web/production/components/Switch/Switch.js.map +1 -1
  581. package/build/lib/web/production/components/Switch/getTrackStyles.js +1 -1
  582. package/build/lib/web/production/components/Switch/getTrackStyles.js.map +1 -1
  583. package/build/lib/web/production/components/Switch/switchTokens.js +6 -6
  584. package/build/lib/web/production/components/Switch/switchTokens.js.map +1 -1
  585. package/build/lib/web/production/components/Table/Table.web.js +4 -2
  586. package/build/lib/web/production/components/Table/Table.web.js.map +1 -1
  587. package/build/lib/web/production/components/Table/tokens.js +2 -2
  588. package/build/lib/web/production/components/Table/tokens.js.map +1 -1
  589. package/build/lib/web/production/components/Tabs/TabIndicator.web.js +1 -1
  590. package/build/lib/web/production/components/Tabs/TabIndicator.web.js.map +1 -1
  591. package/build/lib/web/production/components/Tabs/TabItem.web.js +2 -2
  592. package/build/lib/web/production/components/Tabs/TabItem.web.js.map +1 -1
  593. package/build/lib/web/production/components/Tabs/Tabs.web.js +34 -1
  594. package/build/lib/web/production/components/Tabs/Tabs.web.js.map +1 -1
  595. package/build/lib/web/production/components/Tag/AnimatedTag.web.js +2 -2
  596. package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
  597. package/build/lib/web/production/components/Tag/Tag.js +31 -29
  598. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  599. package/build/lib/web/production/components/Toast/Toast.web.js +2 -2
  600. package/build/lib/web/production/components/Toast/Toast.web.js.map +1 -1
  601. package/build/lib/web/production/components/Toast/ToastContainer.web.js +1 -1
  602. package/build/lib/web/production/components/Toast/ToastContainer.web.js.map +1 -1
  603. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js +2 -2
  604. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  605. package/build/lib/web/production/components/TopNav/TopNav.web.js +4 -2
  606. package/build/lib/web/production/components/TopNav/TopNav.web.js.map +1 -1
  607. package/build/lib/web/production/components/Typography/Code/Code.js +30 -27
  608. package/build/lib/web/production/components/Typography/Code/Code.js.map +1 -1
  609. package/build/lib/web/production/components/Typography/Display/Display.js +6 -2
  610. package/build/lib/web/production/components/Typography/Display/Display.js.map +1 -1
  611. package/build/lib/web/production/components/Typography/Heading/Heading.js +4 -1
  612. package/build/lib/web/production/components/Typography/Heading/Heading.js.map +1 -1
  613. package/build/lib/web/production/components/Typography/Text/Text.js +6 -10
  614. package/build/lib/web/production/components/Typography/Text/Text.js.map +1 -1
  615. package/build/lib/web/production/components/index.js +11 -0
  616. package/build/lib/web/production/components/index.js.map +1 -1
  617. package/build/lib/web/production/tokens/global/motion.js +22 -28
  618. package/build/lib/web/production/tokens/global/motion.js.map +1 -1
  619. package/build/lib/web/production/utils/cssBezierToArray.js +12 -0
  620. package/build/lib/web/production/utils/cssBezierToArray.js.map +1 -0
  621. package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js +1 -1
  622. package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -1
  623. package/build/lib/web/production/utils/getMotionRefs.js +86 -0
  624. package/build/lib/web/production/utils/getMotionRefs.js.map +1 -0
  625. package/build/lib/web/production/utils/msToSeconds.js +6 -0
  626. package/build/lib/web/production/utils/msToSeconds.js.map +1 -0
  627. package/build/types/components/index.d.ts +17969 -5488
  628. package/build/types/components/index.native.d.ts +7924 -2157
  629. package/build/types/tokens/index.d.ts +103 -93
  630. package/build/types/tokens/index.native.d.ts +103 -93
  631. package/build/types/utils/index.d.ts +84 -71
  632. package/build/types/utils/index.native.d.ts +84 -71
  633. package/codemods/migrate-motion-tokens/transformers/__tests__/migrate-motion-tokens.test.ts +130 -0
  634. package/codemods/migrate-motion-tokens/transformers/index.ts +1 -0
  635. package/codemods/migrate-motion-tokens/transformers/migrate-motion.ts +24 -0
  636. package/codemods/migrate-motion-tokens/transformers/motionTokenMapping.json +11 -0
  637. package/package.json +3 -1
@@ -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 '../BaseText/index.js';
5
5
  import { useValidateAsProp } from '../utils.js';
6
6
  import '../../Box/styledProps/index.js';
@@ -16,12 +16,6 @@ var _excluded = ["as", "variant", "weight", "size", "truncateAfterLines", "child
16
16
  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; }
17
17
  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; }
18
18
  var validAsValues = ['p', 'span', 'div', 'abbr', 'figcaption', 'cite', 'q', 'label'];
19
-
20
- /**
21
- * Conditionally changing props based on variant.
22
- * Overloads or union gives wrong intellisense.
23
- */
24
-
25
19
  var getTextProps = function getTextProps(_ref) {
26
20
  var variant = _ref.variant,
27
21
  weight = _ref.weight,
@@ -91,7 +85,7 @@ var getTextProps = function getTextProps(_ref) {
91
85
  }
92
86
  return props;
93
87
  };
94
- var _Text = function _Text(_ref2) {
88
+ var _Text = function _Text(_ref2, ref) {
95
89
  var _ref2$as = _ref2.as,
96
90
  as = _ref2$as === void 0 ? 'p' : _ref2$as,
97
91
  _ref2$variant = _ref2.variant,
@@ -125,11 +119,13 @@ var _Text = function _Text(_ref2) {
125
119
  as: as,
126
120
  validAsValues: validAsValues
127
121
  });
128
- return /*#__PURE__*/jsx(BaseText, _objectSpread(_objectSpread(_objectSpread({}, props), getStyledProps(styledProps)), {}, {
122
+ return /*#__PURE__*/jsx(BaseText, _objectSpread(_objectSpread(_objectSpread({
123
+ ref: ref
124
+ }, props), getStyledProps(styledProps)), {}, {
129
125
  children: children
130
126
  }));
131
127
  };
132
- var Text = /*#__PURE__*/assignWithoutSideEffects(_Text, {
128
+ var Text = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_Text), {
133
129
  displayName: 'Text',
134
130
  componentId: 'Text'
135
131
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","sources":["../../../../../../../src/components/Typography/Text/Text.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */\nimport type { ReactElement } from 'react';\nimport React from 'react';\nimport { BaseText } from '../BaseText';\nimport type { BaseTextProps, BaseTextSizes } from '../BaseText/types';\nimport { useValidateAsProp } from '../utils';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport type { TestID } from '~utils/types';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { throwBladeError } from '~utils/logger';\n\nconst validAsValues = ['p', 'span', 'div', 'abbr', 'figcaption', 'cite', 'q', 'label'] as const;\ntype TextCommonProps = {\n as?: typeof validAsValues[number];\n truncateAfterLines?: number;\n children: React.ReactNode;\n weight?: Extract<BaseTextProps['fontWeight'], 'regular' | 'medium' | 'semibold'>;\n /**\n * Overrides the color of the Text component.\n *\n * **Note** This takes priority over `type` and `contrast` prop to decide color of text\n */\n color?: BaseTextProps['color'];\n textAlign?: BaseTextProps['textAlign'];\n textDecorationLine?: BaseTextProps['textDecorationLine'];\n wordBreak?: BaseTextProps['wordBreak'];\n} & TestID &\n StyledPropsBlade;\n\nexport type TextVariant = 'body' | 'caption';\n\ntype TextBodyVariant = TextCommonProps & {\n variant?: Extract<TextVariant, 'body'>;\n size?: Extract<BaseTextSizes, 'xsmall' | 'small' | 'medium' | 'large'>;\n};\n\ntype TextCaptionVariant = TextCommonProps & {\n variant?: Extract<TextVariant, 'caption'>;\n size?: Extract<BaseTextSizes, 'small' | 'medium'>;\n};\n\n/**\n * Conditionally changing props based on variant.\n * Overloads or union gives wrong intellisense.\n */\nexport type TextProps<T> = T extends {\n variant: infer Variant;\n}\n ? Variant extends 'caption'\n ? TextCaptionVariant\n : Variant extends 'body'\n ? TextBodyVariant\n : T\n : T;\n\ntype GetTextPropsReturn = Omit<BaseTextProps, 'children'>;\ntype GetTextProps<T extends { variant: TextVariant }> = Pick<\n TextProps<T>,\n 'variant' | 'weight' | 'size' | 'color' | 'testID' | 'textAlign' | 'textDecorationLine'\n>;\n\nconst getTextProps = <T extends { variant: TextVariant }>({\n variant,\n weight,\n size,\n color = 'surface.text.gray.normal',\n testID,\n textAlign,\n textDecorationLine,\n}: GetTextProps<T>): GetTextPropsReturn => {\n const props: GetTextPropsReturn = {\n color,\n fontSize: 100,\n fontWeight: weight ?? 'regular',\n fontStyle: 'normal',\n lineHeight: 100,\n fontFamily: 'text',\n componentName: 'text',\n testID,\n textAlign,\n textDecorationLine,\n };\n\n if (variant === 'caption') {\n // variant of caption can only have size of small\n if (size && size !== 'small' && size !== 'medium') {\n if (__DEV__) {\n throwBladeError({\n moduleName: 'Text',\n message: `size cannot be '${size}' when variant is 'caption'`,\n });\n }\n // Set size as small in case of invalid size\n size = 'small';\n }\n } else if (variant !== 'caption' && !size) {\n size = 'medium';\n }\n\n if (variant === 'body') {\n if (size === 'xsmall') {\n props.fontSize = 25;\n props.lineHeight = 25;\n }\n if (size === 'small') {\n props.fontSize = 75;\n props.lineHeight = 75;\n }\n if (size === 'medium') {\n props.fontSize = 100;\n props.lineHeight = 100;\n }\n if (size === 'large') {\n props.fontSize = 200;\n props.lineHeight = 200;\n }\n }\n if (variant === 'caption') {\n if (size === 'small') {\n props.fontSize = 50;\n props.lineHeight = 50;\n props.fontWeight = 'regular';\n }\n if (size === 'medium') {\n props.fontSize = 100;\n props.lineHeight = 50;\n props.fontWeight = 'regular';\n }\n props.fontStyle = 'italic';\n }\n\n return props;\n};\n\nconst _Text = <T extends { variant: TextVariant }>({\n as = 'p',\n variant = 'body',\n weight = 'regular',\n size,\n truncateAfterLines,\n children,\n color,\n testID,\n textAlign,\n textDecorationLine,\n wordBreak,\n ...styledProps\n}: TextProps<T>): ReactElement => {\n const props: Omit<BaseTextProps, 'children'> = {\n as,\n truncateAfterLines,\n wordBreak,\n ...getTextProps({\n variant,\n weight,\n color,\n size,\n testID,\n textAlign,\n textDecorationLine,\n }),\n };\n\n useValidateAsProp({ componentName: 'Text', as, validAsValues });\n\n return (\n <BaseText {...props} {...getStyledProps(styledProps)}>\n {children}\n </BaseText>\n );\n};\n\nconst Text = assignWithoutSideEffects(_Text, {\n displayName: 'Text',\n componentId: 'Text',\n});\n\nexport { Text, getTextProps };\n"],"names":["validAsValues","getTextProps","_ref","variant","weight","size","_ref$color","color","testID","textAlign","textDecorationLine","props","fontSize","fontWeight","fontStyle","lineHeight","fontFamily","componentName","throwBladeError","moduleName","message","concat","_Text","_ref2","_ref2$as","as","_ref2$variant","_ref2$weight","truncateAfterLines","children","wordBreak","styledProps","_objectWithoutProperties","_excluded","_objectSpread","useValidateAsProp","_jsx","BaseText","getStyledProps","Text","assignWithoutSideEffects","displayName","componentId"],"mappings":"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"}
1
+ {"version":3,"file":"Text.js","sources":["../../../../../../../src/components/Typography/Text/Text.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */\nimport type { ReactElement } from 'react';\nimport React from 'react';\nimport { BaseText } from '../BaseText';\nimport type { BaseTextProps, BaseTextSizes } from '../BaseText/types';\nimport { useValidateAsProp } from '../utils';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport type { BladeElementRef, TestID } from '~utils/types';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { throwBladeError } from '~utils/logger';\n\nconst validAsValues = ['p', 'span', 'div', 'abbr', 'figcaption', 'cite', 'q', 'label'] as const;\ntype TextCommonProps = {\n as?: typeof validAsValues[number];\n truncateAfterLines?: number;\n children: React.ReactNode;\n weight?: Extract<BaseTextProps['fontWeight'], 'regular' | 'medium' | 'semibold'>;\n /**\n * Overrides the color of the Text component.\n *\n * **Note** This takes priority over `type` and `contrast` prop to decide color of text\n */\n color?: BaseTextProps['color'];\n textAlign?: BaseTextProps['textAlign'];\n textDecorationLine?: BaseTextProps['textDecorationLine'];\n wordBreak?: BaseTextProps['wordBreak'];\n} & TestID &\n StyledPropsBlade;\n\nexport type TextVariant = 'body' | 'caption';\n\ntype TextBodyVariant = TextCommonProps & {\n variant?: Extract<TextVariant, 'body'>;\n size?: Extract<BaseTextSizes, 'xsmall' | 'small' | 'medium' | 'large'>;\n};\n\ntype TextCaptionVariant = TextCommonProps & {\n variant?: Extract<TextVariant, 'caption'>;\n size?: Extract<BaseTextSizes, 'small' | 'medium'>;\n};\n\nexport type TextProps<T> = T extends { variant: infer Variant }\n ? Variant extends 'caption'\n ? TextCaptionVariant\n : Variant extends 'body'\n ? TextBodyVariant\n : T\n : T;\n\ntype GetTextPropsReturn = Omit<BaseTextProps, 'children'>;\ntype GetTextProps<T extends { variant: TextVariant }> = Pick<\n TextProps<T>,\n 'variant' | 'weight' | 'size' | 'color' | 'testID' | 'textAlign' | 'textDecorationLine'\n>;\n\nconst getTextProps = <T extends { variant: TextVariant }>({\n variant,\n weight,\n size,\n color = 'surface.text.gray.normal',\n testID,\n textAlign,\n textDecorationLine,\n}: GetTextProps<T>): GetTextPropsReturn => {\n const props: GetTextPropsReturn = {\n color,\n fontSize: 100,\n fontWeight: weight ?? 'regular',\n fontStyle: 'normal',\n lineHeight: 100,\n fontFamily: 'text',\n componentName: 'text',\n testID,\n textAlign,\n textDecorationLine,\n };\n\n if (variant === 'caption') {\n // variant of caption can only have size of small\n if (size && size !== 'small' && size !== 'medium') {\n if (__DEV__) {\n throwBladeError({\n moduleName: 'Text',\n message: `size cannot be '${size}' when variant is 'caption'`,\n });\n }\n // Set size as small in case of invalid size\n size = 'small';\n }\n } else if (variant !== 'caption' && !size) {\n size = 'medium';\n }\n\n if (variant === 'body') {\n if (size === 'xsmall') {\n props.fontSize = 25;\n props.lineHeight = 25;\n }\n if (size === 'small') {\n props.fontSize = 75;\n props.lineHeight = 75;\n }\n if (size === 'medium') {\n props.fontSize = 100;\n props.lineHeight = 100;\n }\n if (size === 'large') {\n props.fontSize = 200;\n props.lineHeight = 200;\n }\n }\n if (variant === 'caption') {\n if (size === 'small') {\n props.fontSize = 50;\n props.lineHeight = 50;\n props.fontWeight = 'regular';\n }\n if (size === 'medium') {\n props.fontSize = 100;\n props.lineHeight = 50;\n props.fontWeight = 'regular';\n }\n props.fontStyle = 'italic';\n }\n\n return props;\n};\n\nconst _Text = <T extends { variant: TextVariant }>(\n {\n as = 'p',\n variant = 'body',\n weight = 'regular',\n size,\n truncateAfterLines,\n children,\n color,\n testID,\n textAlign,\n textDecorationLine,\n wordBreak,\n ...styledProps\n }: TextProps<T>,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const props: Omit<BaseTextProps, 'children'> = {\n as,\n truncateAfterLines,\n wordBreak,\n ...getTextProps({\n variant,\n weight,\n color,\n size,\n testID,\n textAlign,\n textDecorationLine,\n }),\n };\n\n useValidateAsProp({ componentName: 'Text', as, validAsValues });\n\n return (\n <BaseText ref={ref} {...props} {...getStyledProps(styledProps)}>\n {children}\n </BaseText>\n );\n};\n\nconst Text = assignWithoutSideEffects(React.forwardRef(_Text), {\n displayName: 'Text',\n componentId: 'Text',\n});\n\nexport { Text, getTextProps };\n"],"names":["validAsValues","getTextProps","_ref","variant","weight","size","_ref$color","color","testID","textAlign","textDecorationLine","props","fontSize","fontWeight","fontStyle","lineHeight","fontFamily","componentName","throwBladeError","moduleName","message","concat","_Text","_ref2","ref","_ref2$as","as","_ref2$variant","_ref2$weight","truncateAfterLines","children","wordBreak","styledProps","_objectWithoutProperties","_excluded","_objectSpread","useValidateAsProp","_jsx","BaseText","getStyledProps","Text","assignWithoutSideEffects","React","forwardRef","displayName","componentId"],"mappings":"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"}
@@ -22,6 +22,7 @@ import './Divider/index.js';
22
22
  import './Drawer/index.js';
23
23
  import './DatePicker/index.js';
24
24
  import './Dropdown/index.js';
25
+ import './Fade/index.js';
25
26
  import './FileUpload/index.js';
26
27
  import './Icons/index.js';
27
28
  import './Indicator/index.js';
@@ -36,16 +37,20 @@ import './Link/index.js';
36
37
  import './List/index.js';
37
38
  import './LiveAnnouncer/index.web.js';
38
39
  import './Modal/index.js';
40
+ import './Move/index.js';
41
+ import './Morph/index.js';
39
42
  import './Menu/index.js';
40
43
  import './Popover/index.js';
41
44
  import './ProgressBar/index.js';
42
45
  import './Radio/index.js';
46
+ import './Scale/index.js';
43
47
  import './SideNav/index.js';
44
48
  import './Skeleton/index.js';
45
49
  import './SkipNav/index.web.js';
46
50
  import './Spinner/index.js';
47
51
  import './SpotlightPopoverTour/index.js';
48
52
  import './StepGroup/index.js';
53
+ import './Slide/index.js';
49
54
  import './Switch/index.js';
50
55
  import './Table/index.js';
51
56
  import './Tabs/index.js';
@@ -105,6 +110,7 @@ export { DropdownOverlay } from './Dropdown/DropdownOverlay.web.js';
105
110
  export { DropdownButton } from './Dropdown/DropdownButton.js';
106
111
  export { DropdownLink } from './Dropdown/DropdownLink.js';
107
112
  export { DropdownFooter, DropdownHeader } from './Dropdown/DropdownHeaderFooter.js';
113
+ export { Fade } from './Fade/Fade.web.js';
108
114
  export { FileUpload } from './FileUpload/FileUpload.web.js';
109
115
  export { default as AcceptPaymentsIcon } from './Icons/AcceptPaymentsIcon/AcceptPaymentsIcon.js';
110
116
  export { default as ActivityIcon } from './Icons/ActivityIcon/ActivityIcon.js';
@@ -359,6 +365,7 @@ export { default as PowerIcon } from './Icons/PowerIcon/PowerIcon.js';
359
365
  export { default as PrinterIcon } from './Icons/PrinterIcon/PrinterIcon.js';
360
366
  export { default as QRCodeIcon } from './Icons/QRCodeIcon/QRCodeIcon.js';
361
367
  export { default as RadioIcon } from './Icons/RadioIcon/RadioIcon.js';
368
+ export { default as RayIcon } from './Icons/RayIcon/RayIcon.js';
362
369
  export { default as RazorpayIcon } from './Icons/RazorpayIcon/RazorpayIcon.js';
363
370
  export { default as RazorpayXIcon } from './Icons/RazorpayXIcon/RazorpayXIcon.js';
364
371
  export { default as RazorpayxPayrollIcon } from './Icons/RazorpayxPayrollIcon/RazorpayxPayrollIcon.js';
@@ -489,6 +496,8 @@ export { Modal } from './Modal/Modal.web.js';
489
496
  export { ModalBody } from './Modal/ModalBody.web.js';
490
497
  export { ModalHeader } from './Modal/ModalHeader.web.js';
491
498
  export { ModalFooter } from './Modal/ModalFooter.web.js';
499
+ export { Move } from './Move/Move.web.js';
500
+ export { Morph } from './Morph/Morph.web.js';
492
501
  export { Menu } from './Menu/Menu.web.js';
493
502
  export { MenuItem } from './Menu/MenuItem.web.js';
494
503
  export { MenuOverlay } from './Menu/MenuOverlay.web.js';
@@ -499,6 +508,7 @@ export { PopoverInteractiveWrapper } from './Popover/PopoverInteractiveWrapper.w
499
508
  export { ProgressBar } from './ProgressBar/ProgressBar.js';
500
509
  export { Radio } from './Radio/Radio.js';
501
510
  export { RadioGroup } from './Radio/RadioGroup/RadioGroup.js';
511
+ export { Scale } from './Scale/Scale.web.js';
502
512
  export { SideNav } from './SideNav/SideNav.web.js';
503
513
  export { SideNavLink } from './SideNav/SideNavItems/SideNavLink.web.js';
504
514
  export { SideNavLevel } from './SideNav/SideNavLevel.web.js';
@@ -516,6 +526,7 @@ export { SpotlightPopoverTourStep } from './SpotlightPopoverTour/TourStep.web.js
516
526
  export { StepGroup } from './StepGroup/StepGroup.web.js';
517
527
  export { StepItem } from './StepGroup/StepItem.web.js';
518
528
  export { StepItemIcon, StepItemIndicator } from './StepGroup/StepItemMarker.js';
529
+ export { Slide } from './Slide/Slide.web.js';
519
530
  export { Switch } from './Switch/Switch.js';
520
531
  export { Table } from './Table/Table.web.js';
521
532
  export { TableHeader, TableHeaderCell, TableHeaderRow } from './Table/TableHeader.web.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,41 +4,35 @@ import { makeBezier } from '../../utils/makeBezier/makeBezier.web.js';
4
4
  // similar to EasingFactoryFn of `react-native-reanimated`
5
5
 
6
6
  var delay = {
7
- '2xshort': 70,
8
- xshort: 120,
9
- "short": 180,
10
- "long": 3000,
11
- xlong: 5000
7
+ '2xquick': 80,
8
+ xquick: 160,
9
+ moderate: 280,
10
+ gentle: 480,
11
+ xgentle: 960,
12
+ "long": 2000,
13
+ xlong: 3000,
14
+ '2xlong': 5000
12
15
  };
13
16
  var duration = {
14
- '2xquick': 70,
15
- xquick: 150,
17
+ '2xquick': 80,
18
+ xquick: 160,
16
19
  quick: 200,
17
- moderate: 250,
18
- xmoderate: 300,
19
- gentle: 400,
20
- xgentle: 600,
21
- '2xgentle': 900
20
+ moderate: 280,
21
+ xmoderate: 360,
22
+ gentle: 480,
23
+ xgentle: 640,
24
+ '2xgentle': 960
22
25
  };
23
26
 
24
27
  /* makeBezier returns a string of `cubic-bezier()` for web & a react-native-reanimated Easing Function of type `EasingFactoryFn` for native */
25
28
  var easing = {
26
- standard: {
27
- attentive: makeBezier(0.5, 0, 0.3, 1.5),
28
- effective: makeBezier(0.3, 0, 0.2, 1),
29
- revealing: makeBezier(0.5, 0, 0, 1),
30
- wary: makeBezier(1, 0.5, 0, 0.5)
31
- },
32
- entrance: {
33
- attentive: makeBezier(0.5, 0, 0.3, 1.5),
34
- effective: makeBezier(0, 0, 0.2, 1),
35
- revealing: makeBezier(0, 0, 0, 1)
36
- },
37
- exit: {
38
- attentive: makeBezier(0.7, 0, 0.5, 1),
39
- effective: makeBezier(0.17, 0, 1, 1),
40
- revealing: makeBezier(0.5, 0, 1, 1)
41
- }
29
+ linear: makeBezier(0, 0, 0, 0),
30
+ entrance: makeBezier(0, 0, 0.2, 1),
31
+ exit: makeBezier(0.17, 0, 1, 1),
32
+ standard: makeBezier(0.3, 0, 0.2, 1),
33
+ emphasized: makeBezier(0.5, 0, 0, 1),
34
+ overshoot: makeBezier(0.5, 0, 0.3, 1.5),
35
+ shake: makeBezier(1, 0.5, 0, 0.5)
42
36
  };
43
37
  var motion = {
44
38
  delay: delay,
@@ -1 +1 @@
1
- {"version":3,"file":"motion.js","sources":["../../../../../../src/tokens/global/motion.ts"],"sourcesContent":["import type { DotNotationMotionStringToken } from '~utils/types';\nimport type { Platform } from '~utils';\nimport { makeBezier } from '~utils/makeBezier';\n\ntype Duration = {\n /** `70` milliseconds */\n '2xquick': 70;\n /** `150` milliseconds */\n xquick: 150;\n /** `200` milliseconds */\n quick: 200;\n /** `250` milliseconds */\n moderate: 250;\n /** `300` milliseconds */\n xmoderate: 300;\n /** `400` milliseconds */\n gentle: 400;\n /** `600` milliseconds */\n xgentle: 600;\n /** `900` milliseconds */\n '2xgentle': 900;\n};\n\ntype Delay = {\n /** `70` milliseconds */\n '2xshort': 70;\n /** `120` milliseconds */\n xshort: 120;\n /** `180` milliseconds */\n short: 180;\n /** `3000` milliseconds */\n long: 3000;\n /** `5000` milliseconds */\n xlong: 5000;\n};\n\nexport type EasingFactoryFn = { factory: () => (value: number) => number }; // similar to EasingFactoryFn of `react-native-reanimated`\nexport type EasingType<Value extends string> = Platform.Select<{\n web: Value;\n native: EasingFactoryFn;\n}>;\n\ntype Easing = {\n /** Easings for all standard animations*/\n standard: {\n /** `cubic-bezier(0.5, 0, 0.3, 1.5)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n attentive: EasingType<'cubic-bezier(0.5, 0, 0.3, 1.5)'>;\n /** `cubic-bezier(0.3, 0, 0.2, 1)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n effective: EasingType<'cubic-bezier(0.3, 0, 0.2, 1)'>;\n /** `cubic-bezier(0.5, 0, 0, 1)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n revealing: EasingType<'cubic-bezier(0.5, 0, 0, 1)'>;\n /** `cubic-bezier(1, 0.5, 0, 0.5)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n wary: EasingType<'cubic-bezier(1, 0.5, 0, 0.5)'>;\n };\n /** Easings for all entrance animations*/\n entrance: {\n /** `cubic-bezier(0.5, 0, 0.3, 1.5)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n attentive: EasingType<'cubic-bezier(0.5, 0, 0.3, 1.5)'>;\n /** `cubic-bezier(0, 0, 0.2, 1)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n effective: EasingType<'cubic-bezier(0, 0, 0.2, 1)'>;\n /** `cubic-bezier(0, 0, 0, 1)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n revealing: EasingType<'cubic-bezier(0, 0, 0, 1)'>;\n };\n /** Easings for all exit animations*/\n exit: {\n /** `cubic-bezier(0.7, 0, 0.5, 1)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n attentive: EasingType<'cubic-bezier(0.7, 0, 0.5, 1)'>;\n /** `cubic-bezier(0.17, 0, 1, 1)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n effective: EasingType<'cubic-bezier(0.17, 0, 1, 1)'>;\n /** `cubic-bezier(0.5, 0, 1, 1)`\n *\n * Returns a `string` of `\"cubic-bezier(...)\"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */\n revealing: EasingType<'cubic-bezier(0.5, 0, 1, 1)'>;\n };\n};\n\nexport type Motion = Readonly<{\n delay: Delay;\n duration: Duration;\n easing: Easing;\n}>;\n\nexport type EasingString = `easing.${DotNotationMotionStringToken<Easing>}`;\nexport type DurationString = `duration.${keyof Duration}`;\nexport type DelayString = `delay.${keyof Delay}`;\n\nconst delay: Delay = {\n '2xshort': 70,\n xshort: 120,\n short: 180,\n long: 3000,\n xlong: 5000,\n};\n\nconst duration: Duration = {\n '2xquick': 70,\n xquick: 150,\n quick: 200,\n moderate: 250,\n xmoderate: 300,\n gentle: 400,\n xgentle: 600,\n '2xgentle': 900,\n};\n\n/* makeBezier returns a string of `cubic-bezier()` for web & a react-native-reanimated Easing Function of type `EasingFactoryFn` for native */\nconst easing: Easing = {\n standard: {\n attentive: makeBezier(0.5, 0, 0.3, 1.5),\n effective: makeBezier(0.3, 0, 0.2, 1),\n revealing: makeBezier(0.5, 0, 0, 1),\n wary: makeBezier(1, 0.5, 0, 0.5),\n },\n entrance: {\n attentive: makeBezier(0.5, 0, 0.3, 1.5),\n effective: makeBezier(0, 0, 0.2, 1),\n revealing: makeBezier(0, 0, 0, 1),\n },\n exit: {\n attentive: makeBezier(0.7, 0, 0.5, 1),\n effective: makeBezier(0.17, 0, 1, 1),\n revealing: makeBezier(0.5, 0, 1, 1),\n },\n};\n\nexport const motion: Motion = {\n delay,\n duration,\n easing,\n};\n"],"names":["delay","xshort","xlong","duration","xquick","quick","moderate","xmoderate","gentle","xgentle","easing","standard","attentive","makeBezier","effective","revealing","wary","entrance","exit","motion"],"mappings":";;;AAoC4E;;AAoE5E,IAAMA,KAAY,GAAG;AACnB,EAAA,SAAS,EAAE,EAAE;AACbC,EAAAA,MAAM,EAAE,GAAG;AACX,EAAA,OAAA,EAAO,GAAG;AACV,EAAA,MAAA,EAAM,IAAI;AACVC,EAAAA,KAAK,EAAE,IAAA;AACT,CAAC,CAAA;AAED,IAAMC,QAAkB,GAAG;AACzB,EAAA,SAAS,EAAE,EAAE;AACbC,EAAAA,MAAM,EAAE,GAAG;AACXC,EAAAA,KAAK,EAAE,GAAG;AACVC,EAAAA,QAAQ,EAAE,GAAG;AACbC,EAAAA,SAAS,EAAE,GAAG;AACdC,EAAAA,MAAM,EAAE,GAAG;AACXC,EAAAA,OAAO,EAAE,GAAG;AACZ,EAAA,UAAU,EAAE,GAAA;AACd,CAAC,CAAA;;AAED;AACA,IAAMC,MAAc,GAAG;AACrBC,EAAAA,QAAQ,EAAE;IACRC,SAAS,EAAEC,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC;IACvCC,SAAS,EAAED,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IACrCE,SAAS,EAAEF,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnCG,IAAI,EAAEH,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAA;GAChC;AACDI,EAAAA,QAAQ,EAAE;IACRL,SAAS,EAAEC,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC;IACvCC,SAAS,EAAED,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IACnCE,SAAS,EAAEF,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;GACjC;AACDK,EAAAA,IAAI,EAAE;IACJN,SAAS,EAAEC,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IACrCC,SAAS,EAAED,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACpCE,SAAS,EAAEF,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;AACpC,GAAA;AACF,CAAC,CAAA;AAEM,IAAMM,MAAc,GAAG;AAC5BnB,EAAAA,KAAK,EAALA,KAAK;AACLG,EAAAA,QAAQ,EAARA,QAAQ;AACRO,EAAAA,MAAM,EAANA,MAAAA;AACF;;;;"}
1
+ {"version":3,"file":"motion.js","sources":["../../../../../../src/tokens/global/motion.ts"],"sourcesContent":["import type { Platform } from '~utils';\nimport { makeBezier } from '~utils/makeBezier';\n\ntype Duration = {\n /** `80` milliseconds */\n '2xquick': 80;\n /** `160` milliseconds */\n xquick: 160;\n /** `200` milliseconds */\n quick: 200;\n /** `280` milliseconds */\n moderate: 280;\n /** `360` milliseconds */\n xmoderate: 360;\n /** `480` milliseconds */\n gentle: 480;\n /** `640` milliseconds */\n xgentle: 640;\n /** `960` milliseconds */\n '2xgentle': 960;\n};\n\nexport type Delay = {\n /** `80` milliseconds */\n '2xquick': 80;\n /** `160` milliseconds */\n xquick: 160;\n /** `280` milliseconds */\n moderate: 280;\n /** `480` milliseconds */\n gentle: 480;\n /** `960` milliseconds */\n xgentle: 960;\n /** `2000` milliseconds */\n long: 2000;\n /** `3000` milliseconds */\n xlong: 3000;\n /** `5000` milliseconds */\n '2xlong': 5000;\n};\n\nexport type EasingFactoryFn = { factory: () => (value: number) => number }; // similar to EasingFactoryFn of `react-native-reanimated`\nexport type EasingType<Value extends string> = Platform.Select<{\n web: Value;\n native: EasingFactoryFn;\n}>;\n\ntype Easing = {\n /**\n * Linear Easing\n *\n * Use Case: Marquee, Progress Bar, etc\n *\n * Returns cubic-bezier string in web and EasingFactoryFn of react-native-reanimated in native\n */\n linear: EasingType<'cubic-bezier(0, 0, 0, 0)'>;\n\n /**\n * Entrance Animation Easing\n *\n * Use Case: Entry of modals, drawer, dropdown, etc\n *\n * Returns cubic-bezier string in web and EasingFactoryFn of react-native-reanimated in native\n */\n entrance: EasingType<'cubic-bezier(0, 0, 0.2, 1)'>;\n\n /**\n * Exit Animation Easing\n *\n * Use Case: Exit of modals, drawer, dropdown, etc\n *\n * Returns cubic-bezier string in web and EasingFactoryFn of react-native-reanimated in native\n */\n exit: EasingType<'cubic-bezier(0.17, 0, 1, 1)'>;\n\n /**\n * Standard Easing\n *\n * Use Case: Morph\n *\n * Returns cubic-bezier string in web and EasingFactoryFn of react-native-reanimated in native\n */\n standard: EasingType<'cubic-bezier(0.3, 0, 0.2, 1)'>;\n\n /**\n * Emphasized Easing\n *\n * Use Case: Hover states of interactive items\n *\n * Returns cubic-bezier string in web and EasingFactoryFn of react-native-reanimated in native\n */\n emphasized: EasingType<'cubic-bezier(0.5, 0, 0, 1)'>;\n\n /**\n * Overshoot Easing\n *\n * Use Case: Toast notifications\n *\n * Returns cubic-bezier string in web and EasingFactoryFn of react-native-reanimated in native\n */\n overshoot: EasingType<'cubic-bezier(0.5, 0, 0.3, 1.5)'>;\n\n /**\n * Error Easing\n *\n * Use Case: Error States\n *\n * Returns cubic-bezier string in web and EasingFactoryFn of react-native-reanimated in native\n */\n shake: EasingType<'cubic-bezier(1, 0.5, 0, 0.5)'>;\n};\n\nexport type Motion = Readonly<{\n delay: Delay;\n duration: Duration;\n easing: Easing;\n}>;\n\nexport type EasingString = `easing.${keyof Easing}`;\nexport type DurationString = `duration.${keyof Duration}`;\nexport type DelayString = `delay.${keyof Delay}`;\n\nconst delay: Delay = {\n '2xquick': 80,\n xquick: 160,\n moderate: 280,\n gentle: 480,\n xgentle: 960,\n long: 2000,\n xlong: 3000,\n '2xlong': 5000,\n};\n\nconst duration: Duration = {\n '2xquick': 80,\n xquick: 160,\n quick: 200,\n moderate: 280,\n xmoderate: 360,\n gentle: 480,\n xgentle: 640,\n '2xgentle': 960,\n};\n\n/* makeBezier returns a string of `cubic-bezier()` for web & a react-native-reanimated Easing Function of type `EasingFactoryFn` for native */\nconst easing: Easing = {\n linear: makeBezier(0, 0, 0, 0),\n entrance: makeBezier(0, 0, 0.2, 1),\n exit: makeBezier(0.17, 0, 1, 1),\n standard: makeBezier(0.3, 0, 0.2, 1),\n emphasized: makeBezier(0.5, 0, 0, 1),\n overshoot: makeBezier(0.5, 0, 0.3, 1.5),\n shake: makeBezier(1, 0.5, 0, 0.5),\n};\n\nexport const motion: Motion = {\n delay,\n duration,\n easing,\n};\n"],"names":["delay","xquick","moderate","gentle","xgentle","xlong","duration","quick","xmoderate","easing","linear","makeBezier","entrance","exit","standard","emphasized","overshoot","shake","motion"],"mappings":";;;AAyC4E;;AAiF5E,IAAMA,KAAY,GAAG;AACnB,EAAA,SAAS,EAAE,EAAE;AACbC,EAAAA,MAAM,EAAE,GAAG;AACXC,EAAAA,QAAQ,EAAE,GAAG;AACbC,EAAAA,MAAM,EAAE,GAAG;AACXC,EAAAA,OAAO,EAAE,GAAG;AACZ,EAAA,MAAA,EAAM,IAAI;AACVC,EAAAA,KAAK,EAAE,IAAI;AACX,EAAA,QAAQ,EAAE,IAAA;AACZ,CAAC,CAAA;AAED,IAAMC,QAAkB,GAAG;AACzB,EAAA,SAAS,EAAE,EAAE;AACbL,EAAAA,MAAM,EAAE,GAAG;AACXM,EAAAA,KAAK,EAAE,GAAG;AACVL,EAAAA,QAAQ,EAAE,GAAG;AACbM,EAAAA,SAAS,EAAE,GAAG;AACdL,EAAAA,MAAM,EAAE,GAAG;AACXC,EAAAA,OAAO,EAAE,GAAG;AACZ,EAAA,UAAU,EAAE,GAAA;AACd,CAAC,CAAA;;AAED;AACA,IAAMK,MAAc,GAAG;EACrBC,MAAM,EAAEC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;EAC9BC,QAAQ,EAAED,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;EAClCE,IAAI,EAAEF,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;EAC/BG,QAAQ,EAAEH,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;EACpCI,UAAU,EAAEJ,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;EACpCK,SAAS,EAAEL,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC;EACvCM,KAAK,EAAEN,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAA;AAClC,CAAC,CAAA;AAEM,IAAMO,MAAc,GAAG;AAC5BlB,EAAAA,KAAK,EAALA,KAAK;AACLM,EAAAA,QAAQ,EAARA,QAAQ;AACRG,EAAAA,MAAM,EAANA,MAAAA;AACF;;;;"}
@@ -0,0 +1,12 @@
1
+ var cssBezierToArray = function cssBezierToArray(cssCubicBezierString) {
2
+ var indexOfFirstBracket = cssCubicBezierString.indexOf('(');
3
+ var indexOfLastBracket = cssCubicBezierString.lastIndexOf(')');
4
+ var bezierValuesString = cssCubicBezierString.slice(indexOfFirstBracket + 1, indexOfLastBracket);
5
+ var bezierValuesArray = bezierValuesString.split(',').map(function (val) {
6
+ return Number(val);
7
+ });
8
+ return bezierValuesArray;
9
+ };
10
+
11
+ export { cssBezierToArray };
12
+ //# sourceMappingURL=cssBezierToArray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssBezierToArray.js","sources":["../../../../../src/utils/cssBezierToArray.ts"],"sourcesContent":["const cssBezierToArray = <\n X1 extends number,\n Y1 extends number,\n X2 extends number,\n Y2 extends number\n>(\n cssCubicBezierString: `cubic-bezier(${X1}, ${Y1}, ${X2}, ${Y2})`,\n): [X1, Y1, X2, Y2] => {\n const indexOfFirstBracket = cssCubicBezierString.indexOf('(');\n const indexOfLastBracket = cssCubicBezierString.lastIndexOf(')');\n const bezierValuesString = cssCubicBezierString.slice(\n indexOfFirstBracket + 1,\n indexOfLastBracket,\n );\n const bezierValuesArray = bezierValuesString.split(',').map((val) => Number(val)) as [\n X1,\n Y1,\n X2,\n Y2,\n ];\n return bezierValuesArray;\n};\n\nexport { cssBezierToArray };\n"],"names":["cssBezierToArray","cssCubicBezierString","indexOfFirstBracket","indexOf","indexOfLastBracket","lastIndexOf","bezierValuesString","slice","bezierValuesArray","split","map","val","Number"],"mappings":"AAAA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAMpBC,oBAAgE,EAC3C;AACrB,EAAA,IAAMC,mBAAmB,GAAGD,oBAAoB,CAACE,OAAO,CAAC,GAAG,CAAC,CAAA;AAC7D,EAAA,IAAMC,kBAAkB,GAAGH,oBAAoB,CAACI,WAAW,CAAC,GAAG,CAAC,CAAA;EAChE,IAAMC,kBAAkB,GAAGL,oBAAoB,CAACM,KAAK,CACnDL,mBAAmB,GAAG,CAAC,EACvBE,kBACF,CAAC,CAAA;AACD,EAAA,IAAMI,iBAAiB,GAAGF,kBAAkB,CAACG,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,UAACC,GAAG,EAAA;IAAA,OAAKC,MAAM,CAACD,GAAG,CAAC,CAAA;GAK/E,CAAA,CAAA;AACD,EAAA,OAAOH,iBAAiB,CAAA;AAC1B;;;;"}
@@ -22,7 +22,7 @@ function getFocusRingStyles(_ref) {
22
22
  outlineOffset: "".concat(negativeOffset ? '-4px' : '1px').concat(important),
23
23
  transitionProperty: 'outline-width',
24
24
  transitionDuration: castWebType(makeMotionTime(theme.motion.duration['2xquick'])),
25
- transitionTimingFunction: castWebType(theme.motion.easing.standard.effective)
25
+ transitionTimingFunction: castWebType(theme.motion.easing.standard)
26
26
  };
27
27
  }
28
28
 
@@ -1 +1 @@
1
- {"version":3,"file":"getFocusRingStyles.web.js","sources":["../../../../../../src/utils/getFocusRingStyles/getFocusRingStyles.web.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport type { GetFocusRingArgs } from './types';\nimport { castWebType, makeMotionTime } from '~utils';\n\n/**\n * @param props.theme Blade Theme Object\n * @param props.negativeOffset if set the outline offset will be set to -4px, this is useful\n * in table component where the outline will get cutoff by the table border\n */\nfunction getFocusRingStyles({\n theme,\n negativeOffset = false,\n isImportant = false,\n}: GetFocusRingArgs) {\n const important = `${isImportant ? ' !important' : ''}`;\n return {\n outline: `4px solid ${theme.colors.surface.border.primary.muted}${important}`,\n outlineOffset: `${negativeOffset ? '-4px' : '1px'}${important}`,\n transitionProperty: 'outline-width',\n transitionDuration: castWebType(makeMotionTime(theme.motion.duration['2xquick'])),\n transitionTimingFunction: castWebType(theme.motion.easing.standard.effective),\n } as const;\n}\n\nexport { getFocusRingStyles };\n"],"names":["getFocusRingStyles","_ref","theme","_ref$negativeOffset","negativeOffset","_ref$isImportant","isImportant","important","concat","outline","colors","surface","border","primary","muted","outlineOffset","transitionProperty","transitionDuration","castWebType","makeMotionTime","motion","duration","transitionTimingFunction","easing","standard","effective"],"mappings":";;;;AAAA;;;AAIA;AACA;AACA;AACA;AACA;AACA,SAASA,kBAAkBA,CAAAC,IAAA,EAIN;AAAA,EAAA,IAHnBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAAC,mBAAA,GAAAF,IAAA,CACLG,cAAc;AAAdA,IAAAA,cAAc,GAAAD,mBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,mBAAA;IAAAE,gBAAA,GAAAJ,IAAA,CACtBK,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,gBAAA,CAAA;EAEnB,IAAME,SAAS,MAAAC,MAAA,CAAMF,WAAW,GAAG,aAAa,GAAG,EAAE,CAAE,CAAA;EACvD,OAAO;AACLG,IAAAA,OAAO,eAAAD,MAAA,CAAeN,KAAK,CAACQ,MAAM,CAACC,OAAO,CAACC,MAAM,CAACC,OAAO,CAACC,KAAK,EAAAN,MAAA,CAAGD,SAAS,CAAE;AAC7EQ,IAAAA,aAAa,EAAAP,EAAAA,CAAAA,MAAA,CAAKJ,cAAc,GAAG,MAAM,GAAG,KAAK,CAAAI,CAAAA,MAAA,CAAGD,SAAS,CAAE;AAC/DS,IAAAA,kBAAkB,EAAE,eAAe;AACnCC,IAAAA,kBAAkB,EAAEC,WAAW,CAACC,cAAc,CAACjB,KAAK,CAACkB,MAAM,CAACC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IACjFC,wBAAwB,EAAEJ,WAAW,CAAChB,KAAK,CAACkB,MAAM,CAACG,MAAM,CAACC,QAAQ,CAACC,SAAS,CAAA;GAC7E,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"getFocusRingStyles.web.js","sources":["../../../../../../src/utils/getFocusRingStyles/getFocusRingStyles.web.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport type { GetFocusRingArgs } from './types';\nimport { castWebType, makeMotionTime } from '~utils';\n\n/**\n * @param props.theme Blade Theme Object\n * @param props.negativeOffset if set the outline offset will be set to -4px, this is useful\n * in table component where the outline will get cutoff by the table border\n */\nfunction getFocusRingStyles({\n theme,\n negativeOffset = false,\n isImportant = false,\n}: GetFocusRingArgs) {\n const important = `${isImportant ? ' !important' : ''}`;\n return {\n outline: `4px solid ${theme.colors.surface.border.primary.muted}${important}`,\n outlineOffset: `${negativeOffset ? '-4px' : '1px'}${important}`,\n transitionProperty: 'outline-width',\n transitionDuration: castWebType(makeMotionTime(theme.motion.duration['2xquick'])),\n transitionTimingFunction: castWebType(theme.motion.easing.standard),\n } as const;\n}\n\nexport { getFocusRingStyles };\n"],"names":["getFocusRingStyles","_ref","theme","_ref$negativeOffset","negativeOffset","_ref$isImportant","isImportant","important","concat","outline","colors","surface","border","primary","muted","outlineOffset","transitionProperty","transitionDuration","castWebType","makeMotionTime","motion","duration","transitionTimingFunction","easing","standard"],"mappings":";;;;AAAA;;;AAIA;AACA;AACA;AACA;AACA;AACA,SAASA,kBAAkBA,CAAAC,IAAA,EAIN;AAAA,EAAA,IAHnBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAAC,mBAAA,GAAAF,IAAA,CACLG,cAAc;AAAdA,IAAAA,cAAc,GAAAD,mBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,mBAAA;IAAAE,gBAAA,GAAAJ,IAAA,CACtBK,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,gBAAA,CAAA;EAEnB,IAAME,SAAS,MAAAC,MAAA,CAAMF,WAAW,GAAG,aAAa,GAAG,EAAE,CAAE,CAAA;EACvD,OAAO;AACLG,IAAAA,OAAO,eAAAD,MAAA,CAAeN,KAAK,CAACQ,MAAM,CAACC,OAAO,CAACC,MAAM,CAACC,OAAO,CAACC,KAAK,EAAAN,MAAA,CAAGD,SAAS,CAAE;AAC7EQ,IAAAA,aAAa,EAAAP,EAAAA,CAAAA,MAAA,CAAKJ,cAAc,GAAG,MAAM,GAAG,KAAK,CAAAI,CAAAA,MAAA,CAAGD,SAAS,CAAE;AAC/DS,IAAAA,kBAAkB,EAAE,eAAe;AACnCC,IAAAA,kBAAkB,EAAEC,WAAW,CAACC,cAAc,CAACjB,KAAK,CAACkB,MAAM,CAACC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IACjFC,wBAAwB,EAAEJ,WAAW,CAAChB,KAAK,CAACkB,MAAM,CAACG,MAAM,CAACC,QAAQ,CAAA;GACnE,CAAA;AACH;;;;"}
@@ -0,0 +1,86 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+
3
+ /**
4
+ * ## What are `getOuterMotionRef` and `getInnerMotionRef` functions?
5
+ *
6
+ * - Motion react requires refs on outermost element to animate components
7
+ * - But we have certain components like input where we already pass refs on inner elements with certain expectation (e.g. in input to focus on the input)
8
+ *
9
+ * Using these 2 utility functions, we can use 2 refs from same forwardRef. One on outer element and one on inner element
10
+ *
11
+ * ---
12
+ *
13
+ * ### Examples
14
+ *
15
+ * ```jsx
16
+ *
17
+ * const MyComponent = ({ _motionMeta }: MotionMetaProp, ref: React.Ref<BladeElementRef>) => {
18
+ *
19
+ * return (
20
+ * <BaseBox ref={getOuterMotionRef({ _motionMeta, ref })}>
21
+ * <Text>Something something</Text>
22
+ * <BaseInput ref={getInnerMotionRef({ _motionMeta, ref })} />
23
+ * </BaseBox>
24
+ * )
25
+ * }
26
+ * ```
27
+ *
28
+ * ### What does it internally do?
29
+ *
30
+ * - On BaseMotion.tsx, we inject _motionMeta prop with ref that is passed to child.
31
+ * - i.e. we pick the `ref` prop of child, and pass it as `_motionMeta.innerRef`. This way in our components, we have access to both the refs. The motion/react ref that we get from forwardRef, and `_motionMeta.innerRef` (ref that you pass on child component of motion)
32
+ * - Both `getOuterMotionRef` and `getInnerMotionRef` are simple one line utility functions to use the correct ref on correct element.
33
+ *
34
+ * ### When to use this?
35
+ *
36
+ * - When you want to forward ref to component on inner element instead of outer element (e.g. passing down the ref to input in checkbox)
37
+ */
38
+ var getOuterMotionRef = function getOuterMotionRef(_ref) {
39
+ var _motionMeta = _ref._motionMeta,
40
+ ref = _ref.ref;
41
+ return _motionMeta !== null && _motionMeta !== void 0 && _motionMeta.isEnhanced ? ref : null;
42
+ };
43
+
44
+ /**
45
+ * ## What are `getOuterMotionRef` and `getInnerMotionRef` functions?
46
+ *
47
+ * - Motion react requires refs on outermost element to animate components
48
+ * - But we have certain components like input where we already pass refs on inner elements with certain expectation (e.g. in input to focus on the input)
49
+ *
50
+ * Using these 2 utility functions, we can use 2 refs from same forwardRef. One on outer element and one on inner element
51
+ *
52
+ * ---
53
+ *
54
+ * ### Examples
55
+ *
56
+ * ```jsx
57
+ *
58
+ * const MyComponent = ({ _motionMeta }: MotionMetaProp, ref: React.Ref<BladeElementRef>) => {
59
+ *
60
+ * return (
61
+ * <BaseBox ref={getOuterMotionRef({ _motionMeta, ref })}>
62
+ * <Text>Something something</Text>
63
+ * <BaseInput ref={getInnerMotionRef({ _motionMeta, ref })} />
64
+ * </BaseBox>
65
+ * )
66
+ * }
67
+ * ```
68
+ *
69
+ * ### What does it internally do?
70
+ *
71
+ * - On BaseMotion.tsx, we inject _motionMeta prop with ref that is passed to child.
72
+ * - i.e. we pick the `ref` prop of child, and pass it as `_motionMeta.innerRef`. This way in our components, we have access to both the refs. The motion/react ref that we get from forwardRef, and `_motionMeta.innerRef` (ref that you pass on child component of motion)
73
+ * - Both `getOuterMotionRef` and `getInnerMotionRef` are simple one line utility functions to use the correct ref on correct element.
74
+ *
75
+ * ### When to use this?
76
+ *
77
+ * - When you want to forward ref to component on inner element instead of outer element (e.g. passing down the ref to input in checkbox)
78
+ */
79
+ var getInnerMotionRef = function getInnerMotionRef(_ref2) {
80
+ var _motionMeta = _ref2._motionMeta,
81
+ ref = _ref2.ref;
82
+ return _motionMeta !== null && _motionMeta !== void 0 && _motionMeta.isEnhanced ? _motionMeta.innerRef : ref;
83
+ };
84
+
85
+ export { getInnerMotionRef, getOuterMotionRef };
86
+ //# sourceMappingURL=getMotionRefs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMotionRefs.js","sources":["../../../../../src/utils/getMotionRefs.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type React from 'react';\nimport type { BladeElementRef } from './types';\nimport type { MotionMetaProp } from '~components/BaseMotion';\n\ntype MotionRefsType = {\n ref: React.Ref<BladeElementRef>;\n} & MotionMetaProp;\n\n/**\n * ## What are `getOuterMotionRef` and `getInnerMotionRef` functions?\n *\n * - Motion react requires refs on outermost element to animate components\n * - But we have certain components like input where we already pass refs on inner elements with certain expectation (e.g. in input to focus on the input)\n *\n * Using these 2 utility functions, we can use 2 refs from same forwardRef. One on outer element and one on inner element\n *\n * ---\n *\n * ### Examples\n *\n * ```jsx\n *\n * const MyComponent = ({ _motionMeta }: MotionMetaProp, ref: React.Ref<BladeElementRef>) => {\n *\n * return (\n * <BaseBox ref={getOuterMotionRef({ _motionMeta, ref })}>\n * <Text>Something something</Text>\n * <BaseInput ref={getInnerMotionRef({ _motionMeta, ref })} />\n * </BaseBox>\n * )\n * }\n * ```\n *\n * ### What does it internally do?\n *\n * - On BaseMotion.tsx, we inject _motionMeta prop with ref that is passed to child.\n * - i.e. we pick the `ref` prop of child, and pass it as `_motionMeta.innerRef`. This way in our components, we have access to both the refs. The motion/react ref that we get from forwardRef, and `_motionMeta.innerRef` (ref that you pass on child component of motion)\n * - Both `getOuterMotionRef` and `getInnerMotionRef` are simple one line utility functions to use the correct ref on correct element.\n *\n * ### When to use this?\n *\n * - When you want to forward ref to component on inner element instead of outer element (e.g. passing down the ref to input in checkbox)\n */\nconst getOuterMotionRef = ({ _motionMeta, ref }: MotionRefsType): any => {\n return _motionMeta?.isEnhanced ? ref : null;\n};\n\n/**\n * ## What are `getOuterMotionRef` and `getInnerMotionRef` functions?\n *\n * - Motion react requires refs on outermost element to animate components\n * - But we have certain components like input where we already pass refs on inner elements with certain expectation (e.g. in input to focus on the input)\n *\n * Using these 2 utility functions, we can use 2 refs from same forwardRef. One on outer element and one on inner element\n *\n * ---\n *\n * ### Examples\n *\n * ```jsx\n *\n * const MyComponent = ({ _motionMeta }: MotionMetaProp, ref: React.Ref<BladeElementRef>) => {\n *\n * return (\n * <BaseBox ref={getOuterMotionRef({ _motionMeta, ref })}>\n * <Text>Something something</Text>\n * <BaseInput ref={getInnerMotionRef({ _motionMeta, ref })} />\n * </BaseBox>\n * )\n * }\n * ```\n *\n * ### What does it internally do?\n *\n * - On BaseMotion.tsx, we inject _motionMeta prop with ref that is passed to child.\n * - i.e. we pick the `ref` prop of child, and pass it as `_motionMeta.innerRef`. This way in our components, we have access to both the refs. The motion/react ref that we get from forwardRef, and `_motionMeta.innerRef` (ref that you pass on child component of motion)\n * - Both `getOuterMotionRef` and `getInnerMotionRef` are simple one line utility functions to use the correct ref on correct element.\n *\n * ### When to use this?\n *\n * - When you want to forward ref to component on inner element instead of outer element (e.g. passing down the ref to input in checkbox)\n */\nconst getInnerMotionRef = ({ _motionMeta, ref }: MotionRefsType): any => {\n return _motionMeta?.isEnhanced ? _motionMeta.innerRef : ref;\n};\n\nexport { getOuterMotionRef, getInnerMotionRef };\n"],"names":["getOuterMotionRef","_ref","_motionMeta","ref","isEnhanced","getInnerMotionRef","_ref2","innerRef"],"mappings":"AAAA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAAkD;AAAA,EAAA,IAA5CC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG,CAAA;EAC3C,OAAOD,WAAW,KAAXA,IAAAA,IAAAA,WAAW,KAAXA,KAAAA,CAAAA,IAAAA,WAAW,CAAEE,UAAU,GAAGD,GAAG,GAAG,IAAI,CAAA;AAC7C,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,KAAA,EAAkD;AAAA,EAAA,IAA5CJ,WAAW,GAAAI,KAAA,CAAXJ,WAAW;IAAEC,GAAG,GAAAG,KAAA,CAAHH,GAAG,CAAA;AAC3C,EAAA,OAAOD,WAAW,KAAA,IAAA,IAAXA,WAAW,KAAA,KAAA,CAAA,IAAXA,WAAW,CAAEE,UAAU,GAAGF,WAAW,CAACK,QAAQ,GAAGJ,GAAG,CAAA;AAC7D;;;;"}
@@ -0,0 +1,6 @@
1
+ var msToSeconds = function msToSeconds(durationInMS) {
2
+ return durationInMS / 1000;
3
+ };
4
+
5
+ export { msToSeconds };
6
+ //# sourceMappingURL=msToSeconds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"msToSeconds.js","sources":["../../../../../src/utils/msToSeconds.ts"],"sourcesContent":["const msToSeconds = (durationInMS: number): number => {\n return durationInMS / 1000;\n};\n\nexport { msToSeconds };\n"],"names":["msToSeconds","durationInMS"],"mappings":"AAAA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,YAAoB,EAAa;EACpD,OAAOA,YAAY,GAAG,IAAI,CAAA;AAC5B;;;;"}