@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":"theme.js","sources":["../../../../../../src/tokens/theme/theme.ts"],"sourcesContent":["import type { StringWithAutocomplete } from '~utils/types';\nimport type {\n Border,\n BackdropBlur,\n Breakpoints,\n Motion,\n Spacing,\n TypographyWithPlatforms,\n ElevationWithColorModes,\n} from '~tokens/global';\nimport type { ColorChromaticScale, ColorNeutralGrayScale } from '~tokens/global/colors';\n\nexport type ColorSchemeNames = 'dark' | 'light';\nexport type ColorSchemeNamesInput = ColorSchemeNames | 'system';\n\nexport type ColorSchemeModes = 'onDark' | 'onLight';\n\nexport type FeedbackColors = 'information' | 'negative' | 'neutral' | 'notice' | 'positive';\n\nexport type Emphasis = {\n subtle: string;\n moderate: string;\n intense: string;\n normal: string;\n muted: string;\n disabled: string;\n};\n\nexport type DataCategoricalEmphasis = Pick<Emphasis, 'subtle' | 'moderate' | 'intense'> & {\n faint: string;\n strong: string;\n};\nexport type DataSequentialEmphasis = Omit<\n ColorChromaticScale,\n 'a50' | 'a150' | 'a100' | 'a200' | 'a400' | 'a500' | 'a600' | 'a700'\n>;\n\nexport type DataColorCategories =\n | 'blue'\n | 'green'\n | 'red'\n | 'orange'\n | 'skyBlue'\n | 'purple'\n | 'pink'\n | 'gold'\n | 'gray';\n\ntype SubtleOrIntenseEmphasis = Pick<Emphasis, 'subtle' | 'intense'>;\n// Exporting this for usage in other components\nexport type SubtleOrIntense = keyof SubtleOrIntenseEmphasis;\ntype InteractiveStates = {\n default: string;\n highlighted: string;\n disabled: string;\n faded: string;\n};\n\ntype InteractiveStatesWithFadedHighlighted = InteractiveStates & {\n fadedHighlighted: string;\n};\n\ntype InteractiveBackgroundStatesWithGhost = InteractiveStatesWithFadedHighlighted & {\n ghost: string;\n};\n\ntype InteractiveBackgroundColorsWithGhost = 'gray' | 'staticBlack' | 'staticWhite';\ntype InteractiveBorderColorsWithFadedHighlighted = 'staticBlack' | 'staticWhite';\n\ntype OnEmphasis = {\n onSubtle: string;\n onIntense: string;\n};\n\ntype ColorCategories = {\n staticBlack: Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>;\n staticWhite: Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>;\n gray: Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>;\n onSea: Pick<OnEmphasis, 'onSubtle' | 'onIntense'>;\n onCloud: Pick<OnEmphasis, 'onSubtle' | 'onIntense'>;\n primary: Pick<Emphasis, 'normal'>;\n};\n\ntype InteractiveColorKeys = FeedbackColors | Exclude<keyof ColorCategories, 'onSea' | 'onCloud'>;\n\n/**\n * @deprecated\n * Use popup.[background|border].[color] instead\n */\ntype PopupDeprecatedTokens = {\n /**\n * @deprecated\n *\n * Use popup.[background|border].[color].subtle instead\n */\n subtle: string;\n /**\n * @deprecated\n * Use popup.[background|border].[color].intense instead\n */\n intense: string;\n};\n\nexport type Colors = {\n interactive: {\n background: Record<\n Exclude<InteractiveColorKeys, InteractiveBackgroundColorsWithGhost>,\n InteractiveStatesWithFadedHighlighted\n > &\n Record<InteractiveBackgroundColorsWithGhost, InteractiveBackgroundStatesWithGhost>;\n border: Record<\n Exclude<InteractiveColorKeys, InteractiveBorderColorsWithFadedHighlighted>,\n InteractiveStates\n > &\n Record<InteractiveBorderColorsWithFadedHighlighted, InteractiveStatesWithFadedHighlighted>;\n text: Record<\n InteractiveColorKeys | 'onPrimary',\n Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>\n >;\n icon: Record<\n InteractiveColorKeys | 'onPrimary',\n Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>\n >;\n };\n feedback: {\n background: Record<FeedbackColors, SubtleOrIntenseEmphasis>;\n border: Record<FeedbackColors, SubtleOrIntenseEmphasis>;\n text: Record<FeedbackColors, SubtleOrIntenseEmphasis>;\n icon: Record<FeedbackColors, SubtleOrIntenseEmphasis>;\n };\n surface: {\n background: {\n gray: Pick<Emphasis, 'subtle' | 'moderate' | 'intense'>;\n primary: SubtleOrIntenseEmphasis;\n sea: SubtleOrIntenseEmphasis;\n cloud: SubtleOrIntenseEmphasis;\n };\n border: {\n gray: Pick<Emphasis, 'normal' | 'subtle' | 'muted'>;\n primary: Pick<Emphasis, 'normal' | 'muted'>;\n };\n text: ColorCategories;\n icon: ColorCategories;\n };\n overlay: {\n background: Pick<Emphasis, 'moderate' | 'subtle'>;\n };\n popup: {\n background: Record<FeedbackColors, Pick<Emphasis, 'moderate'>> & {\n gray: Pick<Emphasis, 'subtle' | 'moderate' | 'intense'>;\n } & PopupDeprecatedTokens;\n border: Record<FeedbackColors, Pick<Emphasis, 'moderate'>> & {\n gray: Pick<Emphasis, 'subtle' | 'moderate' | 'intense'>;\n } & PopupDeprecatedTokens;\n };\n transparent: string;\n data: {\n background: {\n categorical: Record<DataColorCategories, DataCategoricalEmphasis>;\n sequential: Record<DataColorCategories, DataSequentialEmphasis | ColorNeutralGrayScale>;\n };\n };\n};\n\nexport type ColorsWithModes = Record<ColorSchemeModes, Colors>;\n\nexport type ThemeTokens = {\n name: 'bladeTheme' | StringWithAutocomplete; // Can be used to watch over state changes between theme without watching over entire theme object\n border: Border;\n backdropBlur: BackdropBlur;\n breakpoints: Breakpoints;\n colors: ColorsWithModes;\n motion: Motion;\n elevation: ElevationWithColorModes;\n spacing: Spacing;\n typography: TypographyWithPlatforms;\n};\n\nexport type SpacingValues = `${Spacing[keyof Spacing]}px`;\nexport type BorderWidthValues = `${Border['width'][keyof Border['width']]}px`;\nexport type BorderRadiusValues =\n | `${Border['radius'][Exclude<keyof Border['radius'], 'round'>]}px`\n | `${Border['radius'][Extract<keyof Border['radius'], 'round'>]}`;\n\nexport const colorSchemeNamesInput: ColorSchemeNamesInput[] = ['light', 'dark', 'system'];\n"],"names":["colorSchemeNamesInput"],"mappings":"AAiDA;;AAoCA;AACA;AACA;AACA;;AAgGO,IAAMA,qBAA8C,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ;;;;"}
1
+ {"version":3,"file":"theme.js","sources":["../../../../../../src/tokens/theme/theme.ts"],"sourcesContent":["import type { StringWithAutocomplete } from '~utils/types';\nimport type {\n Border,\n BackdropBlur,\n Breakpoints,\n Motion,\n Spacing,\n TypographyWithPlatforms,\n ElevationWithColorModes,\n} from '~tokens/global';\nimport type { ColorChromaticScale, ColorNeutralGrayScale } from '~tokens/global/colors';\n\nexport type ColorSchemeNames = 'dark' | 'light';\nexport type ColorSchemeNamesInput = ColorSchemeNames | 'system';\n\nexport type ColorSchemeModes = 'onDark' | 'onLight';\n\nexport type FeedbackColors = 'information' | 'negative' | 'neutral' | 'notice' | 'positive';\n\nexport type Emphasis = {\n subtle: string;\n moderate: string;\n intense: string;\n normal: string;\n muted: string;\n disabled: string;\n};\n\nexport type DataCategoricalEmphasis = Pick<Emphasis, 'subtle' | 'moderate' | 'intense'> & {\n faint: string;\n strong: string;\n};\n\nexport type SurfacePrimaryEmphasis = Pick<Emphasis, 'subtle' | 'moderate' | 'intense'> & {\n faint: string;\n strong: string;\n};\nexport type DataSequentialEmphasis = Omit<\n ColorChromaticScale,\n 'a50' | 'a150' | 'a100' | 'a200' | 'a400' | 'a500' | 'a600' | 'a700'\n>;\n\nexport type DataColorCategories =\n | 'blue'\n | 'green'\n | 'red'\n | 'orange'\n | 'skyBlue'\n | 'purple'\n | 'pink'\n | 'gold'\n | 'gray';\n\ntype SubtleOrIntenseEmphasis = Pick<Emphasis, 'subtle' | 'intense'>;\n// Exporting this for usage in other components\nexport type SubtleOrIntense = keyof SubtleOrIntenseEmphasis;\ntype InteractiveStates = {\n default: string;\n highlighted: string;\n disabled: string;\n faded: string;\n};\n\ntype InteractiveStatesWithFadedHighlighted = InteractiveStates & {\n fadedHighlighted: string;\n};\n\ntype InteractiveBackgroundStatesWithGhost = InteractiveStatesWithFadedHighlighted & {\n ghost: string;\n};\n\ntype InteractiveBackgroundColorsWithGhost = 'gray' | 'staticBlack' | 'staticWhite';\ntype InteractiveBorderColorsWithFadedHighlighted = 'staticBlack' | 'staticWhite';\n\ntype OnEmphasis = {\n onSubtle: string;\n onIntense: string;\n};\n\ntype ColorCategories = {\n staticBlack: Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>;\n staticWhite: Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>;\n gray: Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>;\n onSea: Pick<OnEmphasis, 'onSubtle' | 'onIntense'>;\n onCloud: Pick<OnEmphasis, 'onSubtle' | 'onIntense'>;\n primary: Pick<Emphasis, 'normal'>;\n};\n\ntype InteractiveColorKeys = FeedbackColors | Exclude<keyof ColorCategories, 'onSea' | 'onCloud'>;\n\n/**\n * @deprecated\n * Use popup.[background|border].[color] instead\n */\ntype PopupDeprecatedTokens = {\n /**\n * @deprecated\n *\n * Use popup.[background|border].[color].subtle instead\n */\n subtle: string;\n /**\n * @deprecated\n * Use popup.[background|border].[color].intense instead\n */\n intense: string;\n};\n\nexport type Colors = {\n interactive: {\n background: Record<\n Exclude<InteractiveColorKeys, InteractiveBackgroundColorsWithGhost>,\n InteractiveStatesWithFadedHighlighted\n > &\n Record<InteractiveBackgroundColorsWithGhost, InteractiveBackgroundStatesWithGhost>;\n border: Record<\n Exclude<InteractiveColorKeys, InteractiveBorderColorsWithFadedHighlighted>,\n InteractiveStates\n > &\n Record<InteractiveBorderColorsWithFadedHighlighted, InteractiveStatesWithFadedHighlighted>;\n text: Record<\n InteractiveColorKeys | 'onPrimary' | 'onNeutral',\n Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>\n >;\n icon: Record<\n InteractiveColorKeys | 'onPrimary' | 'onNeutral',\n Pick<Emphasis, 'normal' | 'subtle' | 'muted' | 'disabled'>\n >;\n };\n feedback: {\n background: Record<FeedbackColors, SubtleOrIntenseEmphasis>;\n border: Record<FeedbackColors, SubtleOrIntenseEmphasis>;\n text: Record<FeedbackColors, SubtleOrIntenseEmphasis>;\n icon: Record<FeedbackColors, SubtleOrIntenseEmphasis>;\n };\n surface: {\n background: {\n gray: Pick<Emphasis, 'subtle' | 'moderate' | 'intense'>;\n primary: SurfacePrimaryEmphasis;\n sea: SubtleOrIntenseEmphasis;\n cloud: SubtleOrIntenseEmphasis;\n accent: Pick<Emphasis, 'intense'>;\n };\n border: {\n gray: Pick<Emphasis, 'normal' | 'subtle' | 'muted'>;\n primary: Pick<Emphasis, 'normal' | 'muted'>;\n };\n text: ColorCategories;\n icon: ColorCategories;\n };\n overlay: {\n background: Pick<Emphasis, 'moderate' | 'subtle'>;\n };\n popup: {\n background: Record<FeedbackColors, Pick<Emphasis, 'moderate'>> & {\n gray: Pick<Emphasis, 'subtle' | 'moderate' | 'intense'>;\n } & PopupDeprecatedTokens;\n border: Record<FeedbackColors, Pick<Emphasis, 'moderate'>> & {\n gray: Pick<Emphasis, 'subtle' | 'moderate' | 'intense'>;\n } & PopupDeprecatedTokens;\n };\n transparent: string;\n data: {\n background: {\n categorical: Record<DataColorCategories, DataCategoricalEmphasis>;\n sequential: Record<DataColorCategories, DataSequentialEmphasis | ColorNeutralGrayScale>;\n };\n };\n};\n\nexport type ColorsWithModes = Record<ColorSchemeModes, Colors>;\n\nexport type ThemeTokens = {\n name: 'bladeTheme' | StringWithAutocomplete; // Can be used to watch over state changes between theme without watching over entire theme object\n border: Border;\n backdropBlur: BackdropBlur;\n breakpoints: Breakpoints;\n colors: ColorsWithModes;\n motion: Motion;\n elevation: ElevationWithColorModes;\n spacing: Spacing;\n typography: TypographyWithPlatforms;\n};\n\nexport type SpacingValues = `${Spacing[keyof Spacing]}px`;\nexport type BorderWidthValues = `${Border['width'][keyof Border['width']]}px`;\nexport type BorderRadiusValues =\n | `${Border['radius'][Exclude<keyof Border['radius'], 'round'>]}px`\n | `${Border['radius'][Extract<keyof Border['radius'], 'round'>]}`;\n\nexport const colorSchemeNamesInput: ColorSchemeNamesInput[] = ['light', 'dark', 'system'];\n"],"names":["colorSchemeNamesInput"],"mappings":"AAsDA;;AAoCA;AACA;AACA;AACA;;AAiGO,IAAMA,qBAA8C,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ;;;;"}
@@ -1,5 +1,7 @@
1
1
  // TODO: Move these properly to tokens at some point
2
2
  var componentZIndices = {
3
+ fab: 99,
4
+ // should be behind bottomNav and bottomSheet, which are allowed to cover it
3
5
  bottomSheet: 100,
4
6
  bottomNav: 100,
5
7
  // should be behind drawer since sidenav opens in drawer in mobile
@@ -1 +1 @@
1
- {"version":3,"file":"componentZIndices.js","sources":["../../../../../src/utils/componentZIndices.ts"],"sourcesContent":["// TODO: Move these properly to tokens at some point\nexport const componentZIndices = {\n bottomSheet: 100,\n bottomNav: 100, // should be behind drawer since sidenav opens in drawer in mobile\n modal: 1000,\n drawer: 1001,\n dropdownOverlay: 1002,\n tourMask: 1100,\n popover: 1100,\n tooltip: 1100,\n topnav: 100,\n previewPanel: 1100,\n};\n"],"names":["componentZIndices","bottomSheet","bottomNav","modal","drawer","dropdownOverlay","tourMask","popover","tooltip","topnav","previewPanel"],"mappings":"AAAA;AACO,IAAMA,iBAAiB,GAAG;AAC/BC,EAAAA,WAAW,EAAE,GAAG;AAChBC,EAAAA,SAAS,EAAE,GAAG;AAAE;AAChBC,EAAAA,KAAK,EAAE,IAAI;AACXC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,MAAM,EAAE,GAAG;AACXC,EAAAA,YAAY,EAAE,IAAA;AAChB;;;;"}
1
+ {"version":3,"file":"componentZIndices.js","sources":["../../../../../src/utils/componentZIndices.ts"],"sourcesContent":["// TODO: Move these properly to tokens at some point\nexport const componentZIndices = {\n fab: 99, // should be behind bottomNav and bottomSheet, which are allowed to cover it\n bottomSheet: 100,\n bottomNav: 100, // should be behind drawer since sidenav opens in drawer in mobile\n modal: 1000,\n drawer: 1001,\n dropdownOverlay: 1002,\n tourMask: 1100,\n popover: 1100,\n tooltip: 1100,\n topnav: 100,\n previewPanel: 1100,\n};\n"],"names":["componentZIndices","fab","bottomSheet","bottomNav","modal","drawer","dropdownOverlay","tourMask","popover","tooltip","topnav","previewPanel"],"mappings":"AAAA;AACO,IAAMA,iBAAiB,GAAG;AAC/BC,EAAAA,GAAG,EAAE,EAAE;AAAE;AACTC,EAAAA,WAAW,EAAE,GAAG;AAChBC,EAAAA,SAAS,EAAE,GAAG;AAAE;AAChBC,EAAAA,KAAK,EAAE,IAAI;AACXC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,MAAM,EAAE,GAAG;AACXC,EAAAA,YAAY,EAAE,IAAA;AAChB;;;;"}
@@ -58,6 +58,7 @@ var MetaConstants = {
58
58
  FileUploadItem: 'file-upload-item',
59
59
  FileUploadLabel: 'file-upload-label',
60
60
  FilterChipGroup: 'filter-chip-group',
61
+ FloatingActionButton: 'floating-action-button',
61
62
  Icon: 'icon',
62
63
  IconButton: 'icon-button',
63
64
  InfoGroup: 'info-group',
@@ -101,6 +102,9 @@ var MetaConstants = {
101
102
  SideNav: 'sidenav',
102
103
  SelectInput: 'select-input',
103
104
  Tag: 'tag',
105
+ TreeView: 'tree-view',
106
+ TreeViewItem: 'tree-view-item',
107
+ TreeViewLoadMore: 'tree-view-load-more',
104
108
  Tooltip: 'tooltip',
105
109
  TooltipInteractiveWrapper: 'tooltip-interactive-wrapper',
106
110
  Tabs: 'tabs',
@@ -1 +1 @@
1
- {"version":3,"file":"metaConstants.js","sources":["../../../../../../src/utils/metaAttribute/metaConstants.ts"],"sourcesContent":["export const MetaConstants = {\n Accordion: 'accordion',\n AccordionButton: 'accordion-button',\n AccordionItem: 'accordion-item',\n AccordionItemHeader: 'accordion-item-header',\n AccordionItemBody: 'accordion-item-body',\n ActionList: 'action-list',\n ActionListItem: 'action-list-item',\n ActionListSection: 'action-list-section',\n Alert: 'alert',\n Amount: 'amount',\n AppBar: 'app-bar',\n AppBarLeading: 'app-bar-leading',\n AppBarActions: 'app-bar-actions',\n TrustBadge: 'trust-badge',\n AnnouncementBanner: 'announcement-banner',\n AutoComplete: 'autocomplete',\n Avatar: 'avatar',\n AvatarGroup: 'avatar-group',\n Badge: 'badge',\n BaseFilterChip: 'base-filter-chip',\n Box: 'box',\n BaseBox: 'base-box',\n BaseText: 'base-text',\n Button: 'button',\n ButtonGroup: 'button-group',\n Breadcrumb: 'breadcrumb',\n BreadcrumbItem: 'breadcrumb-item',\n BottomNav: 'bottomnav',\n BottomNavItem: 'bottomnav-item',\n Carousel: 'carousel',\n ChatInput: 'chat-input',\n ChatMessage: 'chat-message',\n ChatMessageThumbnailPreview: 'chat-message-thumbnail-preview',\n Checkbox: 'checkbox',\n CheckboxGroup: 'checkbox-group',\n CheckboxLabel: 'checkbox-label',\n CheckboxIconFade: 'checkbox-icon-fade',\n Chip: 'chip',\n ChipGroup: 'chip-group',\n ChipLabel: 'chip-label',\n Code: 'code',\n ColorInput: 'color-input',\n Component: 'blade-component',\n Counter: 'counter',\n CounterInput: 'counter-input',\n Display: 'display',\n Divider: 'divider',\n Drawer: 'drawer',\n EmptyState: 'empty-state',\n Dropdown: 'dropdown',\n DropdownOverlay: 'dropdown-overlay',\n DropdownFooter: 'dropdown-footer',\n DropdownHeader: 'dropdown-header',\n DatePicker: 'datepicker',\n Calendar: 'calendar',\n FileUpload: 'file-upload',\n FileUploadItem: 'file-upload-item',\n FileUploadLabel: 'file-upload-label',\n FilterChipGroup: 'filter-chip-group',\n Icon: 'icon',\n IconButton: 'icon-button',\n InfoGroup: 'info-group',\n InfoItem: 'info-item',\n InfoItemKey: 'info-item-key',\n InfoItemValue: 'info-item-value',\n InfoItemIcon: 'info-item-icon',\n Indicator: 'indicator',\n InputGroup: 'input-group',\n Link: 'link',\n List: 'list',\n ListItem: 'list-item',\n ListItemCode: 'list-item-code',\n ListItemLink: 'list-item-link',\n ListItemText: 'list-item-text',\n ListView: 'list-view',\n ListViewFilter: 'list-view-filter',\n OTPInput: 'otp-input',\n PasswordInput: 'password-input',\n SearchInput: 'search-input',\n TextArea: 'textarea',\n TextInput: 'textinput',\n PhoneNumberInput: 'phone-number-input',\n Toast: 'toast',\n ToastContainer: 'toast-container',\n TopNav: 'top-nav',\n TopNavBrand: 'top-nav-brand',\n TopNavContent: 'top-nav-content',\n TopNavActions: 'top-nav-actions',\n TabNav: 'tab-nav',\n TabNavItems: 'tab-nav-items',\n TabNavItem: 'tab-nav-item',\n TabNavItemLink: 'tab-nav-item-link',\n TabNavIndicator: 'tab-nav-indicator',\n ProgressBar: 'progress-bar',\n Radio: 'radio',\n RadioGroup: 'radio-group',\n RadioLabel: 'radio-label',\n SkipNav: 'skipnav',\n Spinner: 'spinner',\n SideNav: 'sidenav',\n SelectInput: 'select-input',\n Tag: 'tag',\n Tooltip: 'tooltip',\n TooltipInteractiveWrapper: 'tooltip-interactive-wrapper',\n Tabs: 'tabs',\n TabList: 'tab-list',\n TabItem: 'tab-item',\n TabPanel: 'tab-panel',\n TabIndicator: 'tab-indicator',\n Table: 'table',\n TableBody: 'table-body',\n TableRow: 'table-row',\n TableCell: 'table-cell',\n TableCellWrapper: 'table-cell-wrapper',\n TableSortButton: 'table-sort-button',\n TableHeader: 'table-header',\n TableHeaderRow: 'table-header-row',\n TableHeaderCell: 'table-header-cell',\n TableFooter: 'table-footer',\n TableFooterRow: 'table-footer-row',\n TableFooterCell: 'table-footer-cell',\n TableElement: 'table-element',\n TablePageSelectionButton: 'table-page-selection-button',\n TourPopover: 'tour-popover',\n TourMask: 'tour-mask',\n Popover: 'popover',\n PopoverInteractiveWrapper: 'popover-interactive-wrapper',\n BottomSheet: 'bottom-sheet',\n BottomSheetBody: 'bottom-sheet-body',\n BottomSheetHeader: 'bottom-sheet-header',\n BottomSheetFooter: 'bottom-sheet-footer',\n BottomSheetGrabHandle: 'bottomsheet-grab-handle',\n Card: 'card',\n CardBody: 'card-body',\n CardHeader: 'card-header',\n CardFooter: 'card-footer',\n CardTearLine: 'card-tear-line',\n TicketCardBody: 'ticket-card-body',\n TicketCardFooter: 'ticket-card-footer',\n InfoCardBody: 'info-card-body',\n InfoCardFooter: 'info-card-footer',\n Collapsible: 'collapsible',\n CollapsibleBody: 'collapsible-body',\n CollapsibleButton: 'collapsible-button',\n CollapsibleLink: 'collapsible-link',\n CollapsibleText: 'collapsible-text',\n Menu: 'menu',\n MenuHeader: 'menu-header',\n MenuFooter: 'menu-footer',\n Modal: 'modal',\n ModalBody: 'modal-body',\n ModalHeader: 'modal-header',\n ModalFooter: 'modal-footer',\n ModalBackdrop: 'modal-backdrop',\n ModalScrollOverlay: 'modal-scroll-overlay',\n VisuallyHidden: 'visually-hidden',\n FormLabel: 'form-label',\n Switch: 'switch',\n SwitchLabel: 'switch-label',\n StyledBaseInput: 'styled-base-input',\n Skeleton: 'skeleton',\n StepGroup: 'step-group',\n StepItem: 'step-item',\n StepItemButton: 'step-item-button',\n PreviewWindow: 'preview-window',\n PreviewHeader: 'preview-header',\n PreviewBody: 'preview-body',\n PreviewFooter: 'preview-footer',\n Pagination: 'pagination',\n TimePicker: 'time-picker',\n SegmentedControl: 'segmented-control',\n SegmentedControlItem: 'segmented-control-item',\n} as const;\n"],"names":["MetaConstants","Accordion","AccordionButton","AccordionItem","AccordionItemHeader","AccordionItemBody","ActionList","ActionListItem","ActionListSection","Alert","Amount","AppBar","AppBarLeading","AppBarActions","TrustBadge","AnnouncementBanner","AutoComplete","Avatar","AvatarGroup","Badge","BaseFilterChip","Box","BaseBox","BaseText","Button","ButtonGroup","Breadcrumb","BreadcrumbItem","BottomNav","BottomNavItem","Carousel","ChatInput","ChatMessage","ChatMessageThumbnailPreview","Checkbox","CheckboxGroup","CheckboxLabel","CheckboxIconFade","Chip","ChipGroup","ChipLabel","Code","ColorInput","Component","Counter","CounterInput","Display","Divider","Drawer","EmptyState","Dropdown","DropdownOverlay","DropdownFooter","DropdownHeader","DatePicker","Calendar","FileUpload","FileUploadItem","FileUploadLabel","FilterChipGroup","Icon","IconButton","InfoGroup","InfoItem","InfoItemKey","InfoItemValue","InfoItemIcon","Indicator","InputGroup","Link","List","ListItem","ListItemCode","ListItemLink","ListItemText","ListView","ListViewFilter","OTPInput","PasswordInput","SearchInput","TextArea","TextInput","PhoneNumberInput","Toast","ToastContainer","TopNav","TopNavBrand","TopNavContent","TopNavActions","TabNav","TabNavItems","TabNavItem","TabNavItemLink","TabNavIndicator","ProgressBar","Radio","RadioGroup","RadioLabel","SkipNav","Spinner","SideNav","SelectInput","Tag","Tooltip","TooltipInteractiveWrapper","Tabs","TabList","TabItem","TabPanel","TabIndicator","Table","TableBody","TableRow","TableCell","TableCellWrapper","TableSortButton","TableHeader","TableHeaderRow","TableHeaderCell","TableFooter","TableFooterRow","TableFooterCell","TableElement","TablePageSelectionButton","TourPopover","TourMask","Popover","PopoverInteractiveWrapper","BottomSheet","BottomSheetBody","BottomSheetHeader","BottomSheetFooter","BottomSheetGrabHandle","Card","CardBody","CardHeader","CardFooter","CardTearLine","TicketCardBody","TicketCardFooter","InfoCardBody","InfoCardFooter","Collapsible","CollapsibleBody","CollapsibleButton","CollapsibleLink","CollapsibleText","Menu","MenuHeader","MenuFooter","Modal","ModalBody","ModalHeader","ModalFooter","ModalBackdrop","ModalScrollOverlay","VisuallyHidden","FormLabel","Switch","SwitchLabel","StyledBaseInput","Skeleton","StepGroup","StepItem","StepItemButton","PreviewWindow","PreviewHeader","PreviewBody","PreviewFooter","Pagination","TimePicker","SegmentedControl","SegmentedControlItem"],"mappings":"AAAO,IAAMA,aAAa,GAAG;AAC3BC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,eAAe,EAAE,kBAAkB;AACnCC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,mBAAmB,EAAE,uBAAuB;AAC5CC,EAAAA,iBAAiB,EAAE,qBAAqB;AACxCC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,cAAc,EAAE,kBAAkB;AA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W,EAAE,cAAc;AAC3BC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,kBAAkB,EAAE,sBAAsB;AAC1CC,EAAAA,cAAc,EAAE,iBAAiB;AACjCC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,eAAe,EAAE,mBAAmB;AACpCC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,cAAc,EAAE,kBAAkB;AAClCC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,gBAAgB,EAAE,mBAAmB;AACrCC,EAAAA,oBAAoB,EAAE,wBAAA;AACxB;;;;"}
1
+ {"version":3,"file":"metaConstants.js","sources":["../../../../../../src/utils/metaAttribute/metaConstants.ts"],"sourcesContent":["export const MetaConstants = {\n Accordion: 'accordion',\n AccordionButton: 'accordion-button',\n AccordionItem: 'accordion-item',\n AccordionItemHeader: 'accordion-item-header',\n AccordionItemBody: 'accordion-item-body',\n ActionList: 'action-list',\n ActionListItem: 'action-list-item',\n ActionListSection: 'action-list-section',\n Alert: 'alert',\n Amount: 'amount',\n AppBar: 'app-bar',\n AppBarLeading: 'app-bar-leading',\n AppBarActions: 'app-bar-actions',\n TrustBadge: 'trust-badge',\n AnnouncementBanner: 'announcement-banner',\n AutoComplete: 'autocomplete',\n Avatar: 'avatar',\n AvatarGroup: 'avatar-group',\n Badge: 'badge',\n BaseFilterChip: 'base-filter-chip',\n Box: 'box',\n BaseBox: 'base-box',\n BaseText: 'base-text',\n Button: 'button',\n ButtonGroup: 'button-group',\n Breadcrumb: 'breadcrumb',\n BreadcrumbItem: 'breadcrumb-item',\n BottomNav: 'bottomnav',\n BottomNavItem: 'bottomnav-item',\n Carousel: 'carousel',\n ChatInput: 'chat-input',\n ChatMessage: 'chat-message',\n ChatMessageThumbnailPreview: 'chat-message-thumbnail-preview',\n Checkbox: 'checkbox',\n CheckboxGroup: 'checkbox-group',\n CheckboxLabel: 'checkbox-label',\n CheckboxIconFade: 'checkbox-icon-fade',\n Chip: 'chip',\n ChipGroup: 'chip-group',\n ChipLabel: 'chip-label',\n Code: 'code',\n ColorInput: 'color-input',\n Component: 'blade-component',\n Counter: 'counter',\n CounterInput: 'counter-input',\n Display: 'display',\n Divider: 'divider',\n Drawer: 'drawer',\n EmptyState: 'empty-state',\n Dropdown: 'dropdown',\n DropdownOverlay: 'dropdown-overlay',\n DropdownFooter: 'dropdown-footer',\n DropdownHeader: 'dropdown-header',\n DatePicker: 'datepicker',\n Calendar: 'calendar',\n FileUpload: 'file-upload',\n FileUploadItem: 'file-upload-item',\n FileUploadLabel: 'file-upload-label',\n FilterChipGroup: 'filter-chip-group',\n FloatingActionButton: 'floating-action-button',\n Icon: 'icon',\n IconButton: 'icon-button',\n InfoGroup: 'info-group',\n InfoItem: 'info-item',\n InfoItemKey: 'info-item-key',\n InfoItemValue: 'info-item-value',\n InfoItemIcon: 'info-item-icon',\n Indicator: 'indicator',\n InputGroup: 'input-group',\n Link: 'link',\n List: 'list',\n ListItem: 'list-item',\n ListItemCode: 'list-item-code',\n ListItemLink: 'list-item-link',\n ListItemText: 'list-item-text',\n ListView: 'list-view',\n ListViewFilter: 'list-view-filter',\n OTPInput: 'otp-input',\n PasswordInput: 'password-input',\n SearchInput: 'search-input',\n TextArea: 'textarea',\n TextInput: 'textinput',\n PhoneNumberInput: 'phone-number-input',\n Toast: 'toast',\n ToastContainer: 'toast-container',\n TopNav: 'top-nav',\n TopNavBrand: 'top-nav-brand',\n TopNavContent: 'top-nav-content',\n TopNavActions: 'top-nav-actions',\n TabNav: 'tab-nav',\n TabNavItems: 'tab-nav-items',\n TabNavItem: 'tab-nav-item',\n TabNavItemLink: 'tab-nav-item-link',\n TabNavIndicator: 'tab-nav-indicator',\n ProgressBar: 'progress-bar',\n Radio: 'radio',\n RadioGroup: 'radio-group',\n RadioLabel: 'radio-label',\n SkipNav: 'skipnav',\n Spinner: 'spinner',\n SideNav: 'sidenav',\n SelectInput: 'select-input',\n Tag: 'tag',\n TreeView: 'tree-view',\n TreeViewItem: 'tree-view-item',\n TreeViewLoadMore: 'tree-view-load-more',\n Tooltip: 'tooltip',\n TooltipInteractiveWrapper: 'tooltip-interactive-wrapper',\n Tabs: 'tabs',\n TabList: 'tab-list',\n TabItem: 'tab-item',\n TabPanel: 'tab-panel',\n TabIndicator: 'tab-indicator',\n Table: 'table',\n TableBody: 'table-body',\n TableRow: 'table-row',\n TableCell: 'table-cell',\n TableCellWrapper: 'table-cell-wrapper',\n TableSortButton: 'table-sort-button',\n TableHeader: 'table-header',\n TableHeaderRow: 'table-header-row',\n TableHeaderCell: 'table-header-cell',\n TableFooter: 'table-footer',\n TableFooterRow: 'table-footer-row',\n TableFooterCell: 'table-footer-cell',\n TableElement: 'table-element',\n TablePageSelectionButton: 'table-page-selection-button',\n TourPopover: 'tour-popover',\n TourMask: 'tour-mask',\n Popover: 'popover',\n PopoverInteractiveWrapper: 'popover-interactive-wrapper',\n BottomSheet: 'bottom-sheet',\n BottomSheetBody: 'bottom-sheet-body',\n BottomSheetHeader: 'bottom-sheet-header',\n BottomSheetFooter: 'bottom-sheet-footer',\n BottomSheetGrabHandle: 'bottomsheet-grab-handle',\n Card: 'card',\n CardBody: 'card-body',\n CardHeader: 'card-header',\n CardFooter: 'card-footer',\n CardTearLine: 'card-tear-line',\n TicketCardBody: 'ticket-card-body',\n TicketCardFooter: 'ticket-card-footer',\n InfoCardBody: 'info-card-body',\n InfoCardFooter: 'info-card-footer',\n Collapsible: 'collapsible',\n CollapsibleBody: 'collapsible-body',\n CollapsibleButton: 'collapsible-button',\n CollapsibleLink: 'collapsible-link',\n CollapsibleText: 'collapsible-text',\n Menu: 'menu',\n MenuHeader: 'menu-header',\n MenuFooter: 'menu-footer',\n Modal: 'modal',\n ModalBody: 'modal-body',\n ModalHeader: 'modal-header',\n ModalFooter: 'modal-footer',\n ModalBackdrop: 'modal-backdrop',\n ModalScrollOverlay: 'modal-scroll-overlay',\n VisuallyHidden: 'visually-hidden',\n FormLabel: 'form-label',\n Switch: 'switch',\n SwitchLabel: 'switch-label',\n StyledBaseInput: 'styled-base-input',\n Skeleton: 'skeleton',\n StepGroup: 'step-group',\n StepItem: 'step-item',\n StepItemButton: 'step-item-button',\n PreviewWindow: 'preview-window',\n PreviewHeader: 'preview-header',\n PreviewBody: 'preview-body',\n PreviewFooter: 'preview-footer',\n Pagination: 'pagination',\n TimePicker: 'time-picker',\n SegmentedControl: 'segmented-control',\n SegmentedControlItem: 'segmented-control-item',\n} as const;\n"],"names":["MetaConstants","Accordion","AccordionButton","AccordionItem","AccordionItemHeader","AccordionItemBody","ActionList","ActionListItem","ActionListSection","Alert","Amount","AppBar","AppBarLeading","AppBarActions","TrustBadge","AnnouncementBanner","AutoComplete","Avatar","AvatarGroup","Badge","BaseFilterChip","Box","BaseBox","BaseText","Button","ButtonGroup","Breadcrumb","BreadcrumbItem","BottomNav","BottomNavItem","Carousel","ChatInput","ChatMessage","ChatMessageThumbnailPreview","Checkbox","CheckboxGroup","CheckboxLabel","CheckboxIconFade","Chip","ChipGroup","ChipLabel","Code","ColorInput","Component","Counter","CounterInput","Display","Divider","Drawer","EmptyState","Dropdown","DropdownOverlay","DropdownFooter","DropdownHeader","DatePicker","Calendar","FileUpload","FileUploadItem","FileUploadLabel","FilterChipGroup","FloatingActionButton","Icon","IconButton","InfoGroup","InfoItem","InfoItemKey","InfoItemValue","InfoItemIcon","Indicator","InputGroup","Link","List","ListItem","ListItemCode","ListItemLink","ListItemText","ListView","ListViewFilter","OTPInput","PasswordInput","SearchInput","TextArea","TextInput","PhoneNumberInput","Toast","ToastContainer","TopNav","TopNavBrand","TopNavContent","TopNavActions","TabNav","TabNavItems","TabNavItem","TabNavItemLink","TabNavIndicator","ProgressBar","Radio","RadioGroup","RadioLabel","SkipNav","Spinner","SideNav","SelectInput","Tag","TreeView","TreeViewItem","TreeViewLoadMore","Tooltip","TooltipInteractiveWrapper","Tabs","TabList","TabItem","TabPanel","TabIndicator","Table","TableBody","TableRow","TableCell","TableCellWrapper","TableSortButton","TableHeader","TableHeaderRow","TableHeaderCell","TableFooter","TableFooterRow","TableFooterCell","TableElement","TablePageSelectionButton","TourPopover","TourMask","Popover","PopoverInteractiveWrapper","BottomSheet","BottomSheetBody","BottomSheetHeader","BottomSheetFooter","BottomSheetGrabHandle","Card","CardBody","CardHeader","CardFooter","CardTearLine","TicketCardBody","TicketCardFooter","InfoCardBody","InfoCardFooter","Collapsible","CollapsibleBody","CollapsibleButton","CollapsibleLink","CollapsibleText","Menu","MenuHeader","MenuFooter","Modal","ModalBody","ModalHeader","ModalFooter","ModalBackdrop","ModalScrollOverlay","VisuallyHidden","FormLabel","Switch","SwitchLabel","StyledBaseInput","Skeleton","StepGroup","StepItem","StepItemButton","PreviewWindow","PreviewHeader","PreviewBody","PreviewFooter","Pagination","TimePicker","SegmentedControl","SegmentedControlItem"],"mappings":"AAAO,IAAMA,aAAa,GAAG;AAC3BC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,eAAe,EAAE,kBAAkB;AACnCC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,mBAAmB,EAAE,uBAAuB;AAC5CC,EAAAA,iBAAiB,EAAE,qBAAqB;AACxCC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,cAAc,EAAE,kBAAkB;AAClCC,EAAAA,iBAAiB,EAAE,qBAAqB;AACxCC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,MAAM,EAAE,SAAS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BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,kBAAkB,EAAE,sBAAsB;AAC1CC,EAAAA,cAAc,EAAE,iBAAiB;AACjCC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,eAAe,EAAE,mBAAmB;AACpCC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,cAAc,EAAE,kBAAkB;AAClCC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,gBAAgB,EAAE,mBAAmB;AACrCC,EAAAA,oBAAoB,EAAE,wBAAA;AACxB;;;;"}
@@ -1,3 +1,4 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
2
  import React__default from 'react';
2
3
  import isEmpty from '../lodashButBetter/isEmpty.js';
3
4
  import '../index.js';
@@ -7,6 +8,8 @@ import { useDropdown } from '../../components/Dropdown/useDropdown.js';
7
8
  import { isBrowser } from '../platform/isBrowser.js';
8
9
  import { fireNativeEvent } from '../fireNativeEvent/fireNativeEvent.web.js';
9
10
 
11
+ 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
+ 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; }
10
13
  var useControlledDropdownInput = function useControlledDropdownInput(props) {
11
14
  var isFirstRender = useFirstRender();
12
15
  var _useDropdown = useDropdown(),
@@ -17,7 +20,8 @@ var useControlledDropdownInput = function useControlledDropdownInput(props) {
17
20
  controlledValueIndices = _useDropdown.controlledValueIndices,
18
21
  setSelectedIndices = _useDropdown.setSelectedIndices,
19
22
  selectionType = _useDropdown.selectionType,
20
- setIsControlled = _useDropdown.setIsControlled;
23
+ setIsControlled = _useDropdown.setIsControlled,
24
+ treeViewControllerRef = _useDropdown.treeViewControllerRef;
21
25
  var getValuesArrayFromIndices = function getValuesArrayFromIndices() {
22
26
  var indices = [];
23
27
  if (isControlled) {
@@ -91,11 +95,15 @@ var useControlledDropdownInput = function useControlledDropdownInput(props) {
91
95
  // Ignore calling onChange on mount
92
96
 
93
97
  if (!isFirstRender) {
94
- var _props$onChange;
95
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
98
+ var _treeViewControllerRe, _props$onChange;
99
+ // §6.5: additive - only present when the Dropdown overlay content is a TreeView
100
+ var selectedGroups = (_treeViewControllerRe = treeViewControllerRef.current) === null || _treeViewControllerRe === void 0 ? void 0 : _treeViewControllerRe.getSelectedGroups(isControlled ? controlledValueIndices : selectedIndices);
101
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, _objectSpread({
96
102
  name: props.name,
97
103
  values: getValuesArrayFromIndices()
98
- });
104
+ }, selectedGroups ? {
105
+ selectedGroups: selectedGroups
106
+ } : {}));
99
107
  if (isBrowser()) {
100
108
  fireNativeEvent(props.triggererRef, ['change', 'input']);
101
109
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useControlledDropdownInput.js","sources":["../../../../../../src/utils/useControlledDropdownInput/useControlledDropdownInput.tsx"],"sourcesContent":["import React from 'react';\nimport type { BaseDropdownInputTriggerProps } from '~components/Input/DropdownInputTriggers/types';\nimport isEmpty from '~utils/lodashButBetter/isEmpty';\nimport { isBrowser } from '~utils';\nimport { useFirstRender } from '~utils/useFirstRender';\nimport { fireNativeEvent } from '~utils/fireNativeEvent';\nimport { useDropdown } from '~components/Dropdown/useDropdown';\n\nexport type useControlledDropdownInputProps = Pick<\n BaseDropdownInputTriggerProps,\n | 'onChange'\n | 'name'\n | 'value'\n | 'defaultValue'\n | 'onInputValueChange'\n | 'syncInputValueWithSelection'\n | 'isSelectInput'\n> & {\n triggererRef: React.RefObject<HTMLElement>;\n};\n\nconst useControlledDropdownInput = (props: useControlledDropdownInputProps): void => {\n const isFirstRender = useFirstRender();\n const {\n changeCallbackTriggerer,\n isControlled,\n options,\n selectedIndices,\n controlledValueIndices,\n setSelectedIndices,\n selectionType,\n setIsControlled,\n } = useDropdown();\n\n const getValuesArrayFromIndices = (): string[] => {\n let indices: number[] = [];\n if (isControlled) {\n indices = controlledValueIndices;\n } else {\n indices = selectedIndices;\n }\n\n return indices.map((selectionIndex) => options[selectionIndex].value);\n };\n\n const selectValues = (valuesToSelect: string | string[]): void => {\n if (options.length > 0) {\n // we use empty `''` for clearing the input\n if (isEmpty(valuesToSelect)) {\n setSelectedIndices([]);\n } else if (typeof valuesToSelect === 'string') {\n // single select control\n const selectedItemIndex = options.findIndex((option) => option.value === valuesToSelect);\n if (selectedItemIndex >= 0) {\n setSelectedIndices([selectedItemIndex]);\n }\n } else {\n // multiselect control\n\n // Handles repeated values in user state\n const uniqueValues = Array.from(new Set(valuesToSelect));\n // Handle selectionType single with multiselect values\n const userValues = selectionType === 'single' ? [valuesToSelect?.[0]] : uniqueValues;\n\n const selectedItemIndices = userValues\n .map((optionValue) => options.findIndex((option) => option.value === optionValue))\n .filter((value) => value >= 0);\n\n setSelectedIndices(selectedItemIndices);\n }\n }\n };\n\n // Handles `defaultValue` prop\n React.useEffect(() => {\n if (options.length > 0 && props.defaultValue) {\n selectValues(props.defaultValue);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [options.length]);\n\n // Handles `value` prop\n React.useEffect(() => {\n if (options.length > 0 && props.value !== undefined) {\n if (!isControlled) {\n setIsControlled(true);\n }\n\n selectValues(props.value);\n\n // in single select AutoComplete, we have to set inputValue of autocomplete according to the new selection.\n if (selectionType === 'single' && !Array.isArray(props.value) && !props.isSelectInput) {\n props.syncInputValueWithSelection?.(props.value);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.value, options]);\n\n // onChange behaviour\n React.useEffect(() => {\n // Ignore calling onChange on mount\n\n if (!isFirstRender) {\n props.onChange?.({\n name: props.name,\n values: getValuesArrayFromIndices(),\n });\n if (isBrowser()) {\n fireNativeEvent(props.triggererRef, ['change', 'input']);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [changeCallbackTriggerer]);\n};\n\nexport { useControlledDropdownInput };\n"],"names":["useControlledDropdownInput","props","isFirstRender","useFirstRender","_useDropdown","useDropdown","changeCallbackTriggerer","isControlled","options","selectedIndices","controlledValueIndices","setSelectedIndices","selectionType","setIsControlled","getValuesArrayFromIndices","indices","map","selectionIndex","value","selectValues","valuesToSelect","length","isEmpty","selectedItemIndex","findIndex","option","uniqueValues","Array","from","Set","userValues","selectedItemIndices","optionValue","filter","React","useEffect","defaultValue","undefined","isArray","isSelectInput","_props$syncInputValue","syncInputValueWithSelection","call","_props$onChange","onChange","name","values","isBrowser","fireNativeEvent","triggererRef"],"mappings":";;;;;;;;;AAqBA,IAAMA,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAIC,KAAsC,EAAW;AACnF,EAAA,IAAMC,aAAa,GAAGC,cAAc,EAAE,CAAA;AACtC,EAAA,IAAAC,YAAA,GASIC,WAAW,EAAE;IARfC,uBAAuB,GAAAF,YAAA,CAAvBE,uBAAuB;IACvBC,YAAY,GAAAH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AA,IAAIN,aAAa,KAAK,QAAQ,IAAI,CAACe,KAAK,CAACW,OAAO,CAACrC,KAAK,CAACiB,KAAK,CAAC,IAAI,CAACjB,KAAK,CAACsC,aAAa,EAAE;AAAA,QAAA,IAAAC,qBAAA,CAAA;AACrF,QAAA,CAAAA,qBAAA,GAAAvC,KAAK,CAACwC,2BAA2B,cAAAD,qBAAA,KAAA,KAAA,CAAA,IAAjCA,qBAAA,CAAAE,IAAA,CAAAzC,KAAK,EAA+BA,KAAK,CAACiB,KAAK,CAAC,CAAA;AAClD,OAAA;AACF,KAAA;AACA;GACD,EAAE,CAACjB,KAAK,CAACiB,KAAK,EAAEV,OAAO,CAAC,CAAC,CAAA;;AAE1B;EACA0B,cAAK,CAACC,SAAS,CAAC,YAAM;AACpB;;IAEA,IAAI,CAACjC,aAAa,EAAE;AAAA,MAAA,IAAAyC,eAAA,CAAA;AAClB,MAAA,CAAAA,eAAA,GAAA1C,KAAK,CAAC2C,QAAQ,MAAA,IAAA,IAAAD,eAAA,KAAA,KAAA,CAAA,IAAdA,eAAA,CAAAD,IAAA,CAAAzC,KAAK,EAAY;QACf4C,IAAI,EAAE5C,KAAK,CAAC4C,IAAI;QAChBC,MAAM,EAAEhC,yBAAyB,EAAC;AACpC,OAAC,CAAC,CAAA;MACF,IAAIiC,SAAS,EAAE,EAAE;QACfC,eAAe,CAAC/C,KAAK,CAACgD,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAA;AAC1D,OAAA;AACF,KAAA;AACA;AACF,GAAC,EAAE,CAAC3C,uBAAuB,CAAC,CAAC,CAAA;AAC/B;;;;"}
1
+ {"version":3,"file":"useControlledDropdownInput.js","sources":["../../../../../../src/utils/useControlledDropdownInput/useControlledDropdownInput.tsx"],"sourcesContent":["import React from 'react';\nimport type { BaseDropdownInputTriggerProps } from '~components/Input/DropdownInputTriggers/types';\nimport isEmpty from '~utils/lodashButBetter/isEmpty';\nimport { isBrowser } from '~utils';\nimport { useFirstRender } from '~utils/useFirstRender';\nimport { fireNativeEvent } from '~utils/fireNativeEvent';\nimport { useDropdown } from '~components/Dropdown/useDropdown';\n\nexport type useControlledDropdownInputProps = Pick<\n BaseDropdownInputTriggerProps,\n | 'onChange'\n | 'name'\n | 'value'\n | 'defaultValue'\n | 'onInputValueChange'\n | 'syncInputValueWithSelection'\n | 'isSelectInput'\n> & {\n triggererRef: React.RefObject<HTMLElement>;\n};\n\nconst useControlledDropdownInput = (props: useControlledDropdownInputProps): void => {\n const isFirstRender = useFirstRender();\n const {\n changeCallbackTriggerer,\n isControlled,\n options,\n selectedIndices,\n controlledValueIndices,\n setSelectedIndices,\n selectionType,\n setIsControlled,\n treeViewControllerRef,\n } = useDropdown();\n\n const getValuesArrayFromIndices = (): string[] => {\n let indices: number[] = [];\n if (isControlled) {\n indices = controlledValueIndices;\n } else {\n indices = selectedIndices;\n }\n\n return indices.map((selectionIndex) => options[selectionIndex].value);\n };\n\n const selectValues = (valuesToSelect: string | string[]): void => {\n if (options.length > 0) {\n // we use empty `''` for clearing the input\n if (isEmpty(valuesToSelect)) {\n setSelectedIndices([]);\n } else if (typeof valuesToSelect === 'string') {\n // single select control\n const selectedItemIndex = options.findIndex((option) => option.value === valuesToSelect);\n if (selectedItemIndex >= 0) {\n setSelectedIndices([selectedItemIndex]);\n }\n } else {\n // multiselect control\n\n // Handles repeated values in user state\n const uniqueValues = Array.from(new Set(valuesToSelect));\n // Handle selectionType single with multiselect values\n const userValues = selectionType === 'single' ? [valuesToSelect?.[0]] : uniqueValues;\n\n const selectedItemIndices = userValues\n .map((optionValue) => options.findIndex((option) => option.value === optionValue))\n .filter((value) => value >= 0);\n\n setSelectedIndices(selectedItemIndices);\n }\n }\n };\n\n // Handles `defaultValue` prop\n React.useEffect(() => {\n if (options.length > 0 && props.defaultValue) {\n selectValues(props.defaultValue);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [options.length]);\n\n // Handles `value` prop\n React.useEffect(() => {\n if (options.length > 0 && props.value !== undefined) {\n if (!isControlled) {\n setIsControlled(true);\n }\n\n selectValues(props.value);\n\n // in single select AutoComplete, we have to set inputValue of autocomplete according to the new selection.\n if (selectionType === 'single' && !Array.isArray(props.value) && !props.isSelectInput) {\n props.syncInputValueWithSelection?.(props.value);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.value, options]);\n\n // onChange behaviour\n React.useEffect(() => {\n // Ignore calling onChange on mount\n\n if (!isFirstRender) {\n // §6.5: additive - only present when the Dropdown overlay content is a TreeView\n const selectedGroups = treeViewControllerRef.current?.getSelectedGroups(\n isControlled ? controlledValueIndices : selectedIndices,\n );\n props.onChange?.({\n name: props.name,\n values: getValuesArrayFromIndices(),\n ...(selectedGroups ? { selectedGroups } : {}),\n });\n if (isBrowser()) {\n fireNativeEvent(props.triggererRef, ['change', 'input']);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [changeCallbackTriggerer]);\n};\n\nexport { useControlledDropdownInput };\n"],"names":["useControlledDropdownInput","props","isFirstRender","useFirstRender","_useDropdown","useDropdown","changeCallbackTriggerer","isControlled","options","selectedIndices","controlledValueIndices","setSelectedIndices","selectionType","setIsControlled","treeViewControllerRef","getValuesArrayFromIndices","indices","map","selectionIndex","value","selectValues","valuesToSelect","length","isEmpty","selectedItemIndex","findIndex","option","uniqueValues","Array","from","Set","userValues","selectedItemIndices","optionValue","filter","React","useEffect","defaultValue","undefined","isArray","isSelectInput","_props$syncInputValue","syncInputValueWithSelection","call","_treeViewControllerRe","_props$onChange","selectedGroups","current","getSelectedGroups","onChange","_objectSpread","name","values","isBrowser","fireNativeEvent","triggererRef"],"mappings":";;;;;;;;;;;;AAqBA,IAAMA,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAIC,KAAsC,EAAW;AACnF,EAAA,IAAMC,aAAa,GAAGC,cAAc,EAAE,CAAA;AACtC,EAAA,IAAAC,YAAA,GAUIC,WAAW,EAAE;IATfC,uBAAuB,GAAAF,YAAA,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ACrD,KAAK,CAACsD,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAA;AAC1D,OAAA;AACF,KAAA;AACA;AACF,GAAC,EAAE,CAACjD,uBAAuB,CAAC,CAAC,CAAA;AAC/B;;;;"}
@@ -6,11 +6,11 @@ import React__default from 'react';
6
6
  * ## Usage
7
7
  *
8
8
  * ```tsx
9
- * const { containerRef, textRef } = useTruncationTitle({ content: 'saurabhdaware99@gmail.com' });
9
+ * const { containerRef, textRef } = useTruncationTitle({ content: 'user@example.com' });
10
10
  *
11
11
  * <Box ref={containerRef}>
12
12
  * <BaseText ref={textRef} truncateAfterLines={1}>
13
- * saurabhdaware99@gmail.com
13
+ * user@example.com
14
14
  * </BaseText>
15
15
  * </Box>
16
16
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"useTruncationTitle.web.js","sources":["../../../../../../src/utils/useTruncationTitle/useTruncationTitle.web.tsx"],"sourcesContent":["import React from 'react';\n\n/**\n * Utility function that takes checks if text is truncated and adds `htmlTitle` with full text\n *\n * ## Usage\n *\n * ```tsx\n * const { containerRef, textRef } = useTruncationTitle({ content: 'saurabhdaware99@gmail.com' });\n *\n * <Box ref={containerRef}>\n * <BaseText ref={textRef} truncateAfterLines={1}>\n * saurabhdaware99@gmail.com\n * </BaseText>\n * </Box>\n * ```\n */\nconst useTruncationTitle = ({\n content,\n}: {\n /**\n * content that you want to set as htmlTitle\n */\n content?: string;\n}): {\n containerRef: React.RefObject<HTMLDivElement>;\n textRef: React.RefObject<HTMLParagraphElement>;\n} => {\n const containerRef = React.useRef<HTMLDivElement>(null);\n const textRef = React.useRef<HTMLParagraphElement>(null);\n\n React.useEffect(() => {\n if (!textRef.current || !containerRef.current) {\n return;\n }\n\n const isTextTruncated =\n textRef.current.scrollHeight > containerRef.current.clientHeight ||\n textRef.current.scrollWidth > containerRef.current.clientWidth;\n\n if (isTextTruncated && content) {\n textRef.current.setAttribute('title', content);\n } else {\n textRef.current.removeAttribute('title');\n }\n }, [content]);\n\n return {\n containerRef,\n textRef,\n };\n};\n\nexport { useTruncationTitle };\n"],"names":["useTruncationTitle","_ref","content","containerRef","React","useRef","textRef","useEffect","current","isTextTruncated","scrollHeight","clientHeight","scrollWidth","clientWidth","setAttribute","removeAttribute"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAUnB;AAAA,EAAA,IATHC,OAAO,GAAAD,IAAA,CAAPC,OAAO,CAAA;AAUP,EAAA,IAAMC,YAAY,GAAGC,cAAK,CAACC,MAAM,CAAiB,IAAI,CAAC,CAAA;AACvD,EAAA,IAAMC,OAAO,GAAGF,cAAK,CAACC,MAAM,CAAuB,IAAI,CAAC,CAAA;EAExDD,cAAK,CAACG,SAAS,CAAC,YAAM;IACpB,IAAI,CAACD,OAAO,CAACE,OAAO,IAAI,CAACL,YAAY,CAACK,OAAO,EAAE;AAC7C,MAAA,OAAA;AACF,KAAA;IAEA,IAAMC,eAAe,GACnBH,OAAO,CAACE,OAAO,CAACE,YAAY,GAAGP,YAAY,CAACK,OAAO,CAACG,YAAY,IAChEL,OAAO,CAACE,OAAO,CAACI,WAAW,GAAGT,YAAY,CAACK,OAAO,CAACK,WAAW,CAAA;IAEhE,IAAIJ,eAAe,IAAIP,OAAO,EAAE;MAC9BI,OAAO,CAACE,OAAO,CAACM,YAAY,CAAC,OAAO,EAAEZ,OAAO,CAAC,CAAA;AAChD,KAAC,MAAM;AACLI,MAAAA,OAAO,CAACE,OAAO,CAACO,eAAe,CAAC,OAAO,CAAC,CAAA;AAC1C,KAAA;AACF,GAAC,EAAE,CAACb,OAAO,CAAC,CAAC,CAAA;EAEb,OAAO;AACLC,IAAAA,YAAY,EAAZA,YAAY;AACZG,IAAAA,OAAO,EAAPA,OAAAA;GACD,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"useTruncationTitle.web.js","sources":["../../../../../../src/utils/useTruncationTitle/useTruncationTitle.web.tsx"],"sourcesContent":["import React from 'react';\n\n/**\n * Utility function that takes checks if text is truncated and adds `htmlTitle` with full text\n *\n * ## Usage\n *\n * ```tsx\n * const { containerRef, textRef } = useTruncationTitle({ content: 'user@example.com' });\n *\n * <Box ref={containerRef}>\n * <BaseText ref={textRef} truncateAfterLines={1}>\n * user@example.com\n * </BaseText>\n * </Box>\n * ```\n */\nconst useTruncationTitle = ({\n content,\n}: {\n /**\n * content that you want to set as htmlTitle\n */\n content?: string;\n}): {\n containerRef: React.RefObject<HTMLDivElement>;\n textRef: React.RefObject<HTMLParagraphElement>;\n} => {\n const containerRef = React.useRef<HTMLDivElement>(null);\n const textRef = React.useRef<HTMLParagraphElement>(null);\n\n React.useEffect(() => {\n if (!textRef.current || !containerRef.current) {\n return;\n }\n\n const isTextTruncated =\n textRef.current.scrollHeight > containerRef.current.clientHeight ||\n textRef.current.scrollWidth > containerRef.current.clientWidth;\n\n if (isTextTruncated && content) {\n textRef.current.setAttribute('title', content);\n } else {\n textRef.current.removeAttribute('title');\n }\n }, [content]);\n\n return {\n containerRef,\n textRef,\n };\n};\n\nexport { useTruncationTitle };\n"],"names":["useTruncationTitle","_ref","content","containerRef","React","useRef","textRef","useEffect","current","isTextTruncated","scrollHeight","clientHeight","scrollWidth","clientWidth","setAttribute","removeAttribute"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAUnB;AAAA,EAAA,IATHC,OAAO,GAAAD,IAAA,CAAPC,OAAO,CAAA;AAUP,EAAA,IAAMC,YAAY,GAAGC,cAAK,CAACC,MAAM,CAAiB,IAAI,CAAC,CAAA;AACvD,EAAA,IAAMC,OAAO,GAAGF,cAAK,CAACC,MAAM,CAAuB,IAAI,CAAC,CAAA;EAExDD,cAAK,CAACG,SAAS,CAAC,YAAM;IACpB,IAAI,CAACD,OAAO,CAACE,OAAO,IAAI,CAACL,YAAY,CAACK,OAAO,EAAE;AAC7C,MAAA,OAAA;AACF,KAAA;IAEA,IAAMC,eAAe,GACnBH,OAAO,CAACE,OAAO,CAACE,YAAY,GAAGP,YAAY,CAACK,OAAO,CAACG,YAAY,IAChEL,OAAO,CAACE,OAAO,CAACI,WAAW,GAAGT,YAAY,CAACK,OAAO,CAACK,WAAW,CAAA;IAEhE,IAAIJ,eAAe,IAAIP,OAAO,EAAE;MAC9BI,OAAO,CAACE,OAAO,CAACM,YAAY,CAAC,OAAO,EAAEZ,OAAO,CAAC,CAAA;AAChD,KAAC,MAAM;AACLI,MAAAA,OAAO,CAACE,OAAO,CAACO,eAAe,CAAC,OAAO,CAAC,CAAA;AAC1C,KAAA;AACF,GAAC,EAAE,CAACb,OAAO,CAAC,CAAC,CAAA;EAEb,OAAO;AACLC,IAAAA,YAAY,EAAZA,YAAY;AACZG,IAAAA,OAAO,EAAPA,OAAAA;GACD,CAAA;AACH;;;;"}