@semcore/d3-chart 3.61.0-prerelease.4 → 3.61.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 (555) hide show
  1. package/lib/cjs/AnimatedClipPath.js +11 -15
  2. package/lib/cjs/AnimatedClipPath.js.map +1 -1
  3. package/lib/cjs/Area.js +71 -48
  4. package/lib/cjs/Area.js.map +1 -1
  5. package/lib/cjs/Axis.js +170 -108
  6. package/lib/cjs/Axis.js.map +1 -1
  7. package/lib/cjs/Bar.js +29 -34
  8. package/lib/cjs/Bar.js.map +1 -1
  9. package/lib/cjs/Bubble.js +211 -137
  10. package/lib/cjs/Bubble.js.map +1 -1
  11. package/lib/cjs/CompactHorizontalBar.js +92 -82
  12. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  13. package/lib/cjs/Donut.js +154 -139
  14. package/lib/cjs/Donut.js.map +1 -1
  15. package/lib/cjs/Dots.js +55 -38
  16. package/lib/cjs/Dots.js.map +1 -1
  17. package/lib/cjs/GroupBar.js +15 -18
  18. package/lib/cjs/GroupBar.js.map +1 -1
  19. package/lib/cjs/HorizontalBar.js +29 -34
  20. package/lib/cjs/HorizontalBar.js.map +1 -1
  21. package/lib/cjs/Hover.js +52 -45
  22. package/lib/cjs/Hover.js.map +1 -1
  23. package/lib/cjs/Line.js +63 -41
  24. package/lib/cjs/Line.js.map +1 -1
  25. package/lib/cjs/Pattern.js +16 -12
  26. package/lib/cjs/Pattern.js.map +1 -1
  27. package/lib/cjs/Plot.js +29 -36
  28. package/lib/cjs/Plot.js.map +1 -1
  29. package/lib/cjs/Radar.js +281 -261
  30. package/lib/cjs/Radar.js.map +1 -1
  31. package/lib/cjs/RadialTree.js +169 -154
  32. package/lib/cjs/RadialTree.js.map +1 -1
  33. package/lib/cjs/Reference.js +45 -51
  34. package/lib/cjs/Reference.js.map +1 -1
  35. package/lib/cjs/ResponsiveContainer.js +20 -25
  36. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  37. package/lib/cjs/ScatterPlot.js +71 -61
  38. package/lib/cjs/ScatterPlot.js.map +1 -1
  39. package/lib/cjs/StackBar.js +20 -31
  40. package/lib/cjs/StackBar.js.map +1 -1
  41. package/lib/cjs/StackedArea.js +12 -16
  42. package/lib/cjs/StackedArea.js.map +1 -1
  43. package/lib/cjs/Tooltip.js +73 -73
  44. package/lib/cjs/Tooltip.js.map +1 -1
  45. package/lib/cjs/Venn.js +77 -52
  46. package/lib/cjs/Venn.js.map +1 -1
  47. package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
  48. package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
  49. package/lib/cjs/a11y/PlotA11yModule.js +43 -86
  50. package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
  51. package/lib/cjs/a11y/PlotA11yView.js +44 -19
  52. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  53. package/lib/cjs/a11y/bezier.js +1 -2
  54. package/lib/cjs/a11y/bezier.js.map +1 -1
  55. package/lib/cjs/a11y/focus.js +5 -6
  56. package/lib/cjs/a11y/focus.js.map +1 -1
  57. package/lib/cjs/a11y/hints.js +6 -9
  58. package/lib/cjs/a11y/hints.js.map +1 -1
  59. package/lib/cjs/a11y/insights.js +63 -64
  60. package/lib/cjs/a11y/insights.js.map +1 -1
  61. package/lib/cjs/a11y/intl.js +1 -2
  62. package/lib/cjs/a11y/intl.js.map +1 -1
  63. package/lib/cjs/a11y/locale.js +5 -5
  64. package/lib/cjs/a11y/locale.js.map +1 -1
  65. package/lib/cjs/a11y/serialize.js +15 -17
  66. package/lib/cjs/a11y/serialize.js.map +1 -1
  67. package/lib/cjs/a11y/summarize.js +1 -2
  68. package/lib/cjs/a11y/summarize.js.map +1 -1
  69. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
  70. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  71. package/lib/cjs/a11y/translations/module/de.json +2 -2
  72. package/lib/cjs/a11y/translations/module/en.json +2 -2
  73. package/lib/cjs/a11y/translations/module/es.json +2 -2
  74. package/lib/cjs/a11y/translations/module/fr.json +2 -2
  75. package/lib/cjs/a11y/translations/module/it.json +2 -2
  76. package/lib/cjs/a11y/translations/module/ja.json +2 -2
  77. package/lib/cjs/a11y/translations/module/ko.json +2 -2
  78. package/lib/cjs/a11y/translations/module/nl.json +2 -2
  79. package/lib/cjs/a11y/translations/module/pl.json +2 -2
  80. package/lib/cjs/a11y/translations/module/pt.json +2 -2
  81. package/lib/cjs/a11y/translations/module/sv.json +2 -2
  82. package/lib/cjs/a11y/translations/module/tr.json +2 -2
  83. package/lib/cjs/a11y/translations/module/vi.json +2 -2
  84. package/lib/cjs/a11y/translations/module/zh.json +2 -2
  85. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
  86. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  87. package/lib/cjs/color.js +2 -3
  88. package/lib/cjs/color.js.map +1 -1
  89. package/lib/cjs/component/Chart/AbstractChart.js +157 -83
  90. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  91. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  92. package/lib/cjs/component/Chart/AreaChart.js +24 -51
  93. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  94. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  95. package/lib/cjs/component/Chart/BarChart.js +85 -69
  96. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  97. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  98. package/lib/cjs/component/Chart/BubbleChart.js +31 -27
  99. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  100. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  101. package/lib/cjs/component/Chart/CigaretteChart.js +340 -147
  102. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  103. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  104. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +11 -15
  105. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  106. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  107. package/lib/cjs/component/Chart/DonutChart.js +16 -22
  108. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  109. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  110. package/lib/cjs/component/Chart/HistogramChart.js +16 -44
  111. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  112. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  113. package/lib/cjs/component/Chart/LineChart.js +22 -48
  114. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  115. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  116. package/lib/cjs/component/Chart/RadarChart.js +15 -19
  117. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  118. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  119. package/lib/cjs/component/Chart/ScatterPlotChart.js +16 -21
  120. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  121. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  122. package/lib/cjs/component/Chart/VennChart.js +16 -19
  123. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  124. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  125. package/lib/cjs/component/Chart/index.js +7 -8
  126. package/lib/cjs/component/Chart/index.js.map +1 -1
  127. package/lib/cjs/component/ChartLegend/BaseLegend.js +45 -23
  128. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  129. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  130. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +19 -24
  131. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  132. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  133. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +108 -83
  134. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  135. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
  136. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  137. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -23
  138. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  139. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  140. package/lib/cjs/component/ChartLegend/index.js +1 -2
  141. package/lib/cjs/component/ChartLegend/index.js.map +1 -1
  142. package/lib/cjs/component/Cigarette/Cigarette.js +16 -20
  143. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  144. package/lib/cjs/component/StackGroupBar/StackGroupBar.js +19 -24
  145. package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
  146. package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  147. package/lib/cjs/component/SvgElement.js +21 -0
  148. package/lib/cjs/component/SvgElement.js.map +1 -0
  149. package/lib/cjs/createElement.d.js.map +1 -1
  150. package/lib/cjs/createElement.js +10 -12
  151. package/lib/cjs/createElement.js.map +1 -1
  152. package/lib/cjs/index.js +9 -2
  153. package/lib/cjs/index.js.map +1 -1
  154. package/lib/cjs/style/abstract-chart.shadow.css +12 -0
  155. package/lib/cjs/style/axis.shadow.css +39 -1
  156. package/lib/cjs/style/bubble.shadow.css +8 -0
  157. package/lib/cjs/style/hover.shadow.css +2 -2
  158. package/lib/cjs/style/plot.shadow.css +8 -6
  159. package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
  160. package/lib/cjs/style/plotA11yView.shadow.css +13 -26
  161. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  162. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  163. package/lib/cjs/translations/de.json +1 -0
  164. package/lib/cjs/translations/es.json +1 -0
  165. package/lib/cjs/translations/fr.json +1 -0
  166. package/lib/cjs/translations/it.json +1 -0
  167. package/lib/cjs/translations/ja.json +1 -0
  168. package/lib/cjs/translations/ko.json +1 -0
  169. package/lib/cjs/translations/nl.json +1 -0
  170. package/lib/cjs/translations/pl.json +1 -0
  171. package/lib/cjs/translations/pt.json +1 -0
  172. package/lib/cjs/translations/sv.json +1 -0
  173. package/lib/cjs/translations/tr.json +2 -1
  174. package/lib/cjs/translations/vi.json +1 -0
  175. package/lib/cjs/translations/zh.json +1 -0
  176. package/lib/cjs/types/Area.d.js.map +1 -1
  177. package/lib/cjs/types/Axis.d.js.map +1 -1
  178. package/lib/cjs/types/Bar.d.js.map +1 -1
  179. package/lib/cjs/types/Bubble.d.js.map +1 -1
  180. package/lib/cjs/types/ClipPath.d.js.map +1 -1
  181. package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
  182. package/lib/cjs/types/Donut.d.js.map +1 -1
  183. package/lib/cjs/types/GroupBar.d.js.map +1 -1
  184. package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
  185. package/lib/cjs/types/Hover.d.js.map +1 -1
  186. package/lib/cjs/types/Line.d.js.map +1 -1
  187. package/lib/cjs/types/Plot.d.js.map +1 -1
  188. package/lib/cjs/types/Radar.d.js.map +1 -1
  189. package/lib/cjs/types/Reference.d.js.map +1 -1
  190. package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
  191. package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
  192. package/lib/cjs/types/StackBar.d.js.map +1 -1
  193. package/lib/cjs/types/StackedArea.d.js.map +1 -1
  194. package/lib/cjs/types/Tooltip.d.js.map +1 -1
  195. package/lib/cjs/types/Venn.d.js.map +1 -1
  196. package/lib/cjs/types/context.d.js.map +1 -1
  197. package/lib/cjs/types/index.d.js +14 -2
  198. package/lib/cjs/types/index.d.js.map +1 -1
  199. package/lib/cjs/utils.js +36 -55
  200. package/lib/cjs/utils.js.map +1 -1
  201. package/lib/es6/AnimatedClipPath.js +9 -11
  202. package/lib/es6/AnimatedClipPath.js.map +1 -1
  203. package/lib/es6/Area.js +70 -45
  204. package/lib/es6/Area.js.map +1 -1
  205. package/lib/es6/Axis.js +168 -104
  206. package/lib/es6/Axis.js.map +1 -1
  207. package/lib/es6/Bar.js +27 -29
  208. package/lib/es6/Bar.js.map +1 -1
  209. package/lib/es6/Bubble.js +211 -135
  210. package/lib/es6/Bubble.js.map +1 -1
  211. package/lib/es6/CompactHorizontalBar.js +89 -77
  212. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  213. package/lib/es6/Donut.js +154 -137
  214. package/lib/es6/Donut.js.map +1 -1
  215. package/lib/es6/Dots.js +55 -36
  216. package/lib/es6/Dots.js.map +1 -1
  217. package/lib/es6/GroupBar.js +13 -15
  218. package/lib/es6/GroupBar.js.map +1 -1
  219. package/lib/es6/HorizontalBar.js +27 -29
  220. package/lib/es6/HorizontalBar.js.map +1 -1
  221. package/lib/es6/Hover.js +51 -41
  222. package/lib/es6/Hover.js.map +1 -1
  223. package/lib/es6/Line.js +61 -37
  224. package/lib/es6/Line.js.map +1 -1
  225. package/lib/es6/Pattern.js +7 -3
  226. package/lib/es6/Pattern.js.map +1 -1
  227. package/lib/es6/Plot.js +28 -32
  228. package/lib/es6/Plot.js.map +1 -1
  229. package/lib/es6/Radar.js +279 -257
  230. package/lib/es6/Radar.js.map +1 -1
  231. package/lib/es6/RadialTree.js +168 -151
  232. package/lib/es6/RadialTree.js.map +1 -1
  233. package/lib/es6/Reference.js +43 -45
  234. package/lib/es6/Reference.js.map +1 -1
  235. package/lib/es6/ResponsiveContainer.js +16 -19
  236. package/lib/es6/ResponsiveContainer.js.map +1 -1
  237. package/lib/es6/ScatterPlot.js +71 -59
  238. package/lib/es6/ScatterPlot.js.map +1 -1
  239. package/lib/es6/StackBar.js +17 -27
  240. package/lib/es6/StackBar.js.map +1 -1
  241. package/lib/es6/StackedArea.js +10 -13
  242. package/lib/es6/StackedArea.js.map +1 -1
  243. package/lib/es6/Tooltip.js +68 -65
  244. package/lib/es6/Tooltip.js.map +1 -1
  245. package/lib/es6/Venn.js +75 -48
  246. package/lib/es6/Venn.js.map +1 -1
  247. package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
  248. package/lib/es6/a11y/PlotA11yModule.js +43 -86
  249. package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
  250. package/lib/es6/a11y/PlotA11yView.js +43 -16
  251. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  252. package/lib/es6/a11y/bezier.js.map +1 -1
  253. package/lib/es6/a11y/focus.js +4 -4
  254. package/lib/es6/a11y/focus.js.map +1 -1
  255. package/lib/es6/a11y/hints.js +2 -2
  256. package/lib/es6/a11y/hints.js.map +1 -1
  257. package/lib/es6/a11y/insights.js +61 -61
  258. package/lib/es6/a11y/insights.js.map +1 -1
  259. package/lib/es6/a11y/intl.js.map +1 -1
  260. package/lib/es6/a11y/locale.js +3 -2
  261. package/lib/es6/a11y/locale.js.map +1 -1
  262. package/lib/es6/a11y/serialize.js +14 -13
  263. package/lib/es6/a11y/serialize.js.map +1 -1
  264. package/lib/es6/a11y/summarize.js.map +1 -1
  265. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
  266. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  267. package/lib/es6/a11y/translations/module/de.json +2 -2
  268. package/lib/es6/a11y/translations/module/en.json +2 -2
  269. package/lib/es6/a11y/translations/module/es.json +2 -2
  270. package/lib/es6/a11y/translations/module/fr.json +2 -2
  271. package/lib/es6/a11y/translations/module/it.json +2 -2
  272. package/lib/es6/a11y/translations/module/ja.json +2 -2
  273. package/lib/es6/a11y/translations/module/ko.json +2 -2
  274. package/lib/es6/a11y/translations/module/nl.json +2 -2
  275. package/lib/es6/a11y/translations/module/pl.json +2 -2
  276. package/lib/es6/a11y/translations/module/pt.json +2 -2
  277. package/lib/es6/a11y/translations/module/sv.json +2 -2
  278. package/lib/es6/a11y/translations/module/tr.json +2 -2
  279. package/lib/es6/a11y/translations/module/vi.json +2 -2
  280. package/lib/es6/a11y/translations/module/zh.json +2 -2
  281. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
  282. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  283. package/lib/es6/color.js +1 -1
  284. package/lib/es6/color.js.map +1 -1
  285. package/lib/es6/component/Chart/AbstractChart.js +159 -80
  286. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  287. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  288. package/lib/es6/component/Chart/AreaChart.js +23 -48
  289. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  290. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  291. package/lib/es6/component/Chart/BarChart.js +84 -67
  292. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  293. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  294. package/lib/es6/component/Chart/BubbleChart.js +30 -24
  295. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  296. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  297. package/lib/es6/component/Chart/CigaretteChart.js +341 -144
  298. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  299. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  300. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +9 -12
  301. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  302. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  303. package/lib/es6/component/Chart/DonutChart.js +14 -18
  304. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  305. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  306. package/lib/es6/component/Chart/HistogramChart.js +15 -41
  307. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  308. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  309. package/lib/es6/component/Chart/LineChart.js +20 -45
  310. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  311. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  312. package/lib/es6/component/Chart/RadarChart.js +13 -16
  313. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  314. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  315. package/lib/es6/component/Chart/ScatterPlotChart.js +15 -18
  316. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  317. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  318. package/lib/es6/component/Chart/VennChart.js +14 -16
  319. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  320. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  321. package/lib/es6/component/Chart/index.js +6 -6
  322. package/lib/es6/component/Chart/index.js.map +1 -1
  323. package/lib/es6/component/ChartLegend/BaseLegend.js +43 -20
  324. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  325. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  326. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +17 -19
  327. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  328. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  329. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +102 -74
  330. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  331. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  332. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +15 -17
  333. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  334. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  335. package/lib/es6/component/ChartLegend/index.js.map +1 -1
  336. package/lib/es6/component/Cigarette/Cigarette.js +14 -17
  337. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  338. package/lib/es6/component/StackGroupBar/StackGroupBar.js +17 -21
  339. package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
  340. package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  341. package/lib/es6/component/SvgElement.js +14 -0
  342. package/lib/es6/component/SvgElement.js.map +1 -0
  343. package/lib/es6/createElement.d.js.map +1 -1
  344. package/lib/es6/createElement.js +7 -7
  345. package/lib/es6/createElement.js.map +1 -1
  346. package/lib/es6/index.js +1 -0
  347. package/lib/es6/index.js.map +1 -1
  348. package/lib/es6/style/abstract-chart.shadow.css +12 -0
  349. package/lib/es6/style/axis.shadow.css +39 -1
  350. package/lib/es6/style/bubble.shadow.css +8 -0
  351. package/lib/es6/style/hover.shadow.css +2 -2
  352. package/lib/es6/style/plot.shadow.css +8 -6
  353. package/lib/es6/style/plotA11yModule.shadow.css +10 -11
  354. package/lib/es6/style/plotA11yView.shadow.css +13 -26
  355. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  356. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  357. package/lib/es6/translations/de.json +1 -0
  358. package/lib/es6/translations/es.json +1 -0
  359. package/lib/es6/translations/fr.json +1 -0
  360. package/lib/es6/translations/it.json +1 -0
  361. package/lib/es6/translations/ja.json +1 -0
  362. package/lib/es6/translations/ko.json +1 -0
  363. package/lib/es6/translations/nl.json +1 -0
  364. package/lib/es6/translations/pl.json +1 -0
  365. package/lib/es6/translations/pt.json +1 -0
  366. package/lib/es6/translations/sv.json +1 -0
  367. package/lib/es6/translations/tr.json +2 -1
  368. package/lib/es6/translations/vi.json +1 -0
  369. package/lib/es6/translations/zh.json +1 -0
  370. package/lib/es6/types/Area.d.js.map +1 -1
  371. package/lib/es6/types/Axis.d.js.map +1 -1
  372. package/lib/es6/types/Bar.d.js.map +1 -1
  373. package/lib/es6/types/Bubble.d.js.map +1 -1
  374. package/lib/es6/types/ClipPath.d.js.map +1 -1
  375. package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
  376. package/lib/es6/types/Donut.d.js.map +1 -1
  377. package/lib/es6/types/GroupBar.d.js.map +1 -1
  378. package/lib/es6/types/HorizontalBar.d.js.map +1 -1
  379. package/lib/es6/types/Hover.d.js.map +1 -1
  380. package/lib/es6/types/Line.d.js.map +1 -1
  381. package/lib/es6/types/Plot.d.js.map +1 -1
  382. package/lib/es6/types/Radar.d.js.map +1 -1
  383. package/lib/es6/types/Reference.d.js.map +1 -1
  384. package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
  385. package/lib/es6/types/ScatterPlot.d.js.map +1 -1
  386. package/lib/es6/types/StackBar.d.js.map +1 -1
  387. package/lib/es6/types/StackedArea.d.js.map +1 -1
  388. package/lib/es6/types/Tooltip.d.js.map +1 -1
  389. package/lib/es6/types/Venn.d.js.map +1 -1
  390. package/lib/es6/types/context.d.js.map +1 -1
  391. package/lib/es6/types/index.d.js +2 -0
  392. package/lib/es6/types/index.d.js.map +1 -1
  393. package/lib/es6/utils.js +16 -16
  394. package/lib/es6/utils.js.map +1 -1
  395. package/lib/esm/AnimatedClipPath.mjs +9 -16
  396. package/lib/esm/Area.mjs +51 -36
  397. package/lib/esm/Axis.mjs +143 -86
  398. package/lib/esm/Bar.mjs +31 -34
  399. package/lib/esm/Bubble.mjs +154 -106
  400. package/lib/esm/CompactHorizontalBar.mjs +88 -80
  401. package/lib/esm/Donut.mjs +87 -75
  402. package/lib/esm/Dots.mjs +50 -34
  403. package/lib/esm/GroupBar.mjs +12 -14
  404. package/lib/esm/HorizontalBar.mjs +31 -34
  405. package/lib/esm/Hover.mjs +53 -50
  406. package/lib/esm/Line.mjs +45 -31
  407. package/lib/esm/Pattern.mjs +4 -2
  408. package/lib/esm/Plot.mjs +30 -35
  409. package/lib/esm/Radar.mjs +188 -175
  410. package/lib/esm/RadialTree.mjs +105 -111
  411. package/lib/esm/Reference.mjs +37 -40
  412. package/lib/esm/ResponsiveContainer.mjs +18 -21
  413. package/lib/esm/ScatterPlot.mjs +49 -40
  414. package/lib/esm/StackBar.mjs +18 -28
  415. package/lib/esm/StackedArea.mjs +13 -16
  416. package/lib/esm/Tooltip.mjs +56 -59
  417. package/lib/esm/Venn.mjs +67 -47
  418. package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
  419. package/lib/esm/a11y/PlotA11yModule.mjs +35 -74
  420. package/lib/esm/a11y/PlotA11yView.mjs +41 -17
  421. package/lib/esm/a11y/focus.mjs +4 -4
  422. package/lib/esm/a11y/hints.mjs +2 -2
  423. package/lib/esm/a11y/insights.mjs +76 -76
  424. package/lib/esm/a11y/locale.mjs +2 -2
  425. package/lib/esm/a11y/serialize.mjs +12 -12
  426. package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
  427. package/lib/esm/a11y/translations/module/de.json.mjs +2 -4
  428. package/lib/esm/a11y/translations/module/en.json.mjs +2 -4
  429. package/lib/esm/a11y/translations/module/es.json.mjs +2 -4
  430. package/lib/esm/a11y/translations/module/fr.json.mjs +2 -4
  431. package/lib/esm/a11y/translations/module/it.json.mjs +2 -4
  432. package/lib/esm/a11y/translations/module/ja.json.mjs +2 -4
  433. package/lib/esm/a11y/translations/module/ko.json.mjs +2 -4
  434. package/lib/esm/a11y/translations/module/nl.json.mjs +2 -4
  435. package/lib/esm/a11y/translations/module/pl.json.mjs +2 -4
  436. package/lib/esm/a11y/translations/module/pt.json.mjs +2 -4
  437. package/lib/esm/a11y/translations/module/sv.json.mjs +2 -4
  438. package/lib/esm/a11y/translations/module/tr.json.mjs +2 -4
  439. package/lib/esm/a11y/translations/module/vi.json.mjs +2 -4
  440. package/lib/esm/a11y/translations/module/zh.json.mjs +2 -4
  441. package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
  442. package/lib/esm/component/Chart/AbstractChart.mjs +141 -65
  443. package/lib/esm/component/Chart/AreaChart.mjs +27 -51
  444. package/lib/esm/component/Chart/BarChart.mjs +64 -51
  445. package/lib/esm/component/Chart/BubbleChart.mjs +30 -25
  446. package/lib/esm/component/Chart/CigaretteChart.mjs +298 -119
  447. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +13 -15
  448. package/lib/esm/component/Chart/DonutChart.mjs +16 -19
  449. package/lib/esm/component/Chart/HistogramChart.mjs +22 -46
  450. package/lib/esm/component/Chart/LineChart.mjs +23 -46
  451. package/lib/esm/component/Chart/RadarChart.mjs +16 -18
  452. package/lib/esm/component/Chart/ScatterPlotChart.mjs +18 -21
  453. package/lib/esm/component/Chart/VennChart.mjs +16 -19
  454. package/lib/esm/component/Chart/index.mjs +6 -6
  455. package/lib/esm/component/ChartLegend/BaseLegend.mjs +45 -22
  456. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +19 -22
  457. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +88 -75
  458. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +22 -25
  459. package/lib/esm/component/ChartLegend/index.mjs +2 -0
  460. package/lib/esm/component/Cigarette/Cigarette.mjs +16 -19
  461. package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +18 -22
  462. package/lib/esm/component/SvgElement.mjs +14 -0
  463. package/lib/esm/createElement.mjs +8 -10
  464. package/lib/esm/index.mjs +3 -0
  465. package/lib/esm/style/abstract-chart.shadow.css +12 -0
  466. package/lib/esm/style/axis.shadow.css +39 -1
  467. package/lib/esm/style/bubble.shadow.css +8 -0
  468. package/lib/esm/style/hover.shadow.css +2 -2
  469. package/lib/esm/style/plot.shadow.css +8 -6
  470. package/lib/esm/style/plotA11yModule.shadow.css +10 -11
  471. package/lib/esm/style/plotA11yView.shadow.css +13 -26
  472. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  473. package/lib/esm/translations/es.json.mjs +1 -0
  474. package/lib/esm/translations/fr.json.mjs +1 -0
  475. package/lib/esm/translations/it.json.mjs +1 -0
  476. package/lib/esm/translations/ja.json.mjs +1 -0
  477. package/lib/esm/translations/ko.json.mjs +1 -0
  478. package/lib/esm/translations/nl.json.mjs +1 -0
  479. package/lib/esm/translations/pl.json.mjs +1 -0
  480. package/lib/esm/translations/pt.json.mjs +1 -0
  481. package/lib/esm/translations/sv.json.mjs +1 -0
  482. package/lib/esm/translations/tr.json.mjs +2 -1
  483. package/lib/esm/translations/vi.json.mjs +1 -0
  484. package/lib/esm/translations/zh.json.mjs +1 -0
  485. package/lib/esm/utils.mjs +11 -11
  486. package/lib/types/Area.d.ts +9 -6
  487. package/lib/types/Axis.d.ts +10 -3
  488. package/lib/types/Bar.d.ts +7 -6
  489. package/lib/types/Bubble.d.ts +21 -5
  490. package/lib/types/ClipPath.d.ts +4 -3
  491. package/lib/types/CompactHorizontalBar.d.ts +7 -8
  492. package/lib/types/Donut.d.ts +8 -5
  493. package/lib/types/GroupBar.d.ts +6 -6
  494. package/lib/types/HorizontalBar.d.ts +7 -6
  495. package/lib/types/Hover.d.ts +8 -8
  496. package/lib/types/Line.d.ts +9 -6
  497. package/lib/types/Pattern.d.ts +51 -51
  498. package/lib/types/Plot.d.ts +11 -9
  499. package/lib/types/Radar.d.ts +10 -7
  500. package/lib/types/RadialTree.d.ts +10 -54
  501. package/lib/types/Reference.d.ts +6 -5
  502. package/lib/types/ResponsiveContainer.d.ts +5 -4
  503. package/lib/types/ScatterPlot.d.ts +8 -5
  504. package/lib/types/StackBar.d.ts +7 -6
  505. package/lib/types/StackedArea.d.ts +6 -5
  506. package/lib/types/Tooltip.d.ts +12 -12
  507. package/lib/types/Venn.d.ts +7 -6
  508. package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
  509. package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
  510. package/lib/types/a11y/PlotA11yView.d.ts +13 -2
  511. package/lib/types/a11y/hints.d.ts +5 -5
  512. package/lib/types/a11y/insights.d.ts +1 -1
  513. package/lib/types/a11y/intl.d.ts +1 -1
  514. package/lib/types/a11y/serialize.d.ts +7 -7
  515. package/lib/types/a11y/summarize.d.ts +2 -2
  516. package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
  517. package/lib/types/component/Chart/AbstractChart.d.ts +20 -13
  518. package/lib/types/component/Chart/AbstractChart.type.d.ts +39 -25
  519. package/lib/types/component/Chart/AreaChart.d.ts +1 -1
  520. package/lib/types/component/Chart/AreaChart.type.d.ts +17 -7
  521. package/lib/types/component/Chart/BarChart.d.ts +1 -1
  522. package/lib/types/component/Chart/BarChart.type.d.ts +14 -9
  523. package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
  524. package/lib/types/component/Chart/BubbleChart.type.d.ts +10 -5
  525. package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
  526. package/lib/types/component/Chart/CigaretteChart.type.d.ts +18 -8
  527. package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
  528. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +10 -6
  529. package/lib/types/component/Chart/DonutChart.d.ts +1 -1
  530. package/lib/types/component/Chart/DonutChart.type.d.ts +16 -7
  531. package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
  532. package/lib/types/component/Chart/HistogramChart.type.d.ts +7 -4
  533. package/lib/types/component/Chart/LineChart.d.ts +1 -1
  534. package/lib/types/component/Chart/LineChart.type.d.ts +16 -7
  535. package/lib/types/component/Chart/RadarChart.d.ts +1 -1
  536. package/lib/types/component/Chart/RadarChart.type.d.ts +7 -5
  537. package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
  538. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +12 -6
  539. package/lib/types/component/Chart/VennChart.d.ts +1 -1
  540. package/lib/types/component/Chart/VennChart.type.d.ts +12 -6
  541. package/lib/types/component/ChartLegend/BaseLegend.d.ts +8 -6
  542. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
  543. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
  544. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
  545. package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
  546. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
  547. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
  548. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
  549. package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
  550. package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
  551. package/lib/types/component/SvgElement.d.ts +10 -0
  552. package/lib/types/index.d.ts +3 -1
  553. package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +12 -0
  554. package/lib/types/utils.d.ts +17 -17
  555. package/package.json +10 -10
@@ -2,82 +2,78 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
2
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/esm/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _callSuper from "@babel/runtime/helpers/esm/callSuper";
6
6
  import _inherits from "@babel/runtime/helpers/esm/inherits";
7
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
7
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- import { sstyled } from "@semcore/utils/lib/core/index";
10
- import { assignProps, Component, sstyled as sstyled$1 } from "@semcore/core";
8
+ import { sstyled, assignProps, Component } from "@semcore/core";
9
+ import { Popper, Box } from "@semcore/base-components";
10
+ import findComponent from "@semcore/core/lib/utils/findComponent";
11
+ import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
11
12
  import React from "react";
12
- import Popper from "@semcore/popper";
13
- import { Box } from "@semcore/flex-box";
14
- import findComponent from "@semcore/utils/lib/findComponent";
15
13
  import createElement from "./createElement.mjs";
16
- import { getChartDefaultColorName } from "./utils.mjs";
17
- import { useColorResolver } from "@semcore/utils/lib/use/useColorResolver";
18
14
  import { PatternSymbol } from "./Pattern.mjs";
15
+ import { getChartDefaultColorName } from "./utils.mjs";
19
16
  var _excluded = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"];
20
17
  /*!__reshadow-styles__:"./style/tooltip.shadow.css"*/
21
18
  var style = (
22
19
  /*__reshadow_css_start__*/
23
20
  (sstyled.insert(
24
21
  /*__inner_css_start__*/
25
- ".___STooltip_1mmbh_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255));border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, rgba(0, 21, 16, 0.07));box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));padding:var(--intergalactic-spacing-3x, 12px)}@supports (color:color(display-p3 0 0 0)){.___STooltip_1mmbh_gg_{border:1px solid var(--intergalactic-border-secondary, rgba(0, 21, 16, 0.07));box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___STooltip_1mmbh_gg_{border:1px solid var(--intergalactic-border-secondary, color(display-p3 0.01753 0.08157 0.06372 / 0.07));box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___STitle_1mmbh_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));margin-bottom:var(--intergalactic-spacing-2x, 8px)}@supports (color:color(display-p3 0 0 0)){.___STitle_1mmbh_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_1mmbh_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDotGroup_1mmbh_gg_{display:flex;align-items:center}.___SDot_1mmbh_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1mmbh_gg_.__color_1mmbh_gg_{background-color:var(--color_1mmbh);width:8px;height:8px;border-radius:50%}.___SFooter_1mmbh_gg_{background:var(--intergalactic-bg-secondary-neutral, rgb(248, 249, 248));padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}",
22
+ ".___STooltip_1ou5d_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255));border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, rgba(0, 21, 16, 0.07));box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));padding:var(--intergalactic-spacing-3x, 12px)}@supports (color:color(display-p3 0 0 0%)){.___STooltip_1ou5d_gg_{border:1px solid var(--intergalactic-border-secondary, rgba(0, 21, 16, 0.07));box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___STooltip_1ou5d_gg_{border:1px solid var(--intergalactic-border-secondary, color(display-p3 0.01753 0.08157 0.06372 / 0.07));box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___STitle_1ou5d_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));margin-bottom:var(--intergalactic-spacing-2x, 8px)}@supports (color:color(display-p3 0 0 0%)){.___STitle_1ou5d_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_1ou5d_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDotGroup_1ou5d_gg_{display:flex;align-items:center}.___SDot_1ou5d_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1ou5d_gg_.__color_1ou5d_gg_{background-color:var(--color_1ou5d);width:8px;height:8px;border-radius:50%}.___SFooter_1ou5d_gg_{background:var(--intergalactic-bg-secondary-neutral, rgb(248, 249, 248));padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}",
26
23
  /*__inner_css_end__*/
27
- "1mmbh_gg_"
24
+ "1ou5d_gg_"
28
25
  ), /*__reshadow_css_end__*/
29
26
  {
30
- "__STooltip": "___STooltip_1mmbh_gg_",
31
- "__STitle": "___STitle_1mmbh_gg_",
32
- "__SDotGroup": "___SDotGroup_1mmbh_gg_",
33
- "__SDot": "___SDot_1mmbh_gg_",
34
- "__SDotCircle": "___SDotCircle_1mmbh_gg_",
35
- "_color": "__color_1mmbh_gg_",
36
- "--color": "--color_1mmbh",
37
- "__SFooter": "___SFooter_1mmbh_gg_"
27
+ "__STooltip": "___STooltip_1ou5d_gg_",
28
+ "__STitle": "___STitle_1ou5d_gg_",
29
+ "__SDotGroup": "___SDotGroup_1ou5d_gg_",
30
+ "__SDot": "___SDot_1ou5d_gg_",
31
+ "__SDotCircle": "___SDotCircle_1ou5d_gg_",
32
+ "_color": "__color_1ou5d_gg_",
33
+ "--color": "--color_1ou5d",
34
+ "__SFooter": "___SFooter_1ou5d_gg_"
38
35
  })
39
36
  );
40
37
  var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
41
38
  index: -1,
42
39
  indexKeysCache: /* @__PURE__ */ new Set()
43
40
  });
44
- var TooltipRoot = /* @__PURE__ */ function(_Component) {
45
- _inherits(TooltipRoot2, _Component);
46
- var _super = _createSuper(TooltipRoot2);
41
+ var TooltipRoot = /* @__PURE__ */ (function(_Component) {
47
42
  function TooltipRoot2() {
48
43
  var _this;
49
44
  _classCallCheck(this, TooltipRoot2);
50
45
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
51
46
  args[_key] = arguments[_key];
52
47
  }
53
- _this = _super.call.apply(_super, [this].concat(args));
54
- _defineProperty(_assertThisInitialized(_this), "state", {
48
+ _this = _callSuper(this, TooltipRoot2, [].concat(args));
49
+ _defineProperty(_this, "state", {
55
50
  $visible: false,
56
51
  anchorProps: {},
57
52
  tooltipProps: {}
58
53
  });
59
- _defineProperty(_assertThisInitialized(_this), "renderContext", {
54
+ _defineProperty(_this, "renderContext", {
60
55
  index: -1,
61
56
  indexKeysCache: /* @__PURE__ */ new Set()
62
57
  });
63
- _defineProperty(_assertThisInitialized(_this), "handlerCancel", function() {
58
+ _defineProperty(_this, "handlerCancel", function() {
64
59
  return false;
65
60
  });
66
- _defineProperty(_assertThisInitialized(_this), "virtualElementPosition", {
61
+ _defineProperty(_this, "virtualElementPosition", {
67
62
  x: 0,
68
63
  y: 0
69
64
  });
70
- _defineProperty(_assertThisInitialized(_this), "virtualTriggerElement", null);
71
- _defineProperty(_assertThisInitialized(_this), "unsubscribe", []);
72
- _defineProperty(_assertThisInitialized(_this), "handleTriggerClick", function(e) {
65
+ _defineProperty(_this, "virtualTriggerElement", null);
66
+ _defineProperty(_this, "unsubscribe", []);
67
+ _defineProperty(_this, "handleTriggerClick", function(e) {
73
68
  var onClick = _this.asProps.onClick;
74
69
  var _this$state$tooltipPr = _this.state.tooltipProps, xIndex = _this$state$tooltipPr.xIndex, yIndex = _this$state$tooltipPr.yIndex;
75
70
  var index = xIndex !== null && xIndex !== void 0 ? xIndex : yIndex;
76
- onClick === null || onClick === void 0 ? void 0 : onClick(index, e);
71
+ onClick === null || onClick === void 0 || onClick(index, e);
77
72
  });
78
73
  return _this;
79
74
  }
80
- _createClass(TooltipRoot2, [{
75
+ _inherits(TooltipRoot2, _Component);
76
+ return _createClass(TooltipRoot2, [{
81
77
  key: "getTriggerProps",
82
78
  value: function getTriggerProps() {
83
79
  var _this$asProps = this.asProps, x = _this$asProps.x, y = _this$asProps.y, hideHoverLine = _this$asProps.hideHoverLine;
@@ -103,17 +99,17 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
103
99
  key: "componentDidMount",
104
100
  value: function componentDidMount() {
105
101
  var _this2 = this;
106
- var eventEmitter = this.asProps.eventEmitter;
107
- this.unsubscribe.push(eventEmitter.subscribe("setTooltipRenderingProps", function(anchorProps, tooltipProps) {
102
+ var _this$asProps2 = this.asProps, eventEmitter = _this$asProps2.eventEmitter, plotId = _this$asProps2.plotId;
103
+ this.unsubscribe.push(eventEmitter.subscribe("setTooltipRenderingProps_".concat(plotId), function(anchorProps, tooltipProps) {
108
104
  _this2.setState({
109
105
  anchorProps,
110
106
  tooltipProps
111
107
  });
112
- }), eventEmitter.subscribe("setTooltipVisible", function(visible) {
108
+ }), eventEmitter.subscribe("setTooltipVisible_".concat(plotId), function(visible) {
113
109
  return _this2.setState({
114
110
  $visible: visible
115
111
  });
116
- }), eventEmitter.subscribe("setTooltipPosition", function(x, y) {
112
+ }), eventEmitter.subscribe("setTooltipPosition_".concat(plotId), function(x, y) {
117
113
  var _this2$popper$current;
118
114
  _this2.virtualElementPosition.x = x;
119
115
  _this2.virtualElementPosition.y = y;
@@ -134,7 +130,7 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
134
130
  left: x2
135
131
  };
136
132
  };
137
- (_this2$popper$current = _this2.popper.current) === null || _this2$popper$current === void 0 ? void 0 : _this2$popper$current.update();
133
+ (_this2$popper$current = _this2.popper.current) === null || _this2$popper$current === void 0 || _this2$popper$current.update();
138
134
  }));
139
135
  }
140
136
  }, {
@@ -148,9 +144,7 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
148
144
  key: "render",
149
145
  value: function render() {
150
146
  var _ref = this.asProps, _this$asProps$pattern, _this3 = this;
151
- var _this$asProps2 = this.asProps, Children = _this$asProps2.Children, children = _this$asProps2.children, tag = _this$asProps2.tag, forcedAdvancedMode = _this$asProps2.forcedAdvancedMode;
152
- _this$asProps2.onClick;
153
- var other = _objectWithoutProperties(_this$asProps2, _excluded);
147
+ var _this$asProps3 = this.asProps, Children = _this$asProps3.Children, children = _this$asProps3.children, tag = _this$asProps3.tag, forcedAdvancedMode = _this$asProps3.forcedAdvancedMode, _ = _this$asProps3.onClick, other = _objectWithoutProperties(_this$asProps3, _excluded);
154
148
  var advancedMode = forcedAdvancedMode || !!findComponent(Children, [Tooltip.Trigger.displayName, Tooltip.Popper.displayName]);
155
149
  this.renderContext.index = -1;
156
150
  this.renderContext.indexKeysCache.clear();
@@ -167,12 +161,12 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
167
161
  "flip": {
168
162
  allowedAutoPlacements: ["left", "right"]
169
163
  }
170
- }, _ref), function(_ref9) {
164
+ }, _ref), function(_ref0) {
171
165
  var _this3$popper$current;
172
- var popper = _ref9.popper, setTrigger = _ref9.setTrigger;
166
+ var popper = _ref0.popper, setTrigger = _ref0.setTrigger;
173
167
  _this3.setPopperTrigger = setTrigger;
174
168
  _this3.popper = popper;
175
- (_this3$popper$current = _this3.popper.current) === null || _this3$popper$current === void 0 ? void 0 : _this3$popper$current.update();
169
+ (_this3$popper$current = _this3.popper.current) === null || _this3$popper$current === void 0 || _this3$popper$current.update();
176
170
  return advancedMode ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, tag && /* @__PURE__ */ React.createElement(Tooltip.Trigger, {
177
171
  tag,
178
172
  onClick: _this3.handleTriggerClick
@@ -180,18 +174,21 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
180
174
  }));
181
175
  }
182
176
  }]);
183
- return TooltipRoot2;
184
- }(Component);
177
+ })(Component);
185
178
  _defineProperty(TooltipRoot, "displayName", "Tooltip");
186
179
  _defineProperty(TooltipRoot, "style", style);
180
+ function PopperTrigger() {
181
+ var _ref2 = arguments[0];
182
+ return /* @__PURE__ */ React.createElement(Popper.Trigger, assignProps({}, _ref2));
183
+ }
187
184
  function PopperPopper(props) {
188
- var _ref5;
185
+ var _ref6;
189
186
  var STooltip = props.Element, styles = props.styles, $visible = props.$visible, x = props.x, y = props.y;
190
187
  var handlerCancel = React.useCallback(function() {
191
188
  return false;
192
189
  }, []);
193
190
  if (!$visible) return null;
194
- return _ref5 = sstyled$1(styles), /* @__PURE__ */ React.createElement(STooltip, _ref5.cn("STooltip", {
191
+ return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(STooltip, _ref6.cn("STooltip", {
195
192
  "render": Popper.Popper,
196
193
  "childrenPosition": "inside",
197
194
  "onMouseMove": handlerCancel,
@@ -201,16 +198,16 @@ function PopperPopper(props) {
201
198
  }
202
199
  PopperPopper.style = style;
203
200
  function Title(props) {
204
- var _ref2 = arguments[0], _ref6;
201
+ var _ref3 = arguments[0], _ref7;
205
202
  var STitle = Box;
206
203
  var styles = props.styles;
207
- return _ref6 = sstyled$1(styles), /* @__PURE__ */ React.createElement(STitle, _ref6.cn("STitle", _objectSpread({}, assignProps({
204
+ return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref7.cn("STitle", _objectSpread({}, assignProps({
208
205
  "__excludeProps": ["data", "scale"]
209
- }, _ref2))));
206
+ }, _ref3))));
210
207
  }
211
208
  Title.style = style;
212
209
  function Dot(props) {
213
- var _ref3 = arguments[0], _ref7, _props$patterns;
210
+ var _ref4 = arguments[0], _ref8, _props$patterns;
214
211
  var styles = props.styles, color = props.color, Children = props.Children;
215
212
  var resolveColor = useColorResolver();
216
213
  var renderContext = React.useContext(TooltipDotRenderContext);
@@ -224,27 +221,27 @@ function Dot(props) {
224
221
  var SDotGroup = Box;
225
222
  var SDot = Box;
226
223
  var SDotCircle = Box;
227
- return _ref7 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SDotGroup, _ref7.cn("SDotGroup", _objectSpread({}, assignProps({
224
+ return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(SDotGroup, _ref8.cn("SDotGroup", _objectSpread({}, assignProps({
228
225
  "__excludeProps": ["data", "scale"]
229
- }, _ref3))), patterns ? /* @__PURE__ */ React.createElement(SDot, _ref7.cn("SDot", {}), /* @__PURE__ */ React.createElement(PatternSymbol, _ref7.cn("PatternSymbol", {
226
+ }, _ref4))), patterns ? /* @__PURE__ */ React.createElement(SDot, _ref8.cn("SDot", {}), /* @__PURE__ */ React.createElement(PatternSymbol, _ref8.cn("PatternSymbol", {
230
227
  "color": resolveColor(color !== null && color !== void 0 ? color : defaultColor),
231
228
  "patternKey": color !== null && color !== void 0 ? color : defaultColor
232
- }))) : /* @__PURE__ */ React.createElement(SDot, _ref7.cn("SDot", {}), /* @__PURE__ */ React.createElement(SDotCircle, _ref7.cn("SDotCircle", {
229
+ }))) : /* @__PURE__ */ React.createElement(SDot, _ref8.cn("SDot", {}), /* @__PURE__ */ React.createElement(SDotCircle, _ref8.cn("SDotCircle", {
233
230
  "color": resolveColor(color !== null && color !== void 0 ? color : defaultColor)
234
- }))), /* @__PURE__ */ React.createElement(Children, _ref7.cn("Children", {})));
231
+ }))), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})));
235
232
  }
236
233
  Dot.style = style;
237
234
  function Footer(props) {
238
- var _ref4 = arguments[0], _ref8;
235
+ var _ref5 = arguments[0], _ref9;
239
236
  var styles = props.styles;
240
237
  var SFooter = Box;
241
- return _ref8 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SFooter, _ref8.cn("SFooter", _objectSpread({}, assignProps({
238
+ return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(SFooter, _ref9.cn("SFooter", _objectSpread({}, assignProps({
242
239
  "__excludeProps": ["data", "scale"]
243
- }, _ref4))));
240
+ }, _ref5))));
244
241
  }
245
242
  Footer.style = style;
246
243
  var Tooltip = createElement(TooltipRoot, {
247
- Trigger: Popper.Trigger,
244
+ Trigger: PopperTrigger,
248
245
  Popper: PopperPopper,
249
246
  Title,
250
247
  Footer,
package/lib/esm/Venn.mjs CHANGED
@@ -3,62 +3,59 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
5
5
  import _createClass from "@babel/runtime/helpers/esm/createClass";
6
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
6
+ import _callSuper from "@babel/runtime/helpers/esm/callSuper";
7
7
  import _inherits from "@babel/runtime/helpers/esm/inherits";
8
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
9
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
10
- import { sstyled } from "@semcore/utils/lib/core/index";
11
- import { Component, sstyled as sstyled$1, assignProps } from "@semcore/core";
12
- import React from "react";
9
+ import { sstyled, Component, assignProps } from "@semcore/core";
10
+ import { FadeInOut } from "@semcore/base-components";
11
+ import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
12
+ import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
13
+ import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
13
14
  import { scaleSolution, normalizeSolution, venn, intersectionAreaPath } from "@upsetjs/venn.js";
14
- import canUseDOM from "@semcore/utils/lib/canUseDOM";
15
- import { FadeInOut } from "@semcore/animation";
15
+ import React from "react";
16
16
  import createElement from "./createElement.mjs";
17
- import { getChartDefaultColorName } from "./utils.mjs";
18
- import Tooltip from "./Tooltip.mjs";
19
17
  import { PatternFill } from "./Pattern.mjs";
20
- import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
18
+ import Tooltip from "./Tooltip.mjs";
19
+ import { getChartDefaultColorName } from "./utils.mjs";
21
20
  /*!__reshadow-styles__:"./style/venn.shadow.css"*/
22
21
  var style = (
23
22
  /*__reshadow_css_start__*/
24
23
  (sstyled.insert(
25
24
  /*__inner_css_start__*/
26
- ".___SCircle_17mhn_gg_,.___SIntersection_17mhn_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:2px}.___SCircle_17mhn_gg_{fill:var(--intergalactic-chart-palette-order-2, rgb(56, 227, 181));fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_17mhn);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_17mhn_gg_:hover{fill-opacity:.7}}.___SCircle_17mhn_gg_.__color_17mhn_gg_{fill:var(--color_17mhn)}.___SCircle_17mhn_gg_.__pattern_17mhn_gg_.__color_17mhn_gg_{fill:var(--pattern_17mhn);fill-opacity:.7;stroke:var(--color_17mhn);stroke-width:1px}@media (hover:hover){.___SCircle_17mhn_gg_.__pattern_17mhn_gg_.__color_17mhn_gg_:hover{fill-opacity:.85}}.___SCircle_17mhn_gg_.__transparent_17mhn_gg_{opacity:.3}.___SIntersection_17mhn_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_17mhn_gg_:hover{fill-opacity:.1}}.___SIntersection_17mhn_gg_.__transparent_17mhn_gg_{opacity:.3}",
25
+ ".___SCircle_itic7_gg_,.___SIntersection_itic7_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:2px}.___SCircle_itic7_gg_{fill:var(--intergalactic-chart-palette-order-2, rgb(56, 227, 181));fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_itic7);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_itic7_gg_:hover{fill-opacity:.7}}.___SCircle_itic7_gg_.__color_itic7_gg_{fill:var(--color_itic7)}.___SCircle_itic7_gg_.__pattern_itic7_gg_.__color_itic7_gg_{fill:var(--pattern_itic7);fill-opacity:.7;stroke:var(--color_itic7);stroke-width:1px}@media (hover:hover){.___SCircle_itic7_gg_.__pattern_itic7_gg_.__color_itic7_gg_:hover{fill-opacity:.85}}.___SCircle_itic7_gg_.__transparent_itic7_gg_{opacity:.3}.___SIntersection_itic7_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_itic7_gg_:hover{fill-opacity:.1}}.___SIntersection_itic7_gg_.__transparent_itic7_gg_{opacity:.3}",
27
26
  /*__inner_css_end__*/
28
- "17mhn_gg_"
27
+ "itic7_gg_"
29
28
  ), /*__reshadow_css_end__*/
30
29
  {
31
- "__SCircle": "___SCircle_17mhn_gg_",
32
- "_color": "__color_17mhn_gg_",
33
- "--color": "--color_17mhn",
34
- "_transparent": "__transparent_17mhn_gg_",
35
- "__SIntersection": "___SIntersection_17mhn_gg_",
36
- "--duration": "--duration_17mhn",
37
- "_pattern": "__pattern_17mhn_gg_",
38
- "--pattern": "--pattern_17mhn"
30
+ "__SCircle": "___SCircle_itic7_gg_",
31
+ "_color": "__color_itic7_gg_",
32
+ "--color": "--color_itic7",
33
+ "_transparent": "__transparent_itic7_gg_",
34
+ "__SIntersection": "___SIntersection_itic7_gg_",
35
+ "--duration": "--duration_itic7",
36
+ "_pattern": "__pattern_itic7_gg_",
37
+ "--pattern": "--pattern_itic7"
39
38
  })
40
39
  );
41
- var VennRoot = /* @__PURE__ */ function(_Component) {
42
- _inherits(VennRoot2, _Component);
43
- var _super = _createSuper(VennRoot2);
40
+ var VennRoot = /* @__PURE__ */ (function(_Component) {
44
41
  function VennRoot2() {
45
42
  var _this;
46
43
  _classCallCheck(this, VennRoot2);
47
44
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
48
45
  args[_key] = arguments[_key];
49
46
  }
50
- _this = _super.call.apply(_super, [this].concat(args));
51
- _defineProperty(_assertThisInitialized(_this), "virtualElement", canUseDOM() ? document.createElement("div") : {});
52
- _defineProperty(_assertThisInitialized(_this), "bindHandlerTooltip", function(visible, props, tooltipProps) {
47
+ _this = _callSuper(this, VennRoot2, [].concat(args));
48
+ _defineProperty(_this, "virtualElement", canUseDOM() ? document.createElement("div") : {});
49
+ _defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
53
50
  return function(_ref5) {
54
51
  var clientX = _ref5.clientX, clientY = _ref5.clientY;
55
- var eventEmitter = _this.asProps.eventEmitter;
56
- eventEmitter.emit("setTooltipPosition", clientX, clientY);
57
- eventEmitter.emit("setTooltipRenderingProps", props, tooltipProps);
58
- eventEmitter.emit("setTooltipVisible", visible);
52
+ var _this$asProps = _this.asProps, eventEmitter = _this$asProps.eventEmitter, plotId = _this$asProps.plotId;
53
+ eventEmitter.emit("setTooltipPosition_".concat(plotId), clientX, clientY);
54
+ eventEmitter.emit("setTooltipRenderingProps_".concat(plotId), props, tooltipProps);
55
+ eventEmitter.emit("setTooltipVisible_".concat(plotId), visible);
59
56
  };
60
57
  });
61
- _defineProperty(_assertThisInitialized(_this), "renderElement", /* @__PURE__ */ React.forwardRef(function(props, ref) {
58
+ _defineProperty(_this, "renderElement", /* @__PURE__ */ React.forwardRef(function(props, ref) {
62
59
  return /* @__PURE__ */ React.createElement(FadeInOut, _extends({
63
60
  "aria-hidden": true,
64
61
  ref,
@@ -68,7 +65,8 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
68
65
  }));
69
66
  return _this;
70
67
  }
71
- _createClass(VennRoot2, [{
68
+ _inherits(VennRoot2, _Component);
69
+ return _createClass(VennRoot2, [{
72
70
  key: "generateGetBoundingClientRect",
73
71
  value: function generateGetBoundingClientRect() {
74
72
  var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
@@ -87,7 +85,7 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
87
85
  }, {
88
86
  key: "getVennData",
89
87
  value: function getVennData() {
90
- var _this$asProps = this.asProps, data = _this$asProps.data, orientation = _this$asProps.orientation, orientationOrder2 = _this$asProps.orientationOrder, size = _this$asProps.size;
88
+ var _this$asProps2 = this.asProps, data = _this$asProps2.data, orientation = _this$asProps2.orientation, orientationOrder2 = _this$asProps2.orientationOrder, size = _this$asProps2.size;
91
89
  var _size = _slicedToArray(size, 2), width = _size[0], height = _size[1];
92
90
  var vennData = Object.entries(data).map(function(_ref6) {
93
91
  var _ref7 = _slicedToArray(_ref6, 2), dataKey = _ref7[0], size2 = _ref7[1];
@@ -98,6 +96,13 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
98
96
  });
99
97
  return scaleSolution(normalizeSolution(venn(vennData), orientation, orientationOrder2), width, height, 10);
100
98
  }
99
+ }, {
100
+ key: "getTooltipProps",
101
+ value: function getTooltipProps() {
102
+ return {
103
+ uniqId: this.asProps.uid
104
+ };
105
+ }
101
106
  }, {
102
107
  key: "getCircleProps",
103
108
  value: function getCircleProps(props, index) {
@@ -120,13 +125,14 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
120
125
  color,
121
126
  uid: "".concat(this.asProps.uid, "-").concat(index),
122
127
  patterns: this.asProps.patterns,
123
- minRadius: this.asProps.minRadius
128
+ minRadius: this.asProps.minRadius,
129
+ onClickCircleRoot: this.handlerOnClick(props.dataKey).bind(this)
124
130
  };
125
131
  }
126
132
  }, {
127
133
  key: "getIntersectionProps",
128
134
  value: function getIntersectionProps(props) {
129
- var _this$asProps2 = this.asProps, duration = _this$asProps2.duration, transparent = _this$asProps2.transparent;
135
+ var _this$asProps3 = this.asProps, duration = _this$asProps3.duration, transparent = _this$asProps3.transparent;
130
136
  var dataKeys = props.dataKey.split("/");
131
137
  var tooltipProps = {
132
138
  dataKey: props.dataKey,
@@ -145,7 +151,19 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
145
151
  onMouseMove: this.bindHandlerTooltip(true, props, tooltipProps),
146
152
  onMouseLeave: this.bindHandlerTooltip(false, props, tooltipProps),
147
153
  transparent,
148
- resolveColor: this.asProps.resolveColor
154
+ resolveColor: this.asProps.resolveColor,
155
+ onClickIntersectionRoot: this.handlerOnClick(props.dataKey).bind(this)
156
+ };
157
+ }
158
+ }, {
159
+ key: "handlerOnClick",
160
+ value: function handlerOnClick(dataKey) {
161
+ var _this2 = this;
162
+ return function(e) {
163
+ e.stopPropagation();
164
+ var onClick = _this2.asProps.onClick;
165
+ if (!onClick) return;
166
+ onClick(dataKey, e);
149
167
  };
150
168
  }
151
169
  }, {
@@ -162,8 +180,7 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
162
180
  });
163
181
  }
164
182
  }]);
165
- return VennRoot2;
166
- }(Component);
183
+ })(Component);
167
184
  _defineProperty(VennRoot, "displayName", "Venn");
168
185
  _defineProperty(VennRoot, "style", style);
169
186
  _defineProperty(VennRoot, "defaultProps", {
@@ -177,11 +194,11 @@ _defineProperty(VennRoot, "defaultProps", {
177
194
  _defineProperty(VennRoot, "enhance", [uniqueIDEnhancement()]);
178
195
  function Circle(_ref8) {
179
196
  var _ref2;
180
- var SCircle = _ref8.Element, styles = _ref8.styles, color = _ref8.color, resolveColor = _ref8.resolveColor, data = _ref8.data, duration = _ref8.duration, name = _ref8.name, dataKey = _ref8.dataKey, dataHintsHandler = _ref8.dataHintsHandler, transparent = _ref8.transparent, uid = _ref8.uid, patterns = _ref8.patterns, minRadius = _ref8.minRadius;
197
+ var SCircle = _ref8.Element, styles = _ref8.styles, color = _ref8.color, resolveColor = _ref8.resolveColor, data = _ref8.data, duration = _ref8.duration, name = _ref8.name, dataKey = _ref8.dataKey, dataHintsHandler = _ref8.dataHintsHandler, transparent = _ref8.transparent, uid = _ref8.uid, patterns = _ref8.patterns, minRadius = _ref8.minRadius, onClick = _ref8.onClick, onClickCircleRoot = _ref8.onClickCircleRoot;
181
198
  dataHintsHandler.describeValueEntity(dataKey, name);
182
199
  var radius = data.radius < minRadius ? minRadius : data.radius;
183
200
  if (data.radius === 0) return null;
184
- return /* @__PURE__ */ React.createElement(React.Fragment, null, (_ref2 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SCircle, _ref2.cn("SCircle", {
201
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, (_ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SCircle, _ref2.cn("SCircle", {
185
202
  "aria-hidden": true,
186
203
  "render": "circle",
187
204
  "color": resolveColor(color),
@@ -190,7 +207,8 @@ function Circle(_ref8) {
190
207
  "cy": data.y,
191
208
  "r": radius,
192
209
  "transparent": transparent,
193
- "use:duration": "".concat(duration, "ms")
210
+ "use:duration": "".concat(duration, "ms"),
211
+ "onClickCapture": callAllEventHandlers(onClickCircleRoot, onClick)
194
212
  }))), patterns && /* @__PURE__ */ React.createElement(PatternFill, _ref2.cn("PatternFill", {
195
213
  "id": "".concat(uid, "-pattern"),
196
214
  "patternKey": color,
@@ -200,7 +218,7 @@ function Circle(_ref8) {
200
218
  }
201
219
  function Intersection(props) {
202
220
  var _ref3;
203
- var SIntersection = props.Element, styles = props.styles, data = props.data, name = props.name, dataKey = props.dataKey, dataHintsHandler = props.dataHintsHandler, transparent = props.transparent;
221
+ var SIntersection = props.Element, styles = props.styles, data = props.data, name = props.name, dataKey = props.dataKey, dataHintsHandler = props.dataHintsHandler, transparent = props.transparent, onClick = props.onClick, onClickIntersectionRoot = props.onClickIntersectionRoot;
204
222
  dataHintsHandler.describeValueEntity(dataKey, name);
205
223
  var renderIntersection = React.useCallback(/* @__PURE__ */ React.forwardRef(function(props2, ref) {
206
224
  return /* @__PURE__ */ React.createElement(FadeInOut, _extends({
@@ -210,20 +228,22 @@ function Intersection(props) {
210
228
  visible: true
211
229
  }, props2));
212
230
  }), [props]);
213
- return _ref3 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SIntersection, _ref3.cn("SIntersection", {
231
+ return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SIntersection, _ref3.cn("SIntersection", {
214
232
  "aria-hidden": true,
215
233
  "render": renderIntersection,
216
234
  "d": intersectionAreaPath(data),
217
- "transparent": transparent
235
+ "transparent": transparent,
236
+ "onClickCapture": callAllEventHandlers(onClickIntersectionRoot, onClick)
218
237
  }));
219
238
  }
220
- var VennTooltip = function VennTooltip2(props) {
239
+ function VennTooltip(props) {
221
240
  var _ref = arguments[0], _ref4;
222
241
  var SVennTooltip = Tooltip;
223
- return _ref4 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SVennTooltip, _ref4.cn("SVennTooltip", _objectSpread({}, assignProps({
242
+ return _ref4 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SVennTooltip, _ref4.cn("SVennTooltip", _objectSpread({}, assignProps({
224
243
  "excludeAnchorProps": true
225
244
  }, _ref))));
226
- };
245
+ }
246
+ ;
227
247
  var Venn = createElement(VennRoot, {
228
248
  Circle,
229
249
  Intersection,
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
4
4
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
5
5
  import React from "react";
6
- import { defaultValueFormatter } from "./serialize.mjs";
6
+ import { defaultValueFormatter as _defaultValueFormatter } from "./serialize.mjs";
7
7
  var DataAccessibilityTable = function DataAccessibilityTable2(_ref) {
8
8
  var id = _ref.id, dataTableRef = _ref.dataTableRef, data = _ref.data, hints = _ref.hints, config = _ref.config, intl = _ref.intl;
9
9
  var keys = React.useMemo(function() {
@@ -68,7 +68,7 @@ var DataAccessibilityTable = function DataAccessibilityTable2(_ref) {
68
68
  }, [data, hints, duplicatedBaseKeys, config]);
69
69
  var formatValue = React.useCallback(function(value, row) {
70
70
  var _config$valuesFormatt, _config$valuesFormatt2;
71
- return (_config$valuesFormatt = (_config$valuesFormatt2 = config.valuesFormatter) === null || _config$valuesFormatt2 === void 0 ? void 0 : _config$valuesFormatt2.call(config, value, row)) !== null && _config$valuesFormatt !== void 0 ? _config$valuesFormatt : defaultValueFormatter(intl, value);
71
+ return (_config$valuesFormatt = (_config$valuesFormatt2 = config.valuesFormatter) === null || _config$valuesFormatt2 === void 0 ? void 0 : _config$valuesFormatt2.call(config, value, row)) !== null && _config$valuesFormatt !== void 0 ? _config$valuesFormatt : _defaultValueFormatter(intl, value);
72
72
  }, [intl, config]);
73
73
  return /* @__PURE__ */ React.createElement("table", {
74
74
  id: "".concat(id, "-data-table"),