@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
@@ -0,0 +1,72 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import { assignProps as _assignProps } from "@semcore/core";
3
+ import { Flex } from '@semcore/base-components';
4
+ import { Root, sstyled, Component, createComponent } from '@semcore/core';
5
+ import Link from '@semcore/link';
6
+ import { Text } from '@semcore/typography';
7
+ import React from 'react';
8
+ class MetricRoot extends Component {
9
+ getDiffColor() {
10
+ const {
11
+ diffUse
12
+ } = this.asProps;
13
+ switch (diffUse) {
14
+ case 'good':
15
+ {
16
+ return 'var(--intergalactic-text-success)';
17
+ }
18
+ case 'bad':
19
+ {
20
+ return 'var(--intergalactic-text-critical)';
21
+ }
22
+ default:
23
+ {
24
+ return 'var(--intergalactic-text-secondary)';
25
+ }
26
+ }
27
+ }
28
+ render() {
29
+ var _ref = this.asProps,
30
+ _ref2;
31
+ const SMetric = Flex;
32
+ const {
33
+ styles,
34
+ value,
35
+ diffValue,
36
+ href,
37
+ diffIcon: DiffIcon
38
+ } = this.asProps;
39
+ return _ref2 = sstyled(styles), /*#__PURE__*/React.createElement(SMetric, _ref2.cn("SMetric", {
40
+ ..._assignProps({
41
+ "mt": -2,
42
+ "pt": 2,
43
+ "gap": 1,
44
+ "alignItems": 'baseline',
45
+ "__excludeProps": ['value', 'href']
46
+ }, _ref)
47
+ }), href ? /*#__PURE__*/React.createElement(Link, _ref2.cn("Link", {
48
+ "href": href
49
+ }), /*#__PURE__*/React.createElement(Link.Text, {
50
+ size: 500,
51
+ bold: true
52
+ }, value)) : /*#__PURE__*/React.createElement(Text, _ref2.cn("Text", {
53
+ "size": 500,
54
+ "bold": true
55
+ }), value), /*#__PURE__*/React.createElement(Text, _ref2.cn("Text", {
56
+ "size": 100,
57
+ "color": this.getDiffColor()
58
+ }), DiffIcon && /*#__PURE__*/React.createElement(DiffIcon, _ref2.cn("DiffIcon", {
59
+ "height": '8px'
60
+ })), diffValue));
61
+ }
62
+ }
63
+
64
+ /**
65
+ * Metric
66
+ *
67
+ * {@link https://developer.semrush.com/intergalactic/data-display/chart-legend/chart-legend-code}
68
+ */
69
+ _defineProperty(MetricRoot, "displayName", 'Metric');
70
+ const Metric = createComponent(MetricRoot);
71
+ export default Metric;
72
+ //# sourceMappingURL=Metric.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Metric.js","names":["Flex","Root","sstyled","Component","createComponent","Link","Text","React","MetricRoot","getDiffColor","diffUse","asProps","render","_ref","_ref2","SMetric","styles","value","diffValue","href","diffIcon","DiffIcon","createElement","cn","_assignProps","size","bold","_defineProperty","Metric"],"sources":["../../../../src/component/Metric/Metric.tsx"],"sourcesContent":["import { Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport logger from '@semcore/core/lib/utils/logger';\nimport DiffDown from '@semcore/icon/DiffDown/m';\nimport DiffUp from '@semcore/icon/DiffUp/m';\nimport Link from '@semcore/link';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport type { NSMetric } from './Metric.type';\n\nclass MetricRoot extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMetric.Component>\n> {\n static displayName = 'Metric';\n\n getDiffColor() {\n const { diffUse } = this.asProps;\n\n switch (diffUse) {\n case 'good': {\n return 'var(--intergalactic-text-success)';\n }\n case 'bad': {\n return 'var(--intergalactic-text-critical)';\n }\n default: {\n return 'var(--intergalactic-text-secondary)';\n }\n }\n }\n\n render(): React.ReactNode {\n const SMetric = Root;\n const { styles, value, diffValue, href, diffIcon: DiffIcon } = this.asProps;\n\n return sstyled(styles)(\n <SMetric mt={-2} pt={2} render={Flex} gap={1} alignItems='baseline' __excludeProps={['value', 'href']}>\n {href\n ? (<Link href={href}><Link.Text size={500} bold>{value}</Link.Text></Link>)\n : (<Text size={500} bold>{value}</Text>)}\n <Text size={100} color={this.getDiffColor()}>\n {DiffIcon && <DiffIcon height='8px' />}\n {diffValue}\n </Text>\n </SMetric>,\n );\n }\n}\n\n/**\n * Metric\n *\n * {@link https://developer.semrush.com/intergalactic/data-display/chart-legend/chart-legend-code}\n */\nconst Metric = createComponent<\n NSMetric.Component,\n typeof MetricRoot\n>(MetricRoot);\n\nexport default Metric;\n"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,0BAA0B;AAE/C,SAASC,IAAI,EAAEC,OAAO,EAAEC,SAAS,EAAEC,eAAe,QAAQ,eAAe;AAKzE,OAAOC,IAAI,MAAM,eAAe;AAChC,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,OAAOC,KAAK,MAAM,OAAO;AAIzB,MAAMC,UAAU,SAASL,SAAS,CAEhC;EAGAM,YAAYA,CAAA,EAAG;IACb,MAAM;MAAEC;IAAQ,CAAC,GAAG,IAAI,CAACC,OAAO;IAEhC,QAAQD,OAAO;MACb,KAAK,MAAM;QAAE;UACX,OAAO,mCAAmC;QAC5C;MACA,KAAK,KAAK;QAAE;UACV,OAAO,oCAAoC;QAC7C;MACA;QAAS;UACP,OAAO,qCAAqC;QAC9C;IACF;EACF;EAEAE,MAAMA,CAAA,EAAoB;IAAA,IAAAC,IAAA,QAAAF,OAAA;MAAAG,KAAA;IACxB,MAAMC,OAAO,GAIqBf,IAAI;IAHtC,MAAM;MAAEgB,MAAM;MAAEC,KAAK;MAAEC,SAAS;MAAEC,IAAI;MAAEC,QAAQ,EAAEC;IAAS,CAAC,GAAG,IAAI,CAACV,OAAO;IAE3E,OAAAG,KAAA,GAAOZ,OAAO,CAACc,MAAM,CAAC,eACpBT,KAAA,CAAAe,aAAA,CAACP,OAAO,EAAAD,KAAA,CAAAS,EAAA;MAAA,GAAAC,YAAA;QAAA,MAAK,CAAC,CAAC;QAAA,MAAM,CAAC;QAAA,OAAqB,CAAC;QAAA,cAAa,UAAU;QAAA,kBAAiB,CAAC,OAAO,EAAE,MAAM;MAAC,GAAAX,IAAA;IAAA,IAClGM,IAAI,gBACAZ,KAAA,CAAAe,aAAA,CAACjB,IAAI,EAAAS,KAAA,CAAAS,EAAA;MAAA,QAAOJ;IAAI,iBAAEZ,KAAA,CAAAe,aAAA,CAACjB,IAAI,CAACC,IAAI;MAACmB,IAAI,EAAE,GAAI;MAACC,IAAI;IAAA,GAAET,KAAiB,CAAO,CAAC,gBACvEV,KAAA,CAAAe,aAAA,CAAChB,IAAI,EAAAQ,KAAA,CAAAS,EAAA;MAAA,QAAO,GAAG;MAAA;IAAA,IAAQN,KAAY,CAAE,eAC1CV,KAAA,CAAAe,aAAA,CAAChB,IAAI,EAAAQ,KAAA,CAAAS,EAAA;MAAA,QAAO,GAAG;MAAA,SAAS,IAAI,CAACd,YAAY,CAAC;IAAC,IACxCY,QAAQ,iBAAId,KAAA,CAAAe,aAAA,CAACD,QAAQ,EAAAP,KAAA,CAAAS,EAAA;MAAA,UAAQ;IAAK,EAAE,CAAC,EACrCL,SACG,CACC,CAAC;EAEd;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAS,eAAA,CAvCMnB,UAAU,iBAGO,QAAQ;AAyC/B,MAAMoB,MAAM,GAAGxB,eAAe,CAG5BI,UAAU,CAAC;AAEb,eAAeoB,MAAM","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Metric.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Metric.type.js","names":[],"sources":["../../../../src/component/Metric/Metric.type.ts"],"sourcesContent":["import type { NSBox } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { IconComponent } from '@semcore/icon';\n\ndeclare namespace NSMetric {\n type DiffUse = 'good' | 'bad' | 'neutral';\n type DiffIcon = IconComponent;\n\n type Props = NSBox.Props & {\n /**\n * Value to render in the Metric\n */\n value: string;\n\n /**\n * Value to render in diff\n */\n diffValue: string;\n\n /**\n * Diff color\n */\n diffUse: DiffUse;\n\n /**\n * Link to another tool or whatever\n */\n href?: string;\n\n /**\n * Diff arrow direction\n * @default no icon\n */\n diffIcon?: DiffIcon;\n };\n\n type Component = Intergalactic.Component<'span', Props>;\n}\n\nexport {\n type NSMetric,\n};\n"],"mappings":"","ignoreList":[]}
package/lib/es6/index.js CHANGED
@@ -1,8 +1,10 @@
1
1
  export { default as Plot } from './Plot';
2
2
  export { ChartLegend, ChartLegendTable } from './component/ChartLegend';
3
3
  export { default as Chart } from './component/Chart';
4
+ export * from './component/Chart';
4
5
  export { default as StackGroupBar } from './component/StackGroupBar/StackGroupBar';
5
6
  export { SvgElement } from './component/SvgElement';
7
+ export { default as Metric } from './component/Metric/Metric';
6
8
  export { XAxis, YAxis } from './Axis';
7
9
  export { default as Line } from './Line';
8
10
  export { default as Bar } from './Bar';
@@ -23,7 +25,6 @@ export { default as ResponsiveContainer } from './ResponsiveContainer';
23
25
  export { ReferenceLine, ReferenceBackground, ReferenceStripes } from './Reference';
24
26
  export { HoverLine, HoverRect } from './Hover';
25
27
  export { minMax, interpolateValue, getBubbleChartValueScale, getScatterPlotRadius, calculateBubbleDomain, PlotEventEmitter } from './utils';
26
- export { colors } from './color';
27
28
  export { makeDataHintsContainer } from './a11y/hints';
28
29
  export { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';
29
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","Plot","ChartLegend","ChartLegendTable","Chart","StackGroupBar","SvgElement","XAxis","YAxis","Line","Bar","CompactHorizontalBar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","ScatterPlot","Bubble","RadialTree","Donut","Venn","Radar","getLabelOffsetPosition","Tooltip","ResponsiveContainer","ReferenceLine","ReferenceBackground","ReferenceStripes","HoverLine","HoverRect","minMax","interpolateValue","getBubbleChartValueScale","getScatterPlotRadius","calculateBubbleDomain","PlotEventEmitter","colors","makeDataHintsContainer","PatternFill","PatternSymbol","getPatternSymbolSize"],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\nexport { default as Chart } from './component/Chart';\nexport { default as StackGroupBar } from './component/StackGroupBar/StackGroupBar';\nexport { SvgElement } from './component/SvgElement';\nexport { XAxis, YAxis } from './Axis';\n\nexport { default as Line } from './Line';\n\nexport { default as Bar } from './Bar';\nexport { default as CompactHorizontalBar } from './CompactHorizontalBar';\nexport { default as HorizontalBar } from './HorizontalBar';\nexport { default as GroupBar } from './GroupBar';\nexport { default as StackBar } from './StackBar';\nexport { default as Area } from './Area';\nexport { default as StackedArea } from './StackedArea';\nexport { default as ScatterPlot } from './ScatterPlot';\nexport { default as Bubble } from './Bubble';\nexport { default as RadialTree } from './RadialTree';\nexport { default as Donut } from './Donut';\nexport { default as Venn } from './Venn';\nexport { default as Radar, getLabelOffsetPosition } from './Radar';\n\nexport { default as Tooltip } from './Tooltip';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport { ReferenceLine, ReferenceBackground, ReferenceStripes } from './Reference';\n\nexport { HoverLine, HoverRect } from './Hover';\n\nexport {\n minMax,\n interpolateValue,\n getBubbleChartValueScale,\n getScatterPlotRadius,\n calculateBubbleDomain,\n PlotEventEmitter,\n} from './utils';\nexport { colors } from './color';\n\nexport { makeDataHintsContainer } from './a11y/hints';\n\nexport { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,IAAI,QAAQ,QAAQ;AACxC,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,yBAAyB;AACvE,SAASH,OAAO,IAAII,KAAK,QAAQ,mBAAmB;AACpD,SAASJ,OAAO,IAAIK,aAAa,QAAQ,yCAAyC;AAClF,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,KAAK,EAAEC,KAAK,QAAQ,QAAQ;AAErC,SAASR,OAAO,IAAIS,IAAI,QAAQ,QAAQ;AAExC,SAAST,OAAO,IAAIU,GAAG,QAAQ,OAAO;AACtC,SAASV,OAAO,IAAIW,oBAAoB,QAAQ,wBAAwB;AACxE,SAASX,OAAO,IAAIY,aAAa,QAAQ,iBAAiB;AAC1D,SAASZ,OAAO,IAAIa,QAAQ,QAAQ,YAAY;AAChD,SAASb,OAAO,IAAIc,QAAQ,QAAQ,YAAY;AAChD,SAASd,OAAO,IAAIe,IAAI,QAAQ,QAAQ;AACxC,SAASf,OAAO,IAAIgB,WAAW,QAAQ,eAAe;AACtD,SAAShB,OAAO,IAAIiB,WAAW,QAAQ,eAAe;AACtD,SAASjB,OAAO,IAAIkB,MAAM,QAAQ,UAAU;AAC5C,SAASlB,OAAO,IAAImB,UAAU,QAAQ,cAAc;AACpD,SAASnB,OAAO,IAAIoB,KAAK,QAAQ,SAAS;AAC1C,SAASpB,OAAO,IAAIqB,IAAI,QAAQ,QAAQ;AACxC,SAASrB,OAAO,IAAIsB,KAAK,EAAEC,sBAAsB,QAAQ,SAAS;AAElE,SAASvB,OAAO,IAAIwB,OAAO,QAAQ,WAAW;AAE9C,SAASxB,OAAO,IAAIyB,mBAAmB,QAAQ,uBAAuB;AACtE,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,gBAAgB,QAAQ,aAAa;AAElF,SAASC,SAAS,EAAEC,SAAS,QAAQ,SAAS;AAE9C,SACEC,MAAM,EACNC,gBAAgB,EAChBC,wBAAwB,EACxBC,oBAAoB,EACpBC,qBAAqB,EACrBC,gBAAgB,QACX,SAAS;AAChB,SAASC,MAAM,QAAQ,SAAS;AAEhC,SAASC,sBAAsB,QAAQ,cAAc;AAErD,SAASC,WAAW,EAAEC,aAAa,EAAEC,oBAAoB,QAAQ,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["default","Plot","ChartLegend","ChartLegendTable","Chart","StackGroupBar","SvgElement","Metric","XAxis","YAxis","Line","Bar","CompactHorizontalBar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","ScatterPlot","Bubble","RadialTree","Donut","Venn","Radar","getLabelOffsetPosition","Tooltip","ResponsiveContainer","ReferenceLine","ReferenceBackground","ReferenceStripes","HoverLine","HoverRect","minMax","interpolateValue","getBubbleChartValueScale","getScatterPlotRadius","calculateBubbleDomain","PlotEventEmitter","makeDataHintsContainer","PatternFill","PatternSymbol","getPatternSymbolSize"],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\nexport { default as Chart } from './component/Chart';\nexport * from './component/Chart';\nexport { default as StackGroupBar } from './component/StackGroupBar/StackGroupBar';\nexport { SvgElement } from './component/SvgElement';\nexport { default as Metric } from './component/Metric/Metric';\nexport { XAxis, YAxis } from './Axis';\n\nexport { default as Line } from './Line';\n\nexport { default as Bar } from './Bar';\nexport { default as CompactHorizontalBar } from './CompactHorizontalBar';\nexport { default as HorizontalBar } from './HorizontalBar';\nexport { default as GroupBar } from './GroupBar';\nexport { default as StackBar } from './StackBar';\nexport { default as Area } from './Area';\nexport { default as StackedArea } from './StackedArea';\nexport { default as ScatterPlot } from './ScatterPlot';\nexport { default as Bubble } from './Bubble';\nexport { default as RadialTree } from './RadialTree';\nexport { default as Donut } from './Donut';\nexport { default as Venn } from './Venn';\nexport { default as Radar, getLabelOffsetPosition } from './Radar';\n\nexport { default as Tooltip } from './Tooltip';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport { ReferenceLine, ReferenceBackground, ReferenceStripes } from './Reference';\n\nexport { HoverLine, HoverRect } from './Hover';\n\nexport {\n minMax,\n interpolateValue,\n getBubbleChartValueScale,\n getScatterPlotRadius,\n calculateBubbleDomain,\n PlotEventEmitter,\n} from './utils';\n\nexport { makeDataHintsContainer } from './a11y/hints';\n\nexport { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,IAAI,QAAQ,QAAQ;AACxC,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,yBAAyB;AACvE,SAASH,OAAO,IAAII,KAAK,QAAQ,mBAAmB;AACpD,cAAc,mBAAmB;AACjC,SAASJ,OAAO,IAAIK,aAAa,QAAQ,yCAAyC;AAClF,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASN,OAAO,IAAIO,MAAM,QAAQ,2BAA2B;AAC7D,SAASC,KAAK,EAAEC,KAAK,QAAQ,QAAQ;AAErC,SAAST,OAAO,IAAIU,IAAI,QAAQ,QAAQ;AAExC,SAASV,OAAO,IAAIW,GAAG,QAAQ,OAAO;AACtC,SAASX,OAAO,IAAIY,oBAAoB,QAAQ,wBAAwB;AACxE,SAASZ,OAAO,IAAIa,aAAa,QAAQ,iBAAiB;AAC1D,SAASb,OAAO,IAAIc,QAAQ,QAAQ,YAAY;AAChD,SAASd,OAAO,IAAIe,QAAQ,QAAQ,YAAY;AAChD,SAASf,OAAO,IAAIgB,IAAI,QAAQ,QAAQ;AACxC,SAAShB,OAAO,IAAIiB,WAAW,QAAQ,eAAe;AACtD,SAASjB,OAAO,IAAIkB,WAAW,QAAQ,eAAe;AACtD,SAASlB,OAAO,IAAImB,MAAM,QAAQ,UAAU;AAC5C,SAASnB,OAAO,IAAIoB,UAAU,QAAQ,cAAc;AACpD,SAASpB,OAAO,IAAIqB,KAAK,QAAQ,SAAS;AAC1C,SAASrB,OAAO,IAAIsB,IAAI,QAAQ,QAAQ;AACxC,SAAStB,OAAO,IAAIuB,KAAK,EAAEC,sBAAsB,QAAQ,SAAS;AAElE,SAASxB,OAAO,IAAIyB,OAAO,QAAQ,WAAW;AAE9C,SAASzB,OAAO,IAAI0B,mBAAmB,QAAQ,uBAAuB;AACtE,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,gBAAgB,QAAQ,aAAa;AAElF,SAASC,SAAS,EAAEC,SAAS,QAAQ,SAAS;AAE9C,SACEC,MAAM,EACNC,gBAAgB,EAChBC,wBAAwB,EACxBC,oBAAoB,EACpBC,qBAAqB,EACrBC,gBAAgB,QACX,SAAS;AAEhB,SAASC,sBAAsB,QAAQ,cAAc;AAErD,SAASC,WAAW,EAAEC,aAAa,EAAEC,oBAAoB,QAAQ,WAAW","ignoreList":[]}
@@ -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
+ }
@@ -1,5 +1,5 @@
1
1
  SAxis {
2
- stroke: var(--intergalactic-chart-grid-x-axis, oklch(0.88 0.002 175.6));
2
+ stroke: var(--intergalactic-chart-grid-x-axis, oklch(0.88 0.011 234.9));
3
3
  }
4
4
 
5
5
  SAxis[hide] {
@@ -7,25 +7,66 @@ SAxis[hide] {
7
7
  }
8
8
 
9
9
  STick {
10
+ display: block;
10
11
  font-size: var(--intergalactic-fs-100, 12px);
11
- fill: var(--intergalactic-chart-grid-text-label, oklch(0.097 0.023 156.5 / 0.468));
12
- }
13
- STick[primaryText] {
14
- fill: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
15
- }
12
+ font-variant-numeric: tabular-nums;
13
+ line-height: var(--intergalactic-lh-100, 1.3334);
14
+ color: var(--intergalactic-chart-grid-text-label, oklch(from oklch(0.182 0.045 244.8 / 0.593) l c h / 0.4));
15
+ overflow: visible;
16
+
17
+ /* FF fix */
18
+ [data-tick-content] {
19
+ height: 100%;
20
+ }
16
21
 
17
- STick[hide] {
18
- display: none;
22
+ &[position='bottom'] {
23
+ text-align: center;
24
+ }
25
+
26
+ &[position='left'] {
27
+ text-align: end;
28
+ dominant-baseline: central;
29
+
30
+ [data-tick-content] {
31
+ align-content: center;
32
+ }
33
+ }
34
+
35
+ &[position='top'] {
36
+ text-align: center;
37
+
38
+ [data-tick-content] {
39
+ align-content: end;
40
+ }
41
+ }
42
+
43
+ &[position='right'] {
44
+ dominant-baseline: central;
45
+
46
+ [data-tick-content] {
47
+ align-content: center;
48
+ }
49
+ }
50
+
51
+ &[hide] {
52
+ display: none;
53
+ }
54
+
55
+ &[primaryText] {
56
+ color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
57
+ }
19
58
  }
20
59
 
21
60
  SGrid {
22
61
  fill: transparent;
23
- stroke: var(--intergalactic-border-secondary, oklch(0.176 0.033 175.7 / 0.07));
62
+ stroke: var(--intergalactic-chart-grid-line, oklch(0.7 0.021 242));
63
+ stroke-dasharray: 0 6;
64
+ stroke-linecap: round;
24
65
  }
25
66
 
26
67
  STitle {
27
68
  font-size: var(--intergalactic-fs-100, 12px);
28
- fill: var(--intergalactic-text-hint, oklch(0.097 0.023 156.5 / 0.468));
69
+ fill: var(--intergalactic-chart-grid-text-label, oklch(from oklch(0.182 0.045 244.8 / 0.593) l c h / 0.4));
29
70
  transform-origin: var(--transform-origin);
30
71
  }
31
72
 
@@ -55,56 +96,6 @@ STitle[position='left'][verticalWritingMode] {
55
96
  transform: none;
56
97
  }
57
98
 
58
- STick[position='top'] {
59
- transform: translateY(-12px);
60
- text-anchor: middle;
61
- }
62
-
63
- STick[position='bottom'] {
64
- transform: translateY(12px);
65
- text-anchor: middle;
66
- dominant-baseline: hanging;
67
-
68
- tspan {
69
- dominant-baseline: hanging;
70
- }
71
- }
72
-
73
- STick[position='right'] {
74
- transform: translateX(16px);
75
- dominant-baseline: middle;
76
-
77
- tspan {
78
- dominant-baseline: middle;
79
- }
80
-
81
- &[multiline] {
82
- dominant-baseline: auto;
83
-
84
- tspan {
85
- dominant-baseline: auto;
86
- }
87
- }
88
- }
89
-
90
- STick[position='left'] {
91
- transform: translateX(-16px);
92
- text-anchor: end;
93
- dominant-baseline: middle;
94
-
95
- tspan {
96
- dominant-baseline: middle;
97
- }
98
-
99
- &[multiline] {
100
- dominant-baseline: auto;
101
-
102
- tspan {
103
- dominant-baseline: auto;
104
- }
105
- }
106
- }
107
-
108
99
  STick[position='custom_0'] {
109
100
  transform: translateY(12px);
110
101
  text-anchor: middle;
@@ -1,7 +1,5 @@
1
- @import './var.css';
2
-
3
1
  SBar {
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
  transition-property: height, width, y;
6
4
  transition-duration: var(--duration);
7
5
  transition-timing-function: ease-in-out;
@@ -30,7 +28,7 @@ SBar[onClick] {
30
28
  }
31
29
 
32
30
  SBackground {
33
- fill: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.96 0.001 180));
31
+ fill: var(--intergalactic-chart-grid-bar-base-bg, oklch(0.92 0.008 233.5));
34
32
  opacity: 0.4;
35
33
  }
36
34
  SBackground[onClick] {
@@ -42,13 +40,13 @@ SBarAnnotation {
42
40
  justify-content: space-between;
43
41
  }
44
42
  SBarLabel {
45
- color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
43
+ color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
46
44
  margin-right: auto;
47
45
  font-size: var(--intergalactic-fs-200, 14px);
48
46
  line-height: var(--intergalactic-lh-200, 1.4286);
49
47
  }
50
48
  SBarPercent {
51
- color: var(--intergalactic-text-secondary, oklch(0.097 0.023 156.5 / 0.468));
49
+ color: var(--intergalactic-text-secondary, oklch(0.182 0.045 244.8 / 0.593));
52
50
  margin-right: var(--intergalactic-spacing-2x, 8px);
53
51
  font-size: var(--intergalactic-fs-200, 14px);
54
52
  line-height: var(--intergalactic-lh-200, 1.4286);
@@ -57,11 +55,11 @@ SBarValue {
57
55
  min-width: 52px;
58
56
  display: flex;
59
57
  justify-content: flex-end;
60
- color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
58
+ color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
61
59
  font-size: var(--intergalactic-fs-200, 14px);
62
60
  line-height: var(--intergalactic-lh-200, 1.4286);
63
61
  text-align: right;
64
62
  }
65
63
  SCompactHorizontalBarHoverRect {
66
- fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.042));
67
- }
64
+ fill: var(--intergalactic-chart-grid-bar-hover, oklch(0.375 0.09 242.7 / 0.05));
65
+ }
@@ -1,7 +1,5 @@
1
- @import './var.css';
2
-
3
1
  SBubble {
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
  stroke: var(--intergalactic-chart-grid-border, #ffffff);
6
4
  stroke-width: 2px;
7
5
  transition-property: cx, cy;
@@ -40,7 +38,7 @@ SCenter {
40
38
  text-anchor: middle;
41
39
  /* disable-tokens-validator */
42
40
  font-size: calc(var(--intergalactic-fs-100, 12px) - 1px);
43
- stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
41
+ stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
44
42
  }
45
43
 
46
44
  SCenter[color] {
@@ -52,7 +50,7 @@ SCenter[transparent] {
52
50
  }
53
51
 
54
52
  SLabel {
55
- fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
53
+ fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
56
54
  }
57
55
 
58
56
  SLabel[position='right'] {
@@ -69,4 +67,4 @@ SLabel[color] {
69
67
 
70
68
  SLabel[transparent] {
71
69
  opacity: 0.3;
72
- }
70
+ }
@@ -1,8 +1,6 @@
1
- @import './var.css';
2
-
3
1
  SPie {
4
2
  stroke: var(--intergalactic-chart-grid-border, #ffffff);
5
- fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
3
+ fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
6
4
  }
7
5
 
8
6
  SPie[color] {
@@ -20,7 +18,7 @@ SPie[transparent] {
20
18
  }
21
19
 
22
20
  SEmptyData {
23
- fill: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.002 177));
21
+ fill: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.009 234));
24
22
  }
25
23
 
26
24
  SEmptyData[color] {
@@ -33,4 +31,4 @@ SLabel {
33
31
  font-size: var(--intergalactic-fs-200, 14px);
34
32
  line-height: var(--intergalactic-lh-200, 1.4286);
35
33
 
36
- }
34
+ }
@@ -1,5 +1,3 @@
1
- @import './var.css';
2
-
3
1
  SDots {
4
2
  & SDot {
5
3
  transition-duration: var(--duration);
@@ -9,7 +7,7 @@ SDots {
9
7
  SDot {
10
8
  stroke-width: 1px;
11
9
  stroke: var(--intergalactic-chart-grid-border, #ffffff);
12
- fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
10
+ fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
13
11
  transition-property: cx, cy, x, y, filter;
14
12
  transition-timing-function: ease-in-out;
15
13
  }
@@ -28,6 +26,41 @@ SDot[color] {
28
26
  fill: var(--color);
29
27
  }
30
28
 
29
+ SDotHighlight {
30
+ &[color] {
31
+ opacity: 0.4;
32
+ fill: var(--color);
33
+ }
34
+
35
+ &[transparent] {
36
+ opacity: 0.12;
37
+ }
38
+ }
39
+
40
+ SDotBorder {
41
+ fill: none;
42
+ stroke-width: 1px;
43
+ stroke: var(--intergalactic-chart-grid-dot-outer-border, oklch(from oklch(0.23 0.009 245) l c h / 0.1));
44
+ stroke-dasharray: 2;
45
+
46
+ &[transparent] {
47
+ opacity: 0.03;
48
+ }
49
+ }
50
+
31
51
  SDot[transparent] {
32
52
  opacity: 0.3;
33
- }
53
+ }
54
+
55
+ SDotBackdrop {
56
+ stroke-width: 1px;
57
+ stroke: var(--intergalactic-chart-grid-border, #ffffff);
58
+ fill: var(--intergalactic-chart-grid-border, #ffffff);
59
+ transition-property: cx, cy;
60
+ transition-duration: var(--duration);
61
+ transition-timing-function: ease-in-out;
62
+
63
+ &[hide] {
64
+ display: none
65
+ }
66
+ }
@@ -1,27 +1,44 @@
1
1
  SHoverLine, SHoverLine:focus-visible {
2
2
  outline: none;
3
- stroke: var(--intergalactic-chart-grid-x-axis, oklch(0.88 0.002 175.6));
3
+ stroke: var(--intergalactic-chart-grid-x-axis, oklch(0.88 0.011 234.9));
4
4
  }
5
5
 
6
6
  SHoverRect, SHoverRect:focus-visible {
7
7
  outline: none;
8
- fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.042));
8
+ fill: var(--intergalactic-chart-grid-bar-hover, oklch(0.375 0.09 242.7 / 0.05));
9
9
  }
10
10
 
11
- STick {
11
+ SHoveredTickWrapper {
12
12
  font-size: var(--intergalactic-fs-100, 12px);
13
- fill: var(--intergalactic-chart-grid-text-label, oklch(0.097 0.023 156.5 / 0.468));
14
- transform: translateY(12px);
15
- text-anchor: middle;
16
- dominant-baseline: hanging;
13
+ font-variant-numeric: tabular-nums;
14
+ line-height: var(--intergalactic-lh-100, 1.3334);
15
+ color: var(--intergalactic-chart-grid-text-label, oklch(from oklch(0.182 0.045 244.8 / 0.593) l c h / 0.4));
17
16
 
18
- tspan {
19
- dominant-baseline: hanging;
17
+ text-align: center;
18
+
19
+ &[data-is-first='true'] {
20
+ text-align: start;
20
21
  }
21
22
 
22
- cursor: default;
23
- }
23
+ &[data-is-last='true'] {
24
+ text-align: end;
25
+ }
26
+
27
+ &[position='top'] {
28
+ SHoveredTickContent {
29
+ align-content: end;
30
+ }
31
+ }
32
+
33
+ /* FF fix */
34
+ SHoveredTickContent {
35
+ height: 100%;
36
+ }
24
37
 
25
- STickHover {
26
- fill: var(--intergalactic-chart-x-axis-accent-tick, oklch(0.96 0.001 180));
38
+ SHoveredTick {
39
+ display: inline-block;
40
+ padding: 3px 12px;
41
+ border-radius: 6px;
42
+ background-color: var(--intergalactic-chart-x-axis-accent-tick, oklch(0.96 0.005 232.5));
43
+ }
27
44
  }
@@ -1,9 +1,7 @@
1
- @import './var.css';
2
-
3
1
  SLine {
4
2
  fill: transparent;
5
3
  stroke-width: 2;
6
- stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
4
+ stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
7
5
  transition-property: d;
8
6
  transition-duration: var(--duration);
9
7
  transition-timing-function: ease-in-out;
@@ -23,7 +21,7 @@ SLine[transparent] {
23
21
 
24
22
  SNull {
25
23
  fill: transparent;
26
- stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.002 177));
24
+ stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.009 234));
27
25
  stroke-dasharray: 4;
28
26
  }
29
27
 
@@ -36,7 +34,7 @@ SLineArea {
36
34
  transition-duration: var(--duration);
37
35
  transition-timing-function: ease-in-out;
38
36
  opacity: 0.3;
39
- fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
37
+ fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
40
38
  }
41
39
  SLineArea[color] {
42
40
  fill: var(--color);
@@ -0,0 +1,10 @@
1
+
2
+ SLinearGradient {
3
+ SStopFrom {
4
+ stop-color: var(--violet-300, oklch(0.74 0.17 303));
5
+ }
6
+
7
+ SStopTo {
8
+ stop-color: var(--green-100, oklch(0.9 0.11 175));
9
+ }
10
+ }
@@ -2,8 +2,8 @@ SPlotA11yView {
2
2
  position: relative;
3
3
  display: block;
4
4
  background-color: var(--intergalactic-bg-primary-neutral, oklch(1 0 0));
5
- color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
6
- border: 3px solid var(--intergalactic-border-primary, oklch(0.137 0.026 175.7 / 0.161));
5
+ color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
6
+ border: 3px solid var(--intergalactic-border-primary, oklch(0.277 0.066 242.6 / 0.18));
7
7
  font-size: var(--intergalactic-fs-50, 10px);
8
8
  z-index: var(--intergalactic-z-index-overlay, 500);
9
9
  padding: 2px;
@@ -21,6 +21,6 @@ SPlotA11yView {
21
21
  }
22
22
 
23
23
  table, td, th {
24
- border: 1px solid var(--intergalactic-border-primary, oklch(0.137 0.026 175.7 / 0.161));
24
+ border: 1px solid var(--intergalactic-border-primary, oklch(0.277 0.066 242.6 / 0.18));
25
25
  }
26
26
  }