@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":"FormHint.js","sources":["../../../../../src/components/Form/FormHint.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport type { ReactElement } from 'react';\nimport React from 'react';\nimport { FormHintWrapper } from './FormHintWrapper';\nimport { BaseText } from '~components/Typography/BaseText';\nimport BaseBox from '~components/Box/BaseBox';\nimport { CheckIcon, InfoIcon } from '~components/Icons';\nimport type { BaseTextProps } from '~components/Typography/BaseText/types';\nimport { getPlatformType } from '~utils/getPlatformType';\n\ntype HintTextProps = {\n icon?: React.ElementType;\n children: string;\n id?: string;\n color: BaseTextProps['color'];\n};\n\nconst HintText = ({ icon: Icon, children, id, color }: HintTextProps): ReactElement => {\n const isReactNative = getPlatformType() === 'react-native';\n\n return (\n <BaseBox marginTop=\"spacing.2\">\n <FormHintWrapper>\n {Icon ? <Icon /> : null}\n <BaseText\n id={id}\n as={isReactNative ? undefined : 'span'}\n color={color}\n fontSize={50}\n lineHeight={50}\n fontStyle=\"italic\"\n fontFamily=\"text\"\n >\n {children}\n </BaseText>\n </FormHintWrapper>\n </BaseBox>\n );\n};\n\nexport type FormHintProps = {\n type: 'help' | 'error' | 'success';\n /**\n * Help text for the group\n */\n helpText?: string;\n /**\n * Error text for the group\n *\n * Renders when `state` is set to 'error'\n */\n errorText?: string;\n /**\n * Success text for the group\n *\n * Renders when `state` is set to 'success'\n */\n successText?: string;\n /**\n * Sets the id on errorText.\n * Needed for accessibility reasons.\n */\n errorTextId?: string;\n /**\n * Sets the id on helpText.\n * Needed for accessibility reasons.\n */\n helpTextId?: string;\n /**\n * Sets the id on successText.\n * Needed for accessibility reasons.\n */\n successTextId?: string;\n};\n\nconst Icons = {\n error: (): ReactElement => (\n <>\n <InfoIcon color=\"feedback.icon.negative.lowContrast\" size=\"small\" />\n <BaseBox marginRight=\"spacing.2\" />\n </>\n ),\n success: (): ReactElement => (\n <>\n <CheckIcon color=\"feedback.icon.positive.lowContrast\" size=\"small\" />\n <BaseBox marginRight=\"spacing.2\" />\n </>\n ),\n};\n\nconst FormHint = ({\n type,\n helpText,\n errorText,\n successText,\n helpTextId,\n errorTextId,\n successTextId,\n}: FormHintProps): React.ReactElement => {\n const colors = {\n help: 'surface.text.muted.lowContrast',\n error: 'feedback.text.negative.lowContrast',\n success: 'feedback.text.positive.lowContrast',\n } as const;\n\n const showError = type === 'error' && errorText;\n const showSuccess = type === 'success' && successText;\n const showHelp = !showError && !showSuccess && helpText;\n\n return (\n <>\n {showHelp && (\n <HintText id={helpTextId} color={colors.help}>\n {helpText}\n </HintText>\n )}\n\n {showError && (\n <HintText id={errorTextId} icon={Icons.error} color={colors.error}>\n {errorText}\n </HintText>\n )}\n\n {showSuccess && (\n <HintText id={successTextId} icon={Icons.success} color={colors.success}>\n {successText}\n </HintText>\n )}\n </>\n );\n};\n\nexport { FormHint };\n"],"names":["HintText","_ref","Icon","icon","children","id","color","isReactNative","getPlatformType","_jsx","BaseBox","marginTop","_jsxs","FormHintWrapper","BaseText","as","undefined","fontSize","lineHeight","fontStyle","fontFamily","Icons","error","_Fragment","InfoIcon","size","marginRight","success","CheckIcon","FormHint","_ref2","type","helpText","errorText","successText","helpTextId","errorTextId","successTextId","colors","help","showError","showSuccess","showHelp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAMA,QAAQ,CAAG,SAAXA,QAAQA,CAAAC,IAAA,CAAyE,KAA7DC,IAAI,CAAAD,IAAA,CAAVE,IAAI,CAAQC,QAAQ,CAAAH,IAAA,CAARG,QAAQ,CAAEC,EAAE,CAAAJ,IAAA,CAAFI,EAAE,CAAEC,KAAK,CAAAL,IAAA,CAALK,KAAK,CACjD,IAAMC,aAAa,CAAGC,eAAe,EAAE,GAAK,cAAc,CAE1D,OACEC,GAAA,CAACC,OAAO,EAACC,SAAS,CAAC,WAAW,CAAAP,QAAA,CAC5BQ,IAAA,CAACC,eAAe,CAAAT,CAAAA,QAAA,CACbF,CAAAA,IAAI,CAAGO,GAAA,CAACP,IAAI,CAAA,EAAE,CAAC,CAAG,IAAI,CACvBO,GAAA,CAACK,QAAQ,CAAA,CACPT,EAAE,CAAEA,EAAG,CACPU,EAAE,CAAER,aAAa,CAAGS,SAAS,CAAG,MAAO,CACvCV,KAAK,CAAEA,KAAM,CACbW,QAAQ,CAAE,EAAG,CACbC,UAAU,CAAE,EAAG,CACfC,SAAS,CAAC,QAAQ,CAClBC,UAAU,CAAC,MAAM,CAAAhB,QAAA,CAEhBA,QAAQ,CACD,CAAC,CAAA,CACI,CAAC,CACX,CAAC,CAEd,CAAC,CAqCD,IAAMiB,KAAK,CAAG,CACZC,KAAK,CAAE,SAAAA,OACL,CAAA,OAAAV,IAAA,CAAAW,QAAA,CAAAnB,CAAAA,QAAA,CACEK,CAAAA,GAAA,CAACe,QAAQ,CAAA,CAAClB,KAAK,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C,MAAM,CAACC,IAAK,CAAAnC,QAAA,CAC1C4B,QAAQ,CACD,CACX,CAEAQ,SAAS,EACR/B,GAAA,CAACT,QAAQ,CAACK,CAAAA,EAAE,CAAE+B,WAAY,CAACjC,IAAI,CAAEkB,KAAK,CAACC,KAAM,CAAChB,KAAK,CAAEgC,MAAM,CAAChB,KAAM,CAAAlB,QAAA,CAC/D6B,SAAS,CACF,CACX,CAEAQ,WAAW,EACVhC,GAAA,CAACT,QAAQ,CAACK,CAAAA,EAAE,CAAEgC,aAAc,CAAClC,IAAI,CAAEkB,KAAK,CAACM,OAAQ,CAACrB,KAAK,CAAEgC,MAAM,CAACX,OAAQ,CAAAvB,QAAA,CACrE8B,WAAW,CACJ,CACX,CAAA,CACD,CAAC,CAEP;;;;"}
1
+ {"version":3,"file":"FormHint.js","sources":["../../../../../src/components/Form/FormHint.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport type { ReactElement } from 'react';\nimport React from 'react';\nimport { FormHintWrapper } from './FormHintWrapper';\nimport type { TextProps } from '~components/Typography/Text';\nimport { Text } from '~components/Typography/Text';\nimport BaseBox from '~components/Box/BaseBox';\nimport { CheckIcon, InfoIcon } from '~components/Icons';\nimport { getPlatformType } from '~utils/getPlatformType';\n\ntype HintTextProps = {\n icon?: React.ElementType;\n children: string;\n id?: string;\n color: TextProps<{ variant: 'caption' }>['color'];\n};\n\nconst HintText = ({ icon: Icon, children, id, color }: HintTextProps): ReactElement => {\n const isReactNative = getPlatformType() === 'react-native';\n\n return (\n <BaseBox marginTop=\"spacing.2\" id={id}>\n <FormHintWrapper>\n {Icon ? <Icon /> : null}\n <Text as={isReactNative ? undefined : 'span'} color={color} size=\"small\" variant=\"caption\">\n {children}\n </Text>\n </FormHintWrapper>\n </BaseBox>\n );\n};\n\nexport type FormHintProps = {\n type: 'help' | 'error' | 'success';\n /**\n * Help text for the group\n */\n helpText?: string;\n /**\n * Error text for the group\n *\n * Renders when `state` is set to 'error'\n */\n errorText?: string;\n /**\n * Success text for the group\n *\n * Renders when `state` is set to 'success'\n */\n successText?: string;\n /**\n * Sets the id on errorText.\n * Needed for accessibility reasons.\n */\n errorTextId?: string;\n /**\n * Sets the id on helpText.\n * Needed for accessibility reasons.\n */\n helpTextId?: string;\n /**\n * Sets the id on successText.\n * Needed for accessibility reasons.\n */\n successTextId?: string;\n};\n\nconst Icons = {\n error: (): ReactElement => (\n <>\n <InfoIcon color=\"feedback.icon.negative.intense\" size=\"small\" />\n <BaseBox marginRight=\"spacing.2\" />\n </>\n ),\n success: (): ReactElement => (\n <>\n <CheckIcon color=\"feedback.icon.positive.intense\" size=\"small\" />\n <BaseBox marginRight=\"spacing.2\" />\n </>\n ),\n};\n\nconst FormHint = ({\n type,\n helpText,\n errorText,\n successText,\n helpTextId,\n errorTextId,\n successTextId,\n}: FormHintProps): React.ReactElement => {\n const colors: Record<string, TextProps<{ variant: 'caption' }>['color']> = {\n help: 'surface.text.gray.muted',\n error: 'feedback.text.negative.intense',\n success: 'feedback.text.positive.intense',\n };\n\n const showError = type === 'error' && errorText;\n const showSuccess = type === 'success' && successText;\n const showHelp = !showError && !showSuccess && helpText;\n\n return (\n <>\n {showHelp && (\n <HintText id={helpTextId} color={colors.help}>\n {helpText}\n </HintText>\n )}\n\n {showError && (\n <HintText id={errorTextId} icon={Icons.error} color={colors.error}>\n {errorText}\n </HintText>\n )}\n\n {showSuccess && (\n <HintText id={successTextId} icon={Icons.success} color={colors.success}>\n {successText}\n </HintText>\n )}\n </>\n );\n};\n\nexport { FormHint };\n"],"names":["HintText","_ref","Icon","icon","children","id","color","isReactNative","getPlatformType","_jsx","BaseBox","marginTop","_jsxs","FormHintWrapper","Text","as","undefined","size","variant","Icons","error","_Fragment","InfoIcon","marginRight","success","CheckIcon","FormHint","_ref2","type","helpText","errorText","successText","helpTextId","errorTextId","successTextId","colors","help","showError","showSuccess","showHelp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAMA,QAAQ,CAAG,SAAXA,QAA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KAAK,CAAE6B,MAAM,CAACX,OAAQ,CAAApB,QAAA,CACrE2B,WAAW,CACJ,CACX,CAAA,CACD,CAAC,CAEP;;;;"}
@@ -1,7 +1,7 @@
1
1
  import 'react';
2
2
  import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.native.js';
3
3
  import '@babel/runtime/helpers/objectWithoutProperties';
4
- import { BaseText } from '../Typography/BaseText/BaseText.native.js';
4
+ import '../Typography/BaseText/BaseText.native.js';
5
5
  import '@babel/runtime/helpers/slicedToArray';
6
6
  import 'react-native';
7
7
  import '../../tokens/global/typography.js';
@@ -23,7 +23,7 @@ import '@gorhom/portal';
23
23
  import 'react-native-gesture-handler';
24
24
  import '../BottomSheet/BottomSheetStack.js';
25
25
 
26
- var FormLabel=function FormLabel(_ref){var _ref$as=_ref.as,as=_ref$as===void 0?'span':_ref$as,_ref$position=_ref.position,position=_ref$position===void 0?'top':_ref$position,_ref$necessityIndicat=_ref.necessityIndicator,necessityIndicator=_ref$necessityIndicat===void 0?'none':_ref$necessityIndicat,accessibilityText=_ref.accessibilityText,children=_ref.children,id=_ref.id,htmlFor=_ref.htmlFor,_ref$contrast=_ref.contrast,contrast=_ref$contrast===void 0?'low':_ref$contrast;var _useTheme=useTheme(),theme=_useTheme.theme;var _useBreakpoint=useBreakpoint({breakpoints:theme.breakpoints}),matchedDeviceType=_useBreakpoint.matchedDeviceType;var isDesktop=matchedDeviceType==='desktop';var isReactNative=getPlatformType()==='react-native';var necessityLabel=null;var isLabelLeftPositioned=position==='left'&&isDesktop;if(necessityIndicator==='optional'){necessityLabel=jsx(Text,{variant:"caption",weight:"regular",type:"placeholder",children:"(optional)"});}if(necessityIndicator==='required'){necessityLabel=jsx(BaseText,{lineHeight:100,fontFamily:"text",fontStyle:"normal",fontSize:75,fontWeight:"bold",color:"feedback.text.negative.lowContrast",children:"*"});}var computedAccessibilityNode=jsxs(VisuallyHidden,{children:[necessityIndicator!=='none'&&jsx(Text,{children:necessityIndicator}),jsx(Text,{children:accessibilityText})]});var textNode=jsxs(BaseBox,{gap:necessityIndicator==='optional'?'spacing.2':'spacing.0',display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxHeight:makeSpace(size[36]),children:[jsx(Text,{type:"subdued",variant:"body",contrast:contrast,size:isLabelLeftPositioned?'medium':'small',truncateAfterLines:2,weight:"bold",wordBreak:isLabelLeftPositioned?'break-word':undefined,children:children}),computedAccessibilityNode,necessityLabel]});if(isReactNative){return jsx(BaseBox,{marginRight:"spacing.5",marginBottom:"spacing.2",children:textNode});}var Component=as;var width=isLabelLeftPositioned&&isDesktop?makeSize(size[120]):'auto';return jsx(Component,Object.assign({htmlFor:htmlFor,style:{width:width,flexShrink:0,marginRight:makeSpace(theme.spacing[5])},id:id},metaAttribute({name:MetaConstants.FormLabel}),{children:jsx(BaseBox,{marginBottom:isLabelLeftPositioned?'spacing.0':'spacing.2',children:textNode})}));};
26
+ var FormLabel=function FormLabel(_ref){var _ref$as=_ref.as,as=_ref$as===void 0?'span':_ref$as,_ref$position=_ref.position,position=_ref$position===void 0?'top':_ref$position,_ref$necessityIndicat=_ref.necessityIndicator,necessityIndicator=_ref$necessityIndicat===void 0?'none':_ref$necessityIndicat,accessibilityText=_ref.accessibilityText,children=_ref.children,id=_ref.id,htmlFor=_ref.htmlFor;var _useTheme=useTheme(),theme=_useTheme.theme;var _useBreakpoint=useBreakpoint({breakpoints:theme.breakpoints}),matchedDeviceType=_useBreakpoint.matchedDeviceType;var isDesktop=matchedDeviceType==='desktop';var isReactNative=getPlatformType()==='react-native';var necessityLabel=null;var isLabelLeftPositioned=position==='left'&&isDesktop;if(necessityIndicator==='optional'){necessityLabel=jsx(Text,{variant:"caption",size:"small",color:"surface.text.gray.muted",children:"(optional)"});}if(necessityIndicator==='required'){necessityLabel=jsx(Text,{variant:"body",size:isLabelLeftPositioned?'medium':'small',color:"feedback.text.negative.intense",children:"*"});}var computedAccessibilityNode=jsxs(VisuallyHidden,{children:[necessityIndicator!=='none'&&jsx(Text,{children:necessityIndicator}),jsx(Text,{children:accessibilityText})]});var textNode=jsxs(BaseBox,{gap:necessityIndicator==='optional'?'spacing.2':'spacing.0',display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxHeight:makeSpace(size[36]),children:[jsx(Text,{variant:"body",size:isLabelLeftPositioned?'medium':'small',color:"surface.text.gray.subtle",truncateAfterLines:2,weight:"semibold",wordBreak:isLabelLeftPositioned?'break-word':undefined,children:children}),computedAccessibilityNode,necessityLabel]});if(isReactNative){return jsx(BaseBox,{marginRight:"spacing.5",marginBottom:"spacing.2",children:textNode});}var Component=as;var width=isLabelLeftPositioned&&isDesktop?makeSize(size[120]):'auto';return jsx(Component,Object.assign({htmlFor:htmlFor,style:{width:width,flexShrink:0,marginRight:makeSpace(theme.spacing[5])},id:id},metaAttribute({name:MetaConstants.FormLabel}),{children:jsx(BaseBox,{marginBottom:isLabelLeftPositioned?'spacing.0':'spacing.2',children:textNode})}));};
27
27
 
28
28
  export { FormLabel };
29
29
  //# sourceMappingURL=FormLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormLabel.js","sources":["../../../../../src/components/Form/FormLabel.tsx"],"sourcesContent":["import React from 'react';\nimport { VisuallyHidden } from '~components/VisuallyHidden';\nimport { Text } from '~components/Typography';\nimport { BaseText } from '~components/Typography/BaseText';\nimport { getPlatformType, useBreakpoint } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport BaseBox from '~components/Box/BaseBox';\nimport { useTheme } from '~components/BladeProvider';\nimport type { ColorContrastTypes } from '~tokens/theme/theme';\nimport { makeSpace } from '~utils/makeSpace';\nimport { makeSize } from '~utils/makeSize';\nimport { size } from '~tokens/global';\n\ntype CommonProps = {\n as: 'span' | 'label';\n position?: 'top' | 'left';\n necessityIndicator?: 'required' | 'optional' | 'none';\n accessibilityText?: string;\n children: string | undefined;\n id?: string;\n contrast?: ColorContrastTypes;\n};\n\ntype LabelProps = CommonProps & {\n htmlFor: string;\n as: 'label';\n};\n\ntype SpanProps = CommonProps & {\n as: 'span';\n htmlFor?: undefined;\n};\n\ntype FormLabelProps = LabelProps | SpanProps;\n\nexport type FormInputLabelProps = {\n /**\n * Label to be shown for the input field\n */\n label?: string;\n /**\n * Desktop only prop. Default value on mobile will be `top`\n */\n labelPosition?: 'left' | 'top';\n /**\n * Displays `(optional)` when `optional` is passed or `*` when `required` is passed\n */\n necessityIndicator?: 'required' | 'optional' | 'none';\n};\n\nconst FormLabel = ({\n as = 'span',\n position = 'top',\n necessityIndicator = 'none',\n accessibilityText,\n children,\n id,\n htmlFor,\n contrast = 'low',\n}: FormLabelProps): React.ReactElement => {\n const { theme } = useTheme();\n const { matchedDeviceType } = useBreakpoint({ breakpoints: theme.breakpoints });\n const isDesktop = matchedDeviceType === 'desktop';\n const isReactNative = getPlatformType() === 'react-native';\n\n let necessityLabel: React.ReactNode = null;\n\n const isLabelLeftPositioned = position === 'left' && isDesktop;\n\n if (necessityIndicator === 'optional') {\n necessityLabel = (\n <Text variant=\"caption\" weight=\"regular\" type=\"placeholder\">\n (optional)\n </Text>\n );\n }\n if (necessityIndicator === 'required') {\n necessityLabel = (\n <BaseText\n lineHeight={100}\n fontFamily=\"text\"\n fontStyle=\"normal\"\n fontSize={75}\n fontWeight=\"bold\"\n color=\"feedback.text.negative.lowContrast\"\n >\n *\n </BaseText>\n );\n }\n\n const computedAccessibilityNode = (\n <VisuallyHidden>\n {necessityIndicator !== 'none' && <Text>{necessityIndicator}</Text>}\n <Text>{accessibilityText}</Text>\n </VisuallyHidden>\n );\n\n const textNode = (\n <BaseBox\n gap={necessityIndicator === 'optional' ? 'spacing.2' : 'spacing.0'}\n display=\"flex\"\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n maxHeight={makeSpace(size[36])}\n >\n <Text\n type=\"subdued\"\n variant=\"body\"\n contrast={contrast}\n size={isLabelLeftPositioned ? 'medium' : 'small'}\n truncateAfterLines={2}\n weight=\"bold\"\n wordBreak={isLabelLeftPositioned ? 'break-word' : undefined}\n >\n {children}\n </Text>\n {computedAccessibilityNode}\n {/* TODO: Hide from screen readers to prevent double announcement */}\n {necessityLabel}\n </BaseBox>\n );\n\n // What harm can it do?\n if (isReactNative) {\n return (\n <BaseBox marginRight=\"spacing.5\" marginBottom=\"spacing.2\">\n {textNode}\n </BaseBox>\n );\n }\n\n const Component = as;\n // only set 120px label when device is desktop\n const width = isLabelLeftPositioned && isDesktop ? makeSize(size[120]) : 'auto';\n\n return (\n <Component\n htmlFor={htmlFor}\n style={{\n width,\n flexShrink: 0,\n marginRight: makeSpace(theme.spacing[5]),\n }}\n id={id}\n {...metaAttribute({ name: MetaConstants.FormLabel })}\n >\n <BaseBox marginBottom={isLabelLeftPositioned ? 'spacing.0' : 'spacing.2'}>{textNode}</BaseBox>\n </Component>\n );\n};\n\nexport { FormLabel };\n"],"names":["FormLabel","_ref","_ref$as","as","_ref$position","position","_ref$necessityIndicat","necessityIndicator","accessibilityText","children","id","htmlFor","_ref$contrast","contrast","_useTheme","useTheme","theme","_useBreakpoint","useBreakpoint","breakpoints","matchedDeviceType","isDesktop","isReactNative","getPlatformType","necessityLabel","isLabelLeftPositioned","_jsx","Text","variant","weight","type","BaseText","lineHeight","fontFamily","fontStyle","fontSize","fontWeight","color","computedAccessibilityNode","_jsxs","VisuallyHidden","textNode","BaseBox","gap","display","flexDirection","alignItems","flexWrap","maxHeight","makeSpace","size","truncateAfterLines","wordBreak","undefined","marginRight","marginBottom","Component","width","makeSize","Object","assign","style","flexShrink","spacing","metaAttribute","name","MetaConstants"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkDM,IAAAA,SAAS,CAAG,SAAZA,SAASA,CAAAC,IAAA,CAS2B,CAAAC,IAAAA,OAAA,CAAAD,IAAA,CARxCE,EAAE,CAAFA,EAAE,CAAAD,OAAA,GAAA,KAAA,CAAA,CAAG,MAAM,CAAAA,OAAA,CAAAE,aAAA,CAAAH,IAAA,CACXI,QAAQ,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AAE,CAEpB,IAAMsD,KAAK,CAAGhC,qBAAqB,EAAIJ,SAAS,CAAGqC,QAAQ,CAACR,IAAI,CAAC,GAAG,CAAC,CAAC,CAAG,MAAM,CAE/E,OACExB,GAAA,CAAC8B,SAAS,CAAAG,MAAA,CAAAC,MAAA,CACRjD,CAAAA,OAAO,CAAEA,OAAQ,CACjBkD,KAAK,CAAE,CACLJ,KAAK,CAALA,KAAK,CACLK,UAAU,CAAE,CAAC,CACbR,WAAW,CAAEL,SAAS,CAACjC,KAAK,CAAC+C,OAAO,CAAC,CAAC,CAAC,CACzC,CAAE,CACFrD,EAAE,CAAEA,EAAG,CAAA,CACHsD,aAAa,CAAC,CAAEC,IAAI,CAAEC,aAAa,CAAClE,SAAU,CAAC,CAAC,CAAA,CAAAS,QAAA,CAEpDiB,GAAA,CAACgB,OAAO,CAAA,CAACa,YAAY,CAAE9B,qBAAqB,CAAG,WAAW,CAAG,WAAY,CAAAhB,QAAA,CAAEgC,QAAQ,CAAU,CAAC,CAAA,CACrF,CAAC,CAEhB;;;;"}
1
+ {"version":3,"file":"FormLabel.js","sources":["../../../../../src/components/Form/FormLabel.tsx"],"sourcesContent":["import React from 'react';\nimport { VisuallyHidden } from '~components/VisuallyHidden';\nimport { Text } from '~components/Typography';\nimport { getPlatformType, useBreakpoint } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport BaseBox from '~components/Box/BaseBox';\nimport { useTheme } from '~components/BladeProvider';\nimport { makeSpace } from '~utils/makeSpace';\nimport { makeSize } from '~utils/makeSize';\nimport { size } from '~tokens/global';\n\ntype CommonProps = {\n as: 'span' | 'label';\n position?: 'top' | 'left';\n necessityIndicator?: 'required' | 'optional' | 'none';\n accessibilityText?: string;\n children: string | undefined;\n id?: string;\n};\n\ntype LabelProps = CommonProps & {\n htmlFor: string;\n as: 'label';\n};\n\ntype SpanProps = CommonProps & {\n as: 'span';\n htmlFor?: undefined;\n};\n\ntype FormLabelProps = LabelProps | SpanProps;\n\nexport type FormInputLabelProps = {\n /**\n * Label to be shown for the input field\n */\n label?: string;\n /**\n * Desktop only prop. Default value on mobile will be `top`\n */\n labelPosition?: 'left' | 'top';\n /**\n * Displays `(optional)` when `optional` is passed or `*` when `required` is passed\n */\n necessityIndicator?: 'required' | 'optional' | 'none';\n};\n\nconst FormLabel = ({\n as = 'span',\n position = 'top',\n necessityIndicator = 'none',\n accessibilityText,\n children,\n id,\n htmlFor,\n}: FormLabelProps): React.ReactElement => {\n const { theme } = useTheme();\n const { matchedDeviceType } = useBreakpoint({ breakpoints: theme.breakpoints });\n const isDesktop = matchedDeviceType === 'desktop';\n const isReactNative = getPlatformType() === 'react-native';\n\n let necessityLabel: React.ReactNode = null;\n\n const isLabelLeftPositioned = position === 'left' && isDesktop;\n\n if (necessityIndicator === 'optional') {\n necessityLabel = (\n <Text variant=\"caption\" size=\"small\" color=\"surface.text.gray.muted\">\n (optional)\n </Text>\n );\n }\n if (necessityIndicator === 'required') {\n necessityLabel = (\n <Text\n variant=\"body\"\n size={isLabelLeftPositioned ? 'medium' : 'small'}\n color=\"feedback.text.negative.intense\"\n >\n *\n </Text>\n );\n }\n\n const computedAccessibilityNode = (\n <VisuallyHidden>\n {necessityIndicator !== 'none' && <Text>{necessityIndicator}</Text>}\n <Text>{accessibilityText}</Text>\n </VisuallyHidden>\n );\n\n const textNode = (\n <BaseBox\n gap={necessityIndicator === 'optional' ? 'spacing.2' : 'spacing.0'}\n display=\"flex\"\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n maxHeight={makeSpace(size[36])}\n >\n <Text\n variant=\"body\"\n size={isLabelLeftPositioned ? 'medium' : 'small'}\n color=\"surface.text.gray.subtle\"\n truncateAfterLines={2}\n weight=\"semibold\"\n wordBreak={isLabelLeftPositioned ? 'break-word' : undefined}\n >\n {children}\n </Text>\n {computedAccessibilityNode}\n {/* TODO: Hide from screen readers to prevent double announcement */}\n {necessityLabel}\n </BaseBox>\n );\n\n // What harm can it do?\n if (isReactNative) {\n return (\n <BaseBox marginRight=\"spacing.5\" marginBottom=\"spacing.2\">\n {textNode}\n </BaseBox>\n );\n }\n\n const Component = as;\n // only set 120px label when device is desktop\n const width = isLabelLeftPositioned && isDesktop ? makeSize(size[120]) : 'auto';\n\n return (\n <Component\n htmlFor={htmlFor}\n style={{\n width,\n flexShrink: 0,\n marginRight: makeSpace(theme.spacing[5]),\n }}\n id={id}\n {...metaAttribute({ name: MetaConstants.FormLabel })}\n >\n <BaseBox marginBottom={isLabelLeftPositioned ? 'spacing.0' : 'spacing.2'}>{textNode}</BaseBox>\n </Component>\n );\n};\n\nexport { FormLabel };\n"],"names":["FormLabel","_ref","_ref$as","as","_ref$position","position","_ref$necessityIndicat","necessityIndicator","accessibilityText","children","id","htmlFor","_useTheme","useTheme","theme","_useBreakpoint","useBreakpoint","breakpoints","matchedDeviceType","isDesktop","isReactNative","getPlatformType","necessityLabel","isLabelLeftPositioned","_jsx","Text","variant","size","color","computedAccessibilityNode","_jsxs","VisuallyHidden","textNode","BaseBox","gap","display","flexDirection","alignItems","flexWrap","maxHeight","makeSpace","truncateAfterLines","weight","wordBreak","undefined","marginRight","marginBottom","Component","width","makeSize","Object","assign","style","flexShrink","spacing","metaAttribute","name","MetaConstants"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA+CM,IAAAA,SAAS,CAAG,SAAZA,SAASA,CAAAC,IAAA,CAQ2B,CAAAC,IAAAA,OAAA,CAAAD,IAAA,CAPxCE,EAAE,CAAFA,EAAE,CAAAD,OAAA,GAAG,KAAA,CAAA,CAAA,MAAM,CAAAA,OAAA,CAAAE,aAAA,CAAAH,IAAA,CACXI,QAAQ,CAARA,QAAQ,CAAAD,aAAA,GAAG,KAAA,CAAA,CAAA,KAAK,CAAAA,aAAA,CAAAE,qBAAA,CAAAL,IAAA,CAChBM,kBAAkB,CAAlBA,kBAAkB,CAAAD,qBAAA,GAAG,KAAA,CAAA,CAAA,MAAM,CAAAA,qBAAA,CAC3B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C,EAAE,CAAEA,EAAG,CACH6C,CAAAA,aAAa,CAAC,CAAEC,IAAI,CAAEC,aAAa,CAACzD,SAAU,CAAC,CAAC,CAAA,CAAAS,QAAA,CAEpDe,GAAA,CAACS,OAAO,CAAA,CAACa,YAAY,CAAEvB,qBAAqB,CAAG,WAAW,CAAG,WAAY,CAAAd,QAAA,CAAEuB,QAAQ,CAAU,CAAC,CAAA,CACrF,CAAC,CAEhB;;;;"}
@@ -1,12 +1,14 @@
1
- import { BaseText } from '../../Typography/BaseText/BaseText.native.js';
1
+ import { Box } from '../../Box/Box.js';
2
+ import { Text } from '../../Typography/Text/Text.js';
2
3
  import 'react-native';
3
4
  import { getPlatformType } from '../../../utils/getPlatformType/getPlatformType.js';
4
5
  import '@babel/runtime/helpers/slicedToArray';
5
6
  import 'react';
7
+ import { castWebType } from '../../../utils/platform/castUtils.js';
6
8
  import '../../BladeProvider/useTheme.js';
7
9
  import { jsx } from 'react/jsx-runtime';
8
10
 
9
- var SelectorSupportText=function SelectorSupportText(_ref){var children=_ref.children,id=_ref.id;var isReactNative=getPlatformType()==='react-native';return jsx(BaseText,{id:id,as:isReactNative?undefined:'span',color:"surface.text.muted.lowContrast",fontSize:50,lineHeight:50,fontStyle:"italic",fontFamily:"text",children:children});};
11
+ var SelectorSupportText=function SelectorSupportText(_ref){var children=_ref.children,id=_ref.id,isNegative=_ref.isNegative;var isReactNative=getPlatformType()==='react-native';return jsx(Box,{id:id,display:isReactNative?undefined:castWebType('contents'),children:jsx(Text,{variant:"caption",size:"small",as:isReactNative?undefined:'span',color:isNegative?'feedback.text.negative.intense':'surface.text.gray.muted',children:children})});};
10
12
 
11
13
  export { SelectorSupportText };
12
14
  //# sourceMappingURL=SelectorSupportText.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectorSupportText.js","sources":["../../../../../../src/components/Form/Selector/SelectorSupportText.tsx"],"sourcesContent":["import { BaseText } from '~components/Typography/BaseText';\nimport { getPlatformType } from '~utils';\n\nconst SelectorSupportText = ({\n children,\n id,\n}: {\n children: React.ReactNode;\n id?: string;\n}): React.ReactElement => {\n const isReactNative = getPlatformType() === 'react-native';\n\n return (\n <BaseText\n id={id}\n as={isReactNative ? undefined : 'span'}\n color=\"surface.text.muted.lowContrast\"\n fontSize={50}\n lineHeight={50}\n fontStyle=\"italic\"\n fontFamily=\"text\"\n >\n {children}\n </BaseText>\n );\n};\n\nexport { SelectorSupportText };\n"],"names":["SelectorSupportText","_ref","children","id","isReactNative","getPlatformType","_jsx","BaseText","as","undefined","color","fontSize","lineHeight","fontStyle","fontFamily"],"mappings":";;;;;;;;AAGM,IAAAA,mBAAmB,CAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,CAMC,CAAA,IALxBC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CACRC,EAAE,CAAAF,IAAA,CAAFE,EAAE,CAKF,IAAMC,aAAa,CAAGC,eAAe,EAAE,GAAK,cAAc,CAE1D,OACEC,GAAA,CAACC,QAAQ,CACPJ,CAAAA,EAAE,CAAEA,EAAG,CACPK,EAAE,CAAEJ,aAAa,CAAGK,SAAS,CAAG,MAAO,CACvCC,KAAK,CAAC,gCAAgC,CACtCC,QAAQ,CAAE,EAAG,CACbC,UAAU,CAAE,EAAG,CACfC,SAAS,CAAC,QAAQ,CAClBC,UAAU,CAAC,MAAM,CAAAZ,QAAA,CAEhBA,QAAQ,CACD,CAAC,CAEf;;;;"}
1
+ {"version":3,"file":"SelectorSupportText.js","sources":["../../../../../../src/components/Form/Selector/SelectorSupportText.tsx"],"sourcesContent":["import { Box } from '~components/Box';\nimport { Text } from '~components/Typography/Text';\nimport { castWebType, getPlatformType } from '~utils';\n\nconst SelectorSupportText = ({\n children,\n id,\n isNegative,\n}: {\n children: React.ReactNode;\n id?: string;\n isNegative?: boolean;\n}): React.ReactElement => {\n const isReactNative = getPlatformType() === 'react-native';\n\n return (\n <Box id={id} display={isReactNative ? undefined : castWebType('contents')}>\n <Text\n variant=\"caption\"\n size=\"small\"\n as={isReactNative ? undefined : 'span'}\n color={isNegative ? 'feedback.text.negative.intense' : 'surface.text.gray.muted'}\n >\n {children}\n </Text>\n </Box>\n );\n};\n\nexport { SelectorSupportText };\n"],"names":["SelectorSupportText","_ref","children","id","isNegative","isReactNative","getPlatformType","_jsx","Box","display","undefined","castWebType","Text","variant","size","as","color"],"mappings":";;;;;;;;;;AAIM,IAAAA,mBAAmB,CAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,CAQC,CAAA,IAPxBC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CACRC,EAAE,CAAAF,IAAA,CAAFE,EAAE,CACFC,UAAU,CAAAH,IAAA,CAAVG,UAAU,CAMV,IAAMC,aAAa,CAAGC,eAAe,EAAE,GAAK,cAAc,CAE1D,OACEC,GAAA,CAACC,GAAG,CAAA,CAACL,EAAE,CAAEA,EAAG,CAACM,OAAO,CAAEJ,aAAa,CAAGK,SAAS,CAAGC,WAAW,CAAC,UAAU,CAAE,CAAAT,QAAA,CACxEK,GAAA,CAACK,IAAI,CAAA,CACHC,OAAO,CAAC,SAAS,CACjBC,IAAI,CAAC,OAAO,CACZC,EAAE,CAAEV,aAAa,CAAGK,SAAS,CAAG,MAAO,CACvCM,KAAK,CAAEZ,UAAU,CAAG,gCAAgC,CAAG,yBAA0B,CAAAF,QAAA,CAEhFA,QAAQ,CACL,CAAC,CACJ,CAAC,CAEV;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { BaseBox } from '../../Box/BaseBox/BaseBox.native.js';
2
- import { BaseText } from '../../Typography/BaseText/BaseText.native.js';
2
+ import { Text } from '../../Typography/Text/Text.js';
3
3
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
4
4
 
5
- var SelectorTitle=function SelectorTitle(_ref){var children=_ref.children,isDisabled=_ref.isDisabled,_ref$size=_ref.size,size=_ref$size===void 0?'medium':_ref$size;var lineHeight={small:50,medium:100};var fontSize={small:75,medium:100};return jsxs(Fragment,{children:[jsx(BaseBox,{marginLeft:"spacing.2"}),jsx(BaseText,{lineHeight:lineHeight[size],fontFamily:"text",fontWeight:"regular",fontSize:fontSize[size],color:isDisabled?'surface.text.placeholder.lowContrast':'surface.text.subtle.lowContrast',children:children})]});};
5
+ var SelectorTitle=function SelectorTitle(_ref){var children=_ref.children,isDisabled=_ref.isDisabled,_ref$size=_ref.size,size=_ref$size===void 0?'medium':_ref$size;return jsxs(Fragment,{children:[jsx(BaseBox,{marginLeft:"spacing.2"}),jsx(Text,{size:size,color:isDisabled?'surface.text.gray.disabled':'surface.text.gray.subtle',children:children})]});};
6
6
 
7
7
  export { SelectorTitle };
8
8
  //# sourceMappingURL=SelectorTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectorTitle.js","sources":["../../../../../../src/components/Form/Selector/SelectorTitle.tsx"],"sourcesContent":["import BaseBox from '~components/Box/BaseBox';\nimport { BaseText } from '~components/Typography/BaseText';\n\nconst SelectorTitle = ({\n children,\n isDisabled,\n size = 'medium',\n}: {\n children: React.ReactNode;\n isDisabled?: boolean;\n size: 'small' | 'medium';\n}): React.ReactElement => {\n const lineHeight = {\n small: 50,\n medium: 100,\n } as const;\n const fontSize = {\n small: 75,\n medium: 100,\n } as const;\n\n return (\n <>\n <BaseBox marginLeft=\"spacing.2\" />\n <BaseText\n lineHeight={lineHeight[size]}\n fontFamily=\"text\"\n fontWeight=\"regular\"\n fontSize={fontSize[size]}\n color={\n isDisabled ? 'surface.text.placeholder.lowContrast' : 'surface.text.subtle.lowContrast'\n }\n >\n {children}\n </BaseText>\n </>\n );\n};\n\nexport { SelectorTitle };\n"],"names":["SelectorTitle","_ref","children","isDisabled","_ref$size","size","lineHeight","small","medium","fontSize","_jsxs","_Fragment","_jsx","BaseBox","marginLeft","BaseText","fontFamily","fontWeight","color"],"mappings":";;;;AAGM,IAAAA,aAAa,CAAG,SAAhBA,aAAaA,CAAAC,IAAA,CAQO,CAPxB,IAAAC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CACRC,UAAU,CAAAF,IAAA,CAAVE,UAAU,CAAAC,SAAA,CAAAH,IAAA,CACVI,IAAI,CAAJA,IAAI,CAAAD,SAAA,UAAG,QAAQ,CAAAA,SAAA,CAMf,IAAME,UAAU,CAAG,CACjBC,KAAK,CAAE,EAAE,CACTC,MAAM,CAAE,GACV,CAAU,CACV,IAAMC,QAAQ,CAAG,CACfF,KAAK,CAAE,EAAE,CACTC,MAAM,CAAE,GACV,CAAU,CAEV,OACEE,IAAA,CAAAC,QAAA,EAAAT,QAAA,CAAA,CACEU,GAAA,CAACC,OAAO,CAAA,CAACC,UAAU,CAAC,WAAW,CAAE,CAAC,CAClCF,GAAA,CAACG,QAAQ,CAAA,CACPT,UAAU,CAAEA,UAAU,CAACD,IAAI,CAAE,CAC7BW,UAAU,CAAC,MAAM,CACjBC,UAAU,CAAC,SAAS,CACpBR,QAAQ,CAAEA,QAAQ,CAACJ,IAAI,CAAE,CACzBa,KAAK,CACHf,UAAU,CAAG,sCAAsC,CAAG,iCACvD,CAAAD,QAAA,CAEAA,QAAQ,CACD,CAAC,EACX,CAAC,CAEP;;;;"}
1
+ {"version":3,"file":"SelectorTitle.js","sources":["../../../../../../src/components/Form/Selector/SelectorTitle.tsx"],"sourcesContent":["import BaseBox from '~components/Box/BaseBox';\nimport { Text } from '~components/Typography/Text';\n\nconst SelectorTitle = ({\n children,\n isDisabled,\n size = 'medium',\n}: {\n children: React.ReactNode;\n isDisabled?: boolean;\n size: 'small' | 'medium';\n}): React.ReactElement => {\n return (\n <>\n <BaseBox marginLeft=\"spacing.2\" />\n <Text\n size={size}\n color={isDisabled ? 'surface.text.gray.disabled' : 'surface.text.gray.subtle'}\n >\n {children}\n </Text>\n </>\n );\n};\n\nexport { SelectorTitle };\n"],"names":["SelectorTitle","_ref","children","isDisabled","_ref$size","size","_jsxs","_Fragment","_jsx","BaseBox","marginLeft","Text","color"],"mappings":";;;;AAGM,IAAAA,aAAa,CAAG,SAAhBA,aAAaA,CAAAC,IAAA,CAQO,CAAA,IAPxBC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CACRC,UAAU,CAAAF,IAAA,CAAVE,UAAU,CAAAC,SAAA,CAAAH,IAAA,CACVI,IAAI,CAAJA,IAAI,CAAAD,SAAA,GAAG,KAAA,CAAA,CAAA,QAAQ,CAAAA,SAAA,CAMf,OACEE,IAAA,CAAAC,QAAA,CAAAL,CAAAA,QAAA,EACEM,GAAA,CAACC,OAAO,CAACC,CAAAA,UAAU,CAAC,WAAW,CAAE,CAAC,CAClCF,GAAA,CAACG,IAAI,CACHN,CAAAA,IAAI,CAAEA,IAAK,CACXO,KAAK,CAAET,UAAU,CAAG,4BAA4B,CAAG,0BAA2B,CAAAD,QAAA,CAE7EA,QAAQ,CACL,CAAC,CAAA,CACP,CAAC,CAEP;;;;"}
@@ -13,7 +13,7 @@ import '../../../tokens/global/typography.js';
13
13
  import '../../../tokens/global/motion.js';
14
14
  import { size } from '../../../tokens/global/size.js';
15
15
 
16
- var iconSize={xsmall:size[8],small:size[12],medium:size[16],large:size[20],xlarge:size[24],'2xlarge':size[32]};function useIconProps(_ref){var _ref$size=_ref.size,size=_ref$size===void 0?'medium':_ref$size,_ref$color=_ref.color,color=_ref$color===void 0?'surface.text.normal.lowContrast':_ref$color;var _useTheme=useTheme(),theme=_useTheme.theme;var height=makeSize(iconSize[size]);var width=makeSize(iconSize[size]);var iconColor=color==='currentColor'?'currentColor':getIn(theme.colors,color,'');return {height:height,width:width,iconColor:iconColor};}
16
+ var iconSize={xsmall:size[8],small:size[12],medium:size[16],large:size[20],xlarge:size[24],'2xlarge':size[32]};function useIconProps(_ref){var _ref$size=_ref.size,size=_ref$size===void 0?'medium':_ref$size,_ref$color=_ref.color,color=_ref$color===void 0?'surface.icon.gray.normal':_ref$color;var _useTheme=useTheme(),theme=_useTheme.theme;var height=makeSize(iconSize[size]);var width=makeSize(iconSize[size]);var iconColor=color==='currentColor'?'currentColor':getIn(theme.colors,color,'');return {height:height,width:width,iconColor:iconColor};}
17
17
 
18
18
  export { useIconProps as default };
19
19
  //# sourceMappingURL=useIconProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIconProps.js","sources":["../../../../../../src/components/Icons/useIconProps/useIconProps.tsx"],"sourcesContent":["import type { IconProps } from '..';\nimport get from '~utils/lodashButBetter/get';\nimport { useTheme } from '~components/BladeProvider';\nimport { size } from '~tokens/global';\nimport { makeSize } from '~utils/makeSize';\n\nconst iconSize = {\n xsmall: size[8],\n small: size[12],\n medium: size[16],\n large: size[20],\n xlarge: size[24],\n '2xlarge': size[32],\n} as const;\n\nfunction useIconProps({\n size = 'medium',\n color = 'surface.text.normal.lowContrast',\n}: IconProps): {\n height: `${typeof iconSize[keyof typeof iconSize]}px`;\n width: `${typeof iconSize[keyof typeof iconSize]}px`;\n iconColor: string;\n} {\n const { theme } = useTheme();\n const height = makeSize(iconSize[size]);\n const width = makeSize(iconSize[size]);\n const iconColor = color === 'currentColor' ? 'currentColor' : get(theme.colors, color, '');\n\n return { height, width, iconColor };\n}\n\nexport default useIconProps;\n"],"names":["iconSize","xsmall","size","small","medium","large","xlarge","useIconProps","_ref","_ref$size","_ref$color","color","_useTheme","useTheme","theme","height","makeSize","width","iconColor","get","colors"],"mappings":";;;;;;;;;;;;;;;AAMA,IAAMA,QAAQ,CAAG,CACfC,MAAM,CAAEC,IAAI,CAAC,CAAC,CAAC,CACfC,KAAK,CAAED,IAAI,CAAC,EAAE,CAAC,CACfE,MAAM,CAAEF,IAAI,CAAC,EAAE,CAAC,CAChBG,KAAK,CAAEH,IAAI,CAAC,EAAE,CAAC,CACfI,MAAM,CAAEJ,IAAI,CAAC,EAAE,CAAC,CAChB,SAAS,CAAEA,IAAI,CAAC,EAAE,CACpB,CAAU,CAEV,SAASK,YAAYA,CAAAC,IAAA,CAOnB,CAAAC,IAAAA,SAAA,CAAAD,IAAA,CANAN,IAAI,CAAJA,IAAI,CAAAO,SAAA,UAAG,QAAQ,CAAAA,SAAA,CAAAC,UAAA,CAAAF,IAAA,CACfG,KAAK,CAALA,KAAK,CAAAD,UAAA,UAAG,iCAAiC,CAAAA,UAAA,CAMzC,IAAAE,SAAA,CAAkBC,QAAQ,EAAE,CAApBC,KAAK,CAAAF,SAAA,CAALE,KAAK,CACb,IAAMC,MAAM,CAAGC,QAAQ,CAAChB,QAAQ,CAACE,IAAI,CAAC,CAAC,CACvC,IAAMe,KAAK,CAAGD,QAAQ,CAAChB,QAAQ,CAACE,IAAI,CAAC,CAAC,CACtC,IAAMgB,SAAS,CAAGP,KAAK,GAAK,cAAc,CAAG,cAAc,CAAGQ,KAAG,CAACL,KAAK,CAACM,MAAM,CAAET,KAAK,CAAE,EAAE,CAAC,CAE1F,OAAO,CAAEI,MAAM,CAANA,MAAM,CAAEE,KAAK,CAALA,KAAK,CAAEC,SAAS,CAATA,SAAU,CAAC,CACrC;;;;"}
1
+ {"version":3,"file":"useIconProps.js","sources":["../../../../../../src/components/Icons/useIconProps/useIconProps.tsx"],"sourcesContent":["import type { IconProps } from '..';\nimport get from '~utils/lodashButBetter/get';\nimport { useTheme } from '~components/BladeProvider';\nimport { size } from '~tokens/global';\nimport { makeSize } from '~utils/makeSize';\n\nconst iconSize = {\n xsmall: size[8],\n small: size[12],\n medium: size[16],\n large: size[20],\n xlarge: size[24],\n '2xlarge': size[32],\n} as const;\n\nfunction useIconProps({\n size = 'medium',\n color = 'surface.icon.gray.normal',\n}: IconProps): {\n height: `${typeof iconSize[keyof typeof iconSize]}px`;\n width: `${typeof iconSize[keyof typeof iconSize]}px`;\n iconColor: string;\n} {\n const { theme } = useTheme();\n const height = makeSize(iconSize[size]);\n const width = makeSize(iconSize[size]);\n const iconColor = color === 'currentColor' ? 'currentColor' : get(theme.colors, color, '');\n\n return { height, width, iconColor };\n}\n\nexport default useIconProps;\n"],"names":["iconSize","xsmall","size","small","medium","large","xlarge","useIconProps","_ref","_ref$size","_ref$color","color","_useTheme","useTheme","theme","height","makeSize","width","iconColor","get","colors"],"mappings":";;;;;;;;;;;;;;;AAMA,IAAMA,QAAQ,CAAG,CACfC,MAAM,CAAEC,IAAI,CAAC,CAAC,CAAC,CACfC,KAAK,CAAED,IAAI,CAAC,EAAE,CAAC,CACfE,MAAM,CAAEF,IAAI,CAAC,EAAE,CAAC,CAChBG,KAAK,CAAEH,IAAI,CAAC,EAAE,CAAC,CACfI,MAAM,CAAEJ,IAAI,CAAC,EAAE,CAAC,CAChB,SAAS,CAAEA,IAAI,CAAC,EAAE,CACpB,CAAU,CAEV,SAASK,YAAYA,CAAAC,IAAA,CAOnB,CAAAC,IAAAA,SAAA,CAAAD,IAAA,CANAN,IAAI,CAAJA,IAAI,CAAAO,SAAA,UAAG,QAAQ,CAAAA,SAAA,CAAAC,UAAA,CAAAF,IAAA,CACfG,KAAK,CAALA,KAAK,CAAAD,UAAA,UAAG,0BAA0B,CAAAA,UAAA,CAMlC,IAAAE,SAAA,CAAkBC,QAAQ,EAAE,CAApBC,KAAK,CAAAF,SAAA,CAALE,KAAK,CACb,IAAMC,MAAM,CAAGC,QAAQ,CAAChB,QAAQ,CAACE,IAAI,CAAC,CAAC,CACvC,IAAMe,KAAK,CAAGD,QAAQ,CAAChB,QAAQ,CAACE,IAAI,CAAC,CAAC,CACtC,IAAMgB,SAAS,CAAGP,KAAK,GAAK,cAAc,CAAG,cAAc,CAAGQ,KAAG,CAACL,KAAK,CAACM,MAAM,CAAET,KAAK,CAAE,EAAE,CAAC,CAE1F,OAAO,CAAEI,MAAM,CAANA,MAAM,CAAEE,KAAK,CAALA,KAAK,CAAEC,SAAS,CAATA,SAAU,CAAC,CACrC;;;;"}
@@ -25,7 +25,7 @@ import '../Typography/Code/Code.js';
25
25
  import { getStringFromReactText } from '../../utils/getStringChildren/getStringChildren.js';
26
26
  import { makeAccessible } from '../../utils/makeAccessible/makeAccessible.native.js';
27
27
 
28
- var _excluded=["accessibilityLabel","children","size","intent","testID"];var Indicator=function Indicator(_ref){var accessibilityLabel=_ref.accessibilityLabel,children=_ref.children,_ref$size=_ref.size,size$1=_ref$size===void 0?'medium':_ref$size,_ref$intent=_ref.intent,intent=_ref$intent===void 0?'neutral':_ref$intent,testID=_ref.testID,styledProps=_objectWithoutProperties(_ref,_excluded);var _useTheme=useTheme(),theme=_useTheme.theme;var childrenString=getStringFromReactText(children);var fillColor=theme.colors.feedback.background[intent].highContrast;var strokeColor=theme.colors.brand.gray.a100.highContrast;var getDimension=useCallback(function(){switch(size$1){case'small':return {svgSize:size[6],textSize:'small'};case'large':return {svgSize:size[10],textSize:'medium'};default:return {svgSize:size[8],textSize:'medium'};}},[size$1]);var dimensions=getDimension();var isWeb=!isReactNative();var a11yProps=makeAccessible(Object.assign({label:accessibilityLabel!=null?accessibilityLabel:childrenString},isWeb&&{role:'status'}));return jsx(BaseBox,Object.assign({display:isWeb?'inline-flex':'flex'},a11yProps,metaAttribute({name:MetaConstants.Indicator,testID:testID}),getStyledProps(styledProps),{children:jsxs(BaseBox,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxs(Svg,{width:String(dimensions.svgSize),height:String(dimensions.svgSize),viewBox:"0 0 10 10",fill:"none",children:[jsx(Circle,{cx:"5",cy:"5",r:"5",fill:fillColor}),jsx(Circle,{cx:"5",cy:"5",r:"4.75",stroke:strokeColor,strokeWidth:"0.5"})]}),jsx(BaseBox,{marginLeft:"spacing.2",children:jsx(Text,{textAlign:"left",contrast:"low",type:"subtle",size:dimensions.textSize,children:children})})]})}));};
28
+ var _excluded=["accessibilityLabel","children","size","color","testID"];var Indicator=function Indicator(_ref){var accessibilityLabel=_ref.accessibilityLabel,children=_ref.children,_ref$size=_ref.size,size$1=_ref$size===void 0?'medium':_ref$size,_ref$color=_ref.color,color=_ref$color===void 0?'neutral':_ref$color,testID=_ref.testID,styledProps=_objectWithoutProperties(_ref,_excluded);var _useTheme=useTheme(),theme=_useTheme.theme;var childrenString=getStringFromReactText(children);var fillColor=theme.colors.feedback.background[color].intense;var getDimension=useCallback(function(){switch(size$1){case'small':return {svgSize:size[6],textSize:'small'};case'large':return {svgSize:size[10],textSize:'medium'};default:return {svgSize:size[8],textSize:'medium'};}},[size$1]);var dimensions=getDimension();var isWeb=!isReactNative();var a11yProps=makeAccessible(Object.assign({label:accessibilityLabel!=null?accessibilityLabel:childrenString},isWeb&&{role:'status'}));return jsx(BaseBox,Object.assign({display:isWeb?'inline-flex':'flex'},a11yProps,metaAttribute({name:MetaConstants.Indicator,testID:testID}),getStyledProps(styledProps),{children:jsxs(BaseBox,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsx(Svg,{width:String(dimensions.svgSize),height:String(dimensions.svgSize),viewBox:"0 0 10 10",fill:"none",children:jsx(Circle,{cx:"5",cy:"5",r:"5",fill:fillColor})}),jsx(BaseBox,{marginLeft:"spacing.2",children:jsx(Text,{weight:"medium",color:"surface.text.gray.subtle",textAlign:"left",size:dimensions.textSize,children:children})})]})}));};
29
29
 
30
30
  export { Indicator };
31
31
  //# sourceMappingURL=Indicator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Indicator.js","sources":["../../../../../src/components/Indicator/Indicator.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { useCallback } from 'react';\nimport { useTheme } from '~components/BladeProvider';\nimport BaseBox from '~components/Box/BaseBox';\nimport Svg from '~components/Icons/_Svg';\nimport Circle from '~components/Icons/_Svg/Circle';\nimport { Text } from '~components/Typography';\nimport { size as sizeToken } from '~tokens/global';\nimport { getStringFromReactText } from '~src/utils/getStringChildren';\nimport type { StringChildrenType, TestID } from '~utils/types';\nimport type { Feedback } from '~tokens/theme/theme';\nimport { isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { makeAccessible } from '~utils/makeAccessible';\n\ntype IndicatorCommonProps = {\n /**\n * Sets the color tone\n *\n * @default neutral\n */\n intent?: Feedback;\n\n /**\n * Size of the indicator\n *\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n} & TestID &\n StyledPropsBlade;\n\ntype IndicatorWithoutA11yLabel = {\n /**\n * A text label to show alongside the indicator dot\n */\n children: StringChildrenType;\n\n /**\n * a11y label for screen readers\n */\n accessibilityLabel?: string;\n};\n\ntype IndicatorWithA11yLabel = {\n /**\n * a11y label for screen readers\n */\n accessibilityLabel: string;\n\n /**\n * A text label to show alongside the indicator dot\n */\n children?: StringChildrenType;\n};\n\ntype IndicatorProps = IndicatorCommonProps & (IndicatorWithA11yLabel | IndicatorWithoutA11yLabel);\n\ntype Dimensions = {\n svgSize: number;\n textSize: 'small' | 'medium';\n};\n\nconst Indicator = ({\n accessibilityLabel,\n children,\n size = 'medium',\n intent = 'neutral',\n testID,\n ...styledProps\n}: IndicatorProps): ReactElement => {\n const { theme } = useTheme();\n const childrenString = getStringFromReactText(children);\n\n const fillColor = theme.colors.feedback.background[intent].highContrast;\n const strokeColor = theme.colors.brand.gray.a100.highContrast;\n const getDimension = useCallback((): Dimensions => {\n switch (size) {\n case 'small':\n return { svgSize: sizeToken[6], textSize: 'small' };\n case 'large':\n return { svgSize: sizeToken[10], textSize: 'medium' };\n default:\n return { svgSize: sizeToken[8], textSize: 'medium' };\n }\n }, [size]);\n const dimensions = getDimension();\n\n const isWeb = !isReactNative();\n const a11yProps = makeAccessible({\n label: accessibilityLabel ?? childrenString,\n ...(isWeb && { role: 'status' }),\n });\n\n return (\n <BaseBox\n display={(isWeb ? 'inline-flex' : 'flex') as never}\n {...a11yProps}\n {...metaAttribute({ name: MetaConstants.Indicator, testID })}\n {...getStyledProps(styledProps)}\n >\n <BaseBox display=\"flex\" flexDirection=\"row\" alignItems=\"center\">\n <Svg\n width={String(dimensions.svgSize)}\n height={String(dimensions.svgSize)}\n viewBox=\"0 0 10 10\"\n fill=\"none\"\n >\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColor} />\n <Circle cx=\"5\" cy=\"5\" r=\"4.75\" stroke={strokeColor} strokeWidth=\"0.5\" />\n </Svg>\n <BaseBox marginLeft=\"spacing.2\">\n <Text textAlign=\"left\" contrast=\"low\" type=\"subtle\" size={dimensions.textSize}>\n {children}\n </Text>\n </BaseBox>\n </BaseBox>\n </BaseBox>\n );\n};\n\nexport type { IndicatorProps };\nexport { Indicator };\n"],"names":["Indicator","_ref","accessibilityLabel","children","_ref$size","size","_ref$intent","intent","testID","styledProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","childrenString","getStringFromReactText","fillColor","colors","feedback","background","highContrast","strokeColor","brand","gray","a100","getDimension","useCallback","svgSize","sizeToken","textSize","dimensions","isWeb","isReactNative","a11yProps","makeAccessible","Object","assign","label","role","_jsx","BaseBox","display","metaAttribute","name","MetaConstants","getStyledProps","_jsxs","flexDirection","alignItems","Svg","width","String","height","viewBox","fill","Circle","cx","cy","r","stroke","strokeWidth","marginLeft","Text","textAlign","contrast","type"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;yEAiEM,IAAAA,SAAS,CAAG,SAAZA,SAASA,CAAAC,IAAA,CAOqB,CAAA,IANlCC,kBAAkB,CAAAD,IAAA,CAAlBC,kBAAkB,CAClBC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CAAAC,SAAA,CAAAH,IAAA,CACRI,IAAI,CAAJA,MAAI,CAAAD,SAAA,GAAA,KAAA,CAAA,CAAG,QAAQ,CAAAA,SAAA,CAAAE,WAAA,CAAAL,IAAA,CACfM,MAAM,CAANA,MAAM,CAAAD,WAAA,GAAG,KAAA,CAAA,CAAA,SAAS,CAAAA,WAAA,CAClBE,MAAM,CAAAP,IAAA,CAANO,MAAM,CACHC,WAAW,CAAAC,wBAAA,CAAAT,IAAA,CAAAU,SAAA,CAEd,CAAA,IAAAC,SAAA,CAAkBC,QAAQ,EAAE,CAApBC,KAAK,CAAAF,SAAA,CAALE,KAAK,CACb,IAAMC,cAAc,CAAGC,sBAAsB,CAACb,QAAQ,CAAC,CAEvD,IAAMc,SAAS,CAAGH,KAAK,CAACI,MAAM,CAACC,QAAQ,CAACC,UAAU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AAQ,CAAA9C,QAAA,CAAA,CAC7D4C,IAAA,CAACG,GAAG,CAAA,CACFC,KAAK,CAAEC,MAAM,CAACrB,UAAU,CAACH,OAAO,CAAE,CAClCyB,MAAM,CAAED,MAAM,CAACrB,UAAU,CAACH,OAAO,CAAE,CACnC0B,OAAO,CAAC,WAAW,CACnBC,IAAI,CAAC,MAAM,CAAApD,QAAA,CAAA,CAEXqC,GAAA,CAACgB,MAAM,CAAA,CAACC,EAAE,CAAC,GAAG,CAACC,EAAE,CAAC,GAAG,CAACC,CAAC,CAAC,GAAG,CAACJ,IAAI,CAAEtC,SAAU,CAAE,CAAC,CAC/CuB,GAAA,CAACgB,MAAM,CAAA,CAACC,EAAE,CAAC,GAAG,CAACC,EAAE,CAAC,GAAG,CAACC,CAAC,CAAC,MAAM,CAACC,MAAM,CAAEtC,WAAY,CAACuC,WAAW,CAAC,KAAK,CAAE,CAAC,CACrE,CAAA,CAAC,CACNrB,GAAA,CAACC,OAAO,EAACqB,UAAU,CAAC,WAAW,CAAA3D,QAAA,CAC7BqC,GAAA,CAACuB,IAAI,CAAA,CAACC,SAAS,CAAC,MAAM,CAACC,QAAQ,CAAC,KAAK,CAACC,IAAI,CAAC,QAAQ,CAAC7D,IAAI,CAAE0B,UAAU,CAACD,QAAS,CAAA3B,QAAA,CAC3EA,QAAQ,CACL,CAAC,CACA,CAAC,CACH,CAAA,CAAC,CACH,CAAA,CAAC,CAEd;;;;"}
1
+ {"version":3,"file":"Indicator.js","sources":["../../../../../src/components/Indicator/Indicator.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { useCallback } from 'react';\nimport { useTheme } from '~components/BladeProvider';\nimport BaseBox from '~components/Box/BaseBox';\nimport Svg from '~components/Icons/_Svg';\nimport Circle from '~components/Icons/_Svg/Circle';\nimport { Text } from '~components/Typography';\nimport { size as sizeToken } from '~tokens/global';\nimport { getStringFromReactText } from '~src/utils/getStringChildren';\nimport type { StringChildrenType, TestID } from '~utils/types';\nimport type { FeedbackColors } from '~tokens/theme/theme';\nimport { isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { makeAccessible } from '~utils/makeAccessible';\n\ntype IndicatorCommonProps = {\n /**\n * Sets the color tone\n *\n * @default neutral\n */\n color?: FeedbackColors;\n\n /**\n * Size of the indicator\n *\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n} & TestID &\n StyledPropsBlade;\n\ntype IndicatorWithoutA11yLabel = {\n /**\n * A text label to show alongside the indicator dot\n */\n children: StringChildrenType;\n\n /**\n * a11y label for screen readers\n */\n accessibilityLabel?: string;\n};\n\ntype IndicatorWithA11yLabel = {\n /**\n * a11y label for screen readers\n */\n accessibilityLabel: string;\n\n /**\n * A text label to show alongside the indicator dot\n */\n children?: StringChildrenType;\n};\n\ntype IndicatorProps = IndicatorCommonProps & (IndicatorWithA11yLabel | IndicatorWithoutA11yLabel);\n\ntype Dimensions = {\n svgSize: number;\n textSize: 'small' | 'medium';\n};\n\nconst Indicator = ({\n accessibilityLabel,\n children,\n size = 'medium',\n color = 'neutral',\n testID,\n ...styledProps\n}: IndicatorProps): ReactElement => {\n const { theme } = useTheme();\n const childrenString = getStringFromReactText(children);\n\n const fillColor = theme.colors.feedback.background[color].intense;\n const getDimension = useCallback((): Dimensions => {\n switch (size) {\n case 'small':\n return { svgSize: sizeToken[6], textSize: 'small' };\n case 'large':\n return { svgSize: sizeToken[10], textSize: 'medium' };\n default:\n return { svgSize: sizeToken[8], textSize: 'medium' };\n }\n }, [size]);\n const dimensions = getDimension();\n\n const isWeb = !isReactNative();\n const a11yProps = makeAccessible({\n label: accessibilityLabel ?? childrenString,\n ...(isWeb && { role: 'status' }),\n });\n\n return (\n <BaseBox\n display={(isWeb ? 'inline-flex' : 'flex') as never}\n {...a11yProps}\n {...metaAttribute({ name: MetaConstants.Indicator, testID })}\n {...getStyledProps(styledProps)}\n >\n <BaseBox display=\"flex\" flexDirection=\"row\" alignItems=\"center\">\n <Svg\n width={String(dimensions.svgSize)}\n height={String(dimensions.svgSize)}\n viewBox=\"0 0 10 10\"\n fill=\"none\"\n >\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColor} />\n </Svg>\n <BaseBox marginLeft=\"spacing.2\">\n <Text\n weight=\"medium\"\n color=\"surface.text.gray.subtle\"\n textAlign=\"left\"\n size={dimensions.textSize}\n >\n {children}\n </Text>\n </BaseBox>\n </BaseBox>\n </BaseBox>\n );\n};\n\nexport type { IndicatorProps };\nexport { Indicator };\n"],"names":["Indicator","_ref","accessibilityLabel","children","_ref$size","size","_ref$color","color","testID","styledProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","childrenString","getStringFromReactText","fillColor","colors","feedback","background","intense","getDimension","useCallback","svgSize","sizeToken","textSize","dimensions","isWeb","isReactNative","a11yProps","makeAccessible","Object","assign","label","role","_jsx","BaseBox","display","metaAttribute","name","MetaConstants","getStyledProps","_jsxs","flexDirection","alignItems","Svg","width","String","height","viewBox","fill","Circle","cx","cy","r","marginLeft","Text","weight","textAlign"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;wEAiEM,IAAAA,SAAS,CAAG,SAAZA,SAASA,CAAAC,IAAA,CAOqB,CAAA,IANlCC,kBAAkB,CAAAD,IAAA,CAAlBC,kBAAkB,CAClBC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CAAAC,SAAA,CAAAH,IAAA,CACRI,IAAI,CAAJA,MAAI,CAAAD,SAAA,GAAG,KAAA,CAAA,CAAA,QAAQ,CAAAA,SAAA,CAAAE,UAAA,CAAAL,IAAA,CACfM,KAAK,CAALA,KAAK,CAAAD,UAAA,GAAG,KAAA,CAAA,CAAA,SAAS,CAAAA,UAAA,CACjBE,MAAM,CAAAP,IAAA,CAANO,MAAM,CACHC,WAAW,CAAAC,wBAAA,CAAAT,IAAA,CAAAU,SAAA,CAAA,CAEd,IAAAC,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A,CAACN,OAAO,CAAA,CAACC,OAAO,CAAC,MAAM,CAACM,aAAa,CAAC,KAAK,CAACC,UAAU,CAAC,QAAQ,CAAA1C,QAAA,CAC7DiC,CAAAA,GAAA,CAACU,GAAG,CAAA,CACFC,KAAK,CAAEC,MAAM,CAACrB,UAAU,CAACH,OAAO,CAAE,CAClCyB,MAAM,CAAED,MAAM,CAACrB,UAAU,CAACH,OAAO,CAAE,CACnC0B,OAAO,CAAC,WAAW,CACnBC,IAAI,CAAC,MAAM,CAAAhD,QAAA,CAEXiC,GAAA,CAACgB,MAAM,CAAA,CAACC,EAAE,CAAC,GAAG,CAACC,EAAE,CAAC,GAAG,CAACC,CAAC,CAAC,GAAG,CAACJ,IAAI,CAAElC,SAAU,CAAE,CAAC,CAC5C,CAAC,CACNmB,GAAA,CAACC,OAAO,CAACmB,CAAAA,UAAU,CAAC,WAAW,CAAArD,QAAA,CAC7BiC,GAAA,CAACqB,IAAI,CAAA,CACHC,MAAM,CAAC,QAAQ,CACfnD,KAAK,CAAC,0BAA0B,CAChCoD,SAAS,CAAC,MAAM,CAChBtD,IAAI,CAAEsB,UAAU,CAACD,QAAS,CAAAvB,QAAA,CAEzBA,QAAQ,CACL,CAAC,CACA,CAAC,CAAA,CACH,CAAC,CAAA,CACH,CAAC,CAEd;;;;"}
@@ -13,7 +13,7 @@ import 'react-native-gesture-handler';
13
13
  import '../../BottomSheet/BottomSheetStack.js';
14
14
  import { jsx } from 'react/jsx-runtime';
15
15
 
16
- var _excluded=["showAllTags","setShowAllTagsWithAnimation","children","maxTagRows","isDropdownTrigger"];var StyledBaseInputWrapper=styled(Animated.View)(function(props){return Object.assign({},getInputBackgroundAndBorderStyles({theme:props.theme,isFocused:props.currentInteraction==='active',isDisabled:props.isDisabled,validationState:props.validationState,isTextArea:props.isTextArea,isDropdownTrigger:props.isDropdownTrigger}));});var getMaxHeight=function getMaxHeight(_ref){var maxTagRows=_ref.maxTagRows,showAllTags=_ref.showAllTags;if(maxTagRows==='single'){return BASEINPUT_WRAPPER_MIN_HEIGHT;}if(maxTagRows==='multiple'){return BASEINPUT_WRAPPER_MAX_HEIGHT;}return showAllTags?BASEINPUT_WRAPPER_MAX_HEIGHT:BASEINPUT_WRAPPER_MIN_HEIGHT;};var _AnimatedBaseInputWrapper=function _AnimatedBaseInputWrapper(_ref2,ref){var showAllTags=_ref2.showAllTags,setShowAllTagsWithAnimation=_ref2.setShowAllTagsWithAnimation,children=_ref2.children,maxTagRows=_ref2.maxTagRows,isDropdownTrigger=_ref2.isDropdownTrigger,rest=_objectWithoutProperties(_ref2,_excluded);var _useTheme=useTheme(),theme=_useTheme.theme;var sharedHeight=useSharedValue(BASEINPUT_WRAPPER_MIN_HEIGHT);React__default.useEffect(function(){if(!isDropdownTrigger){return;}sharedHeight.value=withTiming(showAllTags?BASEINPUT_WRAPPER_MAX_HEIGHT:BASEINPUT_WRAPPER_MIN_HEIGHT,{duration:theme.motion.duration.xquick,easing:castNativeType(theme.motion.easing.exit.effective)},function(isComplete){if(isComplete&&!showAllTags){runOnJS(setShowAllTagsWithAnimation)(false);}});},[showAllTags]);var animatedStyle=useAnimatedStyle(function(){return {maxHeight:sharedHeight.value};});var animatedStyleObject=maxTagRows==='expandable'?animatedStyle:{};var maxHeightStyleObject={maxHeight:getMaxHeight({showAllTags:showAllTags,maxTagRows:maxTagRows})};return jsx(StyledBaseInputWrapper,Object.assign({ref:ref,style:isDropdownTrigger?Object.assign({},maxHeightStyleObject,animatedStyleObject):{},isDropdownTrigger:isDropdownTrigger},rest,{children:children}));};var AnimatedBaseInputWrapper=React__default.forwardRef(_AnimatedBaseInputWrapper);
16
+ var _excluded=["showAllTags","setShowAllTagsWithAnimation","children","maxTagRows","isDropdownTrigger"];var StyledBaseInputWrapper=styled(Animated.View)(function(props){return Object.assign({},getInputBackgroundAndBorderStyles({theme:props.theme,isFocused:props.currentInteraction==='focus',isDisabled:props.isDisabled,validationState:props.validationState,isTextArea:props.isTextArea,isDropdownTrigger:props.isDropdownTrigger}));});var getMaxHeight=function getMaxHeight(_ref){var maxTagRows=_ref.maxTagRows,showAllTags=_ref.showAllTags;if(maxTagRows==='single'){return BASEINPUT_WRAPPER_MIN_HEIGHT;}if(maxTagRows==='multiple'){return BASEINPUT_WRAPPER_MAX_HEIGHT;}return showAllTags?BASEINPUT_WRAPPER_MAX_HEIGHT:BASEINPUT_WRAPPER_MIN_HEIGHT;};var _AnimatedBaseInputWrapper=function _AnimatedBaseInputWrapper(_ref2,ref){var showAllTags=_ref2.showAllTags,setShowAllTagsWithAnimation=_ref2.setShowAllTagsWithAnimation,children=_ref2.children,maxTagRows=_ref2.maxTagRows,isDropdownTrigger=_ref2.isDropdownTrigger,rest=_objectWithoutProperties(_ref2,_excluded);var _useTheme=useTheme(),theme=_useTheme.theme;var sharedHeight=useSharedValue(BASEINPUT_WRAPPER_MIN_HEIGHT);React__default.useEffect(function(){if(!isDropdownTrigger){return;}sharedHeight.value=withTiming(showAllTags?BASEINPUT_WRAPPER_MAX_HEIGHT:BASEINPUT_WRAPPER_MIN_HEIGHT,{duration:theme.motion.duration.xquick,easing:castNativeType(theme.motion.easing.exit.effective)},function(isComplete){if(isComplete&&!showAllTags){runOnJS(setShowAllTagsWithAnimation)(false);}});},[showAllTags]);var animatedStyle=useAnimatedStyle(function(){return {maxHeight:sharedHeight.value};});var animatedStyleObject=maxTagRows==='expandable'?animatedStyle:{};var maxHeightStyleObject={maxHeight:getMaxHeight({showAllTags:showAllTags,maxTagRows:maxTagRows})};return jsx(StyledBaseInputWrapper,Object.assign({ref:ref,style:isDropdownTrigger?Object.assign({},maxHeightStyleObject,animatedStyleObject):{},isDropdownTrigger:isDropdownTrigger},rest,{children:children}));};var AnimatedBaseInputWrapper=React__default.forwardRef(_AnimatedBaseInputWrapper);
17
17
 
18
18
  export { AnimatedBaseInputWrapper };
19
19
  //# sourceMappingURL=AnimatedBaseInputWrapper.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedBaseInputWrapper.native.js","sources":["../../../../../../src/components/Input/BaseInput/AnimatedBaseInputWrapper.native.tsx"],"sourcesContent":["import React from 'react';\nimport Animated, {\n runOnJS,\n useAnimatedStyle,\n useSharedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport styled from 'styled-components';\nimport type { BaseInputWrapperProps } from './types';\nimport { getInputBackgroundAndBorderStyles } from './baseInputStyles';\nimport { BASEINPUT_WRAPPER_MAX_HEIGHT, BASEINPUT_WRAPPER_MIN_HEIGHT } from './baseInputConfig';\nimport { castNativeType } from '~utils';\nimport { useTheme } from '~components/BladeProvider';\n\nconst StyledBaseInputWrapper = styled(Animated.View)<BaseInputWrapperProps>((props) => ({\n ...getInputBackgroundAndBorderStyles({\n theme: props.theme,\n isFocused: props.currentInteraction === 'active',\n isDisabled: props.isDisabled,\n validationState: props.validationState,\n isTextArea: props.isTextArea,\n isDropdownTrigger: props.isDropdownTrigger,\n }),\n}));\n\nconst getMaxHeight = ({\n maxTagRows,\n showAllTags,\n}: Pick<BaseInputWrapperProps, 'maxTagRows' | 'showAllTags'>): number => {\n if (maxTagRows === 'single') {\n return BASEINPUT_WRAPPER_MIN_HEIGHT;\n }\n\n if (maxTagRows === 'multiple') {\n return BASEINPUT_WRAPPER_MAX_HEIGHT;\n }\n\n // In expandable, max-height depends on the state\n return showAllTags ? BASEINPUT_WRAPPER_MAX_HEIGHT : BASEINPUT_WRAPPER_MIN_HEIGHT;\n};\n\nconst _AnimatedBaseInputWrapper: React.ForwardRefRenderFunction<\n HTMLDivElement,\n BaseInputWrapperProps & {\n showAllTags?: boolean;\n setShowAllTagsWithAnimation: (showAllTagsWithAnimation: boolean) => void;\n }\n> = (\n { showAllTags, setShowAllTagsWithAnimation, children, maxTagRows, isDropdownTrigger, ...rest },\n ref,\n): React.ReactElement => {\n const { theme } = useTheme();\n const sharedHeight = useSharedValue(BASEINPUT_WRAPPER_MIN_HEIGHT); // Initial max-width value\n\n React.useEffect(() => {\n if (!isDropdownTrigger) {\n return;\n }\n\n sharedHeight.value = withTiming(\n showAllTags ? BASEINPUT_WRAPPER_MAX_HEIGHT : BASEINPUT_WRAPPER_MIN_HEIGHT,\n {\n duration: theme.motion.duration.xquick,\n easing: castNativeType(theme.motion.easing.exit.effective),\n },\n (isComplete) => {\n if (isComplete && !showAllTags) {\n runOnJS(setShowAllTagsWithAnimation)(false);\n }\n },\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [showAllTags]);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n maxHeight: sharedHeight.value,\n };\n });\n\n const animatedStyleObject = maxTagRows === 'expandable' ? animatedStyle : {};\n const maxHeightStyleObject = {\n maxHeight: getMaxHeight({\n showAllTags,\n maxTagRows,\n }),\n };\n\n return (\n <StyledBaseInputWrapper\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref={ref as any}\n style={\n isDropdownTrigger\n ? {\n ...maxHeightStyleObject,\n ...animatedStyleObject,\n }\n : {}\n }\n isDropdownTrigger={isDropdownTrigger}\n {...rest}\n >\n {children}\n </StyledBaseInputWrapper>\n );\n};\n\nconst AnimatedBaseInputWrapper = React.forwardRef(_AnimatedBaseInputWrapper);\n\nexport { AnimatedBaseInputWrapper };\n"],"names":["StyledBaseInputWrapper","styled","Animated","View","props","Object","assign","getInputBackgroundAndBorderStyles","theme","isFocused","currentInteraction","isDisabled","validationState","isTextArea","isDropdownTrigger","getMaxHeight","_ref","maxTagRows","showAllTags","BASEINPUT_WRAPPER_MIN_HEIGHT","BASEINPUT_WRAPPER_MAX_HEIGHT","_AnimatedBaseInputWrapper","_ref2","ref","setShowAllTagsWithAnimation","children","rest","_objectWithoutProperties","_excluded","_useTheme","useTheme","sharedHeight","useSharedValue","React","useEffect","value","withTiming","duration","motion","xquick","easing","castNativeType","exit","effective","isComplete","runOnJS","animatedStyle","useAnimatedStyle","maxHeight","animatedStyleObject","maxHeightStyleObject","_jsx","style","AnimatedBaseInputWrapper","forwardRef"],"mappings":";;;;;;;;;;;;;;;wGAcA,IAAMA,s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,wBAAwB,CAAGpB,cAAK,CAACqB,UAAU,CAACjC,yBAAyB;;;;"}
1
+ {"version":3,"file":"AnimatedBaseInputWrapper.native.js","sources":["../../../../../../src/components/Input/BaseInput/AnimatedBaseInputWrapper.native.tsx"],"sourcesContent":["import React from 'react';\nimport Animated, {\n runOnJS,\n useAnimatedStyle,\n useSharedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport styled from 'styled-components';\nimport type { BaseInputWrapperProps } from './types';\nimport { getInputBackgroundAndBorderStyles } from './baseInputStyles';\nimport { BASEINPUT_WRAPPER_MAX_HEIGHT, BASEINPUT_WRAPPER_MIN_HEIGHT } from './baseInputConfig';\nimport { castNativeType } from '~utils';\nimport { useTheme } from '~components/BladeProvider';\n\nconst StyledBaseInputWrapper = styled(Animated.View)<BaseInputWrapperProps>((props) => ({\n ...getInputBackgroundAndBorderStyles({\n theme: props.theme,\n isFocused: props.currentInteraction === 'focus',\n isDisabled: props.isDisabled,\n validationState: props.validationState,\n isTextArea: props.isTextArea,\n isDropdownTrigger: props.isDropdownTrigger,\n }),\n}));\n\nconst getMaxHeight = ({\n maxTagRows,\n showAllTags,\n}: Pick<BaseInputWrapperProps, 'maxTagRows' | 'showAllTags'>): number => {\n if (maxTagRows === 'single') {\n return BASEINPUT_WRAPPER_MIN_HEIGHT;\n }\n\n if (maxTagRows === 'multiple') {\n return BASEINPUT_WRAPPER_MAX_HEIGHT;\n }\n\n // In expandable, max-height depends on the state\n return showAllTags ? BASEINPUT_WRAPPER_MAX_HEIGHT : BASEINPUT_WRAPPER_MIN_HEIGHT;\n};\n\nconst _AnimatedBaseInputWrapper: React.ForwardRefRenderFunction<\n HTMLDivElement,\n BaseInputWrapperProps & {\n showAllTags?: boolean;\n setShowAllTagsWithAnimation: (showAllTagsWithAnimation: boolean) => void;\n }\n> = (\n { showAllTags, setShowAllTagsWithAnimation, children, maxTagRows, isDropdownTrigger, ...rest },\n ref,\n): React.ReactElement => {\n const { theme } = useTheme();\n const sharedHeight = useSharedValue(BASEINPUT_WRAPPER_MIN_HEIGHT); // Initial max-width value\n\n React.useEffect(() => {\n if (!isDropdownTrigger) {\n return;\n }\n\n sharedHeight.value = withTiming(\n showAllTags ? BASEINPUT_WRAPPER_MAX_HEIGHT : BASEINPUT_WRAPPER_MIN_HEIGHT,\n {\n duration: theme.motion.duration.xquick,\n easing: castNativeType(theme.motion.easing.exit.effective),\n },\n (isComplete) => {\n if (isComplete && !showAllTags) {\n runOnJS(setShowAllTagsWithAnimation)(false);\n }\n },\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [showAllTags]);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n maxHeight: sharedHeight.value,\n };\n });\n\n const animatedStyleObject = maxTagRows === 'expandable' ? animatedStyle : {};\n const maxHeightStyleObject = {\n maxHeight: getMaxHeight({\n showAllTags,\n maxTagRows,\n }),\n };\n\n return (\n <StyledBaseInputWrapper\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref={ref as any}\n style={\n isDropdownTrigger\n ? {\n ...maxHeightStyleObject,\n ...animatedStyleObject,\n }\n : {}\n }\n isDropdownTrigger={isDropdownTrigger}\n {...rest}\n >\n {children}\n </StyledBaseInputWrapper>\n );\n};\n\nconst AnimatedBaseInputWrapper = React.forwardRef(_AnimatedBaseInputWrapper);\n\nexport { AnimatedBaseInputWrapper };\n"],"names":["StyledBaseInputWrapper","styled","Animated","View","props","Object","assign","getInputBackgroundAndBorderStyles","theme","isFocused","currentInteraction","isDisabled","validationState","isTextArea","isDropdownTrigger","getMaxHeight","_ref","maxTagRows","showAllTags","BASEINPUT_WRAPPER_MIN_HEIGHT","BASEINPUT_WRAPPER_MAX_HEIGHT","_AnimatedBaseInputWrapper","_ref2","ref","setShowAllTagsWithAnimation","children","rest","_objectWithoutProperties","_excluded","_useTheme","useTheme","sharedHeight","useSharedValue","React","useEffect","value","withTiming","duration","motion","xquick","easing","castNativeType","exit","effective","isComplete","runOnJS","animatedStyle","useAnimatedStyle","maxH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AkB,CAAA,CACjCY,IAAI,CAAAD,CAAAA,QAAA,CAEPA,QAAQ,CAAA,CACa,CAAC,CAE7B,CAAC,CAEK,IAAA4B,wBAAwB,CAAGpB,cAAK,CAACqB,UAAU,CAACjC,yBAAyB;;;;"}
@@ -10,7 +10,7 @@ import { makeBorderSize } from '../../../utils/makeBorderSize/makeBorderSize.js'
10
10
  import '../../BottomSheet/BottomSheetStack.js';
11
11
  import { jsx } from 'react/jsx-runtime';
12
12
 
13
- var BaseInputStyledAnimatedBorder=styled(Animated.View)(function(_ref){var theme=_ref.theme;return {position:'absolute',bottom:0,left:0,right:0,opacity:1,backgroundColor:theme.colors.brand.primary[500],height:makeBorderSize(theme.border.width.thin)};});var BaseInputAnimatedBorder=function BaseInputAnimatedBorder(_ref2){var currentInteraction=_ref2.currentInteraction,validationState=_ref2.validationState;var _useTheme=useTheme(),theme=_useTheme.theme;var borderAnimationEasing=theme.motion.easing.standard.effective;var widthTrigger=useSharedValue(0);var opacityTrigger=useSharedValue(1);var animatedStyle=useAnimatedStyle(function(){return {width:`${interpolate(widthTrigger.value,[0,1],[0,100])}%`,opacity:interpolate(opacityTrigger.value,[0,1],[0,1])};});useEffect(function(){if(currentInteraction=='active'&&validationState!=='error'&&validationState!=='success'){widthTrigger.value=0;opacityTrigger.value=1;widthTrigger.value=withTiming(1,{duration:theme.motion.duration.moderate,easing:borderAnimationEasing});}else if(currentInteraction==='default'){opacityTrigger.value=withTiming(0,{duration:theme.motion.duration.xquick,easing:borderAnimationEasing});}},[currentInteraction,opacityTrigger,widthTrigger,theme.motion.duration,borderAnimationEasing,validationState]);return jsx(BaseInputStyledAnimatedBorder,{style:animatedStyle});};
13
+ var BaseInputStyledAnimatedBorder=styled(Animated.View)(function(_ref){var theme=_ref.theme;return {position:'absolute',bottom:0,left:0,right:0,opacity:1,backgroundColor:theme.colors.interactive.background.primary.default,height:makeBorderSize(theme.border.width.thin)};});var BaseInputAnimatedBorder=function BaseInputAnimatedBorder(_ref2){var currentInteraction=_ref2.currentInteraction,validationState=_ref2.validationState;var _useTheme=useTheme(),theme=_useTheme.theme;var borderAnimationEasing=theme.motion.easing.standard.effective;var widthTrigger=useSharedValue(0);var opacityTrigger=useSharedValue(1);var animatedStyle=useAnimatedStyle(function(){return {width:`${interpolate(widthTrigger.value,[0,1],[0,100])}%`,opacity:interpolate(opacityTrigger.value,[0,1],[0,1])};});useEffect(function(){if(currentInteraction=='focus'&&validationState!=='error'&&validationState!=='success'){widthTrigger.value=0;opacityTrigger.value=1;widthTrigger.value=withTiming(1,{duration:theme.motion.duration.moderate,easing:borderAnimationEasing});}else if(currentInteraction==='default'){opacityTrigger.value=withTiming(0,{duration:theme.motion.duration.xquick,easing:borderAnimationEasing});}},[currentInteraction,opacityTrigger,widthTrigger,theme.motion.duration,borderAnimationEasing,validationState]);return jsx(BaseInputStyledAnimatedBorder,{style:animatedStyle});};
14
14
 
15
15
  export { BaseInputAnimatedBorder };
16
16
  //# sourceMappingURL=BaseInputAnimatedBorder.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseInputAnimatedBorder.native.js","sources":["../../../../../../src/components/Input/BaseInput/BaseInputAnimatedBorder.native.tsx"],"sourcesContent":["import styled from 'styled-components/native';\nimport type { EasingFn } from 'react-native-reanimated';\nimport Animated, {\n useAnimatedStyle,\n useSharedValue,\n interpolate,\n withTiming,\n} from 'react-native-reanimated';\nimport type { ReactElement } from 'react';\nimport { useEffect } from 'react';\nimport type { BaseInputProps } from './BaseInput';\nimport { useTheme } from '~components/BladeProvider';\nimport type { ActionStates } from '~tokens/theme/theme';\nimport { makeBorderSize } from '~utils/makeBorderSize';\n\nconst BaseInputStyledAnimatedBorder = styled(Animated.View)(({ theme }) => ({\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n opacity: 1,\n backgroundColor: theme.colors.brand.primary[500],\n height: makeBorderSize(theme.border.width.thin),\n}));\n\nexport const BaseInputAnimatedBorder = ({\n currentInteraction,\n validationState,\n}: {\n currentInteraction: keyof ActionStates;\n validationState: BaseInputProps['validationState'];\n}): ReactElement => {\n const { theme } = useTheme();\n const borderAnimationEasing = (theme.motion.easing.standard.effective as unknown) as EasingFn;\n\n const widthTrigger = useSharedValue(0);\n const opacityTrigger = useSharedValue(1);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n width: `${interpolate(widthTrigger.value, [0, 1], [0, 100])}%`,\n opacity: interpolate(opacityTrigger.value, [0, 1], [0, 1]),\n };\n });\n\n useEffect(() => {\n if (\n currentInteraction == 'active' &&\n validationState !== 'error' &&\n validationState !== 'success'\n ) {\n widthTrigger.value = 0;\n opacityTrigger.value = 1;\n widthTrigger.value = withTiming(1, {\n duration: theme.motion.duration.moderate,\n easing: borderAnimationEasing,\n });\n } else if (currentInteraction === 'default') {\n opacityTrigger.value = withTiming(0, {\n duration: theme.motion.duration.xquick,\n easing: borderAnimationEasing,\n });\n }\n }, [\n currentInteraction,\n opacityTrigger,\n widthTrigger,\n theme.motion.duration,\n borderAnimationEasing,\n validationState,\n ]);\n\n return <BaseInputStyledAnimatedBorder style={animatedStyle} />;\n};\n"],"names":["BaseInputStyledAnimatedBorder","styled","Animated","View","_ref","theme","position","bottom","left","right","opacity","backgroundColor","colors","brand","primary","height","makeBorderSize","border","width","thin","BaseInputAnimatedBorder","_ref2","currentInteraction","validationState","_useTheme","useTheme","borderAnimationEasing","motion","easing","standard","effective","widthTrigger","useSharedValue","opacityTrigger","animatedStyle","useAnimatedStyle","interpolate","value","useEffect","withTiming","duration","moderate","xquick","_jsx","style"],"mappings":";;;;;;;;;;;;AAeA,IAAMA,6BAA6B,CAAGC,MAAM,CAACC,QAAQ,CAACC,IAAI,CAAC,CAAC,SAAAC,IAAA,MAAGC,KAAK,CAAAD,IAAA,CAALC,KAAK,CAAA,OAAQ,CAC1EC,QAAQ,CAAE,UAAU,CACpBC,MAAM,CAAE,CAAC,CACTC,IAAI,CAAE,CAAC,CACPC,KAAK,CAAE,CAAC,CACRC,OAAO,CAAE,CAA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CAAC,CAAE,CACjCC,QAAQ,CAAEnC,KAAK,CAACsB,MAAM,CAACa,QAAQ,CAACC,QAAQ,CACxCb,MAAM,CAAEF,qBACV,CAAC,CAAC,CACJ,CAAC,KAAM,GAAIJ,kBAAkB,GAAK,SAAS,CAAE,CAC3CW,cAAc,CAACI,KAAK,CAAGE,UAAU,CAAC,CAAC,CAAE,CACnCC,QAAQ,CAAEnC,KAAK,CAACsB,MAAM,CAACa,QAAQ,CAACE,MAAM,CACtCd,MAAM,CAAEF,qBACV,CAAC,CAAC,CACJ,CACF,CAAC,CAAE,CACDJ,kBAAkB,CAClBW,cAAc,CACdF,YAAY,CACZ1B,KAAK,CAACsB,MAAM,CAACa,QAAQ,CACrBd,qBAAqB,CACrBH,eAAe,CAChB,CAAC,CAEF,OAAOoB,GAAA,CAAC3C,6BAA6B,EAAC4C,KAAK,CAAEV,aAAc,CAAE,CAAC,CAChE;;;;"}
1
+ {"version":3,"file":"BaseInputAnimatedBorder.native.js","sources":["../../../../../../src/components/Input/BaseInput/BaseInputAnimatedBorder.native.tsx"],"sourcesContent":["import styled from 'styled-components/native';\nimport type { EasingFn } from 'react-native-reanimated';\nimport Animated, {\n useAnimatedStyle,\n useSharedValue,\n interpolate,\n withTiming,\n} from 'react-native-reanimated';\nimport type { ReactElement } from 'react';\nimport { useEffect } from 'react';\nimport type { ActionStates } from '../../../utils/useInteraction';\nimport type { BaseInputProps } from './BaseInput';\nimport { useTheme } from '~components/BladeProvider';\nimport { makeBorderSize } from '~utils/makeBorderSize';\n\nconst BaseInputStyledAnimatedBorder = styled(Animated.View)(({ theme }) => ({\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n opacity: 1,\n backgroundColor: theme.colors.interactive.background.primary.default,\n height: makeBorderSize(theme.border.width.thin),\n}));\n\nexport const BaseInputAnimatedBorder = ({\n currentInteraction,\n validationState,\n}: {\n currentInteraction: ActionStates;\n validationState: BaseInputProps['validationState'];\n}): ReactElement => {\n const { theme } = useTheme();\n const borderAnimationEasing = (theme.motion.easing.standard.effective as unknown) as EasingFn;\n\n const widthTrigger = useSharedValue(0);\n const opacityTrigger = useSharedValue(1);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n width: `${interpolate(widthTrigger.value, [0, 1], [0, 100])}%`,\n opacity: interpolate(opacityTrigger.value, [0, 1], [0, 1]),\n };\n });\n\n useEffect(() => {\n if (\n currentInteraction == 'focus' &&\n validationState !== 'error' &&\n validationState !== 'success'\n ) {\n widthTrigger.value = 0;\n opacityTrigger.value = 1;\n widthTrigger.value = withTiming(1, {\n duration: theme.motion.duration.moderate,\n easing: borderAnimationEasing,\n });\n } else if (currentInteraction === 'default') {\n opacityTrigger.value = withTiming(0, {\n duration: theme.motion.duration.xquick,\n easing: borderAnimationEasing,\n });\n }\n }, [\n currentInteraction,\n opacityTrigger,\n widthTrigger,\n theme.motion.duration,\n borderAnimationEasing,\n validationState,\n ]);\n\n return <BaseInputStyledAnimatedBorder style={animatedStyle} />;\n};\n"],"names":["BaseInputStyledAnimatedBorder","styled","Animated","View","_ref","theme","position","bottom","left","right","opacity","backgroundColor","colors","interactive","background","primary","default","height","makeBorderSize","border","width","thin","BaseInputAnimatedBorder","_ref2","currentInteraction","validationState","_useTheme","useTheme","borderAnimationEasing","motion","easing","standard","effective","widthTrigger","useSharedValue","opacityTrigger","animatedStyle","useAnimatedStyle","interpolate","value","useEffect","withTiming","duration","moderate","xquick","_jsx","style"],"mappings":";;;;;;;;;;;;AAeA,IAAMA,6BAA6B,CAAGC,MAAM,CAACC,QAAQ,CAACC,IAAI,CAAC,CAAC,SAAAC,IAAA,MAAGC,KAAK,CAAAD,IAAA,CAALC,KAAK,CAAA,OAAQ,CAC1EC,QAAQ,CAAE,UAAU,CACpBC,MAAM,CAAE,CAAC,CACTC,IAAI,CAAE,CAAC,CACPC,KAAK,CAAE,CAAC,CACRC,OAAO,CAAE,CAAC,CACVC,eAAe,CAAEN,KAAK,CAACO,MAAM,CAACC,WAAW,CAACC,UAA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CACxCb,MAAM,CAAEF,qBACV,CAAC,CAAC,CACJ,CAAC,QAAUJ,kBAAkB,GAAK,SAAS,CAAE,CAC3CW,cAAc,CAACI,KAAK,CAAGE,UAAU,CAAC,CAAC,CAAE,CACnCC,QAAQ,CAAErC,KAAK,CAACwB,MAAM,CAACa,QAAQ,CAACE,MAAM,CACtCd,MAAM,CAAEF,qBACV,CAAC,CAAC,CACJ,CACF,CAAC,CAAE,CACDJ,kBAAkB,CAClBW,cAAc,CACdF,YAAY,CACZ5B,KAAK,CAACwB,MAAM,CAACa,QAAQ,CACrBd,qBAAqB,CACrBH,eAAe,CAChB,CAAC,CAEF,OAAOoB,GAAA,CAAC7C,6BAA6B,EAAC8C,KAAK,CAAEV,aAAc,CAAE,CAAC,CAChE;;;;"}
@@ -14,7 +14,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
14
14
  import { Text } from '../../Typography/Text/Text.js';
15
15
  import '../../Typography/Code/Code.js';
16
16
 
17
- var ScrollableTagSlotContainer=function ScrollableTagSlotContainer(_ref){var maxTagRows=_ref.maxTagRows,children=_ref.children,handleOnInputClick=_ref.handleOnInputClick;var scrollViewRef=React__default.useRef(null);var _React$useState=React__default.useState(false),_React$useState2=_slicedToArray(_React$useState,2),isScrolling=_React$useState2[0],setIsScrolling=_React$useState2[1];return jsxs(ScrollView,{ref:scrollViewRef,contentContainerStyle:{flexWrap:maxTagRows==='single'?'nowrap':'wrap',position:'relative',flexDirection:'row',flexGrow:1},onScrollBeginDrag:function onScrollBeginDrag(){setIsScrolling(true);},onScrollEndDrag:function onScrollEndDrag(){setIsScrolling(false);},horizontal:maxTagRows==='single',showsHorizontalScrollIndicator:maxTagRows==='single',onContentSizeChange:function onContentSizeChange(){var _scrollViewRef$curren;(_scrollViewRef$curren=scrollViewRef.current)==null?void 0:_scrollViewRef$curren.scrollToEnd({animated:true});},children:[jsx(TouchableWithoutFeedback,{onPress:function onPress(){if(!isScrolling){handleOnInputClick();}},children:jsx(BaseBox,{position:"absolute",height:"100%",width:"100%"})}),children]});};var ClickableText=function ClickableText(_ref2){var children=_ref2.children,handleOnInputClick=_ref2.handleOnInputClick,isDisabled=_ref2.isDisabled;return jsx(TouchableWithoutFeedback,{onPress:function onPress(){handleOnInputClick();},children:jsx(BaseBox,{alignSelf:"center",marginRight:"spacing.4",children:jsx(Text,{type:isDisabled?'placeholder':'normal',children:children})})});};var PLUS_X_MORE_TEXT_WIDTH=60;var BaseInputTagSlot=function BaseInputTagSlot(_ref3){var tags=_ref3.tags,maxTagRows=_ref3.maxTagRows,showAllTags=_ref3.showAllTags,handleOnInputClick=_ref3.handleOnInputClick,renderAs=_ref3.renderAs,children=_ref3.children,isDropdownTrigger=_ref3.isDropdownTrigger,labelPrefix=_ref3.labelPrefix,isDisabled=_ref3.isDisabled;var hasTags=tags&&tags.length>0;var initialVisibleTags=maxTagRows==='multiple'?6:1;var _React$useState3=React__default.useState(labelPrefix?0:initialVisibleTags),_React$useState4=_slicedToArray(_React$useState3,2),visibleTags=_React$useState4[0],setVisibleTags=_React$useState4[1];var invisibleTagsCount=tags||tags&&labelPrefix?tags.length-visibleTags:0;if(!isDropdownTrigger){return children;}return jsxs(BaseBox,{justifyContent:"flex-start",paddingY:"spacing.1",paddingX:"spacing.4",minHeight:makeSize(BASEINPUT_DEFAULT_HEIGHT),display:"flex",flexDirection:"row",position:"relative",flex:"1",onLayout:function onLayout(e){var _e$nativeEvent,_e$nativeEvent$layout;if(!hasTags)return;if(labelPrefix){setVisibleTags(0);return;}if(maxTagRows==='multiple'){return;}var containerWidth=(_e$nativeEvent=e.nativeEvent)==null?void 0:(_e$nativeEvent$layout=_e$nativeEvent.layout)==null?void 0:_e$nativeEvent$layout.width;if(!containerWidth){return;}var availableTagsSpace=containerWidth-PLUS_X_MORE_TEXT_WIDTH;var visibleTagsCount=Math.floor(availableTagsSpace/140);setVisibleTags(visibleTagsCount);},children:[jsxs(ScrollableTagSlotContainer,{maxTagRows:maxTagRows,showAllTags:showAllTags,handleOnInputClick:handleOnInputClick,children:[hasTags?jsxs(Fragment,{children:[showAllTags||maxTagRows==='multiple'?tags:tags.slice(0,visibleTags),invisibleTagsCount>0&&!showAllTags&&!labelPrefix&&maxTagRows!=='multiple'?jsxs(ClickableText,{isDisabled:isDisabled,handleOnInputClick:handleOnInputClick,children:["+ ",invisibleTagsCount," More"]}):null,!showAllTags&&invisibleTagsCount>0&&labelPrefix?jsxs(ClickableText,{isDisabled:isDisabled,handleOnInputClick:handleOnInputClick,children:[labelPrefix," (",invisibleTagsCount," Selected)"]}):null]}):null,jsx(BaseBox,{width:hasTags&&renderAs==='button'?makeSize(size['1']):'100%',children:children})]}),jsx(TouchableWithoutFeedback,{onPress:function onPress(){handleOnInputClick();},children:jsx(BaseBox,{flex:"1"})})]});};
17
+ var ScrollableTagSlotContainer=function ScrollableTagSlotContainer(_ref){var maxTagRows=_ref.maxTagRows,children=_ref.children,handleOnInputClick=_ref.handleOnInputClick;var scrollViewRef=React__default.useRef(null);var _React$useState=React__default.useState(false),_React$useState2=_slicedToArray(_React$useState,2),isScrolling=_React$useState2[0],setIsScrolling=_React$useState2[1];return jsxs(ScrollView,{ref:scrollViewRef,contentContainerStyle:{flexWrap:maxTagRows==='single'?'nowrap':'wrap',position:'relative',flexDirection:'row',flexGrow:1},onScrollBeginDrag:function onScrollBeginDrag(){setIsScrolling(true);},onScrollEndDrag:function onScrollEndDrag(){setIsScrolling(false);},horizontal:maxTagRows==='single',showsHorizontalScrollIndicator:maxTagRows==='single',onContentSizeChange:function onContentSizeChange(){var _scrollViewRef$curren;(_scrollViewRef$curren=scrollViewRef.current)==null?void 0:_scrollViewRef$curren.scrollToEnd({animated:true});},children:[jsx(TouchableWithoutFeedback,{onPress:function onPress(){if(!isScrolling){handleOnInputClick();}},children:jsx(BaseBox,{position:"absolute",height:"100%",width:"100%"})}),children]});};var ClickableText=function ClickableText(_ref2){var children=_ref2.children,handleOnInputClick=_ref2.handleOnInputClick,isDisabled=_ref2.isDisabled;return jsx(TouchableWithoutFeedback,{onPress:function onPress(){handleOnInputClick();},children:jsx(BaseBox,{alignSelf:"center",marginRight:"spacing.4",children:jsx(Text,{size:"small",variant:"body",weight:"regular",color:isDisabled?'surface.text.gray.disabled':'surface.text.gray.subtle',children:children})})});};var PLUS_X_MORE_TEXT_WIDTH=60;var BaseInputTagSlot=function BaseInputTagSlot(_ref3){var tags=_ref3.tags,maxTagRows=_ref3.maxTagRows,showAllTags=_ref3.showAllTags,handleOnInputClick=_ref3.handleOnInputClick,renderAs=_ref3.renderAs,children=_ref3.children,isDropdownTrigger=_ref3.isDropdownTrigger,labelPrefix=_ref3.labelPrefix,isDisabled=_ref3.isDisabled;var hasTags=tags&&tags.length>0;var initialVisibleTags=maxTagRows==='multiple'?6:1;var _React$useState3=React__default.useState(labelPrefix?0:initialVisibleTags),_React$useState4=_slicedToArray(_React$useState3,2),visibleTags=_React$useState4[0],setVisibleTags=_React$useState4[1];var invisibleTagsCount=tags||tags&&labelPrefix?tags.length-visibleTags:0;if(!isDropdownTrigger){return children;}return jsxs(BaseBox,{justifyContent:"flex-start",paddingY:"spacing.1",paddingX:"spacing.4",minHeight:makeSize(BASEINPUT_DEFAULT_HEIGHT),display:"flex",flexDirection:"row",position:"relative",flex:"1",onLayout:function onLayout(e){var _e$nativeEvent,_e$nativeEvent$layout;if(!hasTags)return;if(labelPrefix){setVisibleTags(0);return;}if(maxTagRows==='multiple'){return;}var containerWidth=(_e$nativeEvent=e.nativeEvent)==null?void 0:(_e$nativeEvent$layout=_e$nativeEvent.layout)==null?void 0:_e$nativeEvent$layout.width;if(!containerWidth){return;}var availableTagsSpace=containerWidth-PLUS_X_MORE_TEXT_WIDTH;var visibleTagsCount=Math.floor(availableTagsSpace/140);setVisibleTags(visibleTagsCount);},children:[jsxs(ScrollableTagSlotContainer,{maxTagRows:maxTagRows,showAllTags:showAllTags,handleOnInputClick:handleOnInputClick,children:[hasTags?jsxs(Fragment,{children:[showAllTags||maxTagRows==='multiple'?tags:tags.slice(0,visibleTags),invisibleTagsCount>0&&!showAllTags&&!labelPrefix&&maxTagRows!=='multiple'?jsxs(ClickableText,{isDisabled:isDisabled,handleOnInputClick:handleOnInputClick,children:["+ ",invisibleTagsCount," More"]}):null,!showAllTags&&invisibleTagsCount>0&&labelPrefix?jsxs(ClickableText,{isDisabled:isDisabled,handleOnInputClick:handleOnInputClick,children:[labelPrefix," (",invisibleTagsCount," Selected)"]}):null]}):null,jsx(BaseBox,{width:hasTags&&renderAs==='button'?makeSize(size['1']):'100%',children:children})]}),jsx(TouchableWithoutFeedback,{onPress:function onPress(){handleOnInputClick();},children:jsx(BaseBox,{flex:"1"})})]});};
18
18
 
19
19
  export { BaseInputTagSlot };
20
20
  //# sourceMappingURL=BaseInputTagSlot.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseInputTagSlot.native.js","sources":["../../../../../../src/components/Input/BaseInput/BaseInputTagSlot.native.tsx"],"sourcesContent":["import React from 'react';\nimport { ScrollView, TouchableWithoutFeedback } from 'react-native';\nimport type { BaseInputTagSlotProps } from './types';\nimport { BASEINPUT_DEFAULT_HEIGHT } from './baseInputConfig';\nimport BaseBox from '~components/Box/BaseBox';\nimport { makeSize } from '~utils';\nimport { size } from '~tokens/global';\nimport { Text } from '~components/Typography';\nimport type { StringChildrenType } from '~utils/types';\n\nconst ScrollableTagSlotContainer = ({\n maxTagRows,\n children,\n handleOnInputClick,\n}: Pick<BaseInputTagSlotProps, 'maxTagRows' | 'showAllTags' | 'handleOnInputClick'> & {\n children: (React.ReactNode | null)[];\n}): React.ReactElement => {\n const scrollViewRef = React.useRef<ScrollView>(null);\n const [isScrolling, setIsScrolling] = React.useState(false);\n return (\n <ScrollView\n ref={scrollViewRef}\n contentContainerStyle={{\n flexWrap: maxTagRows === 'single' ? 'nowrap' : 'wrap',\n position: 'relative',\n flexDirection: 'row',\n flexGrow: 1,\n }}\n onScrollBeginDrag={() => {\n setIsScrolling(true);\n }}\n onScrollEndDrag={() => {\n setIsScrolling(false);\n }}\n horizontal={maxTagRows === 'single'}\n showsHorizontalScrollIndicator={maxTagRows === 'single'}\n onContentSizeChange={() => {\n scrollViewRef.current?.scrollToEnd({ animated: true });\n }}\n >\n {/* This creates a clickable layer behind tags so if user clicks empty area between of tags, it handles opening of Dropdown */}\n <TouchableWithoutFeedback\n onPress={() => {\n if (!isScrolling) {\n handleOnInputClick();\n }\n }}\n >\n <BaseBox position=\"absolute\" height=\"100%\" width=\"100%\" />\n </TouchableWithoutFeedback>\n {children}\n </ScrollView>\n );\n};\n\nconst ClickableText = ({\n children,\n handleOnInputClick,\n isDisabled,\n}: {\n children: StringChildrenType;\n handleOnInputClick: BaseInputTagSlotProps['handleOnInputClick'];\n isDisabled: BaseInputTagSlotProps['isDisabled'];\n}): React.ReactElement => {\n return (\n <TouchableWithoutFeedback\n onPress={() => {\n handleOnInputClick();\n }}\n >\n <BaseBox alignSelf=\"center\" marginRight=\"spacing.4\">\n <Text type={isDisabled ? 'placeholder' : 'normal'}>{children}</Text>\n </BaseBox>\n </TouchableWithoutFeedback>\n );\n};\n\nconst PLUS_X_MORE_TEXT_WIDTH = 60;\n\nconst BaseInputTagSlot = ({\n tags,\n maxTagRows,\n showAllTags,\n handleOnInputClick,\n renderAs,\n children,\n isDropdownTrigger,\n labelPrefix,\n isDisabled,\n}: BaseInputTagSlotProps): React.ReactElement | null => {\n const hasTags = tags && tags.length > 0;\n const initialVisibleTags = maxTagRows === 'multiple' ? 6 : 1;\n const [visibleTags, setVisibleTags] = React.useState(labelPrefix ? 0 : initialVisibleTags);\n const invisibleTagsCount = tags || (tags && labelPrefix) ? tags.length - visibleTags : 0;\n\n if (!isDropdownTrigger) {\n return children;\n }\n\n return (\n <BaseBox\n justifyContent=\"flex-start\"\n paddingY=\"spacing.1\"\n paddingX=\"spacing.4\"\n minHeight={makeSize(BASEINPUT_DEFAULT_HEIGHT)}\n display=\"flex\"\n flexDirection=\"row\"\n position=\"relative\"\n flex=\"1\"\n onLayout={(e) => {\n if (!hasTags) return;\n\n if (labelPrefix) {\n setVisibleTags(0);\n return;\n }\n\n if (maxTagRows === 'multiple') {\n // The calculation is for single-line versions.\n // In multiline, we have default 6 tags in RN\n return;\n }\n\n const containerWidth = e.nativeEvent?.layout?.width;\n if (!containerWidth) {\n return;\n }\n\n const availableTagsSpace = containerWidth - PLUS_X_MORE_TEXT_WIDTH;\n const visibleTagsCount = Math.floor(availableTagsSpace / 140);\n setVisibleTags(visibleTagsCount);\n }}\n >\n <ScrollableTagSlotContainer\n maxTagRows={maxTagRows}\n showAllTags={showAllTags}\n handleOnInputClick={handleOnInputClick}\n >\n {hasTags ? (\n <>\n {showAllTags || maxTagRows === 'multiple' ? tags : tags.slice(0, visibleTags)}\n {invisibleTagsCount > 0 && !showAllTags && !labelPrefix && maxTagRows !== 'multiple' ? (\n <ClickableText isDisabled={isDisabled} handleOnInputClick={handleOnInputClick}>\n + {invisibleTagsCount} More\n </ClickableText>\n ) : null}\n {!showAllTags && invisibleTagsCount > 0 && labelPrefix ? (\n <ClickableText isDisabled={isDisabled} handleOnInputClick={handleOnInputClick}>\n {labelPrefix} ({invisibleTagsCount} Selected)\n </ClickableText>\n ) : null}\n </>\n ) : null}\n <BaseBox width={hasTags && renderAs === 'button' ? makeSize(size['1']) : '100%'}>\n {children}\n </BaseBox>\n </ScrollableTagSlotContainer>\n <TouchableWithoutFeedback\n onPress={() => {\n handleOnInputClick();\n }}\n >\n <BaseBox flex=\"1\" />\n </TouchableWithoutFeedback>\n </BaseBox>\n );\n};\n\nexport { BaseInputTagSlot };\n"],"names":["ScrollableTagSlotContainer","_ref","maxTagRows","children","handleOnInputClick","scrollViewRef","React","useRef","_React$useState","useState","_React$useState2","_slicedToArray","isScrolling","setIsScrolling","_jsxs","ScrollView","ref","contentContainerStyle","flexWrap","position","flexDirection","flexGrow","onScrollBeginDrag","onScrollEndDrag","horizontal","showsHorizontalScrollIndicator","onContentSizeChange","_scrollViewRef$curren","current","scrollToEnd","animated","_jsx","TouchableWithoutFeedback","onPress","BaseBox","height","width","ClickableText","_ref2","isDisabled","alignSelf","marginRight","Text","type","PLUS_X_MORE_TEXT_WIDTH","BaseInputTagSlot","_ref3","tags","showAllTags","renderAs","isDropdownTrigger","labelPrefix","hasTags","length","initialVisibleTags","_React$useState3","_React$useState4","visibleTags","setVisibleTags","invisibleTagsCount","justifyContent","paddingY","paddingX","minHeight","makeSize","BASEINPUT_DEFAULT_HEIGHT","display","flex","onLayout","e","_e$nativeEvent","_e$nativeEvent$layout","containerWidth","nativeEvent","layout","availableTagsSpace","visibleTagsCount","Math","floor","_Fragment","slice","size"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAMA,0BAA0B,CAAG,SAA7BA,0BAA0BA,CAAAC,IAAA,CAMN,CAAA,IALxBC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CACVC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CACRC,kBAAkB,CAAAH,IAAA,CAAlBG,kBAAkB,CAIlB,IAAMC,aAAa,CAAGC,cAAK,CAACC,MAAM,CAAa,IAAI,CAAC,CACpD,IAAAC,eAAA,CAAsCF,cAAK,CAACG,QAAQ,CAAC,KAAK,CAAC,CAAAC,gBAAA,CAAAC,cAAA,CAAAH,eAAA,CAAA,CAAA,CAAA,CAApDI,WAAW,CAAAF,gBAAA,CAAEG,CAAAA,CAAAA,CAAAA,cAAc,CAAAH,gBAAA,CAAA,CAAA,CAAA,CAClC,OACEI,IAAA,CAACC,UAAU,CAAA,CACTC,GAAG,CAAEX,aAAc,CACnBY,qBAAqB,CAAE,CACrBC,QAAQ,CAAEhB,UAAU,GAAK,QAAQ,CAAG,QAAQ,CAAG,MAAM,CACrDiB,QAAQ,CAAE,UAAU,CACpBC,aAAa,CAAE,KAAK,CACpBC,QAAQ,CAAE,CACZ,CAAE,CACFC,iBAAiB,CAAE,SAAAA,iBAAA,EAAM,CACvBT,cAAc,CAAC,IAAI,CAAC,CACtB,CAAE,CACFU,eAAe,CAAE,SAAAA,eAAA,E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AEA,UAAW,CAACnC,kBAAkB,CAAEA,kBAAmB,CAAAD,QAAA,CAAA,CAAC,IAC3E,CAACwD,kBAAkB,CAAC,OACxB,CAAA,CAAe,CAAC,CACd,IAAI,CACP,CAACX,WAAW,EAAIW,kBAAkB,CAAG,CAAC,EAAIR,WAAW,CACpDrC,IAAA,CAACuB,aAAa,EAACE,UAAU,CAAEA,UAAW,CAACnC,kBAAkB,CAAEA,kBAAmB,CAAAD,QAAA,CAC3EgD,CAAAA,WAAW,CAAC,IAAE,CAACQ,kBAAkB,CAAC,YACrC,CAAA,CAAe,CAAC,CACd,IAAI,EACR,CAAC,CACD,IAAI,CACR5B,GAAA,CAACG,OAAO,CAACE,CAAAA,KAAK,CAAEgB,OAAO,EAAIH,QAAQ,GAAK,QAAQ,CAAGe,QAAQ,CAACiB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAG,MAAO,CAAA9E,QAAA,CAC7EA,QAAQ,CACF,CAAC,CAAA,CACgB,CAAC,CAC7B4B,GAAA,CAACC,wBAAwB,CAAA,CACvBC,OAAO,CAAE,SAAAA,OAAA,EAAM,CACb7B,kBAAkB,EAAE,CACtB,CAAE,CAAAD,QAAA,CAEF4B,GAAA,CAACG,OAAO,CAAA,CAACiC,IAAI,CAAC,GAAG,CAAE,CAAC,CACI,CAAC,CAAA,CACpB,CAAC,CAEd;;;;"}
1
+ {"version":3,"file":"BaseInputTagSlot.native.js","sources":["../../../../../../src/components/Input/BaseInput/BaseInputTagSlot.native.tsx"],"sourcesContent":["import React from 'react';\nimport { ScrollView, TouchableWithoutFeedback } from 'react-native';\nimport type { BaseInputTagSlotProps } from './types';\nimport { BASEINPUT_DEFAULT_HEIGHT } from './baseInputConfig';\nimport BaseBox from '~components/Box/BaseBox';\nimport { makeSize } from '~utils';\nimport { size } from '~tokens/global';\nimport { Text } from '~components/Typography';\nimport type { StringChildrenType } from '~utils/types';\n\nconst ScrollableTagSlotContainer = ({\n maxTagRows,\n children,\n handleOnInputClick,\n}: Pick<BaseInputTagSlotProps, 'maxTagRows' | 'showAllTags' | 'handleOnInputClick'> & {\n children: (React.ReactNode | null)[];\n}): React.ReactElement => {\n const scrollViewRef = React.useRef<ScrollView>(null);\n const [isScrolling, setIsScrolling] = React.useState(false);\n return (\n <ScrollView\n ref={scrollViewRef}\n contentContainerStyle={{\n flexWrap: maxTagRows === 'single' ? 'nowrap' : 'wrap',\n position: 'relative',\n flexDirection: 'row',\n flexGrow: 1,\n }}\n onScrollBeginDrag={() => {\n setIsScrolling(true);\n }}\n onScrollEndDrag={() => {\n setIsScrolling(false);\n }}\n horizontal={maxTagRows === 'single'}\n showsHorizontalScrollIndicator={maxTagRows === 'single'}\n onContentSizeChange={() => {\n scrollViewRef.current?.scrollToEnd({ animated: true });\n }}\n >\n {/* This creates a clickable layer behind tags so if user clicks empty area between of tags, it handles opening of Dropdown */}\n <TouchableWithoutFeedback\n onPress={() => {\n if (!isScrolling) {\n handleOnInputClick();\n }\n }}\n >\n <BaseBox position=\"absolute\" height=\"100%\" width=\"100%\" />\n </TouchableWithoutFeedback>\n {children}\n </ScrollView>\n );\n};\n\nconst ClickableText = ({\n children,\n handleOnInputClick,\n isDisabled,\n}: {\n children: StringChildrenType;\n handleOnInputClick: BaseInputTagSlotProps['handleOnInputClick'];\n isDisabled: BaseInputTagSlotProps['isDisabled'];\n}): React.ReactElement => {\n return (\n <TouchableWithoutFeedback\n onPress={() => {\n handleOnInputClick();\n }}\n >\n <BaseBox alignSelf=\"center\" marginRight=\"spacing.4\">\n <Text\n size=\"small\"\n variant=\"body\"\n weight=\"regular\"\n color={isDisabled ? 'surface.text.gray.disabled' : 'surface.text.gray.subtle'}\n >\n {children}\n </Text>\n </BaseBox>\n </TouchableWithoutFeedback>\n );\n};\n\nconst PLUS_X_MORE_TEXT_WIDTH = 60;\n\nconst BaseInputTagSlot = ({\n tags,\n maxTagRows,\n showAllTags,\n handleOnInputClick,\n renderAs,\n children,\n isDropdownTrigger,\n labelPrefix,\n isDisabled,\n}: BaseInputTagSlotProps): React.ReactElement | null => {\n const hasTags = tags && tags.length > 0;\n const initialVisibleTags = maxTagRows === 'multiple' ? 6 : 1;\n const [visibleTags, setVisibleTags] = React.useState(labelPrefix ? 0 : initialVisibleTags);\n const invisibleTagsCount = tags || (tags && labelPrefix) ? tags.length - visibleTags : 0;\n\n if (!isDropdownTrigger) {\n return children;\n }\n\n return (\n <BaseBox\n justifyContent=\"flex-start\"\n paddingY=\"spacing.1\"\n paddingX=\"spacing.4\"\n minHeight={makeSize(BASEINPUT_DEFAULT_HEIGHT)}\n display=\"flex\"\n flexDirection=\"row\"\n position=\"relative\"\n flex=\"1\"\n onLayout={(e) => {\n if (!hasTags) return;\n\n if (labelPrefix) {\n setVisibleTags(0);\n return;\n }\n\n if (maxTagRows === 'multiple') {\n // The calculation is for single-line versions.\n // In multiline, we have default 6 tags in RN\n return;\n }\n\n const containerWidth = e.nativeEvent?.layout?.width;\n if (!containerWidth) {\n return;\n }\n\n const availableTagsSpace = containerWidth - PLUS_X_MORE_TEXT_WIDTH;\n const visibleTagsCount = Math.floor(availableTagsSpace / 140);\n setVisibleTags(visibleTagsCount);\n }}\n >\n <ScrollableTagSlotContainer\n maxTagRows={maxTagRows}\n showAllTags={showAllTags}\n handleOnInputClick={handleOnInputClick}\n >\n {hasTags ? (\n <>\n {showAllTags || maxTagRows === 'multiple' ? tags : tags.slice(0, visibleTags)}\n {invisibleTagsCount > 0 && !showAllTags && !labelPrefix && maxTagRows !== 'multiple' ? (\n <ClickableText isDisabled={isDisabled} handleOnInputClick={handleOnInputClick}>\n + {invisibleTagsCount} More\n </ClickableText>\n ) : null}\n {!showAllTags && invisibleTagsCount > 0 && labelPrefix ? (\n <ClickableText isDisabled={isDisabled} handleOnInputClick={handleOnInputClick}>\n {labelPrefix} ({invisibleTagsCount} Selected)\n </ClickableText>\n ) : null}\n </>\n ) : null}\n <BaseBox width={hasTags && renderAs === 'button' ? makeSize(size['1']) : '100%'}>\n {children}\n </BaseBox>\n </ScrollableTagSlotContainer>\n <TouchableWithoutFeedback\n onPress={() => {\n handleOnInputClick();\n }}\n >\n <BaseBox flex=\"1\" />\n </TouchableWithoutFeedback>\n </BaseBox>\n );\n};\n\nexport { BaseInputTagSlot };\n"],"names":["ScrollableTagSlotContainer","_ref","maxTagRows","children","handleOnInputClick","scrollViewRef","React","useRef","_React$useState","useState","_React$useState2","_slicedToArray","isScrolling","setIsScrolling","_jsxs","ScrollView","ref","contentContainerStyle","flexWrap","position","flexDirection","flexGrow","onScrollBeginDrag","onScrollEndDrag","horizontal","showsHorizontalScrollIndicator","onContentSizeChange","_scrollViewRef$curren","current","scrollToEnd","animated","_jsx","TouchableWithoutFeedback","onPress","BaseBox","height","width","ClickableText","_ref2","isDisabled","alignSelf","marginRight","Text","size","variant","weight","color","PLUS_X_MORE_TEXT_WIDTH","BaseInputTagSlot","_ref3","tags","showAllTags","renderAs","isDropdownTrigger","labelPrefix","hasTags","length","initialVisibleTags","_React$useState3","_React$useState4","visibleTags","setVisibleTags","invisibleTagsCount","justifyContent","paddingY","paddingX","minHeight","makeSize","BASEINPUT_DEFAULT_HEIGHT","display","flex","onLayout","e","_e$nativeEvent","_e$nativeEvent$layout","containerWidth","nativeEvent","layout","availableTagsSpace","visibleTagsCount","Math","floor","_Fragment","slice"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAMA,0BAA0B,CAAG,SAA7BA,0BAA0BA,CAAAC,IAAA,CAMN,CALxB,IAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CACVC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CACRC,kBAAkB,CAAAH,IAAA,CAAlBG,kBAAkB,CAIlB,IAAMC,aAAa,CAAGC,cAAK,CAACC,MAAM,CAAa,IAAI,CAAC,CACpD,IAAAC,eAAA,CAAsCF,cAAK,CAACG,QAAQ,CAAC,KAAK,CAAC,CAAAC,gBAAA,CAAAC,cAAA,CAAAH,eAAA,CAAA,CAAA,CAAA,CAApDI,WAAW,CAAAF,gBAA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AC,CACI,CAAC,CAAA,CACpB,CAAC,CAEd;;;;"}
@@ -11,7 +11,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
11
11
  import { Text } from '../../Typography/Text/Text.js';
12
12
  import '../../Typography/Code/Code.js';
13
13
 
14
- var getVisualContainerStyles=function getVisualContainerStyles(){return {display:'flex',flexDirection:'row',alignItems:'center',alignSelf:'center'};};var getPrefixStyles=function getPrefixStyles(_ref){var hasLeadingIcon=_ref.hasLeadingIcon,hasPrefix=_ref.hasPrefix;if(hasPrefix&&hasLeadingIcon){return {paddingLeft:'spacing.2'};}if(hasPrefix&&!hasLeadingIcon){return {paddingLeft:'spacing.4'};}return {paddingLeft:'spacing.0'};};var getInteractionElementStyles=function getInteractionElementStyles(_ref2){var hasTrailingIcon=_ref2.hasTrailingIcon,hasInteractionElement=_ref2.hasInteractionElement,hasSuffix=_ref2.hasSuffix;if(hasInteractionElement&&(hasSuffix||hasTrailingIcon)){return {paddingRight:'spacing.2'};}if(hasInteractionElement&&!hasSuffix&&!hasTrailingIcon){return {paddingRight:'spacing.4'};}return {paddingRight:'spacing.0'};};var getSuffixStyles=function getSuffixStyles(_ref3){var hasTrailingIcon=_ref3.hasTrailingIcon,hasSuffix=_ref3.hasSuffix;if(hasSuffix&&hasTrailingIcon){return {paddingRight:'spacing.2'};}if(hasSuffix&&!hasTrailingIcon){return {paddingRight:'spacing.4'};}return {paddingRight:'spacing.0'};};var getInputVisualsToBeRendered=function getInputVisualsToBeRendered(_ref4){var leadingIcon=_ref4.leadingIcon,prefix=_ref4.prefix,interactionElement=_ref4.interactionElement,suffix=_ref4.suffix,trailingIcon=_ref4.trailingIcon;return {hasLeadingIcon:Boolean(leadingIcon),hasPrefix:Boolean(prefix),hasInteractionElement:Boolean(interactionElement),hasSuffix:Boolean(suffix),hasTrailingIcon:Boolean(trailingIcon)};};var BaseInputVisuals=function BaseInputVisuals(_ref5){var LeadingIcon=_ref5.leadingIcon,prefix=_ref5.prefix,interactionElement=_ref5.interactionElement,suffix=_ref5.suffix,TrailingIcon=_ref5.trailingIcon,isDisabled=_ref5.isDisabled;var _getInputVisualsToBeR=getInputVisualsToBeRendered({leadingIcon:LeadingIcon,prefix:prefix,interactionElement:interactionElement,suffix:suffix,trailingIcon:TrailingIcon}),hasLeadingIcon=_getInputVisualsToBeR.hasLeadingIcon,hasPrefix=_getInputVisualsToBeR.hasPrefix,hasInteractionElement=_getInputVisualsToBeR.hasInteractionElement,hasSuffix=_getInputVisualsToBeR.hasSuffix,hasTrailingIcon=_getInputVisualsToBeR.hasTrailingIcon;var hasLeadingVisuals=hasLeadingIcon||hasPrefix;var hasTrailingVisuals=hasInteractionElement||hasSuffix||hasTrailingIcon;if(hasLeadingVisuals){return jsxs(BaseBox,Object.assign({},getVisualContainerStyles(),{children:[LeadingIcon?jsx(BaseBox,{paddingLeft:"spacing.4",display:"flex",children:jsx(LeadingIcon,{size:"medium",color:isDisabled?'surface.text.placeholder.lowContrast':'surface.text.subtle.lowContrast'})}):null,hasPrefix?jsx(BaseBox,Object.assign({},getPrefixStyles({hasLeadingIcon:hasLeadingIcon,hasPrefix:hasPrefix}),{children:jsx(Text,{size:"medium",variant:"body",weight:"regular",contrast:"low",type:isDisabled?'placeholder':'subtle',children:prefix})})):null]}));}if(hasTrailingVisuals){return jsxs(BaseBox,Object.assign({alignSelf:"stretch",alignItems:"stretch"},getVisualContainerStyles(),{children:[hasInteractionElement?jsx(BaseBox,Object.assign({},getInteractionElementStyles({hasTrailingIcon:hasTrailingIcon,hasInteractionElement:hasInteractionElement,hasSuffix:hasSuffix}),{display:"flex",alignItems:"stretch",alignSelf:"stretch",children:interactionElement})):null,hasSuffix?jsx(BaseBox,Object.assign({},getSuffixStyles({hasTrailingIcon:hasTrailingIcon,hasSuffix:hasSuffix}),{children:jsx(Text,{size:"medium",variant:"body",weight:"regular",contrast:"low",type:isDisabled?'placeholder':'subtle',children:suffix})})):null,TrailingIcon?jsx(BaseBox,{paddingRight:"spacing.4",display:"flex",children:jsx(TrailingIcon,{size:"medium",color:isDisabled?'surface.text.placeholder.lowContrast':'surface.text.subtle.lowContrast'})}):null]}));}return null;};
14
+ var getVisualContainerStyles=function getVisualContainerStyles(){return {display:'flex',flexDirection:'row',alignItems:'center',alignSelf:'center'};};var getPrefixStyles=function getPrefixStyles(_ref){var hasLeadingIcon=_ref.hasLeadingIcon,hasPrefix=_ref.hasPrefix;if(hasPrefix&&hasLeadingIcon){return {paddingLeft:'spacing.2'};}if(hasPrefix&&!hasLeadingIcon){return {paddingLeft:'spacing.4'};}return {paddingLeft:'spacing.0'};};var getInteractionElementStyles=function getInteractionElementStyles(_ref2){var hasTrailingIcon=_ref2.hasTrailingIcon,hasInteractionElement=_ref2.hasInteractionElement,hasSuffix=_ref2.hasSuffix;if(hasInteractionElement&&(hasSuffix||hasTrailingIcon)){return {paddingRight:'spacing.2'};}if(hasInteractionElement&&!hasSuffix&&!hasTrailingIcon){return {paddingRight:'spacing.4'};}return {paddingRight:'spacing.0'};};var getSuffixStyles=function getSuffixStyles(_ref3){var hasTrailingIcon=_ref3.hasTrailingIcon,hasSuffix=_ref3.hasSuffix;if(hasSuffix&&hasTrailingIcon){return {paddingRight:'spacing.2'};}if(hasSuffix&&!hasTrailingIcon){return {paddingRight:'spacing.4'};}return {paddingRight:'spacing.0'};};var getInputVisualsToBeRendered=function getInputVisualsToBeRendered(_ref4){var leadingIcon=_ref4.leadingIcon,prefix=_ref4.prefix,interactionElement=_ref4.interactionElement,suffix=_ref4.suffix,trailingIcon=_ref4.trailingIcon;return {hasLeadingIcon:Boolean(leadingIcon),hasPrefix:Boolean(prefix),hasInteractionElement:Boolean(interactionElement),hasSuffix:Boolean(suffix),hasTrailingIcon:Boolean(trailingIcon)};};var BaseInputVisuals=function BaseInputVisuals(_ref5){var LeadingIcon=_ref5.leadingIcon,prefix=_ref5.prefix,interactionElement=_ref5.interactionElement,suffix=_ref5.suffix,TrailingIcon=_ref5.trailingIcon,isDisabled=_ref5.isDisabled;var _getInputVisualsToBeR=getInputVisualsToBeRendered({leadingIcon:LeadingIcon,prefix:prefix,interactionElement:interactionElement,suffix:suffix,trailingIcon:TrailingIcon}),hasLeadingIcon=_getInputVisualsToBeR.hasLeadingIcon,hasPrefix=_getInputVisualsToBeR.hasPrefix,hasInteractionElement=_getInputVisualsToBeR.hasInteractionElement,hasSuffix=_getInputVisualsToBeR.hasSuffix,hasTrailingIcon=_getInputVisualsToBeR.hasTrailingIcon;var hasLeadingVisuals=hasLeadingIcon||hasPrefix;var hasTrailingVisuals=hasInteractionElement||hasSuffix||hasTrailingIcon;if(hasLeadingVisuals){return jsxs(BaseBox,Object.assign({},getVisualContainerStyles(),{children:[LeadingIcon?jsx(BaseBox,{paddingLeft:"spacing.4",display:"flex",children:jsx(LeadingIcon,{size:"medium",color:isDisabled?'surface.icon.gray.disabled':'surface.icon.gray.subtle'})}):null,hasPrefix?jsx(BaseBox,Object.assign({},getPrefixStyles({hasLeadingIcon:hasLeadingIcon,hasPrefix:hasPrefix}),{children:jsx(Text,{size:"medium",variant:"body",weight:"regular",color:isDisabled?'surface.text.gray.disabled':'surface.text.gray.subtle',children:prefix})})):null]}));}if(hasTrailingVisuals){return jsxs(BaseBox,Object.assign({alignSelf:"stretch",alignItems:"stretch"},getVisualContainerStyles(),{children:[hasInteractionElement?jsx(BaseBox,Object.assign({},getInteractionElementStyles({hasTrailingIcon:hasTrailingIcon,hasInteractionElement:hasInteractionElement,hasSuffix:hasSuffix}),{display:"flex",alignItems:"stretch",alignSelf:"stretch",children:interactionElement})):null,hasSuffix?jsx(BaseBox,Object.assign({},getSuffixStyles({hasTrailingIcon:hasTrailingIcon,hasSuffix:hasSuffix}),{children:jsx(Text,{size:"medium",variant:"body",weight:"regular",color:isDisabled?'surface.text.gray.disabled':'surface.text.gray.subtle',children:suffix})})):null,TrailingIcon?jsx(BaseBox,{paddingRight:"spacing.4",display:"flex",children:jsx(TrailingIcon,{size:"medium",color:isDisabled?'interactive.icon.gray.disabled':'interactive.icon.gray.muted'})}):null]}));}return null;};
15
15
 
16
16
  export { BaseInputVisuals, getInputVisualsToBeRendered };
17
17
  //# sourceMappingURL=BaseInputVisuals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseInputVisuals.js","sources":["../../../../../../src/components/Input/BaseInput/BaseInputVisuals.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport type { ReactElement } from 'react';\nimport type { BaseInputProps } from './BaseInput';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Text } from '~components/Typography';\nimport type { BaseBoxProps } from '~components/Box/BaseBox';\n\ntype InputVisuals = Pick<\n BaseInputProps,\n 'leadingIcon' | 'prefix' | 'interactionElement' | 'suffix' | 'trailingIcon' | 'isDisabled'\n>;\n\nconst getVisualContainerStyles = (): Pick<\n BaseBoxProps,\n 'display' | 'flexDirection' | 'alignItems' | 'alignSelf'\n> => ({\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n alignSelf: 'center',\n});\n\nconst getPrefixStyles = ({\n hasLeadingIcon,\n hasPrefix,\n}: {\n hasLeadingIcon: boolean;\n hasPrefix: boolean;\n}): Pick<BaseBoxProps, 'paddingLeft'> => {\n if (hasPrefix && hasLeadingIcon) {\n return {\n paddingLeft: 'spacing.2',\n };\n }\n\n if (hasPrefix && !hasLeadingIcon) {\n return {\n paddingLeft: 'spacing.4',\n };\n }\n\n return {\n paddingLeft: 'spacing.0',\n };\n};\n\nconst getInteractionElementStyles = ({\n hasTrailingIcon,\n hasInteractionElement,\n hasSuffix,\n}: {\n hasTrailingIcon: boolean;\n hasInteractionElement: boolean;\n hasSuffix: boolean;\n}): Pick<BaseBoxProps, 'paddingRight'> => {\n if (hasInteractionElement && (hasSuffix || hasTrailingIcon)) {\n return {\n paddingRight: 'spacing.2',\n };\n }\n\n if (hasInteractionElement && !hasSuffix && !hasTrailingIcon) {\n return {\n paddingRight: 'spacing.4',\n };\n }\n\n return {\n paddingRight: 'spacing.0',\n };\n};\n\nconst getSuffixStyles = ({\n hasTrailingIcon,\n hasSuffix,\n}: {\n hasTrailingIcon: boolean;\n hasSuffix: boolean;\n}): Pick<BaseBoxProps, 'paddingRight'> => {\n if (hasSuffix && hasTrailingIcon) {\n return {\n paddingRight: 'spacing.2',\n };\n }\n\n if (hasSuffix && !hasTrailingIcon) {\n return {\n paddingRight: 'spacing.4',\n };\n }\n\n return {\n paddingRight: 'spacing.0',\n };\n};\n\nexport const getInputVisualsToBeRendered = ({\n leadingIcon,\n prefix,\n interactionElement,\n suffix,\n trailingIcon,\n}: InputVisuals) => ({\n hasLeadingIcon: Boolean(leadingIcon),\n hasPrefix: Boolean(prefix),\n hasInteractionElement: Boolean(interactionElement),\n hasSuffix: Boolean(suffix),\n hasTrailingIcon: Boolean(trailingIcon),\n});\n\nexport const BaseInputVisuals = ({\n leadingIcon: LeadingIcon,\n prefix,\n interactionElement,\n suffix,\n trailingIcon: TrailingIcon,\n isDisabled,\n}: InputVisuals): ReactElement | null => {\n const {\n hasLeadingIcon,\n hasPrefix,\n hasInteractionElement,\n hasSuffix,\n hasTrailingIcon,\n } = getInputVisualsToBeRendered({\n leadingIcon: LeadingIcon,\n prefix,\n interactionElement,\n suffix,\n trailingIcon: TrailingIcon,\n });\n\n const hasLeadingVisuals = hasLeadingIcon || hasPrefix;\n const hasTrailingVisuals = hasInteractionElement || hasSuffix || hasTrailingIcon;\n\n if (hasLeadingVisuals) {\n return (\n <BaseBox {...getVisualContainerStyles()}>\n {LeadingIcon ? (\n <BaseBox paddingLeft=\"spacing.4\" display=\"flex\">\n <LeadingIcon\n size=\"medium\"\n color={\n isDisabled\n ? 'surface.text.placeholder.lowContrast'\n : 'surface.text.subtle.lowContrast'\n }\n />\n </BaseBox>\n ) : null}\n {hasPrefix ? (\n <BaseBox {...getPrefixStyles({ hasLeadingIcon, hasPrefix })}>\n <Text\n size=\"medium\"\n variant=\"body\"\n weight=\"regular\"\n contrast=\"low\"\n type={isDisabled ? 'placeholder' : 'subtle'}\n >\n {prefix}\n </Text>\n </BaseBox>\n ) : null}\n </BaseBox>\n );\n }\n\n if (hasTrailingVisuals) {\n return (\n <BaseBox alignSelf=\"stretch\" alignItems=\"stretch\" {...getVisualContainerStyles()}>\n {hasInteractionElement ? (\n <BaseBox\n {...getInteractionElementStyles({ hasTrailingIcon, hasInteractionElement, hasSuffix })}\n display=\"flex\"\n alignItems=\"stretch\"\n alignSelf=\"stretch\"\n >\n {interactionElement}\n </BaseBox>\n ) : null}\n {hasSuffix ? (\n <BaseBox {...getSuffixStyles({ hasTrailingIcon, hasSuffix })}>\n <Text\n size=\"medium\"\n variant=\"body\"\n weight=\"regular\"\n contrast=\"low\"\n type={isDisabled ? 'placeholder' : 'subtle'}\n >\n {suffix}\n </Text>\n </BaseBox>\n ) : null}\n {TrailingIcon ? (\n <BaseBox paddingRight=\"spacing.4\" display=\"flex\">\n {\n <TrailingIcon\n size=\"medium\"\n color={\n isDisabled\n ? 'surface.text.placeholder.lowContrast'\n : 'surface.text.subtle.lowContrast'\n }\n />\n }\n </BaseBox>\n ) : null}\n </BaseBox>\n );\n }\n\n return null;\n};\n"],"names":["getVisualContainerStyles","display","flexDirection","alignItems","alignSelf","getPrefixStyles","_ref","hasLeadingIcon","hasPrefix","paddingLeft","getInteractionElementStyles","_ref2","hasTrailingIcon","hasInteractionElement","hasSuffix","paddingRight","getSuffixStyles","_ref3","getInputVisualsToBeRendered","_ref4","leadingIcon","prefix","interactionElement","suffix","trailingIcon","Boolean","BaseInputVisuals","_ref5","LeadingIcon","TrailingIcon","isDisabled","_getInputVisualsToBeR","hasLeadingVisuals","hasTrailingVisuals","_jsxs","BaseBox","Object","assign","children","_jsx","size","color","Text","variant","weight","contrast","type"],"mappings":";;;;;;;;;;;;;AAYA,IAAMA,wBAAwB,CAAG,SAA3BA,wBAAwBA,EAAA,CAAA,OAGxB,CACJC,OAAO,CAAE,MAAM,CACfC,aAAa,CAAE,KAAK,CACpBC,UAAU,CAAE,QAAQ,CACpBC,SAAS,CAAE,QAC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E,eAAe,CAAfA,eAAe,CAAEC,qBAAqB,CAArBA,qBAAqB,CAAEC,SAAS,CAATA,SAAU,CAAC,CAAC,CACtFb,CAAAA,OAAO,CAAC,MAAM,CACdE,UAAU,CAAC,SAAS,CACpBC,SAAS,CAAC,SAAS,CAAAkC,QAAA,CAElBhB,kBAAkB,CAAA,CACZ,CAAC,CACR,IAAI,CACPR,SAAS,CACRyB,GAAA,CAACJ,OAAO,CAAAC,MAAA,CAAAC,MAAA,CAAKrB,EAAAA,CAAAA,eAAe,CAAC,CAAEJ,eAAe,CAAfA,eAAe,CAAEE,SAAS,CAATA,SAAU,CAAC,CAAC,EAAAwB,QAAA,CAC1DC,GAAA,CAACG,IAAI,EACHF,IAAI,CAAC,QAAQ,CACbG,OAAO,CAAC,MAAM,CACdC,MAAM,CAAC,SAAS,CAChBC,QAAQ,CAAC,KAAK,CACdC,IAAI,CAAEhB,UAAU,CAAG,aAAa,CAAG,QAAS,CAAAQ,QAAA,CAE3Cf,MAAM,CACH,CAAC,EACA,CAAC,CACR,IAAI,CACPM,YAAY,CACXU,GAAA,CAACJ,OAAO,CAACpB,CAAAA,YAAY,CAAC,WAAW,CAACd,OAAO,CAAC,MAAM,CAAAqC,QAAA,CAE5CC,GAAA,CAACV,YAAY,EACXW,IAAI,CAAC,QAAQ,CACbC,KAAK,CACHX,UAAU,CACN,sCAAsC,CACtC,iCACL,CACF,CAAC,CAEG,CAAC,CACR,IAAI,GACD,CAAC,CAEd,CAEA,OAAO,IAAI,CACb;;;;"}
1
+ {"version":3,"file":"BaseInputVisuals.js","sources":["../../../../../../src/components/Input/BaseInput/BaseInputVisuals.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport type { ReactElement } from 'react';\nimport type { BaseInputProps } from './BaseInput';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Text } from '~components/Typography';\nimport type { BaseBoxProps } from '~components/Box/BaseBox';\n\ntype InputVisuals = Pick<\n BaseInputProps,\n 'leadingIcon' | 'prefix' | 'interactionElement' | 'suffix' | 'trailingIcon' | 'isDisabled'\n>;\n\nconst getVisualContainerStyles = (): Pick<\n BaseBoxProps,\n 'display' | 'flexDirection' | 'alignItems' | 'alignSelf'\n> => ({\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n alignSelf: 'center',\n});\n\nconst getPrefixStyles = ({\n hasLeadingIcon,\n hasPrefix,\n}: {\n hasLeadingIcon: boolean;\n hasPrefix: boolean;\n}): Pick<BaseBoxProps, 'paddingLeft'> => {\n if (hasPrefix && hasLeadingIcon) {\n return {\n paddingLeft: 'spacing.2',\n };\n }\n\n if (hasPrefix && !hasLeadingIcon) {\n return {\n paddingLeft: 'spacing.4',\n };\n }\n\n return {\n paddingLeft: 'spacing.0',\n };\n};\n\nconst getInteractionElementStyles = ({\n hasTrailingIcon,\n hasInteractionElement,\n hasSuffix,\n}: {\n hasTrailingIcon: boolean;\n hasInteractionElement: boolean;\n hasSuffix: boolean;\n}): Pick<BaseBoxProps, 'paddingRight'> => {\n if (hasInteractionElement && (hasSuffix || hasTrailingIcon)) {\n return {\n paddingRight: 'spacing.2',\n };\n }\n\n if (hasInteractionElement && !hasSuffix && !hasTrailingIcon) {\n return {\n paddingRight: 'spacing.4',\n };\n }\n\n return {\n paddingRight: 'spacing.0',\n };\n};\n\nconst getSuffixStyles = ({\n hasTrailingIcon,\n hasSuffix,\n}: {\n hasTrailingIcon: boolean;\n hasSuffix: boolean;\n}): Pick<BaseBoxProps, 'paddingRight'> => {\n if (hasSuffix && hasTrailingIcon) {\n return {\n paddingRight: 'spacing.2',\n };\n }\n\n if (hasSuffix && !hasTrailingIcon) {\n return {\n paddingRight: 'spacing.4',\n };\n }\n\n return {\n paddingRight: 'spacing.0',\n };\n};\n\nexport const getInputVisualsToBeRendered = ({\n leadingIcon,\n prefix,\n interactionElement,\n suffix,\n trailingIcon,\n}: InputVisuals) => ({\n hasLeadingIcon: Boolean(leadingIcon),\n hasPrefix: Boolean(prefix),\n hasInteractionElement: Boolean(interactionElement),\n hasSuffix: Boolean(suffix),\n hasTrailingIcon: Boolean(trailingIcon),\n});\n\nexport const BaseInputVisuals = ({\n leadingIcon: LeadingIcon,\n prefix,\n interactionElement,\n suffix,\n trailingIcon: TrailingIcon,\n isDisabled,\n}: InputVisuals): ReactElement | null => {\n const {\n hasLeadingIcon,\n hasPrefix,\n hasInteractionElement,\n hasSuffix,\n hasTrailingIcon,\n } = getInputVisualsToBeRendered({\n leadingIcon: LeadingIcon,\n prefix,\n interactionElement,\n suffix,\n trailingIcon: TrailingIcon,\n });\n\n const hasLeadingVisuals = hasLeadingIcon || hasPrefix;\n const hasTrailingVisuals = hasInteractionElement || hasSuffix || hasTrailingIcon;\n\n if (hasLeadingVisuals) {\n return (\n <BaseBox {...getVisualContainerStyles()}>\n {LeadingIcon ? (\n <BaseBox paddingLeft=\"spacing.4\" display=\"flex\">\n <LeadingIcon\n size=\"medium\"\n color={isDisabled ? 'surface.icon.gray.disabled' : 'surface.icon.gray.subtle'}\n />\n </BaseBox>\n ) : null}\n {hasPrefix ? (\n <BaseBox {...getPrefixStyles({ hasLeadingIcon, hasPrefix })}>\n <Text\n size=\"medium\"\n variant=\"body\"\n weight=\"regular\"\n color={isDisabled ? 'surface.text.gray.disabled' : 'surface.text.gray.subtle'}\n >\n {prefix}\n </Text>\n </BaseBox>\n ) : null}\n </BaseBox>\n );\n }\n\n if (hasTrailingVisuals) {\n return (\n <BaseBox alignSelf=\"stretch\" alignItems=\"stretch\" {...getVisualContainerStyles()}>\n {hasInteractionElement ? (\n <BaseBox\n {...getInteractionElementStyles({ hasTrailingIcon, hasInteractionElement, hasSuffix })}\n display=\"flex\"\n alignItems=\"stretch\"\n alignSelf=\"stretch\"\n >\n {interactionElement}\n </BaseBox>\n ) : null}\n {hasSuffix ? (\n <BaseBox {...getSuffixStyles({ hasTrailingIcon, hasSuffix })}>\n <Text\n size=\"medium\"\n variant=\"body\"\n weight=\"regular\"\n color={isDisabled ? 'surface.text.gray.disabled' : 'surface.text.gray.subtle'}\n >\n {suffix}\n </Text>\n </BaseBox>\n ) : null}\n {TrailingIcon ? (\n <BaseBox paddingRight=\"spacing.4\" display=\"flex\">\n {\n <TrailingIcon\n size=\"medium\"\n color={\n isDisabled ? 'interactive.icon.gray.disabled' : 'interactive.icon.gray.muted'\n }\n />\n }\n </BaseBox>\n ) : null}\n </BaseBox>\n );\n }\n\n return null;\n};\n"],"names":["getVisualContainerStyles","display","flexDirection","alignItems","alignSelf","getPrefixStyles","_ref","hasLeadingIcon","hasPrefix","paddingLeft","getInteractionElementStyles","_ref2","hasTrailingIcon","hasInteractionElement","hasSuffix","paddingRight","getSuffixStyles","_ref3","getInputVisualsToBeRendered","_ref4","leadingIcon","prefix","interactionElement","suffix","trailingIcon","Boolean","BaseInputVisuals","_ref5","LeadingIcon","TrailingIcon","isDisabled","_getInputVisualsToBeR","hasLeadingVisuals","hasTrailingVisuals","_jsxs","BaseBox","Object","assign","children","_jsx","size","color","Text","variant","weight"],"mappings":";;;;;;;;;;;;;AAYA,IAAMA,wBAAwB,CAAG,SAA3BA,wBAAwBA,UAGxB,CACJC,OAAO,CAAE,MAAM,CACfC,aAAa,CAAE,KAAK,CACpBC,UAAU,CAAE,QAAQ,CACpBC,SAAS,CAAE,QACb,CAAC,EAAC,CAEF,IAAMC,eAAe,CAAG,SAAlBA,eAAeA,CAAAC,IAAA,CAMoB,CALvC,IAAAC,cAAc,CAAAD,IAAA,CAAdC,cAAc,CACdC,SAAS,CAAAF,IAAA,CAATE,SAAS,CAKT,GAAIA,SAAS,EAAID,cAAc,CAAE,CAC/B,OAAO,CACLE,WAAW,CAAE,WACf,CAAC,CACH,CAEA,GAAID,SAAS,EAAI,CAACD,cAAc,CAAE,CAChC,OAAO,CACLE,WAAW,CAAE,WACf,CAAC,CACH,CAEA,OAAO,CACLA,WAAW,CAAE,WACf,CAAC,CACH,CAAC,CAED,IAAMC,2BAA2B,CAAG,SAA9BA,2BAA2BA,CAAAC,KAAA,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