@razorpay/blade 10.23.4 → 11.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 (874) hide show
  1. package/build/lib/native/components/Accordion/AccordionButton.native.js +2 -3
  2. package/build/lib/native/components/Accordion/AccordionButton.native.js.map +1 -1
  3. package/build/lib/native/components/Accordion/AccordionItem.js +1 -1
  4. package/build/lib/native/components/Accordion/AccordionItem.js.map +1 -1
  5. package/build/lib/native/components/Accordion/commonStyles.js +1 -1
  6. package/build/lib/native/components/Accordion/commonStyles.js.map +1 -1
  7. package/build/lib/native/components/ActionList/ActionList.js +2 -3
  8. package/build/lib/native/components/ActionList/ActionList.js.map +1 -1
  9. package/build/lib/native/components/ActionList/ActionListBox.native.js +4 -1
  10. package/build/lib/native/components/ActionList/ActionListBox.native.js.map +1 -1
  11. package/build/lib/native/components/ActionList/ActionListItem.js +1 -2
  12. package/build/lib/native/components/ActionList/ActionListItem.js.map +1 -1
  13. package/build/lib/native/components/ActionList/ActionListNoResults.js +1 -1
  14. package/build/lib/native/components/ActionList/ActionListNoResults.js.map +1 -1
  15. package/build/lib/native/components/ActionList/actionListUtils.js +1 -1
  16. package/build/lib/native/components/ActionList/actionListUtils.js.map +1 -1
  17. package/build/lib/native/components/ActionList/styles/StyledActionListItem.native.js +1 -1
  18. package/build/lib/native/components/ActionList/styles/StyledActionListItem.native.js.map +1 -1
  19. package/build/lib/native/components/Alert/Alert.js +1 -3
  20. package/build/lib/native/components/Alert/Alert.js.map +1 -1
  21. package/build/lib/native/components/Alert/styles.js +1 -1
  22. package/build/lib/native/components/Alert/styles.js.map +1 -1
  23. package/build/lib/native/components/Amount/Amount.js +7 -3
  24. package/build/lib/native/components/Amount/Amount.js.map +1 -1
  25. package/build/lib/native/components/Amount/amountTokens.js +2 -2
  26. package/build/lib/native/components/Amount/amountTokens.js.map +1 -1
  27. package/build/lib/native/components/Badge/Badge.js +3 -2
  28. package/build/lib/native/components/Badge/Badge.js.map +1 -1
  29. package/build/lib/native/components/Badge/badgeTokens.js +4 -2
  30. package/build/lib/native/components/Badge/badgeTokens.js.map +1 -1
  31. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js +1 -2
  32. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  33. package/build/lib/native/components/BottomSheet/BottomSheet.native.js +1 -1
  34. package/build/lib/native/components/BottomSheet/BottomSheet.native.js.map +1 -1
  35. package/build/lib/native/components/BottomSheet/BottomSheetBackdrop.native.js +1 -1
  36. package/build/lib/native/components/BottomSheet/BottomSheetBackdrop.native.js.map +1 -1
  37. package/build/lib/native/components/BottomSheet/BottomSheetCommon.js +2 -2
  38. package/build/lib/native/components/BottomSheet/BottomSheetCommon.js.map +1 -1
  39. package/build/lib/native/components/BottomSheet/BottomSheetFooter.native.js +2 -9
  40. package/build/lib/native/components/BottomSheet/BottomSheetFooter.native.js.map +1 -1
  41. package/build/lib/native/components/BottomSheet/getBottomSheetGrabHandleStyles.js +1 -1
  42. package/build/lib/native/components/BottomSheet/getBottomSheetGrabHandleStyles.js.map +1 -1
  43. package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js +1 -1
  44. package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  45. package/build/lib/native/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  46. package/build/lib/native/components/Button/BaseButton/BaseButton.js +2 -2
  47. package/build/lib/native/components/Button/BaseButton/BaseButton.js.map +1 -1
  48. package/build/lib/native/components/Button/BaseButton/StyledBaseButton.native.js +1 -1
  49. package/build/lib/native/components/Button/BaseButton/StyledBaseButton.native.js.map +1 -1
  50. package/build/lib/native/components/Button/BaseButton/buttonTokens.js +2 -2
  51. package/build/lib/native/components/Button/BaseButton/buttonTokens.js.map +1 -1
  52. package/build/lib/native/components/Button/BaseButton/getStyledBaseButtonStyles.js +1 -1
  53. package/build/lib/native/components/Button/BaseButton/getStyledBaseButtonStyles.js.map +1 -1
  54. package/build/lib/native/components/Button/Button/Button.js +1 -1
  55. package/build/lib/native/components/Button/Button/Button.js.map +1 -1
  56. package/build/lib/native/components/Button/IconButton/IconButton.js +1 -1
  57. package/build/lib/native/components/Button/IconButton/IconButton.js.map +1 -1
  58. package/build/lib/native/components/Button/IconButton/StyledIconButton.native.js +1 -1
  59. package/build/lib/native/components/Button/IconButton/StyledIconButton.native.js.map +1 -1
  60. package/build/lib/native/components/Card/Card.js +1 -1
  61. package/build/lib/native/components/Card/Card.js.map +1 -1
  62. package/build/lib/native/components/Card/CardFooter.js +1 -1
  63. package/build/lib/native/components/Card/CardFooter.js.map +1 -1
  64. package/build/lib/native/components/Card/CardHeader.js +3 -3
  65. package/build/lib/native/components/Card/CardHeader.js.map +1 -1
  66. package/build/lib/native/components/Card/CardRoot.native.js +1 -1
  67. package/build/lib/native/components/Card/CardRoot.native.js.map +1 -1
  68. package/build/lib/native/components/Card/CardSurface.native.js +1 -1
  69. package/build/lib/native/components/Card/CardSurface.native.js.map +1 -1
  70. package/build/lib/native/components/Carousel/Carousel.native.js +2 -1
  71. package/build/lib/native/components/Carousel/Carousel.native.js.map +1 -1
  72. package/build/lib/native/components/Carousel/Indicators/getIndicatorButtonStyles.js +2 -1
  73. package/build/lib/native/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  74. package/build/lib/native/components/Carousel/NavigationButton/NavigationButton.js +1 -1
  75. package/build/lib/native/components/Carousel/NavigationButton/NavigationButton.js.map +1 -1
  76. package/build/lib/native/components/Carousel/NavigationButton/StyledNavigationButton.native.js +7 -1
  77. package/build/lib/native/components/Carousel/NavigationButton/StyledNavigationButton.native.js.map +1 -1
  78. package/build/lib/native/components/Carousel/NavigationButton/getNavigationButtonStyles.js +2 -1
  79. package/build/lib/native/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  80. package/build/lib/native/components/Checkbox/CheckboxIcon/CheckboxIcon.js +1 -1
  81. package/build/lib/native/components/Checkbox/CheckboxIcon/CheckboxIcon.js.map +1 -1
  82. package/build/lib/native/components/Checkbox/CheckboxIcon/CheckboxIconWrapperStyles.js +1 -1
  83. package/build/lib/native/components/Checkbox/CheckboxIcon/CheckboxIconWrapperStyles.js.map +1 -1
  84. package/build/lib/native/components/Checkbox/checkboxTokens.js +1 -1
  85. package/build/lib/native/components/Checkbox/checkboxTokens.js.map +1 -1
  86. package/build/lib/native/components/Chip/AnimatedChip.native.js +1 -1
  87. package/build/lib/native/components/Chip/AnimatedChip.native.js.map +1 -1
  88. package/build/lib/native/components/Chip/Chip.js +1 -1
  89. package/build/lib/native/components/Chip/Chip.js.map +1 -1
  90. package/build/lib/native/components/Chip/ChipGroup.js +1 -1
  91. package/build/lib/native/components/Chip/ChipGroup.js.map +1 -1
  92. package/build/lib/native/components/Chip/chipTokens.js +1 -1
  93. package/build/lib/native/components/Chip/chipTokens.js.map +1 -1
  94. package/build/lib/native/components/Chip/getAnimatedChipStyles.js +1 -1
  95. package/build/lib/native/components/Chip/getAnimatedChipStyles.js.map +1 -1
  96. package/build/lib/native/components/Chip/useChipGroup.js +1 -1
  97. package/build/lib/native/components/Chip/useChipGroup.js.map +1 -1
  98. package/build/lib/native/components/Counter/Counter.js +3 -3
  99. package/build/lib/native/components/Counter/Counter.js.map +1 -1
  100. package/build/lib/native/components/Counter/counterTokens.js +2 -2
  101. package/build/lib/native/components/Counter/counterTokens.js.map +1 -1
  102. package/build/lib/native/components/Divider/Divider.js +1 -1
  103. package/build/lib/native/components/Divider/Divider.js.map +1 -1
  104. package/build/lib/native/components/Dropdown/Dropdown.js +1 -1
  105. package/build/lib/native/components/Dropdown/Dropdown.js.map +1 -1
  106. package/build/lib/native/components/Dropdown/StyledDropdownOverlay.js +1 -1
  107. package/build/lib/native/components/Dropdown/StyledDropdownOverlay.js.map +1 -1
  108. package/build/lib/native/components/Form/CharacterCounter/CharacterCounter.js +1 -1
  109. package/build/lib/native/components/Form/CharacterCounter/CharacterCounter.js.map +1 -1
  110. package/build/lib/native/components/Form/FormHint.js +2 -2
  111. package/build/lib/native/components/Form/FormHint.js.map +1 -1
  112. package/build/lib/native/components/Form/FormLabel.js +2 -2
  113. package/build/lib/native/components/Form/FormLabel.js.map +1 -1
  114. package/build/lib/native/components/Form/Selector/SelectorSupportText.js +4 -2
  115. package/build/lib/native/components/Form/Selector/SelectorSupportText.js.map +1 -1
  116. package/build/lib/native/components/Form/Selector/SelectorTitle.js +2 -2
  117. package/build/lib/native/components/Form/Selector/SelectorTitle.js.map +1 -1
  118. package/build/lib/native/components/Icons/useIconProps/useIconProps.js +1 -1
  119. package/build/lib/native/components/Icons/useIconProps/useIconProps.js.map +1 -1
  120. package/build/lib/native/components/Indicator/Indicator.js +1 -1
  121. package/build/lib/native/components/Indicator/Indicator.js.map +1 -1
  122. package/build/lib/native/components/Input/BaseInput/AnimatedBaseInputWrapper.native.js +1 -1
  123. package/build/lib/native/components/Input/BaseInput/AnimatedBaseInputWrapper.native.js.map +1 -1
  124. package/build/lib/native/components/Input/BaseInput/BaseInputAnimatedBorder.native.js +1 -1
  125. package/build/lib/native/components/Input/BaseInput/BaseInputAnimatedBorder.native.js.map +1 -1
  126. package/build/lib/native/components/Input/BaseInput/BaseInputTagSlot.native.js +1 -1
  127. package/build/lib/native/components/Input/BaseInput/BaseInputTagSlot.native.js.map +1 -1
  128. package/build/lib/native/components/Input/BaseInput/BaseInputVisuals.js +1 -1
  129. package/build/lib/native/components/Input/BaseInput/BaseInputVisuals.js.map +1 -1
  130. package/build/lib/native/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  131. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js +1 -1
  132. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js.map +1 -1
  133. package/build/lib/native/components/Input/BaseInput/baseInputStyles.js +1 -1
  134. package/build/lib/native/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  135. package/build/lib/native/components/Input/DropdownInputTriggers/Chevron.js +1 -1
  136. package/build/lib/native/components/Input/DropdownInputTriggers/Chevron.js.map +1 -1
  137. package/build/lib/native/components/Link/BaseLink/BaseLink.js +3 -3
  138. package/build/lib/native/components/Link/BaseLink/BaseLink.js.map +1 -1
  139. package/build/lib/native/components/Link/BaseLink/StyledBaseLink.native.js +1 -1
  140. package/build/lib/native/components/Link/BaseLink/StyledBaseLink.native.js.map +1 -1
  141. package/build/lib/native/components/Link/Link/Link.js +1 -1
  142. package/build/lib/native/components/Link/Link/Link.js.map +1 -1
  143. package/build/lib/native/components/List/List.js +1 -1
  144. package/build/lib/native/components/List/List.js.map +1 -1
  145. package/build/lib/native/components/List/ListItem.js +1 -1
  146. package/build/lib/native/components/List/ListItem.js.map +1 -1
  147. package/build/lib/native/components/List/ListItemIcons.js +4 -1
  148. package/build/lib/native/components/List/ListItemIcons.js.map +1 -1
  149. package/build/lib/native/components/Popover/Popover.native.js +1 -1
  150. package/build/lib/native/components/Popover/Popover.native.js.map +1 -1
  151. package/build/lib/native/components/Popover/PopoverContent.js +2 -3
  152. package/build/lib/native/components/Popover/PopoverContent.js.map +1 -1
  153. package/build/lib/native/components/Popover/getPopoverContentWrapperStyles.js +1 -1
  154. package/build/lib/native/components/Popover/getPopoverContentWrapperStyles.js.map +1 -1
  155. package/build/lib/native/components/ProgressBar/ProgressBar.js +14 -18
  156. package/build/lib/native/components/ProgressBar/ProgressBar.js.map +1 -1
  157. package/build/lib/native/components/Radio/Radio.js +1 -1
  158. package/build/lib/native/components/Radio/Radio.js.map +1 -1
  159. package/build/lib/native/components/Radio/RadioIcon/RadioIcon.js +1 -1
  160. package/build/lib/native/components/Radio/RadioIcon/RadioIcon.js.map +1 -1
  161. package/build/lib/native/components/Radio/RadioIcon/RadioIconWrapperStyles.js +1 -1
  162. package/build/lib/native/components/Radio/RadioIcon/RadioIconWrapperStyles.js.map +1 -1
  163. package/build/lib/native/components/Radio/radioTokens.js +1 -1
  164. package/build/lib/native/components/Radio/radioTokens.js.map +1 -1
  165. package/build/lib/native/components/Skeleton/PulseAnimation.native.js +1 -2
  166. package/build/lib/native/components/Skeleton/PulseAnimation.native.js.map +1 -1
  167. package/build/lib/native/components/Skeleton/Skeleton.js +1 -1
  168. package/build/lib/native/components/Skeleton/Skeleton.js.map +1 -1
  169. package/build/lib/native/components/Spinner/BaseSpinner/BaseSpinner.js +1 -1
  170. package/build/lib/native/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  171. package/build/lib/native/components/Spinner/Spinner/Spinner.js +1 -1
  172. package/build/lib/native/components/Spinner/Spinner/Spinner.js.map +1 -1
  173. package/build/lib/native/components/Switch/switchTokens.js +1 -1
  174. package/build/lib/native/components/Switch/switchTokens.js.map +1 -1
  175. package/build/lib/native/components/Tabs/TabIndicator.native.js +1 -1
  176. package/build/lib/native/components/Tabs/TabIndicator.native.js.map +1 -1
  177. package/build/lib/native/components/Tabs/Tabs.native.js +3 -2
  178. package/build/lib/native/components/Tabs/Tabs.native.js.map +1 -1
  179. package/build/lib/native/components/Tabs/tabTokens.js +2 -2
  180. package/build/lib/native/components/Tabs/tabTokens.js.map +1 -1
  181. package/build/lib/native/components/Tag/Tag.js +1 -1
  182. package/build/lib/native/components/Tag/Tag.js.map +1 -1
  183. package/build/lib/native/components/Tooltip/Tooltip.native.js +1 -1
  184. package/build/lib/native/components/Tooltip/Tooltip.native.js.map +1 -1
  185. package/build/lib/native/components/Tooltip/TooltipContent.js +1 -1
  186. package/build/lib/native/components/Tooltip/TooltipContent.js.map +1 -1
  187. package/build/lib/native/components/Tooltip/getTooltipContentWrapperStyles.js +1 -1
  188. package/build/lib/native/components/Tooltip/getTooltipContentWrapperStyles.js.map +1 -1
  189. package/build/lib/native/components/Typography/BaseText/BaseText.native.js +1 -1
  190. package/build/lib/native/components/Typography/BaseText/BaseText.native.js.map +1 -1
  191. package/build/lib/native/components/Typography/BaseText/getBaseTextStyles.js +2 -1
  192. package/build/lib/native/components/Typography/BaseText/getBaseTextStyles.js.map +1 -1
  193. package/build/lib/native/components/Typography/Code/Code.js +1 -1
  194. package/build/lib/native/components/Typography/Code/Code.js.map +1 -1
  195. package/build/lib/native/components/Typography/Display/Display.js +1 -1
  196. package/build/lib/native/components/Typography/Display/Display.js.map +1 -1
  197. package/build/lib/native/components/Typography/Heading/Heading.js +1 -2
  198. package/build/lib/native/components/Typography/Heading/Heading.js.map +1 -1
  199. package/build/lib/native/components/Typography/Text/Text.js +1 -1
  200. package/build/lib/native/components/Typography/Text/Text.js.map +1 -1
  201. package/build/lib/native/components/Typography/Text/getTextStyles.js +1 -1
  202. package/build/lib/native/components/Typography/Text/getTextStyles.js.map +1 -1
  203. package/build/lib/native/components/index.js +37 -38
  204. package/build/lib/native/components/index.js.map +1 -1
  205. package/build/lib/native/tokens/global/border.js +1 -1
  206. package/build/lib/native/tokens/global/border.js.map +1 -1
  207. package/build/lib/native/tokens/global/colors.js +1 -1
  208. package/build/lib/native/tokens/global/colors.js.map +1 -1
  209. package/build/lib/native/tokens/global/elevation/elevation.native.js +1 -1
  210. package/build/lib/native/tokens/global/elevation/elevation.native.js.map +1 -1
  211. package/build/lib/native/tokens/global/fontFamily/fontFamily.native.js +1 -1
  212. package/build/lib/native/tokens/global/fontFamily/fontFamily.native.js.map +1 -1
  213. package/build/lib/native/tokens/global/motion.js.map +1 -1
  214. package/build/lib/native/tokens/global/opacity.js +1 -1
  215. package/build/lib/native/tokens/global/opacity.js.map +1 -1
  216. package/build/lib/native/tokens/global/typography.js +1 -1
  217. package/build/lib/native/tokens/global/typography.js.map +1 -1
  218. package/build/lib/native/tokens/index.js +1 -2
  219. package/build/lib/native/tokens/index.js.map +1 -1
  220. package/build/lib/native/tokens/theme/bladeTheme.js +13 -0
  221. package/build/lib/native/tokens/theme/bladeTheme.js.map +1 -0
  222. package/build/lib/native/tokens/theme/createTheme.js +2 -2
  223. package/build/lib/native/tokens/theme/createTheme.js.map +1 -1
  224. package/build/lib/native/tokens/theme/overrideTheme.js +3 -3
  225. package/build/lib/native/tokens/theme/overrideTheme.js.map +1 -1
  226. package/build/lib/native/tokens/theme/theme.js.map +1 -1
  227. package/build/lib/native/utils/getFocusRingStyles/getFocusRingStyles.native.js +4 -0
  228. package/build/lib/native/utils/getFocusRingStyles/getFocusRingStyles.native.js.map +1 -0
  229. package/build/lib/native/utils/lodashButBetter/get.js.map +1 -1
  230. package/build/lib/native/utils/lodashButBetter/isEmpty.js.map +1 -1
  231. package/build/lib/native/utils/makeLetterSpacing/makeLetterSpacing.js +4 -0
  232. package/build/lib/native/utils/makeLetterSpacing/makeLetterSpacing.js.map +1 -0
  233. package/build/lib/native/utils/objectKeysWithType.js +4 -0
  234. package/build/lib/native/utils/objectKeysWithType.js.map +1 -0
  235. package/build/lib/native/utils/useInteraction.js +1 -1
  236. package/build/lib/native/utils/useInteraction.js.map +1 -1
  237. package/build/lib/web/development/components/Accordion/AccordionButton.web.js +8 -6
  238. package/build/lib/web/development/components/Accordion/AccordionButton.web.js.map +1 -1
  239. package/build/lib/web/development/components/Accordion/AccordionItem.js +1 -1
  240. package/build/lib/web/development/components/Accordion/AccordionItem.js.map +1 -1
  241. package/build/lib/web/development/components/Accordion/StyledAccordionButton.web.js +10 -11
  242. package/build/lib/web/development/components/Accordion/StyledAccordionButton.web.js.map +1 -1
  243. package/build/lib/web/development/components/Accordion/commonStyles.js +3 -6
  244. package/build/lib/web/development/components/Accordion/commonStyles.js.map +1 -1
  245. package/build/lib/web/development/components/ActionList/ActionList.js +21 -48
  246. package/build/lib/web/development/components/ActionList/ActionList.js.map +1 -1
  247. package/build/lib/web/development/components/ActionList/ActionListItem.js +6 -12
  248. package/build/lib/web/development/components/ActionList/ActionListItem.js.map +1 -1
  249. package/build/lib/web/development/components/ActionList/ActionListNoResults.js +3 -3
  250. package/build/lib/web/development/components/ActionList/ActionListNoResults.js.map +1 -1
  251. package/build/lib/web/development/components/ActionList/actionListUtils.js +3 -3
  252. package/build/lib/web/development/components/ActionList/actionListUtils.js.map +1 -1
  253. package/build/lib/web/development/components/ActionList/index.js +1 -1
  254. package/build/lib/web/development/components/ActionList/styles/StyledActionListItem.web.js +6 -3
  255. package/build/lib/web/development/components/ActionList/styles/StyledActionListItem.web.js.map +1 -1
  256. package/build/lib/web/development/components/Alert/Alert.js +36 -52
  257. package/build/lib/web/development/components/Alert/Alert.js.map +1 -1
  258. package/build/lib/web/development/components/Alert/styles.js +3 -7
  259. package/build/lib/web/development/components/Alert/styles.js.map +1 -1
  260. package/build/lib/web/development/components/Amount/Amount.js +141 -76
  261. package/build/lib/web/development/components/Amount/Amount.js.map +1 -1
  262. package/build/lib/web/development/components/Amount/amountTokens.js +67 -34
  263. package/build/lib/web/development/components/Amount/amountTokens.js.map +1 -1
  264. package/build/lib/web/development/components/Badge/Badge.js +26 -35
  265. package/build/lib/web/development/components/Badge/Badge.js.map +1 -1
  266. package/build/lib/web/development/components/Badge/badgeTokens.js +7 -5
  267. package/build/lib/web/development/components/Badge/badgeTokens.js.map +1 -1
  268. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js +7 -7
  269. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  270. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js +3 -3
  271. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js.map +1 -1
  272. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js +1 -5
  273. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  274. package/build/lib/web/development/components/BottomSheet/BottomSheetCommon.js +1 -5
  275. package/build/lib/web/development/components/BottomSheet/BottomSheetCommon.js.map +1 -1
  276. package/build/lib/web/development/components/BottomSheet/BottomSheetFooter.web.js +1 -5
  277. package/build/lib/web/development/components/BottomSheet/BottomSheetFooter.web.js.map +1 -1
  278. package/build/lib/web/development/components/BottomSheet/getBottomSheetGrabHandleStyles.js +1 -1
  279. package/build/lib/web/development/components/BottomSheet/getBottomSheetGrabHandleStyles.js.map +1 -1
  280. package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js +15 -4
  281. package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  282. package/build/lib/web/development/components/Box/BaseBox/getResponsiveValue.web.js.map +1 -1
  283. package/build/lib/web/development/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  284. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js +103 -91
  285. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js.map +1 -1
  286. package/build/lib/web/development/components/Button/BaseButton/StyledBaseButton.web.js +4 -4
  287. package/build/lib/web/development/components/Button/BaseButton/StyledBaseButton.web.js.map +1 -1
  288. package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js +113 -6
  289. package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js.map +1 -1
  290. package/build/lib/web/development/components/Button/BaseButton/getStyledBaseButtonStyles.js +2 -1
  291. package/build/lib/web/development/components/Button/BaseButton/getStyledBaseButtonStyles.js.map +1 -1
  292. package/build/lib/web/development/components/Button/Button/Button.js +1 -1
  293. package/build/lib/web/development/components/Button/Button/Button.js.map +1 -1
  294. package/build/lib/web/development/components/Button/IconButton/IconButton.js +3 -3
  295. package/build/lib/web/development/components/Button/IconButton/IconButton.js.map +1 -1
  296. package/build/lib/web/development/components/Button/IconButton/StyledIconButton.web.js +15 -14
  297. package/build/lib/web/development/components/Button/IconButton/StyledIconButton.web.js.map +1 -1
  298. package/build/lib/web/development/components/Card/Card.js +8 -5
  299. package/build/lib/web/development/components/Card/Card.js.map +1 -1
  300. package/build/lib/web/development/components/Card/CardFooter.js +13 -9
  301. package/build/lib/web/development/components/Card/CardFooter.js.map +1 -1
  302. package/build/lib/web/development/components/Card/CardHeader.js +28 -15
  303. package/build/lib/web/development/components/Card/CardHeader.js.map +1 -1
  304. package/build/lib/web/development/components/Card/CardRoot.web.js +2 -2
  305. package/build/lib/web/development/components/Card/CardRoot.web.js.map +1 -1
  306. package/build/lib/web/development/components/Card/CardSurface.web.js +2 -5
  307. package/build/lib/web/development/components/Card/CardSurface.web.js.map +1 -1
  308. package/build/lib/web/development/components/Card/index.js +1 -1
  309. package/build/lib/web/development/components/Carousel/Carousel.web.js.map +1 -1
  310. package/build/lib/web/development/components/Carousel/Indicators/getIndicatorButtonStyles.js +9 -9
  311. package/build/lib/web/development/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  312. package/build/lib/web/development/components/Carousel/NavigationButton/NavigationButton.js +2 -2
  313. package/build/lib/web/development/components/Carousel/NavigationButton/NavigationButton.js.map +1 -1
  314. package/build/lib/web/development/components/Carousel/NavigationButton/getNavigationButtonStyles.js +23 -30
  315. package/build/lib/web/development/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  316. package/build/lib/web/development/components/Checkbox/CheckboxIcon/CheckboxIcon.js +1 -3
  317. package/build/lib/web/development/components/Checkbox/CheckboxIcon/CheckboxIcon.js.map +1 -1
  318. package/build/lib/web/development/components/Checkbox/CheckboxIcon/CheckboxIconWrapperStyles.js +2 -2
  319. package/build/lib/web/development/components/Checkbox/CheckboxIcon/CheckboxIconWrapperStyles.js.map +1 -1
  320. package/build/lib/web/development/components/Checkbox/checkboxTokens.js +17 -16
  321. package/build/lib/web/development/components/Checkbox/checkboxTokens.js.map +1 -1
  322. package/build/lib/web/development/components/Chip/AnimatedChip.web.js +2 -2
  323. package/build/lib/web/development/components/Chip/AnimatedChip.web.js.map +1 -1
  324. package/build/lib/web/development/components/Chip/Chip.js +6 -11
  325. package/build/lib/web/development/components/Chip/Chip.js.map +1 -1
  326. package/build/lib/web/development/components/Chip/ChipGroup.js +3 -5
  327. package/build/lib/web/development/components/Chip/ChipGroup.js.map +1 -1
  328. package/build/lib/web/development/components/Chip/StyledChipWrapper.web.js +2 -2
  329. package/build/lib/web/development/components/Chip/StyledChipWrapper.web.js.map +1 -1
  330. package/build/lib/web/development/components/Chip/chipTokens.js +38 -38
  331. package/build/lib/web/development/components/Chip/chipTokens.js.map +1 -1
  332. package/build/lib/web/development/components/Chip/getAnimatedChipStyles.js +1 -1
  333. package/build/lib/web/development/components/Chip/getAnimatedChipStyles.js.map +1 -1
  334. package/build/lib/web/development/components/Chip/useChipGroup.js +1 -3
  335. package/build/lib/web/development/components/Chip/useChipGroup.js.map +1 -1
  336. package/build/lib/web/development/components/Counter/Counter.js +25 -44
  337. package/build/lib/web/development/components/Counter/Counter.js.map +1 -1
  338. package/build/lib/web/development/components/Counter/counterTokens.js +5 -5
  339. package/build/lib/web/development/components/Counter/counterTokens.js.map +1 -1
  340. package/build/lib/web/development/components/Divider/Divider.js +6 -8
  341. package/build/lib/web/development/components/Divider/Divider.js.map +1 -1
  342. package/build/lib/web/development/components/Dropdown/Dropdown.js +1 -5
  343. package/build/lib/web/development/components/Dropdown/Dropdown.js.map +1 -1
  344. package/build/lib/web/development/components/Dropdown/StyledDropdownOverlay.js +2 -2
  345. package/build/lib/web/development/components/Dropdown/StyledDropdownOverlay.js.map +1 -1
  346. package/build/lib/web/development/components/Form/CharacterCounter/CharacterCounter.js +1 -1
  347. package/build/lib/web/development/components/Form/CharacterCounter/CharacterCounter.js.map +1 -1
  348. package/build/lib/web/development/components/Form/FormHint.js +11 -13
  349. package/build/lib/web/development/components/Form/FormHint.js.map +1 -1
  350. package/build/lib/web/development/components/Form/FormLabel.js +9 -17
  351. package/build/lib/web/development/components/Form/FormLabel.js.map +1 -1
  352. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js +5 -5
  353. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js.map +1 -1
  354. package/build/lib/web/development/components/Form/Selector/SelectorSupportText.js +16 -11
  355. package/build/lib/web/development/components/Form/Selector/SelectorSupportText.js.map +1 -1
  356. package/build/lib/web/development/components/Form/Selector/SelectorTitle.js +5 -16
  357. package/build/lib/web/development/components/Form/Selector/SelectorTitle.js.map +1 -1
  358. package/build/lib/web/development/components/Icons/_Svg/Circle/Circle.web.js +4 -2
  359. package/build/lib/web/development/components/Icons/_Svg/Circle/Circle.web.js.map +1 -1
  360. package/build/lib/web/development/components/Icons/_Svg/Rect/Rect.web.js +4 -2
  361. package/build/lib/web/development/components/Icons/_Svg/Rect/Rect.web.js.map +1 -1
  362. package/build/lib/web/development/components/Icons/_Svg/Svg/Svg.web.js +4 -2
  363. package/build/lib/web/development/components/Icons/_Svg/Svg/Svg.web.js.map +1 -1
  364. package/build/lib/web/development/components/Icons/useIconProps/useIconProps.js +1 -1
  365. package/build/lib/web/development/components/Icons/useIconProps/useIconProps.js.map +1 -1
  366. package/build/lib/web/development/components/Indicator/Indicator.js +9 -16
  367. package/build/lib/web/development/components/Indicator/Indicator.js.map +1 -1
  368. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +3 -3
  369. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  370. package/build/lib/web/development/components/Input/BaseInput/BaseInputAnimatedBorder.web.js +2 -2
  371. package/build/lib/web/development/components/Input/BaseInput/BaseInputAnimatedBorder.web.js.map +1 -1
  372. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js +4 -1
  373. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  374. package/build/lib/web/development/components/Input/BaseInput/BaseInputVisuals.js +4 -6
  375. package/build/lib/web/development/components/Input/BaseInput/BaseInputVisuals.js.map +1 -1
  376. package/build/lib/web/development/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  377. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js +3 -4
  378. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  379. package/build/lib/web/development/components/Input/BaseInput/baseInputStyles.js +11 -12
  380. package/build/lib/web/development/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  381. package/build/lib/web/development/components/Input/DropdownInputTriggers/Chevron.js +1 -1
  382. package/build/lib/web/development/components/Input/DropdownInputTriggers/Chevron.js.map +1 -1
  383. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js +20 -32
  384. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js.map +1 -1
  385. package/build/lib/web/development/components/Link/Link/Link.js +1 -1
  386. package/build/lib/web/development/components/Link/Link/Link.js.map +1 -1
  387. package/build/lib/web/development/components/List/List.js +1 -3
  388. package/build/lib/web/development/components/List/List.js.map +1 -1
  389. package/build/lib/web/development/components/List/ListItem.js +3 -3
  390. package/build/lib/web/development/components/List/ListItem.js.map +1 -1
  391. package/build/lib/web/development/components/List/ListItemIcons.js +11 -7
  392. package/build/lib/web/development/components/List/ListItemIcons.js.map +1 -1
  393. package/build/lib/web/development/components/Modal/Modal.web.js +1 -1
  394. package/build/lib/web/development/components/Modal/Modal.web.js.map +1 -1
  395. package/build/lib/web/development/components/Modal/ModalBackdrop.js +1 -1
  396. package/build/lib/web/development/components/Modal/ModalBackdrop.js.map +1 -1
  397. package/build/lib/web/development/components/Modal/ModalHeader.web.js +1 -5
  398. package/build/lib/web/development/components/Modal/ModalHeader.web.js.map +1 -1
  399. package/build/lib/web/development/components/Popover/Popover.web.js +2 -2
  400. package/build/lib/web/development/components/Popover/Popover.web.js.map +1 -1
  401. package/build/lib/web/development/components/Popover/PopoverContent.js +4 -5
  402. package/build/lib/web/development/components/Popover/PopoverContent.js.map +1 -1
  403. package/build/lib/web/development/components/Popover/PopoverInteractiveWrapper.web.js +5 -5
  404. package/build/lib/web/development/components/Popover/PopoverInteractiveWrapper.web.js.map +1 -1
  405. package/build/lib/web/development/components/Popover/getPopoverContentWrapperStyles.js +2 -2
  406. package/build/lib/web/development/components/Popover/getPopoverContentWrapperStyles.js.map +1 -1
  407. package/build/lib/web/development/components/ProgressBar/ProgressBar.js +9 -13
  408. package/build/lib/web/development/components/ProgressBar/ProgressBar.js.map +1 -1
  409. package/build/lib/web/development/components/Radio/Radio.js +1 -0
  410. package/build/lib/web/development/components/Radio/Radio.js.map +1 -1
  411. package/build/lib/web/development/components/Radio/RadioIcon/RadioIcon.js +2 -1
  412. package/build/lib/web/development/components/Radio/RadioIcon/RadioIcon.js.map +1 -1
  413. package/build/lib/web/development/components/Radio/RadioIcon/RadioIconWrapperStyles.js +2 -2
  414. package/build/lib/web/development/components/Radio/RadioIcon/RadioIconWrapperStyles.js.map +1 -1
  415. package/build/lib/web/development/components/Radio/radioTokens.js +23 -22
  416. package/build/lib/web/development/components/Radio/radioTokens.js.map +1 -1
  417. package/build/lib/web/development/components/Skeleton/PulseAnimation.web.js +4 -7
  418. package/build/lib/web/development/components/Skeleton/PulseAnimation.web.js.map +1 -1
  419. package/build/lib/web/development/components/Skeleton/Skeleton.js +3 -6
  420. package/build/lib/web/development/components/Skeleton/Skeleton.js.map +1 -1
  421. package/build/lib/web/development/components/Spinner/BaseSpinner/BaseSpinner.js +9 -14
  422. package/build/lib/web/development/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  423. package/build/lib/web/development/components/Spinner/Spinner/Spinner.js +2 -5
  424. package/build/lib/web/development/components/Spinner/Spinner/Spinner.js.map +1 -1
  425. package/build/lib/web/development/components/SpotlightPopoverTour/TourFooter.web.js +1 -1
  426. package/build/lib/web/development/components/SpotlightPopoverTour/TourFooter.web.js.map +1 -1
  427. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js +2 -2
  428. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  429. package/build/lib/web/development/components/SpotlightPopoverTour/TourPopover.web.js +2 -2
  430. package/build/lib/web/development/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  431. package/build/lib/web/development/components/Switch/switchTokens.js +10 -10
  432. package/build/lib/web/development/components/Switch/switchTokens.js.map +1 -1
  433. package/build/lib/web/development/components/Table/Table.web.js +9 -9
  434. package/build/lib/web/development/components/Table/Table.web.js.map +1 -1
  435. package/build/lib/web/development/components/Table/TableBody.web.js +14 -12
  436. package/build/lib/web/development/components/Table/TableBody.web.js.map +1 -1
  437. package/build/lib/web/development/components/Table/TableContext.js +2 -2
  438. package/build/lib/web/development/components/Table/TableContext.js.map +1 -1
  439. package/build/lib/web/development/components/Table/TableFooter.web.js +7 -7
  440. package/build/lib/web/development/components/Table/TableFooter.web.js.map +1 -1
  441. package/build/lib/web/development/components/Table/TableHeader.web.js +18 -16
  442. package/build/lib/web/development/components/Table/TableHeader.web.js.map +1 -1
  443. package/build/lib/web/development/components/Table/TablePagination.web.js +6 -5
  444. package/build/lib/web/development/components/Table/TablePagination.web.js.map +1 -1
  445. package/build/lib/web/development/components/Table/TableToolbar.web.js +4 -3
  446. package/build/lib/web/development/components/Table/TableToolbar.web.js.map +1 -1
  447. package/build/lib/web/development/components/Table/tokens.js +41 -43
  448. package/build/lib/web/development/components/Table/tokens.js.map +1 -1
  449. package/build/lib/web/development/components/Tabs/TabIndicator.web.js +7 -6
  450. package/build/lib/web/development/components/Tabs/TabIndicator.web.js.map +1 -1
  451. package/build/lib/web/development/components/Tabs/TabItem.web.js +17 -14
  452. package/build/lib/web/development/components/Tabs/TabItem.web.js.map +1 -1
  453. package/build/lib/web/development/components/Tabs/TabList.web.js +7 -5
  454. package/build/lib/web/development/components/Tabs/TabList.web.js.map +1 -1
  455. package/build/lib/web/development/components/Tabs/tabTokens.js +38 -41
  456. package/build/lib/web/development/components/Tabs/tabTokens.js.map +1 -1
  457. package/build/lib/web/development/components/Tag/Tag.js +7 -5
  458. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  459. package/build/lib/web/development/components/Tooltip/Tooltip.web.js +2 -2
  460. package/build/lib/web/development/components/Tooltip/Tooltip.web.js.map +1 -1
  461. package/build/lib/web/development/components/Tooltip/TooltipContent.js +3 -4
  462. package/build/lib/web/development/components/Tooltip/TooltipContent.js.map +1 -1
  463. package/build/lib/web/development/components/Tooltip/getTooltipContentWrapperStyles.js +2 -2
  464. package/build/lib/web/development/components/Tooltip/getTooltipContentWrapperStyles.js.map +1 -1
  465. package/build/lib/web/development/components/Typography/BaseText/BaseText.web.js +10 -2
  466. package/build/lib/web/development/components/Typography/BaseText/BaseText.web.js.map +1 -1
  467. package/build/lib/web/development/components/Typography/BaseText/getBaseTextStyles.js +10 -2
  468. package/build/lib/web/development/components/Typography/BaseText/getBaseTextStyles.js.map +1 -1
  469. package/build/lib/web/development/components/Typography/Code/Code.js +3 -3
  470. package/build/lib/web/development/components/Typography/Code/Code.js.map +1 -1
  471. package/build/lib/web/development/components/Typography/Display/Display.js +23 -25
  472. package/build/lib/web/development/components/Typography/Display/Display.js.map +1 -1
  473. package/build/lib/web/development/components/Typography/Heading/Heading.js +30 -61
  474. package/build/lib/web/development/components/Typography/Heading/Heading.js.map +1 -1
  475. package/build/lib/web/development/components/Typography/Text/Text.js +26 -24
  476. package/build/lib/web/development/components/Typography/Text/Text.js.map +1 -1
  477. package/build/lib/web/development/components/Typography/Text/getTextStyles.js +3 -5
  478. package/build/lib/web/development/components/Typography/Text/getTextStyles.js.map +1 -1
  479. package/build/lib/web/development/components/Typography/index.js +0 -1
  480. package/build/lib/web/development/components/Typography/index.js.map +1 -1
  481. package/build/lib/web/development/components/index.js +56 -57
  482. package/build/lib/web/development/components/index.js.map +1 -1
  483. package/build/lib/web/development/tokens/global/border.js +3 -0
  484. package/build/lib/web/development/tokens/global/border.js.map +1 -1
  485. package/build/lib/web/development/tokens/global/colors.js +227 -250
  486. package/build/lib/web/development/tokens/global/colors.js.map +1 -1
  487. package/build/lib/web/development/tokens/global/elevation/elevation.web.js +6 -6
  488. package/build/lib/web/development/tokens/global/elevation/elevation.web.js.map +1 -1
  489. package/build/lib/web/development/tokens/global/fontFamily/fontFamily.web.js +3 -2
  490. package/build/lib/web/development/tokens/global/fontFamily/fontFamily.web.js.map +1 -1
  491. package/build/lib/web/development/tokens/global/motion.js.map +1 -1
  492. package/build/lib/web/development/tokens/global/opacity.js +12 -9
  493. package/build/lib/web/development/tokens/global/opacity.js.map +1 -1
  494. package/build/lib/web/development/tokens/global/typography.js +37 -40
  495. package/build/lib/web/development/tokens/global/typography.js.map +1 -1
  496. package/build/lib/web/development/tokens/index.js +1 -2
  497. package/build/lib/web/development/tokens/index.js.map +1 -1
  498. package/build/lib/web/development/tokens/theme/bladeTheme.js +925 -0
  499. package/build/lib/web/development/tokens/theme/bladeTheme.js.map +1 -0
  500. package/build/lib/web/development/tokens/theme/createTheme.js +123 -177
  501. package/build/lib/web/development/tokens/theme/createTheme.js.map +1 -1
  502. package/build/lib/web/development/tokens/theme/index.js +1 -2
  503. package/build/lib/web/development/tokens/theme/index.js.map +1 -1
  504. package/build/lib/web/development/tokens/theme/overrideTheme.js +4 -4
  505. package/build/lib/web/development/tokens/theme/overrideTheme.js.map +1 -1
  506. package/build/lib/web/development/tokens/theme/theme.js +1 -7
  507. package/build/lib/web/development/tokens/theme/theme.js.map +1 -1
  508. package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js +26 -0
  509. package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -0
  510. package/build/lib/web/development/utils/getFocusRingStyles/index.js +2 -0
  511. package/build/lib/web/development/utils/lodashButBetter/get.js +8 -0
  512. package/build/lib/web/development/utils/lodashButBetter/get.js.map +1 -1
  513. package/build/lib/web/development/utils/lodashButBetter/isEmpty.js.map +1 -1
  514. package/build/lib/web/development/utils/makeLetterSpacing/index.js +2 -0
  515. package/build/lib/web/development/utils/makeLetterSpacing/makeLetterSpacing.js +7 -0
  516. package/build/lib/web/development/utils/makeLetterSpacing/makeLetterSpacing.js.map +1 -0
  517. package/build/lib/web/development/utils/objectKeysWithType.js +7 -0
  518. package/build/lib/web/development/utils/objectKeysWithType.js.map +1 -0
  519. package/build/lib/web/development/utils/useInteraction.js +3 -3
  520. package/build/lib/web/development/utils/useInteraction.js.map +1 -1
  521. package/build/lib/web/production/components/Accordion/AccordionButton.web.js +8 -6
  522. package/build/lib/web/production/components/Accordion/AccordionButton.web.js.map +1 -1
  523. package/build/lib/web/production/components/Accordion/AccordionItem.js +1 -1
  524. package/build/lib/web/production/components/Accordion/AccordionItem.js.map +1 -1
  525. package/build/lib/web/production/components/Accordion/StyledAccordionButton.web.js +10 -11
  526. package/build/lib/web/production/components/Accordion/StyledAccordionButton.web.js.map +1 -1
  527. package/build/lib/web/production/components/Accordion/commonStyles.js +3 -6
  528. package/build/lib/web/production/components/Accordion/commonStyles.js.map +1 -1
  529. package/build/lib/web/production/components/ActionList/ActionList.js +21 -48
  530. package/build/lib/web/production/components/ActionList/ActionList.js.map +1 -1
  531. package/build/lib/web/production/components/ActionList/ActionListItem.js +6 -12
  532. package/build/lib/web/production/components/ActionList/ActionListItem.js.map +1 -1
  533. package/build/lib/web/production/components/ActionList/ActionListNoResults.js +3 -3
  534. package/build/lib/web/production/components/ActionList/ActionListNoResults.js.map +1 -1
  535. package/build/lib/web/production/components/ActionList/actionListUtils.js +3 -3
  536. package/build/lib/web/production/components/ActionList/actionListUtils.js.map +1 -1
  537. package/build/lib/web/production/components/ActionList/index.js +1 -1
  538. package/build/lib/web/production/components/ActionList/styles/StyledActionListItem.web.js +6 -3
  539. package/build/lib/web/production/components/ActionList/styles/StyledActionListItem.web.js.map +1 -1
  540. package/build/lib/web/production/components/Alert/Alert.js +36 -52
  541. package/build/lib/web/production/components/Alert/Alert.js.map +1 -1
  542. package/build/lib/web/production/components/Alert/styles.js +3 -7
  543. package/build/lib/web/production/components/Alert/styles.js.map +1 -1
  544. package/build/lib/web/production/components/Amount/Amount.js +141 -76
  545. package/build/lib/web/production/components/Amount/Amount.js.map +1 -1
  546. package/build/lib/web/production/components/Amount/amountTokens.js +67 -34
  547. package/build/lib/web/production/components/Amount/amountTokens.js.map +1 -1
  548. package/build/lib/web/production/components/Badge/Badge.js +26 -35
  549. package/build/lib/web/production/components/Badge/Badge.js.map +1 -1
  550. package/build/lib/web/production/components/Badge/badgeTokens.js +7 -5
  551. package/build/lib/web/production/components/Badge/badgeTokens.js.map +1 -1
  552. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js +7 -7
  553. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  554. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +3 -3
  555. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  556. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js +1 -5
  557. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  558. package/build/lib/web/production/components/BottomSheet/BottomSheetCommon.js +1 -5
  559. package/build/lib/web/production/components/BottomSheet/BottomSheetCommon.js.map +1 -1
  560. package/build/lib/web/production/components/BottomSheet/BottomSheetFooter.web.js +1 -5
  561. package/build/lib/web/production/components/BottomSheet/BottomSheetFooter.web.js.map +1 -1
  562. package/build/lib/web/production/components/BottomSheet/getBottomSheetGrabHandleStyles.js +1 -1
  563. package/build/lib/web/production/components/BottomSheet/getBottomSheetGrabHandleStyles.js.map +1 -1
  564. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js +15 -4
  565. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  566. package/build/lib/web/production/components/Box/BaseBox/getResponsiveValue.web.js.map +1 -1
  567. package/build/lib/web/production/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  568. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js +103 -91
  569. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js.map +1 -1
  570. package/build/lib/web/production/components/Button/BaseButton/StyledBaseButton.web.js +4 -4
  571. package/build/lib/web/production/components/Button/BaseButton/StyledBaseButton.web.js.map +1 -1
  572. package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js +113 -6
  573. package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js.map +1 -1
  574. package/build/lib/web/production/components/Button/BaseButton/getStyledBaseButtonStyles.js +2 -1
  575. package/build/lib/web/production/components/Button/BaseButton/getStyledBaseButtonStyles.js.map +1 -1
  576. package/build/lib/web/production/components/Button/Button/Button.js +1 -1
  577. package/build/lib/web/production/components/Button/Button/Button.js.map +1 -1
  578. package/build/lib/web/production/components/Button/IconButton/IconButton.js +3 -3
  579. package/build/lib/web/production/components/Button/IconButton/IconButton.js.map +1 -1
  580. package/build/lib/web/production/components/Button/IconButton/StyledIconButton.web.js +15 -14
  581. package/build/lib/web/production/components/Button/IconButton/StyledIconButton.web.js.map +1 -1
  582. package/build/lib/web/production/components/Card/Card.js +8 -5
  583. package/build/lib/web/production/components/Card/Card.js.map +1 -1
  584. package/build/lib/web/production/components/Card/CardFooter.js +13 -9
  585. package/build/lib/web/production/components/Card/CardFooter.js.map +1 -1
  586. package/build/lib/web/production/components/Card/CardHeader.js +28 -15
  587. package/build/lib/web/production/components/Card/CardHeader.js.map +1 -1
  588. package/build/lib/web/production/components/Card/CardRoot.web.js +2 -2
  589. package/build/lib/web/production/components/Card/CardRoot.web.js.map +1 -1
  590. package/build/lib/web/production/components/Card/CardSurface.web.js +2 -5
  591. package/build/lib/web/production/components/Card/CardSurface.web.js.map +1 -1
  592. package/build/lib/web/production/components/Card/index.js +1 -1
  593. package/build/lib/web/production/components/Carousel/Carousel.web.js.map +1 -1
  594. package/build/lib/web/production/components/Carousel/Indicators/getIndicatorButtonStyles.js +9 -9
  595. package/build/lib/web/production/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  596. package/build/lib/web/production/components/Carousel/NavigationButton/NavigationButton.js +2 -2
  597. package/build/lib/web/production/components/Carousel/NavigationButton/NavigationButton.js.map +1 -1
  598. package/build/lib/web/production/components/Carousel/NavigationButton/getNavigationButtonStyles.js +23 -30
  599. package/build/lib/web/production/components/Carousel/NavigationButton/getNavigationButtonStyles.js.map +1 -1
  600. package/build/lib/web/production/components/Checkbox/CheckboxIcon/CheckboxIcon.js +1 -3
  601. package/build/lib/web/production/components/Checkbox/CheckboxIcon/CheckboxIcon.js.map +1 -1
  602. package/build/lib/web/production/components/Checkbox/CheckboxIcon/CheckboxIconWrapperStyles.js +2 -2
  603. package/build/lib/web/production/components/Checkbox/CheckboxIcon/CheckboxIconWrapperStyles.js.map +1 -1
  604. package/build/lib/web/production/components/Checkbox/checkboxTokens.js +17 -16
  605. package/build/lib/web/production/components/Checkbox/checkboxTokens.js.map +1 -1
  606. package/build/lib/web/production/components/Chip/AnimatedChip.web.js +2 -2
  607. package/build/lib/web/production/components/Chip/AnimatedChip.web.js.map +1 -1
  608. package/build/lib/web/production/components/Chip/Chip.js +6 -11
  609. package/build/lib/web/production/components/Chip/Chip.js.map +1 -1
  610. package/build/lib/web/production/components/Chip/ChipGroup.js +3 -5
  611. package/build/lib/web/production/components/Chip/ChipGroup.js.map +1 -1
  612. package/build/lib/web/production/components/Chip/StyledChipWrapper.web.js +2 -2
  613. package/build/lib/web/production/components/Chip/StyledChipWrapper.web.js.map +1 -1
  614. package/build/lib/web/production/components/Chip/chipTokens.js +38 -38
  615. package/build/lib/web/production/components/Chip/chipTokens.js.map +1 -1
  616. package/build/lib/web/production/components/Chip/getAnimatedChipStyles.js +1 -1
  617. package/build/lib/web/production/components/Chip/getAnimatedChipStyles.js.map +1 -1
  618. package/build/lib/web/production/components/Chip/useChipGroup.js +1 -3
  619. package/build/lib/web/production/components/Chip/useChipGroup.js.map +1 -1
  620. package/build/lib/web/production/components/Counter/Counter.js +25 -44
  621. package/build/lib/web/production/components/Counter/Counter.js.map +1 -1
  622. package/build/lib/web/production/components/Counter/counterTokens.js +5 -5
  623. package/build/lib/web/production/components/Counter/counterTokens.js.map +1 -1
  624. package/build/lib/web/production/components/Divider/Divider.js +6 -8
  625. package/build/lib/web/production/components/Divider/Divider.js.map +1 -1
  626. package/build/lib/web/production/components/Dropdown/Dropdown.js +1 -5
  627. package/build/lib/web/production/components/Dropdown/Dropdown.js.map +1 -1
  628. package/build/lib/web/production/components/Dropdown/StyledDropdownOverlay.js +2 -2
  629. package/build/lib/web/production/components/Dropdown/StyledDropdownOverlay.js.map +1 -1
  630. package/build/lib/web/production/components/Form/CharacterCounter/CharacterCounter.js +1 -1
  631. package/build/lib/web/production/components/Form/CharacterCounter/CharacterCounter.js.map +1 -1
  632. package/build/lib/web/production/components/Form/FormHint.js +11 -13
  633. package/build/lib/web/production/components/Form/FormHint.js.map +1 -1
  634. package/build/lib/web/production/components/Form/FormLabel.js +9 -17
  635. package/build/lib/web/production/components/Form/FormLabel.js.map +1 -1
  636. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js +5 -5
  637. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js.map +1 -1
  638. package/build/lib/web/production/components/Form/Selector/SelectorSupportText.js +16 -11
  639. package/build/lib/web/production/components/Form/Selector/SelectorSupportText.js.map +1 -1
  640. package/build/lib/web/production/components/Form/Selector/SelectorTitle.js +5 -16
  641. package/build/lib/web/production/components/Form/Selector/SelectorTitle.js.map +1 -1
  642. package/build/lib/web/production/components/Icons/_Svg/Circle/Circle.web.js +4 -2
  643. package/build/lib/web/production/components/Icons/_Svg/Circle/Circle.web.js.map +1 -1
  644. package/build/lib/web/production/components/Icons/_Svg/Rect/Rect.web.js +4 -2
  645. package/build/lib/web/production/components/Icons/_Svg/Rect/Rect.web.js.map +1 -1
  646. package/build/lib/web/production/components/Icons/_Svg/Svg/Svg.web.js +4 -2
  647. package/build/lib/web/production/components/Icons/_Svg/Svg/Svg.web.js.map +1 -1
  648. package/build/lib/web/production/components/Icons/useIconProps/useIconProps.js +1 -1
  649. package/build/lib/web/production/components/Icons/useIconProps/useIconProps.js.map +1 -1
  650. package/build/lib/web/production/components/Indicator/Indicator.js +9 -16
  651. package/build/lib/web/production/components/Indicator/Indicator.js.map +1 -1
  652. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +3 -3
  653. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  654. package/build/lib/web/production/components/Input/BaseInput/BaseInputAnimatedBorder.web.js +2 -2
  655. package/build/lib/web/production/components/Input/BaseInput/BaseInputAnimatedBorder.web.js.map +1 -1
  656. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js +4 -1
  657. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  658. package/build/lib/web/production/components/Input/BaseInput/BaseInputVisuals.js +4 -6
  659. package/build/lib/web/production/components/Input/BaseInput/BaseInputVisuals.js.map +1 -1
  660. package/build/lib/web/production/components/Input/BaseInput/BaseInputWrapper.js.map +1 -1
  661. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js +3 -4
  662. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  663. package/build/lib/web/production/components/Input/BaseInput/baseInputStyles.js +11 -12
  664. package/build/lib/web/production/components/Input/BaseInput/baseInputStyles.js.map +1 -1
  665. package/build/lib/web/production/components/Input/DropdownInputTriggers/Chevron.js +1 -1
  666. package/build/lib/web/production/components/Input/DropdownInputTriggers/Chevron.js.map +1 -1
  667. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js +20 -32
  668. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js.map +1 -1
  669. package/build/lib/web/production/components/Link/Link/Link.js +1 -1
  670. package/build/lib/web/production/components/Link/Link/Link.js.map +1 -1
  671. package/build/lib/web/production/components/List/List.js +1 -3
  672. package/build/lib/web/production/components/List/List.js.map +1 -1
  673. package/build/lib/web/production/components/List/ListItem.js +3 -3
  674. package/build/lib/web/production/components/List/ListItem.js.map +1 -1
  675. package/build/lib/web/production/components/List/ListItemIcons.js +11 -7
  676. package/build/lib/web/production/components/List/ListItemIcons.js.map +1 -1
  677. package/build/lib/web/production/components/Modal/Modal.web.js +1 -1
  678. package/build/lib/web/production/components/Modal/Modal.web.js.map +1 -1
  679. package/build/lib/web/production/components/Modal/ModalBackdrop.js +1 -1
  680. package/build/lib/web/production/components/Modal/ModalBackdrop.js.map +1 -1
  681. package/build/lib/web/production/components/Modal/ModalHeader.web.js +1 -5
  682. package/build/lib/web/production/components/Modal/ModalHeader.web.js.map +1 -1
  683. package/build/lib/web/production/components/Popover/Popover.web.js +2 -2
  684. package/build/lib/web/production/components/Popover/Popover.web.js.map +1 -1
  685. package/build/lib/web/production/components/Popover/PopoverContent.js +4 -5
  686. package/build/lib/web/production/components/Popover/PopoverContent.js.map +1 -1
  687. package/build/lib/web/production/components/Popover/PopoverInteractiveWrapper.web.js +5 -5
  688. package/build/lib/web/production/components/Popover/PopoverInteractiveWrapper.web.js.map +1 -1
  689. package/build/lib/web/production/components/Popover/getPopoverContentWrapperStyles.js +2 -2
  690. package/build/lib/web/production/components/Popover/getPopoverContentWrapperStyles.js.map +1 -1
  691. package/build/lib/web/production/components/ProgressBar/ProgressBar.js +9 -13
  692. package/build/lib/web/production/components/ProgressBar/ProgressBar.js.map +1 -1
  693. package/build/lib/web/production/components/Radio/Radio.js +1 -0
  694. package/build/lib/web/production/components/Radio/Radio.js.map +1 -1
  695. package/build/lib/web/production/components/Radio/RadioIcon/RadioIcon.js +2 -1
  696. package/build/lib/web/production/components/Radio/RadioIcon/RadioIcon.js.map +1 -1
  697. package/build/lib/web/production/components/Radio/RadioIcon/RadioIconWrapperStyles.js +2 -2
  698. package/build/lib/web/production/components/Radio/RadioIcon/RadioIconWrapperStyles.js.map +1 -1
  699. package/build/lib/web/production/components/Radio/radioTokens.js +23 -22
  700. package/build/lib/web/production/components/Radio/radioTokens.js.map +1 -1
  701. package/build/lib/web/production/components/Skeleton/PulseAnimation.web.js +4 -7
  702. package/build/lib/web/production/components/Skeleton/PulseAnimation.web.js.map +1 -1
  703. package/build/lib/web/production/components/Skeleton/Skeleton.js +3 -6
  704. package/build/lib/web/production/components/Skeleton/Skeleton.js.map +1 -1
  705. package/build/lib/web/production/components/Spinner/BaseSpinner/BaseSpinner.js +9 -14
  706. package/build/lib/web/production/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  707. package/build/lib/web/production/components/Spinner/Spinner/Spinner.js +2 -5
  708. package/build/lib/web/production/components/Spinner/Spinner/Spinner.js.map +1 -1
  709. package/build/lib/web/production/components/SpotlightPopoverTour/TourFooter.web.js +1 -1
  710. package/build/lib/web/production/components/SpotlightPopoverTour/TourFooter.web.js.map +1 -1
  711. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js +2 -2
  712. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  713. package/build/lib/web/production/components/SpotlightPopoverTour/TourPopover.web.js +2 -2
  714. package/build/lib/web/production/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  715. package/build/lib/web/production/components/Switch/switchTokens.js +10 -10
  716. package/build/lib/web/production/components/Switch/switchTokens.js.map +1 -1
  717. package/build/lib/web/production/components/Table/Table.web.js +9 -9
  718. package/build/lib/web/production/components/Table/Table.web.js.map +1 -1
  719. package/build/lib/web/production/components/Table/TableBody.web.js +14 -12
  720. package/build/lib/web/production/components/Table/TableBody.web.js.map +1 -1
  721. package/build/lib/web/production/components/Table/TableContext.js +2 -2
  722. package/build/lib/web/production/components/Table/TableContext.js.map +1 -1
  723. package/build/lib/web/production/components/Table/TableFooter.web.js +7 -7
  724. package/build/lib/web/production/components/Table/TableFooter.web.js.map +1 -1
  725. package/build/lib/web/production/components/Table/TableHeader.web.js +18 -16
  726. package/build/lib/web/production/components/Table/TableHeader.web.js.map +1 -1
  727. package/build/lib/web/production/components/Table/TablePagination.web.js +6 -5
  728. package/build/lib/web/production/components/Table/TablePagination.web.js.map +1 -1
  729. package/build/lib/web/production/components/Table/TableToolbar.web.js +4 -3
  730. package/build/lib/web/production/components/Table/TableToolbar.web.js.map +1 -1
  731. package/build/lib/web/production/components/Table/tokens.js +41 -43
  732. package/build/lib/web/production/components/Table/tokens.js.map +1 -1
  733. package/build/lib/web/production/components/Tabs/TabIndicator.web.js +7 -6
  734. package/build/lib/web/production/components/Tabs/TabIndicator.web.js.map +1 -1
  735. package/build/lib/web/production/components/Tabs/TabItem.web.js +17 -14
  736. package/build/lib/web/production/components/Tabs/TabItem.web.js.map +1 -1
  737. package/build/lib/web/production/components/Tabs/TabList.web.js +7 -5
  738. package/build/lib/web/production/components/Tabs/TabList.web.js.map +1 -1
  739. package/build/lib/web/production/components/Tabs/tabTokens.js +38 -41
  740. package/build/lib/web/production/components/Tabs/tabTokens.js.map +1 -1
  741. package/build/lib/web/production/components/Tag/Tag.js +7 -5
  742. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  743. package/build/lib/web/production/components/Tooltip/Tooltip.web.js +2 -2
  744. package/build/lib/web/production/components/Tooltip/Tooltip.web.js.map +1 -1
  745. package/build/lib/web/production/components/Tooltip/TooltipContent.js +3 -4
  746. package/build/lib/web/production/components/Tooltip/TooltipContent.js.map +1 -1
  747. package/build/lib/web/production/components/Tooltip/getTooltipContentWrapperStyles.js +2 -2
  748. package/build/lib/web/production/components/Tooltip/getTooltipContentWrapperStyles.js.map +1 -1
  749. package/build/lib/web/production/components/Typography/BaseText/BaseText.web.js +10 -2
  750. package/build/lib/web/production/components/Typography/BaseText/BaseText.web.js.map +1 -1
  751. package/build/lib/web/production/components/Typography/BaseText/getBaseTextStyles.js +10 -2
  752. package/build/lib/web/production/components/Typography/BaseText/getBaseTextStyles.js.map +1 -1
  753. package/build/lib/web/production/components/Typography/Code/Code.js +3 -3
  754. package/build/lib/web/production/components/Typography/Code/Code.js.map +1 -1
  755. package/build/lib/web/production/components/Typography/Display/Display.js +23 -25
  756. package/build/lib/web/production/components/Typography/Display/Display.js.map +1 -1
  757. package/build/lib/web/production/components/Typography/Heading/Heading.js +30 -61
  758. package/build/lib/web/production/components/Typography/Heading/Heading.js.map +1 -1
  759. package/build/lib/web/production/components/Typography/Text/Text.js +26 -24
  760. package/build/lib/web/production/components/Typography/Text/Text.js.map +1 -1
  761. package/build/lib/web/production/components/Typography/Text/getTextStyles.js +3 -5
  762. package/build/lib/web/production/components/Typography/Text/getTextStyles.js.map +1 -1
  763. package/build/lib/web/production/components/Typography/index.js +0 -1
  764. package/build/lib/web/production/components/Typography/index.js.map +1 -1
  765. package/build/lib/web/production/components/index.js +56 -57
  766. package/build/lib/web/production/components/index.js.map +1 -1
  767. package/build/lib/web/production/tokens/global/border.js +3 -0
  768. package/build/lib/web/production/tokens/global/border.js.map +1 -1
  769. package/build/lib/web/production/tokens/global/colors.js +227 -250
  770. package/build/lib/web/production/tokens/global/colors.js.map +1 -1
  771. package/build/lib/web/production/tokens/global/elevation/elevation.web.js +6 -6
  772. package/build/lib/web/production/tokens/global/elevation/elevation.web.js.map +1 -1
  773. package/build/lib/web/production/tokens/global/fontFamily/fontFamily.web.js +3 -2
  774. package/build/lib/web/production/tokens/global/fontFamily/fontFamily.web.js.map +1 -1
  775. package/build/lib/web/production/tokens/global/motion.js.map +1 -1
  776. package/build/lib/web/production/tokens/global/opacity.js +12 -9
  777. package/build/lib/web/production/tokens/global/opacity.js.map +1 -1
  778. package/build/lib/web/production/tokens/global/typography.js +37 -40
  779. package/build/lib/web/production/tokens/global/typography.js.map +1 -1
  780. package/build/lib/web/production/tokens/index.js +1 -2
  781. package/build/lib/web/production/tokens/index.js.map +1 -1
  782. package/build/lib/web/production/tokens/theme/bladeTheme.js +925 -0
  783. package/build/lib/web/production/tokens/theme/bladeTheme.js.map +1 -0
  784. package/build/lib/web/production/tokens/theme/createTheme.js +123 -177
  785. package/build/lib/web/production/tokens/theme/createTheme.js.map +1 -1
  786. package/build/lib/web/production/tokens/theme/index.js +1 -2
  787. package/build/lib/web/production/tokens/theme/index.js.map +1 -1
  788. package/build/lib/web/production/tokens/theme/overrideTheme.js +4 -4
  789. package/build/lib/web/production/tokens/theme/overrideTheme.js.map +1 -1
  790. package/build/lib/web/production/tokens/theme/theme.js +1 -7
  791. package/build/lib/web/production/tokens/theme/theme.js.map +1 -1
  792. package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js +26 -0
  793. package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -0
  794. package/build/lib/web/production/utils/getFocusRingStyles/index.js +2 -0
  795. package/build/lib/web/production/utils/getFocusRingStyles/index.js.map +1 -0
  796. package/build/lib/web/production/utils/lodashButBetter/get.js +8 -0
  797. package/build/lib/web/production/utils/lodashButBetter/get.js.map +1 -1
  798. package/build/lib/web/production/utils/lodashButBetter/isEmpty.js.map +1 -1
  799. package/build/lib/web/production/utils/makeLetterSpacing/index.js +2 -0
  800. package/build/lib/web/production/utils/makeLetterSpacing/index.js.map +1 -0
  801. package/build/lib/web/production/utils/makeLetterSpacing/makeLetterSpacing.js +7 -0
  802. package/build/lib/web/production/utils/makeLetterSpacing/makeLetterSpacing.js.map +1 -0
  803. package/build/lib/web/production/utils/objectKeysWithType.js +7 -0
  804. package/build/lib/web/production/utils/objectKeysWithType.js.map +1 -0
  805. package/build/lib/web/production/utils/useInteraction.js +3 -3
  806. package/build/lib/web/production/utils/useInteraction.js.map +1 -1
  807. package/build/types/components/index.d.ts +6005 -6169
  808. package/build/types/components/index.native.d.ts +4653 -4817
  809. package/build/types/tokens/index.d.ts +135 -182
  810. package/build/types/tokens/index.native.d.ts +135 -182
  811. package/build/types/utils/index.d.ts +94 -154
  812. package/build/types/utils/index.native.d.ts +94 -154
  813. package/codemods/brand-refresh/transformers/__tests__/migrate-actionlist.test.ts +88 -0
  814. package/codemods/brand-refresh/transformers/__tests__/migrate-amount.test.ts +186 -0
  815. package/codemods/brand-refresh/transformers/__tests__/migrate-badge.test.ts +32 -0
  816. package/codemods/brand-refresh/transformers/__tests__/migrate-card.test.ts +180 -0
  817. package/codemods/brand-refresh/transformers/__tests__/migrate-colors.test.ts +172 -0
  818. package/codemods/brand-refresh/transformers/__tests__/migrate-contrast-intent-variant.test.ts +206 -0
  819. package/codemods/brand-refresh/transformers/__tests__/migrate-divider.test.ts +24 -0
  820. package/codemods/brand-refresh/transformers/__tests__/migrate-dropdown.test.ts +282 -0
  821. package/codemods/brand-refresh/transformers/__tests__/migrate-table.test.ts +182 -0
  822. package/codemods/brand-refresh/transformers/__tests__/migrate-typography.test.ts +432 -0
  823. package/codemods/brand-refresh/transformers/colorTokensMapping.json +624 -0
  824. package/codemods/brand-refresh/transformers/index.ts +224 -0
  825. package/codemods/brand-refresh/transformers/migrate-actionlist-and-table.ts +32 -0
  826. package/codemods/brand-refresh/transformers/migrate-amount.ts +173 -0
  827. package/codemods/brand-refresh/transformers/migrate-badge.ts +28 -0
  828. package/codemods/brand-refresh/transformers/migrate-card.ts +43 -0
  829. package/codemods/brand-refresh/transformers/migrate-contrast-intent-color-props.ts +298 -0
  830. package/codemods/brand-refresh/transformers/migrate-divider.ts +38 -0
  831. package/codemods/brand-refresh/transformers/migrate-dropdown.ts +81 -0
  832. package/codemods/brand-refresh/transformers/migrate-typography.ts +342 -0
  833. package/codemods/brand-refresh/transformers/utils.ts +7 -0
  834. package/fonts/blade-fonts-react-native.zip +0 -0
  835. package/fonts/inter-variable/inter-cyrillic-extra.woff2 +0 -0
  836. package/fonts/inter-variable/inter-cyrillic.woff2 +0 -0
  837. package/fonts/inter-variable/inter-greek-extra.woff2 +0 -0
  838. package/fonts/inter-variable/inter-greek.woff2 +0 -0
  839. package/fonts/inter-variable/inter-latin-blade-extra.woff2 +0 -0
  840. package/fonts/inter-variable/inter-latin-blade.woff2 +0 -0
  841. package/fonts/inter-variable/inter-vietnamese.woff2 +0 -0
  842. package/fonts/tasa-orbiter.woff2 +0 -0
  843. package/fonts.css +82 -0
  844. package/package.json +10 -4
  845. package/build/css/bankingThemeDarkDesktop.css +0 -751
  846. package/build/css/bankingThemeDarkMobile.css +0 -751
  847. package/build/css/bankingThemeLightDesktop.css +0 -751
  848. package/build/css/bankingThemeLightMobile.css +0 -751
  849. package/build/css/paymentThemeDarkDesktop.css +0 -751
  850. package/build/css/paymentThemeDarkMobile.css +0 -751
  851. package/build/css/paymentThemeLightDesktop.css +0 -751
  852. package/build/css/paymentThemeLightMobile.css +0 -751
  853. package/build/lib/native/components/Typography/Title/Title.js +0 -17
  854. package/build/lib/native/components/Typography/Title/Title.js.map +0 -1
  855. package/build/lib/native/tokens/theme/bankingTheme.js +0 -12
  856. package/build/lib/native/tokens/theme/bankingTheme.js.map +0 -1
  857. package/build/lib/native/tokens/theme/paymentTheme.js +0 -12
  858. package/build/lib/native/tokens/theme/paymentTheme.js.map +0 -1
  859. package/build/lib/web/development/components/Typography/Title/Title.js +0 -96
  860. package/build/lib/web/development/components/Typography/Title/Title.js.map +0 -1
  861. package/build/lib/web/development/components/Typography/Title/index.js +0 -2
  862. package/build/lib/web/development/tokens/theme/bankingTheme.js +0 -3086
  863. package/build/lib/web/development/tokens/theme/bankingTheme.js.map +0 -1
  864. package/build/lib/web/development/tokens/theme/paymentTheme.js +0 -3086
  865. package/build/lib/web/development/tokens/theme/paymentTheme.js.map +0 -1
  866. package/build/lib/web/production/components/Typography/Title/Title.js +0 -96
  867. package/build/lib/web/production/components/Typography/Title/Title.js.map +0 -1
  868. package/build/lib/web/production/components/Typography/Title/index.js +0 -2
  869. package/build/lib/web/production/tokens/theme/bankingTheme.js +0 -3086
  870. package/build/lib/web/production/tokens/theme/bankingTheme.js.map +0 -1
  871. package/build/lib/web/production/tokens/theme/paymentTheme.js +0 -3086
  872. package/build/lib/web/production/tokens/theme/paymentTheme.js.map +0 -1
  873. /package/build/lib/web/development/{components/Typography/Title → utils/getFocusRingStyles}/index.js.map +0 -0
  874. /package/build/lib/web/{production/components/Typography/Title → development/utils/makeLetterSpacing}/index.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sources":["../../../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import type { ReactChild, ReactElement } from 'react';\nimport { Fragment, useState } from 'react';\n\nimport { StyledAlert } from './StyledAlert';\nimport {\n AlertOctagonIcon,\n AlertTriangleIcon,\n CheckCircleIcon,\n CloseIcon,\n InfoIcon,\n} from '~components/Icons';\nimport { castNativeType, castWebType, useBreakpoint, getPlatformType } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { IconButton } from '~components/Button/IconButton';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Heading, Text } from '~components/Typography';\nimport BaseButton from '~components/Button/BaseButton';\nimport { BaseLink } from '~components/Link/BaseLink';\nimport type { ColorContrastTypes, Feedback } from '~tokens/theme/theme';\nimport { useTheme } from '~components/BladeProvider';\nimport type { DotNotationSpacingStringToken, TestID } from '~utils/types';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { throwBladeError } from '~utils/logger';\n\ntype Nullable<Type> = Type | null;\n\ntype PrimaryAction = {\n text: string;\n onClick: () => void;\n};\n\ntype SecondaryActionButton = {\n text: string;\n onClick: () => void;\n};\n\ntype SecondaryActionLinkButton = {\n text: string;\n href: string;\n onClick?: () => void;\n target?: string;\n /**\n * When `target` is set to `_blank` this is automatically set to `noopener noreferrer`\n */\n rel?: string;\n};\n\ntype SecondaryAction = SecondaryActionButton | SecondaryActionLinkButton;\n\ntype AlertProps = {\n /**\n * Body content, pass text or JSX. Avoid passing components except `Link` to customize the content.\n */\n description: ReactChild;\n\n /**\n * A brief heading\n */\n title?: string;\n\n /**\n * Shows a dismiss button\n *\n * @default true\n */\n isDismissible?: boolean;\n\n /**\n * A callback when the dismiss button is clicked\n */\n onDismiss?: () => void;\n\n /**\n * Can be set to `high` for a more prominent look. Not to be confused with a11y contrast.\n *\n * @default low\n */\n contrast?: ColorContrastTypes;\n\n /**\n * Makes the Alert span the entire container width, instead of the default max width of `584px`.\n * This also makes the alert borderless, useful for creating full bleed layouts.\n *\n * @default false\n */\n isFullWidth?: boolean;\n\n /**\n * This prop is deprecated in favor of the `color` prop.\n *\n * @deprecated Use `color` instead\n * @default neutral\n */\n intent?: Feedback;\n\n /**\n * Sets the color tone\n */\n color?: Feedback;\n\n /**\n * Renders a primary action button and a secondary action link button\n */\n actions?: {\n /**\n * Renders a button (should **always** be present if `secondary` action is being used)\n */\n primary: PrimaryAction;\n\n /**\n * Renders a Link button\n */\n secondary?: SecondaryAction;\n };\n} & TestID &\n StyledPropsBlade;\n\nconst isReactNative = getPlatformType() === 'react-native';\n\n// Need extra wrappers on React Native only for alignment\nconst CloseButtonWrapper = isReactNative ? BaseBox : Fragment;\n\nconst intentIconMap = {\n positive: CheckCircleIcon,\n negative: AlertOctagonIcon,\n information: InfoIcon,\n neutral: InfoIcon,\n notice: AlertTriangleIcon,\n};\n\nconst Alert = ({\n description,\n title,\n isDismissible = true,\n onDismiss,\n contrast = 'low',\n isFullWidth = false,\n // TODO: Remove intent prop in favor of color in the next major release\n intent = 'neutral',\n color,\n actions,\n testID,\n ...styledProps\n}: AlertProps): ReactElement | null => {\n if (__DEV__) {\n if (!actions?.primary && actions?.secondary) {\n throwBladeError({\n message: 'SecondaryAction is allowed only when PrimaryAction is defined.',\n moduleName: 'Alert',\n });\n }\n }\n const { theme } = useTheme();\n const { matchedDeviceType } = useBreakpoint({ breakpoints: theme.breakpoints });\n const isDesktop = matchedDeviceType === 'desktop';\n const isMobile = !isDesktop;\n\n const [isVisible, setIsVisible] = useState(true);\n const contrastType = `${contrast}Contrast` as const;\n const iconSize = isFullWidth ? 'large' : 'medium';\n const textSize = isFullWidth ? 'medium' : 'small';\n const alertColor = color ?? intent;\n\n const Icon = intentIconMap[alertColor];\n let iconOffset: DotNotationSpacingStringToken = 'spacing.1';\n\n // certain special cases below needs special care for near perfect alignment\n if (isReactNative) {\n if (isFullWidth && !title) {\n iconOffset = 'spacing.1';\n } else if (!isFullWidth && !title) {\n iconOffset = 'spacing.0';\n } else if (!isFullWidth && title) {\n iconOffset = 'spacing.2';\n }\n } else if (isMobile) {\n if (!isFullWidth && title) {\n iconOffset = 'spacing.2';\n } else if (isFullWidth && !title) {\n iconOffset = 'spacing.2';\n }\n } else if (isFullWidth) {\n iconOffset = 'spacing.0';\n }\n\n const icon = (\n <BaseBox marginTop={iconOffset} display=\"flex\">\n <Icon color={`feedback.icon.${alertColor}.${contrastType}`} size={iconSize} />\n </BaseBox>\n );\n\n const _title = title ? (\n <BaseBox marginBottom=\"spacing.2\">\n {isFullWidth ? (\n <Heading type=\"subtle\" size=\"small\" contrast={contrast}>\n {title}\n </Heading>\n ) : (\n <Text type=\"subtle\" weight=\"bold\" contrast={contrast}>\n {title}\n </Text>\n )}\n </BaseBox>\n ) : null;\n\n const _description = (\n <BaseBox marginTop={title || isReactNative ? 'spacing.0' : 'spacing.1'}>\n <Text type=\"subtle\" size={textSize} contrast={contrast}>\n {description}\n </Text>\n </BaseBox>\n );\n\n const primaryAction = actions?.primary ? (\n <BaseBox\n marginRight=\"spacing.5\"\n display={isReactNative ? castNativeType('flex') : castWebType('inline-flex')}\n >\n <BaseButton\n size={textSize}\n onClick={actions.primary.onClick}\n color={alertColor}\n variant={contrast === 'high' ? 'primary' : 'secondary'}\n >\n {actions.primary.text}\n </BaseButton>\n </BaseBox>\n ) : null;\n\n const secondaryActionParams: Nullable<Partial<SecondaryActionLinkButton>> = actions?.secondary\n ? {\n onClick: actions.secondary.onClick,\n }\n : null;\n\n /**\n * TS assumes only common properties to be present for `SecondaryAction` union type\n * We add a type guard that checks if href is present on secondary action:\n * - If yes, then TS can assume it to be `SecondaryActionLinkButton` (href being a required property)\n * - If no, then it would be `SecondaryActionButton` (and link properties wouldn't be needed)\n */\n if (actions?.secondary && secondaryActionParams && 'href' in actions.secondary) {\n secondaryActionParams.href = actions.secondary.href;\n secondaryActionParams.target = actions.secondary.target;\n secondaryActionParams.rel = actions.secondary.rel;\n }\n const secondaryAction = actions?.secondary ? (\n <BaseBox\n marginRight=\"spacing.4\"\n display={isReactNative ? castNativeType('flex') : castWebType('inline-flex')}\n >\n <BaseLink\n size={textSize}\n color={contrast === 'high' ? 'white' : alertColor}\n {...secondaryActionParams}\n >\n {actions.secondary.text}\n </BaseLink>\n </BaseBox>\n ) : null;\n\n // For certain cases we wish to render actions inline with text content\n const showActionsHorizontal = isFullWidth && isDesktop;\n\n const actionsHorizontal =\n showActionsHorizontal && (primaryAction || secondaryAction) ? (\n <BaseBox flexDirection=\"row\" alignItems=\"center\">\n {primaryAction}\n {secondaryAction}\n </BaseBox>\n ) : null;\n\n const actionsVertical =\n !showActionsHorizontal && (primaryAction || secondaryAction) ? (\n <BaseBox marginTop=\"spacing.4\" flexDirection=\"row\" alignItems=\"center\">\n {primaryAction}\n {secondaryAction}\n </BaseBox>\n ) : null;\n\n const onClickDismiss = (): void => {\n if (onDismiss) {\n onDismiss();\n }\n setIsVisible(false);\n };\n const closeButton = isDismissible ? (\n <CloseButtonWrapper>\n <IconButton\n accessibilityLabel=\"Dismiss alert\"\n onClick={onClickDismiss}\n contrast={contrast}\n size={iconSize}\n icon={CloseIcon}\n />\n </CloseButtonWrapper>\n ) : null;\n\n const a11yProps = makeAccessible({\n // React Native doesn't has status as role\n role:\n isReactNative || alertColor === 'negative' || alertColor === 'notice' ? 'alert' : 'status',\n // override the implicit live region of role `alert`\n ...(alertColor === 'notice' && { liveRegion: 'polite' }),\n });\n\n if (!isVisible) {\n return null;\n }\n\n return (\n <BaseBox\n {...a11yProps}\n {...metaAttribute({ name: MetaConstants.Alert, testID })}\n {...getStyledProps(styledProps)}\n >\n <StyledAlert\n color={alertColor}\n contrastType={contrastType}\n isFullWidth={isFullWidth}\n isDesktop={isDesktop}\n textAlign={'left' as never}\n >\n {icon}\n <BaseBox\n flex={1}\n paddingLeft={isFullWidth ? 'spacing.4' : 'spacing.3'}\n paddingRight={showActionsHorizontal ? 'spacing.4' : 'spacing.2'}\n >\n {_title}\n {_description}\n {actionsVertical}\n </BaseBox>\n {actionsHorizontal}\n {closeButton}\n </StyledAlert>\n </BaseBox>\n );\n};\n\nexport type { AlertProps };\nexport { Alert };\n"],"names":["isReactNative","getPlatformType","CloseButtonWrapper","BaseBox","Fragment","intentIconMap","positive","CheckCircleIcon","negative","AlertOctagonIcon","information","InfoIcon","neutral","notice","AlertTriangleIcon","Alert","_ref","description","title","_ref$isDismissible","isDismissible","onDismiss","_ref$contrast","contrast","_ref$isFullWidth","isFullWidth","_ref$intent","intent","color","actions","testID","styledProps","_objectWithoutProperties","_excluded","primary","secondary","throwBladeError","message","moduleName","_useTheme","useTheme","theme","_useBreakpoint","useBreakpoint","breakpoints","matchedDeviceType","isDesktop","isMobile","_useState","useState","_useState2","_slicedToArray","isVisible","setIsVisible","contrastType","concat","iconSize","textSize","alertColor","Icon","iconOffset","icon","_jsx","marginTop","display","children","size","_title","marginBottom","Heading","type","Text","weight","_description","primaryAction","marginRight","castNativeType","castWebType","BaseButton","onClick","variant","text","secondaryActionParams","href","target","rel","secondaryAction","BaseLink","_objectSpread","showActionsHorizontal","actionsHorizontal","_jsxs","flexDirection","alignItems","actionsVertical","onClickDismiss","closeButton","IconButton","accessibilityLabel","CloseIcon","a11yProps","makeAccessible","role","liveRegion","metaAttribute","name","MetaConstants","getStyledProps","StyledAlert","textAlign","flex","paddingLeft","paddingRight"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuHA,IAAMA,aAAa,GAAGC,eAAe,EAAE,KAAK,cAAc,CAAA;;AAE1D;AACA,IAAMC,kBAAkB,GAAGF,aAAa,GAAGG,OAAO,GAAGC,QAAQ,CAAA;AAE7D,IAAMC,aAAa,GAAG;AACpBC,EAAAA,QAAQ,EAAEC,eAAe;AACzBC,EAAAA,QAAQ,EAAEC,iBAAgB;AAC1BC,EAAAA,WAAW,EAAEC,QAAQ;AACrBC,EAAAA,OAAO,EAAED,QAAQ;AACjBE,EAAAA,MAAM,EAAEC,mBAAAA;AACV,CAAC,CAAA;AAED,IAAMC,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAa4B;AAAA,EAAA,IAZrCC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IACXC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAAC,kBAAA,GAAAH,IAAA,CACLI,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,kBAAA;IACpBE,SAAS,GAAAL,IAAA,CAATK,SAAS;IAAAC,aAAA,GAAAN,IAAA,CACTO,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;I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AAW,EAAA;AACVhF,MAAAA,KAAK,EAAE8B,UAAW;AAClBJ,MAAAA,YAAY,EAAEA,YAAa;AAC3B7B,MAAAA,WAAW,EAAEA,WAAY;AACzBqB,MAAAA,SAAS,EAAEA,SAAU;AACrB+D,MAAAA,SAAS,EAAE,MAAgB;AAAA5C,MAAAA,QAAA,EAE1BJ,CAAAA,IAAI,eACL8B,IAAA,CAACxF,OAAO,EAAA;AACN2G,QAAAA,IAAI,EAAE,CAAE;AACRC,QAAAA,WAAW,EAAEtF,WAAW,GAAG,WAAW,GAAG,WAAY;AACrDuF,QAAAA,YAAY,EAAEvB,qBAAqB,GAAG,WAAW,GAAG,WAAY;AAAAxB,QAAAA,QAAA,EAE/DE,CAAAA,MAAM,EACNM,YAAY,EACZqB,eAAe,CAAA;AAAA,OACT,CAAC,EACTJ,iBAAiB,EACjBM,WAAW,CAAA;KACD,CAAA;AAAC,GAAA,CACP,CAAC,CAAA;AAEd;;;;"}
1
+ {"version":3,"file":"Alert.js","sources":["../../../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import type { ReactChild, ReactElement } from 'react';\nimport { Fragment, useState } from 'react';\n\nimport { StyledAlert } from './StyledAlert';\nimport {\n AlertOctagonIcon,\n AlertTriangleIcon,\n CheckCircleIcon,\n CloseIcon,\n InfoIcon,\n} from '~components/Icons';\nimport { castNativeType, castWebType, useBreakpoint, getPlatformType } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { IconButton } from '~components/Button/IconButton';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Text } from '~components/Typography';\nimport BaseButton from '~components/Button/BaseButton';\nimport { BaseLink } from '~components/Link/BaseLink';\nimport type { FeedbackColors, SubtleOrIntense } from '~tokens/theme/theme';\nimport { useTheme } from '~components/BladeProvider';\nimport type { DotNotationSpacingStringToken, TestID } from '~utils/types';\nimport { makeAccessible } from '~utils/makeAccessible';\n\ntype PrimaryAction = {\n text: string;\n onClick: () => void;\n};\n\ntype SecondaryActionButton = {\n text: string;\n onClick: () => void;\n};\n\ntype SecondaryActionLinkButton = {\n text: string;\n href: string;\n onClick?: () => void;\n target?: string;\n /**\n * When `target` is set to `_blank` this is automatically set to `noopener noreferrer`\n */\n rel?: string;\n};\n\ntype SecondaryAction = SecondaryActionButton | SecondaryActionLinkButton;\n\ntype AlertProps = {\n /**\n * Body content, pass text or JSX. Avoid passing components except `Link` to customize the content.\n */\n description: ReactChild;\n\n /**\n * A brief heading\n */\n title?: string;\n\n /**\n * Shows a dismiss button\n *\n * @default true\n */\n isDismissible?: boolean;\n\n /**\n * A callback when the dismiss button is clicked\n */\n onDismiss?: () => void;\n\n /**\n * Can be set to `high` for a more prominent look. Not to be confused with a11y emphasis.\n *\n * @default subtle\n */\n emphasis?: SubtleOrIntense;\n\n /**\n * Makes the Alert span the entire container width, instead of the default max width of `584px`.\n * This also makes the alert borderless, useful for creating full bleed layouts.\n *\n * @default false\n */\n isFullWidth?: boolean;\n\n /**\n * Sets the color tone\n */\n color?: FeedbackColors;\n\n /**\n * Renders a primary action button and a secondary action link button\n */\n actions?: {\n /**\n * Renders a button (should **always** be present if `secondary` action is being used)\n */\n primary?: PrimaryAction;\n /**\n * Renders a Link button\n */\n secondary?: SecondaryAction;\n };\n} & TestID &\n StyledPropsBlade;\n\nconst isReactNative = getPlatformType() === 'react-native';\n\n// Need extra wrappers on React Native only for alignment\nconst CloseButtonWrapper = isReactNative ? BaseBox : Fragment;\n\nconst intentIconMap = {\n positive: CheckCircleIcon,\n negative: AlertOctagonIcon,\n information: InfoIcon,\n neutral: InfoIcon,\n notice: AlertTriangleIcon,\n};\n\nconst Alert = ({\n description,\n title,\n isDismissible = true,\n onDismiss,\n emphasis = 'subtle',\n isFullWidth = false,\n color = 'neutral',\n actions,\n testID,\n ...styledProps\n}: AlertProps): ReactElement | null => {\n const { theme } = useTheme();\n const { matchedDeviceType } = useBreakpoint({ breakpoints: theme.breakpoints });\n const [isVisible, setIsVisible] = useState(true);\n\n const isDesktop = matchedDeviceType === 'desktop';\n const isMobile = !isDesktop;\n\n const Icon = intentIconMap[color];\n let iconOffset: DotNotationSpacingStringToken = 'spacing.1';\n\n // certain special cases below needs special care for near perfect alignment\n if (isReactNative) {\n if (isFullWidth && !title) {\n iconOffset = 'spacing.1';\n } else if (!isFullWidth && !title) {\n iconOffset = 'spacing.0';\n } else if (!isFullWidth && title) {\n iconOffset = 'spacing.2';\n }\n } else if (isMobile) {\n if (!isFullWidth && title) {\n iconOffset = 'spacing.2';\n } else if (isFullWidth && !title) {\n iconOffset = 'spacing.2';\n }\n } else if (isFullWidth) {\n iconOffset = 'spacing.1';\n }\n\n const shouldCenterAlign = isFullWidth && !title;\n let alignment: 'center' | 'flex-start' = 'flex-start';\n if (!isFullWidth) alignment = 'flex-start';\n if (shouldCenterAlign) alignment = 'center';\n\n const icon = (\n <BaseBox display=\"flex\" alignSelf={alignment} marginTop={iconOffset}>\n <Icon\n color={\n emphasis === 'intense'\n ? 'surface.icon.staticWhite.normal'\n : `feedback.icon.${color}.${emphasis === 'subtle' ? 'intense' : 'subtle'}`\n }\n size=\"medium\"\n />\n </BaseBox>\n );\n\n const textColor =\n emphasis === 'intense' ? 'surface.text.staticWhite.normal' : 'surface.text.gray.subtle';\n const _title = title ? (\n <BaseBox marginBottom=\"spacing.2\">\n <Text color={textColor} size=\"medium\" weight=\"semibold\">\n {title}\n </Text>\n </BaseBox>\n ) : null;\n\n const _description = (\n <BaseBox marginTop={title || isReactNative ? 'spacing.0' : 'spacing.1'}>\n <Text color={textColor} size=\"small\">\n {description}\n </Text>\n </BaseBox>\n );\n\n const primaryAction = actions?.primary ? (\n <BaseBox\n marginRight=\"spacing.5\"\n display={isReactNative ? castNativeType('flex') : castWebType('inline-flex')}\n >\n <BaseButton\n size=\"small\"\n onClick={actions.primary.onClick}\n color={emphasis === 'intense' ? 'white' : color}\n variant=\"secondary\"\n >\n {actions.primary.text}\n </BaseButton>\n </BaseBox>\n ) : null;\n\n const secondaryActionParams: Partial<SecondaryActionLinkButton> | null = actions?.secondary\n ? {\n onClick: actions.secondary.onClick,\n }\n : null;\n\n /**\n * TS assumes only common properties to be present for `SecondaryAction` union type\n * We add a type guard that checks if href is present on secondary action:\n * - If yes, then TS can assume it to be `SecondaryActionLinkButton` (href being a required property)\n * - If no, then it would be `SecondaryActionButton` (and link properties wouldn't be needed)\n */\n if (actions?.secondary && secondaryActionParams && 'href' in actions.secondary) {\n secondaryActionParams.href = actions.secondary.href;\n secondaryActionParams.target = actions.secondary.target;\n secondaryActionParams.rel = actions.secondary.rel;\n }\n\n const secondaryAction = actions?.secondary ? (\n <BaseBox marginRight=\"spacing.4\" display={(isReactNative ? 'flex' : 'inline-flex') as never}>\n <BaseLink\n size=\"small\"\n color={emphasis === 'intense' ? 'white' : color}\n {...secondaryActionParams}\n >\n {actions.secondary.text}\n </BaseLink>\n </BaseBox>\n ) : null;\n\n // For certain cases we wish to render actions inline with text content\n const showActionsHorizontal = isFullWidth && isDesktop;\n\n const actionsHorizontal =\n showActionsHorizontal && (primaryAction || secondaryAction) ? (\n <BaseBox flexDirection=\"row\" alignItems=\"center\">\n {primaryAction}\n {secondaryAction}\n </BaseBox>\n ) : null;\n\n const actionsVertical =\n !showActionsHorizontal && (primaryAction || secondaryAction) ? (\n <BaseBox marginTop=\"spacing.4\" flexDirection=\"row\" alignItems=\"center\">\n {primaryAction}\n {secondaryAction}\n </BaseBox>\n ) : null;\n\n const onClickDismiss = (): void => {\n if (onDismiss) {\n onDismiss();\n }\n setIsVisible(false);\n };\n const closeButton = isDismissible ? (\n <CloseButtonWrapper>\n <IconButton\n accessibilityLabel=\"Dismiss alert\"\n onClick={onClickDismiss}\n emphasis={emphasis === 'intense' ? 'subtle' : 'intense'}\n size=\"large\"\n icon={CloseIcon}\n />\n </CloseButtonWrapper>\n ) : null;\n\n const a11yProps = makeAccessible({\n // React Native doesn't has status as role\n role: isReactNative || color === 'negative' || color === 'notice' ? 'alert' : 'status',\n // override the implicit live region of role `alert`\n ...(color === 'notice' && { liveRegion: 'polite' }),\n });\n\n if (!isVisible) {\n return null;\n }\n\n return (\n <BaseBox\n {...a11yProps}\n {...metaAttribute({ name: MetaConstants.Alert, testID })}\n {...getStyledProps(styledProps)}\n >\n <StyledAlert\n color={color}\n emphasis={emphasis}\n isFullWidth={isFullWidth}\n isDesktop={isDesktop}\n textAlign={'left' as never}\n >\n {icon}\n <BaseBox\n flex={1}\n paddingLeft={isFullWidth ? 'spacing.4' : 'spacing.3'}\n paddingRight={showActionsHorizontal ? 'spacing.4' : 'spacing.2'}\n >\n {_title}\n {_description}\n {actionsVertical}\n </BaseBox>\n {actionsHorizontal}\n {closeButton}\n </StyledAlert>\n </BaseBox>\n );\n};\n\nexport type { AlertProps };\nexport { Alert };\n"],"names":["isReactNative","getPlatformType","CloseButtonWrapper","BaseBox","Fragment","intentIconMap","positive","CheckCircleIcon","negative","AlertOctagonIcon","information","InfoIcon","neutral","notice","AlertTriangleIcon","Alert","_ref","description","title","_ref$isDismissible","isDismissible","onDismiss","_ref$emphasis","emphasis","_ref$isFullWidth","isFullWidth","_ref$color","color","actions","testID","styledProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","_useBreakpoint","useBreakpoint","breakpoints","matchedDeviceType","_useState","useState","_useState2","_slicedToArray","isVisible","setIsVisible","isDesktop","isMobile","Icon","iconOffset","shouldCenterAlign","alignment","icon","_jsx","display","alignSelf","marginTop","children","concat","size","textColor","_title","marginBottom","Text","weight","_description","primaryAction","primary","marginRight","castNativeType","castWebType","BaseButton","onClick","variant","text","secondaryActionParams","secondary","href","target","rel","secondaryAction","BaseLink","_objectSpread","showActionsHorizontal","actionsHorizontal","_jsxs","flexDirection","alignItems","actionsVertical","onClickDismiss","closeButton","IconButton","accessibilityLabel","CloseIcon","a11yProps","makeAccessible","role","liveRegion","metaAttribute","name","MetaConstants","getStyledProps","StyledAlert","textAlign","flex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+E,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAA,EAAA,EACFY,SAAS,CAAA,EACTI,aAAa,CAAC;IAAEC,IAAI,EAAEC,aAAa,CAACrF,KAAK;AAAEc,IAAAA,MAAM,EAANA,MAAAA;AAAO,GAAC,CAAC,CAAA,EACpDwE,cAAc,CAACvE,WAAW,CAAC,CAAA,EAAA,EAAA,EAAA;IAAA2B,QAAA,eAE/B4B,IAAA,CAACiB,WAAW,EAAA;AACV3E,MAAAA,KAAK,EAAEA,KAAM;AACbJ,MAAAA,QAAQ,EAAEA,QAAS;AACnBE,MAAAA,WAAW,EAAEA,WAAY;AACzBqB,MAAAA,SAAS,EAAEA,SAAU;AACrByD,MAAAA,SAAS,EAAE,MAAgB;AAAA9C,MAAAA,QAAA,EAE1BL,CAAAA,IAAI,eACLiC,IAAA,CAAClF,OAAO,EAAA;AACNqG,QAAAA,IAAI,EAAE,CAAE;AACRC,QAAAA,WAAW,EAAEhF,WAAW,GAAG,WAAW,GAAG,WAAY;AACrDiF,QAAAA,YAAY,EAAEvB,qBAAqB,GAAG,WAAW,GAAG,WAAY;AAAA1B,QAAAA,QAAA,EAE/DI,CAAAA,MAAM,EACNI,YAAY,EACZuB,eAAe,CAAA;AAAA,OACT,CAAC,EACTJ,iBAAiB,EACjBM,WAAW,CAAA;KACD,CAAA;AAAC,GAAA,CACP,CAAC,CAAA;AAEd;;;;"}
@@ -10,18 +10,14 @@ import { makeSize } from '../../utils/makeSize/makeSize.js';
10
10
  var MAX_WIDTH = size[584];
11
11
  var getCommonStyles = function getCommonStyles(props) {
12
12
  var theme = props.theme,
13
- contrastType = props.contrastType,
13
+ emphasis = props.emphasis,
14
14
  color = props.color,
15
15
  isFullWidth = props.isFullWidth,
16
16
  isDesktop = props.isDesktop;
17
- var feedbackColors = theme.colors.feedback;
18
17
  return {
19
- background: feedbackColors.background[color][contrastType],
20
- padding: isFullWidth ? "".concat(makeSpace(theme.spacing[4]), " ").concat(makeSpace(theme.spacing[5])) : "".concat(makeSpace(theme.spacing[3]), " ").concat(makeSpace(theme.spacing[3]), " ").concat(makeSpace(theme.spacing[4]), " ").concat(makeSpace(theme.spacing[3])),
18
+ background: theme.colors.feedback.background[color][emphasis],
19
+ padding: makeSpace(theme.spacing[4]),
21
20
  borderRadius: makeBorderSize(isFullWidth ? theme.border.radius.none : theme.border.radius.medium),
22
- borderColor: feedbackColors.border[color][contrastType],
23
- borderWidth: makeBorderSize(isFullWidth ? theme.border.width.none : theme.border.width.thin),
24
- borderStyle: 'solid',
25
21
  display: 'flex',
26
22
  flexDirection: 'row',
27
23
  maxWidth: isFullWidth ? 'auto' : makeSize(MAX_WIDTH),
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../../../src/components/Alert/styles.ts"],"sourcesContent":["import type { CSSObject, StyledProps } from 'styled-components';\n\nimport type { StyledAlertProps } from './types';\nimport { makeSpace } from '~utils/makeSpace';\nimport { makeSize } from '~utils/makeSize';\nimport { makeBorderSize } from '~utils/makeBorderSize';\nimport { size } from '~tokens/global';\n\nconst MAX_WIDTH = size[584];\n\nexport const getCommonStyles = (props: StyledProps<StyledAlertProps>): CSSObject => {\n const { theme, contrastType, color, isFullWidth, isDesktop } = props;\n\n const feedbackColors = theme.colors.feedback;\n\n return {\n background: feedbackColors.background[color][contrastType],\n padding: isFullWidth\n ? `${makeSpace(theme.spacing[4])} ${makeSpace(theme.spacing[5])}`\n : `${makeSpace(theme.spacing[3])} ${makeSpace(theme.spacing[3])} ${makeSpace(\n theme.spacing[4],\n )} ${makeSpace(theme.spacing[3])}`,\n borderRadius: makeBorderSize(\n isFullWidth ? theme.border.radius.none : theme.border.radius.medium,\n ),\n borderColor: feedbackColors.border[color][contrastType],\n borderWidth: makeBorderSize(isFullWidth ? theme.border.width.none : theme.border.width.thin),\n borderStyle: 'solid',\n display: 'flex',\n flexDirection: 'row',\n maxWidth: isFullWidth ? 'auto' : makeSize(MAX_WIDTH),\n width: isFullWidth ? '100%' : undefined,\n alignItems: isFullWidth && isDesktop ? 'center' : 'flex-start',\n boxSizing: 'border-box',\n };\n};\n"],"names":["MAX_WIDTH","size","getCommonStyles","props","theme","contrastType","color","isFullWidth","isDesktop","feedbackColors","colors","feedback","background","padding","concat","makeSpace","spacing","borderRadius","makeBorderSize","border","radius","none","medium","borderColor","borderWidth","width","thin","borderStyle","display","flexDirection","maxWidth","makeSize","undefined","alignItems","boxSizing"],"mappings":";;;;;;;;;AAQA,IAAMA,SAAS,GAAGC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEdC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,KAAoC,EAAgB;AAClF,EAAA,IAAQC,KAAK,GAAkDD,KAAK,CAA5DC,KAAK;IAAEC,YAAY,GAAoCF,KAAK,CAArDE,YAAY;IAAEC,KAAK,GAA6BH,KAAK,CAAvCG,KAAK;IAAEC,WAAW,GAAgBJ,KAAK,CAAhCI,WAAW;IAAEC,SAAS,GAAKL,KAAK,CAAnBK,SAAS,CAAA;AAE1D,EAAA,IAAMC,cAAc,GAAGL,KAAK,CAACM,MAAM,CAACC,QAAQ,CAAA;EAE5C,OAAO;IACLC,UAAU,EAAEH,cAAc,CAACG,UAAU,CAACN,KAAK,CAAC,CAACD,YAAY,CAAC;AAC1DQ,IAAAA,OAAO,EAAEN,WAAW,GAAAO,EAAAA,CAAAA,MAAA,CACbC,SAAS,CAACX,KAAK,CAACY,OAAO,CAAC,CAAC,CAAC,CAAC,OAAAF,MAAA,CAAIC,SAAS,CAACX,KAAK,CAACY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA,GAAA,EAAA,CAAAF,MAAA,CAC1DC,SAAS,CAACX,KAAK,CAACY,OAAO,CAAC,CAAC,CAAC,CAAC,EAAA,GAAA,CAAA,CAAAF,MAAA,CAAIC,SAAS,CAACX,KAAK,CAACY,OAAO,CAAC,CAAC,CAAC,CAAC,EAAA,GAAA,CAAA,CAAAF,MAAA,CAAIC,SAAS,CACxEX,KAAK,CAACY,OAAO,CAAC,CAAC,CACjB,CAAC,EAAA,GAAA,CAAA,CAAAF,MAAA,CAAIC,SAAS,CAACX,KAAK,CAACY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE;IACtCC,YAAY,EAAEC,cAAc,CAC1BX,WAAW,GAAGH,KAAK,CAACe,MAAM,CAACC,MAAM,CAACC,IAAI,GAAGjB,KAAK,CAACe,MAAM,CAACC,MAAM,CAACE,MAC/D,CAAC;IACDC,WAAW,EAAEd,cAAc,CAACU,MAAM,CAACb,KAAK,CAAC,CAACD,YAAY,CAAC;IACvDmB,WAAW,EAAEN,cAAc,CAACX,WAAW,GAAGH,KAAK,CAACe,MAAM,CAACM,KAAK,CAACJ,IAAI,GAAGjB,KAAK,CAACe,MAAM,CAACM,KAAK,CAACC,IAAI,CAAC;AAC5FC,IAAAA,WAAW,EAAE,OAAO;AACpBC,IAAAA,OAAO,EAAE,MAAM;AACfC,IAAAA,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAEvB,WAAW,GAAG,MAAM,GAAGwB,QAAQ,CAAC/B,SAAS,CAAC;AACpDyB,IAAAA,KAAK,EAAElB,WAAW,GAAG,MAAM,GAAGyB,SAAS;AACvCC,IAAAA,UAAU,EAAE1B,WAAW,IAAIC,SAAS,GAAG,QAAQ,GAAG,YAAY;AAC9D0B,IAAAA,SAAS,EAAE,YAAA;GACZ,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"styles.js","sources":["../../../../../../src/components/Alert/styles.ts"],"sourcesContent":["import type { CSSObject, StyledProps } from 'styled-components';\n\nimport type { StyledAlertProps } from './types';\nimport { makeSpace } from '~utils/makeSpace';\nimport { makeSize } from '~utils/makeSize';\nimport { makeBorderSize } from '~utils/makeBorderSize';\nimport { size } from '~tokens/global';\n\nconst MAX_WIDTH = size[584];\n\nexport const getCommonStyles = (props: StyledProps<StyledAlertProps>): CSSObject => {\n const { theme, emphasis, color, isFullWidth, isDesktop } = props;\n\n return {\n background: theme.colors.feedback.background[color][emphasis],\n padding: makeSpace(theme.spacing[4]),\n borderRadius: makeBorderSize(\n isFullWidth ? theme.border.radius.none : theme.border.radius.medium,\n ),\n display: 'flex',\n flexDirection: 'row',\n maxWidth: isFullWidth ? 'auto' : makeSize(MAX_WIDTH),\n width: isFullWidth ? '100%' : undefined,\n alignItems: isFullWidth && isDesktop ? 'center' : 'flex-start',\n boxSizing: 'border-box',\n };\n};\n"],"names":["MAX_WIDTH","size","getCommonStyles","props","theme","emphasis","color","isFullWidth","isDesktop","background","colors","feedback","padding","makeSpace","spacing","borderRadius","makeBorderSize","border","radius","none","medium","display","flexDirection","maxWidth","makeSize","width","undefined","alignItems","boxSizing"],"mappings":";;;;;;;;;AAQA,IAAMA,SAAS,GAAGC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEdC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,KAAoC,EAAgB;AAClF,EAAA,IAAQC,KAAK,GAA8CD,KAAK,CAAxDC,KAAK;IAAEC,QAAQ,GAAoCF,KAAK,CAAjDE,QAAQ;IAAEC,KAAK,GAA6BH,KAAK,CAAvCG,KAAK;IAAEC,WAAW,GAAgBJ,KAAK,CAAhCI,WAAW;IAAEC,SAAS,GAAKL,KAAK,CAAnBK,SAAS,CAAA;EAEtD,OAAO;AACLC,IAAAA,UAAU,EAAEL,KAAK,CAACM,MAAM,CAACC,QAAQ,CAACF,UAAU,CAACH,KAAK,CAAC,CAACD,QAAQ,CAAC;IAC7DO,OAAO,EAAEC,SAAS,CAACT,KAAK,CAACU,OAAO,CAAC,CAAC,CAAC,CAAC;IACpCC,YAAY,EAAEC,cAAc,CAC1BT,WAAW,GAAGH,KAAK,CAACa,MAAM,CAACC,MAAM,CAACC,IAAI,GAAGf,KAAK,CAACa,MAAM,CAACC,MAAM,CAACE,MAC/D,CAAC;AACDC,IAAAA,OAAO,EAAE,MAAM;AACfC,IAAAA,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAEhB,WAAW,GAAG,MAAM,GAAGiB,QAAQ,CAACxB,SAAS,CAAC;AACpDyB,IAAAA,KAAK,EAAElB,WAAW,GAAG,MAAM,GAAGmB,SAAS;AACvCC,IAAAA,UAAU,EAAEpB,WAAW,IAAIC,SAAS,GAAG,QAAQ,GAAG,YAAY;AAC9DoB,IAAAA,SAAS,EAAE,YAAA;GACZ,CAAA;AACH;;;;"}
@@ -1,17 +1,22 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import React__default from 'react';
4
- import { affixFontSizes, amountFontSizes, amountLineHeights, getCurrencyAbbreviations, currencyPrefixMapping } from './amountTokens.js';
5
- import '../Typography/BaseText/index.js';
4
+ import { subtleFontSizes, normalAmountSizes, amountLineHeights, getCurrencyAbbreviations, currencyIndicatorMapping, currencyPositionMapping } from './amountTokens.js';
6
5
  import '../Box/BaseBox/index.js';
7
6
  import '../../utils/index.js';
8
7
  import '../../utils/metaAttribute/index.js';
9
8
  import '../Box/styledProps/index.js';
10
9
  import '../../utils/assignWithoutSideEffects/index.js';
11
10
  import '../../utils/logger/index.js';
11
+ import { objectKeysWithType } from '../../utils/objectKeysWithType.js';
12
+ import '../Typography/BaseText/index.js';
13
+ import '../Typography/index.js';
14
+ import '../../tokens/global/index.js';
12
15
  import { jsxs, jsx } from 'react/jsx-runtime';
13
16
  import { getPlatformType } from '../../utils/getPlatformType/getPlatformType.js';
17
+ import { Text } from '../Typography/Text/Text.js';
14
18
  import { BaseText } from '../Typography/BaseText/BaseText.web.js';
19
+ import { opacity } from '../../tokens/global/opacity.js';
15
20
  import { throwBladeError } from '../../utils/logger/logger.js';
16
21
  import { BaseBox } from '../Box/BaseBox/BaseBox.web.js';
17
22
  import { metaAttribute } from '../../utils/metaAttribute/metaAttribute.web.js';
@@ -19,60 +24,64 @@ import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js';
19
24
  import { getStyledProps } from '../Box/styledProps/getStyledProps.js';
20
25
  import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
21
26
 
22
- var _excluded = ["value", "suffix", "size", "isAffixSubtle", "intent", "prefix", "testID", "currency"];
27
+ var _excluded = ["value", "suffix", "type", "size", "weight", "isAffixSubtle", "isStrikethrough", "color", "currencyIndicator", "currency", "testID"];
23
28
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24
29
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25
30
  var getTextColorProps = function getTextColorProps(_ref) {
26
- var intent = _ref.intent;
31
+ var color = _ref.color;
27
32
  var props = {
28
- amountValueColor: 'surface.text.normal.lowContrast',
29
- affixColor: 'surface.text.muted.lowContrast'
33
+ amountValueColor: 'surface.text.gray.normal'
30
34
  };
31
- if (!intent) return props;
32
- props.amountValueColor = "feedback.text.".concat(intent, ".lowContrast");
33
- props.affixColor = "feedback.text.".concat(intent, ".lowContrast");
35
+ if (!color) return props;
36
+ props.amountValueColor = color;
34
37
  return props;
35
38
  };
36
39
  var AmountValue = function AmountValue(_ref2) {
37
40
  var value = _ref2.value,
38
- size = _ref2.size,
41
+ _ref2$size = _ref2.size,
42
+ size = _ref2$size === void 0 ? 'medium' : _ref2$size,
43
+ _ref2$type = _ref2.type,
44
+ type = _ref2$type === void 0 ? 'body' : _ref2$type,
45
+ _ref2$weight = _ref2.weight,
46
+ weight = _ref2$weight === void 0 ? 'regular' : _ref2$weight,
39
47
  amountValueColor = _ref2.amountValueColor,
40
48
  isAffixSubtle = _ref2.isAffixSubtle,
41
- suffix = _ref2.suffix,
42
- affixColor = _ref2.affixColor;
43
- var affixFontWeight = isAffixSubtle ? 'regular' : 'bold';
49
+ suffix = _ref2.suffix;
44
50
  var isReactNative = getPlatformType() === 'react-native';
45
- var affixFontSize = isAffixSubtle ? affixFontSizes[size] : amountFontSizes[size];
46
- var valueForWeight = size.includes('bold') || size.startsWith('title') ? 'bold' : 'regular';
51
+ var affixFontSize = isAffixSubtle ? subtleFontSizes[type][size] : normalAmountSizes[type][size];
52
+ var numberFontFamily = type === 'body' ? 'text' : 'heading';
47
53
  if (suffix === 'decimals' && isAffixSubtle) {
48
54
  var integer = value.split('.')[0];
49
55
  var decimal = value.split('.')[1];
50
56
 
51
- // Native does not support alignItems of Text inside a div, insted we need to wrap is in a Text
52
- var AmountWrapper = getPlatformType() === 'react-native' ? BaseText : React__default.Fragment;
57
+ // Native does not support alignItems of Text inside a div, instead we need to wrap is in a Text
58
+ var AmountWrapper = isReactNative ? Text : React__default.Fragment;
53
59
  return /*#__PURE__*/jsxs(AmountWrapper, {
54
- children: [/*#__PURE__*/jsxs(BaseText, {
55
- fontSize: amountFontSizes[size],
56
- fontWeight: valueForWeight,
57
- lineHeight: amountLineHeights[size],
60
+ children: [/*#__PURE__*/jsx(BaseText, {
61
+ fontSize: normalAmountSizes[type][size],
62
+ fontWeight: weight,
63
+ lineHeight: amountLineHeights[type][size],
58
64
  color: amountValueColor,
65
+ fontFamily: numberFontFamily,
59
66
  as: isReactNative ? undefined : 'span',
60
- children: [integer, "."]
61
- }), /*#__PURE__*/jsx(BaseText, {
62
- marginLeft: "spacing.1",
63
- fontWeight: affixFontWeight,
67
+ children: integer
68
+ }), /*#__PURE__*/jsxs(BaseText, {
69
+ fontWeight: weight,
64
70
  fontSize: affixFontSize,
65
- color: affixColor,
71
+ fontFamily: numberFontFamily,
72
+ color: amountValueColor,
66
73
  as: isReactNative ? undefined : 'span',
67
- children: decimal || '00'
74
+ opacity: isAffixSubtle ? opacity[8] : 1,
75
+ children: [".", decimal || '00']
68
76
  })]
69
77
  });
70
78
  }
71
79
  return /*#__PURE__*/jsx(BaseText, {
72
- fontSize: amountFontSizes[size],
73
- fontWeight: valueForWeight,
80
+ fontSize: normalAmountSizes[type][size],
81
+ fontWeight: weight,
82
+ fontFamily: numberFontFamily,
74
83
  color: amountValueColor,
75
- lineHeight: amountLineHeights[size],
84
+ lineHeight: amountLineHeights[type][size],
76
85
  children: value
77
86
  });
78
87
  };
@@ -98,7 +107,12 @@ var addCommas = function addCommas(amountValue, currency) {
98
107
  * ie: for INR 2000 => 2K
99
108
  * for MYR 2000000 => 2M
100
109
  */
101
- var getHumanizedAmount = function getHumanizedAmount(amountValue, currency) {
110
+ var getHumanizedAmount = function getHumanizedAmount(_ref3) {
111
+ var value = _ref3.value,
112
+ currency = _ref3.currency,
113
+ _ref3$denominationPos = _ref3.denominationPosition,
114
+ denominationPosition = _ref3$denominationPos === void 0 ? 'right' : _ref3$denominationPos;
115
+ var amountValue = value;
102
116
  var abbreviations = getCurrencyAbbreviations(currency);
103
117
  var abbreviation = abbreviations.find(function (abbr) {
104
118
  return amountValue >= abbr.value;
@@ -106,15 +120,18 @@ var getHumanizedAmount = function getHumanizedAmount(amountValue, currency) {
106
120
  if (abbreviation) {
107
121
  amountValue = amountValue / abbreviation.value;
108
122
  var formattedAmountValue = getFlooredFixed(amountValue, 2);
109
- return addCommas(formattedAmountValue, currency) + abbreviation.symbol;
110
- } else {
111
- return amountValue.toString();
123
+ if (denominationPosition === 'right') {
124
+ return "".concat(addCommas(formattedAmountValue, currency)).concat(abbreviation.symbol);
125
+ }
126
+ return "".concat(abbreviation.symbol).concat(addCommas(formattedAmountValue, currency));
112
127
  }
128
+ return amountValue.toString();
113
129
  };
114
- var formatAmountWithSuffix = function formatAmountWithSuffix(_ref3) {
115
- var suffix = _ref3.suffix,
116
- value = _ref3.value,
117
- currency = _ref3.currency;
130
+ var formatAmountWithSuffix = function formatAmountWithSuffix(_ref4) {
131
+ var suffix = _ref4.suffix,
132
+ value = _ref4.value,
133
+ currency = _ref4.currency,
134
+ denominationPosition = _ref4.denominationPosition;
118
135
  switch (suffix) {
119
136
  case 'decimals':
120
137
  {
@@ -123,7 +140,11 @@ var formatAmountWithSuffix = function formatAmountWithSuffix(_ref3) {
123
140
  }
124
141
  case 'humanize':
125
142
  {
126
- return getHumanizedAmount(value, currency);
143
+ return getHumanizedAmount({
144
+ value: value,
145
+ currency: currency,
146
+ denominationPosition: denominationPosition
147
+ });
127
148
  }
128
149
  case 'none':
129
150
  {
@@ -133,25 +154,27 @@ var formatAmountWithSuffix = function formatAmountWithSuffix(_ref3) {
133
154
  return addCommas(getFlooredFixed(value, 0), currency);
134
155
  }
135
156
  };
136
- var getCurrencyWeight = function getCurrencyWeight(isAffixSubtle, size) {
137
- if (isAffixSubtle || size.startsWith('bold')) return 'bold';
138
- return 'regular';
139
- };
140
- var _Amount = function _Amount(_ref4) {
141
- var value = _ref4.value,
142
- _ref4$suffix = _ref4.suffix,
143
- suffix = _ref4$suffix === void 0 ? 'decimals' : _ref4$suffix,
144
- _ref4$size = _ref4.size,
145
- size = _ref4$size === void 0 ? 'body-medium' : _ref4$size,
146
- _ref4$isAffixSubtle = _ref4.isAffixSubtle,
147
- isAffixSubtle = _ref4$isAffixSubtle === void 0 ? true : _ref4$isAffixSubtle,
148
- intent = _ref4.intent,
149
- _ref4$prefix = _ref4.prefix,
150
- prefix = _ref4$prefix === void 0 ? 'currency-symbol' : _ref4$prefix,
151
- testID = _ref4.testID,
152
- _ref4$currency = _ref4.currency,
153
- currency = _ref4$currency === void 0 ? 'INR' : _ref4$currency,
154
- styledProps = _objectWithoutProperties(_ref4, _excluded);
157
+ var _Amount = function _Amount(_ref5) {
158
+ var value = _ref5.value,
159
+ _ref5$suffix = _ref5.suffix,
160
+ suffix = _ref5$suffix === void 0 ? 'decimals' : _ref5$suffix,
161
+ _ref5$type = _ref5.type,
162
+ type = _ref5$type === void 0 ? 'body' : _ref5$type,
163
+ _ref5$size = _ref5.size,
164
+ size = _ref5$size === void 0 ? 'medium' : _ref5$size,
165
+ _ref5$weight = _ref5.weight,
166
+ weight = _ref5$weight === void 0 ? 'regular' : _ref5$weight,
167
+ _ref5$isAffixSubtle = _ref5.isAffixSubtle,
168
+ isAffixSubtle = _ref5$isAffixSubtle === void 0 ? true : _ref5$isAffixSubtle,
169
+ _ref5$isStrikethrough = _ref5.isStrikethrough,
170
+ isStrikethrough = _ref5$isStrikethrough === void 0 ? false : _ref5$isStrikethrough,
171
+ color = _ref5.color,
172
+ _ref5$currencyIndicat = _ref5.currencyIndicator,
173
+ currencyIndicator = _ref5$currencyIndicat === void 0 ? 'currency-symbol' : _ref5$currencyIndicat,
174
+ _ref5$currency = _ref5.currency,
175
+ currency = _ref5$currency === void 0 ? 'INR' : _ref5$currency,
176
+ testID = _ref5.testID,
177
+ styledProps = _objectWithoutProperties(_ref5, _excluded);
155
178
  if (true) {
156
179
  if (typeof value !== 'number') {
157
180
  throwBladeError({
@@ -159,31 +182,53 @@ var _Amount = function _Amount(_ref4) {
159
182
  moduleName: 'Amount'
160
183
  });
161
184
  }
162
- // @ts-expect-error neutral intent should throw error
163
- if (intent === 'neutral') {
185
+ // @ts-expect-error neutral color should throw error
186
+ if (color === 'neutral') {
164
187
  throwBladeError({
165
- message: '`neutral` intent is not supported.',
188
+ message: '`neutral` color is not supported.',
189
+ moduleName: 'Amount'
190
+ });
191
+ }
192
+ var bodySizes = objectKeysWithType(normalAmountSizes.body);
193
+ if ((type === 'body' || !type) && !bodySizes.includes(size)) {
194
+ throwBladeError({
195
+ message: "size=\"".concat(size, "\" is not allowed with type=\"body\""),
196
+ moduleName: 'Amount'
197
+ });
198
+ }
199
+ var displaySizes = objectKeysWithType(normalAmountSizes.display);
200
+ if (type === 'display' && !displaySizes.includes(size)) {
201
+ throwBladeError({
202
+ message: "size=\"".concat(size, "\" is not allowed with type=\"display\""),
203
+ moduleName: 'Amount'
204
+ });
205
+ }
206
+ var headingSizes = objectKeysWithType(normalAmountSizes.heading);
207
+ if (type === 'heading' && !headingSizes.includes(size)) {
208
+ throwBladeError({
209
+ message: "size=\"".concat(size, "\" is not allowed with type=\"heading\""),
166
210
  moduleName: 'Amount'
167
211
  });
168
212
  }
169
213
  }
170
- var currencyPrefix = currencyPrefixMapping[currency][prefix];
214
+ var currencySymbolOrCode = currencyIndicatorMapping[currency][currencyIndicator];
215
+ var currencyPosition = currencyPositionMapping[currency] || 'left';
216
+ var denominationPosition = currencyPosition === 'left' ? 'right' : 'left';
171
217
  var renderedValue = formatAmountWithSuffix({
172
218
  suffix: suffix,
173
219
  value: value,
174
- currency: currency
220
+ currency: currency,
221
+ denominationPosition: denominationPosition
175
222
  });
176
223
  var _getTextColorProps = getTextColorProps({
177
- intent: intent
224
+ color: color
178
225
  }),
179
- amountValueColor = _getTextColorProps.amountValueColor,
180
- affixColor = _getTextColorProps.affixColor;
181
- var currencyColor = isAffixSubtle ? affixColor : amountValueColor;
182
- var currencyFontSize = isAffixSubtle ? affixFontSizes[size] : amountFontSizes[size];
183
- var currencyWeight = getCurrencyWeight(isAffixSubtle, size);
226
+ amountValueColor = _getTextColorProps.amountValueColor;
227
+ var currencyFontSize = isAffixSubtle ? subtleFontSizes[type][size] : normalAmountSizes[type][size];
184
228
  var isReactNative = getPlatformType() === 'react-native';
185
229
  return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread({
186
- display: isReactNative ? 'flex' : 'inline-flex'
230
+ display: isReactNative ? 'flex' : 'inline-flex',
231
+ flexDirection: "row"
187
232
  }, metaAttribute({
188
233
  name: MetaConstants.Amount,
189
234
  testID: testID
@@ -192,20 +237,40 @@ var _Amount = function _Amount(_ref4) {
192
237
  display: isReactNative ? 'flex' : 'inline-flex',
193
238
  alignItems: "baseline",
194
239
  flexDirection: "row",
195
- children: [/*#__PURE__*/jsx(BaseText, {
240
+ position: "relative",
241
+ children: [currencyPosition === 'left' && /*#__PURE__*/jsx(BaseText, {
196
242
  marginRight: "spacing.1",
197
- fontWeight: currencyWeight,
243
+ fontWeight: weight,
198
244
  fontSize: currencyFontSize,
199
- color: currencyColor,
245
+ color: amountValueColor,
200
246
  as: isReactNative ? undefined : 'span',
201
- children: currencyPrefix
247
+ opacity: isAffixSubtle ? opacity[8] : 1,
248
+ children: currencySymbolOrCode
202
249
  }), /*#__PURE__*/jsx(AmountValue, {
203
250
  value: renderedValue,
204
251
  amountValueColor: amountValueColor,
252
+ type: type,
253
+ weight: weight,
205
254
  size: size,
206
255
  isAffixSubtle: isAffixSubtle,
207
- suffix: suffix,
208
- affixColor: affixColor
256
+ suffix: suffix
257
+ }), currencyPosition === 'right' && /*#__PURE__*/jsx(BaseText, {
258
+ marginLeft: "spacing.1",
259
+ fontWeight: weight,
260
+ fontSize: currencyFontSize,
261
+ color: amountValueColor,
262
+ as: isReactNative ? undefined : 'span',
263
+ opacity: isAffixSubtle ? opacity[8] : 1,
264
+ children: currencySymbolOrCode
265
+ }), isStrikethrough && /*#__PURE__*/jsx(BaseBox
266
+ // @ts-expect-error - intentionally setting the border color to the color prop for this hacky strikethrough
267
+ , {
268
+ borderBottomColor: amountValueColor,
269
+ borderBottomWidth: type === 'body' ? 'thin' : 'thicker',
270
+ borderBottomStyle: "solid",
271
+ position: "absolute",
272
+ width: "100%",
273
+ top: "50%"
209
274
  })]
210
275
  })
211
276
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"Amount.js","sources":["../../../../../../src/components/Amount/Amount.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport React from 'react';\nimport type { Currency } from './amountTokens';\nimport {\n amountFontSizes,\n getCurrencyAbbreviations,\n currencyPrefixMapping,\n affixFontSizes,\n amountLineHeights,\n} from './amountTokens';\nimport { BaseText } from '~components/Typography/BaseText';\nimport type { Feedback } from '~tokens/theme/theme';\nimport type { BaseTextProps } from '~components/Typography/BaseText/types';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { TestID } from '~utils/types';\nimport { getPlatformType } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { throwBladeError } from '~utils/logger';\n\ntype AmountProps = {\n /**\n * The value to be rendered within the component.\n *\n */\n value: number;\n /**\n * Sets the intent of the amount.\n *\n * @default undefined\n */\n intent?: Exclude<Feedback, 'neutral'>;\n /**\n * Sets the size of the amount.\n *\n * @default 'body-medium'\n */\n size?:\n | 'body-medium-bold'\n | 'body-small'\n | 'body-small-bold'\n | 'body-medium'\n | 'body-medium-bold'\n | 'heading-small'\n | 'heading-small-bold'\n | 'heading-large'\n | 'heading-large-bold'\n | 'title-small'\n | 'title-medium';\n /**\n * Indicates what the suffix of amount should be\n *\n * @default 'decimals'\n */\n suffix?: 'decimals' | 'none' | 'humanize';\n /**\n * Makes the prefix symbol and decimal digits small and faded\n *\n * @default true\n */\n isAffixSubtle?: true | false;\n /**\n * Prefix to be shown before the amount value. The prefix can be either a currency symbol or a currency code.\n *\n * @default 'currency-symbol'\n */\n prefix?: 'currency-symbol' | 'currency-code';\n /**\n * The currency of the amount. Note that this component\n * only displays the provided value in the specified currency, it does not perform any currency conversion.\n *\n * @default 'INR'\n * */\n currency?: Currency;\n} & TestID &\n StyledPropsBlade;\n\ntype ColorProps = {\n amountValueColor: BaseTextProps['color'];\n affixColor: BaseTextProps['color'];\n};\n\nconst getTextColorProps = ({ intent }: { intent: AmountProps['intent'] }): ColorProps => {\n const props: ColorProps = {\n amountValueColor: 'surface.text.normal.lowContrast',\n affixColor: 'surface.text.muted.lowContrast',\n };\n if (!intent) return props;\n props.amountValueColor = `feedback.text.${intent}.lowContrast`;\n props.affixColor = `feedback.text.${intent}.lowContrast`;\n return props;\n};\n\ninterface AmountValue extends Omit<AmountProps, 'value'> {\n affixColor: BaseTextProps['color'];\n amountValueColor: BaseTextProps['color'];\n value: string;\n size: Exclude<AmountProps['size'], undefined>;\n}\n\nconst AmountValue = ({\n value,\n size,\n amountValueColor,\n isAffixSubtle,\n suffix,\n affixColor,\n}: AmountValue): ReactElement => {\n const affixFontWeight = isAffixSubtle ? 'regular' : 'bold';\n const isReactNative = getPlatformType() === 'react-native';\n const affixFontSize = isAffixSubtle ? affixFontSizes[size] : amountFontSizes[size];\n const valueForWeight = size.includes('bold') || size.startsWith('title') ? 'bold' : 'regular';\n if (suffix === 'decimals' && isAffixSubtle) {\n const integer = value.split('.')[0];\n const decimal = value.split('.')[1];\n\n // Native does not support alignItems of Text inside a div, insted we need to wrap is in a Text\n const AmountWrapper = getPlatformType() === 'react-native' ? BaseText : React.Fragment;\n\n return (\n <AmountWrapper>\n <BaseText\n fontSize={amountFontSizes[size]}\n fontWeight={valueForWeight}\n lineHeight={amountLineHeights[size]}\n color={amountValueColor}\n as={isReactNative ? undefined : 'span'}\n >\n {integer}.\n </BaseText>\n <BaseText\n marginLeft=\"spacing.1\"\n fontWeight={affixFontWeight}\n fontSize={affixFontSize}\n color={affixColor}\n as={isReactNative ? undefined : 'span'}\n >\n {decimal || '00'}\n </BaseText>\n </AmountWrapper>\n );\n }\n return (\n <BaseText\n fontSize={amountFontSizes[size]}\n fontWeight={valueForWeight}\n color={amountValueColor}\n lineHeight={amountLineHeights[size]}\n >\n {value}\n </BaseText>\n );\n};\n\n// This function rounds a number to a specified number of decimal places\n// and floors the result.\nexport const getFlooredFixed = (value: number, decimalPlaces: number): number => {\n const factor = 100 ** decimalPlaces;\n const roundedValue = Math.floor(value * factor) / factor;\n return Number(roundedValue.toFixed(decimalPlaces));\n};\n\nexport const addCommas = (amountValue: number, currency: Currency, decimalPlaces = 0): string => {\n // If the currency is 'INR', set the locale to 'en-IN' (Indian English).\n // Otherwise, set the locale to 'en-US' (U.S. English).\n const locale = currency === 'INR' ? 'en-IN' : 'en-US';\n return amountValue.toLocaleString(locale, { minimumFractionDigits: decimalPlaces });\n};\n/**\n * This function returns the humanized amount\n * ie: for INR 2000 => 2K\n * for MYR 2000000 => 2M\n */\nexport const getHumanizedAmount = (amountValue: number, currency: Currency): string => {\n const abbreviations = getCurrencyAbbreviations(currency);\n\n const abbreviation = abbreviations.find((abbr) => amountValue >= abbr.value);\n if (abbreviation) {\n amountValue = amountValue / abbreviation.value;\n const formattedAmountValue = getFlooredFixed(amountValue, 2);\n return addCommas(formattedAmountValue, currency) + abbreviation.symbol;\n } else {\n return amountValue.toString();\n }\n};\n\ntype FormatAmountWithSuffixType = {\n suffix: AmountProps['suffix'];\n value: number;\n currency: Currency;\n};\n\nexport const formatAmountWithSuffix = ({\n suffix,\n value,\n currency,\n}: FormatAmountWithSuffixType): string => {\n switch (suffix) {\n case 'decimals': {\n const decimalNumber = getFlooredFixed(value, 2);\n return addCommas(decimalNumber, currency, 2);\n }\n case 'humanize': {\n return getHumanizedAmount(value, currency);\n }\n case 'none': {\n return addCommas(getFlooredFixed(value, 0), currency);\n }\n default:\n return addCommas(getFlooredFixed(value, 0), currency);\n }\n};\n\nconst getCurrencyWeight = (\n isAffixSubtle: NonNullable<AmountProps['isAffixSubtle']>,\n size: NonNullable<AmountProps['size']>,\n): 'bold' | 'regular' => {\n if (isAffixSubtle || size.startsWith('bold')) return 'bold';\n return 'regular';\n};\n\nconst _Amount = ({\n value,\n suffix = 'decimals',\n size = 'body-medium',\n isAffixSubtle = true,\n intent,\n prefix = 'currency-symbol',\n testID,\n currency = 'INR',\n ...styledProps\n}: AmountProps): ReactElement => {\n if (__DEV__) {\n if (typeof value !== 'number') {\n throwBladeError({\n message: '`value` prop must be of type `number` for Amount.',\n moduleName: 'Amount',\n });\n }\n // @ts-expect-error neutral intent should throw error\n if (intent === 'neutral') {\n throwBladeError({\n message: '`neutral` intent is not supported.',\n moduleName: 'Amount',\n });\n }\n }\n\n const currencyPrefix = currencyPrefixMapping[currency][prefix];\n const renderedValue = formatAmountWithSuffix({ suffix, value, currency });\n const { amountValueColor, affixColor } = getTextColorProps({\n intent,\n });\n\n const currencyColor = isAffixSubtle ? affixColor : amountValueColor;\n const currencyFontSize = isAffixSubtle ? affixFontSizes[size] : amountFontSizes[size];\n const currencyWeight = getCurrencyWeight(isAffixSubtle, size);\n const isReactNative = getPlatformType() === 'react-native';\n\n return (\n <BaseBox\n display={(isReactNative ? 'flex' : 'inline-flex') as never}\n {...metaAttribute({ name: MetaConstants.Amount, testID })}\n {...getStyledProps(styledProps)}\n >\n <BaseBox\n display={(isReactNative ? 'flex' : 'inline-flex') as never}\n alignItems=\"baseline\"\n flexDirection=\"row\"\n >\n <BaseText\n marginRight=\"spacing.1\"\n fontWeight={currencyWeight}\n fontSize={currencyFontSize}\n color={currencyColor}\n as={isReactNative ? undefined : 'span'}\n >\n {currencyPrefix}\n </BaseText>\n <AmountValue\n value={renderedValue}\n amountValueColor={amountValueColor}\n size={size}\n isAffixSubtle={isAffixSubtle}\n suffix={suffix}\n affixColor={affixColor}\n />\n </BaseBox>\n </BaseBox>\n );\n};\n\nconst Amount = assignWithoutSideEffects(_Amount, {\n displayName: 'Amount',\n componentId: 'Amount',\n});\n\nexport type { AmountProps };\nexport { Amount };\n"],"names":["getTextColorProps","_ref","intent","props","amountValueColor","affixColor","concat","AmountValue","_ref2","value","size","isAffixSubtle","suffix","affixFontWeight","isReactNative","getPlatformType","affixFontSize","affixFontSizes","amountFontSizes","valueForWeight","includes","startsWith","integer","split","decimal","AmountWrapper","BaseText","React","Fragment","_jsxs","children","fontSize","fontWeight","lineHeight","amountLineHeights","color","as","undefined","_jsx","marginLeft","getFlooredFixed","decimalPlaces","factor","Math","pow","roundedValue","floor","Number","toFixed","addCommas","amountValue","currency","arguments","length","locale","toLocaleString","minimumFractionDigits","getHumanizedAmount","abbreviations","getCurrencyAbbreviations","abbreviation","find","abbr","formattedAmountValue","symbol","toString","formatAmountWithSuffix","_ref3","decimalNumber","getCurrencyWeight","_Amount","_ref4","_ref4$suffix","_ref4$size","_ref4$isAffixSubtle","_ref4$prefix","prefix","testID","_ref4$currency","styledProps","_objectWithoutProperties","_excluded","throwBladeError","message","moduleName","currencyPrefix","currencyPrefixMapping","renderedValue","_getTextColorProps","currencyColor","currencyFontSize","currencyWeight","BaseBox","_objectSpread","display","metaAttribute","name","MetaConstants","Amount","getStyledProps","alignItems","flexDirection","marginRight","assignWithoutSideEffects","displayName","componentId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoFA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAAkE;AAAA,EAAA,IAA5DC,MAAM,GAAAD,IAAA,CAANC,MAAM,CAAA;AACjC,EAAA,IAAMC,KAAiB,GAAG;AACxBC,IAAAA,gBAAgB,EAAE,iCAAiC;AACnDC,IAAAA,UAAU,EAAE,gCAAA;GACb,CAAA;AACD,EAAA,IAAI,CAACH,MAAM,EAAE,OAAOC,KAAK,CAAA;AACzBA,EAAAA,KAAK,CAACC,gBAAgB,GAAA,gBAAA,CAAAE,MAAA,CAAoBJ,MAAM,EAAc,cAAA,CAAA,CAAA;AAC9DC,EAAAA,KAAK,CAACE,UAAU,GAAA,gBAAA,CAAAC,MAAA,CAAoBJ,MAAM,EAAc,cAAA,CAAA,CAAA;AACxD,EAAA,OAAOC,KAAK,CAAA;AACd,CAAC,CAAA;AASD,IAAMI,WAAW,GAAG,SAAdA,WAAWA,CAAAC,KAAA,EAOgB;AAAA,EAAA,IAN/BC,KAAK,GAAAD,KAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,KAAA,CAAJE,IAAI;IACJN,gBAAgB,GAAAI,KAAA,CAAhBJ,gBAAgB;IAChBO,aAAa,GAAAH,KAAA,CAAbG,aAAa;IACbC,MAAM,GAAAJ,KAAA,CAANI,MAAM;IACNP,UAAU,GAAAG,KAAA,CAAVH,UAAU,CAAA;AAEV,EAAA,IAAMQ,eAAe,GAAGF,aAAa,GAAG,SAAS,GAAG,MAAM,CAAA;AAC1D,EAAA,I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6F,MAAM,gBAAGK,wBAAwB,CAACjC,OAAO,EAAE;AAC/CkC,EAAAA,WAAW,EAAE,QAAQ;AACrBC,EAAAA,WAAW,EAAE,QAAA;AACf,CAAC;;;;"}
1
+ {"version":3,"file":"Amount.js","sources":["../../../../../../src/components/Amount/Amount.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport React from 'react';\nimport type { AmountTypeProps, Currency } from './amountTokens';\nimport {\n normalAmountSizes,\n getCurrencyAbbreviations,\n currencyIndicatorMapping,\n subtleFontSizes,\n amountLineHeights,\n currencyPositionMapping,\n} from './amountTokens';\nimport type { BaseTextProps } from '~components/Typography/BaseText/types';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { TestID } from '~utils/types';\nimport { getPlatformType } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { throwBladeError } from '~utils/logger';\nimport { objectKeysWithType } from '~utils/objectKeysWithType';\nimport { BaseText } from '~components/Typography/BaseText';\nimport { Text } from '~components/Typography';\nimport { opacity } from '~tokens/global';\nimport type { FontFamily } from '~tokens/global';\n\ntype AmountCommonProps = {\n /**\n * The value to be rendered within the component.\n *\n */\n value: number;\n /**\n * Sets the color of the amount.\n *\n * @default undefined\n */\n color?: BaseTextProps['color'];\n /**\n * Indicates what the suffix of amount should be\n *\n * @default 'decimals'\n */\n suffix?: 'decimals' | 'none' | 'humanize';\n /**\n * Makes the currency indicator(currency symbol/code) and decimal digits small and faded\n *\n * @default true\n */\n isAffixSubtle?: true | false;\n /**\n * Determines the visual representation of the currency, choose between displaying the currency symbol or code.\n *\n * @default 'currency-symbol'\n */\n currencyIndicator?: 'currency-symbol' | 'currency-code';\n /**\n * The currency of the amount. Note that this component\n * only displays the provided value in the specified currency, it does not perform any currency conversion.\n *\n * @default 'INR'\n * */\n currency?: Currency;\n /**\n * If true, the amount text will have a line through it.\n *\n * @default false\n */\n isStrikethrough?: boolean;\n} & TestID &\n StyledPropsBlade;\n\ntype ColorProps = {\n amountValueColor: BaseTextProps['color'];\n};\n\ntype AmountProps = AmountTypeProps & AmountCommonProps;\n\nconst getTextColorProps = ({ color }: { color: AmountProps['color'] }): ColorProps => {\n const props: ColorProps = {\n amountValueColor: 'surface.text.gray.normal',\n };\n if (!color) return props;\n props.amountValueColor = color;\n return props;\n};\n\ninterface AmountValue extends Omit<AmountProps, 'value'> {\n amountValueColor: BaseTextProps['color'];\n value: string;\n size: Exclude<AmountProps['size'], undefined>;\n}\n\nconst AmountValue = ({\n value,\n size = 'medium',\n type = 'body',\n weight = 'regular',\n amountValueColor,\n isAffixSubtle,\n suffix,\n}: AmountValue): ReactElement => {\n const isReactNative = getPlatformType() === 'react-native';\n const affixFontSize = isAffixSubtle ? subtleFontSizes[type][size] : normalAmountSizes[type][size];\n const numberFontFamily: keyof FontFamily = type === 'body' ? 'text' : 'heading';\n if (suffix === 'decimals' && isAffixSubtle) {\n const integer = value.split('.')[0];\n const decimal = value.split('.')[1];\n\n // Native does not support alignItems of Text inside a div, instead we need to wrap is in a Text\n const AmountWrapper = isReactNative ? Text : React.Fragment;\n\n return (\n <AmountWrapper>\n <BaseText\n fontSize={normalAmountSizes[type][size]}\n fontWeight={weight}\n lineHeight={amountLineHeights[type][size]}\n color={amountValueColor}\n fontFamily={numberFontFamily}\n as={isReactNative ? undefined : 'span'}\n >\n {integer}\n </BaseText>\n <BaseText\n fontWeight={weight}\n fontSize={affixFontSize}\n fontFamily={numberFontFamily}\n color={amountValueColor}\n as={isReactNative ? undefined : 'span'}\n opacity={isAffixSubtle ? opacity[8] : 1}\n >\n .{decimal || '00'}\n </BaseText>\n </AmountWrapper>\n );\n }\n return (\n <BaseText\n fontSize={normalAmountSizes[type][size]}\n fontWeight={weight}\n fontFamily={numberFontFamily}\n color={amountValueColor}\n lineHeight={amountLineHeights[type][size]}\n >\n {value}\n </BaseText>\n );\n};\n\n// This function rounds a number to a specified number of decimal places\n// and floors the result.\nexport const getFlooredFixed = (value: number, decimalPlaces: number): number => {\n const factor = 100 ** decimalPlaces;\n const roundedValue = Math.floor(value * factor) / factor;\n return Number(roundedValue.toFixed(decimalPlaces));\n};\n\nexport const addCommas = (amountValue: number, currency: Currency, decimalPlaces = 0): string => {\n // If the currency is 'INR', set the locale to 'en-IN' (Indian English).\n // Otherwise, set the locale to 'en-US' (U.S. English).\n const locale = currency === 'INR' ? 'en-IN' : 'en-US';\n return amountValue.toLocaleString(locale, { minimumFractionDigits: decimalPlaces });\n};\n/**\n * This function returns the humanized amount\n * ie: for INR 2000 => 2K\n * for MYR 2000000 => 2M\n */\nexport const getHumanizedAmount = ({\n value,\n currency,\n denominationPosition = 'right',\n}: {\n value: number;\n currency: Currency;\n denominationPosition?: 'left' | 'right';\n}): string => {\n let amountValue = value;\n const abbreviations = getCurrencyAbbreviations(currency);\n const abbreviation = abbreviations.find((abbr) => amountValue >= abbr.value);\n\n if (abbreviation) {\n amountValue = amountValue / abbreviation.value;\n const formattedAmountValue = getFlooredFixed(amountValue, 2);\n\n if (denominationPosition === 'right') {\n return `${addCommas(formattedAmountValue, currency)}${abbreviation.symbol}`;\n }\n\n return `${abbreviation.symbol}${addCommas(formattedAmountValue, currency)}`;\n }\n\n return amountValue.toString();\n};\n\ntype FormatAmountWithSuffixType = {\n suffix: AmountProps['suffix'];\n value: number;\n currency: Currency;\n denominationPosition?: 'left' | 'right';\n};\n\nexport const formatAmountWithSuffix = ({\n suffix,\n value,\n currency,\n denominationPosition,\n}: FormatAmountWithSuffixType): string => {\n switch (suffix) {\n case 'decimals': {\n const decimalNumber = getFlooredFixed(value, 2);\n return addCommas(decimalNumber, currency, 2);\n }\n case 'humanize': {\n return getHumanizedAmount({ value, currency, denominationPosition });\n }\n case 'none': {\n return addCommas(getFlooredFixed(value, 0), currency);\n }\n default:\n return addCommas(getFlooredFixed(value, 0), currency);\n }\n};\n\nconst _Amount = ({\n value,\n suffix = 'decimals',\n type = 'body',\n size = 'medium',\n weight = 'regular',\n isAffixSubtle = true,\n isStrikethrough = false,\n color,\n currencyIndicator = 'currency-symbol',\n currency = 'INR',\n testID,\n ...styledProps\n}: AmountProps): ReactElement => {\n if (__DEV__) {\n if (typeof value !== 'number') {\n throwBladeError({\n message: '`value` prop must be of type `number` for Amount.',\n moduleName: 'Amount',\n });\n }\n // @ts-expect-error neutral color should throw error\n if (color === 'neutral') {\n throwBladeError({\n message: '`neutral` color is not supported.',\n moduleName: 'Amount',\n });\n }\n\n const bodySizes = objectKeysWithType(normalAmountSizes.body);\n if ((type === 'body' || !type) && !bodySizes.includes(size)) {\n throwBladeError({\n message: `size=\"${size}\" is not allowed with type=\"body\"`,\n moduleName: 'Amount',\n });\n }\n\n const displaySizes = objectKeysWithType(normalAmountSizes.display);\n if (type === 'display' && !displaySizes.includes(size)) {\n throwBladeError({\n message: `size=\"${size}\" is not allowed with type=\"display\"`,\n moduleName: 'Amount',\n });\n }\n\n const headingSizes = objectKeysWithType(normalAmountSizes.heading);\n if (type === 'heading' && !headingSizes.includes(size)) {\n throwBladeError({\n message: `size=\"${size}\" is not allowed with type=\"heading\"`,\n moduleName: 'Amount',\n });\n }\n }\n\n const currencySymbolOrCode = currencyIndicatorMapping[currency][currencyIndicator];\n const currencyPosition = currencyPositionMapping[currency] || 'left';\n const denominationPosition = currencyPosition === 'left' ? 'right' : 'left';\n const renderedValue = formatAmountWithSuffix({ suffix, value, currency, denominationPosition });\n const { amountValueColor } = getTextColorProps({\n color,\n });\n\n const currencyFontSize = isAffixSubtle\n ? subtleFontSizes[type][size]\n : normalAmountSizes[type][size];\n const isReactNative = getPlatformType() === 'react-native';\n\n return (\n <BaseBox\n display={(isReactNative ? 'flex' : 'inline-flex') as never}\n flexDirection=\"row\"\n {...metaAttribute({ name: MetaConstants.Amount, testID })}\n {...getStyledProps(styledProps)}\n >\n <BaseBox\n display={(isReactNative ? 'flex' : 'inline-flex') as never}\n alignItems=\"baseline\"\n flexDirection=\"row\"\n position=\"relative\"\n >\n {currencyPosition === 'left' && (\n <BaseText\n marginRight=\"spacing.1\"\n fontWeight={weight}\n fontSize={currencyFontSize}\n color={amountValueColor}\n as={isReactNative ? undefined : 'span'}\n opacity={isAffixSubtle ? opacity[8] : 1}\n >\n {currencySymbolOrCode}\n </BaseText>\n )}\n <AmountValue\n value={renderedValue}\n amountValueColor={amountValueColor}\n type={type}\n weight={weight}\n size={size}\n isAffixSubtle={isAffixSubtle}\n suffix={suffix}\n />\n {currencyPosition === 'right' && (\n <BaseText\n marginLeft=\"spacing.1\"\n fontWeight={weight}\n fontSize={currencyFontSize}\n color={amountValueColor}\n as={isReactNative ? undefined : 'span'}\n opacity={isAffixSubtle ? opacity[8] : 1}\n >\n {currencySymbolOrCode}\n </BaseText>\n )}\n {isStrikethrough && (\n <BaseBox\n // @ts-expect-error - intentionally setting the border color to the color prop for this hacky strikethrough\n borderBottomColor={amountValueColor}\n borderBottomWidth={type === 'body' ? 'thin' : 'thicker'}\n borderBottomStyle=\"solid\"\n position=\"absolute\"\n width=\"100%\"\n top=\"50%\"\n />\n )}\n </BaseBox>\n </BaseBox>\n );\n};\n\nconst Amount = assignWithoutSideEffects(_Amount, {\n displayName: 'Amount',\n componentId: 'Amount',\n});\n\nexport type { AmountProps };\nexport { Amount };\n"],"names":["getTextColorProps","_ref","color","props","amountValueColor","AmountValue","_ref2","value","_ref2$size","size","_ref2$type","type","_ref2$weight","weight","isAffixSubtle","suffix","isReactNative","getPlatformType","affixFontSize","subtleFontSizes","normalAmountSizes","numberFontFamily","integer","split","decimal","AmountWrapper","Text","React","Fragment","_jsxs","children","_jsx","BaseText","fontSize","fontWeight","lineHeight","amountLineHeights","fontFamily","as","undefined","opacity","getFlooredFixed","decimalPlaces","factor","Math","pow","roundedValue","floor","Number","toFixed","addCommas","amountValue","currency","arguments","length","locale","toLocaleString","minimumFractionDigits","getHumanizedAmount","_ref3","_ref3$denominationPos","denominationPosition","abbreviations","getCurrencyAbbreviations","abbreviation","find","abbr","formattedAmountValue","concat","symbol","toString","formatAmountWithSuffix","_ref4","decimalNumber","_Amount","_ref5","_ref5$suffix","_ref5$type","_ref5$size","_ref5$weight","_ref5$isAffixSubtle","_ref5$isStrikethrough","isStrikethrough","_ref5$currencyIndicat","currencyIndicator","_ref5$currency","testID","styledProps","_objectWithoutProperties","_excluded","throwBladeError","message","moduleName","bodySizes","objectKeysWithType","body","includes","displaySizes","display","headingSizes","heading","currencySymbolOrCode","currencyIndicatorMapping","currencyPosition","currencyPositionMapping","renderedValue","_getTextColorProps","currencyFontSize","BaseBox","_objectSpread","flexDirection","metaAttribute","name","MetaConstants","Amount","getStyledProps","alignItems","position","marginRight","marginLeft","borderBottomColor","borderBottomWidth","borderBottomStyle","width","top","assignWithoutSideEffects","displayName","componentId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAA+D;AAAA,EAAA,IAAzDC,KAAK,GAAAD,IAAA,CAALC,KAAK,CAAA;AAChC,EAAA,IAAMC,KAAiB,GAAG;AACxBC,IAAAA,gBAAgB,EAAE,0BAAA;GACnB,CAAA;AACD,EAAA,IAAI,CAACF,KAAK,EAAE,OAAOC,KAAK,CAAA;EACxBA,KAAK,CAACC,gBAAgB,GAAGF,KAAK,CAAA;AAC9B,EAAA,OAAOC,KAAK,CAAA;AACd,CAAC,CAAA;AAQD,IAAME,WAAW,GAAG,SAAdA,WAAWA,CAAAC,KAAA,EAQgB;AAAA,EAAA,IAP/BC,KAAK,GAAAD,KAAA,CAALC,KAAK;IAAAC,UAAA,GAAAF,KAAA,CACLG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,UAAA;IAAAE,UAAA,GAAAJ,KAAA,CACfK,IAAI;AAAJA,IAAAA,IAAI,GAAAD,UAAA,KAAG,KAAA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