@razorpay/blade 11.36.2 → 11.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/build/lib/native/components/Accordion/Accordion.js +2 -1
  2. package/build/lib/native/components/Accordion/Accordion.js.map +1 -1
  3. package/build/lib/native/components/Accordion/AccordionItem.js +3 -1
  4. package/build/lib/native/components/Accordion/AccordionItem.js.map +1 -1
  5. package/build/lib/native/components/Accordion/AccordionItemBody.js +3 -2
  6. package/build/lib/native/components/Accordion/AccordionItemBody.js.map +1 -1
  7. package/build/lib/native/components/Accordion/AccordionItemHeader.js +3 -2
  8. package/build/lib/native/components/Accordion/AccordionItemHeader.js.map +1 -1
  9. package/build/lib/native/components/ActionList/ActionList.js +3 -1
  10. package/build/lib/native/components/ActionList/ActionList.js.map +1 -1
  11. package/build/lib/native/components/ActionList/ActionListItem.js +3 -2
  12. package/build/lib/native/components/ActionList/ActionListItem.js.map +1 -1
  13. package/build/lib/native/components/Alert/Alert.js +2 -1
  14. package/build/lib/native/components/Alert/Alert.js.map +1 -1
  15. package/build/lib/native/components/Amount/Amount.js +2 -1
  16. package/build/lib/native/components/Amount/Amount.js.map +1 -1
  17. package/build/lib/native/components/Badge/Badge.js +2 -1
  18. package/build/lib/native/components/Badge/Badge.js.map +1 -1
  19. package/build/lib/native/components/BaseHeaderFooter/BaseFooter.js +3 -1
  20. package/build/lib/native/components/BaseHeaderFooter/BaseFooter.js.map +1 -1
  21. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js +3 -2
  22. package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  23. package/build/lib/native/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  24. package/build/lib/native/components/Box/Box.js +2 -1
  25. package/build/lib/native/components/Box/Box.js.map +1 -1
  26. package/build/lib/native/components/Button/BaseButton/BaseButton.js +2 -1
  27. package/build/lib/native/components/Button/BaseButton/BaseButton.js.map +1 -1
  28. package/build/lib/native/components/Button/Button/Button.js +2 -1
  29. package/build/lib/native/components/Button/Button/Button.js.map +1 -1
  30. package/build/lib/native/components/Button/IconButton/IconButton.js +3 -1
  31. package/build/lib/native/components/Button/IconButton/IconButton.js.map +1 -1
  32. package/build/lib/native/components/Card/Card.js +2 -1
  33. package/build/lib/native/components/Card/Card.js.map +1 -1
  34. package/build/lib/native/components/Card/CardFooter.js +3 -2
  35. package/build/lib/native/components/Card/CardFooter.js.map +1 -1
  36. package/build/lib/native/components/Card/CardHeader.js +3 -2
  37. package/build/lib/native/components/Card/CardHeader.js.map +1 -1
  38. package/build/lib/native/components/Checkbox/Checkbox.js +3 -2
  39. package/build/lib/native/components/Checkbox/Checkbox.js.map +1 -1
  40. package/build/lib/native/components/Checkbox/CheckboxGroup/CheckboxGroup.js +2 -1
  41. package/build/lib/native/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  42. package/build/lib/native/components/Chip/Chip.js +2 -1
  43. package/build/lib/native/components/Chip/Chip.js.map +1 -1
  44. package/build/lib/native/components/Chip/ChipGroup.js +2 -1
  45. package/build/lib/native/components/Chip/ChipGroup.js.map +1 -1
  46. package/build/lib/native/components/Collapsible/Collapsible.js +2 -1
  47. package/build/lib/native/components/Collapsible/Collapsible.js.map +1 -1
  48. package/build/lib/native/components/Collapsible/CollapsibleBody.js +3 -1
  49. package/build/lib/native/components/Collapsible/CollapsibleBody.js.map +1 -1
  50. package/build/lib/native/components/Collapsible/CollapsibleButton.js +3 -1
  51. package/build/lib/native/components/Collapsible/CollapsibleButton.js.map +1 -1
  52. package/build/lib/native/components/Collapsible/CollapsibleLink.js +2 -1
  53. package/build/lib/native/components/Collapsible/CollapsibleLink.js.map +1 -1
  54. package/build/lib/native/components/Counter/Counter.js +2 -1
  55. package/build/lib/native/components/Counter/Counter.js.map +1 -1
  56. package/build/lib/native/components/Dropdown/Dropdown.js +2 -1
  57. package/build/lib/native/components/Dropdown/Dropdown.js.map +1 -1
  58. package/build/lib/native/components/Dropdown/DropdownButton.js +1 -1
  59. package/build/lib/native/components/Dropdown/DropdownButton.js.map +1 -1
  60. package/build/lib/native/components/Dropdown/DropdownHeaderFooter.js +3 -1
  61. package/build/lib/native/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  62. package/build/lib/native/components/Dropdown/DropdownLink.js +2 -1
  63. package/build/lib/native/components/Dropdown/DropdownLink.js.map +1 -1
  64. package/build/lib/native/components/Form/Selector/SelectorGroupField.js +3 -1
  65. package/build/lib/native/components/Form/Selector/SelectorGroupField.js.map +1 -1
  66. package/build/lib/native/components/Icons/IndiaFlagIcon/IndiaFlagIcon.js +12 -0
  67. package/build/lib/native/components/Icons/IndiaFlagIcon/IndiaFlagIcon.js.map +1 -0
  68. package/build/lib/native/components/Icons/MagicKonnectIcon/MagicKonnectIcon.js +12 -0
  69. package/build/lib/native/components/Icons/MagicKonnectIcon/MagicKonnectIcon.js.map +1 -0
  70. package/build/lib/native/components/Icons/WorldwideIcon/WorldwideIcon.js +12 -0
  71. package/build/lib/native/components/Icons/WorldwideIcon/WorldwideIcon.js.map +1 -0
  72. package/build/lib/native/components/Indicator/Indicator.js +2 -1
  73. package/build/lib/native/components/Indicator/Indicator.js.map +1 -1
  74. package/build/lib/native/components/Input/BaseInput/BaseInput.js +2 -1
  75. package/build/lib/native/components/Input/BaseInput/BaseInput.js.map +1 -1
  76. package/build/lib/native/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +2 -1
  77. package/build/lib/native/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  78. package/build/lib/native/components/Input/DropdownInputTriggers/SelectInput.js +2 -1
  79. package/build/lib/native/components/Input/DropdownInputTriggers/SelectInput.js.map +1 -1
  80. package/build/lib/native/components/Input/OTPInput/OTPInput.js +2 -1
  81. package/build/lib/native/components/Input/OTPInput/OTPInput.js.map +1 -1
  82. package/build/lib/native/components/Input/PasswordInput/PasswordInput.js +1 -1
  83. package/build/lib/native/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  84. package/build/lib/native/components/Input/SearchInput/SearchInput.js +1 -1
  85. package/build/lib/native/components/Input/SearchInput/SearchInput.js.map +1 -1
  86. package/build/lib/native/components/Input/TextArea/TextArea.js +1 -1
  87. package/build/lib/native/components/Input/TextArea/TextArea.js.map +1 -1
  88. package/build/lib/native/components/Input/TextInput/TextInput.js +1 -1
  89. package/build/lib/native/components/Input/TextInput/TextInput.js.map +1 -1
  90. package/build/lib/native/components/Link/BaseLink/BaseLink.js +2 -1
  91. package/build/lib/native/components/Link/BaseLink/BaseLink.js.map +1 -1
  92. package/build/lib/native/components/Link/Link/Link.js +2 -1
  93. package/build/lib/native/components/Link/Link/Link.js.map +1 -1
  94. package/build/lib/native/components/ProgressBar/ProgressBar.js +2 -1
  95. package/build/lib/native/components/ProgressBar/ProgressBar.js.map +1 -1
  96. package/build/lib/native/components/Radio/Radio.js +2 -1
  97. package/build/lib/native/components/Radio/Radio.js.map +1 -1
  98. package/build/lib/native/components/Radio/RadioGroup/RadioGroup.js +2 -1
  99. package/build/lib/native/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  100. package/build/lib/native/components/StepGroup/tokens.js +1 -1
  101. package/build/lib/native/components/StepGroup/tokens.js.map +1 -1
  102. package/build/lib/native/components/Switch/Switch.js +2 -1
  103. package/build/lib/native/components/Switch/Switch.js.map +1 -1
  104. package/build/lib/native/components/Tag/Tag.js +2 -1
  105. package/build/lib/native/components/Tag/Tag.js.map +1 -1
  106. package/build/lib/native/components/index.js +3 -0
  107. package/build/lib/native/components/index.js.map +1 -1
  108. package/build/lib/native/tokens/global/size.js +1 -1
  109. package/build/lib/native/tokens/global/size.js.map +1 -1
  110. package/build/lib/native/utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js +7 -0
  111. package/build/lib/native/utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js.map +1 -0
  112. package/build/lib/web/development/components/Accordion/Accordion.js +5 -3
  113. package/build/lib/web/development/components/Accordion/Accordion.js.map +1 -1
  114. package/build/lib/web/development/components/Accordion/AccordionButton.web.js +8 -3
  115. package/build/lib/web/development/components/Accordion/AccordionButton.web.js.map +1 -1
  116. package/build/lib/web/development/components/Accordion/AccordionItem.js +8 -3
  117. package/build/lib/web/development/components/Accordion/AccordionItem.js.map +1 -1
  118. package/build/lib/web/development/components/Accordion/AccordionItemBody.js +8 -3
  119. package/build/lib/web/development/components/Accordion/AccordionItemBody.js.map +1 -1
  120. package/build/lib/web/development/components/Accordion/AccordionItemHeader.js +10 -4
  121. package/build/lib/web/development/components/Accordion/AccordionItemHeader.js.map +1 -1
  122. package/build/lib/web/development/components/ActionList/ActionList.js +9 -4
  123. package/build/lib/web/development/components/ActionList/ActionList.js.map +1 -1
  124. package/build/lib/web/development/components/ActionList/ActionListBox.web.js +8 -3
  125. package/build/lib/web/development/components/ActionList/ActionListBox.web.js.map +1 -1
  126. package/build/lib/web/development/components/ActionList/ActionListItem.js +10 -5
  127. package/build/lib/web/development/components/ActionList/ActionListItem.js.map +1 -1
  128. package/build/lib/web/development/components/Alert/Alert.js +5 -3
  129. package/build/lib/web/development/components/Alert/Alert.js.map +1 -1
  130. package/build/lib/web/development/components/Amount/Amount.js +5 -8
  131. package/build/lib/web/development/components/Amount/Amount.js.map +1 -1
  132. package/build/lib/web/development/components/Avatar/Avatar.web.js +5 -3
  133. package/build/lib/web/development/components/Avatar/Avatar.web.js.map +1 -1
  134. package/build/lib/web/development/components/Avatar/AvatarGroup.web.js +5 -3
  135. package/build/lib/web/development/components/Avatar/AvatarGroup.web.js.map +1 -1
  136. package/build/lib/web/development/components/Badge/Badge.js +5 -3
  137. package/build/lib/web/development/components/Badge/Badge.js.map +1 -1
  138. package/build/lib/web/development/components/BaseHeaderFooter/BaseFooter.js +8 -3
  139. package/build/lib/web/development/components/BaseHeaderFooter/BaseFooter.js.map +1 -1
  140. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js +8 -3
  141. package/build/lib/web/development/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  142. package/build/lib/web/development/components/BottomNav/BottomNav.web.js +12 -8
  143. package/build/lib/web/development/components/BottomNav/BottomNav.web.js.map +1 -1
  144. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js +9 -3
  145. package/build/lib/web/development/components/BottomSheet/BottomSheet.web.js.map +1 -1
  146. package/build/lib/web/development/components/BottomSheet/BottomSheetBody.web.js +8 -3
  147. package/build/lib/web/development/components/BottomSheet/BottomSheetBody.web.js.map +1 -1
  148. package/build/lib/web/development/components/BottomSheet/BottomSheetFooter.web.js +8 -3
  149. package/build/lib/web/development/components/BottomSheet/BottomSheetFooter.web.js.map +1 -1
  150. package/build/lib/web/development/components/BottomSheet/BottomSheetHeader.web.js +8 -3
  151. package/build/lib/web/development/components/BottomSheet/BottomSheetHeader.web.js.map +1 -1
  152. package/build/lib/web/development/components/Box/BaseBox/BaseBox.web.js +4 -2
  153. package/build/lib/web/development/components/Box/BaseBox/BaseBox.web.js.map +1 -1
  154. package/build/lib/web/development/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  155. package/build/lib/web/development/components/Box/Box.js +4 -2
  156. package/build/lib/web/development/components/Box/Box.js.map +1 -1
  157. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js +6 -4
  158. package/build/lib/web/development/components/Breadcrumb/Breadcrumb.web.js.map +1 -1
  159. package/build/lib/web/development/components/Breadcrumb/BreadcrumbItem.web.js +13 -4
  160. package/build/lib/web/development/components/Breadcrumb/BreadcrumbItem.web.js.map +1 -1
  161. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js +4 -2
  162. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js.map +1 -1
  163. package/build/lib/web/development/components/Button/Button/Button.js +4 -2
  164. package/build/lib/web/development/components/Button/Button/Button.js.map +1 -1
  165. package/build/lib/web/development/components/Button/IconButton/IconButton.js +11 -5
  166. package/build/lib/web/development/components/Button/IconButton/IconButton.js.map +1 -1
  167. package/build/lib/web/development/components/Button/IconButton/StyledIconButton.web.js +8 -3
  168. package/build/lib/web/development/components/Button/IconButton/StyledIconButton.web.js.map +1 -1
  169. package/build/lib/web/development/components/ButtonGroup/ButtonGroup.web.js +5 -3
  170. package/build/lib/web/development/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  171. package/build/lib/web/development/components/Card/Card.js +11 -7
  172. package/build/lib/web/development/components/Card/Card.js.map +1 -1
  173. package/build/lib/web/development/components/Card/CardFooter.js +22 -11
  174. package/build/lib/web/development/components/Card/CardFooter.js.map +1 -1
  175. package/build/lib/web/development/components/Card/CardHeader.js +13 -6
  176. package/build/lib/web/development/components/Card/CardHeader.js.map +1 -1
  177. package/build/lib/web/development/components/Carousel/Carousel.web.js +5 -3
  178. package/build/lib/web/development/components/Carousel/Carousel.web.js.map +1 -1
  179. package/build/lib/web/development/components/Carousel/CarouselItem.web.js +9 -3
  180. package/build/lib/web/development/components/Carousel/CarouselItem.web.js.map +1 -1
  181. package/build/lib/web/development/components/Checkbox/Checkbox.js +6 -4
  182. package/build/lib/web/development/components/Checkbox/Checkbox.js.map +1 -1
  183. package/build/lib/web/development/components/Checkbox/CheckboxGroup/CheckboxGroup.js +8 -5
  184. package/build/lib/web/development/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  185. package/build/lib/web/development/components/Chip/Chip.js +5 -3
  186. package/build/lib/web/development/components/Chip/Chip.js.map +1 -1
  187. package/build/lib/web/development/components/Chip/ChipGroup.js +8 -5
  188. package/build/lib/web/development/components/Chip/ChipGroup.js.map +1 -1
  189. package/build/lib/web/development/components/Collapsible/Collapsible.js +5 -3
  190. package/build/lib/web/development/components/Collapsible/Collapsible.js.map +1 -1
  191. package/build/lib/web/development/components/Collapsible/CollapsibleBody.js +8 -3
  192. package/build/lib/web/development/components/Collapsible/CollapsibleBody.js.map +1 -1
  193. package/build/lib/web/development/components/Collapsible/CollapsibleButton.js +13 -4
  194. package/build/lib/web/development/components/Collapsible/CollapsibleButton.js.map +1 -1
  195. package/build/lib/web/development/components/Collapsible/CollapsibleLink.js +5 -3
  196. package/build/lib/web/development/components/Collapsible/CollapsibleLink.js.map +1 -1
  197. package/build/lib/web/development/components/Counter/Counter.js +5 -3
  198. package/build/lib/web/development/components/Counter/Counter.js.map +1 -1
  199. package/build/lib/web/development/components/DatePicker/DateInput.web.js +11 -7
  200. package/build/lib/web/development/components/DatePicker/DateInput.web.js.map +1 -1
  201. package/build/lib/web/development/components/DatePicker/DatePicker.web.js +4 -2
  202. package/build/lib/web/development/components/DatePicker/DatePicker.web.js.map +1 -1
  203. package/build/lib/web/development/components/Drawer/Drawer.web.js +8 -3
  204. package/build/lib/web/development/components/Drawer/Drawer.web.js.map +1 -1
  205. package/build/lib/web/development/components/Drawer/DrawerSubcomponents.web.js +11 -3
  206. package/build/lib/web/development/components/Drawer/DrawerSubcomponents.web.js.map +1 -1
  207. package/build/lib/web/development/components/Dropdown/Dropdown.js +5 -3
  208. package/build/lib/web/development/components/Dropdown/Dropdown.js.map +1 -1
  209. package/build/lib/web/development/components/Dropdown/DropdownButton.js +2 -2
  210. package/build/lib/web/development/components/Dropdown/DropdownButton.js.map +1 -1
  211. package/build/lib/web/development/components/Dropdown/DropdownHeaderFooter.js +8 -3
  212. package/build/lib/web/development/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  213. package/build/lib/web/development/components/Dropdown/DropdownLink.js +5 -3
  214. package/build/lib/web/development/components/Dropdown/DropdownLink.js.map +1 -1
  215. package/build/lib/web/development/components/FileUpload/FileUpload.web.js +6 -4
  216. package/build/lib/web/development/components/FileUpload/FileUpload.web.js.map +1 -1
  217. package/build/lib/web/development/components/Form/Selector/SelectorGroupField.js +8 -3
  218. package/build/lib/web/development/components/Form/Selector/SelectorGroupField.js.map +1 -1
  219. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js +8 -3
  220. package/build/lib/web/development/components/Form/Selector/SelectorInput.web.js.map +1 -1
  221. package/build/lib/web/development/components/Icons/IndiaFlagIcon/IndiaFlagIcon.js +39 -0
  222. package/build/lib/web/development/components/Icons/IndiaFlagIcon/IndiaFlagIcon.js.map +1 -0
  223. package/build/lib/web/development/components/Icons/IndiaFlagIcon/index.js +2 -0
  224. package/build/lib/web/development/components/Icons/IndiaFlagIcon/index.js.map +1 -0
  225. package/build/lib/web/development/components/Icons/MagicKonnectIcon/MagicKonnectIcon.js +49 -0
  226. package/build/lib/web/development/components/Icons/MagicKonnectIcon/MagicKonnectIcon.js.map +1 -0
  227. package/build/lib/web/development/components/Icons/MagicKonnectIcon/index.js +2 -0
  228. package/build/lib/web/development/components/Icons/MagicKonnectIcon/index.js.map +1 -0
  229. package/build/lib/web/development/components/Icons/WorldwideIcon/WorldwideIcon.js +39 -0
  230. package/build/lib/web/development/components/Icons/WorldwideIcon/WorldwideIcon.js.map +1 -0
  231. package/build/lib/web/development/components/Icons/WorldwideIcon/index.js +2 -0
  232. package/build/lib/web/development/components/Icons/WorldwideIcon/index.js.map +1 -0
  233. package/build/lib/web/development/components/Icons/index.js +3 -0
  234. package/build/lib/web/development/components/Icons/index.js.map +1 -1
  235. package/build/lib/web/development/components/Indicator/Indicator.js +5 -3
  236. package/build/lib/web/development/components/Indicator/Indicator.js.map +1 -1
  237. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js +6 -4
  238. package/build/lib/web/development/components/Input/BaseInput/BaseInput.js.map +1 -1
  239. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +5 -2
  240. package/build/lib/web/development/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  241. package/build/lib/web/development/components/Input/DropdownInputTriggers/SelectInput.js +5 -3
  242. package/build/lib/web/development/components/Input/DropdownInputTriggers/SelectInput.js.map +1 -1
  243. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js +6 -4
  244. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js.map +1 -1
  245. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js +2 -2
  246. package/build/lib/web/development/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  247. package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +2 -2
  248. package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
  249. package/build/lib/web/development/components/Input/SearchInput/SearchInput.js +2 -2
  250. package/build/lib/web/development/components/Input/SearchInput/SearchInput.js.map +1 -1
  251. package/build/lib/web/development/components/Input/TextArea/TextArea.js +2 -2
  252. package/build/lib/web/development/components/Input/TextArea/TextArea.js.map +1 -1
  253. package/build/lib/web/development/components/Input/TextInput/TextInput.js +2 -2
  254. package/build/lib/web/development/components/Input/TextInput/TextInput.js.map +1 -1
  255. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js +5 -3
  256. package/build/lib/web/development/components/Link/BaseLink/BaseLink.js.map +1 -1
  257. package/build/lib/web/development/components/Link/Link/Link.js +4 -2
  258. package/build/lib/web/development/components/Link/Link/Link.js.map +1 -1
  259. package/build/lib/web/development/components/Menu/VisualSubComponents/MenuHeaderFooter.web.js +18 -8
  260. package/build/lib/web/development/components/Menu/VisualSubComponents/MenuHeaderFooter.web.js.map +1 -1
  261. package/build/lib/web/development/components/Modal/Modal.web.js +10 -4
  262. package/build/lib/web/development/components/Modal/Modal.web.js.map +1 -1
  263. package/build/lib/web/development/components/Modal/ModalBody.web.js +9 -3
  264. package/build/lib/web/development/components/Modal/ModalBody.web.js.map +1 -1
  265. package/build/lib/web/development/components/Modal/ModalFooter.web.js +7 -2
  266. package/build/lib/web/development/components/Modal/ModalFooter.web.js.map +1 -1
  267. package/build/lib/web/development/components/Modal/ModalHeader.web.js +14 -6
  268. package/build/lib/web/development/components/Modal/ModalHeader.web.js.map +1 -1
  269. package/build/lib/web/development/components/Popover/Popover.web.js +8 -3
  270. package/build/lib/web/development/components/Popover/Popover.web.js.map +1 -1
  271. package/build/lib/web/development/components/Popover/PopoverInteractiveWrapper.web.js.map +1 -1
  272. package/build/lib/web/development/components/ProgressBar/ProgressBar.js +5 -3
  273. package/build/lib/web/development/components/ProgressBar/ProgressBar.js.map +1 -1
  274. package/build/lib/web/development/components/Radio/Radio.js +6 -4
  275. package/build/lib/web/development/components/Radio/Radio.js.map +1 -1
  276. package/build/lib/web/development/components/Radio/RadioGroup/RadioGroup.js +8 -5
  277. package/build/lib/web/development/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  278. package/build/lib/web/development/components/SideNav/SideNav.web.js +5 -3
  279. package/build/lib/web/development/components/SideNav/SideNav.web.js.map +1 -1
  280. package/build/lib/web/development/components/SideNav/SideNavItems/SideNavItem.web.js +13 -4
  281. package/build/lib/web/development/components/SideNav/SideNavItems/SideNavItem.web.js.map +1 -1
  282. package/build/lib/web/development/components/SideNav/SideNavItems/SideNavLink.web.js +10 -4
  283. package/build/lib/web/development/components/SideNav/SideNavItems/SideNavLink.web.js.map +1 -1
  284. package/build/lib/web/development/components/SideNav/SideNavSection.web.js +10 -4
  285. package/build/lib/web/development/components/SideNav/SideNavSection.web.js.map +1 -1
  286. package/build/lib/web/development/components/StepGroup/StepGroup.web.js +5 -3
  287. package/build/lib/web/development/components/StepGroup/StepGroup.web.js.map +1 -1
  288. package/build/lib/web/development/components/StepGroup/StepItem.web.js +13 -7
  289. package/build/lib/web/development/components/StepGroup/StepItem.web.js.map +1 -1
  290. package/build/lib/web/development/components/StepGroup/StepLine.web.js +79 -42
  291. package/build/lib/web/development/components/StepGroup/StepLine.web.js.map +1 -1
  292. package/build/lib/web/development/components/StepGroup/tokens.js +6 -6
  293. package/build/lib/web/development/components/StepGroup/tokens.js.map +1 -1
  294. package/build/lib/web/development/components/Switch/Switch.js +5 -3
  295. package/build/lib/web/development/components/Switch/Switch.js.map +1 -1
  296. package/build/lib/web/development/components/Table/Table.web.js +9 -7
  297. package/build/lib/web/development/components/Table/Table.web.js.map +1 -1
  298. package/build/lib/web/development/components/Table/TableBody.web.js +18 -9
  299. package/build/lib/web/development/components/Table/TableBody.web.js.map +1 -1
  300. package/build/lib/web/development/components/Table/TableFooter.web.js +18 -9
  301. package/build/lib/web/development/components/Table/TableFooter.web.js.map +1 -1
  302. package/build/lib/web/development/components/Table/TableHeader.web.js +18 -9
  303. package/build/lib/web/development/components/Table/TableHeader.web.js.map +1 -1
  304. package/build/lib/web/development/components/Table/TablePagination.web.js +10 -4
  305. package/build/lib/web/development/components/Table/TablePagination.web.js.map +1 -1
  306. package/build/lib/web/development/components/Table/TableToolbar.web.js +13 -8
  307. package/build/lib/web/development/components/Table/TableToolbar.web.js.map +1 -1
  308. package/build/lib/web/development/components/Tabs/TabItem.web.js +9 -5
  309. package/build/lib/web/development/components/Tabs/TabItem.web.js.map +1 -1
  310. package/build/lib/web/development/components/Tabs/TabList.web.js +5 -3
  311. package/build/lib/web/development/components/Tabs/TabList.web.js.map +1 -1
  312. package/build/lib/web/development/components/Tabs/TabPanel.web.js +10 -5
  313. package/build/lib/web/development/components/Tabs/TabPanel.web.js.map +1 -1
  314. package/build/lib/web/development/components/Tabs/Tabs.web.js +8 -3
  315. package/build/lib/web/development/components/Tabs/Tabs.web.js.map +1 -1
  316. package/build/lib/web/development/components/Tag/Tag.js +6 -4
  317. package/build/lib/web/development/components/Tag/Tag.js.map +1 -1
  318. package/build/lib/web/development/components/Toast/ToastContainer.web.js +8 -3
  319. package/build/lib/web/development/components/Toast/ToastContainer.web.js.map +1 -1
  320. package/build/lib/web/development/components/Tooltip/Tooltip.web.js +8 -3
  321. package/build/lib/web/development/components/Tooltip/Tooltip.web.js.map +1 -1
  322. package/build/lib/web/development/components/TopNav/TabNav/TabNav.web.js +6 -3
  323. package/build/lib/web/development/components/TopNav/TabNav/TabNav.web.js.map +1 -1
  324. package/build/lib/web/development/components/TopNav/TopNav.web.js +8 -5
  325. package/build/lib/web/development/components/TopNav/TopNav.web.js.map +1 -1
  326. package/build/lib/web/development/components/index.js +3 -0
  327. package/build/lib/web/development/components/index.js.map +1 -1
  328. package/build/lib/web/development/tokens/global/size.js +3 -1
  329. package/build/lib/web/development/tokens/global/size.js.map +1 -1
  330. package/build/lib/web/development/utils/makeAnalyticsAttribute/index.js +2 -0
  331. package/build/lib/web/development/utils/makeAnalyticsAttribute/index.js.map +1 -0
  332. package/build/lib/web/development/utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js +20 -0
  333. package/build/lib/web/development/utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js.map +1 -0
  334. package/build/lib/web/production/components/Accordion/Accordion.js +5 -3
  335. package/build/lib/web/production/components/Accordion/Accordion.js.map +1 -1
  336. package/build/lib/web/production/components/Accordion/AccordionButton.web.js +8 -3
  337. package/build/lib/web/production/components/Accordion/AccordionButton.web.js.map +1 -1
  338. package/build/lib/web/production/components/Accordion/AccordionItem.js +8 -3
  339. package/build/lib/web/production/components/Accordion/AccordionItem.js.map +1 -1
  340. package/build/lib/web/production/components/Accordion/AccordionItemBody.js +8 -3
  341. package/build/lib/web/production/components/Accordion/AccordionItemBody.js.map +1 -1
  342. package/build/lib/web/production/components/Accordion/AccordionItemHeader.js +10 -4
  343. package/build/lib/web/production/components/Accordion/AccordionItemHeader.js.map +1 -1
  344. package/build/lib/web/production/components/ActionList/ActionList.js +9 -4
  345. package/build/lib/web/production/components/ActionList/ActionList.js.map +1 -1
  346. package/build/lib/web/production/components/ActionList/ActionListBox.web.js +8 -3
  347. package/build/lib/web/production/components/ActionList/ActionListBox.web.js.map +1 -1
  348. package/build/lib/web/production/components/ActionList/ActionListItem.js +10 -5
  349. package/build/lib/web/production/components/ActionList/ActionListItem.js.map +1 -1
  350. package/build/lib/web/production/components/Alert/Alert.js +5 -3
  351. package/build/lib/web/production/components/Alert/Alert.js.map +1 -1
  352. package/build/lib/web/production/components/Amount/Amount.js +5 -8
  353. package/build/lib/web/production/components/Amount/Amount.js.map +1 -1
  354. package/build/lib/web/production/components/Avatar/Avatar.web.js +5 -3
  355. package/build/lib/web/production/components/Avatar/Avatar.web.js.map +1 -1
  356. package/build/lib/web/production/components/Avatar/AvatarGroup.web.js +5 -3
  357. package/build/lib/web/production/components/Avatar/AvatarGroup.web.js.map +1 -1
  358. package/build/lib/web/production/components/Badge/Badge.js +5 -3
  359. package/build/lib/web/production/components/Badge/Badge.js.map +1 -1
  360. package/build/lib/web/production/components/BaseHeaderFooter/BaseFooter.js +8 -3
  361. package/build/lib/web/production/components/BaseHeaderFooter/BaseFooter.js.map +1 -1
  362. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js +8 -3
  363. package/build/lib/web/production/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
  364. package/build/lib/web/production/components/BottomNav/BottomNav.web.js +12 -8
  365. package/build/lib/web/production/components/BottomNav/BottomNav.web.js.map +1 -1
  366. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js +9 -3
  367. package/build/lib/web/production/components/BottomSheet/BottomSheet.web.js.map +1 -1
  368. package/build/lib/web/production/components/BottomSheet/BottomSheetBody.web.js +8 -3
  369. package/build/lib/web/production/components/BottomSheet/BottomSheetBody.web.js.map +1 -1
  370. package/build/lib/web/production/components/BottomSheet/BottomSheetFooter.web.js +8 -3
  371. package/build/lib/web/production/components/BottomSheet/BottomSheetFooter.web.js.map +1 -1
  372. package/build/lib/web/production/components/BottomSheet/BottomSheetHeader.web.js +8 -3
  373. package/build/lib/web/production/components/BottomSheet/BottomSheetHeader.web.js.map +1 -1
  374. package/build/lib/web/production/components/Box/BaseBox/BaseBox.web.js +4 -2
  375. package/build/lib/web/production/components/Box/BaseBox/BaseBox.web.js.map +1 -1
  376. package/build/lib/web/production/components/Box/BaseBox/types/propsTypes.js.map +1 -1
  377. package/build/lib/web/production/components/Box/Box.js +4 -2
  378. package/build/lib/web/production/components/Box/Box.js.map +1 -1
  379. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js +6 -4
  380. package/build/lib/web/production/components/Breadcrumb/Breadcrumb.web.js.map +1 -1
  381. package/build/lib/web/production/components/Breadcrumb/BreadcrumbItem.web.js +13 -4
  382. package/build/lib/web/production/components/Breadcrumb/BreadcrumbItem.web.js.map +1 -1
  383. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js +4 -2
  384. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js.map +1 -1
  385. package/build/lib/web/production/components/Button/Button/Button.js +4 -2
  386. package/build/lib/web/production/components/Button/Button/Button.js.map +1 -1
  387. package/build/lib/web/production/components/Button/IconButton/IconButton.js +11 -5
  388. package/build/lib/web/production/components/Button/IconButton/IconButton.js.map +1 -1
  389. package/build/lib/web/production/components/Button/IconButton/StyledIconButton.web.js +8 -3
  390. package/build/lib/web/production/components/Button/IconButton/StyledIconButton.web.js.map +1 -1
  391. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js +5 -3
  392. package/build/lib/web/production/components/ButtonGroup/ButtonGroup.web.js.map +1 -1
  393. package/build/lib/web/production/components/Card/Card.js +11 -7
  394. package/build/lib/web/production/components/Card/Card.js.map +1 -1
  395. package/build/lib/web/production/components/Card/CardFooter.js +22 -11
  396. package/build/lib/web/production/components/Card/CardFooter.js.map +1 -1
  397. package/build/lib/web/production/components/Card/CardHeader.js +13 -6
  398. package/build/lib/web/production/components/Card/CardHeader.js.map +1 -1
  399. package/build/lib/web/production/components/Carousel/Carousel.web.js +5 -3
  400. package/build/lib/web/production/components/Carousel/Carousel.web.js.map +1 -1
  401. package/build/lib/web/production/components/Carousel/CarouselItem.web.js +9 -3
  402. package/build/lib/web/production/components/Carousel/CarouselItem.web.js.map +1 -1
  403. package/build/lib/web/production/components/Checkbox/Checkbox.js +6 -4
  404. package/build/lib/web/production/components/Checkbox/Checkbox.js.map +1 -1
  405. package/build/lib/web/production/components/Checkbox/CheckboxGroup/CheckboxGroup.js +8 -5
  406. package/build/lib/web/production/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  407. package/build/lib/web/production/components/Chip/Chip.js +5 -3
  408. package/build/lib/web/production/components/Chip/Chip.js.map +1 -1
  409. package/build/lib/web/production/components/Chip/ChipGroup.js +8 -5
  410. package/build/lib/web/production/components/Chip/ChipGroup.js.map +1 -1
  411. package/build/lib/web/production/components/Collapsible/Collapsible.js +5 -3
  412. package/build/lib/web/production/components/Collapsible/Collapsible.js.map +1 -1
  413. package/build/lib/web/production/components/Collapsible/CollapsibleBody.js +8 -3
  414. package/build/lib/web/production/components/Collapsible/CollapsibleBody.js.map +1 -1
  415. package/build/lib/web/production/components/Collapsible/CollapsibleButton.js +13 -4
  416. package/build/lib/web/production/components/Collapsible/CollapsibleButton.js.map +1 -1
  417. package/build/lib/web/production/components/Collapsible/CollapsibleLink.js +5 -3
  418. package/build/lib/web/production/components/Collapsible/CollapsibleLink.js.map +1 -1
  419. package/build/lib/web/production/components/Counter/Counter.js +5 -3
  420. package/build/lib/web/production/components/Counter/Counter.js.map +1 -1
  421. package/build/lib/web/production/components/DatePicker/DateInput.web.js +11 -7
  422. package/build/lib/web/production/components/DatePicker/DateInput.web.js.map +1 -1
  423. package/build/lib/web/production/components/DatePicker/DatePicker.web.js +4 -2
  424. package/build/lib/web/production/components/DatePicker/DatePicker.web.js.map +1 -1
  425. package/build/lib/web/production/components/Drawer/Drawer.web.js +8 -3
  426. package/build/lib/web/production/components/Drawer/Drawer.web.js.map +1 -1
  427. package/build/lib/web/production/components/Drawer/DrawerSubcomponents.web.js +11 -3
  428. package/build/lib/web/production/components/Drawer/DrawerSubcomponents.web.js.map +1 -1
  429. package/build/lib/web/production/components/Dropdown/Dropdown.js +5 -3
  430. package/build/lib/web/production/components/Dropdown/Dropdown.js.map +1 -1
  431. package/build/lib/web/production/components/Dropdown/DropdownButton.js +2 -2
  432. package/build/lib/web/production/components/Dropdown/DropdownButton.js.map +1 -1
  433. package/build/lib/web/production/components/Dropdown/DropdownHeaderFooter.js +8 -3
  434. package/build/lib/web/production/components/Dropdown/DropdownHeaderFooter.js.map +1 -1
  435. package/build/lib/web/production/components/Dropdown/DropdownLink.js +5 -3
  436. package/build/lib/web/production/components/Dropdown/DropdownLink.js.map +1 -1
  437. package/build/lib/web/production/components/FileUpload/FileUpload.web.js +6 -4
  438. package/build/lib/web/production/components/FileUpload/FileUpload.web.js.map +1 -1
  439. package/build/lib/web/production/components/Form/Selector/SelectorGroupField.js +8 -3
  440. package/build/lib/web/production/components/Form/Selector/SelectorGroupField.js.map +1 -1
  441. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js +8 -3
  442. package/build/lib/web/production/components/Form/Selector/SelectorInput.web.js.map +1 -1
  443. package/build/lib/web/production/components/Icons/IndiaFlagIcon/IndiaFlagIcon.js +39 -0
  444. package/build/lib/web/production/components/Icons/IndiaFlagIcon/IndiaFlagIcon.js.map +1 -0
  445. package/build/lib/web/production/components/Icons/IndiaFlagIcon/index.js +2 -0
  446. package/build/lib/web/production/components/Icons/IndiaFlagIcon/index.js.map +1 -0
  447. package/build/lib/web/production/components/Icons/MagicKonnectIcon/MagicKonnectIcon.js +49 -0
  448. package/build/lib/web/production/components/Icons/MagicKonnectIcon/MagicKonnectIcon.js.map +1 -0
  449. package/build/lib/web/production/components/Icons/MagicKonnectIcon/index.js +2 -0
  450. package/build/lib/web/production/components/Icons/MagicKonnectIcon/index.js.map +1 -0
  451. package/build/lib/web/production/components/Icons/WorldwideIcon/WorldwideIcon.js +39 -0
  452. package/build/lib/web/production/components/Icons/WorldwideIcon/WorldwideIcon.js.map +1 -0
  453. package/build/lib/web/production/components/Icons/WorldwideIcon/index.js +2 -0
  454. package/build/lib/web/production/components/Icons/WorldwideIcon/index.js.map +1 -0
  455. package/build/lib/web/production/components/Icons/index.js +3 -0
  456. package/build/lib/web/production/components/Icons/index.js.map +1 -1
  457. package/build/lib/web/production/components/Indicator/Indicator.js +5 -3
  458. package/build/lib/web/production/components/Indicator/Indicator.js.map +1 -1
  459. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js +6 -4
  460. package/build/lib/web/production/components/Input/BaseInput/BaseInput.js.map +1 -1
  461. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js +5 -2
  462. package/build/lib/web/production/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.js.map +1 -1
  463. package/build/lib/web/production/components/Input/DropdownInputTriggers/SelectInput.js +5 -3
  464. package/build/lib/web/production/components/Input/DropdownInputTriggers/SelectInput.js.map +1 -1
  465. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js +6 -4
  466. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js.map +1 -1
  467. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js +2 -2
  468. package/build/lib/web/production/components/Input/PasswordInput/PasswordInput.js.map +1 -1
  469. package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +2 -2
  470. package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
  471. package/build/lib/web/production/components/Input/SearchInput/SearchInput.js +2 -2
  472. package/build/lib/web/production/components/Input/SearchInput/SearchInput.js.map +1 -1
  473. package/build/lib/web/production/components/Input/TextArea/TextArea.js +2 -2
  474. package/build/lib/web/production/components/Input/TextArea/TextArea.js.map +1 -1
  475. package/build/lib/web/production/components/Input/TextInput/TextInput.js +2 -2
  476. package/build/lib/web/production/components/Input/TextInput/TextInput.js.map +1 -1
  477. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js +5 -3
  478. package/build/lib/web/production/components/Link/BaseLink/BaseLink.js.map +1 -1
  479. package/build/lib/web/production/components/Link/Link/Link.js +4 -2
  480. package/build/lib/web/production/components/Link/Link/Link.js.map +1 -1
  481. package/build/lib/web/production/components/Menu/VisualSubComponents/MenuHeaderFooter.web.js +18 -8
  482. package/build/lib/web/production/components/Menu/VisualSubComponents/MenuHeaderFooter.web.js.map +1 -1
  483. package/build/lib/web/production/components/Modal/Modal.web.js +10 -4
  484. package/build/lib/web/production/components/Modal/Modal.web.js.map +1 -1
  485. package/build/lib/web/production/components/Modal/ModalBody.web.js +9 -3
  486. package/build/lib/web/production/components/Modal/ModalBody.web.js.map +1 -1
  487. package/build/lib/web/production/components/Modal/ModalFooter.web.js +7 -2
  488. package/build/lib/web/production/components/Modal/ModalFooter.web.js.map +1 -1
  489. package/build/lib/web/production/components/Modal/ModalHeader.web.js +14 -6
  490. package/build/lib/web/production/components/Modal/ModalHeader.web.js.map +1 -1
  491. package/build/lib/web/production/components/Popover/Popover.web.js +8 -3
  492. package/build/lib/web/production/components/Popover/Popover.web.js.map +1 -1
  493. package/build/lib/web/production/components/Popover/PopoverInteractiveWrapper.web.js.map +1 -1
  494. package/build/lib/web/production/components/ProgressBar/ProgressBar.js +5 -3
  495. package/build/lib/web/production/components/ProgressBar/ProgressBar.js.map +1 -1
  496. package/build/lib/web/production/components/Radio/Radio.js +6 -4
  497. package/build/lib/web/production/components/Radio/Radio.js.map +1 -1
  498. package/build/lib/web/production/components/Radio/RadioGroup/RadioGroup.js +8 -5
  499. package/build/lib/web/production/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  500. package/build/lib/web/production/components/SideNav/SideNav.web.js +5 -3
  501. package/build/lib/web/production/components/SideNav/SideNav.web.js.map +1 -1
  502. package/build/lib/web/production/components/SideNav/SideNavItems/SideNavItem.web.js +13 -4
  503. package/build/lib/web/production/components/SideNav/SideNavItems/SideNavItem.web.js.map +1 -1
  504. package/build/lib/web/production/components/SideNav/SideNavItems/SideNavLink.web.js +10 -4
  505. package/build/lib/web/production/components/SideNav/SideNavItems/SideNavLink.web.js.map +1 -1
  506. package/build/lib/web/production/components/SideNav/SideNavSection.web.js +10 -4
  507. package/build/lib/web/production/components/SideNav/SideNavSection.web.js.map +1 -1
  508. package/build/lib/web/production/components/StepGroup/StepGroup.web.js +5 -3
  509. package/build/lib/web/production/components/StepGroup/StepGroup.web.js.map +1 -1
  510. package/build/lib/web/production/components/StepGroup/StepItem.web.js +13 -7
  511. package/build/lib/web/production/components/StepGroup/StepItem.web.js.map +1 -1
  512. package/build/lib/web/production/components/StepGroup/StepLine.web.js +79 -42
  513. package/build/lib/web/production/components/StepGroup/StepLine.web.js.map +1 -1
  514. package/build/lib/web/production/components/StepGroup/tokens.js +6 -6
  515. package/build/lib/web/production/components/StepGroup/tokens.js.map +1 -1
  516. package/build/lib/web/production/components/Switch/Switch.js +5 -3
  517. package/build/lib/web/production/components/Switch/Switch.js.map +1 -1
  518. package/build/lib/web/production/components/Table/Table.web.js +9 -7
  519. package/build/lib/web/production/components/Table/Table.web.js.map +1 -1
  520. package/build/lib/web/production/components/Table/TableBody.web.js +18 -9
  521. package/build/lib/web/production/components/Table/TableBody.web.js.map +1 -1
  522. package/build/lib/web/production/components/Table/TableFooter.web.js +18 -9
  523. package/build/lib/web/production/components/Table/TableFooter.web.js.map +1 -1
  524. package/build/lib/web/production/components/Table/TableHeader.web.js +18 -9
  525. package/build/lib/web/production/components/Table/TableHeader.web.js.map +1 -1
  526. package/build/lib/web/production/components/Table/TablePagination.web.js +10 -4
  527. package/build/lib/web/production/components/Table/TablePagination.web.js.map +1 -1
  528. package/build/lib/web/production/components/Table/TableToolbar.web.js +13 -8
  529. package/build/lib/web/production/components/Table/TableToolbar.web.js.map +1 -1
  530. package/build/lib/web/production/components/Tabs/TabItem.web.js +9 -5
  531. package/build/lib/web/production/components/Tabs/TabItem.web.js.map +1 -1
  532. package/build/lib/web/production/components/Tabs/TabList.web.js +5 -3
  533. package/build/lib/web/production/components/Tabs/TabList.web.js.map +1 -1
  534. package/build/lib/web/production/components/Tabs/TabPanel.web.js +10 -5
  535. package/build/lib/web/production/components/Tabs/TabPanel.web.js.map +1 -1
  536. package/build/lib/web/production/components/Tabs/Tabs.web.js +8 -3
  537. package/build/lib/web/production/components/Tabs/Tabs.web.js.map +1 -1
  538. package/build/lib/web/production/components/Tag/Tag.js +6 -4
  539. package/build/lib/web/production/components/Tag/Tag.js.map +1 -1
  540. package/build/lib/web/production/components/Toast/ToastContainer.web.js +8 -3
  541. package/build/lib/web/production/components/Toast/ToastContainer.web.js.map +1 -1
  542. package/build/lib/web/production/components/Tooltip/Tooltip.web.js +8 -3
  543. package/build/lib/web/production/components/Tooltip/Tooltip.web.js.map +1 -1
  544. package/build/lib/web/production/components/TopNav/TabNav/TabNav.web.js +6 -3
  545. package/build/lib/web/production/components/TopNav/TabNav/TabNav.web.js.map +1 -1
  546. package/build/lib/web/production/components/TopNav/TopNav.web.js +8 -5
  547. package/build/lib/web/production/components/TopNav/TopNav.web.js.map +1 -1
  548. package/build/lib/web/production/components/index.js +3 -0
  549. package/build/lib/web/production/components/index.js.map +1 -1
  550. package/build/lib/web/production/tokens/global/size.js +3 -1
  551. package/build/lib/web/production/tokens/global/size.js.map +1 -1
  552. package/build/lib/web/production/utils/makeAnalyticsAttribute/index.js +2 -0
  553. package/build/lib/web/production/utils/makeAnalyticsAttribute/index.js.map +1 -0
  554. package/build/lib/web/production/utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js +20 -0
  555. package/build/lib/web/production/utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js.map +1 -0
  556. package/build/types/components/index.d.ts +228 -190
  557. package/build/types/components/index.native.d.ts +152 -132
  558. package/build/types/tokens/index.d.ts +3 -1
  559. package/build/types/tokens/index.native.d.ts +3 -1
  560. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheet.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable react/jsx-no-useless-fragment */\n/* eslint-disable consistent-return */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport React from 'react';\nimport styled from 'styled-components';\nimport { rubberbandIfOutOfBounds, useDrag } from '@use-gesture/react';\nimport usePresence from 'use-presence';\nimport { clearAllBodyScrollLocks } from 'body-scroll-lock-upgrade';\nimport { BottomSheetHeader } from './BottomSheetHeader';\nimport { BottomSheetFooter } from './BottomSheetFooter';\nimport { BottomSheetBody } from './BottomSheetBody';\nimport type { SnapPoints } from './utils';\nimport { computeMaxContent, computeSnapPointBounds } from './utils';\nimport { BottomSheetBackdrop } from './BottomSheetBackdrop';\nimport type { BottomSheetContextProps } from './BottomSheetContext';\nimport { BottomSheetContext, useBottomSheetAndDropdownGlue } from './BottomSheetContext';\nimport { ComponentIds } from './componentIds';\nimport type { BottomSheetProps } from './types';\nimport { BottomSheetGrabHandle } from './BottomSheetGrabHandle';\nimport { useBottomSheetStack } from './BottomSheetStack';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { useScrollLock } from '~utils/useScrollLock';\nimport { useWindowSize } from '~utils/useWindowSize';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { useTheme } from '~components/BladeProvider';\nimport { useId } from '~utils/useId';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeSize } from '~utils/makeSize';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { size } from '~tokens/global';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport { componentZIndices } from '~utils/componentZIndices';\n\nexport const BOTTOM_SHEET_EASING = 'cubic-bezier(.15,0,.24,.97)';\nconst AUTOCOMPLETE_DEFAULT_SNAPPOINT = 0.85;\n\nconst BottomSheetSurface = styled.div<{\n windowHeight: number;\n isDragging: boolean;\n}>(({ theme, windowHeight, isDragging }) => {\n return {\n background: theme.colors.popup.background.subtle,\n borderTopLeftRadius: makeSize(size[16]),\n borderTopRightRadius: makeSize(size[16]),\n borderColor: theme.colors.popup.border.subtle,\n // this is reverse top elevation of highRaised elevation token\n boxShadow: '0px -24px 48px -12px hsla(217, 56%, 17%, 0.18)',\n opacity: 0,\n pointerEvents: 'none',\n transitionDuration: isDragging\n ? undefined\n : `${makeMotionTime(theme.motion.duration.moderate)}`,\n transitionTimingFunction: BOTTOM_SHEET_EASING,\n willChange: 'transform, opacity, height',\n transitionProperty: 'transform, opacity, height',\n position: 'fixed',\n left: 0,\n right: 0,\n bottom: 0,\n top: windowHeight,\n backgroundColor: theme.colors.popup.background.subtle,\n justifyContent: 'center',\n alignItems: 'center',\n touchAction: 'none',\n overflow: 'hidden',\n };\n});\n\nconst _BottomSheet = ({\n isOpen,\n onDismiss,\n children,\n initialFocusRef,\n snapPoints = [0.35, 0.5, 0.85],\n zIndex = componentZIndices.bottomSheet,\n}: BottomSheetProps): React.ReactElement => {\n const { theme } = useTheme();\n const dimensions = useWindowSize();\n const [contentHeight, setContentHeight] = React.useState(0);\n const [headerHeight, setHeaderHeight] = React.useState(0);\n const [footerHeight, setFooterHeight] = React.useState(0);\n const [grabHandleHeight, setGrabHandleHeight] = React.useState(0);\n const [hasBodyPadding, setHasBodyPadding] = React.useState(true);\n const [isHeaderEmpty, setIsHeaderEmpty] = React.useState(false);\n\n const bottomSheetAndDropdownGlue = useBottomSheetAndDropdownGlue();\n const [positionY, _setPositionY] = React.useState(0);\n const _isOpen = isOpen ?? bottomSheetAndDropdownGlue?.isOpen;\n const [isDragging, setIsDragging] = React.useState(false);\n\n const preventScrollingRef = React.useRef(true);\n const scrollRef = React.useRef<HTMLDivElement>(null);\n const grabHandleRef = React.useRef<HTMLDivElement>(null);\n const defaultInitialFocusRef = React.useRef<any>(null);\n const originalFocusElement = React.useRef<HTMLElement | null>(null);\n const initialSnapPoint = React.useRef<number>(snapPoints[1]);\n const totalHeight = React.useMemo(() => {\n return grabHandleHeight + headerHeight + footerHeight + contentHeight;\n }, [contentHeight, footerHeight, grabHandleHeight, headerHeight]);\n\n const id = useId();\n const {\n stack,\n addBottomSheetToStack,\n removeBottomSheetFromStack,\n getTopOfTheStack,\n getCurrentStackIndexById,\n } = useBottomSheetStack();\n const currentStackIndex = getCurrentStackIndexById(id);\n const isOnTopOfStack = getTopOfTheStack() === id;\n const bottomSheetZIndex = zIndex - currentStackIndex;\n\n const setPositionY = React.useCallback(\n (value: number, limit = true) => {\n // In AutoComplete, we want BottomSheet to be docked to top snappoint so we remove the limits\n const shouldLimitPositionY =\n limit && !bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader;\n\n const maxValue = computeMaxContent({\n contentHeight,\n footerHeight,\n headerHeight: headerHeight + grabHandleHeight,\n maxHeight: value,\n });\n _setPositionY(shouldLimitPositionY ? maxValue : value);\n },\n [\n bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader,\n contentHeight,\n footerHeight,\n grabHandleHeight,\n headerHeight,\n ],\n );\n\n // locks the body scroll to prevent accidental scrolling of content when we drag the sheet\n // We are ready when we calculated the height of the content\n const isReady = contentHeight > 0;\n // only lock the body when we atleast have 1 bottomsheet open\n const shouldLock = isReady && stack.length > 0;\n const scrollLockRef = useScrollLock({\n enabled: shouldLock,\n targetRef: scrollRef,\n reserveScrollBarGap: true,\n });\n\n // clear all body locks to avoid memory leaks & accidental body locking\n React.useEffect(() => {\n const hasNoBottomSheets = stack.length < 1;\n if (hasNoBottomSheets) {\n clearAllBodyScrollLocks();\n }\n }, [stack]);\n\n // take the grabHandle's height into headerHeight too\n useIsomorphicLayoutEffect(() => {\n if (!grabHandleRef.current) return;\n setGrabHandleHeight(grabHandleRef.current.getBoundingClientRect().height);\n }, [grabHandleRef.current, _isOpen]);\n\n // if bottomSheet height is >35% & <50% then set initial snapPoint to 35%\n useIsomorphicLayoutEffect(() => {\n if (bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader) {\n initialSnapPoint.current = AUTOCOMPLETE_DEFAULT_SNAPPOINT;\n } else {\n const middleSnapPoint = snapPoints[1] * dimensions.height;\n const lowerSnapPoint = snapPoints[0] * dimensions.height;\n if (totalHeight > lowerSnapPoint && totalHeight < middleSnapPoint) {\n initialSnapPoint.current = snapPoints[0];\n }\n }\n }, [dimensions.height, snapPoints, totalHeight]);\n\n const returnFocus = React.useCallback(() => {\n if (!originalFocusElement.current) return;\n originalFocusElement.current.focus();\n // After returning focus we will clear the original focus\n // Because if sheet can be opened up via multiple triggers\n // We want to ensure the focus returns back to the most recent triggerer\n originalFocusElement.current = null;\n }, [originalFocusElement]);\n\n const focusOnInitialRef = React.useCallback(() => {\n if (!initialFocusRef) {\n // focus on close button\n defaultInitialFocusRef.current?.focus();\n } else {\n // focus on the initialRef passed by the user\n initialFocusRef.current?.focus();\n }\n }, [initialFocusRef]);\n\n // focus on the initial ref when the sheet is opened\n React.useLayoutEffect(() => {\n if (_isOpen) {\n focusOnInitialRef();\n }\n }, [_isOpen, focusOnInitialRef]);\n\n const handleOnOpen = React.useCallback(() => {\n setPositionY(dimensions.height * initialSnapPoint.current);\n scrollLockRef.current.activate();\n // initialize the original focused element\n // On first render it will be the activeElement, eg: the button trigger or select input\n // On Subsequent open operations it won't further update the original focus\n originalFocusElement.current =\n originalFocusElement.current ?? (document.activeElement as HTMLElement);\n }, [dimensions.height, scrollLockRef, setPositionY]);\n\n const handleOnClose = React.useCallback(() => {\n setPositionY(0);\n }, [setPositionY]);\n\n const close = React.useCallback(() => {\n onDismiss?.();\n bottomSheetAndDropdownGlue?.onBottomSheetDismiss();\n returnFocus();\n }, [bottomSheetAndDropdownGlue, onDismiss, returnFocus]);\n\n // sync controlled state to our actions\n React.useEffect(() => {\n if (_isOpen) {\n // open on the next frame, otherwise the animations will not run on first render\n window.setTimeout(() => {\n handleOnOpen();\n });\n } else {\n handleOnClose();\n }\n }, [_isOpen, handleOnClose, handleOnOpen]);\n\n // let the Dropdown component know that it's rendering a bottomsheet\n React.useEffect(() => {\n if (!bottomSheetAndDropdownGlue) return;\n bottomSheetAndDropdownGlue.setDropdownHasBottomSheet(true);\n }, [bottomSheetAndDropdownGlue]);\n\n const bind = useDrag(\n ({\n active,\n last,\n cancel,\n tap,\n movement: [_movementX, movementY],\n velocity: [_velocityX, velocityY],\n lastOffset: [_, lastOffsetY],\n down,\n dragging,\n args: [{ isContentDragging = false } = {}] = [],\n }) => {\n setIsDragging(Boolean(dragging));\n // lastOffsetY is the previous position user stopped dragging the sheet\n // movementY is the drag amount from the bottom of the screen, so as you drag up the movementY goes into negatives\n // and rawY is the calculated offset from the last position of the bottomsheet to current drag amount.\n const rawY = lastOffsetY - movementY;\n\n const lowerSnapPoint = dimensions.height * snapPoints[0];\n const upperSnapPoint = dimensions.height * snapPoints[snapPoints.length - 1];\n\n // predictedY is used to create velocity driven swipe\n // the faster you swipe the more distance you cover\n // this enables users to reach upper & lower snappoint with a single swipe\n const predictedDistance = movementY * (velocityY / 2);\n const predictedY = Math.max(\n lowerSnapPoint,\n Math.min(upperSnapPoint, rawY - predictedDistance * 2),\n );\n\n let newY = rawY;\n\n if (down) {\n // Ensure that users aren't able to drag the sheet\n // more than the upperSnapPoint or maximum height of the sheet\n // this is basically a clamp() function but creates a nice rubberband effect\n const dampening = 0.55;\n if (totalHeight < upperSnapPoint) {\n newY = rubberbandIfOutOfBounds(rawY, 0, totalHeight, dampening);\n } else {\n newY = rubberbandIfOutOfBounds(rawY, 0, upperSnapPoint, dampening);\n }\n } else {\n newY = predictedY;\n }\n\n const isPosAtUpperSnapPoint = newY >= upperSnapPoint;\n\n if (isContentDragging) {\n if (isPosAtUpperSnapPoint) {\n newY = upperSnapPoint;\n }\n\n // keep the newY at upper snap point\n // until the scrollable content is not at top\n // and previously saved Y position is greater than or equal to upper snap point\n // Note: how using newY won't work here since we need the previous value of the newY\n // since we always keep updating the newY,\n // this is cruicial in making the scroll feel natural\n const isContentScrolledAtTop = scrollRef.current && scrollRef.current.scrollTop <= 0;\n if (lastOffsetY === upperSnapPoint && !isContentScrolledAtTop) {\n newY = upperSnapPoint;\n }\n preventScrollingRef.current = newY < upperSnapPoint;\n }\n\n if (last) {\n // calculate the nearest snapPoint\n const [nearest, lower] = computeSnapPointBounds(\n newY,\n snapPoints.map((point) => dimensions.height * point) as SnapPoints,\n );\n\n // This ensure that the lower snapPoint will always have atleast some buffer\n // When the bottomsheet total height is less than the lower snapPoint\n // Video walkthrough: https://www.loom.com/share/a9a8db7688d64194b13df8b3e25859ae\n const lowerPointBuffer = 60;\n const lowerestSnap = Math.min(lower, totalHeight) - lowerPointBuffer;\n\n const shouldClose = rawY < lowerestSnap;\n if (shouldClose) {\n setIsDragging(false);\n cancel();\n close();\n return;\n }\n\n // if we stop dragging assign snap to the nearest point\n if (!active && !tap) {\n newY = nearest;\n }\n }\n\n setPositionY(newY, !down);\n },\n {\n from: [0, positionY],\n filterTaps: true,\n enabled: isOnTopOfStack && _isOpen,\n },\n );\n\n // Here we are preventing the scrolling of the content, until the preventScrollingRef value is true\n useIsomorphicLayoutEffect(() => {\n const scrollElement = scrollRef.current;\n if (!scrollElement) return;\n\n const preventScrolling = (e: Event) => {\n if (preventScrollingRef?.current) {\n e.preventDefault();\n }\n };\n\n // https://www.bram.us/2016/05/02/prevent-overscroll-bounce-in-ios-mobilesafari-pure-css/\n const preventSafariOverscroll = (e: Event) => {\n if (scrollElement.scrollTop < 0) {\n // TODO: figure this out, it doesn't seem to work >iOS12\n // requestAnimationFrame(() => {\n // elem.style.overflow = 'hidden';\n // elem.scrollTop = 0;\n // elem.style.removeProperty('overflow');\n // });\n e.preventDefault();\n }\n };\n\n scrollElement.addEventListener('scroll', preventScrolling);\n scrollElement.addEventListener('touchmove', preventScrolling);\n scrollElement.addEventListener('touchstart', preventSafariOverscroll);\n return () => {\n scrollElement.removeEventListener('scroll', preventScrolling);\n scrollElement.removeEventListener('touchmove', preventScrolling);\n scrollElement.removeEventListener('touchstart', preventSafariOverscroll);\n };\n // Only run this hook when we know all the layout calculations are done,\n // Otherwise the scrollRef.current will be null.\n // isReady prop will ensure that we are done measuring the content height\n }, [isReady]);\n\n // usePresence hook waits for the animation to finish before unmounting the component\n // It's similar to framer-motions usePresence hook\n // https://www.framer.com/docs/animate-presence/#usepresence\n const { isMounted, isVisible } = usePresence(Boolean(_isOpen), {\n transitionDuration: theme.motion.duration.moderate,\n });\n\n const isHeaderFloating = !hasBodyPadding && isHeaderEmpty;\n const contextValue: BottomSheetContextProps = React.useMemo(\n () => ({\n isInBottomSheet: true,\n isOpen: Boolean(isVisible),\n close,\n positionY,\n headerHeight,\n contentHeight,\n footerHeight,\n setContentHeight,\n setFooterHeight,\n setHeaderHeight,\n setHasBodyPadding,\n setIsHeaderEmpty,\n scrollRef,\n bind,\n defaultInitialFocusRef,\n isHeaderFloating,\n }),\n [\n isVisible,\n close,\n positionY,\n headerHeight,\n contentHeight,\n footerHeight,\n setContentHeight,\n setFooterHeight,\n setHeaderHeight,\n setHasBodyPadding,\n setIsHeaderEmpty,\n scrollRef,\n bind,\n defaultInitialFocusRef,\n isHeaderFloating,\n ],\n );\n\n React.useEffect(() => {\n if (isMounted) {\n addBottomSheetToStack(id);\n } else {\n removeBottomSheetFromStack(id);\n }\n }, [addBottomSheetToStack, id, isMounted, removeBottomSheetFromStack]);\n\n // We will need to reset these values otherwise the next time the bottomsheet opens\n // this will be populated and the animations won't run\n // why?: because how the usePresence hook works, we actually just unmount the\n // html contents not the whole <BottomSheet /> react component\n React.useEffect(() => {\n if (!isMounted) {\n setHeaderHeight(0);\n setFooterHeight(0);\n setContentHeight(0);\n setGrabHandleHeight(0);\n _setPositionY(0);\n }\n }, [isMounted, scrollLockRef]);\n\n // We don't want to destroy the react tree when we are rendering inside Dropdown\n // Because if we bail out early then ActionList won't render,\n // and Dropdown manages it's state based on the rendered JSX of ActionList\n // If we don't render ActionList Dropdown state will reset each time we open/close BottomSheet\n const isInsideDropdown = Boolean(bottomSheetAndDropdownGlue);\n if (!isMounted && !isInsideDropdown) {\n return <></>;\n }\n\n return (\n <BottomSheetContext.Provider value={contextValue}>\n <BottomSheetBackdrop zIndex={bottomSheetZIndex} />\n <BottomSheetSurface\n {...metaAttribute({\n name: MetaConstants.BottomSheet,\n testID: 'bottomsheet-surface',\n })}\n {...makeAccessible({ modal: true, role: 'dialog' })}\n windowHeight={dimensions.height}\n isDragging={isDragging}\n style={{\n opacity: isVisible ? 1 : 0,\n pointerEvents: isVisible ? 'all' : 'none',\n height: positionY,\n bottom: 0,\n top: 'auto',\n zIndex: bottomSheetZIndex,\n }}\n >\n <BaseBox height=\"100%\" display=\"flex\" flexDirection=\"column\">\n <BottomSheetGrabHandle\n ref={grabHandleRef}\n isHeaderFloating={isHeaderFloating}\n {...metaAttribute({ name: ComponentIds.BottomSheetGrabHandle })}\n {...bind()}\n />\n {children}\n </BaseBox>\n </BottomSheetSurface>\n </BottomSheetContext.Provider>\n );\n};\n\nconst BottomSheet = assignWithoutSideEffects(_BottomSheet, {\n componentId: ComponentIds.BottomSheet,\n});\n\nexport { BottomSheet, BottomSheetBody, BottomSheetHeader, BottomSheetFooter };\nexport type { BottomSheetProps };\n"],"names":["BOTTOM_SHEET_EASING","AUTOCOMPLETE_DEFAULT_SNAPPOINT","BottomSheetSurface","styled","div","withConfig","displayName","componentId","_ref","theme","windowHeight","isDragging","background","colors","popup","subtle","borderTopLeftRadius","makeSize","size","borderTopRightRadius","borderColor","border","boxShadow","opacity","pointerEvents","transitionDuration","undefined","concat","makeMotionTime","motion","duration","moderate","transitionTimingFunction","willChange","transitionProperty","position","left","right","bottom","top","backgroundColor","justifyContent","alignItems","touchAction","overflow","_BottomSheet","_ref2","isOpen","onDismiss","children","initialFocusRef","_ref2$snapPoints","snapPoints","_ref2$zIndex","zIndex","componentZIndices","bottomSheet","_useTheme","useTheme","dimensions","useWindowSize","_React$useState","React","useState","_React$useState2","_slicedToArray","contentHeight","setContentHeight","_React$useState3","_React$useState4","headerHeight","setHeaderHeight","_React$useState5","_React$useState6","footerHeight","setFooterHeight","_React$useState7","_React$useState8","grabHandleHeight","setGrabHandleHeight","_React$useState9","_React$useState10","hasBodyPadding","setHasBodyPadding","_React$useState11","_React$useState12","isHeaderEmpty","setIsHeaderEmpty","bottomSheetAndDropdownGlue","useBottomSheetAndDropdownGlue","_React$useState13","_React$useState14","positionY","_setPositionY","_isOpen","_React$useState15","_React$useState16","setIsDragging","preventScrollingRef","useRef","scrollRef","grabHandleRef","defaultInitialFocusRef","originalFocusElement","initialSnapPoint","totalHeight","useMemo","id","useId","_useBottomSheetStack","useBottomSheetStack","stack","addBottomSheetToStack","removeBottomSheetFromStack","getTopOfTheStack","getCurrentStackIndexById","currentStackIndex","isOnTopOfStack","bottomSheetZIndex","setPositionY","useCallback","value","limit","arguments","length","shouldLimitPositionY","hasAutoCompleteInBottomSheetHeader","maxValue","computeMaxContent","maxHeight","isReady","shouldLock","scrollLockRef","useScrollLock","enabled","targetRef","reserveScrollBarGap","useEffect","hasNoBottomSheets","clearAllBodyScrollLocks","useIsomorphicLayoutEffect","current","getBoundingClientRect","height","middleSnapPoint","lowerSnapPoint","returnFocus","focus","focusOnInitialRef","_defaultInitialFocusR","_initialFocusRef$curr","useLayoutEffect","handleOnOpen","_originalFocusElement","activate","document","activeElement","handleOnClose","close","onBottomSheetDismiss","window","setTimeout","setDropdownHasBottomSheet","bind","useDrag","_ref3","active","last","cancel","tap","_ref3$movement","movement","_movementX","movementY","_ref3$velocity","velocity","_velocityX","velocityY","_ref3$lastOffset","lastOffset","_","lastOffsetY","down","dragging","_ref3$args","args","_ref3$args2","_ref3$args3","_ref3$args3$","_ref3$args3$2","_ref3$args3$2$isConte","isContentDragging","Boolean","rawY","upperSnapPoint","predictedDistance","predictedY","Math","max","min","newY","dampening","rubberbandIfOutOfBounds","isPosAtUpperSnapPoint","isContentScrolledAtTop","scrollTop","_computeSnapPointBoun","computeSnapPointBounds","map","point","_computeSnapPointBoun2","nearest","lower","lowerPointBuffer","lowerestSnap","shouldClose","from","filterTaps","scrollElement","preventScrolling","e","preventDefault","preventSafariOverscroll","addEventListener","removeEventListener","_usePresence","usePresence","isMounted","isVisible","isHeaderFloating","contextValue","isInBottomSheet","isInsideDropdown","_jsx","_Fragment","_jsxs","BottomSheetContext","Provider","BottomSheetBackdrop","_objectSpread","metaAttribute","name","MetaConstants","BottomSheet","testID","makeAccessible","modal","role","style","BaseBox","display","flexDirection","BottomSheetGrabHandle","ref","ComponentIds","assignWithoutSideEffects"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCO,IAAMA,mBAAmB,GAAG,8BAA6B;AAChE,IAAMC,8BAA8B,GAAG,IAAI,CAAA;AAE3C,IAAMC,kBAAkB,gBAAGC,MAAM,CAACC,GAAG,CA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AACvB6O,MAAAA,KAAK,EAAE;AACLjO,QAAAA,OAAO,EAAE6M,SAAS,GAAG,CAAC,GAAG,CAAC;AAC1B5M,QAAAA,aAAa,EAAE4M,SAAS,GAAG,KAAK,GAAG,MAAM;AACzCrF,QAAAA,MAAM,EAAEnD,SAAS;AACjBtD,QAAAA,MAAM,EAAE,CAAC;AACTC,QAAAA,GAAG,EAAE,MAAM;AACXe,QAAAA,MAAM,EAAEgE,iBAAAA;OACR;MAAArE,QAAA,eAEF0L,IAAA,CAACc,OAAO,EAAA;AAAC1G,QAAAA,MAAM,EAAC,MAAM;AAAC2G,QAAAA,OAAO,EAAC,MAAM;AAACC,QAAAA,aAAa,EAAC,QAAQ;AAAA1M,QAAAA,QAAA,gBAC1DwL,GAAA,CAACmB,qBAAqB,EAAAb,aAAA,CAAAA,aAAA,CAAA;AACpBc,UAAAA,GAAG,EAAExJ,aAAc;AACnBgI,UAAAA,gBAAgB,EAAEA,gBAAAA;AAAiB,SAAA,EAC/BW,aAAa,CAAC;UAAEC,IAAI,EAAEa,YAAY,CAACF,qBAAAA;SAAuB,CAAC,GAC3DzF,IAAI,EAAE,CACX,CAAC,EACDlH,QAAQ,CAAA;OACF,CAAA;AAAC,KAAA,CACQ,CAAC,CAAA;AAAA,GACM,CAAC,CAAA;AAElC,CAAC,CAAA;AAED,IAAMkM,WAAW,gBAAGY,wBAAwB,CAAClN,YAAY,EAAE;EACzDtC,WAAW,EAAEuP,YAAY,CAACX,WAAAA;AAC5B,CAAC;;;;"}
1
+ {"version":3,"file":"BottomSheet.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheet.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable react/jsx-no-useless-fragment */\n/* eslint-disable consistent-return */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport React from 'react';\nimport styled from 'styled-components';\nimport { rubberbandIfOutOfBounds, useDrag } from '@use-gesture/react';\nimport usePresence from 'use-presence';\nimport { clearAllBodyScrollLocks } from 'body-scroll-lock-upgrade';\nimport { BottomSheetHeader } from './BottomSheetHeader';\nimport { BottomSheetFooter } from './BottomSheetFooter';\nimport { BottomSheetBody } from './BottomSheetBody';\nimport type { SnapPoints } from './utils';\nimport { computeMaxContent, computeSnapPointBounds } from './utils';\nimport { BottomSheetBackdrop } from './BottomSheetBackdrop';\nimport type { BottomSheetContextProps } from './BottomSheetContext';\nimport { BottomSheetContext, useBottomSheetAndDropdownGlue } from './BottomSheetContext';\nimport { ComponentIds } from './componentIds';\nimport type { BottomSheetProps } from './types';\nimport { BottomSheetGrabHandle } from './BottomSheetGrabHandle';\nimport { useBottomSheetStack } from './BottomSheetStack';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { useScrollLock } from '~utils/useScrollLock';\nimport { useWindowSize } from '~utils/useWindowSize';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { useTheme } from '~components/BladeProvider';\nimport { useId } from '~utils/useId';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeSize } from '~utils/makeSize';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { size } from '~tokens/global';\nimport { makeMotionTime } from '~utils/makeMotionTime';\nimport { componentZIndices } from '~utils/componentZIndices';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nexport const BOTTOM_SHEET_EASING = 'cubic-bezier(.15,0,.24,.97)';\nconst AUTOCOMPLETE_DEFAULT_SNAPPOINT = 0.85;\n\nconst BottomSheetSurface = styled.div<{\n windowHeight: number;\n isDragging: boolean;\n}>(({ theme, windowHeight, isDragging }) => {\n return {\n background: theme.colors.popup.background.subtle,\n borderTopLeftRadius: makeSize(size[16]),\n borderTopRightRadius: makeSize(size[16]),\n borderColor: theme.colors.popup.border.subtle,\n // this is reverse top elevation of highRaised elevation token\n boxShadow: '0px -24px 48px -12px hsla(217, 56%, 17%, 0.18)',\n opacity: 0,\n pointerEvents: 'none',\n transitionDuration: isDragging\n ? undefined\n : `${makeMotionTime(theme.motion.duration.moderate)}`,\n transitionTimingFunction: BOTTOM_SHEET_EASING,\n willChange: 'transform, opacity, height',\n transitionProperty: 'transform, opacity, height',\n position: 'fixed',\n left: 0,\n right: 0,\n bottom: 0,\n top: windowHeight,\n backgroundColor: theme.colors.popup.background.subtle,\n justifyContent: 'center',\n alignItems: 'center',\n touchAction: 'none',\n overflow: 'hidden',\n };\n});\n\nconst _BottomSheet = ({\n isOpen,\n onDismiss,\n children,\n initialFocusRef,\n snapPoints = [0.35, 0.5, 0.85],\n zIndex = componentZIndices.bottomSheet,\n ...dataAnalyticsProps\n}: BottomSheetProps): React.ReactElement => {\n const { theme } = useTheme();\n const dimensions = useWindowSize();\n const [contentHeight, setContentHeight] = React.useState(0);\n const [headerHeight, setHeaderHeight] = React.useState(0);\n const [footerHeight, setFooterHeight] = React.useState(0);\n const [grabHandleHeight, setGrabHandleHeight] = React.useState(0);\n const [hasBodyPadding, setHasBodyPadding] = React.useState(true);\n const [isHeaderEmpty, setIsHeaderEmpty] = React.useState(false);\n\n const bottomSheetAndDropdownGlue = useBottomSheetAndDropdownGlue();\n const [positionY, _setPositionY] = React.useState(0);\n const _isOpen = isOpen ?? bottomSheetAndDropdownGlue?.isOpen;\n const [isDragging, setIsDragging] = React.useState(false);\n\n const preventScrollingRef = React.useRef(true);\n const scrollRef = React.useRef<HTMLDivElement>(null);\n const grabHandleRef = React.useRef<HTMLDivElement>(null);\n const defaultInitialFocusRef = React.useRef<any>(null);\n const originalFocusElement = React.useRef<HTMLElement | null>(null);\n const initialSnapPoint = React.useRef<number>(snapPoints[1]);\n const totalHeight = React.useMemo(() => {\n return grabHandleHeight + headerHeight + footerHeight + contentHeight;\n }, [contentHeight, footerHeight, grabHandleHeight, headerHeight]);\n\n const id = useId();\n const {\n stack,\n addBottomSheetToStack,\n removeBottomSheetFromStack,\n getTopOfTheStack,\n getCurrentStackIndexById,\n } = useBottomSheetStack();\n const currentStackIndex = getCurrentStackIndexById(id);\n const isOnTopOfStack = getTopOfTheStack() === id;\n const bottomSheetZIndex = zIndex - currentStackIndex;\n\n const setPositionY = React.useCallback(\n (value: number, limit = true) => {\n // In AutoComplete, we want BottomSheet to be docked to top snappoint so we remove the limits\n const shouldLimitPositionY =\n limit && !bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader;\n\n const maxValue = computeMaxContent({\n contentHeight,\n footerHeight,\n headerHeight: headerHeight + grabHandleHeight,\n maxHeight: value,\n });\n _setPositionY(shouldLimitPositionY ? maxValue : value);\n },\n [\n bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader,\n contentHeight,\n footerHeight,\n grabHandleHeight,\n headerHeight,\n ],\n );\n\n // locks the body scroll to prevent accidental scrolling of content when we drag the sheet\n // We are ready when we calculated the height of the content\n const isReady = contentHeight > 0;\n // only lock the body when we atleast have 1 bottomsheet open\n const shouldLock = isReady && stack.length > 0;\n const scrollLockRef = useScrollLock({\n enabled: shouldLock,\n targetRef: scrollRef,\n reserveScrollBarGap: true,\n });\n\n // clear all body locks to avoid memory leaks & accidental body locking\n React.useEffect(() => {\n const hasNoBottomSheets = stack.length < 1;\n if (hasNoBottomSheets) {\n clearAllBodyScrollLocks();\n }\n }, [stack]);\n\n // take the grabHandle's height into headerHeight too\n useIsomorphicLayoutEffect(() => {\n if (!grabHandleRef.current) return;\n setGrabHandleHeight(grabHandleRef.current.getBoundingClientRect().height);\n }, [grabHandleRef.current, _isOpen]);\n\n // if bottomSheet height is >35% & <50% then set initial snapPoint to 35%\n useIsomorphicLayoutEffect(() => {\n if (bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader) {\n initialSnapPoint.current = AUTOCOMPLETE_DEFAULT_SNAPPOINT;\n } else {\n const middleSnapPoint = snapPoints[1] * dimensions.height;\n const lowerSnapPoint = snapPoints[0] * dimensions.height;\n if (totalHeight > lowerSnapPoint && totalHeight < middleSnapPoint) {\n initialSnapPoint.current = snapPoints[0];\n }\n }\n }, [dimensions.height, snapPoints, totalHeight]);\n\n const returnFocus = React.useCallback(() => {\n if (!originalFocusElement.current) return;\n originalFocusElement.current.focus();\n // After returning focus we will clear the original focus\n // Because if sheet can be opened up via multiple triggers\n // We want to ensure the focus returns back to the most recent triggerer\n originalFocusElement.current = null;\n }, [originalFocusElement]);\n\n const focusOnInitialRef = React.useCallback(() => {\n if (!initialFocusRef) {\n // focus on close button\n defaultInitialFocusRef.current?.focus();\n } else {\n // focus on the initialRef passed by the user\n initialFocusRef.current?.focus();\n }\n }, [initialFocusRef]);\n\n // focus on the initial ref when the sheet is opened\n React.useLayoutEffect(() => {\n if (_isOpen) {\n focusOnInitialRef();\n }\n }, [_isOpen, focusOnInitialRef]);\n\n const handleOnOpen = React.useCallback(() => {\n setPositionY(dimensions.height * initialSnapPoint.current);\n scrollLockRef.current.activate();\n // initialize the original focused element\n // On first render it will be the activeElement, eg: the button trigger or select input\n // On Subsequent open operations it won't further update the original focus\n originalFocusElement.current =\n originalFocusElement.current ?? (document.activeElement as HTMLElement);\n }, [dimensions.height, scrollLockRef, setPositionY]);\n\n const handleOnClose = React.useCallback(() => {\n setPositionY(0);\n }, [setPositionY]);\n\n const close = React.useCallback(() => {\n onDismiss?.();\n bottomSheetAndDropdownGlue?.onBottomSheetDismiss();\n returnFocus();\n }, [bottomSheetAndDropdownGlue, onDismiss, returnFocus]);\n\n // sync controlled state to our actions\n React.useEffect(() => {\n if (_isOpen) {\n // open on the next frame, otherwise the animations will not run on first render\n window.setTimeout(() => {\n handleOnOpen();\n });\n } else {\n handleOnClose();\n }\n }, [_isOpen, handleOnClose, handleOnOpen]);\n\n // let the Dropdown component know that it's rendering a bottomsheet\n React.useEffect(() => {\n if (!bottomSheetAndDropdownGlue) return;\n bottomSheetAndDropdownGlue.setDropdownHasBottomSheet(true);\n }, [bottomSheetAndDropdownGlue]);\n\n const bind = useDrag(\n ({\n active,\n last,\n cancel,\n tap,\n movement: [_movementX, movementY],\n velocity: [_velocityX, velocityY],\n lastOffset: [_, lastOffsetY],\n down,\n dragging,\n args: [{ isContentDragging = false } = {}] = [],\n }) => {\n setIsDragging(Boolean(dragging));\n // lastOffsetY is the previous position user stopped dragging the sheet\n // movementY is the drag amount from the bottom of the screen, so as you drag up the movementY goes into negatives\n // and rawY is the calculated offset from the last position of the bottomsheet to current drag amount.\n const rawY = lastOffsetY - movementY;\n\n const lowerSnapPoint = dimensions.height * snapPoints[0];\n const upperSnapPoint = dimensions.height * snapPoints[snapPoints.length - 1];\n\n // predictedY is used to create velocity driven swipe\n // the faster you swipe the more distance you cover\n // this enables users to reach upper & lower snappoint with a single swipe\n const predictedDistance = movementY * (velocityY / 2);\n const predictedY = Math.max(\n lowerSnapPoint,\n Math.min(upperSnapPoint, rawY - predictedDistance * 2),\n );\n\n let newY = rawY;\n\n if (down) {\n // Ensure that users aren't able to drag the sheet\n // more than the upperSnapPoint or maximum height of the sheet\n // this is basically a clamp() function but creates a nice rubberband effect\n const dampening = 0.55;\n if (totalHeight < upperSnapPoint) {\n newY = rubberbandIfOutOfBounds(rawY, 0, totalHeight, dampening);\n } else {\n newY = rubberbandIfOutOfBounds(rawY, 0, upperSnapPoint, dampening);\n }\n } else {\n newY = predictedY;\n }\n\n const isPosAtUpperSnapPoint = newY >= upperSnapPoint;\n\n if (isContentDragging) {\n if (isPosAtUpperSnapPoint) {\n newY = upperSnapPoint;\n }\n\n // keep the newY at upper snap point\n // until the scrollable content is not at top\n // and previously saved Y position is greater than or equal to upper snap point\n // Note: how using newY won't work here since we need the previous value of the newY\n // since we always keep updating the newY,\n // this is cruicial in making the scroll feel natural\n const isContentScrolledAtTop = scrollRef.current && scrollRef.current.scrollTop <= 0;\n if (lastOffsetY === upperSnapPoint && !isContentScrolledAtTop) {\n newY = upperSnapPoint;\n }\n preventScrollingRef.current = newY < upperSnapPoint;\n }\n\n if (last) {\n // calculate the nearest snapPoint\n const [nearest, lower] = computeSnapPointBounds(\n newY,\n snapPoints.map((point) => dimensions.height * point) as SnapPoints,\n );\n\n // This ensure that the lower snapPoint will always have atleast some buffer\n // When the bottomsheet total height is less than the lower snapPoint\n // Video walkthrough: https://www.loom.com/share/a9a8db7688d64194b13df8b3e25859ae\n const lowerPointBuffer = 60;\n const lowerestSnap = Math.min(lower, totalHeight) - lowerPointBuffer;\n\n const shouldClose = rawY < lowerestSnap;\n if (shouldClose) {\n setIsDragging(false);\n cancel();\n close();\n return;\n }\n\n // if we stop dragging assign snap to the nearest point\n if (!active && !tap) {\n newY = nearest;\n }\n }\n\n setPositionY(newY, !down);\n },\n {\n from: [0, positionY],\n filterTaps: true,\n enabled: isOnTopOfStack && _isOpen,\n },\n );\n\n // Here we are preventing the scrolling of the content, until the preventScrollingRef value is true\n useIsomorphicLayoutEffect(() => {\n const scrollElement = scrollRef.current;\n if (!scrollElement) return;\n\n const preventScrolling = (e: Event) => {\n if (preventScrollingRef?.current) {\n e.preventDefault();\n }\n };\n\n // https://www.bram.us/2016/05/02/prevent-overscroll-bounce-in-ios-mobilesafari-pure-css/\n const preventSafariOverscroll = (e: Event) => {\n if (scrollElement.scrollTop < 0) {\n // TODO: figure this out, it doesn't seem to work >iOS12\n // requestAnimationFrame(() => {\n // elem.style.overflow = 'hidden';\n // elem.scrollTop = 0;\n // elem.style.removeProperty('overflow');\n // });\n e.preventDefault();\n }\n };\n\n scrollElement.addEventListener('scroll', preventScrolling);\n scrollElement.addEventListener('touchmove', preventScrolling);\n scrollElement.addEventListener('touchstart', preventSafariOverscroll);\n return () => {\n scrollElement.removeEventListener('scroll', preventScrolling);\n scrollElement.removeEventListener('touchmove', preventScrolling);\n scrollElement.removeEventListener('touchstart', preventSafariOverscroll);\n };\n // Only run this hook when we know all the layout calculations are done,\n // Otherwise the scrollRef.current will be null.\n // isReady prop will ensure that we are done measuring the content height\n }, [isReady]);\n\n // usePresence hook waits for the animation to finish before unmounting the component\n // It's similar to framer-motions usePresence hook\n // https://www.framer.com/docs/animate-presence/#usepresence\n const { isMounted, isVisible } = usePresence(Boolean(_isOpen), {\n transitionDuration: theme.motion.duration.moderate,\n });\n\n const isHeaderFloating = !hasBodyPadding && isHeaderEmpty;\n const contextValue: BottomSheetContextProps = React.useMemo(\n () => ({\n isInBottomSheet: true,\n isOpen: Boolean(isVisible),\n close,\n positionY,\n headerHeight,\n contentHeight,\n footerHeight,\n setContentHeight,\n setFooterHeight,\n setHeaderHeight,\n setHasBodyPadding,\n setIsHeaderEmpty,\n scrollRef,\n bind,\n defaultInitialFocusRef,\n isHeaderFloating,\n }),\n [\n isVisible,\n close,\n positionY,\n headerHeight,\n contentHeight,\n footerHeight,\n setContentHeight,\n setFooterHeight,\n setHeaderHeight,\n setHasBodyPadding,\n setIsHeaderEmpty,\n scrollRef,\n bind,\n defaultInitialFocusRef,\n isHeaderFloating,\n ],\n );\n\n React.useEffect(() => {\n if (isMounted) {\n addBottomSheetToStack(id);\n } else {\n removeBottomSheetFromStack(id);\n }\n }, [addBottomSheetToStack, id, isMounted, removeBottomSheetFromStack]);\n\n // We will need to reset these values otherwise the next time the bottomsheet opens\n // this will be populated and the animations won't run\n // why?: because how the usePresence hook works, we actually just unmount the\n // html contents not the whole <BottomSheet /> react component\n React.useEffect(() => {\n if (!isMounted) {\n setHeaderHeight(0);\n setFooterHeight(0);\n setContentHeight(0);\n setGrabHandleHeight(0);\n _setPositionY(0);\n }\n }, [isMounted, scrollLockRef]);\n\n // We don't want to destroy the react tree when we are rendering inside Dropdown\n // Because if we bail out early then ActionList won't render,\n // and Dropdown manages it's state based on the rendered JSX of ActionList\n // If we don't render ActionList Dropdown state will reset each time we open/close BottomSheet\n const isInsideDropdown = Boolean(bottomSheetAndDropdownGlue);\n if (!isMounted && !isInsideDropdown) {\n return <></>;\n }\n\n return (\n <BottomSheetContext.Provider value={contextValue}>\n <BottomSheetBackdrop zIndex={bottomSheetZIndex} />\n <BottomSheetSurface\n {...metaAttribute({\n name: MetaConstants.BottomSheet,\n testID: 'bottomsheet-surface',\n })}\n {...makeAccessible({ modal: true, role: 'dialog' })}\n windowHeight={dimensions.height}\n isDragging={isDragging}\n style={{\n opacity: isVisible ? 1 : 0,\n pointerEvents: isVisible ? 'all' : 'none',\n height: positionY,\n bottom: 0,\n top: 'auto',\n zIndex: bottomSheetZIndex,\n }}\n {...makeAnalyticsAttribute(dataAnalyticsProps)}\n >\n <BaseBox height=\"100%\" display=\"flex\" flexDirection=\"column\">\n <BottomSheetGrabHandle\n ref={grabHandleRef}\n isHeaderFloating={isHeaderFloating}\n {...metaAttribute({ name: ComponentIds.BottomSheetGrabHandle })}\n {...bind()}\n />\n {children}\n </BaseBox>\n </BottomSheetSurface>\n </BottomSheetContext.Provider>\n );\n};\n\nconst BottomSheet = assignWithoutSideEffects(_BottomSheet, {\n componentId: ComponentIds.BottomSheet,\n});\n\nexport { BottomSheet, BottomSheetBody, BottomSheetHeader, BottomSheetFooter };\nexport type { BottomSheetProps };\n"],"names":["BOTTOM_SHEET_EASING","AUTOCOMPLETE_DEFAULT_SNAPPOINT","BottomSheetSurface","styled","div","withConfig","displayName","componentId","_ref","theme","windowHeight","isDragging","background","colors","popup","subtle","borderTopLeftRadius","makeSize","size","borderTopRightRadius","borderColor","border","boxShadow","opacity","pointerEvents","transitionDuration","undefined","concat","makeMotionTime","motion","duration","moderate","transitionTimingFunction","willChange","transitionProperty","position","left","right","bottom","top","backgroundColor","justifyContent","alignItems","touchAction","overflow","_BottomSheet","_ref2","isOpen","onDismiss","children","initialFocusRef","_ref2$snapPoints","snapPoints","_ref2$zIndex","zIndex","componentZIndices","bottomSheet","dataAnalyticsProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","dimensions","useWindowSize","_React$useState","React","useState","_React$useState2","_slicedToArray","contentHeight","setContentHeight","_React$useState3","_React$useState4","headerHeight","setHeaderHeight","_React$useState5","_React$useState6","footerHeight","setFooterHeight","_React$useState7","_React$useState8","grabHandleHeight","setGrabHandleHeight","_React$useState9","_React$useState10","hasBodyPadding","setHasBodyPadding","_React$useState11","_React$useState12","isHeaderEmpty","setIsHeaderEmpty","bottomSheetAndDropdownGlue","useBottomSheetAndDropdownGlue","_React$useState13","_React$useState14","positionY","_setPositionY","_isOpen","_React$useState15","_React$useState16","setIsDragging","preventScrollingRef","useRef","scrollRef","grabHandleRef","defaultInitialFocusRef","originalFocusElement","initialSnapPoint","totalHeight","useMemo","id","useId","_useBottomSheetStack","useBottomSheetStack","stack","addBottomSheetToStack","removeBottomSheetFromStack","getTopOfTheStack","getCurrentStackIndexById","currentStackIndex","isOnTopOfStack","bottomSheetZIndex","setPositionY","useCallback","value","limit","arguments","length","shouldLimitPositionY","hasAutoCompleteInBottomSheetHeader","maxValue","computeMaxContent","maxHeight","isReady","shouldLock","scrollLockRef","useScrollLock","enabled","targetRef","reserveScrollBarGap","useEffect","hasNoBottomSheets","clearAllBodyScrollLocks","useIsomorphicLayoutEffect","current","getBoundingClientRect","height","middleSnapPoint","lowerSnapPoint","returnFocus","focus","focusOnInitialRef","_defaultInitialFocusR","_initialFocusRef$curr","useLayoutEffect","handleOnOpen","_originalFocusElement","activate","document","activeElement","handleOnClose","close","onBottomSheetDismiss","window","setTimeout","setDropdownHasBottomSheet","bind","useDrag","_ref3","active","last","cancel","tap","_ref3$movement","movement","_movementX","movementY","_ref3$velocity","velocity","_velocityX","velocityY","_ref3$lastOffset","lastOffset","_","lastOffsetY","down","dragging","_ref3$args","args","_ref3$args2","_ref3$args3","_ref3$args3$","_ref3$args3$2","_ref3$args3$2$isConte","isContentDragging","Boolean","rawY","upperSnapPoint","predictedDistance","predictedY","Math","max","min","newY","dampening","rubberbandIfOutOfBounds","isPosAtUpperSnapPoint","isContentScrolledAtTop","scrollTop","_computeSnapPointBoun","computeSnapPointBounds","map","point","_computeSnapPointBoun2","nearest","lower","lowerPointBuffer","lowerestSnap","shouldClose","from","filterTaps","scrollElement","preventScrolling","e","preventDefault","preventSafariOverscroll","addEventListener","removeEventListener","_usePresence","usePresence","isMounted","isVisible","isHeaderFloating","contextValue","isInBottomSheet","isInsideDropdown","_jsx","_Fragment","_jsxs","BottomSheetContext","Provider","BottomSheetBackdrop","_objectSpread","metaAttribute","name","MetaConstants","BottomSheet","testID","makeAccessible","modal","role","style","makeAnalyticsAttribute","BaseBox","display","flexDirection","BottomSheetGrabHandle","ref","ComponentIds","assignWithoutSideEffects"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCO,IAAMA,mBAAmB,GAAG,8BAA6B;AAChE,IAAMC,8BAA8B,GAAG,IAAI,CAAA;AAE3C,IAAMC,kBAAkB,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,oCAAA;EAAAC,WAAA,EAAA,UAAA;AAAA,CAGlC,CAAA,CAAA,UAAAC,IAAA,EAAyC;AAAA,EAAA,IAAtCC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IAAEC,UAAU,GAAAH,IAAA,CAAVG,UAAU,CAAA;EACnC,OAAO;IACLC,UAAU,EAAEH,KAAK,CAACI,MAAM,CAACC,KAAK,CAACF,UAAU,CAACG,MAAM;AAChDC,IAAAA,mBAAmB,EAAEC,QAAQ,CAACC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvCC,IAAAA,oBAAoB,EAAEF,QAAQ,CAACC,IAAI,CAAC,EAAE,CAAC,CAAC;IACxCE,WAAW,EAAEX,KAAK,CAACI,MAAM,CAACC,KAAK,CAACO,MAAM,CAACN,MAAM;AAC7C;AACAO,IAAAA,SAAS,EAAE,gDAAgD;AAC3DC,IAAAA,OAAO,EAAE,CAAC;AACVC,IAAAA,aAAa,EAAE,MAAM;AACrBC,IAAAA,kBAAkB,EAAEd,UAAU,GAC1Be,SAAS,GAAA,EAAA,CAAAC,MAAA,CACNC,cAAc,CAACnB,KAAK,CAACoB,MAAM,CAACC,QAAQ,CAACC,QAAQ,CAAC,CAAE;AACvDC,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CAACF,qBAAAA;SAAuB,CAAC,GAC3D1F,IAAI,EAAE,CACX,CAAC,EACDrH,QAAQ,CAAA;OACF,CAAA;AAAC,KAAA,CACQ,CAAC,CAAA;AAAA,GACM,CAAC,CAAA;AAElC,CAAC,CAAA;AAED,IAAMqM,WAAW,gBAAGa,wBAAwB,CAACtN,YAAY,EAAE;EACzDtC,WAAW,EAAE2P,YAAY,CAACZ,WAAAA;AAC5B,CAAC;;;;"}
@@ -1,5 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
4
  import React__default from 'react';
4
5
  import { ComponentIds } from './componentIds.js';
5
6
  import { useBottomSheetContext } from './BottomSheetContext.js';
@@ -9,13 +10,16 @@ import { componentIds } from '../ActionList/componentIds.js';
9
10
  import '../../utils/assignWithoutSideEffects/index.js';
10
11
  import '../../utils/metaAttribute/index.js';
11
12
  import '../../utils/isValidAllowedChildren/index.js';
13
+ import '../../utils/makeAnalyticsAttribute/index.js';
12
14
  import { jsx } from 'react/jsx-runtime';
13
15
  import { isValidAllowedChildren } from '../../utils/isValidAllowedChildren/isValidAllowedChildren.js';
14
16
  import { BaseBox } from '../Box/BaseBox/BaseBox.web.js';
15
17
  import { metaAttribute } from '../../utils/metaAttribute/metaAttribute.web.js';
16
18
  import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js';
19
+ import { makeAnalyticsAttribute } from '../../utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js';
17
20
  import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
18
21
 
22
+ var _excluded = ["children", "padding", "overflow"];
19
23
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
24
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
25
  var bodyStyles = {
@@ -32,7 +36,8 @@ var _BottomSheetBody = function _BottomSheetBody(_ref) {
32
36
  _ref$padding = _ref.padding,
33
37
  padding = _ref$padding === void 0 ? 'spacing.5' : _ref$padding,
34
38
  _ref$overflow = _ref.overflow,
35
- overflow = _ref$overflow === void 0 ? 'auto' : _ref$overflow;
39
+ overflow = _ref$overflow === void 0 ? 'auto' : _ref$overflow,
40
+ dataAnalyticsProps = _objectWithoutProperties(_ref, _excluded);
36
41
  var _useBottomSheetContex = useBottomSheetContext(),
37
42
  scrollRef = _useBottomSheetContex.scrollRef,
38
43
  setContentHeight = _useBottomSheetContex.setContentHeight,
@@ -62,10 +67,10 @@ var _BottomSheetBody = function _BottomSheetBody(_ref) {
62
67
  }
63
68
  // eslint-disable-next-line react-hooks/exhaustive-deps
64
69
  }, [padding]);
65
- return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread({}, metaAttribute({
70
+ return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, metaAttribute({
66
71
  testID: 'bottomsheet-body',
67
72
  name: MetaConstants.BottomSheetBody
68
- })), {}, {
73
+ })), makeAnalyticsAttribute(dataAnalyticsProps)), {}, {
69
74
  ref: scrollRef,
70
75
  flexGrow: 1,
71
76
  flexShrink: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetBody.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheetBody.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\nimport { ComponentIds } from './componentIds';\nimport { useBottomSheetContext } from './BottomSheetContext';\nimport type { BottomSheetBodyProps } from './types';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport BaseBox from '~components/Box/BaseBox';\nimport { componentIds } from '~components/ActionList/componentIds';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { isValidAllowedChildren } from '~utils/isValidAllowedChildren';\n\nconst bodyStyles: React.CSSProperties = {\n WebkitTapHighlightColor: 'revert',\n WebkitTouchCallout: 'revert',\n WebkitUserSelect: 'auto',\n overscrollBehavior: 'contain',\n WebkitOverflowScrolling: 'touch',\n userSelect: 'auto',\n touchAction: 'none',\n};\n\nconst _BottomSheetBody = ({\n children,\n padding = 'spacing.5',\n overflow = 'auto',\n}: BottomSheetBodyProps): React.ReactElement => {\n const { scrollRef, setContentHeight, setHasBodyPadding, isOpen, bind } = useBottomSheetContext();\n const contentRef = React.useRef<HTMLDivElement>(null);\n const [bottomSheetHasActionList, setBottomSheetHasActionList] = React.useState<boolean>(false);\n\n useIsomorphicLayoutEffect(() => {\n if (!contentRef.current) return;\n setContentHeight(contentRef.current.getBoundingClientRect().height);\n }, [contentRef, isOpen, children]);\n\n React.useEffect(() => {\n setBottomSheetHasActionList(false);\n React.Children.forEach(children, (child) => {\n if (isValidAllowedChildren(child, componentIds.ActionList)) {\n setBottomSheetHasActionList(true);\n }\n });\n }, [children]);\n\n React.useEffect(() => {\n if (padding === 'spacing.0') {\n setHasBodyPadding(false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [padding]);\n\n return (\n <BaseBox\n {...metaAttribute({\n testID: 'bottomsheet-body',\n name: MetaConstants.BottomSheetBody,\n })}\n ref={scrollRef}\n flexGrow={1}\n flexShrink={1}\n style={bodyStyles}\n overflow={overflow}\n // Passing isContentDragging to bind()\n // Inside the useDrag() hook this will let us know if user is dragging the content or not\n {...bind?.({ isContentDragging: true })}\n >\n <BaseBox\n paddingLeft={bottomSheetHasActionList ? 'spacing.3' : padding}\n paddingRight={bottomSheetHasActionList ? 'spacing.3' : padding}\n paddingTop={bottomSheetHasActionList ? 'spacing.3' : padding}\n paddingBottom={bottomSheetHasActionList ? 'spacing.3' : padding}\n ref={contentRef}\n overflow={overflow}\n >\n {children}\n </BaseBox>\n </BaseBox>\n );\n};\n\nconst BottomSheetBody = assignWithoutSideEffects(_BottomSheetBody, {\n componentId: ComponentIds.BottomSheetBody,\n});\n\nexport { BottomSheetBody };\n"],"names":["bodyStyles","WebkitTapHighlightColor","WebkitTouchCallout","WebkitUserSelect","overscrollBehavior","WebkitOverflowScrolling","userSelect","touchAction","_BottomSheetBody","_ref","children","_ref$padding","padding","_ref$overflow","overflow","_useBottomSheetContex","useBottomSheetContext","scrollRef","setContentHeight","setHasBodyPadding","isOpen","bind","contentRef","React","useRef","_React$useState","useState","_React$useState2","_slicedToArray","bottomSheetHasActionList","setBottomSheetHasActionList","useIsomorphicLayoutEffect","current","getBoundingClientRect","height","useEffect","Children","forEach","child","isValidAllowedChildren","componentIds","ActionList","_jsx","BaseBox","_objectSpread","metaAttribute","testID","name","MetaConstants","BottomSheetBody","ref","flexGrow","flexShrink","style","isContentDragging","paddingLeft","paddingRight","paddingTop","paddingBottom","assignWithoutSideEffects","componentId","ComponentIds"],"mappings":";;;;;;;;;;;;;;;;;;;;AAYA,IAAMA,UAA+B,GAAG;AACtCC,EAAAA,uBAAuB,EAAE,QAAQ;AACjCC,EAAAA,kBAAkB,EAAE,QAAQ;AAC5BC,EAAAA,gBAAgB,EAAE,MAAM;AACxBC,EAAAA,kBAAkB,EAAE,SAAS;AAC7BC,EAAAA,uBAAuB,EAAE,OAAO;AAChCC,EAAAA,UAAU,EAAE,MAAM;AAClBC,EAAAA,WAAW,EAAE,MAAA;AACf,CAAC,CAAA;AAED,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,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U,EAAE5B,wBAAwB,GAAG,WAAW,GAAGjB,OAAQ;AAC7D8C,MAAAA,aAAa,EAAE7B,wBAAwB,GAAG,WAAW,GAAGjB,OAAQ;AAChEsC,MAAAA,GAAG,EAAE5B,UAAW;AAChBR,MAAAA,QAAQ,EAAEA,QAAS;AAAAJ,MAAAA,QAAA,EAElBA,QAAAA;KACM,CAAA;AAAC,GAAA,CACH,CAAC,CAAA;AAEd,CAAC,CAAA;AAED,IAAMuC,eAAe,gBAAGU,wBAAwB,CAACnD,gBAAgB,EAAE;EACjEoD,WAAW,EAAEC,YAAY,CAACZ,eAAAA;AAC5B,CAAC;;;;"}
1
+ {"version":3,"file":"BottomSheetBody.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheetBody.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\nimport { ComponentIds } from './componentIds';\nimport { useBottomSheetContext } from './BottomSheetContext';\nimport type { BottomSheetBodyProps } from './types';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport BaseBox from '~components/Box/BaseBox';\nimport { componentIds } from '~components/ActionList/componentIds';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { isValidAllowedChildren } from '~utils/isValidAllowedChildren';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst bodyStyles: React.CSSProperties = {\n WebkitTapHighlightColor: 'revert',\n WebkitTouchCallout: 'revert',\n WebkitUserSelect: 'auto',\n overscrollBehavior: 'contain',\n WebkitOverflowScrolling: 'touch',\n userSelect: 'auto',\n touchAction: 'none',\n};\n\nconst _BottomSheetBody = ({\n children,\n padding = 'spacing.5',\n overflow = 'auto',\n ...dataAnalyticsProps\n}: BottomSheetBodyProps): React.ReactElement => {\n const { scrollRef, setContentHeight, setHasBodyPadding, isOpen, bind } = useBottomSheetContext();\n const contentRef = React.useRef<HTMLDivElement>(null);\n const [bottomSheetHasActionList, setBottomSheetHasActionList] = React.useState<boolean>(false);\n\n useIsomorphicLayoutEffect(() => {\n if (!contentRef.current) return;\n setContentHeight(contentRef.current.getBoundingClientRect().height);\n }, [contentRef, isOpen, children]);\n\n React.useEffect(() => {\n setBottomSheetHasActionList(false);\n React.Children.forEach(children, (child) => {\n if (isValidAllowedChildren(child, componentIds.ActionList)) {\n setBottomSheetHasActionList(true);\n }\n });\n }, [children]);\n\n React.useEffect(() => {\n if (padding === 'spacing.0') {\n setHasBodyPadding(false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [padding]);\n\n return (\n <BaseBox\n {...metaAttribute({\n testID: 'bottomsheet-body',\n name: MetaConstants.BottomSheetBody,\n })}\n {...makeAnalyticsAttribute(dataAnalyticsProps)}\n ref={scrollRef}\n flexGrow={1}\n flexShrink={1}\n style={bodyStyles}\n overflow={overflow}\n // Passing isContentDragging to bind()\n // Inside the useDrag() hook this will let us know if user is dragging the content or not\n {...bind?.({ isContentDragging: true })}\n >\n <BaseBox\n paddingLeft={bottomSheetHasActionList ? 'spacing.3' : padding}\n paddingRight={bottomSheetHasActionList ? 'spacing.3' : padding}\n paddingTop={bottomSheetHasActionList ? 'spacing.3' : padding}\n paddingBottom={bottomSheetHasActionList ? 'spacing.3' : padding}\n ref={contentRef}\n overflow={overflow}\n >\n {children}\n </BaseBox>\n </BaseBox>\n );\n};\n\nconst BottomSheetBody = assignWithoutSideEffects(_BottomSheetBody, {\n componentId: ComponentIds.BottomSheetBody,\n});\n\nexport { BottomSheetBody };\n"],"names":["bodyStyles","WebkitTapHighlightColor","WebkitTouchCallout","WebkitUserSelect","overscrollBehavior","WebkitOverflowScrolling","userSelect","touchAction","_BottomSheetBody","_ref","children","_ref$padding","padding","_ref$overflow","overflow","dataAnalyticsProps","_objectWithoutProperties","_excluded","_useBottomSheetContex","useBottomSheetContext","scrollRef","setContentHeight","setHasBodyPadding","isOpen","bind","contentRef","React","useRef","_React$useState","useState","_React$useState2","_slicedToArray","bottomSheetHasActionList","setBottomSheetHasActionList","useIsomorphicLayoutEffect","current","getBoundingClientRect","height","useEffect","Children","forEach","child","isValidAllowedChildren","componentIds","ActionList","_jsx","BaseBox","_objectSpread","metaAttribute","testID","name","MetaConstants","BottomSheetBody","makeAnalyticsAttribute","ref","flexGrow","flexShrink","style","isContentDragging","paddingLeft","paddingRight","paddingTop","paddingBottom","assignWithoutSideEffects","componentId","ComponentIds"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAMA,UAA+B,GAAG;AACtCC,EAAAA,uBAAuB,EAAE,QAAQ;AACjCC,EAAAA,kBAAkB,EAAE,QAAQ;AAC5BC,EAAAA,gBAAgB,EAAE,MAAM;AACxBC,EAAAA,kBAAkB,EAAE,SAAS;AAC7BC,EAAAA,uBAAuB,EAAE,OAAO;AAChCC,EAAAA,UAAU,EAAE,MAAM;AAClBC,EAAAA,WAAW,EAAE,MAAA;AACf,CAAC,CAAA;AAED,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAK0B;AAAA,EAAA,IAJ9CC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,YAAA,GAAAF,IAAA,CACRG,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,WAAW,GAAAA,YAAA;IAAAE,aAAA,GAAAJ,IAAA,CACrBK,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,aAAA;AACdE,IAAAA,kBAAkB,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA,CAAA,CAAA;AAErB,EAAA,IAAAC,qBAAA,GAAyEC,qBAAqB,EAAE;IAAxFC,SAAS,GAAAF,qBAAA,CAATE,SAAS;IAAEC,gBAAgB,GAAAH,qBAAA,CAAhBG,gBAAgB;IAAEC,iBAAiB,GAAAJ,qBAAA,CAAjBI,iBAAiB;IAAE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ineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import { useBottomSheetContext } from './BottomSheetContext.js';
4
5
  import { BaseFooter } from '../BaseHeaderFooter/BaseFooter.js';
5
6
  import '../Box/BaseBox/index.js';
6
7
  import { useIsomorphicLayoutEffect } from '../../utils/useIsomorphicLayoutEffect.js';
7
8
  import '../../utils/metaAttribute/index.js';
9
+ import '../../utils/makeAnalyticsAttribute/index.js';
8
10
  import { jsx } from 'react/jsx-runtime';
9
11
  import { BaseBox } from '../Box/BaseBox/BaseBox.web.js';
10
12
  import { metaAttribute } from '../../utils/metaAttribute/metaAttribute.web.js';
11
13
  import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js';
14
+ import { makeAnalyticsAttribute } from '../../utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js';
12
15
 
16
+ var _excluded = ["children"];
13
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
19
  var BottomSheetFooter = function BottomSheetFooter(_ref) {
16
- var children = _ref.children;
20
+ var children = _ref.children,
21
+ dataAnalyticsProps = _objectWithoutProperties(_ref, _excluded);
17
22
  var _useBottomSheetContex = useBottomSheetContext(),
18
23
  setFooterHeight = _useBottomSheetContex.setFooterHeight,
19
24
  isOpen = _useBottomSheetContex.isOpen,
@@ -28,7 +33,7 @@ var BottomSheetFooter = function BottomSheetFooter(_ref) {
28
33
  setFooterHeight(ref.current.getBoundingClientRect().height);
29
34
  });
30
35
  }, [ref, isOpen]);
31
- return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread({
36
+ return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
32
37
  ref: ref,
33
38
  width: "100%",
34
39
  flexShrink: 0,
@@ -38,7 +43,7 @@ var BottomSheetFooter = function BottomSheetFooter(_ref) {
38
43
  zIndex: 2
39
44
  }, metaAttribute({
40
45
  name: MetaConstants.BottomSheetFooter
41
- })), bind === null || bind === void 0 ? void 0 : bind()), {}, {
46
+ })), bind === null || bind === void 0 ? void 0 : bind()), makeAnalyticsAttribute(dataAnalyticsProps)), {}, {
42
47
  children: /*#__PURE__*/jsx(BaseFooter, {
43
48
  children: children
44
49
  })
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetFooter.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheetFooter.web.tsx"],"sourcesContent":["import React from 'react';\nimport { useBottomSheetContext } from './BottomSheetContext';\nimport type { BaseFooterProps } from '~components/BaseHeaderFooter/BaseFooter';\nimport { BaseFooter } from '~components/BaseHeaderFooter/BaseFooter';\nimport BaseBox from '~components/Box/BaseBox';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\n\nconst BottomSheetFooter = ({ children }: BaseFooterProps): React.ReactElement => {\n const { setFooterHeight, isOpen, bind } = useBottomSheetContext();\n const ref = React.useRef<HTMLDivElement>(null);\n\n useIsomorphicLayoutEffect(() => {\n // for some reason the calculated footer height is changing when user drags the sheet\n // although i don't see a reason why, thus putting it in a setTimeout so that\n // we calculate the height on the next browser paint\n window.setTimeout(() => {\n if (!ref.current) return;\n setFooterHeight(ref.current.getBoundingClientRect().height);\n });\n }, [ref, isOpen]);\n\n return (\n <BaseBox\n ref={ref}\n width=\"100%\"\n flexShrink={0}\n marginTop=\"auto\"\n backgroundColor=\"popup.background.subtle\"\n touchAction=\"none\"\n zIndex={2}\n {...metaAttribute({ name: MetaConstants.BottomSheetFooter })}\n {...bind?.()}\n >\n <BaseFooter>{children}</BaseFooter>\n </BaseBox>\n );\n};\n\nexport { BottomSheetFooter };\n"],"names":["BottomSheetFooter","_ref","children","_useBottomSheetContex","useBottomSheetContext","setFooterHeight","isOpen","bind","ref","React","useRef","useIsomorphicLayoutEffect","window","setTimeout","current","getBoundingClientRect","height","_jsx","BaseBox","_objectSpread","width","flexShrink","marginTop","backgroundColor","touchAction","zIndex","metaAttribute","name","MetaConstants","BaseFooter"],"mappings":";;;;;;;;;;;;;;AAQA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAA0D;AAAA,EAAA,IAApDC,QAAQ,GAAAD,IAAA,CAARC,QAAQ,CAAA;AACnC,EAAA,IAAAC,qBAAA,GAA0CC,qBAAqB,EAAE;IAAzDC,eAAe,GAAAF,qBAAA,CAAfE,eAAe;IAAEC,MAAM,GAAAH,qBAAA,CAANG,MAAM;IAAEC,IAAI,GAAAJ,qBAAA,CAAJI,IAAI,CAAA;AACrC,EAAA,IAAMC,GAAG,GAAGC,cAAK,CAACC,MAAM,CAAiB,IAAI,CAAC,CAAA;AAE9CC,EAAAA,yBAAyB,CAAC,YAAM;AAC9B;AACA;AACA;IACAC,MAAM,CAACC,UAAU,CAAC,YAAM;AACtB,MAAA,IAAI,CAACL,GAAG,CAACM,OAAO,EAAE,OAAA;MAClBT,eAAe,CAACG,GAAG,CAACM,OAAO,CAACC,qBAAqB,EAAE,CAACC,MAAM,CAAC,CAAA;AAC7D,KAAC,CAAC,CAAA;AACJ,GAAC,EAAE,CAACR,GAAG,EAAEF,MAAM,CAAC,CAAC,CAAA;EAEjB,oBACEW,GAAA,CAACC,OAAO,EAAAC,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAA;AACNX,IAAAA,GAAG,EAAEA,GAAI;AACTY,IAAAA,KAAK,EAAC,MAAM;AACZC,IAAAA,UAAU,EAAE,CAAE;AACdC,IAAAA,SAAS,EAAC,MAAM;AAChBC,IAAAA,eAAe,EAAC,yBAAyB;AACzCC,IAAAA,WAAW,EAAC,MAAM;AAClBC,IAAAA,MAAM,EAAE,CAAA;AAAE,GAAA,EACNC,aAAa,CAAC;IAAEC,IAAI,EAAEC,aAAa,CAAC5B,iBAAAA;GAAmB,CAAC,GACxDO,IAAI,KAAA,IAAA,IAAJA,IAAI,KAAJA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,IAAI,EAAI,CAAA,EAAA,EAAA,EAAA;IAAAL,QAAA,eAEZe,GAAA,CAACY,UAAU,EAAA;AAAA3B,MAAAA,QAAA,EAAEA,QAAAA;KAAqB,CAAA;AAAC,GAAA,CAC5B,CAAC,CAAA;AAEd;;;;"}
1
+ {"version":3,"file":"BottomSheetFooter.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheetFooter.web.tsx"],"sourcesContent":["import React from 'react';\nimport { useBottomSheetContext } from './BottomSheetContext';\nimport type { BaseFooterProps } from '~components/BaseHeaderFooter/BaseFooter';\nimport { BaseFooter } from '~components/BaseHeaderFooter/BaseFooter';\nimport BaseBox from '~components/Box/BaseBox';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst BottomSheetFooter = ({\n children,\n ...dataAnalyticsProps\n}: BaseFooterProps): React.ReactElement => {\n const { setFooterHeight, isOpen, bind } = useBottomSheetContext();\n const ref = React.useRef<HTMLDivElement>(null);\n\n useIsomorphicLayoutEffect(() => {\n // for some reason the calculated footer height is changing when user drags the sheet\n // although i don't see a reason why, thus putting it in a setTimeout so that\n // we calculate the height on the next browser paint\n window.setTimeout(() => {\n if (!ref.current) return;\n setFooterHeight(ref.current.getBoundingClientRect().height);\n });\n }, [ref, isOpen]);\n\n return (\n <BaseBox\n ref={ref}\n width=\"100%\"\n flexShrink={0}\n marginTop=\"auto\"\n backgroundColor=\"popup.background.subtle\"\n touchAction=\"none\"\n zIndex={2}\n {...metaAttribute({ name: MetaConstants.BottomSheetFooter })}\n {...bind?.()}\n {...makeAnalyticsAttribute(dataAnalyticsProps)}\n >\n <BaseFooter>{children}</BaseFooter>\n </BaseBox>\n );\n};\n\nexport { BottomSheetFooter };\n"],"names":["BottomSheetFooter","_ref","children","dataAnalyticsProps","_objectWithoutProperties","_excluded","_useBottomSheetContex","useBottomSheetContext","setFooterHeight","isOpen","bind","ref","React","useRef","useIsomorphicLayoutEffect","window","setTimeout","current","getBoundingClientRect","height","_jsx","BaseBox","_objectSpread","width","flexShrink","marginTop","backgroundColor","touchAction","zIndex","metaAttribute","name","MetaConstants","makeAnalyticsAttribute","BaseFooter"],"mappings":";;;;;;;;;;;;;;;;;;AASA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAGoB;AAAA,EAAA,IAFzCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;AACLC,IAAAA,kBAAkB,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA,CAAA;AAErB,EAAA,IAAAC,qBAAA,GAA0CC,qBAAqB,EAAE;IAAzDC,eAAe,GAAAF,qBAAA,CAAfE,eAAe;IAAEC,MAAM,GAAAH,qBAAA,CAANG,MAAM;IAAEC,IAAI,GAAAJ,qBAAA,CAAJI,IAAI,CAAA;AACrC,EAAA,IAAMC,GAAG,GAAGC,cAAK,CAACC,MAAM,CAAiB,IAAI,CAAC,CAAA;AAE9CC,EAAAA,yBAAyB,CAAC,YAAM;AAC9B;AACA;AACA;IACAC,MAAM,CAACC,UAAU,CAAC,YAAM;AACtB,MAAA,IAAI,CAACL,GAAG,CAACM,OAAO,EAAE,OAAA;MAClBT,eAAe,CAACG,GAAG,CAACM,OAAO,CAACC,qBAAqB,EAAE,CAACC,MAAM,CAAC,CAAA;AAC7D,KAAC,CAAC,CAAA;AACJ,GAAC,EAAE,CAACR,GAAG,EAAEF,MAAM,CAAC,CAAC,CAAA;EAEjB,oBACEW,GAAA,CAACC,OAAO,EAAAC,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAA;AACNX,IAAAA,GAAG,EAAEA,GAAI;AACTY,IAAAA,KAAK,EAAC,MAAM;AACZC,IAAAA,UAAU,EAAE,CAAE;AACdC,IAAAA,SAAS,EAAC,MAAM;AAChBC,IAAAA,eAAe,EAAC,yBAAyB;AACzCC,IAAAA,WAAW,EAAC,MAAM;AAClBC,IAAAA,MAAM,EAAE,CAAA;AAAE,GAAA,EACNC,aAAa,CAAC;IAAEC,IAAI,EAAEC,aAAa,CAAC/B,iBAAAA;AAAkB,GAAC,CAAC,CAAA,EACxDU,IAAI,KAAA,IAAA,IAAJA,IAAI,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAJA,IAAI,EAAI,CAAA,EACRsB,sBAAsB,CAAC7B,kBAAkB,CAAC,CAAA,EAAA,EAAA,EAAA;IAAAD,QAAA,eAE9CkB,GAAA,CAACa,UAAU,EAAA;AAAA/B,MAAAA,QAAA,EAAEA,QAAAA;KAAqB,CAAA;AAAC,GAAA,CAC5B,CAAC,CAAA;AAEd;;;;"}
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import { ComponentIds } from './componentIds.js';
4
5
  import { useBottomSheetContext, useBottomSheetAndDropdownGlue } from './BottomSheetContext.js';
@@ -8,12 +9,15 @@ import '../Box/BaseBox/index.js';
8
9
  import '../../utils/metaAttribute/index.js';
9
10
  import { useIsomorphicLayoutEffect } from '../../utils/useIsomorphicLayoutEffect.js';
10
11
  import '../../utils/assignWithoutSideEffects/index.js';
12
+ import '../../utils/makeAnalyticsAttribute/index.js';
11
13
  import { jsx } from 'react/jsx-runtime';
12
14
  import { BaseBox } from '../Box/BaseBox/BaseBox.web.js';
13
15
  import { metaAttribute } from '../../utils/metaAttribute/metaAttribute.web.js';
14
16
  import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js';
17
+ import { makeAnalyticsAttribute } from '../../utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js';
15
18
  import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
16
19
 
20
+ var _excluded = ["title", "subtitle", "leading", "titleSuffix", "trailing", "showBackButton", "onBackButtonClick", "children"];
17
21
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
22
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
23
  var _BottomSheetHeader = function _BottomSheetHeader(_ref) {
@@ -25,7 +29,8 @@ var _BottomSheetHeader = function _BottomSheetHeader(_ref) {
25
29
  _ref$showBackButton = _ref.showBackButton,
26
30
  showBackButton = _ref$showBackButton === void 0 ? false : _ref$showBackButton,
27
31
  onBackButtonClick = _ref.onBackButtonClick,
28
- children = _ref.children;
32
+ children = _ref.children,
33
+ dataAnalyticsProps = _objectWithoutProperties(_ref, _excluded);
29
34
  var _useBottomSheetContex = useBottomSheetContext(),
30
35
  setHeaderHeight = _useBottomSheetContex.setHeaderHeight,
31
36
  isOpen = _useBottomSheetContex.isOpen,
@@ -44,13 +49,13 @@ var _BottomSheetHeader = function _BottomSheetHeader(_ref) {
44
49
  setIsHeaderEmpty(isHeaderEmpty);
45
50
  // eslint-disable-next-line react-hooks/exhaustive-deps
46
51
  }, [isHeaderEmpty]);
47
- return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread({
52
+ return /*#__PURE__*/jsx(BaseBox, _objectSpread(_objectSpread(_objectSpread({
48
53
  ref: ref,
49
54
  overflow: isHeaderEmpty ? 'visible' : 'auto',
50
55
  flexShrink: 0
51
56
  }, metaAttribute({
52
57
  name: MetaConstants.BottomSheetHeader
53
- })), {}, {
58
+ })), makeAnalyticsAttribute(dataAnalyticsProps)), {}, {
54
59
  children: isHeaderEmpty ? /*#__PURE__*/jsx(BottomSheetEmptyHeader, {
55
60
  ref: defaultInitialFocusRef
56
61
  }) : /*#__PURE__*/jsx(BaseHeader, _objectSpread(_objectSpread({
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetHeader.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheetHeader.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\nimport React from 'react';\nimport { ComponentIds } from './componentIds';\nimport { useBottomSheetAndDropdownGlue, useBottomSheetContext } from './BottomSheetContext';\nimport type { BottomSheetHeaderProps } from './types';\nimport { BottomSheetEmptyHeader } from './BottomSheetCommon';\nimport { BaseHeader } from '~components/BaseHeaderFooter/BaseHeader';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\n\nconst _BottomSheetHeader = ({\n title,\n subtitle,\n leading,\n titleSuffix,\n trailing,\n showBackButton = false,\n onBackButtonClick,\n children,\n}: BottomSheetHeaderProps): React.ReactElement => {\n const {\n setHeaderHeight,\n isOpen,\n close,\n bind,\n setIsHeaderEmpty,\n defaultInitialFocusRef,\n } = useBottomSheetContext();\n const bottomSheetAndDropdownGlue = useBottomSheetAndDropdownGlue();\n const ref = React.useRef<HTMLDivElement>(null);\n\n useIsomorphicLayoutEffect(() => {\n if (!ref.current) return;\n setHeaderHeight(ref.current.getBoundingClientRect().height);\n }, [ref, isOpen]);\n\n const isHeaderEmpty = !(title || subtitle || leading || trailing || showBackButton || children);\n\n React.useEffect(() => {\n setIsHeaderEmpty(isHeaderEmpty);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isHeaderEmpty]);\n\n return (\n <BaseBox\n ref={ref}\n overflow={isHeaderEmpty ? 'visible' : 'auto'}\n flexShrink={0}\n {...metaAttribute({ name: MetaConstants.BottomSheetHeader })}\n >\n {isHeaderEmpty ? (\n <BottomSheetEmptyHeader ref={defaultInitialFocusRef} />\n ) : (\n <BaseHeader\n title={title}\n subtitle={subtitle}\n leading={leading}\n trailing={trailing}\n titleSuffix={titleSuffix}\n // we don't set focus on close button when it has AutoComplete inside.\n // We set focus on AutoComplete instead inside AutoComplete component\n closeButtonRef={\n bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader\n ? undefined\n : defaultInitialFocusRef\n }\n // back button\n showBackButton={showBackButton}\n onBackButtonClick={onBackButtonClick}\n // close button\n showCloseButton={true}\n onCloseButtonClick={close}\n {...bind?.()}\n >\n {children}\n </BaseHeader>\n )}\n </BaseBox>\n );\n};\n\nconst BottomSheetHeader = assignWithoutSideEffects(_BottomSheetHeader, {\n componentId: ComponentIds.BottomSheetHeader,\n});\n\nexport { BottomSheetHeader };\n"],"names":["_BottomSheetHeader","_ref","title","subtitle","leading","titleSuffix","trailing","_ref$showBackButton","showBackButton","onBackButtonClick","children","_useBottomSheetContex","useBottomSheetContext","setHeaderHeight","isOpen","close","bind","setIsHeaderEmpty","defaultInitialFocusRef","bottomSheetAndDropdownGlue","useBottomSheetAndDropdownGlue","ref","React","useRef","useIsomorphicLayoutEffect","current","getBoundingClientRect","height","isHeaderEmpty","useEffect","_jsx","BaseBox","_objectSpread","overflow","flexShrink","metaAttribute","name","MetaConstants","BottomSheetHeader","BottomSheetEmptyHeader","BaseHeader","closeButtonRef","hasAutoCompleteInBottomSheetHeader","undefined","showCloseButton","onCloseButtonClick","assignWithoutSideEffects","componentId","ComponentIds"],"mappings":";;;;;;;;;;;;;;;;;;AAYA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAS0B;AAAA,EAAA,IARhDC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IACXC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IAAAC,mBAAA,GAAAN,IAAA,CACRO,cAAc;AAAdA,IAAAA,cAAc,GAAAD,mBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,mBAAA;IACtBE,iBAAiB,GAAAR,IAAA,CAAjBQ,iBAAiB;IACjBC,QAAQ,GAAAT,IAAA,CAARS,QAAQ,CAAA;AAER,EAAA,IAAAC,qBAAA,GAOIC,qBAAqB,EAAE;IANzBC,eAAe,GAAAF,qBAAA,CAAfE,eAAe;IACfC,MAAM,GAAAH,qBAAA,CAANG,MAAM;IACNC,KAAK,GAAAJ,qBAAA,CAALI,KAAK;IACLC,IAAI,GAAAL,qBAAA,CAAJK,IAAI;IACJC,gBAAgB,GAAAN,qBAAA,CAAhBM,gBAAgB;IAChBC,sBAAsB,GAAAP,qBAAA,CAAtBO,sBAAsB,CAAA;AAExB,EAAA,IAAMC,0BAA0B,GAAGC,6BAA6B,EAAE,CAAA;AAClE,EAAA,IAAMC,GAAG,GAAGC,cAAK,CAACC,MAAM,CAAiB,IAAI,CAAC,CAAA;AAE9CC,EAAAA,yBAAyB,CAAC,YAAM;AAC9B,IAAA,IAAI,CAACH,GAAG,CAACI,OAAO,EAAE,OAAA;IAClBZ,eAAe,CAACQ,GA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,EAAEA,cAAe;AAC/BC,MAAAA,iBAAiB,EAAEA,iBAAAA;AACnB;AAAA;AACAmC,MAAAA,eAAe,EAAE,IAAK;AACtBC,MAAAA,kBAAkB,EAAE9B,KAAAA;AAAM,KAAA,EACtBC,IAAI,KAAJA,IAAAA,IAAAA,IAAI,KAAJA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,IAAI,EAAI,CAAA,EAAA,EAAA,EAAA;AAAAN,MAAAA,QAAA,EAEXA,QAAAA;KACS,CAAA,CAAA;AACb,GAAA,CACM,CAAC,CAAA;AAEd,CAAC,CAAA;AAED,IAAM4B,iBAAiB,gBAAGQ,wBAAwB,CAAC9C,kBAAkB,EAAE;EACrE+C,WAAW,EAAEC,YAAY,CAACV,iBAAAA;AAC5B,CAAC;;;;"}
1
+ {"version":3,"file":"BottomSheetHeader.web.js","sources":["../../../../../../src/components/BottomSheet/BottomSheetHeader.web.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\nimport React from 'react';\nimport { ComponentIds } from './componentIds';\nimport { useBottomSheetAndDropdownGlue, useBottomSheetContext } from './BottomSheetContext';\nimport type { BottomSheetHeaderProps } from './types';\nimport { BottomSheetEmptyHeader } from './BottomSheetCommon';\nimport { BaseHeader } from '~components/BaseHeaderFooter/BaseHeader';\nimport BaseBox from '~components/Box/BaseBox';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { useIsomorphicLayoutEffect } from '~utils/useIsomorphicLayoutEffect';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst _BottomSheetHeader = ({\n title,\n subtitle,\n leading,\n titleSuffix,\n trailing,\n showBackButton = false,\n onBackButtonClick,\n children,\n ...dataAnalyticsProps\n}: BottomSheetHeaderProps): React.ReactElement => {\n const {\n setHeaderHeight,\n isOpen,\n close,\n bind,\n setIsHeaderEmpty,\n defaultInitialFocusRef,\n } = useBottomSheetContext();\n const bottomSheetAndDropdownGlue = useBottomSheetAndDropdownGlue();\n const ref = React.useRef<HTMLDivElement>(null);\n\n useIsomorphicLayoutEffect(() => {\n if (!ref.current) return;\n setHeaderHeight(ref.current.getBoundingClientRect().height);\n }, [ref, isOpen]);\n\n const isHeaderEmpty = !(title || subtitle || leading || trailing || showBackButton || children);\n\n React.useEffect(() => {\n setIsHeaderEmpty(isHeaderEmpty);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isHeaderEmpty]);\n\n return (\n <BaseBox\n ref={ref}\n overflow={isHeaderEmpty ? 'visible' : 'auto'}\n flexShrink={0}\n {...metaAttribute({ name: MetaConstants.BottomSheetHeader })}\n {...makeAnalyticsAttribute(dataAnalyticsProps)}\n >\n {isHeaderEmpty ? (\n <BottomSheetEmptyHeader ref={defaultInitialFocusRef} />\n ) : (\n <BaseHeader\n title={title}\n subtitle={subtitle}\n leading={leading}\n trailing={trailing}\n titleSuffix={titleSuffix}\n // we don't set focus on close button when it has AutoComplete inside.\n // We set focus on AutoComplete instead inside AutoComplete component\n closeButtonRef={\n bottomSheetAndDropdownGlue?.hasAutoCompleteInBottomSheetHeader\n ? undefined\n : defaultInitialFocusRef\n }\n // back button\n showBackButton={showBackButton}\n onBackButtonClick={onBackButtonClick}\n // close button\n showCloseButton={true}\n onCloseButtonClick={close}\n {...bind?.()}\n >\n {children}\n </BaseHeader>\n )}\n </BaseBox>\n );\n};\n\nconst BottomSheetHeader = assignWithoutSideEffects(_BottomSheetHeader, {\n componentId: ComponentIds.BottomSheetHeader,\n});\n\nexport { BottomSheetHeader };\n"],"names":["_BottomSheetHeader","_ref","title","subtitle","leading","titleSuffix","trailing","_ref$showBackButton","showBackButton","onBackButtonClick","children","dataAnalyticsProps","_objectWithoutProperties","_excluded","_useBottomSheetContex","useBottomSheetContext","setHeaderHeight","isOpen","close","bind","setIsHeaderEmpty","defaultInitialFocusRef","bottomSheetAndDropdownGlue","useBottomSheetAndDropdownGlue","ref","React","useRef","useIsomorphicLayoutEffect","current","getBoundingClientRect","height","isHeaderEmpty","useEffect","_jsx","BaseBox","_objectSpread","overflow","flexShrink","metaAttribute","name","MetaConstants","BottomSheetHeader","makeAnalyticsAttribute","BottomSheetEmptyHeader","BaseHeader","closeButtonRef","hasAutoCompleteInBottomSheetHeader","undefined","showCloseButton","onCloseButtonClick","assignWithoutSideEffects","componentId","ComponentIds"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAaA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAU0B;AAAA,EAAA,IAThDC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IACXC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IAAAC,mBAAA,GAAAN,IAAA,CACRO,cAAc;AAAdA,IAAAA,cAAc,GAAAD,mBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,mBAAA;IACtBE,iBAAiB,GAAAR,IAAA,CAAjBQ,iBAAiB;IACjBC,QAAQ,GAAAT,IAAA,CAARS,QAAQ;AACLC,IAAAA,kBAAkB,GAAAC,wBAAA,CAAAX,IAAA,EAAAY,SAAA,CAAA,CAAA;AAErB,EAAA,IAAAC,qBAAA,GAOIC,qBAAqB,EAAE;IANzBC,eAAe,GAAAF,qBAAA,CAAfE,eAAe;IACfC,MAAM,GAAAH,qBAAA,CAANG,MAAM;IACNC,KAAK,GAAAJ,qBAAA,CAALI,KAAK;IACLC,IAAI,GAAAL,qBAAA,CAAJK,IAAI;IACJC,gBAAgB,GAAAN,qBAAA,CAAhBM,gBAAgB;IAChBC,sBAAsB,GAAAP,qBAAA,CAAtBO,sBAAsB,CAAA;AAExB,EAAA,IAAMC,0BAA0B,GAAGC,6BAA6B,EAAE,CAAA;AAClE,EAAA,IAAMC,GAAG,GA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D,MAAAA,WAAW,EAAEA,WAAAA;AACb;AACA;AAAA;MACAwC,cAAc,EACZvB,0BAA0B,KAAA,IAAA,IAA1BA,0BAA0B,KAAA,KAAA,CAAA,IAA1BA,0BAA0B,CAAEwB,kCAAkC,GAC1DC,SAAS,GACT1B,sBAAAA;AAEN;AAAA;AACAb,MAAAA,cAAc,EAAEA,cAAe;AAC/BC,MAAAA,iBAAiB,EAAEA,iBAAAA;AACnB;AAAA;AACAuC,MAAAA,eAAe,EAAE,IAAK;AACtBC,MAAAA,kBAAkB,EAAE/B,KAAAA;AAAM,KAAA,EACtBC,IAAI,KAAJA,IAAAA,IAAAA,IAAI,KAAJA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,IAAI,EAAI,CAAA,EAAA,EAAA,EAAA;AAAAT,MAAAA,QAAA,EAEXA,QAAAA;KACS,CAAA,CAAA;AACb,GAAA,CACM,CAAC,CAAA;AAEd,CAAC,CAAA;AAED,IAAM+B,iBAAiB,gBAAGS,wBAAwB,CAAClD,kBAAkB,EAAE;EACrEmD,WAAW,EAAEC,YAAY,CAACX,iBAAAA;AAC5B,CAAC;;;;"}
@@ -4,17 +4,19 @@ import { useMemoizedStyles } from './useMemoizedStyles.web.js';
4
4
  import { omitPropsFromHTML } from '../../../utils/omitPropsFromHTML/index.js';
5
5
  import '../../../utils/metaAttribute/index.js';
6
6
  import '../../../utils/assignWithoutSideEffects/index.js';
7
+ import '../../../utils/makeAnalyticsAttribute/index.js';
7
8
  import { metaAttribute } from '../../../utils/metaAttribute/metaAttribute.web.js';
8
9
  import { MetaConstants } from '../../../utils/metaAttribute/metaConstants.js';
10
+ import { makeAnalyticsAttribute } from '../../../utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js';
9
11
  import { assignWithoutSideEffects } from '../../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
10
12
 
11
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
15
  var _BaseBox = /*#__PURE__*/styled.div.attrs(function (props) {
14
- return _objectSpread({}, metaAttribute({
16
+ return _objectSpread(_objectSpread({}, metaAttribute({
15
17
  name: props['data-blade-component'] || MetaConstants.BaseBox,
16
18
  testID: props['data-testid'] || props.testID
17
- }));
19
+ })), makeAnalyticsAttribute(props));
18
20
  }).withConfig({
19
21
  shouldForwardProp: omitPropsFromHTML,
20
22
  displayName: 'BaseBox'
@@ -1 +1 @@
1
- {"version":3,"file":"BaseBox.web.js","sources":["../../../../../../../src/components/Box/BaseBox/BaseBox.web.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport type { BaseBoxProps } from './types';\nimport { useMemoizedStyles } from './useMemoizedStyles';\nimport { omitPropsFromHTML } from '~utils/omitPropsFromHTML';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\n\nconst _BaseBox = styled.div\n .attrs<BaseBoxProps>((props) => {\n return {\n ...metaAttribute({\n name: (props as never)['data-blade-component'] || MetaConstants.BaseBox,\n testID: (props as never)['data-testid'] || props.testID,\n }),\n };\n })\n .withConfig({\n shouldForwardProp: omitPropsFromHTML,\n displayName: 'BaseBox',\n })<BaseBoxProps>((props) => {\n const cssObject = useMemoizedStyles(props);\n return cssObject;\n});\n\nconst BaseBox = assignWithoutSideEffects(_BaseBox, { componentId: 'BaseBox' });\n\nexport { BaseBox };\n"],"names":["_BaseBox","styled","div","attrs","props","_objectSpread","metaAttribute","name","MetaConstants","BaseBox","testID","withConfig","shouldForwardProp","omitPropsFromHTML","displayName","cssObject","useMemoizedStyles","assignWithoutSideEffects","componentId"],"mappings":";;;;;;;;;;;;AAOA,IAAMA,QAAQ,gBAAGC,MAAM,CAACC,GAAG,CACxBC,KAAK,CAAe,UAACC,KAAK,EAAK;EAC9B,OAAAC,aAAA,CACKC,EAAAA,EAAAA,aAAa,CAAC;IACfC,IAAI,EAAGH,KAAK,CAAW,sBAAsB,CAAC,IAAII,aAAa,CAACC,OAAO;AACvEC,IAAAA,MAAM,EAAGN,KAAK,CAAW,aAAa,CAAC,IAAIA,KAAK,CAACM,MAAAA;AACnD,GAAC,CAAC,CAAA,CAAA;AAEN,CAAC,CAAC,CACDC,UAAU,CAAC;AACVC,EAAAA,iBAAiB,EAAEC,iBAAiB;AACpCC,EAAAA,WAAW,EAAE,SAAA;AACf,CAAC,CAAC,CAAe,UAACV,KAAK,EAAK;AAC5B,EAAA,IAAMW,SAAS,GAAGC,iBAAiB,CAACZ,KAAK,CAAC,CAAA;AAC1C,EAAA,OAAOW,SAAS,CAAA;AAClB,CAAC,CAAC,CAAA;AAEF,IAAMN,OAAO,gBAAGQ,wBAAwB,CAACjB,QAAQ,EAAE;AAAEkB,EAAAA,WAAW,EAAE,SAAA;AAAU,CAAC;;;;"}
1
+ {"version":3,"file":"BaseBox.web.js","sources":["../../../../../../../src/components/Box/BaseBox/BaseBox.web.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport type { BaseBoxProps } from './types';\nimport { useMemoizedStyles } from './useMemoizedStyles';\nimport { omitPropsFromHTML } from '~utils/omitPropsFromHTML';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\nimport { makeAnalyticsAttribute } from '~utils/makeAnalyticsAttribute';\n\nconst _BaseBox = styled.div\n .attrs<BaseBoxProps>((props) => {\n return {\n ...metaAttribute({\n name: (props as never)['data-blade-component'] || MetaConstants.BaseBox,\n testID: (props as never)['data-testid'] || props.testID,\n }),\n ...makeAnalyticsAttribute((props as unknown) as Record<string, unknown>),\n };\n })\n .withConfig({\n shouldForwardProp: omitPropsFromHTML,\n displayName: 'BaseBox',\n })<BaseBoxProps>((props) => {\n const cssObject = useMemoizedStyles(props);\n return cssObject;\n});\n\nconst BaseBox = assignWithoutSideEffects(_BaseBox, { componentId: 'BaseBox' });\n\nexport { BaseBox };\n"],"names":["_BaseBox","styled","div","attrs","props","_objectSpread","metaAttribute","name","MetaConstants","BaseBox","testID","makeAnalyticsAttribute","withConfig","shouldForwardProp","omitPropsFromHTML","displayName","cssObject","useMemoizedStyles","assignWithoutSideEffects","componentId"],"mappings":";;;;;;;;;;;;;;AAQA,IAAMA,QAAQ,gBAAGC,MAAM,CAACC,GAAG,CACxBC,KAAK,CAAe,UAACC,KAAK,EAAK;AAC9B,EAAA,OAAAC,aAAA,CAAAA,aAAA,CAAA,EAAA,EACKC,aAAa,CAAC;IACfC,IAAI,EAAGH,KAAK,CAAW,sBAAsB,CAAC,IAAII,aAAa,CAACC,OAAO;AACvEC,IAAAA,MAAM,EAAGN,KAAK,CAAW,aAAa,CAAC,IAAIA,KAAK,CAACM,MAAAA;AACnD,GAAC,CAAC,CAAA,EACCC,sBAAsB,CAAEP,KAA4C,CAAC,CAAA,CAAA;AAE5E,CAAC,CAAC,CACDQ,UAAU,CAAC;AACVC,EAAAA,iBAAiB,EAAEC,iBAAiB;AACpCC,EAAAA,WAAW,EAAE,SAAA;AACf,CAAC,CAAC,CAAe,UAACX,KAAK,EAAK;AAC5B,EAAA,IAAMY,SAAS,GAAGC,iBAAiB,CAACb,KAAK,CAAC,CAAA;AAC1C,EAAA,OAAOY,SAAS,CAAA;AAClB,CAAC,CAAC,CAAA;AAEF,IAAMP,OAAO,gBAAGS,wBAAwB,CAAClB,QAAQ,EAAE;AAAEmB,EAAAA,WAAW,EAAE,SAAA;AAAU,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"propsTypes.js","sources":["../../../../../../../../src/components/Box/BaseBox/types/propsTypes.ts"],"sourcesContent":["import type { View } from 'react-native';\nimport type { CSSObject } from 'styled-components';\nimport type { MarginProps, PaddingProps, SpacingValueType } from './spacingTypes';\nimport type { MakeObjectResponsive } from './responsiveTypes';\nimport type { Theme } from '~components/BladeProvider';\nimport type { Border, Elevation } from '~tokens/global';\nimport type { PickCSSByPlatform, TestID } from '~utils/types';\nimport type { Platform } from '~utils';\nimport type { BladeCommonEvents } from '~components/types';\nimport type { DotNotationToken } from '~utils/lodashButBetter/get';\n\ntype LayoutProps = MakeObjectResponsive<\n {\n height: SpacingValueType;\n minHeight: SpacingValueType;\n maxHeight: SpacingValueType;\n width: SpacingValueType;\n minWidth: SpacingValueType;\n maxWidth: SpacingValueType;\n } & PickCSSByPlatform<\n 'display' | 'overflow' | 'overflowX' | 'overflowY' | 'textAlign' | 'whiteSpace'\n >\n>;\n\ntype FlexboxProps = MakeObjectResponsive<\n {\n /**\n * This uses the native gap property which might not work on older browsers.\n * If you want to support older browsers, you might want to use `margin` instead.\n *\n * @see https://caniuse.com/?search=gap\n */\n gap: SpacingValueType;\n /**\n * This uses the native row-gap property which might not work on older browsers.\n * If you want to support older browsers, you might want to use `margin` instead.\n *\n * @see https://caniuse.com/?search=row-gap\n */\n rowGap: SpacingValueType;\n /**\n * This uses the native column-gap property which might not work on older browsers.\n * If you want to support older browsers, you might want to use `margin` instead.\n *\n * @see https://caniuse.com/?search=column-gap\n */\n columnGap: SpacingValueType;\n /**\n * The **`flex`** CSS shorthand property sets how a flex _item_ will grow or shrink to fit the space available in its flex container.\n *\n * @see https://developer.mozilla.org/docs/Web/CSS/flex\n */\n flex: string | number;\n } & PickCSSByPlatform<\n | 'flexWrap'\n | 'flexDirection'\n | 'flexGrow'\n | 'flexShrink'\n | 'flexBasis'\n | 'alignItems'\n | 'alignContent'\n | 'alignSelf'\n | 'justifyItems'\n | 'justifyContent'\n | 'justifySelf'\n | 'placeSelf'\n | 'placeItems'\n | 'order'\n >\n>;\n\ntype PositionProps = MakeObjectResponsive<\n {\n top: SpacingValueType;\n right: SpacingValueType;\n bottom: SpacingValueType;\n left: SpacingValueType;\n } & PickCSSByPlatform<'position' | 'zIndex'>\n>;\n\ntype GridProps = MakeObjectResponsive<\n PickCSSByPlatform<\n | 'grid'\n | 'gridColumn'\n | 'gridRow'\n | 'gridRowStart'\n | 'gridRowEnd'\n | 'gridColumnStart'\n | 'gridColumnEnd'\n | 'gridArea'\n | 'gridAutoFlow'\n | 'gridAutoRows'\n | 'gridAutoColumns'\n | 'gridTemplate'\n | 'gridTemplateAreas'\n | 'gridTemplateColumns'\n | 'gridTemplateRows'\n >\n>;\n\ntype ColorObjects = 'feedback' | 'surface' | 'interactive';\ntype BackgroundOnlyColorObjects = 'popup' | 'overlay';\ntype BackgroundColorString<\n T extends ColorObjects | BackgroundOnlyColorObjects\n> = `${T}.background.${DotNotationToken<Theme['colors'][T]['background']>}`;\ntype BorderColorString<T extends ColorObjects> = `${T}.border.${DotNotationToken<\n Theme['colors'][T]['border']\n>}`;\n\n// Created this as an array so I can reuse it for runtime validation\nconst validBoxAsValues = [\n 'div',\n 'section',\n 'footer',\n 'header',\n 'main',\n 'aside',\n 'nav',\n 'span',\n 'label',\n] as const;\n\ntype BoxAsType = typeof validBoxAsValues[number];\n\n// Visual props that are common for both Box and BaseBox\ntype CommonBoxVisualProps = MakeObjectResponsive<\n {\n borderRadius: keyof Border['radius'];\n borderWidth: keyof Border['width'];\n borderColor: BorderColorString<'surface'>;\n borderTopWidth: keyof Border['width'];\n borderTopColor: BorderColorString<'surface'>;\n borderRightWidth: keyof Border['width'];\n borderRightColor: BorderColorString<'surface'>;\n borderBottomWidth: keyof Border['width'];\n borderBottomColor: BorderColorString<'surface'>;\n borderLeftWidth: keyof Border['width'];\n borderLeftColor: BorderColorString<'surface'>;\n borderTopLeftRadius: keyof Border['radius'];\n borderTopRightRadius: keyof Border['radius'];\n borderBottomRightRadius: keyof Border['radius'];\n borderBottomLeftRadius: keyof Border['radius'];\n } & PickCSSByPlatform<\n | 'backgroundImage'\n | 'backgroundSize'\n | 'backgroundPosition'\n | 'backgroundOrigin'\n | 'backgroundRepeat'\n | 'pointerEvents'\n | 'opacity'\n | 'visibility'\n | 'transform'\n | 'transformOrigin'\n | 'clipPath'\n | 'borderStyle'\n | 'borderTopStyle'\n | 'borderBottomStyle'\n | 'borderLeftStyle'\n | 'borderRightStyle'\n > & {\n /**\n * Sets the elevation for Box\n *\n * eg: `theme.elevation.midRaised`\n *\n * @default `theme.elevation.lowRaised`\n *\n * **Links:**\n * - Docs: https://blade.razorpay.com/?path=/docs/tokens-elevation--docs\n */\n elevation?: keyof Elevation;\n }\n>;\n\n// Visual props that are specific BaseBox\n// This is used to ensure some of the more flexible BaseBox props are not passed to Box\ntype BaseBoxVisualProps = MakeObjectResponsive<\n {\n backgroundColor:\n | BackgroundColorString<'feedback'>\n | BackgroundColorString<'surface'>\n | BackgroundColorString<'interactive'>\n | BackgroundColorString<'overlay'>\n | BackgroundColorString<'popup'>\n | 'transparent'\n | (string & Record<never, never>);\n lineHeight: SpacingValueType;\n touchAction: CSSObject['touchAction'];\n userSelect: CSSObject['userSelect'];\n } & PickCSSByPlatform<\n | 'border'\n | 'borderLeft'\n | 'borderRight'\n | 'borderTop'\n | 'borderBottom'\n | 'opacity'\n | 'pointerEvents'\n | 'cursor'\n >\n>;\n\n// Visual props that are specific to Box\ntype BoxVisualProps = MakeObjectResponsive<{\n backgroundColor: BackgroundColorString<'surface'> | 'transparent';\n}> & {\n // Intentionally keeping this outside of MakeObjectResponsive since we only want as to be string and not responsive object\n // styled-components do not support passing `as` prop as an object\n as: BoxAsType;\n};\n\ntype StyledPropsBlade = Partial<\n Omit<\n MarginProps &\n Pick<FlexboxProps, 'alignSelf' | 'justifySelf' | 'placeSelf' | 'order'> &\n PositionProps &\n Pick<\n GridProps,\n | 'gridColumn'\n | 'gridRow'\n | 'gridRowStart'\n | 'gridRowEnd'\n | 'gridColumnStart'\n | 'gridColumnEnd'\n | 'gridArea'\n > &\n Pick<LayoutProps, 'display'> &\n Pick<CommonBoxVisualProps, 'visibility'>,\n '__brand__'\n >\n>;\n\ntype BoxCallbackProps = Omit<\n Platform.Select<{\n web: {\n /**\n * **Warning**\n *\n * Make sure to not use Box when you want to create a trigger that performs action on hover.\n * You would probably want to render it as `button` using `styled.button` instead.\n *\n * Use this for hoverable containers in cases like custom menus.\n */\n onMouseOver: React.MouseEventHandler<HTMLElement>;\n /**\n * **Warning**\n *\n * Make sure to not use Box when you want to create a trigger that performs action on hover.\n * You would probably want to render it as `button` using `styled.button` instead.\n *\n * Use this for hoverable containers in cases like custom menus.\n */\n onMouseEnter: React.MouseEventHandler<HTMLElement>;\n /**\n * **Warning**\n *\n * Make sure to not use Box when you want to create a trigger that performs action on hover.\n * You would probably want to render it as `button` using `styled.button` instead.\n *\n * Use this for hoverable containers in cases like custom menus.\n */\n onMouseLeave: React.MouseEventHandler<HTMLElement>;\n onScroll: React.UIEventHandler<HTMLElement>;\n };\n native: Record<'onMouseOver' | 'onMouseEnter' | 'onMouseLeave' | 'onScroll', undefined>;\n }>,\n '__brand__'\n>;\n\ntype BoxDragAndDropProps = Omit<\n Platform.Select<{\n web: {\n draggable: boolean;\n onDragStart: React.DragEventHandler<HTMLElement>;\n onDragEnter: React.DragEventHandler<HTMLElement>;\n onDragLeave: React.DragEventHandler<HTMLElement>;\n onDragOver: React.DragEventHandler<HTMLElement>;\n onDragEnd: React.DragEventHandler<HTMLElement>;\n onDrop: React.DragEventHandler<HTMLElement>;\n };\n native: Record<\n | 'draggable'\n | 'onDragStart'\n | 'onDragEnter'\n | 'onDragLeave'\n | 'onDragOver'\n | 'onDragEnd'\n | 'onDrop',\n undefined\n >;\n }>,\n '__brand__'\n>;\n\ntype BoxProps = Partial<\n PaddingProps &\n MarginProps &\n LayoutProps &\n FlexboxProps &\n PositionProps &\n GridProps &\n BoxCallbackProps &\n BoxDragAndDropProps &\n CommonBoxVisualProps &\n BoxVisualProps & {\n children?: React.ReactNode | React.ReactNode[];\n tabIndex?: number;\n id?: string;\n } & TestID\n>;\n\n// Visual props have different types for BaseBox and Box. BaseBox has more flexible types and more props exposed.\n// So first we Omit Visual props of Box\n// Then we append BaseBoxVisualProps and some other props for styled-components like class and id\ntype BaseBoxProps = Omit<BoxProps, keyof BoxVisualProps> &\n Partial<\n BaseBoxVisualProps & {\n className?: string;\n id?: string;\n tabIndex?: number;\n }\n > &\n BladeCommonEvents;\n\n// ref prop type\ntype BoxRefType = Platform.Select<{\n web: Omit<HTMLElement, 'style'>;\n native: View;\n}>;\n\nexport type { BaseBoxProps, BoxProps, BoxRefType, StyledPropsBlade, FlexboxProps };\nexport { validBoxAsValues };\n"],"names":["validBoxAsValues"],"mappings":"AA6GA;AACMA,IAAAA,gBAAgB,GAAG,CACvB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,KAAK,EACL,MAAM,EACN,OAAO;;;;"}
1
+ {"version":3,"file":"propsTypes.js","sources":["../../../../../../../../src/components/Box/BaseBox/types/propsTypes.ts"],"sourcesContent":["import type { View } from 'react-native';\nimport type { CSSObject } from 'styled-components';\nimport type { MarginProps, PaddingProps, SpacingValueType } from './spacingTypes';\nimport type { MakeObjectResponsive } from './responsiveTypes';\nimport type { Theme } from '~components/BladeProvider';\nimport type { Border, Elevation } from '~tokens/global';\nimport type { DataAnalyticsAttribute, PickCSSByPlatform, TestID } from '~utils/types';\nimport type { Platform } from '~utils';\nimport type { BladeCommonEvents } from '~components/types';\nimport type { DotNotationToken } from '~utils/lodashButBetter/get';\n\ntype LayoutProps = MakeObjectResponsive<\n {\n height: SpacingValueType;\n minHeight: SpacingValueType;\n maxHeight: SpacingValueType;\n width: SpacingValueType;\n minWidth: SpacingValueType;\n maxWidth: SpacingValueType;\n } & PickCSSByPlatform<\n 'display' | 'overflow' | 'overflowX' | 'overflowY' | 'textAlign' | 'whiteSpace'\n >\n>;\n\ntype FlexboxProps = MakeObjectResponsive<\n {\n /**\n * This uses the native gap property which might not work on older browsers.\n * If you want to support older browsers, you might want to use `margin` instead.\n *\n * @see https://caniuse.com/?search=gap\n */\n gap: SpacingValueType;\n /**\n * This uses the native row-gap property which might not work on older browsers.\n * If you want to support older browsers, you might want to use `margin` instead.\n *\n * @see https://caniuse.com/?search=row-gap\n */\n rowGap: SpacingValueType;\n /**\n * This uses the native column-gap property which might not work on older browsers.\n * If you want to support older browsers, you might want to use `margin` instead.\n *\n * @see https://caniuse.com/?search=column-gap\n */\n columnGap: SpacingValueType;\n /**\n * The **`flex`** CSS shorthand property sets how a flex _item_ will grow or shrink to fit the space available in its flex container.\n *\n * @see https://developer.mozilla.org/docs/Web/CSS/flex\n */\n flex: string | number;\n } & PickCSSByPlatform<\n | 'flexWrap'\n | 'flexDirection'\n | 'flexGrow'\n | 'flexShrink'\n | 'flexBasis'\n | 'alignItems'\n | 'alignContent'\n | 'alignSelf'\n | 'justifyItems'\n | 'justifyContent'\n | 'justifySelf'\n | 'placeSelf'\n | 'placeItems'\n | 'order'\n >\n>;\n\ntype PositionProps = MakeObjectResponsive<\n {\n top: SpacingValueType;\n right: SpacingValueType;\n bottom: SpacingValueType;\n left: SpacingValueType;\n } & PickCSSByPlatform<'position' | 'zIndex'>\n>;\n\ntype GridProps = MakeObjectResponsive<\n PickCSSByPlatform<\n | 'grid'\n | 'gridColumn'\n | 'gridRow'\n | 'gridRowStart'\n | 'gridRowEnd'\n | 'gridColumnStart'\n | 'gridColumnEnd'\n | 'gridArea'\n | 'gridAutoFlow'\n | 'gridAutoRows'\n | 'gridAutoColumns'\n | 'gridTemplate'\n | 'gridTemplateAreas'\n | 'gridTemplateColumns'\n | 'gridTemplateRows'\n >\n>;\n\ntype ColorObjects = 'feedback' | 'surface' | 'interactive';\ntype BackgroundOnlyColorObjects = 'popup' | 'overlay';\ntype BackgroundColorString<\n T extends ColorObjects | BackgroundOnlyColorObjects\n> = `${T}.background.${DotNotationToken<Theme['colors'][T]['background']>}`;\ntype BorderColorString<T extends ColorObjects> = `${T}.border.${DotNotationToken<\n Theme['colors'][T]['border']\n>}`;\n\n// Created this as an array so I can reuse it for runtime validation\nconst validBoxAsValues = [\n 'div',\n 'section',\n 'footer',\n 'header',\n 'main',\n 'aside',\n 'nav',\n 'span',\n 'label',\n] as const;\n\ntype BoxAsType = typeof validBoxAsValues[number];\n\n// Visual props that are common for both Box and BaseBox\ntype CommonBoxVisualProps = MakeObjectResponsive<\n {\n borderRadius: keyof Border['radius'];\n borderWidth: keyof Border['width'];\n borderColor: BorderColorString<'surface'>;\n borderTopWidth: keyof Border['width'];\n borderTopColor: BorderColorString<'surface'>;\n borderRightWidth: keyof Border['width'];\n borderRightColor: BorderColorString<'surface'>;\n borderBottomWidth: keyof Border['width'];\n borderBottomColor: BorderColorString<'surface'>;\n borderLeftWidth: keyof Border['width'];\n borderLeftColor: BorderColorString<'surface'>;\n borderTopLeftRadius: keyof Border['radius'];\n borderTopRightRadius: keyof Border['radius'];\n borderBottomRightRadius: keyof Border['radius'];\n borderBottomLeftRadius: keyof Border['radius'];\n } & PickCSSByPlatform<\n | 'backgroundImage'\n | 'backgroundSize'\n | 'backgroundPosition'\n | 'backgroundOrigin'\n | 'backgroundRepeat'\n | 'pointerEvents'\n | 'opacity'\n | 'visibility'\n | 'transform'\n | 'transformOrigin'\n | 'clipPath'\n | 'borderStyle'\n | 'borderTopStyle'\n | 'borderBottomStyle'\n | 'borderLeftStyle'\n | 'borderRightStyle'\n > & {\n /**\n * Sets the elevation for Box\n *\n * eg: `theme.elevation.midRaised`\n *\n * @default `theme.elevation.lowRaised`\n *\n * **Links:**\n * - Docs: https://blade.razorpay.com/?path=/docs/tokens-elevation--docs\n */\n elevation?: keyof Elevation;\n }\n>;\n\n// Visual props that are specific BaseBox\n// This is used to ensure some of the more flexible BaseBox props are not passed to Box\ntype BaseBoxVisualProps = MakeObjectResponsive<\n {\n backgroundColor:\n | BackgroundColorString<'feedback'>\n | BackgroundColorString<'surface'>\n | BackgroundColorString<'interactive'>\n | BackgroundColorString<'overlay'>\n | BackgroundColorString<'popup'>\n | 'transparent'\n | (string & Record<never, never>);\n lineHeight: SpacingValueType;\n touchAction: CSSObject['touchAction'];\n userSelect: CSSObject['userSelect'];\n } & PickCSSByPlatform<\n | 'border'\n | 'borderLeft'\n | 'borderRight'\n | 'borderTop'\n | 'borderBottom'\n | 'opacity'\n | 'pointerEvents'\n | 'cursor'\n >\n>;\n\n// Visual props that are specific to Box\ntype BoxVisualProps = MakeObjectResponsive<{\n backgroundColor: BackgroundColorString<'surface'> | 'transparent';\n}> & {\n // Intentionally keeping this outside of MakeObjectResponsive since we only want as to be string and not responsive object\n // styled-components do not support passing `as` prop as an object\n as: BoxAsType;\n};\n\ntype StyledPropsBlade = Partial<\n Omit<\n MarginProps &\n Pick<FlexboxProps, 'alignSelf' | 'justifySelf' | 'placeSelf' | 'order'> &\n PositionProps &\n Pick<\n GridProps,\n | 'gridColumn'\n | 'gridRow'\n | 'gridRowStart'\n | 'gridRowEnd'\n | 'gridColumnStart'\n | 'gridColumnEnd'\n | 'gridArea'\n > &\n Pick<LayoutProps, 'display'> &\n Pick<CommonBoxVisualProps, 'visibility'>,\n '__brand__'\n >\n>;\n\ntype BoxCallbackProps = Omit<\n Platform.Select<{\n web: {\n /**\n * **Warning**\n *\n * Make sure to not use Box when you want to create a trigger that performs action on hover.\n * You would probably want to render it as `button` using `styled.button` instead.\n *\n * Use this for hoverable containers in cases like custom menus.\n */\n onMouseOver: React.MouseEventHandler<HTMLElement>;\n /**\n * **Warning**\n *\n * Make sure to not use Box when you want to create a trigger that performs action on hover.\n * You would probably want to render it as `button` using `styled.button` instead.\n *\n * Use this for hoverable containers in cases like custom menus.\n */\n onMouseEnter: React.MouseEventHandler<HTMLElement>;\n /**\n * **Warning**\n *\n * Make sure to not use Box when you want to create a trigger that performs action on hover.\n * You would probably want to render it as `button` using `styled.button` instead.\n *\n * Use this for hoverable containers in cases like custom menus.\n */\n onMouseLeave: React.MouseEventHandler<HTMLElement>;\n onScroll: React.UIEventHandler<HTMLElement>;\n };\n native: Record<'onMouseOver' | 'onMouseEnter' | 'onMouseLeave' | 'onScroll', undefined>;\n }>,\n '__brand__'\n>;\n\ntype BoxDragAndDropProps = Omit<\n Platform.Select<{\n web: {\n draggable: boolean;\n onDragStart: React.DragEventHandler<HTMLElement>;\n onDragEnter: React.DragEventHandler<HTMLElement>;\n onDragLeave: React.DragEventHandler<HTMLElement>;\n onDragOver: React.DragEventHandler<HTMLElement>;\n onDragEnd: React.DragEventHandler<HTMLElement>;\n onDrop: React.DragEventHandler<HTMLElement>;\n };\n native: Record<\n | 'draggable'\n | 'onDragStart'\n | 'onDragEnter'\n | 'onDragLeave'\n | 'onDragOver'\n | 'onDragEnd'\n | 'onDrop',\n undefined\n >;\n }>,\n '__brand__'\n>;\n\ntype BoxProps = Partial<\n PaddingProps &\n MarginProps &\n LayoutProps &\n FlexboxProps &\n PositionProps &\n GridProps &\n BoxCallbackProps &\n BoxDragAndDropProps &\n CommonBoxVisualProps &\n BoxVisualProps & {\n children?: React.ReactNode | React.ReactNode[];\n tabIndex?: number;\n id?: string;\n } & TestID &\n DataAnalyticsAttribute\n>;\n\n// Visual props have different types for BaseBox and Box. BaseBox has more flexible types and more props exposed.\n// So first we Omit Visual props of Box\n// Then we append BaseBoxVisualProps and some other props for styled-components like class and id\ntype BaseBoxProps = Omit<BoxProps, keyof BoxVisualProps> &\n Partial<\n DataAnalyticsAttribute &\n BaseBoxVisualProps & {\n className?: string;\n id?: string;\n tabIndex?: number;\n }\n > &\n BladeCommonEvents;\n\n// ref prop type\ntype BoxRefType = Platform.Select<{\n web: Omit<HTMLElement, 'style'>;\n native: View;\n}>;\n\nexport type { BaseBoxProps, BoxProps, BoxRefType, StyledPropsBlade, FlexboxProps };\nexport { validBoxAsValues };\n"],"names":["validBoxAsValues"],"mappings":"AA6GA;AACMA,IAAAA,gBAAgB,GAAG,CACvB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,KAAK,EACL,MAAM,EACN,OAAO;;;;"}
@@ -6,12 +6,14 @@ import '../../utils/index.js';
6
6
  import '../../utils/metaAttribute/index.js';
7
7
  import '../../utils/assignWithoutSideEffects/index.js';
8
8
  import '../../utils/logger/index.js';
9
+ import '../../utils/makeAnalyticsAttribute/index.js';
9
10
  import { jsx } from 'react/jsx-runtime';
10
11
  import { throwBladeError } from '../../utils/logger/logger.js';
11
12
  import { isReactNative } from '../../utils/platform/isReactNative.js';
12
13
  import { BaseBox } from './BaseBox/BaseBox.web.js';
13
14
  import { metaAttribute } from '../../utils/metaAttribute/metaAttribute.web.js';
14
15
  import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js';
16
+ import { makeAnalyticsAttribute } from '../../utils/makeAnalyticsAttribute/makeAnalyticsAttribute.js';
15
17
  import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
16
18
 
17
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -233,13 +235,13 @@ var _Box = function _Box(props, ref) {
233
235
  }, [props.as]);
234
236
  return /*#__PURE__*/jsx(BaseBox
235
237
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
- , _objectSpread(_objectSpread({
238
+ , _objectSpread(_objectSpread(_objectSpread({
237
239
  ref: ref,
238
240
  id: props.id
239
241
  }, metaAttribute({
240
242
  name: MetaConstants.Box,
241
243
  testID: props.testID
242
- })), makeBoxProps(props)));
244
+ })), makeBoxProps(props)), makeAnalyticsAttribute(props)));
243
245
  };
244
246
  var Box = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_Box), {
245
247
  displayName: 'Box',