@razorpay/blade 12.49.4 → 12.49.6

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 (624) hide show
  1. package/build/lib/native/components/Accordion/AccordionButton.native.js.map +1 -1
  2. package/build/lib/native/components/ActionList/ActionList.js.map +1 -1
  3. package/build/lib/native/components/ActionList/ActionListItem.js.map +1 -1
  4. package/build/lib/native/components/ActionList/actionListUtils.js.map +1 -1
  5. package/build/lib/native/components/Alert/Alert.js.map +1 -1
  6. package/build/lib/native/components/Amount/Amount.js.map +1 -1
  7. package/build/lib/native/components/Badge/Badge.js.map +1 -1
  8. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  9. package/build/lib/native/components/BladeProvider/useBladeProvider.js.map +1 -1
  10. package/build/lib/native/components/BottomSheet/BottomSheet.native.js +1 -1
  11. package/build/lib/native/components/BottomSheet/BottomSheet.native.js.map +1 -1
  12. package/build/lib/native/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  13. package/build/lib/native/components/Box/Box.js.map +1 -1
  14. package/build/lib/native/components/Button/BaseButton/BaseButton.js.map +1 -1
  15. package/build/lib/native/components/Button/BaseButton/StyledBaseButton.native.js.map +1 -1
  16. package/build/lib/native/components/Button/BaseButton/buttonTokens.js.map +1 -1
  17. package/build/lib/native/components/Button/IconButton/StyledIconButton.native.js.map +1 -1
  18. package/build/lib/native/components/Card/CardContext.js.map +1 -1
  19. package/build/lib/native/components/Card/CardFooter.js.map +1 -1
  20. package/build/lib/native/components/Card/CardHeader.js.map +1 -1
  21. package/build/lib/native/components/Card/CardRoot.native.js.map +1 -1
  22. package/build/lib/native/components/Card/CardSurface.native.js.map +1 -1
  23. package/build/lib/native/components/Carousel/Carousel.native.js.map +1 -1
  24. package/build/lib/native/components/Carousel/CarouselItem.native.js.map +1 -1
  25. package/build/lib/native/components/Carousel/Indicators/Indicators.js.map +1 -1
  26. package/build/lib/native/components/Carousel/Indicators/getIndicatorButtonStyles.js.map +1 -1
  27. package/build/lib/native/components/Checkbox/Checkbox.js.map +1 -1
  28. package/build/lib/native/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  29. package/build/lib/native/components/Checkbox/useCheckbox.js.map +1 -1
  30. package/build/lib/native/components/Chip/ChipGroup.js.map +1 -1
  31. package/build/lib/native/components/Chip/chipTokens.js.map +1 -1
  32. package/build/lib/native/components/Chip/useChipGroup.js.map +1 -1
  33. package/build/lib/native/components/Collapsible/Collapsible.js.map +1 -1
  34. package/build/lib/native/components/Collapsible/CollapsibleChevronIcon.native.js.map +1 -1
  35. package/build/lib/native/components/Collapsible/CollapsibleContext.js.map +1 -1
  36. package/build/lib/native/components/Counter/Counter.js.map +1 -1
  37. package/build/lib/native/components/Divider/Divider.js.map +1 -1
  38. package/build/lib/native/components/Dropdown/Dropdown.js +1 -1
  39. package/build/lib/native/components/Dropdown/Dropdown.js.map +1 -1
  40. package/build/lib/native/components/Dropdown/DropdownButton.js +1 -1
  41. package/build/lib/native/components/Dropdown/DropdownButton.js.map +1 -1
  42. package/build/lib/native/components/Dropdown/DropdownIconButton.js +1 -1
  43. package/build/lib/native/components/Dropdown/DropdownIconButton.js.map +1 -1
  44. package/build/lib/native/components/Dropdown/DropdownLink.js +1 -1
  45. package/build/lib/native/components/Dropdown/DropdownLink.js.map +1 -1
  46. package/build/lib/native/components/Dropdown/DropdownOverlay.native.js.map +1 -1
  47. package/build/lib/native/components/Dropdown/dropdownUtils.js.map +1 -1
  48. package/build/lib/native/components/Form/useFormId.js.map +1 -1
  49. package/build/lib/native/components/Input/BaseInput/BaseInput.js +1 -1
  50. package/build/lib/native/components/Input/BaseInput/BaseInput.js.map +1 -1
  51. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js.map +1 -1
  52. package/build/lib/native/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  53. package/build/lib/native/components/Input/DropdownInputTriggers/Chevron.js.map +1 -1
  54. package/build/lib/native/components/Input/DropdownInputTriggers/SelectInput.js +1 -1
  55. package/build/lib/native/components/Input/DropdownInputTriggers/SelectInput.js.map +1 -1
  56. package/build/lib/native/components/Input/OTPInput/OTPInput.js.map +1 -1
  57. package/build/lib/native/components/Input/TextInput/TextInput.js.map +1 -1
  58. package/build/lib/native/components/Link/BaseLink/BaseLink.js.map +1 -1
  59. package/build/lib/native/components/Link/BaseLink/StyledBaseLink.native.js.map +1 -1
  60. package/build/lib/native/components/List/ListItem.js.map +1 -1
  61. package/build/lib/native/components/List/getOrderedListItemBullet.js.map +1 -1
  62. package/build/lib/native/components/Popover/PopoverContext.js.map +1 -1
  63. package/build/lib/native/components/PopupArrow/PopupArrow.native.js.map +1 -1
  64. package/build/lib/native/components/ProgressBar/CircularProgressBar.native.js.map +1 -1
  65. package/build/lib/native/components/ProgressBar/ProgressBar.js.map +1 -1
  66. package/build/lib/native/components/ProgressBar/ProgressBarFilled.native.js.map +1 -1
  67. package/build/lib/native/components/ProgressBar/progressBarTokens.js.map +1 -1
  68. package/build/lib/native/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  69. package/build/lib/native/components/Radio/RadioGroup/useRadioGroup.js.map +1 -1
  70. package/build/lib/native/components/Radio/RadioIcon/RadioIcon.js.map +1 -1
  71. package/build/lib/native/components/Radio/useRadio.js.map +1 -1
  72. package/build/lib/native/components/Spinner/BaseSpinner/BaseSpinner.js.map +1 -1
  73. package/build/lib/native/components/Spinner/BaseSpinner/SpinningBox.native.js.map +1 -1
  74. package/build/lib/native/components/StepGroup/StepItemMarker.js.map +1 -1
  75. package/build/lib/native/components/Switch/getTrackStyles.js.map +1 -1
  76. package/build/lib/native/components/Tabs/SafeSceneMap.native.js.map +1 -1
  77. package/build/lib/native/components/Tabs/utils.js.map +1 -1
  78. package/build/lib/native/components/Tag/Tag.js.map +1 -1
  79. package/build/lib/native/components/Tag/getTagsGroup.js.map +1 -1
  80. package/build/lib/native/components/Tooltip/TooltipContext.js.map +1 -1
  81. package/build/lib/native/components/Typography/BaseText/getBaseTextStyles.js.map +1 -1
  82. package/build/lib/native/components/Typography/Code/Code.js.map +1 -1
  83. package/build/lib/native/components/Typography/Text/Text.js.map +1 -1
  84. package/build/lib/native/components/Typography/utils.js.map +1 -1
  85. package/build/lib/native/components/VisuallyHidden/ScreenReaderStyles.js.map +1 -1
  86. package/build/lib/native/tokens/global/colors.js.map +1 -1
  87. package/build/lib/native/tokens/global/elevation/elevation.native.js.map +1 -1
  88. package/build/lib/native/tokens/theme/bladeTheme.js.map +1 -1
  89. package/build/lib/native/tokens/theme/createTheme.js.map +1 -1
  90. package/build/lib/native/utils/getMediaQuery/getMediaQuery.js.map +1 -1
  91. package/build/lib/native/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js.map +1 -1
  92. package/build/lib/native/utils/logger/logger.js.map +1 -1
  93. package/build/lib/native/utils/makeAccessible/makeAccessible.native.js.map +1 -1
  94. package/build/lib/native/utils/makeBorderSize/makeBorderSize.js.map +1 -1
  95. package/build/lib/native/utils/makeLetterSpacing/makeLetterSpacing.js.map +1 -1
  96. package/build/lib/native/utils/makeSize/makeSize.js.map +1 -1
  97. package/build/lib/native/utils/makeSpace/makeSpace.js.map +1 -1
  98. package/build/lib/native/utils/makeTypographySize/makeTypographySize.native.js.map +1 -1
  99. package/build/lib/native/utils/metaAttribute/metaAttribute.native.js.map +1 -1
  100. package/build/lib/native/utils/useColorScheme/useColorScheme.js.map +1 -1
  101. package/build/lib/native/utils/useId.js.map +1 -1
  102. package/build/lib/native/utils/useMergeRefs.js.map +1 -1
  103. package/build/lib/native/utils/useVerifyAllowedChildren/useVerifyAllowedChildren.js.map +1 -1
  104. package/build/lib/web/development/components/Accordion/Accordion.js +2 -2
  105. package/build/lib/web/development/components/Accordion/Accordion.js.map +1 -1
  106. package/build/lib/web/development/components/ActionList/ActionList.js +1 -1
  107. package/build/lib/web/development/components/ActionList/ActionList.js.map +1 -1
  108. package/build/lib/web/development/components/ActionList/ActionListBox.web.js +7 -7
  109. package/build/lib/web/development/components/ActionList/ActionListBox.web.js.map +1 -1
  110. package/build/lib/web/development/components/ActionList/ActionListItem.js +4 -4
  111. package/build/lib/web/development/components/ActionList/ActionListItem.js.map +1 -1
  112. package/build/lib/web/development/components/ActionList/actionListUtils.js +4 -4
  113. package/build/lib/web/development/components/ActionList/actionListUtils.js.map +1 -1
  114. package/build/lib/web/development/components/Amount/Amount.js +2 -2
  115. package/build/lib/web/development/components/Amount/Amount.js.map +1 -1
  116. package/build/lib/web/development/components/AnimateInteractions/AnimateInteractions.web.js.map +1 -1
  117. package/build/lib/web/development/components/AnimateInteractions/useFocusWithin.js +2 -2
  118. package/build/lib/web/development/components/AnimateInteractions/useFocusWithin.js.map +1 -1
  119. package/build/lib/web/development/components/Avatar/Avatar.web.js +1 -1
  120. package/build/lib/web/development/components/Avatar/Avatar.web.js.map +1 -1
  121. package/build/lib/web/development/components/Badge/Badge.js +1 -1
  122. package/build/lib/web/development/components/Badge/Badge.js.map +1 -1
  123. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js +2 -2
  124. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  125. package/build/lib/web/development/components/BaseMotion/baseMotionUtils.js +2 -2
  126. package/build/lib/web/development/components/BaseMotion/baseMotionUtils.js.map +1 -1
  127. package/build/lib/web/development/components/BladeProvider/useTheme.js.map +1 -1
  128. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js +19 -19
  129. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js.map +1 -1
  130. package/build/lib/web/development/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  131. package/build/lib/web/development/components/BottomSheet/BottomSheetContext.js.map +1 -1
  132. package/build/lib/web/development/components/BottomSheet/BottomSheetStack.js.map +1 -1
  133. package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js +27 -27
  134. package/build/lib/web/development/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  135. package/build/lib/web/development/components/Box/Box.js +1 -1
  136. package/build/lib/web/development/components/Box/Box.js.map +1 -1
  137. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js +5 -5
  138. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js.map +1 -1
  139. package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js.map +1 -1
  140. package/build/lib/web/development/components/Button/Button/Button.js +2 -2
  141. package/build/lib/web/development/components/Button/Button/Button.js.map +1 -1
  142. package/build/lib/web/development/components/Button/IconButton/IconButton.js +1 -1
  143. package/build/lib/web/development/components/Button/IconButton/IconButton.js.map +1 -1
  144. package/build/lib/web/development/components/ButtonGroup/ButtonGroup.web.js +1 -1
  145. package/build/lib/web/development/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  146. package/build/lib/web/development/components/Card/Card.js.map +1 -1
  147. package/build/lib/web/development/components/Card/CardFooter.js +2 -2
  148. package/build/lib/web/development/components/Card/CardFooter.js.map +1 -1
  149. package/build/lib/web/development/components/Card/CardRoot.web.js.map +1 -1
  150. package/build/lib/web/development/components/Carousel/Carousel.web.js +6 -6
  151. package/build/lib/web/development/components/Carousel/Carousel.web.js.map +1 -1
  152. package/build/lib/web/development/components/Carousel/CarouselItem.web.js +2 -2
  153. package/build/lib/web/development/components/Carousel/CarouselItem.web.js.map +1 -1
  154. package/build/lib/web/development/components/Carousel/Indicators/Indicators.js +1 -1
  155. package/build/lib/web/development/components/Carousel/Indicators/Indicators.js.map +1 -1
  156. package/build/lib/web/development/components/ChatMessage/ChatMessage.web.js +1 -1
  157. package/build/lib/web/development/components/ChatMessage/ChatMessage.web.js.map +1 -1
  158. package/build/lib/web/development/components/Checkbox/Checkbox.js +5 -5
  159. package/build/lib/web/development/components/Checkbox/Checkbox.js.map +1 -1
  160. package/build/lib/web/development/components/Checkbox/CheckboxGroup/useCheckboxGroup.js.map +1 -1
  161. package/build/lib/web/development/components/Checkbox/useCheckbox.js +1 -1
  162. package/build/lib/web/development/components/Checkbox/useCheckbox.js.map +1 -1
  163. package/build/lib/web/development/components/Chip/Chip.js +5 -5
  164. package/build/lib/web/development/components/Chip/Chip.js.map +1 -1
  165. package/build/lib/web/development/components/Chip/useChipGroup.js.map +1 -1
  166. package/build/lib/web/development/components/Collapsible/Collapsible.js +3 -3
  167. package/build/lib/web/development/components/Collapsible/Collapsible.js.map +1 -1
  168. package/build/lib/web/development/components/Collapsible/CollapsibleButton.js +1 -1
  169. package/build/lib/web/development/components/Collapsible/CollapsibleButton.js.map +1 -1
  170. package/build/lib/web/development/components/Counter/Counter.js +1 -1
  171. package/build/lib/web/development/components/Counter/Counter.js.map +1 -1
  172. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js +23 -17
  173. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  174. package/build/lib/web/development/components/DatePicker/Calendar.web.js +7 -7
  175. package/build/lib/web/development/components/DatePicker/Calendar.web.js.map +1 -1
  176. package/build/lib/web/development/components/DatePicker/CalendarFooter.web.js +42 -24
  177. package/build/lib/web/development/components/DatePicker/CalendarFooter.web.js.map +1 -1
  178. package/build/lib/web/development/components/DatePicker/CalendarHeader.web.js.map +1 -1
  179. package/build/lib/web/development/components/DatePicker/DateInput.web.js +4 -4
  180. package/build/lib/web/development/components/DatePicker/DateInput.web.js.map +1 -1
  181. package/build/lib/web/development/components/DatePicker/QuickSelection/PresetDropdown.web.js.map +1 -1
  182. package/build/lib/web/development/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -1
  183. package/build/lib/web/development/components/DatePicker/useControlledDates.js +1 -1
  184. package/build/lib/web/development/components/DatePicker/useControlledDates.js.map +1 -1
  185. package/build/lib/web/development/components/DatePicker/useDatesState.js +1 -1
  186. package/build/lib/web/development/components/DatePicker/useDatesState.js.map +1 -1
  187. package/build/lib/web/development/components/DatePicker/usePopup.js +2 -2
  188. package/build/lib/web/development/components/DatePicker/usePopup.js.map +1 -1
  189. package/build/lib/web/development/components/DatePicker/utils.js +1 -1
  190. package/build/lib/web/development/components/DatePicker/utils.js.map +1 -1
  191. package/build/lib/web/development/components/Drawer/Drawer.web.js +2 -2
  192. package/build/lib/web/development/components/Drawer/Drawer.web.js.map +1 -1
  193. package/build/lib/web/development/components/Drawer/DrawerContext.js.map +1 -1
  194. package/build/lib/web/development/components/Drawer/DrawerSubcomponents.web.js.map +1 -1
  195. package/build/lib/web/development/components/Drawer/StackProvider.js.map +1 -1
  196. package/build/lib/web/development/components/Dropdown/Dropdown.js +28 -28
  197. package/build/lib/web/development/components/Dropdown/Dropdown.js.map +1 -1
  198. package/build/lib/web/development/components/Dropdown/DropdownButton.js +4 -4
  199. package/build/lib/web/development/components/Dropdown/DropdownButton.js.map +1 -1
  200. package/build/lib/web/development/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  201. package/build/lib/web/development/components/Dropdown/DropdownIconButton.js +4 -4
  202. package/build/lib/web/development/components/Dropdown/DropdownIconButton.js.map +1 -1
  203. package/build/lib/web/development/components/Dropdown/DropdownLink.js +4 -4
  204. package/build/lib/web/development/components/Dropdown/DropdownLink.js.map +1 -1
  205. package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js +1 -1
  206. package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js.map +1 -1
  207. package/build/lib/web/development/components/Dropdown/FilterChipGroup.web.js +1 -1
  208. package/build/lib/web/development/components/Dropdown/FilterChipGroup.web.js.map +1 -1
  209. package/build/lib/web/development/components/Dropdown/FilterChipGroupContext.web.js.map +1 -1
  210. package/build/lib/web/development/components/Dropdown/FilterChipSelectInput.web.js +7 -7
  211. package/build/lib/web/development/components/Dropdown/FilterChipSelectInput.web.js.map +1 -1
  212. package/build/lib/web/development/components/Dropdown/InputDropdownButton.web.js +8 -8
  213. package/build/lib/web/development/components/Dropdown/InputDropdownButton.web.js.map +1 -1
  214. package/build/lib/web/development/components/Dropdown/useDropdown.js +4 -4
  215. package/build/lib/web/development/components/Dropdown/useDropdown.js.map +1 -1
  216. package/build/lib/web/development/components/EmptyState/EmptyState.web.js +1 -1
  217. package/build/lib/web/development/components/EmptyState/EmptyState.web.js.map +1 -1
  218. package/build/lib/web/development/components/FileUpload/FileUpload.web.js +14 -14
  219. package/build/lib/web/development/components/FileUpload/FileUpload.web.js.map +1 -1
  220. package/build/lib/web/development/components/FileUpload/FileUploadItem.js +1 -1
  221. package/build/lib/web/development/components/FileUpload/FileUploadItem.js.map +1 -1
  222. package/build/lib/web/development/components/FilterChip/BaseFilterChip.web.js +3 -3
  223. package/build/lib/web/development/components/FilterChip/BaseFilterChip.web.js.map +1 -1
  224. package/build/lib/web/development/components/Form/FormHint.js.map +1 -1
  225. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js +1 -1
  226. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js.map +1 -1
  227. package/build/lib/web/development/components/Indicator/Indicator.js +1 -1
  228. package/build/lib/web/development/components/Indicator/Indicator.js.map +1 -1
  229. package/build/lib/web/development/components/InfoGroup/InfoGroup.web.js +6 -6
  230. package/build/lib/web/development/components/InfoGroup/InfoGroup.web.js.map +1 -1
  231. package/build/lib/web/development/components/InfoGroup/InfoGroupContext.js.map +1 -1
  232. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +1 -1
  233. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  234. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +110 -110
  235. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  236. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js +8 -8
  237. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  238. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js +7 -7
  239. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  240. package/build/lib/web/development/components/Input/BaseInput/useTaggedInput.js +4 -4
  241. package/build/lib/web/development/components/Input/BaseInput/useTaggedInput.js.map +1 -1
  242. package/build/lib/web/development/components/Input/DropdownInputTriggers/AutoComplete.js +8 -8
  243. package/build/lib/web/development/components/Input/DropdownInputTriggers/AutoComplete.js.map +1 -1
  244. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +4 -4
  245. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  246. package/build/lib/web/development/components/Input/DropdownInputTriggers/SelectInput.js +3 -3
  247. package/build/lib/web/development/components/Input/DropdownInputTriggers/SelectInput.js.map +1 -1
  248. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js +14 -14
  249. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js.map +1 -1
  250. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js +1 -1
  251. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  252. package/build/lib/web/development/components/Input/PhoneNumberInput/CountrySelector.web.js.map +1 -1
  253. package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +5 -5
  254. package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
  255. package/build/lib/web/development/components/Input/SearchInput/SearchInput.js +5 -5
  256. package/build/lib/web/development/components/Input/SearchInput/SearchInput.js.map +1 -1
  257. package/build/lib/web/development/components/Input/TextArea/TextArea.js +7 -7
  258. package/build/lib/web/development/components/Input/TextArea/TextArea.js.map +1 -1
  259. package/build/lib/web/development/components/Input/TextInput/TextInput.js +7 -7
  260. package/build/lib/web/development/components/Input/TextInput/TextInput.js.map +1 -1
  261. package/build/lib/web/development/components/Input/TextInput/useFormattedInput.js +2 -2
  262. package/build/lib/web/development/components/Input/TextInput/useFormattedInput.js.map +1 -1
  263. package/build/lib/web/development/components/InputGroup/InputGroup.web.js +1 -1
  264. package/build/lib/web/development/components/InputGroup/InputGroup.web.js.map +1 -1
  265. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js +3 -3
  266. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js.map +1 -1
  267. package/build/lib/web/development/components/Link/Link/Link.js +1 -1
  268. package/build/lib/web/development/components/Link/Link/Link.js.map +1 -1
  269. package/build/lib/web/development/components/List/List.js +1 -1
  270. package/build/lib/web/development/components/List/List.js.map +1 -1
  271. package/build/lib/web/development/components/List/getOrderedListItemBullet.js +3 -3
  272. package/build/lib/web/development/components/List/getOrderedListItemBullet.js.map +1 -1
  273. package/build/lib/web/development/components/ListView/ListViewFilters.web.js.map +1 -1
  274. package/build/lib/web/development/components/ListView/ListViewFiltersContext.web.js.map +1 -1
  275. package/build/lib/web/development/components/LiveAnnouncer/LiveAnnouncer.web.js.map +1 -1
  276. package/build/lib/web/development/components/Menu/Menu.web.js.map +1 -1
  277. package/build/lib/web/development/components/Menu/MenuItem.web.js +3 -3
  278. package/build/lib/web/development/components/Menu/MenuItem.web.js.map +1 -1
  279. package/build/lib/web/development/components/Menu/useMenu.js.map +1 -1
  280. package/build/lib/web/development/components/Modal/ModalBackdrop.js.map +1 -1
  281. package/build/lib/web/development/components/Modal/ModalContext.js.map +1 -1
  282. package/build/lib/web/development/components/Popover/Popover.web.js.map +1 -1
  283. package/build/lib/web/development/components/Preview/Preview.web.js +29 -30
  284. package/build/lib/web/development/components/Preview/Preview.web.js.map +1 -1
  285. package/build/lib/web/development/components/QuickFilters/QuickFilterGroup/QuickFilterGroup.js.map +1 -1
  286. package/build/lib/web/development/components/Radio/Radio.js +4 -4
  287. package/build/lib/web/development/components/Radio/Radio.js.map +1 -1
  288. package/build/lib/web/development/components/Radio/RadioGroup/useRadioGroup.js +1 -1
  289. package/build/lib/web/development/components/Radio/RadioGroup/useRadioGroup.js.map +1 -1
  290. package/build/lib/web/development/components/Radio/useRadio.js +1 -1
  291. package/build/lib/web/development/components/Radio/useRadio.js.map +1 -1
  292. package/build/lib/web/development/components/SideNav/SideNav.web.js +19 -19
  293. package/build/lib/web/development/components/SideNav/SideNav.web.js.map +1 -1
  294. package/build/lib/web/development/components/SideNav/SideNavItems/SideNavLink.web.js +6 -6
  295. package/build/lib/web/development/components/SideNav/SideNavItems/SideNavLink.web.js.map +1 -1
  296. package/build/lib/web/development/components/SideNav/SideNavLevel.web.js.map +1 -1
  297. package/build/lib/web/development/components/SpotlightPopoverTour/Tour.web.js +7 -7
  298. package/build/lib/web/development/components/SpotlightPopoverTour/Tour.web.js.map +1 -1
  299. package/build/lib/web/development/components/SpotlightPopoverTour/TourFooter.web.js +2 -2
  300. package/build/lib/web/development/components/SpotlightPopoverTour/TourFooter.web.js.map +1 -1
  301. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js +1 -1
  302. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  303. package/build/lib/web/development/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  304. package/build/lib/web/development/components/SpotlightPopoverTour/TourStep.web.js +1 -1
  305. package/build/lib/web/development/components/SpotlightPopoverTour/TourStep.web.js.map +1 -1
  306. package/build/lib/web/development/components/StepGroup/StepGroup.web.js +6 -6
  307. package/build/lib/web/development/components/StepGroup/StepGroup.web.js.map +1 -1
  308. package/build/lib/web/development/components/StepGroup/StepItem.web.js +1 -1
  309. package/build/lib/web/development/components/StepGroup/StepItem.web.js.map +1 -1
  310. package/build/lib/web/development/components/StepGroup/StepLine.web.js +13 -13
  311. package/build/lib/web/development/components/StepGroup/StepLine.web.js.map +1 -1
  312. package/build/lib/web/development/components/Switch/Switch.js +1 -1
  313. package/build/lib/web/development/components/Switch/Switch.js.map +1 -1
  314. package/build/lib/web/development/components/Table/Table.web.js +10 -10
  315. package/build/lib/web/development/components/Table/Table.web.js.map +1 -1
  316. package/build/lib/web/development/components/Table/TableBody.web.js +6 -6
  317. package/build/lib/web/development/components/Table/TableBody.web.js.map +1 -1
  318. package/build/lib/web/development/components/Table/TableContext.js.map +1 -1
  319. package/build/lib/web/development/components/Table/TableHeader.web.js.map +1 -1
  320. package/build/lib/web/development/components/Table/TablePagination.web.js +2 -2
  321. package/build/lib/web/development/components/Table/TablePagination.web.js.map +1 -1
  322. package/build/lib/web/development/components/Table/TableToolbar.web.js.map +1 -1
  323. package/build/lib/web/development/components/Tabs/TabItem.web.js +2 -2
  324. package/build/lib/web/development/components/Tabs/TabItem.web.js.map +1 -1
  325. package/build/lib/web/development/components/Tabs/TabList.web.js +2 -2
  326. package/build/lib/web/development/components/Tabs/TabList.web.js.map +1 -1
  327. package/build/lib/web/development/components/Tabs/Tabs.web.js +1 -1
  328. package/build/lib/web/development/components/Tabs/Tabs.web.js.map +1 -1
  329. package/build/lib/web/development/components/Tabs/utils.js +2 -2
  330. package/build/lib/web/development/components/Tabs/utils.js.map +1 -1
  331. package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
  332. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  333. package/build/lib/web/development/components/Toast/Toast.web.js +2 -2
  334. package/build/lib/web/development/components/Toast/Toast.web.js.map +1 -1
  335. package/build/lib/web/development/components/Toast/ToastContainer.web.js.map +1 -1
  336. package/build/lib/web/development/components/Tooltip/Tooltip.web.js +1 -1
  337. package/build/lib/web/development/components/Tooltip/Tooltip.web.js.map +1 -1
  338. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js +2 -2
  339. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  340. package/build/lib/web/development/components/TopNav/TabNav/utils.js +2 -2
  341. package/build/lib/web/development/components/TopNav/TabNav/utils.js.map +1 -1
  342. package/build/lib/web/development/components/Typography/Text/Text.js +1 -1
  343. package/build/lib/web/development/components/Typography/Text/Text.js.map +1 -1
  344. package/build/lib/web/development/tokens/theme/overrideTheme.js +2 -2
  345. package/build/lib/web/development/tokens/theme/overrideTheme.js.map +1 -1
  346. package/build/lib/web/development/utils/bladeCoverage.js +9 -10
  347. package/build/lib/web/development/utils/bladeCoverage.js.map +1 -1
  348. package/build/lib/web/development/utils/fireNativeEvent/fireNativeEvent.web.js +1 -1
  349. package/build/lib/web/development/utils/fireNativeEvent/fireNativeEvent.web.js.map +1 -1
  350. package/build/lib/web/development/utils/hasSameObjectStructure/hasSameObjectStructure.js +6 -6
  351. package/build/lib/web/development/utils/hasSameObjectStructure/hasSameObjectStructure.js.map +1 -1
  352. package/build/lib/web/development/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js +3 -3
  353. package/build/lib/web/development/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js.map +1 -1
  354. package/build/lib/web/development/utils/isValidAllowedChildren/isValidAllowedChildren.js +2 -2
  355. package/build/lib/web/development/utils/isValidAllowedChildren/isValidAllowedChildren.js.map +1 -1
  356. package/build/lib/web/development/utils/lodashButBetter/cloneDeep.js +3 -3
  357. package/build/lib/web/development/utils/lodashButBetter/get.js +3 -3
  358. package/build/lib/web/development/utils/useControllable.js +1 -1
  359. package/build/lib/web/development/utils/useControllable.js.map +1 -1
  360. package/build/lib/web/development/utils/useControlledDropdownInput/useControlledDropdownInput.js +2 -2
  361. package/build/lib/web/development/utils/useControlledDropdownInput/useControlledDropdownInput.js.map +1 -1
  362. package/build/lib/web/development/utils/useScrollLock.js.map +1 -1
  363. package/build/lib/web/production/components/Accordion/Accordion.js +2 -2
  364. package/build/lib/web/production/components/Accordion/Accordion.js.map +1 -1
  365. package/build/lib/web/production/components/ActionList/ActionList.js +1 -1
  366. package/build/lib/web/production/components/ActionList/ActionList.js.map +1 -1
  367. package/build/lib/web/production/components/ActionList/ActionListBox.web.js +7 -7
  368. package/build/lib/web/production/components/ActionList/ActionListBox.web.js.map +1 -1
  369. package/build/lib/web/production/components/ActionList/ActionListItem.js +4 -4
  370. package/build/lib/web/production/components/ActionList/ActionListItem.js.map +1 -1
  371. package/build/lib/web/production/components/ActionList/actionListUtils.js +4 -4
  372. package/build/lib/web/production/components/ActionList/actionListUtils.js.map +1 -1
  373. package/build/lib/web/production/components/Amount/Amount.js +2 -2
  374. package/build/lib/web/production/components/Amount/Amount.js.map +1 -1
  375. package/build/lib/web/production/components/AnimateInteractions/AnimateInteractions.web.js.map +1 -1
  376. package/build/lib/web/production/components/AnimateInteractions/useFocusWithin.js +2 -2
  377. package/build/lib/web/production/components/AnimateInteractions/useFocusWithin.js.map +1 -1
  378. package/build/lib/web/production/components/Avatar/Avatar.web.js +1 -1
  379. package/build/lib/web/production/components/Avatar/Avatar.web.js.map +1 -1
  380. package/build/lib/web/production/components/Badge/Badge.js +1 -1
  381. package/build/lib/web/production/components/Badge/Badge.js.map +1 -1
  382. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js +2 -2
  383. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  384. package/build/lib/web/production/components/BaseMotion/baseMotionUtils.js +2 -2
  385. package/build/lib/web/production/components/BaseMotion/baseMotionUtils.js.map +1 -1
  386. package/build/lib/web/production/components/BladeProvider/useTheme.js.map +1 -1
  387. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +19 -19
  388. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  389. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  390. package/build/lib/web/production/components/BottomSheet/BottomSheetContext.js.map +1 -1
  391. package/build/lib/web/production/components/BottomSheet/BottomSheetStack.js.map +1 -1
  392. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js +27 -27
  393. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  394. package/build/lib/web/production/components/Box/Box.js +1 -1
  395. package/build/lib/web/production/components/Box/Box.js.map +1 -1
  396. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js +5 -5
  397. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js.map +1 -1
  398. package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js.map +1 -1
  399. package/build/lib/web/production/components/Button/Button/Button.js +2 -2
  400. package/build/lib/web/production/components/Button/Button/Button.js.map +1 -1
  401. package/build/lib/web/production/components/Button/IconButton/IconButton.js +1 -1
  402. package/build/lib/web/production/components/Button/IconButton/IconButton.js.map +1 -1
  403. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js +1 -1
  404. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  405. package/build/lib/web/production/components/Card/Card.js.map +1 -1
  406. package/build/lib/web/production/components/Card/CardFooter.js +2 -2
  407. package/build/lib/web/production/components/Card/CardFooter.js.map +1 -1
  408. package/build/lib/web/production/components/Card/CardRoot.web.js.map +1 -1
  409. package/build/lib/web/production/components/Carousel/Carousel.web.js +6 -6
  410. package/build/lib/web/production/components/Carousel/Carousel.web.js.map +1 -1
  411. package/build/lib/web/production/components/Carousel/CarouselItem.web.js +2 -2
  412. package/build/lib/web/production/components/Carousel/CarouselItem.web.js.map +1 -1
  413. package/build/lib/web/production/components/Carousel/Indicators/Indicators.js +1 -1
  414. package/build/lib/web/production/components/Carousel/Indicators/Indicators.js.map +1 -1
  415. package/build/lib/web/production/components/ChatMessage/ChatMessage.web.js +1 -1
  416. package/build/lib/web/production/components/ChatMessage/ChatMessage.web.js.map +1 -1
  417. package/build/lib/web/production/components/Checkbox/Checkbox.js +5 -5
  418. package/build/lib/web/production/components/Checkbox/Checkbox.js.map +1 -1
  419. package/build/lib/web/production/components/Checkbox/CheckboxGroup/useCheckboxGroup.js.map +1 -1
  420. package/build/lib/web/production/components/Checkbox/useCheckbox.js +1 -1
  421. package/build/lib/web/production/components/Checkbox/useCheckbox.js.map +1 -1
  422. package/build/lib/web/production/components/Chip/Chip.js +5 -5
  423. package/build/lib/web/production/components/Chip/Chip.js.map +1 -1
  424. package/build/lib/web/production/components/Chip/useChipGroup.js.map +1 -1
  425. package/build/lib/web/production/components/Collapsible/Collapsible.js +3 -3
  426. package/build/lib/web/production/components/Collapsible/Collapsible.js.map +1 -1
  427. package/build/lib/web/production/components/Collapsible/CollapsibleButton.js +1 -1
  428. package/build/lib/web/production/components/Collapsible/CollapsibleButton.js.map +1 -1
  429. package/build/lib/web/production/components/Counter/Counter.js +1 -1
  430. package/build/lib/web/production/components/Counter/Counter.js.map +1 -1
  431. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js +23 -17
  432. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  433. package/build/lib/web/production/components/DatePicker/Calendar.web.js +7 -7
  434. package/build/lib/web/production/components/DatePicker/Calendar.web.js.map +1 -1
  435. package/build/lib/web/production/components/DatePicker/CalendarFooter.web.js +42 -24
  436. package/build/lib/web/production/components/DatePicker/CalendarFooter.web.js.map +1 -1
  437. package/build/lib/web/production/components/DatePicker/CalendarHeader.web.js.map +1 -1
  438. package/build/lib/web/production/components/DatePicker/DateInput.web.js +4 -4
  439. package/build/lib/web/production/components/DatePicker/DateInput.web.js.map +1 -1
  440. package/build/lib/web/production/components/DatePicker/QuickSelection/PresetDropdown.web.js.map +1 -1
  441. package/build/lib/web/production/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -1
  442. package/build/lib/web/production/components/DatePicker/useControlledDates.js +1 -1
  443. package/build/lib/web/production/components/DatePicker/useControlledDates.js.map +1 -1
  444. package/build/lib/web/production/components/DatePicker/useDatesState.js +1 -1
  445. package/build/lib/web/production/components/DatePicker/useDatesState.js.map +1 -1
  446. package/build/lib/web/production/components/DatePicker/usePopup.js +2 -2
  447. package/build/lib/web/production/components/DatePicker/usePopup.js.map +1 -1
  448. package/build/lib/web/production/components/DatePicker/utils.js +1 -1
  449. package/build/lib/web/production/components/DatePicker/utils.js.map +1 -1
  450. package/build/lib/web/production/components/Drawer/Drawer.web.js +2 -2
  451. package/build/lib/web/production/components/Drawer/Drawer.web.js.map +1 -1
  452. package/build/lib/web/production/components/Drawer/DrawerContext.js.map +1 -1
  453. package/build/lib/web/production/components/Drawer/DrawerSubcomponents.web.js.map +1 -1
  454. package/build/lib/web/production/components/Drawer/StackProvider.js.map +1 -1
  455. package/build/lib/web/production/components/Dropdown/Dropdown.js +28 -28
  456. package/build/lib/web/production/components/Dropdown/Dropdown.js.map +1 -1
  457. package/build/lib/web/production/components/Dropdown/DropdownButton.js +4 -4
  458. package/build/lib/web/production/components/Dropdown/DropdownButton.js.map +1 -1
  459. package/build/lib/web/production/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  460. package/build/lib/web/production/components/Dropdown/DropdownIconButton.js +4 -4
  461. package/build/lib/web/production/components/Dropdown/DropdownIconButton.js.map +1 -1
  462. package/build/lib/web/production/components/Dropdown/DropdownLink.js +4 -4
  463. package/build/lib/web/production/components/Dropdown/DropdownLink.js.map +1 -1
  464. package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js +1 -1
  465. package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js.map +1 -1
  466. package/build/lib/web/production/components/Dropdown/FilterChipGroup.web.js +1 -1
  467. package/build/lib/web/production/components/Dropdown/FilterChipGroup.web.js.map +1 -1
  468. package/build/lib/web/production/components/Dropdown/FilterChipGroupContext.web.js.map +1 -1
  469. package/build/lib/web/production/components/Dropdown/FilterChipSelectInput.web.js +7 -7
  470. package/build/lib/web/production/components/Dropdown/FilterChipSelectInput.web.js.map +1 -1
  471. package/build/lib/web/production/components/Dropdown/InputDropdownButton.web.js +8 -8
  472. package/build/lib/web/production/components/Dropdown/InputDropdownButton.web.js.map +1 -1
  473. package/build/lib/web/production/components/Dropdown/useDropdown.js +4 -4
  474. package/build/lib/web/production/components/Dropdown/useDropdown.js.map +1 -1
  475. package/build/lib/web/production/components/EmptyState/EmptyState.web.js +1 -1
  476. package/build/lib/web/production/components/EmptyState/EmptyState.web.js.map +1 -1
  477. package/build/lib/web/production/components/FileUpload/FileUpload.web.js +14 -14
  478. package/build/lib/web/production/components/FileUpload/FileUpload.web.js.map +1 -1
  479. package/build/lib/web/production/components/FileUpload/FileUploadItem.js +1 -1
  480. package/build/lib/web/production/components/FileUpload/FileUploadItem.js.map +1 -1
  481. package/build/lib/web/production/components/FilterChip/BaseFilterChip.web.js +3 -3
  482. package/build/lib/web/production/components/FilterChip/BaseFilterChip.web.js.map +1 -1
  483. package/build/lib/web/production/components/Form/FormHint.js.map +1 -1
  484. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js +1 -1
  485. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js.map +1 -1
  486. package/build/lib/web/production/components/Indicator/Indicator.js +1 -1
  487. package/build/lib/web/production/components/Indicator/Indicator.js.map +1 -1
  488. package/build/lib/web/production/components/InfoGroup/InfoGroup.web.js +6 -6
  489. package/build/lib/web/production/components/InfoGroup/InfoGroup.web.js.map +1 -1
  490. package/build/lib/web/production/components/InfoGroup/InfoGroupContext.js.map +1 -1
  491. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +1 -1
  492. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  493. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +110 -110
  494. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  495. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js +8 -8
  496. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  497. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js +7 -7
  498. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  499. package/build/lib/web/production/components/Input/BaseInput/useTaggedInput.js +4 -4
  500. package/build/lib/web/production/components/Input/BaseInput/useTaggedInput.js.map +1 -1
  501. package/build/lib/web/production/components/Input/DropdownInputTriggers/AutoComplete.js +8 -8
  502. package/build/lib/web/production/components/Input/DropdownInputTriggers/AutoComplete.js.map +1 -1
  503. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +4 -4
  504. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  505. package/build/lib/web/production/components/Input/DropdownInputTriggers/SelectInput.js +3 -3
  506. package/build/lib/web/production/components/Input/DropdownInputTriggers/SelectInput.js.map +1 -1
  507. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js +14 -14
  508. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js.map +1 -1
  509. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js +1 -1
  510. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  511. package/build/lib/web/production/components/Input/PhoneNumberInput/CountrySelector.web.js.map +1 -1
  512. package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +5 -5
  513. package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
  514. package/build/lib/web/production/components/Input/SearchInput/SearchInput.js +5 -5
  515. package/build/lib/web/production/components/Input/SearchInput/SearchInput.js.map +1 -1
  516. package/build/lib/web/production/components/Input/TextArea/TextArea.js +7 -7
  517. package/build/lib/web/production/components/Input/TextArea/TextArea.js.map +1 -1
  518. package/build/lib/web/production/components/Input/TextInput/TextInput.js +7 -7
  519. package/build/lib/web/production/components/Input/TextInput/TextInput.js.map +1 -1
  520. package/build/lib/web/production/components/Input/TextInput/useFormattedInput.js +2 -2
  521. package/build/lib/web/production/components/Input/TextInput/useFormattedInput.js.map +1 -1
  522. package/build/lib/web/production/components/InputGroup/InputGroup.web.js +1 -1
  523. package/build/lib/web/production/components/InputGroup/InputGroup.web.js.map +1 -1
  524. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js +3 -3
  525. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js.map +1 -1
  526. package/build/lib/web/production/components/Link/Link/Link.js +1 -1
  527. package/build/lib/web/production/components/Link/Link/Link.js.map +1 -1
  528. package/build/lib/web/production/components/List/List.js +1 -1
  529. package/build/lib/web/production/components/List/List.js.map +1 -1
  530. package/build/lib/web/production/components/List/getOrderedListItemBullet.js +3 -3
  531. package/build/lib/web/production/components/List/getOrderedListItemBullet.js.map +1 -1
  532. package/build/lib/web/production/components/ListView/ListViewFilters.web.js.map +1 -1
  533. package/build/lib/web/production/components/ListView/ListViewFiltersContext.web.js.map +1 -1
  534. package/build/lib/web/production/components/LiveAnnouncer/LiveAnnouncer.web.js.map +1 -1
  535. package/build/lib/web/production/components/Menu/Menu.web.js.map +1 -1
  536. package/build/lib/web/production/components/Menu/MenuItem.web.js +3 -3
  537. package/build/lib/web/production/components/Menu/MenuItem.web.js.map +1 -1
  538. package/build/lib/web/production/components/Menu/useMenu.js.map +1 -1
  539. package/build/lib/web/production/components/Modal/ModalBackdrop.js.map +1 -1
  540. package/build/lib/web/production/components/Modal/ModalContext.js.map +1 -1
  541. package/build/lib/web/production/components/Popover/Popover.web.js.map +1 -1
  542. package/build/lib/web/production/components/Preview/Preview.web.js +29 -30
  543. package/build/lib/web/production/components/Preview/Preview.web.js.map +1 -1
  544. package/build/lib/web/production/components/QuickFilters/QuickFilterGroup/QuickFilterGroup.js.map +1 -1
  545. package/build/lib/web/production/components/Radio/Radio.js +4 -4
  546. package/build/lib/web/production/components/Radio/Radio.js.map +1 -1
  547. package/build/lib/web/production/components/Radio/RadioGroup/useRadioGroup.js +1 -1
  548. package/build/lib/web/production/components/Radio/RadioGroup/useRadioGroup.js.map +1 -1
  549. package/build/lib/web/production/components/Radio/useRadio.js +1 -1
  550. package/build/lib/web/production/components/Radio/useRadio.js.map +1 -1
  551. package/build/lib/web/production/components/SideNav/SideNav.web.js +19 -19
  552. package/build/lib/web/production/components/SideNav/SideNav.web.js.map +1 -1
  553. package/build/lib/web/production/components/SideNav/SideNavItems/SideNavLink.web.js +6 -6
  554. package/build/lib/web/production/components/SideNav/SideNavItems/SideNavLink.web.js.map +1 -1
  555. package/build/lib/web/production/components/SideNav/SideNavLevel.web.js.map +1 -1
  556. package/build/lib/web/production/components/SpotlightPopoverTour/Tour.web.js +7 -7
  557. package/build/lib/web/production/components/SpotlightPopoverTour/Tour.web.js.map +1 -1
  558. package/build/lib/web/production/components/SpotlightPopoverTour/TourFooter.web.js +2 -2
  559. package/build/lib/web/production/components/SpotlightPopoverTour/TourFooter.web.js.map +1 -1
  560. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js +1 -1
  561. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  562. package/build/lib/web/production/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  563. package/build/lib/web/production/components/SpotlightPopoverTour/TourStep.web.js +1 -1
  564. package/build/lib/web/production/components/SpotlightPopoverTour/TourStep.web.js.map +1 -1
  565. package/build/lib/web/production/components/StepGroup/StepGroup.web.js +6 -6
  566. package/build/lib/web/production/components/StepGroup/StepGroup.web.js.map +1 -1
  567. package/build/lib/web/production/components/StepGroup/StepItem.web.js +1 -1
  568. package/build/lib/web/production/components/StepGroup/StepItem.web.js.map +1 -1
  569. package/build/lib/web/production/components/StepGroup/StepLine.web.js +13 -13
  570. package/build/lib/web/production/components/StepGroup/StepLine.web.js.map +1 -1
  571. package/build/lib/web/production/components/Switch/Switch.js +1 -1
  572. package/build/lib/web/production/components/Switch/Switch.js.map +1 -1
  573. package/build/lib/web/production/components/Table/Table.web.js +10 -10
  574. package/build/lib/web/production/components/Table/Table.web.js.map +1 -1
  575. package/build/lib/web/production/components/Table/TableBody.web.js +6 -6
  576. package/build/lib/web/production/components/Table/TableBody.web.js.map +1 -1
  577. package/build/lib/web/production/components/Table/TableContext.js.map +1 -1
  578. package/build/lib/web/production/components/Table/TableHeader.web.js.map +1 -1
  579. package/build/lib/web/production/components/Table/TablePagination.web.js +2 -2
  580. package/build/lib/web/production/components/Table/TablePagination.web.js.map +1 -1
  581. package/build/lib/web/production/components/Table/TableToolbar.web.js.map +1 -1
  582. package/build/lib/web/production/components/Tabs/TabItem.web.js +2 -2
  583. package/build/lib/web/production/components/Tabs/TabItem.web.js.map +1 -1
  584. package/build/lib/web/production/components/Tabs/TabList.web.js +2 -2
  585. package/build/lib/web/production/components/Tabs/TabList.web.js.map +1 -1
  586. package/build/lib/web/production/components/Tabs/Tabs.web.js +1 -1
  587. package/build/lib/web/production/components/Tabs/Tabs.web.js.map +1 -1
  588. package/build/lib/web/production/components/Tabs/utils.js +2 -2
  589. package/build/lib/web/production/components/Tabs/utils.js.map +1 -1
  590. package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
  591. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  592. package/build/lib/web/production/components/Toast/Toast.web.js +2 -2
  593. package/build/lib/web/production/components/Toast/Toast.web.js.map +1 -1
  594. package/build/lib/web/production/components/Toast/ToastContainer.web.js.map +1 -1
  595. package/build/lib/web/production/components/Tooltip/Tooltip.web.js +1 -1
  596. package/build/lib/web/production/components/Tooltip/Tooltip.web.js.map +1 -1
  597. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js +2 -2
  598. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  599. package/build/lib/web/production/components/TopNav/TabNav/utils.js +2 -2
  600. package/build/lib/web/production/components/TopNav/TabNav/utils.js.map +1 -1
  601. package/build/lib/web/production/components/Typography/Text/Text.js +1 -1
  602. package/build/lib/web/production/components/Typography/Text/Text.js.map +1 -1
  603. package/build/lib/web/production/tokens/theme/overrideTheme.js +2 -2
  604. package/build/lib/web/production/tokens/theme/overrideTheme.js.map +1 -1
  605. package/build/lib/web/production/utils/bladeCoverage.js +9 -10
  606. package/build/lib/web/production/utils/bladeCoverage.js.map +1 -1
  607. package/build/lib/web/production/utils/fireNativeEvent/fireNativeEvent.web.js +1 -1
  608. package/build/lib/web/production/utils/fireNativeEvent/fireNativeEvent.web.js.map +1 -1
  609. package/build/lib/web/production/utils/hasSameObjectStructure/hasSameObjectStructure.js +6 -6
  610. package/build/lib/web/production/utils/hasSameObjectStructure/hasSameObjectStructure.js.map +1 -1
  611. package/build/lib/web/production/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js +3 -3
  612. package/build/lib/web/production/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js.map +1 -1
  613. package/build/lib/web/production/utils/isValidAllowedChildren/isValidAllowedChildren.js +2 -2
  614. package/build/lib/web/production/utils/isValidAllowedChildren/isValidAllowedChildren.js.map +1 -1
  615. package/build/lib/web/production/utils/lodashButBetter/cloneDeep.js +3 -3
  616. package/build/lib/web/production/utils/lodashButBetter/get.js +3 -3
  617. package/build/lib/web/production/utils/useControllable.js +1 -1
  618. package/build/lib/web/production/utils/useControllable.js.map +1 -1
  619. package/build/lib/web/production/utils/useControlledDropdownInput/useControlledDropdownInput.js +2 -2
  620. package/build/lib/web/production/utils/useControlledDropdownInput/useControlledDropdownInput.js.map +1 -1
  621. package/build/lib/web/production/utils/useScrollLock.js.map +1 -1
  622. package/build/types/components/index.d.ts +5 -0
  623. package/build/types/components/index.native.d.ts +5 -0
  624. package/package.json +15 -10
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollLock.js","sources":["../../../../../src/utils/useScrollLock.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-empty-function */\nimport { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock-upgrade';\nimport React from 'react';\n\ntype UseScrollLockProps = {\n targetRef?: React.RefObject<Element>;\n enabled: boolean;\n reserveScrollBarGap: boolean;\n};\n\ntype ScrollLockMethods = {\n activate: () => void;\n deactivate: () => void;\n active: React.MutableRefObject<boolean>;\n};\n\n/**\n * Modified from: https://github.com/stipsan/react-spring-bottom-sheet/blob/main/src/hooks/useScrollLock.tsx\n * Handle scroll locking to ensure a good dragging experience on Android and iOS.\n *\n * On iOS the following may happen if scroll isn't locked:\n * - When dragging the sheet the background gets dragged at the same time.\n * - When dragging the page scroll is also affected, causing the drag to feel buggy and \"slow\".\n *\n * On Android it causes the chrome toolbar to pop down as you drag down, and hide as you drag up.\n * When it's in between two toolbar states it causes the framerate to drop way below 60fps on\n * the bottom sheet drag interaction.\n *\n * This hook does two things\n * - Provides a imparative API to activate and deactivate the body scroll lock\n * - And ensures the activation and deactivation doesn't happen twice for a single target\n */\nexport function useScrollLock({\n targetRef,\n enabled,\n reserveScrollBarGap,\n}: UseScrollLockProps): React.MutableRefObject<ScrollLockMethods> {\n const active = React.useRef(false);\n // Imparative functions which users can call\n const ref = React.useRef<ScrollLockMethods>({\n activate: () => {\n throw new TypeError('Tried to activate scroll lock too early');\n },\n deactivate: () => {},\n active,\n });\n\n React.useEffect(() => {\n // if it's disabled we just return NOOP, so the functions do nothing even if called.\n if (!enabled) {\n ref.current = { activate: () => {}, deactivate: () => {}, active };\n return;\n }\n\n const target = (targetRef ? targetRef.current : document.body) as HTMLElement;\n active.current = false;\n\n ref.current = {\n activate: () => {\n // if we are already active do nothig\n if (active.current) return;\n // if not, set the active=true so next time this is called we know it's true\n active.current = true;\n if (!target) return;\n disableBodyScroll(target, {\n allowTouchMove: (el: any) => el.closest('[data-body-scroll-lock-ignore]'),\n reserveScrollBarGap,\n });\n },\n deactivate: () => {\n // only deactivate if we are active\n if (!active.current) return;\n active.current = false;\n if (!target) return;\n enableBodyScroll(target);\n },\n active,\n };\n }, [enabled, targetRef, reserveScrollBarGap]);\n\n return ref;\n}\n"],"names":["useScrollLock","_ref","targetRef","enabled","reserveScrollBarGap","active","React","useRef","ref","activate","TypeError","deactivate","useEffect","current","target","document","body","disableBodyScroll","allowTouchMove","el","closest","enableBodyScroll"],"mappings":";;;AAAA;AACA;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,aAAaA,CAAAC,IAAA,EAIqC;AAAA,EAAA,IAHhEC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,mBAAmB,GAAAH,IAAA,CAAnBG,mBAAmB,CAAA;AAEnB,EAAA,IAAMC,MAAM,GAAGC,cAAK,CAACC,MAAM,CAAC,KAAK,CAAC,CAAA;AAClC;AACA,EAAA,IAAMC,GAAG,GAAGF,cAAK,CAACC,MAAM,CAAoB;IAC1CE,QAAQ,EAAE,SAAA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BAAgB,CAACP,MAAM,CAAC,CAAA;OACzB;AACDT,MAAAA,MAAM,EAANA,MAAAA;KACD,CAAA;GACF,EAAE,CAACF,OAAO,EAAED,SAAS,EAAEE,mBAAmB,CAAC,CAAC,CAAA;AAE7C,EAAA,OAAOI,GAAG,CAAA;AACZ;;;;"}
1
+ {"version":3,"file":"useScrollLock.js","sources":["../../../../../src/utils/useScrollLock.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-empty-function */\nimport { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock-upgrade';\nimport React from 'react';\n\ntype UseScrollLockProps = {\n targetRef?: React.RefObject<Element>;\n enabled: boolean;\n reserveScrollBarGap: boolean;\n};\n\ntype ScrollLockMethods = {\n activate: () => void;\n deactivate: () => void;\n active: React.MutableRefObject<boolean>;\n};\n\n/**\n * Modified from: https://github.com/stipsan/react-spring-bottom-sheet/blob/main/src/hooks/useScrollLock.tsx\n * Handle scroll locking to ensure a good dragging experience on Android and iOS.\n *\n * On iOS the following may happen if scroll isn't locked:\n * - When dragging the sheet the background gets dragged at the same time.\n * - When dragging the page scroll is also affected, causing the drag to feel buggy and \"slow\".\n *\n * On Android it causes the chrome toolbar to pop down as you drag down, and hide as you drag up.\n * When it's in between two toolbar states it causes the framerate to drop way below 60fps on\n * the bottom sheet drag interaction.\n *\n * This hook does two things\n * - Provides a imparative API to activate and deactivate the body scroll lock\n * - And ensures the activation and deactivation doesn't happen twice for a single target\n */\nexport function useScrollLock({\n targetRef,\n enabled,\n reserveScrollBarGap,\n}: UseScrollLockProps): React.MutableRefObject<ScrollLockMethods> {\n const active = React.useRef(false);\n // Imparative functions which users can call\n const ref = React.useRef<ScrollLockMethods>({\n activate: () => {\n throw new TypeError('Tried to activate scroll lock too early');\n },\n deactivate: () => {},\n active,\n });\n\n React.useEffect(() => {\n // if it's disabled we just return NOOP, so the functions do nothing even if called.\n if (!enabled) {\n ref.current = { activate: () => {}, deactivate: () => {}, active };\n return;\n }\n\n const target = (targetRef ? targetRef.current : document.body) as HTMLElement;\n active.current = false;\n\n ref.current = {\n activate: () => {\n // if we are already active do nothig\n if (active.current) return;\n // if not, set the active=true so next time this is called we know it's true\n active.current = true;\n if (!target) return;\n disableBodyScroll(target, {\n allowTouchMove: (el: any) => el.closest('[data-body-scroll-lock-ignore]'),\n reserveScrollBarGap,\n });\n },\n deactivate: () => {\n // only deactivate if we are active\n if (!active.current) return;\n active.current = false;\n if (!target) return;\n enableBodyScroll(target);\n },\n active,\n };\n }, [enabled, targetRef, reserveScrollBarGap]);\n\n return ref;\n}\n"],"names":["useScrollLock","_ref","targetRef","enabled","reserveScrollBarGap","active","React","useRef","ref","activate","TypeError","deactivate","useEffect","current","target","document","body","disableBodyScroll","allowTouchMove","el","closest","enableBodyScroll"],"mappings":";;;AAAA;AACA;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,aAAaA,CAAAC,IAAA,EAIqC;AAAA,EAAA,IAHhEC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,mBAAmB,GAAAH,IAAA,CAAnBG,mBAAmB,CAAA;AAEnB,EAAA,IAAMC,MAAM,GAAGC,cAAK,CAACC,MAAM,CAAC,KAAK,CAAC,CAAA;AAClC;AACA,EAAA,IAAMC,GAAG,GAAGF,cAAK,CAACC,MAAM,CAAoB;AAC1CE,IAAAA,QAAQ,EAAE,SAAVA,QAAQA,GAAQ;AACd,MAAA,MAAM,IAAIC,SAAS,CAAC,yCAAyC,CAAC,CAAA;KAC/D;AACDC,IAAAA,UAAU,EAAE,SAAZA,UAAUA,GAAQ,EAAE;AACpBN,IAAAA,MAAM,EAANA,MAAAA;AACF,GAAC,CAAC,CAAA;EAEFC,cAAK,CAACM,SAAS,CAAC,YAAM;AACpB;IACA,IAAI,CAACT,OAAO,EAAE;MACZK,GA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ref) {
92
92
  var handleExpandChange = useCallback(function (nextExpandedIndex) {
93
93
  if (typeof expandedIndex !== 'undefined') {
94
94
  // controlled
95
- onExpandChange === null || onExpandChange === void 0 ? void 0 : onExpandChange({
95
+ onExpandChange === null || onExpandChange === void 0 || onExpandChange({
96
96
  expandedIndex: nextExpandedIndex
97
97
  });
98
98
  } else {
99
99
  // uncontrolled
100
100
  setExpandedAccordionItemIndex(nextExpandedIndex);
101
- onExpandChange === null || onExpandChange === void 0 ? void 0 : onExpandChange({
101
+ onExpandChange === null || onExpandChange === void 0 || onExpandChange({
102
102
  expandedIndex: nextExpandedIndex
103
103
  });
104
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.js","sources":["../../../../../../src/components/Accordion/Accordion.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport React, { useCallback, useMemo, useState, cloneElement, Children } from 'react';\nimport type { AccordionContextState } from './AccordionContext';\nimport { AccordionContext } from './AccordionContext';\nimport { MAX_WIDTH } from './styles';\nimport type { AccordionProps } from './types';\nimport { BaseBox } from '~components/Box/BaseBox';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { BoxProps } from '~components/Box';\nimport { size as sizeTokens } from '~tokens/global';\nimport { makeSize } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { BladeElementRef } from '~utils/types';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst MIN_WIDTH: BoxProps['minWidth'] = {\n s: makeSize(sizeTokens[200]),\n m: makeSize(sizeTokens[360]),\n l: makeSize(sizeTokens[360]),\n};\n\nconst getVariantStyles = (variant: AccordionProps['variant']): BoxProps => {\n if (variant === 'transparent') {\n return {};\n }\n\n return {\n backgroundColor: 'surface.background.gray.intense',\n borderRadius: 'medium',\n borderWidth: 'thinner',\n borderColor: 'surface.border.gray.subtle',\n };\n};\n\n/**\n * # Accordion\n *\n * An accordion is used to allow users to toggle between different content sections in a compact vertical stack.\n *\n * ## Usage\n *\n * ```jsx\n * <Accordion>\n * <AccordionItem>\n * <AccordionItemHeader title=\"Title\" />\n * <AccordionItemBody>\n * <Text color=\"surface.text.gray.subtle\">\n * Hello this is accordion body content\n * </Text>\n * </AccordionItemBody>\n * </AccordionItem>\n * <AccordionItem>\n * <AccordionItemHeader title=\"Title\" />\n * <AccordionItemBody>\n * <Text color=\"surface.text.gray.subtle\">\n * Hello this is accordion body content\n * </Text>\n * </AccordionItemBody>\n * </AccordionItem>\n * </Accordion>\n * ```\n *\n * Checkout https://blade.razorpay.com/?path=/docs/components-accordion--docs\n *\n */\nconst _Accordion = (\n {\n defaultExpandedIndex,\n expandedIndex,\n onExpandChange,\n showNumberPrefix = false,\n children,\n variant = 'transparent',\n size = 'large',\n maxWidth,\n testID,\n ...rest\n }: AccordionProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const [expandedAccordionItemIndex, setExpandedAccordionItemIndex] = useState<number | undefined>(\n defaultExpandedIndex,\n );\n\n const numberOfItems = Children.count(children);\n\n const handleExpandChange = useCallback(\n (nextExpandedIndex: number) => {\n if (typeof expandedIndex !== 'undefined') {\n // controlled\n onExpandChange?.({ expandedIndex: nextExpandedIndex });\n } else {\n // uncontrolled\n setExpandedAccordionItemIndex(nextExpandedIndex);\n onExpandChange?.({ expandedIndex: nextExpandedIndex });\n }\n },\n [onExpandChange, expandedIndex],\n );\n\n const accordionContext = useMemo<AccordionContextState>(\n () => ({\n expandedIndex: expandedIndex ?? expandedAccordionItemIndex,\n defaultExpandedIndex,\n onExpandChange: handleExpandChange,\n showNumberPrefix,\n variant,\n numberOfItems,\n size,\n }),\n [\n expandedAccordionItemIndex,\n handleExpandChange,\n expandedIndex,\n showNumberPrefix,\n defaultExpandedIndex,\n variant,\n numberOfItems,\n size,\n ],\n );\n\n return (\n <AccordionContext.Provider value={accordionContext}>\n <BaseBox\n ref={ref as never}\n {...metaAttribute({ name: MetaConstants.Accordion, testID })}\n {...getStyledProps(rest)}\n {...makeAnalyticsAttribute(rest)}\n >\n <BaseBox\n {...getVariantStyles(variant)}\n minWidth={MIN_WIDTH}\n maxWidth={maxWidth ?? MAX_WIDTH}\n width=\"100%\"\n >\n {Children.map(children, (child, index) =>\n cloneElement(child, { _index: index, key: index }),\n )}\n </BaseBox>\n </BaseBox>\n </AccordionContext.Provider>\n );\n};\n\nconst Accordion = React.forwardRef(_Accordion);\n\nexport { Accordion };\n"],"names":["MIN_WIDTH","s","makeSize","sizeTokens","m","l","getVariantStyles","variant","backgroundColor","borderRadius","borderWidth","borderColor","_Accordion","_ref","ref","defaultExpandedIndex","expandedIndex","onExpandChange","_ref$showNumberPrefix","showNumberPrefix","children","_ref$variant","_ref$size","size","maxWidth","testID","rest","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","expandedAccordionItemIndex","setExpandedAccordionItemIndex","numberOfItems","Children","count","handleExpandChange","useCallback","nextExpandedIndex","accordionContext","useMemo","_jsx","AccordionContext","Provider","value","BaseBox","_objectSpread","metaAttribute","name","MetaConstants","Accordion","getStyledProps","makeAnalyticsAttribute","minWidth","MAX_WIDTH","width","map","child","index","cloneElement","_index","key","React","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAMA,SAA+B,GAAG;AACtCC,EAAAA,CAAC,EAAEC,QAAQ,CAACC,IAAU,CAAC,GAAG,CAAC,CAAC;AAC5BC,EAAAA,CAAC,EAAEF,QAAQ,CAACC,IAAU,CAAC,GAAG,CAAC,CAAC;AAC5BE,EAAAA,CAAC,EAAEH,QAAQ,CAACC,IAAU,CAAC,GAAG,CAAC,CAAA;AAC7B,CAAC,CAAA;AAED,IAAMG,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,OAAkC,EAAe;EACzE,IAAIA,OAAO,KAAK,aAAa,EAAE;AAC7B,IAAA,OAAO,EAAE,CAAA;AACX,GAAA;EAEA,OAAO;AACLC,IAAAA,eAAe,EAAE,iCAAiC;AAClDC,IAAAA,YAAY,EAAE,QAAQ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sx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport React, { useCallback, useMemo, useState, cloneElement, Children } from 'react';\nimport type { AccordionContextState } from './AccordionContext';\nimport { AccordionContext } from './AccordionContext';\nimport { MAX_WIDTH } from './styles';\nimport type { AccordionProps } from './types';\nimport { BaseBox } from '~components/Box/BaseBox';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { BoxProps } from '~components/Box';\nimport { size as sizeTokens } from '~tokens/global';\nimport { makeSize } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { BladeElementRef } from '~utils/types';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst MIN_WIDTH: BoxProps['minWidth'] = {\n s: makeSize(sizeTokens[200]),\n m: makeSize(sizeTokens[360]),\n l: makeSize(sizeTokens[360]),\n};\n\nconst getVariantStyles = (variant: AccordionProps['variant']): BoxProps => {\n if (variant === 'transparent') {\n return {};\n }\n\n return {\n backgroundColor: 'surface.background.gray.intense',\n borderRadius: 'medium',\n borderWidth: 'thinner',\n borderColor: 'surface.border.gray.subtle',\n };\n};\n\n/**\n * # Accordion\n *\n * An accordion is used to allow users to toggle between different content sections in a compact vertical stack.\n *\n * ## Usage\n *\n * ```jsx\n * <Accordion>\n * <AccordionItem>\n * <AccordionItemHeader title=\"Title\" />\n * <AccordionItemBody>\n * <Text color=\"surface.text.gray.subtle\">\n * Hello this is accordion body content\n * </Text>\n * </AccordionItemBody>\n * </AccordionItem>\n * <AccordionItem>\n * <AccordionItemHeader title=\"Title\" />\n * <AccordionItemBody>\n * <Text color=\"surface.text.gray.subtle\">\n * Hello this is accordion body content\n * </Text>\n * </AccordionItemBody>\n * </AccordionItem>\n * </Accordion>\n * ```\n *\n * Checkout https://blade.razorpay.com/?path=/docs/components-accordion--docs\n *\n */\nconst _Accordion = (\n {\n defaultExpandedIndex,\n expandedIndex,\n onExpandChange,\n showNumberPrefix = false,\n children,\n variant = 'transparent',\n size = 'large',\n maxWidth,\n testID,\n ...rest\n }: AccordionProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const [expandedAccordionItemIndex, setExpandedAccordionItemIndex] = useState<number | undefined>(\n defaultExpandedIndex,\n );\n\n const numberOfItems = Children.count(children);\n\n const handleExpandChange = useCallback(\n (nextExpandedIndex: number) => {\n if (typeof expandedIndex !== 'undefined') {\n // controlled\n onExpandChange?.({ expandedIndex: nextExpandedIndex });\n } else {\n // uncontrolled\n setExpandedAccordionItemIndex(nextExpandedIndex);\n onExpandChange?.({ expandedIndex: nextExpandedIndex });\n }\n },\n [onExpandChange, expandedIndex],\n );\n\n const accordionContext = useMemo<AccordionContextState>(\n () => ({\n expandedIndex: expandedIndex ?? expandedAccordionItemIndex,\n defaultExpandedIndex,\n onExpandChange: handleExpandChange,\n showNumberPrefix,\n variant,\n numberOfItems,\n size,\n }),\n [\n expandedAccordionItemIndex,\n handleExpandChange,\n expandedIndex,\n showNumberPrefix,\n defaultExpandedIndex,\n variant,\n numberOfItems,\n size,\n ],\n );\n\n return (\n <AccordionContext.Provider value={accordionContext}>\n <BaseBox\n ref={ref as never}\n {...metaAttribute({ name: MetaConstants.Accordion, testID })}\n {...getStyledProps(rest)}\n {...makeAnalyticsAttribute(rest)}\n >\n <BaseBox\n {...getVariantStyles(variant)}\n minWidth={MIN_WIDTH}\n maxWidth={maxWidth ?? MAX_WIDTH}\n width=\"100%\"\n >\n {Children.map(children, (child, index) =>\n cloneElement(child, { _index: index, key: index }),\n )}\n </BaseBox>\n </BaseBox>\n </AccordionContext.Provider>\n );\n};\n\nconst Accordion = React.forwardRef(_Accordion);\n\nexport { Accordion };\n"],"names":["MIN_WIDTH","s","makeSize","sizeTokens","m","l","getVariantStyles","variant","backgroundColor","borderRadius","borderWidth","borderColor","_Accordion","_ref","ref","defaultExpandedIndex","expandedIndex","onExpandChange","_ref$showNumberPrefix","showNumberPrefix","children","_ref$variant","_ref$size","size","maxWidth","testID","rest","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","expandedAccordionItemIndex","setExpandedAccordionItemIndex","numberOfItems","Children","count","handleExpandChange","useCallback","nextExpandedIndex","accordionContext","useMemo","_jsx","AccordionContext","Provider","value","BaseBox","_objectSpread","metaAttribute","name","MetaConstants","Accordion","getStyledProps","makeAnalyticsAttribute","minWidth","MAX_WIDTH","width","map","child","index","cloneElement","_index","key","React","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAMA,SAA+B,GAAG;AACtCC,EAAAA,CAAC,EAAEC,QAAQ,CAACC,IAAU,CAAC,GAAG,CAAC,CAAC;AAC5BC,EAAAA,CAAC,EAAEF,QAAQ,CAACC,IAAU,CAAC,GAAG,CAAC,CAAC;AAC5BE,EAAAA,CAAC,EAAEH,QAAQ,CAACC,IAAU,CAAC,GAAG,CAAC,CAAA;AAC7B,CAAC,CAAA;AAED,IAAMG,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,OAAkC,EAAe;EACzE,IAAIA,OAAO,KAAK,aAAa,EAAE;AAC7B,IAAA,OAAO,EAAE,CAAA;AACX,GAAA;EAEA,OAAO;AACLC,IAAAA,eAAe,EAAE,iCAAiC;AAClDC,IAAAA,YAAY,EAAE,QAAQ;AACtBC,IAAAA,WAAW,EAAE,SAAS;AACtBC,IAAAA,WAAW,EAAE,4BAAA;GACd,CAAA;AACH,CAAC,CAAA;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAadC,GAA+B,EACd;AAAA,EAAA,IAZfC,oBAAoB,GAAAF,IAAA,CAApBE,oBAAoB;IACpBC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IACbC,cAAc,GAAAJ,IAAA,CAAdI,cAAc;IAAAC,qBAAA,GAAA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O,EAAAC,aAAA,CAAAA,aAAA,CACF1C,EAAAA,EAAAA,gBAAgB,CAACC,OAAO,CAAC,CAAA,EAAA,EAAA,EAAA;AAC7BgD,QAAAA,QAAQ,EAAEvD,SAAU;AACpBwB,QAAAA,QAAQ,EAAEA,QAAQ,KAAA,IAAA,IAARA,QAAQ,KAARA,KAAAA,CAAAA,GAAAA,QAAQ,GAAIgC,SAAU;AAChCC,QAAAA,KAAK,EAAC,MAAM;QAAArC,QAAA,EAEXgB,QAAQ,CAACsB,GAAG,CAACtC,QAAQ,EAAE,UAACuC,KAAK,EAAEC,KAAK,EAAA;UAAA,oBACnCC,YAAY,CAACF,KAAK,EAAE;AAAEG,YAAAA,MAAM,EAAEF,KAAK;AAAEG,YAAAA,GAAG,EAAEH,KAAAA;AAAM,WAAC,CAAC,CAAA;SACpD,CAAA;OACO,CAAA,CAAA;KACF,CAAA,CAAA;AAAC,GACe,CAAC,CAAA;AAEhC,CAAC,CAAA;AAED,IAAMR,SAAS,gBAAGY,cAAK,CAACC,UAAU,CAACrD,UAAU;;;;"}
@@ -122,7 +122,7 @@ var _ActionList = function _ActionList(_ref) {
122
122
  * ```
123
123
  *
124
124
  */
125
- var ActionList = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.memo(_ActionList), {
125
+ var ActionList = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.memo(_ActionList), {
126
126
  displayName: componentIds.ActionList,
127
127
  componentId: componentIds.ActionList
128
128
  });
@@ -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 as ActionListNormalBox, ActionListVirtualizedBox } 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 { DataAnalyticsAttribute, TestID } from '~utils/types';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { dropdownComponentIds } from '~components/Dropdown/dropdownComponentIds';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\ntype ActionListProps = {\n children: React.ReactNode[];\n isVirtualized?: boolean;\n} & TestID &\n DataAnalyticsAttribute;\n\nconst _ActionList = ({\n children,\n testID,\n isVirtualized,\n ...rest\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 ActionListBox = isVirtualized ? ActionListVirtualizedBox : ActionListNormalBox;\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 {...makeAnalyticsAttribute(rest)}\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 {...makeAnalyticsAttribute(rest)}\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","isVirtualized","rest","_objectWithoutProperties","_excluded","_useDropdown","useDropdown","setOptions","actionListItemRef","selectionType","dropdownBaseId","dropdownTriggerer","hasFooterAction","filteredValues","ActionListBox","ActionListVirtualizedBox","ActionListNormalBox","_useBottomSheetContex","useBottomSheetContext","isInBottomSheet","_React$useMemo","React","useMemo","getActionListProperties","sectionData","childrenWithId","actionListOptions","useEffect","length","dropdownComponentIds","triggers","AutoComplete","_jsx","ActionListNoResults","actionListContainerRole","getActionListContainerRole","actionListItemWrapperRole","getActionListItemWrapperRole","isMultiSelectable","_objectSpread","ref","makeAnalyticsAttribute","BaseBox","id","concat","makeAccessible","role","multiSelectable","undefined","labelledBy","metaAttribute","name","MetaConstants","ActionList","assignWithoutSideEffects","memo","displayName","componentIds","componentId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAK0B;AAAA,EAAA,IAJzCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,aAAa,GAAAH,IAAA,CAAbG,aAAa;AACVC,IAAAA,IAAI,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA,CAAA,CAAA;AAEP,EAAA,IAAAC,YAAA,GAQIC,WAAW,EAAE;IAPfC,UAAU,GAAAF,YAAA,CAAVE,UAAU;IACVC,iBAAiB,GAAAH,YAAA,CAAjBG,iBAAiB;IACjBC,aAAa,GAAAJ,YAAA,CAAbI,aAAa;IACbC,cAAc,GAAAL,YAAA,CAAdK,cAAc;IACdC,iBAAiB,GAAAN,YAAA,CAAjBM,iBAAiB;IACjBC,eAAe,GAAAP,YAAA,CAAfO,eAAe;IACfC,cAAc,GAAAR,YAAA,CAAdQ,cAAc,CAAA;AAGhB,EAAA,IAAMC,eAAa,GAAGb,aAAa,GAAGc,wBAAwB,GAAGC,aAAmB,CAAA;AAEpF,EAAA,IAAAC,qBAAA,GAA4BC,qBAAqB,EAAE;IAA3CC,eAAe,GAAA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A;AAC5B,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 as ActionListNormalBox, ActionListVirtualizedBox } 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 { DataAnalyticsAttribute, TestID } from '~utils/types';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { dropdownComponentIds } from '~components/Dropdown/dropdownComponentIds';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\ntype ActionListProps = {\n children: React.ReactNode[];\n isVirtualized?: boolean;\n} & TestID &\n DataAnalyticsAttribute;\n\nconst _ActionList = ({\n children,\n testID,\n isVirtualized,\n ...rest\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 ActionListBox = isVirtualized ? ActionListVirtualizedBox : ActionListNormalBox;\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 {...makeAnalyticsAttribute(rest)}\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 {...makeAnalyticsAttribute(rest)}\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","isVirtualized","rest","_objectWithoutProperties","_excluded","_useDropdown","useDropdown","setOptions","actionListItemRef","selectionType","dropdownBaseId","dropdownTriggerer","hasFooterAction","filteredValues","ActionListBox","ActionListVirtualizedBox","ActionListNormalBox","_useBottomSheetContex","useBottomSheetContext","isInBottomSheet","_React$useMemo","React","useMemo","getActionListProperties","sectionData","childrenWithId","actionListOptions","useEffect","length","dropdownComponentIds","triggers","AutoComplete","_jsx","ActionListNoResults","actionListContainerRole","getActionListContainerRole","actionListItemWrapperRole","getActionListItemWrapperRole","isMultiSelectable","_objectSpread","ref","makeAnalyticsAttribute","BaseBox","id","concat","makeAccessible","role","multiSelectable","undefined","labelledBy","metaAttribute","name","MetaConstants","ActionList","assignWithoutSideEffects","memo","displayName","componentIds","componentId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAK0B;AAAA,EAAA,IAJzCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,aAAa,GAAAH,IAAA,CAAbG,aAAa;AACVC,IAAAA,IAAI,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA,CAAA,CAAA;AAEP,EAAA,IAAAC,YAAA,GAQIC,WAAW,EAAE;IAPfC,UAAU,GAAAF,YAAA,CAAVE,UAAU;IACVC,iBAAiB,GAAAH,YAAA,CAAjBG,iBAAiB;IACjBC,aAAa,GAAAJ,YAAA,CAAbI,aAA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AED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACM6C,IAAAA,UAAU,gBAAGC,wBAAwB,cAACjC,cAAK,CAACkC,IAAI,CAAC1D,WAAW,CAAC,EAAE;EACnE2D,WAAW,EAAEC,YAAY,CAACJ,UAAU;EACpCK,WAAW,EAAED,YAAY,CAACJ,UAAAA;AAC5B,CAAC;;;;"}
@@ -48,7 +48,7 @@ var _ActionListBox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
48
48
  children: childrenWithId
49
49
  }));
50
50
  });
51
- var ActionListBox = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.memo(_ActionListBox), {
51
+ var ActionListBox = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.memo(_ActionListBox), {
52
52
  displayName: 'ActionListBox'
53
53
  });
54
54
 
@@ -157,7 +157,7 @@ var VirtualListItem = /*#__PURE__*/React__default.memo(function (_ref4) {
157
157
  data = _ref4.data,
158
158
  onVirtualizedFocus = _ref4.onVirtualizedFocus;
159
159
  var currentItem = data[index];
160
- if ( /*#__PURE__*/React__default.isValidElement(currentItem) && getComponentId(currentItem) === componentIds.ActionListItem) {
160
+ if (/*#__PURE__*/React__default.isValidElement(currentItem) && getComponentId(currentItem) === componentIds.ActionListItem) {
161
161
  // Clone the element passed via `data` and add the `_virtualizedIndex` prop
162
162
  var elementWithIndex = /*#__PURE__*/React__default.cloneElement(currentItem, {
163
163
  _virtualizedIndex: index,
@@ -213,8 +213,8 @@ var _ActionListVirtualizedBox = /*#__PURE__*/React__default.forwardRef(function
213
213
  actionListBoxHeight = _React$useMemo.actionListBoxHeight;
214
214
  React__default.useEffect(function () {
215
215
  var _virtualizedListRef$c, _virtualizedListRef$c2;
216
- virtualizedListRef === null || virtualizedListRef === void 0 ? void 0 : (_virtualizedListRef$c = virtualizedListRef.current) === null || _virtualizedListRef$c === void 0 ? void 0 : _virtualizedListRef$c.resetAfterIndex(0);
217
- virtualizedListRef === null || virtualizedListRef === void 0 ? void 0 : (_virtualizedListRef$c2 = virtualizedListRef.current) === null || _virtualizedListRef$c2 === void 0 ? void 0 : _virtualizedListRef$c2.scrollToItem(0);
216
+ virtualizedListRef === null || virtualizedListRef === void 0 || (_virtualizedListRef$c = virtualizedListRef.current) === null || _virtualizedListRef$c === void 0 || _virtualizedListRef$c.resetAfterIndex(0);
217
+ virtualizedListRef === null || virtualizedListRef === void 0 || (_virtualizedListRef$c2 = virtualizedListRef.current) === null || _virtualizedListRef$c2 === void 0 || _virtualizedListRef$c2.scrollToItem(0);
218
218
  }, [itemCount]);
219
219
  return /*#__PURE__*/jsx(StyledListBoxWrapper, _objectSpread(_objectSpread(_objectSpread({
220
220
  isInBottomSheet: isInBottomSheet
@@ -264,19 +264,19 @@ var _ActionListVirtualizedBox = /*#__PURE__*/React__default.forwardRef(function
264
264
  var _virtualizedListRef$c3, _virtualizedListRef$c4;
265
265
  // We need scroll Direction to determine the index to focus
266
266
  var scrollDirection = Math.round((visibleStartIndex + visibleStopIndex) / 2) > index ? 'top' : 'bottom';
267
- virtualizedListRef === null || virtualizedListRef === void 0 ? void 0 : (_virtualizedListRef$c3 = virtualizedListRef.current) === null || _virtualizedListRef$c3 === void 0 ? void 0 : _virtualizedListRef$c3.resetAfterIndex(0);
267
+ virtualizedListRef === null || virtualizedListRef === void 0 || (_virtualizedListRef$c3 = virtualizedListRef.current) === null || _virtualizedListRef$c3 === void 0 || _virtualizedListRef$c3.resetAfterIndex(0);
268
268
  /**
269
269
  * we are scrolling to the item which is 3 items away from the current item.
270
270
  * since we can have 2 item sectoin header and divider which are not focusable.
271
271
  */
272
- virtualizedListRef === null || virtualizedListRef === void 0 ? void 0 : (_virtualizedListRef$c4 = virtualizedListRef.current) === null || _virtualizedListRef$c4 === void 0 ? void 0 : _virtualizedListRef$c4.scrollToItem(index + (scrollDirection === 'top' ? -3 : 3), 'smart');
272
+ virtualizedListRef === null || virtualizedListRef === void 0 || (_virtualizedListRef$c4 = virtualizedListRef.current) === null || _virtualizedListRef$c4 === void 0 || _virtualizedListRef$c4.scrollToItem(index + (scrollDirection === 'top' ? -3 : 3), 'smart');
273
273
  }
274
274
  });
275
275
  }, [visibleStartIndex, visibleStopIndex])
276
276
  })
277
277
  }));
278
278
  });
279
- var ActionListVirtualizedBox = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.memo(_ActionListVirtualizedBox), {
279
+ var ActionListVirtualizedBox = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.memo(_ActionListVirtualizedBox), {
280
280
  displayName: 'ActionListVirtualizedBox'
281
281
  });
282
282
 
@@ -1 +1 @@
1
- {"version":3,"file":"ActionListBox.web.js","sources":["../../../../../../src/components/ActionList/ActionListBox.web.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport React, { useCallback } from 'react';\nimport type { VariableSizeList } from 'react-window';\nimport { VariableSizeList as VirtualizedList } from 'react-window';\nimport { StyledListBoxWrapper } from './styles/StyledListBoxWrapper';\nimport type { SectionData } from './actionListUtils';\nimport { actionListMaxHeight, getActionListPadding } from './styles/getBaseListBoxWrapperStyles';\nimport { componentIds } from './componentIds';\nimport { ActionListSectionTitle } from './ActionListItem';\nimport { useBottomSheetContext } from '~components/BottomSheet/BottomSheetContext';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport type { DataAnalyticsAttribute } from '~utils/types';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\nimport { useIsMobile } from '~utils/useIsMobile';\nimport {\n actionListSectionTitleHeight,\n actionListDividerHeight,\n getActionListItemHeight,\n} from '~components/BaseMenu/BaseMenuItem/tokens';\nimport { useTheme } from '~utils';\nimport type { Theme } from '~components/BladeProvider';\nimport { useDropdown } from '~components/Dropdown/useDropdown';\nimport { dropdownComponentIds } from '~components/Dropdown/dropdownComponentIds';\nimport { getComponentId } from '~utils/isValidAllowedChildren';\nimport { Divider } from '~components/Divider';\nimport type { ActionListItemProps } from '~components/ActionList';\n\ntype ActionListBoxProps = {\n childrenWithId?: React.ReactNode[] | null;\n sectionData: SectionData;\n actionListItemWrapperRole: 'listbox' | 'menu' | undefined;\n isMultiSelectable: boolean;\n isInBottomSheet: boolean;\n} & DataAnalyticsAttribute;\n\nconst _ActionListBox = React.forwardRef<HTMLDivElement, ActionListBoxProps>(\n ({ childrenWithId, actionListItemWrapperRole, isMultiSelectable, ...rest }, ref) => {\n const { isInBottomSheet } = useBottomSheetContext();\n\n return (\n <StyledListBoxWrapper\n isInBottomSheet={isInBottomSheet}\n ref={ref}\n {...makeAccessible({\n role: actionListItemWrapperRole,\n multiSelectable: actionListItemWrapperRole === 'listbox' ? isMultiSelectable : undefined,\n })}\n {...makeAnalyticsAttribute(rest)}\n >\n {childrenWithId}\n </StyledListBoxWrapper>\n );\n },\n);\n\nconst ActionListBox = assignWithoutSideEffects(React.memo(_ActionListBox), {\n displayName: 'ActionListBox',\n});\n\n/**\n * get the height of the item based on the componentId\n */\nconst getItemHeight = ({\n index,\n itemData,\n actionListItemHeight,\n}: {\n index: number;\n itemData: React.ReactNode[];\n actionListItemHeight: number;\n}): number => {\n if (getComponentId(itemData[index]) === componentIds.ActionListItem) {\n return actionListItemHeight;\n }\n\n if (getComponentId(itemData[index]) === componentIds.ActionListSectionTitle) {\n return actionListSectionTitleHeight;\n }\n // @ts-expect-error: key does exist\n if (itemData[index]?.key.includes('divider')) {\n return actionListDividerHeight;\n }\n return 0;\n};\n\n/**\n * Returns the height of item and height of container based on theme and device\n */\nconst getVirtualItemParams = ({\n theme,\n isMobile,\n itemCount,\n itemData,\n}: {\n theme: Theme;\n isMobile: boolean;\n itemCount: number;\n itemData: React.ReactNode[];\n}): {\n actionListItemHeight: number;\n actionListBoxHeight: number;\n} => {\n const itemHeightResponsive = getActionListItemHeight(theme);\n const actionListPadding = getActionListPadding(theme);\n const actionListItemHeight = isMobile\n ? itemHeightResponsive.itemHeightMobile\n : itemHeightResponsive.itemHeightDesktop;\n const shouldCalculateMinimumHeight = itemCount <= 10;\n const actionListBoxHeight = actionListMaxHeight - actionListPadding * 2;\n const actionListBoxMinHeight = shouldCalculateMinimumHeight\n ? itemData.reduce<number>((acc, _, index) => {\n const itemHeight = getItemHeight({ index, itemData, actionListItemHeight });\n return acc + itemHeight;\n }, 0)\n : actionListBoxHeight;\n const finalActionListBoxHeight = Math.min(actionListBoxHeight, actionListBoxMinHeight);\n\n return {\n actionListItemHeight,\n actionListBoxHeight: finalActionListBoxHeight,\n };\n};\n\n/**\n * Takes the children (ActionListItem) and returns the filtered items based on `filteredValues` state\n */\nconst useFilteredItems = (\n children: React.ReactNode[],\n): {\n itemData: React.ReactNode[];\n itemCount: number;\n} => {\n const childrenArray = React.Children.toArray(children); // Convert children to an array\n\n const { filteredValues, hasAutoCompleteInHeader, dropdownTriggerer } = useDropdown();\n\n const items = React.useMemo(() => {\n const hasAutoComplete =\n hasAutoCompleteInHeader || dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete;\n\n if (!hasAutoComplete) {\n return childrenArray;\n }\n\n const filteredItems = childrenArray.reduce<React.ReactNode[]>((acc, item, index) => {\n if (getComponentId(item) === componentIds.ActionListSection) {\n const sectionTitle = (\n <ActionListSectionTitle\n key={index}\n // @ts-expect-error: props does exist\n title={item?.props.title}\n isInsideVirtualizedList\n />\n );\n // @ts-expect-error: props does exist\n const sectionChildren = item?.props.children;\n\n const divider =\n index !== childrenArray.length - 1 ? (\n <Divider marginX=\"spacing.3\" marginY=\"spacing.1\" key={`divider-${index}`} />\n ) : null;\n const filteredSectionChildren = sectionChildren.filter(\n (item: { props: { value: string } }) => filteredValues.includes(item.props.value),\n );\n if (filteredSectionChildren.length !== 0) {\n acc.push(sectionTitle, ...filteredSectionChildren, divider);\n }\n } else {\n // @ts-expect-error: props does exist\n const value = item?.props.value;\n if (filteredValues.includes(value)) {\n acc.push(item);\n }\n }\n return acc;\n }, []);\n\n return filteredItems;\n }, [filteredValues, hasAutoCompleteInHeader, dropdownTriggerer, childrenArray]);\n\n return {\n itemData: items,\n itemCount: items.length,\n };\n};\n\nconst VirtualListItem = React.memo(\n ({\n index,\n style,\n data,\n onVirtualizedFocus,\n }: {\n index: number;\n style: React.CSSProperties;\n data: React.ReactNode[];\n onVirtualizedFocus: (index: number) => void;\n }): React.ReactElement | null => {\n const currentItem = data[index];\n\n if (\n React.isValidElement(currentItem) &&\n getComponentId(currentItem) === componentIds.ActionListItem\n ) {\n // Clone the element passed via `data` and add the `_virtualizedIndex` prop\n const elementWithIndex = React.cloneElement(\n currentItem as React.ReactElement<ActionListItemProps>,\n {\n _virtualizedIndex: index,\n _onVirtualizedFocus: onVirtualizedFocus,\n },\n );\n\n return <div style={style}>{elementWithIndex}</div>;\n }\n\n return <div style={style}>{data[index]}</div>;\n },\n (prevProps, nextProps) => {\n // Custom comparison function to determine if component should update\n return (\n prevProps.index === nextProps.index &&\n prevProps.style === nextProps.style &&\n prevProps.data[prevProps.index] === nextProps.data[nextProps.index]\n );\n },\n);\n\nconst _ActionListVirtualizedBox = React.forwardRef<HTMLDivElement, ActionListBoxProps>(\n ({ childrenWithId, actionListItemWrapperRole, isMultiSelectable, ...rest }, ref) => {\n const virtualizedListRef = React.useRef<VariableSizeList>(null);\n const [visibleStartIndex, setVisibleStartIndex] = React.useState(0);\n const [visibleStopIndex, setVisibleStopIndex] = React.useState(0);\n const items = React.Children.toArray(childrenWithId); // Convert children to an array\n const { isInBottomSheet } = useBottomSheetContext();\n const { itemData, itemCount } = useFilteredItems(items);\n\n const isMobile = useIsMobile();\n const { theme } = useTheme();\n const { actionListItemHeight, actionListBoxHeight } = React.useMemo(\n () => getVirtualItemParams({ theme, isMobile, itemCount, itemData }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [theme.name, isMobile, itemCount, itemData],\n );\n React.useEffect(() => {\n virtualizedListRef?.current?.resetAfterIndex(0);\n virtualizedListRef?.current?.scrollToItem(0);\n }, [itemCount]);\n\n return (\n <StyledListBoxWrapper\n isInBottomSheet={isInBottomSheet}\n // in case of virtualized list, we only render visible items. so css will hide divider for every last item visible. instead of hiding the last divider of the list.\n ref={ref}\n {...makeAccessible({\n role: actionListItemWrapperRole,\n multiSelectable: actionListItemWrapperRole === 'listbox' ? isMultiSelectable : undefined,\n })}\n {...makeAnalyticsAttribute(rest)}\n >\n <VirtualizedList<React.ReactNode[]>\n ref={virtualizedListRef}\n height={actionListBoxHeight}\n width=\"100%\"\n itemSize={(index) => getItemHeight({ index, itemData, actionListItemHeight })}\n itemCount={itemCount}\n itemData={itemData}\n itemKey={(index) =>\n // @ts-expect-error: props does exist\n itemData[index]?.props.value ??\n // @ts-expect-error: props does exist\n itemData[index]?.props.title ??\n // @ts-expect-error: props does exist\n itemData[index]?.props.key\n }\n onItemsRendered={({ visibleStartIndex, visibleStopIndex }) => {\n setVisibleStartIndex(visibleStartIndex);\n setVisibleStopIndex(visibleStopIndex);\n }}\n >\n {useCallback(\n ({ index, style, data }) => {\n return (\n <VirtualListItem\n index={index}\n style={style}\n data={data}\n onVirtualizedFocus={(index) => {\n // We need scroll Direction to determine the index to focus\n const scrollDirection =\n Math.round((visibleStartIndex + visibleStopIndex) / 2) > index\n ? 'top'\n : 'bottom';\n virtualizedListRef?.current?.resetAfterIndex(0);\n /**\n * we are scrolling to the item which is 3 items away from the current item.\n * since we can have 2 item sectoin header and divider which are not focusable.\n */\n virtualizedListRef?.current?.scrollToItem(\n index + (scrollDirection === 'top' ? -3 : 3),\n 'smart',\n );\n }}\n />\n );\n },\n [visibleStartIndex, visibleStopIndex],\n )}\n </VirtualizedList>\n </StyledListBoxWrapper>\n );\n },\n);\n\nconst ActionListVirtualizedBox = assignWithoutSideEffects(React.memo(_ActionListVirtualizedBox), {\n displayName: 'ActionListVirtualizedBox',\n});\n\nexport { ActionListBox, ActionListVirtualizedBox };\n"],"names":["_ActionListBox","React","forwardRef","_ref","ref","childrenWithId","actionListItemWrapperRole","isMultiSelectable","rest","_objectWithoutProperties","_excluded","_useBottomSheetContex","useBottomSheetContext","isInBottomSheet","_jsx","StyledListBoxWrapper","_objectSpread","makeAccessible","role","multiSelectable","undefined","makeAnalyticsAttribute","children","ActionListBox","assignWithoutSideEffects","memo","displayName","getItemHeight","_ref2","_itemData$index","index","itemData","actionListItemHeight","getComponentId","componentIds","ActionListItem","ActionListSectionTitle","actionListSectionTitleHeight","key","includes","actionListDividerHeight","getVirtualItemParams","_ref3","theme","isMobile","itemCount","itemHeightResponsive","getActionListItemHeight","actionListPadding","getActionListPadding","itemHeightMobile","itemHeightDesktop","shouldCalculateMinimumHeight","actionListBoxHeight","actionListMaxHeight","actionListBoxMinHeight","reduce","acc","_","itemHeight","finalActionListBoxHeight","Math","min","useFilteredItems","childrenArray","Children","toArray","_useDropdown","useDropdown","filteredValues","hasAutoCompleteInHeader","dropdownTriggerer","items","useMemo","hasAutoComplete","dropdownComponentIds","triggers","AutoComplete","filteredItems","item","ActionListSection","sectionTitle","title","props","isInsideVirtualizedList","sectionChildren","divider","length","Divider","marginX","marginY","concat","filteredSectionChildren","filter","value","push","apply","_toConsumableArray","VirtualListItem","_ref4","style","data","onVirtualizedFocus","currentItem","isValidElement","elementWithIndex","cloneElement","_virtualizedIndex","_onVirtualizedFocus","prevProps","nextProps","_ActionListVirtualizedBox","_ref5","_excluded2","virtualizedListRef","useRef","_React$useState","useState","_React$useState2","_slicedToArray","visibleStartIndex","setVisibleStartIndex","_React$useState3","_React$useState4","visibleStopIndex","setVisibleStopIndex","_useBottomSheetContex2","_useFilteredItems","useIsMobile","_useTheme","useTheme","_React$useMemo","name","useEffect","_virtualizedListRef$c","_virtualizedListRef$c2","current","resetAfterIndex","scrollToItem","VirtualizedList","height","width","itemSize","itemKey","_ref6","_itemData$index$props","_itemData$index2","_itemData$index3","_itemData$index4","onItemsRendered","_ref7","useCallback","_ref8","_vir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,GAAG,CAAC,CAAC,EAC5C,OACF,CAAC,CAAA;AACH,WAAA;AAAE,SACH,CAAC,CAAA;AAEN,OAAC,EACD,CAACnC,iBAAiB,EAAEI,gBAAgB,CACtC,CAAA;KACe,CAAA;AAAC,GAAA,CACE,CAAC,CAAA;AAE3B,CACF,CAAC,CAAA;AAEKiC,IAAAA,wBAAwB,gBAAGrI,wBAAwB,eAACvB,cAAK,CAACwB,IAAI,CAACsF,yBAAyB,CAAC,EAAE;AAC/FrF,EAAAA,WAAW,EAAE,0BAAA;AACf,CAAC;;;;"}
1
+ {"version":3,"file":"ActionListBox.web.js","sources":["../../../../../../src/components/ActionList/ActionListBox.web.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport React, { useCallback } from 'react';\nimport type { VariableSizeList } from 'react-window';\nimport { VariableSizeList as VirtualizedList } from 'react-window';\nimport { StyledListBoxWrapper } from './styles/StyledListBoxWrapper';\nimport type { SectionData } from './actionListUtils';\nimport { actionListMaxHeight, getActionListPadding } from './styles/getBaseListBoxWrapperStyles';\nimport { componentIds } from './componentIds';\nimport { ActionListSectionTitle } from './ActionListItem';\nimport { useBottomSheetContext } from '~components/BottomSheet/BottomSheetContext';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport type { DataAnalyticsAttribute } from '~utils/types';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\nimport { useIsMobile } from '~utils/useIsMobile';\nimport {\n actionListSectionTitleHeight,\n actionListDividerHeight,\n getActionListItemHeight,\n} from '~components/BaseMenu/BaseMenuItem/tokens';\nimport { useTheme } from '~utils';\nimport type { Theme } from '~components/BladeProvider';\nimport { useDropdown } from '~components/Dropdown/useDropdown';\nimport { dropdownComponentIds } from '~components/Dropdown/dropdownComponentIds';\nimport { getComponentId } from '~utils/isValidAllowedChildren';\nimport { Divider } from '~components/Divider';\nimport type { ActionListItemProps } from '~components/ActionList';\n\ntype ActionListBoxProps = {\n childrenWithId?: React.ReactNode[] | null;\n sectionData: SectionData;\n actionListItemWrapperRole: 'listbox' | 'menu' | undefined;\n isMultiSelectable: boolean;\n isInBottomSheet: boolean;\n} & DataAnalyticsAttribute;\n\nconst _ActionListBox = React.forwardRef<HTMLDivElement, ActionListBoxProps>(\n ({ childrenWithId, actionListItemWrapperRole, isMultiSelectable, ...rest }, ref) => {\n const { isInBottomSheet } = useBottomSheetContext();\n\n return (\n <StyledListBoxWrapper\n isInBottomSheet={isInBottomSheet}\n ref={ref}\n {...makeAccessible({\n role: actionListItemWrapperRole,\n multiSelectable: actionListItemWrapperRole === 'listbox' ? isMultiSelectable : undefined,\n })}\n {...makeAnalyticsAttribute(rest)}\n >\n {childrenWithId}\n </StyledListBoxWrapper>\n );\n },\n);\n\nconst ActionListBox = assignWithoutSideEffects(React.memo(_ActionListBox), {\n displayName: 'ActionListBox',\n});\n\n/**\n * get the height of the item based on the componentId\n */\nconst getItemHeight = ({\n index,\n itemData,\n actionListItemHeight,\n}: {\n index: number;\n itemData: React.ReactNode[];\n actionListItemHeight: number;\n}): number => {\n if (getComponentId(itemData[index]) === componentIds.ActionListItem) {\n return actionListItemHeight;\n }\n\n if (getComponentId(itemData[index]) === componentIds.ActionListSectionTitle) {\n return actionListSectionTitleHeight;\n }\n // @ts-expect-error: key does exist\n if (itemData[index]?.key.includes('divider')) {\n return actionListDividerHeight;\n }\n return 0;\n};\n\n/**\n * Returns the height of item and height of container based on theme and device\n */\nconst getVirtualItemParams = ({\n theme,\n isMobile,\n itemCount,\n itemData,\n}: {\n theme: Theme;\n isMobile: boolean;\n itemCount: number;\n itemData: React.ReactNode[];\n}): {\n actionListItemHeight: number;\n actionListBoxHeight: number;\n} => {\n const itemHeightResponsive = getActionListItemHeight(theme);\n const actionListPadding = getActionListPadding(theme);\n const actionListItemHeight = isMobile\n ? itemHeightResponsive.itemHeightMobile\n : itemHeightResponsive.itemHeightDesktop;\n const shouldCalculateMinimumHeight = itemCount <= 10;\n const actionListBoxHeight = actionListMaxHeight - actionListPadding * 2;\n const actionListBoxMinHeight = shouldCalculateMinimumHeight\n ? itemData.reduce<number>((acc, _, index) => {\n const itemHeight = getItemHeight({ index, itemData, actionListItemHeight });\n return acc + itemHeight;\n }, 0)\n : actionListBoxHeight;\n const finalActionListBoxHeight = Math.min(actionListBoxHeight, actionListBoxMinHeight);\n\n return {\n actionListItemHeight,\n actionListBoxHeight: finalActionListBoxHeight,\n };\n};\n\n/**\n * Takes the children (ActionListItem) and returns the filtered items based on `filteredValues` state\n */\nconst useFilteredItems = (\n children: React.ReactNode[],\n): {\n itemData: React.ReactNode[];\n itemCount: number;\n} => {\n const childrenArray = React.Children.toArray(children); // Convert children to an array\n\n const { filteredValues, hasAutoCompleteInHeader, dropdownTriggerer } = useDropdown();\n\n const items = React.useMemo(() => {\n const hasAutoComplete =\n hasAutoCompleteInHeader || dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete;\n\n if (!hasAutoComplete) {\n return childrenArray;\n }\n\n const filteredItems = childrenArray.reduce<React.ReactNode[]>((acc, item, index) => {\n if (getComponentId(item) === componentIds.ActionListSection) {\n const sectionTitle = (\n <ActionListSectionTitle\n key={index}\n // @ts-expect-error: props does exist\n title={item?.props.title}\n isInsideVirtualizedList\n />\n );\n // @ts-expect-error: props does exist\n const sectionChildren = item?.props.children;\n\n const divider =\n index !== childrenArray.length - 1 ? (\n <Divider marginX=\"spacing.3\" marginY=\"spacing.1\" key={`divider-${index}`} />\n ) : null;\n const filteredSectionChildren = sectionChildren.filter(\n (item: { props: { value: string } }) => filteredValues.includes(item.props.value),\n );\n if (filteredSectionChildren.length !== 0) {\n acc.push(sectionTitle, ...filteredSectionChildren, divider);\n }\n } else {\n // @ts-expect-error: props does exist\n const value = item?.props.value;\n if (filteredValues.includes(value)) {\n acc.push(item);\n }\n }\n return acc;\n }, []);\n\n return filteredItems;\n }, [filteredValues, hasAutoCompleteInHeader, dropdownTriggerer, childrenArray]);\n\n return {\n itemData: items,\n itemCount: items.length,\n };\n};\n\nconst VirtualListItem = React.memo(\n ({\n index,\n style,\n data,\n onVirtualizedFocus,\n }: {\n index: number;\n style: React.CSSProperties;\n data: React.ReactNode[];\n onVirtualizedFocus: (index: number) => void;\n }): React.ReactElement | null => {\n const currentItem = data[index];\n\n if (\n React.isValidElement(currentItem) &&\n getComponentId(currentItem) === componentIds.ActionListItem\n ) {\n // Clone the element passed via `data` and add the `_virtualizedIndex` prop\n const elementWithIndex = React.cloneElement(\n currentItem as React.ReactElement<ActionListItemProps>,\n {\n _virtualizedIndex: index,\n _onVirtualizedFocus: onVirtualizedFocus,\n },\n );\n\n return <div style={style}>{elementWithIndex}</div>;\n }\n\n return <div style={style}>{data[index]}</div>;\n },\n (prevProps, nextProps) => {\n // Custom comparison function to determine if component should update\n return (\n prevProps.index === nextProps.index &&\n prevProps.style === nextProps.style &&\n prevProps.data[prevProps.index] === nextProps.data[nextProps.index]\n );\n },\n);\n\nconst _ActionListVirtualizedBox = React.forwardRef<HTMLDivElement, ActionListBoxProps>(\n ({ childrenWithId, actionListItemWrapperRole, isMultiSelectable, ...rest }, ref) => {\n const virtualizedListRef = React.useRef<VariableSizeList>(null);\n const [visibleStartIndex, setVisibleStartIndex] = React.useState(0);\n const [visibleStopIndex, setVisibleStopIndex] = React.useState(0);\n const items = React.Children.toArray(childrenWithId); // Convert children to an array\n const { isInBottomSheet } = useBottomSheetContext();\n const { itemData, itemCount } = useFilteredItems(items);\n\n const isMobile = useIsMobile();\n const { theme } = useTheme();\n const { actionListItemHeight, actionListBoxHeight } = React.useMemo(\n () => getVirtualItemParams({ theme, isMobile, itemCount, itemData }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [theme.name, isMobile, itemCount, itemData],\n );\n React.useEffect(() => {\n virtualizedListRef?.current?.resetAfterIndex(0);\n virtualizedListRef?.current?.scrollToItem(0);\n }, [itemCount]);\n\n return (\n <StyledListBoxWrapper\n isInBottomSheet={isInBottomSheet}\n // in case of virtualized list, we only render visible items. so css will hide divider for every last item visible. instead of hiding the last divider of the list.\n ref={ref}\n {...makeAccessible({\n role: actionListItemWrapperRole,\n multiSelectable: actionListItemWrapperRole === 'listbox' ? isMultiSelectable : undefined,\n })}\n {...makeAnalyticsAttribute(rest)}\n >\n <VirtualizedList<React.ReactNode[]>\n ref={virtualizedListRef}\n height={actionListBoxHeight}\n width=\"100%\"\n itemSize={(index) => getItemHeight({ index, itemData, actionListItemHeight })}\n itemCount={itemCount}\n itemData={itemData}\n itemKey={(index) =>\n // @ts-expect-error: props does exist\n itemData[index]?.props.value ??\n // @ts-expect-error: props does exist\n itemData[index]?.props.title ??\n // @ts-expect-error: props does exist\n itemData[index]?.props.key\n }\n onItemsRendered={({ visibleStartIndex, visibleStopIndex }) => {\n setVisibleStartIndex(visibleStartIndex);\n setVisibleStopIndex(visibleStopIndex);\n }}\n >\n {useCallback(\n ({ index, style, data }) => {\n return (\n <VirtualListItem\n index={index}\n style={style}\n data={data}\n onVirtualizedFocus={(index) => {\n // We need scroll Direction to determine the index to focus\n const scrollDirection =\n Math.round((visibleStartIndex + visibleStopIndex) / 2) > index\n ? 'top'\n : 'bottom';\n virtualizedListRef?.current?.resetAfterIndex(0);\n /**\n * we are scrolling to the item which is 3 items away from the current item.\n * since we can have 2 item sectoin header and divider which are not focusable.\n */\n virtualizedListRef?.current?.scrollToItem(\n index + (scrollDirection === 'top' ? -3 : 3),\n 'smart',\n );\n }}\n />\n );\n },\n [visibleStartIndex, visibleStopIndex],\n )}\n </VirtualizedList>\n </StyledListBoxWrapper>\n );\n },\n);\n\nconst ActionListVirtualizedBox = assignWithoutSideEffects(React.memo(_ActionListVirtualizedBox), {\n displayName: 'ActionListVirtualizedBox',\n});\n\nexport { ActionListBox, ActionListVirtualizedBox };\n"],"names":["_ActionListBox","React","forwardRef","_ref","ref","childrenWithId","actionListItemWrapperRole","isMultiSelectable","rest","_objectWithoutProperties","_excluded","_useBottomSheetContex","useBottomSheetContext","isInBottomSheet","_jsx","StyledListBoxWrapper","_objectSpread","makeAccessible","role","multiSelectable","undefined","makeAnalyticsAttribute","children","ActionListBox","assignWithoutSideEffects","memo","displayName","getItemHeight","_ref2","_itemData$index","index","itemData","actionListItemHeight","getComponentId","componentIds","ActionListItem","ActionListSectionTitle","actionListSectionTitleHeight","key","includes","actionListDividerHeight","getVirtualItemParams","_ref3","theme","isMobile","itemCount","itemHeightResponsive","getActionListItemHeight","actionListPadding","getActionListPadding","itemHeightMobile","itemHeightDesktop","shouldCalculateMinimumHeight","actionListBoxHeight","actionListMaxHeight","actionListBoxMinHeight","reduce","acc","_","itemHeight","finalActionListBoxHeight","Math","min","useFilteredItems","childrenArray","Children","toArray","_useDropdown","useDropdown","filteredValues","hasAutoCompleteInHeader","dropdownTriggerer","items","useMemo","hasAutoComplete","dropdownComponentIds","triggers","AutoComplete","filteredItems","item","ActionListSection","sectionTitle","title","props","isInsideVirtualizedList","sectionChildren","divider","length","Divider","marginX","marginY","concat","filteredSectionChildren","filter","value","push","apply","_toConsumableArray","VirtualListItem","_ref4","style","data","onVirtualizedFocus","currentItem","isValidElement","elementWithIndex","cloneElement","_virtualizedIndex","_onVirtualizedFocus","prevProps","nextProps","_ActionListVirtualizedBox","_ref5","_excluded2","virtualizedListRef","useRef","_React$useState","useState","_React$useState2","_slicedToArray","visibleStartIndex","setVisibleStartIndex","_React$useState3","_React$useState4","visibleStopIndex","setVisibleStopIndex","_useBottomSheetContex2","_useFilteredItems","useIsMobile","_useTheme","useTheme","_React$useMemo","name","useEffect","_virtualizedListRef$c","_virtualizedListRef$c2","current","resetAfterIndex","scrollToItem","VirtualizedList","height","width","itemSize","itemKey","_ref6","_itemData$index$props","_itemData$index2","_itemData$index3","_itemData$index4","onItemsRendered","_ref7","useCallback","_ref8","_virtualizedListRef$c3","_virtualizedListRef$c4","scrollDirection","round","ActionListVirtualizedBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,IAAMA,cAAc,gBAAGC,cAAK,CAACC,UA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AAGrI,wBAAwB,cAACvB,cAAK,CAACwB,IAAI,CAACsF,yBAAyB,CAAC,EAAE;AAC/FrF,EAAAA,WAAW,EAAE,0BAAA;AACf,CAAC;;;;"}
@@ -117,7 +117,7 @@ var _ActionListSection = function _ActionListSection(_ref2) {
117
117
  }) : null]
118
118
  }));
119
119
  };
120
- var ActionListSection = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.memo(_ActionListSection), {
120
+ var ActionListSection = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.memo(_ActionListSection), {
121
121
  componentId: componentIds.ActionListSection
122
122
  });
123
123
  var _ActionListItemIcon = function _ActionListItemIcon(_ref3) {
@@ -242,7 +242,7 @@ var _ActionListItem = function _ActionListItem(props) {
242
242
  React__default.useEffect(function () {
243
243
  if (activeIndex === props._index && props._virtualizedIndex !== undefined) {
244
244
  var _props$_onVirtualized;
245
- (_props$_onVirtualized = props._onVirtualizedFocus) === null || _props$_onVirtualized === void 0 ? void 0 : _props$_onVirtualized.call(props, props._virtualizedIndex);
245
+ (_props$_onVirtualized = props._onVirtualizedFocus) === null || _props$_onVirtualized === void 0 || _props$_onVirtualized.call(props, props._virtualizedIndex);
246
246
  }
247
247
  // eslint-disable-next-line react-hooks/exhaustive-deps
248
248
  }, [activeIndex]);
@@ -307,7 +307,7 @@ var _ActionListItem = function _ActionListItem(props) {
307
307
  if (typeof props._index === 'number') {
308
308
  var _props$onClick;
309
309
  onOptionClick(e, props._index);
310
- (_props$onClick = props.onClick) === null || _props$onClick === void 0 ? void 0 : _props$onClick.call(props, {
310
+ (_props$onClick = props.onClick) === null || _props$onClick === void 0 || _props$onClick.call(props, {
311
311
  name: props.value,
312
312
  value: isSelected,
313
313
  event: castWebType(e)
@@ -333,7 +333,7 @@ var _ActionListItem = function _ActionListItem(props) {
333
333
  isKeydownPressed: isKeydownPressed
334
334
  }));
335
335
  };
336
- var ActionListItem = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.memo(_ActionListItem), {
336
+ var ActionListItem = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.memo(_ActionListItem), {
337
337
  componentId: componentIds.ActionListItem,
338
338
  displayName: componentIds.ActionListItem
339
339
  });
@@ -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 type { TouchableOpacity } from 'react-native';\nimport { componentIds } from './componentIds';\nimport { validateActionListItemProps, getNormalTextColor } from './actionListUtils';\nimport { getActionListItemRole, getActionListSectionRole } 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 type { Platform } from '~utils';\nimport { castWebType, isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { DataAnalyticsAttribute, StringChildrenType, TestID } from '~utils/types';\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';\nimport { BaseMenuItem, useBaseMenuItem } from '~components/BaseMenu';\nimport { Checkbox } from '~components/Checkbox';\nimport type { AvatarProps } from '~components/Avatar/types';\nimport { Avatar } from '~components/Avatar';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\ntype ActionListItemProps = {\n title: string;\n description?: string;\n onClick?: (clickProps: {\n name: string;\n value?: boolean;\n event: Platform.Select<{\n web: React.MouseEvent;\n native: React.TouchEvent<TouchableOpacity>;\n }>;\n }) => 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 /**\n * Internally used to pass index for virtualized lists\n *\n * @private\n */\n _virtualizedIndex?: number;\n /**\n * Internally used to focus on virtualized list\n *\n * @private\n */\n _onVirtualizedFocus?: (_virtuazedIndex: number) => void;\n} & TestID &\n DataAnalyticsAttribute;\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 &\n DataAnalyticsAttribute;\n\nconst _ActionListSectionTitle = ({\n title,\n isInsideVirtualizedList = false,\n}: {\n title: string;\n isInsideVirtualizedList?: boolean;\n}): React.ReactElement => {\n return (\n <StyledActionListSectionTitle\n {...makeAccessible({\n hidden: !isInsideVirtualizedList,\n role: isInsideVirtualizedList ? 'heading' : undefined,\n })}\n >\n <Text color=\"surface.text.gray.muted\" size=\"small\" weight=\"semibold\">\n {title}\n </Text>\n </StyledActionListSectionTitle>\n );\n};\n\nconst ActionListSectionTitle = assignWithoutSideEffects(_ActionListSectionTitle, {\n componentId: componentIds.ActionListSectionTitle,\n});\nconst _ActionListSection = ({\n title,\n children,\n testID,\n _hideDivider,\n _sectionChildValues,\n ...rest\n}: ActionListSectionProps): React.ReactElement => {\n const { hasAutoCompleteInHeader, dropdownTriggerer, filteredValues } = useDropdown();\n const hasAutoComplete =\n hasAutoCompleteInHeader || 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 {...makeAnalyticsAttribute(rest as Record<string, unknown>)}\n >\n {/* We're announcing title as group label so we can hide this */}\n {isSectionVisible ? <ActionListSectionTitle title={title} /> : null}\n\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(React.memo(_ActionListSection), {\n componentId: componentIds.ActionListSection,\n});\n\nconst _ActionListItemIcon = ({ icon }: { icon: IconComponent }): React.ReactElement => {\n const Icon = icon;\n const { color, isDisabled } = useBaseMenuItem();\n const iconState = isDisabled ? 'disabled' : 'muted';\n return (\n <Icon\n color={\n color === '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 _ActionListItemAvatar = (avatarProps: Omit<AvatarProps, 'size' | ''>): React.ReactElement => {\n return <Avatar size=\"xsmall\" {...avatarProps} />;\n};\n\nconst ActionListItemAvatar = assignWithoutSideEffects(_ActionListItemAvatar, {\n componentId: componentIds.ActionListItemAvatar,\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 } = useBaseMenuItem();\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\nconst BaseMenuLeadingItem = ({\n isSelected,\n isDisabled,\n}: {\n isSelected?: boolean;\n isDisabled?: boolean;\n}): React.ReactElement => {\n return (\n <BaseBox\n pointerEvents=\"none\"\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 {...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};\n\ntype ClickHandlerType = (e: React.MouseEvent<HTMLButtonElement>) => void;\n\nconst makeActionListItemClickable = (\n clickHandler: ClickHandlerType,\n): { onPress?: (e: React.TouchEvent<TouchableOpacity>) => void; 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\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 hasAutoCompleteInHeader,\n } = useDropdown();\n\n React.useEffect(() => {\n if (activeIndex === props._index && props._virtualizedIndex !== undefined) {\n props._onVirtualizedFocus?.(props._virtualizedIndex as number);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [activeIndex]);\n\n const hasAutoComplete =\n hasAutoCompleteInHeader || dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete;\n\n const hasFilterChipSelectInput =\n dropdownTriggerer === dropdownComponentIds.triggers.FilterChipSelectInput;\n\n const hasInputDropdownButton =\n dropdownTriggerer === dropdownComponentIds.triggers.InputDropdownButton;\n\n const renderOnWebAs = props.href ? 'a' : 'button';\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 (\n dropdownTriggerer === dropdownComponentIds.triggers.SelectInput ||\n hasAutoComplete ||\n hasFilterChipSelectInput ||\n hasInputDropdownButton\n ) {\n if (typeof props._index === 'number') {\n return selectedIndices.includes(props._index);\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 const isVisible = hasAutoComplete && filteredValues ? filteredValues.includes(props.value) : true;\n\n return (\n <BaseMenuItem\n isVisible={isVisible}\n as={!isReactNative() ? renderOnWebAs : undefined}\n id={`${dropdownBaseId}-${props._index}`}\n tabIndex={-1}\n title={props.title}\n description={props.description}\n leading={\n selectionType === 'multiple' ? (\n <BaseMenuLeadingItem\n key={`${dropdownBaseId}-${props._index}-leading-${isSelected}`}\n isSelected={isSelected}\n isDisabled={props.isDisabled}\n />\n ) : (\n props.leading\n )\n }\n trailing={props.trailing}\n titleSuffix={props.titleSuffix}\n href={props.href}\n target={props.target}\n className={activeIndex === props._index ? 'active-focus' : ''}\n isSelected={isSelected}\n isDisabled={props.isDisabled}\n role={getActionListItemRole(dropdownTriggerer, props.href)}\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, event: castWebType(e) });\n }\n })}\n {...makeAnalyticsAttribute({ ...props })}\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 selectionType={selectionType}\n color={props.intent}\n isKeydownPressed={isKeydownPressed}\n />\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 ActionListItemAvatar,\n ActionListItemBadge,\n ActionListItemBadgeGroup,\n ActionListSection,\n ActionListSectionTitle,\n};\n"],"names":["StyledActionListSectionTitle","styled","BaseBox","withConfig","displayName","componentId","props","padding","makeSize","theme","spacing","_ActionListSectionTitle","_ref","title","_ref$isInsideVirtuali","isInsideVirtualizedList","_jsx","_objectSpread","makeAccessible","hidden","role","undefined","children","Text","color","size","weight","ActionListSectionTitle","assignWithoutSideEffects","componentIds","_ActionListSection","_ref2","testID","_hideDivider","_sectionChildValues","rest","_objectWithoutProperties","_excluded","_useDropdown","useDropdown","hasAutoCompleteInHeader","dropdownTriggerer","filteredValues","hasAutoComplete","dropdownComponentIds","triggers","AutoComplete","isSectionVisible","React","useMemo","visibleActionListItemInSection","find","actionItemValue","includes","Boolean","showDividerInRN","isReactNative","showDividerInAutoComplete","length","_jsxs","getActionListSectionRole","label","metaAttribute","name","MetaConstants","ActionListSection","makeAnalyticsAttribute","Divider","marginX","marginY","memo","_ActionListItemIcon","_ref3","icon","Icon","_useBaseMenuItem","useBaseMenuItem","isDisabled","iconState","concat","ActionListItemIcon","_ActionListItemBadgeGroup","_ref4","Box","display","alignItems","flexDirection","ActionListItemBadgeGroup","_ActionListItemAvatar","avatarProps","Avatar","ActionListItemAvatar","_ActionListItemBadge","Badge","marginLeft","ActionListItemBadge","_ActionListItemText","_ref5","_useBaseMenuItem2","variant","getNormalTextColor","isMuted","ActionListItemText","BaseMenuLeadingItem","_ref6","isSelected","pointerEvents","Checkbox","isChecked","tabIndex","makeActionListItemClickable","clickHandler","onPress","onClick","_ActionListItem","_useDropdown2","activeIndex","dropdownBaseId","onOptionClick","selectedIndices","setShouldIgnoreBlurAnimation","selectionType","isKeydownPressed","useEffect","_index","_virtualizedIndex","_props$_onVirtualized","_onVirtualizedFocus","call","hasFilterChipSelectInput","FilterChipSelectInput","hasInputDropdownButton","InputDropdownButton","renderOnWebAs","href","getIsSelected","SelectInput","validateActionListItemProps","leading","trailing","titleSuffix","intent","throwBladeError","message","moduleName","isVisible","value","BaseMenuItem","as","id","description","target","className","getActionListItemRole","e","_props$onClick","event","castWebType","ActionListItem","onMouseDown","onMouseUp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGA,IAAMA,4BAA4B,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,8CAAA;EAAAC,WAAA,EAAA,UAAA;AAAA,CAAA,CAAA,CAAC,UAACC,KAAK,EAAA;EAAA,OAAM;AAC/D;IACAC,OAAO,EAAEC,QAAQ,CAACF,KAAK,CAACG,KAAK,CAACC,OAAO,CAAC,CAAC,CA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KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,cAAA,CAAA3B,IAAA,CAAA1H,KAAK,EAAW;QAAEyD,IAAI,EAAEzD,KAAK,CAAC4I,KAAK;AAAEA,QAAAA,KAAK,EAAEzC,UAAU;QAAEmD,KAAK,EAAEC,WAAW,CAACH,CAAC,CAAA;AAAE,OAAC,CAAC,CAAA;AAClF,KAAA;GACD,CAAC,CACExF,EAAAA,sBAAsB,CAAAjD,aAAA,CAAMX,EAAAA,EAAAA,KAAK,CAAE,CAAC,CACpCwD,EAAAA,aAAa,CAAC;IAAEC,IAAI,EAAEC,aAAa,CAAC8F,cAAc;IAAE9H,MAAM,EAAE1B,KAAK,CAAC0B,MAAAA;AAAO,GAAC,CAAC,CAAA,EAAA,EAAA,EAAA;IAC/E+H,WAAW,EAAE,SAAAA,WAAAA,GAAM;AACjB;AACA;MACAvC,4BAA4B,CAAC,IAAI,CAAC,CAAA;KAClC;IACFwC,SAAS,EAAE,SAAAA,SAAAA,GAAM;AACf;MACAxC,4BAA4B,CAAC,KAAK,CAAC,CAAA;KACnC;IACF,YAAYlH,EAAAA,KAAK,CAAC4I,KAAM;IACxB,YAAY5I,EAAAA,KAAK,CAACsH,MAAO;AACzBH,IAAAA,aAAa,EAAEA,aAAc;IAC7BjG,KAAK,EAAElB,KAAK,CAACuI,MAAO;AACpBnB,IAAAA,gBAAgB,EAAEA,gBAAAA;AAAiB,GAAA,CACpC,CAAC,CAAA;AAEN,CAAC,CAAA;AAEKoC,IAAAA,cAAc,gBAAGlI,wBAAwB,eAACoB,cAAK,CAACsB,IAAI,CAAC4C,eAAe,CAAC,EAAE;EAC3E7G,WAAW,EAAEwB,YAAY,CAACiI,cAAc;EACxC1J,WAAW,EAAEyB,YAAY,CAACiI,cAAAA;AAC5B,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 type { TouchableOpacity } from 'react-native';\nimport { componentIds } from './componentIds';\nimport { validateActionListItemProps, getNormalTextColor } from './actionListUtils';\nimport { getActionListItemRole, getActionListSectionRole } 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 type { Platform } from '~utils';\nimport { castWebType, isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { DataAnalyticsAttribute, StringChildrenType, TestID } from '~utils/types';\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';\nimport { BaseMenuItem, useBaseMenuItem } from '~components/BaseMenu';\nimport { Checkbox } from '~components/Checkbox';\nimport type { AvatarProps } from '~components/Avatar/types';\nimport { Avatar } from '~components/Avatar';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\ntype ActionListItemProps = {\n title: string;\n description?: string;\n onClick?: (clickProps: {\n name: string;\n value?: boolean;\n event: Platform.Select<{\n web: React.MouseEvent;\n native: React.TouchEvent<TouchableOpacity>;\n }>;\n }) => 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 /**\n * Internally used to pass index for virtualized lists\n *\n * @private\n */\n _virtualizedIndex?: number;\n /**\n * Internally used to focus on virtualized list\n *\n * @private\n */\n _onVirtualizedFocus?: (_virtuazedIndex: number) => void;\n} & TestID &\n DataAnalyticsAttribute;\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 &\n DataAnalyticsAttribute;\n\nconst _ActionListSectionTitle = ({\n title,\n isInsideVirtualizedList = false,\n}: {\n title: string;\n isInsideVirtualizedList?: boolean;\n}): React.ReactElement => {\n return (\n <StyledActionListSectionTitle\n {...makeAccessible({\n hidden: !isInsideVirtualizedList,\n role: isInsideVirtualizedList ? 'heading' : undefined,\n })}\n >\n <Text color=\"surface.text.gray.muted\" size=\"small\" weight=\"semibold\">\n {title}\n </Text>\n </StyledActionListSectionTitle>\n );\n};\n\nconst ActionListSectionTitle = assignWithoutSideEffects(_ActionListSectionTitle, {\n componentId: componentIds.ActionListSectionTitle,\n});\nconst _ActionListSection = ({\n title,\n children,\n testID,\n _hideDivider,\n _sectionChildValues,\n ...rest\n}: ActionListSectionProps): React.ReactElement => {\n const { hasAutoCompleteInHeader, dropdownTriggerer, filteredValues } = useDropdown();\n const hasAutoComplete =\n hasAutoCompleteInHeader || 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 {...makeAnalyticsAttribute(rest as Record<string, unknown>)}\n >\n {/* We're announcing title as group label so we can hide this */}\n {isSectionVisible ? <ActionListSectionTitle title={title} /> : null}\n\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(React.memo(_ActionListSection), {\n componentId: componentIds.ActionListSection,\n});\n\nconst _ActionListItemIcon = ({ icon }: { icon: IconComponent }): React.ReactElement => {\n const Icon = icon;\n const { color, isDisabled } = useBaseMenuItem();\n const iconState = isDisabled ? 'disabled' : 'muted';\n return (\n <Icon\n color={\n color === '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 _ActionListItemAvatar = (avatarProps: Omit<AvatarProps, 'size' | ''>): React.ReactElement => {\n return <Avatar size=\"xsmall\" {...avatarProps} />;\n};\n\nconst ActionListItemAvatar = assignWithoutSideEffects(_ActionListItemAvatar, {\n componentId: componentIds.ActionListItemAvatar,\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 } = useBaseMenuItem();\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\nconst BaseMenuLeadingItem = ({\n isSelected,\n isDisabled,\n}: {\n isSelected?: boolean;\n isDisabled?: boolean;\n}): React.ReactElement => {\n return (\n <BaseBox\n pointerEvents=\"none\"\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 {...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};\n\ntype ClickHandlerType = (e: React.MouseEvent<HTMLButtonElement>) => void;\n\nconst makeActionListItemClickable = (\n clickHandler: ClickHandlerType,\n): { onPress?: (e: React.TouchEvent<TouchableOpacity>) => void; 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\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 hasAutoCompleteInHeader,\n } = useDropdown();\n\n React.useEffect(() => {\n if (activeIndex === props._index && props._virtualizedIndex !== undefined) {\n props._onVirtualizedFocus?.(props._virtualizedIndex as number);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [activeIndex]);\n\n const hasAutoComplete =\n hasAutoCompleteInHeader || dropdownTriggerer === dropdownComponentIds.triggers.AutoComplete;\n\n const hasFilterChipSelectInput =\n dropdownTriggerer === dropdownComponentIds.triggers.FilterChipSelectInput;\n\n const hasInputDropdownButton =\n dropdownTriggerer === dropdownComponentIds.triggers.InputDropdownButton;\n\n const renderOnWebAs = props.href ? 'a' : 'button';\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 (\n dropdownTriggerer === dropdownComponentIds.triggers.SelectInput ||\n hasAutoComplete ||\n hasFilterChipSelectInput ||\n hasInputDropdownButton\n ) {\n if (typeof props._index === 'number') {\n return selectedIndices.includes(props._index);\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 const isVisible = hasAutoComplete && filteredValues ? filteredValues.includes(props.value) : true;\n\n return (\n <BaseMenuItem\n isVisible={isVisible}\n as={!isReactNative() ? renderOnWebAs : undefined}\n id={`${dropdownBaseId}-${props._index}`}\n tabIndex={-1}\n title={props.title}\n description={props.description}\n leading={\n selectionType === 'multiple' ? (\n <BaseMenuLeadingItem\n key={`${dropdownBaseId}-${props._index}-leading-${isSelected}`}\n isSelected={isSelected}\n isDisabled={props.isDisabled}\n />\n ) : (\n props.leading\n )\n }\n trailing={props.trailing}\n titleSuffix={props.titleSuffix}\n href={props.href}\n target={props.target}\n className={activeIndex === props._index ? 'active-focus' : ''}\n isSelected={isSelected}\n isDisabled={props.isDisabled}\n role={getActionListItemRole(dropdownTriggerer, props.href)}\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, event: castWebType(e) });\n }\n })}\n {...makeAnalyticsAttribute({ ...props })}\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 selectionType={selectionType}\n color={props.intent}\n isKeydownPressed={isKeydownPressed}\n />\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 ActionListItemAvatar,\n ActionListItemBadge,\n ActionListItemBadgeGroup,\n ActionListSection,\n ActionListSectionTitle,\n};\n"],"names":["StyledActionListSectionTitle","styled","BaseBox","withConfig","displayName","componentId","props","padding","makeSize","theme","spacing","_ActionListSectionTitle","_ref","title","_ref$isInsideVirtuali","isInsideVirtualizedList","_jsx","_objectSpread","makeAccessible","hidden","role","undefined","children","Text","color","size","weight","ActionListSectionTitle","assignWithoutSideEffects","componentIds","_ActionListSection","_ref2","testID","_hideDivider","_sectionChildValues","rest","_objectWithoutProperties","_excluded","_useDropdown","useDropdown","hasAutoCompleteInHeader","dropdownTriggerer","filteredValues","hasAutoComplete","dropdownComponentIds","triggers","AutoComplete","isSectionVisible","React","useMemo","visibleActionListItemInSection","find","actionItemValue","includes","Boolean","showDividerInRN","isReactNative","showDividerInAutoComplete","length","_jsxs","getActionListSectionRole","label","metaAttribute","name","MetaConstants","ActionListSection","makeAnalyticsAttribute","Divider","marginX","marginY","memo","_ActionListItemIcon","_ref3","icon","Icon","_useBaseMenuItem","useBaseMenuItem","isDisabled","iconState","concat","ActionListItemIcon","_ActionListItemBadgeGroup","_ref4","Box","display","alignItems","flexDirection","ActionListItemBadgeGroup","_ActionListItemAvatar","avatarProps","Avatar","ActionListItemAvatar","_ActionListItemBadge","Badge","marginLeft","ActionListItemBadge","_ActionListItemText","_ref5","_useBaseMenuItem2","variant","getNormalTextColor","isMuted","ActionListItemText","BaseMenuLeadingItem","_ref6","isSelected","pointerEvents","Checkbox","isChecked","tabIndex","makeActionListItemClickable","clickHandler","onPress","onClick","_ActionListItem","_useDropdown2","activeIndex","dropdownBaseId","onOptionClick","selectedIndices","setShouldIgnoreBlurAnimation","selectionType","isKeydownPressed","useEffect","_index","_virtualizedIndex","_props$_onVirtualized","_onVirtualizedFocus","call","hasFilterChipSelectInput","FilterChipSelectInput","hasInputDropdownButton","InputDropdownButton","renderOnWebAs","href","getIsSelected","SelectInput","validateActionListItemProps","leading","trailing","titleSuffix","intent","throwBladeError","message","moduleName","isVisible","value","BaseMenuItem","as","id","description","target","className","getActionListItemRole","e","_props$onClick","event","castWebType","ActionListItem","onMouseDown","onMouseUp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGA,IAAMA,4BAA4B,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,8CAAA;EAAAC,WAAA,EAAA,UAAA;AAAA,CAAA,CAAA,CAAC,UAACC,KAAK,EAAA;EAAA,OAAM;AAC/D;IACAC,OAAO,EAAEC,QAAQ,CAACF,KAAK,CAACG,KAAK,CAACC,OAAO,CAAC,CAAC,CAAC,CAAA;GACzC,CAAA;AAAA,CAAC,CAAC,CAAA;AAsBH,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,IAAA,EAMH;AAAA,EAAA,IALxBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAAC,qBAAA,GAAAF,IAAA,CACLG,uBAAuB;AAAvBA,IAAAA,uBAAuB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,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AA,KAAK,CAAE,CAAC,CACpCwD,EAAAA,aAAa,CAAC;IAAEC,IAAI,EAAEC,aAAa,CAAC8F,cAAc;IAAE9H,MAAM,EAAE1B,KAAK,CAAC0B,MAAAA;AAAO,GAAC,CAAC,CAAA,EAAA,EAAA,EAAA;AAC/E+H,IAAAA,WAAW,EAAE,SAAbA,WAAWA,GAAQ;AACjB;AACA;MACAvC,4BAA4B,CAAC,IAAI,CAAC,CAAA;KAClC;AACFwC,IAAAA,SAAS,EAAE,SAAXA,SAASA,GAAQ;AACf;MACAxC,4BAA4B,CAAC,KAAK,CAAC,CAAA;KACnC;IACF,YAAYlH,EAAAA,KAAK,CAAC4I,KAAM;IACxB,YAAY5I,EAAAA,KAAK,CAACsH,MAAO;AACzBH,IAAAA,aAAa,EAAEA,aAAc;IAC7BjG,KAAK,EAAElB,KAAK,CAACuI,MAAO;AACpBnB,IAAAA,gBAAgB,EAAEA,gBAAAA;AAAiB,GAAA,CACpC,CAAC,CAAA;AAEN,CAAC,CAAA;AAEKoC,IAAAA,cAAc,gBAAGlI,wBAAwB,cAACoB,cAAK,CAACsB,IAAI,CAAC4C,eAAe,CAAC,EAAE;EAC3E7G,WAAW,EAAEwB,YAAY,CAACiI,cAAc;EACxC1J,WAAW,EAAEyB,YAAY,CAACiI,cAAAA;AAC5B,CAAC;;;;"}
@@ -42,14 +42,14 @@ var getActionListProperties = function getActionListProperties(children) {
42
42
  var currentSection = null;
43
43
  var actionListOptions = [];
44
44
  var getActionListItemWithId = function getActionListItemWithId(child, hideDivider) {
45
- if ( /*#__PURE__*/React__default.isValidElement(child) && !child.props.isDisabled) {
45
+ if (/*#__PURE__*/React__default.isValidElement(child) && !child.props.isDisabled) {
46
46
  actionListOptions.push({
47
47
  title: child.props.title,
48
48
  value: child.props.value,
49
49
  onClickTrigger: function onClickTrigger(value) {
50
50
  var _child$props$onClick, _child$props, _child$props$isSelect;
51
51
  var anchorLink = child.props.href;
52
- (_child$props$onClick = (_child$props = child.props).onClick) === null || _child$props$onClick === void 0 ? void 0 : _child$props$onClick.call(_child$props, {
52
+ (_child$props$onClick = (_child$props = child.props).onClick) === null || _child$props$onClick === void 0 || _child$props$onClick.call(_child$props, {
53
53
  name: child.props.value,
54
54
  value: (_child$props$isSelect = child.props.isSelected) !== null && _child$props$isSelect !== void 0 ? _child$props$isSelect : value
55
55
  });
@@ -69,7 +69,7 @@ var getActionListProperties = function getActionListProperties(children) {
69
69
  });
70
70
  // push the item in the appropriate bucket
71
71
  if (foundSection) {
72
- foundSection === null || foundSection === void 0 ? void 0 : foundSection.data.push(_objectSpread(_objectSpread({}, child.props), {}, {
72
+ foundSection === null || foundSection === void 0 || foundSection.data.push(_objectSpread(_objectSpread({}, child.props), {}, {
73
73
  _index: currentIndex
74
74
  }));
75
75
  } else {
@@ -104,7 +104,7 @@ var getActionListProperties = function getActionListProperties(children) {
104
104
 
105
105
  // Looping through ActionListItems to add index to them and get an options array for moving focus between items
106
106
  var childrenWithId = React__default.Children.map(children, function (child, index) {
107
- if ( /*#__PURE__*/React__default.isValidElement(child)) {
107
+ if (/*#__PURE__*/React__default.isValidElement(child)) {
108
108
  if (isValidAllowedChildren(child, componentIds.ActionListSection)) {
109
109
  var shouldHideDivider = index === lastActionListSectionIndex && !isActionListItemPresentAfterSection;
110
110
  var sectionChildValues = [];