@semcore/d3-chart 17.3.1 → 18.0.0-prerelease.0

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 (289) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/Area.js +11 -11
  3. package/lib/cjs/Axis.js +55 -58
  4. package/lib/cjs/Axis.js.map +1 -1
  5. package/lib/cjs/Bar.js +16 -16
  6. package/lib/cjs/Bubble.js +14 -14
  7. package/lib/cjs/CompactHorizontalBar.js +16 -16
  8. package/lib/cjs/Donut.js +9 -9
  9. package/lib/cjs/Dots.js +14 -11
  10. package/lib/cjs/Dots.js.map +1 -1
  11. package/lib/cjs/HorizontalBar.js +16 -16
  12. package/lib/cjs/Hover.js +158 -39
  13. package/lib/cjs/Hover.js.map +1 -1
  14. package/lib/cjs/Line.js +9 -9
  15. package/lib/cjs/Plot.js +6 -4
  16. package/lib/cjs/Plot.js.map +1 -1
  17. package/lib/cjs/Radar.js +19 -19
  18. package/lib/cjs/RadialTree.js +12 -12
  19. package/lib/cjs/Reference.js +12 -12
  20. package/lib/cjs/ScatterPlot.js +9 -9
  21. package/lib/cjs/Tooltip.js +20 -11
  22. package/lib/cjs/Tooltip.js.map +1 -1
  23. package/lib/cjs/Venn.js +9 -9
  24. package/lib/cjs/a11y/PlotA11yModule.js +2 -2
  25. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  26. package/lib/cjs/component/Chart/AbstractChart.js +139 -50
  27. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  28. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  29. package/lib/cjs/component/Chart/AreaChart.js +12 -10
  30. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  31. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  32. package/lib/cjs/component/Chart/BarChart.js +9 -7
  33. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  34. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  35. package/lib/cjs/component/Chart/BubbleChart.js +21 -8
  36. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  37. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  38. package/lib/cjs/component/Chart/CigaretteChart.js +33 -30
  39. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  40. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  41. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +2 -1
  42. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  43. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  44. package/lib/cjs/component/Chart/DonutChart.js +5 -4
  45. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  46. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  47. package/lib/cjs/component/Chart/HistogramChart.js +6 -4
  48. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  49. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  50. package/lib/cjs/component/Chart/LineChart.js +9 -7
  51. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  52. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  53. package/lib/cjs/component/Chart/RadarChart.js +3 -2
  54. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  55. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  56. package/lib/cjs/component/Chart/ScatterPlotChart.js +19 -7
  57. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  58. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  59. package/lib/cjs/component/Chart/VennChart.js +6 -5
  60. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  61. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  62. package/lib/cjs/component/ChartLegend/BaseLegend.js +4 -2
  63. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  64. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  65. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  66. package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  67. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +23 -18
  68. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  69. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
  70. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  71. package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
  72. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +12 -8
  73. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  74. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  75. package/lib/cjs/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
  76. package/lib/cjs/style/abstract-chart.shadow.css +31 -1
  77. package/lib/cjs/style/area.shadow.css +6 -5
  78. package/lib/cjs/style/axis.shadow.css +2 -2
  79. package/lib/cjs/style/bar.shadow.css +7 -7
  80. package/lib/cjs/style/bubble.shadow.css +4 -4
  81. package/lib/cjs/style/donut.shadow.css +3 -3
  82. package/lib/cjs/style/dot.shadow.css +9 -3
  83. package/lib/cjs/style/hover.shadow.css +19 -1
  84. package/lib/cjs/style/line.shadow.css +4 -4
  85. package/lib/cjs/style/radar.shadow.css +5 -5
  86. package/lib/cjs/style/radial-tree.shadow.css +3 -3
  87. package/lib/cjs/style/reference.shadow.css +1 -1
  88. package/lib/cjs/style/scatterplot.shadow.css +1 -1
  89. package/lib/cjs/style/tooltip.shadow.css +23 -14
  90. package/lib/cjs/style/venn.shadow.css +3 -3
  91. package/lib/cjs/types/Hover.d.js.map +1 -1
  92. package/lib/cjs/utils/TextMeasurer.js +33 -0
  93. package/lib/cjs/utils/TextMeasurer.js.map +1 -0
  94. package/lib/es6/Area.js +11 -11
  95. package/lib/es6/Axis.js +55 -57
  96. package/lib/es6/Axis.js.map +1 -1
  97. package/lib/es6/Bar.js +16 -16
  98. package/lib/es6/Bubble.js +14 -14
  99. package/lib/es6/CompactHorizontalBar.js +16 -16
  100. package/lib/es6/Donut.js +9 -9
  101. package/lib/es6/Dots.js +14 -11
  102. package/lib/es6/Dots.js.map +1 -1
  103. package/lib/es6/HorizontalBar.js +16 -16
  104. package/lib/es6/Hover.js +158 -39
  105. package/lib/es6/Hover.js.map +1 -1
  106. package/lib/es6/Line.js +9 -9
  107. package/lib/es6/Plot.js +6 -4
  108. package/lib/es6/Plot.js.map +1 -1
  109. package/lib/es6/Radar.js +19 -19
  110. package/lib/es6/RadialTree.js +12 -12
  111. package/lib/es6/Reference.js +12 -12
  112. package/lib/es6/ScatterPlot.js +9 -9
  113. package/lib/es6/Tooltip.js +20 -11
  114. package/lib/es6/Tooltip.js.map +1 -1
  115. package/lib/es6/Venn.js +9 -9
  116. package/lib/es6/a11y/PlotA11yModule.js +2 -2
  117. package/lib/es6/a11y/PlotA11yView.js +2 -2
  118. package/lib/es6/component/Chart/AbstractChart.js +136 -48
  119. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  120. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  121. package/lib/es6/component/Chart/AreaChart.js +12 -10
  122. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  123. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  124. package/lib/es6/component/Chart/BarChart.js +9 -7
  125. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  126. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  127. package/lib/es6/component/Chart/BubbleChart.js +22 -9
  128. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  129. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  130. package/lib/es6/component/Chart/CigaretteChart.js +33 -30
  131. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  132. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  133. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +2 -1
  134. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  135. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  136. package/lib/es6/component/Chart/DonutChart.js +5 -4
  137. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  138. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  139. package/lib/es6/component/Chart/HistogramChart.js +6 -4
  140. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  141. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  142. package/lib/es6/component/Chart/LineChart.js +9 -7
  143. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  144. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  145. package/lib/es6/component/Chart/RadarChart.js +3 -2
  146. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  147. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  148. package/lib/es6/component/Chart/ScatterPlotChart.js +20 -8
  149. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  150. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  151. package/lib/es6/component/Chart/VennChart.js +6 -5
  152. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  153. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  154. package/lib/es6/component/ChartLegend/BaseLegend.js +4 -2
  155. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  156. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  157. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  158. package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  159. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +23 -18
  160. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  161. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
  162. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  163. package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
  164. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +12 -8
  165. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  166. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  167. package/lib/es6/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
  168. package/lib/es6/style/abstract-chart.shadow.css +31 -1
  169. package/lib/es6/style/area.shadow.css +6 -5
  170. package/lib/es6/style/axis.shadow.css +2 -2
  171. package/lib/es6/style/bar.shadow.css +7 -7
  172. package/lib/es6/style/bubble.shadow.css +4 -4
  173. package/lib/es6/style/donut.shadow.css +3 -3
  174. package/lib/es6/style/dot.shadow.css +9 -3
  175. package/lib/es6/style/hover.shadow.css +19 -1
  176. package/lib/es6/style/line.shadow.css +4 -4
  177. package/lib/es6/style/radar.shadow.css +5 -5
  178. package/lib/es6/style/radial-tree.shadow.css +3 -3
  179. package/lib/es6/style/reference.shadow.css +1 -1
  180. package/lib/es6/style/scatterplot.shadow.css +1 -1
  181. package/lib/es6/style/tooltip.shadow.css +23 -14
  182. package/lib/es6/style/venn.shadow.css +3 -3
  183. package/lib/es6/types/Hover.d.js.map +1 -1
  184. package/lib/es6/utils/TextMeasurer.js +25 -0
  185. package/lib/es6/utils/TextMeasurer.js.map +1 -0
  186. package/lib/esm/Area.mjs +12 -12
  187. package/lib/esm/Axis.mjs +56 -58
  188. package/lib/esm/Bar.mjs +17 -17
  189. package/lib/esm/Bubble.mjs +15 -15
  190. package/lib/esm/CompactHorizontalBar.mjs +17 -17
  191. package/lib/esm/Donut.mjs +10 -10
  192. package/lib/esm/Dots.mjs +15 -12
  193. package/lib/esm/HorizontalBar.mjs +17 -17
  194. package/lib/esm/Hover.mjs +157 -40
  195. package/lib/esm/Line.mjs +10 -10
  196. package/lib/esm/Plot.mjs +7 -5
  197. package/lib/esm/Radar.mjs +20 -20
  198. package/lib/esm/RadialTree.mjs +13 -13
  199. package/lib/esm/Reference.mjs +13 -13
  200. package/lib/esm/ScatterPlot.mjs +10 -10
  201. package/lib/esm/Tooltip.mjs +21 -12
  202. package/lib/esm/Venn.mjs +10 -10
  203. package/lib/esm/a11y/PlotA11yModule.mjs +3 -3
  204. package/lib/esm/a11y/PlotA11yView.mjs +3 -3
  205. package/lib/esm/component/Chart/AbstractChart.mjs +150 -54
  206. package/lib/esm/component/Chart/AreaChart.mjs +12 -10
  207. package/lib/esm/component/Chart/BarChart.mjs +9 -7
  208. package/lib/esm/component/Chart/BubbleChart.mjs +29 -9
  209. package/lib/esm/component/Chart/CigaretteChart.mjs +33 -30
  210. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -1
  211. package/lib/esm/component/Chart/DonutChart.mjs +5 -4
  212. package/lib/esm/component/Chart/HistogramChart.mjs +6 -4
  213. package/lib/esm/component/Chart/LineChart.mjs +9 -7
  214. package/lib/esm/component/Chart/RadarChart.mjs +3 -2
  215. package/lib/esm/component/Chart/ScatterPlotChart.mjs +25 -8
  216. package/lib/esm/component/Chart/VennChart.mjs +6 -5
  217. package/lib/esm/component/ChartLegend/BaseLegend.mjs +4 -2
  218. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
  219. package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  220. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +24 -19
  221. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +1 -1
  222. package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
  223. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +13 -9
  224. package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
  225. package/lib/esm/style/abstract-chart.shadow.css +31 -1
  226. package/lib/esm/style/area.shadow.css +6 -5
  227. package/lib/esm/style/axis.shadow.css +2 -2
  228. package/lib/esm/style/bar.shadow.css +7 -7
  229. package/lib/esm/style/bubble.shadow.css +4 -4
  230. package/lib/esm/style/donut.shadow.css +3 -3
  231. package/lib/esm/style/dot.shadow.css +9 -3
  232. package/lib/esm/style/hover.shadow.css +19 -1
  233. package/lib/esm/style/line.shadow.css +4 -4
  234. package/lib/esm/style/radar.shadow.css +5 -5
  235. package/lib/esm/style/radial-tree.shadow.css +3 -3
  236. package/lib/esm/style/reference.shadow.css +1 -1
  237. package/lib/esm/style/scatterplot.shadow.css +1 -1
  238. package/lib/esm/style/tooltip.shadow.css +23 -14
  239. package/lib/esm/style/venn.shadow.css +3 -3
  240. package/lib/esm/utils/TextMeasurer.mjs +27 -0
  241. package/lib/types/Hover.d.ts +2 -0
  242. package/lib/types/component/Chart/AbstractChart.d.ts +11 -6
  243. package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
  244. package/lib/types/component/Chart/AbstractChart.type.d.ts +20 -2
  245. package/lib/types/component/Chart/AbstractChart.type.d.ts.map +1 -1
  246. package/lib/types/component/Chart/AreaChart.d.ts.map +1 -1
  247. package/lib/types/component/Chart/AreaChart.type.d.ts +1 -0
  248. package/lib/types/component/Chart/AreaChart.type.d.ts.map +1 -1
  249. package/lib/types/component/Chart/BarChart.d.ts.map +1 -1
  250. package/lib/types/component/Chart/BarChart.type.d.ts +1 -0
  251. package/lib/types/component/Chart/BarChart.type.d.ts.map +1 -1
  252. package/lib/types/component/Chart/BubbleChart.d.ts.map +1 -1
  253. package/lib/types/component/Chart/BubbleChart.type.d.ts +2 -1
  254. package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
  255. package/lib/types/component/Chart/CigaretteChart.type.d.ts +2 -1
  256. package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
  257. package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts.map +1 -1
  258. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +2 -1
  259. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts.map +1 -1
  260. package/lib/types/component/Chart/DonutChart.d.ts.map +1 -1
  261. package/lib/types/component/Chart/DonutChart.type.d.ts +2 -1
  262. package/lib/types/component/Chart/DonutChart.type.d.ts.map +1 -1
  263. package/lib/types/component/Chart/HistogramChart.d.ts.map +1 -1
  264. package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -0
  265. package/lib/types/component/Chart/HistogramChart.type.d.ts.map +1 -1
  266. package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
  267. package/lib/types/component/Chart/LineChart.type.d.ts +1 -0
  268. package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
  269. package/lib/types/component/Chart/RadarChart.d.ts.map +1 -1
  270. package/lib/types/component/Chart/RadarChart.type.d.ts +2 -1
  271. package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
  272. package/lib/types/component/Chart/ScatterPlotChart.d.ts.map +1 -1
  273. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +2 -1
  274. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
  275. package/lib/types/component/Chart/VennChart.d.ts.map +1 -1
  276. package/lib/types/component/Chart/VennChart.type.d.ts +2 -1
  277. package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
  278. package/lib/types/component/ChartLegend/BaseLegend.d.ts +5 -1
  279. package/lib/types/component/ChartLegend/BaseLegend.d.ts.map +1 -1
  280. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
  281. package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts.map +1 -1
  282. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +3 -1
  283. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts.map +1 -1
  284. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts.map +1 -1
  285. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +2 -0
  286. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
  287. package/lib/types/utils/TextMeasurer.d.ts +5 -0
  288. package/lib/types/utils/TextMeasurer.d.ts.map +1 -0
  289. package/package.json +15 -15
@@ -185,7 +185,7 @@ class CigaretteChartComponent extends AbstractChart {
185
185
  } = this.asProps;
186
186
  const {
187
187
  dataDefinitions,
188
- highlightedLine
188
+ highlightedItem
189
189
  } = this.state;
190
190
  const {
191
191
  plotWidth,
@@ -250,7 +250,7 @@ class CigaretteChartComponent extends AbstractChart {
250
250
  patterns,
251
251
  direction: invertAxis ? "horizontal" : "vertical",
252
252
  onClick,
253
- hovered: highlightedLine === index ? true : highlightedLine === -1 ? void 0 : false
253
+ hovered: highlightedItem === index ? true : highlightedItem === -1 ? void 0 : false
254
254
  });
255
255
  })), /* @__PURE__ */ React.createElement(AnimatedClipPath, {
256
256
  "aria-hidden": true,
@@ -312,7 +312,7 @@ class CigaretteChartComponent extends AbstractChart {
312
312
  color: item.color
313
313
  }, item.label), showPercentColumn && /* @__PURE__ */ React.createElement(Text, _ref3.cn("Text", {
314
314
  "textAlign": "end",
315
- "color": "text-secondary"
315
+ "color": "text-secondary-invert"
316
316
  }), this.percentValue(data, item.id)), /* @__PURE__ */ React.createElement(Text, _ref3.cn("Text", {
317
317
  "textAlign": "end",
318
318
  "bold": true
@@ -322,7 +322,7 @@ class CigaretteChartComponent extends AbstractChart {
322
322
  return {
323
323
  children: (_ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(Flex, _ref4.cn("Flex", {
324
324
  "direction": "column"
325
- }), tooltipTitle && /* @__PURE__ */ React.createElement(HoverRect.Tooltip.Title, null, tooltipTitle), /* @__PURE__ */ React.createElement(STooltipChildrenWrapper, _ref4.cn("STooltipChildrenWrapper", {
325
+ }), tooltipTitle && /* @__PURE__ */ React.createElement(HoverRect.Tooltip.Title, null, this.tooltipTitleFormatter(tooltipTitle)), /* @__PURE__ */ React.createElement(STooltipChildrenWrapper, _ref4.cn("STooltipChildrenWrapper", {
326
326
  ...assignProps({
327
327
  "columnsCount": showPercentColumn ? "3" : "2",
328
328
  "__excludeProps": ["data"]
@@ -339,14 +339,14 @@ class CigaretteChartComponent extends AbstractChart {
339
339
  style
340
340
  }, item.label), showPercentColumn && /* @__PURE__ */ React.createElement(Text, {
341
341
  textAlign: "end",
342
- color: "text-secondary",
342
+ color: "text-secondary-invert",
343
343
  style
344
344
  }, this.percentValue(data, item.id)), /* @__PURE__ */ React.createElement(Text, {
345
345
  textAlign: "end",
346
346
  bold: true,
347
347
  style
348
348
  }, this.tooltipValueFormatter(data[item.id])));
349
- }), this.renderTooltipTotalLine(data))))
349
+ }), this.renderTooltipTotalLine())))
350
350
  };
351
351
  });
352
352
  }
@@ -366,33 +366,35 @@ class CigaretteChartComponent extends AbstractChart {
366
366
  }
367
367
  return NOT_A_VALUE;
368
368
  }
369
- renderTooltipTotalLine(dataItem) {
369
+ renderTooltipTotalLine() {
370
+ var _ref5;
370
371
  const {
371
372
  showTotalInTooltip,
372
- showPercentValueInTooltip
373
+ showPercentValueInTooltip,
374
+ styles
373
375
  } = this.asProps;
374
376
  if (!showTotalInTooltip) {
375
377
  return null;
376
378
  }
379
+ const STooltipDivider = Divider;
377
380
  const total = this.totalValue();
378
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Box, {
379
- mt: 2,
380
- mr: 2
381
- }, "Total"), showPercentValueInTooltip && total !== 0 && /* @__PURE__ */ React.createElement(Text, {
382
- mt: 2,
383
- textAlign: "end",
384
- color: "text-secondary"
385
- }, Number.isNaN(total) ? NOT_A_VALUE : "100%"), /* @__PURE__ */ React.createElement(Text, {
386
- mt: 2,
387
- textAlign: "end",
388
- bold: true
389
- }, Number.isNaN(total) ? NOT_A_VALUE : total));
381
+ return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(STooltipDivider, _ref5.cn("STooltipDivider", {
382
+ "theme": "invert"
383
+ })), /* @__PURE__ */ React.createElement(Box, _ref5.cn("Box", {
384
+ "mr": 2
385
+ }), "Total"), showPercentValueInTooltip && total !== 0 && /* @__PURE__ */ React.createElement(Text, _ref5.cn("Text", {
386
+ "textAlign": "end",
387
+ "color": "text-secondary-invert"
388
+ }), Number.isNaN(total) ? NOT_A_VALUE : "100%"), /* @__PURE__ */ React.createElement(Text, _ref5.cn("Text", {
389
+ "textAlign": "end",
390
+ "bold": true
391
+ }), Number.isNaN(total) ? NOT_A_VALUE : this.tooltipValueFormatter(total)));
390
392
  }
391
393
  renderHeader() {
392
394
  return this.asProps.header ?? null;
393
395
  }
394
396
  render() {
395
- var _ref2 = this.asProps, _ref6;
397
+ var _ref2 = this.asProps, _ref7;
396
398
  const SChart = Flex;
397
399
  const {
398
400
  styles,
@@ -408,17 +410,17 @@ class CigaretteChartComponent extends AbstractChart {
408
410
  } = this;
409
411
  const header = this.renderHeader();
410
412
  if (invertAxis) {
411
- var _ref5;
412
- return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref5.cn("SChart", {
413
+ var _ref6;
414
+ return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref6.cn("SChart", {
413
415
  ...assignProps({
414
416
  "gap": 6,
415
417
  "direction": direction,
416
418
  "__excludeProps": ["onClick", "data"],
417
419
  "ref": this.chartRef
418
420
  }, _ref2)
419
- }), /* @__PURE__ */ React.createElement(Flex, _ref5.cn("Flex", {
421
+ }), /* @__PURE__ */ React.createElement(Flex, _ref6.cn("Flex", {
420
422
  "direction": "column"
421
- }), header, /* @__PURE__ */ React.createElement(Plot, _ref5.cn("Plot", {
423
+ }), header, /* @__PURE__ */ React.createElement(Plot, _ref6.cn("Plot", {
422
424
  "ref": this.plotRef,
423
425
  "data": data,
424
426
  "scale": [this.xScale, this.yScale],
@@ -431,13 +433,13 @@ class CigaretteChartComponent extends AbstractChart {
431
433
  "onMouseLeave": this.onPlotMouseLeave
432
434
  }), this.renderTooltip(), this.renderChart())), this.renderLegend());
433
435
  }
434
- return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref6.cn("SChart", {
436
+ return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref7.cn("SChart", {
435
437
  ...assignProps({
436
438
  "gap": 6,
437
439
  "__excludeProps": ["onClick", "data"],
438
440
  "ref": this.chartRef
439
441
  }, _ref2)
440
- }), /* @__PURE__ */ React.createElement(Plot, _ref6.cn("Plot", {
442
+ }), /* @__PURE__ */ React.createElement(Plot, _ref7.cn("Plot", {
441
443
  "ref": this.plotRef,
442
444
  "data": data,
443
445
  "scale": [this.xScale, this.yScale],
@@ -448,10 +450,10 @@ class CigaretteChartComponent extends AbstractChart {
448
450
  "a11yAltTextConfig": a11yAltTextConfig,
449
451
  "onMouseMove": this.onPlotMouseMove,
450
452
  "onMouseLeave": this.onPlotMouseLeave
451
- }), this.renderTooltip(), this.renderChart()), /* @__PURE__ */ React.createElement(Flex, _ref6.cn("Flex", {
453
+ }), this.renderTooltip(), this.renderChart()), /* @__PURE__ */ React.createElement(Flex, _ref7.cn("Flex", {
452
454
  "direction": "column",
453
455
  "gap": 2
454
- }), header && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Box, _ref6.cn("Box", {}), header), /* @__PURE__ */ React.createElement(Divider, _ref6.cn("Divider", {}))), this.renderLegend()));
456
+ }), header && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Box, _ref7.cn("Box", {}), header), /* @__PURE__ */ React.createElement(Divider, _ref7.cn("Divider", {}))), this.renderLegend()));
455
457
  }
456
458
  getLegendAriaLabel() {
457
459
  return this.asProps.getI18nText("legendForChart", {
@@ -506,7 +508,8 @@ _defineProperty(CigaretteChartComponent, "defaultProps", (props) => {
506
508
  plotHeight: invertAxis && !props.plotHeight ? 28 : props.plotHeight,
507
509
  showPercentValueInTooltip: false,
508
510
  minimalBarWidth: DEFAULT_MINIMAL_BAR_WIDTH,
509
- direction: invertAxis ? "column" : "row"
511
+ direction: invertAxis ? "column" : "row",
512
+ locale: "en"
510
513
  };
511
514
  });
512
515
  _defineProperty(CigaretteChartComponent, "enhance", [resolveColorEnhance(), uniqueIDEnhancement(), i18nEnhance(localizedMessages)]);
@@ -89,7 +89,8 @@ _defineProperty(CompactHorizontalBarChartComponent, "defaultProps", {
89
89
  showXAxis: false,
90
90
  showYAxis: false,
91
91
  showTooltip: true,
92
- showLegend: false
92
+ showLegend: false,
93
+ locale: "en"
93
94
  });
94
95
  _defineProperty(CompactHorizontalBarChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
95
96
  const CompactHorizontalBarChart = createComponent(CompactHorizontalBarChartComponent);
@@ -42,7 +42,7 @@ class DonutChartComponent extends AbstractChart {
42
42
  } = this.asProps;
43
43
  const {
44
44
  dataDefinitions,
45
- highlightedLine
45
+ highlightedItem
46
46
  } = this.state;
47
47
  const checkedLegendItems = dataDefinitions.filter((item) => item.checked);
48
48
  return /* @__PURE__ */ React.createElement(Donut, {
@@ -55,7 +55,7 @@ class DonutChartComponent extends AbstractChart {
55
55
  dataKey: item.id,
56
56
  name: item.label,
57
57
  color: item.color,
58
- active: highlightedLine === index
58
+ active: highlightedItem === index
59
59
  });
60
60
  }), innerLabel && /* @__PURE__ */ React.createElement(Donut.Label, null, innerLabel));
61
61
  }
@@ -71,7 +71,7 @@ class DonutChartComponent extends AbstractChart {
71
71
  }) => {
72
72
  const title = dataDefinitions.find((item) => item.id === dataKey);
73
73
  return {
74
- children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Donut.Tooltip.Title, null, title?.label || dataKey), /* @__PURE__ */ React.createElement(Flex, {
74
+ children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Donut.Tooltip.Title, null, this.tooltipTitleFormatter(title?.label || dataKey)), /* @__PURE__ */ React.createElement(Flex, {
75
75
  justifyContent: "space-between"
76
76
  }, /* @__PURE__ */ React.createElement(Text, {
77
77
  bold: true
@@ -91,7 +91,8 @@ _defineProperty(DonutChartComponent, "defaultProps", {
91
91
  alignItems: "flex-start",
92
92
  innerRadius: 100,
93
93
  marginX: 0,
94
- marginY: 0
94
+ marginY: 0,
95
+ locale: "en"
95
96
  });
96
97
  _defineProperty(DonutChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
97
98
  const DonutChart = createComponent(DonutChartComponent);
@@ -82,7 +82,7 @@ class HistogramChartComponent extends AbstractChart {
82
82
  } = this.asProps;
83
83
  const {
84
84
  dataDefinitions,
85
- highlightedLine
85
+ highlightedItem
86
86
  } = this.state;
87
87
  if (this.isStack) {
88
88
  return /* @__PURE__ */ React.createElement(StackBar, {
@@ -92,7 +92,7 @@ class HistogramChartComponent extends AbstractChart {
92
92
  const BarComponent = invertAxis ? StackBar.HorizontalBar : StackBar.Bar;
93
93
  const commonBarComponentProps = {
94
94
  color: item2.color,
95
- transparent: highlightedLine !== -1 && highlightedLine !== index
95
+ transparent: highlightedItem !== -1 && highlightedItem !== index
96
96
  };
97
97
  if (invertAxis) {
98
98
  commonBarComponentProps.x = item2.id;
@@ -131,7 +131,8 @@ class HistogramChartComponent extends AbstractChart {
131
131
  return {
132
132
  children: this.getTooltipChildren({
133
133
  Tooltip: HoverRect.Tooltip,
134
- dataItem
134
+ dataItem,
135
+ index
135
136
  })
136
137
  };
137
138
  });
@@ -148,7 +149,8 @@ _defineProperty(HistogramChartComponent, "defaultProps", {
148
149
  direction: "column",
149
150
  showXAxis: true,
150
151
  showYAxis: true,
151
- showTooltip: true
152
+ showTooltip: true,
153
+ locale: "en"
152
154
  });
153
155
  const HistogramChart = createComponent(HistogramChartComponent);
154
156
  export {
@@ -34,7 +34,7 @@ class LineChartComponent extends AbstractChart {
34
34
  get yScale() {
35
35
  const {
36
36
  yScale,
37
- marginX = 30
37
+ marginX = 32
38
38
  } = this.asProps;
39
39
  const {
40
40
  plotHeight
@@ -58,7 +58,7 @@ class LineChartComponent extends AbstractChart {
58
58
  } = this.asProps;
59
59
  const {
60
60
  dataDefinitions,
61
- highlightedLine
61
+ highlightedItem
62
62
  } = this.state;
63
63
  return dataDefinitions.map((item, index) => {
64
64
  return item.checked && /* @__PURE__ */ React.createElement(Line, {
@@ -66,11 +66,11 @@ class LineChartComponent extends AbstractChart {
66
66
  y: item.id,
67
67
  key: item.id,
68
68
  color: item.color,
69
- transparent: highlightedLine !== -1 && highlightedLine !== index,
69
+ transparent: highlightedItem !== -1 && highlightedItem !== index,
70
70
  curve,
71
71
  onClick: onClickLine
72
- }, showDots && /* @__PURE__ */ React.createElement(Line.Dots, {
73
- display: true
72
+ }, /* @__PURE__ */ React.createElement(Line.Dots, {
73
+ display: showDots
74
74
  }), area?.[item.id] && /* @__PURE__ */ React.createElement(Line.Area, {
75
75
  area: area[item.id],
76
76
  y0: "y0",
@@ -94,7 +94,8 @@ class LineChartComponent extends AbstractChart {
94
94
  return {
95
95
  children: this.getTooltipChildren({
96
96
  Tooltip: HoverLine.Tooltip,
97
- dataItem
97
+ dataItem,
98
+ index: xIndex
98
99
  })
99
100
  };
100
101
  });
@@ -111,7 +112,8 @@ _defineProperty(LineChartComponent, "defaultProps", {
111
112
  direction: "column",
112
113
  showXAxis: true,
113
114
  showYAxis: true,
114
- showTooltip: true
115
+ showTooltip: true,
116
+ locale: "en"
115
117
  });
116
118
  const LineChart = createComponent(LineChartComponent);
117
119
  export {
@@ -50,7 +50,7 @@ class RadarChartComponent extends AbstractChart {
50
50
  index
51
51
  }) => {
52
52
  return {
53
- children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Radar.Tooltip.Title, null, data[groupKey]?.[index]), dataDefinitions.map((item) => {
53
+ children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Radar.Tooltip.Title, null, this.tooltipTitleFormatter(data[groupKey]?.[index])), dataDefinitions.map((item) => {
54
54
  const value = data[item.id]?.[index];
55
55
  return item.checked && /* @__PURE__ */ React.createElement(Radar.Tooltip.Dot, {
56
56
  color: item.color,
@@ -93,7 +93,8 @@ _defineProperty(RadarChartComponent, "defaultProps", {
93
93
  direction: "column",
94
94
  showXAxis: true,
95
95
  showYAxis: true,
96
- showTooltip: true
96
+ showTooltip: true,
97
+ locale: "en"
97
98
  });
98
99
  const RadarChart = createComponent(RadarChartComponent);
99
100
  export {
@@ -1,5 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { createComponent } from "@semcore/core";
2
+ import { Box } from "@semcore/base-components";
3
+ import { sstyled, createComponent } from "@semcore/core";
3
4
  import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
4
5
  import { Text } from "@semcore/typography";
5
6
  import { scaleTime, scaleLinear } from "d3-scale";
@@ -114,14 +115,29 @@ class ScatterPlotChartComponent extends AbstractChart {
114
115
  x,
115
116
  y
116
117
  }) => {
118
+ var _ref;
119
+ const {
120
+ styles
121
+ } = this.asProps;
122
+ const STooltipChildrenWrapper = Box;
117
123
  return {
118
- children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ScatterPlot.Tooltip.Dot, {
124
+ children: (_ref = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ScatterPlot.Tooltip.Dot, {
119
125
  color: item.color
120
- }, "Data"), /* @__PURE__ */ React.createElement(Text, {
121
- tag: "div"
122
- }, "X axis", this.tooltipValueFormatter(data[index][x])), /* @__PURE__ */ React.createElement(Text, {
123
- tag: "div"
124
- }, "Y axis", this.tooltipValueFormatter(data[index][y])))
126
+ }, "Data"), /* @__PURE__ */ React.createElement(
127
+ STooltipChildrenWrapper,
128
+ _ref.cn("STooltipChildrenWrapper", {
129
+ "columnsCount": 2,
130
+ "mt": 2
131
+ }),
132
+ /* @__PURE__ */ React.createElement(Text, _ref.cn("Text", {}), "X axis"),
133
+ /* @__PURE__ */ React.createElement(Text, _ref.cn("Text", {
134
+ "textAlign": "end"
135
+ }), this.tooltipValueFormatter(data[index][x])),
136
+ /* @__PURE__ */ React.createElement(Text, _ref.cn("Text", {}), "Y axis"),
137
+ /* @__PURE__ */ React.createElement(Text, _ref.cn("Text", {
138
+ "textAlign": "end"
139
+ }), this.tooltipValueFormatter(data[index][y]))
140
+ )))
125
141
  };
126
142
  });
127
143
  });
@@ -138,7 +154,8 @@ _defineProperty(ScatterPlotChartComponent, "defaultProps", {
138
154
  showXAxis: true,
139
155
  showYAxis: true,
140
156
  showTooltip: true,
141
- showLegend: false
157
+ showLegend: false,
158
+ locale: "en"
142
159
  });
143
160
  _defineProperty(ScatterPlotChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
144
161
  const ScatterPlotChart = createComponent(ScatterPlotChartComponent);
@@ -49,7 +49,7 @@ class VennChartComponent extends AbstractChart {
49
49
  } = this.asProps;
50
50
  const {
51
51
  dataDefinitions,
52
- highlightedLine
52
+ highlightedItem
53
53
  } = this.state;
54
54
  const checkedLegendItems = dataDefinitions.filter((item) => item.checked);
55
55
  const checkedLegendItemsMap = checkedLegendItems.reduce((result, item) => {
@@ -71,7 +71,7 @@ class VennChartComponent extends AbstractChart {
71
71
  dataKey: item.id,
72
72
  name: item.label,
73
73
  color: item.color,
74
- transparent: highlightedLine !== -1 && highlightedLine !== index
74
+ transparent: highlightedItem !== -1 && highlightedItem !== index
75
75
  });
76
76
  }), intersections.map((intersectionKey) => {
77
77
  const intersectionKeys = intersectionKey.split("/");
@@ -98,9 +98,9 @@ class VennChartComponent extends AbstractChart {
98
98
  data
99
99
  }) => {
100
100
  return {
101
- children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Venn.Tooltip.Title, null, name), /* @__PURE__ */ React.createElement(Text, {
101
+ children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Venn.Tooltip.Title, null, this.tooltipTitleFormatter(name)), /* @__PURE__ */ React.createElement(Text, {
102
102
  bold: true
103
- }, data[dataKey]))
103
+ }, this.tooltipValueFormatter(data[dataKey])))
104
104
  };
105
105
  });
106
106
  }
@@ -115,7 +115,8 @@ _defineProperty(VennChartComponent, "defaultProps", {
115
115
  direction: "row-reverse",
116
116
  alignItems: "flex-start",
117
117
  marginY: 0,
118
- marginX: 0
118
+ marginX: 0,
119
+ locale: "en"
119
120
  });
120
121
  _defineProperty(VennChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
121
122
  const VennChart = createComponent(VennChartComponent);
@@ -62,7 +62,8 @@ class BaseLegend extends Component {
62
62
  const {
63
63
  shape = "Checkbox",
64
64
  size = "m",
65
- patterns
65
+ patterns,
66
+ highlightedItem
66
67
  } = this.asProps;
67
68
  const line = this.getItem(index);
68
69
  return {
@@ -78,7 +79,8 @@ class BaseLegend extends Component {
78
79
  gridRowStart: `${index + 1}`,
79
80
  gridRowEnd: `${index + 2}`
80
81
  },
81
- patterns
82
+ patterns,
83
+ transparent: highlightedItem !== void 0 && highlightedItem !== -1 && highlightedItem !== index
82
84
  };
83
85
  }
84
86
  }
@@ -13,14 +13,14 @@ const style = (
13
13
  /*__reshadow_css_start__*/
14
14
  (sstyled.insert(
15
15
  /*__inner_css_start__*/
16
- ".___SLegendFlex_1s327_gg_._direction_row_1s327_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1s327_gg_._direction_column_1s327_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
16
+ ".___SLegendFlex_er9v1_gg_._direction_row_er9v1_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:var(--intergalactic-spacing-content-gap-large,8px) var(--intergalactic-spacing-content-gap-xxlarge,16px)}.___SLegendFlex_er9v1_gg_._direction_column_er9v1_gg_{align-items:flex-start;flex-wrap:wrap;gap:var(--intergalactic-spacing-content-gap-large,8px)}",
17
17
  /*__inner_css_end__*/
18
- "1s327_gg_"
18
+ "er9v1_gg_"
19
19
  ), /*__reshadow_css_end__*/
20
20
  {
21
- "__SLegendFlex": "___SLegendFlex_1s327_gg_",
22
- "_direction_row": "_direction_row_1s327_gg_",
23
- "_direction_column": "_direction_column_1s327_gg_"
21
+ "__SLegendFlex": "___SLegendFlex_er9v1_gg_",
22
+ "_direction_row": "_direction_row_er9v1_gg_",
23
+ "_direction_column": "_direction_column_er9v1_gg_"
24
24
  })
25
25
  );
26
26
  class LegendFlexRoot extends BaseLegend {
@@ -2,11 +2,11 @@ SLegendFlex[direction='row'] {
2
2
  align-items: flex-start;
3
3
  align-content: flex-start;
4
4
  flex-wrap: wrap;
5
- gap: 8px 16px;
5
+ gap: var(--intergalactic-spacing-content-gap-large, 8px) var(--intergalactic-spacing-content-gap-xxlarge, 16px);
6
6
  }
7
7
 
8
8
  SLegendFlex[direction='column'] {
9
9
  align-items: flex-start;
10
10
  flex-wrap: wrap;
11
- gap: 8px;
11
+ gap: var(--intergalactic-spacing-content-gap-large, 8px);
12
12
  }
@@ -14,27 +14,26 @@ const style = (
14
14
  /*__reshadow_css_start__*/
15
15
  (sstyled.insert(
16
16
  /*__inner_css_start__*/
17
- '.___SLegendItem_de4s5_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_de4s5_gg_:hover{cursor:pointer}.___SLegendItem_de4s5_gg_.__disabled_de4s5_gg_:hover{cursor:default}}.___SPointShape_de4s5_gg_.__color_de4s5_gg_{background-color:var(--color_de4s5);margin-right:8px;flex-shrink:0}.___SPointShape_de4s5_gg_._shape_Circle_de4s5_gg_._size_l_de4s5_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_de4s5_gg_._shape_Circle_de4s5_gg_._size_m_de4s5_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_de4s5_gg_._shape_Line_de4s5_gg_._size_l_de4s5_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_de4s5_gg_._shape_Line_de4s5_gg_._size_m_de4s5_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_de4s5_gg_._shape_Square_de4s5_gg_._size_l_de4s5_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_de4s5_gg_._shape_Square_de4s5_gg_._size_m_de4s5_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_de4s5_gg_._shape_Pattern_de4s5_gg_{background-color:initial;margin-right:4px}.___SIcon_de4s5_gg_{line-height:0;margin-right:4px}.___SIcon_de4s5_gg_._size_l_de4s5_gg_{margin-top:4px}.___SIcon_de4s5_gg_._size_m_de4s5_gg_{margin-top:2px}.___SLabel_de4s5_gg_{min-width:0}.___SAdditionalLabel_de4s5_gg_._size_l_de4s5_gg_,.___SCount_de4s5_gg_._size_l_de4s5_gg_,.___SLabel_de4s5_gg_._size_l_de4s5_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,150%)}.___SAdditionalLabel_de4s5_gg_._size_m_de4s5_gg_,.___SCount_de4s5_gg_._size_m_de4s5_gg_,.___SLabel_de4s5_gg_._size_m_de4s5_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,142%)}.___SAdditionalLabel_de4s5_gg_,.___SCount_de4s5_gg_{margin-left:4px}.___SAdditionalLabel_de4s5_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_de4s5_gg_:before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary,#00030095);height:4px;width:4px;border-radius:2px;margin-right:4px}@media (color-gamut:p3){.___SAdditionalLabel_de4s5_gg_:before{background-color:var(--intergalactic-text-secondary,oklch(.088 .026 147.7/.583))}}.___SAdditionalLabel_de4s5_gg_._size_l_de4s5_gg_:before{margin-top:10px}.___SAdditionalLabel_de4s5_gg_._size_m_de4s5_gg_:before{margin-top:8px}.___SPatternSymbol_de4s5_gg_{transform:scale(.8)}',
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)}',
18
18
  /*__inner_css_end__*/
19
- "de4s5_gg_"
19
+ "1g89n_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
22
- "__SLegendItem": "___SLegendItem_de4s5_gg_",
23
- "_disabled": "__disabled_de4s5_gg_",
24
- "__SPointShape": "___SPointShape_de4s5_gg_",
25
- "_color": "__color_de4s5_gg_",
26
- "--color": "--color_de4s5",
27
- "_shape_Circle": "_shape_Circle_de4s5_gg_",
28
- "_size_l": "_size_l_de4s5_gg_",
29
- "_size_m": "_size_m_de4s5_gg_",
30
- "_shape_Line": "_shape_Line_de4s5_gg_",
31
- "_shape_Square": "_shape_Square_de4s5_gg_",
32
- "_shape_Pattern": "_shape_Pattern_de4s5_gg_",
33
- "__SIcon": "___SIcon_de4s5_gg_",
34
- "__SLabel": "___SLabel_de4s5_gg_",
35
- "__SAdditionalLabel": "___SAdditionalLabel_de4s5_gg_",
36
- "__SCount": "___SCount_de4s5_gg_",
37
- "__SPatternSymbol": "___SPatternSymbol_de4s5_gg_"
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_"
38
37
  })
39
38
  );
40
39
  const enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
@@ -86,7 +85,11 @@ class LegendItemRoot extends Component {
86
85
  };
87
86
  }
88
87
  getIconProps() {
89
- const props = this.asProps;
88
+ const {
89
+ onMouseEnter,
90
+ onMouseLeave,
91
+ ...props
92
+ } = this.asProps;
90
93
  return {
91
94
  ...props,
92
95
  children: props.icon,
@@ -104,6 +107,8 @@ class LegendItemRoot extends Component {
104
107
  color: _color,
105
108
  onChangeLegendItem,
106
109
  shape: _shape,
110
+ onMouseEnter,
111
+ onMouseLeave,
107
112
  ...props
108
113
  } = this.asProps;
109
114
  return {
@@ -1,4 +1,4 @@
1
- const StaticShapes = ["Circle", "Line", "Square", "Pattern"];
1
+ const StaticShapes = ["Circle", "Pattern"];
2
2
  ;
3
3
  ;
4
4
  ;