@razorpay/blade 12.111.0 → 12.119.1

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 (346) hide show
  1. package/assets/spark/colorama-center-gradient-map-dark.jpg +0 -0
  2. package/assets/spark/colorama-gradient-map-dark.png +0 -0
  3. package/build/lib/native/components/Button/BaseButton/BaseButton.js +3 -3
  4. package/build/lib/native/components/Button/BaseButton/BaseButton.js.map +1 -1
  5. package/build/lib/native/components/Button/BaseButton/buttonTokens.js +1 -1
  6. package/build/lib/native/components/Button/BaseButton/buttonTokens.js.map +1 -1
  7. package/build/lib/native/components/Charts/AreaChart/AreaChart.native.js +2 -1
  8. package/build/lib/native/components/Charts/AreaChart/AreaChart.native.js.map +1 -1
  9. package/build/lib/native/components/Charts/CommonChartComponents/CommonChartComponents.native.js +2 -2
  10. package/build/lib/native/components/Charts/CommonChartComponents/CommonChartComponents.native.js.map +1 -1
  11. package/build/lib/native/components/Charts/CommonChartComponents/index.js +1 -1
  12. package/build/lib/native/components/Charts/CommonChartComponents/tokens.js +2 -2
  13. package/build/lib/native/components/Charts/CommonChartComponents/tokens.js.map +1 -1
  14. package/build/lib/native/components/Charts/LineChart/LineChart.native.js +4 -2
  15. package/build/lib/native/components/Charts/LineChart/LineChart.native.js.map +1 -1
  16. package/build/lib/native/components/Charts/utils/nullBridgeUtils.js +4 -0
  17. package/build/lib/native/components/Charts/utils/nullBridgeUtils.js.map +1 -0
  18. package/build/lib/native/components/Charts/utils/referenceBandUtils.js +6 -0
  19. package/build/lib/native/components/Charts/utils/referenceBandUtils.js.map +1 -0
  20. package/build/lib/native/components/CounterInput/CounterInput.native.js +3 -2
  21. package/build/lib/native/components/CounterInput/CounterInput.native.js.map +1 -1
  22. package/build/lib/native/components/CounterInput/token.js +2 -2
  23. package/build/lib/native/components/CounterInput/token.js.map +1 -1
  24. package/build/lib/native/components/DatePicker/Calendar.native.js +2 -2
  25. package/build/lib/native/components/DatePicker/Calendar.native.js.map +1 -1
  26. package/build/lib/native/components/DatePicker/utils.js +2 -2
  27. package/build/lib/native/components/DatePicker/utils.js.map +1 -1
  28. package/build/lib/native/components/Dropdown/Dropdown.js +1 -1
  29. package/build/lib/native/components/Dropdown/Dropdown.js.map +1 -1
  30. package/build/lib/native/components/Dropdown/FilterChipSelectInput.native.js +1 -1
  31. package/build/lib/native/components/Dropdown/FilterChipSelectInput.native.js.map +1 -1
  32. package/build/lib/native/components/Dropdown/dropdownUtils.js +1 -1
  33. package/build/lib/native/components/Dropdown/dropdownUtils.js.map +1 -1
  34. package/build/lib/native/components/Dropdown/filterChipSelectInputUtils.js +1 -1
  35. package/build/lib/native/components/Dropdown/filterChipSelectInputUtils.js.map +1 -1
  36. package/build/lib/native/components/Dropdown/useDropdown.js +1 -1
  37. package/build/lib/native/components/Dropdown/useDropdown.js.map +1 -1
  38. package/build/lib/native/components/FloatingActionButton/FloatingActionButton.js +14 -0
  39. package/build/lib/native/components/FloatingActionButton/FloatingActionButton.js.map +1 -0
  40. package/build/lib/native/components/FloatingActionButton/FloatingActionButtonContainer.native.js +20 -0
  41. package/build/lib/native/components/FloatingActionButton/FloatingActionButtonContainer.native.js.map +1 -0
  42. package/build/lib/native/components/FloatingActionButton/index.js +2 -0
  43. package/build/lib/native/components/FloatingActionButton/index.js.map +1 -0
  44. package/build/lib/native/components/GenUI/GenUIContext.native.js +2 -2
  45. package/build/lib/native/components/GenUI/GenUIContext.native.js.map +1 -1
  46. package/build/lib/native/components/GenUI/index.js +1 -1
  47. package/build/lib/native/components/Icons/BookmarkFilledIcon/BookmarkFilledIcon.js +14 -0
  48. package/build/lib/native/components/Icons/BookmarkFilledIcon/BookmarkFilledIcon.js.map +1 -0
  49. package/build/lib/native/components/Icons/BookmarkFilledIcon/index.js +2 -0
  50. package/build/lib/native/components/Icons/BookmarkFilledIcon/index.js.map +1 -0
  51. package/build/lib/native/components/Icons/index.js +1 -0
  52. package/build/lib/native/components/Icons/index.js.map +1 -1
  53. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js +1 -1
  54. package/build/lib/native/components/Input/BaseInput/StyledBaseInput.native.js.map +1 -1
  55. package/build/lib/native/components/Input/OTPInput/OTPInput.js +1 -1
  56. package/build/lib/native/components/Input/OTPInput/OTPInput.js.map +1 -1
  57. package/build/lib/native/components/Spark/RzpGlass/utils.native.js +1 -1
  58. package/build/lib/native/components/Spark/RzpGlass/utils.native.js.map +1 -1
  59. package/build/lib/native/components/TreeView/TreeView.native.js +4 -0
  60. package/build/lib/native/components/TreeView/TreeView.native.js.map +1 -0
  61. package/build/lib/native/components/TreeView/index.native.js +2 -0
  62. package/build/lib/native/components/TreeView/index.native.js.map +1 -0
  63. package/build/lib/native/components/index.js +7 -2
  64. package/build/lib/native/components/index.js.map +1 -1
  65. package/build/lib/native/tokens/global/colors.js +1 -1
  66. package/build/lib/native/tokens/global/colors.js.map +1 -1
  67. package/build/lib/native/tokens/index.js +1 -0
  68. package/build/lib/native/tokens/index.js.map +1 -1
  69. package/build/lib/native/tokens/theme/bladeNeutralTheme.js +15 -0
  70. package/build/lib/native/tokens/theme/bladeNeutralTheme.js.map +1 -0
  71. package/build/lib/native/tokens/theme/bladeTheme.js +1 -1
  72. package/build/lib/native/tokens/theme/bladeTheme.js.map +1 -1
  73. package/build/lib/native/tokens/theme/index.js +1 -0
  74. package/build/lib/native/tokens/theme/index.js.map +1 -1
  75. package/build/lib/native/tokens/theme/theme.js.map +1 -1
  76. package/build/lib/native/utils/componentZIndices.js +1 -1
  77. package/build/lib/native/utils/componentZIndices.js.map +1 -1
  78. package/build/lib/native/utils/metaAttribute/metaConstants.js +1 -1
  79. package/build/lib/native/utils/metaAttribute/metaConstants.js.map +1 -1
  80. package/build/lib/native/utils/useControlledDropdownInput/useControlledDropdownInput.js +1 -1
  81. package/build/lib/native/utils/useControlledDropdownInput/useControlledDropdownInput.js.map +1 -1
  82. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js +124 -73
  83. package/build/lib/web/development/components/Button/BaseButton/BaseButton.js.map +1 -1
  84. package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js +68 -2
  85. package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js.map +1 -1
  86. package/build/lib/web/development/components/Charts/AreaChart/AreaChart.web.js +206 -18
  87. package/build/lib/web/development/components/Charts/AreaChart/AreaChart.web.js.map +1 -1
  88. package/build/lib/web/development/components/Charts/CommonChartComponents/CommonChartComponents.web.js +159 -43
  89. package/build/lib/web/development/components/Charts/CommonChartComponents/CommonChartComponents.web.js.map +1 -1
  90. package/build/lib/web/development/components/Charts/CommonChartComponents/index.js +1 -1
  91. package/build/lib/web/development/components/Charts/CommonChartComponents/tokens.js +15 -2
  92. package/build/lib/web/development/components/Charts/CommonChartComponents/tokens.js.map +1 -1
  93. package/build/lib/web/development/components/Charts/LineChart/LineChart.web.js +272 -15
  94. package/build/lib/web/development/components/Charts/LineChart/LineChart.web.js.map +1 -1
  95. package/build/lib/web/development/components/Charts/LineChart/useReferenceBand.js +195 -0
  96. package/build/lib/web/development/components/Charts/LineChart/useReferenceBand.js.map +1 -0
  97. package/build/lib/web/development/components/Charts/utils/nullBridgeUtils.js +175 -0
  98. package/build/lib/web/development/components/Charts/utils/nullBridgeUtils.js.map +1 -0
  99. package/build/lib/web/development/components/Charts/utils/referenceBandUtils.js +66 -0
  100. package/build/lib/web/development/components/Charts/utils/referenceBandUtils.js.map +1 -0
  101. package/build/lib/web/development/components/CounterInput/CounterInput.web.js +29 -5
  102. package/build/lib/web/development/components/CounterInput/CounterInput.web.js.map +1 -1
  103. package/build/lib/web/development/components/CounterInput/StyledCounterInput.js +20 -4
  104. package/build/lib/web/development/components/CounterInput/StyledCounterInput.js.map +1 -1
  105. package/build/lib/web/development/components/CounterInput/token.js +6 -1
  106. package/build/lib/web/development/components/CounterInput/token.js.map +1 -1
  107. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js +20 -0
  108. package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  109. package/build/lib/web/development/components/DatePicker/Calendar.web.js +9 -2
  110. package/build/lib/web/development/components/DatePicker/Calendar.web.js.map +1 -1
  111. package/build/lib/web/development/components/DatePicker/utils.js +21 -1
  112. package/build/lib/web/development/components/DatePicker/utils.js.map +1 -1
  113. package/build/lib/web/development/components/Dropdown/Dropdown.js +4 -1
  114. package/build/lib/web/development/components/Dropdown/Dropdown.js.map +1 -1
  115. package/build/lib/web/development/components/Dropdown/FilterChipSelectInput.web.js +20 -12
  116. package/build/lib/web/development/components/Dropdown/FilterChipSelectInput.web.js.map +1 -1
  117. package/build/lib/web/development/components/Dropdown/dropdownUtils.js +28 -2
  118. package/build/lib/web/development/components/Dropdown/dropdownUtils.js.map +1 -1
  119. package/build/lib/web/development/components/Dropdown/filterChipSelectInputUtils.js +15 -1
  120. package/build/lib/web/development/components/Dropdown/filterChipSelectInputUtils.js.map +1 -1
  121. package/build/lib/web/development/components/Dropdown/useDropdown.js +91 -5
  122. package/build/lib/web/development/components/Dropdown/useDropdown.js.map +1 -1
  123. package/build/lib/web/development/components/FloatingActionButton/FloatingActionButton.js +126 -0
  124. package/build/lib/web/development/components/FloatingActionButton/FloatingActionButton.js.map +1 -0
  125. package/build/lib/web/development/components/FloatingActionButton/FloatingActionButtonContainer.web.js +45 -0
  126. package/build/lib/web/development/components/FloatingActionButton/FloatingActionButtonContainer.web.js.map +1 -0
  127. package/build/lib/web/development/components/FloatingActionButton/index.js +2 -0
  128. package/build/lib/web/development/components/FloatingActionButton/index.js.map +1 -0
  129. package/build/lib/web/development/components/GenUI/GenUIComponents.web.js.map +1 -1
  130. package/build/lib/web/development/components/GenUI/GenUIContext.web.js +9 -1
  131. package/build/lib/web/development/components/GenUI/GenUIContext.web.js.map +1 -1
  132. package/build/lib/web/development/components/GenUI/GenUIProvider.web.js +17 -0
  133. package/build/lib/web/development/components/GenUI/GenUIProvider.web.js.map +1 -1
  134. package/build/lib/web/development/components/GenUI/GenUISchemaRenderer.web.js +31 -6
  135. package/build/lib/web/development/components/GenUI/GenUISchemaRenderer.web.js.map +1 -1
  136. package/build/lib/web/development/components/GenUI/index.js +1 -1
  137. package/build/lib/web/development/components/Icons/BookmarkFilledIcon/BookmarkFilledIcon.js +44 -0
  138. package/build/lib/web/development/components/Icons/BookmarkFilledIcon/BookmarkFilledIcon.js.map +1 -0
  139. package/build/lib/web/development/components/Icons/BookmarkFilledIcon/index.js +2 -0
  140. package/build/lib/web/development/components/Icons/BookmarkFilledIcon/index.js.map +1 -0
  141. package/build/lib/web/development/components/Icons/index.js +1 -0
  142. package/build/lib/web/development/components/Icons/index.js.map +1 -1
  143. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js +3 -0
  144. package/build/lib/web/development/components/Input/OTPInput/OTPInput.js.map +1 -1
  145. package/build/lib/web/development/components/PopupArrow/PopupArrow.web.js +7 -1
  146. package/build/lib/web/development/components/PopupArrow/PopupArrow.web.js.map +1 -1
  147. package/build/lib/web/development/components/RollingText/RollingText.web.js +27 -20
  148. package/build/lib/web/development/components/RollingText/RollingText.web.js.map +1 -1
  149. package/build/lib/web/development/components/Spark/RzpGlass/RzpGlass.js +16 -7
  150. package/build/lib/web/development/components/Spark/RzpGlass/RzpGlass.js.map +1 -1
  151. package/build/lib/web/development/components/Spark/RzpGlass/RzpGlassMount.js +24 -6
  152. package/build/lib/web/development/components/Spark/RzpGlass/RzpGlassMount.js.map +1 -1
  153. package/build/lib/web/development/components/Spark/RzpGlass/presets.js +30 -1
  154. package/build/lib/web/development/components/Spark/RzpGlass/presets.js.map +1 -1
  155. package/build/lib/web/development/components/Spark/RzpGlass/rzpGlassShader.js +1 -1
  156. package/build/lib/web/development/components/Spark/RzpGlass/rzpGlassShader.js.map +1 -1
  157. package/build/lib/web/development/components/Spark/RzpGlass/utils.js +26 -10
  158. package/build/lib/web/development/components/Spark/RzpGlass/utils.js.map +1 -1
  159. package/build/lib/web/development/components/SpotlightPopoverTour/Tour.web.js +31 -18
  160. package/build/lib/web/development/components/SpotlightPopoverTour/Tour.web.js.map +1 -1
  161. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js +14 -3
  162. package/build/lib/web/development/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  163. package/build/lib/web/development/components/SpotlightPopoverTour/TourPopover.web.js +23 -4
  164. package/build/lib/web/development/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  165. package/build/lib/web/development/components/SpotlightPopoverTour/utils.js +58 -1
  166. package/build/lib/web/development/components/SpotlightPopoverTour/utils.js.map +1 -1
  167. package/build/lib/web/development/components/TreeView/StyledTreeViewRow.web.js +41 -0
  168. package/build/lib/web/development/components/TreeView/StyledTreeViewRow.web.js.map +1 -0
  169. package/build/lib/web/development/components/TreeView/TreeView.web.js +696 -0
  170. package/build/lib/web/development/components/TreeView/TreeView.web.js.map +1 -0
  171. package/build/lib/web/development/components/TreeView/TreeViewAnimator.web.js +184 -0
  172. package/build/lib/web/development/components/TreeView/TreeViewAnimator.web.js.map +1 -0
  173. package/build/lib/web/development/components/TreeView/TreeViewChevron.web.js +73 -0
  174. package/build/lib/web/development/components/TreeView/TreeViewChevron.web.js.map +1 -0
  175. package/build/lib/web/development/components/TreeView/TreeViewItem.web.js +295 -0
  176. package/build/lib/web/development/components/TreeView/TreeViewItem.web.js.map +1 -0
  177. package/build/lib/web/development/components/TreeView/TreeViewLoadMore.web.js +173 -0
  178. package/build/lib/web/development/components/TreeView/TreeViewLoadMore.web.js.map +1 -0
  179. package/build/lib/web/development/components/TreeView/componentIds.js +8 -0
  180. package/build/lib/web/development/components/TreeView/componentIds.js.map +1 -0
  181. package/build/lib/web/development/components/TreeView/index.web.js +4 -0
  182. package/build/lib/web/development/components/TreeView/index.web.js.map +1 -0
  183. package/build/lib/web/development/components/TreeView/treeViewUtils.js +475 -0
  184. package/build/lib/web/development/components/TreeView/treeViewUtils.js.map +1 -0
  185. package/build/lib/web/development/components/TreeView/useTreeView.js +24 -0
  186. package/build/lib/web/development/components/TreeView/useTreeView.js.map +1 -0
  187. package/build/lib/web/development/components/index.js +9 -2
  188. package/build/lib/web/development/components/index.js.map +1 -1
  189. package/build/lib/web/development/tokens/global/colors.js +2 -2
  190. package/build/lib/web/development/tokens/global/colors.js.map +1 -1
  191. package/build/lib/web/development/tokens/index.js +1 -0
  192. package/build/lib/web/development/tokens/index.js.map +1 -1
  193. package/build/lib/web/development/tokens/theme/bladeNeutralTheme.js +1439 -0
  194. package/build/lib/web/development/tokens/theme/bladeNeutralTheme.js.map +1 -0
  195. package/build/lib/web/development/tokens/theme/bladeTheme.js +48 -12
  196. package/build/lib/web/development/tokens/theme/bladeTheme.js.map +1 -1
  197. package/build/lib/web/development/tokens/theme/index.js +1 -0
  198. package/build/lib/web/development/tokens/theme/index.js.map +1 -1
  199. package/build/lib/web/development/tokens/theme/theme.js.map +1 -1
  200. package/build/lib/web/development/utils/componentZIndices.js +2 -0
  201. package/build/lib/web/development/utils/componentZIndices.js.map +1 -1
  202. package/build/lib/web/development/utils/metaAttribute/metaConstants.js +4 -0
  203. package/build/lib/web/development/utils/metaAttribute/metaConstants.js.map +1 -1
  204. package/build/lib/web/development/utils/useControlledDropdownInput/useControlledDropdownInput.js +12 -4
  205. package/build/lib/web/development/utils/useControlledDropdownInput/useControlledDropdownInput.js.map +1 -1
  206. package/build/lib/web/development/utils/useTruncationTitle/useTruncationTitle.web.js +2 -2
  207. package/build/lib/web/development/utils/useTruncationTitle/useTruncationTitle.web.js.map +1 -1
  208. package/build/lib/web/production/_virtual/flatten.js +1 -1
  209. package/build/lib/web/production/_virtual/flatten3.js +1 -1
  210. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js +124 -73
  211. package/build/lib/web/production/components/Button/BaseButton/BaseButton.js.map +1 -1
  212. package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js +68 -2
  213. package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js.map +1 -1
  214. package/build/lib/web/production/components/Charts/AreaChart/AreaChart.web.js +206 -18
  215. package/build/lib/web/production/components/Charts/AreaChart/AreaChart.web.js.map +1 -1
  216. package/build/lib/web/production/components/Charts/CommonChartComponents/CommonChartComponents.web.js +159 -43
  217. package/build/lib/web/production/components/Charts/CommonChartComponents/CommonChartComponents.web.js.map +1 -1
  218. package/build/lib/web/production/components/Charts/CommonChartComponents/index.js +1 -1
  219. package/build/lib/web/production/components/Charts/CommonChartComponents/tokens.js +15 -2
  220. package/build/lib/web/production/components/Charts/CommonChartComponents/tokens.js.map +1 -1
  221. package/build/lib/web/production/components/Charts/LineChart/LineChart.web.js +272 -15
  222. package/build/lib/web/production/components/Charts/LineChart/LineChart.web.js.map +1 -1
  223. package/build/lib/web/production/components/Charts/LineChart/useReferenceBand.js +195 -0
  224. package/build/lib/web/production/components/Charts/LineChart/useReferenceBand.js.map +1 -0
  225. package/build/lib/web/production/components/Charts/utils/nullBridgeUtils.js +175 -0
  226. package/build/lib/web/production/components/Charts/utils/nullBridgeUtils.js.map +1 -0
  227. package/build/lib/web/production/components/Charts/utils/referenceBandUtils.js +66 -0
  228. package/build/lib/web/production/components/Charts/utils/referenceBandUtils.js.map +1 -0
  229. package/build/lib/web/production/components/CounterInput/CounterInput.web.js +29 -5
  230. package/build/lib/web/production/components/CounterInput/CounterInput.web.js.map +1 -1
  231. package/build/lib/web/production/components/CounterInput/StyledCounterInput.js +20 -4
  232. package/build/lib/web/production/components/CounterInput/StyledCounterInput.js.map +1 -1
  233. package/build/lib/web/production/components/CounterInput/token.js +6 -1
  234. package/build/lib/web/production/components/CounterInput/token.js.map +1 -1
  235. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js +20 -0
  236. package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js.map +1 -1
  237. package/build/lib/web/production/components/DatePicker/Calendar.web.js +9 -2
  238. package/build/lib/web/production/components/DatePicker/Calendar.web.js.map +1 -1
  239. package/build/lib/web/production/components/DatePicker/utils.js +21 -1
  240. package/build/lib/web/production/components/DatePicker/utils.js.map +1 -1
  241. package/build/lib/web/production/components/Dropdown/Dropdown.js +4 -1
  242. package/build/lib/web/production/components/Dropdown/Dropdown.js.map +1 -1
  243. package/build/lib/web/production/components/Dropdown/FilterChipSelectInput.web.js +20 -12
  244. package/build/lib/web/production/components/Dropdown/FilterChipSelectInput.web.js.map +1 -1
  245. package/build/lib/web/production/components/Dropdown/dropdownUtils.js +28 -2
  246. package/build/lib/web/production/components/Dropdown/dropdownUtils.js.map +1 -1
  247. package/build/lib/web/production/components/Dropdown/filterChipSelectInputUtils.js +15 -1
  248. package/build/lib/web/production/components/Dropdown/filterChipSelectInputUtils.js.map +1 -1
  249. package/build/lib/web/production/components/Dropdown/useDropdown.js +91 -5
  250. package/build/lib/web/production/components/Dropdown/useDropdown.js.map +1 -1
  251. package/build/lib/web/production/components/FloatingActionButton/FloatingActionButton.js +126 -0
  252. package/build/lib/web/production/components/FloatingActionButton/FloatingActionButton.js.map +1 -0
  253. package/build/lib/web/production/components/FloatingActionButton/FloatingActionButtonContainer.web.js +45 -0
  254. package/build/lib/web/production/components/FloatingActionButton/FloatingActionButtonContainer.web.js.map +1 -0
  255. package/build/lib/web/production/components/FloatingActionButton/index.js +2 -0
  256. package/build/lib/web/production/components/FloatingActionButton/index.js.map +1 -0
  257. package/build/lib/web/production/components/GenUI/GenUIComponents.web.js.map +1 -1
  258. package/build/lib/web/production/components/GenUI/GenUIContext.web.js +9 -1
  259. package/build/lib/web/production/components/GenUI/GenUIContext.web.js.map +1 -1
  260. package/build/lib/web/production/components/GenUI/GenUIProvider.web.js +17 -0
  261. package/build/lib/web/production/components/GenUI/GenUIProvider.web.js.map +1 -1
  262. package/build/lib/web/production/components/GenUI/GenUISchemaRenderer.web.js +31 -6
  263. package/build/lib/web/production/components/GenUI/GenUISchemaRenderer.web.js.map +1 -1
  264. package/build/lib/web/production/components/GenUI/index.js +1 -1
  265. package/build/lib/web/production/components/Icons/BookmarkFilledIcon/BookmarkFilledIcon.js +44 -0
  266. package/build/lib/web/production/components/Icons/BookmarkFilledIcon/BookmarkFilledIcon.js.map +1 -0
  267. package/build/lib/web/production/components/Icons/BookmarkFilledIcon/index.js +2 -0
  268. package/build/lib/web/production/components/Icons/BookmarkFilledIcon/index.js.map +1 -0
  269. package/build/lib/web/production/components/Icons/index.js +1 -0
  270. package/build/lib/web/production/components/Icons/index.js.map +1 -1
  271. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js +3 -0
  272. package/build/lib/web/production/components/Input/OTPInput/OTPInput.js.map +1 -1
  273. package/build/lib/web/production/components/PopupArrow/PopupArrow.web.js +7 -1
  274. package/build/lib/web/production/components/PopupArrow/PopupArrow.web.js.map +1 -1
  275. package/build/lib/web/production/components/RollingText/RollingText.web.js +27 -20
  276. package/build/lib/web/production/components/RollingText/RollingText.web.js.map +1 -1
  277. package/build/lib/web/production/components/Spark/RzpGlass/RzpGlass.js +16 -7
  278. package/build/lib/web/production/components/Spark/RzpGlass/RzpGlass.js.map +1 -1
  279. package/build/lib/web/production/components/Spark/RzpGlass/RzpGlassMount.js +24 -6
  280. package/build/lib/web/production/components/Spark/RzpGlass/RzpGlassMount.js.map +1 -1
  281. package/build/lib/web/production/components/Spark/RzpGlass/presets.js +30 -1
  282. package/build/lib/web/production/components/Spark/RzpGlass/presets.js.map +1 -1
  283. package/build/lib/web/production/components/Spark/RzpGlass/rzpGlassShader.js +1 -1
  284. package/build/lib/web/production/components/Spark/RzpGlass/rzpGlassShader.js.map +1 -1
  285. package/build/lib/web/production/components/Spark/RzpGlass/utils.js +26 -10
  286. package/build/lib/web/production/components/Spark/RzpGlass/utils.js.map +1 -1
  287. package/build/lib/web/production/components/SpotlightPopoverTour/Tour.web.js +31 -18
  288. package/build/lib/web/production/components/SpotlightPopoverTour/Tour.web.js.map +1 -1
  289. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js +14 -3
  290. package/build/lib/web/production/components/SpotlightPopoverTour/TourMask.web.js.map +1 -1
  291. package/build/lib/web/production/components/SpotlightPopoverTour/TourPopover.web.js +23 -4
  292. package/build/lib/web/production/components/SpotlightPopoverTour/TourPopover.web.js.map +1 -1
  293. package/build/lib/web/production/components/SpotlightPopoverTour/utils.js +58 -1
  294. package/build/lib/web/production/components/SpotlightPopoverTour/utils.js.map +1 -1
  295. package/build/lib/web/production/components/TreeView/StyledTreeViewRow.web.js +41 -0
  296. package/build/lib/web/production/components/TreeView/StyledTreeViewRow.web.js.map +1 -0
  297. package/build/lib/web/production/components/TreeView/TreeView.web.js +696 -0
  298. package/build/lib/web/production/components/TreeView/TreeView.web.js.map +1 -0
  299. package/build/lib/web/production/components/TreeView/TreeViewAnimator.web.js +184 -0
  300. package/build/lib/web/production/components/TreeView/TreeViewAnimator.web.js.map +1 -0
  301. package/build/lib/web/production/components/TreeView/TreeViewChevron.web.js +73 -0
  302. package/build/lib/web/production/components/TreeView/TreeViewChevron.web.js.map +1 -0
  303. package/build/lib/web/production/components/TreeView/TreeViewItem.web.js +295 -0
  304. package/build/lib/web/production/components/TreeView/TreeViewItem.web.js.map +1 -0
  305. package/build/lib/web/production/components/TreeView/TreeViewLoadMore.web.js +173 -0
  306. package/build/lib/web/production/components/TreeView/TreeViewLoadMore.web.js.map +1 -0
  307. package/build/lib/web/production/components/TreeView/componentIds.js +8 -0
  308. package/build/lib/web/production/components/TreeView/componentIds.js.map +1 -0
  309. package/build/lib/web/production/components/TreeView/index.web.js +4 -0
  310. package/build/lib/web/production/components/TreeView/index.web.js.map +1 -0
  311. package/build/lib/web/production/components/TreeView/treeViewUtils.js +475 -0
  312. package/build/lib/web/production/components/TreeView/treeViewUtils.js.map +1 -0
  313. package/build/lib/web/production/components/TreeView/useTreeView.js +24 -0
  314. package/build/lib/web/production/components/TreeView/useTreeView.js.map +1 -0
  315. package/build/lib/web/production/components/index.js +9 -2
  316. package/build/lib/web/production/components/index.js.map +1 -1
  317. package/build/lib/web/production/node_modules/es-toolkit/dist/array/flatten.js +1 -1
  318. package/build/lib/web/production/node_modules/es-toolkit/dist/compat/array/flatten.js +1 -1
  319. package/build/lib/web/production/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
  320. package/build/lib/web/production/node_modules/es-toolkit/dist/compat/object/omit.js +2 -2
  321. package/build/lib/web/production/tokens/global/colors.js +2 -2
  322. package/build/lib/web/production/tokens/global/colors.js.map +1 -1
  323. package/build/lib/web/production/tokens/index.js +1 -0
  324. package/build/lib/web/production/tokens/index.js.map +1 -1
  325. package/build/lib/web/production/tokens/theme/bladeNeutralTheme.js +1439 -0
  326. package/build/lib/web/production/tokens/theme/bladeNeutralTheme.js.map +1 -0
  327. package/build/lib/web/production/tokens/theme/bladeTheme.js +48 -12
  328. package/build/lib/web/production/tokens/theme/bladeTheme.js.map +1 -1
  329. package/build/lib/web/production/tokens/theme/index.js +1 -0
  330. package/build/lib/web/production/tokens/theme/index.js.map +1 -1
  331. package/build/lib/web/production/tokens/theme/theme.js.map +1 -1
  332. package/build/lib/web/production/utils/componentZIndices.js +2 -0
  333. package/build/lib/web/production/utils/componentZIndices.js.map +1 -1
  334. package/build/lib/web/production/utils/metaAttribute/metaConstants.js +4 -0
  335. package/build/lib/web/production/utils/metaAttribute/metaConstants.js.map +1 -1
  336. package/build/lib/web/production/utils/useControlledDropdownInput/useControlledDropdownInput.js +12 -4
  337. package/build/lib/web/production/utils/useControlledDropdownInput/useControlledDropdownInput.js.map +1 -1
  338. package/build/lib/web/production/utils/useTruncationTitle/useTruncationTitle.web.js +2 -2
  339. package/build/lib/web/production/utils/useTruncationTitle/useTruncationTitle.web.js.map +1 -1
  340. package/build/types/components/index.d.ts +557 -18
  341. package/build/types/components/index.native.d.ts +463 -16
  342. package/build/types/tokens/index.d.ts +11 -4
  343. package/build/types/tokens/index.native.d.ts +11 -4
  344. package/build/types/utils/index.d.ts +8 -3
  345. package/build/types/utils/index.native.d.ts +8 -3
  346. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../../src/components/SpotlightPopoverTour/utils.ts"],"sourcesContent":["/* eslint-disable consistent-return */\n/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\n/* eslint-disable one-var */\n/* eslint-disable prefer-const */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport React from 'react';\nimport { usePrevious } from '~utils';\nimport { throwBladeError } from '~utils/logger';\nimport { useScrollLock } from '~utils/useScrollLock';\n\n/**\n * Hook to delay the state change\n *\n * This is used to delay the active step change to allow for transitions to finish\n * This prevents the popover's footer from changing it's JSX while it's transitioning\n */\nfunction useDelayedState<T>(\n initialState: T,\n delay: number,\n): [T, React.Dispatch<React.SetStateAction<T>>] {\n const [delayedState, _setDelayedState] = React.useState(initialState);\n const timeoutRef = React.useRef<number | undefined>(undefined);\n\n React.useEffect(() => {\n timeoutRef.current = window.setTimeout(() => {\n _setDelayedState(initialState);\n }, delay);\n\n return () => {\n window.clearTimeout(timeoutRef.current);\n };\n }, [delay, initialState]);\n\n const setDelayedState = React.useCallback((newState: React.SetStateAction<T>) => {\n _setDelayedState(newState);\n window.clearTimeout(timeoutRef.current);\n }, []);\n\n return [delayedState, setDelayedState];\n}\n\n/**\n * Keep track of when we are transitioning between steps\n *\n * This is used to prevent the popover from jumping to the next step before animations are finished\n */\nconst useIsTransitioningBetweenSteps = (activeStep: number, transitionDelay: number) => {\n const prevActiveStep = usePrevious(activeStep);\n const [isTransitioning, setIsTransitioning] = React.useState(false);\n\n // Keep track of when we are transitioning between steps\n React.useEffect(() => {\n if (prevActiveStep === undefined) return;\n setIsTransitioning(true);\n const timeout = setTimeout(() => {\n setIsTransitioning(false);\n }, transitionDelay);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [prevActiveStep, transitionDelay]);\n\n return isTransitioning;\n};\n\n// https://stackoverflow.com/questions/46795955/how-to-know-scroll-to-element-is-done-in-javascript\nfunction smoothScroll(element: Element | null, options: ScrollIntoViewOptions) {\n return new Promise((resolve) => {\n if (__DEV__) {\n if (!(element instanceof Element)) {\n throwBladeError({\n moduleName: 'smoothScroll',\n message: 'argument \"element\" must be an instance of Element',\n });\n }\n }\n\n let same = 0;\n let lastPos: undefined | null | number = null;\n const scrollOptions = { behavior: 'smooth', ...options } as const;\n\n element!.scrollIntoView(scrollOptions);\n requestAnimationFrame(check);\n\n // eslint-disable-next-line consistent-return\n function check() {\n const newPos = element?.getBoundingClientRect().top;\n if (newPos === lastPos) {\n if (same++ > 2) {\n return resolve(null);\n }\n } else {\n same = 0;\n lastPos = newPos;\n }\n requestAnimationFrame(check);\n }\n });\n}\n\nfunction useIntersectionObserver(\n elementRef: React.RefObject<Element>,\n { threshold = 0, root = null, rootMargin = '0%' }: IntersectionObserverInit,\n): IntersectionObserverEntry | undefined {\n const [entry, setEntry] = React.useState<IntersectionObserverEntry>();\n\n const updateEntry = ([entry]: IntersectionObserverEntry[]): void => {\n setEntry(entry);\n };\n\n React.useEffect(() => {\n const node = elementRef?.current; // DOM Ref\n const hasIOSupport = !!window.IntersectionObserver;\n\n if (!hasIOSupport || !node) return;\n\n const observerParams = { threshold, root, rootMargin };\n const observer = new IntersectionObserver(updateEntry, observerParams);\n\n observer.observe(node);\n\n return () => observer.disconnect();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [elementRef?.current, JSON.stringify(threshold), root, rootMargin]);\n\n return entry;\n}\n\nconst useLockBodyScroll = (shouldLock: boolean) => {\n const scrollLockRef = useScrollLock({\n enabled: true,\n reserveScrollBarGap: true,\n });\n\n React.useEffect(() => {\n const lockRef = scrollLockRef.current;\n if (shouldLock) {\n lockRef.activate();\n } else {\n lockRef.deactivate();\n }\n return () => {\n lockRef.deactivate();\n };\n }, [shouldLock, scrollLockRef]);\n};\n\nexport {\n useDelayedState,\n useIsTransitioningBetweenSteps,\n smoothScroll,\n useIntersectionObserver,\n useLockBodyScroll,\n};\n"],"names":["useDelayedState","initialState","delay","_React$useState","React","useState","_React$useState2","_slicedToArray","delayedState","_setDelayedState","timeoutRef","useRef","undefined","useEffect","current","window","setTimeout","clearTimeout","setDelayedState","useCallback","newState","useIsTransitioningBetweenSteps","activeStep","transitionDelay","prevActiveStep","usePrevious","_React$useState3","_React$useState4","isTransitioning","setIsTransitioning","timeout","smoothScroll","element","options","Promise","resolve","Element","throwBladeError","moduleName","message","same","lastPos","scrollOptions","_objectSpread","behavior","scrollIntoView","requestAnimationFrame","check","newPos","getBoundingClientRect","top","useIntersectionObserver","elementRef","_ref","_ref$threshold","threshold","_ref$root","root","_ref$rootMargin","rootMargin","_React$useState5","_React$useState6","entry","setEntry","updateEntry","_ref2","_ref3","node","hasIOSupport","IntersectionObserver","observerParams","observer","observe","disconnect","JSON","stringify","useLockBodyScroll","shouldLock","scrollLockRef","useScrollLock","enabled","reserveScrollBarGap","lockRef","activate","deactivate"],"mappings":";;;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,eAAeA,CACtBC,YAAe,EACfC,KAAa,EACiC;AAC9C,EAAA,IAAAC,eAAA,GAAyCC,cAAK,CAACC,QAAQ,CAACJ,YAAY,CAAC;IAAAK,gBAAA,GAAAC,cAAA,CAAAJ,eAAA,EAAA,CAAA,CAAA;AAA9DK,IAAAA,YAAY,GAAAF,gBAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,gBAAgB,GAAAH,gBAAA,CAAA,CAAA,CAAA,CAAA;AACrC,EAAA,IAAMI,UAAU,GAAGN,cAAK,CAACO,MAAM,CAAqBC,SAAS,CAAC,CAAA;EAE9DR,cAAK,CAACS,SAAS,CAAC,YAAM;AACpBH,IAAAA,UAAU,CAACI,OAAO,GAAGC,MAAM,CAACC,UAAU,CAAC,YAAM;MAC3CP,gBAAgB,CAACR,YAAY,CAAC,CAAA;KAC/B,EAAEC,KAAK,CAAC,CAAA;AAET,IAAA,OAAO,YAAM;AACXa,MAAAA,MAAM,CAACE,YAAY,CAACP,UAAU,CAACI,OAAO,CAAC,CAAA;KACxC,CAAA;AACH,GAAC,EAAE,CAACZ,KAAK,EAAED,YAAY,CAAC,CAAC,CAAA;EAEzB,IAAMiB,eAAe,GAAGd,cAAK,CAAC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AAC,CAAA;IAEtB,OAAO,YAAA;AAAA,MAAA,OAAMI,QAAQ,CAACE,UAAU,EAAE,CAAA;AAAA,KAAA,CAAA;;AAElC;GACD,EAAE,CAACrB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAVA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,UAAU,CAAEtC,OAAO,EAAE4D,IAAI,CAACC,SAAS,CAACpB,SAAS,CAAC,EAAEE,IAAI,EAAEE,UAAU,CAAC,CAAC,CAAA;AAEtE,EAAA,OAAOG,KAAK,CAAA;AACd,CAAA;AAEA,IAAMc,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,UAAmB,EAAK;EACjD,IAAMC,aAAa,GAAGC,aAAa,CAAC;AAClCC,IAAAA,OAAO,EAAE,IAAI;AACbC,IAAAA,mBAAmB,EAAE,IAAA;AACvB,GAAC,CAAC,CAAA;EAEF7E,cAAK,CAACS,SAAS,CAAC,YAAM;AACpB,IAAA,IAAMqE,OAAO,GAAGJ,aAAa,CAAChE,OAAO,CAAA;AACrC,IAAA,IAAI+D,UAAU,EAAE;MACdK,OAAO,CAACC,QAAQ,EAAE,CAAA;AACpB,KAAC,MAAM;MACLD,OAAO,CAACE,UAAU,EAAE,CAAA;AACtB,KAAA;AACA,IAAA,OAAO,YAAM;MACXF,OAAO,CAACE,UAAU,EAAE,CAAA;KACrB,CAAA;AACH,GAAC,EAAE,CAACP,UAAU,EAAEC,aAAa,CAAC,CAAC,CAAA;AACjC;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../src/components/SpotlightPopoverTour/utils.ts"],"sourcesContent":["/* eslint-disable consistent-return */\n/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\n/* eslint-disable one-var */\n/* eslint-disable prefer-const */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport React from 'react';\nimport { usePrevious } from '~utils';\nimport { throwBladeError } from '~utils/logger';\nimport { useScrollLock } from '~utils/useScrollLock';\n\n/**\n * Hook to delay the state change\n *\n * This is used to delay the active step change to allow for transitions to finish\n * This prevents the popover's footer from changing it's JSX while it's transitioning\n */\nfunction useDelayedState<T>(\n initialState: T,\n delay: number,\n): [T, React.Dispatch<React.SetStateAction<T>>] {\n const [delayedState, _setDelayedState] = React.useState(initialState);\n const timeoutRef = React.useRef<number | undefined>(undefined);\n\n React.useEffect(() => {\n timeoutRef.current = window.setTimeout(() => {\n _setDelayedState(initialState);\n }, delay);\n\n return () => {\n window.clearTimeout(timeoutRef.current);\n };\n }, [delay, initialState]);\n\n const setDelayedState = React.useCallback((newState: React.SetStateAction<T>) => {\n _setDelayedState(newState);\n window.clearTimeout(timeoutRef.current);\n }, []);\n\n return [delayedState, setDelayedState];\n}\n\n/**\n * Keep track of when we are transitioning between steps\n *\n * This is used to prevent the popover from jumping to the next step before animations are finished\n */\nconst useIsTransitioningBetweenSteps = (activeStep: number, transitionDelay: number) => {\n const prevActiveStep = usePrevious(activeStep);\n const [isTransitioning, setIsTransitioning] = React.useState(false);\n\n // Keep track of when we are transitioning between steps\n React.useEffect(() => {\n if (prevActiveStep === undefined) return;\n setIsTransitioning(true);\n const timeout = setTimeout(() => {\n setIsTransitioning(false);\n }, transitionDelay);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [prevActiveStep, transitionDelay]);\n\n return isTransitioning;\n};\n\n// https://stackoverflow.com/questions/46795955/how-to-know-scroll-to-element-is-done-in-javascript\nfunction smoothScroll(element: Element | null, options: ScrollIntoViewOptions) {\n return new Promise((resolve) => {\n if (__DEV__) {\n if (!(element instanceof Element)) {\n throwBladeError({\n moduleName: 'smoothScroll',\n message: 'argument \"element\" must be an instance of Element',\n });\n }\n }\n\n let same = 0;\n let lastPos: undefined | null | number = null;\n const scrollOptions = { behavior: 'smooth', ...options } as const;\n\n element!.scrollIntoView(scrollOptions);\n requestAnimationFrame(check);\n\n // eslint-disable-next-line consistent-return\n function check() {\n const newPos = element?.getBoundingClientRect().top;\n if (newPos === lastPos) {\n if (same++ > 2) {\n return resolve(null);\n }\n } else {\n same = 0;\n lastPos = newPos;\n }\n requestAnimationFrame(check);\n }\n });\n}\n\nfunction useIntersectionObserver(\n elementRef: React.RefObject<Element>,\n { threshold = 0, root = null, rootMargin = '0%' }: IntersectionObserverInit,\n): IntersectionObserverEntry | undefined {\n const [entry, setEntry] = React.useState<IntersectionObserverEntry>();\n\n const updateEntry = ([entry]: IntersectionObserverEntry[]): void => {\n setEntry(entry);\n };\n\n React.useEffect(() => {\n const node = elementRef?.current; // DOM Ref\n const hasIOSupport = !!window.IntersectionObserver;\n\n if (!hasIOSupport || !node) return;\n\n const observerParams = { threshold, root, rootMargin };\n const observer = new IntersectionObserver(updateEntry, observerParams);\n\n observer.observe(node);\n\n return () => observer.disconnect();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [elementRef?.current, JSON.stringify(threshold), root, rootMargin]);\n\n return entry;\n}\n\nconst readBorderRadius = (el: HTMLElement): number => {\n const { borderTopLeftRadius } = window.getComputedStyle(el);\n const parsed = Number.parseFloat(borderTopLeftRadius);\n\n if (Number.isNaN(parsed)) return 0;\n // Percentage radii (e.g. `50%` on a circular avatar) resolve against the box itself.\n if (borderTopLeftRadius.includes('%')) {\n const { width, height } = el.getBoundingClientRect();\n return (Math.min(width, height) * parsed) / 100;\n }\n\n return parsed;\n};\n\n// `getComputedStyle` reports unset properties as an empty string in some environments\n// (notably jsdom), so treat \"unset\" the same as \"not painted\" rather than as a value.\nconst isPainted = (value: string): boolean =>\n Boolean(value) && value !== 'none' && value !== 'transparent' && value !== 'rgba(0, 0, 0, 0)';\n\n/** Whether an element paints anything of its own, or is a bare layout shell. */\nconst drawsOwnShape = (el: HTMLElement): boolean => {\n const { borderTopWidth, backgroundColor, backgroundImage } = window.getComputedStyle(el);\n return (\n readBorderRadius(el) > 0 ||\n Number.parseFloat(borderTopWidth) > 0 ||\n isPainted(backgroundColor) ||\n isPainted(backgroundImage)\n );\n};\n\n/**\n * Resolves the element a step should actually be measured against.\n *\n * `SpotlightPopoverTourStep` clones its child to attach a ref, so consumers commonly wrap\n * their UI in a layout element just to forward one. Measuring that wrapper is wrong twice\n * over: it has no corner radius to inherit, and a wrapper stretched by its parent's layout\n * (e.g. `alignItems=\"stretch\"` in a flex row) is taller than the component inside it, which\n * makes the spotlight's padding look uneven — 6px on three sides and more at the bottom.\n *\n * So when the step's element paints nothing itself and simply wraps a single child that\n * fills it on at least one axis, we trace that child instead. The fill check keeps us from\n * shrinking onto an inner element that merely happens to be first — a wrapper around\n * narrower content is still measured as the wrapper.\n *\n * Both the spotlight and the popover must resolve through this, or they anchor to different\n * rectangles and the overhang between them shows up as an uneven arrow-to-spotlight gap.\n */\nconst resolveSpotlightTarget = (element: HTMLElement): HTMLElement => {\n if (drawsOwnShape(element)) return element;\n\n const { children } = element;\n if (children.length !== 1) return element;\n\n const child = children[0] as HTMLElement;\n const parentRect = element.getBoundingClientRect();\n const childRect = child.getBoundingClientRect();\n const fillsAnAxis =\n Math.abs(childRect.width - parentRect.width) <= 1 ||\n Math.abs(childRect.height - parentRect.height) <= 1;\n\n return fillsAnAxis ? child : element;\n};\n\nconst useLockBodyScroll = (shouldLock: boolean) => {\n const scrollLockRef = useScrollLock({\n enabled: true,\n reserveScrollBarGap: true,\n });\n\n React.useEffect(() => {\n const lockRef = scrollLockRef.current;\n if (shouldLock) {\n lockRef.activate();\n } else {\n lockRef.deactivate();\n }\n return () => {\n lockRef.deactivate();\n };\n }, [shouldLock, scrollLockRef]);\n};\n\nexport {\n useDelayedState,\n useIsTransitioningBetweenSteps,\n smoothScroll,\n useIntersectionObserver,\n useLockBodyScroll,\n readBorderRadius,\n resolveSpotlightTarget,\n};\n"],"names":["useDelayedState","initialState","delay","_React$useState","React","useState","_React$useState2","_slicedToArray","delayedState","_setDelayedState","timeoutRef","useRef","undefined","useEffect","current","window","setTimeout","clearTimeout","setDelayedState","useCallback","newState","useIsTransitioningBetweenSteps","activeStep","transitionDelay","prevActiveStep","usePrevious","_React$useState3","_React$useState4","isTransitioning","setIsTransitioning","timeout","smoothScroll","element","options","Promise","resolve","Element","throwBladeError","moduleName","message","same","lastPos","scrollOptions","_objectSpread","behavior","scrollIntoView","requestAnimationFrame","check","newPos","getBoundingClientRect","top","useIntersectionObserver","elementRef","_ref","_ref$threshold","threshold","_ref$root","root","_ref$rootMargin","rootMargin","_React$useState5","_React$useState6","entry","setEntry","updateEntry","_ref2","_ref3","node","hasIOSupport","IntersectionObserver","observerParams","observer","observe","disconnect","JSON","stringify","readBorderRadius","el","_window$getComputedSt","getComputedStyle","borderTopLeftRadius","parsed","Number","parseFloat","isNaN","includes","_el$getBoundingClient","width","height","Math","min","isPainted","value","Boolean","drawsOwnShape","_window$getComputedSt2","borderTopWidth","backgroundColor","backgroundImage","resolveSpotlightTarget","children","length","child","parentRect","childRect","fillsAnAxis","abs","useLockBodyScroll","shouldLock","scrollLockRef","useScrollLock","enabled","reserveScrollBarGap","lockRef","activate","deactivate"],"mappings":";;;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,eAAeA,CACtBC,YAAe,EACfC,KAAa,EACiC;AAC9C,EAAA,IAAAC,eAAA,GAAyCC,cAAK,CAACC,QAAQ,CAACJ,YAAY,CAAC;IAAAK,gBAAA,GAAAC,cAAA,CAAAJ,eAAA,EAAA,CAAA,CAAA;AAA9DK,IAAAA,YAAY,GAAAF,gBAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,gBAAgB,GAAAH,gBAAA,CAAA,CAAA,CAAA,CAAA;AACrC,EAAA,IAAMI,UAAU,GAAGN,cAAK,CAACO,MAAM,CAAqBC,SAAS,CAAC,CAAA;EAE9DR,cAAK,CAACS,SAAS,CAAC,YAAM;AACpBH,IAAAA,UAAU,CAACI,OAAO,GAAGC,MAAM,CAACC,UAAU,CAAC,YAAM;MAC3CP,gBAAgB,CAACR,YAAY,CAAC,CAAA;KAC/B,EAAEC,KAAK,CAAC,CAAA;AAET,IAAA,OAAO,YAAM;AACXa,MAAAA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CAACrD,qBAAqB,EAAE,CAAA;AAC/C,EAAA,IAAMwD,WAAW,GACfhB,IAAI,CAACiB,GAAG,CAACF,SAAS,CAACjB,KAAK,GAAGgB,UAAU,CAAChB,KAAK,CAAC,IAAI,CAAC,IACjDE,IAAI,CAACiB,GAAG,CAACF,SAAS,CAAChB,MAAM,GAAGe,UAAU,CAACf,MAAM,CAAC,IAAI,CAAC,CAAA;AAErD,EAAA,OAAOiB,WAAW,GAAGH,KAAK,GAAGtE,OAAO,CAAA;AACtC,EAAC;AAED,IAAM2E,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,UAAmB,EAAK;EACjD,IAAMC,aAAa,GAAGC,aAAa,CAAC;AAClCC,IAAAA,OAAO,EAAE,IAAI;AACbC,IAAAA,mBAAmB,EAAE,IAAA;AACvB,GAAC,CAAC,CAAA;EAEF5G,cAAK,CAACS,SAAS,CAAC,YAAM;AACpB,IAAA,IAAMoG,OAAO,GAAGJ,aAAa,CAAC/F,OAAO,CAAA;AACrC,IAAA,IAAI8F,UAAU,EAAE;MACdK,OAAO,CAACC,QAAQ,EAAE,CAAA;AACpB,KAAC,MAAM;MACLD,OAAO,CAACE,UAAU,EAAE,CAAA;AACtB,KAAA;AACA,IAAA,OAAO,YAAM;MACXF,OAAO,CAACE,UAAU,EAAE,CAAA;KACrB,CAAA;AACH,GAAC,EAAE,CAACP,UAAU,EAAEC,aAAa,CAAC,CAAC,CAAA;AACjC;;;;"}
@@ -0,0 +1,41 @@
1
+ import styled from 'styled-components';
2
+ import '../Box/BaseBox/index.js';
3
+ import '../../tokens/global/index.js';
4
+ import '../../utils/index.js';
5
+ import { size } from '../../tokens/global/size.js';
6
+ import { BaseBox } from '../Box/BaseBox/BaseBox.web.js';
7
+ import { makeSize } from '../../utils/makeSize/makeSize.js';
8
+
9
+ /**
10
+ * One indentation step per depth: the 20px chevron slot + the 4px (spacing.2) gap after it.
11
+ * Every row reserves that slot, so a child's content sits exactly one step to the right of
12
+ * its parent's content (Figma: TreeView.Indentation.level-N = 8 + 24N)
13
+ */
14
+ var TREEVIEW_INDENTATION_PER_LEVEL = size[24];
15
+
16
+ /**
17
+ * Wraps every TreeView row (item / loadMore). Indentation is applied as the row's own
18
+ * padding-left (instead of padding on nested groups) so hover / selected / focus
19
+ * backgrounds stay full-bleed across the whole tree width at any depth
20
+ */
21
+ var StyledTreeViewRow = /*#__PURE__*/styled(BaseBox).withConfig({
22
+ displayName: "StyledTreeViewRowweb__StyledTreeViewRow",
23
+ componentId: "sc-10l3ch5-0"
24
+ })(function (props) {
25
+ return {
26
+ '& > [role="treeitem"]': {
27
+ paddingLeft: makeSize(props.theme.spacing[3] + TREEVIEW_INDENTATION_PER_LEVEL * (props.level - 1)),
28
+ // rows are contiguous 36px rows per Figma (no vertical margin between rows)
29
+ marginTop: makeSize(size[0]),
30
+ marginBottom: makeSize(size[0])
31
+ },
32
+ // BaseMenu highlights any row with aria-expanded="true" (used by Menu for open submenus).
33
+ // In TreeView the chevron indicates expansion, so an expanded branch must look like a normal row
34
+ '& > [role="treeitem"][aria-expanded="true"]:not(:hover):not([aria-selected="true"])': {
35
+ backgroundColor: 'transparent'
36
+ }
37
+ };
38
+ });
39
+
40
+ export { StyledTreeViewRow, TREEVIEW_INDENTATION_PER_LEVEL };
41
+ //# sourceMappingURL=StyledTreeViewRow.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledTreeViewRow.web.js","sources":["../../../../../../src/components/TreeView/StyledTreeViewRow.web.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport BaseBox from '~components/Box/BaseBox';\nimport { size } from '~tokens/global';\nimport { makeSize } from '~utils';\n\n/**\n * One indentation step per depth: the 20px chevron slot + the 4px (spacing.2) gap after it.\n * Every row reserves that slot, so a child's content sits exactly one step to the right of\n * its parent's content (Figma: TreeView.Indentation.level-N = 8 + 24N)\n */\nconst TREEVIEW_INDENTATION_PER_LEVEL = size[24];\n\n/**\n * Wraps every TreeView row (item / loadMore). Indentation is applied as the row's own\n * padding-left (instead of padding on nested groups) so hover / selected / focus\n * backgrounds stay full-bleed across the whole tree width at any depth\n */\nconst StyledTreeViewRow = styled(BaseBox)<{ level: number }>((props) => ({\n '& > [role=\"treeitem\"]': {\n paddingLeft: makeSize(\n props.theme.spacing[3] + TREEVIEW_INDENTATION_PER_LEVEL * (props.level - 1),\n ),\n // rows are contiguous 36px rows per Figma (no vertical margin between rows)\n marginTop: makeSize(size[0]),\n marginBottom: makeSize(size[0]),\n },\n // BaseMenu highlights any row with aria-expanded=\"true\" (used by Menu for open submenus).\n // In TreeView the chevron indicates expansion, so an expanded branch must look like a normal row\n '& > [role=\"treeitem\"][aria-expanded=\"true\"]:not(:hover):not([aria-selected=\"true\"])': {\n backgroundColor: 'transparent',\n },\n}));\n\nexport { StyledTreeViewRow, TREEVIEW_INDENTATION_PER_LEVEL };\n"],"names":["TREEVIEW_INDENTATION_PER_LEVEL","size","StyledTreeViewRow","styled","BaseBox","withConfig","displayName","componentId","props","paddingLeft","makeSize","theme","spacing","level","marginTop","marginBottom","backgroundColor"],"mappings":";;;;;;;;AAKA;AACA;AACA;AACA;AACA;AACA,IAAMA,8BAA8B,GAAGC,IAAI,CAAC,EAAE,EAAC;;AAE/C;AACA;AACA;AACA;AACA;AACA,IAAMC,iBAAiB,gBAAGC,MAAM,CAACC,OAAO,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,yCAAA;EAAAC,WAAA,EAAA,cAAA;AAAA,CAAA,CAAA,CAAoB,UAACC,KAAK,EAAA;EAAA,OAAM;AACvE,IAAA,uBAAuB,EAAE;MACvBC,WAAW,EAAEC,QAAQ,CACnBF,KAAK,CAACG,KAAK,CAACC,OAAO,CAAC,CAAC,CAAC,GAAGZ,8BAA8B,IAAIQ,KAAK,CAACK,KAAK,GAAG,CAAC,CAC5E,CAAC;AACD;AACAC,MAAAA,SAAS,EAAEJ,QAAQ,CAACT,IAAI,CAAC,CAAC,CAAC,CAAC;AAC5Bc,MAAAA,YAAY,EAAEL,QAAQ,CAACT,IAAI,CAAC,CAAC,CAAC,CAAA;KAC/B;AACD;AACA;AACA,IAAA,qFAAqF,EAAE;AACrFe,MAAAA,eAAe,EAAE,aAAA;AACnB,KAAA;GACD,CAAA;AAAA,CAAC;;;;"}