@semcore/d3-chart 18.0.0-prerelease.1 → 18.0.0-prerelease.5

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 (339) hide show
  1. package/CHANGELOG.md +52 -1
  2. package/README.md +0 -1
  3. package/lib/cjs/Area.js +123 -23
  4. package/lib/cjs/Area.js.map +1 -1
  5. package/lib/cjs/Axis.js +109 -97
  6. package/lib/cjs/Axis.js.map +1 -1
  7. package/lib/cjs/Bar.js +16 -16
  8. package/lib/cjs/Bubble.js +14 -14
  9. package/lib/cjs/ChartMetaData.js +44 -0
  10. package/lib/cjs/ChartMetaData.js.map +1 -0
  11. package/lib/cjs/CompactHorizontalBar.js +17 -17
  12. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  13. package/lib/cjs/Donut.js +18 -19
  14. package/lib/cjs/Donut.js.map +1 -1
  15. package/lib/cjs/Dots.js +67 -13
  16. package/lib/cjs/Dots.js.map +1 -1
  17. package/lib/cjs/GroupBar.js +5 -2
  18. package/lib/cjs/GroupBar.js.map +1 -1
  19. package/lib/cjs/HorizontalBar.js +16 -16
  20. package/lib/cjs/Hover.js +55 -52
  21. package/lib/cjs/Hover.js.map +1 -1
  22. package/lib/cjs/Line.js +82 -17
  23. package/lib/cjs/Line.js.map +1 -1
  24. package/lib/cjs/Pattern.js +113 -2
  25. package/lib/cjs/Pattern.js.map +1 -1
  26. package/lib/cjs/Plot.js +5 -2
  27. package/lib/cjs/Plot.js.map +1 -1
  28. package/lib/cjs/Radar.js +19 -19
  29. package/lib/cjs/RadialTree.js +12 -12
  30. package/lib/cjs/Reference.js +55 -18
  31. package/lib/cjs/Reference.js.map +1 -1
  32. package/lib/cjs/ScatterPlot.js +9 -9
  33. package/lib/cjs/Tooltip.js +16 -14
  34. package/lib/cjs/Tooltip.js.map +1 -1
  35. package/lib/cjs/Venn.js +9 -9
  36. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  37. package/lib/cjs/component/Chart/AbstractChart.js +29 -23
  38. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  39. package/lib/cjs/component/Chart/AbstractChart.type.js +19 -0
  40. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  41. package/lib/cjs/component/Chart/AreaChart.js +21 -7
  42. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  43. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  44. package/lib/cjs/component/Chart/BarChart.js +17 -8
  45. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  46. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  47. package/lib/cjs/component/Chart/BubbleChart.js +4 -0
  48. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  49. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  50. package/lib/cjs/component/Chart/CigaretteChart.js +5 -1
  51. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  52. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  53. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  54. package/lib/cjs/component/Chart/DonutChart.js +0 -1
  55. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  56. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  57. package/lib/cjs/component/Chart/HistogramChart.js +6 -3
  58. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  59. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  60. package/lib/cjs/component/Chart/LineChart.js +16 -6
  61. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  62. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  63. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  64. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  65. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  66. package/lib/cjs/component/Chart/index.js +43 -0
  67. package/lib/cjs/component/Chart/index.js.map +1 -1
  68. package/lib/cjs/component/ChartLegend/BaseLegend.js +0 -4
  69. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  70. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  71. package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  72. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +19 -17
  73. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  74. package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  75. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +28 -21
  76. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  77. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  78. package/lib/cjs/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
  79. package/lib/cjs/component/Cigarette/Cigarette.js +0 -1
  80. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  81. package/lib/cjs/component/Metric/Metric.js +78 -0
  82. package/lib/cjs/component/Metric/Metric.js.map +1 -0
  83. package/lib/cjs/component/Metric/Metric.type.js +2 -0
  84. package/lib/cjs/component/Metric/Metric.type.js.map +1 -0
  85. package/lib/cjs/index.js +62 -8
  86. package/lib/cjs/index.js.map +1 -1
  87. package/lib/cjs/style/abstract-chart.shadow.css +13 -3
  88. package/lib/cjs/style/area.shadow.css +8 -7
  89. package/lib/cjs/style/axis.shadow.css +51 -60
  90. package/lib/cjs/style/bar.shadow.css +7 -9
  91. package/lib/cjs/style/bubble.shadow.css +4 -6
  92. package/lib/cjs/style/donut.shadow.css +3 -5
  93. package/lib/cjs/style/dot.shadow.css +37 -4
  94. package/lib/cjs/style/hover.shadow.css +30 -13
  95. package/lib/cjs/style/line.shadow.css +3 -5
  96. package/lib/cjs/style/pattern.shadow.css +10 -0
  97. package/lib/cjs/style/plotA11yView.shadow.css +3 -3
  98. package/lib/cjs/style/radar.shadow.css +7 -7
  99. package/lib/cjs/style/radial-tree.shadow.css +3 -5
  100. package/lib/cjs/style/reference.shadow.css +5 -5
  101. package/lib/cjs/style/scatterplot.shadow.css +2 -4
  102. package/lib/cjs/style/tooltip.shadow.css +12 -14
  103. package/lib/cjs/style/venn.shadow.css +0 -2
  104. package/lib/cjs/types/Axis.d.js.map +1 -1
  105. package/lib/cjs/types/Donut.d.js.map +1 -1
  106. package/lib/cjs/types/Hover.d.js.map +1 -1
  107. package/lib/cjs/types/index.d.js +20 -0
  108. package/lib/cjs/types/index.d.js.map +1 -1
  109. package/lib/cjs/utils.js +21 -1
  110. package/lib/cjs/utils.js.map +1 -1
  111. package/lib/es6/Area.js +125 -25
  112. package/lib/es6/Area.js.map +1 -1
  113. package/lib/es6/Axis.js +109 -97
  114. package/lib/es6/Axis.js.map +1 -1
  115. package/lib/es6/Bar.js +16 -16
  116. package/lib/es6/Bubble.js +14 -14
  117. package/lib/es6/ChartMetaData.js +36 -0
  118. package/lib/es6/ChartMetaData.js.map +1 -0
  119. package/lib/es6/CompactHorizontalBar.js +17 -17
  120. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  121. package/lib/es6/Donut.js +18 -19
  122. package/lib/es6/Donut.js.map +1 -1
  123. package/lib/es6/Dots.js +68 -14
  124. package/lib/es6/Dots.js.map +1 -1
  125. package/lib/es6/GroupBar.js +5 -2
  126. package/lib/es6/GroupBar.js.map +1 -1
  127. package/lib/es6/HorizontalBar.js +16 -16
  128. package/lib/es6/Hover.js +55 -52
  129. package/lib/es6/Hover.js.map +1 -1
  130. package/lib/es6/Line.js +84 -19
  131. package/lib/es6/Line.js.map +1 -1
  132. package/lib/es6/Pattern.js +108 -2
  133. package/lib/es6/Pattern.js.map +1 -1
  134. package/lib/es6/Plot.js +5 -2
  135. package/lib/es6/Plot.js.map +1 -1
  136. package/lib/es6/Radar.js +19 -19
  137. package/lib/es6/RadialTree.js +12 -12
  138. package/lib/es6/Reference.js +55 -18
  139. package/lib/es6/Reference.js.map +1 -1
  140. package/lib/es6/ScatterPlot.js +9 -9
  141. package/lib/es6/Tooltip.js +16 -14
  142. package/lib/es6/Tooltip.js.map +1 -1
  143. package/lib/es6/Venn.js +9 -9
  144. package/lib/es6/a11y/PlotA11yView.js +2 -2
  145. package/lib/es6/component/Chart/AbstractChart.js +29 -23
  146. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  147. package/lib/es6/component/Chart/AbstractChart.type.js +14 -1
  148. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  149. package/lib/es6/component/Chart/AreaChart.js +21 -7
  150. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  151. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  152. package/lib/es6/component/Chart/BarChart.js +17 -8
  153. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  154. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  155. package/lib/es6/component/Chart/BubbleChart.js +4 -0
  156. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  157. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  158. package/lib/es6/component/Chart/CigaretteChart.js +5 -1
  159. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  160. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  161. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  162. package/lib/es6/component/Chart/DonutChart.js +0 -1
  163. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  164. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  165. package/lib/es6/component/Chart/HistogramChart.js +6 -3
  166. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  167. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  168. package/lib/es6/component/Chart/LineChart.js +14 -4
  169. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  170. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  171. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  172. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  173. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  174. package/lib/es6/component/Chart/index.js +2 -0
  175. package/lib/es6/component/Chart/index.js.map +1 -1
  176. package/lib/es6/component/ChartLegend/BaseLegend.js +0 -4
  177. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  178. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  179. package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  180. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +19 -17
  181. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  182. package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  183. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +28 -21
  184. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  185. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  186. package/lib/es6/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
  187. package/lib/es6/component/Cigarette/Cigarette.js +0 -1
  188. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  189. package/lib/es6/component/Metric/Metric.js +72 -0
  190. package/lib/es6/component/Metric/Metric.js.map +1 -0
  191. package/lib/es6/component/Metric/Metric.type.js +2 -0
  192. package/lib/es6/component/Metric/Metric.type.js.map +1 -0
  193. package/lib/es6/index.js +2 -1
  194. package/lib/es6/index.js.map +1 -1
  195. package/lib/es6/style/abstract-chart.shadow.css +13 -3
  196. package/lib/es6/style/area.shadow.css +8 -7
  197. package/lib/es6/style/axis.shadow.css +51 -60
  198. package/lib/es6/style/bar.shadow.css +7 -9
  199. package/lib/es6/style/bubble.shadow.css +4 -6
  200. package/lib/es6/style/donut.shadow.css +3 -5
  201. package/lib/es6/style/dot.shadow.css +37 -4
  202. package/lib/es6/style/hover.shadow.css +30 -13
  203. package/lib/es6/style/line.shadow.css +3 -5
  204. package/lib/es6/style/pattern.shadow.css +10 -0
  205. package/lib/es6/style/plotA11yView.shadow.css +3 -3
  206. package/lib/es6/style/radar.shadow.css +7 -7
  207. package/lib/es6/style/radial-tree.shadow.css +3 -5
  208. package/lib/es6/style/reference.shadow.css +5 -5
  209. package/lib/es6/style/scatterplot.shadow.css +2 -4
  210. package/lib/es6/style/tooltip.shadow.css +12 -14
  211. package/lib/es6/style/venn.shadow.css +0 -2
  212. package/lib/es6/types/Axis.d.js.map +1 -1
  213. package/lib/es6/types/Donut.d.js.map +1 -1
  214. package/lib/es6/types/Hover.d.js.map +1 -1
  215. package/lib/es6/types/index.d.js +5 -7
  216. package/lib/es6/types/index.d.js.map +1 -1
  217. package/lib/es6/utils.js +18 -0
  218. package/lib/es6/utils.js.map +1 -1
  219. package/lib/esm/Area.mjs +127 -26
  220. package/lib/esm/Axis.mjs +110 -98
  221. package/lib/esm/Bar.mjs +17 -17
  222. package/lib/esm/Bubble.mjs +15 -15
  223. package/lib/esm/ChartMetaData.mjs +38 -0
  224. package/lib/esm/CompactHorizontalBar.mjs +18 -18
  225. package/lib/esm/Donut.mjs +19 -20
  226. package/lib/esm/Dots.mjs +66 -15
  227. package/lib/esm/GroupBar.mjs +5 -2
  228. package/lib/esm/HorizontalBar.mjs +17 -17
  229. package/lib/esm/Hover.mjs +56 -53
  230. package/lib/esm/Line.mjs +86 -20
  231. package/lib/esm/Pattern.mjs +119 -0
  232. package/lib/esm/Plot.mjs +6 -3
  233. package/lib/esm/Radar.mjs +20 -20
  234. package/lib/esm/RadialTree.mjs +13 -13
  235. package/lib/esm/Reference.mjs +56 -19
  236. package/lib/esm/ScatterPlot.mjs +10 -10
  237. package/lib/esm/Tooltip.mjs +17 -15
  238. package/lib/esm/Venn.mjs +10 -10
  239. package/lib/esm/a11y/PlotA11yView.mjs +3 -3
  240. package/lib/esm/component/Chart/AbstractChart.mjs +28 -24
  241. package/lib/esm/component/Chart/AbstractChart.type.mjs +16 -0
  242. package/lib/esm/component/Chart/AreaChart.mjs +21 -7
  243. package/lib/esm/component/Chart/BarChart.mjs +17 -8
  244. package/lib/esm/component/Chart/BubbleChart.mjs +4 -0
  245. package/lib/esm/component/Chart/CigaretteChart.mjs +5 -1
  246. package/lib/esm/component/Chart/DonutChart.mjs +0 -1
  247. package/lib/esm/component/Chart/HistogramChart.mjs +6 -3
  248. package/lib/esm/component/Chart/LineChart.mjs +14 -4
  249. package/lib/esm/component/Chart/index.mjs +8 -0
  250. package/lib/esm/component/ChartLegend/BaseLegend.mjs +0 -4
  251. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
  252. package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  253. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +20 -18
  254. package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  255. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +29 -22
  256. package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
  257. package/lib/esm/component/Cigarette/Cigarette.mjs +0 -1
  258. package/lib/esm/component/Metric/Metric.mjs +62 -0
  259. package/lib/esm/index.mjs +42 -34
  260. package/lib/esm/style/abstract-chart.shadow.css +13 -3
  261. package/lib/esm/style/area.shadow.css +8 -7
  262. package/lib/esm/style/axis.shadow.css +51 -60
  263. package/lib/esm/style/bar.shadow.css +7 -9
  264. package/lib/esm/style/bubble.shadow.css +4 -6
  265. package/lib/esm/style/donut.shadow.css +3 -5
  266. package/lib/esm/style/dot.shadow.css +37 -4
  267. package/lib/esm/style/hover.shadow.css +30 -13
  268. package/lib/esm/style/line.shadow.css +3 -5
  269. package/lib/esm/style/pattern.shadow.css +10 -0
  270. package/lib/esm/style/plotA11yView.shadow.css +3 -3
  271. package/lib/esm/style/radar.shadow.css +7 -7
  272. package/lib/esm/style/radial-tree.shadow.css +3 -5
  273. package/lib/esm/style/reference.shadow.css +5 -5
  274. package/lib/esm/style/scatterplot.shadow.css +2 -4
  275. package/lib/esm/style/tooltip.shadow.css +12 -14
  276. package/lib/esm/style/venn.shadow.css +0 -2
  277. package/lib/esm/utils.mjs +20 -0
  278. package/lib/types/Axis.d.ts +3 -2
  279. package/lib/types/ChartMetaData.d.ts +17 -0
  280. package/lib/types/ChartMetaData.d.ts.map +1 -0
  281. package/lib/types/Donut.d.ts +1 -1
  282. package/lib/types/Hover.d.ts +2 -0
  283. package/lib/types/Pattern.d.ts +18 -0
  284. package/lib/types/Pattern.d.ts.map +1 -1
  285. package/lib/types/component/Chart/AbstractChart.d.ts +8 -4
  286. package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
  287. package/lib/types/component/Chart/AbstractChart.type.d.ts +28 -8
  288. package/lib/types/component/Chart/AbstractChart.type.d.ts.map +1 -1
  289. package/lib/types/component/Chart/AreaChart.d.ts.map +1 -1
  290. package/lib/types/component/Chart/AreaChart.type.d.ts +8 -4
  291. package/lib/types/component/Chart/AreaChart.type.d.ts.map +1 -1
  292. package/lib/types/component/Chart/BarChart.d.ts.map +1 -1
  293. package/lib/types/component/Chart/BarChart.type.d.ts +3 -0
  294. package/lib/types/component/Chart/BarChart.type.d.ts.map +1 -1
  295. package/lib/types/component/Chart/BubbleChart.d.ts.map +1 -1
  296. package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
  297. package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
  298. package/lib/types/component/Chart/CigaretteChart.d.ts.map +1 -1
  299. package/lib/types/component/Chart/CigaretteChart.type.d.ts +1 -1
  300. package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
  301. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
  302. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts.map +1 -1
  303. package/lib/types/component/Chart/DonutChart.d.ts.map +1 -1
  304. package/lib/types/component/Chart/DonutChart.type.d.ts +1 -2
  305. package/lib/types/component/Chart/DonutChart.type.d.ts.map +1 -1
  306. package/lib/types/component/Chart/HistogramChart.d.ts.map +1 -1
  307. package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -0
  308. package/lib/types/component/Chart/HistogramChart.type.d.ts.map +1 -1
  309. package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
  310. package/lib/types/component/Chart/LineChart.type.d.ts +1 -0
  311. package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
  312. package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
  313. package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
  314. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
  315. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
  316. package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
  317. package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
  318. package/lib/types/component/Chart/index.d.ts +2 -0
  319. package/lib/types/component/Chart/index.d.ts.map +1 -1
  320. package/lib/types/component/ChartLegend/BaseLegend.d.ts.map +1 -1
  321. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts.map +1 -1
  322. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -3
  323. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
  324. package/lib/types/component/Metric/Metric.d.ts +9 -0
  325. package/lib/types/component/Metric/Metric.d.ts.map +1 -0
  326. package/lib/types/component/Metric/Metric.type.d.ts +33 -0
  327. package/lib/types/component/Metric/Metric.type.d.ts.map +1 -0
  328. package/lib/types/index.d.ts +5 -7
  329. package/lib/types/utils.d.ts +4 -1
  330. package/lib/types/utils.d.ts.map +1 -1
  331. package/package.json +16 -15
  332. package/lib/cjs/color.js +0 -132
  333. package/lib/cjs/color.js.map +0 -1
  334. package/lib/cjs/style/var.css +0 -125
  335. package/lib/es6/color.js +0 -127
  336. package/lib/es6/color.js.map +0 -1
  337. package/lib/es6/style/var.css +0 -125
  338. package/lib/esm/color.mjs +0 -127
  339. package/lib/esm/utils/TextMeasurer.mjs +0 -27
@@ -14,26 +14,26 @@ const style = (
14
14
  /*__reshadow_css_start__*/
15
15
  (sstyled.insert(
16
16
  /*__inner_css_start__*/
17
- '.___SLegendItem_1g89n_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1g89n_gg_:hover{cursor:pointer}.___SLegendItem_1g89n_gg_.__disabled_1g89n_gg_:hover{cursor:default}}.___SLegendItem_1g89n_gg_.__transparent_1g89n_gg_{opacity:.3}.___SPointShape_1g89n_gg_.__color_1g89n_gg_{background-color:var(--color_1g89n);margin-right:var(--intergalactic-spacing-content-gap-medium,6px);flex-shrink:0}.___SPointShape_1g89n_gg_._shape_Circle_1g89n_gg_._size_l_1g89n_gg_{width:16px;height:16px;border-radius:8px;margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SPointShape_1g89n_gg_._shape_Circle_1g89n_gg_._size_m_1g89n_gg_{width:12px;height:12px;border-radius:6px;margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SPointShape_1g89n_gg_._shape_Pattern_1g89n_gg_{background-color:initial;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_{line-height:0;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_._size_l_1g89n_gg_{margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_._size_m_1g89n_gg_{margin-top:var(--intergalactic-spacing-content-gap-xsmall,2px)}.___SLabel_1g89n_gg_{min-width:0}.___SAdditionalLabel_1g89n_gg_._size_l_1g89n_gg_,.___SCount_1g89n_gg_._size_l_1g89n_gg_,.___SLabel_1g89n_gg_._size_l_1g89n_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,1.5)}.___SAdditionalLabel_1g89n_gg_._size_m_1g89n_gg_,.___SCount_1g89n_gg_._size_m_1g89n_gg_,.___SLabel_1g89n_gg_._size_m_1g89n_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,1.4286)}.___SAdditionalLabel_1g89n_gg_,.___SCount_1g89n_gg_{margin-left:var(--intergalactic-spacing-content-gap-small,4px)}.___SAdditionalLabel_1g89n_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1g89n_gg_:before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary,oklch(.097 .023 156.5/.468));height:4px;width:4px;border-radius:2px;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SAdditionalLabel_1g89n_gg_._size_l_1g89n_gg_:before{margin-top:10px}.___SAdditionalLabel_1g89n_gg_._size_m_1g89n_gg_:before{margin-top:8px}.___SPatternSymbol_1g89n_gg_{transform:scale(.8)}',
17
+ '.___SLegendItem_10kc6_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_10kc6_gg_:hover{cursor:pointer}.___SLegendItem_10kc6_gg_.__disabled_10kc6_gg_:hover{cursor:default}}.___SLegendItem_10kc6_gg_.__transparent_10kc6_gg_{opacity:.3}.___SPointShape_10kc6_gg_.__color_10kc6_gg_{background-color:var(--color_10kc6);margin-right:var(--intergalactic-spacing-1-5x,6px);flex-shrink:0}.___SPointShape_10kc6_gg_._shape_Circle_10kc6_gg_._size_l_10kc6_gg_{width:16px;height:16px;border-radius:8px;margin-top:var(--intergalactic-spacing-1x,4px)}.___SPointShape_10kc6_gg_._shape_Circle_10kc6_gg_._size_m_10kc6_gg_{width:12px;height:12px;border-radius:6px;margin-top:var(--intergalactic-spacing-1x,4px)}.___SPointShape_10kc6_gg_._shape_Pattern_10kc6_gg_{background-color:initial;margin-right:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_{line-height:0;margin-right:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_._size_l_10kc6_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_._size_m_10kc6_gg_{margin-top:var(--intergalactic-spacing-05x,2px)}.___SLabel_10kc6_gg_{min-width:0}.___SAdditionalLabel_10kc6_gg_._size_l_10kc6_gg_,.___SCount_10kc6_gg_._size_l_10kc6_gg_,.___SLabel_10kc6_gg_._size_l_10kc6_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,1.5)}.___SAdditionalLabel_10kc6_gg_._size_m_10kc6_gg_,.___SCount_10kc6_gg_._size_m_10kc6_gg_,.___SLabel_10kc6_gg_._size_m_10kc6_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,1.4286)}.___SAdditionalLabel_10kc6_gg_,.___SCount_10kc6_gg_{margin-left:var(--intergalactic-spacing-1x,4px)}.___SAdditionalLabel_10kc6_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_10kc6_gg_:before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593));height:4px;width:4px;border-radius:2px;margin-right:var(--intergalactic-spacing-1x,4px)}.___SAdditionalLabel_10kc6_gg_._size_l_10kc6_gg_:before{margin-top:10px}.___SAdditionalLabel_10kc6_gg_._size_m_10kc6_gg_:before{margin-top:8px}.___SPatternSymbol_10kc6_gg_{transform:scale(.8)}',
18
18
  /*__inner_css_end__*/
19
- "1g89n_gg_"
19
+ "10kc6_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
22
- "__SLegendItem": "___SLegendItem_1g89n_gg_",
23
- "_disabled": "__disabled_1g89n_gg_",
24
- "_transparent": "__transparent_1g89n_gg_",
25
- "__SPointShape": "___SPointShape_1g89n_gg_",
26
- "_color": "__color_1g89n_gg_",
27
- "--color": "--color_1g89n",
28
- "_shape_Circle": "_shape_Circle_1g89n_gg_",
29
- "_size_l": "_size_l_1g89n_gg_",
30
- "_size_m": "_size_m_1g89n_gg_",
31
- "_shape_Pattern": "_shape_Pattern_1g89n_gg_",
32
- "__SIcon": "___SIcon_1g89n_gg_",
33
- "__SLabel": "___SLabel_1g89n_gg_",
34
- "__SAdditionalLabel": "___SAdditionalLabel_1g89n_gg_",
35
- "__SCount": "___SCount_1g89n_gg_",
36
- "__SPatternSymbol": "___SPatternSymbol_1g89n_gg_"
22
+ "__SLegendItem": "___SLegendItem_10kc6_gg_",
23
+ "_disabled": "__disabled_10kc6_gg_",
24
+ "_transparent": "__transparent_10kc6_gg_",
25
+ "__SPointShape": "___SPointShape_10kc6_gg_",
26
+ "_color": "__color_10kc6_gg_",
27
+ "--color": "--color_10kc6",
28
+ "_shape_Circle": "_shape_Circle_10kc6_gg_",
29
+ "_size_l": "_size_l_10kc6_gg_",
30
+ "_size_m": "_size_m_10kc6_gg_",
31
+ "_shape_Pattern": "_shape_Pattern_10kc6_gg_",
32
+ "__SIcon": "___SIcon_10kc6_gg_",
33
+ "__SLabel": "___SLabel_10kc6_gg_",
34
+ "__SAdditionalLabel": "___SAdditionalLabel_10kc6_gg_",
35
+ "__SCount": "___SCount_10kc6_gg_",
36
+ "__SPatternSymbol": "___SPatternSymbol_10kc6_gg_"
37
37
  })
38
38
  );
39
39
  const enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
@@ -206,7 +206,9 @@ function Shape(props) {
206
206
  if (shape === "Pattern") {
207
207
  var _ref8;
208
208
  return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(Box, _ref8.cn("Box", {
209
- "mr": 1
209
+ "mr": 1,
210
+ "mt": "1px",
211
+ "mb": "-1px"
210
212
  }), /* @__PURE__ */ React.createElement(SPatternSymbol, _ref8.cn("SPatternSymbol", {
211
213
  "color": color,
212
214
  "patternKey": patternKey,
@@ -17,7 +17,7 @@ SLegendItem[transparent] {
17
17
 
18
18
  SPointShape[color] {
19
19
  background-color: var(--color);
20
- margin-right: var(--intergalactic-spacing-content-gap-medium, 6px);
20
+ margin-right: var(--intergalactic-spacing-1-5x, 6px);
21
21
  flex-shrink: 0;
22
22
  }
23
23
 
@@ -25,32 +25,32 @@ SPointShape[shape='Circle'][size='l'] {
25
25
  width: 16px;
26
26
  height: 16px;
27
27
  border-radius: 8px;
28
- margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
28
+ margin-top: var(--intergalactic-spacing-1x, 4px);
29
29
  }
30
30
 
31
31
  SPointShape[shape='Circle'][size='m'] {
32
32
  width: 12px;
33
33
  height: 12px;
34
34
  border-radius: 6px;
35
- margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
35
+ margin-top: var(--intergalactic-spacing-1x, 4px);
36
36
  }
37
37
 
38
38
  SPointShape[shape='Pattern'] {
39
39
  background-color: transparent;
40
- margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
40
+ margin-right: var(--intergalactic-spacing-1x, 4px);
41
41
  }
42
42
 
43
43
  SIcon {
44
44
  line-height: 0;
45
- margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
45
+ margin-right: var(--intergalactic-spacing-1x, 4px);
46
46
  }
47
47
 
48
48
  SIcon[size='l'] {
49
- margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
49
+ margin-top: var(--intergalactic-spacing-1x, 4px);
50
50
  }
51
51
 
52
52
  SIcon[size='m'] {
53
- margin-top: var(--intergalactic-spacing-content-gap-xsmall, 2px);
53
+ margin-top: var(--intergalactic-spacing-05x, 2px);
54
54
  }
55
55
 
56
56
  SLabel {
@@ -73,7 +73,7 @@ SCount[size='m'] {
73
73
 
74
74
  SAdditionalLabel,
75
75
  SCount {
76
- margin-left: var(--intergalactic-spacing-content-gap-small, 4px);
76
+ margin-left: var(--intergalactic-spacing-1x, 4px);
77
77
  }
78
78
 
79
79
  SAdditionalLabel {
@@ -85,11 +85,11 @@ SAdditionalLabel {
85
85
  SAdditionalLabel::before {
86
86
  content: '';
87
87
  display: inline-block;
88
- background-color: var(--intergalactic-text-secondary, oklch(0.097 0.023 156.5 / 0.468));
88
+ background-color: var(--intergalactic-text-secondary, oklch(0.182 0.045 244.8 / 0.593));
89
89
  height: 4px;
90
90
  width: 4px;
91
91
  border-radius: 2px;
92
- margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
92
+ margin-right: var(--intergalactic-spacing-1x, 4px);
93
93
  }
94
94
 
95
95
  SAdditionalLabel[size='l']::before {
@@ -102,4 +102,4 @@ SAdditionalLabel[size='m']::before {
102
102
 
103
103
  SPatternSymbol {
104
104
  transform: scale(0.8);
105
- }
105
+ }
@@ -9,17 +9,21 @@ const style = (
9
9
  /*__reshadow_css_start__*/
10
10
  (sstyled.insert(
11
11
  /*__inner_css_start__*/
12
- '.___SLegendTable_whwqy_gg_.__columns-count_whwqy_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:var(--intergalactic-spacing-content-gap-large,8px);grid-row-gap:var(--intergalactic-spacing-content-gap-large,8px)}.___SColumnItem_whwqy_gg_._size_l_whwqy_gg_{font-size:var(--intergalactic-fs-300,16px);text-align:right}.___SColumnItem_whwqy_gg_._size_m_whwqy_gg_{font-size:var(--intergalactic-fs-200,14px);text-align:right}.___SColumnItem_whwqy_gg_.__transparent_whwqy_gg_{opacity:.3}',
12
+ '.___SLegendTable_13s97_gg_.__additions-count_13s97_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;align-items:center;grid-column-gap:var(--intergalactic-spacing-2x,8px)}.___SLegendTable_13s97_gg_.__additions-count_13s97_gg_._additions-direction_columns_13s97_gg_{grid-template-columns:auto repeat(var(--additions-count_13s97),.2fr);height:-moz-fit-content;height:fit-content;grid-row-gap:var(--intergalactic-spacing-2x,8px)}.___SLegendTable_13s97_gg_.__additions-count_13s97_gg_._additions-direction_columns_13s97_gg_>.___SColumnItem_13s97_gg_{text-align:right}.___SLegendTable_13s97_gg_.__additions-count_13s97_gg_._additions-direction_rows_13s97_gg_{grid-template-rows:auto repeat(var(--additions-count_13s97),.2fr);grid-auto-flow:column;grid-row-gap:var(--intergalactic-spacing-1x,4px);grid-column-gap:var(--intergalactic-spacing-14x,56px);grid-template-columns:repeat(var(--items-count_13s97),max-content)}.___SColumnItem_13s97_gg_{white-space:nowrap}.___SColumnItem_13s97_gg_._size_l_13s97_gg_{font-size:var(--intergalactic-fs-300,16px)}.___SColumnItem_13s97_gg_._size_m_13s97_gg_{font-size:var(--intergalactic-fs-200,14px)}.___SColumnItem_13s97_gg_.__transparent_13s97_gg_{opacity:.3}',
13
13
  /*__inner_css_end__*/
14
- "whwqy_gg_"
14
+ "13s97_gg_"
15
15
  ), /*__reshadow_css_end__*/
16
16
  {
17
- "__SLegendTable": "___SLegendTable_whwqy_gg_",
18
- "_columns-count": "__columns-count_whwqy_gg_",
19
- "__SColumnItem": "___SColumnItem_whwqy_gg_",
20
- "_size_l": "_size_l_whwqy_gg_",
21
- "_size_m": "_size_m_whwqy_gg_",
22
- "_transparent": "__transparent_whwqy_gg_"
17
+ "__SLegendTable": "___SLegendTable_13s97_gg_",
18
+ "_additions-count": "__additions-count_13s97_gg_",
19
+ "_additions-direction_columns": "_additions-direction_columns_13s97_gg_",
20
+ "--additions-count": "--additions-count_13s97",
21
+ "__SColumnItem": "___SColumnItem_13s97_gg_",
22
+ "_additions-direction_rows": "_additions-direction_rows_13s97_gg_",
23
+ "--items-count": "--items-count_13s97",
24
+ "_size_l": "_size_l_13s97_gg_",
25
+ "_size_m": "_size_m_13s97_gg_",
26
+ "_transparent": "__transparent_13s97_gg_"
23
27
  })
24
28
  );
25
29
  class LegendTableRoot extends BaseLegend {
@@ -33,28 +37,35 @@ class LegendTableRoot extends BaseLegend {
33
37
  items,
34
38
  highlightedItem
35
39
  } = this.asProps;
36
- const columnsCount = items[0]?.columns.length;
40
+ if (!items[0]) {
41
+ return null;
42
+ }
43
+ const direction = "columns" in items[0] ? "columns" : "rows";
44
+ const additionsCount = "columns" in items[0] ? items[0]?.columns.length : items[0]?.rows.length;
37
45
  return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SLegendTable, _ref3.cn("SLegendTable", {
38
46
  ...assignProps({
39
- "columns-count": columnsCount + 1,
40
- "role": "group"
47
+ "additions-count": additionsCount,
48
+ "role": "group",
49
+ "additions-direction": direction,
50
+ "items-count": items.length
41
51
  }, _ref)
42
- }), items.map(({
43
- id,
44
- columns = []
45
- }, _index) => {
52
+ }), items.map((legendItem, _index) => {
53
+ const id = legendItem.id;
54
+ const additions = "columns" in legendItem ? legendItem.columns : legendItem.rows;
46
55
  const isTransparent = highlightedItem !== void 0 && highlightedItem !== -1 && highlightedItem !== _index;
47
56
  return /* @__PURE__ */ React.createElement(React.Fragment, {
48
57
  key: id
49
- }, /* @__PURE__ */ React.createElement(Children, null), columns.map((item, index) => {
58
+ }, /* @__PURE__ */ React.createElement(Children, null), additions.map((additionItem, index) => {
50
59
  return /* @__PURE__ */ React.createElement(React.Fragment, {
51
60
  key: `${id}__${index}`
52
61
  }, /* @__PURE__ */ React.createElement(LegendTable.Column, {
53
62
  index,
54
63
  size,
55
64
  styles,
56
- transparent: isTransparent
57
- }, item));
65
+ transparent: isTransparent,
66
+ onMouseEnter: legendItem.checked ? this.bindOnMouseEnterItem(legendItem.id) : void 0,
67
+ onMouseLeave: this.bindOnMouseLeaveItem(legendItem.id)
68
+ }, additionItem));
58
69
  }));
59
70
  }));
60
71
  }
@@ -75,10 +86,6 @@ function ColumnComponent(props) {
75
86
  } = props;
76
87
  return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SColumnItem, _ref4.cn("SColumnItem", {
77
88
  ...assignProps({
78
- "style": {
79
- gridColumnStart: `${index + 2}`,
80
- gridColumnEnd: `${index + 3}`
81
- },
82
89
  "size": size
83
90
  }, _ref2)
84
91
  }), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})));
@@ -1,23 +1,39 @@
1
- SLegendTable[columns-count] {
1
+ SLegendTable[additions-count] {
2
2
  font-variant-numeric: tabular-nums;
3
3
  display: grid;
4
- grid-template-columns: auto 0.2fr;
5
4
  align-items: center;
6
- height: fit-content;
7
- grid-column-gap: var(--intergalactic-spacing-content-gap-large, 8px);
8
- grid-row-gap: var(--intergalactic-spacing-content-gap-large, 8px);
9
- }
5
+ grid-column-gap: var(--intergalactic-spacing-2x, 8px);
10
6
 
11
- SColumnItem[size='l'] {
12
- font-size: var(--intergalactic-fs-300, 16px);
13
- text-align: right;
14
- }
7
+ &[additions-direction='columns'] {
8
+ grid-template-columns: auto repeat(var(--additions-count), 0.2fr);
9
+ height: fit-content;
10
+ grid-row-gap: var(--intergalactic-spacing-2x, 8px);
15
11
 
16
- SColumnItem[size='m'] {
17
- font-size: var(--intergalactic-fs-200, 14px);
18
- text-align: right;
12
+ & > SColumnItem {
13
+ text-align: right;
14
+ }
15
+ }
16
+ &[additions-direction='rows'] {
17
+ grid-template-rows: auto repeat(var(--additions-count), 0.2fr);
18
+ grid-auto-flow: column;
19
+ grid-row-gap: var(--intergalactic-spacing-1x, 4px);
20
+ grid-column-gap: var(--intergalactic-spacing-14x, 56px);
21
+ grid-template-columns: repeat(var(--items-count), max-content);
22
+ }
19
23
  }
20
24
 
21
- SColumnItem[transparent] {
22
- opacity: 0.3;
25
+ SColumnItem {
26
+ white-space: nowrap;
27
+
28
+ &[size='l'] {
29
+ font-size: var(--intergalactic-fs-300, 16px);
30
+ }
31
+
32
+ &[size='m'] {
33
+ font-size: var(--intergalactic-fs-200, 14px);
34
+ }
35
+
36
+ &[transparent] {
37
+ opacity: 0.3;
38
+ }
23
39
  }
@@ -54,7 +54,6 @@ class CigaretteBarRoot extends Component {
54
54
  height,
55
55
  r: radius,
56
56
  direction,
57
- index,
58
57
  hovered
59
58
  } = this.asProps;
60
59
  let xV = x;
@@ -0,0 +1,62 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import { Component, sstyled, assignProps, createComponent } from "@semcore/core";
3
+ import { Flex } from "@semcore/base-components";
4
+ import Link from "@semcore/link";
5
+ import { Text } from "@semcore/typography";
6
+ import React from "react";
7
+ class MetricRoot extends Component {
8
+ getDiffColor() {
9
+ const {
10
+ diffUse
11
+ } = this.asProps;
12
+ switch (diffUse) {
13
+ case "good": {
14
+ return "var(--intergalactic-text-success)";
15
+ }
16
+ case "bad": {
17
+ return "var(--intergalactic-text-critical)";
18
+ }
19
+ default: {
20
+ return "var(--intergalactic-text-secondary)";
21
+ }
22
+ }
23
+ }
24
+ render() {
25
+ var _ref = this.asProps, _ref2;
26
+ const SMetric = Flex;
27
+ const {
28
+ styles,
29
+ value,
30
+ diffValue,
31
+ href,
32
+ diffIcon: DiffIcon
33
+ } = this.asProps;
34
+ return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SMetric, _ref2.cn("SMetric", {
35
+ ...assignProps({
36
+ "mt": -2,
37
+ "pt": 2,
38
+ "gap": 1,
39
+ "alignItems": "baseline",
40
+ "__excludeProps": ["value", "href"]
41
+ }, _ref)
42
+ }), href ? /* @__PURE__ */ React.createElement(Link, _ref2.cn("Link", {
43
+ "href": href
44
+ }), /* @__PURE__ */ React.createElement(Link.Text, {
45
+ size: 500,
46
+ bold: true
47
+ }, value)) : /* @__PURE__ */ React.createElement(Text, _ref2.cn("Text", {
48
+ "size": 500,
49
+ "bold": true
50
+ }), value), /* @__PURE__ */ React.createElement(Text, _ref2.cn("Text", {
51
+ "size": 100,
52
+ "color": this.getDiffColor()
53
+ }), DiffIcon && /* @__PURE__ */ React.createElement(DiffIcon, _ref2.cn("DiffIcon", {
54
+ "height": "8px"
55
+ })), diffValue));
56
+ }
57
+ }
58
+ _defineProperty(MetricRoot, "displayName", "Metric");
59
+ const Metric = createComponent(MetricRoot);
60
+ export {
61
+ Metric as default
62
+ };
package/lib/esm/index.mjs CHANGED
@@ -3,66 +3,74 @@ import "./component/ChartLegend/index.mjs";
3
3
  import { default as default3 } from "./component/Chart/index.mjs";
4
4
  import { default as default4 } from "./component/StackGroupBar/StackGroupBar.mjs";
5
5
  import { SvgElement } from "./component/SvgElement.mjs";
6
+ import { default as default5 } from "./component/Metric/Metric.mjs";
6
7
  import { XAxis, YAxis } from "./Axis.mjs";
7
- import { default as default5 } from "./Line.mjs";
8
- import { default as default6 } from "./Bar.mjs";
9
- import { default as default7 } from "./CompactHorizontalBar.mjs";
10
- import { default as default8 } from "./HorizontalBar.mjs";
11
- import { default as default9 } from "./GroupBar.mjs";
12
- import { default as default10 } from "./StackBar.mjs";
13
- import { default as default11 } from "./Area.mjs";
14
- import { default as default12 } from "./StackedArea.mjs";
15
- import { default as default13 } from "./ScatterPlot.mjs";
16
- import { default as default14 } from "./Bubble.mjs";
17
- import { default as default15 } from "./RadialTree.mjs";
18
- import { default as default16 } from "./Donut.mjs";
19
- import { default as default17 } from "./Venn.mjs";
20
- import { default as default18, getLabelOffsetPosition } from "./Radar.mjs";
21
- import { default as default19 } from "./Tooltip.mjs";
22
- import { default as default20 } from "./ResponsiveContainer.mjs";
8
+ import { default as default6 } from "./Line.mjs";
9
+ import { default as default7 } from "./Bar.mjs";
10
+ import { default as default8 } from "./CompactHorizontalBar.mjs";
11
+ import { default as default9 } from "./HorizontalBar.mjs";
12
+ import { default as default10 } from "./GroupBar.mjs";
13
+ import { default as default11 } from "./StackBar.mjs";
14
+ import { default as default12 } from "./Area.mjs";
15
+ import { default as default13 } from "./StackedArea.mjs";
16
+ import { default as default14 } from "./ScatterPlot.mjs";
17
+ import { default as default15 } from "./Bubble.mjs";
18
+ import { default as default16 } from "./RadialTree.mjs";
19
+ import { default as default17 } from "./Donut.mjs";
20
+ import { default as default18 } from "./Venn.mjs";
21
+ import { default as default19, getLabelOffsetPosition } from "./Radar.mjs";
22
+ import { default as default20 } from "./Tooltip.mjs";
23
+ import { default as default21 } from "./ResponsiveContainer.mjs";
23
24
  import { ReferenceBackground, ReferenceLine, ReferenceStripes } from "./Reference.mjs";
24
25
  import { HoverLine, HoverRect } from "./Hover.mjs";
25
26
  import { PlotEventEmitter, calculateBubbleDomain, getBubbleChartValueScale, getScatterPlotRadius, interpolateValue, minMax } from "./utils.mjs";
26
- import { colors } from "./color.mjs";
27
27
  import { makeDataHintsContainer } from "./a11y/hints.mjs";
28
28
  import { PatternFill, PatternSymbol, getPatternSymbolSize } from "./Pattern.mjs";
29
+ import { BAD, DATA_TYPE, FORECAST, GOOD, HIGHLIGHT_DOT, INSIGHTFUL, POTENTIAL } from "./component/Chart/AbstractChart.type.mjs";
29
30
  import { LegendFlex } from "./component/ChartLegend/LegendFlex/LegendFlex.mjs";
30
31
  import { LegendTable } from "./component/ChartLegend/LegendTable/LegendTable.mjs";
31
32
  export {
32
- default11 as Area,
33
- default6 as Bar,
34
- default14 as Bubble,
33
+ default12 as Area,
34
+ BAD,
35
+ default7 as Bar,
36
+ default15 as Bubble,
35
37
  default3 as Chart,
36
38
  LegendFlex as ChartLegend,
37
39
  LegendTable as ChartLegendTable,
38
- default7 as CompactHorizontalBar,
39
- default16 as Donut,
40
- default9 as GroupBar,
41
- default8 as HorizontalBar,
40
+ default8 as CompactHorizontalBar,
41
+ DATA_TYPE,
42
+ default17 as Donut,
43
+ FORECAST,
44
+ GOOD,
45
+ default10 as GroupBar,
46
+ HIGHLIGHT_DOT,
47
+ default9 as HorizontalBar,
42
48
  HoverLine,
43
49
  HoverRect,
44
- default5 as Line,
50
+ INSIGHTFUL,
51
+ default6 as Line,
52
+ default5 as Metric,
53
+ POTENTIAL,
45
54
  PatternFill,
46
55
  PatternSymbol,
47
56
  default2 as Plot,
48
57
  PlotEventEmitter,
49
- default18 as Radar,
50
- default15 as RadialTree,
58
+ default19 as Radar,
59
+ default16 as RadialTree,
51
60
  ReferenceBackground,
52
61
  ReferenceLine,
53
62
  ReferenceStripes,
54
- default20 as ResponsiveContainer,
55
- default13 as ScatterPlot,
56
- default10 as StackBar,
63
+ default21 as ResponsiveContainer,
64
+ default14 as ScatterPlot,
65
+ default11 as StackBar,
57
66
  default4 as StackGroupBar,
58
- default12 as StackedArea,
67
+ default13 as StackedArea,
59
68
  SvgElement,
60
- default19 as Tooltip,
61
- default17 as Venn,
69
+ default20 as Tooltip,
70
+ default18 as Venn,
62
71
  XAxis,
63
72
  YAxis,
64
73
  calculateBubbleDomain,
65
- colors,
66
74
  getBubbleChartValueScale,
67
75
  getLabelOffsetPosition,
68
76
  getPatternSymbolSize,
@@ -7,7 +7,7 @@ SChart {
7
7
 
8
8
  STooltipChildrenWrapper {
9
9
  display: grid;
10
- gap: var(--intergalactic-spacing-content-gap-large, 8px);
10
+ gap: var(--intergalactic-spacing-2x, 8px);
11
11
  align-items: center;
12
12
 
13
13
  &[columnsCount='2'] {
@@ -28,7 +28,7 @@ STooltipChildrenWrapper {
28
28
  }
29
29
 
30
30
  STooltipDeltaWrapper {
31
- gap: var(--intergalactic-spacing-content-gap-xsmall, 2px);
31
+ gap: var(--intergalactic-spacing-05x, 2px);
32
32
  justify-content: flex-end;
33
33
 
34
34
  &[trend='upward'] {
@@ -40,7 +40,17 @@ STooltipDeltaWrapper {
40
40
  }
41
41
 
42
42
  &[trend='stable'] {
43
- color: var(--intergalactic-text-secondary-invert, oklch(0.997 0.004 165.9 / 0.684));
43
+ color: var(--intergalactic-text-secondary-invert, oklch(0.953 0.025 240.1 / 0.726));
44
+ }
45
+
46
+ &[deltaPercentGrowthColor='bad'] {
47
+ &[trend='upward'] {
48
+ color: var(--intergalactic-chart-data-critical, oklch(0.74 0.19 22));
49
+ }
50
+
51
+ &[trend='downward'] {
52
+ color: var(--intergalactic-chart-data-success, oklch(0.82 0.19 143));
53
+ }
44
54
  }
45
55
 
46
56
  STooltipDeltaIcon {
@@ -1,8 +1,9 @@
1
- @import './var.css';
2
-
3
1
  SArea {
4
- fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
2
+ fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
5
3
  fill-opacity: 0.1;
4
+ }
5
+
6
+ SArea[withGradient] {
6
7
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.48) 60%, transparent 100%);
7
8
  }
8
9
 
@@ -12,7 +13,7 @@ SArea[color] {
12
13
 
13
14
  SArea[pattern] {
14
15
  fill: var(--pattern);
15
- fill-opacity: 0.7;
16
+ fill-opacity: 0.5;
16
17
  }
17
18
 
18
19
  SArea[transparent] {
@@ -20,7 +21,7 @@ SArea[transparent] {
20
21
  }
21
22
 
22
23
  SAreaLine {
23
- stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
24
+ stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
24
25
  stroke-width: 2;
25
26
  fill: transparent;
26
27
  }
@@ -42,10 +43,10 @@ SAreaLine {
42
43
 
43
44
  SNull {
44
45
  fill: transparent;
45
- stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.002 177));
46
+ stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.009 234));
46
47
  stroke-dasharray: 4;
47
48
  }
48
49
 
49
50
  SNull[hide] {
50
51
  display: none;
51
- }
52
+ }