@perses-dev/components 0.0.0-snapshot-embed-import-errors-8906900 → 0.0.0-snapshot-test-internal-dep-dd238ac

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 (450) hide show
  1. package/README.md +2 -3
  2. package/dist/ColorPicker/ColorPicker.d.ts +12 -0
  3. package/dist/ColorPicker/ColorPicker.d.ts.map +1 -0
  4. package/dist/ColorPicker/ColorPicker.js +78 -0
  5. package/dist/ColorPicker/ColorPicker.js.map +1 -0
  6. package/dist/ColorPicker/index.d.ts +2 -0
  7. package/dist/ColorPicker/index.d.ts.map +1 -0
  8. package/dist/{Tooltip → ColorPicker}/index.js +2 -3
  9. package/dist/ColorPicker/index.js.map +1 -0
  10. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts +2 -1
  11. package/dist/DateTimeRangePicker/AbsoluteTimePicker.d.ts.map +1 -1
  12. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js +88 -51
  13. package/dist/DateTimeRangePicker/AbsoluteTimePicker.js.map +1 -1
  14. package/dist/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
  15. package/dist/DateTimeRangePicker/DateTimeRangePicker.js +3 -2
  16. package/dist/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -1
  17. package/dist/DateTimeRangePicker/TimeRangeSelector.d.ts.map +1 -1
  18. package/dist/DateTimeRangePicker/TimeRangeSelector.js +4 -1
  19. package/dist/DateTimeRangePicker/TimeRangeSelector.js.map +1 -1
  20. package/dist/DateTimeRangePicker/index.js +1 -1
  21. package/dist/DateTimeRangePicker/index.js.map +1 -1
  22. package/dist/DateTimeRangePicker/utils.js +1 -1
  23. package/dist/DateTimeRangePicker/utils.js.map +1 -1
  24. package/dist/Dialog/Dialog.d.ts +24 -0
  25. package/dist/Dialog/Dialog.d.ts.map +1 -0
  26. package/dist/Dialog/Dialog.js +74 -0
  27. package/dist/Dialog/Dialog.js.map +1 -0
  28. package/dist/Dialog/index.d.ts +2 -0
  29. package/dist/Dialog/index.d.ts.map +1 -0
  30. package/dist/Dialog/index.js +15 -0
  31. package/dist/{Tooltip → Dialog}/index.js.map +1 -1
  32. package/dist/Drawer/Drawer.js +1 -1
  33. package/dist/Drawer/Drawer.js.map +1 -1
  34. package/dist/Drawer/index.js +1 -1
  35. package/dist/Drawer/index.js.map +1 -1
  36. package/dist/{EChart.d.ts → EChart/EChart.d.ts} +3 -3
  37. package/dist/EChart/EChart.d.ts.map +1 -0
  38. package/dist/{EChart.js → EChart/EChart.js} +2 -3
  39. package/dist/EChart/EChart.js.map +1 -0
  40. package/dist/EChart/index.d.ts +2 -0
  41. package/dist/EChart/index.d.ts.map +1 -0
  42. package/dist/EChart/index.js +15 -0
  43. package/dist/EChart/index.js.map +1 -0
  44. package/dist/ErrorAlert.js +1 -1
  45. package/dist/ErrorAlert.js.map +1 -1
  46. package/dist/ErrorBoundary.js +1 -1
  47. package/dist/ErrorBoundary.js.map +1 -1
  48. package/dist/GaugeChart/GaugeChart.d.ts +1 -2
  49. package/dist/GaugeChart/GaugeChart.d.ts.map +1 -1
  50. package/dist/GaugeChart/GaugeChart.js +3 -2
  51. package/dist/GaugeChart/GaugeChart.js.map +1 -1
  52. package/dist/GaugeChart/index.js +1 -1
  53. package/dist/GaugeChart/index.js.map +1 -1
  54. package/dist/InfoTooltip/InfoTooltip.d.ts +1 -6
  55. package/dist/InfoTooltip/InfoTooltip.d.ts.map +1 -1
  56. package/dist/InfoTooltip/InfoTooltip.js +2 -9
  57. package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
  58. package/dist/InfoTooltip/index.js +1 -1
  59. package/dist/InfoTooltip/index.js.map +1 -1
  60. package/dist/JSONEditor.js +1 -1
  61. package/dist/JSONEditor.js.map +1 -1
  62. package/dist/Legend/CompactLegend.js +1 -1
  63. package/dist/Legend/CompactLegend.js.map +1 -1
  64. package/dist/Legend/Legend.d.ts.map +1 -1
  65. package/dist/Legend/Legend.js +13 -5
  66. package/dist/Legend/Legend.js.map +1 -1
  67. package/dist/Legend/LegendColorBadge.js +1 -1
  68. package/dist/Legend/LegendColorBadge.js.map +1 -1
  69. package/dist/Legend/ListLegend.js +1 -1
  70. package/dist/Legend/ListLegend.js.map +1 -1
  71. package/dist/Legend/ListLegendItem.js +1 -1
  72. package/dist/Legend/ListLegendItem.js.map +1 -1
  73. package/dist/Legend/index.js +1 -1
  74. package/dist/Legend/index.js.map +1 -1
  75. package/dist/LegendOptionsEditor/LegendOptionsEditor.d.ts.map +1 -1
  76. package/dist/LegendOptionsEditor/LegendOptionsEditor.js +13 -18
  77. package/dist/LegendOptionsEditor/LegendOptionsEditor.js.map +1 -1
  78. package/dist/LegendOptionsEditor/index.js +1 -1
  79. package/dist/LegendOptionsEditor/index.js.map +1 -1
  80. package/dist/LineChart/LineChart.d.ts +4 -2
  81. package/dist/LineChart/LineChart.d.ts.map +1 -1
  82. package/dist/LineChart/LineChart.js +4 -4
  83. package/dist/LineChart/LineChart.js.map +1 -1
  84. package/dist/LineChart/index.js +1 -1
  85. package/dist/LineChart/index.js.map +1 -1
  86. package/dist/LineChart/utils.js +2 -2
  87. package/dist/LineChart/utils.js.map +1 -1
  88. package/dist/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
  89. package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
  90. package/dist/OptionsEditorLayout/OptionsEditorControl.js +2 -2
  91. package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
  92. package/dist/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
  93. package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
  94. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts +3 -2
  95. package/dist/OptionsEditorLayout/OptionsEditorGroup.d.ts.map +1 -1
  96. package/dist/OptionsEditorLayout/OptionsEditorGroup.js +18 -6
  97. package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
  98. package/dist/OptionsEditorLayout/index.js +1 -1
  99. package/dist/OptionsEditorLayout/index.js.map +1 -1
  100. package/dist/StatChart/StatChart.d.ts +1 -3
  101. package/dist/StatChart/StatChart.d.ts.map +1 -1
  102. package/dist/StatChart/StatChart.js +23 -16
  103. package/dist/StatChart/StatChart.js.map +1 -1
  104. package/dist/StatChart/index.js +1 -1
  105. package/dist/StatChart/index.js.map +1 -1
  106. package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts +4 -0
  107. package/dist/ThresholdsEditor/ThresholdColorPicker.d.ts.map +1 -0
  108. package/dist/ThresholdsEditor/ThresholdColorPicker.js +76 -0
  109. package/dist/ThresholdsEditor/ThresholdColorPicker.js.map +1 -0
  110. package/dist/ThresholdsEditor/ThresholdInput.d.ts +13 -0
  111. package/dist/ThresholdsEditor/ThresholdInput.d.ts.map +1 -0
  112. package/dist/ThresholdsEditor/ThresholdInput.js +61 -0
  113. package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -0
  114. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts +10 -0
  115. package/dist/ThresholdsEditor/ThresholdsEditor.d.ts.map +1 -0
  116. package/dist/ThresholdsEditor/ThresholdsEditor.js +215 -0
  117. package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -0
  118. package/dist/ThresholdsEditor/index.d.ts +2 -0
  119. package/dist/ThresholdsEditor/index.d.ts.map +1 -0
  120. package/dist/ThresholdsEditor/index.js +15 -0
  121. package/dist/ThresholdsEditor/index.js.map +1 -0
  122. package/dist/{Tooltip → TimeSeriesTooltip}/SeriesInfo.d.ts +1 -2
  123. package/dist/TimeSeriesTooltip/SeriesInfo.d.ts.map +1 -0
  124. package/dist/TimeSeriesTooltip/SeriesInfo.js +89 -0
  125. package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -0
  126. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts +9 -0
  127. package/dist/TimeSeriesTooltip/SeriesLabelsStack.d.ts.map +1 -0
  128. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js +99 -0
  129. package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -0
  130. package/dist/{Tooltip → TimeSeriesTooltip}/SeriesMarker.d.ts +2 -1
  131. package/dist/TimeSeriesTooltip/SeriesMarker.d.ts.map +1 -0
  132. package/dist/{Tooltip → TimeSeriesTooltip}/SeriesMarker.js +7 -7
  133. package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -0
  134. package/dist/{Tooltip/Tooltip.d.ts → TimeSeriesTooltip/TimeSeriesTooltip.d.ts} +4 -4
  135. package/dist/TimeSeriesTooltip/TimeSeriesTooltip.d.ts.map +1 -0
  136. package/dist/{Tooltip/Tooltip.js → TimeSeriesTooltip/TimeSeriesTooltip.js} +3 -4
  137. package/dist/TimeSeriesTooltip/TimeSeriesTooltip.js.map +1 -0
  138. package/dist/{Tooltip → TimeSeriesTooltip}/TooltipContent.d.ts +1 -2
  139. package/dist/TimeSeriesTooltip/TooltipContent.d.ts.map +1 -0
  140. package/dist/{Tooltip → TimeSeriesTooltip}/TooltipContent.js +1 -1
  141. package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -0
  142. package/dist/TimeSeriesTooltip/focused-series.d.ts.map +1 -0
  143. package/dist/{Tooltip → TimeSeriesTooltip}/focused-series.js +6 -6
  144. package/dist/TimeSeriesTooltip/focused-series.js.map +1 -0
  145. package/dist/TimeSeriesTooltip/index.d.ts +9 -0
  146. package/dist/TimeSeriesTooltip/index.d.ts.map +1 -0
  147. package/dist/TimeSeriesTooltip/index.js +22 -0
  148. package/dist/TimeSeriesTooltip/index.js.map +1 -0
  149. package/dist/TimeSeriesTooltip/tooltip-model.d.ts.map +1 -0
  150. package/dist/{Tooltip → TimeSeriesTooltip}/tooltip-model.js +1 -1
  151. package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -0
  152. package/dist/TimeSeriesTooltip/utils.d.ts.map +1 -0
  153. package/dist/{Tooltip → TimeSeriesTooltip}/utils.js +1 -1
  154. package/dist/TimeSeriesTooltip/utils.js.map +1 -0
  155. package/dist/UnitSelector/UnitSelector.js +1 -1
  156. package/dist/UnitSelector/UnitSelector.js.map +1 -1
  157. package/dist/UnitSelector/index.js +1 -1
  158. package/dist/UnitSelector/index.js.map +1 -1
  159. package/dist/YAxisLabel.js +1 -1
  160. package/dist/YAxisLabel.js.map +1 -1
  161. package/dist/cjs/ColorPicker/ColorPicker.js +128 -0
  162. package/dist/cjs/{Tooltip → ColorPicker}/index.js +2 -3
  163. package/dist/cjs/DateTimeRangePicker/AbsoluteTimePicker.js +87 -50
  164. package/dist/cjs/DateTimeRangePicker/DateTimeRangePicker.js +3 -2
  165. package/dist/cjs/DateTimeRangePicker/TimeRangeSelector.js +4 -1
  166. package/dist/cjs/DateTimeRangePicker/index.js +1 -1
  167. package/dist/cjs/DateTimeRangePicker/utils.js +1 -1
  168. package/dist/cjs/Dialog/Dialog.js +85 -0
  169. package/dist/cjs/Dialog/index.js +28 -0
  170. package/dist/cjs/Drawer/Drawer.js +1 -1
  171. package/dist/cjs/Drawer/index.js +1 -1
  172. package/dist/cjs/{EChart.js → EChart/EChart.js} +5 -11
  173. package/dist/cjs/EChart/index.js +28 -0
  174. package/dist/cjs/ErrorAlert.js +1 -1
  175. package/dist/cjs/ErrorBoundary.js +1 -1
  176. package/dist/cjs/GaugeChart/GaugeChart.js +3 -2
  177. package/dist/cjs/GaugeChart/index.js +1 -1
  178. package/dist/cjs/InfoTooltip/InfoTooltip.js +5 -18
  179. package/dist/cjs/InfoTooltip/index.js +1 -1
  180. package/dist/cjs/JSONEditor.js +1 -1
  181. package/dist/cjs/Legend/CompactLegend.js +1 -1
  182. package/dist/cjs/Legend/Legend.js +13 -5
  183. package/dist/cjs/Legend/LegendColorBadge.js +1 -1
  184. package/dist/cjs/Legend/ListLegend.js +1 -1
  185. package/dist/cjs/Legend/ListLegendItem.js +1 -1
  186. package/dist/cjs/Legend/index.js +1 -1
  187. package/dist/cjs/LegendOptionsEditor/LegendOptionsEditor.js +13 -18
  188. package/dist/cjs/LegendOptionsEditor/index.js +1 -1
  189. package/dist/cjs/LineChart/LineChart.js +43 -4
  190. package/dist/cjs/LineChart/index.js +1 -1
  191. package/dist/cjs/LineChart/utils.js +3 -8
  192. package/dist/cjs/OptionsEditorLayout/OptionsEditorColumn.js +1 -1
  193. package/dist/cjs/OptionsEditorLayout/OptionsEditorControl.js +2 -2
  194. package/dist/cjs/OptionsEditorLayout/OptionsEditorGrid.js +1 -1
  195. package/dist/cjs/OptionsEditorLayout/OptionsEditorGroup.js +23 -6
  196. package/dist/cjs/OptionsEditorLayout/index.js +1 -1
  197. package/dist/cjs/StatChart/StatChart.js +24 -60
  198. package/dist/cjs/StatChart/index.js +1 -1
  199. package/dist/cjs/ThresholdsEditor/ThresholdColorPicker.js +87 -0
  200. package/dist/cjs/ThresholdsEditor/ThresholdInput.js +72 -0
  201. package/dist/cjs/ThresholdsEditor/ThresholdsEditor.js +265 -0
  202. package/dist/cjs/ThresholdsEditor/index.js +28 -0
  203. package/dist/cjs/TimeSeriesTooltip/SeriesInfo.js +95 -0
  204. package/dist/cjs/TimeSeriesTooltip/SeriesLabelsStack.js +105 -0
  205. package/dist/cjs/{Tooltip → TimeSeriesTooltip}/SeriesMarker.js +7 -7
  206. package/dist/cjs/{Tooltip/Tooltip.js → TimeSeriesTooltip/TimeSeriesTooltip.js} +4 -4
  207. package/dist/cjs/{Tooltip → TimeSeriesTooltip}/TooltipContent.js +1 -1
  208. package/dist/cjs/{Tooltip → TimeSeriesTooltip}/focused-series.js +6 -6
  209. package/dist/cjs/TimeSeriesTooltip/index.js +35 -0
  210. package/dist/cjs/{Tooltip → TimeSeriesTooltip}/tooltip-model.js +1 -1
  211. package/dist/cjs/{Tooltip → TimeSeriesTooltip}/utils.js +1 -1
  212. package/dist/cjs/UnitSelector/UnitSelector.js +1 -1
  213. package/dist/cjs/UnitSelector/index.js +1 -1
  214. package/dist/cjs/YAxisLabel.js +1 -1
  215. package/dist/cjs/context/ChartsThemeProvider.js +1 -1
  216. package/dist/cjs/context/TimeZoneProvider.js +1 -1
  217. package/dist/cjs/index.js +5 -1
  218. package/dist/cjs/model/graph.js +4 -15
  219. package/dist/cjs/model/index.js +2 -1
  220. package/dist/cjs/model/legend.js +67 -0
  221. package/dist/cjs/model/theme.js +1 -1
  222. package/dist/cjs/model/units/bytes.js +1 -1
  223. package/dist/cjs/model/units/constants.js +1 -1
  224. package/dist/cjs/model/units/decimal.js +5 -2
  225. package/dist/cjs/model/units/index.js +1 -1
  226. package/dist/cjs/model/units/percent.js +1 -1
  227. package/dist/cjs/model/units/time.js +1 -1
  228. package/dist/cjs/model/units/types.js +1 -1
  229. package/dist/cjs/model/units/units.js +1 -1
  230. package/dist/cjs/test/index.js +1 -1
  231. package/dist/cjs/test/render.js +1 -1
  232. package/dist/cjs/test/setup-tests.js +1 -1
  233. package/dist/cjs/test-utils/index.js +1 -1
  234. package/dist/cjs/test-utils/theme.js +14 -1
  235. package/dist/cjs/theme/index.js +1 -1
  236. package/dist/cjs/theme/palette/background.js +1 -1
  237. package/dist/cjs/theme/palette/colors/blue.js +1 -1
  238. package/dist/cjs/theme/palette/colors/common.js +1 -1
  239. package/dist/cjs/theme/palette/colors/green.js +1 -1
  240. package/dist/cjs/theme/palette/colors/grey.js +1 -1
  241. package/dist/cjs/theme/palette/colors/index.js +1 -1
  242. package/dist/cjs/theme/palette/colors/orange.js +1 -1
  243. package/dist/cjs/theme/palette/colors/purple.js +1 -1
  244. package/dist/cjs/theme/palette/colors/red.js +1 -1
  245. package/dist/cjs/theme/palette/colors/types.js +1 -1
  246. package/dist/cjs/theme/palette/error.js +1 -1
  247. package/dist/cjs/theme/palette/grey.js +1 -1
  248. package/dist/cjs/theme/palette/index.js +1 -1
  249. package/dist/cjs/theme/palette/palette-options.js +1 -1
  250. package/dist/cjs/theme/palette/primary.js +1 -1
  251. package/dist/cjs/theme/palette/secondary.js +1 -1
  252. package/dist/cjs/theme/palette/success.js +1 -1
  253. package/dist/cjs/theme/palette/text.js +1 -1
  254. package/dist/cjs/theme/palette/warning.js +1 -1
  255. package/dist/cjs/theme/theme.js +17 -1
  256. package/dist/cjs/theme/types/ThemeExtension.d.js +1 -1
  257. package/dist/cjs/theme/typography.js +5 -1
  258. package/dist/cjs/utils/combine-sx.js +1 -1
  259. package/dist/cjs/utils/component-ids.js +1 -1
  260. package/dist/cjs/utils/format.js +1 -1
  261. package/dist/cjs/utils/index.js +1 -1
  262. package/dist/cjs/utils/mathjs.js +1 -1
  263. package/dist/cjs/utils/theme-gen.js +16 -8
  264. package/dist/context/ChartsThemeProvider.js +1 -1
  265. package/dist/context/ChartsThemeProvider.js.map +1 -1
  266. package/dist/context/TimeZoneProvider.js +1 -1
  267. package/dist/context/TimeZoneProvider.js.map +1 -1
  268. package/dist/index.d.ts +4 -0
  269. package/dist/index.d.ts.map +1 -1
  270. package/dist/index.js +5 -1
  271. package/dist/index.js.map +1 -1
  272. package/dist/model/graph.d.ts +3 -18
  273. package/dist/model/graph.d.ts.map +1 -1
  274. package/dist/model/graph.js +1 -5
  275. package/dist/model/graph.js.map +1 -1
  276. package/dist/model/index.d.ts +1 -0
  277. package/dist/model/index.d.ts.map +1 -1
  278. package/dist/model/index.js +2 -1
  279. package/dist/model/index.js.map +1 -1
  280. package/dist/model/legend.d.ts +22 -0
  281. package/dist/model/legend.d.ts.map +1 -0
  282. package/dist/model/legend.js +51 -0
  283. package/dist/model/legend.js.map +1 -0
  284. package/dist/model/theme.d.ts +16 -0
  285. package/dist/model/theme.d.ts.map +1 -1
  286. package/dist/model/theme.js +1 -1
  287. package/dist/model/theme.js.map +1 -1
  288. package/dist/model/units/bytes.d.ts +1 -1
  289. package/dist/model/units/bytes.d.ts.map +1 -1
  290. package/dist/model/units/bytes.js +1 -1
  291. package/dist/model/units/bytes.js.map +1 -1
  292. package/dist/model/units/constants.js +1 -1
  293. package/dist/model/units/constants.js.map +1 -1
  294. package/dist/model/units/decimal.d.ts +1 -1
  295. package/dist/model/units/decimal.d.ts.map +1 -1
  296. package/dist/model/units/decimal.js +5 -2
  297. package/dist/model/units/decimal.js.map +1 -1
  298. package/dist/model/units/index.js +1 -1
  299. package/dist/model/units/index.js.map +1 -1
  300. package/dist/model/units/percent.d.ts +1 -1
  301. package/dist/model/units/percent.d.ts.map +1 -1
  302. package/dist/model/units/percent.js +1 -1
  303. package/dist/model/units/percent.js.map +1 -1
  304. package/dist/model/units/time.d.ts +1 -1
  305. package/dist/model/units/time.d.ts.map +1 -1
  306. package/dist/model/units/time.js +1 -1
  307. package/dist/model/units/time.js.map +1 -1
  308. package/dist/model/units/types.d.ts +1 -1
  309. package/dist/model/units/types.d.ts.map +1 -1
  310. package/dist/model/units/types.js +1 -1
  311. package/dist/model/units/types.js.map +1 -1
  312. package/dist/model/units/units.js +1 -1
  313. package/dist/model/units/units.js.map +1 -1
  314. package/dist/test/index.js +1 -1
  315. package/dist/test/index.js.map +1 -1
  316. package/dist/test/render.js +1 -1
  317. package/dist/test/render.js.map +1 -1
  318. package/dist/test/setup-tests.js +1 -1
  319. package/dist/test/setup-tests.js.map +1 -1
  320. package/dist/test-utils/index.js +1 -1
  321. package/dist/test-utils/index.js.map +1 -1
  322. package/dist/test-utils/theme.d.ts.map +1 -1
  323. package/dist/test-utils/theme.js +14 -1
  324. package/dist/test-utils/theme.js.map +1 -1
  325. package/dist/theme/index.js +1 -1
  326. package/dist/theme/index.js.map +1 -1
  327. package/dist/theme/palette/background.js +1 -1
  328. package/dist/theme/palette/background.js.map +1 -1
  329. package/dist/theme/palette/colors/blue.js +1 -1
  330. package/dist/theme/palette/colors/blue.js.map +1 -1
  331. package/dist/theme/palette/colors/common.js +1 -1
  332. package/dist/theme/palette/colors/common.js.map +1 -1
  333. package/dist/theme/palette/colors/green.js +1 -1
  334. package/dist/theme/palette/colors/green.js.map +1 -1
  335. package/dist/theme/palette/colors/grey.js +1 -1
  336. package/dist/theme/palette/colors/grey.js.map +1 -1
  337. package/dist/theme/palette/colors/index.js +1 -1
  338. package/dist/theme/palette/colors/index.js.map +1 -1
  339. package/dist/theme/palette/colors/orange.js +1 -1
  340. package/dist/theme/palette/colors/orange.js.map +1 -1
  341. package/dist/theme/palette/colors/purple.js +1 -1
  342. package/dist/theme/palette/colors/purple.js.map +1 -1
  343. package/dist/theme/palette/colors/red.js +1 -1
  344. package/dist/theme/palette/colors/red.js.map +1 -1
  345. package/dist/theme/palette/colors/types.js +1 -1
  346. package/dist/theme/palette/colors/types.js.map +1 -1
  347. package/dist/theme/palette/error.js +1 -1
  348. package/dist/theme/palette/error.js.map +1 -1
  349. package/dist/theme/palette/grey.js +1 -1
  350. package/dist/theme/palette/grey.js.map +1 -1
  351. package/dist/theme/palette/index.js +1 -1
  352. package/dist/theme/palette/index.js.map +1 -1
  353. package/dist/theme/palette/palette-options.js +1 -1
  354. package/dist/theme/palette/palette-options.js.map +1 -1
  355. package/dist/theme/palette/primary.js +1 -1
  356. package/dist/theme/palette/primary.js.map +1 -1
  357. package/dist/theme/palette/secondary.js +1 -1
  358. package/dist/theme/palette/secondary.js.map +1 -1
  359. package/dist/theme/palette/success.js +1 -1
  360. package/dist/theme/palette/success.js.map +1 -1
  361. package/dist/theme/palette/text.js +1 -1
  362. package/dist/theme/palette/text.js.map +1 -1
  363. package/dist/theme/palette/warning.js +1 -1
  364. package/dist/theme/palette/warning.js.map +1 -1
  365. package/dist/theme/theme.d.ts.map +1 -1
  366. package/dist/theme/theme.js +18 -2
  367. package/dist/theme/theme.js.map +1 -1
  368. package/dist/theme/types/ThemeExtension.d.js +1 -1
  369. package/dist/theme/types/ThemeExtension.d.js.map +1 -1
  370. package/dist/theme/typography.d.ts +4 -0
  371. package/dist/theme/typography.d.ts.map +1 -1
  372. package/dist/theme/typography.js +5 -1
  373. package/dist/theme/typography.js.map +1 -1
  374. package/dist/utils/combine-sx.js +1 -1
  375. package/dist/utils/combine-sx.js.map +1 -1
  376. package/dist/utils/component-ids.js +1 -1
  377. package/dist/utils/component-ids.js.map +1 -1
  378. package/dist/utils/format.js +1 -1
  379. package/dist/utils/format.js.map +1 -1
  380. package/dist/utils/index.js +1 -1
  381. package/dist/utils/index.js.map +1 -1
  382. package/dist/utils/mathjs.js +1 -1
  383. package/dist/utils/mathjs.js.map +1 -1
  384. package/dist/utils/theme-gen.d.ts.map +1 -1
  385. package/dist/utils/theme-gen.js +15 -2
  386. package/dist/utils/theme-gen.js.map +1 -1
  387. package/package.json +10 -4
  388. package/dist/EChart.d.ts.map +0 -1
  389. package/dist/EChart.js.map +0 -1
  390. package/dist/InfoTooltip/InfoTooltip.test.d.ts +0 -2
  391. package/dist/InfoTooltip/InfoTooltip.test.d.ts.map +0 -1
  392. package/dist/InfoTooltip/InfoTooltip.test.js +0 -36
  393. package/dist/InfoTooltip/InfoTooltip.test.js.map +0 -1
  394. package/dist/LegendOptionsEditor/LegendOptionsEditor.test.d.ts +0 -2
  395. package/dist/LegendOptionsEditor/LegendOptionsEditor.test.d.ts.map +0 -1
  396. package/dist/LegendOptionsEditor/LegendOptionsEditor.test.js +0 -41
  397. package/dist/LegendOptionsEditor/LegendOptionsEditor.test.js.map +0 -1
  398. package/dist/StatChart/StatChart.test.d.ts +0 -2
  399. package/dist/StatChart/StatChart.test.d.ts.map +0 -1
  400. package/dist/StatChart/StatChart.test.js +0 -94
  401. package/dist/StatChart/StatChart.test.js.map +0 -1
  402. package/dist/Tooltip/SeriesInfo.d.ts.map +0 -1
  403. package/dist/Tooltip/SeriesInfo.js +0 -143
  404. package/dist/Tooltip/SeriesInfo.js.map +0 -1
  405. package/dist/Tooltip/SeriesMarker.d.ts.map +0 -1
  406. package/dist/Tooltip/SeriesMarker.js.map +0 -1
  407. package/dist/Tooltip/Tooltip.d.ts.map +0 -1
  408. package/dist/Tooltip/Tooltip.js.map +0 -1
  409. package/dist/Tooltip/TooltipContent.d.ts.map +0 -1
  410. package/dist/Tooltip/TooltipContent.js.map +0 -1
  411. package/dist/Tooltip/focused-series.d.ts.map +0 -1
  412. package/dist/Tooltip/focused-series.js.map +0 -1
  413. package/dist/Tooltip/focused-series.test.d.ts +0 -2
  414. package/dist/Tooltip/focused-series.test.d.ts.map +0 -1
  415. package/dist/Tooltip/focused-series.test.js +0 -93
  416. package/dist/Tooltip/focused-series.test.js.map +0 -1
  417. package/dist/Tooltip/index.d.ts +0 -3
  418. package/dist/Tooltip/index.d.ts.map +0 -1
  419. package/dist/Tooltip/tooltip-model.d.ts.map +0 -1
  420. package/dist/Tooltip/tooltip-model.js.map +0 -1
  421. package/dist/Tooltip/utils.d.ts.map +0 -1
  422. package/dist/Tooltip/utils.js.map +0 -1
  423. package/dist/UnitSelector/UnitSelector.test.d.ts +0 -2
  424. package/dist/UnitSelector/UnitSelector.test.d.ts.map +0 -1
  425. package/dist/UnitSelector/UnitSelector.test.js +0 -204
  426. package/dist/UnitSelector/UnitSelector.test.js.map +0 -1
  427. package/dist/cjs/InfoTooltip/InfoTooltip.test.js +0 -43
  428. package/dist/cjs/LegendOptionsEditor/LegendOptionsEditor.test.js +0 -48
  429. package/dist/cjs/StatChart/StatChart.test.js +0 -96
  430. package/dist/cjs/Tooltip/SeriesInfo.js +0 -149
  431. package/dist/cjs/Tooltip/focused-series.test.js +0 -95
  432. package/dist/cjs/UnitSelector/UnitSelector.test.js +0 -211
  433. package/dist/cjs/model/units/units.test.js +0 -153
  434. package/dist/cjs/utils/format.test.js +0 -47
  435. package/dist/cjs/utils/theme-gen.test.js +0 -197
  436. package/dist/model/units/units.test.d.ts +0 -2
  437. package/dist/model/units/units.test.d.ts.map +0 -1
  438. package/dist/model/units/units.test.js +0 -151
  439. package/dist/model/units/units.test.js.map +0 -1
  440. package/dist/utils/format.test.d.ts +0 -2
  441. package/dist/utils/format.test.d.ts.map +0 -1
  442. package/dist/utils/format.test.js +0 -45
  443. package/dist/utils/format.test.js.map +0 -1
  444. package/dist/utils/theme-gen.test.d.ts +0 -2
  445. package/dist/utils/theme-gen.test.d.ts.map +0 -1
  446. package/dist/utils/theme-gen.test.js +0 -195
  447. package/dist/utils/theme-gen.test.js.map +0 -1
  448. /package/dist/{Tooltip → TimeSeriesTooltip}/focused-series.d.ts +0 -0
  449. /package/dist/{Tooltip → TimeSeriesTooltip}/tooltip-model.d.ts +0 -0
  450. /package/dist/{Tooltip → TimeSeriesTooltip}/utils.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
package/dist/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -14,7 +14,9 @@
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
+ _exportStar(require("./ColorPicker"), exports);
17
18
  _exportStar(require("./DateTimeRangePicker"), exports);
19
+ _exportStar(require("./Dialog"), exports);
18
20
  _exportStar(require("./Drawer"), exports);
19
21
  _exportStar(require("./EChart"), exports);
20
22
  _exportStar(require("./ErrorAlert"), exports);
@@ -27,6 +29,8 @@ _exportStar(require("./LegendOptionsEditor"), exports);
27
29
  _exportStar(require("./LineChart"), exports);
28
30
  _exportStar(require("./OptionsEditorLayout"), exports);
29
31
  _exportStar(require("./StatChart"), exports);
32
+ _exportStar(require("./ThresholdsEditor"), exports);
33
+ _exportStar(require("./TimeSeriesTooltip"), exports);
30
34
  _exportStar(require("./UnitSelector"), exports);
31
35
  _exportStar(require("./YAxisLabel"), exports);
32
36
  _exportStar(require("./context/ChartsThemeProvider"), exports);
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -14,19 +14,8 @@
14
14
  Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
- function _export(target, all) {
18
- for(var name in all)Object.defineProperty(target, name, {
19
- enumerable: true,
20
- get: all[name]
21
- });
22
- }
23
- _export(exports, {
24
- OPTIMIZED_MODE_SERIES_LIMIT: ()=>OPTIMIZED_MODE_SERIES_LIMIT,
25
- DEFAULT_LEGEND_POSITION: ()=>DEFAULT_LEGEND_POSITION,
26
- DEFAULT_LEGEND: ()=>DEFAULT_LEGEND
17
+ Object.defineProperty(exports, "OPTIMIZED_MODE_SERIES_LIMIT", {
18
+ enumerable: true,
19
+ get: ()=>OPTIMIZED_MODE_SERIES_LIMIT
27
20
  });
28
21
  const OPTIMIZED_MODE_SERIES_LIMIT = 1000;
29
- const DEFAULT_LEGEND_POSITION = 'bottom';
30
- const DEFAULT_LEGEND = {
31
- position: DEFAULT_LEGEND_POSITION
32
- };
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
17
  _exportStar(require("./graph"), exports);
18
+ _exportStar(require("./legend"), exports);
18
19
  _exportStar(require("./theme"), exports);
19
20
  _exportStar(require("./units"), exports);
20
21
  function _exportStar(from, to) {
@@ -0,0 +1,67 @@
1
+ // Copyright 2023 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ function _export(target, all) {
18
+ for(var name in all)Object.defineProperty(target, name, {
19
+ enumerable: true,
20
+ get: all[name]
21
+ });
22
+ }
23
+ _export(exports, {
24
+ legendPositions: ()=>legendPositions,
25
+ LEGEND_POSITIONS_CONFIG: ()=>LEGEND_POSITIONS_CONFIG,
26
+ DEFAULT_LEGEND: ()=>DEFAULT_LEGEND,
27
+ getLegendPosition: ()=>getLegendPosition,
28
+ isValidLegendPosition: ()=>isValidLegendPosition,
29
+ validateLegendSpec: ()=>validateLegendSpec
30
+ });
31
+ const legendPositions = [
32
+ 'Bottom',
33
+ 'Right'
34
+ ];
35
+ const LEGEND_POSITIONS_CONFIG = {
36
+ Bottom: {
37
+ label: 'Bottom'
38
+ },
39
+ Right: {
40
+ label: 'Right'
41
+ }
42
+ };
43
+ const DEFAULT_LEGEND = {
44
+ position: 'Bottom'
45
+ };
46
+ function getLegendPosition(position) {
47
+ if (position === undefined) {
48
+ return DEFAULT_LEGEND.position;
49
+ }
50
+ if (isValidLegendPosition(position)) {
51
+ return position;
52
+ }
53
+ return DEFAULT_LEGEND.position;
54
+ }
55
+ function isValidLegendPosition(position) {
56
+ return legendPositions.includes(position);
57
+ }
58
+ function validateLegendSpec(legend) {
59
+ if (legend === undefined) {
60
+ // undefined is valid since this is how legend is hidden by default
61
+ return true;
62
+ }
63
+ if (!isValidLegendPosition(legend.position)) {
64
+ return false;
65
+ }
66
+ return true;
67
+ }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -45,7 +45,10 @@ const DECIMAL_UNIT_CONFIG = {
45
45
  function formatDecimal(value, unitOptions) {
46
46
  var _decimal_places;
47
47
  const decimals = (_decimal_places = unitOptions.decimal_places) !== null && _decimal_places !== void 0 ? _decimal_places : _constants.DEFAULT_DECIMAL_PLACES;
48
- if (unitOptions.abbreviate === true) {
48
+ if (value === 0) {
49
+ return value.toString();
50
+ }
51
+ if (unitOptions.abbreviate && value >= 1000) {
49
52
  return abbreviateLargeNumber(value, decimals);
50
53
  }
51
54
  const formatParams = {
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -24,5 +24,18 @@ const testChartsTheme = {
24
24
  sparkline: {
25
25
  width: 1,
26
26
  color: '#000000'
27
+ },
28
+ container: {
29
+ padding: {
30
+ default: 12
31
+ }
32
+ },
33
+ thresholds: {
34
+ defaultColor: '#59CC8D',
35
+ palette: [
36
+ '#438FEB',
37
+ '#FFB249',
38
+ '#EE6C6C'
39
+ ]
27
40
  }
28
41
  };
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -60,5 +60,21 @@ const components = {
60
60
  styleOverrides: {
61
61
  paper: getModalBackgroundStyle
62
62
  }
63
+ },
64
+ MuiPopover: {
65
+ styleOverrides: {
66
+ paper: getModalBackgroundStyle
67
+ }
68
+ },
69
+ MuiAlert: {
70
+ styleOverrides: {
71
+ standardError: ({ theme })=>({
72
+ backgroundColor: theme.palette.designSystem.red[500],
73
+ color: theme.palette.common.white,
74
+ [`& .${_material.alertClasses.icon}`]: {
75
+ color: theme.palette.common.white
76
+ }
77
+ })
78
+ }
63
79
  }
64
80
  };
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -18,6 +18,10 @@ Object.defineProperty(exports, "typography", {
18
18
  enumerable: true,
19
19
  get: ()=>typography
20
20
  });
21
+ require("@fontsource/lato/300.css");
22
+ require("@fontsource/lato/400.css");
23
+ require("@fontsource/lato/700.css");
24
+ require("@fontsource/lato/900.css");
21
25
  // Font weights need to correspond with the imports at the top of the file
22
26
  // (Lato supports 100, 300, 400, 700, 900)
23
27
  const fontWeightLight = 300;
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -18,12 +18,7 @@ Object.defineProperty(exports, "generateChartsTheme", {
18
18
  enumerable: true,
19
19
  get: ()=>generateChartsTheme
20
20
  });
21
- const _merge = /*#__PURE__*/ _interopRequireDefault(require("lodash/merge"));
22
- function _interopRequireDefault(obj) {
23
- return obj && obj.__esModule ? obj : {
24
- default: obj
25
- };
26
- }
21
+ const _lodashEs = require("lodash-es");
27
22
  const DEFAULT_TEXT_COLOR = '#222';
28
23
  function generateChartsTheme(muiTheme, echartsTheme) {
29
24
  var ref, ref1, ref2, ref3, ref4;
@@ -165,7 +160,7 @@ function generateChartsTheme(muiTheme, echartsTheme) {
165
160
  }
166
161
  };
167
162
  return {
168
- echartsTheme: (0, _merge.default)(muiConvertedTheme, echartsTheme),
163
+ echartsTheme: (0, _lodashEs.merge)(muiConvertedTheme, echartsTheme),
169
164
  noDataOption: {
170
165
  title: {
171
166
  show: true,
@@ -188,6 +183,19 @@ function generateChartsTheme(muiTheme, echartsTheme) {
188
183
  sparkline: {
189
184
  width: 2,
190
185
  color: '#1976d2'
186
+ },
187
+ container: {
188
+ padding: {
189
+ default: parseInt(muiTheme.spacing(1.5), 10)
190
+ }
191
+ },
192
+ thresholds: {
193
+ defaultColor: muiTheme.palette.success.main,
194
+ palette: [
195
+ '#FFCC00',
196
+ muiTheme.palette.warning.main,
197
+ muiTheme.palette.error.main
198
+ ]
191
199
  }
192
200
  };
193
201
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/context/ChartsThemeProvider.tsx"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React, { createContext, useContext } from 'react';\nimport { PersesChartsTheme } from '../model';\n\nexport interface ChartsThemeProviderProps {\n chartsTheme?: PersesChartsTheme;\n children?: React.ReactNode;\n}\n\nexport function ChartsThemeProvider(props: ChartsThemeProviderProps) {\n const { children, chartsTheme } = props;\n return <ChartsThemeContext.Provider value={chartsTheme}>{children}</ChartsThemeContext.Provider>;\n}\n\nexport const ChartsThemeContext = createContext<PersesChartsTheme | undefined>(undefined);\n\nexport function useChartsTheme(): PersesChartsTheme {\n const ctx = useContext(ChartsThemeContext);\n if (ctx === undefined) {\n throw new Error('No ChartsThemeContext found. Did you forget a Provider?');\n }\n return ctx;\n}\n"],"names":["React","createContext","useContext","ChartsThemeProvider","props","children","chartsTheme","ChartsThemeContext","Provider","value","undefined","useChartsTheme","ctx","Error"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC;AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAQ,OAAO,CAAC;AAQzD,OAAO,SAASC,mBAAmB,CAACC,KAA+B,EAAE;IACnE,MAAM,EAAEC,QAAQ,CAAA,EAAEC,WAAW,CAAA,EAAE,GAAGF,KAAK,AAAC;IACxC,qBAAO,KAACG,kBAAkB,CAACC,QAAQ;QAACC,KAAK,EAAEH,WAAW;kBAAGD,QAAQ;MAA+B,CAAC;AACnG,CAAC;AAED,OAAO,MAAME,kBAAkB,iBAAGN,aAAa,CAAgCS,SAAS,CAAC,CAAC;AAE1F,OAAO,SAASC,cAAc,GAAsB;IAClD,MAAMC,GAAG,GAAGV,UAAU,CAACK,kBAAkB,CAAC,AAAC;IAC3C,IAAIK,GAAG,KAAKF,SAAS,EAAE;QACrB,MAAM,IAAIG,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;IACD,OAAOD,GAAG,CAAC;AACb,CAAC"}
1
+ {"version":3,"sources":["../../src/context/ChartsThemeProvider.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React, { createContext, useContext } from 'react';\nimport { PersesChartsTheme } from '../model';\n\nexport interface ChartsThemeProviderProps {\n chartsTheme?: PersesChartsTheme;\n children?: React.ReactNode;\n}\n\nexport function ChartsThemeProvider(props: ChartsThemeProviderProps) {\n const { children, chartsTheme } = props;\n return <ChartsThemeContext.Provider value={chartsTheme}>{children}</ChartsThemeContext.Provider>;\n}\n\nexport const ChartsThemeContext = createContext<PersesChartsTheme | undefined>(undefined);\n\nexport function useChartsTheme(): PersesChartsTheme {\n const ctx = useContext(ChartsThemeContext);\n if (ctx === undefined) {\n throw new Error('No ChartsThemeContext found. Did you forget a Provider?');\n }\n return ctx;\n}\n"],"names":["React","createContext","useContext","ChartsThemeProvider","props","children","chartsTheme","ChartsThemeContext","Provider","value","undefined","useChartsTheme","ctx","Error"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC;AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAQ,OAAO,CAAC;AAQzD,OAAO,SAASC,mBAAmB,CAACC,KAA+B,EAAE;IACnE,MAAM,EAAEC,QAAQ,CAAA,EAAEC,WAAW,CAAA,EAAE,GAAGF,KAAK,AAAC;IACxC,qBAAO,KAACG,kBAAkB,CAACC,QAAQ;QAACC,KAAK,EAAEH,WAAW;kBAAGD,QAAQ;MAA+B,CAAC;AACnG,CAAC;AAED,OAAO,MAAME,kBAAkB,iBAAGN,aAAa,CAAgCS,SAAS,CAAC,CAAC;AAE1F,OAAO,SAASC,cAAc,GAAsB;IAClD,MAAMC,GAAG,GAAGV,UAAU,CAACK,kBAAkB,CAAC,AAAC;IAC3C,IAAIK,GAAG,KAAKF,SAAS,EAAE;QACrB,MAAM,IAAIG,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;IACD,OAAOD,GAAG,CAAC;AACb,CAAC"}
@@ -1,4 +1,4 @@
1
- // Copyright 2022 The Perses Authors
1
+ // Copyright 2023 The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/context/TimeZoneProvider.tsx"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React, { createContext, useContext } from 'react';\nimport { formatWithTimeZone, dateFormatOptionsWithTimeZone } from '../utils';\n\nexport const TimeZoneContext = createContext<string | undefined>(undefined);\n\nexport interface TimeZoneProviderProps {\n timeZone?: string;\n children?: React.ReactNode;\n}\n\nexport function TimeZoneProvider(props: TimeZoneProviderProps) {\n const { children, timeZone } = props;\n return <TimeZoneContext.Provider value={timeZone}>{children}</TimeZoneContext.Provider>;\n}\n\nexport function useTimeZone() {\n const timeZone = useContext(TimeZoneContext);\n return {\n // fallback to \"local\" timezone if TimeZoneProvider is not present in the React tree\n timeZone: timeZone ?? 'local',\n formatWithUserTimeZone(date: Date, formatString: string) {\n return formatWithTimeZone(date, formatString, timeZone);\n },\n dateFormatOptionsWithUserTimeZone(dateFormatOptions: Intl.DateTimeFormatOptions) {\n return dateFormatOptionsWithTimeZone(dateFormatOptions, timeZone);\n },\n };\n}\n"],"names":["React","createContext","useContext","formatWithTimeZone","dateFormatOptionsWithTimeZone","TimeZoneContext","undefined","TimeZoneProvider","props","children","timeZone","Provider","value","useTimeZone","formatWithUserTimeZone","date","formatString","dateFormatOptionsWithUserTimeZone","dateFormatOptions"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC;AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAQ,OAAO,CAAC;AACzD,SAASC,kBAAkB,EAAEC,6BAA6B,QAAQ,UAAU,CAAC;AAE7E,OAAO,MAAMC,eAAe,iBAAGJ,aAAa,CAAqBK,SAAS,CAAC,CAAC;AAO5E,OAAO,SAASC,gBAAgB,CAACC,KAA4B,EAAE;IAC7D,MAAM,EAAEC,QAAQ,CAAA,EAAEC,QAAQ,CAAA,EAAE,GAAGF,KAAK,AAAC;IACrC,qBAAO,KAACH,eAAe,CAACM,QAAQ;QAACC,KAAK,EAAEF,QAAQ;kBAAGD,QAAQ;MAA4B,CAAC;AAC1F,CAAC;AAED,OAAO,SAASI,WAAW,GAAG;IAC5B,MAAMH,QAAQ,GAAGR,UAAU,CAACG,eAAe,CAAC,AAAC;IAC7C,OAAO;QACL,oFAAoF;QACpFK,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI,OAAO;QAC7BI,sBAAsB,EAACC,IAAU,EAAEC,YAAoB,EAAE;YACvD,OAAOb,kBAAkB,CAACY,IAAI,EAAEC,YAAY,EAAEN,QAAQ,CAAC,CAAC;QAC1D,CAAC;QACDO,iCAAiC,EAACC,iBAA6C,EAAE;YAC/E,OAAOd,6BAA6B,CAACc,iBAAiB,EAAER,QAAQ,CAAC,CAAC;QACpE,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"sources":["../../src/context/TimeZoneProvider.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React, { createContext, useContext } from 'react';\nimport { formatWithTimeZone, dateFormatOptionsWithTimeZone } from '../utils';\n\nexport const TimeZoneContext = createContext<string | undefined>(undefined);\n\nexport interface TimeZoneProviderProps {\n timeZone?: string;\n children?: React.ReactNode;\n}\n\nexport function TimeZoneProvider(props: TimeZoneProviderProps) {\n const { children, timeZone } = props;\n return <TimeZoneContext.Provider value={timeZone}>{children}</TimeZoneContext.Provider>;\n}\n\nexport function useTimeZone() {\n const timeZone = useContext(TimeZoneContext);\n return {\n // fallback to \"local\" timezone if TimeZoneProvider is not present in the React tree\n timeZone: timeZone ?? 'local',\n formatWithUserTimeZone(date: Date, formatString: string) {\n return formatWithTimeZone(date, formatString, timeZone);\n },\n dateFormatOptionsWithUserTimeZone(dateFormatOptions: Intl.DateTimeFormatOptions) {\n return dateFormatOptionsWithTimeZone(dateFormatOptions, timeZone);\n },\n };\n}\n"],"names":["React","createContext","useContext","formatWithTimeZone","dateFormatOptionsWithTimeZone","TimeZoneContext","undefined","TimeZoneProvider","props","children","timeZone","Provider","value","useTimeZone","formatWithUserTimeZone","date","formatString","dateFormatOptionsWithUserTimeZone","dateFormatOptions"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC;AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAQ,OAAO,CAAC;AACzD,SAASC,kBAAkB,EAAEC,6BAA6B,QAAQ,UAAU,CAAC;AAE7E,OAAO,MAAMC,eAAe,iBAAGJ,aAAa,CAAqBK,SAAS,CAAC,CAAC;AAO5E,OAAO,SAASC,gBAAgB,CAACC,KAA4B,EAAE;IAC7D,MAAM,EAAEC,QAAQ,CAAA,EAAEC,QAAQ,CAAA,EAAE,GAAGF,KAAK,AAAC;IACrC,qBAAO,KAACH,eAAe,CAACM,QAAQ;QAACC,KAAK,EAAEF,QAAQ;kBAAGD,QAAQ;MAA4B,CAAC;AAC1F,CAAC;AAED,OAAO,SAASI,WAAW,GAAG;IAC5B,MAAMH,QAAQ,GAAGR,UAAU,CAACG,eAAe,CAAC,AAAC;IAC7C,OAAO;QACL,oFAAoF;QACpFK,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI,OAAO;QAC7BI,sBAAsB,EAACC,IAAU,EAAEC,YAAoB,EAAE;YACvD,OAAOb,kBAAkB,CAACY,IAAI,EAAEC,YAAY,EAAEN,QAAQ,CAAC,CAAC;QAC1D,CAAC;QACDO,iCAAiC,EAACC,iBAA6C,EAAE;YAC/E,OAAOd,6BAA6B,CAACc,iBAAiB,EAAER,QAAQ,CAAC,CAAC;QACpE,CAAC;KACF,CAAC;AACJ,CAAC"}