@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
@@ -13,8 +13,7 @@ import '../../tokens/global/motion.js';
13
13
  import { castNativeType } from '../../utils/platform/castUtils.js';
14
14
  import useTheme from '../BladeProvider/useTheme.js';
15
15
  import { jsxs, jsx } from 'react/jsx-runtime';
16
- import { Heading } from '../Typography/Heading/Heading.js';
17
- import '../Typography/Text/Text.js';
16
+ import { Text } from '../Typography/Text/Text.js';
18
17
  import '../Typography/Code/Code.js';
19
18
  import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
20
19
  import { metaAttribute } from '../../utils/metaAttribute/metaAttribute.native.js';
@@ -28,7 +27,7 @@ import 'react-native-gesture-handler';
28
27
  import '../BottomSheet/BottomSheetStack.js';
29
28
  import { makeAccessible } from '../../utils/makeAccessible/makeAccessible.native.js';
30
29
 
31
- var _AccordionButton=function _AccordionButton(_ref){var index=_ref.index,Icon=_ref.icon,children=_ref.children;var _useCollapsible=useCollapsible(),onExpandChange=_useCollapsible.onExpandChange,isExpanded=_useCollapsible.isExpanded,collapsibleBodyId=_useCollapsible.collapsibleBodyId;var _useAccordion=useAccordion(),showNumberPrefix=_useAccordion.showNumberPrefix,expandedIndex=_useAccordion.expandedIndex;var _useTheme=useTheme(),theme=_useTheme.theme;var toggleCollapse=function toggleCollapse(){return onExpandChange(!isExpanded);};var isItemExpanded=expandedIndex===index;var isPressed=useSharedValue(false);var duration=castNativeType(getTransitionDuration(theme));var easing=castNativeType(getTransitionEasing(theme));var activeBackgroundColor=useSharedValue(getBackgroundColor({theme:theme,isExpanded:isExpanded,isActive:true}));var inActiveBackgroundColor=useSharedValue(getBackgroundColor({theme:theme,isExpanded:isExpanded,isActive:false}));useEffect(function(){activeBackgroundColor.value=getBackgroundColor({theme:theme,isExpanded:isExpanded,isActive:true});inActiveBackgroundColor.value=getBackgroundColor({theme:theme,isExpanded:isExpanded,isActive:false});},[isExpanded,activeBackgroundColor,inActiveBackgroundColor,theme]);var animatedStyles=useAnimatedStyle(function(){return {backgroundColor:withTiming(isPressed.value?activeBackgroundColor.value:inActiveBackgroundColor.value,{duration:duration,easing:easing})};});var _showNumberPrefix=typeof index==='number'&&showNumberPrefix;var _index=_showNumberPrefix?jsxs(Heading,{size:"small",marginRight:"spacing.2",children:[index+1,"."]}):null;var a11yLabel=_showNumberPrefix?`${index+1}. ${children}`:children;var renderChildren=function renderChildren(_ref2){var pressed=_ref2.pressed;isPressed.value=pressed;var iconColor=pressed?'surface.action.icon.focus.lowContrast':'surface.action.icon.default.lowContrast';var _icon=Icon&&jsx(Icon,{size:"medium",color:iconColor,marginRight:"spacing.3",marginY:"spacing.2"});if(__DEV__){if(_index&&_icon){throwBladeError({message:"showNumberPrefix and icon shouldn't be used together",moduleName:'Accordion'});}}return jsxs(BaseBox,{display:"flex",flexDirection:"row",flex:1,justifyContent:"space-between",alignItems:"center",children:[jsxs(BaseBox,{display:"flex",flexDirection:"row",alignItems:"flex-start",marginRight:"spacing.5",flexShrink:1,children:[_index,_icon,jsx(Heading,{size:"small",children:children})]}),jsx(BaseBox,{children:jsx(CollapsibleChevronIcon,{color:iconColor,size:"large"})})]});};return jsx(StyledAccordionButton,Object.assign({isExpanded:isExpanded,onPress:toggleCollapse,style:animatedStyles},makeAccessible({role:'button',expanded:isItemExpanded,controls:collapsibleBodyId,label:a11yLabel}),metaAttribute({name:MetaConstants.AccordionButton}),{children:renderChildren}));};var AccordionButton=assignWithoutSideEffects(_AccordionButton,{componentId:MetaConstants.AccordionButton});
30
+ var _AccordionButton=function _AccordionButton(_ref){var index=_ref.index,Icon=_ref.icon,children=_ref.children;var _useCollapsible=useCollapsible(),onExpandChange=_useCollapsible.onExpandChange,isExpanded=_useCollapsible.isExpanded,collapsibleBodyId=_useCollapsible.collapsibleBodyId;var _useAccordion=useAccordion(),showNumberPrefix=_useAccordion.showNumberPrefix,expandedIndex=_useAccordion.expandedIndex;var _useTheme=useTheme(),theme=_useTheme.theme;var toggleCollapse=function toggleCollapse(){return onExpandChange(!isExpanded);};var isItemExpanded=expandedIndex===index;var isPressed=useSharedValue(false);var duration=castNativeType(getTransitionDuration(theme));var easing=castNativeType(getTransitionEasing(theme));var activeBackgroundColor=useSharedValue(getBackgroundColor({theme:theme,isExpanded:isExpanded,isActive:true}));var inActiveBackgroundColor=useSharedValue(getBackgroundColor({theme:theme,isExpanded:isExpanded,isActive:false}));useEffect(function(){activeBackgroundColor.value=getBackgroundColor({theme:theme,isExpanded:isExpanded,isActive:true});inActiveBackgroundColor.value=getBackgroundColor({theme:theme,isExpanded:isExpanded,isActive:false});},[isExpanded,activeBackgroundColor,inActiveBackgroundColor,theme]);var animatedStyles=useAnimatedStyle(function(){return {backgroundColor:withTiming(isPressed.value?activeBackgroundColor.value:inActiveBackgroundColor.value,{duration:duration,easing:easing})};});var _showNumberPrefix=typeof index==='number'&&showNumberPrefix;var _index=_showNumberPrefix?jsxs(Text,{size:"large",weight:"semibold",marginRight:"spacing.2",children:[index+1,"."]}):null;var a11yLabel=_showNumberPrefix?`${index+1}. ${children}`:children;var renderChildren=function renderChildren(_ref2){var pressed=_ref2.pressed;isPressed.value=pressed;var iconColor=pressed||isExpanded?'interactive.icon.gray.subtle':'interactive.icon.gray.muted';var _icon=Icon&&jsx(Icon,{size:"medium",color:"surface.icon.gray.muted",marginRight:"spacing.3",marginY:"spacing.2"});if(__DEV__){if(_index&&_icon){throwBladeError({message:"showNumberPrefix and icon shouldn't be used together",moduleName:'Accordion'});}}return jsxs(BaseBox,{display:"flex",flexDirection:"row",flex:1,justifyContent:"space-between",alignItems:"center",children:[jsxs(BaseBox,{display:"flex",flexDirection:"row",alignItems:"flex-start",marginRight:"spacing.5",flexShrink:1,children:[_index,_icon,jsx(Text,{size:"large",weight:"semibold",children:children})]}),jsx(BaseBox,{children:jsx(CollapsibleChevronIcon,{color:iconColor,size:"large"})})]});};return jsx(StyledAccordionButton,Object.assign({isExpanded:isExpanded,onPress:toggleCollapse,style:animatedStyles},makeAccessible({role:'button',expanded:isItemExpanded,controls:collapsibleBodyId,label:a11yLabel}),metaAttribute({name:MetaConstants.AccordionButton}),{children:renderChildren}));};var AccordionButton=assignWithoutSideEffects(_AccordionButton,{componentId:MetaConstants.AccordionButton});
32
31
 
33
32
  export { AccordionButton };
34
33
  //# sourceMappingURL=AccordionButton.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionButton.native.js","sources":["../../../../../src/components/Accordion/AccordionButton.native.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { useEffect } from 'react';\nimport type { PressableProps } from 'react-native';\nimport { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';\nimport { StyledAccordionButton } from './StyledAccordionButton.native';\nimport type { AccordionButtonProps } from './types';\nimport { useAccordion } from './AccordionContext';\nimport { getBackgroundColor, getTransitionDuration, getTransitionEasing } from './commonStyles';\nimport { Heading } from '~components/Typography';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { MetaConstants, metaAttribute } from '~utils/metaAttribute';\nimport { castNativeType } from '~utils';\nimport { useCollapsible } from '~components/Collapsible/CollapsibleContext';\nimport { CollapsibleChevronIcon } from '~components/Collapsible/CollapsibleChevronIcon';\nimport BaseBox from '~components/Box/BaseBox';\nimport { useTheme } from '~components/BladeProvider';\nimport type { IconProps } from '~components/Icons';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { throwBladeError } from '~utils/logger';\n\nconst _AccordionButton = ({ index, icon: Icon, children }: AccordionButtonProps): ReactElement => {\n const { onExpandChange, isExpanded, collapsibleBodyId } = useCollapsible();\n const { showNumberPrefix, expandedIndex } = useAccordion();\n const { theme } = useTheme();\n\n const toggleCollapse = (): void => onExpandChange(!isExpanded);\n const isItemExpanded = expandedIndex === index;\n\n const isPressed = useSharedValue(false);\n\n const duration = castNativeType(getTransitionDuration(theme));\n const easing = castNativeType(getTransitionEasing(theme));\n\n const activeBackgroundColor = useSharedValue(\n getBackgroundColor({ theme, isExpanded, isActive: true }),\n );\n const inActiveBackgroundColor = useSharedValue(\n getBackgroundColor({ theme, isExpanded, isActive: false }),\n );\n\n /**\n * `backgroundColor` is derived from `isExpanded` and pressed state.\n *\n * Since we can't directly access return values from JS functions (`getBackgroundColor`) on UI thread,\n * this effect updates the shared values for active / inactive states which are used by `animatedStyles`.\n */\n useEffect(() => {\n activeBackgroundColor.value = getBackgroundColor({ theme, isExpanded, isActive: true });\n inActiveBackgroundColor.value = getBackgroundColor({ theme, isExpanded, isActive: false });\n }, [isExpanded, activeBackgroundColor, inActiveBackgroundColor, theme]);\n\n const animatedStyles = useAnimatedStyle(() => ({\n backgroundColor: withTiming(\n isPressed.value ? activeBackgroundColor.value : inActiveBackgroundColor.value,\n {\n duration,\n easing,\n },\n ),\n }));\n\n const _showNumberPrefix = typeof index === 'number' && showNumberPrefix;\n\n const _index = _showNumberPrefix ? (\n <Heading size=\"small\" marginRight=\"spacing.2\">\n {index + 1}.\n </Heading>\n ) : null;\n\n const a11yLabel = _showNumberPrefix ? `${index + 1}. ${children}` : children;\n\n const renderChildren: PressableProps['children'] = ({ pressed }) => {\n isPressed.value = pressed;\n\n const iconColor: IconProps['color'] = pressed\n ? 'surface.action.icon.focus.lowContrast'\n : 'surface.action.icon.default.lowContrast';\n\n const _icon = Icon && (\n <Icon size=\"medium\" color={iconColor} marginRight=\"spacing.3\" marginY=\"spacing.2\" />\n );\n\n if (__DEV__) {\n if (_index && _icon) {\n throwBladeError({\n message: \"showNumberPrefix and icon shouldn't be used together\",\n moduleName: 'Accordion',\n });\n }\n }\n\n return (\n <BaseBox\n display=\"flex\"\n flexDirection=\"row\"\n flex={1}\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n <BaseBox\n display=\"flex\"\n flexDirection=\"row\"\n alignItems=\"flex-start\"\n /**\n * The `marginRight` is slightly larger here than web and the design spec (`spacing.4`),\n * because otherwise lengthy text sometimes comes too close to the rotating chevron icon\n * which doesn't look perfect\n */\n marginRight=\"spacing.5\"\n flexShrink={1}\n >\n {_index}\n {_icon}\n <Heading size=\"small\">{children}</Heading>\n </BaseBox>\n <BaseBox>\n <CollapsibleChevronIcon color={iconColor} size=\"large\" />\n </BaseBox>\n </BaseBox>\n );\n };\n\n return (\n <StyledAccordionButton\n isExpanded={isExpanded}\n onPress={toggleCollapse}\n style={animatedStyles}\n {...makeAccessible({\n role: 'button',\n expanded: isItemExpanded,\n controls: collapsibleBodyId,\n label: a11yLabel,\n })}\n {...metaAttribute({ name: MetaConstants.AccordionButton })}\n >\n {renderChildren}\n </StyledAccordionButton>\n );\n};\n\nconst AccordionButton = assignWithoutSideEffects(_AccordionButton, {\n componentId: MetaConstants.AccordionButton,\n});\n\nexport { AccordionButton };\n"],"names":["_AccordionButton","_ref","index","Icon","icon","children","_useCollapsible","useCollapsible","onExpandChange","isExpanded","collapsibleBodyId","_useAccordion","useAccordion","showNumberPrefix","expandedIndex","_useTheme","useTheme","theme","toggleCollapse","isItemExpanded","isPressed","useSharedValue","duration","castNativeType","getTransitionDuration","easing","getTransitionEasing","activeBackgroundColor","getBackgroundColor","isActive","inActiveBackgroundColor","useEffect","value","animatedStyles","useAnimatedStyle","backgroundColor","withTiming","_showNumberPrefix","_index","_jsxs","Heading","size","marginRight","a11yLabel","renderChildren","_ref2","pressed","iconColor","_icon","_jsx","color","marginY","__DEV__","throwBladeError","message","moduleName","BaseBox","display","flexDirection","flex","justifyContent","alignItems","flexShrink","CollapsibleChevronIcon","StyledAccordionButton","Object","assign","onPress","style","makeAccessible","role","expanded","controls","label","metaAttribute","name","MetaConstants","AccordionButton","assignWithoutSideEffects","componentId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMA,gBAAgB,CAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,CAA4E,CAAtE,IAAAC,KAAK,CAAAD,IAAA,CAALC,KAAK,CAAQC,IAAI,CAAAF,IAAA,CAAVG,IAAI,CAAQC,QAAQ,CAAAJ,IAAA,CAARI,QAAQ,CACrD,IAAAC,eAAA,CAA0DC,cAAc,EAAE,CAAlEC,cAAc,CAAAF,eAAA,CAAdE,cAAc,CAAEC,UAAU,CAAAH,eAAA,CAAVG,UAAU,CAAEC,iBAAiB,CAAAJ,eAAA,CAAjBI,iBAAiB,CACrD,IAAAC,aAAA,CAA4CC,YAAY,EAAE,CAAlDC,gBAAgB,CAAAF,aAAA,CAAhBE,gBAAgB,CAAEC,aAAa,CAAAH,aAAA,CAAbG,aAAa,CACvC,IAAAC,SAAA,CAAkBC,QAAQ,EAAE,CAApBC,KAAK,CAAAF,SAAA,CAALE,KAAK,CAEb,IAAMC,cAAc,CAAG,SAAjBA,cAAcA,UAAeV,cAAc,CAAC,CAACC,UAAU,CAAC,CAAA,CAAA,CAC9D,IAAMU,cAAc,CAAGL,aAAa,GAAKZ,KAAK,CAE9C,IAAMkB,SAAS,CAAGC,cAAc,CAAC,KAAK,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C,GAAA,CAACT,OAAO,CAACC,CAAAA,IAAI,CAAC,OAAO,CAAApC,QAAA,CAAEA,QAAQ,CAAU,CAAC,EACnC,CAAC,CACV4C,GAAA,CAACO,OAAO,CAAAnD,CAAAA,QAAA,CACN4C,GAAA,CAACc,sBAAsB,CAACb,CAAAA,KAAK,CAAEH,SAAU,CAACN,IAAI,CAAC,OAAO,CAAE,CAAC,CAClD,CAAC,CAAA,CACH,CAAC,CAEd,CAAC,CAED,OACEQ,GAAA,CAACe,qBAAqB,CAAAC,MAAA,CAAAC,MAAA,CACpBzD,CAAAA,UAAU,CAAEA,UAAW,CACvB0D,OAAO,CAAEjD,cAAe,CACxBkD,KAAK,CAAEnC,cAAe,CAAA,CAClBoC,cAAc,CAAC,CACjBC,IAAI,CAAE,QAAQ,CACdC,QAAQ,CAAEpD,cAAc,CACxBqD,QAAQ,CAAE9D,iBAAiB,CAC3B+D,KAAK,CAAE9B,SACT,CAAC,CAAC,CACE+B,aAAa,CAAC,CAAEC,IAAI,CAAEC,aAAa,CAACC,eAAgB,CAAC,CAAC,CAAA,CAAAxE,QAAA,CAEzDuC,cAAc,EACM,CAAC,CAE5B,CAAC,CAEK,IAAAiC,eAAe,CAAGC,wBAAwB,CAAC9E,gBAAgB,CAAE,CACjE+E,WAAW,CAAEH,aAAa,CAACC,eAC7B,CAAC;;;;"}
1
+ {"version":3,"file":"AccordionButton.native.js","sources":["../../../../../src/components/Accordion/AccordionButton.native.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { useEffect } from 'react';\nimport type { PressableProps } from 'react-native';\nimport { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';\nimport { StyledAccordionButton } from './StyledAccordionButton.native';\nimport type { AccordionButtonProps } from './types';\nimport { useAccordion } from './AccordionContext';\nimport { getBackgroundColor, getTransitionDuration, getTransitionEasing } from './commonStyles';\nimport { Text } from '~components/Typography';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { MetaConstants, metaAttribute } from '~utils/metaAttribute';\nimport { castNativeType } from '~utils';\nimport { useCollapsible } from '~components/Collapsible/CollapsibleContext';\nimport { CollapsibleChevronIcon } from '~components/Collapsible/CollapsibleChevronIcon';\nimport BaseBox from '~components/Box/BaseBox';\nimport { useTheme } from '~components/BladeProvider';\nimport type { IconProps } from '~components/Icons';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { throwBladeError } from '~utils/logger';\n\nconst _AccordionButton = ({ index, icon: Icon, children }: AccordionButtonProps): ReactElement => {\n const { onExpandChange, isExpanded, collapsibleBodyId } = useCollapsible();\n const { showNumberPrefix, expandedIndex } = useAccordion();\n const { theme } = useTheme();\n\n const toggleCollapse = (): void => onExpandChange(!isExpanded);\n const isItemExpanded = expandedIndex === index;\n\n const isPressed = useSharedValue(false);\n\n const duration = castNativeType(getTransitionDuration(theme));\n const easing = castNativeType(getTransitionEasing(theme));\n\n const activeBackgroundColor = useSharedValue(\n getBackgroundColor({ theme, isExpanded, isActive: true }),\n );\n const inActiveBackgroundColor = useSharedValue(\n getBackgroundColor({ theme, isExpanded, isActive: false }),\n );\n\n /**\n * `backgroundColor` is derived from `isExpanded` and pressed state.\n *\n * Since we can't directly access return values from JS functions (`getBackgroundColor`) on UI thread,\n * this effect updates the shared values for active / inactive states which are used by `animatedStyles`.\n */\n useEffect(() => {\n activeBackgroundColor.value = getBackgroundColor({ theme, isExpanded, isActive: true });\n inActiveBackgroundColor.value = getBackgroundColor({ theme, isExpanded, isActive: false });\n }, [isExpanded, activeBackgroundColor, inActiveBackgroundColor, theme]);\n\n const animatedStyles = useAnimatedStyle(() => ({\n backgroundColor: withTiming(\n isPressed.value ? activeBackgroundColor.value : inActiveBackgroundColor.value,\n {\n duration,\n easing,\n },\n ),\n }));\n\n const _showNumberPrefix = typeof index === 'number' && showNumberPrefix;\n\n const _index = _showNumberPrefix ? (\n <Text size=\"large\" weight=\"semibold\" marginRight=\"spacing.2\">\n {index + 1}.\n </Text>\n ) : null;\n\n const a11yLabel = _showNumberPrefix ? `${index + 1}. ${children}` : children;\n\n const renderChildren: PressableProps['children'] = ({ pressed }) => {\n isPressed.value = pressed;\n\n const iconColor: IconProps['color'] =\n pressed || isExpanded ? 'interactive.icon.gray.subtle' : 'interactive.icon.gray.muted';\n\n const _icon = Icon && (\n <Icon\n size=\"medium\"\n color=\"surface.icon.gray.muted\"\n marginRight=\"spacing.3\"\n marginY=\"spacing.2\"\n />\n );\n\n if (__DEV__) {\n if (_index && _icon) {\n throwBladeError({\n message: \"showNumberPrefix and icon shouldn't be used together\",\n moduleName: 'Accordion',\n });\n }\n }\n\n return (\n <BaseBox\n display=\"flex\"\n flexDirection=\"row\"\n flex={1}\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n <BaseBox\n display=\"flex\"\n flexDirection=\"row\"\n alignItems=\"flex-start\"\n /**\n * The `marginRight` is slightly larger here than web and the design spec (`spacing.4`),\n * because otherwise lengthy text sometimes comes too close to the rotating chevron icon\n * which doesn't look perfect\n */\n marginRight=\"spacing.5\"\n flexShrink={1}\n >\n {_index}\n {_icon}\n <Text size=\"large\" weight=\"semibold\">\n {children}\n </Text>\n </BaseBox>\n <BaseBox>\n <CollapsibleChevronIcon color={iconColor} size=\"large\" />\n </BaseBox>\n </BaseBox>\n );\n };\n\n return (\n <StyledAccordionButton\n isExpanded={isExpanded}\n onPress={toggleCollapse}\n style={animatedStyles}\n {...makeAccessible({\n role: 'button',\n expanded: isItemExpanded,\n controls: collapsibleBodyId,\n label: a11yLabel,\n })}\n {...metaAttribute({ name: MetaConstants.AccordionButton })}\n >\n {renderChildren}\n </StyledAccordionButton>\n );\n};\n\nconst AccordionButton = assignWithoutSideEffects(_AccordionButton, {\n componentId: MetaConstants.AccordionButton,\n});\n\nexport { AccordionButton };\n"],"names":["_AccordionButton","_ref","index","Icon","icon","children","_useCollapsible","useCollapsible","onExpandChange","isExpanded","collapsibleBodyId","_useAccordion","useAccordion","showNumberPrefix","expandedIndex","_useTheme","useTheme","theme","toggleCollapse","isItemExpanded","isPressed","useSharedValue","duration","castNativeType","getTransitionDuration","easing","getTransitionEasing","activeBackgroundColor","getBackgroundColor","isActive","inActiveBackgroundColor","useEffect","value","animatedStyles","useAnimatedStyle","backgroundColor","withTiming","_showNumberPrefix","_index","_jsxs","Text","size","weight","marginRight","a11yLabel","renderChildren","_ref2","pressed","iconColor","_icon","_jsx","color","marginY","__DEV__","throwBladeError","message","moduleName","BaseBox","display","flexDirection","flex","justifyContent","alignItems","flexShrink","CollapsibleChevronIcon","StyledAccordionButton","Object","assign","onPress","style","makeAccessible","role","expanded","controls","label","metaAttribute","name","MetaConstants","AccordionButton","assignWithoutSideEffects","componentId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMA,gBAAgB,CAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,CAA4E,CAAA,IAAtEC,KAAK,CAAAD,IAAA,CAALC,KAAK,CAAQC,IAAI,CAAAF,IAAA,CAAVG,IAAI,CAAQC,QAAQ,CAAAJ,IAAA,CAARI,QAAQ,CACrD,IAAAC,eAAA,CAA0DC,cAAc,EAAE,CAAlEC,cAAc,CAAAF,eAAA,CAAdE,cAAc,CAAEC,UAAU,CAAAH,eAAA,CAAVG,UAAU,CAAEC,iBAAiB,CAAAJ,eAAA,CAAjBI,iBAAiB,CACrD,IAAAC,aAAA,CAA4CC,YAAY,EAAE,CAAlDC,gBAAgB,CAAAF,aAAA,CAAhBE,gBAAgB,CAAEC,aAAa,CAAAH,aAAA,CAAbG,aAAa,CACvC,IAAAC,SAAA,CAAkBC,QAAQ,EAAE,CAApBC,KAAK,CAAAF,SAAA,CAALE,KAAK,CAEb,IAAMC,cAAc,CAAG,SAAjBA,cAAcA,UAAeV,cAAc,CAAC,CAACC,UAAU,CAAC,CAC9D,CAAA,CAAA,IAAMU,cAAc,CAAGL,aAAa,GAAKZ,KAAK,CAE9C,IAAMkB,SAAS,CAAGC,cAAc,CAAC,KAAK,CAAC,CAEvC,IAAMC,Q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ACNW,KAAK,CACNC,GAAA,CAACV,IAAI,CAACC,CAAAA,IAAI,CAAC,OAAO,CAACC,MAAM,CAAC,UAAU,CAAArC,QAAA,CACjCA,QAAQ,CACL,CAAC,CACA,CAAA,CAAC,CACV6C,GAAA,CAACO,OAAO,CAAA,CAAApD,QAAA,CACN6C,GAAA,CAACc,sBAAsB,CAAA,CAACb,KAAK,CAAEH,SAAU,CAACP,IAAI,CAAC,OAAO,CAAE,CAAC,CAClD,CAAC,CACH,CAAA,CAAC,CAEd,CAAC,CAED,OACES,GAAA,CAACe,qBAAqB,CAAAC,MAAA,CAAAC,MAAA,CAAA,CACpB1D,UAAU,CAAEA,UAAW,CACvB2D,OAAO,CAAElD,cAAe,CACxBmD,KAAK,CAAEpC,cAAe,EAClBqC,cAAc,CAAC,CACjBC,IAAI,CAAE,QAAQ,CACdC,QAAQ,CAAErD,cAAc,CACxBsD,QAAQ,CAAE/D,iBAAiB,CAC3BgE,KAAK,CAAE9B,SACT,CAAC,CAAC,CACE+B,aAAa,CAAC,CAAEC,IAAI,CAAEC,aAAa,CAACC,eAAgB,CAAC,CAAC,CAAA,CAAAzE,QAAA,CAEzDwC,cAAc,EACM,CAAC,CAE5B,CAAC,CAEK,IAAAiC,eAAe,CAAGC,wBAAwB,CAAC/E,gBAAgB,CAAE,CACjEgF,WAAW,CAAEH,aAAa,CAACC,eAC7B,CAAC;;;;"}
@@ -22,7 +22,7 @@ import '../Collapsible/CollapsibleButton.js';
22
22
  import { CollapsibleBody } from '../Collapsible/CollapsibleBody.js';
23
23
  import { makeAccessible } from '../../utils/makeAccessible/makeAccessible.native.js';
24
24
 
25
- var BLANK_SPACE=' ';var reactNativeMultilineTextOverflowFix=jsx(BaseBox,Object.assign({},makeAccessible({hidden:true}),{children:jsx(Text,{children:BLANK_SPACE})}));var AccordionItem=function AccordionItem(_ref){var title=_ref.title,description=_ref.description,icon=_ref.icon,children=_ref.children,_index=_ref._index,testID=_ref.testID;var _useAccordion=useAccordion(),expandedIndex=_useAccordion.expandedIndex,onExpandChange=_useAccordion.onExpandChange,defaultExpandedIndex=_useAccordion.defaultExpandedIndex;var isExpanded=expandedIndex===_index;var isDefaultExpanded=defaultExpandedIndex===_index;var _description=description&&jsx(Text,{type:"subtle",children:description});var handleExpandChange=function handleExpandChange(_ref2){var isExpanded=_ref2.isExpanded;if(isExpanded&&typeof _index!=='undefined'){onExpandChange(_index);}else {onExpandChange(-1);}};var collapsibleBodyContent=isReactNative()?jsxs(BaseBox,{marginX:"spacing.5",children:[_description,jsx(BaseBox,{marginTop:description&&children?'spacing.5':'spacing.0',children:children}),reactNativeMultilineTextOverflowFix]}):jsxs(BaseBox,{display:"flex",flexDirection:"column",gap:"spacing.5",marginBottom:"spacing.5",marginX:"spacing.5",children:[_description,children]});return jsxs(BaseBox,Object.assign({},metaAttribute({name:MetaConstants.AccordionItem,testID:testID}),{children:[jsxs(Collapsible,{isExpanded:isExpanded,defaultIsExpanded:isDefaultExpanded,onExpandChange:handleExpandChange,_shouldApplyWidthRestrictions:false,children:[jsx(AccordionButton,{index:_index,icon:icon,children:title}),jsx(CollapsibleBody,{width:isReactNative()?'100%':undefined,children:collapsibleBodyContent})]}),jsx(Divider,{})]}));};
25
+ var BLANK_SPACE=' ';var reactNativeMultilineTextOverflowFix=jsx(BaseBox,Object.assign({},makeAccessible({hidden:true}),{children:jsx(Text,{children:BLANK_SPACE})}));var AccordionItem=function AccordionItem(_ref){var title=_ref.title,description=_ref.description,icon=_ref.icon,children=_ref.children,_index=_ref._index,testID=_ref.testID;var _useAccordion=useAccordion(),expandedIndex=_useAccordion.expandedIndex,onExpandChange=_useAccordion.onExpandChange,defaultExpandedIndex=_useAccordion.defaultExpandedIndex;var isExpanded=expandedIndex===_index;var isDefaultExpanded=defaultExpandedIndex===_index;var _description=description&&jsx(Text,{color:"interactive.text.gray.subtle",children:description});var handleExpandChange=function handleExpandChange(_ref2){var isExpanded=_ref2.isExpanded;if(isExpanded&&typeof _index!=='undefined'){onExpandChange(_index);}else {onExpandChange(-1);}};var collapsibleBodyContent=isReactNative()?jsxs(BaseBox,{marginX:"spacing.5",children:[_description,jsx(BaseBox,{marginTop:description&&children?'spacing.5':'spacing.0',children:children}),reactNativeMultilineTextOverflowFix]}):jsxs(BaseBox,{display:"flex",flexDirection:"column",gap:"spacing.5",marginBottom:"spacing.5",marginX:"spacing.5",children:[_description,children]});return jsxs(BaseBox,Object.assign({},metaAttribute({name:MetaConstants.AccordionItem,testID:testID}),{children:[jsxs(Collapsible,{isExpanded:isExpanded,defaultIsExpanded:isDefaultExpanded,onExpandChange:handleExpandChange,_shouldApplyWidthRestrictions:false,children:[jsx(AccordionButton,{index:_index,icon:icon,children:title}),jsx(CollapsibleBody,{width:isReactNative()?'100%':undefined,children:collapsibleBodyContent})]}),jsx(Divider,{})]}));};
26
26
 
27
27
  export { AccordionItem };
28
28
  //# sourceMappingURL=AccordionItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.js","sources":["../../../../../src/components/Accordion/AccordionItem.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\nimport { AccordionButton } from './AccordionButton';\nimport { useAccordion } from './AccordionContext';\nimport { Divider } from '~components/Divider';\nimport { BaseBox } from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport { Text } from '~components/Typography';\nimport { MetaConstants, metaAttribute } from '~utils/metaAttribute';\nimport { isReactNative } from '~utils';\nimport { Collapsible } from '~components/Collapsible/Collapsible';\nimport { CollapsibleBody } from '~components/Collapsible';\nimport type { TestID } from '~utils/types';\nimport { makeAccessible } from '~utils/makeAccessible';\n\ntype AccordionItemProps = {\n /**\n * Title text content\n */\n title: string;\n\n /**\n * Body text content\n */\n description?: string;\n\n /**\n * Renders a Blade icon as title prefix (requires `showNumberPrefix={false}`)\n */\n icon?: IconComponent;\n\n /**\n * Slot, renders any custom content\n */\n children?: ReactNode;\n\n /**\n * **Internal:** used for determining numbering, you don't need to pass this,\n * instead pass `showNumberPrefix` to root `Accordion`\n */\n _index?: number;\n} & TestID;\n\nconst BLANK_SPACE = ' ';\n\n/**\n * On React Native if the `AccordionItem` has a lengthy description which renders a `Text` spanning multiple lines,\n * it sometimes messes up the layout calculation (it thinks of multiline as a single line before flowing in the UI).\n * And during the expanding / collapsing animation, text reflows causing words to jump around across lines.\n *\n * Rendering a blank `Text` at the end seems to fix all this 🤯\n */\nconst reactNativeMultilineTextOverflowFix = (\n // make this hidden from screen readers\n <BaseBox {...makeAccessible({ hidden: true })}>\n <Text>{BLANK_SPACE}</Text>\n </BaseBox>\n);\n\nconst AccordionItem = ({\n title,\n description,\n icon,\n children,\n _index,\n testID,\n}: AccordionItemProps): ReactElement => {\n const { expandedIndex, onExpandChange, defaultExpandedIndex } = useAccordion();\n const isExpanded = expandedIndex === _index;\n const isDefaultExpanded = defaultExpandedIndex === _index;\n\n const _description = description && <Text type=\"subtle\">{description}</Text>;\n const handleExpandChange = ({ isExpanded }: { isExpanded: boolean }): void => {\n if (isExpanded && typeof _index !== 'undefined') {\n onExpandChange(_index);\n } else {\n onExpandChange(-1);\n }\n };\n\n const collapsibleBodyContent = isReactNative() ? (\n <BaseBox marginX=\"spacing.5\">\n {_description}\n <BaseBox marginTop={description && children ? 'spacing.5' : 'spacing.0'}>{children}</BaseBox>\n {reactNativeMultilineTextOverflowFix}\n </BaseBox>\n ) : (\n <BaseBox\n display=\"flex\"\n flexDirection=\"column\"\n gap=\"spacing.5\"\n marginBottom=\"spacing.5\"\n marginX=\"spacing.5\"\n >\n {_description}\n {children}\n </BaseBox>\n );\n\n return (\n <BaseBox {...metaAttribute({ name: MetaConstants.AccordionItem, testID })}>\n <Collapsible\n isExpanded={isExpanded}\n defaultIsExpanded={isDefaultExpanded}\n onExpandChange={handleExpandChange}\n // Accordion has its own width restrictions\n _shouldApplyWidthRestrictions={false}\n >\n <AccordionButton index={_index} icon={icon}>\n {title}\n </AccordionButton>\n <CollapsibleBody\n // Just React Native things, need this 100% so collapsed content flows correctly inside Accordion\n width={isReactNative() ? '100%' : undefined}\n >\n {collapsibleBodyContent}\n </CollapsibleBody>\n </Collapsible>\n <Divider />\n </BaseBox>\n );\n};\n\nexport type { AccordionItemProps };\nexport { AccordionItem };\n"],"names":["BLANK_SPACE","reactNativeMultilineTextOverflowFix","_jsx","BaseBox","Object","assign","makeAccessible","hidden","children","Text","AccordionItem","_ref","title","description","icon","_index","testID","_useAccordion","useAccordion","expandedIndex","onExpandChange","defaultExpandedIndex","isExpanded","isDefaultExpanded","_description","type","handleExpandChange","_ref2","collapsibleBodyContent","isReactNative","_jsxs","marginX","marginTop","display","flexDirection","gap","marginBottom","metaAttribute","name","MetaConstants","Collapsible","defaultIsExpanded","_shouldApplyWidthRestrictions","AccordionButton","index","CollapsibleBody","width","undefined","Divider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA0CA,IAAMA,WAAW,CAAG,GAAG,CASvB,IAAMC,mCAAmC,CAEvCC,GAAA,CAACC,OAAO,CAAAC,MAAA,CAAAC,MAAA,CAAA,EAAA,CAAKC,cAAc,CAAC,CAAEC,MAAM,CAAE,IAAK,CAAC,CAAC,CAAAC,CAAAA,QAAA,CAC3CN,GAAA,CAACO,IAAI,CAAA,CAAAD,QAAA,CAAER,WAAW,CAAO,CAAC,EACnB,CACV,CAEK,IAAAU,aAAa,CAAG,SAAhBA,aAAaA,CAAAC,IAAA,CAOqB,KANtCC,KAAK,CAAAD,IAAA,CAALC,KAAK,CACLC,WAAW,CAAAF,IAAA,CAAXE,WAAW,CACXC,IAAI,CAAAH,IAAA,CAAJG,IAAI,CACJN,QAAQ,CAAAG,IAAA,CAARH,QAAQ,CACRO,MAAM,CAAAJ,IAAA,CAANI,MAAM,CACNC,MAAM,CAAAL,IAAA,CAANK,MAAM,CAEN,IAAAC,aAAA,CAAgEC,YAAY,EAAE,CAAtEC,aAAa,CAAAF,aAAA,CAAbE,aAAa,CAAEC,cAAc,CAAAH,aAAA,CAAdG,cAAc,CAAEC,oBAAoB,CAAAJ,aAA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A,CAAA,CACvEsB,IAAA,CAACU,WAAW,EACVlB,UAAU,CAAEA,UAAW,CACvBmB,iBAAiB,CAAElB,iBAAkB,CACrCH,cAAc,CAAEM,kBAAmB,CAEnCgB,6BAA6B,CAAE,KAAM,CAAAlC,QAAA,CAErCN,CAAAA,GAAA,CAACyC,eAAe,CAAA,CAACC,KAAK,CAAE7B,MAAO,CAACD,IAAI,CAAEA,IAAK,CAAAN,QAAA,CACxCI,KAAK,CACS,CAAC,CAClBV,GAAA,CAAC2C,eAAe,CAEdC,CAAAA,KAAK,CAAEjB,aAAa,EAAE,CAAG,MAAM,CAAGkB,SAAU,CAAAvC,QAAA,CAE3CoB,sBAAsB,CACR,CAAC,CAAA,CACP,CAAC,CACd1B,GAAA,CAAC8C,OAAO,GAAE,CAAC,CAAA,CAAA,CACJ,CAAC,CAEd;;;;"}
1
+ {"version":3,"file":"AccordionItem.js","sources":["../../../../../src/components/Accordion/AccordionItem.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\nimport { AccordionButton } from './AccordionButton';\nimport { useAccordion } from './AccordionContext';\nimport { Divider } from '~components/Divider';\nimport { BaseBox } from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport { Text } from '~components/Typography';\nimport { MetaConstants, metaAttribute } from '~utils/metaAttribute';\nimport { isReactNative } from '~utils';\nimport { Collapsible } from '~components/Collapsible/Collapsible';\nimport { CollapsibleBody } from '~components/Collapsible';\nimport type { TestID } from '~utils/types';\nimport { makeAccessible } from '~utils/makeAccessible';\n\ntype AccordionItemProps = {\n /**\n * Title text content\n */\n title: string;\n\n /**\n * Body text content\n */\n description?: string;\n\n /**\n * Renders a Blade icon as title prefix (requires `showNumberPrefix={false}`)\n */\n icon?: IconComponent;\n\n /**\n * Slot, renders any custom content\n */\n children?: ReactNode;\n\n /**\n * **Internal:** used for determining numbering, you don't need to pass this,\n * instead pass `showNumberPrefix` to root `Accordion`\n */\n _index?: number;\n} & TestID;\n\nconst BLANK_SPACE = ' ';\n\n/**\n * On React Native if the `AccordionItem` has a lengthy description which renders a `Text` spanning multiple lines,\n * it sometimes messes up the layout calculation (it thinks of multiline as a single line before flowing in the UI).\n * And during the expanding / collapsing animation, text reflows causing words to jump around across lines.\n *\n * Rendering a blank `Text` at the end seems to fix all this 🤯\n */\nconst reactNativeMultilineTextOverflowFix = (\n // make this hidden from screen readers\n <BaseBox {...makeAccessible({ hidden: true })}>\n <Text>{BLANK_SPACE}</Text>\n </BaseBox>\n);\n\nconst AccordionItem = ({\n title,\n description,\n icon,\n children,\n _index,\n testID,\n}: AccordionItemProps): ReactElement => {\n const { expandedIndex, onExpandChange, defaultExpandedIndex } = useAccordion();\n const isExpanded = expandedIndex === _index;\n const isDefaultExpanded = defaultExpandedIndex === _index;\n\n const _description = description && (\n <Text color=\"interactive.text.gray.subtle\">{description}</Text>\n );\n const handleExpandChange = ({ isExpanded }: { isExpanded: boolean }): void => {\n if (isExpanded && typeof _index !== 'undefined') {\n onExpandChange(_index);\n } else {\n onExpandChange(-1);\n }\n };\n\n const collapsibleBodyContent = isReactNative() ? (\n <BaseBox marginX=\"spacing.5\">\n {_description}\n <BaseBox marginTop={description && children ? 'spacing.5' : 'spacing.0'}>{children}</BaseBox>\n {reactNativeMultilineTextOverflowFix}\n </BaseBox>\n ) : (\n <BaseBox\n display=\"flex\"\n flexDirection=\"column\"\n gap=\"spacing.5\"\n marginBottom=\"spacing.5\"\n marginX=\"spacing.5\"\n >\n {_description}\n {children}\n </BaseBox>\n );\n\n return (\n <BaseBox {...metaAttribute({ name: MetaConstants.AccordionItem, testID })}>\n <Collapsible\n isExpanded={isExpanded}\n defaultIsExpanded={isDefaultExpanded}\n onExpandChange={handleExpandChange}\n // Accordion has its own width restrictions\n _shouldApplyWidthRestrictions={false}\n >\n <AccordionButton index={_index} icon={icon}>\n {title}\n </AccordionButton>\n <CollapsibleBody\n // Just React Native things, need this 100% so collapsed content flows correctly inside Accordion\n width={isReactNative() ? '100%' : undefined}\n >\n {collapsibleBodyContent}\n </CollapsibleBody>\n </Collapsible>\n <Divider />\n </BaseBox>\n );\n};\n\nexport type { AccordionItemProps };\nexport { AccordionItem };\n"],"names":["BLANK_SPACE","reactNativeMultilineTextOverflowFix","_jsx","BaseBox","Object","assign","makeAccessible","hidden","children","Text","AccordionItem","_ref","title","description","icon","_index","testID","_useAccordion","useAccordion","expandedIndex","onExpandChange","defaultExpandedIndex","isExpanded","isDefaultExpanded","_description","color","handleExpandChange","_ref2","collapsibleBodyContent","isReactNative","_jsxs","marginX","marginTop","display","flexDirection","gap","marginBottom","metaAttribute","name","MetaConstants","Collapsible","defaultIsExpanded","_shouldApplyWidthRestrictions","AccordionButton","index","CollapsibleBody","width","undefined","Divider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA0CA,IAAMA,WAAW,CAAG,GAAG,CASvB,IAAMC,mCAAmC,CAEvCC,GAAA,CAACC,OAAO,CAAAC,MAAA,CAAAC,MAAA,CAAA,EAAA,CAAKC,cAAc,CAAC,CAAEC,MAAM,CAAE,IAAK,CAAC,CAAC,CAAAC,CAAAA,QAAA,CAC3CN,GAAA,CAACO,IAAI,CAAA,CAAAD,QAAA,CAAER,WAAW,CAAO,CAAC,EACnB,CACV,CAEK,IAAAU,aAAa,CAAG,SAAhBA,aAAaA,CAAAC,IAAA,CAOqB,KANtCC,KAAK,CAAAD,IAAA,CAALC,KAAK,CACLC,WAAW,CAAAF,IAAA,CAAXE,WAAW,CACXC,IAAI,CAAAH,IAAA,CAAJG,IAAI,CACJN,QAAQ,CAAAG,IAAA,CAARH,QAAQ,CACRO,MAAM,CAAAJ,IAAA,CAANI,MAAM,CACNC,MAAM,CAAAL,IAAA,CAANK,MAAM,CAEN,IAAAC,aAAA,CAAgEC,YAAY,EAAE,CAAtEC,aAAa,CAAAF,aAAA,CAAbE,aAAa,CAAEC,cAAc,CAAAH,aAAA,CAAdG,cAAc,CAAEC,oBAAoB,CAAAJ,aAAA,CAApBI,oBAAoB,CAC3D,IAA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,WAAW,EACVlB,UAAU,CAAEA,UAAW,CACvBmB,iBAAiB,CAAElB,iBAAkB,CACrCH,cAAc,CAAEM,kBAAmB,CAEnCgB,6BAA6B,CAAE,KAAM,CAAAlC,QAAA,CAErCN,CAAAA,GAAA,CAACyC,eAAe,CAAA,CAACC,KAAK,CAAE7B,MAAO,CAACD,IAAI,CAAEA,IAAK,CAAAN,QAAA,CACxCI,KAAK,CACS,CAAC,CAClBV,GAAA,CAAC2C,eAAe,CAEdC,CAAAA,KAAK,CAAEjB,aAAa,EAAE,CAAG,MAAM,CAAGkB,SAAU,CAAAvC,QAAA,CAE3CoB,sBAAsB,CACR,CAAC,CAAA,CACP,CAAC,CACd1B,GAAA,CAAC8C,OAAO,GAAE,CAAC,CAAA,CAAA,CACJ,CAAC,CAEd;;;;"}
@@ -4,7 +4,7 @@ import 'react';
4
4
  import { makeMotionTime } from '../../utils/makeMotionTime/makeMotionTime.native.js';
5
5
  import '../BladeProvider/useTheme.js';
6
6
 
7
- var getTransitionDuration=function getTransitionDuration(theme){return makeMotionTime(theme.motion.duration['2xquick']);};var getTransitionEasing=function getTransitionEasing(theme){return theme.motion.easing.standard.effective;};var getBackgroundColor=function getBackgroundColor(_ref){var theme=_ref.theme,isExpanded=_ref.isExpanded,isActive=_ref.isActive;var gray=theme.colors.brand.gray;if(isActive){if(isExpanded){return gray.a100.lowContrast;}return gray.a50.lowContrast;}if(isExpanded){return gray.a50.lowContrast;}var TRANSPARENT='hsla(0, 0%, 100%, 0)';return TRANSPARENT;};var getCommonAccordionButtonStyles=function getCommonAccordionButtonStyles(props){var theme=props.theme;return {padding:theme.spacing[5],display:'flex',flexDirection:'row',alignItems:'center',justifyContent:'space-between'};};
7
+ var getTransitionDuration=function getTransitionDuration(theme){return makeMotionTime(theme.motion.duration['2xquick']);};var getTransitionEasing=function getTransitionEasing(theme){return theme.motion.easing.standard.effective;};var getBackgroundColor=function getBackgroundColor(_ref){var theme=_ref.theme,isExpanded=_ref.isExpanded,isActive=_ref.isActive;var gray=theme.colors.interactive.background.gray;if(isActive){return gray.faded;}if(isExpanded){return gray.default;}var TRANSPARENT='hsla(0, 0%, 100%, 0)';return TRANSPARENT;};var getCommonAccordionButtonStyles=function getCommonAccordionButtonStyles(props){var theme=props.theme;return {padding:theme.spacing[5],display:'flex',flexDirection:'row',alignItems:'center',justifyContent:'space-between'};};
8
8
 
9
9
  export { getBackgroundColor, getCommonAccordionButtonStyles, getTransitionDuration, getTransitionEasing };
10
10
  //# sourceMappingURL=commonStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commonStyles.js","sources":["../../../../../src/components/Accordion/commonStyles.ts"],"sourcesContent":["import type { CSSObject, StyledProps } from 'styled-components';\nimport type { StyledAccordionButtonProps } from './types';\nimport type { Theme } from '~components/BladeProvider';\nimport { makeMotionTime } from '~utils';\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nconst getTransitionDuration = (theme: Theme) => makeMotionTime(theme.motion.duration['2xquick']);\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nconst getTransitionEasing = (theme: Theme) => theme.motion.easing.standard.effective;\n\nconst getBackgroundColor = ({\n theme,\n isExpanded,\n isActive,\n}: {\n theme: Theme;\n isExpanded: boolean;\n isActive: boolean;\n}): string => {\n const { gray } = theme.colors.brand;\n\n if (isActive) {\n if (isExpanded) {\n return gray.a100.lowContrast;\n }\n return gray.a50.lowContrast;\n }\n\n if (isExpanded) {\n return gray.a50.lowContrast;\n }\n\n const TRANSPARENT = 'hsla(0, 0%, 100%, 0)';\n return TRANSPARENT;\n};\n\nconst getCommonAccordionButtonStyles = (\n props: StyledProps<StyledAccordionButtonProps>,\n): CSSObject => {\n const { theme } = props;\n\n return {\n padding: theme.spacing[5],\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n };\n};\n\nexport {\n getTransitionDuration,\n getTransitionEasing,\n getBackgroundColor,\n getCommonAccordionButtonStyles,\n};\n"],"names":["getTransitionDuration","theme","makeMotionTime","motion","duration","getTransitionEasing","easing","standard","effective","getBackgroundColor","_ref","isExpanded","isActive","gray","colors","brand","a100","lowContrast","a50","TRANSPARENT","getCommonAccordionButtonStyles","props","padding","spacing","display","flexDirection","alignItems","justifyContent"],"mappings":";;;;;;AAMM,IAAAA,qBAAqB,CAAG,SAAxBA,qBAAqBA,CAAIC,KAAY,CAAK,CAAA,OAAAC,cAAc,CAACD,KAAK,CAACE,MAAM,CAACC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAA,EAG1F,IAAAC,mBAAmB,CAAG,SAAtBA,mBAAmBA,CAAIJ,KAAY,SAAKA,KAAK,CAACE,MAAM,CAACG,MAAM,CAACC,QAAQ,CAACC,SAAS,CAEpF,EAAM,IAAAC,kBAAkB,CAAG,SAArBA,kBAAkBA,CAAAC,IAAA,CAQV,KAPZT,KAAK,CAAAS,IAAA,CAALT,KAAK,CACLU,UAAU,CAAAD,IAAA,CAAVC,UAAU,CACVC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CAMR,IAAQC,IAAI,CAAKZ,KAAK,CAACa,MAAM,CAACC,KAAK,CAA3BF,IAAI,CAEZ,GAAID,QAAQ,CAAE,CACZ,GAAID,UAAU,CAAE,CACd,OAAOE,IAAI,CAACG,IAAI,CAACC,WAAW,CAC9B,CACA,OAAOJ,IAAI,CAACK,GAAG,CAACD,WAAW,CAC7B,CAEA,GAAIN,UAAU,CAAE,CACd,OAAOE,IAAI,CAACK,GAAG,CAACD,WAAW,CAC7B,CAEA,IAAME,WAAW,CAAG,sBAAsB,CAC1C,OAAOA,WAAW,CACpB,EAEM,IAAAC,8BAA8B,CAAG,SAAjCA,8BAA8BA,CAClCC,KAA8C,CAChC,CACd,IAAQpB,KAAK,CAAKoB,KAAK,CAAfpB,KAAK,CAEb,OAAO,CACLqB,OAAO,CAAErB,KAAK,CAACsB,OAAO,CAAC,CAAC,CAAC,CACzBC,OAAO,CAAE,MAAM,CACfC,aAAa,CAAE,KAAK,CACpBC,UAAU,CAAE,QAAQ,CACpBC,cAAc,CAAE,eAClB,CAAC,CACH;;;;"}
1
+ {"version":3,"file":"commonStyles.js","sources":["../../../../../src/components/Accordion/commonStyles.ts"],"sourcesContent":["import type { CSSObject, StyledProps } from 'styled-components';\nimport type { StyledAccordionButtonProps } from './types';\nimport type { Theme } from '~components/BladeProvider';\nimport { makeMotionTime } from '~utils';\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nconst getTransitionDuration = (theme: Theme) => makeMotionTime(theme.motion.duration['2xquick']);\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nconst getTransitionEasing = (theme: Theme) => theme.motion.easing.standard.effective;\n\nconst getBackgroundColor = ({\n theme,\n isExpanded,\n isActive,\n}: {\n theme: Theme;\n isExpanded: boolean;\n isActive: boolean;\n}): string => {\n const { gray } = theme.colors.interactive.background;\n\n if (isActive) {\n return gray.faded;\n }\n\n if (isExpanded) {\n return gray.default;\n }\n\n const TRANSPARENT = 'hsla(0, 0%, 100%, 0)';\n return TRANSPARENT;\n};\n\nconst getCommonAccordionButtonStyles = (\n props: StyledProps<StyledAccordionButtonProps>,\n): CSSObject => {\n const { theme } = props;\n\n return {\n padding: theme.spacing[5],\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n };\n};\n\nexport {\n getTransitionDuration,\n getTransitionEasing,\n getBackgroundColor,\n getCommonAccordionButtonStyles,\n};\n"],"names":["getTransitionDuration","theme","makeMotionTime","motion","duration","getTransitionEasing","easing","standard","effective","getBackgroundColor","_ref","isExpanded","isActive","gray","colors","interactive","background","faded","default","TRANSPARENT","getCommonAccordionButtonStyles","props","padding","spacing","display","flexDirection","alignItems","justifyContent"],"mappings":";;;;;;AAMM,IAAAA,qBAAqB,CAAG,SAAxBA,qBAAqBA,CAAIC,KAAY,CAAA,CAAA,OAAKC,cAAc,CAACD,KAAK,CAACE,MAAM,CAACC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAGhG,EAAM,IAAAC,mBAAmB,CAAG,SAAtBA,mBAAmBA,CAAIJ,KAAY,CAAA,CAAA,OAAKA,KAAK,CAACE,MAAM,CAACG,MAAM,CAACC,QAAQ,CAACC,SAAS,CAAA,EAE9E,IAAAC,kBAAkB,CAAG,SAArBA,kBAAkBA,CAAAC,IAAA,CAQV,CAPZ,IAAAT,KAAK,CAAAS,IAAA,CAALT,KAAK,CACLU,UAAU,CAAAD,IAAA,CAAVC,UAAU,CACVC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CAMR,IAAQC,IAAI,CAAKZ,KAAK,CAACa,MAAM,CAACC,WAAW,CAACC,UAAU,CAA5CH,IAAI,CAEZ,GAAID,QAAQ,CAAE,CACZ,OAAOC,IAAI,CAACI,KAAK,CACnB,CAEA,GAAIN,UAAU,CAAE,CACd,OAAOE,IAAI,CAACK,OAAO,CACrB,CAEA,IAAMC,WAAW,CAAG,sBAAsB,CAC1C,OAAOA,WAAW,CACpB,EAEM,IAAAC,8BAA8B,CAAG,SAAjCA,8BAA8BA,CAClCC,KAA8C,CAChC,CACd,IAAQpB,KAAK,CAAKoB,KAAK,CAAfpB,KAAK,CAEb,OAAO,CACLqB,OAAO,CAAErB,KAAK,CAACsB,OAAO,CAAC,CAAC,CAAC,CACzBC,OAAO,CAAE,MAAM,CACfC,aAAa,CAAE,KAAK,CACpBC,UAAU,CAAE,QAAQ,CACpBC,cAAc,CAAE,eAClB,CAAC,CACH;;;;"}
@@ -11,11 +11,10 @@ import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/a
11
11
  import { BaseBox } from '../Box/BaseBox/BaseBox.native.js';
12
12
  import { metaAttribute } from '../../utils/metaAttribute/metaAttribute.native.js';
13
13
  import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js';
14
- import { throwBladeError } from '../../utils/logger/logger.js';
15
14
  import { dropdownComponentIds } from '../Dropdown/dropdownComponentIds.js';
16
15
  import { jsx } from 'react/jsx-runtime';
17
16
 
18
- var ActionListContext=React__default.createContext({surfaceLevel:2});var useActionListContext=function useActionListContext(){var context=React__default.useContext(ActionListContext);if(__DEV__){if(!context){throwBladeError({message:'useActionListContext has to be called inside ActionListContext.Provider',moduleName:'ActionList'});}}return context;};var _ActionList=function _ActionList(_ref){var children=_ref.children,_ref$surfaceLevel=_ref.surfaceLevel,surfaceLevel=_ref$surfaceLevel===void 0?2:_ref$surfaceLevel,testID=_ref.testID;var _useDropdown=useDropdown(),setOptions=_useDropdown.setOptions,actionListItemRef=_useDropdown.actionListItemRef,selectionType=_useDropdown.selectionType,dropdownBaseId=_useDropdown.dropdownBaseId,dropdownTriggerer=_useDropdown.dropdownTriggerer,hasFooterAction=_useDropdown.hasFooterAction,filteredValues=_useDropdown.filteredValues;var _useBottomSheetContex=useBottomSheetContext(),isInBottomSheet=_useBottomSheetContex.isInBottomSheet;var _React$useMemo=React__default.useMemo(function(){return getActionListProperties(children);},[children]),sectionData=_React$useMemo.sectionData,childrenWithId=_React$useMemo.childrenWithId,actionListOptions=_React$useMemo.actionListOptions;React__default.useEffect(function(){setOptions(actionListOptions);},[actionListOptions]);var actionListContextValue=React__default.useMemo(function(){return {surfaceLevel:surfaceLevel};},[surfaceLevel]);if(filteredValues.length<=0&&dropdownTriggerer===dropdownComponentIds.triggers.AutoComplete){return jsx(ActionListNoResults,{});}var actionListContainerRole=getActionListContainerRole(hasFooterAction,dropdownTriggerer);var actionListItemWrapperRole=getActionListItemWrapperRole(hasFooterAction,dropdownTriggerer);var isMultiSelectable=selectionType==='multiple';return jsx(ActionListContext.Provider,{value:actionListContextValue,children:isInBottomSheet?jsx(ActionListBox,{isInBottomSheet:isInBottomSheet,actionListItemWrapperRole:actionListItemWrapperRole,childrenWithId:childrenWithId,sectionData:sectionData,isMultiSelectable:isMultiSelectable,ref:actionListItemRef}):jsx(BaseBox,Object.assign({id:`${dropdownBaseId}-actionlist`},makeAccessible({role:actionListContainerRole,multiSelectable:actionListContainerRole==='listbox'?isMultiSelectable:undefined,labelledBy:`${dropdownBaseId}-label`}),metaAttribute({name:MetaConstants.ActionList,testID:testID}),{children:jsx(ActionListBox,{isInBottomSheet:isInBottomSheet,actionListItemWrapperRole:actionListItemWrapperRole,childrenWithId:childrenWithId,sectionData:sectionData,isMultiSelectable:isMultiSelectable,ref:actionListItemRef})}))});};var ActionList=assignWithoutSideEffects(React__default.memo(_ActionList),{displayName:componentIds.ActionList,componentId:componentIds.ActionList});
17
+ var _ActionList=function _ActionList(_ref){var children=_ref.children,testID=_ref.testID;var _useDropdown=useDropdown(),setOptions=_useDropdown.setOptions,actionListItemRef=_useDropdown.actionListItemRef,selectionType=_useDropdown.selectionType,dropdownBaseId=_useDropdown.dropdownBaseId,dropdownTriggerer=_useDropdown.dropdownTriggerer,hasFooterAction=_useDropdown.hasFooterAction,filteredValues=_useDropdown.filteredValues;var _useBottomSheetContex=useBottomSheetContext(),isInBottomSheet=_useBottomSheetContex.isInBottomSheet;var _React$useMemo=React__default.useMemo(function(){return getActionListProperties(children);},[children]),sectionData=_React$useMemo.sectionData,childrenWithId=_React$useMemo.childrenWithId,actionListOptions=_React$useMemo.actionListOptions;React__default.useEffect(function(){setOptions(actionListOptions);},[actionListOptions]);if(filteredValues.length<=0&&dropdownTriggerer===dropdownComponentIds.triggers.AutoComplete){return jsx(ActionListNoResults,{});}var actionListContainerRole=getActionListContainerRole(hasFooterAction,dropdownTriggerer);var actionListItemWrapperRole=getActionListItemWrapperRole(hasFooterAction,dropdownTriggerer);var isMultiSelectable=selectionType==='multiple';return isInBottomSheet?jsx(ActionListBox,{isInBottomSheet:isInBottomSheet,actionListItemWrapperRole:actionListItemWrapperRole,childrenWithId:childrenWithId,sectionData:sectionData,isMultiSelectable:isMultiSelectable,ref:actionListItemRef}):jsx(BaseBox,Object.assign({id:`${dropdownBaseId}-actionlist`},makeAccessible({role:actionListContainerRole,multiSelectable:actionListContainerRole==='listbox'?isMultiSelectable:undefined,labelledBy:`${dropdownBaseId}-label`}),metaAttribute({name:MetaConstants.ActionList,testID:testID}),{children:jsx(ActionListBox,{isInBottomSheet:isInBottomSheet,actionListItemWrapperRole:actionListItemWrapperRole,childrenWithId:childrenWithId,sectionData:sectionData,isMultiSelectable:isMultiSelectable,ref:actionListItemRef})}));};var ActionList=assignWithoutSideEffects(React__default.memo(_ActionList),{displayName:componentIds.ActionList,componentId:componentIds.ActionList});
19
18
 
20
- export { ActionList, useActionListContext };
19
+ export { ActionList };
21
20
  //# sourceMappingURL=ActionList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionList.js","sources":["../../../../../src/components/ActionList/ActionList.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\nimport { getActionListContainerRole, getActionListItemWrapperRole } from './getA11yRoles';\nimport { getActionListProperties } from './actionListUtils';\nimport { ActionListBox } from './ActionListBox';\nimport { componentIds } from './componentIds';\nimport { ActionListNoResults } from './ActionListNoResults';\nimport { useDropdown } from '~components/Dropdown/useDropdown';\nimport { useBottomSheetContext } from '~components/BottomSheet/BottomSheetContext';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport type { TestID } from '~utils/types';\nimport type { SurfaceLevels } from '~tokens/theme/theme';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { throwBladeError } from '~utils/logger';\nimport { dropdownComponentIds } from '~components/Dropdown/dropdownComponentIds';\n\ntype ActionListContextProp = Pick<ActionListProps, 'surfaceLevel'>;\nconst ActionListContext = React.createContext<ActionListContextProp>({ surfaceLevel: 2 });\nconst useActionListContext = (): ActionListContextProp => {\n const context = React.useContext(ActionListContext);\n\n if (__DEV__) {\n if (!context) {\n throwBladeError({\n message: 'useActionListContext has to be called inside ActionListContext.Provider',\n moduleName: 'ActionList',\n });\n }\n }\n return context;\n};\n\ntype ActionListProps = {\n children: React.ReactNode[];\n /**\n * Decides the backgroundColor of ActionList\n */\n surfaceLevel?: Exclude<SurfaceLevels, 1>;\n} & TestID;\n\nconst _ActionList = ({\n children,\n surfaceLevel = 2,\n testID,\n}: ActionListProps): React.ReactElement => {\n const {\n setOptions,\n actionListItemRef,\n selectionType,\n dropdownBaseId,\n dropdownTriggerer,\n hasFooterAction,\n filteredValues,\n } = useDropdown();\n\n const { isInBottomSheet } = useBottomSheetContext();\n\n const { sectionData, childrenWithId, actionListOptions } = React.useMemo(\n () => getActionListProperties(children),\n [children],\n );\n\n React.useEffect(() => {\n setOptions(actionListOptions);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [actionListOptions]);\n const actionListContextValue = React.useMemo(() => ({ surfaceLevel }), [surfaceLevel]);\n\n if (\n filteredValues.length <= 0 &&\n dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete\n ) {\n return <ActionListNoResults />;\n }\n\n const actionListContainerRole = getActionListContainerRole(hasFooterAction, dropdownTriggerer);\n const actionListItemWrapperRole = getActionListItemWrapperRole(\n hasFooterAction,\n dropdownTriggerer,\n );\n const isMultiSelectable = selectionType === 'multiple';\n\n // If we are inside BottomSheet, we don't render The StyledActionList wrapper\n // This is to ensure:\n // 1. We don't render the box wrapper styles which includes shadows, padding, border etc\n // 2. to ensure GorhomBottomSheetSectionList works as expected, if we add extra wrappers GorhomBottomSheet won't render the content inside\n // NOTE: That this also means inside BottomSheet, ActionList won't render any ActionListHeader or Footer.\n return (\n <ActionListContext.Provider value={actionListContextValue}>\n {isInBottomSheet ? (\n <ActionListBox\n isInBottomSheet={isInBottomSheet}\n actionListItemWrapperRole={actionListItemWrapperRole}\n childrenWithId={childrenWithId}\n sectionData={sectionData}\n isMultiSelectable={isMultiSelectable}\n ref={actionListItemRef as any}\n />\n ) : (\n <BaseBox\n id={`${dropdownBaseId}-actionlist`}\n {...makeAccessible({\n role: actionListContainerRole,\n multiSelectable: actionListContainerRole === 'listbox' ? isMultiSelectable : undefined,\n labelledBy: `${dropdownBaseId}-label`,\n })}\n {...metaAttribute({ name: MetaConstants.ActionList, testID })}\n >\n <ActionListBox\n isInBottomSheet={isInBottomSheet}\n actionListItemWrapperRole={actionListItemWrapperRole}\n childrenWithId={childrenWithId}\n sectionData={sectionData}\n isMultiSelectable={isMultiSelectable}\n ref={actionListItemRef as any}\n />\n </BaseBox>\n )}\n </ActionListContext.Provider>\n );\n};\n\n/**\n * ### ActionList\n *\n * List of multiple actionable items. Can be used as menu items inside `Dropdown`,\n * `BottomSheet` and as selectable items when combined with `SelectInput`\n *\n * #### Usage\n *\n * ```jsx\n * <Dropdown>\n * <SelectInput label=\"Select Action\" />\n * <DropdownOverlay>\n * <DropdownHeader title=\"Header Title\" />\n * <ActionList>\n * <ActionListItem\n * title=\"Home\"\n * value=\"home\"\n * leading={<ActionListItemIcon icon={HomeIcon} />}\n * />\n * <ActionListItem\n * title=\"Pricing\"\n * value=\"pricing\"\n * leading={<ActionListItemAsset src=\"https://flagcdn.com/w20/in.png\" alt=\"India Flag\" />}\n * />\n * </ActionList>\n * <DropdownFooter><Button>Apply</Button></DropdownFooter>\n * </DropdownOverlay>\n * </Dropdown>\n * ```\n *\n */\nconst ActionList = assignWithoutSideEffects(React.memo(_ActionList), {\n displayName: componentIds.ActionList,\n componentId: componentIds.ActionList,\n});\n\nexport type { ActionListProps };\nexport { ActionList, useActionListContext };\n"],"names":["ActionListContext","React","createContext","surfaceLevel","useActionListContext","context","useContext","__DEV__","throwBladeError","message","moduleName","_ActionList","_ref","children","_ref$surfaceLevel","testID","_useDropdown","useDropdown","setOptions","actionListItemRef","selectionType","dropdownBaseId","dropdownTriggerer","hasFooterAction","filteredValues","_useBottomSheetContex","useBottomSheetContext","isInBottomSheet","_React$useMemo","useMemo","getActionListProperties","sectionData","childrenWithId","actionListOptions","useEffect","actionListContextValue","length","dropdownComponentIds","triggers","AutoComplete","_jsx","ActionListNoResults","actionListContainerRole","getActionListContainerRole","actionListItemWrapperRole","getActionListItemWrapperRole","isMultiSelectable","Provider","value","ActionListBox","ref","BaseBox","Object","assign","id","makeAccessible","role","multiSelectable","undefined","labelledBy","metaAttribute","name","MetaConstants","ActionList","assignWithoutSideEffects","memo","displayName","componentIds","componentId"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,IAAMA,iBAAiB,CAAGC,cAAK,CAACC,aAAa,CAAwB,CAAEC,YAAY,CAAE,CAAE,CAAC,CAAC,CACnF,IAAAC,oBAAoB,CAAG,SAAvBA,oBAAoBA,EAAgC,CACxD,IAAMC,OAAO,CAAGJ,cAAK,CAACK,UAAU,CAACN,iBAAiB,CAAC,CAEnD,GAAIO,OAAO,CAAE,CACX,GAAI,CAACF,OAAO,CAAE,CACZG,eAAe,CAAC,CACdC,OAAO,CAAE,yEAAyE,CAClFC,UAAU,CAAE,YACd,CAAC,CAAC,CACJ,CACF,CACA,OAAOL,OAAO,CAChB,EAUA,IAAMM,WAAW,CAAG,SAAdA,WAAWA,CAAAC,IAAA,CAI0B,CAAA,IAHzCC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CAAAC,iBAAA,CAAAF,IAAA,CACRT,YAAY,CAAZA,YAAY,CAAAW,iBAAA,GAAG,KAAA,CAAA,CAAA,CAAC,CAAAA,iBAAA,CAChBC,MAAM,CAAAH,IAAA,CAANG,MAAM,CAEN,IAAAC,YAAA,CAQIC,WAAW,EAAE,CAPfC,UAAU,CAAAF,YAAA,CAAVE,UAAU,CACVC,iBAAiB,CAAAH,YAAA,CAAjBG,iBAAiB,CACjBC,aAAa,CAAAJ,YAAA,CAAbI,aAAa,CACbC,cAAc,CAAAL,YAAA,CAAdK,cAAc,CACdC,iBAAiB,CAAAN,YAAA,CAAjBM,iBAAiB,CACjBC,eAAe,CAAAP,YAAA,CAAfO,eAAe,CACfC,cAAc,CAAAR,YAAA,CAAdQ,cAAc,CAGhB,IAAAC,qBAAA,CAA4BC,qBAAqB,EAAE,CAA3CC,eAAe,CAAAF,qBAAA,CAAfE,eAAe,CAEvB,IAAAC,cAAA,CAA2D3B,cAAK,CAAC4B,OAAO,CACtE,UAAM,CAAA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NC,EAAE,CAAG,CAAEjC,EAAAA,cAAe,CAAa,WAAA,CAAA,CAAA,CAC/BkC,cAAc,CAAC,CACjBC,IAAI,CAAEd,uBAAuB,CAC7Be,eAAe,CAAEf,uBAAuB,GAAK,SAAS,CAAGI,iBAAiB,CAAGY,SAAS,CACtFC,UAAU,CAAG,CAAA,EAAEtC,cAAe,CAAA,MAAA,CAChC,CAAC,CAAC,CACEuC,aAAa,CAAC,CAAEC,IAAI,CAAEC,aAAa,CAACC,UAAU,CAAEhD,MAAM,CAANA,MAAO,CAAC,CAAC,CAAA,CAAAF,QAAA,CAE7D2B,GAAA,CAACS,aAAa,CACZtB,CAAAA,eAAe,CAAEA,eAAgB,CACjCiB,yBAAyB,CAAEA,yBAA0B,CACrDZ,cAAc,CAAEA,cAAe,CAC/BD,WAAW,CAAEA,WAAY,CACzBe,iBAAiB,CAAEA,iBAAkB,CACrCI,GAAG,CAAE/B,iBAAyB,CAC/B,CAAC,CACK,CAAA,CACV,CACyB,CAAC,CAEjC,CAAC,CAiCK,IAAA4C,UAAU,CAAGC,wBAAwB,CAAC/D,cAAK,CAACgE,IAAI,CAACtD,WAAW,CAAC,CAAE,CACnEuD,WAAW,CAAEC,YAAY,CAACJ,UAAU,CACpCK,WAAW,CAAED,YAAY,CAACJ,UAC5B,CAAC;;;;"}
1
+ {"version":3,"file":"ActionList.js","sources":["../../../../../src/components/ActionList/ActionList.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\nimport { getActionListContainerRole, getActionListItemWrapperRole } from './getA11yRoles';\nimport { getActionListProperties } from './actionListUtils';\nimport { ActionListBox } from './ActionListBox';\nimport { componentIds } from './componentIds';\nimport { ActionListNoResults } from './ActionListNoResults';\nimport { useDropdown } from '~components/Dropdown/useDropdown';\nimport { useBottomSheetContext } from '~components/BottomSheet/BottomSheetContext';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport type { TestID } from '~utils/types';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { dropdownComponentIds } from '~components/Dropdown/dropdownComponentIds';\n\ntype ActionListProps = {\n children: React.ReactNode[];\n} & TestID;\n\nconst _ActionList = ({ children, testID }: ActionListProps): React.ReactElement => {\n const {\n setOptions,\n actionListItemRef,\n selectionType,\n dropdownBaseId,\n dropdownTriggerer,\n hasFooterAction,\n filteredValues,\n } = useDropdown();\n\n const { isInBottomSheet } = useBottomSheetContext();\n\n const { sectionData, childrenWithId, actionListOptions } = React.useMemo(\n () => getActionListProperties(children),\n [children],\n );\n\n React.useEffect(() => {\n setOptions(actionListOptions);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [actionListOptions]);\n\n if (\n filteredValues.length <= 0 &&\n dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete\n ) {\n return <ActionListNoResults />;\n }\n\n const actionListContainerRole = getActionListContainerRole(hasFooterAction, dropdownTriggerer);\n const actionListItemWrapperRole = getActionListItemWrapperRole(\n hasFooterAction,\n dropdownTriggerer,\n );\n const isMultiSelectable = selectionType === 'multiple';\n\n // If we are inside BottomSheet, we don't render The StyledActionList wrapper\n // This is to ensure:\n // 1. We don't render the box wrapper styles which includes shadows, padding, border etc\n // 2. to ensure GorhomBottomSheetSectionList works as expected, if we add extra wrappers GorhomBottomSheet won't render the content inside\n // NOTE: That this also means inside BottomSheet, ActionList won't render any ActionListHeader or Footer.\n return isInBottomSheet ? (\n <ActionListBox\n isInBottomSheet={isInBottomSheet}\n actionListItemWrapperRole={actionListItemWrapperRole}\n childrenWithId={childrenWithId}\n sectionData={sectionData}\n isMultiSelectable={isMultiSelectable}\n ref={actionListItemRef as any}\n />\n ) : (\n <BaseBox\n id={`${dropdownBaseId}-actionlist`}\n {...makeAccessible({\n role: actionListContainerRole,\n multiSelectable: actionListContainerRole === 'listbox' ? isMultiSelectable : undefined,\n labelledBy: `${dropdownBaseId}-label`,\n })}\n {...metaAttribute({ name: MetaConstants.ActionList, testID })}\n >\n <ActionListBox\n isInBottomSheet={isInBottomSheet}\n actionListItemWrapperRole={actionListItemWrapperRole}\n childrenWithId={childrenWithId}\n sectionData={sectionData}\n isMultiSelectable={isMultiSelectable}\n ref={actionListItemRef as any}\n />\n </BaseBox>\n );\n};\n\n/**\n * ### ActionList\n *\n * List of multiple actionable items. Can be used as menu items inside `Dropdown`,\n * `BottomSheet` and as selectable items when combined with `SelectInput`\n *\n * #### Usage\n *\n * ```jsx\n * <Dropdown>\n * <SelectInput label=\"Select Action\" />\n * <DropdownOverlay>\n * <DropdownHeader title=\"Header Title\" />\n * <ActionList>\n * <ActionListItem\n * title=\"Home\"\n * value=\"home\"\n * leading={<ActionListItemIcon icon={HomeIcon} />}\n * />\n * <ActionListItem\n * title=\"Pricing\"\n * value=\"pricing\"\n * leading={<ActionListItemAsset src=\"https://flagcdn.com/w20/in.png\" alt=\"India Flag\" />}\n * />\n * </ActionList>\n * <DropdownFooter><Button>Apply</Button></DropdownFooter>\n * </DropdownOverlay>\n * </Dropdown>\n * ```\n *\n */\nconst ActionList = assignWithoutSideEffects(React.memo(_ActionList), {\n displayName: componentIds.ActionList,\n componentId: componentIds.ActionList,\n});\n\nexport type { ActionListProps };\nexport { ActionList };\n"],"names":["_ActionList","_ref","children","testID","_useDropdown","useDropdown","setOptions","actionListItemRef","selectionType","dropdownBaseId","dropdownTriggerer","hasFooterAction","filteredValues","_useBottomSheetContex","useBottomSheetContext","isInBottomSheet","_React$useMemo","React","useMemo","getActionListProperties","sectionData","childrenWithId","actionListOptions","useEffect","length","dropdownComponentIds","triggers","AutoComplete","_jsx","ActionListNoResults","actionListContainerRole","getActionListContainerRole","actionListItemWrapperRole","getActionListItemWrapperRole","isMultiSelectable","ActionListBox","ref","BaseBox","Object","assign","id","makeAccessible","role","multiSelectable","undefined","labelledBy","metaAttribute","name","MetaConstants","ActionList","assignWithoutSideEffects","memo","displayName","componentIds","componentId"],"mappings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  import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
8
8
  import { makeAccessible } from '../../utils/makeAccessible/makeAccessible.native.js';
9
9
  import { Divider } from '../Divider/Divider.js';
10
+ import '@babel/runtime/helpers/slicedToArray';
11
+ import { makeSize } from '../../utils/makeSize/makeSize.js';
12
+ import '../BladeProvider/useTheme.js';
10
13
  import { jsx } from 'react/jsx-runtime';
11
14
 
12
- var _ActionListBox=React__default.forwardRef(function(_ref,ref){var sectionData=_ref.sectionData,actionListItemWrapperRole=_ref.actionListItemWrapperRole,isMultiSelectable=_ref.isMultiSelectable,isInBottomSheet=_ref.isInBottomSheet;var _useBottomSheetContex=useBottomSheetContext(),footerHeight=_useBottomSheetContex.footerHeight,setContentHeight=_useBottomSheetContex.setContentHeight;var renderActionListItem=React__default.useCallback(function(_ref2){var item=_ref2.item;return jsx(ActionListItem,Object.assign({},item));},[]);var renderActionListSectionHeader=React__default.useCallback(function(_ref3){var title=_ref3.section.title;if(!title)return null;return jsx(ActionListSection,{title:title,_hideDivider:true,children:undefined});},[]);var renderActionListSectionDivider=React__default.useCallback(function(_ref4){var _ref4$section=_ref4.section,title=_ref4$section.title,hideDivider=_ref4$section.hideDivider;if(!title)return null;if(hideDivider)return null;return jsx(Divider,{});},[]);return jsx(StyledListBoxWrapper,Object.assign({as:isInBottomSheet?BottomSheetSectionList:SectionList,isInBottomSheet:Boolean(isInBottomSheet),marginBottom:footerHeight,sections:sectionData,windowSize:5,keyExtractor:function keyExtractor(item){return item.value;},stickySectionHeadersEnabled:false,renderSectionHeader:renderActionListSectionHeader,renderSectionFooter:renderActionListSectionDivider,renderItem:renderActionListItem,ref:ref,onContentSizeChange:function onContentSizeChange(_width,height){setContentHeight(height);}},makeAccessible({role:actionListItemWrapperRole,multiSelectable:actionListItemWrapperRole==='listbox'?isMultiSelectable:undefined})));});var ActionListBox=assignWithoutSideEffects(_ActionListBox,{displayName:'ActionListBox'});
15
+ var _ActionListBox=React__default.forwardRef(function(_ref,ref){var sectionData=_ref.sectionData,actionListItemWrapperRole=_ref.actionListItemWrapperRole,isMultiSelectable=_ref.isMultiSelectable,isInBottomSheet=_ref.isInBottomSheet;var _useBottomSheetContex=useBottomSheetContext(),footerHeight=_useBottomSheetContex.footerHeight,setContentHeight=_useBottomSheetContex.setContentHeight;var renderActionListItem=React__default.useCallback(function(_ref2){var item=_ref2.item;return jsx(ActionListItem,Object.assign({},item));},[]);var renderActionListSectionHeader=React__default.useCallback(function(_ref3){var title=_ref3.section.title;if(!title)return null;return jsx(ActionListSection,{title:title,_hideDivider:true,children:undefined});},[]);var renderActionListSectionDivider=React__default.useCallback(function(_ref4){var _ref4$section=_ref4.section,title=_ref4$section.title,hideDivider=_ref4$section.hideDivider;if(!title)return null;if(hideDivider)return null;return jsx(Divider,{});},[]);return jsx(StyledListBoxWrapper,Object.assign({as:isInBottomSheet?BottomSheetSectionList:SectionList,isInBottomSheet:Boolean(isInBottomSheet),marginBottom:makeSize(footerHeight),sections:sectionData,windowSize:5,keyExtractor:function keyExtractor(item){return item.value;},stickySectionHeadersEnabled:false,renderSectionHeader:renderActionListSectionHeader,renderSectionFooter:renderActionListSectionDivider,renderItem:renderActionListItem,ref:ref,onContentSizeChange:function onContentSizeChange(_width,height){setContentHeight(height);}},makeAccessible({role:actionListItemWrapperRole,multiSelectable:actionListItemWrapperRole==='listbox'?isMultiSelectable:undefined})));});var ActionListBox=assignWithoutSideEffects(_ActionListBox,{displayName:'ActionListBox'});
13
16
 
14
17
  export { ActionListBox };
15
18
  //# sourceMappingURL=ActionListBox.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionListBox.native.js","sources":["../../../../../src/components/ActionList/ActionListBox.native.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable react/display-name */\nimport React from 'react';\nimport { BottomSheetSectionList as GorhomBottomSheetSectionList } from '@gorhom/bottom-sheet';\nimport { SectionList } from 'react-native';\nimport { StyledListBoxWrapper } from './styles/StyledListBoxWrapper';\nimport { ActionListItem, ActionListSection } from './ActionListItem';\nimport type { SectionData } from './actionListUtils';\nimport { useBottomSheetContext } from '~components/BottomSheet/BottomSheetContext';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { Divider } from '~components/Divider';\n\ntype ActionListBoxProps = {\n childrenWithId?: React.ReactNode[] | null;\n sectionData: SectionData;\n actionListItemWrapperRole: 'listbox' | 'menu' | undefined;\n isMultiSelectable: boolean;\n isInBottomSheet: boolean;\n};\n\nconst _ActionListBox = React.forwardRef<SectionList, ActionListBoxProps>(\n ({ sectionData, actionListItemWrapperRole, isMultiSelectable, isInBottomSheet }, ref) => {\n const { footerHeight, setContentHeight } = useBottomSheetContext();\n\n const renderActionListItem = React.useCallback(({ item }) => {\n return <ActionListItem {...item} />;\n }, []);\n\n const renderActionListSectionHeader = React.useCallback(({ section: { title } }) => {\n if (!title) return null;\n return <ActionListSection title={title} _hideDivider={true} children={undefined} />;\n }, []);\n\n const renderActionListSectionDivider = React.useCallback(\n ({ section: { title, hideDivider } }) => {\n if (!title) return null;\n if (hideDivider) return null;\n return <Divider />;\n },\n [],\n );\n\n return (\n <StyledListBoxWrapper\n // Render either the Gorhom or RN Section list depending on where we are\n // We can't simply use RNSectionList because GorhomSectionList handles extra bottomsheet specific logic internally\n as={isInBottomSheet ? GorhomBottomSheetSectionList : SectionList}\n isInBottomSheet={Boolean(isInBottomSheet)}\n // Setting footerHeight as bottom margin for ActionListBox\n // otherwise the footer hides few list items under it, this will offset it\n marginBottom={footerHeight}\n sections={sectionData}\n windowSize={5}\n keyExtractor={(item: any) => {\n return item.value;\n }}\n stickySectionHeadersEnabled={false}\n renderSectionHeader={renderActionListSectionHeader}\n renderSectionFooter={renderActionListSectionDivider}\n renderItem={renderActionListItem}\n ref={ref as any}\n onContentSizeChange={(_width, height) => {\n setContentHeight(height);\n }}\n {...makeAccessible({\n role: actionListItemWrapperRole,\n multiSelectable: actionListItemWrapperRole === 'listbox' ? isMultiSelectable : undefined,\n })}\n />\n );\n },\n);\n\nconst ActionListBox = assignWithoutSideEffects(_ActionListBox, { displayName: 'ActionListBox' });\n\nexport { ActionListBox };\n"],"names":["_ActionListBox","React","forwardRef","_ref","ref","sectionData","actionListItemWrapperRole","isMultiSelectable","isInBottomSheet","_useBottomSheetContex","useBottomSheetContext","footerHeight","setContentHeight","renderActionListItem","useCallback","_ref2","item","_jsx","ActionListItem","Object","assign","renderActionListSectionHeader","_ref3","title","section","ActionListSection","_hideDivider","children","undefined","renderActionListSectionDivider","_ref4","_ref4$section","hideDivider","Divider","StyledListBoxWrapper","as","GorhomBottomSheetSectionList","SectionList","Boolean","marginBottom","sections","windowSize","keyExtractor","value","stickySectionHeadersEnabled","renderSectionHeader","renderSectionFooter","renderItem","onContentSizeChange","_width","height","makeAccessible","role","multiSelectable","ActionListBox","assignWithoutSideEffects","displayName"],"mappings":";;;;;;;;;;;AAqBA,IAAMA,cAAc,CAAGC,cAAK,CAACC,UAAU,CACrC,SAAAC,IAAA,CAAiFC,GAAG,CAAK,CAAA,IAAtFC,WAAW,CAAAF,IAAA,CAAXE,WAAW,CAAEC,yBAAyB,CAAAH,IAAA,CAAzBG,yBAAyB,CAAEC,iBAAiB,CAAAJ,IAAA,CAAjBI,iBAAiB,CAAEC,eAAe,CAAAL,IAAA,CAAfK,eAAe,CAC3E,IAAAC,qBAAA,CAA2CC,qBAAqB,EAAE,CAA1DC,YAAY,CAAAF,qBAAA,CAAZE,YAAY,CAAEC,gBAAgB,CAAAH,qBAAA,CAAhBG,gBAAgB,CAEtC,IAAMC,oBAAoB,CAAGZ,cAAK,CAACa,WAAW,CAAC,SAAAC,KAAA,CAAc,CAAA,IAAXC,IAAI,CAAAD,KAAA,CAAJC,IAAI,CACpD,OAAOC,GAAA,CAACC,cAAc,CAAAC,MAAA,CAAAC,MAAA,CAAKJ,EAAAA,CAAAA,IAAI,CAAG,CAAC,CACrC,C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BAAmB,CAAE,SAAAA,mBAAAA,CAACC,MAAM,CAAEC,MAAM,CAAK,CACvCtC,gBAAgB,CAACsC,MAAM,CAAC,CAC1B,CAAE,CAAA,CACEC,cAAc,CAAC,CACjBC,IAAI,CAAE9C,yBAAyB,CAC/B+C,eAAe,CAAE/C,yBAAyB,GAAK,SAAS,CAAGC,iBAAiB,CAAGqB,SACjF,CAAC,CAAC,CACH,CAAC,CAEN,CACF,CAAC,CAEK,IAAA0B,aAAa,CAAGC,wBAAwB,CAACvD,cAAc,CAAE,CAAEwD,WAAW,CAAE,eAAgB,CAAC;;;;"}
1
+ {"version":3,"file":"ActionListBox.native.js","sources":["../../../../../src/components/ActionList/ActionListBox.native.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable react/display-name */\nimport React from 'react';\nimport { BottomSheetSectionList as GorhomBottomSheetSectionList } from '@gorhom/bottom-sheet';\nimport { SectionList } from 'react-native';\nimport { StyledListBoxWrapper } from './styles/StyledListBoxWrapper';\nimport { ActionListItem, ActionListSection } from './ActionListItem';\nimport type { SectionData } from './actionListUtils';\nimport { useBottomSheetContext } from '~components/BottomSheet/BottomSheetContext';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { Divider } from '~components/Divider';\nimport { makeSize } from '~utils';\n\ntype ActionListBoxProps = {\n childrenWithId?: React.ReactNode[] | null;\n sectionData: SectionData;\n actionListItemWrapperRole: 'listbox' | 'menu' | undefined;\n isMultiSelectable: boolean;\n isInBottomSheet: boolean;\n};\n\nconst _ActionListBox = React.forwardRef<SectionList, ActionListBoxProps>(\n ({ sectionData, actionListItemWrapperRole, isMultiSelectable, isInBottomSheet }, ref) => {\n const { footerHeight, setContentHeight } = useBottomSheetContext();\n\n const renderActionListItem = React.useCallback(({ item }) => {\n return <ActionListItem {...item} />;\n }, []);\n\n const renderActionListSectionHeader = React.useCallback(({ section: { title } }) => {\n if (!title) return null;\n return <ActionListSection title={title} _hideDivider={true} children={undefined} />;\n }, []);\n\n const renderActionListSectionDivider = React.useCallback(\n ({ section: { title, hideDivider } }) => {\n if (!title) return null;\n if (hideDivider) return null;\n return <Divider />;\n },\n [],\n );\n\n return (\n <StyledListBoxWrapper\n // Render either the Gorhom or RN Section list depending on where we are\n // We can't simply use RNSectionList because GorhomSectionList handles extra bottomsheet specific logic internally\n as={isInBottomSheet ? GorhomBottomSheetSectionList : SectionList}\n isInBottomSheet={Boolean(isInBottomSheet)}\n // Setting footerHeight as bottom margin for ActionListBox\n // otherwise the footer hides few list items under it, this will offset it\n marginBottom={makeSize(footerHeight)}\n sections={sectionData}\n windowSize={5}\n keyExtractor={(item: any) => {\n return item.value;\n }}\n stickySectionHeadersEnabled={false}\n renderSectionHeader={renderActionListSectionHeader}\n renderSectionFooter={renderActionListSectionDivider}\n renderItem={renderActionListItem}\n ref={ref as any}\n onContentSizeChange={(_width, height) => {\n setContentHeight(height);\n }}\n {...makeAccessible({\n role: actionListItemWrapperRole,\n multiSelectable: actionListItemWrapperRole === 'listbox' ? isMultiSelectable : undefined,\n })}\n />\n );\n },\n);\n\nconst ActionListBox = assignWithoutSideEffects(_ActionListBox, { displayName: 'ActionListBox' });\n\nexport { ActionListBox };\n"],"names":["_ActionListBox","React","forwardRef","_ref","ref","sectionData","actionListItemWrapperRole","isMultiSelectable","isInBottomSheet","_useBottomSheetContex","useBottomSheetContext","footerHeight","setContentHeight","renderActionListItem","useCallback","_ref2","item","_jsx","ActionListItem","Object","assign","renderActionListSectionHeader","_ref3","title","section","ActionListSection","_hideDivider","children","undefined","renderActionListSectionDivider","_ref4","_ref4$section","hideDivider","Divider","StyledListBoxWrapper","as","GorhomBottomSheetSectionList","SectionList","Boolean","marginBottom","makeSize","sections","windowSize","keyExtractor","value","stickySectionHeadersEnabled","renderSectionHeader","renderSectionFooter","renderItem","onContentSizeChange","_width","height","makeAccessible","role","multiSelectable","ActionListBox","assignWithoutSideEffects","displayName"],"m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WAAW,CAAE,WAAW,CAC5B,OAAOf,GAAA,CAACgB,OAAO,CAAE,EAAA,CAAC,CACpB,CAAC,CACD,EACF,CAAC,CAED,OACEhB,GAAA,CAACiB,oBAAoB,CAAAf,MAAA,CAAAC,MAAA,EAGnBe,EAAE,CAAE3B,eAAe,CAAG4B,sBAA4B,CAAGC,WAAY,CACjE7B,eAAe,CAAE8B,OAAO,CAAC9B,eAAe,CAAE,CAG1C+B,YAAY,CAAEC,QAAQ,CAAC7B,YAAY,CAAE,CACrC8B,QAAQ,CAAEpC,WAAY,CACtBqC,UAAU,CAAE,CAAE,CACdC,YAAY,CAAE,SAAAA,YAAC3B,CAAAA,IAAS,CAAK,CAC3B,OAAOA,IAAI,CAAC4B,KAAK,CACnB,CAAE,CACFC,2BAA2B,CAAE,KAAM,CACnCC,mBAAmB,CAAEzB,6BAA8B,CACnD0B,mBAAmB,CAAElB,8BAA+B,CACpDmB,UAAU,CAAEnC,oBAAqB,CACjCT,GAAG,CAAEA,GAAW,CAChB6C,mBAAmB,CAAE,SAAAA,oBAACC,MAAM,CAAEC,MAAM,CAAK,CACvCvC,gBAAgB,CAACuC,MAAM,CAAC,CAC1B,CAAE,EACEC,cAAc,CAAC,CACjBC,IAAI,CAAE/C,yBAAyB,CAC/BgD,eAAe,CAAEhD,yBAAyB,GAAK,SAAS,CAAGC,iBAAiB,CAAGqB,SACjF,CAAC,CAAC,CACH,CAAC,CAEN,CACF,CAAC,CAEK,IAAA2B,aAAa,CAAGC,wBAAwB,CAACxD,cAAc,CAAE,CAAEyD,WAAW,CAAE,eAAgB,CAAC;;;;"}
@@ -4,7 +4,6 @@ import { StyledActionListItem } from './styles/StyledActionListItem.native.js';
4
4
  import { componentIds } from './componentIds.js';
5
5
  import { getNormalTextColor, validateActionListItemProps } from './actionListUtils.js';
6
6
  import { isRoleMenu, getActionListItemRole, getActionListSectionRole } from './getA11yRoles.js';
7
- import { useActionListContext } from './ActionList.js';
8
7
  import { Divider } from '../Divider/Divider.js';
9
8
  import { BaseBox } from '../Box/BaseBox/BaseBox.native.js';
10
9
  import { useDropdown } from '../Dropdown/useDropdown.js';
@@ -38,7 +37,7 @@ import { Badge } from '../Badge/Badge.js';
38
37
  import { Box } from '../Box/Box.js';
39
38
  import { dropdownComponentIds } from '../Dropdown/dropdownComponentIds.js';
40
39
 
41
- var ActionListItemContext=React__default.createContext({});var StyledActionListSectionTitle=styled(BaseBox)(function(props){return {padding:makeSize(props.theme.spacing[3])};});var _ActionListSection=function _ActionListSection(_ref){var title=_ref.title,children=_ref.children,testID=_ref.testID,_hideDivider=_ref._hideDivider,_sectionChildValues=_ref._sectionChildValues;var _useActionListContext=useActionListContext(),surfaceLevel=_useActionListContext.surfaceLevel;var _useDropdown=useDropdown(),hasAutoCompleteInBottomSheetHeader=_useDropdown.hasAutoCompleteInBottomSheetHeader,dropdownTriggerer=_useDropdown.dropdownTriggerer,filteredValues=_useDropdown.filteredValues;var hasAutoComplete=hasAutoCompleteInBottomSheetHeader||dropdownTriggerer===dropdownComponentIds.triggers.AutoComplete;var isSectionVisible=React__default.useMemo(function(){if(hasAutoComplete){var visibleActionListItemInSection=_sectionChildValues==null?void 0:_sectionChildValues.find(function(actionItemValue){return filteredValues.includes(actionItemValue);});return Boolean(visibleActionListItemInSection);}return true;},[_sectionChildValues,hasAutoComplete,filteredValues]);var showDividerInRN=!(_hideDivider&&isReactNative());var showDividerInAutoComplete=hasAutoComplete?isSectionVisible&&filteredValues.length>1:true;return jsxs(BaseBox,Object.assign({},makeAccessible({role:getActionListSectionRole(),label:title}),{backgroundColor:`surface.background.level${surfaceLevel}.lowContrast`},metaAttribute({name:MetaConstants.ActionListSection,testID:testID}),{children:[isSectionVisible?jsx(StyledActionListSectionTitle,Object.assign({},makeAccessible({hidden:true}),{children:jsx(Text,{color:"surface.text.muted.lowContrast",size:"small",weight:"bold",children:title})})):null,jsx(BaseBox,Object.assign({},makeAccessible({role:isReactNative()?undefined:'listbox'}),{children:children})),showDividerInAutoComplete&&showDividerInRN?jsx(Divider,{marginX:"spacing.3",marginY:"spacing.1"}):null]}));};var ActionListSection=assignWithoutSideEffects(_ActionListSection,{componentId:componentIds.ActionListSection});var _ActionListItemIcon=function _ActionListItemIcon(_ref2){var icon=_ref2.icon;var Icon=icon;var _React$useContext=React__default.useContext(ActionListItemContext),intent=_React$useContext.intent,isDisabled=_React$useContext.isDisabled;return jsx(Icon,{color:intent==='negative'?'feedback.icon.negative.lowContrast':getNormalTextColor(isDisabled,{isMuted:true}),size:"medium"});};var ActionListItemIcon=assignWithoutSideEffects(_ActionListItemIcon,{componentId:componentIds.ActionListItemIcon});var _ActionListItemBadgeGroup=function _ActionListItemBadgeGroup(_ref3){var children=_ref3.children;return jsx(Box,{display:"flex",alignItems:"center",flexDirection:"row",children:children});};var ActionListItemBadgeGroup=assignWithoutSideEffects(_ActionListItemBadgeGroup,{componentId:componentIds.ActionListItemBadgeGroup});var _ActionListItemBadge=function _ActionListItemBadge(props){return jsx(Badge,Object.assign({size:"medium",marginLeft:"spacing.3"},props));};var ActionListItemBadge=assignWithoutSideEffects(_ActionListItemBadge,{componentId:componentIds.ActionListItemBadge});var _ActionListItemText=function _ActionListItemText(_ref4){var children=_ref4.children;var _React$useContext2=React__default.useContext(ActionListItemContext),isDisabled=_React$useContext2.isDisabled;return jsx(Text,{variant:"caption",color:getNormalTextColor(isDisabled,{isMuted:true}),children:children});};var ActionListItemText=assignWithoutSideEffects(_ActionListItemText,{componentId:componentIds.ActionListItemText});var makeActionListItemClickable=function makeActionListItemClickable(clickHandler){if(isReactNative()){return {onPress:clickHandler};}return {onClick:clickHandler};};var _ActionListItemBody=function _ActionListItemBody(_ref5){var selectionType=_ref5.selectionType,intent=_ref5.intent,description=_ref5.description,isDisabled=_ref5.isDisabled,leading=_ref5.leading,trailing=_ref5.trailing,title=_ref5.title,titleSuffix=_ref5.titleSuffix,isSelected=_ref5.isSelected;return jsxs(Fragment,{children:[jsxs(BaseBox,{display:"flex",justifyContent:"center",flexDirection:"row",alignItems:"center",maxHeight:isReactNative()?undefined:makeSize(size[20]),children:[jsx(BaseBox,{display:"flex",justifyContent:"center",alignItems:"center",children:selectionType==='multiple'?jsx(BaseBox,Object.assign({pointerEvents:"none",paddingRight:"spacing.2"},makeAccessible({hidden:true}),{children:jsx(Checkbox,{isChecked:isSelected,tabIndex:-1,isDisabled:isDisabled,children:null})})):leading}),jsxs(BaseBox,{paddingLeft:selectionType==='multiple'||!leading?'spacing.0':'spacing.3',paddingRight:"spacing.3",display:"flex",alignItems:"center",flexDirection:"row",children:[jsx(Text,{truncateAfterLines:1,color:intent==='negative'?'feedback.text.negative.lowContrast':getNormalTextColor(isDisabled),children:title}),titleSuffix]}),jsx(BaseBox,{marginLeft:"auto",children:trailing})]}),jsx(BaseBox,{paddingLeft:leading||selectionType==='multiple'?'spacing.7':undefined,children:description?jsx(Text,{color:getNormalTextColor(isDisabled,{isMuted:true}),size:"small",children:description}):null})]});};var ActionListItemBody=React__default.memo(_ActionListItemBody);var _ActionListItem=function _ActionListItem(props){var _useDropdown2=useDropdown(),activeIndex=_useDropdown2.activeIndex,dropdownBaseId=_useDropdown2.dropdownBaseId,onOptionClick=_useDropdown2.onOptionClick,selectedIndices=_useDropdown2.selectedIndices,setShouldIgnoreBlurAnimation=_useDropdown2.setShouldIgnoreBlurAnimation,selectionType=_useDropdown2.selectionType,dropdownTriggerer=_useDropdown2.dropdownTriggerer,isKeydownPressed=_useDropdown2.isKeydownPressed,filteredValues=_useDropdown2.filteredValues,hasAutoCompleteInBottomSheetHeader=_useDropdown2.hasAutoCompleteInBottomSheetHeader;var _useTheme=useTheme(),platform=_useTheme.platform;var isMobile=platform==='onMobile';var hasAutoComplete=hasAutoCompleteInBottomSheetHeader||dropdownTriggerer===dropdownComponentIds.triggers.AutoComplete;var renderOnWebAs=props.href?'a':'button';var getIsSelected=function getIsSelected(){if(dropdownTriggerer===dropdownComponentIds.triggers.SelectInput||hasAutoComplete){if(typeof props._index==='number'){return selectedIndices.includes(props._index);}return undefined;}return props.isSelected;};var isSelected=getIsSelected();React__default.useEffect(function(){validateActionListItemProps({leading:props.leading,trailing:props.trailing,titleSuffix:props.titleSuffix});},[props.leading,props.trailing,props.titleSuffix]);React__default.useEffect(function(){if(__DEV__){if(dropdownTriggerer===dropdownComponentIds.triggers.SelectInput&&props.intent==='negative'){throwBladeError({message:'negative intent ActionListItem cannot be used inside Dropdown with SelectInput trigger',moduleName:'ActionListItem'});}}},[props.intent,dropdownTriggerer]);return jsx(ActionListItemContext.Provider,{value:{intent:props.intent,isDisabled:props.isDisabled},children:jsx(StyledActionListItem,Object.assign({isVisible:hasAutoComplete&&filteredValues?filteredValues.includes(props.value):true,as:!isReactNative()?renderOnWebAs:undefined,id:`${dropdownBaseId}-${props._index}`,type:"button",tabIndex:-1,href:props.href,target:props.target,className:activeIndex===props._index?'active-focus':''},makeAccessible({selected:isSelected,current:isRoleMenu(dropdownTriggerer)?isSelected:undefined,role:getActionListItemRole(dropdownTriggerer,props.href),disabled:props.isDisabled}),makeActionListItemClickable(function(e){if(typeof props._index==='number'){onOptionClick(e,props._index);props.onClick==null?void 0:props.onClick({name:props.value,value:isSelected});}}),metaAttribute({name:MetaConstants.ActionListItem,testID:props.testID}),{onMouseDown:function onMouseDown(){setShouldIgnoreBlurAnimation(true);},onMouseUp:function onMouseUp(){setShouldIgnoreBlurAnimation(false);},"data-value":props.value,"data-index":props._index,selectionType:selectionType,hasDescription:Boolean(props.description),intent:props.intent,isSelected:isSelected,isKeydownPressed:isKeydownPressed,isMobile:isMobile,children:jsx(ActionListItemBody,{selectionType:selectionType,intent:props.intent,description:props.description,isDisabled:props.isDisabled,leading:props.leading,trailing:props.trailing,title:props.title,titleSuffix:props.titleSuffix,isSelected:isSelected})}))});};var ActionListItem=assignWithoutSideEffects(React__default.memo(_ActionListItem),{componentId:componentIds.ActionListItem,displayName:componentIds.ActionListItem});
40
+ var ActionListItemContext=React__default.createContext({});var StyledActionListSectionTitle=styled(BaseBox)(function(props){return {padding:makeSize(props.theme.spacing[3])};});var _ActionListSection=function _ActionListSection(_ref){var title=_ref.title,children=_ref.children,testID=_ref.testID,_hideDivider=_ref._hideDivider,_sectionChildValues=_ref._sectionChildValues;var _useDropdown=useDropdown(),hasAutoCompleteInBottomSheetHeader=_useDropdown.hasAutoCompleteInBottomSheetHeader,dropdownTriggerer=_useDropdown.dropdownTriggerer,filteredValues=_useDropdown.filteredValues;var hasAutoComplete=hasAutoCompleteInBottomSheetHeader||dropdownTriggerer===dropdownComponentIds.triggers.AutoComplete;var isSectionVisible=React__default.useMemo(function(){if(hasAutoComplete){var visibleActionListItemInSection=_sectionChildValues==null?void 0:_sectionChildValues.find(function(actionItemValue){return filteredValues.includes(actionItemValue);});return Boolean(visibleActionListItemInSection);}return true;},[_sectionChildValues,hasAutoComplete,filteredValues]);var showDividerInRN=!(_hideDivider&&isReactNative());var showDividerInAutoComplete=hasAutoComplete?isSectionVisible&&filteredValues.length>1:true;return jsxs(BaseBox,Object.assign({},makeAccessible({role:getActionListSectionRole(),label:title}),metaAttribute({name:MetaConstants.ActionListSection,testID:testID}),{children:[isSectionVisible?jsx(StyledActionListSectionTitle,Object.assign({},makeAccessible({hidden:true}),{children:jsx(Text,{color:"surface.text.gray.muted",size:"small",weight:"semibold",children:title})})):null,jsx(BaseBox,Object.assign({},makeAccessible({role:isReactNative()?undefined:'listbox'}),{children:children})),showDividerInAutoComplete&&showDividerInRN?jsx(Divider,{marginX:"spacing.3",marginY:"spacing.1"}):null]}));};var ActionListSection=assignWithoutSideEffects(_ActionListSection,{componentId:componentIds.ActionListSection});var _ActionListItemIcon=function _ActionListItemIcon(_ref2){var icon=_ref2.icon;var Icon=icon;var _React$useContext=React__default.useContext(ActionListItemContext),intent=_React$useContext.intent,isDisabled=_React$useContext.isDisabled;var iconState=isDisabled?'disabled':'muted';return jsx(Icon,{color:intent==='negative'?'feedback.icon.negative.intense':`interactive.icon.gray.${iconState}`,size:"medium"});};var ActionListItemIcon=assignWithoutSideEffects(_ActionListItemIcon,{componentId:componentIds.ActionListItemIcon});var _ActionListItemBadgeGroup=function _ActionListItemBadgeGroup(_ref3){var children=_ref3.children;return jsx(Box,{display:"flex",alignItems:"center",flexDirection:"row",children:children});};var ActionListItemBadgeGroup=assignWithoutSideEffects(_ActionListItemBadgeGroup,{componentId:componentIds.ActionListItemBadgeGroup});var _ActionListItemBadge=function _ActionListItemBadge(props){return jsx(Badge,Object.assign({size:"medium",marginLeft:"spacing.3"},props));};var ActionListItemBadge=assignWithoutSideEffects(_ActionListItemBadge,{componentId:componentIds.ActionListItemBadge});var _ActionListItemText=function _ActionListItemText(_ref4){var children=_ref4.children;var _React$useContext2=React__default.useContext(ActionListItemContext),isDisabled=_React$useContext2.isDisabled;return jsx(Text,{variant:"caption",color:getNormalTextColor(isDisabled,{isMuted:true}),children:children});};var ActionListItemText=assignWithoutSideEffects(_ActionListItemText,{componentId:componentIds.ActionListItemText});var makeActionListItemClickable=function makeActionListItemClickable(clickHandler){if(isReactNative()){return {onPress:clickHandler};}return {onClick:clickHandler};};var _ActionListItemBody=function _ActionListItemBody(_ref5){var selectionType=_ref5.selectionType,intent=_ref5.intent,description=_ref5.description,isDisabled=_ref5.isDisabled,leading=_ref5.leading,trailing=_ref5.trailing,title=_ref5.title,titleSuffix=_ref5.titleSuffix,isSelected=_ref5.isSelected;return jsxs(Fragment,{children:[jsxs(BaseBox,{display:"flex",justifyContent:"center",flexDirection:"row",alignItems:"center",maxHeight:isReactNative()?undefined:makeSize(size[20]),children:[jsx(BaseBox,{display:"flex",justifyContent:"center",alignItems:"center",children:selectionType==='multiple'?jsx(BaseBox,Object.assign({pointerEvents:"none",paddingRight:"spacing.2"},makeAccessible({hidden:true}),{children:jsx(Checkbox,{isChecked:isSelected,tabIndex:-1,isDisabled:isDisabled,children:null})})):leading}),jsxs(BaseBox,{paddingLeft:selectionType==='multiple'||!leading?'spacing.0':'spacing.3',paddingRight:"spacing.3",display:"flex",alignItems:"center",flexDirection:"row",children:[jsx(Text,{truncateAfterLines:1,color:intent==='negative'?'feedback.text.negative.intense':getNormalTextColor(isDisabled),children:title}),titleSuffix]}),jsx(BaseBox,{marginLeft:"auto",children:trailing})]}),jsx(BaseBox,{paddingLeft:leading||selectionType==='multiple'?'spacing.7':undefined,children:description?jsx(Text,{color:getNormalTextColor(isDisabled,{isMuted:true}),size:"small",children:description}):null})]});};var ActionListItemBody=React__default.memo(_ActionListItemBody);var _ActionListItem=function _ActionListItem(props){var _useDropdown2=useDropdown(),activeIndex=_useDropdown2.activeIndex,dropdownBaseId=_useDropdown2.dropdownBaseId,onOptionClick=_useDropdown2.onOptionClick,selectedIndices=_useDropdown2.selectedIndices,setShouldIgnoreBlurAnimation=_useDropdown2.setShouldIgnoreBlurAnimation,selectionType=_useDropdown2.selectionType,dropdownTriggerer=_useDropdown2.dropdownTriggerer,isKeydownPressed=_useDropdown2.isKeydownPressed,filteredValues=_useDropdown2.filteredValues,hasAutoCompleteInBottomSheetHeader=_useDropdown2.hasAutoCompleteInBottomSheetHeader;var _useTheme=useTheme(),platform=_useTheme.platform;var isMobile=platform==='onMobile';var hasAutoComplete=hasAutoCompleteInBottomSheetHeader||dropdownTriggerer===dropdownComponentIds.triggers.AutoComplete;var renderOnWebAs=props.href?'a':'button';var getIsSelected=function getIsSelected(){if(dropdownTriggerer===dropdownComponentIds.triggers.SelectInput||hasAutoComplete){if(typeof props._index==='number'){return selectedIndices.includes(props._index);}return undefined;}return props.isSelected;};var isSelected=getIsSelected();React__default.useEffect(function(){validateActionListItemProps({leading:props.leading,trailing:props.trailing,titleSuffix:props.titleSuffix});},[props.leading,props.trailing,props.titleSuffix]);React__default.useEffect(function(){if(__DEV__){if(dropdownTriggerer===dropdownComponentIds.triggers.SelectInput&&props.intent==='negative'){throwBladeError({message:'negative intent ActionListItem cannot be used inside Dropdown with SelectInput trigger',moduleName:'ActionListItem'});}}},[props.intent,dropdownTriggerer]);return jsx(ActionListItemContext.Provider,{value:{intent:props.intent,isDisabled:props.isDisabled},children:jsx(StyledActionListItem,Object.assign({isVisible:hasAutoComplete&&filteredValues?filteredValues.includes(props.value):true,as:!isReactNative()?renderOnWebAs:undefined,id:`${dropdownBaseId}-${props._index}`,type:"button",tabIndex:-1,href:props.href,target:props.target,className:activeIndex===props._index?'active-focus':''},makeAccessible({selected:isSelected,current:isRoleMenu(dropdownTriggerer)?isSelected:undefined,role:getActionListItemRole(dropdownTriggerer,props.href),disabled:props.isDisabled}),makeActionListItemClickable(function(e){if(typeof props._index==='number'){onOptionClick(e,props._index);props.onClick==null?void 0:props.onClick({name:props.value,value:isSelected});}}),metaAttribute({name:MetaConstants.ActionListItem,testID:props.testID}),{onMouseDown:function onMouseDown(){setShouldIgnoreBlurAnimation(true);},onMouseUp:function onMouseUp(){setShouldIgnoreBlurAnimation(false);},"data-value":props.value,"data-index":props._index,selectionType:selectionType,hasDescription:Boolean(props.description),intent:props.intent,isSelected:isSelected,isKeydownPressed:isKeydownPressed,isMobile:isMobile,children:jsx(ActionListItemBody,{selectionType:selectionType,intent:props.intent,description:props.description,isDisabled:props.isDisabled,leading:props.leading,trailing:props.trailing,title:props.title,titleSuffix:props.titleSuffix,isSelected:isSelected})}))});};var ActionListItem=assignWithoutSideEffects(React__default.memo(_ActionListItem),{componentId:componentIds.ActionListItem,displayName:componentIds.ActionListItem});
42
41
 
43
42
  export { ActionListItem, ActionListItemBadge, ActionListItemBadgeGroup, ActionListItemIcon, ActionListItemText, ActionListSection };
44
43
  //# sourceMappingURL=ActionListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionListItem.js","sources":["../../../../../src/components/ActionList/ActionListItem.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport React from 'react';\nimport styled from 'styled-components';\nimport { StyledActionListItem } from './styles/StyledActionListItem';\nimport { componentIds } from './componentIds';\nimport type { StyledActionListItemProps } from './styles/getBaseActionListItemStyles';\nimport { validateActionListItemProps, getNormalTextColor } from './actionListUtils';\nimport { getActionListItemRole, getActionListSectionRole, isRoleMenu } from './getA11yRoles';\nimport { useActionListContext } from './ActionList';\nimport { Divider } from '~components/Divider';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport { useDropdown } from '~components/Dropdown/useDropdown';\nimport type { Feedback } from '~tokens/theme/theme';\nimport { Text } from '~components/Typography';\nimport { isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { Checkbox } from '~components/Checkbox';\nimport { size } from '~tokens/global';\nimport type { DropdownProps } from '~components/Dropdown';\nimport type { StringChildrenType, TestID } from '~utils/types';\nimport { useTheme } from '~components/BladeProvider';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeSize } from '~utils/makeSize';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { throwBladeError } from '~utils/logger';\nimport type { BadgeProps } from '~components/Badge';\nimport { Badge } from '~components/Badge';\nimport { Box } from '~components/Box';\nimport { dropdownComponentIds } from '~components/Dropdown/dropdownComponentIds';\n\ntype ActionListItemProps = {\n title: string;\n description?: string;\n onClick?: (clickProps: { name: string; value?: boolean }) => void;\n /**\n * value that you get from `onChange` event on SelectInput or in form submissions.\n */\n value: string;\n /**\n * Link to open when item is clicked.\n */\n href?: string;\n /**\n * HTML target of the link\n */\n target?: string;\n /**\n * Item that goes on left-side of item.\n *\n * Valid elements - `<ActionListItemIcon />`, `<ActionListItemAsset />`\n *\n * Will be overriden in multiselect\n */\n leading?: React.ReactNode;\n /**\n * Item that goes on right-side of item.\n *\n * Valid elements - `<ActionListItemText />`, `<ActionListItemIcon />`\n */\n trailing?: React.ReactNode;\n /**\n * Item that goes immediately next to the title.\n *\n * Valid elements - `<ActionListItemBadge />`, `<ActionListItemBadgeGroup />`\n *\n */\n titleSuffix?: React.ReactElement;\n isDisabled?: boolean;\n intent?: Extract<Feedback, 'negative'>;\n /**\n * Can be used in combination of `onClick` to highlight item as selected in Button Triggers.\n *\n * When trigger is SelectInput, Use `value` prop on SelectInput instead to make dropdown controlled.\n */\n isSelected?: boolean;\n /**\n * Internally passed from ActionList. No need to pass it explicitly\n *\n * @private\n */\n _index?: number;\n} & TestID;\n\nconst ActionListItemContext = React.createContext<{\n intent?: ActionListItemProps['intent'];\n isDisabled?: ActionListItemProps['isDisabled'];\n}>({});\n\nconst StyledActionListSectionTitle = styled(BaseBox)((props) => ({\n // @TODO: replace this styled-component with new layout box when we have padding shorthand\n padding: makeSize(props.theme.spacing[3]),\n}));\n\ntype ActionListSectionProps = {\n title: string;\n children: React.ReactNode[] | React.ReactNode;\n /**\n * Internally used to hide the divider on final item in React Native.\n *\n * Should not be used by consumers (also won't work on web)\n *\n * @private\n */\n _hideDivider?: boolean;\n /**\n * Internally used to hide / show section in AutoComplete\n *\n * @private\n */\n _sectionChildValues?: string[];\n} & TestID;\nconst _ActionListSection = ({\n title,\n children,\n testID,\n _hideDivider,\n _sectionChildValues,\n}: ActionListSectionProps): React.ReactElement => {\n const { surfaceLevel } = useActionListContext();\n const { hasAutoCompleteInBottomSheetHeader, dropdownTriggerer, filteredValues } = useDropdown();\n const hasAutoComplete =\n hasAutoCompleteInBottomSheetHeader ||\n dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete;\n\n const isSectionVisible = React.useMemo(() => {\n if (hasAutoComplete) {\n const visibleActionListItemInSection = _sectionChildValues?.find((actionItemValue) =>\n filteredValues.includes(actionItemValue),\n );\n\n return Boolean(visibleActionListItemInSection);\n }\n\n return true;\n }, [_sectionChildValues, hasAutoComplete, filteredValues]);\n\n const showDividerInRN = !(_hideDivider && isReactNative());\n const showDividerInAutoComplete = hasAutoComplete\n ? isSectionVisible && filteredValues.length > 1\n : true;\n\n return (\n <BaseBox\n {...makeAccessible({\n role: getActionListSectionRole(),\n label: title,\n })}\n backgroundColor={`surface.background.level${surfaceLevel}.lowContrast`}\n {...metaAttribute({ name: MetaConstants.ActionListSection, testID })}\n >\n {/* We're announcing title as group label so we can hide this */}\n {isSectionVisible ? (\n <StyledActionListSectionTitle {...makeAccessible({ hidden: true })}>\n <Text color=\"surface.text.muted.lowContrast\" size=\"small\" weight=\"bold\">\n {title}\n </Text>\n </StyledActionListSectionTitle>\n ) : null}\n <BaseBox\n {...makeAccessible({\n // On web, we just wrap it in another listbox to announce item count properly for particular group.\n // On React Native, we ignore it since `menu` + `group` role will take care of accessibility\n role: isReactNative() ? undefined : 'listbox',\n })}\n >\n {children}\n </BaseBox>\n {showDividerInAutoComplete && showDividerInRN ? (\n <Divider marginX=\"spacing.3\" marginY=\"spacing.1\" />\n ) : null}\n </BaseBox>\n );\n};\n\nconst ActionListSection = assignWithoutSideEffects(_ActionListSection, {\n componentId: componentIds.ActionListSection,\n});\n\nconst _ActionListItemIcon = ({ icon }: { icon: IconComponent }): React.ReactElement => {\n const Icon = icon;\n const { intent, isDisabled } = React.useContext(ActionListItemContext);\n return (\n <Icon\n color={\n intent === 'negative'\n ? 'feedback.icon.negative.lowContrast'\n : getNormalTextColor(isDisabled, { isMuted: true })\n }\n size=\"medium\"\n />\n );\n};\n\nconst ActionListItemIcon = assignWithoutSideEffects(_ActionListItemIcon, {\n componentId: componentIds.ActionListItemIcon,\n});\n\nconst _ActionListItemBadgeGroup = ({\n children,\n}: {\n children: React.ReactElement[] | React.ReactElement;\n}): React.ReactElement => {\n return (\n <Box display=\"flex\" alignItems=\"center\" flexDirection=\"row\">\n {children}\n </Box>\n );\n};\n\nconst ActionListItemBadgeGroup = assignWithoutSideEffects(_ActionListItemBadgeGroup, {\n componentId: componentIds.ActionListItemBadgeGroup,\n});\n\nconst _ActionListItemBadge = (props: BadgeProps): React.ReactElement => {\n return <Badge size=\"medium\" marginLeft=\"spacing.3\" {...props} />;\n};\n\nconst ActionListItemBadge = assignWithoutSideEffects(_ActionListItemBadge, {\n componentId: componentIds.ActionListItemBadge,\n});\n\nconst _ActionListItemText = ({\n children,\n}: {\n children: StringChildrenType;\n}): React.ReactElement => {\n const { isDisabled } = React.useContext(ActionListItemContext);\n\n return (\n <Text variant=\"caption\" color={getNormalTextColor(isDisabled, { isMuted: true })}>\n {children}\n </Text>\n );\n};\n\nconst ActionListItemText = assignWithoutSideEffects(_ActionListItemText, {\n componentId: componentIds.ActionListItemText,\n});\n\ntype ClickHandlerType = (e: React.MouseEvent<HTMLButtonElement>) => void;\n\nconst makeActionListItemClickable = (\n clickHandler: ClickHandlerType,\n): { onPress?: StyledActionListItemProps['onPress']; onClick?: ClickHandlerType } => {\n if (isReactNative()) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error\n // @ts-ignore: ignoring ReactNative press type for the peace of mind\n return { onPress: clickHandler };\n }\n\n return {\n onClick: clickHandler,\n };\n};\n\nconst _ActionListItemBody = ({\n selectionType,\n intent,\n description,\n isDisabled,\n leading,\n trailing,\n title,\n titleSuffix,\n isSelected,\n}: Pick<\n ActionListItemProps,\n 'intent' | 'isDisabled' | 'description' | 'trailing' | 'leading' | 'title' | 'titleSuffix'\n> & {\n selectionType: DropdownProps['selectionType'];\n isSelected?: boolean;\n}): React.ReactElement => {\n return (\n <>\n <BaseBox\n display=\"flex\"\n justifyContent=\"center\"\n flexDirection=\"row\"\n alignItems=\"center\"\n maxHeight={isReactNative() ? undefined : makeSize(size[20])}\n >\n <BaseBox display=\"flex\" justifyContent=\"center\" alignItems=\"center\">\n {selectionType === 'multiple' ? (\n // Adding aria-hidden because the listbox item in multiselect in itself explains the behaviour so announcing checkbox is unneccesary and just a nice UI tweak for us\n <BaseBox\n pointerEvents=\"none\"\n paddingRight=\"spacing.2\"\n {...makeAccessible({\n hidden: true,\n })}\n >\n <Checkbox isChecked={isSelected} tabIndex={-1} isDisabled={isDisabled}>\n {/* \n Checkbox requires children. Didn't want to make it optional because its helpful for consumers\n But for this case in particular, we just want to use Text separately so that we can control spacing and color and keep it consistent with non-multiselect dropdowns\n */}\n {null}\n </Checkbox>\n </BaseBox>\n ) : (\n leading\n )}\n </BaseBox>\n <BaseBox\n paddingLeft={selectionType === 'multiple' || !leading ? 'spacing.0' : 'spacing.3'}\n paddingRight=\"spacing.3\"\n display=\"flex\"\n alignItems=\"center\"\n flexDirection=\"row\"\n >\n <Text\n truncateAfterLines={1}\n color={\n intent === 'negative'\n ? 'feedback.text.negative.lowContrast'\n : getNormalTextColor(isDisabled)\n }\n >\n {title}\n </Text>\n {titleSuffix}\n </BaseBox>\n <BaseBox marginLeft=\"auto\">{trailing}</BaseBox>\n </BaseBox>\n <BaseBox paddingLeft={leading || selectionType === 'multiple' ? 'spacing.7' : undefined}>\n {description ? (\n <Text color={getNormalTextColor(isDisabled, { isMuted: true })} size=\"small\">\n {description}\n </Text>\n ) : null}\n </BaseBox>\n </>\n );\n};\n\nconst ActionListItemBody = React.memo(_ActionListItemBody);\n\n/**\n * ### ActionListItem\n *\n * Creates option inside `ActionList`.\n *\n * #### Usage\n *\n * ```jsx\n * <ActionList>\n * <ActionListItem\n * title=\"Home\"\n * value=\"home\"\n * leading={<ActionListItemIcon icon={HomeIcon} />}\n * trailing={<ActionListItemText>⌘ + S</ActionListItemText>}\n * />\n * </ActionList>\n * ```\n */\nconst _ActionListItem = (props: ActionListItemProps): React.ReactElement => {\n const {\n activeIndex,\n dropdownBaseId,\n onOptionClick,\n selectedIndices,\n setShouldIgnoreBlurAnimation,\n selectionType,\n dropdownTriggerer,\n isKeydownPressed,\n filteredValues,\n hasAutoCompleteInBottomSheetHeader,\n } = useDropdown();\n\n const { platform } = useTheme();\n const isMobile = platform === 'onMobile';\n const hasAutoComplete =\n hasAutoCompleteInBottomSheetHeader ||\n dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete;\n\n const renderOnWebAs = props.href ? 'a' : 'button';\n\n /**\n * In SelectInput, returns the isSelected according to selected indexes in the state\n *\n * In Other Triggers (Menu Usecase), returns `props.isSelected` since passing the\n * isSelected prop explicitly is the only way to select item in menu\n */\n const getIsSelected = (): boolean | undefined => {\n if (dropdownTriggerer === dropdownComponentIds.triggers.SelectInput || hasAutoComplete) {\n if (typeof props._index === 'number') {\n return selectedIndices.includes(props._index);\n }\n\n return undefined;\n }\n\n return props.isSelected;\n };\n\n const isSelected = getIsSelected();\n\n React.useEffect(() => {\n validateActionListItemProps({\n leading: props.leading,\n trailing: props.trailing,\n titleSuffix: props.titleSuffix,\n });\n }, [props.leading, props.trailing, props.titleSuffix]);\n\n React.useEffect(() => {\n if (__DEV__) {\n if (\n dropdownTriggerer === dropdownComponentIds.triggers.SelectInput &&\n props.intent === 'negative'\n ) {\n throwBladeError({\n message:\n 'negative intent ActionListItem cannot be used inside Dropdown with SelectInput trigger',\n moduleName: 'ActionListItem',\n });\n }\n }\n }, [props.intent, dropdownTriggerer]);\n\n return (\n <ActionListItemContext.Provider value={{ intent: props.intent, isDisabled: props.isDisabled }}>\n <StyledActionListItem\n isVisible={hasAutoComplete && filteredValues ? filteredValues.includes(props.value) : true}\n as={!isReactNative() ? renderOnWebAs : undefined}\n id={`${dropdownBaseId}-${props._index}`}\n type=\"button\"\n tabIndex={-1}\n href={props.href}\n target={props.target}\n className={activeIndex === props._index ? 'active-focus' : ''}\n {...makeAccessible({\n selected: isSelected,\n current: isRoleMenu(dropdownTriggerer) ? isSelected : undefined,\n role: getActionListItemRole(dropdownTriggerer, props.href),\n disabled: props.isDisabled,\n })}\n {...makeActionListItemClickable((e: React.MouseEvent<HTMLButtonElement>): void => {\n if (typeof props._index === 'number') {\n onOptionClick(e, props._index);\n props.onClick?.({ name: props.value, value: isSelected });\n }\n })}\n {...metaAttribute({ name: MetaConstants.ActionListItem, testID: props.testID })}\n onMouseDown={() => {\n // We want to keep focus on Dropdown's trigger while option is being clicked\n // So We set this flag that ignores the blur animation to avoid the flicker between focus out + focus in\n setShouldIgnoreBlurAnimation(true);\n }}\n onMouseUp={() => {\n // (Contd from above comment...) We set this flag back to false since blur of SelectInput is done calling by this time\n setShouldIgnoreBlurAnimation(false);\n }}\n data-value={props.value}\n data-index={props._index}\n // Custom props for changes in styles\n selectionType={selectionType}\n hasDescription={Boolean(props.description)}\n intent={props.intent}\n isSelected={isSelected}\n isKeydownPressed={isKeydownPressed}\n isMobile={isMobile}\n >\n <ActionListItemBody\n selectionType={selectionType}\n intent={props.intent}\n description={props.description}\n isDisabled={props.isDisabled}\n leading={props.leading}\n trailing={props.trailing}\n title={props.title}\n titleSuffix={props.titleSuffix}\n isSelected={isSelected}\n />\n </StyledActionListItem>\n </ActionListItemContext.Provider>\n );\n};\n\nconst ActionListItem = assignWithoutSideEffects(React.memo(_ActionListItem), {\n componentId: componentIds.ActionListItem,\n displayName: componentIds.ActionListItem,\n});\n\nexport type { ActionListItemProps, ActionListSectionProps };\nexport {\n ActionListItem,\n ActionListItemIcon,\n ActionListItemText,\n ActionListItemBadge,\n ActionListItemBadgeGroup,\n ActionListSection,\n};\n"],"names":["ActionListItemContext","React","createContext","StyledActionListSectionTitle","styled","BaseBox","props","padding","makeSize","theme","spacing","_ActionListSection","_ref","title","children","testID","_hideDivider","_sectionChildValues","_useActionListContext","useActionListContext","surfaceLevel","_useDropdown","useDropdown","hasAutoCompleteInBottomSheetHeader","dropdownTriggerer","filteredValues","hasAutoComplete","dropdownComponentIds","triggers","AutoComplete","isSectionVisible","useMemo","visibleActionListItemInSection","find","actionItemValue","includes","Boolean","showDividerInRN","isReactNative","showDividerInAutoComplete","length","_jsxs","Object","assign","makeAccessible","role","getActionListSectionRole","label","backgroundColor","metaAttribute","name","MetaConstants","ActionListSection","_jsx","hidden","Text","color","size","weight","undefined","Divider","marginX","marginY","assignWithoutSideEffects","componentId","componentIds","_ActionListItemIcon","_ref2","icon","Icon","_React$useContext","useContext","intent","isDisabled","getNormalTextColor","isMuted","ActionListItemIcon","_ActionListItemBadgeGroup","_ref3","Box","display","alignItems","flexDirection","ActionListItemBadgeGroup","_ActionListItemBadge","Badge","marginLeft","ActionListItemBadge","_ActionListItemText","_ref4","_React$useContext2","variant","ActionListItemText","makeActionListItemClickable","clickHandler","onPress","onClick","_ActionListItemBody","_ref5","selectionType","description","leading","trailing","titleSuffix","isSelected","_Fragment","justifyContent","maxHeight","pointerEvents","paddingRight","Checkbox","isChecked","tabIndex","paddingLeft","truncateAfterLines","ActionListItemBody","memo","_ActionListItem","_useDropdown2","activeIndex","dropdownBaseId","onOptionClick","selectedIndices","setShouldIgnoreBlurAnimation","isKeydownPressed","_useTheme","useTheme","platform","isMobile","renderOnWebAs","href","getIsSelected","SelectInput","_index","useEffect","validateActionListItemProps","__DEV__","throwBladeError","message","moduleName","Provider","value","StyledActionListItem","isVisible","as","id","type","target","className","selected","current","isRoleMenu","getActionListItemRole","disabled","e","ActionListItem","onMouseDown","onMouseUp","hasDescription","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFA,IAAMA,qBAAqB,CAAGC,cAAK,CAACC,aAAa,CAG9C,EAAE,CAAC,CAEN,IAAMC,4BAA4B,CAAGC,MAAM,CAACC,OAAO,CAAC,CAAC,SAACC,KAAK,CAAA,CAAA,OAAM,CAE/DC,OAAO,CAAEC,QAAQ,CAACF,KAAK,CAACG,KAAK,CAACC,OAAO,CAAC,CAAC,CAAC,CAC1C,CAAC,CAAC,CAAA,CAAC,CAoBH,IAAMC,kBAAkB,CAAG,SAArBA,kBAAkBA,CAAAC,IAAA,CAM0B,KALhDC,KAAK,CAAAD,IAAA,CAALC,KAAK,CACLC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CACRC,MAAM,CAAAH,IAAA,CAANG,MAAM,CACNC,YAAY,CAAAJ,IAAA,CAAZI,YAAY,CACZC,mBAAmB,CAAAL,IAAA,CAAnBK,mBAAmB,CAEnB,IAAAC,qBAAA,CAAyBC,oBAAoB,EAAE,CAAvCC,YAAY,CAAAF,qBAAA,CAAZE,YAAY,CACpB,IAAAC,YAAA,CAAkFC,WAAW,EAAE,CAAvFC,kCAAkC,CAAAF,YAAA,CAAlCE,kCAAkC,CAAEC,iBAAiB,CAAAH,YAAA,CAAjBG,iBAAiB,CAAEC,cAAc,CAAAJ,YAAA,CA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,YAAA,CAAYrH,KAAK,CAACuI,KAAM,CACxB,YAAA,CAAYvI,KAAK,CAAC+H,MAAO,CAEzBlC,aAAa,CAAEA,aAAc,CAC7B2D,cAAc,CAAE1H,OAAO,CAAC9B,KAAK,CAAC8F,WAAW,CAAE,CAC3C5B,MAAM,CAAElE,KAAK,CAACkE,MAAO,CACrBgC,UAAU,CAAEA,UAAW,CACvBoB,gBAAgB,CAAEA,gBAAiB,CACnCI,QAAQ,CAAEA,QAAS,CAAAlH,QAAA,CAEnBuC,GAAA,CAAC8D,kBAAkB,EACjBhB,aAAa,CAAEA,aAAc,CAC7B3B,MAAM,CAAElE,KAAK,CAACkE,MAAO,CACrB4B,WAAW,CAAE9F,KAAK,CAAC8F,WAAY,CAC/B3B,UAAU,CAAEnE,KAAK,CAACmE,UAAW,CAC7B4B,OAAO,CAAE/F,KAAK,CAAC+F,OAAQ,CACvBC,QAAQ,CAAEhG,KAAK,CAACgG,QAAS,CACzBzF,KAAK,CAAEP,KAAK,CAACO,KAAM,CACnB0F,WAAW,CAAEjG,KAAK,CAACiG,WAAY,CAC/BC,UAAU,CAAEA,UAAW,CACxB,CAAC,CAAA,CACkB,CAAC,CACO,CAAC,CAErC,CAAC,CAEK,IAAAmD,cAAc,CAAG5F,wBAAwB,CAAC9D,cAAK,CAACmH,IAAI,CAACC,eAAe,CAAC,CAAE,CAC3ErD,WAAW,CAAEC,YAAY,CAAC0F,cAAc,CACxCI,WAAW,CAAE9F,YAAY,CAAC0F,cAC5B,CAAC;;;;"}
1
+ {"version":3,"file":"ActionListItem.js","sources":["../../../../../src/components/ActionList/ActionListItem.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport React from 'react';\nimport styled from 'styled-components';\nimport { StyledActionListItem } from './styles/StyledActionListItem';\nimport { componentIds } from './componentIds';\nimport type { StyledActionListItemProps } from './styles/getBaseActionListItemStyles';\nimport { validateActionListItemProps, getNormalTextColor } from './actionListUtils';\nimport { getActionListItemRole, getActionListSectionRole, isRoleMenu } from './getA11yRoles';\nimport { Divider } from '~components/Divider';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport { useDropdown } from '~components/Dropdown/useDropdown';\nimport type { FeedbackColors } from '~tokens/theme/theme';\nimport { Text } from '~components/Typography';\nimport { isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { Checkbox } from '~components/Checkbox';\nimport { size } from '~tokens/global';\nimport type { DropdownProps } from '~components/Dropdown';\nimport type { StringChildrenType, TestID } from '~utils/types';\nimport { useTheme } from '~components/BladeProvider';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeSize } from '~utils/makeSize';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { throwBladeError } from '~utils/logger';\nimport type { BadgeProps } from '~components/Badge';\nimport { Badge } from '~components/Badge';\nimport { Box } from '~components/Box';\nimport { dropdownComponentIds } from '~components/Dropdown/dropdownComponentIds';\n\ntype ActionListItemProps = {\n title: string;\n description?: string;\n onClick?: (clickProps: { name: string; value?: boolean }) => void;\n /**\n * value that you get from `onChange` event on SelectInput or in form submissions.\n */\n value: string;\n /**\n * Link to open when item is clicked.\n */\n href?: string;\n /**\n * HTML target of the link\n */\n target?: string;\n /**\n * Item that goes on left-side of item.\n *\n * Valid elements - `<ActionListItemIcon />`, `<ActionListItemAsset />`\n *\n * Will be overriden in multiselect\n */\n leading?: React.ReactNode;\n /**\n * Item that goes on right-side of item.\n *\n * Valid elements - `<ActionListItemText />`, `<ActionListItemIcon />`\n */\n trailing?: React.ReactNode;\n /**\n * Item that goes immediately next to the title.\n *\n * Valid elements - `<ActionListItemBadge />`, `<ActionListItemBadgeGroup />`\n *\n */\n titleSuffix?: React.ReactElement;\n isDisabled?: boolean;\n intent?: Extract<FeedbackColors, 'negative'>;\n /**\n * Can be used in combination of `onClick` to highlight item as selected in Button Triggers.\n *\n * When trigger is SelectInput, Use `value` prop on SelectInput instead to make dropdown controlled.\n */\n isSelected?: boolean;\n /**\n * Internally passed from ActionList. No need to pass it explicitly\n *\n * @private\n */\n _index?: number;\n} & TestID;\n\nconst ActionListItemContext = React.createContext<{\n intent?: ActionListItemProps['intent'];\n isDisabled?: ActionListItemProps['isDisabled'];\n}>({});\n\nconst StyledActionListSectionTitle = styled(BaseBox)((props) => ({\n // @TODO: replace this styled-component with new layout box when we have padding shorthand\n padding: makeSize(props.theme.spacing[3]),\n}));\n\ntype ActionListSectionProps = {\n title: string;\n children: React.ReactNode[] | React.ReactNode;\n /**\n * Internally used to hide the divider on final item in React Native.\n *\n * Should not be used by consumers (also won't work on web)\n *\n * @private\n */\n _hideDivider?: boolean;\n /**\n * Internally used to hide / show section in AutoComplete\n *\n * @private\n */\n _sectionChildValues?: string[];\n} & TestID;\nconst _ActionListSection = ({\n title,\n children,\n testID,\n _hideDivider,\n _sectionChildValues,\n}: ActionListSectionProps): React.ReactElement => {\n const { hasAutoCompleteInBottomSheetHeader, dropdownTriggerer, filteredValues } = useDropdown();\n const hasAutoComplete =\n hasAutoCompleteInBottomSheetHeader ||\n dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete;\n\n const isSectionVisible = React.useMemo(() => {\n if (hasAutoComplete) {\n const visibleActionListItemInSection = _sectionChildValues?.find((actionItemValue) =>\n filteredValues.includes(actionItemValue),\n );\n\n return Boolean(visibleActionListItemInSection);\n }\n\n return true;\n }, [_sectionChildValues, hasAutoComplete, filteredValues]);\n\n const showDividerInRN = !(_hideDivider && isReactNative());\n const showDividerInAutoComplete = hasAutoComplete\n ? isSectionVisible && filteredValues.length > 1\n : true;\n\n return (\n <BaseBox\n {...makeAccessible({\n role: getActionListSectionRole(),\n label: title,\n })}\n {...metaAttribute({ name: MetaConstants.ActionListSection, testID })}\n >\n {/* We're announcing title as group label so we can hide this */}\n {isSectionVisible ? (\n <StyledActionListSectionTitle {...makeAccessible({ hidden: true })}>\n <Text color=\"surface.text.gray.muted\" size=\"small\" weight=\"semibold\">\n {title}\n </Text>\n </StyledActionListSectionTitle>\n ) : null}\n <BaseBox\n {...makeAccessible({\n // On web, we just wrap it in another listbox to announce item count properly for particular group.\n // On React Native, we ignore it since `menu` + `group` role will take care of accessibility\n role: isReactNative() ? undefined : 'listbox',\n })}\n >\n {children}\n </BaseBox>\n {showDividerInAutoComplete && showDividerInRN ? (\n <Divider marginX=\"spacing.3\" marginY=\"spacing.1\" />\n ) : null}\n </BaseBox>\n );\n};\n\nconst ActionListSection = assignWithoutSideEffects(_ActionListSection, {\n componentId: componentIds.ActionListSection,\n});\n\nconst _ActionListItemIcon = ({ icon }: { icon: IconComponent }): React.ReactElement => {\n const Icon = icon;\n const { intent, isDisabled } = React.useContext(ActionListItemContext);\n const iconState = isDisabled ? 'disabled' : 'muted';\n return (\n <Icon\n color={\n intent === 'negative'\n ? 'feedback.icon.negative.intense'\n : `interactive.icon.gray.${iconState}`\n }\n size=\"medium\"\n />\n );\n};\n\nconst ActionListItemIcon = assignWithoutSideEffects(_ActionListItemIcon, {\n componentId: componentIds.ActionListItemIcon,\n});\n\nconst _ActionListItemBadgeGroup = ({\n children,\n}: {\n children: React.ReactElement[] | React.ReactElement;\n}): React.ReactElement => {\n return (\n <Box display=\"flex\" alignItems=\"center\" flexDirection=\"row\">\n {children}\n </Box>\n );\n};\n\nconst ActionListItemBadgeGroup = assignWithoutSideEffects(_ActionListItemBadgeGroup, {\n componentId: componentIds.ActionListItemBadgeGroup,\n});\n\nconst _ActionListItemBadge = (props: BadgeProps): React.ReactElement => {\n return <Badge size=\"medium\" marginLeft=\"spacing.3\" {...props} />;\n};\n\nconst ActionListItemBadge = assignWithoutSideEffects(_ActionListItemBadge, {\n componentId: componentIds.ActionListItemBadge,\n});\n\nconst _ActionListItemText = ({\n children,\n}: {\n children: StringChildrenType;\n}): React.ReactElement => {\n const { isDisabled } = React.useContext(ActionListItemContext);\n\n return (\n <Text variant=\"caption\" color={getNormalTextColor(isDisabled, { isMuted: true })}>\n {children}\n </Text>\n );\n};\n\nconst ActionListItemText = assignWithoutSideEffects(_ActionListItemText, {\n componentId: componentIds.ActionListItemText,\n});\n\ntype ClickHandlerType = (e: React.MouseEvent<HTMLButtonElement>) => void;\n\nconst makeActionListItemClickable = (\n clickHandler: ClickHandlerType,\n): { onPress?: StyledActionListItemProps['onPress']; onClick?: ClickHandlerType } => {\n if (isReactNative()) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error\n // @ts-ignore: ignoring ReactNative press type for the peace of mind\n return { onPress: clickHandler };\n }\n\n return {\n onClick: clickHandler,\n };\n};\n\nconst _ActionListItemBody = ({\n selectionType,\n intent,\n description,\n isDisabled,\n leading,\n trailing,\n title,\n titleSuffix,\n isSelected,\n}: Pick<\n ActionListItemProps,\n 'intent' | 'isDisabled' | 'description' | 'trailing' | 'leading' | 'title' | 'titleSuffix'\n> & {\n selectionType: DropdownProps['selectionType'];\n isSelected?: boolean;\n}): React.ReactElement => {\n return (\n <>\n <BaseBox\n display=\"flex\"\n justifyContent=\"center\"\n flexDirection=\"row\"\n alignItems=\"center\"\n maxHeight={isReactNative() ? undefined : makeSize(size[20])}\n >\n <BaseBox display=\"flex\" justifyContent=\"center\" alignItems=\"center\">\n {selectionType === 'multiple' ? (\n // Adding aria-hidden because the listbox item in multiselect in itself explains the behaviour so announcing checkbox is unneccesary and just a nice UI tweak for us\n <BaseBox\n pointerEvents=\"none\"\n paddingRight=\"spacing.2\"\n {...makeAccessible({\n hidden: true,\n })}\n >\n <Checkbox isChecked={isSelected} tabIndex={-1} isDisabled={isDisabled}>\n {/* \n Checkbox requires children. Didn't want to make it optional because its helpful for consumers\n But for this case in particular, we just want to use Text separately so that we can control spacing and color and keep it consistent with non-multiselect dropdowns\n */}\n {null}\n </Checkbox>\n </BaseBox>\n ) : (\n leading\n )}\n </BaseBox>\n <BaseBox\n paddingLeft={selectionType === 'multiple' || !leading ? 'spacing.0' : 'spacing.3'}\n paddingRight=\"spacing.3\"\n display=\"flex\"\n alignItems=\"center\"\n flexDirection=\"row\"\n >\n <Text\n truncateAfterLines={1}\n color={\n intent === 'negative'\n ? 'feedback.text.negative.intense'\n : getNormalTextColor(isDisabled)\n }\n >\n {title}\n </Text>\n {titleSuffix}\n </BaseBox>\n <BaseBox marginLeft=\"auto\">{trailing}</BaseBox>\n </BaseBox>\n <BaseBox paddingLeft={leading || selectionType === 'multiple' ? 'spacing.7' : undefined}>\n {description ? (\n <Text color={getNormalTextColor(isDisabled, { isMuted: true })} size=\"small\">\n {description}\n </Text>\n ) : null}\n </BaseBox>\n </>\n );\n};\n\nconst ActionListItemBody = React.memo(_ActionListItemBody);\n\n/**\n * ### ActionListItem\n *\n * Creates option inside `ActionList`.\n *\n * #### Usage\n *\n * ```jsx\n * <ActionList>\n * <ActionListItem\n * title=\"Home\"\n * value=\"home\"\n * leading={<ActionListItemIcon icon={HomeIcon} />}\n * trailing={<ActionListItemText>⌘ + S</ActionListItemText>}\n * />\n * </ActionList>\n * ```\n */\nconst _ActionListItem = (props: ActionListItemProps): React.ReactElement => {\n const {\n activeIndex,\n dropdownBaseId,\n onOptionClick,\n selectedIndices,\n setShouldIgnoreBlurAnimation,\n selectionType,\n dropdownTriggerer,\n isKeydownPressed,\n filteredValues,\n hasAutoCompleteInBottomSheetHeader,\n } = useDropdown();\n\n const { platform } = useTheme();\n const isMobile = platform === 'onMobile';\n const hasAutoComplete =\n hasAutoCompleteInBottomSheetHeader ||\n dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete;\n\n const renderOnWebAs = props.href ? 'a' : 'button';\n\n /**\n * In SelectInput, returns the isSelected according to selected indexes in the state\n *\n * In Other Triggers (Menu Usecase), returns `props.isSelected` since passing the\n * isSelected prop explicitly is the only way to select item in menu\n */\n const getIsSelected = (): boolean | undefined => {\n if (dropdownTriggerer === dropdownComponentIds.triggers.SelectInput || hasAutoComplete) {\n if (typeof props._index === 'number') {\n return selectedIndices.includes(props._index);\n }\n\n return undefined;\n }\n\n return props.isSelected;\n };\n\n const isSelected = getIsSelected();\n\n React.useEffect(() => {\n validateActionListItemProps({\n leading: props.leading,\n trailing: props.trailing,\n titleSuffix: props.titleSuffix,\n });\n }, [props.leading, props.trailing, props.titleSuffix]);\n\n React.useEffect(() => {\n if (__DEV__) {\n if (\n dropdownTriggerer === dropdownComponentIds.triggers.SelectInput &&\n props.intent === 'negative'\n ) {\n throwBladeError({\n message:\n 'negative intent ActionListItem cannot be used inside Dropdown with SelectInput trigger',\n moduleName: 'ActionListItem',\n });\n }\n }\n }, [props.intent, dropdownTriggerer]);\n\n return (\n <ActionListItemContext.Provider value={{ intent: props.intent, isDisabled: props.isDisabled }}>\n <StyledActionListItem\n isVisible={hasAutoComplete && filteredValues ? filteredValues.includes(props.value) : true}\n as={!isReactNative() ? renderOnWebAs : undefined}\n id={`${dropdownBaseId}-${props._index}`}\n type=\"button\"\n tabIndex={-1}\n href={props.href}\n target={props.target}\n className={activeIndex === props._index ? 'active-focus' : ''}\n {...makeAccessible({\n selected: isSelected,\n current: isRoleMenu(dropdownTriggerer) ? isSelected : undefined,\n role: getActionListItemRole(dropdownTriggerer, props.href),\n disabled: props.isDisabled,\n })}\n {...makeActionListItemClickable((e: React.MouseEvent<HTMLButtonElement>): void => {\n if (typeof props._index === 'number') {\n onOptionClick(e, props._index);\n props.onClick?.({ name: props.value, value: isSelected });\n }\n })}\n {...metaAttribute({ name: MetaConstants.ActionListItem, testID: props.testID })}\n onMouseDown={() => {\n // We want to keep focus on Dropdown's trigger while option is being clicked\n // So We set this flag that ignores the blur animation to avoid the flicker between focus out + focus in\n setShouldIgnoreBlurAnimation(true);\n }}\n onMouseUp={() => {\n // (Contd from above comment...) We set this flag back to false since blur of SelectInput is done calling by this time\n setShouldIgnoreBlurAnimation(false);\n }}\n data-value={props.value}\n data-index={props._index}\n // Custom props for changes in styles\n selectionType={selectionType}\n hasDescription={Boolean(props.description)}\n intent={props.intent}\n isSelected={isSelected}\n isKeydownPressed={isKeydownPressed}\n isMobile={isMobile}\n >\n <ActionListItemBody\n selectionType={selectionType}\n intent={props.intent}\n description={props.description}\n isDisabled={props.isDisabled}\n leading={props.leading}\n trailing={props.trailing}\n title={props.title}\n titleSuffix={props.titleSuffix}\n isSelected={isSelected}\n />\n </StyledActionListItem>\n </ActionListItemContext.Provider>\n );\n};\n\nconst ActionListItem = assignWithoutSideEffects(React.memo(_ActionListItem), {\n componentId: componentIds.ActionListItem,\n displayName: componentIds.ActionListItem,\n});\n\nexport type { ActionListItemProps, ActionListSectionProps };\nexport {\n ActionListItem,\n ActionListItemIcon,\n ActionListItemText,\n ActionListItemBadge,\n ActionListItemBadgeGroup,\n ActionListSection,\n};\n"],"names":["ActionListItemContext","React","createContext","StyledActionListSectionTitle","styled","BaseBox","props","padding","makeSize","theme","spacing","_ActionListSection","_ref","title","children","testID","_hideDivider","_sectionChildValues","_useDropdown","useDropdown","hasAutoCompleteInBottomSheetHeader","dropdownTriggerer","filteredValues","hasAutoComplete","dropdownComponentIds","triggers","AutoComplete","isSectionVisible","useMemo","visibleActionListItemInSection","find","actionItemValue","includes","Boolean","showDividerInRN","isReactNative","showDividerInAutoComplete","length","_jsxs","Object","assign","makeAccessible","role","getActionListSectionRole","label","metaAttribute","name","MetaConstants","ActionListSection","_jsx","hidden","Text","color","size","weight","undefined","Divider","marginX","marginY","assignWithoutSideEffects","componentId","componentIds","_ActionListItemIcon","_ref2","icon","Icon","_React$useContext","useContext","intent","isDisabled","iconState","ActionListItemIcon","_ActionListItemBadgeGroup","_ref3","Box","display","alignItems","flexDirection","ActionListItemBadgeGroup","_ActionListItemBadge","Badge","marginLeft","ActionListItemBadge","_ActionListItemText","_ref4","_React$useContext2","variant","getNormalTextColor","isMuted","ActionListItemText","makeActionListItemClickable","clickHandler","onPress","onClick","_ActionListItemBody","_ref5","selectionType","description","leading","trailing","titleSuffix","isSelected","_Fragment","justifyContent","maxHeight","pointerEvents","paddingRight","Checkbox","isChecked","tabIndex","paddingLeft","truncateAfterLines","ActionListItemBody","memo","_ActionListItem","_useDropdown2","activeIndex","dropdownBaseId","onOptionClick","selectedIndices","setShouldIgnoreBlurAnimation","isKeydownPressed","_useTheme","useTheme","platform","isMobile","renderOnWebAs","href","getIsSelected","SelectInput","_index","useEffect","validateActionListItemProps","__DEV__","throwBladeError","message","moduleName","Provider","value","StyledActionListItem","isVisible","as","id","type","target","className","selected","current","isRoleMenu","getActionListItemRole","disabled","e","ActionListItem","onMouseDown","onMouseUp","hasDescription","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,IAAMA,qBAAqB,CAAGC,cAAK,CAACC,aAAa,CAG9C,EAAE,CAAC,CAEN,IAAMC,4BAA4B,CAAGC,MAAM,CAACC,OAAO,CAAC,CAAC,SAACC,KAAK,CAAA,CAAA,OAAM,CAE/DC,OAAO,CAAEC,QAAQ,CAACF,KAAK,CAACG,KAAK,CAACC,OAAO,CAAC,CAAC,CAAC,CAC1C,CAAC,CAAA,CAAC,CAAC,CAoBH,IAAMC,kBAAkB,CAAG,SAArBA,kBAAkBA,CAAAC,IAAA,CAM0B,CALhD,IAAAC,KAAK,CAAAD,IAAA,CAALC,KAAK,CACLC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CACRC,MAAM,CAAAH,IAAA,CAANG,MAAM,CACNC,YAAY,CAAAJ,IAAA,CAAZI,YAAY,CACZC,mBAAmB,CAAAL,IAAA,CAAnBK,mBAAmB,CAEnB,IAAAC,YAAA,CAAkFC,WAAW,EAAE,CAAvFC,kCAAkC,CAAAF,YAAA,CAAlCE,kCAAkC,CAAEC,iBAAiB,CAAAH,YAAA,CAAjBG,iBAAiB,CAAEC,cAAc,CAAAJ,YAAA,CAAdI,cAAc,CAC7E,IAAMC,eAAe,CACnBH,kCAAkC,EAClCC,iBAAiB,GAAKG,oBAAoB,CAACC,QAAQ,CAACC,YAAY,CAElE,IAAMC,gBAAgB,CAAG1B,cAAK,CAAC2B,OAAO,CAAC,UAAM,CAC3C,GAA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A,gBAAiB,CACnCI,QAAQ,CAAEA,QAAS,CAAA/G,QAAA,CAEnBmC,GAAA,CAAC+D,kBAAkB,CAAA,CACjBhB,aAAa,CAAEA,aAAc,CAC7B5B,MAAM,CAAE9D,KAAK,CAAC8D,MAAO,CACrB6B,WAAW,CAAE3F,KAAK,CAAC2F,WAAY,CAC/B5B,UAAU,CAAE/D,KAAK,CAAC+D,UAAW,CAC7B6B,OAAO,CAAE5F,KAAK,CAAC4F,OAAQ,CACvBC,QAAQ,CAAE7F,KAAK,CAAC6F,QAAS,CACzBtF,KAAK,CAAEP,KAAK,CAACO,KAAM,CACnBuF,WAAW,CAAE9F,KAAK,CAAC8F,WAAY,CAC/BC,UAAU,CAAEA,UAAW,CACxB,CAAC,CAAA,CACkB,CAAC,CACO,CAAC,CAErC,CAAC,CAEK,IAAAmD,cAAc,CAAG7F,wBAAwB,CAAC1D,cAAK,CAACgH,IAAI,CAACC,eAAe,CAAC,CAAE,CAC3EtD,WAAW,CAAEC,YAAY,CAAC2F,cAAc,CACxCI,WAAW,CAAE/F,YAAY,CAAC2F,cAC5B,CAAC;;;;"}
@@ -19,7 +19,7 @@ import '../Typography/BaseText/BaseText.native.js';
19
19
  import { Text } from '../Typography/Text/Text.js';
20
20
  import '../Typography/Code/Code.js';
21
21
 
22
- var ActionListNoResults=function ActionListNoResults(){return jsxs(Box,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"spacing.5",children:[jsx(SearchIcon,{size:"xlarge",color:"surface.text.normal.lowContrast"}),jsx(Text,{marginTop:"spacing.5",weight:"bold",children:"No Search Result Found"}),jsx(Text,{marginTop:"spacing.3",size:"small",type:"subtle",children:"Try searching for a different value"})]});};
22
+ var ActionListNoResults=function ActionListNoResults(){return jsxs(Box,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"spacing.5",children:[jsx(SearchIcon,{size:"xlarge",color:"surface.icon.gray.muted"}),jsx(Text,{marginTop:"spacing.5",weight:"semibold",children:"No Search Result Found"}),jsx(Text,{color:"surface.text.gray.subtle",marginTop:"spacing.3",size:"small",children:"Try searching for a different value"})]});};
23
23
 
24
24
  export { ActionListNoResults };
25
25
  //# sourceMappingURL=ActionListNoResults.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionListNoResults.js","sources":["../../../../../src/components/ActionList/ActionListNoResults.tsx"],"sourcesContent":["import { Box } from '~components/Box';\nimport { SearchIcon } from '~components/Icons';\nimport { Text } from '~components/Typography';\n\nconst ActionListNoResults = (): React.ReactElement => {\n return (\n <Box\n display=\"flex\"\n flexDirection=\"column\"\n alignItems=\"center\"\n justifyContent=\"center\"\n padding=\"spacing.5\"\n >\n <SearchIcon size=\"xlarge\" color=\"surface.text.normal.lowContrast\" />\n <Text marginTop=\"spacing.5\" weight=\"bold\">\n No Search Result Found\n </Text>\n <Text marginTop=\"spacing.3\" size=\"small\" type=\"subtle\">\n Try searching for a different value\n </Text>\n </Box>\n );\n};\n\nexport { ActionListNoResults };\n"],"names":["ActionListNoResults","_jsxs","Box","display","flexDirection","alignItems","justifyContent","padding","children","_jsx","SearchIcon","size","color","Text","marginTop","weight","type"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIM,IAAAA,mBAAmB,CAAG,SAAtBA,mBAAmBA,EAA6B,CACpD,OACEC,IAAA,CAACC,GAAG,CACFC,CAAAA,OAAO,CAAC,MAAM,CACdC,aAAa,CAAC,QAAQ,CACtBC,UAAU,CAAC,QAAQ,CACnBC,cAAc,CAAC,QAAQ,CACvBC,OAAO,CAAC,WAAW,CAAAC,QAAA,CAAA,CAEnBC,GAAA,CAACC,UAAU,CAACC,CAAAA,IAAI,CAAC,QAAQ,CAACC,KAAK,CAAC,iCAAiC,CAAE,CAAC,CACpEH,GAAA,CAACI,IAAI,CAACC,CAAAA,SAAS,CAAC,WAAW,CAACC,MAAM,CAAC,MAAM,CAAAP,QAAA,CAAC,wBAE1C,CAAM,CAAC,CACPC,GAAA,CAACI,IAAI,CAAA,CAACC,SAAS,CAAC,WAAW,CAACH,IAAI,CAAC,OAAO,CAACK,IAAI,CAAC,QAAQ,CAAAR,QAAA,CAAC,qCAEvD,CAAM,CAAC,CACJ,CAAA,CAAC,CAEV;;;;"}
1
+ {"version":3,"file":"ActionListNoResults.js","sources":["../../../../../src/components/ActionList/ActionListNoResults.tsx"],"sourcesContent":["import { Box } from '~components/Box';\nimport { SearchIcon } from '~components/Icons';\nimport { Text } from '~components/Typography';\n\nconst ActionListNoResults = (): React.ReactElement => {\n return (\n <Box\n display=\"flex\"\n flexDirection=\"column\"\n alignItems=\"center\"\n justifyContent=\"center\"\n padding=\"spacing.5\"\n >\n <SearchIcon size=\"xlarge\" color=\"surface.icon.gray.muted\" />\n <Text marginTop=\"spacing.5\" weight=\"semibold\">\n No Search Result Found\n </Text>\n <Text color=\"surface.text.gray.subtle\" marginTop=\"spacing.3\" size=\"small\">\n Try searching for a different value\n </Text>\n </Box>\n );\n};\n\nexport { ActionListNoResults };\n"],"names":["ActionListNoResults","_jsxs","Box","display","flexDirection","alignItems","justifyContent","padding","children","_jsx","SearchIcon","size","color","Text","marginTop","weight"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIM,IAAAA,mBAAmB,CAAG,SAAtBA,mBAAmBA,EAA6B,CACpD,OACEC,IAAA,CAACC,GAAG,CACFC,CAAAA,OAAO,CAAC,MAAM,CACdC,aAAa,CAAC,QAAQ,CACtBC,UAAU,CAAC,QAAQ,CACnBC,cAAc,CAAC,QAAQ,CACvBC,OAAO,CAAC,WAAW,CAAAC,QAAA,CAAA,CAEnBC,GAAA,CAACC,UAAU,CAACC,CAAAA,IAAI,CAAC,QAAQ,CAACC,KAAK,CAAC,yBAAyB,CAAE,CAAC,CAC5DH,GAAA,CAACI,IAAI,CAACC,CAAAA,SAAS,CAAC,WAAW,CAACC,MAAM,CAAC,UAAU,CAAAP,QAAA,CAAC,wBAE9C,CAAM,CAAC,CACPC,GAAA,CAACI,IAAI,CAAA,CAACD,KAAK,CAAC,0BAA0B,CAACE,SAAS,CAAC,WAAW,CAACH,IAAI,CAAC,OAAO,CAAAH,QAAA,CAAC,qCAE1E,CAAM,CAAC,CACJ,CAAA,CAAC,CAEV;;;;"}