@razorpay/blade 12.49.3 → 12.49.5

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 (618) 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 +14 -14
  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/CalendarHeader.web.js.map +1 -1
  177. package/build/lib/web/development/components/DatePicker/DateInput.web.js +17 -5
  178. package/build/lib/web/development/components/DatePicker/DateInput.web.js.map +1 -1
  179. package/build/lib/web/development/components/DatePicker/QuickSelection/PresetDropdown.web.js.map +1 -1
  180. package/build/lib/web/development/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -1
  181. package/build/lib/web/development/components/DatePicker/useControlledDates.js +1 -1
  182. package/build/lib/web/development/components/DatePicker/useControlledDates.js.map +1 -1
  183. package/build/lib/web/development/components/DatePicker/useDatesState.js +1 -1
  184. package/build/lib/web/development/components/DatePicker/useDatesState.js.map +1 -1
  185. package/build/lib/web/development/components/DatePicker/usePopup.js +2 -2
  186. package/build/lib/web/development/components/DatePicker/usePopup.js.map +1 -1
  187. package/build/lib/web/development/components/DatePicker/utils.js +191 -23
  188. package/build/lib/web/development/components/DatePicker/utils.js.map +1 -1
  189. package/build/lib/web/development/components/Drawer/Drawer.web.js +2 -2
  190. package/build/lib/web/development/components/Drawer/Drawer.web.js.map +1 -1
  191. package/build/lib/web/development/components/Drawer/DrawerContext.js.map +1 -1
  192. package/build/lib/web/development/components/Drawer/DrawerSubcomponents.web.js.map +1 -1
  193. package/build/lib/web/development/components/Drawer/StackProvider.js.map +1 -1
  194. package/build/lib/web/development/components/Dropdown/Dropdown.js +28 -28
  195. package/build/lib/web/development/components/Dropdown/Dropdown.js.map +1 -1
  196. package/build/lib/web/development/components/Dropdown/DropdownButton.js +4 -4
  197. package/build/lib/web/development/components/Dropdown/DropdownButton.js.map +1 -1
  198. package/build/lib/web/development/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  199. package/build/lib/web/development/components/Dropdown/DropdownIconButton.js +4 -4
  200. package/build/lib/web/development/components/Dropdown/DropdownIconButton.js.map +1 -1
  201. package/build/lib/web/development/components/Dropdown/DropdownLink.js +4 -4
  202. package/build/lib/web/development/components/Dropdown/DropdownLink.js.map +1 -1
  203. package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js +1 -1
  204. package/build/lib/web/development/components/Dropdown/DropdownOverlay.web.js.map +1 -1
  205. package/build/lib/web/development/components/Dropdown/FilterChipGroup.web.js +1 -1
  206. package/build/lib/web/development/components/Dropdown/FilterChipGroup.web.js.map +1 -1
  207. package/build/lib/web/development/components/Dropdown/FilterChipGroupContext.web.js.map +1 -1
  208. package/build/lib/web/development/components/Dropdown/FilterChipSelectInput.web.js +7 -7
  209. package/build/lib/web/development/components/Dropdown/FilterChipSelectInput.web.js.map +1 -1
  210. package/build/lib/web/development/components/Dropdown/InputDropdownButton.web.js +8 -8
  211. package/build/lib/web/development/components/Dropdown/InputDropdownButton.web.js.map +1 -1
  212. package/build/lib/web/development/components/Dropdown/useDropdown.js +4 -4
  213. package/build/lib/web/development/components/Dropdown/useDropdown.js.map +1 -1
  214. package/build/lib/web/development/components/EmptyState/EmptyState.web.js +1 -1
  215. package/build/lib/web/development/components/EmptyState/EmptyState.web.js.map +1 -1
  216. package/build/lib/web/development/components/FileUpload/FileUpload.web.js +14 -14
  217. package/build/lib/web/development/components/FileUpload/FileUpload.web.js.map +1 -1
  218. package/build/lib/web/development/components/FileUpload/FileUploadItem.js +1 -1
  219. package/build/lib/web/development/components/FileUpload/FileUploadItem.js.map +1 -1
  220. package/build/lib/web/development/components/FilterChip/BaseFilterChip.web.js +3 -3
  221. package/build/lib/web/development/components/FilterChip/BaseFilterChip.web.js.map +1 -1
  222. package/build/lib/web/development/components/Form/FormHint.js.map +1 -1
  223. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js +1 -1
  224. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js.map +1 -1
  225. package/build/lib/web/development/components/Indicator/Indicator.js +1 -1
  226. package/build/lib/web/development/components/Indicator/Indicator.js.map +1 -1
  227. package/build/lib/web/development/components/InfoGroup/InfoGroup.web.js +6 -6
  228. package/build/lib/web/development/components/InfoGroup/InfoGroup.web.js.map +1 -1
  229. package/build/lib/web/development/components/InfoGroup/InfoGroupContext.js.map +1 -1
  230. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +1 -1
  231. package/build/lib/web/development/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  232. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +110 -110
  233. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  234. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js +8 -8
  235. package/build/lib/web/development/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  236. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js +7 -7
  237. package/build/lib/web/development/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  238. package/build/lib/web/development/components/Input/BaseInput/useTaggedInput.js +4 -4
  239. package/build/lib/web/development/components/Input/BaseInput/useTaggedInput.js.map +1 -1
  240. package/build/lib/web/development/components/Input/DropdownInputTriggers/AutoComplete.js +8 -8
  241. package/build/lib/web/development/components/Input/DropdownInputTriggers/AutoComplete.js.map +1 -1
  242. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +4 -4
  243. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  244. package/build/lib/web/development/components/Input/DropdownInputTriggers/SelectInput.js +3 -3
  245. package/build/lib/web/development/components/Input/DropdownInputTriggers/SelectInput.js.map +1 -1
  246. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js +14 -14
  247. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js.map +1 -1
  248. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js +1 -1
  249. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  250. package/build/lib/web/development/components/Input/PhoneNumberInput/CountrySelector.web.js.map +1 -1
  251. package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +5 -5
  252. package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
  253. package/build/lib/web/development/components/Input/SearchInput/SearchInput.js +5 -5
  254. package/build/lib/web/development/components/Input/SearchInput/SearchInput.js.map +1 -1
  255. package/build/lib/web/development/components/Input/TextArea/TextArea.js +7 -7
  256. package/build/lib/web/development/components/Input/TextArea/TextArea.js.map +1 -1
  257. package/build/lib/web/development/components/Input/TextInput/TextInput.js +7 -7
  258. package/build/lib/web/development/components/Input/TextInput/TextInput.js.map +1 -1
  259. package/build/lib/web/development/components/Input/TextInput/useFormattedInput.js +2 -2
  260. package/build/lib/web/development/components/Input/TextInput/useFormattedInput.js.map +1 -1
  261. package/build/lib/web/development/components/InputGroup/InputGroup.web.js +1 -1
  262. package/build/lib/web/development/components/InputGroup/InputGroup.web.js.map +1 -1
  263. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js +3 -3
  264. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js.map +1 -1
  265. package/build/lib/web/development/components/Link/Link/Link.js +1 -1
  266. package/build/lib/web/development/components/Link/Link/Link.js.map +1 -1
  267. package/build/lib/web/development/components/List/List.js +1 -1
  268. package/build/lib/web/development/components/List/List.js.map +1 -1
  269. package/build/lib/web/development/components/List/getOrderedListItemBullet.js +3 -3
  270. package/build/lib/web/development/components/List/getOrderedListItemBullet.js.map +1 -1
  271. package/build/lib/web/development/components/ListView/ListViewFilters.web.js.map +1 -1
  272. package/build/lib/web/development/components/ListView/ListViewFiltersContext.web.js.map +1 -1
  273. package/build/lib/web/development/components/LiveAnnouncer/LiveAnnouncer.web.js.map +1 -1
  274. package/build/lib/web/development/components/Menu/Menu.web.js.map +1 -1
  275. package/build/lib/web/development/components/Menu/MenuItem.web.js +3 -3
  276. package/build/lib/web/development/components/Menu/MenuItem.web.js.map +1 -1
  277. package/build/lib/web/development/components/Menu/useMenu.js.map +1 -1
  278. package/build/lib/web/development/components/Modal/ModalBackdrop.js.map +1 -1
  279. package/build/lib/web/development/components/Modal/ModalContext.js.map +1 -1
  280. package/build/lib/web/development/components/Popover/Popover.web.js.map +1 -1
  281. package/build/lib/web/development/components/Preview/Preview.web.js +29 -30
  282. package/build/lib/web/development/components/Preview/Preview.web.js.map +1 -1
  283. package/build/lib/web/development/components/QuickFilters/QuickFilterGroup/QuickFilterGroup.js.map +1 -1
  284. package/build/lib/web/development/components/Radio/Radio.js +4 -4
  285. package/build/lib/web/development/components/Radio/Radio.js.map +1 -1
  286. package/build/lib/web/development/components/Radio/RadioGroup/useRadioGroup.js +1 -1
  287. package/build/lib/web/development/components/Radio/RadioGroup/useRadioGroup.js.map +1 -1
  288. package/build/lib/web/development/components/Radio/useRadio.js +1 -1
  289. package/build/lib/web/development/components/Radio/useRadio.js.map +1 -1
  290. package/build/lib/web/development/components/SideNav/SideNav.web.js +19 -19
  291. package/build/lib/web/development/components/SideNav/SideNav.web.js.map +1 -1
  292. package/build/lib/web/development/components/SideNav/SideNavItems/SideNavLink.web.js +6 -6
  293. package/build/lib/web/development/components/SideNav/SideNavItems/SideNavLink.web.js.map +1 -1
  294. package/build/lib/web/development/components/SideNav/SideNavLevel.web.js.map +1 -1
  295. package/build/lib/web/development/components/SpotlightPopoverTour/Tour.web.js +7 -7
  296. package/build/lib/web/development/components/SpotlightPopoverTour/Tour.web.js.map +1 -1
  297. package/build/lib/web/development/components/SpotlightPopoverTour/TourFooter.web.js +2 -2
  298. package/build/lib/web/development/components/SpotlightPopoverTour/TourFooter.web.js.map +1 -1
  299. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js +1 -1
  300. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  301. package/build/lib/web/development/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  302. package/build/lib/web/development/components/SpotlightPopoverTour/TourStep.web.js +1 -1
  303. package/build/lib/web/development/components/SpotlightPopoverTour/TourStep.web.js.map +1 -1
  304. package/build/lib/web/development/components/StepGroup/StepGroup.web.js +6 -6
  305. package/build/lib/web/development/components/StepGroup/StepGroup.web.js.map +1 -1
  306. package/build/lib/web/development/components/StepGroup/StepItem.web.js +1 -1
  307. package/build/lib/web/development/components/StepGroup/StepItem.web.js.map +1 -1
  308. package/build/lib/web/development/components/StepGroup/StepLine.web.js +13 -13
  309. package/build/lib/web/development/components/StepGroup/StepLine.web.js.map +1 -1
  310. package/build/lib/web/development/components/Switch/Switch.js +1 -1
  311. package/build/lib/web/development/components/Switch/Switch.js.map +1 -1
  312. package/build/lib/web/development/components/Table/Table.web.js +10 -10
  313. package/build/lib/web/development/components/Table/Table.web.js.map +1 -1
  314. package/build/lib/web/development/components/Table/TableBody.web.js +6 -6
  315. package/build/lib/web/development/components/Table/TableBody.web.js.map +1 -1
  316. package/build/lib/web/development/components/Table/TableContext.js.map +1 -1
  317. package/build/lib/web/development/components/Table/TableHeader.web.js.map +1 -1
  318. package/build/lib/web/development/components/Table/TablePagination.web.js +2 -2
  319. package/build/lib/web/development/components/Table/TablePagination.web.js.map +1 -1
  320. package/build/lib/web/development/components/Table/TableToolbar.web.js.map +1 -1
  321. package/build/lib/web/development/components/Tabs/TabItem.web.js +2 -2
  322. package/build/lib/web/development/components/Tabs/TabItem.web.js.map +1 -1
  323. package/build/lib/web/development/components/Tabs/TabList.web.js +2 -2
  324. package/build/lib/web/development/components/Tabs/TabList.web.js.map +1 -1
  325. package/build/lib/web/development/components/Tabs/Tabs.web.js +1 -1
  326. package/build/lib/web/development/components/Tabs/Tabs.web.js.map +1 -1
  327. package/build/lib/web/development/components/Tabs/utils.js +2 -2
  328. package/build/lib/web/development/components/Tabs/utils.js.map +1 -1
  329. package/build/lib/web/development/components/Tag/AnimatedTag.web.js.map +1 -1
  330. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  331. package/build/lib/web/development/components/Toast/Toast.web.js +2 -2
  332. package/build/lib/web/development/components/Toast/Toast.web.js.map +1 -1
  333. package/build/lib/web/development/components/Toast/ToastContainer.web.js.map +1 -1
  334. package/build/lib/web/development/components/Tooltip/Tooltip.web.js +1 -1
  335. package/build/lib/web/development/components/Tooltip/Tooltip.web.js.map +1 -1
  336. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js +2 -2
  337. package/build/lib/web/development/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  338. package/build/lib/web/development/components/TopNav/TabNav/utils.js +2 -2
  339. package/build/lib/web/development/components/TopNav/TabNav/utils.js.map +1 -1
  340. package/build/lib/web/development/components/Typography/Text/Text.js +1 -1
  341. package/build/lib/web/development/components/Typography/Text/Text.js.map +1 -1
  342. package/build/lib/web/development/tokens/theme/overrideTheme.js +2 -2
  343. package/build/lib/web/development/tokens/theme/overrideTheme.js.map +1 -1
  344. package/build/lib/web/development/utils/bladeCoverage.js +9 -10
  345. package/build/lib/web/development/utils/bladeCoverage.js.map +1 -1
  346. package/build/lib/web/development/utils/fireNativeEvent/fireNativeEvent.web.js +1 -1
  347. package/build/lib/web/development/utils/fireNativeEvent/fireNativeEvent.web.js.map +1 -1
  348. package/build/lib/web/development/utils/hasSameObjectStructure/hasSameObjectStructure.js +6 -6
  349. package/build/lib/web/development/utils/hasSameObjectStructure/hasSameObjectStructure.js.map +1 -1
  350. package/build/lib/web/development/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js +3 -3
  351. package/build/lib/web/development/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js.map +1 -1
  352. package/build/lib/web/development/utils/isValidAllowedChildren/isValidAllowedChildren.js +2 -2
  353. package/build/lib/web/development/utils/isValidAllowedChildren/isValidAllowedChildren.js.map +1 -1
  354. package/build/lib/web/development/utils/lodashButBetter/cloneDeep.js +3 -3
  355. package/build/lib/web/development/utils/lodashButBetter/get.js +3 -3
  356. package/build/lib/web/development/utils/useControllable.js +1 -1
  357. package/build/lib/web/development/utils/useControllable.js.map +1 -1
  358. package/build/lib/web/development/utils/useControlledDropdownInput/useControlledDropdownInput.js +2 -2
  359. package/build/lib/web/development/utils/useControlledDropdownInput/useControlledDropdownInput.js.map +1 -1
  360. package/build/lib/web/development/utils/useScrollLock.js.map +1 -1
  361. package/build/lib/web/production/components/Accordion/Accordion.js +2 -2
  362. package/build/lib/web/production/components/Accordion/Accordion.js.map +1 -1
  363. package/build/lib/web/production/components/ActionList/ActionList.js +1 -1
  364. package/build/lib/web/production/components/ActionList/ActionList.js.map +1 -1
  365. package/build/lib/web/production/components/ActionList/ActionListBox.web.js +7 -7
  366. package/build/lib/web/production/components/ActionList/ActionListBox.web.js.map +1 -1
  367. package/build/lib/web/production/components/ActionList/ActionListItem.js +4 -4
  368. package/build/lib/web/production/components/ActionList/ActionListItem.js.map +1 -1
  369. package/build/lib/web/production/components/ActionList/actionListUtils.js +4 -4
  370. package/build/lib/web/production/components/ActionList/actionListUtils.js.map +1 -1
  371. package/build/lib/web/production/components/Amount/Amount.js +2 -2
  372. package/build/lib/web/production/components/Amount/Amount.js.map +1 -1
  373. package/build/lib/web/production/components/AnimateInteractions/AnimateInteractions.web.js.map +1 -1
  374. package/build/lib/web/production/components/AnimateInteractions/useFocusWithin.js +2 -2
  375. package/build/lib/web/production/components/AnimateInteractions/useFocusWithin.js.map +1 -1
  376. package/build/lib/web/production/components/Avatar/Avatar.web.js +1 -1
  377. package/build/lib/web/production/components/Avatar/Avatar.web.js.map +1 -1
  378. package/build/lib/web/production/components/Badge/Badge.js +1 -1
  379. package/build/lib/web/production/components/Badge/Badge.js.map +1 -1
  380. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js +2 -2
  381. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  382. package/build/lib/web/production/components/BaseMotion/baseMotionUtils.js +2 -2
  383. package/build/lib/web/production/components/BaseMotion/baseMotionUtils.js.map +1 -1
  384. package/build/lib/web/production/components/BladeProvider/useTheme.js.map +1 -1
  385. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +19 -19
  386. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  387. package/build/lib/web/production/components/BottomSheet/BottomSheetBackdrop.web.js.map +1 -1
  388. package/build/lib/web/production/components/BottomSheet/BottomSheetContext.js.map +1 -1
  389. package/build/lib/web/production/components/BottomSheet/BottomSheetStack.js.map +1 -1
  390. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js +27 -27
  391. package/build/lib/web/production/components/Box/BaseBox/baseBoxStyles.js.map +1 -1
  392. package/build/lib/web/production/components/Box/Box.js +1 -1
  393. package/build/lib/web/production/components/Box/Box.js.map +1 -1
  394. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js +5 -5
  395. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js.map +1 -1
  396. package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js.map +1 -1
  397. package/build/lib/web/production/components/Button/Button/Button.js +2 -2
  398. package/build/lib/web/production/components/Button/Button/Button.js.map +1 -1
  399. package/build/lib/web/production/components/Button/IconButton/IconButton.js +1 -1
  400. package/build/lib/web/production/components/Button/IconButton/IconButton.js.map +1 -1
  401. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js +1 -1
  402. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  403. package/build/lib/web/production/components/Card/Card.js.map +1 -1
  404. package/build/lib/web/production/components/Card/CardFooter.js +2 -2
  405. package/build/lib/web/production/components/Card/CardFooter.js.map +1 -1
  406. package/build/lib/web/production/components/Card/CardRoot.web.js.map +1 -1
  407. package/build/lib/web/production/components/Carousel/Carousel.web.js +6 -6
  408. package/build/lib/web/production/components/Carousel/Carousel.web.js.map +1 -1
  409. package/build/lib/web/production/components/Carousel/CarouselItem.web.js +2 -2
  410. package/build/lib/web/production/components/Carousel/CarouselItem.web.js.map +1 -1
  411. package/build/lib/web/production/components/Carousel/Indicators/Indicators.js +1 -1
  412. package/build/lib/web/production/components/Carousel/Indicators/Indicators.js.map +1 -1
  413. package/build/lib/web/production/components/ChatMessage/ChatMessage.web.js +1 -1
  414. package/build/lib/web/production/components/ChatMessage/ChatMessage.web.js.map +1 -1
  415. package/build/lib/web/production/components/Checkbox/Checkbox.js +5 -5
  416. package/build/lib/web/production/components/Checkbox/Checkbox.js.map +1 -1
  417. package/build/lib/web/production/components/Checkbox/CheckboxGroup/useCheckboxGroup.js.map +1 -1
  418. package/build/lib/web/production/components/Checkbox/useCheckbox.js +1 -1
  419. package/build/lib/web/production/components/Checkbox/useCheckbox.js.map +1 -1
  420. package/build/lib/web/production/components/Chip/Chip.js +5 -5
  421. package/build/lib/web/production/components/Chip/Chip.js.map +1 -1
  422. package/build/lib/web/production/components/Chip/useChipGroup.js.map +1 -1
  423. package/build/lib/web/production/components/Collapsible/Collapsible.js +3 -3
  424. package/build/lib/web/production/components/Collapsible/Collapsible.js.map +1 -1
  425. package/build/lib/web/production/components/Collapsible/CollapsibleButton.js +1 -1
  426. package/build/lib/web/production/components/Collapsible/CollapsibleButton.js.map +1 -1
  427. package/build/lib/web/production/components/Counter/Counter.js +1 -1
  428. package/build/lib/web/production/components/Counter/Counter.js.map +1 -1
  429. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js +14 -14
  430. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  431. package/build/lib/web/production/components/DatePicker/Calendar.web.js +7 -7
  432. package/build/lib/web/production/components/DatePicker/Calendar.web.js.map +1 -1
  433. package/build/lib/web/production/components/DatePicker/CalendarHeader.web.js.map +1 -1
  434. package/build/lib/web/production/components/DatePicker/DateInput.web.js +17 -5
  435. package/build/lib/web/production/components/DatePicker/DateInput.web.js.map +1 -1
  436. package/build/lib/web/production/components/DatePicker/QuickSelection/PresetDropdown.web.js.map +1 -1
  437. package/build/lib/web/production/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -1
  438. package/build/lib/web/production/components/DatePicker/useControlledDates.js +1 -1
  439. package/build/lib/web/production/components/DatePicker/useControlledDates.js.map +1 -1
  440. package/build/lib/web/production/components/DatePicker/useDatesState.js +1 -1
  441. package/build/lib/web/production/components/DatePicker/useDatesState.js.map +1 -1
  442. package/build/lib/web/production/components/DatePicker/usePopup.js +2 -2
  443. package/build/lib/web/production/components/DatePicker/usePopup.js.map +1 -1
  444. package/build/lib/web/production/components/DatePicker/utils.js +191 -23
  445. package/build/lib/web/production/components/DatePicker/utils.js.map +1 -1
  446. package/build/lib/web/production/components/Drawer/Drawer.web.js +2 -2
  447. package/build/lib/web/production/components/Drawer/Drawer.web.js.map +1 -1
  448. package/build/lib/web/production/components/Drawer/DrawerContext.js.map +1 -1
  449. package/build/lib/web/production/components/Drawer/DrawerSubcomponents.web.js.map +1 -1
  450. package/build/lib/web/production/components/Drawer/StackProvider.js.map +1 -1
  451. package/build/lib/web/production/components/Dropdown/Dropdown.js +28 -28
  452. package/build/lib/web/production/components/Dropdown/Dropdown.js.map +1 -1
  453. package/build/lib/web/production/components/Dropdown/DropdownButton.js +4 -4
  454. package/build/lib/web/production/components/Dropdown/DropdownButton.js.map +1 -1
  455. package/build/lib/web/production/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  456. package/build/lib/web/production/components/Dropdown/DropdownIconButton.js +4 -4
  457. package/build/lib/web/production/components/Dropdown/DropdownIconButton.js.map +1 -1
  458. package/build/lib/web/production/components/Dropdown/DropdownLink.js +4 -4
  459. package/build/lib/web/production/components/Dropdown/DropdownLink.js.map +1 -1
  460. package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js +1 -1
  461. package/build/lib/web/production/components/Dropdown/DropdownOverlay.web.js.map +1 -1
  462. package/build/lib/web/production/components/Dropdown/FilterChipGroup.web.js +1 -1
  463. package/build/lib/web/production/components/Dropdown/FilterChipGroup.web.js.map +1 -1
  464. package/build/lib/web/production/components/Dropdown/FilterChipGroupContext.web.js.map +1 -1
  465. package/build/lib/web/production/components/Dropdown/FilterChipSelectInput.web.js +7 -7
  466. package/build/lib/web/production/components/Dropdown/FilterChipSelectInput.web.js.map +1 -1
  467. package/build/lib/web/production/components/Dropdown/InputDropdownButton.web.js +8 -8
  468. package/build/lib/web/production/components/Dropdown/InputDropdownButton.web.js.map +1 -1
  469. package/build/lib/web/production/components/Dropdown/useDropdown.js +4 -4
  470. package/build/lib/web/production/components/Dropdown/useDropdown.js.map +1 -1
  471. package/build/lib/web/production/components/EmptyState/EmptyState.web.js +1 -1
  472. package/build/lib/web/production/components/EmptyState/EmptyState.web.js.map +1 -1
  473. package/build/lib/web/production/components/FileUpload/FileUpload.web.js +14 -14
  474. package/build/lib/web/production/components/FileUpload/FileUpload.web.js.map +1 -1
  475. package/build/lib/web/production/components/FileUpload/FileUploadItem.js +1 -1
  476. package/build/lib/web/production/components/FileUpload/FileUploadItem.js.map +1 -1
  477. package/build/lib/web/production/components/FilterChip/BaseFilterChip.web.js +3 -3
  478. package/build/lib/web/production/components/FilterChip/BaseFilterChip.web.js.map +1 -1
  479. package/build/lib/web/production/components/Form/FormHint.js.map +1 -1
  480. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js +1 -1
  481. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js.map +1 -1
  482. package/build/lib/web/production/components/Indicator/Indicator.js +1 -1
  483. package/build/lib/web/production/components/Indicator/Indicator.js.map +1 -1
  484. package/build/lib/web/production/components/InfoGroup/InfoGroup.web.js +6 -6
  485. package/build/lib/web/production/components/InfoGroup/InfoGroup.web.js.map +1 -1
  486. package/build/lib/web/production/components/InfoGroup/InfoGroupContext.js.map +1 -1
  487. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js +1 -1
  488. package/build/lib/web/production/components/Input/BaseInput/AnimatedBaseInputWrapper.web.js.map +1 -1
  489. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +110 -110
  490. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  491. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js +8 -8
  492. package/build/lib/web/production/components/Input/BaseInput/BaseInputTagSlot.web.js.map +1 -1
  493. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js +7 -7
  494. package/build/lib/web/production/components/Input/BaseInput/StyledBaseInput.web.js.map +1 -1
  495. package/build/lib/web/production/components/Input/BaseInput/useTaggedInput.js +4 -4
  496. package/build/lib/web/production/components/Input/BaseInput/useTaggedInput.js.map +1 -1
  497. package/build/lib/web/production/components/Input/DropdownInputTriggers/AutoComplete.js +8 -8
  498. package/build/lib/web/production/components/Input/DropdownInputTriggers/AutoComplete.js.map +1 -1
  499. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +4 -4
  500. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  501. package/build/lib/web/production/components/Input/DropdownInputTriggers/SelectInput.js +3 -3
  502. package/build/lib/web/production/components/Input/DropdownInputTriggers/SelectInput.js.map +1 -1
  503. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js +14 -14
  504. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js.map +1 -1
  505. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js +1 -1
  506. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  507. package/build/lib/web/production/components/Input/PhoneNumberInput/CountrySelector.web.js.map +1 -1
  508. package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +5 -5
  509. package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
  510. package/build/lib/web/production/components/Input/SearchInput/SearchInput.js +5 -5
  511. package/build/lib/web/production/components/Input/SearchInput/SearchInput.js.map +1 -1
  512. package/build/lib/web/production/components/Input/TextArea/TextArea.js +7 -7
  513. package/build/lib/web/production/components/Input/TextArea/TextArea.js.map +1 -1
  514. package/build/lib/web/production/components/Input/TextInput/TextInput.js +7 -7
  515. package/build/lib/web/production/components/Input/TextInput/TextInput.js.map +1 -1
  516. package/build/lib/web/production/components/Input/TextInput/useFormattedInput.js +2 -2
  517. package/build/lib/web/production/components/Input/TextInput/useFormattedInput.js.map +1 -1
  518. package/build/lib/web/production/components/InputGroup/InputGroup.web.js +1 -1
  519. package/build/lib/web/production/components/InputGroup/InputGroup.web.js.map +1 -1
  520. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js +3 -3
  521. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js.map +1 -1
  522. package/build/lib/web/production/components/Link/Link/Link.js +1 -1
  523. package/build/lib/web/production/components/Link/Link/Link.js.map +1 -1
  524. package/build/lib/web/production/components/List/List.js +1 -1
  525. package/build/lib/web/production/components/List/List.js.map +1 -1
  526. package/build/lib/web/production/components/List/getOrderedListItemBullet.js +3 -3
  527. package/build/lib/web/production/components/List/getOrderedListItemBullet.js.map +1 -1
  528. package/build/lib/web/production/components/ListView/ListViewFilters.web.js.map +1 -1
  529. package/build/lib/web/production/components/ListView/ListViewFiltersContext.web.js.map +1 -1
  530. package/build/lib/web/production/components/LiveAnnouncer/LiveAnnouncer.web.js.map +1 -1
  531. package/build/lib/web/production/components/Menu/Menu.web.js.map +1 -1
  532. package/build/lib/web/production/components/Menu/MenuItem.web.js +3 -3
  533. package/build/lib/web/production/components/Menu/MenuItem.web.js.map +1 -1
  534. package/build/lib/web/production/components/Menu/useMenu.js.map +1 -1
  535. package/build/lib/web/production/components/Modal/ModalBackdrop.js.map +1 -1
  536. package/build/lib/web/production/components/Modal/ModalContext.js.map +1 -1
  537. package/build/lib/web/production/components/Popover/Popover.web.js.map +1 -1
  538. package/build/lib/web/production/components/Preview/Preview.web.js +29 -30
  539. package/build/lib/web/production/components/Preview/Preview.web.js.map +1 -1
  540. package/build/lib/web/production/components/QuickFilters/QuickFilterGroup/QuickFilterGroup.js.map +1 -1
  541. package/build/lib/web/production/components/Radio/Radio.js +4 -4
  542. package/build/lib/web/production/components/Radio/Radio.js.map +1 -1
  543. package/build/lib/web/production/components/Radio/RadioGroup/useRadioGroup.js +1 -1
  544. package/build/lib/web/production/components/Radio/RadioGroup/useRadioGroup.js.map +1 -1
  545. package/build/lib/web/production/components/Radio/useRadio.js +1 -1
  546. package/build/lib/web/production/components/Radio/useRadio.js.map +1 -1
  547. package/build/lib/web/production/components/SideNav/SideNav.web.js +19 -19
  548. package/build/lib/web/production/components/SideNav/SideNav.web.js.map +1 -1
  549. package/build/lib/web/production/components/SideNav/SideNavItems/SideNavLink.web.js +6 -6
  550. package/build/lib/web/production/components/SideNav/SideNavItems/SideNavLink.web.js.map +1 -1
  551. package/build/lib/web/production/components/SideNav/SideNavLevel.web.js.map +1 -1
  552. package/build/lib/web/production/components/SpotlightPopoverTour/Tour.web.js +7 -7
  553. package/build/lib/web/production/components/SpotlightPopoverTour/Tour.web.js.map +1 -1
  554. package/build/lib/web/production/components/SpotlightPopoverTour/TourFooter.web.js +2 -2
  555. package/build/lib/web/production/components/SpotlightPopoverTour/TourFooter.web.js.map +1 -1
  556. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js +1 -1
  557. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  558. package/build/lib/web/production/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  559. package/build/lib/web/production/components/SpotlightPopoverTour/TourStep.web.js +1 -1
  560. package/build/lib/web/production/components/SpotlightPopoverTour/TourStep.web.js.map +1 -1
  561. package/build/lib/web/production/components/StepGroup/StepGroup.web.js +6 -6
  562. package/build/lib/web/production/components/StepGroup/StepGroup.web.js.map +1 -1
  563. package/build/lib/web/production/components/StepGroup/StepItem.web.js +1 -1
  564. package/build/lib/web/production/components/StepGroup/StepItem.web.js.map +1 -1
  565. package/build/lib/web/production/components/StepGroup/StepLine.web.js +13 -13
  566. package/build/lib/web/production/components/StepGroup/StepLine.web.js.map +1 -1
  567. package/build/lib/web/production/components/Switch/Switch.js +1 -1
  568. package/build/lib/web/production/components/Switch/Switch.js.map +1 -1
  569. package/build/lib/web/production/components/Table/Table.web.js +10 -10
  570. package/build/lib/web/production/components/Table/Table.web.js.map +1 -1
  571. package/build/lib/web/production/components/Table/TableBody.web.js +6 -6
  572. package/build/lib/web/production/components/Table/TableBody.web.js.map +1 -1
  573. package/build/lib/web/production/components/Table/TableContext.js.map +1 -1
  574. package/build/lib/web/production/components/Table/TableHeader.web.js.map +1 -1
  575. package/build/lib/web/production/components/Table/TablePagination.web.js +2 -2
  576. package/build/lib/web/production/components/Table/TablePagination.web.js.map +1 -1
  577. package/build/lib/web/production/components/Table/TableToolbar.web.js.map +1 -1
  578. package/build/lib/web/production/components/Tabs/TabItem.web.js +2 -2
  579. package/build/lib/web/production/components/Tabs/TabItem.web.js.map +1 -1
  580. package/build/lib/web/production/components/Tabs/TabList.web.js +2 -2
  581. package/build/lib/web/production/components/Tabs/TabList.web.js.map +1 -1
  582. package/build/lib/web/production/components/Tabs/Tabs.web.js +1 -1
  583. package/build/lib/web/production/components/Tabs/Tabs.web.js.map +1 -1
  584. package/build/lib/web/production/components/Tabs/utils.js +2 -2
  585. package/build/lib/web/production/components/Tabs/utils.js.map +1 -1
  586. package/build/lib/web/production/components/Tag/AnimatedTag.web.js.map +1 -1
  587. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  588. package/build/lib/web/production/components/Toast/Toast.web.js +2 -2
  589. package/build/lib/web/production/components/Toast/Toast.web.js.map +1 -1
  590. package/build/lib/web/production/components/Toast/ToastContainer.web.js.map +1 -1
  591. package/build/lib/web/production/components/Tooltip/Tooltip.web.js +1 -1
  592. package/build/lib/web/production/components/Tooltip/Tooltip.web.js.map +1 -1
  593. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js +2 -2
  594. package/build/lib/web/production/components/TopNav/TabNav/TabNavItem.web.js.map +1 -1
  595. package/build/lib/web/production/components/TopNav/TabNav/utils.js +2 -2
  596. package/build/lib/web/production/components/TopNav/TabNav/utils.js.map +1 -1
  597. package/build/lib/web/production/components/Typography/Text/Text.js +1 -1
  598. package/build/lib/web/production/components/Typography/Text/Text.js.map +1 -1
  599. package/build/lib/web/production/tokens/theme/overrideTheme.js +2 -2
  600. package/build/lib/web/production/tokens/theme/overrideTheme.js.map +1 -1
  601. package/build/lib/web/production/utils/bladeCoverage.js +9 -10
  602. package/build/lib/web/production/utils/bladeCoverage.js.map +1 -1
  603. package/build/lib/web/production/utils/fireNativeEvent/fireNativeEvent.web.js +1 -1
  604. package/build/lib/web/production/utils/fireNativeEvent/fireNativeEvent.web.js.map +1 -1
  605. package/build/lib/web/production/utils/hasSameObjectStructure/hasSameObjectStructure.js +6 -6
  606. package/build/lib/web/production/utils/hasSameObjectStructure/hasSameObjectStructure.js.map +1 -1
  607. package/build/lib/web/production/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js +3 -3
  608. package/build/lib/web/production/utils/isPartialMatchObjectKeys/isPartialMatchObjectKeys.js.map +1 -1
  609. package/build/lib/web/production/utils/isValidAllowedChildren/isValidAllowedChildren.js +2 -2
  610. package/build/lib/web/production/utils/isValidAllowedChildren/isValidAllowedChildren.js.map +1 -1
  611. package/build/lib/web/production/utils/lodashButBetter/cloneDeep.js +3 -3
  612. package/build/lib/web/production/utils/lodashButBetter/get.js +3 -3
  613. package/build/lib/web/production/utils/useControllable.js +1 -1
  614. package/build/lib/web/production/utils/useControllable.js.map +1 -1
  615. package/build/lib/web/production/utils/useControlledDropdownInput/useControlledDropdownInput.js +2 -2
  616. package/build/lib/web/production/utils/useControlledDropdownInput/useControlledDropdownInput.js.map +1 -1
  617. package/build/lib/web/production/utils/useScrollLock.js.map +1 -1
  618. package/package.json +15 -10
@@ -157,11 +157,11 @@ var _BaseFilterChip = function _BaseFilterChip(_ref5, ref) {
157
157
  id: id,
158
158
  onClick: function onClick(e) {
159
159
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
160
- _onClick === null || _onClick === void 0 ? void 0 : _onClick(e);
160
+ _onClick === null || _onClick === void 0 || _onClick(e);
161
161
  },
162
162
  onKeyDown: function onKeyDown(e) {
163
163
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
164
- _onKeyDown === null || _onKeyDown === void 0 ? void 0 : _onKeyDown(e);
164
+ _onKeyDown === null || _onKeyDown === void 0 || _onKeyDown(e);
165
165
  }
166
166
  }, makeAccessible(_objectSpread(_objectSpread({}, accessibilityProps), {}, {
167
167
  role: (_accessibilityProps$r = accessibilityProps === null || accessibilityProps === void 0 ? void 0 : accessibilityProps.role) !== null && _accessibilityProps$r !== void 0 ? _accessibilityProps$r : 'button'
@@ -210,7 +210,7 @@ var _BaseFilterChip = function _BaseFilterChip(_ref5, ref) {
210
210
  }) : null]
211
211
  });
212
212
  };
213
- var BaseFilterChip = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_BaseFilterChip), {
213
+ var BaseFilterChip = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.forwardRef(_BaseFilterChip), {
214
214
  componentId: MetaConstants.BaseFilterChip
215
215
  });
216
216
 
@@ -1 +1 @@
1
- {"version":3,"file":"BaseFilterChip.web.js","sources":["../../../../../../src/components/FilterChip/BaseFilterChip.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { CSSObject } from 'styled-components';\nimport styled from 'styled-components';\nimport { FILTER_CHIP_HEIGHT } from './tokens';\nimport type { BaseFilterChipProps } from './types';\nimport { Box } from '~components/Box';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Counter } from '~components/Counter';\nimport { Divider } from '~components/Divider';\nimport { ChevronDownIcon, CloseIcon } from '~components/Icons';\nimport { Text } from '~components/Typography';\nimport { makeBorderSize, makeSpace } from '~utils';\nimport { getFocusRingStyles } from '~utils/getFocusRingStyles';\nimport type { Theme } from '~components/BladeProvider';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { BladeElementRef } from '~utils/types';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst getInteractiveFilterItemStyles = ({ theme }: { theme: Theme }): CSSObject => {\n return {\n display: 'flex',\n height: '100%',\n alignItems: 'center',\n border: 'none',\n cursor: 'pointer',\n color: 'currentcolor',\n '&:not([disabled]):hover': {\n backgroundColor: theme.colors.interactive.background.gray.faded,\n },\n '&[disabled]': {\n cursor: 'not-allowed',\n },\n '&:focus-visible': {\n ...getFocusRingStyles({ theme }),\n outlineOffset: makeSpace(theme.spacing[1]),\n },\n };\n};\n\nconst StyledFilterChip = styled(BaseBox)<{ $isSelected?: boolean; $isDisabled?: boolean }>(\n ({ theme, $isDisabled, $isSelected }) => {\n return {\n borderWidth: makeBorderSize(theme.border.width.thin),\n borderColor: theme.colors.interactive.border.gray[$isDisabled ? 'disabled' : 'highlighted'],\n height: FILTER_CHIP_HEIGHT,\n borderRadius: theme.border.radius.max,\n display: 'flex',\n borderStyle: $isSelected ? 'solid' : 'dashed',\n backgroundColor: theme.colors.surface.background.gray.intense,\n color: theme.colors.interactive.text.gray[$isDisabled ? 'disabled' : 'normal'],\n width: 'fit-content',\n };\n },\n);\n\nconst StyledFilterTrigger = styled.button<{ $isSelected?: boolean }>(({ theme, $isSelected }) => {\n const { spacing } = theme;\n return {\n backgroundColor: theme.colors.transparent,\n borderRadius: $isSelected ? theme.border.radius.none : theme.border.radius.max,\n borderTopLeftRadius: theme.border.radius.max,\n borderBottomLeftRadius: theme.border.radius.max,\n paddingLeft: makeSpace(spacing[4]),\n paddingRight: $isSelected ? makeSpace(spacing[2]) : makeSpace(spacing[3]),\n gap: makeSpace(spacing[2]),\n ...getInteractiveFilterItemStyles({ theme }),\n };\n});\n\nconst StyledFilterCloseButton = styled.button(({ theme }) => {\n return {\n backgroundColor: theme.colors.transparent,\n borderTopRightRadius: theme.border.radius.max,\n borderBottomRightRadius: theme.border.radius.max,\n paddingLeft: makeSpace(theme.spacing[2]),\n paddingRight: makeSpace(theme.spacing[3]),\n justifyContent: 'center',\n ...getInteractiveFilterItemStyles({ theme }),\n };\n});\n\nconst renderValue = (\n selectionType: BaseFilterChipProps['selectionType'],\n value: BaseFilterChipProps['value'],\n isDisabled?: boolean,\n): React.ReactElement => {\n if (selectionType === 'multiple' && Array.isArray(value)) {\n return (\n <Box display=\"flex\" alignItems=\"center\">\n <Counter value={value.length} color={isDisabled ? 'neutral' : 'primary'} size=\"small\" />\n </Box>\n );\n }\n\n return (\n <Text\n as=\"span\"\n size=\"small\"\n weight=\"semibold\"\n color={isDisabled ? 'interactive.text.gray.disabled' : 'interactive.text.primary.normal'}\n >\n {value}\n </Text>\n );\n};\n\nconst _BaseFilterChip: React.ForwardRefRenderFunction<BladeElementRef, BaseFilterChipProps> = (\n {\n value,\n onClearButtonClick,\n label,\n isDisabled,\n selectionType = 'single',\n onClick,\n onKeyDown,\n accessibilityProps,\n id,\n ...rest\n }: BaseFilterChipProps,\n ref: React.Ref<BladeElementRef>,\n): React.ReactElement => {\n const isSelected =\n selectionType === 'multiple' ? Array.isArray(value) && value.length > 0 : !!value;\n\n return (\n <StyledFilterChip\n $isDisabled={isDisabled}\n $isSelected={isSelected}\n ref={ref as React.Ref<HTMLDivElement>}\n >\n <StyledFilterTrigger\n $isSelected={isSelected}\n disabled={isDisabled}\n id={id}\n onClick={(e) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onClick?.(e as any);\n }}\n onKeyDown={(e) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onKeyDown?.(e as any);\n }}\n {...makeAccessible({\n ...accessibilityProps,\n role: accessibilityProps?.role ?? 'button',\n })}\n {...getStyledProps(rest)}\n {...makeAnalyticsAttribute(rest)}\n {...metaAttribute({ testID: rest.testID })}\n >\n <Box display=\"flex\" gap=\"spacing.2\" whiteSpace=\"nowrap\">\n <Text size=\"small\" weight=\"medium\" color=\"currentColor\" truncateAfterLines={1}>\n {label}\n {isSelected ? ':' : null}\n </Text>\n {isSelected ? renderValue(selectionType, value, isDisabled) : null}\n </Box>\n <Box display=\"flex\" alignItems=\"center\" paddingRight=\"spacing.1\">\n <ChevronDownIcon size=\"small\" color=\"currentColor\" />\n </Box>\n </StyledFilterTrigger>\n {isSelected ? (\n <>\n <Divider orientation=\"vertical\" variant={isDisabled ? 'muted' : 'subtle'} />\n <StyledFilterCloseButton\n aria-label={`Clear ${label} value`}\n // value can never be undefined because when it's undefined the button itself doesn't render/\n onClick={() => onClearButtonClick?.({ value: value ?? '' })}\n disabled={isDisabled}\n >\n <CloseIcon size=\"small\" color=\"currentColor\" />\n </StyledFilterCloseButton>\n </>\n ) : null}\n </StyledFilterChip>\n );\n};\n\nconst BaseFilterChip = assignWithoutSideEffects(React.forwardRef(_BaseFilterChip), {\n componentId: MetaConstants.BaseFilterChip,\n});\n\nexport { BaseFilterChip };\n"],"names":["getInteractiveFilterItemStyles","_ref","theme","display","height","alignItems","border","cursor","color","backgroundColor","colors","interactive","background","gray","faded","_objectSpread","getFocusRingStyles","outlineOffset","makeSpace","spacing","StyledFilterChip","styled","BaseBox","withConfig","displayName","componentId","_ref2","$isDisabled","$isSelected","borderWidth","makeBorderSize","width","thin","borderColor","FILTER_CHIP_HEIGHT","borderRadius","radius","max","borderStyle","surface","intense","text","StyledFilterTrigger","button","_ref3","transparent","none","borderTopLeftRadius","borderBottomLeftRadius","paddingLeft","paddingRight","gap","StyledFilterCloseButton","_ref4","borderTopRightRadius","borderBottomRightRadius","justifyContent","renderValue","selectionType","value","isDisabled","Array","isArray","_jsx","Box","children","Counter","length","size","Text","as","weight","_BaseFilterChip","_ref5","ref","_accessibilityProps$r","onClearButtonClick","label","_ref5$selectionType","onClick","onKeyDown","accessibilityProps","id","rest","_objectWithoutProperties","_excluded","isSelected","_jsxs","disabled","e","makeAccessible","role","getStyledProps","makeAnalyticsAttribute","metaAttribute","testID","whiteSpace","truncateAfterLines","ChevronDownIcon","_Fragment","Divider","orientation","variant","concat","CloseIcon","BaseFilterChip","assignWithoutSideEffects","React","forwardRef","MetaConstants"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAMA,8BAA8B,GAAG,SAAjCA,8BAA8BA,CAAAC,IAAA,EAA+C;AAAA,EAAA,IAAzCC,KAAK,GAAAD,IAAA,CAALC,KAAK,CAAA;EAC7C,OAAO;AACLC,IAAAA,OAAO,EAAE,MAAM;AACfC,IAAAA,MAAM,EAAE,MAAM;AACdC,IAAAA,UAAU,EAAE,QAAQ;AACpBC,IAAAA,MAAM,EAAE,MAAM;AACdC,IAAAA,MAAM,EAAE,SAAS;AACjBC,IAAAA,KAAK,EAAE,cAAc;AACrB,IAAA,yBAAyB,EAAE;MACzBC,eAAe,EAAEP,KAAK,CAACQ,MAAM,CAACC,WAAW,CAACC,UAAU,CAACC,IAAI,CAACC,KAAAA;KAC3D;AACD,IAAA,aAAa,EAAE;AACbP,MAAAA,MAAM,EAAE,aAAA;KACT;AACD,IAAA,iBAAiB,EAAAQ,aAAA,CAAAA,aAAA,CAAA,EAAA,EACZC,kBAAkB,CAAC;AAAEd,MAAAA,KAAK,EAALA,KAAAA;AAAM,KAAC,CAAC,CAAA,EAAA,EAAA,EAAA;MAChCe,aAAa,EAAEC,SAAS,CAAChB,KAAK,CAACiB,OAAO,C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EAAA;AAACpC,UAAAA,IAAI,EAAC,OAAO;AAAC5D,UAAAA,KAAK,EAAC,cAAA;SAAgB,CAAA;AAAC,OACxB,CAAC,CAAA;KAC1B,CAAC,GACD,IAAI,CAAA;AAAA,GACQ,CAAC,CAAA;AAEvB,CAAC,CAAA;AAEKiG,IAAAA,cAAc,gBAAGC,wBAAwB,eAACC,cAAK,CAACC,UAAU,CAACpC,eAAe,CAAC,EAAE;EACjF/C,WAAW,EAAEoF,aAAa,CAACJ,cAAAA;AAC7B,CAAC;;;;"}
1
+ {"version":3,"file":"BaseFilterChip.web.js","sources":["../../../../../../src/components/FilterChip/BaseFilterChip.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { CSSObject } from 'styled-components';\nimport styled from 'styled-components';\nimport { FILTER_CHIP_HEIGHT } from './tokens';\nimport type { BaseFilterChipProps } from './types';\nimport { Box } from '~components/Box';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Counter } from '~components/Counter';\nimport { Divider } from '~components/Divider';\nimport { ChevronDownIcon, CloseIcon } from '~components/Icons';\nimport { Text } from '~components/Typography';\nimport { makeBorderSize, makeSpace } from '~utils';\nimport { getFocusRingStyles } from '~utils/getFocusRingStyles';\nimport type { Theme } from '~components/BladeProvider';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport type { BladeElementRef } from '~utils/types';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst getInteractiveFilterItemStyles = ({ theme }: { theme: Theme }): CSSObject => {\n return {\n display: 'flex',\n height: '100%',\n alignItems: 'center',\n border: 'none',\n cursor: 'pointer',\n color: 'currentcolor',\n '&:not([disabled]):hover': {\n backgroundColor: theme.colors.interactive.background.gray.faded,\n },\n '&[disabled]': {\n cursor: 'not-allowed',\n },\n '&:focus-visible': {\n ...getFocusRingStyles({ theme }),\n outlineOffset: makeSpace(theme.spacing[1]),\n },\n };\n};\n\nconst StyledFilterChip = styled(BaseBox)<{ $isSelected?: boolean; $isDisabled?: boolean }>(\n ({ theme, $isDisabled, $isSelected }) => {\n return {\n borderWidth: makeBorderSize(theme.border.width.thin),\n borderColor: theme.colors.interactive.border.gray[$isDisabled ? 'disabled' : 'highlighted'],\n height: FILTER_CHIP_HEIGHT,\n borderRadius: theme.border.radius.max,\n display: 'flex',\n borderStyle: $isSelected ? 'solid' : 'dashed',\n backgroundColor: theme.colors.surface.background.gray.intense,\n color: theme.colors.interactive.text.gray[$isDisabled ? 'disabled' : 'normal'],\n width: 'fit-content',\n };\n },\n);\n\nconst StyledFilterTrigger = styled.button<{ $isSelected?: boolean }>(({ theme, $isSelected }) => {\n const { spacing } = theme;\n return {\n backgroundColor: theme.colors.transparent,\n borderRadius: $isSelected ? theme.border.radius.none : theme.border.radius.max,\n borderTopLeftRadius: theme.border.radius.max,\n borderBottomLeftRadius: theme.border.radius.max,\n paddingLeft: makeSpace(spacing[4]),\n paddingRight: $isSelected ? makeSpace(spacing[2]) : makeSpace(spacing[3]),\n gap: makeSpace(spacing[2]),\n ...getInteractiveFilterItemStyles({ theme }),\n };\n});\n\nconst StyledFilterCloseButton = styled.button(({ theme }) => {\n return {\n backgroundColor: theme.colors.transparent,\n borderTopRightRadius: theme.border.radius.max,\n borderBottomRightRadius: theme.border.radius.max,\n paddingLeft: makeSpace(theme.spacing[2]),\n paddingRight: makeSpace(theme.spacing[3]),\n justifyContent: 'center',\n ...getInteractiveFilterItemStyles({ theme }),\n };\n});\n\nconst renderValue = (\n selectionType: BaseFilterChipProps['selectionType'],\n value: BaseFilterChipProps['value'],\n isDisabled?: boolean,\n): React.ReactElement => {\n if (selectionType === 'multiple' && Array.isArray(value)) {\n return (\n <Box display=\"flex\" alignItems=\"center\">\n <Counter value={value.length} color={isDisabled ? 'neutral' : 'primary'} size=\"small\" />\n </Box>\n );\n }\n\n return (\n <Text\n as=\"span\"\n size=\"small\"\n weight=\"semibold\"\n color={isDisabled ? 'interactive.text.gray.disabled' : 'interactive.text.primary.normal'}\n >\n {value}\n </Text>\n );\n};\n\nconst _BaseFilterChip: React.ForwardRefRenderFunction<BladeElementRef, BaseFilterChipProps> = (\n {\n value,\n onClearButtonClick,\n label,\n isDisabled,\n selectionType = 'single',\n onClick,\n onKeyDown,\n accessibilityProps,\n id,\n ...rest\n }: BaseFilterChipProps,\n ref: React.Ref<BladeElementRef>,\n): React.ReactElement => {\n const isSelected =\n selectionType === 'multiple' ? Array.isArray(value) && value.length > 0 : !!value;\n\n return (\n <StyledFilterChip\n $isDisabled={isDisabled}\n $isSelected={isSelected}\n ref={ref as React.Ref<HTMLDivElement>}\n >\n <StyledFilterTrigger\n $isSelected={isSelected}\n disabled={isDisabled}\n id={id}\n onClick={(e) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onClick?.(e as any);\n }}\n onKeyDown={(e) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onKeyDown?.(e as any);\n }}\n {...makeAccessible({\n ...accessibilityProps,\n role: accessibilityProps?.role ?? 'button',\n })}\n {...getStyledProps(rest)}\n {...makeAnalyticsAttribute(rest)}\n {...metaAttribute({ testID: rest.testID })}\n >\n <Box display=\"flex\" gap=\"spacing.2\" whiteSpace=\"nowrap\">\n <Text size=\"small\" weight=\"medium\" color=\"currentColor\" truncateAfterLines={1}>\n {label}\n {isSelected ? ':' : null}\n </Text>\n {isSelected ? renderValue(selectionType, value, isDisabled) : null}\n </Box>\n <Box display=\"flex\" alignItems=\"center\" paddingRight=\"spacing.1\">\n <ChevronDownIcon size=\"small\" color=\"currentColor\" />\n </Box>\n </StyledFilterTrigger>\n {isSelected ? (\n <>\n <Divider orientation=\"vertical\" variant={isDisabled ? 'muted' : 'subtle'} />\n <StyledFilterCloseButton\n aria-label={`Clear ${label} value`}\n // value can never be undefined because when it's undefined the button itself doesn't render/\n onClick={() => onClearButtonClick?.({ value: value ?? '' })}\n disabled={isDisabled}\n >\n <CloseIcon size=\"small\" color=\"currentColor\" />\n </StyledFilterCloseButton>\n </>\n ) : null}\n </StyledFilterChip>\n );\n};\n\nconst BaseFilterChip = assignWithoutSideEffects(React.forwardRef(_BaseFilterChip), {\n componentId: MetaConstants.BaseFilterChip,\n});\n\nexport { BaseFilterChip };\n"],"names":["getInteractiveFilterItemStyles","_ref","theme","display","height","alignItems","border","cursor","color","backgroundColor","colors","interactive","background","gray","faded","_objectSpread","getFocusRingStyles","outlineOffset","makeSpace","spacing","StyledFilterChip","styled","BaseBox","withConfig","displayName","componentId","_ref2","$isDisabled","$isSelected","borderWidth","makeBorderSize","width","thin","borderColor","FILTER_CHIP_HEIGHT","borderRadius","radius","max","borderStyle","surface","intense","text","StyledFilterTrigger","button","_ref3","transparent","none","borderTopLeftRadius","borderBottomLeftRadius","paddingLeft","paddingRight","gap","StyledFilterCloseButton","_ref4","borderTopRightRadius","borderBottomRightRadius","justifyContent","renderValue","selectionType","value","isDisabled","Array","isArray","_jsx","Box","children","Counter","length","size","Text","as","weight","_BaseFilterChip","_ref5","ref","_accessibilityProps$r","onClearButtonClick","label","_ref5$selectionType","onClick","onKeyDown","accessibilityProps","id","rest","_objectWithoutProperties","_excluded","isSelected","_jsxs","disabled","e","makeAccessible","role","getStyledProps","makeAnalyticsAttribute","metaAttribute","testID","whiteSpace","truncateAfterLines","ChevronDownIcon","_Fragment","Divider","orientation","variant","concat","CloseIcon","BaseFilterChip","assignWithoutSideEffects","React","forwardRef","MetaConstants"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAMA,8BAA8B,GAAG,SAAjCA,8BAA8BA,CAAAC,IAAA,EAA+C;AAAA,EAAA,IAAzCC,KAAK,GAAAD,IAAA,CAALC,KAAK,CAAA;EAC7C,OAAO;AACLC,IAAAA,OAAO,EAAE,MAAM;AACfC,IAAAA,MAAM,EAAE,MAAM;AACdC,IAAAA,UAAU,EAAE,QAA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AA;QACtB,YAAAmD,EAAAA,QAAAA,CAAAA,MAAA,CAAqB1B,KAAK,EAAA,QAAA,CAAA;AAC1B;AAAA;QACAE,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,UAAA,OAAQH,kBAAkB,KAAA,IAAA,IAAlBA,kBAAkB,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAlBA,kBAAkB,CAAG;AAAEjB,YAAAA,KAAK,EAAEA,KAAK,KAAA,IAAA,IAALA,KAAK,KAAA,KAAA,CAAA,GAALA,KAAK,GAAI,EAAA;AAAG,WAAC,CAAC,CAAA;SAAC;AAC5D6B,QAAAA,QAAQ,EAAE5B,UAAW;QAAAK,QAAA,eAErBF,GAAA,CAACyC,SAAS,EAAA;AAACpC,UAAAA,IAAI,EAAC,OAAO;AAAC5D,UAAAA,KAAK,EAAC,cAAA;SAAgB,CAAA;AAAC,OACxB,CAAC,CAAA;KAC1B,CAAC,GACD,IAAI,CAAA;AAAA,GACQ,CAAC,CAAA;AAEvB,CAAC,CAAA;AAEKiG,IAAAA,cAAc,gBAAGC,wBAAwB,cAACC,cAAK,CAACC,UAAU,CAACpC,eAAe,CAAC,EAAE;EACjF/C,WAAW,EAAEoF,aAAa,CAACJ,cAAAA;AAC7B,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormHint.js","sources":["../../../../../../src/components/Form/FormHint.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport type { ReactElement } from 'react';\nimport React from 'react';\nimport { FormHintWrapper } from './FormHintWrapper';\nimport { hintIconSize, hintMarginTop, hintTextSize } from './formTokens';\nimport type { TextProps } from '~components/Typography/Text';\nimport { Text } from '~components/Typography/Text';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport { CheckIcon, InfoIcon } from '~components/Icons';\nimport { getPlatformType } from '~utils/getPlatformType';\nimport { Box } from '~components/Box';\n\ntype HintTextProps = {\n icon?: IconComponent;\n children: string;\n id?: string;\n color: TextProps<{ variant: 'caption' }>['color'];\n size: 'small' | 'medium' | 'large';\n};\n\nconst HintText = ({ icon: Icon, children, id, color, size }: HintTextProps): ReactElement => {\n const isReactNative = getPlatformType() === 'react-native';\n\n return (\n <BaseBox marginTop={hintMarginTop[size]} id={id}>\n <FormHintWrapper>\n {Icon ? (\n // offset block element 2px down to align with text\n <Box flexShrink={0} marginTop=\"spacing.1\">\n <Icon />\n </Box>\n ) : null}\n <Text\n as={isReactNative ? undefined : 'span'}\n color={color}\n size={hintTextSize[size]}\n variant=\"caption\"\n wordBreak=\"break-word\"\n >\n {children}\n </Text>\n </FormHintWrapper>\n </BaseBox>\n );\n};\n\nexport type FormHintProps = {\n type: 'help' | 'error' | 'success';\n /**\n * Help text for the group\n */\n helpText?: string;\n /**\n * Error text for the group\n *\n * Renders when `state` is set to 'error'\n */\n errorText?: string;\n /**\n * Success text for the group\n *\n * Renders when `state` is set to 'success'\n */\n successText?: string;\n /**\n * Sets the id on errorText.\n * Needed for accessibility reasons.\n */\n errorTextId?: string;\n /**\n * Sets the id on helpText.\n * Needed for accessibility reasons.\n */\n helpTextId?: string;\n /**\n * Sets the id on successText.\n * Needed for accessibility reasons.\n */\n successTextId?: string;\n /**\n * Sets the size of the hint\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n};\n\nconst Icons = {\n error: ({ size }: { size: 'small' | 'medium' | 'large' }): ReactElement => (\n <InfoIcon\n display={'block' as never}\n color=\"feedback.icon.negative.intense\"\n size={hintIconSize[size]}\n />\n ),\n success: ({ size }: { size: 'small' | 'medium' | 'large' }): ReactElement => (\n <CheckIcon\n display={'block' as never}\n color=\"feedback.icon.positive.intense\"\n size={hintIconSize[size]}\n />\n ),\n};\n\nconst FormHint = ({\n type,\n helpText,\n errorText,\n successText,\n helpTextId,\n errorTextId,\n successTextId,\n size = 'medium',\n}: FormHintProps): React.ReactElement => {\n const colors: Record<string, TextProps<{ variant: 'caption' }>['color']> = {\n help: 'surface.text.gray.muted',\n error: 'feedback.text.negative.intense',\n success: 'feedback.text.positive.intense',\n };\n\n const showError = type === 'error' && errorText;\n const showSuccess = type === 'success' && successText;\n const showHelp = !showError && !showSuccess && helpText;\n\n return (\n <>\n {showHelp && (\n <HintText size={size} id={helpTextId} color={colors.help}>\n {helpText}\n </HintText>\n )}\n\n {showError && (\n <HintText\n size={size}\n id={errorTextId}\n icon={() => Icons.error({ size })}\n color={colors.error}\n >\n {errorText}\n </HintText>\n )}\n\n {showSuccess && (\n <HintText\n size={size}\n id={successTextId}\n icon={() => Icons.success({ size })}\n color={colors.success}\n >\n {successText}\n </HintText>\n )}\n </>\n );\n};\n\nexport { FormHint };\n"],"names":["HintText","_ref","Icon","icon","children","id","color","size","isReactNative","getPlatformType","_jsx","BaseBox","marginTop","hintMarginTop","_jsxs","FormHintWrapper","Box","flexShrink","Text","as","undefined","hintTextSize","variant","wordBreak","Icons","error","_ref2","InfoIcon","display","hintIconSize","success","_ref3","CheckIcon","FormHint","_ref4","type","helpText","errorText","successText","helpTextId","errorTextId","successTextId","_ref4$size","colors","help","showError","showSuccess","showHelp","_Fragment"],"mappings":";;;;;;;;;;;;;;;;AAAA;;AAqBA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAA+E;AAAA,EAAA,IAAnEC,IAAI,GAAAD,IAAA,CAAVE,IAAI;IAAQC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,EAAE,GAAAJ,IAAA,CAAFI,EAAE;IAAEC,KAAK,GAAAL,IAAA,CAALK,KAAK;IAAEC,IAAI,GAAAN,IAAA,CAAJM,IAAI,CAAA;AACvD,EAAA,IAAMC,aAAa,GAAGC,eAAe,EAAE,KAAK,cAAc,CAAA;EAE1D,oBACEC,GAAA,CAACC,OAAO,EAAA;AAACC,IAAAA,SAAS,EAAEC,aAAa,CAACN,IAAI,CAAE;AAACF,IAAAA,EAAE,EAAEA,EAAG;IAAAD,QAAA,eAC9CU,IAAA,CAACC,eAAe,EAAA;AAAAX,MA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ChBrC,IAAI,EAAE,SAAAA,IAAA,GAAA;QAAA,OAAMqB,KAAK,CAACC,KAAK,CAAC;AAAElB,UAAAA,IAAI,EAAJA,IAAAA;AAAK,SAAC,CAAC,CAAA;OAAC;MAClCD,KAAK,EAAEqC,MAAM,CAAClB,KAAM;AAAArB,MAAAA,QAAA,EAEnBiC,SAAAA;AAAS,KACF,CACX,EAEAS,WAAW,iBACVpC,GAAA,CAACV,QAAQ,EAAA;AACPO,MAAAA,IAAI,EAAEA,IAAK;AACXF,MAAAA,EAAE,EAAEoC,aAAc;MAClBtC,IAAI,EAAE,SAAAA,IAAA,GAAA;QAAA,OAAMqB,KAAK,CAACM,OAAO,CAAC;AAAEvB,UAAAA,IAAI,EAAJA,IAAAA;AAAK,SAAC,CAAC,CAAA;OAAC;MACpCD,KAAK,EAAEqC,MAAM,CAACb,OAAQ;AAAA1B,MAAAA,QAAA,EAErBkC,WAAAA;AAAW,KACJ,CACX,CAAA;AAAA,GACD,CAAC,CAAA;AAEP;;;;"}
1
+ {"version":3,"file":"FormHint.js","sources":["../../../../../../src/components/Form/FormHint.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport type { ReactElement } from 'react';\nimport React from 'react';\nimport { FormHintWrapper } from './FormHintWrapper';\nimport { hintIconSize, hintMarginTop, hintTextSize } from './formTokens';\nimport type { TextProps } from '~components/Typography/Text';\nimport { Text } from '~components/Typography/Text';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport { CheckIcon, InfoIcon } from '~components/Icons';\nimport { getPlatformType } from '~utils/getPlatformType';\nimport { Box } from '~components/Box';\n\ntype HintTextProps = {\n icon?: IconComponent;\n children: string;\n id?: string;\n color: TextProps<{ variant: 'caption' }>['color'];\n size: 'small' | 'medium' | 'large';\n};\n\nconst HintText = ({ icon: Icon, children, id, color, size }: HintTextProps): ReactElement => {\n const isReactNative = getPlatformType() === 'react-native';\n\n return (\n <BaseBox marginTop={hintMarginTop[size]} id={id}>\n <FormHintWrapper>\n {Icon ? (\n // offset block element 2px down to align with text\n <Box flexShrink={0} marginTop=\"spacing.1\">\n <Icon />\n </Box>\n ) : null}\n <Text\n as={isReactNative ? undefined : 'span'}\n color={color}\n size={hintTextSize[size]}\n variant=\"caption\"\n wordBreak=\"break-word\"\n >\n {children}\n </Text>\n </FormHintWrapper>\n </BaseBox>\n );\n};\n\nexport type FormHintProps = {\n type: 'help' | 'error' | 'success';\n /**\n * Help text for the group\n */\n helpText?: string;\n /**\n * Error text for the group\n *\n * Renders when `state` is set to 'error'\n */\n errorText?: string;\n /**\n * Success text for the group\n *\n * Renders when `state` is set to 'success'\n */\n successText?: string;\n /**\n * Sets the id on errorText.\n * Needed for accessibility reasons.\n */\n errorTextId?: string;\n /**\n * Sets the id on helpText.\n * Needed for accessibility reasons.\n */\n helpTextId?: string;\n /**\n * Sets the id on successText.\n * Needed for accessibility reasons.\n */\n successTextId?: string;\n /**\n * Sets the size of the hint\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n};\n\nconst Icons = {\n error: ({ size }: { size: 'small' | 'medium' | 'large' }): ReactElement => (\n <InfoIcon\n display={'block' as never}\n color=\"feedback.icon.negative.intense\"\n size={hintIconSize[size]}\n />\n ),\n success: ({ size }: { size: 'small' | 'medium' | 'large' }): ReactElement => (\n <CheckIcon\n display={'block' as never}\n color=\"feedback.icon.positive.intense\"\n size={hintIconSize[size]}\n />\n ),\n};\n\nconst FormHint = ({\n type,\n helpText,\n errorText,\n successText,\n helpTextId,\n errorTextId,\n successTextId,\n size = 'medium',\n}: FormHintProps): React.ReactElement => {\n const colors: Record<string, TextProps<{ variant: 'caption' }>['color']> = {\n help: 'surface.text.gray.muted',\n error: 'feedback.text.negative.intense',\n success: 'feedback.text.positive.intense',\n };\n\n const showError = type === 'error' && errorText;\n const showSuccess = type === 'success' && successText;\n const showHelp = !showError && !showSuccess && helpText;\n\n return (\n <>\n {showHelp && (\n <HintText size={size} id={helpTextId} color={colors.help}>\n {helpText}\n </HintText>\n )}\n\n {showError && (\n <HintText\n size={size}\n id={errorTextId}\n icon={() => Icons.error({ size })}\n color={colors.error}\n >\n {errorText}\n </HintText>\n )}\n\n {showSuccess && (\n <HintText\n size={size}\n id={successTextId}\n icon={() => Icons.success({ size })}\n color={colors.success}\n >\n {successText}\n </HintText>\n )}\n </>\n );\n};\n\nexport { FormHint };\n"],"names":["HintText","_ref","Icon","icon","children","id","color","size","isReactNative","getPlatformType","_jsx","BaseBox","marginTop","hintMarginTop","_jsxs","FormHintWrapper","Box","flexShrink","Text","as","undefined","hintTextSize","variant","wordBreak","Icons","error","_ref2","InfoIcon","display","hintIconSize","success","_ref3","CheckIcon","FormHint","_ref4","type","helpText","errorText","successText","helpTextId","errorTextId","successTextId","_ref4$size","colors","help","showError","showSuccess","showHelp","_Fragment"],"mappings":";;;;;;;;;;;;;;;;AAAA;;AAqBA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAA+E;AAAA,EAAA,IAAnEC,IAAI,GAAAD,IAAA,CAAVE,IAAI;IAAQC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,EAAE,GAAAJ,IAAA,CAAFI,EAAE;IAAEC,KAAK,GAAAL,IAAA,CAALK,KAAK;IAAEC,IAAI,GAAAN,IAAA,CAAJM,IAAI,CAAA;AACvD,EAAA,IAAMC,aAAa,GAAGC,eAAe,EAAE,KAAK,cAAc,CAAA;EAE1D,oBACEC,GAAA,CAACC,OAAO,EAAA;AAACC,IAAAA,SAAS,EAAEC,aAAa,CAACN,IAAI,CAAE;AAACF,IAAAA,EAAE,EAAEA,EAAG;IAAAD,QAAA,eAC9CU,IAAA,CAACC,eAAe,EAAA;AAAAX,MAAAA,QAAA,GACbF,IAAI;AAAA;AACH;AACAQ,MAAAA,GAAA,CAACM,GAAG,EAAA;AAACC,QAAAA,UAAU,EAAE,CAAE;AAACL,QAAAA,SAAS,EAAC,WAAW;AAAAR,QAAAA,QAAA,eACvCM,GAAA,CAACR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C,MAAM,CAAClB,KAAM;AAAArB,MAAAA,QAAA,EAEnBiC,SAAAA;AAAS,KACF,CACX,EAEAS,WAAW,iBACVpC,GAAA,CAACV,QAAQ,EAAA;AACPO,MAAAA,IAAI,EAAEA,IAAK;AACXF,MAAAA,EAAE,EAAEoC,aAAc;MAClBtC,IAAI,EAAE,SAANA,IAAIA,GAAA;QAAA,OAAQqB,KAAK,CAACM,OAAO,CAAC;AAAEvB,UAAAA,IAAI,EAAJA,IAAAA;AAAK,SAAC,CAAC,CAAA;OAAC;MACpCD,KAAK,EAAEqC,MAAM,CAACb,OAAQ;AAAA1B,MAAAA,QAAA,EAErBkC,WAAAA;AAAW,KACJ,CACX,CAAA;AAAA,GACD,CAAC,CAAA;AAEP;;;;"}
@@ -95,7 +95,7 @@ var _SelectorInput = function _SelectorInput(_ref3, ref) {
95
95
  ref: mergedRef
96
96
  }));
97
97
  };
98
- var SelectorInput = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_SelectorInput), {
98
+ var SelectorInput = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.forwardRef(_SelectorInput), {
99
99
  displayName: 'SelectorInput'
100
100
  });
101
101
 
@@ -1 +1 @@
1
- {"version":3,"file":"SelectorInput.web.js","sources":["../../../../../../../src/components/Form/Selector/SelectorInput.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport type { CSSObject } from 'styled-components';\nimport React from 'react';\nimport styled from 'styled-components';\nimport type { HoverProps, SelectorInputProps } from './types';\nimport getIn from '~utils/lodashButBetter/get';\nimport type { Theme } from '~components/BladeProvider';\nimport { castWebType } from '~utils';\nimport { screenReaderStyles, legacyScreenReaderStyles } from '~components/VisuallyHidden';\nimport type { BladeElementRef } from '~utils/types';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { useMergeRefs } from '~utils/useMergeRefs';\nimport { getFocusRingStyles } from '~utils/getFocusRingStyles';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\nimport { useBottomSheetContext } from '~components/BottomSheet/BottomSheetContext';\n\nconst getHoverStyles = ({\n theme,\n isDisabled,\n hasError,\n isChecked,\n hoverTokens,\n}: { theme: Theme } & HoverProps): CSSObject => {\n if (isDisabled || hasError) return {};\n\n const checked = isChecked ? 'checked' : 'unchecked';\n const backgroundColor = hoverTokens.default.background[checked];\n const borderColor = hoverTokens.default.border?.[checked];\n\n return {\n borderColor: borderColor ? getIn(theme, borderColor) : undefined,\n backgroundColor: getIn(theme, backgroundColor),\n transitionTimingFunction: theme.motion.easing.standard as string,\n transitionDuration: castWebType(makeMotionTime(theme.motion.duration['2xquick'])),\n };\n};\n\nconst StyledInput = styled.input<\n HoverProps & {\n shouldUseLegacyScreenReaderStyles?: boolean;\n }\n>(({ theme, isChecked, isDisabled, hasError, hoverTokens, shouldUseLegacyScreenReaderStyles }) => ({\n ...(shouldUseLegacyScreenReaderStyles ? legacyScreenReaderStyles : screenReaderStyles),\n '&:focus-visible + div': {\n ...getFocusRingStyles({ theme }),\n },\n '&:hover + div': {\n ...getHoverStyles({ theme, isChecked, isDisabled, hasError, hoverTokens }),\n },\n}));\n\nconst _SelectorInput: React.ForwardRefRenderFunction<BladeElementRef, SelectorInputProps> = (\n {\n id,\n inputProps,\n isChecked,\n isDisabled,\n hasError,\n hoverTokens,\n tabIndex,\n accessibilityLabel,\n ...rest\n },\n ref,\n) => {\n // merging both refs because inputProps.ref needs to have access to indeterminate state\n // to be able to set the mixed value via setMixed() function\n // TODO: replace with a generic `mergeRefs()` util if we do this in other places\n const mergedRef = useMergeRefs(ref, inputProps.ref);\n const { isInBottomSheet } = useBottomSheetContext();\n\n return (\n <StyledInput\n id={id}\n isChecked={isChecked}\n isDisabled={isDisabled}\n hasError={hasError}\n tabIndex={tabIndex}\n hoverTokens={hoverTokens}\n shouldUseLegacyScreenReaderStyles={isInBottomSheet}\n {...inputProps}\n {...makeAccessible({ label: accessibilityLabel })}\n {...makeAnalyticsAttribute(rest)}\n ref={mergedRef}\n />\n );\n};\n\nconst SelectorInput = assignWithoutSideEffects(React.forwardRef(_SelectorInput), {\n displayName: 'SelectorInput',\n});\n\nexport { SelectorInput };\n"],"names":["getHoverStyles","_ref","_hoverTokens$default$","theme","isDisabled","hasError","isChecked","hoverTokens","checked","backgroundColor","background","borderColor","border","getIn","undefined","transitionTimingFunction","motion","easing","standard","transitionDuration","castWebType","makeMotionTime","duration","StyledInput","styled","input","withConfig","displayName","componentId","_ref2","shouldUseLegacyScreenReaderStyles","_objectSpread","legacyScreenReaderStyles","screenReaderStyles","getFocusRingStyles","_SelectorInput","_ref3","ref","id","inputProps","tabIndex","accessibilityLabel","rest","_objectWithoutProperties","_excluded","mergedRef","useMergeRefs","_useBottomSheetContex","useBottomSheetContext","isInBottomSheet","_jsx","makeAccessible","label","makeAnalyticsAttribute","SelectorInput","assignWithoutSideEffects","React","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAM4B;AAAA,EAAA,IAAAC,qBAAA,CAAA;AAAA,EAAA,IAL9CC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,SAAS,GAAAL,IAAA,CAATK,SAAS;IACTC,WAAW,GAAAN,IAAA,CAAXM,WAAW,CAAA;AAEX,EAAA,IAAIH,UAAU,IAAIC,QAAQ,EAAE,OAAO,EAAE,CAAA;AAErC,EAAA,IAAMG,OAAO,GAAGF,SAAS,GAAG,SAAS,GAAG,WAAW,CAAA;EACnD,IAAMG,eAAe,GAAGF,WAAW,CAAA,SAAA,CAAQ,CAACG,UAAU,CAACF,OAAO,CAAC,CAAA;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QAAQ,EAAEA,QAAS;AACnBmC,IAAAA,QAAQ,EAAEA,QAAS;AACnBjC,IAAAA,WAAW,EAAEA,WAAY;AACzBuB,IAAAA,iCAAiC,EAAEmB,eAAAA;GAC/BV,EAAAA,UAAU,CACVY,EAAAA,cAAc,CAAC;AAAEC,IAAAA,KAAK,EAAEX,kBAAAA;AAAmB,GAAC,CAAC,CAAA,EAC7CY,sBAAsB,CAACX,IAAI,CAAC,CAAA,EAAA,EAAA,EAAA;AAChCL,IAAAA,GAAG,EAAEQ,SAAAA;AAAU,GAAA,CAChB,CAAC,CAAA;AAEN,CAAC,CAAA;AAEKS,IAAAA,aAAa,gBAAGC,wBAAwB,eAACC,cAAK,CAACC,UAAU,CAACtB,cAAc,CAAC,EAAE;AAC/ER,EAAAA,WAAW,EAAE,eAAA;AACf,CAAC;;;;"}
1
+ {"version":3,"file":"SelectorInput.web.js","sources":["../../../../../../../src/components/Form/Selector/SelectorInput.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport type { CSSObject } from 'styled-components';\nimport React from 'react';\nimport styled from 'styled-components';\nimport type { HoverProps, SelectorInputProps } from './types';\nimport getIn from '~utils/lodashButBetter/get';\nimport type { Theme } from '~components/BladeProvider';\nimport { castWebType } from '~utils';\nimport { screenReaderStyles, legacyScreenReaderStyles } from '~components/VisuallyHidden';\nimport type { BladeElementRef } from '~utils/types';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { useMergeRefs } from '~utils/useMergeRefs';\nimport { getFocusRingStyles } from '~utils/getFocusRingStyles';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\nimport { useBottomSheetContext } from '~components/BottomSheet/BottomSheetContext';\n\nconst getHoverStyles = ({\n theme,\n isDisabled,\n hasError,\n isChecked,\n hoverTokens,\n}: { theme: Theme } & HoverProps): CSSObject => {\n if (isDisabled || hasError) return {};\n\n const checked = isChecked ? 'checked' : 'unchecked';\n const backgroundColor = hoverTokens.default.background[checked];\n const borderColor = hoverTokens.default.border?.[checked];\n\n return {\n borderColor: borderColor ? getIn(theme, borderColor) : undefined,\n backgroundColor: getIn(theme, backgroundColor),\n transitionTimingFunction: theme.motion.easing.standard as string,\n transitionDuration: castWebType(makeMotionTime(theme.motion.duration['2xquick'])),\n };\n};\n\nconst StyledInput = styled.input<\n HoverProps & {\n shouldUseLegacyScreenReaderStyles?: boolean;\n }\n>(({ theme, isChecked, isDisabled, hasError, hoverTokens, shouldUseLegacyScreenReaderStyles }) => ({\n ...(shouldUseLegacyScreenReaderStyles ? legacyScreenReaderStyles : screenReaderStyles),\n '&:focus-visible + div': {\n ...getFocusRingStyles({ theme }),\n },\n '&:hover + div': {\n ...getHoverStyles({ theme, isChecked, isDisabled, hasError, hoverTokens }),\n },\n}));\n\nconst _SelectorInput: React.ForwardRefRenderFunction<BladeElementRef, SelectorInputProps> = (\n {\n id,\n inputProps,\n isChecked,\n isDisabled,\n hasError,\n hoverTokens,\n tabIndex,\n accessibilityLabel,\n ...rest\n },\n ref,\n) => {\n // merging both refs because inputProps.ref needs to have access to indeterminate state\n // to be able to set the mixed value via setMixed() function\n // TODO: replace with a generic `mergeRefs()` util if we do this in other places\n const mergedRef = useMergeRefs(ref, inputProps.ref);\n const { isInBottomSheet } = useBottomSheetContext();\n\n return (\n <StyledInput\n id={id}\n isChecked={isChecked}\n isDisabled={isDisabled}\n hasError={hasError}\n tabIndex={tabIndex}\n hoverTokens={hoverTokens}\n shouldUseLegacyScreenReaderStyles={isInBottomSheet}\n {...inputProps}\n {...makeAccessible({ label: accessibilityLabel })}\n {...makeAnalyticsAttribute(rest)}\n ref={mergedRef}\n />\n );\n};\n\nconst SelectorInput = assignWithoutSideEffects(React.forwardRef(_SelectorInput), {\n displayName: 'SelectorInput',\n});\n\nexport { SelectorInput };\n"],"names":["getHoverStyles","_ref","_hoverTokens$default$","theme","isDisabled","hasError","isChecked","hoverTokens","checked","backgroundColor","background","borderColor","border","getIn","undefined","transitionTimingFunction","motion","easing","standard","transitionDuration","castWebType","makeMotionTime","duration","StyledInput","styled","input","withConfig","displayName","componentId","_ref2","shouldUseLegacyScreenReaderStyles","_objectSpread","legacyScreenReaderStyles","screenReaderStyles","getFocusRingStyles","_SelectorInput","_ref3","ref","id","inputProps","tabIndex","accessibilityLabel","rest","_objectWithoutProperties","_excluded","mergedRef","useMergeRefs","_useBottomSheetContex","useBottomSheetContext","isInBottomSheet","_jsx","makeAccessible","label","makeAnalyticsAttribute","SelectorInput","assignWithoutSideEffects","React","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAM4B;AAAA,EAAA,IAAAC,qBAAA,CAAA;AAAA,EAAA,IAL9CC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,SAAS,GAAAL,IAAA,CAATK,SAAS;IACTC,WAAW,GAAAN,IAAA,CAAXM,WAAW,CAAA;AAEX,EAAA,IAAIH,UAAU,IAAIC,QAAQ,EAAE,OAAO,EAAE,CAAA;AAErC,EAAA,IAAMG,OAAO,GAAGF,SAAS,GAAG,SAAS,GAAG,WAAW,CAAA;EACnD,IAAMG,eAAe,GAAGF,WAAW,CAAA,SAAA,CAAQ,CAACG,UAAU,CAACF,OAAO,CAAC,CAAA;AAC/D,EAAA,IAAMG,WAAW,GAAA,CAAAT,qBAAA,GAAGK,WAAW,CAAQ,SAAA,CAAA,CAACK,MAAM,MAAA,IAAA,IAAAV,qBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAA1BA,qBAAA,CAA6BM,OAAO,CAAC,CAAA;EAEzD,OAAO;IACLG,WAAW,EAAEA,WAAW,GAAGE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AC7CY,sBAAsB,CAACX,IAAI,CAAC,CAAA,EAAA,EAAA,EAAA;AAChCL,IAAAA,GAAG,EAAEQ,SAAAA;AAAU,GAAA,CAChB,CAAC,CAAA;AAEN,CAAC,CAAA;AAEKS,IAAAA,aAAa,gBAAGC,wBAAwB,cAACC,cAAK,CAACC,UAAU,CAACtB,cAAc,CAAC,EAAE;AAC/ER,EAAAA,WAAW,EAAE,eAAA;AACf,CAAC;;;;"}
@@ -104,7 +104,7 @@ var _Indicator = function _Indicator(_ref, ref) {
104
104
  })
105
105
  }));
106
106
  };
107
- var Indicator = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_Indicator), {
107
+ var Indicator = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.forwardRef(_Indicator), {
108
108
  componentId: 'Indicator'
109
109
  });
110
110
 
@@ -1 +1 @@
1
- {"version":3,"file":"Indicator.js","sources":["../../../../../../src/components/Indicator/Indicator.tsx"],"sourcesContent":["import React from 'react';\nimport type { ReactElement, Ref } from 'react';\nimport { indicatorDotSizes, textSizeMapping } from './indicatorTokens';\nimport { useTheme } from '~components/BladeProvider';\nimport BaseBox from '~components/Box/BaseBox';\nimport Svg from '~components/Icons/_Svg';\nimport Circle from '~components/Icons/_Svg/Circle';\nimport { Text } from '~components/Typography';\nimport { getStringFromReactText } from '~src/utils/getStringChildren';\nimport type {\n DataAnalyticsAttribute,\n BladeElementRef,\n StringChildrenType,\n TestID,\n} from '~utils/types';\nimport type { FeedbackColors } from '~tokens/theme/theme';\nimport { isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\ntype IndicatorProps = {\n /**\n * Sets the color tone\n *\n * @default neutral\n */\n color?: FeedbackColors | 'primary';\n\n /**\n * Sets the emphasis of the indicator\n *\n * If set to intense it will show a background circle\n *\n * @default subtle\n */\n emphasis?: 'subtle' | 'intense';\n\n /**\n * Size of the indicator\n *\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n /**\n * A text label to show alongside the indicator dot\n */\n children?: StringChildrenType;\n /**\n * a11y label for screen readers\n */\n accessibilityLabel?: string;\n} & TestID &\n DataAnalyticsAttribute &\n StyledPropsBlade;\n\nconst _Indicator = (\n {\n accessibilityLabel,\n children,\n size = 'medium',\n color = 'neutral',\n emphasis = 'subtle',\n testID,\n ...rest\n }: IndicatorProps,\n ref: Ref<BladeElementRef>,\n): ReactElement => {\n const { theme } = useTheme();\n const childrenString = getStringFromReactText(children);\n const isIntense = emphasis === 'intense';\n const isPrimary = color === 'primary';\n\n const fillColorOuter = isPrimary\n ? theme.colors.surface.background.primary.subtle\n : theme.colors.feedback.background[color].subtle;\n const fillColorInner = isPrimary\n ? theme.colors.surface.icon.primary.normal\n : theme.colors.feedback.icon[color].intense;\n\n const isWeb = !isReactNative();\n const a11yProps = makeAccessible({\n label: accessibilityLabel ?? childrenString,\n ...(isWeb && { role: 'status' }),\n });\n\n const svgSize = isIntense\n ? indicatorDotSizes[emphasis][size].outer\n : indicatorDotSizes[emphasis][size].inner;\n\n return (\n <BaseBox\n ref={ref as never}\n display={(isWeb ? 'inline-flex' : 'flex') as never}\n {...a11yProps}\n {...metaAttribute({ name: MetaConstants.Indicator, testID })}\n {...getStyledProps(rest)}\n {...makeAnalyticsAttribute(rest)}\n >\n <BaseBox display=\"flex\" flexDirection=\"row\" alignItems=\"center\">\n <Svg width={String(svgSize)} height={String(svgSize)} viewBox=\"0 0 10 10\" fill=\"none\">\n {isIntense ? (\n <>\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColorOuter} />\n <Circle cx=\"5\" cy=\"5\" r=\"2.5\" fill={fillColorInner} />\n </>\n ) : (\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColorInner} />\n )}\n </Svg>\n <BaseBox marginLeft={childrenString ? 'spacing.2' : 'spacing.0'}>\n <Text\n weight=\"medium\"\n color=\"surface.text.gray.subtle\"\n textAlign=\"left\"\n size={textSizeMapping[size]}\n >\n {children}\n </Text>\n </BaseBox>\n </BaseBox>\n </BaseBox>\n );\n};\n\nconst Indicator = assignWithoutSideEffects(React.forwardRef(_Indicator), {\n componentId: 'Indicator',\n});\n\nexport type { IndicatorProps };\nexport { Indicator };\n"],"names":["_Indicator","_ref","ref","accessibilityLabel","children","_ref$size","size","_ref$color","color","_ref$emphasis","emphasis","testID","rest","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","childrenString","getStringFromReactText","isIntense","isPrimary","fillColorOuter","colors","surface","background","primary","subtle","feedback","fillColorInner","icon","normal","intense","isWeb","isReactNative","a11yProps","makeAccessible","_objectSpread","label","role","svgSize","indicatorDotSizes","outer","inner","_jsx","BaseBox","display","metaAttribute","name","MetaConstants","Indicator","getStyledProps","makeAnalyticsAttribute","_jsxs","flexDirection","alignItems","Svg","width","String","height","viewBox","fill","_Fragment","Circle","cx","cy","r","marginLeft","Text","weight","textAlign","textSizeMapping","assignWithoutSideEffects","React","forwardRef","componentId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAUdC,GAAyB,EACR;AAAA,EAAA,IATfC,kBAAkB,GAAAF,IAAA,CAAlBE,kBAAkB;IAClBC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAAC,SAAA,GAAAJ,IAAA,CACRK,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,SAAA;IAAAE,UAAA,GAAAN,IAAA,CACfO,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,UAA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AAA;AAAe,WAAE,CAAC,eACpDsB,GAAA,CAACmB,MAAM,EAAA;AAACC,YAAAA,EAAE,EAAC,GAAG;AAACC,YAAAA,EAAE,EAAC,GAAG;AAACC,YAAAA,CAAC,EAAC,KAAK;AAACL,YAAAA,IAAI,EAAEhC,cAAAA;AAAe,WAAE,CAAC,CAAA;AAAA,SACtD,CAAC,gBAEHe,GAAA,CAACmB,MAAM,EAAA;AAACC,UAAAA,EAAE,EAAC,GAAG;AAACC,UAAAA,EAAE,EAAC,GAAG;AAACC,UAAAA,CAAC,EAAC,GAAG;AAACL,UAAAA,IAAI,EAAEhC,cAAAA;SAAiB,CAAA;AACpD,OACE,CAAC,eACNe,GAAA,CAACC,OAAO,EAAA;AAACsB,QAAAA,UAAU,EAAEjD,cAAc,GAAG,WAAW,GAAG,WAAY;QAAAd,QAAA,eAC9DwC,GAAA,CAACwB,IAAI,EAAA;AACHC,UAAAA,MAAM,EAAC,QAAQ;AACf7D,UAAAA,KAAK,EAAC,0BAA0B;AAChC8D,UAAAA,SAAS,EAAC,MAAM;AAChBhE,UAAAA,IAAI,EAAEiE,eAAe,CAACjE,IAAI,CAAE;AAAAF,UAAAA,QAAA,EAE3BA,QAAAA;SACG,CAAA;AAAC,OACA,CAAC,CAAA;KACH,CAAA;AAAC,GAAA,CACH,CAAC,CAAA;AAEd,CAAC,CAAA;AAEK8C,IAAAA,SAAS,gBAAGsB,wBAAwB,eAACC,cAAK,CAACC,UAAU,CAAC1E,UAAU,CAAC,EAAE;AACvE2E,EAAAA,WAAW,EAAE,WAAA;AACf,CAAC;;;;"}
1
+ {"version":3,"file":"Indicator.js","sources":["../../../../../../src/components/Indicator/Indicator.tsx"],"sourcesContent":["import React from 'react';\nimport type { ReactElement, Ref } from 'react';\nimport { indicatorDotSizes, textSizeMapping } from './indicatorTokens';\nimport { useTheme } from '~components/BladeProvider';\nimport BaseBox from '~components/Box/BaseBox';\nimport Svg from '~components/Icons/_Svg';\nimport Circle from '~components/Icons/_Svg/Circle';\nimport { Text } from '~components/Typography';\nimport { getStringFromReactText } from '~src/utils/getStringChildren';\nimport type {\n DataAnalyticsAttribute,\n BladeElementRef,\n StringChildrenType,\n TestID,\n} from '~utils/types';\nimport type { FeedbackColors } from '~tokens/theme/theme';\nimport { isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\ntype IndicatorProps = {\n /**\n * Sets the color tone\n *\n * @default neutral\n */\n color?: FeedbackColors | 'primary';\n\n /**\n * Sets the emphasis of the indicator\n *\n * If set to intense it will show a background circle\n *\n * @default subtle\n */\n emphasis?: 'subtle' | 'intense';\n\n /**\n * Size of the indicator\n *\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n /**\n * A text label to show alongside the indicator dot\n */\n children?: StringChildrenType;\n /**\n * a11y label for screen readers\n */\n accessibilityLabel?: string;\n} & TestID &\n DataAnalyticsAttribute &\n StyledPropsBlade;\n\nconst _Indicator = (\n {\n accessibilityLabel,\n children,\n size = 'medium',\n color = 'neutral',\n emphasis = 'subtle',\n testID,\n ...rest\n }: IndicatorProps,\n ref: Ref<BladeElementRef>,\n): ReactElement => {\n const { theme } = useTheme();\n const childrenString = getStringFromReactText(children);\n const isIntense = emphasis === 'intense';\n const isPrimary = color === 'primary';\n\n const fillColorOuter = isPrimary\n ? theme.colors.surface.background.primary.subtle\n : theme.colors.feedback.background[color].subtle;\n const fillColorInner = isPrimary\n ? theme.colors.surface.icon.primary.normal\n : theme.colors.feedback.icon[color].intense;\n\n const isWeb = !isReactNative();\n const a11yProps = makeAccessible({\n label: accessibilityLabel ?? childrenString,\n ...(isWeb && { role: 'status' }),\n });\n\n const svgSize = isIntense\n ? indicatorDotSizes[emphasis][size].outer\n : indicatorDotSizes[emphasis][size].inner;\n\n return (\n <BaseBox\n ref={ref as never}\n display={(isWeb ? 'inline-flex' : 'flex') as never}\n {...a11yProps}\n {...metaAttribute({ name: MetaConstants.Indicator, testID })}\n {...getStyledProps(rest)}\n {...makeAnalyticsAttribute(rest)}\n >\n <BaseBox display=\"flex\" flexDirection=\"row\" alignItems=\"center\">\n <Svg width={String(svgSize)} height={String(svgSize)} viewBox=\"0 0 10 10\" fill=\"none\">\n {isIntense ? (\n <>\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColorOuter} />\n <Circle cx=\"5\" cy=\"5\" r=\"2.5\" fill={fillColorInner} />\n </>\n ) : (\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColorInner} />\n )}\n </Svg>\n <BaseBox marginLeft={childrenString ? 'spacing.2' : 'spacing.0'}>\n <Text\n weight=\"medium\"\n color=\"surface.text.gray.subtle\"\n textAlign=\"left\"\n size={textSizeMapping[size]}\n >\n {children}\n </Text>\n </BaseBox>\n </BaseBox>\n </BaseBox>\n );\n};\n\nconst Indicator = assignWithoutSideEffects(React.forwardRef(_Indicator), {\n componentId: 'Indicator',\n});\n\nexport type { IndicatorProps };\nexport { Indicator };\n"],"names":["_Indicator","_ref","ref","accessibilityLabel","children","_ref$size","size","_ref$color","color","_ref$emphasis","emphasis","testID","rest","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","childrenString","getStringFromReactText","isIntense","isPrimary","fillColorOuter","colors","surface","background","primary","subtle","feedback","fillColorInner","icon","normal","intense","isWeb","isReactNative","a11yProps","makeAccessible","_objectSpread","label","role","svgSize","indicatorDotSizes","outer","inner","_jsx","BaseBox","display","metaAttribute","name","MetaConstants","Indicator","getStyledProps","makeAnalyticsAttribute","_jsxs","flexDirection","alignItems","Svg","width","String","height","viewBox","fill","_Fragment","Circle","cx","cy","r","marginLeft","Text","weight","textAlign","textSizeMapping","assignWithoutSideEffects","React","forwardRef","componentId"],"mappings":";;;;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AAC,GAAA,CACH,CAAC,CAAA;AAEd,CAAC,CAAA;AAEK8C,IAAAA,SAAS,gBAAGsB,wBAAwB,cAACC,cAAK,CAACC,UAAU,CAAC1E,UAAU,CAAC,EAAE;AACvE2E,EAAAA,WAAW,EAAE,WAAA;AACf,CAAC;;;;"}
@@ -47,7 +47,7 @@ var renderElement = function renderElement(element, size) {
47
47
  if (!element) return null;
48
48
 
49
49
  // Check if it's already a JSX element (React element)
50
- if ( /*#__PURE__*/React__default.isValidElement(element)) {
50
+ if (/*#__PURE__*/React__default.isValidElement(element)) {
51
51
  return element;
52
52
  }
53
53
 
@@ -72,7 +72,7 @@ var TitleCollection = function TitleCollection(_ref) {
72
72
  size = _useInfoGroup.size;
73
73
  var _useInfoItem = useInfoItem(),
74
74
  setHasAvatar = _useInfoItem.setHasAvatar;
75
- var isAvatar = getComponentId( /*#__PURE__*/React__default.isValidElement(leading) ? leading : undefined) === 'Avatar';
75
+ var isAvatar = getComponentId(/*#__PURE__*/React__default.isValidElement(leading) ? leading : undefined) === 'Avatar';
76
76
 
77
77
  // Set hasAvatar context when an avatar is detected
78
78
  useIsomorphicLayoutEffect(function () {
@@ -179,7 +179,7 @@ var _InfoItemKey = function _InfoItemKey(_ref2, ref) {
179
179
  * ----
180
180
  * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}
181
181
  */
182
- var InfoItemKey = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_InfoItemKey), {
182
+ var InfoItemKey = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.forwardRef(_InfoItemKey), {
183
183
  displayName: 'InfoItemKey',
184
184
  componentId: 'InfoItemKey'
185
185
  });
@@ -243,7 +243,7 @@ var _InfoItemValue = function _InfoItemValue(_ref3, ref) {
243
243
  * ----
244
244
  * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}
245
245
  */
246
- var InfoItemValue = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_InfoItemValue), {
246
+ var InfoItemValue = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.forwardRef(_InfoItemValue), {
247
247
  displayName: 'InfoItemValue',
248
248
  componentId: 'InfoItemValue'
249
249
  });
@@ -343,7 +343,7 @@ var _InfoItem = function _InfoItem(_ref6, ref) {
343
343
  * ----
344
344
  * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}
345
345
  */
346
- var InfoItem = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_InfoItem), {
346
+ var InfoItem = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.forwardRef(_InfoItem), {
347
347
  displayName: 'InfoItem',
348
348
  componentId: 'InfoItem'
349
349
  });
@@ -439,7 +439,7 @@ var _InfoGroup = function _InfoGroup(_ref7, ref) {
439
439
  * ----
440
440
  * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}
441
441
  */
442
- var InfoGroup = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_InfoGroup), {
442
+ var InfoGroup = /*#__PURE__*/assignWithoutSideEffects(/*#__PURE__*/React__default.forwardRef(_InfoGroup), {
443
443
  displayName: 'InfoGroup',
444
444
  componentId: 'InfoGroup'
445
445
  });
@@ -1 +1 @@
1
- {"version":3,"file":"InfoGroup.web.js","sources":["../../../../../../src/components/InfoGroup/InfoGroup.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { ReactElement } from 'react';\nimport type {\n InfoGroupProps,\n InfoItemProps,\n InfoItemKeyProps,\n InfoItemValueProps,\n TitleCollectionProps,\n} from './types';\nimport {\n elementGap,\n titleTextSize,\n helpTextSize,\n iconSize,\n itemTitleHeight,\n avatarAdjustmentPaddingY,\n} from './infoGroupTokens';\nimport { InfoGroupContext, useInfoGroup, InfoItemContext, useInfoItem } from './InfoGroupContext';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Text } from '~components/Typography';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { BladeElementRef } from '~utils/types';\nimport type { IconComponent } from '~components/Icons';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeSize } from '~utils';\nimport type { BoxProps } from '~components/Box';\nimport { Divider } from '~components/Divider';\nimport { getComponentId } from '~utils/isValidAllowedChildren';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { useTruncationTitle } from '~utils/useTruncationTitle';\n\nconst getCenterBoxProps = (\n size: NonNullable<InfoGroupProps['size']>,\n strictHeight = false,\n): BoxProps => {\n return {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n ...(strictHeight\n ? { height: makeSize(itemTitleHeight[size]) }\n : {\n minHeight: makeSize(itemTitleHeight[size]),\n }),\n };\n};\n\n// Helper function to render leading/trailing elements (icons or JSX)\nconst renderElement = (\n element: IconComponent | React.ReactElement | undefined,\n size: NonNullable<InfoGroupProps['size']>,\n): React.ReactNode => {\n if (!element) return null;\n\n // Check if it's already a JSX element (React element)\n if (React.isValidElement(element)) {\n return element;\n }\n\n // Otherwise, it's a component function - render it with size prop\n const IconComponent = element as IconComponent;\n return <IconComponent size={iconSize[size]} color=\"surface.icon.gray.muted\" />;\n};\n\nconst TitleCollection = ({\n children,\n leading,\n trailing,\n helpText,\n titleWeight,\n titleColor,\n paddingLeft,\n paddingRight,\n truncateAfterLines,\n}: TitleCollectionProps): React.ReactElement => {\n const { size } = useInfoGroup();\n const { setHasAvatar } = useInfoItem();\n\n const isAvatar = getComponentId(React.isValidElement(leading) ? leading : undefined) === 'Avatar';\n\n // Set hasAvatar context when an avatar is detected\n useIsomorphicLayoutEffect(() => {\n if (isAvatar) {\n setHasAvatar(true);\n }\n }, [isAvatar, setHasAvatar]);\n\n const { containerRef, textRef } = useTruncationTitle({\n content: typeof children === 'string' ? children : undefined,\n });\n\n return (\n <BaseBox\n display=\"flex\"\n alignItems=\"flex-start\"\n gap={elementGap[size]}\n paddingLeft={paddingLeft}\n paddingRight={paddingRight}\n >\n {leading && (\n <BaseBox {...getCenterBoxProps(size, true)}>{renderElement(leading, size)}</BaseBox>\n )}\n <BaseBox display=\"flex\" flexDirection=\"column\" flex=\"1\">\n <BaseBox ref={containerRef} {...getCenterBoxProps(size)}>\n {typeof children === 'string' ? (\n <Text\n ref={textRef}\n variant=\"body\"\n size={titleTextSize[size]}\n weight={titleWeight}\n color={titleColor}\n truncateAfterLines={truncateAfterLines}\n >\n {children}\n </Text>\n ) : (\n children\n )}\n </BaseBox>\n\n {helpText && (\n <Text\n variant=\"body\"\n size={helpTextSize[size]}\n weight=\"regular\"\n color=\"surface.text.gray.muted\"\n >\n {helpText}\n </Text>\n )}\n </BaseBox>\n {trailing && (\n <BaseBox {...getCenterBoxProps(size, true)}>{renderElement(trailing, size)}</BaseBox>\n )}\n </BaseBox>\n );\n};\n\nconst _InfoItemKey = (\n { children, leading, trailing, helpText, truncateAfterLines, testID }: InfoItemKeyProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const { itemOrientation, size } = useInfoGroup();\n\n const { hasAvatar, isHighlighted } = useInfoItem();\n\n return (\n <BaseBox\n ref={ref as never}\n as=\"dt\"\n display=\"flex\"\n alignItems=\"center\"\n alignSelf=\"flex-start\"\n justifyContent=\"flex-start\"\n paddingY={hasAvatar ? avatarAdjustmentPaddingY[size] : undefined}\n {...metaAttribute({ name: MetaConstants.InfoItemKey, testID })}\n >\n {itemOrientation === 'horizontal' && isHighlighted ? (\n <Divider orientation=\"vertical\" />\n ) : null}\n <TitleCollection\n leading={leading}\n trailing={trailing}\n helpText={helpText}\n titleWeight=\"medium\"\n titleColor=\"surface.text.gray.muted\"\n truncateAfterLines={truncateAfterLines}\n paddingLeft={isHighlighted ? 'spacing.4' : 'spacing.0'}\n paddingRight=\"spacing.0\"\n >\n {children}\n </TitleCollection>\n </BaseBox>\n );\n};\n\n/**\n * InfoItemKey\n *\n * Displays the key portion of a key-value pair within an InfoItem.\n * Supports leading/trailing elements and customizable text alignment.\n *\n * ----\n *\n * #### Usage\n *\n * ```tsx\n * <InfoItemKey leading={UserIcon}>Account Holder</InfoItemKey>\n * ```\n *\n * ----\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}\n */\nconst InfoItemKey = assignWithoutSideEffects(React.forwardRef(_InfoItemKey), {\n displayName: 'InfoItemKey',\n componentId: 'InfoItemKey',\n});\n\nconst _InfoItemValue = (\n { children, leading, trailing, helpText, truncateAfterLines, testID }: InfoItemValueProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const { itemOrientation, valueAlign, size } = useInfoGroup();\n\n const { hasAvatar, isHighlighted } = useInfoItem();\n\n return (\n <BaseBox\n ref={ref as never}\n as=\"dd\"\n margin=\"spacing.0\"\n display=\"flex\"\n alignItems=\"center\"\n alignSelf=\"flex-start\"\n justifyContent={valueAlign === 'right' ? 'flex-end' : 'flex-start'}\n paddingY={hasAvatar ? avatarAdjustmentPaddingY[size] : undefined}\n {...metaAttribute({ name: MetaConstants.InfoItemValue, testID })}\n >\n <TitleCollection\n leading={leading}\n trailing={trailing}\n helpText={helpText}\n titleWeight=\"semibold\"\n titleColor=\"surface.text.gray.subtle\"\n truncateAfterLines={truncateAfterLines}\n paddingLeft={isHighlighted && itemOrientation === 'vertical' ? 'spacing.4' : 'spacing.0'}\n paddingRight={isHighlighted ? 'spacing.4' : 'spacing.0'}\n >\n {children}\n </TitleCollection>\n </BaseBox>\n );\n};\n\n/**\n * InfoItemValue\n *\n * Displays the value portion of a key-value pair within an InfoItem.\n * Supports leading/trailing elements and customizable text alignment.\n *\n * ----\n *\n * #### Usage\n *\n * ```tsx\n * <InfoItemValue helpText=\"Customer name\" trailing={CheckIcon}>\n * Saurabh Daware\n * </InfoItemValue>\n * ```\n *\n * ----\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}\n */\nconst InfoItemValue = assignWithoutSideEffects(React.forwardRef(_InfoItemValue), {\n displayName: 'InfoItemValue',\n componentId: 'InfoItemValue',\n});\n\nconst ContentsItemBox = React.forwardRef<\n BladeElementRef,\n {\n children: React.ReactNode;\n testID?: string;\n }\n>(\n ({ children, testID }, ref): React.ReactElement => {\n return (\n <BaseBox\n display=\"contents\"\n ref={ref as never}\n {...metaAttribute({ name: MetaConstants.InfoItem, testID })}\n >\n {children}\n </BaseBox>\n );\n },\n);\n\nconst FlexItemBox = React.forwardRef<\n BladeElementRef,\n { children: React.ReactNode; testID?: string; isHighlighted?: boolean }\n>(\n ({ children, testID, isHighlighted = false }, ref): React.ReactElement => {\n return (\n <BaseBox\n display=\"flex\"\n ref={ref as never}\n {...metaAttribute({ name: MetaConstants.InfoItem, testID })}\n >\n {isHighlighted && <Divider orientation=\"vertical\" />}\n <BaseBox display=\"flex\" flexDirection=\"column\" gap=\"spacing.2\">\n {children}\n </BaseBox>\n </BaseBox>\n );\n },\n);\n\nconst _InfoItem = (\n { children, testID, isHighlighted }: InfoItemProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const { itemOrientation, isHighlighted: contextIsHighlighted } = useInfoGroup();\n const [hasAvatar, setHasAvatar] = React.useState(false);\n const isVertical = itemOrientation === 'vertical';\n const shouldHighlight = isHighlighted ?? contextIsHighlighted;\n\n const infoItemContextValue = React.useMemo(\n () => ({\n hasAvatar,\n setHasAvatar,\n isHighlighted: shouldHighlight,\n }),\n [hasAvatar, shouldHighlight],\n );\n\n if (isVertical) {\n return (\n <InfoItemContext.Provider value={infoItemContextValue}>\n <FlexItemBox ref={ref as never} testID={testID} isHighlighted={shouldHighlight}>\n {children}\n </FlexItemBox>\n </InfoItemContext.Provider>\n );\n }\n\n return (\n <InfoItemContext.Provider value={infoItemContextValue}>\n <ContentsItemBox ref={ref as never} testID={testID}>\n {children}\n </ContentsItemBox>\n </InfoItemContext.Provider>\n );\n};\n\n/**\n * InfoItem\n *\n * Container component that wraps InfoItemKey and InfoItemValue pairs.\n * Manages the layout and visual connection between key-value elements.\n *\n * ----\n *\n * #### Usage\n *\n * ```tsx\n * <InfoItem>\n * <InfoItemKey>Account Holder</InfoItemKey>\n * <InfoItemValue>Saurabh Daware</InfoItemValue>\n * </InfoItem>\n * ```\n *\n * ----\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}\n */\nconst InfoItem = assignWithoutSideEffects(React.forwardRef(_InfoItem), {\n displayName: 'InfoItem',\n componentId: 'InfoItem',\n});\n\n// InfoGroup Component\nconst _InfoGroup = (\n {\n children,\n itemOrientation = 'horizontal',\n size = 'medium',\n valueAlign = 'left',\n isHighlighted = false,\n gridTemplateColumns,\n width,\n maxWidth,\n minWidth,\n testID,\n paddingLeft,\n paddingRight,\n paddingTop,\n paddingBottom,\n padding,\n paddingX,\n paddingY,\n ...rest\n }: InfoGroupProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const contextValue = React.useMemo(\n () => ({\n size,\n itemOrientation,\n valueAlign,\n isHighlighted,\n }),\n [size, itemOrientation, valueAlign, isHighlighted],\n );\n\n const defaultGridTemplateColumns =\n itemOrientation === 'horizontal'\n ? 'max-content 1fr'\n : `repeat(min(4, ${React.Children.count(children)}), 1fr)`;\n\n // Use provided gridTemplateColumns or default based on itemOrientation\n const templateColumns = gridTemplateColumns ?? defaultGridTemplateColumns;\n\n return (\n <InfoGroupContext.Provider value={contextValue}>\n <BaseBox\n ref={ref as never}\n as=\"dl\"\n display=\"grid\"\n gridTemplateColumns={templateColumns}\n rowGap=\"spacing.4\"\n columnGap={{ base: 'spacing.6', m: 'spacing.10' }}\n flexDirection=\"column\"\n margin=\"spacing.0\"\n width={width}\n maxWidth={maxWidth}\n minWidth={minWidth}\n paddingLeft={paddingLeft}\n paddingRight={paddingRight}\n paddingTop={paddingTop}\n paddingBottom={paddingBottom}\n padding={padding}\n paddingX={paddingX}\n paddingY={paddingY}\n {...metaAttribute({ name: MetaConstants.InfoGroup, testID })}\n {...getStyledProps(rest)}\n >\n {children}\n </BaseBox>\n </InfoGroupContext.Provider>\n );\n};\n\n/**\n * InfoGroup\n *\n * A structured component for displaying key-value pairs in a consistent, organized format.\n * Provides standardized presentation for transaction details, user data, or any related data pairs.\n *\n * ----\n *\n * #### Usage\n *\n * ```tsx\n * <InfoGroup itemOrientation=\"horizontal\" size=\"medium\">\n * <InfoItem>\n * <InfoItemKey leading={UserIcon}>Account Holder</InfoItemKey>\n * <InfoItemValue>Saurabh Daware</InfoItemValue>\n * </InfoItem>\n * </InfoGroup>\n * ```\n *\n * ----\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}\n */\nconst InfoGroup = assignWithoutSideEffects(React.forwardRef(_InfoGroup), {\n displayName: 'InfoGroup',\n componentId: 'InfoGroup',\n});\n\nexport type { InfoGroupProps, InfoItemProps, InfoItemKeyProps, InfoItemValueProps };\n\nexport { InfoGroup, InfoItem, InfoItemKey, InfoItemValue };\n"],"names":["getCenterBoxProps","size","strictHeight","arguments","length","undefined","_objectSpread","display","alignItems","justifyContent","height","makeSize","itemTitleHeight","minHeight","renderElement","element","React","isValidElement","IconComponent","_jsx","iconSize","color","TitleCollection","_ref","children","leading","trailing","helpText","titleWeight","titleColor","paddingLeft","paddingRight","truncateAfterLines","_useInfoGroup","useInfoGroup","_useInfoItem","useInfoItem","setHasAvatar","isAvatar","getComponentId","useIsomorphicLayoutEffect","_useTruncationTitle","useTruncationTitle","content","containerRef","textRef","_jsxs","BaseBox","gap","elementGap","flexDirection","flex","ref","Text","variant","titleTextSize","weight","helpTextSize","_InfoItemKey","_ref2","testID","_useInfoGroup2","itemOrientation","_useInfoItem2","hasAvatar","isHighlighted","as","alignSelf","paddingY","avatarAdjustmentPaddingY","metaAttribute","name","MetaConstants","InfoItemKey","Divider","orientation","assignWithoutSideEffects","forwardRef","displayName","componentId","_InfoItemValue","_ref3","_useInfoGroup3","valueAlign","_useInfoItem3","margin","InfoItemValue","ContentsItemBox","_ref4","InfoItem","FlexItemBox","_ref5","_ref5$isHighlighted","_InfoItem","_ref6","_useInfoGroup4","contextIsHighlighted","_React$useState","useState","_React$useState2","_slicedToArray","isVertical","shouldHighlight","infoItemContextValue","useMemo","InfoItemContext","Provider","value","_InfoGroup","_ref7","_ref7$itemOrientation","_ref7$size","_ref7$valueAlign","_ref7$isHighlighted","gridTemplateColumns","width","maxWidth","minWidth","paddingTop","paddingBottom","padding","paddingX","rest","_objectWithoutProperties","_excluded","contextValue","defaultGridTemplateColumns","concat","Children","count","templateColumns","InfoGroupContext","rowGap","columnGap","base","m","InfoGroup","getStyledProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CACrBC,IAAyC,EAE5B;AAAA,EAAA,IADbC,YAAY,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,KAAK,CAAA;AAEpB,EAAA,OAAAG,aAAA,CAAA;AACEC,IAAAA,OAAO,EAAE,MAAM;AACfC,IAAAA,UAAU,EAAE,QAAQ;AACpBC,IAAAA,cAAc,EAAE,YAAA;AAAY,GAAA,EACxBP,YAAY,GACZ;AAAEQ,IAAAA,MAAM,EAAEC,QAAQ,CAACC,eAAe,CAACX,IAAI,CAAC,CAAA;AAAE,GAAC,GAC3C;AACEY,IAAAA,SAAS,EAAEF,QAAQ,CAACC,eAAe,CAACX,IAAI,CAAC,CAAA;GAC1C,CAAA,CAAA;AAET,CAAC,CAAA;;AAED;AACA,IAAMa,aAAa,GAAG,SAAhBA,aAAaA,CACjBC,OAAuD,EACvDd,IAAyC,EACrB;AACpB,EAAA,IAAI,CAACc,OAAO,EAAE,OAAO,IAAI,CAAA;;AAEzB;AACA,EAAA,kBAAIC,cAAK,CA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gE,SAAS;AAAE5E,MAAAA,MAAM,EAANA,MAAAA;AAAO,KAAC,CAAC,CAAA,EACxD6E,cAAc,CAACf,IAAI,CAAC,CAAA,EAAA,EAAA,EAAA;AAAAlG,MAAAA,QAAA,EAEvBA,QAAAA;KACM,CAAA,CAAA;AAAC,GACe,CAAC,CAAA;AAEhC,CAAC,CAAA;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACMgH,IAAAA,SAAS,gBAAG5D,wBAAwB,eAAC5D,cAAK,CAAC6D,UAAU,CAAC+B,UAAU,CAAC,EAAE;AACvE9B,EAAAA,WAAW,EAAE,WAAW;AACxBC,EAAAA,WAAW,EAAE,WAAA;AACf,CAAC;;;;"}
1
+ {"version":3,"file":"InfoGroup.web.js","sources":["../../../../../../src/components/InfoGroup/InfoGroup.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { ReactElement } from 'react';\nimport type {\n InfoGroupProps,\n InfoItemProps,\n InfoItemKeyProps,\n InfoItemValueProps,\n TitleCollectionProps,\n} from './types';\nimport {\n elementGap,\n titleTextSize,\n helpTextSize,\n iconSize,\n itemTitleHeight,\n avatarAdjustmentPaddingY,\n} from './infoGroupTokens';\nimport { InfoGroupContext, useInfoGroup, InfoItemContext, useInfoItem } from './InfoGroupContext';\nimport BaseBox from '~components/Box/BaseBox';\nimport { Text } from '~components/Typography';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { BladeElementRef } from '~utils/types';\nimport type { IconComponent } from '~components/Icons';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeSize } from '~utils';\nimport type { BoxProps } from '~components/Box';\nimport { Divider } from '~components/Divider';\nimport { getComponentId } from '~utils/isValidAllowedChildren';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { useTruncationTitle } from '~utils/useTruncationTitle';\n\nconst getCenterBoxProps = (\n size: NonNullable<InfoGroupProps['size']>,\n strictHeight = false,\n): BoxProps => {\n return {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n ...(strictHeight\n ? { height: makeSize(itemTitleHeight[size]) }\n : {\n minHeight: makeSize(itemTitleHeight[size]),\n }),\n };\n};\n\n// Helper function to render leading/trailing elements (icons or JSX)\nconst renderElement = (\n element: IconComponent | React.ReactElement | undefined,\n size: NonNullable<InfoGroupProps['size']>,\n): React.ReactNode => {\n if (!element) return null;\n\n // Check if it's already a JSX element (React element)\n if (React.isValidElement(element)) {\n return element;\n }\n\n // Otherwise, it's a component function - render it with size prop\n const IconComponent = element as IconComponent;\n return <IconComponent size={iconSize[size]} color=\"surface.icon.gray.muted\" />;\n};\n\nconst TitleCollection = ({\n children,\n leading,\n trailing,\n helpText,\n titleWeight,\n titleColor,\n paddingLeft,\n paddingRight,\n truncateAfterLines,\n}: TitleCollectionProps): React.ReactElement => {\n const { size } = useInfoGroup();\n const { setHasAvatar } = useInfoItem();\n\n const isAvatar = getComponentId(React.isValidElement(leading) ? leading : undefined) === 'Avatar';\n\n // Set hasAvatar context when an avatar is detected\n useIsomorphicLayoutEffect(() => {\n if (isAvatar) {\n setHasAvatar(true);\n }\n }, [isAvatar, setHasAvatar]);\n\n const { containerRef, textRef } = useTruncationTitle({\n content: typeof children === 'string' ? children : undefined,\n });\n\n return (\n <BaseBox\n display=\"flex\"\n alignItems=\"flex-start\"\n gap={elementGap[size]}\n paddingLeft={paddingLeft}\n paddingRight={paddingRight}\n >\n {leading && (\n <BaseBox {...getCenterBoxProps(size, true)}>{renderElement(leading, size)}</BaseBox>\n )}\n <BaseBox display=\"flex\" flexDirection=\"column\" flex=\"1\">\n <BaseBox ref={containerRef} {...getCenterBoxProps(size)}>\n {typeof children === 'string' ? (\n <Text\n ref={textRef}\n variant=\"body\"\n size={titleTextSize[size]}\n weight={titleWeight}\n color={titleColor}\n truncateAfterLines={truncateAfterLines}\n >\n {children}\n </Text>\n ) : (\n children\n )}\n </BaseBox>\n\n {helpText && (\n <Text\n variant=\"body\"\n size={helpTextSize[size]}\n weight=\"regular\"\n color=\"surface.text.gray.muted\"\n >\n {helpText}\n </Text>\n )}\n </BaseBox>\n {trailing && (\n <BaseBox {...getCenterBoxProps(size, true)}>{renderElement(trailing, size)}</BaseBox>\n )}\n </BaseBox>\n );\n};\n\nconst _InfoItemKey = (\n { children, leading, trailing, helpText, truncateAfterLines, testID }: InfoItemKeyProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const { itemOrientation, size } = useInfoGroup();\n\n const { hasAvatar, isHighlighted } = useInfoItem();\n\n return (\n <BaseBox\n ref={ref as never}\n as=\"dt\"\n display=\"flex\"\n alignItems=\"center\"\n alignSelf=\"flex-start\"\n justifyContent=\"flex-start\"\n paddingY={hasAvatar ? avatarAdjustmentPaddingY[size] : undefined}\n {...metaAttribute({ name: MetaConstants.InfoItemKey, testID })}\n >\n {itemOrientation === 'horizontal' && isHighlighted ? (\n <Divider orientation=\"vertical\" />\n ) : null}\n <TitleCollection\n leading={leading}\n trailing={trailing}\n helpText={helpText}\n titleWeight=\"medium\"\n titleColor=\"surface.text.gray.muted\"\n truncateAfterLines={truncateAfterLines}\n paddingLeft={isHighlighted ? 'spacing.4' : 'spacing.0'}\n paddingRight=\"spacing.0\"\n >\n {children}\n </TitleCollection>\n </BaseBox>\n );\n};\n\n/**\n * InfoItemKey\n *\n * Displays the key portion of a key-value pair within an InfoItem.\n * Supports leading/trailing elements and customizable text alignment.\n *\n * ----\n *\n * #### Usage\n *\n * ```tsx\n * <InfoItemKey leading={UserIcon}>Account Holder</InfoItemKey>\n * ```\n *\n * ----\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}\n */\nconst InfoItemKey = assignWithoutSideEffects(React.forwardRef(_InfoItemKey), {\n displayName: 'InfoItemKey',\n componentId: 'InfoItemKey',\n});\n\nconst _InfoItemValue = (\n { children, leading, trailing, helpText, truncateAfterLines, testID }: InfoItemValueProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const { itemOrientation, valueAlign, size } = useInfoGroup();\n\n const { hasAvatar, isHighlighted } = useInfoItem();\n\n return (\n <BaseBox\n ref={ref as never}\n as=\"dd\"\n margin=\"spacing.0\"\n display=\"flex\"\n alignItems=\"center\"\n alignSelf=\"flex-start\"\n justifyContent={valueAlign === 'right' ? 'flex-end' : 'flex-start'}\n paddingY={hasAvatar ? avatarAdjustmentPaddingY[size] : undefined}\n {...metaAttribute({ name: MetaConstants.InfoItemValue, testID })}\n >\n <TitleCollection\n leading={leading}\n trailing={trailing}\n helpText={helpText}\n titleWeight=\"semibold\"\n titleColor=\"surface.text.gray.subtle\"\n truncateAfterLines={truncateAfterLines}\n paddingLeft={isHighlighted && itemOrientation === 'vertical' ? 'spacing.4' : 'spacing.0'}\n paddingRight={isHighlighted ? 'spacing.4' : 'spacing.0'}\n >\n {children}\n </TitleCollection>\n </BaseBox>\n );\n};\n\n/**\n * InfoItemValue\n *\n * Displays the value portion of a key-value pair within an InfoItem.\n * Supports leading/trailing elements and customizable text alignment.\n *\n * ----\n *\n * #### Usage\n *\n * ```tsx\n * <InfoItemValue helpText=\"Customer name\" trailing={CheckIcon}>\n * Saurabh Daware\n * </InfoItemValue>\n * ```\n *\n * ----\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}\n */\nconst InfoItemValue = assignWithoutSideEffects(React.forwardRef(_InfoItemValue), {\n displayName: 'InfoItemValue',\n componentId: 'InfoItemValue',\n});\n\nconst ContentsItemBox = React.forwardRef<\n BladeElementRef,\n {\n children: React.ReactNode;\n testID?: string;\n }\n>(\n ({ children, testID }, ref): React.ReactElement => {\n return (\n <BaseBox\n display=\"contents\"\n ref={ref as never}\n {...metaAttribute({ name: MetaConstants.InfoItem, testID })}\n >\n {children}\n </BaseBox>\n );\n },\n);\n\nconst FlexItemBox = React.forwardRef<\n BladeElementRef,\n { children: React.ReactNode; testID?: string; isHighlighted?: boolean }\n>(\n ({ children, testID, isHighlighted = false }, ref): React.ReactElement => {\n return (\n <BaseBox\n display=\"flex\"\n ref={ref as never}\n {...metaAttribute({ name: MetaConstants.InfoItem, testID })}\n >\n {isHighlighted && <Divider orientation=\"vertical\" />}\n <BaseBox display=\"flex\" flexDirection=\"column\" gap=\"spacing.2\">\n {children}\n </BaseBox>\n </BaseBox>\n );\n },\n);\n\nconst _InfoItem = (\n { children, testID, isHighlighted }: InfoItemProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const { itemOrientation, isHighlighted: contextIsHighlighted } = useInfoGroup();\n const [hasAvatar, setHasAvatar] = React.useState(false);\n const isVertical = itemOrientation === 'vertical';\n const shouldHighlight = isHighlighted ?? contextIsHighlighted;\n\n const infoItemContextValue = React.useMemo(\n () => ({\n hasAvatar,\n setHasAvatar,\n isHighlighted: shouldHighlight,\n }),\n [hasAvatar, shouldHighlight],\n );\n\n if (isVertical) {\n return (\n <InfoItemContext.Provider value={infoItemContextValue}>\n <FlexItemBox ref={ref as never} testID={testID} isHighlighted={shouldHighlight}>\n {children}\n </FlexItemBox>\n </InfoItemContext.Provider>\n );\n }\n\n return (\n <InfoItemContext.Provider value={infoItemContextValue}>\n <ContentsItemBox ref={ref as never} testID={testID}>\n {children}\n </ContentsItemBox>\n </InfoItemContext.Provider>\n );\n};\n\n/**\n * InfoItem\n *\n * Container component that wraps InfoItemKey and InfoItemValue pairs.\n * Manages the layout and visual connection between key-value elements.\n *\n * ----\n *\n * #### Usage\n *\n * ```tsx\n * <InfoItem>\n * <InfoItemKey>Account Holder</InfoItemKey>\n * <InfoItemValue>Saurabh Daware</InfoItemValue>\n * </InfoItem>\n * ```\n *\n * ----\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}\n */\nconst InfoItem = assignWithoutSideEffects(React.forwardRef(_InfoItem), {\n displayName: 'InfoItem',\n componentId: 'InfoItem',\n});\n\n// InfoGroup Component\nconst _InfoGroup = (\n {\n children,\n itemOrientation = 'horizontal',\n size = 'medium',\n valueAlign = 'left',\n isHighlighted = false,\n gridTemplateColumns,\n width,\n maxWidth,\n minWidth,\n testID,\n paddingLeft,\n paddingRight,\n paddingTop,\n paddingBottom,\n padding,\n paddingX,\n paddingY,\n ...rest\n }: InfoGroupProps,\n ref: React.Ref<BladeElementRef>,\n): ReactElement => {\n const contextValue = React.useMemo(\n () => ({\n size,\n itemOrientation,\n valueAlign,\n isHighlighted,\n }),\n [size, itemOrientation, valueAlign, isHighlighted],\n );\n\n const defaultGridTemplateColumns =\n itemOrientation === 'horizontal'\n ? 'max-content 1fr'\n : `repeat(min(4, ${React.Children.count(children)}), 1fr)`;\n\n // Use provided gridTemplateColumns or default based on itemOrientation\n const templateColumns = gridTemplateColumns ?? defaultGridTemplateColumns;\n\n return (\n <InfoGroupContext.Provider value={contextValue}>\n <BaseBox\n ref={ref as never}\n as=\"dl\"\n display=\"grid\"\n gridTemplateColumns={templateColumns}\n rowGap=\"spacing.4\"\n columnGap={{ base: 'spacing.6', m: 'spacing.10' }}\n flexDirection=\"column\"\n margin=\"spacing.0\"\n width={width}\n maxWidth={maxWidth}\n minWidth={minWidth}\n paddingLeft={paddingLeft}\n paddingRight={paddingRight}\n paddingTop={paddingTop}\n paddingBottom={paddingBottom}\n padding={padding}\n paddingX={paddingX}\n paddingY={paddingY}\n {...metaAttribute({ name: MetaConstants.InfoGroup, testID })}\n {...getStyledProps(rest)}\n >\n {children}\n </BaseBox>\n </InfoGroupContext.Provider>\n );\n};\n\n/**\n * InfoGroup\n *\n * A structured component for displaying key-value pairs in a consistent, organized format.\n * Provides standardized presentation for transaction details, user data, or any related data pairs.\n *\n * ----\n *\n * #### Usage\n *\n * ```tsx\n * <InfoGroup itemOrientation=\"horizontal\" size=\"medium\">\n * <InfoItem>\n * <InfoItemKey leading={UserIcon}>Account Holder</InfoItemKey>\n * <InfoItemValue>Saurabh Daware</InfoItemValue>\n * </InfoItem>\n * </InfoGroup>\n * ```\n *\n * ----\n * Checkout {@link https://blade.razorpay.com/?path=/docs/components-infogroup InfoGroup Documentation}\n */\nconst InfoGroup = assignWithoutSideEffects(React.forwardRef(_InfoGroup), {\n displayName: 'InfoGroup',\n componentId: 'InfoGroup',\n});\n\nexport type { InfoGroupProps, InfoItemProps, InfoItemKeyProps, InfoItemValueProps };\n\nexport { InfoGroup, InfoItem, InfoItemKey, InfoItemValue };\n"],"names":["getCenterBoxProps","size","strictHeight","arguments","length","undefined","_objectSpread","display","alignItems","justifyContent","height","makeSize","itemTitleHeight","minHeight","renderElement","element","React","isValidElement","IconComponent","_jsx","iconSize","color","TitleCollection","_ref","children","leading","trailing","helpText","titleWeight","titleColor","paddingLeft","paddingRight","truncateAfterLines","_useInfoGroup","useInfoGroup","_useInfoItem","useInfoItem","setHasAvatar","isAvatar","getComponentId","useIsomorphicLayoutEffect","_useTruncationTitle","useTruncationTitle","content","containerRef","textRef","_jsxs","BaseBox","gap","elementGap","flexDirection","flex","ref","Text","variant","titleTextSize","weight","helpTextSize","_InfoItemKey","_ref2","testID","_useInfoGroup2","itemOrientation","_useInfoItem2","hasAvatar","isHighlighted","as","alignSelf","paddingY","avatarAdjustmentPaddingY","metaAttribute","name","MetaConstants","InfoItemKey","Divider","orientation","assignWithoutSideEffects","forwardRef","displayName","componentId","_InfoItemValue","_ref3","_useInfoGroup3","valueAlign","_useInfoItem3","margin","InfoItemValue","ContentsItemBox","_ref4","InfoItem","FlexItemBox","_ref5","_ref5$isHighlighted","_InfoItem","_ref6","_useInfoGroup4","contextIsHighlighted","_React$useState","useState","_React$useState2","_slicedToArray","isVertical","shouldHighlight","infoItemContextValue","useMemo","InfoItemContext","Provider","value","_InfoGroup","_ref7","_ref7$itemOrientation","_ref7$size","_ref7$valueAlign","_ref7$isHighlighted","gridTemplateColumns","width","maxWidth","minWidth","paddingTop","paddingBottom","padding","paddingX","rest","_objectWithoutProperties","_excluded","contextValue","defaultGridTemplateColumns","concat","Children","count","templateColumns","InfoGroupContext","rowGap","columnGap","base","m","InfoGroup","getStyledProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CACrBC,IAAyC,EAE5B;AAAA,EAAA,IADbC,YAAY,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,KAAK,CAAA;AAEpB,EAAA,OAAAG,aAAA,CAAA;AACEC,IAAAA,OAAO,EAAE,MAAM;AACfC,IAAAA,UAAU,EAAE,QAAQ;AACpBC,IAAAA,cAAc,EAAE,YAAA;AAAY,GAAA,EACxBP,YAAY,GACZ;AAAEQ,IAAAA,MAAM,EAAEC,QAAQ,CAACC,eAAe,CAACX,IAAI,CAAC,CAAA;AAAE,GAAC,GAC3C;AACEY,IAAAA,SAAS,EAAEF,QAAQ,CAACC,eAAe,CAACX,IAAI,CAAC,CAAA;GAC1C,CAAA,CAAA;AAET,CAAC,CAAA;;AAED;AACA,IAAMa,aAAa,GAAG,SAAhBA,aAAaA,CACjBC,OAAuD,EACvDd,IAAyC,EACrB;AACpB,EAAA,IAAI,CAACc,OAAO,EAAE,OAAO,IAAI,CAAA;;AAEzB;AACA,EAAA,iBAAIC,cAAK,CAACC,cAAc,CAACF,OAAO,CAAC,EAAE;AACjC,IAAA,OAAOA,OAAO,CAAA;AAChB,GAAA;;AAEA;EACA,IAAMG,aAAa,GAAGH,OAAwB,CAAA;EAC9C,oBAAOI,GAAA,CAACD,aAAa,EAAA;AAACjB,IAAAA,IAAI,EAAEmB,QAAQ,CAACnB,IAAI,CAAE;AAACoB,IAAAA,KAAK,EAAC,yBAAA;AAAyB,GAAE,CAAC,CAAA;AAChF,CAAC,CAAA;AAED,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAU2B;AA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,wBAAwB,cAAC5D,cAAK,CAAC6D,UAAU,CAAC+B,UAAU,CAAC,EAAE;AACvE9B,EAAAA,WAAW,EAAE,WAAW;AACxBC,EAAAA,WAAW,EAAE,WAAA;AACf,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"InfoGroupContext.js","sources":["../../../../../../src/components/InfoGroup/InfoGroupContext.ts"],"sourcesContent":["import React from 'react';\nimport type { InfoGroupProps } from './types';\n\ntype InfoGroupContextType = {\n size: NonNullable<InfoGroupProps['size']>;\n itemOrientation: NonNullable<InfoGroupProps['itemOrientation']>;\n valueAlign: NonNullable<InfoGroupProps['valueAlign']>;\n isHighlighted: NonNullable<InfoGroupProps['isHighlighted']>;\n};\n\ntype InfoItemContextType = {\n hasAvatar: boolean;\n setHasAvatar: (hasAvatar: boolean) => void;\n isHighlighted: boolean;\n};\n\nconst InfoGroupContext = React.createContext<InfoGroupContextType>({\n size: 'medium',\n itemOrientation: 'horizontal',\n valueAlign: 'left',\n isHighlighted: false,\n});\n\nconst InfoItemContext = React.createContext<InfoItemContextType>({\n hasAvatar: false,\n setHasAvatar: () => {\n // no-op default implementation\n },\n isHighlighted: false,\n});\n\n// Add hooks to use the context\nconst useInfoGroup = (): InfoGroupContextType => React.useContext(InfoGroupContext);\nconst useInfoItem = (): InfoItemContextType => React.useContext(InfoItemContext);\n\nexport { InfoGroupContext, InfoItemContext, useInfoGroup, useInfoItem };\n"],"names":["InfoGroupContext","React","createContext","size","itemOrientation","valueAlign","isHighlighted","InfoItemContext","hasAvatar","setHasAvatar","useInfoGroup","useContext","useInfoItem"],"mappings":";;AAgBA,IAAMA,gBAAgB,gBAAGC,cAAK,CAACC,aAAa,CAAuB;AACjEC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,eAAe,EAAE,YAAY;AAC7BC,EAAAA,UAAU,EAAE,MAAM;AAClBC,EAAAA,aAAa,EAAE,KAAA;AACjB,CAAC,EAAC;AAEF,IAAMC,eAAe,gBAAGN,cAAK,CAACC,aAAa,CAAsB;AAC/DM,EAAAA,SAAS,EAAE,KAAK;EAChBC,YAAY,EAAE,SAAAA,YAAAA,GAAM;AAClB;GACD;AACDH,EAAAA,aAAa,EAAE,KAAA;AACjB,CAAC,EAAC;;AAEF;AACA,IAAMI,YAAY,GAAG,SAAfA,YAAYA,GAAA;AAAA,EAAA,OAA+BT,cAAK,CAACU,UAAU,CAACX,gBAAgB,CAAC,CAAA;AAAA,EAAA;AACnF,IAAMY,WAAW,GAAG,SAAdA,WAAWA,GAAA;AAAA,EAAA,OAA8BX,cAAK,CAACU,UAAU,CAACJ,eAAe,CAAC,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"InfoGroupContext.js","sources":["../../../../../../src/components/InfoGroup/InfoGroupContext.ts"],"sourcesContent":["import React from 'react';\nimport type { InfoGroupProps } from './types';\n\ntype InfoGroupContextType = {\n size: NonNullable<InfoGroupProps['size']>;\n itemOrientation: NonNullable<InfoGroupProps['itemOrientation']>;\n valueAlign: NonNullable<InfoGroupProps['valueAlign']>;\n isHighlighted: NonNullable<InfoGroupProps['isHighlighted']>;\n};\n\ntype InfoItemContextType = {\n hasAvatar: boolean;\n setHasAvatar: (hasAvatar: boolean) => void;\n isHighlighted: boolean;\n};\n\nconst InfoGroupContext = React.createContext<InfoGroupContextType>({\n size: 'medium',\n itemOrientation: 'horizontal',\n valueAlign: 'left',\n isHighlighted: false,\n});\n\nconst InfoItemContext = React.createContext<InfoItemContextType>({\n hasAvatar: false,\n setHasAvatar: () => {\n // no-op default implementation\n },\n isHighlighted: false,\n});\n\n// Add hooks to use the context\nconst useInfoGroup = (): InfoGroupContextType => React.useContext(InfoGroupContext);\nconst useInfoItem = (): InfoItemContextType => React.useContext(InfoItemContext);\n\nexport { InfoGroupContext, InfoItemContext, useInfoGroup, useInfoItem };\n"],"names":["InfoGroupContext","React","createContext","size","itemOrientation","valueAlign","isHighlighted","InfoItemContext","hasAvatar","setHasAvatar","useInfoGroup","useContext","useInfoItem"],"mappings":";;AAgBA,IAAMA,gBAAgB,gBAAGC,cAAK,CAACC,aAAa,CAAuB;AACjEC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,eAAe,EAAE,YAAY;AAC7BC,EAAAA,UAAU,EAAE,MAAM;AAClBC,EAAAA,aAAa,EAAE,KAAA;AACjB,CAAC,EAAC;AAEF,IAAMC,eAAe,gBAAGN,cAAK,CAACC,aAAa,CAAsB;AAC/DM,EAAAA,SAAS,EAAE,KAAK;AAChBC,EAAAA,YAAY,EAAE,SAAdA,YAAYA,GAAQ;AAClB;GACD;AACDH,EAAAA,aAAa,EAAE,KAAA;AACjB,CAAC,EAAC;;AAEF;AACA,IAAMI,YAAY,GAAG,SAAfA,YAAYA,GAAA;AAAA,EAAA,OAA+BT,cAAK,CAACU,UAAU,CAACX,gBAAgB,CAAC,CAAA;AAAA,EAAA;AACnF,IAAMY,WAAW,GAAG,SAAdA,WAAWA,GAAA;AAAA,EAAA,OAA8BX,cAAK,CAACU,UAAU,CAACJ,eAAe,CAAC,CAAA;AAAA;;;;"}
@@ -95,7 +95,7 @@ var _AnimatedBaseInputWrapper = function _AnimatedBaseInputWrapper(_ref, ref) {
95
95
  onAnimationEnd: function onAnimationEnd(e) {
96
96
  if (!showAllTags && e.animationName === collapseAnimation.getName()) {
97
97
  // Triggered for the collapse animation
98
- setShowAllTagsWithAnimation === null || setShowAllTagsWithAnimation === void 0 ? void 0 : setShowAllTagsWithAnimation(false);
98
+ setShowAllTagsWithAnimation === null || setShowAllTagsWithAnimation === void 0 || setShowAllTagsWithAnimation(false);
99
99
  }
100
100
  },
101
101
  isTableInputCell: rest.isTableInputCell,
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedBaseInputWrapper.web.js","sources":["../../../../../../../src/components/Input/BaseInput/AnimatedBaseInputWrapper.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { FlattenSimpleInterpolation } from 'styled-components';\nimport styled, { css, keyframes } from 'styled-components';\nimport type { BaseInputWrapperProps } from './types';\nimport {\n getAnimatedBaseInputWrapperMaxHeight,\n getInputBackgroundAndBorderStyles,\n} from './baseInputStyles';\nimport { baseInputHeight, baseInputWrapperMaxHeight } from './baseInputTokens';\nimport BaseBox from '~components/Box/BaseBox';\nimport { motion } from '~tokens/global';\nimport { castWebType, makeMotionTime, makeSize, makeSpace } from '~utils';\nimport type { BladeElementRef } from '~utils/types';\n\nconst StyledBaseInputWrapper = styled(BaseBox)<\n Pick<\n BaseInputWrapperProps,\n | 'currentInteraction'\n | 'isDisabled'\n | 'validationState'\n | 'isTextArea'\n | 'isDropdownTrigger'\n | 'maxTagRows'\n | 'isTableInputCell'\n >\n>((props) => ({\n ...getInputBackgroundAndBorderStyles({\n theme: props.theme,\n isFocused: props.currentInteraction === 'focus',\n isDisabled: props.isDisabled,\n validationState: props.validationState,\n isTextArea: props.isTextArea,\n isDropdownTrigger: props.isDropdownTrigger,\n isTableInputCell: props.isTableInputCell,\n }),\n '&:hover': {\n ...getInputBackgroundAndBorderStyles({\n theme: props.theme,\n isHovered: true,\n isFocused: props.currentInteraction === 'focus',\n isDisabled: props.isDisabled,\n validationState: props.validationState,\n isDropdownTrigger: props.isDropdownTrigger,\n isTextArea: props.isTextArea,\n isTableInputCell: props.isTableInputCell,\n }),\n transitionProperty: 'background-color',\n transitionDuration: castWebType(makeMotionTime(props.theme.motion.duration.xquick)),\n transitionTimingFunction: castWebType(props.theme.motion.easing.standard),\n },\n ':focus-within': {\n ...getInputBackgroundAndBorderStyles({\n theme: props.theme,\n isFocused: props.currentInteraction === 'focus',\n isDisabled: props.isDisabled,\n validationState: props.validationState,\n isDropdownTrigger: props.isDropdownTrigger,\n isTextArea: props.isTextArea,\n isTableInputCell: props.isTableInputCell,\n }),\n },\n}));\n\n// Styled component with animation\nconst StyledAnimatedBaseInputWrapper = styled(StyledBaseInputWrapper)<{\n transition?: FlattenSimpleInterpolation;\n maxTagRows: BaseInputWrapperProps['maxTagRows'];\n showAllTags: BaseInputWrapperProps['showAllTags'];\n isDropdownTrigger: BaseInputWrapperProps['isDropdownTrigger'];\n size: NonNullable<BaseInputWrapperProps['size']>;\n}>((props) =>\n props.isDropdownTrigger && !props.isTableInputCell\n ? css`\n ${props.transition};\n max-height: ${makeSize(\n getAnimatedBaseInputWrapperMaxHeight({\n maxTagRows: props.maxTagRows,\n showAllTags: props.showAllTags,\n size: props.size,\n }),\n )};\n `\n : undefined,\n);\n\nconst _AnimatedBaseInputWrapper: React.ForwardRefRenderFunction<\n BladeElementRef,\n BaseInputWrapperProps & {\n showAllTags?: boolean;\n }\n> = (\n { showAllTags, setShowAllTagsWithAnimation, maxTagRows, isDropdownTrigger, ...rest },\n ref,\n): React.ReactElement => {\n // Define the animation keyframes\n const expandAnimation = keyframes`\nfrom {\n max-height: ${makeSize(baseInputHeight[rest.size])};\n}\nto {\n max-height: ${makeSize(baseInputWrapperMaxHeight[rest.size])};\n}\n`;\n\n const collapseAnimation = keyframes`\nfrom {\n max-height: ${makeSize(baseInputWrapperMaxHeight[rest.size])};\n}\nto {\n max-height: ${makeSize(baseInputHeight[rest.size])};\n}\n`;\n\n const expandTransition = css`\n animation: ${expandAnimation} ${makeMotionTime(motion.duration.quick)}\n ${String(motion.easing.entrance)};\n `;\n\n const collapseTransition = css`\n animation: ${collapseAnimation} ${makeMotionTime(motion.duration.quick)}\n ${String(motion.easing.exit)};\n `;\n\n const noTransition = css`\n animation: none;\n `;\n return (\n <StyledAnimatedBaseInputWrapper\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref={ref as any}\n {...rest}\n transition={\n maxTagRows !== 'expandable'\n ? noTransition\n : showAllTags\n ? expandTransition\n : collapseTransition\n }\n height={\n rest.isTextArea && isDropdownTrigger\n ? makeSpace((rest.numberOfLines ?? 0) * baseInputHeight[rest.size])\n : undefined\n }\n cursor={rest.isTextArea && isDropdownTrigger ? 'text' : undefined}\n isDropdownTrigger={isDropdownTrigger}\n showAllTags={showAllTags}\n maxTagRows={maxTagRows}\n onAnimationEnd={(e) => {\n if (!showAllTags && e.animationName === collapseAnimation.getName()) {\n // Triggered for the collapse animation\n setShowAllTagsWithAnimation?.(false);\n }\n }}\n isTableInputCell={rest.isTableInputCell}\n className=\"__blade-base-input-wrapper\"\n />\n );\n};\n\nconst AnimatedBaseInputWrapper = React.forwardRef(_AnimatedBaseInputWrapper);\n\nexport { AnimatedBaseInputWrapper };\n"],"names":["StyledBaseInputWrapper","styled","BaseBox","withConfig","displayName","componentId","props","_objectSpread","getInputBackgroundAndBorderStyles","theme","isFocused","currentInteraction","isDisabled","validationState","isTextArea","isDropdownTrigger","isTableInputCell","isHovered","transitionProperty","transitionDuration","castWebType","makeMotionTime","motion","duration","xquick","transitionTimingFunction","easing","standard","StyledAnimatedBaseInputWrapper","css","transition","makeSize","getAnimatedBaseInputWrapperMaxHeight","maxTagRows","showAllTags","size","undefined","_AnimatedBaseInputWrapper","_ref","ref","_rest$numberOfLines","setShowAllTagsWithAnimation","rest","_objectWithoutProperties","_excluded","expandAnimation","keyframes","baseInputHeight","baseInputWrapperMaxHeight","collapseAnimation","expandTransition","quick","String","entrance","collapseTransition","exit","noTransition","_jsx","height","makeSpace","numberOfLines","cursor","onAnimationEnd","e","animationName","getName","className","AnimatedBaseInputWrapper","React","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcA,IAAMA,sBAAsB,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,qDAAA;EAAAC,WAAA,EAAA,UAAA;AAAA,CAAA,CAAA,CAW5C,UAACC,KAAK,EAAA;AAAA,EAAA,OAAAC,aAAA,CAAAA,aAAA,CAAA,EAAA,EACHC,iCAAiC,CAAC;IACnCC,KAAK,EAAEH,KAAK,CAACG,KAAK;AAClBC,IAAAA,SAAS,EAAEJ,KAAK,CAACK,kBAAkB,KAAK,OAAO;IAC/CC,UAAU,EAAEN,KAAK,CAACM,UAAU;IAC5BC,eAAe,EAAEP,KAAK,CAACO,eAAe;IACtCC,U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,mBAAA,KAAAA,KAAAA,CAAAA,GAAAA,mBAAA,GAAI,CAAC,IAAIO,eAAe,CAACL,IAAI,CAACP,IAAI,CAAC,CAAC,GACjEC,SACL;IACDyB,MAAM,EAAEnB,IAAI,CAAC5B,UAAU,IAAIC,iBAAiB,GAAG,MAAM,GAAGqB,SAAU;AAClErB,IAAAA,iBAAiB,EAAEA,iBAAkB;AACrCmB,IAAAA,WAAW,EAAEA,WAAY;AACzBD,IAAAA,UAAU,EAAEA,UAAW;AACvB6B,IAAAA,cAAc,EAAE,SAAAA,cAACC,CAAAA,CAAC,EAAK;AACrB,MAAA,IAAI,CAAC7B,WAAW,IAAI6B,CAAC,CAACC,aAAa,KAAKf,iBAAiB,CAACgB,OAAO,EAAE,EAAE;AACnE;AACAxB,QAAAA,2BAA2B,aAA3BA,2BAA2B,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAA3BA,2BAA2B,CAAG,KAAK,CAAC,CAAA;AACtC,OAAA;KACA;IACFzB,gBAAgB,EAAE0B,IAAI,CAAC1B,gBAAiB;AACxCkD,IAAAA,SAAS,EAAC,4BAAA;AAA4B,GAAA,CACvC,CAAC,CAAA;AAEN,CAAC,CAAA;AAED,IAAMC,wBAAwB,gBAAGC,cAAK,CAACC,UAAU,CAAChC,yBAAyB;;;;"}
1
+ {"version":3,"file":"AnimatedBaseInputWrapper.web.js","sources":["../../../../../../../src/components/Input/BaseInput/AnimatedBaseInputWrapper.web.tsx"],"sourcesContent":["import React from 'react';\nimport type { FlattenSimpleInterpolation } from 'styled-components';\nimport styled, { css, keyframes } from 'styled-components';\nimport type { BaseInputWrapperProps } from './types';\nimport {\n getAnimatedBaseInputWrapperMaxHeight,\n getInputBackgroundAndBorderStyles,\n} from './baseInputStyles';\nimport { baseInputHeight, baseInputWrapperMaxHeight } from './baseInputTokens';\nimport BaseBox from '~components/Box/BaseBox';\nimport { motion } from '~tokens/global';\nimport { castWebType, makeMotionTime, makeSize, makeSpace } from '~utils';\nimport type { BladeElementRef } from '~utils/types';\n\nconst StyledBaseInputWrapper = styled(BaseBox)<\n Pick<\n BaseInputWrapperProps,\n | 'currentInteraction'\n | 'isDisabled'\n | 'validationState'\n | 'isTextArea'\n | 'isDropdownTrigger'\n | 'maxTagRows'\n | 'isTableInputCell'\n >\n>((props) => ({\n ...getInputBackgroundAndBorderStyles({\n theme: props.theme,\n isFocused: props.currentInteraction === 'focus',\n isDisabled: props.isDisabled,\n validationState: props.validationState,\n isTextArea: props.isTextArea,\n isDropdownTrigger: props.isDropdownTrigger,\n isTableInputCell: props.isTableInputCell,\n }),\n '&:hover': {\n ...getInputBackgroundAndBorderStyles({\n theme: props.theme,\n isHovered: true,\n isFocused: props.currentInteraction === 'focus',\n isDisabled: props.isDisabled,\n validationState: props.validationState,\n isDropdownTrigger: props.isDropdownTrigger,\n isTextArea: props.isTextArea,\n isTableInputCell: props.isTableInputCell,\n }),\n transitionProperty: 'background-color',\n transitionDuration: castWebType(makeMotionTime(props.theme.motion.duration.xquick)),\n transitionTimingFunction: castWebType(props.theme.motion.easing.standard),\n },\n ':focus-within': {\n ...getInputBackgroundAndBorderStyles({\n theme: props.theme,\n isFocused: props.currentInteraction === 'focus',\n isDisabled: props.isDisabled,\n validationState: props.validationState,\n isDropdownTrigger: props.isDropdownTrigger,\n isTextArea: props.isTextArea,\n isTableInputCell: props.isTableInputCell,\n }),\n },\n}));\n\n// Styled component with animation\nconst StyledAnimatedBaseInputWrapper = styled(StyledBaseInputWrapper)<{\n transition?: FlattenSimpleInterpolation;\n maxTagRows: BaseInputWrapperProps['maxTagRows'];\n showAllTags: BaseInputWrapperProps['showAllTags'];\n isDropdownTrigger: BaseInputWrapperProps['isDropdownTrigger'];\n size: NonNullable<BaseInputWrapperProps['size']>;\n}>((props) =>\n props.isDropdownTrigger && !props.isTableInputCell\n ? css`\n ${props.transition};\n max-height: ${makeSize(\n getAnimatedBaseInputWrapperMaxHeight({\n maxTagRows: props.maxTagRows,\n showAllTags: props.showAllTags,\n size: props.size,\n }),\n )};\n `\n : undefined,\n);\n\nconst _AnimatedBaseInputWrapper: React.ForwardRefRenderFunction<\n BladeElementRef,\n BaseInputWrapperProps & {\n showAllTags?: boolean;\n }\n> = (\n { showAllTags, setShowAllTagsWithAnimation, maxTagRows, isDropdownTrigger, ...rest },\n ref,\n): React.ReactElement => {\n // Define the animation keyframes\n const expandAnimation = keyframes`\nfrom {\n max-height: ${makeSize(baseInputHeight[rest.size])};\n}\nto {\n max-height: ${makeSize(baseInputWrapperMaxHeight[rest.size])};\n}\n`;\n\n const collapseAnimation = keyframes`\nfrom {\n max-height: ${makeSize(baseInputWrapperMaxHeight[rest.size])};\n}\nto {\n max-height: ${makeSize(baseInputHeight[rest.size])};\n}\n`;\n\n const expandTransition = css`\n animation: ${expandAnimation} ${makeMotionTime(motion.duration.quick)}\n ${String(motion.easing.entrance)};\n `;\n\n const collapseTransition = css`\n animation: ${collapseAnimation} ${makeMotionTime(motion.duration.quick)}\n ${String(motion.easing.exit)};\n `;\n\n const noTransition = css`\n animation: none;\n `;\n return (\n <StyledAnimatedBaseInputWrapper\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref={ref as any}\n {...rest}\n transition={\n maxTagRows !== 'expandable'\n ? noTransition\n : showAllTags\n ? expandTransition\n : collapseTransition\n }\n height={\n rest.isTextArea && isDropdownTrigger\n ? makeSpace((rest.numberOfLines ?? 0) * baseInputHeight[rest.size])\n : undefined\n }\n cursor={rest.isTextArea && isDropdownTrigger ? 'text' : undefined}\n isDropdownTrigger={isDropdownTrigger}\n showAllTags={showAllTags}\n maxTagRows={maxTagRows}\n onAnimationEnd={(e) => {\n if (!showAllTags && e.animationName === collapseAnimation.getName()) {\n // Triggered for the collapse animation\n setShowAllTagsWithAnimation?.(false);\n }\n }}\n isTableInputCell={rest.isTableInputCell}\n className=\"__blade-base-input-wrapper\"\n />\n );\n};\n\nconst AnimatedBaseInputWrapper = React.forwardRef(_AnimatedBaseInputWrapper);\n\nexport { AnimatedBaseInputWrapper };\n"],"names":["StyledBaseInputWrapper","styled","BaseBox","withConfig","displayName","componentId","props","_objectSpread","getInputBackgroundAndBorderStyles","theme","isFocused","currentInteraction","isDisabled","validationState","isTextArea","isDropdownTrigger","isTableInputCell","isHovered","transitionProperty","transitionDuration","castWebType","makeMotionTime","motion","duration","xquick","transitionTimingFunction","easing","standard","StyledAnimatedBaseInputWrapper","css","transition","makeSize","getAnimatedBaseInputWrapperMaxHeight","maxTagRows","showAllTags","size","undefined","_AnimatedBaseInputWrapper","_ref","ref","_rest$numberOfLines","setShowAllTagsWithAnimation","rest","_objectWithoutProperties","_excluded","expandAnimation","keyframes","baseInputHeight","baseInputWrapperMaxHeight","collapseAnimation","expandTransition","quick","String","entrance","collapseTransition","exit","noTransition","_jsx","height","makeSpace","numberOfLines","cursor","onAnimationEnd","e","animationName","getName","className","AnimatedBaseInputWrapper","React","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcA,IAAMA,sBAAsB,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,qDAAA;EAAAC,WAAA,EAAA,UAAA;AAAA,CAAA,CAAA,CAW5C,UAACC,KAAK,EAAA;AAAA,EAAA,OAAAC,aAAA,CAAAA,aAAA,CAAA,EAAA,EACHC,iCAAiC,CAAC;IACnCC,KAAK,EAAEH,KAAK,CAACG,KAAK;AAClBC,IAAAA,SAAS,EAAEJ,KAAK,CAACK,kBAAkB,KAAK,OAAO;IAC/CC,UAAU,EAAEN,KAAK,CAACM,UAAU;IAC5BC,eAAe,EAAEP,KAAK,CAACO,eAAe;IACtCC,UAAU,EAAER,KAAK,CAACQ,UAAU;IAC5BC,iBAAiB,EAAET,KAAK,CAACS,iBAAiB;IAC1CC,gBAAgB,EAAEV,KAAK,CAACU,gBAAAA;AAC1B,GAAC,CAAC,CAAA,EAAA,EAAA,EAAA;AACF,IAAA,SAAS,EAAAT,aAAA,CAAAA,aAAA,CAAA,EAAA,EACJC,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