@sybilion/uilib 1.0.20

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 (1029) hide show
  1. package/README.md +138 -0
  2. package/dist/esm/assets/doc-4d8d38268d07c83e.png +0 -0
  3. package/dist/esm/assets/xls-d1595343260dd096.png +0 -0
  4. package/dist/esm/components/ui/AnalysesSelector/AnalysesSelector.js +188 -0
  5. package/dist/esm/components/ui/AnalysesSelector/AnalysesSelector.styl.js +7 -0
  6. package/dist/esm/components/ui/AnalysisLineIcon/AnalysisLineIcon.js +11 -0
  7. package/dist/esm/components/ui/AnalysisLineIcon/AnalysisLineIcon.styl.js +7 -0
  8. package/dist/esm/components/ui/AppHeader/AppHeader.js +22 -0
  9. package/dist/esm/components/ui/AppHeader/AppHeader.styl.js +7 -0
  10. package/dist/esm/components/ui/AppHeader/appChromeAnchors.js +4 -0
  11. package/dist/esm/components/ui/Avatar/Avatar.js +16 -0
  12. package/dist/esm/components/ui/Avatar/Avatar.styl.js +7 -0
  13. package/dist/esm/components/ui/Badge/Badge.js +11 -0
  14. package/dist/esm/components/ui/Badge/Badge.styl.js +7 -0
  15. package/dist/esm/components/ui/Breadcrumb/Breadcrumb.js +30 -0
  16. package/dist/esm/components/ui/Breadcrumb/Breadcrumb.styl.js +7 -0
  17. package/dist/esm/components/ui/Button/Button.js +12 -0
  18. package/dist/esm/components/ui/Button/Button.styl.js +7 -0
  19. package/dist/esm/components/ui/Card/Card.js +57 -0
  20. package/dist/esm/components/ui/Card/Card.styl.js +7 -0
  21. package/dist/esm/components/ui/Chart/Chart.context.js +11 -0
  22. package/dist/esm/components/ui/Chart/Chart.helpers.js +9 -0
  23. package/dist/esm/components/ui/Chart/Chart.js +23 -0
  24. package/dist/esm/components/ui/Chart/Chart.styl.js +7 -0
  25. package/dist/esm/components/ui/Chart/Chart.types.js +3 -0
  26. package/dist/esm/components/ui/Chart/components/BaseChartWrapper.js +473 -0
  27. package/dist/esm/components/ui/Chart/components/BaseChartWrapper.styl.js +7 -0
  28. package/dist/esm/components/ui/Chart/components/ChartAxes.js +52 -0
  29. package/dist/esm/components/ui/Chart/components/ChartContainer.js +31 -0
  30. package/dist/esm/components/ui/Chart/components/ChartGrid.js +9 -0
  31. package/dist/esm/components/ui/Chart/components/ChartLegendContent.js +17 -0
  32. package/dist/esm/components/ui/Chart/components/ChartLegendItem.js +13 -0
  33. package/dist/esm/components/ui/Chart/components/ChartTooltipContent.js +74 -0
  34. package/dist/esm/components/ui/Chart/components/ChartTooltipItem.js +26 -0
  35. package/dist/esm/components/ui/Chart/components/CustomChartLegend/CustomChartLegend.js +64 -0
  36. package/dist/esm/components/ui/Chart/components/CustomChartLegend/CustomChartLegend.styl.js +7 -0
  37. package/dist/esm/components/ui/Chart/components/LegendSvg/LegendSvg.js +19 -0
  38. package/dist/esm/components/ui/Chart/components/QuantileBands.js +23 -0
  39. package/dist/esm/components/ui/Chart/tools/formatters.js +81 -0
  40. package/dist/esm/components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.js +15 -0
  41. package/dist/esm/components/ui/ChartAreaInteractive/ChartAreaInteractive.js +103 -0
  42. package/dist/esm/components/ui/ChartAreaInteractive/ChartAreaInteractive.styl.js +7 -0
  43. package/dist/esm/components/ui/ChartAreaInteractive/ChartLines.js +81 -0
  44. package/dist/esm/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.hooks.js +134 -0
  45. package/dist/esm/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.js +257 -0
  46. package/dist/esm/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.styl.js +7 -0
  47. package/dist/esm/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.js +165 -0
  48. package/dist/esm/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.styl.js +7 -0
  49. package/dist/esm/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.hooks.js +113 -0
  50. package/dist/esm/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.js +114 -0
  51. package/dist/esm/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.styl.js +7 -0
  52. package/dist/esm/components/ui/ChartAreaInteractive/overlays/useChartYRange.js +155 -0
  53. package/dist/esm/components/ui/ChartAreaInteractive/overlays/useForecastColor.js +33 -0
  54. package/dist/esm/components/ui/ChartAreaInteractive/overlays/useQuantileBands.js +170 -0
  55. package/dist/esm/components/ui/Chat/Chat.js +17 -0
  56. package/dist/esm/components/ui/Chat/Chat.styl.js +7 -0
  57. package/dist/esm/components/ui/Chat/Chat.types.js +10 -0
  58. package/dist/esm/components/ui/Chat/ChatChrome/ChatChrome.js +31 -0
  59. package/dist/esm/components/ui/Chat/ChatChrome/ChatChrome.styl.js +7 -0
  60. package/dist/esm/components/ui/Chat/ChatEmptyState/ChatEmptyState.js +8 -0
  61. package/dist/esm/components/ui/Chat/ChatEmptyState/ChatEmptyState.styl.js +7 -0
  62. package/dist/esm/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.js +312 -0
  63. package/dist/esm/components/ui/Chat/ChatMessage/AgentMessageContent.js +133 -0
  64. package/dist/esm/components/ui/Chat/ChatMessage/ChatDatasetApplicationLink.js +23 -0
  65. package/dist/esm/components/ui/Chat/ChatMessage/ChatMessage.js +14 -0
  66. package/dist/esm/components/ui/Chat/ChatMessage/ChatMessage.styl.js +7 -0
  67. package/dist/esm/components/ui/Chat/ChatMessage/icons/DocIcon.js +8 -0
  68. package/dist/esm/components/ui/Chat/ChatMessage/icons/XlsIcon.js +8 -0
  69. package/dist/esm/components/ui/Chat/ChatMessage/icons/doc.png.js +3 -0
  70. package/dist/esm/components/ui/Chat/ChatMessage/icons/xls.png.js +3 -0
  71. package/dist/esm/components/ui/Chat/ChatMessage/presetScript.js +187 -0
  72. package/dist/esm/components/ui/Chat/ChatPresets/ChatPresets.js +23 -0
  73. package/dist/esm/components/ui/Chat/ChatPresets/ChatPresets.styl.js +7 -0
  74. package/dist/esm/components/ui/Chat/ChatPrompt/ChatPrompt.js +48 -0
  75. package/dist/esm/components/ui/Chat/ChatPrompt/ChatPrompt.styl.js +7 -0
  76. package/dist/esm/components/ui/Chat/ChatSheet/ChatSelector.js +29 -0
  77. package/dist/esm/components/ui/Chat/ChatSheet/ChatSheet.js +34 -0
  78. package/dist/esm/components/ui/Chat/ChatSheet/useChatPanelChromeModel.js +800 -0
  79. package/dist/esm/components/ui/Chat/chat-preset-utils.js +22 -0
  80. package/dist/esm/components/ui/Checkbox/Checkbox.js +11 -0
  81. package/dist/esm/components/ui/Checkbox/Checkbox.styl.js +7 -0
  82. package/dist/esm/components/ui/Dialog/Dialog.js +126 -0
  83. package/dist/esm/components/ui/Dialog/Dialog.styl.js +7 -0
  84. package/dist/esm/components/ui/DraggingButton/DraggingButton.js +11 -0
  85. package/dist/esm/components/ui/DraggingButton/DraggingButton.styl.js +7 -0
  86. package/dist/esm/components/ui/Drawer/Drawer.js +37 -0
  87. package/dist/esm/components/ui/Drawer/Drawer.styl.js +7 -0
  88. package/dist/esm/components/ui/DropZone/DropZone.js +112 -0
  89. package/dist/esm/components/ui/DropZone/DropZone.styl.js +7 -0
  90. package/dist/esm/components/ui/DropdownMenu/DropdownMenu.js +53 -0
  91. package/dist/esm/components/ui/DropdownMenu/DropdownMenu.styl.js +7 -0
  92. package/dist/esm/components/ui/FlickeringGrid/FlickeringGrid.js +8 -0
  93. package/dist/esm/components/ui/FlickeringGrid/FlickeringGrid.styl.js +7 -0
  94. package/dist/esm/components/ui/Foldable/Foldable.js +15 -0
  95. package/dist/esm/components/ui/Foldable/Foldable.styl.js +7 -0
  96. package/dist/esm/components/ui/Gap/Gap.js +6 -0
  97. package/dist/esm/components/ui/Gap/Gap.styl.js +7 -0
  98. package/dist/esm/components/ui/Image/Image.js +17 -0
  99. package/dist/esm/components/ui/Image/Image.styl.js +7 -0
  100. package/dist/esm/components/ui/ImageWithFallback/ImageWithFallback.js +19 -0
  101. package/dist/esm/components/ui/Input/Input.js +14 -0
  102. package/dist/esm/components/ui/Input/Input.styl.js +7 -0
  103. package/dist/esm/components/ui/InteractionOverlay/InteractionOverlay.js +35 -0
  104. package/dist/esm/components/ui/InteractionOverlay/InteractionOverlay.styl.js +7 -0
  105. package/dist/esm/components/ui/InteractiveContent/InteractiveContent.js +10 -0
  106. package/dist/esm/components/ui/InteractiveContent/InteractiveContent.styl.js +7 -0
  107. package/dist/esm/components/ui/Label/Label.js +10 -0
  108. package/dist/esm/components/ui/Label/Label.styl.js +7 -0
  109. package/dist/esm/components/ui/LabelWithId/AltKeyProvider.js +22 -0
  110. package/dist/esm/components/ui/LabelWithId/LabelWithId.js +9 -0
  111. package/dist/esm/components/ui/LabelWithId/LabelWithId.styl.js +7 -0
  112. package/dist/esm/components/ui/LabeledInput/LabeledInput.js +12 -0
  113. package/dist/esm/components/ui/LabeledInput/LabeledInput.styl.js +7 -0
  114. package/dist/esm/components/ui/LegacyPlatformLink/LegacyPlatformLink.js +10 -0
  115. package/dist/esm/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl.js +7 -0
  116. package/dist/esm/components/ui/Logo/Logo.js +9 -0
  117. package/dist/esm/components/ui/Logo/Logo.styl.js +7 -0
  118. package/dist/esm/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.js +23 -0
  119. package/dist/esm/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.styl.js +7 -0
  120. package/dist/esm/components/ui/NumberControl/NumberControl.js +26 -0
  121. package/dist/esm/components/ui/NumberControl/NumberControl.styl.js +7 -0
  122. package/dist/esm/components/ui/Page/AppShell/AppShell.js +14 -0
  123. package/dist/esm/components/ui/Page/AppShell/AppShell.styl.js +7 -0
  124. package/dist/esm/components/ui/Page/Breadcrumbs/Breadcrumbs.js +22 -0
  125. package/dist/esm/components/ui/Page/Breadcrumbs/Breadcrumbs.styl.js +7 -0
  126. package/dist/esm/components/ui/Page/PageColumns/PageColumns.js +9 -0
  127. package/dist/esm/components/ui/Page/PageColumns/PageColumns.styl.js +7 -0
  128. package/dist/esm/components/ui/Page/PageContent/PageContent.js +12 -0
  129. package/dist/esm/components/ui/Page/PageContent/PageContent.styl.js +7 -0
  130. package/dist/esm/components/ui/Page/PageEmptyCanvas/PageEmptyCanvas.js +8 -0
  131. package/dist/esm/components/ui/Page/PageEmptyCanvas/PageEmptyCanvas.styl.js +7 -0
  132. package/dist/esm/components/ui/Page/PageFooter/PageFooter.js +10 -0
  133. package/dist/esm/components/ui/Page/PageFooter/PageFooter.styl.js +7 -0
  134. package/dist/esm/components/ui/Page/PageHeader/PageHeader.js +14 -0
  135. package/dist/esm/components/ui/Page/PageHeader/PageHeader.styl.js +7 -0
  136. package/dist/esm/components/ui/Page/PageScroll/PageScroll.js +37 -0
  137. package/dist/esm/components/ui/Page/PageScroll/PageScroll.styl.js +7 -0
  138. package/dist/esm/components/ui/Page/PageTabs/PageTabs.js +22 -0
  139. package/dist/esm/components/ui/Page/PageTabs/PageTabs.styl.js +7 -0
  140. package/dist/esm/components/ui/Page/PageXScroll/PageXScroll.js +34 -0
  141. package/dist/esm/components/ui/Page/PageXScroll/PageXScroll.styl.js +7 -0
  142. package/dist/esm/components/ui/Page/SectionHeader/SectionHeader.js +9 -0
  143. package/dist/esm/components/ui/Page/SectionHeader/SectionHeader.styl.js +7 -0
  144. package/dist/esm/components/ui/Page/pageContext.js +8 -0
  145. package/dist/esm/components/ui/Progress/Progress.js +10 -0
  146. package/dist/esm/components/ui/Progress/Progress.styl.js +7 -0
  147. package/dist/esm/components/ui/RegionCoords/RegionSelector.js +22 -0
  148. package/dist/esm/components/ui/RegionCoords/RegionSelector.styl.js +7 -0
  149. package/dist/esm/components/ui/Renamer/Renamer.js +61 -0
  150. package/dist/esm/components/ui/Renamer/Renamer.styl.js +7 -0
  151. package/dist/esm/components/ui/Select/Select.js +35 -0
  152. package/dist/esm/components/ui/Select/Select.styl.js +7 -0
  153. package/dist/esm/components/ui/Separator/Separator.js +10 -0
  154. package/dist/esm/components/ui/Separator/Separator.styl.js +7 -0
  155. package/dist/esm/components/ui/Sheet/Sheet.js +41 -0
  156. package/dist/esm/components/ui/Sheet/Sheet.styl.js +7 -0
  157. package/dist/esm/components/ui/Sidebar/Sidebar.js +448 -0
  158. package/dist/esm/components/ui/Sidebar/Sidebar.styl.js +7 -0
  159. package/dist/esm/components/ui/Skeleton/Skeleton.js +9 -0
  160. package/dist/esm/components/ui/Skeleton/Skeleton.styl.js +7 -0
  161. package/dist/esm/components/ui/Slider/Slider.js +123 -0
  162. package/dist/esm/components/ui/Slider/Slider.styl.js +7 -0
  163. package/dist/esm/components/ui/SmartTextTruncate/SmartTextTruncate.js +98 -0
  164. package/dist/esm/components/ui/Sparkline/Sparkline.helpers.js +11 -0
  165. package/dist/esm/components/ui/Sparkline/Sparkline.js +27 -0
  166. package/dist/esm/components/ui/Sparkline/Sparkline.styl.js +7 -0
  167. package/dist/esm/components/ui/Switch/Switch.js +17 -0
  168. package/dist/esm/components/ui/Switch/Switch.styl.js +7 -0
  169. package/dist/esm/components/ui/Table/Table.js +30 -0
  170. package/dist/esm/components/ui/Table/Table.styl.js +7 -0
  171. package/dist/esm/components/ui/Tabs/Tabs.js +19 -0
  172. package/dist/esm/components/ui/Tabs/Tabs.styl.js +7 -0
  173. package/dist/esm/components/ui/TextShimmer/TextShimmer.js +31 -0
  174. package/dist/esm/components/ui/TextShimmer/TextShimmer.styl.js +7 -0
  175. package/dist/esm/components/ui/TextWithDeferTooltip/TextWithDeferTooltip.js +48 -0
  176. package/dist/esm/components/ui/TimeRangeControls/TimeRangeControls.constants.js +3 -0
  177. package/dist/esm/components/ui/TimeRangeControls/TimeRangeControls.js +13 -0
  178. package/dist/esm/components/ui/TimeRangeControls/TimeRangeControls.styl.js +7 -0
  179. package/dist/esm/components/ui/Toggle/Toggle.js +10 -0
  180. package/dist/esm/components/ui/Toggle/Toggle.styl.js +7 -0
  181. package/dist/esm/components/ui/ToggleGroup/ToggleGroup.helpers.js +12 -0
  182. package/dist/esm/components/ui/ToggleGroup/ToggleGroup.js +19 -0
  183. package/dist/esm/components/ui/ToggleGroup/ToggleGroup.styl.js +7 -0
  184. package/dist/esm/components/ui/Tooltip/Tooltip.js +22 -0
  185. package/dist/esm/components/ui/Tooltip/Tooltip.styl.js +7 -0
  186. package/dist/esm/components/ui/VimeoEmbed/VimeoEmbed.js +137 -0
  187. package/dist/esm/components/ui/VimeoEmbed/VimeoEmbed.styl.js +7 -0
  188. package/dist/esm/constants/dataset.js +4 -0
  189. package/dist/esm/contexts/chat-context.js +297 -0
  190. package/dist/esm/hooks/panelWidth.js +46 -0
  191. package/dist/esm/hooks/useDebounceCallback.js +14 -0
  192. package/dist/esm/hooks/useDragElem.js +115 -0
  193. package/dist/esm/hooks/useEvent.js +52 -0
  194. package/dist/esm/hooks/useIsMobile.js +18 -0
  195. package/dist/esm/hooks/useIsTouchDevice.js +43 -0
  196. package/dist/esm/hooks/useQueryParams.js +40 -0
  197. package/dist/esm/hooks/useShellWidthObserver.js +23 -0
  198. package/dist/esm/hooks/useThrottledCallback.js +28 -0
  199. package/dist/esm/index.js +83 -0
  200. package/dist/esm/lib/cookie-consent/cookie-consent.js +63 -0
  201. package/dist/esm/lib/cookie.js +22 -0
  202. package/dist/esm/lib/dashboard-spec/stripJsonDashboardFences.js +7 -0
  203. package/dist/esm/lib/logger.js +10 -0
  204. package/dist/esm/tools/debounce.js +41 -0
  205. package/dist/esm/tools/env.js +7 -0
  206. package/dist/esm/types/index.d.ts +1 -0
  207. package/dist/esm/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
  208. package/dist/esm/types/node_modules/@vimeo/player/types/errors.d.ts +28 -0
  209. package/dist/esm/types/node_modules/@vimeo/player/types/events.d.ts +144 -0
  210. package/dist/esm/types/node_modules/@vimeo/player/types/formats.d.ts +406 -0
  211. package/dist/esm/types/src/components/ui/AnalysesSelector/AnalysesSelector.d.ts +2 -0
  212. package/dist/esm/types/src/components/ui/AnalysesSelector/AnalysesSelector.types.d.ts +38 -0
  213. package/dist/esm/types/src/components/ui/AnalysesSelector/index.d.ts +2 -0
  214. package/dist/esm/types/src/components/ui/AnalysisLineIcon/AnalysisLineIcon.d.ts +6 -0
  215. package/dist/esm/types/src/components/ui/AnalysisLineIcon/index.d.ts +1 -0
  216. package/dist/esm/types/src/components/ui/AppHeader/AppHeader.d.ts +11 -0
  217. package/dist/esm/types/src/components/ui/AppHeader/appChromeAnchors.d.ts +2 -0
  218. package/dist/esm/types/src/components/ui/AppHeader/index.d.ts +3 -0
  219. package/dist/esm/types/src/components/ui/Avatar/Avatar.d.ts +5 -0
  220. package/dist/esm/types/src/components/ui/Avatar/Avatar.types.d.ts +9 -0
  221. package/dist/esm/types/src/components/ui/Avatar/index.d.ts +2 -0
  222. package/dist/esm/types/src/components/ui/Badge/Badge.d.ts +3 -0
  223. package/dist/esm/types/src/components/ui/Badge/Badge.types.d.ts +6 -0
  224. package/dist/esm/types/src/components/ui/Badge/index.d.ts +2 -0
  225. package/dist/esm/types/src/components/ui/Breadcrumb/Breadcrumb.d.ts +9 -0
  226. package/dist/esm/types/src/components/ui/Breadcrumb/Breadcrumb.types.d.ts +15 -0
  227. package/dist/esm/types/src/components/ui/Breadcrumb/index.d.ts +2 -0
  228. package/dist/esm/types/src/components/ui/Button/Button.d.ts +3 -0
  229. package/dist/esm/types/src/components/ui/Button/Button.types.d.ts +8 -0
  230. package/dist/esm/types/src/components/ui/Button/index.d.ts +2 -0
  231. package/dist/esm/types/src/components/ui/Card/Card.d.ts +11 -0
  232. package/dist/esm/types/src/components/ui/Card/Card.types.d.ts +29 -0
  233. package/dist/esm/types/src/components/ui/Card/index.d.ts +2 -0
  234. package/dist/esm/types/src/components/ui/Chart/Chart.context.d.ts +3 -0
  235. package/dist/esm/types/src/components/ui/Chart/Chart.d.ts +12 -0
  236. package/dist/esm/types/src/components/ui/Chart/Chart.helpers.d.ts +11 -0
  237. package/dist/esm/types/src/components/ui/Chart/Chart.types.d.ts +34 -0
  238. package/dist/esm/types/src/components/ui/Chart/chartForecastVisualization.constants.d.ts +21 -0
  239. package/dist/esm/types/src/components/ui/Chart/chartForecastVisualization.types.d.ts +84 -0
  240. package/dist/esm/types/src/components/ui/Chart/components/ActiveDotsLayer/ActiveDotsLayer.d.ts +11 -0
  241. package/dist/esm/types/src/components/ui/Chart/components/BaseChartWrapper.d.ts +79 -0
  242. package/dist/esm/types/src/components/ui/Chart/components/ChartAxes.d.ts +15 -0
  243. package/dist/esm/types/src/components/ui/Chart/components/ChartContainer.d.ts +11 -0
  244. package/dist/esm/types/src/components/ui/Chart/components/ChartGrid.d.ts +1 -0
  245. package/dist/esm/types/src/components/ui/Chart/components/ChartLegendContent.d.ts +7 -0
  246. package/dist/esm/types/src/components/ui/Chart/components/ChartLegendItem.d.ts +15 -0
  247. package/dist/esm/types/src/components/ui/Chart/components/ChartTooltipContent.d.ts +2 -0
  248. package/dist/esm/types/src/components/ui/Chart/components/ChartTooltipItem.d.ts +24 -0
  249. package/dist/esm/types/src/components/ui/Chart/components/ConfidenceBands.d.ts +7 -0
  250. package/dist/esm/types/src/components/ui/Chart/components/CustomChartLegend/CustomChartLegend.d.ts +31 -0
  251. package/dist/esm/types/src/components/ui/Chart/components/ForecastBoundaries.d.ts +8 -0
  252. package/dist/esm/types/src/components/ui/Chart/components/ForecastLine.d.ts +12 -0
  253. package/dist/esm/types/src/components/ui/Chart/components/HistoricalLine.d.ts +12 -0
  254. package/dist/esm/types/src/components/ui/Chart/components/LegendSvg/LegendSvg.d.ts +12 -0
  255. package/dist/esm/types/src/components/ui/Chart/components/QuantileBands.d.ts +18 -0
  256. package/dist/esm/types/src/components/ui/Chart/components/index.d.ts +12 -0
  257. package/dist/esm/types/src/components/ui/Chart/hooks/useChartAnimation.d.ts +5 -0
  258. package/dist/esm/types/src/components/ui/Chart/hooks/useChartColors.d.ts +12 -0
  259. package/dist/esm/types/src/components/ui/Chart/hooks/useLegendState.d.ts +10 -0
  260. package/dist/esm/types/src/components/ui/Chart/index.d.ts +2 -0
  261. package/dist/esm/types/src/components/ui/Chart/tools/formatters.d.ts +21 -0
  262. package/dist/esm/types/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.d.ts +3 -0
  263. package/dist/esm/types/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.d.ts +31 -0
  264. package/dist/esm/types/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.types.d.ts +63 -0
  265. package/dist/esm/types/src/components/ui/ChartAreaInteractive/ChartLines.d.ts +45 -0
  266. package/dist/esm/types/src/components/ui/ChartAreaInteractive/index.d.ts +3 -0
  267. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.d.ts +17 -0
  268. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.hooks.d.ts +15 -0
  269. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.d.ts +10 -0
  270. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.d.ts +19 -0
  271. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.hooks.d.ts +15 -0
  272. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/index.d.ts +3 -0
  273. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/useChartYRange.d.ts +18 -0
  274. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/useForecastColor.d.ts +10 -0
  275. package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/useQuantileBands.d.ts +22 -0
  276. package/dist/esm/types/src/components/ui/Chat/Chat.d.ts +12 -0
  277. package/dist/esm/types/src/components/ui/Chat/Chat.types.d.ts +80 -0
  278. package/dist/esm/types/src/components/ui/Chat/ChatChrome/ChatChrome.d.ts +2 -0
  279. package/dist/esm/types/src/components/ui/Chat/ChatChrome/ChatChrome.types.d.ts +45 -0
  280. package/dist/esm/types/src/components/ui/Chat/ChatChrome/index.d.ts +2 -0
  281. package/dist/esm/types/src/components/ui/Chat/ChatEmptyState/ChatEmptyState.d.ts +2 -0
  282. package/dist/esm/types/src/components/ui/Chat/ChatEmptyState/ChatEmptyState.types.d.ts +5 -0
  283. package/dist/esm/types/src/components/ui/Chat/ChatMessage/AgentMessageContent.d.ts +13 -0
  284. package/dist/esm/types/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.d.ts +31 -0
  285. package/dist/esm/types/src/components/ui/Chat/ChatMessage/ChatDatasetApplicationLink.d.ts +5 -0
  286. package/dist/esm/types/src/components/ui/Chat/ChatMessage/ChatMessage.d.ts +2 -0
  287. package/dist/esm/types/src/components/ui/Chat/ChatMessage/MessageChart.d.ts +9 -0
  288. package/dist/esm/types/src/components/ui/Chat/ChatMessage/icons/DocIcon.d.ts +3 -0
  289. package/dist/esm/types/src/components/ui/Chat/ChatMessage/icons/XlsIcon.d.ts +3 -0
  290. package/dist/esm/types/src/components/ui/Chat/ChatMessage/index.d.ts +1 -0
  291. package/dist/esm/types/src/components/ui/Chat/ChatMessage/presetScript.d.ts +55 -0
  292. package/dist/esm/types/src/components/ui/Chat/ChatPresets/ChatPresets.d.ts +11 -0
  293. package/dist/esm/types/src/components/ui/Chat/ChatPresets/index.d.ts +2 -0
  294. package/dist/esm/types/src/components/ui/Chat/ChatPrompt/ChatPrompt.d.ts +2 -0
  295. package/dist/esm/types/src/components/ui/Chat/ChatPrompt/index.d.ts +1 -0
  296. package/dist/esm/types/src/components/ui/Chat/ChatSheet/ChatSelector.d.ts +5 -0
  297. package/dist/esm/types/src/components/ui/Chat/ChatSheet/ChatSettings.d.ts +5 -0
  298. package/dist/esm/types/src/components/ui/Chat/ChatSheet/ChatSheet.d.ts +22 -0
  299. package/dist/esm/types/src/components/ui/Chat/ChatSheet/index.d.ts +3 -0
  300. package/dist/esm/types/src/components/ui/Chat/ChatSheet/useChatPanelChromeModel.d.ts +25 -0
  301. package/dist/esm/types/src/components/ui/Chat/chat-preset-utils.d.ts +6 -0
  302. package/dist/esm/types/src/components/ui/Chat/index.d.ts +13 -0
  303. package/dist/esm/types/src/components/ui/Checkbox/Checkbox.d.ts +3 -0
  304. package/dist/esm/types/src/components/ui/Checkbox/Checkbox.types.d.ts +3 -0
  305. package/dist/esm/types/src/components/ui/Checkbox/index.d.ts +2 -0
  306. package/dist/esm/types/src/components/ui/Dialog/Dialog.d.ts +3 -0
  307. package/dist/esm/types/src/components/ui/Dialog/Dialog.types.d.ts +26 -0
  308. package/dist/esm/types/src/components/ui/Dialog/index.d.ts +2 -0
  309. package/dist/esm/types/src/components/ui/DraggingButton/DraggingButton.d.ts +12 -0
  310. package/dist/esm/types/src/components/ui/Drawer/Drawer.d.ts +12 -0
  311. package/dist/esm/types/src/components/ui/Drawer/Drawer.types.d.ts +30 -0
  312. package/dist/esm/types/src/components/ui/Drawer/index.d.ts +2 -0
  313. package/dist/esm/types/src/components/ui/DropZone/DropZone.d.ts +20 -0
  314. package/dist/esm/types/src/components/ui/DropdownMenu/DropdownMenu.d.ts +17 -0
  315. package/dist/esm/types/src/components/ui/DropdownMenu/DropdownMenu.types.d.ts +36 -0
  316. package/dist/esm/types/src/components/ui/DropdownMenu/index.d.ts +2 -0
  317. package/dist/esm/types/src/components/ui/FlickeringGrid/FlickeringGrid.d.ts +3 -0
  318. package/dist/esm/types/src/components/ui/FlickeringGrid/FlickeringGrid.types.d.ts +10 -0
  319. package/dist/esm/types/src/components/ui/FlickeringGrid/index.d.ts +2 -0
  320. package/dist/esm/types/src/components/ui/Foldable/Foldable.d.ts +2 -0
  321. package/dist/esm/types/src/components/ui/Foldable/Foldable.types.d.ts +6 -0
  322. package/dist/esm/types/src/components/ui/Foldable/index.d.ts +2 -0
  323. package/dist/esm/types/src/components/ui/Gap/Gap.d.ts +1 -0
  324. package/dist/esm/types/src/components/ui/Image/Image.d.ts +3 -0
  325. package/dist/esm/types/src/components/ui/Image/Image.types.d.ts +5 -0
  326. package/dist/esm/types/src/components/ui/Image/index.d.ts +2 -0
  327. package/dist/esm/types/src/components/ui/ImageWithFallback/ImageWithFallback.d.ts +2 -0
  328. package/dist/esm/types/src/components/ui/ImageWithFallback/ImageWithFallback.types.d.ts +5 -0
  329. package/dist/esm/types/src/components/ui/ImageWithFallback/index.d.ts +2 -0
  330. package/dist/esm/types/src/components/ui/InfoIconTooltip/InfoIconTooltip.d.ts +3 -0
  331. package/dist/esm/types/src/components/ui/Input/Input.d.ts +11 -0
  332. package/dist/esm/types/src/components/ui/Input/Input.types.d.ts +9 -0
  333. package/dist/esm/types/src/components/ui/Input/index.d.ts +2 -0
  334. package/dist/esm/types/src/components/ui/InteractionOverlay/InteractionOverlay.d.ts +6 -0
  335. package/dist/esm/types/src/components/ui/InteractiveContent/InteractiveContent.d.ts +6 -0
  336. package/dist/esm/types/src/components/ui/InteractiveContent/index.d.ts +1 -0
  337. package/dist/esm/types/src/components/ui/Label/Label.d.ts +3 -0
  338. package/dist/esm/types/src/components/ui/Label/Label.types.d.ts +3 -0
  339. package/dist/esm/types/src/components/ui/Label/index.d.ts +2 -0
  340. package/dist/esm/types/src/components/ui/LabelWithId/AltKeyProvider.d.ts +3 -0
  341. package/dist/esm/types/src/components/ui/LabelWithId/LabelWithId.d.ts +2 -0
  342. package/dist/esm/types/src/components/ui/LabelWithId/LabelWithId.types.d.ts +5 -0
  343. package/dist/esm/types/src/components/ui/LabelWithId/index.d.ts +3 -0
  344. package/dist/esm/types/src/components/ui/LabeledInput/LabeledInput.d.ts +12 -0
  345. package/dist/esm/types/src/components/ui/LabledCheckbox/LabledCheckbox.d.ts +6 -0
  346. package/dist/esm/types/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.d.ts +2 -0
  347. package/dist/esm/types/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.types.d.ts +4 -0
  348. package/dist/esm/types/src/components/ui/LegacyPlatformLink/index.d.ts +2 -0
  349. package/dist/esm/types/src/components/ui/Logo/Logo.d.ts +2 -0
  350. package/dist/esm/types/src/components/ui/Logo/Logo.types.d.ts +7 -0
  351. package/dist/esm/types/src/components/ui/Logo/index.d.ts +2 -0
  352. package/dist/esm/types/src/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.d.ts +2 -0
  353. package/dist/esm/types/src/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.types.d.ts +18 -0
  354. package/dist/esm/types/src/components/ui/MobileAdaptiveSelector/index.d.ts +2 -0
  355. package/dist/esm/types/src/components/ui/NumberControl/NumberControl.d.ts +2 -0
  356. package/dist/esm/types/src/components/ui/NumberControl/NumberControl.types.d.ts +7 -0
  357. package/dist/esm/types/src/components/ui/NumberControl/index.d.ts +2 -0
  358. package/dist/esm/types/src/components/ui/Page/AppShell/AppShell.d.ts +13 -0
  359. package/dist/esm/types/src/components/ui/Page/Breadcrumbs/Breadcrumbs.d.ts +15 -0
  360. package/dist/esm/types/src/components/ui/Page/Breadcrumbs/Breadcrumbs.types.d.ts +4 -0
  361. package/dist/esm/types/src/components/ui/Page/PageColumns/PageColumns.d.ts +5 -0
  362. package/dist/esm/types/src/components/ui/Page/PageContent/PageContent.d.ts +9 -0
  363. package/dist/esm/types/src/components/ui/Page/PageEmptyCanvas/PageEmptyCanvas.d.ts +6 -0
  364. package/dist/esm/types/src/components/ui/Page/PageFooter/PageFooter.d.ts +16 -0
  365. package/dist/esm/types/src/components/ui/Page/PageHeader/PageHeader.d.ts +11 -0
  366. package/dist/esm/types/src/components/ui/Page/PageScroll/PageScroll.d.ts +4 -0
  367. package/dist/esm/types/src/components/ui/Page/PageTabs/PageTabs.d.ts +14 -0
  368. package/dist/esm/types/src/components/ui/Page/PageXScroll/PageXScroll.d.ts +11 -0
  369. package/dist/esm/types/src/components/ui/Page/SectionHeader/SectionHeader.d.ts +2 -0
  370. package/dist/esm/types/src/components/ui/Page/SectionHeader/SectionHeader.types.d.ts +7 -0
  371. package/dist/esm/types/src/components/ui/Page/SectionHeader/index.d.ts +2 -0
  372. package/dist/esm/types/src/components/ui/Page/index.d.ts +13 -0
  373. package/dist/esm/types/src/components/ui/Page/pageContext.d.ts +4 -0
  374. package/dist/esm/types/src/components/ui/Progress/Progress.d.ts +3 -0
  375. package/dist/esm/types/src/components/ui/Progress/Progress.types.d.ts +3 -0
  376. package/dist/esm/types/src/components/ui/Progress/index.d.ts +2 -0
  377. package/dist/esm/types/src/components/ui/RegionCoords/RegionSelector.d.ts +2 -0
  378. package/dist/esm/types/src/components/ui/RegionCoords/RegionSelector.types.d.ts +13 -0
  379. package/dist/esm/types/src/components/ui/RegionCoords/index.d.ts +2 -0
  380. package/dist/esm/types/src/components/ui/Renamer/Renamer.d.ts +2 -0
  381. package/dist/esm/types/src/components/ui/Renamer/Renamer.types.d.ts +11 -0
  382. package/dist/esm/types/src/components/ui/Renamer/index.d.ts +2 -0
  383. package/dist/esm/types/src/components/ui/Select/Select.d.ts +13 -0
  384. package/dist/esm/types/src/components/ui/Select/Select.types.d.ts +20 -0
  385. package/dist/esm/types/src/components/ui/Select/index.d.ts +2 -0
  386. package/dist/esm/types/src/components/ui/Separator/Separator.d.ts +3 -0
  387. package/dist/esm/types/src/components/ui/Separator/Separator.types.d.ts +4 -0
  388. package/dist/esm/types/src/components/ui/Separator/index.d.ts +2 -0
  389. package/dist/esm/types/src/components/ui/Sheet/Sheet.d.ts +10 -0
  390. package/dist/esm/types/src/components/ui/Sheet/Sheet.types.d.ts +15 -0
  391. package/dist/esm/types/src/components/ui/Sheet/index.d.ts +2 -0
  392. package/dist/esm/types/src/components/ui/Sidebar/Sidebar.d.ts +93 -0
  393. package/dist/esm/types/src/components/ui/Skeleton/Skeleton.d.ts +3 -0
  394. package/dist/esm/types/src/components/ui/Skeleton/Skeleton.helpers.d.ts +7 -0
  395. package/dist/esm/types/src/components/ui/Skeleton/Skeleton.types.d.ts +8 -0
  396. package/dist/esm/types/src/components/ui/Skeleton/index.d.ts +2 -0
  397. package/dist/esm/types/src/components/ui/Slider/Slider.d.ts +3 -0
  398. package/dist/esm/types/src/components/ui/Slider/Slider.types.d.ts +4 -0
  399. package/dist/esm/types/src/components/ui/Slider/index.d.ts +2 -0
  400. package/dist/esm/types/src/components/ui/SmartTextTruncate/SmartTextTruncate.d.ts +3 -0
  401. package/dist/esm/types/src/components/ui/SmartTextTruncate/SmartTextTruncate.types.d.ts +4 -0
  402. package/dist/esm/types/src/components/ui/SmartTextTruncate/index.d.ts +2 -0
  403. package/dist/esm/types/src/components/ui/Sparkline/Sparkline.d.ts +3 -0
  404. package/dist/esm/types/src/components/ui/Sparkline/Sparkline.helpers.d.ts +9 -0
  405. package/dist/esm/types/src/components/ui/Sparkline/Sparkline.types.d.ts +16 -0
  406. package/dist/esm/types/src/components/ui/Sparkline/index.d.ts +2 -0
  407. package/dist/esm/types/src/components/ui/Switch/Switch.d.ts +3 -0
  408. package/dist/esm/types/src/components/ui/Switch/Switch.types.d.ts +4 -0
  409. package/dist/esm/types/src/components/ui/Switch/index.d.ts +2 -0
  410. package/dist/esm/types/src/components/ui/Table/Table.d.ts +13 -0
  411. package/dist/esm/types/src/components/ui/Table/Table.types.d.ts +19 -0
  412. package/dist/esm/types/src/components/ui/Table/index.d.ts +2 -0
  413. package/dist/esm/types/src/components/ui/Tabs/Tabs.d.ts +12 -0
  414. package/dist/esm/types/src/components/ui/Tabs/Tabs.types.d.ts +6 -0
  415. package/dist/esm/types/src/components/ui/Tabs/index.d.ts +2 -0
  416. package/dist/esm/types/src/components/ui/TextShimmer/TextShimmer.d.ts +5 -0
  417. package/dist/esm/types/src/components/ui/TextShimmer/TextShimmer.types.d.ts +8 -0
  418. package/dist/esm/types/src/components/ui/TextShimmer/index.d.ts +2 -0
  419. package/dist/esm/types/src/components/ui/TextWithDeferTooltip/TextWithDeferTooltip.d.ts +3 -0
  420. package/dist/esm/types/src/components/ui/TextWithDeferTooltip/TextWithDeferTooltip.types.d.ts +7 -0
  421. package/dist/esm/types/src/components/ui/TextWithDeferTooltip/index.d.ts +2 -0
  422. package/dist/esm/types/src/components/ui/TimeRangeControls/TimeRangeControls.constants.d.ts +1 -0
  423. package/dist/esm/types/src/components/ui/TimeRangeControls/TimeRangeControls.d.ts +11 -0
  424. package/dist/esm/types/src/components/ui/TimeRangeControls/TimeRangeControls.types.d.ts +2 -0
  425. package/dist/esm/types/src/components/ui/TimeRangeControls/index.d.ts +3 -0
  426. package/dist/esm/types/src/components/ui/Toggle/Toggle.d.ts +3 -0
  427. package/dist/esm/types/src/components/ui/Toggle/Toggle.types.d.ts +7 -0
  428. package/dist/esm/types/src/components/ui/Toggle/index.d.ts +2 -0
  429. package/dist/esm/types/src/components/ui/ToggleGroup/ToggleGroup.d.ts +4 -0
  430. package/dist/esm/types/src/components/ui/ToggleGroup/ToggleGroup.helpers.d.ts +6 -0
  431. package/dist/esm/types/src/components/ui/ToggleGroup/ToggleGroup.types.d.ts +32 -0
  432. package/dist/esm/types/src/components/ui/ToggleGroup/index.d.ts +2 -0
  433. package/dist/esm/types/src/components/ui/Tooltip/Tooltip.d.ts +6 -0
  434. package/dist/esm/types/src/components/ui/Tooltip/Tooltip.types.d.ts +13 -0
  435. package/dist/esm/types/src/components/ui/Tooltip/index.d.ts +2 -0
  436. package/dist/esm/types/src/components/ui/VimeoEmbed/VimeoEmbed.d.ts +3 -0
  437. package/dist/esm/types/src/components/ui/VimeoEmbed/VimeoEmbed.types.d.ts +9 -0
  438. package/dist/esm/types/src/components/ui/VimeoEmbed/index.d.ts +2 -0
  439. package/dist/esm/types/src/components/ui/icons/Github.d.ts +1 -0
  440. package/dist/esm/types/src/constants/dataset.d.ts +2 -0
  441. package/dist/esm/types/src/contexts/chat-context.d.ts +48 -0
  442. package/dist/esm/types/src/docs/App/App.d.ts +1 -0
  443. package/dist/esm/types/src/docs/App/ThemeToggle.d.ts +1 -0
  444. package/dist/esm/types/src/docs/DocPage.d.ts +1 -0
  445. package/dist/esm/types/src/docs/DocsShell.d.ts +1 -0
  446. package/dist/esm/types/src/docs/components/AppPageHeader/AppPageHeader.d.ts +8 -0
  447. package/dist/esm/types/src/docs/components/DocsSidebar/DocsSidebar.d.ts +1 -0
  448. package/dist/esm/types/src/docs/config/paths.d.ts +10 -0
  449. package/dist/esm/types/src/docs/contexts/theme-context.d.ts +8 -0
  450. package/dist/esm/types/src/docs/docsConstants.d.ts +4 -0
  451. package/dist/esm/types/src/docs/docsHeaderActions.d.ts +1 -0
  452. package/dist/esm/types/src/docs/index.d.ts +1 -0
  453. package/dist/esm/types/src/docs/lib/theme.d.ts +5 -0
  454. package/dist/esm/types/src/docs/pages/AnalysesSelectorPage.d.ts +1 -0
  455. package/dist/esm/types/src/docs/pages/AnalysisLineIconPage.d.ts +1 -0
  456. package/dist/esm/types/src/docs/pages/AvatarPage.d.ts +1 -0
  457. package/dist/esm/types/src/docs/pages/BadgePage.d.ts +1 -0
  458. package/dist/esm/types/src/docs/pages/BreadcrumbPage.d.ts +1 -0
  459. package/dist/esm/types/src/docs/pages/ButtonPage.d.ts +1 -0
  460. package/dist/esm/types/src/docs/pages/CardPage.d.ts +1 -0
  461. package/dist/esm/types/src/docs/pages/ChartAreaInteractivePage.d.ts +1 -0
  462. package/dist/esm/types/src/docs/pages/ChartPage.d.ts +1 -0
  463. package/dist/esm/types/src/docs/pages/ChatPage.d.ts +1 -0
  464. package/dist/esm/types/src/docs/pages/CheckboxPage.d.ts +1 -0
  465. package/dist/esm/types/src/docs/pages/DialogPage.d.ts +1 -0
  466. package/dist/esm/types/src/docs/pages/DrawerPage.d.ts +1 -0
  467. package/dist/esm/types/src/docs/pages/DropZonePage.d.ts +1 -0
  468. package/dist/esm/types/src/docs/pages/DropdownMenuPage.d.ts +1 -0
  469. package/dist/esm/types/src/docs/pages/FlickeringGridPage.d.ts +1 -0
  470. package/dist/esm/types/src/docs/pages/FoldablePage.d.ts +1 -0
  471. package/dist/esm/types/src/docs/pages/ImagePage.d.ts +1 -0
  472. package/dist/esm/types/src/docs/pages/ImageWithFallbackPage.d.ts +1 -0
  473. package/dist/esm/types/src/docs/pages/InputPage.d.ts +1 -0
  474. package/dist/esm/types/src/docs/pages/InteractiveContentPage.d.ts +1 -0
  475. package/dist/esm/types/src/docs/pages/LabelPage.d.ts +1 -0
  476. package/dist/esm/types/src/docs/pages/LabelWithIdPage.d.ts +1 -0
  477. package/dist/esm/types/src/docs/pages/LabeledInputPage.d.ts +1 -0
  478. package/dist/esm/types/src/docs/pages/LegacyPlatformLinkPage.d.ts +1 -0
  479. package/dist/esm/types/src/docs/pages/LogoPage.d.ts +1 -0
  480. package/dist/esm/types/src/docs/pages/MobileAdaptiveSelectorPage.d.ts +1 -0
  481. package/dist/esm/types/src/docs/pages/NumberControlPage.d.ts +1 -0
  482. package/dist/esm/types/src/docs/pages/PagePage.d.ts +1 -0
  483. package/dist/esm/types/src/docs/pages/ProgressPage.d.ts +1 -0
  484. package/dist/esm/types/src/docs/pages/RegionCoordsPage.d.ts +1 -0
  485. package/dist/esm/types/src/docs/pages/RenamerPage.d.ts +1 -0
  486. package/dist/esm/types/src/docs/pages/SelectPage.d.ts +1 -0
  487. package/dist/esm/types/src/docs/pages/SeparatorPage.d.ts +1 -0
  488. package/dist/esm/types/src/docs/pages/SheetPage.d.ts +1 -0
  489. package/dist/esm/types/src/docs/pages/SidebarPage.d.ts +1 -0
  490. package/dist/esm/types/src/docs/pages/SkeletonPage.d.ts +1 -0
  491. package/dist/esm/types/src/docs/pages/SliderPage.d.ts +1 -0
  492. package/dist/esm/types/src/docs/pages/SmartTextTruncatePage.d.ts +1 -0
  493. package/dist/esm/types/src/docs/pages/SparklinePage.d.ts +1 -0
  494. package/dist/esm/types/src/docs/pages/SwitchPage.d.ts +1 -0
  495. package/dist/esm/types/src/docs/pages/TablePage.d.ts +1 -0
  496. package/dist/esm/types/src/docs/pages/TabsPage.d.ts +1 -0
  497. package/dist/esm/types/src/docs/pages/TextShimmerPage.d.ts +1 -0
  498. package/dist/esm/types/src/docs/pages/TextWithDeferTooltipPage.d.ts +1 -0
  499. package/dist/esm/types/src/docs/pages/TimeRangeControlsPage.d.ts +1 -0
  500. package/dist/esm/types/src/docs/pages/ToggleGroupPage.d.ts +1 -0
  501. package/dist/esm/types/src/docs/pages/TogglePage.d.ts +1 -0
  502. package/dist/esm/types/src/docs/pages/TooltipPage.d.ts +1 -0
  503. package/dist/esm/types/src/docs/pages/VimeoEmbedPage.d.ts +1 -0
  504. package/dist/esm/types/src/docs/registry.d.ts +14 -0
  505. package/dist/esm/types/src/hooks/panelWidth.d.ts +20 -0
  506. package/dist/esm/types/src/hooks/useClickOutside.d.ts +10 -0
  507. package/dist/esm/types/src/hooks/useDebounceCallback.d.ts +3 -0
  508. package/dist/esm/types/src/hooks/useDragElem.d.ts +15 -0
  509. package/dist/esm/types/src/hooks/useEvent.d.ts +11 -0
  510. package/dist/esm/types/src/hooks/useIsMobile.d.ts +1 -0
  511. package/dist/esm/types/src/hooks/useIsTouchDevice.d.ts +6 -0
  512. package/dist/esm/types/src/hooks/useQueryParams.d.ts +6 -0
  513. package/dist/esm/types/src/hooks/useShellWidthObserver.d.ts +1 -0
  514. package/dist/esm/types/src/hooks/useThrottledCallback.d.ts +5 -0
  515. package/dist/esm/types/src/index.d.ts +54 -0
  516. package/dist/esm/types/src/lib/cookie-consent/cookie-consent.d.ts +20 -0
  517. package/dist/esm/types/src/lib/cookie.d.ts +2 -0
  518. package/dist/esm/types/src/lib/dashboard-spec/stripJsonDashboardFences.d.ts +2 -0
  519. package/dist/esm/types/src/lib/logger.d.ts +9 -0
  520. package/dist/esm/types/src/tools/debounce.d.ts +6 -0
  521. package/dist/esm/types/src/tools/env.d.ts +2 -0
  522. package/dist/esm/types/src/types/chat-api.types.d.ts +5 -0
  523. package/dist/esm/types/src/types/forecast-data.d.ts +8 -0
  524. package/dist/esm/types/src/utils/analysisDate.d.ts +7 -0
  525. package/dist/esm/types/src/utils/chartConnectionPoint.d.ts +61 -0
  526. package/dist/esm/types/src/utils/chartRenderQueue.d.ts +10 -0
  527. package/dist/esm/types/src/utils/chatPresetMerge.d.ts +2 -0
  528. package/dist/esm/types/src/utils/datasetApplicationLink.d.ts +7 -0
  529. package/dist/esm/types/src/utils/quantileFormat.d.ts +3 -0
  530. package/dist/esm/types/tests/chartConnectionPoint.test.d.ts +1 -0
  531. package/dist/esm/types/tests/smoke.test.d.ts +1 -0
  532. package/dist/esm/utils/analysisDate.js +16 -0
  533. package/dist/esm/utils/chartConnectionPoint.js +105 -0
  534. package/dist/esm/utils/chartRenderQueue.js +49 -0
  535. package/dist/esm/utils/chatPresetMerge.js +29 -0
  536. package/dist/esm/utils/datasetApplicationLink.js +21 -0
  537. package/dist/esm/utils/quantileFormat.js +32 -0
  538. package/package.json +172 -0
  539. package/src/components/ui/AnalysesSelector/AnalysesSelector.styl +68 -0
  540. package/src/components/ui/AnalysesSelector/AnalysesSelector.styl.d.ts +19 -0
  541. package/src/components/ui/AnalysesSelector/AnalysesSelector.tsx +369 -0
  542. package/src/components/ui/AnalysesSelector/AnalysesSelector.types.ts +41 -0
  543. package/src/components/ui/AnalysesSelector/index.ts +5 -0
  544. package/src/components/ui/AnalysisLineIcon/AnalysisLineIcon.styl +22 -0
  545. package/src/components/ui/AnalysisLineIcon/AnalysisLineIcon.styl.d.ts +9 -0
  546. package/src/components/ui/AnalysisLineIcon/AnalysisLineIcon.tsx +47 -0
  547. package/src/components/ui/AnalysisLineIcon/index.ts +5 -0
  548. package/src/components/ui/AppHeader/AppHeader.styl +73 -0
  549. package/src/components/ui/AppHeader/AppHeader.styl.d.ts +13 -0
  550. package/src/components/ui/AppHeader/AppHeader.tsx +37 -0
  551. package/src/components/ui/AppHeader/appChromeAnchors.ts +2 -0
  552. package/src/components/ui/AppHeader/index.ts +3 -0
  553. package/src/components/ui/Avatar/Avatar.styl +31 -0
  554. package/src/components/ui/Avatar/Avatar.styl.d.ts +12 -0
  555. package/src/components/ui/Avatar/Avatar.tsx +42 -0
  556. package/src/components/ui/Avatar/Avatar.types.ts +17 -0
  557. package/src/components/ui/Avatar/index.ts +6 -0
  558. package/src/components/ui/Badge/Badge.styl +95 -0
  559. package/src/components/ui/Badge/Badge.styl.d.ts +13 -0
  560. package/src/components/ui/Badge/Badge.tsx +31 -0
  561. package/src/components/ui/Badge/Badge.types.ts +7 -0
  562. package/src/components/ui/Badge/index.ts +2 -0
  563. package/src/components/ui/Breadcrumb/Breadcrumb.styl +49 -0
  564. package/src/components/ui/Breadcrumb/Breadcrumb.styl.d.ts +12 -0
  565. package/src/components/ui/Breadcrumb/Breadcrumb.tsx +107 -0
  566. package/src/components/ui/Breadcrumb/Breadcrumb.types.ts +15 -0
  567. package/src/components/ui/Breadcrumb/index.ts +10 -0
  568. package/src/components/ui/Button/Button.styl +131 -0
  569. package/src/components/ui/Button/Button.styl.d.ts +17 -0
  570. package/src/components/ui/Button/Button.tsx +35 -0
  571. package/src/components/ui/Button/Button.types.ts +15 -0
  572. package/src/components/ui/Button/index.ts +2 -0
  573. package/src/components/ui/Card/Card.styl +108 -0
  574. package/src/components/ui/Card/Card.styl.d.ts +21 -0
  575. package/src/components/ui/Card/Card.tsx +199 -0
  576. package/src/components/ui/Card/Card.types.ts +35 -0
  577. package/src/components/ui/Card/index.ts +11 -0
  578. package/src/components/ui/Chart/Chart.context.ts +14 -0
  579. package/src/components/ui/Chart/Chart.helpers.ts +14 -0
  580. package/src/components/ui/Chart/Chart.styl +184 -0
  581. package/src/components/ui/Chart/Chart.styl.d.ts +22 -0
  582. package/src/components/ui/Chart/Chart.tsx +23 -0
  583. package/src/components/ui/Chart/Chart.types.ts +46 -0
  584. package/src/components/ui/Chart/chart-types.csv +33 -0
  585. package/src/components/ui/Chart/chartForecastVisualization.constants.ts +22 -0
  586. package/src/components/ui/Chart/chartForecastVisualization.types.ts +97 -0
  587. package/src/components/ui/Chart/components/ActiveDotsLayer/ActiveDotsLayer.styl +16 -0
  588. package/src/components/ui/Chart/components/ActiveDotsLayer/ActiveDotsLayer.styl.d.ts +8 -0
  589. package/src/components/ui/Chart/components/ActiveDotsLayer/ActiveDotsLayer.tsx +32 -0
  590. package/src/components/ui/Chart/components/BaseChartWrapper.styl +96 -0
  591. package/src/components/ui/Chart/components/BaseChartWrapper.styl.d.ts +20 -0
  592. package/src/components/ui/Chart/components/BaseChartWrapper.tsx +907 -0
  593. package/src/components/ui/Chart/components/ChartAxes.tsx +140 -0
  594. package/src/components/ui/Chart/components/ChartContainer.tsx +73 -0
  595. package/src/components/ui/Chart/components/ChartGrid.tsx +7 -0
  596. package/src/components/ui/Chart/components/ChartLegendContent.tsx +48 -0
  597. package/src/components/ui/Chart/components/ChartLegendItem.tsx +43 -0
  598. package/src/components/ui/Chart/components/ChartTooltipContent.tsx +140 -0
  599. package/src/components/ui/Chart/components/ChartTooltipItem.tsx +114 -0
  600. package/src/components/ui/Chart/components/ConfidenceBands.tsx +49 -0
  601. package/src/components/ui/Chart/components/CustomChartLegend/CustomChartLegend.styl +102 -0
  602. package/src/components/ui/Chart/components/CustomChartLegend/CustomChartLegend.styl.d.ts +18 -0
  603. package/src/components/ui/Chart/components/CustomChartLegend/CustomChartLegend.tsx +152 -0
  604. package/src/components/ui/Chart/components/ForecastBoundaries.tsx +71 -0
  605. package/src/components/ui/Chart/components/ForecastLine.tsx +68 -0
  606. package/src/components/ui/Chart/components/HistoricalLine.tsx +67 -0
  607. package/src/components/ui/Chart/components/LegendSvg/LegendSvg.tsx +61 -0
  608. package/src/components/ui/Chart/components/QuantileBands.tsx +73 -0
  609. package/src/components/ui/Chart/components/index.ts +12 -0
  610. package/src/components/ui/Chart/hooks/useChartAnimation.ts +17 -0
  611. package/src/components/ui/Chart/hooks/useChartColors.ts +24 -0
  612. package/src/components/ui/Chart/hooks/useLegendState.ts +31 -0
  613. package/src/components/ui/Chart/index.ts +2 -0
  614. package/src/components/ui/Chart/tools/formatters.ts +88 -0
  615. package/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.ts +168 -0
  616. package/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.styl +66 -0
  617. package/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.styl.d.ts +14 -0
  618. package/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.tsx +230 -0
  619. package/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.types.ts +68 -0
  620. package/src/components/ui/ChartAreaInteractive/ChartLines.tsx +204 -0
  621. package/src/components/ui/ChartAreaInteractive/index.ts +3 -0
  622. package/src/components/ui/ChartAreaInteractive/overlays/DraggingButton.styl +29 -0
  623. package/src/components/ui/ChartAreaInteractive/overlays/DraggingButton.styl.d.ts +8 -0
  624. package/src/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.hooks.ts +211 -0
  625. package/src/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.styl +17 -0
  626. package/src/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.styl.d.ts +8 -0
  627. package/src/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.tsx +402 -0
  628. package/src/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.styl +107 -0
  629. package/src/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.styl.d.ts +15 -0
  630. package/src/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.tsx +256 -0
  631. package/src/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.hooks.ts +185 -0
  632. package/src/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.styl +21 -0
  633. package/src/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.styl.d.ts +8 -0
  634. package/src/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.tsx +206 -0
  635. package/src/components/ui/ChartAreaInteractive/overlays/index.ts +3 -0
  636. package/src/components/ui/ChartAreaInteractive/overlays/useChartYRange.ts +209 -0
  637. package/src/components/ui/ChartAreaInteractive/overlays/useForecastColor.ts +49 -0
  638. package/src/components/ui/ChartAreaInteractive/overlays/useQuantileBands.ts +248 -0
  639. package/src/components/ui/Chat/Chat.styl +7 -0
  640. package/src/components/ui/Chat/Chat.styl.d.ts +8 -0
  641. package/src/components/ui/Chat/Chat.tsx +22 -0
  642. package/src/components/ui/Chat/Chat.types.ts +88 -0
  643. package/src/components/ui/Chat/ChatChrome/ChatChrome.styl +125 -0
  644. package/src/components/ui/Chat/ChatChrome/ChatChrome.styl.d.ts +21 -0
  645. package/src/components/ui/Chat/ChatChrome/ChatChrome.tsx +188 -0
  646. package/src/components/ui/Chat/ChatChrome/ChatChrome.types.ts +50 -0
  647. package/src/components/ui/Chat/ChatChrome/index.ts +5 -0
  648. package/src/components/ui/Chat/ChatEmptyState/ChatEmptyState.styl +20 -0
  649. package/src/components/ui/Chat/ChatEmptyState/ChatEmptyState.styl.d.ts +8 -0
  650. package/src/components/ui/Chat/ChatEmptyState/ChatEmptyState.tsx +16 -0
  651. package/src/components/ui/Chat/ChatEmptyState/ChatEmptyState.types.ts +5 -0
  652. package/src/components/ui/Chat/ChatEmptyState/sparkles.svg +22 -0
  653. package/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.tsx +405 -0
  654. package/src/components/ui/Chat/ChatMessage/AgentMessageContent.tsx +234 -0
  655. package/src/components/ui/Chat/ChatMessage/ChatDatasetApplicationLink.tsx +38 -0
  656. package/src/components/ui/Chat/ChatMessage/ChatMessage.styl +184 -0
  657. package/src/components/ui/Chat/ChatMessage/ChatMessage.styl.d.ts +22 -0
  658. package/src/components/ui/Chat/ChatMessage/ChatMessage.tsx +52 -0
  659. package/src/components/ui/Chat/ChatMessage/MessageChart.tsx +32 -0
  660. package/src/components/ui/Chat/ChatMessage/icons/DocIcon.tsx +7 -0
  661. package/src/components/ui/Chat/ChatMessage/icons/XlsIcon.tsx +7 -0
  662. package/src/components/ui/Chat/ChatMessage/icons/doc.png +0 -0
  663. package/src/components/ui/Chat/ChatMessage/icons/doc.svg +1 -0
  664. package/src/components/ui/Chat/ChatMessage/icons/xls.png +0 -0
  665. package/src/components/ui/Chat/ChatMessage/icons/xls.svg +1 -0
  666. package/src/components/ui/Chat/ChatMessage/index.ts +1 -0
  667. package/src/components/ui/Chat/ChatMessage/presetScript.ts +282 -0
  668. package/src/components/ui/Chat/ChatPresets/ChatPresets.styl +41 -0
  669. package/src/components/ui/Chat/ChatPresets/ChatPresets.styl.d.ts +11 -0
  670. package/src/components/ui/Chat/ChatPresets/ChatPresets.tsx +59 -0
  671. package/src/components/ui/Chat/ChatPresets/index.ts +2 -0
  672. package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl +84 -0
  673. package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl.d.ts +13 -0
  674. package/src/components/ui/Chat/ChatPrompt/ChatPrompt.tsx +103 -0
  675. package/src/components/ui/Chat/ChatPrompt/index.ts +1 -0
  676. package/src/components/ui/Chat/ChatSheet/ChatSelector.tsx +65 -0
  677. package/src/components/ui/Chat/ChatSheet/ChatSettings.styl +35 -0
  678. package/src/components/ui/Chat/ChatSheet/ChatSettings.styl.d.ts +10 -0
  679. package/src/components/ui/Chat/ChatSheet/ChatSettings.tsx +61 -0
  680. package/src/components/ui/Chat/ChatSheet/ChatSheet.styl.d.ts +19 -0
  681. package/src/components/ui/Chat/ChatSheet/ChatSheet.tsx +91 -0
  682. package/src/components/ui/Chat/ChatSheet/ChatSidebar.styl.d.ts +17 -0
  683. package/src/components/ui/Chat/ChatSheet/index.ts +7 -0
  684. package/src/components/ui/Chat/ChatSheet/loader.svg +14 -0
  685. package/src/components/ui/Chat/ChatSheet/useChatPanelChromeModel.tsx +1024 -0
  686. package/src/components/ui/Chat/chat-preset-utils.ts +27 -0
  687. package/src/components/ui/Chat/index.ts +24 -0
  688. package/src/components/ui/Checkbox/Checkbox.styl +42 -0
  689. package/src/components/ui/Checkbox/Checkbox.styl.d.ts +9 -0
  690. package/src/components/ui/Checkbox/Checkbox.tsx +26 -0
  691. package/src/components/ui/Checkbox/Checkbox.types.ts +5 -0
  692. package/src/components/ui/Checkbox/index.ts +2 -0
  693. package/src/components/ui/Dialog/Dialog.styl +145 -0
  694. package/src/components/ui/Dialog/Dialog.styl.d.ts +21 -0
  695. package/src/components/ui/Dialog/Dialog.tsx +233 -0
  696. package/src/components/ui/Dialog/Dialog.types.ts +27 -0
  697. package/src/components/ui/Dialog/index.ts +3 -0
  698. package/src/components/ui/DraggingButton/DraggingButton.styl +74 -0
  699. package/src/components/ui/DraggingButton/DraggingButton.styl.d.ts +11 -0
  700. package/src/components/ui/DraggingButton/DraggingButton.tsx +55 -0
  701. package/src/components/ui/Drawer/Drawer.styl +123 -0
  702. package/src/components/ui/Drawer/Drawer.styl.d.ts +15 -0
  703. package/src/components/ui/Drawer/Drawer.tsx +112 -0
  704. package/src/components/ui/Drawer/Drawer.types.ts +35 -0
  705. package/src/components/ui/Drawer/index.ts +13 -0
  706. package/src/components/ui/DropZone/DropZone.styl +66 -0
  707. package/src/components/ui/DropZone/DropZone.styl.d.ts +13 -0
  708. package/src/components/ui/DropZone/DropZone.tsx +188 -0
  709. package/src/components/ui/DropdownMenu/DropdownMenu.styl +331 -0
  710. package/src/components/ui/DropdownMenu/DropdownMenu.styl.d.ts +27 -0
  711. package/src/components/ui/DropdownMenu/DropdownMenu.tsx +231 -0
  712. package/src/components/ui/DropdownMenu/DropdownMenu.types.ts +68 -0
  713. package/src/components/ui/DropdownMenu/index.ts +18 -0
  714. package/src/components/ui/FlickeringGrid/FlickeringGrid.styl +12 -0
  715. package/src/components/ui/FlickeringGrid/FlickeringGrid.styl.d.ts +7 -0
  716. package/src/components/ui/FlickeringGrid/FlickeringGrid.tsx +10 -0
  717. package/src/components/ui/FlickeringGrid/FlickeringGrid.types.ts +10 -0
  718. package/src/components/ui/FlickeringGrid/bg.svg +194 -0
  719. package/src/components/ui/FlickeringGrid/index.ts +2 -0
  720. package/src/components/ui/Foldable/Foldable.styl +48 -0
  721. package/src/components/ui/Foldable/Foldable.styl.d.ts +13 -0
  722. package/src/components/ui/Foldable/Foldable.tsx +38 -0
  723. package/src/components/ui/Foldable/Foldable.types.ts +6 -0
  724. package/src/components/ui/Foldable/index.ts +2 -0
  725. package/src/components/ui/Gap/Gap.styl +2 -0
  726. package/src/components/ui/Gap/Gap.styl.d.ts +7 -0
  727. package/src/components/ui/Gap/Gap.tsx +3 -0
  728. package/src/components/ui/Image/Image.styl +27 -0
  729. package/src/components/ui/Image/Image.styl.d.ts +10 -0
  730. package/src/components/ui/Image/Image.tsx +31 -0
  731. package/src/components/ui/Image/Image.types.ts +6 -0
  732. package/src/components/ui/Image/index.ts +2 -0
  733. package/src/components/ui/ImageWithFallback/ImageWithFallback.tsx +32 -0
  734. package/src/components/ui/ImageWithFallback/ImageWithFallback.types.ts +9 -0
  735. package/src/components/ui/ImageWithFallback/index.ts +2 -0
  736. package/src/components/ui/InfoIconTooltip/InfoIconTooltip.styl +5 -0
  737. package/src/components/ui/InfoIconTooltip/InfoIconTooltip.styl.d.ts +7 -0
  738. package/src/components/ui/InfoIconTooltip/InfoIconTooltip.tsx +21 -0
  739. package/src/components/ui/Input/Input.styl +67 -0
  740. package/src/components/ui/Input/Input.styl.d.ts +11 -0
  741. package/src/components/ui/Input/Input.tsx +42 -0
  742. package/src/components/ui/Input/Input.types.ts +11 -0
  743. package/src/components/ui/Input/index.ts +2 -0
  744. package/src/components/ui/InteractionOverlay/InteractionOverlay.styl +19 -0
  745. package/src/components/ui/InteractionOverlay/InteractionOverlay.styl.d.ts +8 -0
  746. package/src/components/ui/InteractionOverlay/InteractionOverlay.tsx +55 -0
  747. package/src/components/ui/InteractiveContent/InteractiveContent.styl +3 -0
  748. package/src/components/ui/InteractiveContent/InteractiveContent.styl.d.ts +7 -0
  749. package/src/components/ui/InteractiveContent/InteractiveContent.tsx +21 -0
  750. package/src/components/ui/InteractiveContent/index.ts +1 -0
  751. package/src/components/ui/Label/Label.styl +16 -0
  752. package/src/components/ui/Label/Label.styl.d.ts +7 -0
  753. package/src/components/ui/Label/Label.tsx +18 -0
  754. package/src/components/ui/Label/Label.types.ts +5 -0
  755. package/src/components/ui/Label/index.ts +2 -0
  756. package/src/components/ui/LabelWithId/AltKeyProvider.tsx +22 -0
  757. package/src/components/ui/LabelWithId/LabelWithId.styl +14 -0
  758. package/src/components/ui/LabelWithId/LabelWithId.styl.d.ts +8 -0
  759. package/src/components/ui/LabelWithId/LabelWithId.tsx +12 -0
  760. package/src/components/ui/LabelWithId/LabelWithId.types.ts +5 -0
  761. package/src/components/ui/LabelWithId/index.ts +3 -0
  762. package/src/components/ui/LabeledInput/LabeledInput.styl +32 -0
  763. package/src/components/ui/LabeledInput/LabeledInput.styl.d.ts +14 -0
  764. package/src/components/ui/LabeledInput/LabeledInput.tsx +53 -0
  765. package/src/components/ui/LabledCheckbox/LabledCheckbox.tsx +21 -0
  766. package/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl +10 -0
  767. package/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl.d.ts +7 -0
  768. package/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.tsx +18 -0
  769. package/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.types.ts +5 -0
  770. package/src/components/ui/LegacyPlatformLink/index.ts +2 -0
  771. package/src/components/ui/Logo/Logo.styl +39 -0
  772. package/src/components/ui/Logo/Logo.styl.d.ts +12 -0
  773. package/src/components/ui/Logo/Logo.tsx +18 -0
  774. package/src/components/ui/Logo/Logo.types.ts +12 -0
  775. package/src/components/ui/Logo/index.ts +5 -0
  776. package/src/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.styl +32 -0
  777. package/src/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.styl.d.ts +13 -0
  778. package/src/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.tsx +117 -0
  779. package/src/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.types.ts +31 -0
  780. package/src/components/ui/MobileAdaptiveSelector/index.ts +8 -0
  781. package/src/components/ui/NumberControl/NumberControl.styl +11 -0
  782. package/src/components/ui/NumberControl/NumberControl.styl.d.ts +8 -0
  783. package/src/components/ui/NumberControl/NumberControl.tsx +58 -0
  784. package/src/components/ui/NumberControl/NumberControl.types.ts +10 -0
  785. package/src/components/ui/NumberControl/index.ts +2 -0
  786. package/src/components/ui/Page/AppShell/AppShell.styl +36 -0
  787. package/src/components/ui/Page/AppShell/AppShell.styl.d.ts +9 -0
  788. package/src/components/ui/Page/AppShell/AppShell.tsx +38 -0
  789. package/src/components/ui/Page/Breadcrumbs/Breadcrumbs.styl +33 -0
  790. package/src/components/ui/Page/Breadcrumbs/Breadcrumbs.styl.d.ts +10 -0
  791. package/src/components/ui/Page/Breadcrumbs/Breadcrumbs.tsx +71 -0
  792. package/src/components/ui/Page/Breadcrumbs/Breadcrumbs.types.ts +6 -0
  793. package/src/components/ui/Page/PageColumns/PageColumns.styl +28 -0
  794. package/src/components/ui/Page/PageColumns/PageColumns.styl.d.ts +11 -0
  795. package/src/components/ui/Page/PageColumns/PageColumns.tsx +31 -0
  796. package/src/components/ui/Page/PageContent/PageContent.styl +17 -0
  797. package/src/components/ui/Page/PageContent/PageContent.styl.d.ts +8 -0
  798. package/src/components/ui/Page/PageContent/PageContent.tsx +34 -0
  799. package/src/components/ui/Page/PageEmptyCanvas/PageEmptyCanvas.styl +28 -0
  800. package/src/components/ui/Page/PageEmptyCanvas/PageEmptyCanvas.styl.d.ts +9 -0
  801. package/src/components/ui/Page/PageEmptyCanvas/PageEmptyCanvas.tsx +21 -0
  802. package/src/components/ui/Page/PageFooter/DebugPanel/DebugPanel.styl.d.ts +9 -0
  803. package/src/components/ui/Page/PageFooter/PageFooter.styl +69 -0
  804. package/src/components/ui/Page/PageFooter/PageFooter.styl.d.ts +12 -0
  805. package/src/components/ui/Page/PageFooter/PageFooter.tsx +68 -0
  806. package/src/components/ui/Page/PageFooter/treads.svg +3 -0
  807. package/src/components/ui/Page/PageHeader/PageHeader.styl +185 -0
  808. package/src/components/ui/Page/PageHeader/PageHeader.styl.d.ts +17 -0
  809. package/src/components/ui/Page/PageHeader/PageHeader.tsx +67 -0
  810. package/src/components/ui/Page/PageScroll/PageScroll.styl +32 -0
  811. package/src/components/ui/Page/PageScroll/PageScroll.styl.d.ts +9 -0
  812. package/src/components/ui/Page/PageScroll/PageScroll.tsx +69 -0
  813. package/src/components/ui/Page/PageTabs/PageTabs.styl +20 -0
  814. package/src/components/ui/Page/PageTabs/PageTabs.styl.d.ts +11 -0
  815. package/src/components/ui/Page/PageTabs/PageTabs.tsx +64 -0
  816. package/src/components/ui/Page/PageXScroll/PageXScroll.styl +16 -0
  817. package/src/components/ui/Page/PageXScroll/PageXScroll.styl.d.ts +9 -0
  818. package/src/components/ui/Page/PageXScroll/PageXScroll.tsx +70 -0
  819. package/src/components/ui/Page/SectionHeader/SectionHeader.styl +36 -0
  820. package/src/components/ui/Page/SectionHeader/SectionHeader.styl.d.ts +12 -0
  821. package/src/components/ui/Page/SectionHeader/SectionHeader.tsx +26 -0
  822. package/src/components/ui/Page/SectionHeader/SectionHeader.types.ts +8 -0
  823. package/src/components/ui/Page/SectionHeader/index.ts +2 -0
  824. package/src/components/ui/Page/index.ts +18 -0
  825. package/src/components/ui/Page/pageContext.ts +9 -0
  826. package/src/components/ui/Progress/Progress.styl +22 -0
  827. package/src/components/ui/Progress/Progress.styl.d.ts +8 -0
  828. package/src/components/ui/Progress/Progress.tsx +26 -0
  829. package/src/components/ui/Progress/Progress.types.ts +5 -0
  830. package/src/components/ui/Progress/index.ts +2 -0
  831. package/src/components/ui/RegionCoords/RegionSelector.styl +21 -0
  832. package/src/components/ui/RegionCoords/RegionSelector.styl.d.ts +9 -0
  833. package/src/components/ui/RegionCoords/RegionSelector.tsx +56 -0
  834. package/src/components/ui/RegionCoords/RegionSelector.types.ts +10 -0
  835. package/src/components/ui/RegionCoords/index.ts +2 -0
  836. package/src/components/ui/Renamer/Renamer.styl +22 -0
  837. package/src/components/ui/Renamer/Renamer.styl.d.ts +11 -0
  838. package/src/components/ui/Renamer/Renamer.tsx +127 -0
  839. package/src/components/ui/Renamer/Renamer.types.ts +11 -0
  840. package/src/components/ui/Renamer/index.ts +2 -0
  841. package/src/components/ui/Select/Select.styl +321 -0
  842. package/src/components/ui/Select/Select.styl.d.ts +31 -0
  843. package/src/components/ui/Select/Select.tsx +169 -0
  844. package/src/components/ui/Select/Select.types.ts +40 -0
  845. package/src/components/ui/Select/index.ts +2 -0
  846. package/src/components/ui/Separator/Separator.styl +11 -0
  847. package/src/components/ui/Separator/Separator.styl.d.ts +7 -0
  848. package/src/components/ui/Separator/Separator.tsx +25 -0
  849. package/src/components/ui/Separator/Separator.types.ts +7 -0
  850. package/src/components/ui/Separator/index.ts +2 -0
  851. package/src/components/ui/Sheet/Sheet.styl +238 -0
  852. package/src/components/ui/Sheet/Sheet.styl.d.ts +28 -0
  853. package/src/components/ui/Sheet/Sheet.tsx +129 -0
  854. package/src/components/ui/Sheet/Sheet.types.ts +22 -0
  855. package/src/components/ui/Sheet/index.ts +11 -0
  856. package/src/components/ui/Sidebar/Sidebar.styl +710 -0
  857. package/src/components/ui/Sidebar/Sidebar.styl.d.ts +48 -0
  858. package/src/components/ui/Sidebar/Sidebar.tsx +971 -0
  859. package/src/components/ui/Skeleton/Skeleton.helpers.ts +13 -0
  860. package/src/components/ui/Skeleton/Skeleton.styl +31 -0
  861. package/src/components/ui/Skeleton/Skeleton.styl.d.ts +14 -0
  862. package/src/components/ui/Skeleton/Skeleton.tsx +21 -0
  863. package/src/components/ui/Skeleton/Skeleton.types.ts +10 -0
  864. package/src/components/ui/Skeleton/index.ts +2 -0
  865. package/src/components/ui/Slider/Slider.styl +77 -0
  866. package/src/components/ui/Slider/Slider.styl.d.ts +11 -0
  867. package/src/components/ui/Slider/Slider.tsx +189 -0
  868. package/src/components/ui/Slider/Slider.types.ts +7 -0
  869. package/src/components/ui/Slider/index.ts +2 -0
  870. package/src/components/ui/SmartTextTruncate/SmartTextTruncate.tsx +141 -0
  871. package/src/components/ui/SmartTextTruncate/SmartTextTruncate.types.ts +5 -0
  872. package/src/components/ui/SmartTextTruncate/index.ts +2 -0
  873. package/src/components/ui/Sparkline/Sparkline.helpers.ts +26 -0
  874. package/src/components/ui/Sparkline/Sparkline.styl +18 -0
  875. package/src/components/ui/Sparkline/Sparkline.styl.d.ts +9 -0
  876. package/src/components/ui/Sparkline/Sparkline.tsx +80 -0
  877. package/src/components/ui/Sparkline/Sparkline.types.ts +18 -0
  878. package/src/components/ui/Sparkline/index.ts +2 -0
  879. package/src/components/ui/Switch/Switch.styl +63 -0
  880. package/src/components/ui/Switch/Switch.styl.d.ts +11 -0
  881. package/src/components/ui/Switch/Switch.tsx +40 -0
  882. package/src/components/ui/Switch/Switch.types.ts +7 -0
  883. package/src/components/ui/Switch/index.ts +2 -0
  884. package/src/components/ui/Table/Table.styl +119 -0
  885. package/src/components/ui/Table/Table.styl.d.ts +20 -0
  886. package/src/components/ui/Table/Table.tsx +114 -0
  887. package/src/components/ui/Table/Table.types.ts +14 -0
  888. package/src/components/ui/Table/index.ts +11 -0
  889. package/src/components/ui/Tabs/Tabs.styl +117 -0
  890. package/src/components/ui/Tabs/Tabs.styl.d.ts +14 -0
  891. package/src/components/ui/Tabs/Tabs.tsx +73 -0
  892. package/src/components/ui/Tabs/Tabs.types.ts +8 -0
  893. package/src/components/ui/Tabs/index.ts +2 -0
  894. package/src/components/ui/TextShimmer/TextShimmer.styl +16 -0
  895. package/src/components/ui/TextShimmer/TextShimmer.styl.d.ts +7 -0
  896. package/src/components/ui/TextShimmer/TextShimmer.tsx +56 -0
  897. package/src/components/ui/TextShimmer/TextShimmer.types.ts +9 -0
  898. package/src/components/ui/TextShimmer/index.ts +2 -0
  899. package/src/components/ui/TextWithDeferTooltip/TextWithDeferTooltip.tsx +98 -0
  900. package/src/components/ui/TextWithDeferTooltip/TextWithDeferTooltip.types.ts +11 -0
  901. package/src/components/ui/TextWithDeferTooltip/index.ts +2 -0
  902. package/src/components/ui/TimeRangeControls/TimeRangeControls.constants.ts +1 -0
  903. package/src/components/ui/TimeRangeControls/TimeRangeControls.styl +28 -0
  904. package/src/components/ui/TimeRangeControls/TimeRangeControls.styl.d.ts +12 -0
  905. package/src/components/ui/TimeRangeControls/TimeRangeControls.tsx +92 -0
  906. package/src/components/ui/TimeRangeControls/TimeRangeControls.types.ts +3 -0
  907. package/src/components/ui/TimeRangeControls/index.ts +3 -0
  908. package/src/components/ui/Toggle/Toggle.styl +79 -0
  909. package/src/components/ui/Toggle/Toggle.styl.d.ts +12 -0
  910. package/src/components/ui/Toggle/Toggle.tsx +28 -0
  911. package/src/components/ui/Toggle/Toggle.types.ts +11 -0
  912. package/src/components/ui/Toggle/index.ts +2 -0
  913. package/src/components/ui/ToggleGroup/ToggleGroup.helpers.ts +20 -0
  914. package/src/components/ui/ToggleGroup/ToggleGroup.styl +38 -0
  915. package/src/components/ui/ToggleGroup/ToggleGroup.styl.d.ts +8 -0
  916. package/src/components/ui/ToggleGroup/ToggleGroup.tsx +77 -0
  917. package/src/components/ui/ToggleGroup/ToggleGroup.types.ts +38 -0
  918. package/src/components/ui/ToggleGroup/index.ts +2 -0
  919. package/src/components/ui/Tooltip/Tooltip.styl +131 -0
  920. package/src/components/ui/Tooltip/Tooltip.styl.d.ts +16 -0
  921. package/src/components/ui/Tooltip/Tooltip.tsx +64 -0
  922. package/src/components/ui/Tooltip/Tooltip.types.ts +23 -0
  923. package/src/components/ui/Tooltip/index.ts +12 -0
  924. package/src/components/ui/VimeoEmbed/VimeoEmbed.styl +63 -0
  925. package/src/components/ui/VimeoEmbed/VimeoEmbed.styl.d.ts +11 -0
  926. package/src/components/ui/VimeoEmbed/VimeoEmbed.tsx +191 -0
  927. package/src/components/ui/VimeoEmbed/VimeoEmbed.types.ts +10 -0
  928. package/src/components/ui/VimeoEmbed/index.ts +2 -0
  929. package/src/components/ui/icons/Github.tsx +10 -0
  930. package/src/constants/dataset.ts +2 -0
  931. package/src/contexts/chat-context.tsx +444 -0
  932. package/src/declarations.d.ts +15 -0
  933. package/src/docs/App/App.styl +8 -0
  934. package/src/docs/App/App.styl.d.ts +8 -0
  935. package/src/docs/App/App.tsx +55 -0
  936. package/src/docs/App/ThemeToggle.tsx +30 -0
  937. package/src/docs/DocPage.tsx +21 -0
  938. package/src/docs/DocsShell.styl +28 -0
  939. package/src/docs/DocsShell.styl.d.ts +11 -0
  940. package/src/docs/DocsShell.tsx +39 -0
  941. package/src/docs/components/AppPageHeader/AppPageHeader.tsx +28 -0
  942. package/src/docs/components/DocsSidebar/DocsSidebar.styl +22 -0
  943. package/src/docs/components/DocsSidebar/DocsSidebar.styl.d.ts +7 -0
  944. package/src/docs/components/DocsSidebar/DocsSidebar.tsx +165 -0
  945. package/src/docs/config/paths.ts +18 -0
  946. package/src/docs/config/webpack.config.js +212 -0
  947. package/src/docs/contexts/theme-context.tsx +47 -0
  948. package/src/docs/docsConstants.ts +5 -0
  949. package/src/docs/docsHeaderActions.tsx +18 -0
  950. package/src/docs/index.tsx +16 -0
  951. package/src/docs/lib/theme.ts +55 -0
  952. package/src/docs/pages/AnalysesSelectorPage.tsx +57 -0
  953. package/src/docs/pages/AnalysisLineIconPage.tsx +24 -0
  954. package/src/docs/pages/AvatarPage.tsx +33 -0
  955. package/src/docs/pages/BadgePage.tsx +27 -0
  956. package/src/docs/pages/BreadcrumbPage.tsx +38 -0
  957. package/src/docs/pages/ButtonPage.tsx +142 -0
  958. package/src/docs/pages/CardPage.tsx +42 -0
  959. package/src/docs/pages/ChartAreaInteractivePage.tsx +161 -0
  960. package/src/docs/pages/ChartPage.tsx +50 -0
  961. package/src/docs/pages/ChatPage.tsx +61 -0
  962. package/src/docs/pages/CheckboxPage.tsx +25 -0
  963. package/src/docs/pages/DialogPage.tsx +38 -0
  964. package/src/docs/pages/DrawerPage.tsx +48 -0
  965. package/src/docs/pages/DropZonePage.tsx +32 -0
  966. package/src/docs/pages/DropdownMenuPage.tsx +41 -0
  967. package/src/docs/pages/FlickeringGridPage.tsx +23 -0
  968. package/src/docs/pages/FoldablePage.tsx +25 -0
  969. package/src/docs/pages/ImagePage.tsx +26 -0
  970. package/src/docs/pages/ImageWithFallbackPage.tsx +34 -0
  971. package/src/docs/pages/InputPage.tsx +39 -0
  972. package/src/docs/pages/InteractiveContentPage.tsx +23 -0
  973. package/src/docs/pages/LabelPage.tsx +21 -0
  974. package/src/docs/pages/LabelWithIdPage.tsx +21 -0
  975. package/src/docs/pages/LabeledInputPage.tsx +32 -0
  976. package/src/docs/pages/LegacyPlatformLinkPage.tsx +23 -0
  977. package/src/docs/pages/LogoPage.tsx +25 -0
  978. package/src/docs/pages/MobileAdaptiveSelectorPage.tsx +36 -0
  979. package/src/docs/pages/NumberControlPage.tsx +25 -0
  980. package/src/docs/pages/PagePage.tsx +25 -0
  981. package/src/docs/pages/ProgressPage.tsx +21 -0
  982. package/src/docs/pages/RegionCoordsPage.tsx +40 -0
  983. package/src/docs/pages/RenamerPage.tsx +27 -0
  984. package/src/docs/pages/SelectPage.tsx +40 -0
  985. package/src/docs/pages/SeparatorPage.tsx +23 -0
  986. package/src/docs/pages/SheetPage.tsx +40 -0
  987. package/src/docs/pages/SidebarPage.tsx +53 -0
  988. package/src/docs/pages/SkeletonPage.tsx +30 -0
  989. package/src/docs/pages/SliderPage.tsx +26 -0
  990. package/src/docs/pages/SmartTextTruncatePage.tsx +26 -0
  991. package/src/docs/pages/SparklinePage.tsx +23 -0
  992. package/src/docs/pages/SwitchPage.tsx +29 -0
  993. package/src/docs/pages/TablePage.tsx +45 -0
  994. package/src/docs/pages/TabsPage.tsx +33 -0
  995. package/src/docs/pages/TextShimmerPage.tsx +23 -0
  996. package/src/docs/pages/TextWithDeferTooltipPage.tsx +29 -0
  997. package/src/docs/pages/TimeRangeControlsPage.tsx +30 -0
  998. package/src/docs/pages/ToggleGroupPage.tsx +35 -0
  999. package/src/docs/pages/TogglePage.tsx +24 -0
  1000. package/src/docs/pages/TooltipPage.tsx +35 -0
  1001. package/src/docs/pages/VimeoEmbedPage.tsx +21 -0
  1002. package/src/docs/registry.ts +338 -0
  1003. package/src/hooks/panelWidth.ts +72 -0
  1004. package/src/hooks/useClickOutside.ts +36 -0
  1005. package/src/hooks/useDebounceCallback.ts +18 -0
  1006. package/src/hooks/useDragElem.ts +153 -0
  1007. package/src/hooks/useEvent.ts +73 -0
  1008. package/src/hooks/useIsMobile.ts +21 -0
  1009. package/src/hooks/useIsTouchDevice.ts +43 -0
  1010. package/src/hooks/useQueryParams.ts +60 -0
  1011. package/src/hooks/useShellWidthObserver.ts +25 -0
  1012. package/src/hooks/useThrottledCallback.ts +41 -0
  1013. package/src/index.ts +54 -0
  1014. package/src/lib/cookie-consent/cookie-consent.ts +132 -0
  1015. package/src/lib/cookie.ts +23 -0
  1016. package/src/lib/dashboard-spec/stripJsonDashboardFences.ts +6 -0
  1017. package/src/lib/logger.ts +9 -0
  1018. package/src/lib/theme.styl +23 -0
  1019. package/src/lib/theme.styl.d.ts +2 -0
  1020. package/src/tools/debounce.ts +59 -0
  1021. package/src/tools/env.ts +7 -0
  1022. package/src/types/chat-api.types.ts +5 -0
  1023. package/src/types/forecast-data.ts +8 -0
  1024. package/src/utils/analysisDate.ts +17 -0
  1025. package/src/utils/chartConnectionPoint.ts +292 -0
  1026. package/src/utils/chartRenderQueue.ts +52 -0
  1027. package/src/utils/chatPresetMerge.ts +36 -0
  1028. package/src/utils/datasetApplicationLink.ts +25 -0
  1029. package/src/utils/quantileFormat.ts +46 -0
@@ -0,0 +1,23 @@
1
+ import * as RechartsPrimitive from 'recharts';
2
+ export { BaseChartWrapper } from './components/BaseChartWrapper.js';
3
+ import 'react/jsx-runtime';
4
+ import 'classnames';
5
+ import 'react';
6
+ import './Chart.context.js';
7
+ import './Chart.styl.js';
8
+ import '../AnalysisLineIcon/AnalysisLineIcon.styl.js';
9
+ import '@radix-ui/react-slot';
10
+ import '../Badge/Badge.styl.js';
11
+ import '../LabelWithId/LabelWithId.styl.js';
12
+ import '@radix-ui/react-select';
13
+ import 'lucide-react';
14
+ import '../Select/Select.styl.js';
15
+ import '../TextShimmer/TextShimmer.js';
16
+ import '@phosphor-icons/react';
17
+ import '../AnalysesSelector/AnalysesSelector.styl.js';
18
+ import './components/CustomChartLegend/CustomChartLegend.styl.js';
19
+
20
+ const ChartTooltip = RechartsPrimitive.Tooltip;
21
+ const ChartLegend = RechartsPrimitive.Legend;
22
+
23
+ export { ChartLegend, ChartTooltip };
@@ -0,0 +1,7 @@
1
+ import styleInject from 'style-inject';
2
+
3
+ var css_248z = ".Chart_chartContainer__--q1l{aspect-ratio:16/9;display:flex;font-size:.75rem;justify-content:center;line-height:1rem;max-width:100%;touch-action:none;width:100%}.Chart_chartContainer__--q1l .recharts-cartesian-axis-tick text{fill:var(--muted-foreground)}.Chart_chartContainer__--q1l .recharts-cartesian-grid line[stroke=\"#ccc\"]{stroke:var(--border)}.dark .Chart_chartContainer__--q1l .recharts-cartesian-grid line[stroke=\"#ccc\"]{stroke:var(--sb-slate-900)}.Chart_chartContainer__--q1l .recharts-curve.recharts-tooltip-cursor,.Chart_chartContainer__--q1l .recharts-polar-grid [stroke=\"#ccc\"]{stroke:var(--border)}.Chart_chartContainer__--q1l .recharts-radial-bar-background-sector,.Chart_chartContainer__--q1l .recharts-rectangle.recharts-tooltip-cursor{fill:var(--muted)}.Chart_chartContainer__--q1l .recharts-reference-line [stroke=\"#ccc\"]{stroke:var(--border)}.Chart_chartContainer__--q1l .recharts-dot[stroke=\"#fff\"]{stroke:transparent}.Chart_chartContainer__--q1l .recharts-layer,.Chart_chartContainer__--q1l .recharts-sector{outline:none}.Chart_chartContainer__--q1l .recharts-sector[stroke=\"#fff\"]{stroke:transparent}.Chart_chartContainer__--q1l .recharts-surface{outline:none}.Chart_chartContainer__--q1l .recharts-wrapper{position:relative}.Chart_chartContainer__--q1l .recharts-surface{position:relative;z-index:1}.Chart_chartContainer__--q1l .recharts-tooltip-wrapper{position:relative;z-index:3!important}.Chart_chartContainer__--q1l .recharts-active-dot{z-index:3}.Chart_chartGrid__t52WF{stroke-width:.6}.Chart_tooltipContainer__6tc0q{align-items:start;display:grid;min-width:8rem;width:minmax(300px,100%);grid-gap:.375rem;background-color:var(--background);border:1px solid var(--border)/.5;border-radius:.5rem;box-shadow:0 10px 10px -5px rgba(0,0,0,.3),0 0 2px 0 rgba(0,0,0,.5);font-size:.75rem;gap:.375rem;line-height:1rem;opacity:0;padding:.375rem .625rem;transition:opacity .5s ease-out}.Chart_chartContainer__--q1l:hover .Chart_tooltipContainer__6tc0q{opacity:1;transition-duration:.5s}.Chart_tooltipItem__j8I9T{align-items:stretch;display:flex;flex-wrap:wrap;gap:.5rem;width:100%}.Chart_tooltipItem__j8I9T>svg{color:var(--muted-foreground);height:.625rem;width:.625rem}.Chart_tooltipIndicator__Z-JWp{background-color:var(--color-bg);border-color:var(--color-border);border-radius:2px;border-width:1px;flex-shrink:0}.Chart_tooltipIndicator__Z-JWp.Chart_indicator-dot__MWcmW{height:.625rem;width:.625rem}.Chart_tooltipIndicator__Z-JWp.Chart_indicator-line__MO3ul{width:.25rem}.Chart_tooltipIndicator__Z-JWp.Chart_indicator-dashed__2LqIN{background-color:transparent;border-style:dashed;border-width:1.5px;width:0}.Chart_tooltipIndicator__Z-JWp.Chart_indicator-dashed__2LqIN.Chart_nested__7EWWk{margin-bottom:.125rem;margin-top:.125rem}.Chart_tooltipContent__M3R-W{display:flex;flex:1 1 0%;justify-content:space-between;line-height:1}.Chart_tooltipLabel__zMpjZ{display:grid;grid-gap:.375rem;gap:.375rem}.Chart_tooltipValue__vTQxU{color:var(--foreground);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;font-weight:500;margin-left:var(--p-3)}.Chart_legendContainer__u1J3U{align-items:center;display:flex;gap:1rem;justify-content:center}.Chart_legendItem__0CSyC{align-items:center;display:flex;gap:.375rem}.Chart_legendItem__0CSyC>svg{color:var(--muted-foreground);height:.75rem;width:.75rem}.Chart_legendIndicator__erzzP{border-radius:2px;flex-shrink:0;height:.5rem;width:.5rem}.chart-line-blinking path{animation:chart-line-blink 1s ease-in-out infinite;animation-direction:alternate}@keyframes Chart_chart-line-blink__4EI-g{0%{opacity:.5}to{opacity:1}}";
4
+ var S = {"chartContainer":"Chart_chartContainer__--q1l","chartGrid":"Chart_chartGrid__t52WF","tooltipContainer":"Chart_tooltipContainer__6tc0q","tooltipItem":"Chart_tooltipItem__j8I9T","tooltipIndicator":"Chart_tooltipIndicator__Z-JWp","indicator-dot":"Chart_indicator-dot__MWcmW","indicator-line":"Chart_indicator-line__MO3ul","indicator-dashed":"Chart_indicator-dashed__2LqIN","nested":"Chart_nested__7EWWk","tooltipContent":"Chart_tooltipContent__M3R-W","tooltipLabel":"Chart_tooltipLabel__zMpjZ","tooltipValue":"Chart_tooltipValue__vTQxU","legendContainer":"Chart_legendContainer__u1J3U","legendItem":"Chart_legendItem__0CSyC","legendIndicator":"Chart_legendIndicator__erzzP","chart-line-blink":"Chart_chart-line-blink__4EI-g"};
5
+ styleInject(css_248z);
6
+
7
+ export { S as default };
@@ -0,0 +1,3 @@
1
+ const THEMES = { light: '', dark: '.dark' };
2
+
3
+ export { THEMES };
@@ -0,0 +1,473 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import cn from 'classnames';
3
+ import { forwardRef, useRef, useState, useEffect, useMemo } from 'react';
4
+ import { ChartTooltip } from '../Chart.js';
5
+ import { QuantileBands } from './QuantileBands.js';
6
+ import { getForecastColor, ChartLines } from '../../ChartAreaInteractive/ChartLines.js';
7
+ import { Skeleton } from '../../Skeleton/Skeleton.js';
8
+ import { chartRenderQueue } from '../../../../utils/chartRenderQueue.js';
9
+ import { LineChart, ComposedChart } from 'recharts';
10
+ import { formatDate } from '../tools/formatters.js';
11
+ import S from './BaseChartWrapper.styl.js';
12
+ import { ChartAxes } from './ChartAxes.js';
13
+ import { ChartGrid } from './ChartGrid.js';
14
+ import { LegendSvg } from './LegendSvg/LegendSvg.js';
15
+ import { ChartContainer } from './ChartContainer.js';
16
+ import { CustomChartLegend } from './CustomChartLegend/CustomChartLegend.js';
17
+ import { ChartTooltipContent } from './ChartTooltipContent.js';
18
+
19
+ /**
20
+ * Simple loading component without hooks for better performance
21
+ * Rendered when chart is waiting in render queue
22
+ */
23
+ const BaseChartWrapperLoading = forwardRef(({ className, height, loadingMessage }, ref) => {
24
+ return (jsx("div", { ref: ref, className: cn(S.root, className), children: jsx("div", { className: S.chartLoadingContainer, style: height ? { height: `${height}px` } : undefined, children: loadingMessage || (jsx("div", { className: S.loadingOverlay, children: jsx(Skeleton, { style: { width: '100%', height: '100%' } }) })) }) }));
25
+ });
26
+ BaseChartWrapperLoading.displayName = 'BaseChartWrapperLoading';
27
+ /**
28
+ * Chart content component with all hooks and logic
29
+ * Separated to maintain hook order consistency
30
+ */
31
+ const BaseChartWrapperContent = forwardRef((props, ref) => {
32
+ const { chartConfig = {}, chartData, historicalLineColor, forecastData = [], loading, hasCombinedData, renderId, isDarkTheme, height, className, loadingComponentClassName, footerClassName, chartClassName, xAxisClassName, yAxisClassName, legendClassName, footerActions, quantileBands, quantileBandKey, xMin, xMax, yMin, yMax, autoScaleYAxis = true, formatNumber, formatDate: formatDateFn = formatDate, labelFormatter, onLegendClick, margin, chartType = 'composed', disableAnimation = false, showGrid = true, showAxes = true, showTooltip = true, showLegend = true, showChartAxesLegend = true, xAxisLabel, yAxisLabel, showActiveDots = true, overlayElements, hiddenSeries, excludeLegendIds, onAnalysisSelect, onFailedAnalysisClick, containerProps, error, loadingMessage, noDataMessage = 'No data available', onGridHeightChange, forecastLineStyle = 'dashed', disableHistoricalAnimation = false, onShowAll: _onShowAll, onShowOnly: _onShowOnly, maxVisibleItems, preventDeselection, legendVariant = 'default', legendWidth = 1000, legendMarginLeft = 0, } = props;
33
+ const activeDataRef = useRef(null);
34
+ /** Raw cursor position from Recharts (tooltip anchor). */
35
+ const rawTooltipCoordinateRef = useRef(null);
36
+ /** Last transform actually applied after viewport/boundary adjustment. */
37
+ const lastAppliedTooltipPositionRef = useRef(null);
38
+ const isTooltipActiveRef = useRef(false);
39
+ // const [activeDotsData, setActiveDotsData] = useState<ActiveDot[]>([]);
40
+ const [shouldAnimate, setShouldAnimate] = useState(false);
41
+ const rootRef = useRef(null);
42
+ // Merge forwarded ref with internal rootRef using callback ref
43
+ const setRefs = (node) => {
44
+ rootRef.current = node;
45
+ if (typeof ref === 'function') {
46
+ ref(node);
47
+ }
48
+ else if (ref) {
49
+ ref.current = node;
50
+ }
51
+ };
52
+ // const prevGridHeightRef = useRef<number>(0);
53
+ const tooltipWrapperRef = useRef(null);
54
+ const TOOLTIP_EDGE_MARGIN = 8;
55
+ const applyTooltipPosition = (opts) => {
56
+ const wrapper = tooltipWrapperRef.current;
57
+ const root = rootRef.current;
58
+ const raw = rawTooltipCoordinateRef.current;
59
+ if (!wrapper || !raw)
60
+ return;
61
+ const setTransform = (el, x, y) => {
62
+ el.style.transform = `translate(${x}px, ${y}px)`;
63
+ lastAppliedTooltipPositionRef.current = { x, y };
64
+ };
65
+ setTransform(wrapper, raw.x, raw.y);
66
+ if (opts?.skipBoundaryAdjust || !root)
67
+ return;
68
+ const runAdjust = () => {
69
+ const w = tooltipWrapperRef.current;
70
+ const rEl = rootRef.current;
71
+ const rCoord = rawTooltipCoordinateRef.current;
72
+ if (!w || !rEl || !rCoord)
73
+ return;
74
+ const rootRect = rEl.getBoundingClientRect();
75
+ const rightBound = Math.min(rootRect.right, window.innerWidth);
76
+ let x = rCoord.x;
77
+ const y = rCoord.y;
78
+ w.style.transform = `translate(${x}px, ${y}px)`;
79
+ let tooltipRect = w.getBoundingClientRect();
80
+ if (tooltipRect.right > rightBound - TOOLTIP_EDGE_MARGIN) {
81
+ x -= tooltipRect.right - rightBound + TOOLTIP_EDGE_MARGIN;
82
+ }
83
+ const leftBound = Math.max(rootRect.left, 0);
84
+ w.style.transform = `translate(${x}px, ${y}px)`;
85
+ tooltipRect = w.getBoundingClientRect();
86
+ if (tooltipRect.left < leftBound + TOOLTIP_EDGE_MARGIN) {
87
+ x += leftBound + TOOLTIP_EDGE_MARGIN - tooltipRect.left;
88
+ }
89
+ setTransform(w, x, y);
90
+ };
91
+ requestAnimationFrame(() => {
92
+ requestAnimationFrame(runAdjust);
93
+ });
94
+ };
95
+ const applyTooltipPositionRef = useRef(applyTooltipPosition);
96
+ applyTooltipPositionRef.current = applyTooltipPosition;
97
+ // Effect to watch for tooltip wrapper and apply transforms/opacity
98
+ useEffect(() => {
99
+ const restorePosition = () => {
100
+ const pos = lastAppliedTooltipPositionRef.current ??
101
+ rawTooltipCoordinateRef.current;
102
+ if (tooltipWrapperRef.current && pos) {
103
+ const currentTransform = tooltipWrapperRef.current.style.transform;
104
+ const expectedTransform = `translate(${pos.x}px, ${pos.y}px)`;
105
+ // Always restore position if transform is missing, reset, or doesn't match expected position
106
+ // This prevents Recharts from resetting the tooltip position
107
+ if (!currentTransform ||
108
+ currentTransform === 'none' ||
109
+ currentTransform === 'translate(0px, 0px)' ||
110
+ currentTransform !== expectedTransform) {
111
+ tooltipWrapperRef.current.style.transform = expectedTransform;
112
+ }
113
+ }
114
+ };
115
+ const findAndSetupTooltipWrapper = () => {
116
+ const wrapper = rootRef.current?.querySelector('.recharts-tooltip-wrapper');
117
+ if (wrapper && wrapper !== tooltipWrapperRef.current) {
118
+ tooltipWrapperRef.current = wrapper;
119
+ // Add transition for smooth movement and opacity
120
+ wrapper.style.transition =
121
+ 'transform 0.2s ease-out, opacity 0.2s ease-out';
122
+ // Override Recharts' visibility: hidden with visibility: visible
123
+ // We'll control visibility through opacity instead
124
+ wrapper.style.visibility = 'visible';
125
+ // Set initial opacity based on active state
126
+ const isActive = activeDataRef.current?.active === true;
127
+ wrapper.style.opacity = isActive ? '1' : '0';
128
+ wrapper.style.pointerEvents = isActive ? 'auto' : 'none';
129
+ // Always restore position if we have a last position
130
+ restorePosition();
131
+ if (rawTooltipCoordinateRef.current) {
132
+ applyTooltipPositionRef.current();
133
+ }
134
+ }
135
+ // Always ensure visibility is visible (Recharts sets it to hidden)
136
+ if (tooltipWrapperRef.current) {
137
+ tooltipWrapperRef.current.style.visibility = 'visible';
138
+ // Continuously restore position to prevent resets
139
+ restorePosition();
140
+ }
141
+ };
142
+ // Initial check
143
+ findAndSetupTooltipWrapper();
144
+ // Watch for tooltip wrapper changes and style mutations
145
+ const observer = new MutationObserver(mutations => {
146
+ findAndSetupTooltipWrapper();
147
+ // If transform attribute changed, restore position if needed
148
+ mutations.forEach(mutation => {
149
+ if (mutation.type === 'attributes' &&
150
+ mutation.attributeName === 'style' &&
151
+ mutation.target === tooltipWrapperRef.current) {
152
+ restorePosition();
153
+ }
154
+ });
155
+ });
156
+ if (rootRef.current) {
157
+ observer.observe(rootRef.current, {
158
+ childList: true,
159
+ subtree: true,
160
+ attributes: true,
161
+ attributeFilter: ['style'],
162
+ });
163
+ }
164
+ // Use requestAnimationFrame to continuously monitor and restore position
165
+ // Only run when we have a last position to maintain
166
+ let rafId = null;
167
+ const monitorPosition = () => {
168
+ if (rawTooltipCoordinateRef.current && tooltipWrapperRef.current) {
169
+ restorePosition();
170
+ rafId = requestAnimationFrame(monitorPosition);
171
+ }
172
+ else {
173
+ rafId = null;
174
+ }
175
+ };
176
+ // Start monitoring if we already have a position
177
+ if (rawTooltipCoordinateRef.current) {
178
+ rafId = requestAnimationFrame(monitorPosition);
179
+ }
180
+ return () => {
181
+ observer.disconnect();
182
+ if (rafId !== null) {
183
+ cancelAnimationFrame(rafId);
184
+ }
185
+ };
186
+ }, []);
187
+ const renderTooltipContent = (props) => {
188
+ // Filter payload to exclude items with null/undefined values
189
+ // This prevents showing stale data when hovering on dates without data points
190
+ const filteredPayload = props.payload?.filter((item) => item.value !== null && item.value !== undefined && item.type !== 'none');
191
+ // If no valid payload items, render ChartTooltipContent with active=false and empty payload
192
+ // This allows ChartTooltipContent to clear its lastTooltipData state
193
+ if (!filteredPayload || filteredPayload.length === 0) {
194
+ // Update refs to reflect inactive state
195
+ if (isTooltipActiveRef.current) {
196
+ isTooltipActiveRef.current = false;
197
+ // Always maintain last position when tooltip becomes inactive
198
+ const pos = lastAppliedTooltipPositionRef.current ??
199
+ rawTooltipCoordinateRef.current;
200
+ if (pos && tooltipWrapperRef.current) {
201
+ const wrapper = tooltipWrapperRef.current;
202
+ wrapper.style.transform = `translate(${pos.x}px, ${pos.y}px)`;
203
+ wrapper.style.visibility = 'visible';
204
+ wrapper.style.opacity = '0';
205
+ wrapper.style.pointerEvents = 'none';
206
+ }
207
+ }
208
+ // Render ChartTooltipContent with active=false and empty payload to trigger cleanup
209
+ // This ensures lastTooltipData is cleared when there's no valid data
210
+ return (jsx(ChartTooltipContent, { active: false, payload: [], label: props.label, labelFormatter: labelFormatter || defaultLabelFormatter, indicator: "dot" }));
211
+ }
212
+ // Store tooltip data in ref (not state) to avoid re-render
213
+ // Use filtered payload instead of original props.payload
214
+ activeDataRef.current = {
215
+ ...props,
216
+ payload: filteredPayload,
217
+ };
218
+ const wasActive = isTooltipActiveRef.current;
219
+ const isActive = props.active === true;
220
+ // When tooltip becomes active and has coordinate, update last position
221
+ if (isActive && props.coordinate) {
222
+ const newCoordinate = {
223
+ x: props.coordinate.x,
224
+ y: props.coordinate.y,
225
+ };
226
+ rawTooltipCoordinateRef.current = newCoordinate;
227
+ isTooltipActiveRef.current = true;
228
+ if (tooltipWrapperRef.current) {
229
+ tooltipWrapperRef.current.style.visibility = 'visible';
230
+ tooltipWrapperRef.current.style.opacity = '1';
231
+ tooltipWrapperRef.current.style.pointerEvents = 'auto';
232
+ applyTooltipPosition();
233
+ }
234
+ }
235
+ else if (!isActive && wasActive) {
236
+ isTooltipActiveRef.current = false;
237
+ // Always maintain last position when tooltip becomes inactive
238
+ const pos = lastAppliedTooltipPositionRef.current ??
239
+ rawTooltipCoordinateRef.current;
240
+ if (pos && tooltipWrapperRef.current) {
241
+ const wrapper = tooltipWrapperRef.current;
242
+ wrapper.style.transform = `translate(${pos.x}px, ${pos.y}px)`;
243
+ // Keep visibility visible but hide with opacity transition
244
+ wrapper.style.visibility = 'visible';
245
+ wrapper.style.opacity = '0';
246
+ wrapper.style.pointerEvents = 'none';
247
+ }
248
+ }
249
+ else if (!isActive && !wasActive) {
250
+ // Ensure opacity is 0 when inactive, but keep visibility visible and maintain position
251
+ if (tooltipWrapperRef.current) {
252
+ tooltipWrapperRef.current.style.visibility = 'visible';
253
+ tooltipWrapperRef.current.style.opacity = '0';
254
+ tooltipWrapperRef.current.style.pointerEvents = 'none';
255
+ const pos = lastAppliedTooltipPositionRef.current ??
256
+ rawTooltipCoordinateRef.current;
257
+ if (pos) {
258
+ tooltipWrapperRef.current.style.transform = `translate(${pos.x}px, ${pos.y}px)`;
259
+ }
260
+ }
261
+ }
262
+ return (jsx(ChartTooltipContent, { active: props.active, payload: filteredPayload, label: props.label, labelFormatter: labelFormatter || defaultLabelFormatter, indicator: "dot" }));
263
+ };
264
+ // Extract only line data (historical and forecast_* properties) for animation trigger
265
+ // This prevents re-animation when only quantile band data changes
266
+ // Use a stable reference based on actual line data values, not chartData reference
267
+ const lineDataKey = useMemo(() => {
268
+ const lineData = chartData.map(point => {
269
+ const linePoint = { date: point.date };
270
+ if (point.historical !== undefined) {
271
+ linePoint.historical = point.historical;
272
+ }
273
+ // Include all forecast_* properties but exclude quantile band properties
274
+ Object.keys(point).forEach(key => {
275
+ if (key.startsWith('forecast_')) {
276
+ linePoint[key] = point[key];
277
+ }
278
+ });
279
+ return linePoint;
280
+ });
281
+ // Create a stable key based on actual line data values
282
+ return JSON.stringify(lineData);
283
+ }, [chartData]);
284
+ const lineDataForAnimation = useMemo(() => {
285
+ const lineData = chartData.map(point => {
286
+ const linePoint = { date: point.date };
287
+ if (point.historical !== undefined) {
288
+ linePoint.historical = point.historical;
289
+ }
290
+ // Include all forecast_* properties but exclude quantile band properties
291
+ Object.keys(point).forEach(key => {
292
+ if (key.startsWith('forecast_')) {
293
+ linePoint[key] = point[key];
294
+ }
295
+ });
296
+ return linePoint;
297
+ });
298
+ return lineData;
299
+ }, [lineDataKey]);
300
+ const legendPayload = useMemo(() => {
301
+ if (!showLegend)
302
+ return [];
303
+ return forecastData
304
+ .filter((item) => excludeLegendIds ? !excludeLegendIds.includes(item.id) : true)
305
+ .map((item, index) => ({
306
+ value: item.name?.toString() || item.id?.toString() || '',
307
+ // type: item.id?.toString() || '',
308
+ color: item.color?.toString() || getForecastColor(index),
309
+ dataKey: `forecast_${item.id}`,
310
+ icon: item.icon,
311
+ status: item.status,
312
+ // pending: item.pending,
313
+ // tooltip: item.tooltip,
314
+ dimmed: item.dimmed,
315
+ updated_at: item.updated_at,
316
+ }));
317
+ }, [forecastData, excludeLegendIds, showLegend]);
318
+ useEffect(() => {
319
+ if (disableAnimation)
320
+ return;
321
+ // Enable animation briefly when line data changes (not quantile band data)
322
+ setShouldAnimate(true);
323
+ const timer = setTimeout(() => setShouldAnimate(false), 1000);
324
+ return () => clearTimeout(timer);
325
+ }, [lineDataForAnimation, disableAnimation]);
326
+ const isLoaded = useMemo(() => !loading && chartData.length > 0, [loading, chartData.length]);
327
+ // const resizePinContainer = useThrottleCallback(() => {
328
+ // const grid = rootRef.current?.querySelector('.recharts-cartesian-grid');
329
+ // if (grid && rootRef.current) {
330
+ // const rect = grid.getBoundingClientRect();
331
+ // // Check if height changed for backward compatibility
332
+ // if (rect.height !== prevGridHeightRef.current) {
333
+ // onGridHeightChange?.(rect.height);
334
+ // prevGridHeightRef.current = rect.height;
335
+ // }
336
+ // }
337
+ // }, 1000);
338
+ // useResizeObserver(rootRef, resizePinContainer);
339
+ if (error) {
340
+ return (jsx("div", { className: cn(S.root, className), children: jsx("div", { className: S.errorContainer, children: jsxs("div", { className: S.errorMessage, children: ["Error: ", error] }) }) }));
341
+ }
342
+ if (loadingMessage !== undefined) {
343
+ return (jsx("div", { className: cn(S.root, className), children: jsx("div", { className: S.chartLoadingContainer, children: loadingMessage }) }));
344
+ }
345
+ if (!chartData.length) {
346
+ // If hasCombinedData is true but chartData is empty, data is being processed - wait instead of showing "No data"
347
+ if (hasCombinedData) {
348
+ // Return empty div to wait for chartData to be populated
349
+ return jsx("div", { className: cn(S.root, className) });
350
+ }
351
+ // If renderId is undefined/null, we're still initializing - wait instead of showing "No data"
352
+ if (!renderId) {
353
+ // Return empty div to wait for initialization to complete
354
+ return jsx("div", { className: cn(S.root, className) });
355
+ }
356
+ return (jsx("div", { className: cn(S.root, className), children: jsx("div", { className: S.errorContainer, children: noDataMessage }) }));
357
+ }
358
+ // Smart auto-scaling: detect when explicit bounds are too wide
359
+ // Only apply smart auto-scaling if autoScaleYAxis is not explicitly set to false
360
+ // When autoScaleYAxis is explicitly false, respect it (e.g., for IntervalsOverlay quantile dragging)
361
+ let effectiveAutoScale = autoScaleYAxis;
362
+ if (autoScaleYAxis !== false && yMin !== undefined && yMax !== undefined) {
363
+ const dataKeys = chartData.length > 0 ? Object.keys(chartData[0]) : [];
364
+ const historicalValues = chartData
365
+ .map(p => p.historical)
366
+ .filter(v => v !== null && v !== undefined);
367
+ const forecastKeys = dataKeys.filter(k => k.startsWith('forecast_'));
368
+ const forecastValues = chartData
369
+ .flatMap(p => forecastKeys.map(k => p[k]))
370
+ .filter(v => v !== null && v !== undefined);
371
+ const allLineValues = [...historicalValues, ...forecastValues];
372
+ if (allLineValues.length > 0) {
373
+ // @ts-ignore
374
+ const dataMin = Math.min(...allLineValues);
375
+ // @ts-ignore
376
+ const dataMax = Math.max(...allLineValues);
377
+ const explicitRange = yMax - yMin;
378
+ const dataRange = dataMax - dataMin;
379
+ const wastedSpaceRatio = (explicitRange - dataRange) / dataRange;
380
+ // If more than 30% of the chart is empty space, switch to auto-scaling
381
+ if (wastedSpaceRatio > 0.3) {
382
+ effectiveAutoScale = true;
383
+ }
384
+ }
385
+ }
386
+ const ChartComponent = chartType === 'line' ? LineChart : ComposedChart;
387
+ const defaultLabelFormatter = (v) => formatDateFn(v, true);
388
+ return (jsxs("div", { className: cn(S.root, !showLegend && S.noLegend, !showChartAxesLegend && S.hideChartAxesLegend, isLoaded && S.loaded, className), ref: setRefs, children: [loading && (jsx("div", { className: S.loadingOverlay, children: jsx(Skeleton, {}) })), showGrid && (jsx(ChartContainer, { config: chartConfig, className: cn(S.gridLayer, chartClassName), style: height ? { height: `${height}px` } : undefined, children: jsxs(ChartComponent, { data: chartData, margin: margin, children: [jsx(ChartGrid, {}), showAxes && (jsx(ChartAxes, { formatDate: formatDateFn, formatNumber: formatNumber, xAxisClassName: xAxisClassName, yAxisClassName: yAxisClassName, xAxisLabel: xAxisLabel, yAxisLabel: yAxisLabel, xMin: xMin, xMax: xMax, yMin: yMin, yMax: yMax, autoScaleYAxis: effectiveAutoScale }))] }) })), jsx(ChartContainer, { config: chartConfig, className: cn(S.chartLayer, chartClassName), style: height ? { height: `${height}px` } : undefined, ...containerProps, children: jsxs(ChartComponent, { data: chartData, margin: margin, children: [showAxes && (jsx(ChartAxes, { formatDate: formatDateFn, formatNumber: formatNumber, xAxisClassName: cn(xAxisClassName), yAxisClassName: cn(yAxisClassName), xAxisLabel: xAxisLabel, yAxisLabel: yAxisLabel, xMin: xMin, xMax: xMax, yMin: yMin, yMax: yMax, autoScaleYAxis: effectiveAutoScale })), quantileBands?.[0] && (jsx(QuantileBands, { hiddenBands: hiddenSeries, quantileBandKey: quantileBandKey, animate: true, animationDuration: 150, animationBegin: 0, customBands: quantileBands, showLegend: showLegend })), jsx(ChartLines, { historicalLineColor: historicalLineColor, chartData: chartData, forecastData: forecastData, hiddenSeries: hiddenSeries, isDarkTheme: isDarkTheme, shouldAnimate: shouldAnimate, showLegend: showLegend, forecastLineStyle: forecastLineStyle }), showTooltip && (jsx("div", { children: jsx(ChartTooltip, { cursor: false, content: renderTooltipContent }) }))] }) }), overlayElements, jsxs("div", { className: cn(S.footer, footerClassName), children: [showLegend &&
389
+ (legendVariant === 'svg' ? (jsx(LegendSvg, { payload: legendPayload.map(p => ({
390
+ value: p.value,
391
+ color: p.color,
392
+ dataKey: p.dataKey,
393
+ })), width: legendWidth, marginLeft: legendMarginLeft })) : (jsx(CustomChartLegend, { className: legendClassName, payload: legendPayload, onClick: onLegendClick, hiddenSeries: hiddenSeries, onAnalysisSelect: onAnalysisSelect, onFailedAnalysisClick: onFailedAnalysisClick, maxVisibleItems: maxVisibleItems, preventDeselection: preventDeselection }))), footerActions] })] }));
394
+ });
395
+ BaseChartWrapperContent.displayName = 'BaseChartWrapperContent';
396
+ /**
397
+ * Base chart wrapper component with common structure
398
+ * Handles container, grid, axes, tooltip, and legend
399
+ */
400
+ function BaseChartWrapper(props) {
401
+ const { renderId, chartData, loading, hasCombinedData, legendVariant } = props;
402
+ const [isReadyToRender, setIsReadyToRender] = useState(false);
403
+ const containerRef = useRef(null);
404
+ // Register callback in render queue on mount, only if chart is visible
405
+ useEffect(() => {
406
+ // Export mode (legendVariant=svg): render immediately, skip queue
407
+ if (legendVariant === 'svg') {
408
+ setIsReadyToRender(true);
409
+ return;
410
+ }
411
+ // Skip render queue if data is available from cache, chartData is ready, and not loading
412
+ if (hasCombinedData && chartData.length > 0 && !loading) {
413
+ setIsReadyToRender(true);
414
+ return;
415
+ }
416
+ let observer = null;
417
+ // Wait for DOM to be ready before checking visibility
418
+ const checkAndRegister = () => {
419
+ const container = containerRef.current;
420
+ if (!container) {
421
+ return;
422
+ }
423
+ // Check if element is already visible
424
+ const rect = container.getBoundingClientRect();
425
+ const isVisible = rect.width > 0 &&
426
+ rect.height > 0 &&
427
+ rect.top < window.innerHeight &&
428
+ rect.bottom > 0 &&
429
+ rect.left < window.innerWidth &&
430
+ rect.right > 0;
431
+ if (isVisible) {
432
+ chartRenderQueue.registerCallback(() => {
433
+ setIsReadyToRender(true);
434
+ });
435
+ return;
436
+ }
437
+ // Otherwise, wait for element to become visible using IntersectionObserver
438
+ observer = new IntersectionObserver(entries => {
439
+ const entry = entries[0];
440
+ if (entry.isIntersecting) {
441
+ // Element is visible, register callback
442
+ chartRenderQueue.registerCallback(() => {
443
+ setIsReadyToRender(true);
444
+ });
445
+ observer?.disconnect();
446
+ }
447
+ }, {
448
+ threshold: 0.01, // Trigger when at least 1% of the element is visible
449
+ });
450
+ observer.observe(container);
451
+ };
452
+ // Use requestAnimationFrame to ensure DOM is ready
453
+ const rafId = requestAnimationFrame(() => {
454
+ checkAndRegister();
455
+ });
456
+ return () => {
457
+ cancelAnimationFrame(rafId);
458
+ observer?.disconnect();
459
+ };
460
+ }, [renderId, chartData.length, loading, hasCombinedData, legendVariant]);
461
+ // Show loading skeleton when datasets list is loading (after all hooks are called)
462
+ if (loading) {
463
+ return (jsx(BaseChartWrapperLoading, { ref: containerRef, className: cn(props.className, props.loadingComponentClassName), height: props.height, loadingMessage: props.loadingMessage }));
464
+ }
465
+ // If not ready to render, show loading component (no hooks initialized)
466
+ if (!isReadyToRender) {
467
+ return (jsx(BaseChartWrapperLoading, { ref: containerRef, className: cn(props.className, props.loadingComponentClassName), height: props.height, loadingMessage: props.loadingMessage }));
468
+ }
469
+ // Render chart content with all hooks
470
+ return jsx(BaseChartWrapperContent, { ref: containerRef, ...props });
471
+ }
472
+
473
+ export { BaseChartWrapper };
@@ -0,0 +1,7 @@
1
+ import styleInject from 'style-inject';
2
+
3
+ var css_248z = ".BaseChartWrapper_chartContainer__J6CIc,.BaseChartWrapper_root__hhfho{min-height:100%}.BaseChartWrapper_root__hhfho{position:relative;width:100%}.BaseChartWrapper_gridLayer__cwJXA{pointer-events:none;position:absolute;z-index:1}.BaseChartWrapper_gridLayer__cwJXA .recharts-cartesian-axis{pointer-events:auto;z-index:1}.BaseChartWrapper_chartLayer__HmBaJ{inset:0;pointer-events:auto;position:relative;z-index:3}.BaseChartWrapper_chartLayer__HmBaJ .recharts-surface{background:transparent}.BaseChartWrapper_chartLayer__HmBaJ .recharts-layer{pointer-events:none}.BaseChartWrapper_chartLayer__HmBaJ .recharts-tooltip-wrapper{visibility:visible!important}.BaseChartWrapper_invisibleAxis__TQ-Zk .recharts-cartesian-axis-tick{visibility:hidden}.BaseChartWrapper_legend__gkSy1{position:absolute;top:100%;width:100%}.BaseChartWrapper_noLegend__jqaPa{display:block}.BaseChartWrapper_hideChartAxesLegend__dgVx- .recharts-cartesian-axis-tick-label{display:none!important}.BaseChartWrapper_chartLoadingContainer__AJP-0{align-items:center;display:flex;height:var(--chart-height);justify-content:center;width:100%}.BaseChartWrapper_loadingOverlay__GcOkA{height:100%;inset:0;opacity:.5;pointer-events:none;position:absolute;transition:opacity .1s ease-out;width:100%;z-index:10}.BaseChartWrapper_loadingOverlay__GcOkA [data-slot=skeleton]{border-radius:var(--p-4)!important}.BaseChartWrapper_loaded__Gj15C .BaseChartWrapper_loadingOverlay__GcOkA{opacity:0}.BaseChartWrapper_errorContainer__1bXy1{align-items:center;color:var(--destructive);display:flex;justify-content:center;min-height:250px}.BaseChartWrapper_errorMessage__veSmB{color:var(--destructive)}.BaseChartWrapper_footer__nP5u6{align-items:center;display:flex;gap:var(--p-2);justify-content:space-between}";
4
+ var S = {"root":"BaseChartWrapper_root__hhfho","chartContainer":"BaseChartWrapper_chartContainer__J6CIc","gridLayer":"BaseChartWrapper_gridLayer__cwJXA","chartLayer":"BaseChartWrapper_chartLayer__HmBaJ","invisibleAxis":"BaseChartWrapper_invisibleAxis__TQ-Zk","legend":"BaseChartWrapper_legend__gkSy1","noLegend":"BaseChartWrapper_noLegend__jqaPa","hideChartAxesLegend":"BaseChartWrapper_hideChartAxesLegend__dgVx-","chartLoadingContainer":"BaseChartWrapper_chartLoadingContainer__AJP-0","loadingOverlay":"BaseChartWrapper_loadingOverlay__GcOkA","loaded":"BaseChartWrapper_loaded__Gj15C","errorContainer":"BaseChartWrapper_errorContainer__1bXy1","errorMessage":"BaseChartWrapper_errorMessage__veSmB","footer":"BaseChartWrapper_footer__nP5u6"};
5
+ styleInject(css_248z);
6
+
7
+ export { S as default };
@@ -0,0 +1,52 @@
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { useMemo } from 'react';
3
+ import { XAxis, Label, YAxis } from 'recharts';
4
+ import { generateRoundedYTicks, formatNumber, formatYAxisNumber } from '../tools/formatters.js';
5
+
6
+ function ChartAxes({ xAxisClassName, yAxisClassName, xAxisLabel, yAxisLabel, formatDate,
7
+ // formatNumber = formatYAxisNumber,
8
+ xMin, xMax, yMin, yMax, autoScaleYAxis = false, }) {
9
+ const tickColor = 'var(--muted-foreground)';
10
+ // Generate rounded ticks to avoid duplicates when we have explicit domain
11
+ const yTicks = useMemo(() => {
12
+ if (yMin !== undefined && yMax !== undefined && !autoScaleYAxis) {
13
+ const ticks = generateRoundedYTicks(yMin, yMax);
14
+ const formatter = formatNumber || formatYAxisNumber;
15
+ // Group ticks by formatted value and keep the one closest to its rounded value
16
+ const ticksByFormatted = new Map();
17
+ ticks.forEach(tick => {
18
+ const formatted = formatter(tick);
19
+ // Parse formatted value back to number to find the target rounded value
20
+ const targetValue = parseFloat(formatted.replace(/[KM]$/, '')) || 0;
21
+ const multiplier = formatted.endsWith('M')
22
+ ? 1000000
23
+ : formatted.endsWith('K')
24
+ ? 1000
25
+ : 1;
26
+ const roundedTarget = targetValue * multiplier;
27
+ const existing = ticksByFormatted.get(formatted);
28
+ if (existing === undefined ||
29
+ Math.abs(tick - roundedTarget) < Math.abs(existing - roundedTarget)) {
30
+ ticksByFormatted.set(formatted, tick);
31
+ }
32
+ });
33
+ return Array.from(ticksByFormatted.values()).sort((a, b) => a - b);
34
+ }
35
+ return undefined;
36
+ }, [yMin, yMax, autoScaleYAxis, formatNumber]);
37
+ // Determine Y-axis domain
38
+ let yDomain;
39
+ if (autoScaleYAxis) {
40
+ yDomain = [
41
+ (dataMin) => dataMin * 0.95,
42
+ (dataMax) => dataMax * 1.05,
43
+ ];
44
+ }
45
+ else if (yMin !== undefined && yMax !== undefined) {
46
+ yDomain = [yMin, yMax];
47
+ }
48
+ return (jsxs(Fragment, { children: [jsx(XAxis, { className: xAxisClassName, dataKey: "date", tickLine: false, axisLine: false, tickMargin: 8, minTickGap: 32, tick: { fill: tickColor }, tickFormatter: value => formatDate(value), ...(xMin !== undefined &&
49
+ xMax !== undefined && { domain: [xMin, xMax] }), children: xAxisLabel && (jsx(Label, { value: xAxisLabel, position: "insideBottom", offset: -5 })) }), jsx(YAxis, { className: yAxisClassName, tickLine: false, axisLine: false, tickMargin: 8, minTickGap: 32, tick: { fill: tickColor }, tickFormatter: formatNumber, ...(yDomain && { domain: yDomain }), ...(yTicks && { ticks: yTicks }), allowDataOverflow: !autoScaleYAxis, children: yAxisLabel && (jsx(Label, { value: yAxisLabel, angle: -90, position: "insideLeft" })) })] }));
50
+ }
51
+
52
+ export { ChartAxes };
@@ -0,0 +1,31 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import cn from 'classnames';
3
+ import { useId } from 'react';
4
+ import { ChartContext } from '../Chart.context.js';
5
+ import { THEMES } from '../Chart.types.js';
6
+ import * as RechartsPrimitive from 'recharts';
7
+ import S from '../Chart.styl.js';
8
+
9
+ function ChartContainer({ id, className, children, config, ...props }) {
10
+ const uniqueId = useId();
11
+ const chartId = `chart-${id || uniqueId.replace(/:/g, '')}`;
12
+ return (jsx(ChartContext.Provider, { value: { config }, children: jsxs("div", { "data-slot": "chart", "data-chart": chartId, className: cn(S.chartContainer, className), ...props, children: [jsx(ChartStyle, { id: chartId, config: config }), jsx(RechartsPrimitive.ResponsiveContainer, { children: children })] }) }));
13
+ }
14
+ const ChartStyle = ({ id, config, }) => {
15
+ const colorConfig = Object.entries(config).filter(([, config]) => config.theme || config.color);
16
+ if (!colorConfig.length)
17
+ return null;
18
+ return (jsx("style", { children: Object.entries(THEMES).map(([theme, prefix]) => `
19
+ ${prefix} [data-chart=${id}] {
20
+ ${colorConfig
21
+ .map(([key, itemConfig]) => {
22
+ const color = itemConfig.theme?.[theme] ||
23
+ itemConfig.color;
24
+ return color ? ` --color-${key}: ${color};` : null;
25
+ })
26
+ .join('\n')}
27
+ }
28
+ `) }));
29
+ };
30
+
31
+ export { ChartContainer, ChartStyle };
@@ -0,0 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { CartesianGrid } from 'recharts';
3
+ import S from '../Chart.styl.js';
4
+
5
+ function ChartGrid() {
6
+ return jsx(CartesianGrid, { className: S.chartGrid, strokeWidth: 0.6 });
7
+ }
8
+
9
+ export { ChartGrid };
@@ -0,0 +1,17 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import cn from 'classnames';
3
+ import { useChart } from '../Chart.context.js';
4
+ import S from '../Chart.styl.js';
5
+ import { ChartLegendItem } from './ChartLegendItem.js';
6
+
7
+ function ChartLegendContent({ className, hideIcon = false, payload, verticalAlign = 'bottom', nameKey, }) {
8
+ const { config } = useChart();
9
+ if (!payload?.length) {
10
+ return null;
11
+ }
12
+ return (jsx("div", { className: cn(S.legendContainer, verticalAlign === 'top' ? 'pb-3' : 'pt-3', className), children: payload
13
+ .filter(item => item.type !== 'none')
14
+ .map(item => (jsx(ChartLegendItem, { item: item, config: config, hideIcon: hideIcon, nameKey: nameKey }, item.value))) }));
15
+ }
16
+
17
+ export { ChartLegendContent };