@semcore/d3-chart 16.4.0 → 16.4.1-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 (86) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/cjs/Area.js +11 -11
  3. package/lib/cjs/Axis.js +29 -34
  4. package/lib/cjs/Axis.js.map +1 -1
  5. package/lib/cjs/Bar.js +16 -16
  6. package/lib/cjs/Bubble.js +13 -13
  7. package/lib/cjs/CompactHorizontalBar.js +16 -16
  8. package/lib/cjs/Donut.js +9 -9
  9. package/lib/cjs/Dots.js +8 -8
  10. package/lib/cjs/HorizontalBar.js +16 -16
  11. package/lib/cjs/Hover.js +3 -3
  12. package/lib/cjs/Line.js +9 -9
  13. package/lib/cjs/Plot.js +3 -3
  14. package/lib/cjs/Radar.js +19 -19
  15. package/lib/cjs/RadialTree.js +12 -12
  16. package/lib/cjs/Reference.js +12 -12
  17. package/lib/cjs/ScatterPlot.js +9 -9
  18. package/lib/cjs/Tooltip.js +9 -9
  19. package/lib/cjs/Venn.js +9 -9
  20. package/lib/cjs/a11y/PlotA11yModule.js +2 -2
  21. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  22. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  23. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  24. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  25. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  26. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +18 -18
  27. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  28. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  29. package/lib/cjs/types/index.d.js +12 -0
  30. package/lib/cjs/types/index.d.js.map +1 -1
  31. package/lib/es6/Area.js +11 -11
  32. package/lib/es6/Axis.js +29 -34
  33. package/lib/es6/Axis.js.map +1 -1
  34. package/lib/es6/Bar.js +16 -16
  35. package/lib/es6/Bubble.js +13 -13
  36. package/lib/es6/CompactHorizontalBar.js +16 -16
  37. package/lib/es6/Donut.js +9 -9
  38. package/lib/es6/Dots.js +8 -8
  39. package/lib/es6/HorizontalBar.js +16 -16
  40. package/lib/es6/Hover.js +3 -3
  41. package/lib/es6/Line.js +9 -9
  42. package/lib/es6/Plot.js +3 -3
  43. package/lib/es6/Radar.js +19 -19
  44. package/lib/es6/RadialTree.js +12 -12
  45. package/lib/es6/Reference.js +12 -12
  46. package/lib/es6/ScatterPlot.js +9 -9
  47. package/lib/es6/Tooltip.js +9 -9
  48. package/lib/es6/Venn.js +9 -9
  49. package/lib/es6/a11y/PlotA11yModule.js +2 -2
  50. package/lib/es6/a11y/PlotA11yView.js +2 -2
  51. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  52. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  53. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  54. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  55. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +18 -18
  56. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  57. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  58. package/lib/es6/types/index.d.js +1 -0
  59. package/lib/es6/types/index.d.js.map +1 -1
  60. package/lib/esm/Area.mjs +12 -12
  61. package/lib/esm/Axis.mjs +28 -33
  62. package/lib/esm/Bar.mjs +17 -17
  63. package/lib/esm/Bubble.mjs +14 -14
  64. package/lib/esm/CompactHorizontalBar.mjs +17 -17
  65. package/lib/esm/Donut.mjs +10 -10
  66. package/lib/esm/Dots.mjs +9 -9
  67. package/lib/esm/HorizontalBar.mjs +17 -17
  68. package/lib/esm/Hover.mjs +4 -4
  69. package/lib/esm/Line.mjs +10 -10
  70. package/lib/esm/Plot.mjs +4 -4
  71. package/lib/esm/Radar.mjs +20 -20
  72. package/lib/esm/RadialTree.mjs +13 -13
  73. package/lib/esm/Reference.mjs +13 -13
  74. package/lib/esm/ScatterPlot.mjs +10 -10
  75. package/lib/esm/Tooltip.mjs +10 -10
  76. package/lib/esm/Venn.mjs +10 -10
  77. package/lib/esm/a11y/PlotA11yModule.mjs +3 -3
  78. package/lib/esm/a11y/PlotA11yView.mjs +3 -3
  79. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
  80. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +19 -19
  81. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +7 -7
  82. package/lib/types/component/Chart/AbstractChart.type.d.ts +18 -13
  83. package/lib/types/component/Chart/AreaChart.type.d.ts +4 -2
  84. package/lib/types/component/Chart/BarChart.type.d.ts +4 -4
  85. package/lib/types/index.d.ts +1 -0
  86. package/package.json +8 -8
package/lib/esm/Line.mjs CHANGED
@@ -19,19 +19,19 @@ var style = (
19
19
  /*__reshadow_css_start__*/
20
20
  (sstyled.insert(
21
21
  /*__inner_css_start__*/
22
- ".___SLine_jqqyf_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:d;transition-duration:var(--duration_jqqyf);transition-timing-function:ease-in-out}.___SLine_jqqyf_gg_.__color_jqqyf_gg_{stroke:var(--color_jqqyf)}.___SLine_jqqyf_gg_.__hide_jqqyf_gg_{display:none}.___SLine_jqqyf_gg_.__transparent_jqqyf_gg_{opacity:.3}.___SNull_jqqyf_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, #c4c7cf);stroke-dasharray:4}.___SNull_jqqyf_gg_.__hide_jqqyf_gg_{display:none}.___SLineArea_jqqyf_gg_{transition-property:d;transition-duration:var(--duration_jqqyf);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SLineArea_jqqyf_gg_.__color_jqqyf_gg_{fill:var(--color_jqqyf)}",
22
+ ".___SLine_iam2f_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:d;transition-duration:var(--duration_iam2f);transition-timing-function:ease-in-out}.___SLine_iam2f_gg_.__color_iam2f_gg_{stroke:var(--color_iam2f)}.___SLine_iam2f_gg_.__hide_iam2f_gg_{display:none}.___SLine_iam2f_gg_.__transparent_iam2f_gg_{opacity:.3}.___SNull_iam2f_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, #c4c7cf);stroke-dasharray:4}.___SNull_iam2f_gg_.__hide_iam2f_gg_{display:none}.___SLineArea_iam2f_gg_{transition-property:d;transition-duration:var(--duration_iam2f);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SLineArea_iam2f_gg_.__color_iam2f_gg_{fill:var(--color_iam2f)}",
23
23
  /*__inner_css_end__*/
24
- "jqqyf_gg_"
24
+ "iam2f_gg_"
25
25
  ), /*__reshadow_css_end__*/
26
26
  {
27
- "__SLine": "___SLine_jqqyf_gg_",
28
- "--duration": "--duration_jqqyf",
29
- "_color": "__color_jqqyf_gg_",
30
- "--color": "--color_jqqyf",
31
- "_hide": "__hide_jqqyf_gg_",
32
- "_transparent": "__transparent_jqqyf_gg_",
33
- "__SNull": "___SNull_jqqyf_gg_",
34
- "__SLineArea": "___SLineArea_jqqyf_gg_"
27
+ "__SLine": "___SLine_iam2f_gg_",
28
+ "--duration": "--duration_iam2f",
29
+ "_color": "__color_iam2f_gg_",
30
+ "--color": "--color_iam2f",
31
+ "_hide": "__hide_iam2f_gg_",
32
+ "_transparent": "__transparent_iam2f_gg_",
33
+ "__SNull": "___SNull_iam2f_gg_",
34
+ "__SLineArea": "___SLineArea_iam2f_gg_"
35
35
  })
36
36
  );
37
37
  var LineRoot = /* @__PURE__ */ (function(_Component) {
package/lib/esm/Plot.mjs CHANGED
@@ -21,13 +21,13 @@ var style = (
21
21
  /*__reshadow_css_start__*/
22
22
  (sstyled.insert(
23
23
  /*__inner_css_start__*/
24
- ".___SPlot_irjhg_gg_{overflow:hidden}.___SPlot_irjhg_gg_:focus{outline:0}.___SPlot_irjhg_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_irjhg_gg_.__keyboardFocused_irjhg_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded, 6px)}",
24
+ ".___SPlot_t1tww_gg_{overflow:hidden}.___SPlot_t1tww_gg_:focus{outline:0}.___SPlot_t1tww_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_t1tww_gg_.__keyboardFocused_t1tww_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded, 6px)}",
25
25
  /*__inner_css_end__*/
26
- "irjhg_gg_"
26
+ "t1tww_gg_"
27
27
  ), /*__reshadow_css_end__*/
28
28
  {
29
- "__SPlot": "___SPlot_irjhg_gg_",
30
- "_keyboardFocused": "__keyboardFocused_irjhg_gg_"
29
+ "__SPlot": "___SPlot_t1tww_gg_",
30
+ "_keyboardFocused": "__keyboardFocused_t1tww_gg_"
31
31
  })
32
32
  );
33
33
  var PlotRoot = /* @__PURE__ */ (function(_Component) {
package/lib/esm/Radar.mjs CHANGED
@@ -23,29 +23,29 @@ var style = (
23
23
  /*__reshadow_css_start__*/
24
24
  (sstyled.insert(
25
25
  /*__inner_css_start__*/
26
- ".___SAxisLine_22h5e_gg_,.___SAxisTick_22h5e_gg_,.___SAxis_22h5e_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_22h5e_gg_,.___SAxisTick_22h5e_gg_{stroke-dasharray:2}.___SAxisLine_22h5e_gg_.__active_22h5e_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_22h5e_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_22h5e_gg_.__xDirection_22h5e_gg_{text-anchor:var(--xDirection_22h5e)}.___SAxisLabel_22h5e_gg_.__yDirection_22h5e_gg_{dominant-baseline:var(--yDirection_22h5e)}.___SPolygonDot_22h5e_gg_,.___SPolygon_22h5e_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_22h5e_gg_{opacity:.2}.___SPolygon_22h5e_gg_.__color_22h5e_gg_{fill:var(--color_22h5e)}.___SPolygon_22h5e_gg_.__pattern_22h5e_gg_.__color_22h5e_gg_{fill:var(--pattern_22h5e);stroke:var(--color_22h5e);stroke-width:1px}.___SPolygonDot_22h5e_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_22h5e_gg_.__transparent_22h5e_gg_{opacity:.3}.___SPolygonDot_22h5e_gg_.__color_22h5e_gg_{fill:var(--color_22h5e)}.___SPolygonLine_22h5e_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_22h5e_gg_.__transparent_22h5e_gg_{opacity:.3}.___SPolygonLine_22h5e_gg_.__color_22h5e_gg_{stroke:var(--color_22h5e)}.___SPieRect_22h5e_gg_{outline:0;fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}",
26
+ ".___SAxisLine_f2n8f_gg_,.___SAxisTick_f2n8f_gg_,.___SAxis_f2n8f_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_f2n8f_gg_,.___SAxisTick_f2n8f_gg_{stroke-dasharray:2}.___SAxisLine_f2n8f_gg_.__active_f2n8f_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_f2n8f_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_f2n8f_gg_.__xDirection_f2n8f_gg_{text-anchor:var(--xDirection_f2n8f)}.___SAxisLabel_f2n8f_gg_.__yDirection_f2n8f_gg_{dominant-baseline:var(--yDirection_f2n8f)}.___SPolygonDot_f2n8f_gg_,.___SPolygon_f2n8f_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_f2n8f_gg_{opacity:.2}.___SPolygon_f2n8f_gg_.__color_f2n8f_gg_{fill:var(--color_f2n8f)}.___SPolygon_f2n8f_gg_.__pattern_f2n8f_gg_.__color_f2n8f_gg_{fill:var(--pattern_f2n8f);stroke:var(--color_f2n8f);stroke-width:1px}.___SPolygonDot_f2n8f_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_f2n8f_gg_.__transparent_f2n8f_gg_{opacity:.3}.___SPolygonDot_f2n8f_gg_.__color_f2n8f_gg_{fill:var(--color_f2n8f)}.___SPolygonLine_f2n8f_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_f2n8f_gg_.__transparent_f2n8f_gg_{opacity:.3}.___SPolygonLine_f2n8f_gg_.__color_f2n8f_gg_{stroke:var(--color_f2n8f)}.___SPieRect_f2n8f_gg_{outline:0;fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}",
27
27
  /*__inner_css_end__*/
28
- "22h5e_gg_"
28
+ "f2n8f_gg_"
29
29
  ), /*__reshadow_css_end__*/
30
30
  {
31
- "__SAxis": "___SAxis_22h5e_gg_",
32
- "__SAxisLine": "___SAxisLine_22h5e_gg_",
33
- "__SAxisTick": "___SAxisTick_22h5e_gg_",
34
- "_active": "__active_22h5e_gg_",
35
- "__SAxisLabel": "___SAxisLabel_22h5e_gg_",
36
- "_xDirection": "__xDirection_22h5e_gg_",
37
- "--xDirection": "--xDirection_22h5e",
38
- "_yDirection": "__yDirection_22h5e_gg_",
39
- "--yDirection": "--yDirection_22h5e",
40
- "__SPolygon": "___SPolygon_22h5e_gg_",
41
- "_color": "__color_22h5e_gg_",
42
- "--color": "--color_22h5e",
43
- "_pattern": "__pattern_22h5e_gg_",
44
- "--pattern": "--pattern_22h5e",
45
- "__SPolygonDot": "___SPolygonDot_22h5e_gg_",
46
- "_transparent": "__transparent_22h5e_gg_",
47
- "__SPolygonLine": "___SPolygonLine_22h5e_gg_",
48
- "__SPieRect": "___SPieRect_22h5e_gg_"
31
+ "__SAxis": "___SAxis_f2n8f_gg_",
32
+ "__SAxisLine": "___SAxisLine_f2n8f_gg_",
33
+ "__SAxisTick": "___SAxisTick_f2n8f_gg_",
34
+ "_active": "__active_f2n8f_gg_",
35
+ "__SAxisLabel": "___SAxisLabel_f2n8f_gg_",
36
+ "_xDirection": "__xDirection_f2n8f_gg_",
37
+ "--xDirection": "--xDirection_f2n8f",
38
+ "_yDirection": "__yDirection_f2n8f_gg_",
39
+ "--yDirection": "--yDirection_f2n8f",
40
+ "__SPolygon": "___SPolygon_f2n8f_gg_",
41
+ "_color": "__color_f2n8f_gg_",
42
+ "--color": "--color_f2n8f",
43
+ "_pattern": "__pattern_f2n8f_gg_",
44
+ "--pattern": "--pattern_f2n8f",
45
+ "__SPolygonDot": "___SPolygonDot_f2n8f_gg_",
46
+ "_transparent": "__transparent_f2n8f_gg_",
47
+ "__SPolygonLine": "___SPolygonLine_f2n8f_gg_",
48
+ "__SPieRect": "___SPieRect_f2n8f_gg_"
49
49
  })
50
50
  );
51
51
  var clampAngle = function clampAngle2(angle) {
@@ -23,22 +23,22 @@ var style = (
23
23
  /*__reshadow_css_start__*/
24
24
  (sstyled.insert(
25
25
  /*__inner_css_start__*/
26
- ".___SRadian_1c8r4_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1c8r4_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1c8r4_gg_.__stroke_1c8r4_gg_{stroke:var(--stroke_1c8r4)}.___SLine_1c8r4_gg_.__transparent_1c8r4_gg_{opacity:.3}.___SCap_1c8r4_gg_{transition:r .1s}.___SCap_1c8r4_gg_.__pattern_1c8r4_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1c8r4_gg_.__transparent_1c8r4_gg_,.___SIcon_1c8r4_gg_.__transparent_1c8r4_gg_,.___SLabel_1c8r4_gg_.__transparent_1c8r4_gg_{opacity:.3}.___SLabel_1c8r4_gg_{fill:var(--color_1c8r4)}@media (hover:hover){.___SRadian_1c8r4_gg_:hover .___SLabel_1c8r4_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1c8r4_gg_{transition:none}}",
26
+ ".___SRadian_d77f5_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_d77f5_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_d77f5_gg_.__stroke_d77f5_gg_{stroke:var(--stroke_d77f5)}.___SLine_d77f5_gg_.__transparent_d77f5_gg_{opacity:.3}.___SCap_d77f5_gg_{transition:r .1s}.___SCap_d77f5_gg_.__pattern_d77f5_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_d77f5_gg_.__transparent_d77f5_gg_,.___SIcon_d77f5_gg_.__transparent_d77f5_gg_,.___SLabel_d77f5_gg_.__transparent_d77f5_gg_{opacity:.3}.___SLabel_d77f5_gg_{fill:var(--color_d77f5)}@media (hover:hover){.___SRadian_d77f5_gg_:hover .___SLabel_d77f5_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_d77f5_gg_{transition:none}}",
27
27
  /*__inner_css_end__*/
28
- "1c8r4_gg_"
28
+ "d77f5_gg_"
29
29
  ), /*__reshadow_css_end__*/
30
30
  {
31
- "__SRadian": "___SRadian_1c8r4_gg_",
32
- "__SLine": "___SLine_1c8r4_gg_",
33
- "_stroke": "__stroke_1c8r4_gg_",
34
- "--stroke": "--stroke_1c8r4",
35
- "_transparent": "__transparent_1c8r4_gg_",
36
- "__SCap": "___SCap_1c8r4_gg_",
37
- "_pattern": "__pattern_1c8r4_gg_",
38
- "__SIcon": "___SIcon_1c8r4_gg_",
39
- "__SLabel": "___SLabel_1c8r4_gg_",
40
- "--color": "--color_1c8r4",
41
- "__SLineCap": "___SLineCap_1c8r4_gg_"
31
+ "__SRadian": "___SRadian_d77f5_gg_",
32
+ "__SLine": "___SLine_d77f5_gg_",
33
+ "_stroke": "__stroke_d77f5_gg_",
34
+ "--stroke": "--stroke_d77f5",
35
+ "_transparent": "__transparent_d77f5_gg_",
36
+ "__SCap": "___SCap_d77f5_gg_",
37
+ "_pattern": "__pattern_d77f5_gg_",
38
+ "__SIcon": "___SIcon_d77f5_gg_",
39
+ "__SLabel": "___SLabel_d77f5_gg_",
40
+ "--color": "--color_d77f5",
41
+ "__SLineCap": "___SLineCap_d77f5_gg_"
42
42
  })
43
43
  );
44
44
  var baseAngle = -Math.PI / 2;
@@ -15,22 +15,22 @@ var style = (
15
15
  /*__reshadow_css_start__*/
16
16
  (sstyled.insert(
17
17
  /*__inner_css_start__*/
18
- ".___SReferenceLine_1kaw4_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_1kaw4_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1kaw4)}.___STitle_1kaw4_gg_._position_top_1kaw4_gg_{text-anchor:middle}.___STitle_1kaw4_gg_._position_bottom_1kaw4_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1kaw4_gg_._position_left_1kaw4_gg_,.___STitle_1kaw4_gg_._position_right_1kaw4_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1kaw4_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_1kaw4_gg_{fill:var(--fill_1kaw4)}.___SStripesPatternPath_1kaw4_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}",
18
+ ".___SReferenceLine_jnzg5_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_jnzg5_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_jnzg5)}.___STitle_jnzg5_gg_._position_top_jnzg5_gg_{text-anchor:middle}.___STitle_jnzg5_gg_._position_bottom_jnzg5_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_jnzg5_gg_._position_left_jnzg5_gg_,.___STitle_jnzg5_gg_._position_right_jnzg5_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_jnzg5_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_jnzg5_gg_{fill:var(--fill_jnzg5)}.___SStripesPatternPath_jnzg5_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}",
19
19
  /*__inner_css_end__*/
20
- "1kaw4_gg_"
20
+ "jnzg5_gg_"
21
21
  ), /*__reshadow_css_end__*/
22
22
  {
23
- "__SReferenceLine": "___SReferenceLine_1kaw4_gg_",
24
- "__STitle": "___STitle_1kaw4_gg_",
25
- "--transform-origin": "--transform-origin_1kaw4",
26
- "_position_top": "_position_top_1kaw4_gg_",
27
- "_position_bottom": "_position_bottom_1kaw4_gg_",
28
- "_position_right": "_position_right_1kaw4_gg_",
29
- "_position_left": "_position_left_1kaw4_gg_",
30
- "__SBackground": "___SBackground_1kaw4_gg_",
31
- "__SStripes": "___SStripes_1kaw4_gg_",
32
- "--fill": "--fill_1kaw4",
33
- "__SStripesPatternPath": "___SStripesPatternPath_1kaw4_gg_"
23
+ "__SReferenceLine": "___SReferenceLine_jnzg5_gg_",
24
+ "__STitle": "___STitle_jnzg5_gg_",
25
+ "--transform-origin": "--transform-origin_jnzg5",
26
+ "_position_top": "_position_top_jnzg5_gg_",
27
+ "_position_bottom": "_position_bottom_jnzg5_gg_",
28
+ "_position_right": "_position_right_jnzg5_gg_",
29
+ "_position_left": "_position_left_jnzg5_gg_",
30
+ "__SBackground": "___SBackground_jnzg5_gg_",
31
+ "__SStripes": "___SStripes_jnzg5_gg_",
32
+ "--fill": "--fill_jnzg5",
33
+ "__SStripesPatternPath": "___SStripesPatternPath_jnzg5_gg_"
34
34
  })
35
35
  );
36
36
  var side2direction = {
@@ -19,19 +19,19 @@ var style = (
19
19
  /*__reshadow_css_start__*/
20
20
  (sstyled.insert(
21
21
  /*__inner_css_start__*/
22
- ".___SScatterPlot_6iqqd_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_6iqqd);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_6iqqd_gg_:hover{opacity:.8}}.___SScatterPlot_6iqqd_gg_.__color_6iqqd_gg_{fill:var(--color_6iqqd)}.___SScatterPlot_6iqqd_gg_.__pattern_6iqqd_gg_.__color_6iqqd_gg_{fill:var(--pattern_6iqqd);stroke:var(--color_6iqqd);stroke-width:1px}.___SScatterPlot_6iqqd_gg_.__transparent_6iqqd_gg_{opacity:.3}.___SValue_6iqqd_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_6iqqd_gg_.__color_6iqqd_gg_{stroke:var(--color_6iqqd)}.___SValue_6iqqd_gg_.__transparent_6iqqd_gg_{opacity:.3}",
22
+ ".___SScatterPlot_t0si0_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_t0si0);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_t0si0_gg_:hover{opacity:.8}}.___SScatterPlot_t0si0_gg_.__color_t0si0_gg_{fill:var(--color_t0si0)}.___SScatterPlot_t0si0_gg_.__pattern_t0si0_gg_.__color_t0si0_gg_{fill:var(--pattern_t0si0);stroke:var(--color_t0si0);stroke-width:1px}.___SScatterPlot_t0si0_gg_.__transparent_t0si0_gg_{opacity:.3}.___SValue_t0si0_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_t0si0_gg_.__color_t0si0_gg_{stroke:var(--color_t0si0)}.___SValue_t0si0_gg_.__transparent_t0si0_gg_{opacity:.3}",
23
23
  /*__inner_css_end__*/
24
- "6iqqd_gg_"
24
+ "t0si0_gg_"
25
25
  ), /*__reshadow_css_end__*/
26
26
  {
27
- "__SScatterPlot": "___SScatterPlot_6iqqd_gg_",
28
- "_color": "__color_6iqqd_gg_",
29
- "--color": "--color_6iqqd",
30
- "_pattern": "__pattern_6iqqd_gg_",
31
- "--pattern": "--pattern_6iqqd",
32
- "_transparent": "__transparent_6iqqd_gg_",
33
- "__SValue": "___SValue_6iqqd_gg_",
34
- "--duration": "--duration_6iqqd"
27
+ "__SScatterPlot": "___SScatterPlot_t0si0_gg_",
28
+ "_color": "__color_t0si0_gg_",
29
+ "--color": "--color_t0si0",
30
+ "_pattern": "__pattern_t0si0_gg_",
31
+ "--pattern": "--pattern_t0si0",
32
+ "_transparent": "__transparent_t0si0_gg_",
33
+ "__SValue": "___SValue_t0si0_gg_",
34
+ "--duration": "--duration_t0si0"
35
35
  })
36
36
  );
37
37
  var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
@@ -20,19 +20,19 @@ var style = (
20
20
  /*__reshadow_css_start__*/
21
21
  (sstyled.insert(
22
22
  /*__inner_css_start__*/
23
- ".___STooltip_r10f7_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_r10f7_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_r10f7_gg_{display:flex;align-items:center}.___SDot_r10f7_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_r10f7_gg_.__color_r10f7_gg_{background-color:var(--color_r10f7);width:8px;height:8px;border-radius:50%}.___SFooter_r10f7_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);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))}",
23
+ ".___STooltip_1arzy_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_1arzy_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_1arzy_gg_{display:flex;align-items:center}.___SDot_1arzy_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1arzy_gg_.__color_1arzy_gg_{background-color:var(--color_1arzy);width:8px;height:8px;border-radius:50%}.___SFooter_1arzy_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);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))}",
24
24
  /*__inner_css_end__*/
25
- "r10f7_gg_"
25
+ "1arzy_gg_"
26
26
  ), /*__reshadow_css_end__*/
27
27
  {
28
- "__STooltip": "___STooltip_r10f7_gg_",
29
- "__STitle": "___STitle_r10f7_gg_",
30
- "__SDotGroup": "___SDotGroup_r10f7_gg_",
31
- "__SDot": "___SDot_r10f7_gg_",
32
- "__SDotCircle": "___SDotCircle_r10f7_gg_",
33
- "_color": "__color_r10f7_gg_",
34
- "--color": "--color_r10f7",
35
- "__SFooter": "___SFooter_r10f7_gg_"
28
+ "__STooltip": "___STooltip_1arzy_gg_",
29
+ "__STitle": "___STitle_1arzy_gg_",
30
+ "__SDotGroup": "___SDotGroup_1arzy_gg_",
31
+ "__SDot": "___SDot_1arzy_gg_",
32
+ "__SDotCircle": "___SDotCircle_1arzy_gg_",
33
+ "_color": "__color_1arzy_gg_",
34
+ "--color": "--color_1arzy",
35
+ "__SFooter": "___SFooter_1arzy_gg_"
36
36
  })
37
37
  );
38
38
  var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
package/lib/esm/Venn.mjs CHANGED
@@ -22,19 +22,19 @@ var style = (
22
22
  /*__reshadow_css_start__*/
23
23
  (sstyled.insert(
24
24
  /*__inner_css_start__*/
25
- ".___SCircle_fy99p_gg_,.___SIntersection_fy99p_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_fy99p_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_fy99p);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_fy99p_gg_:hover{fill-opacity:.7}}.___SCircle_fy99p_gg_.__color_fy99p_gg_{fill:var(--color_fy99p)}.___SCircle_fy99p_gg_.__pattern_fy99p_gg_.__color_fy99p_gg_{fill:var(--pattern_fy99p);fill-opacity:.7;stroke:var(--color_fy99p);stroke-width:1px}@media (hover:hover){.___SCircle_fy99p_gg_.__pattern_fy99p_gg_.__color_fy99p_gg_:hover{fill-opacity:.85}}.___SCircle_fy99p_gg_.__transparent_fy99p_gg_{opacity:.3}.___SIntersection_fy99p_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_fy99p_gg_:hover{fill-opacity:.1}}.___SIntersection_fy99p_gg_.__transparent_fy99p_gg_{opacity:.3}",
25
+ ".___SCircle_1uyj7_gg_,.___SIntersection_1uyj7_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1uyj7_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1uyj7);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1uyj7_gg_:hover{fill-opacity:.7}}.___SCircle_1uyj7_gg_.__color_1uyj7_gg_{fill:var(--color_1uyj7)}.___SCircle_1uyj7_gg_.__pattern_1uyj7_gg_.__color_1uyj7_gg_{fill:var(--pattern_1uyj7);fill-opacity:.7;stroke:var(--color_1uyj7);stroke-width:1px}@media (hover:hover){.___SCircle_1uyj7_gg_.__pattern_1uyj7_gg_.__color_1uyj7_gg_:hover{fill-opacity:.85}}.___SCircle_1uyj7_gg_.__transparent_1uyj7_gg_{opacity:.3}.___SIntersection_1uyj7_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1uyj7_gg_:hover{fill-opacity:.1}}.___SIntersection_1uyj7_gg_.__transparent_1uyj7_gg_{opacity:.3}",
26
26
  /*__inner_css_end__*/
27
- "fy99p_gg_"
27
+ "1uyj7_gg_"
28
28
  ), /*__reshadow_css_end__*/
29
29
  {
30
- "__SCircle": "___SCircle_fy99p_gg_",
31
- "_color": "__color_fy99p_gg_",
32
- "--color": "--color_fy99p",
33
- "_transparent": "__transparent_fy99p_gg_",
34
- "__SIntersection": "___SIntersection_fy99p_gg_",
35
- "--duration": "--duration_fy99p",
36
- "_pattern": "__pattern_fy99p_gg_",
37
- "--pattern": "--pattern_fy99p"
30
+ "__SCircle": "___SCircle_1uyj7_gg_",
31
+ "_color": "__color_1uyj7_gg_",
32
+ "--color": "--color_1uyj7",
33
+ "_transparent": "__transparent_1uyj7_gg_",
34
+ "__SIntersection": "___SIntersection_1uyj7_gg_",
35
+ "--duration": "--duration_1uyj7",
36
+ "_pattern": "__pattern_1uyj7_gg_",
37
+ "--pattern": "--pattern_1uyj7"
38
38
  })
39
39
  );
40
40
  var VennRoot = /* @__PURE__ */ (function(_Component) {
@@ -12,12 +12,12 @@ var styles = (
12
12
  /*__reshadow_css_start__*/
13
13
  (sstyled.insert(
14
14
  /*__inner_css_start__*/
15
- ".___SPlotA11yModule_1vwo8_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1vwo8_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}",
15
+ ".___SPlotA11yModule_mhxh5_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_mhxh5_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}",
16
16
  /*__inner_css_end__*/
17
- "1vwo8_gg_"
17
+ "mhxh5_gg_"
18
18
  ), /*__reshadow_css_end__*/
19
19
  {
20
- "__SPlotA11yModule": "___SPlotA11yModule_1vwo8_gg_"
20
+ "__SPlotA11yModule": "___SPlotA11yModule_mhxh5_gg_"
21
21
  })
22
22
  );
23
23
  var globalWasFocused = false;
@@ -15,12 +15,12 @@ var styles = (
15
15
  /*__reshadow_css_start__*/
16
16
  (sstyled.insert(
17
17
  /*__inner_css_start__*/
18
- ".___SPlotA11yView_1qted_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_1qted_gg_:focus,.___SPlotA11yView_1qted_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_1qted_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1qted_gg_ table,.___SPlotA11yView_1qted_gg_ td,.___SPlotA11yView_1qted_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}",
18
+ ".___SPlotA11yView_in07l_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_in07l_gg_:focus,.___SPlotA11yView_in07l_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_in07l_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_in07l_gg_ table,.___SPlotA11yView_in07l_gg_ td,.___SPlotA11yView_in07l_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}",
19
19
  /*__inner_css_end__*/
20
- "1qted_gg_"
20
+ "in07l_gg_"
21
21
  ), /*__reshadow_css_end__*/
22
22
  {
23
- "__SPlotA11yView": "___SPlotA11yView_1qted_gg_"
23
+ "__SPlotA11yView": "___SPlotA11yView_in07l_gg_"
24
24
  })
25
25
  );
26
26
  var PlotA11yView = function PlotA11yView2(_ref3) {
@@ -18,14 +18,14 @@ var style = (
18
18
  /*__reshadow_css_start__*/
19
19
  (sstyled.insert(
20
20
  /*__inner_css_start__*/
21
- ".___SLegendFlex_1huw2_gg_._direction_row_1huw2_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1huw2_gg_._direction_column_1huw2_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
21
+ ".___SLegendFlex_13qix_gg_._direction_row_13qix_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_13qix_gg_._direction_column_13qix_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
22
22
  /*__inner_css_end__*/
23
- "1huw2_gg_"
23
+ "13qix_gg_"
24
24
  ), /*__reshadow_css_end__*/
25
25
  {
26
- "__SLegendFlex": "___SLegendFlex_1huw2_gg_",
27
- "_direction_row": "_direction_row_1huw2_gg_",
28
- "_direction_column": "_direction_column_1huw2_gg_"
26
+ "__SLegendFlex": "___SLegendFlex_13qix_gg_",
27
+ "_direction_row": "_direction_row_13qix_gg_",
28
+ "_direction_column": "_direction_column_13qix_gg_"
29
29
  })
30
30
  );
31
31
  var LegendFlexRoot = /* @__PURE__ */ (function(_BaseLegend) {
@@ -21,27 +21,27 @@ var style = (
21
21
  /*__reshadow_css_start__*/
22
22
  (sstyled.insert(
23
23
  /*__inner_css_start__*/
24
- '.___SLegendItem_pmd7n_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_pmd7n_gg_:hover{cursor:pointer}.___SLegendItem_pmd7n_gg_.__disabled_pmd7n_gg_:hover{cursor:default}}.___SPointShape_pmd7n_gg_.__color_pmd7n_gg_{background-color:var(--color_pmd7n);margin-right:8px;flex-shrink:0}.___SPointShape_pmd7n_gg_._shape_Circle_pmd7n_gg_._size_l_pmd7n_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_pmd7n_gg_._shape_Circle_pmd7n_gg_._size_m_pmd7n_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_pmd7n_gg_._shape_Line_pmd7n_gg_._size_l_pmd7n_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_pmd7n_gg_._shape_Line_pmd7n_gg_._size_m_pmd7n_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_pmd7n_gg_._shape_Square_pmd7n_gg_._size_l_pmd7n_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_pmd7n_gg_._shape_Square_pmd7n_gg_._size_m_pmd7n_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_pmd7n_gg_._shape_Pattern_pmd7n_gg_{background-color:transparent;margin-right:4px}.___SIcon_pmd7n_gg_{line-height:0;margin-right:4px}.___SIcon_pmd7n_gg_._size_l_pmd7n_gg_{margin-top:4px}.___SIcon_pmd7n_gg_._size_m_pmd7n_gg_{margin-top:2px}.___SLabel_pmd7n_gg_{min-width:0}.___SAdditionalLabel_pmd7n_gg_._size_l_pmd7n_gg_,.___SCount_pmd7n_gg_._size_l_pmd7n_gg_,.___SLabel_pmd7n_gg_._size_l_pmd7n_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_pmd7n_gg_._size_m_pmd7n_gg_,.___SCount_pmd7n_gg_._size_m_pmd7n_gg_,.___SLabel_pmd7n_gg_._size_m_pmd7n_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_pmd7n_gg_,.___SCount_pmd7n_gg_{margin-left:4px}.___SAdditionalLabel_pmd7n_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_pmd7n_gg_::before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_pmd7n_gg_._size_l_pmd7n_gg_::before{margin-top:10px}.___SAdditionalLabel_pmd7n_gg_._size_m_pmd7n_gg_::before{margin-top:8px}.___SPatternSymbol_pmd7n_gg_{transform:scale(.8)}',
24
+ '.___SLegendItem_1mf3o_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1mf3o_gg_:hover{cursor:pointer}.___SLegendItem_1mf3o_gg_.__disabled_1mf3o_gg_:hover{cursor:default}}.___SPointShape_1mf3o_gg_.__color_1mf3o_gg_{background-color:var(--color_1mf3o);margin-right:8px;flex-shrink:0}.___SPointShape_1mf3o_gg_._shape_Circle_1mf3o_gg_._size_l_1mf3o_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_1mf3o_gg_._shape_Circle_1mf3o_gg_._size_m_1mf3o_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_1mf3o_gg_._shape_Line_1mf3o_gg_._size_l_1mf3o_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_1mf3o_gg_._shape_Line_1mf3o_gg_._size_m_1mf3o_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_1mf3o_gg_._shape_Square_1mf3o_gg_._size_l_1mf3o_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_1mf3o_gg_._shape_Square_1mf3o_gg_._size_m_1mf3o_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_1mf3o_gg_._shape_Pattern_1mf3o_gg_{background-color:transparent;margin-right:4px}.___SIcon_1mf3o_gg_{line-height:0;margin-right:4px}.___SIcon_1mf3o_gg_._size_l_1mf3o_gg_{margin-top:4px}.___SIcon_1mf3o_gg_._size_m_1mf3o_gg_{margin-top:2px}.___SLabel_1mf3o_gg_{min-width:0}.___SAdditionalLabel_1mf3o_gg_._size_l_1mf3o_gg_,.___SCount_1mf3o_gg_._size_l_1mf3o_gg_,.___SLabel_1mf3o_gg_._size_l_1mf3o_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_1mf3o_gg_._size_m_1mf3o_gg_,.___SCount_1mf3o_gg_._size_m_1mf3o_gg_,.___SLabel_1mf3o_gg_._size_m_1mf3o_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_1mf3o_gg_,.___SCount_1mf3o_gg_{margin-left:4px}.___SAdditionalLabel_1mf3o_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1mf3o_gg_::before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_1mf3o_gg_._size_l_1mf3o_gg_::before{margin-top:10px}.___SAdditionalLabel_1mf3o_gg_._size_m_1mf3o_gg_::before{margin-top:8px}.___SPatternSymbol_1mf3o_gg_{transform:scale(.8)}',
25
25
  /*__inner_css_end__*/
26
- "pmd7n_gg_"
26
+ "1mf3o_gg_"
27
27
  ), /*__reshadow_css_end__*/
28
28
  {
29
- "__SLegendItem": "___SLegendItem_pmd7n_gg_",
30
- "_disabled": "__disabled_pmd7n_gg_",
31
- "__SPointShape": "___SPointShape_pmd7n_gg_",
32
- "_color": "__color_pmd7n_gg_",
33
- "--color": "--color_pmd7n",
34
- "_shape_Circle": "_shape_Circle_pmd7n_gg_",
35
- "_size_l": "_size_l_pmd7n_gg_",
36
- "_size_m": "_size_m_pmd7n_gg_",
37
- "_shape_Line": "_shape_Line_pmd7n_gg_",
38
- "_shape_Square": "_shape_Square_pmd7n_gg_",
39
- "_shape_Pattern": "_shape_Pattern_pmd7n_gg_",
40
- "__SIcon": "___SIcon_pmd7n_gg_",
41
- "__SLabel": "___SLabel_pmd7n_gg_",
42
- "__SAdditionalLabel": "___SAdditionalLabel_pmd7n_gg_",
43
- "__SCount": "___SCount_pmd7n_gg_",
44
- "__SPatternSymbol": "___SPatternSymbol_pmd7n_gg_"
29
+ "__SLegendItem": "___SLegendItem_1mf3o_gg_",
30
+ "_disabled": "__disabled_1mf3o_gg_",
31
+ "__SPointShape": "___SPointShape_1mf3o_gg_",
32
+ "_color": "__color_1mf3o_gg_",
33
+ "--color": "--color_1mf3o",
34
+ "_shape_Circle": "_shape_Circle_1mf3o_gg_",
35
+ "_size_l": "_size_l_1mf3o_gg_",
36
+ "_size_m": "_size_m_1mf3o_gg_",
37
+ "_shape_Line": "_shape_Line_1mf3o_gg_",
38
+ "_shape_Square": "_shape_Square_1mf3o_gg_",
39
+ "_shape_Pattern": "_shape_Pattern_1mf3o_gg_",
40
+ "__SIcon": "___SIcon_1mf3o_gg_",
41
+ "__SLabel": "___SLabel_1mf3o_gg_",
42
+ "__SAdditionalLabel": "___SAdditionalLabel_1mf3o_gg_",
43
+ "__SCount": "___SCount_1mf3o_gg_",
44
+ "__SPatternSymbol": "___SPatternSymbol_1mf3o_gg_"
45
45
  })
46
46
  );
47
47
  var enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
@@ -178,7 +178,7 @@ function Shape(props) {
178
178
  return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Checkbox, _ref9.cn("Checkbox", {
179
179
  "size": size,
180
180
  "checked": checked,
181
- "theme": checked ? color : void 0,
181
+ "theme": color,
182
182
  "onChange": onChange,
183
183
  "onFocus": onFocus,
184
184
  "onBlur": onBlur,
@@ -14,16 +14,16 @@ var style = (
14
14
  /*__reshadow_css_start__*/
15
15
  (sstyled.insert(
16
16
  /*__inner_css_start__*/
17
- '.___SLegendTable_1tgwv_gg_.__columns-count_1tgwv_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_1tgwv_gg_._size_l_1tgwv_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_1tgwv_gg_._size_m_1tgwv_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}',
17
+ '.___SLegendTable_8uz8w_gg_.__columns-count_8uz8w_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_8uz8w_gg_._size_l_8uz8w_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_8uz8w_gg_._size_m_8uz8w_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}',
18
18
  /*__inner_css_end__*/
19
- "1tgwv_gg_"
19
+ "8uz8w_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
22
- "__SLegendTable": "___SLegendTable_1tgwv_gg_",
23
- "_columns-count": "__columns-count_1tgwv_gg_",
24
- "__SColumnItem": "___SColumnItem_1tgwv_gg_",
25
- "_size_l": "_size_l_1tgwv_gg_",
26
- "_size_m": "_size_m_1tgwv_gg_"
22
+ "__SLegendTable": "___SLegendTable_8uz8w_gg_",
23
+ "_columns-count": "__columns-count_8uz8w_gg_",
24
+ "__SColumnItem": "___SColumnItem_8uz8w_gg_",
25
+ "_size_l": "_size_l_8uz8w_gg_",
26
+ "_size_m": "_size_m_8uz8w_gg_"
27
27
  })
28
28
  );
29
29
  var LegendTableRoot = /* @__PURE__ */ (function(_BaseLegend) {
@@ -47,7 +47,7 @@ export type AriaNameProps = Intergalactic.RequireAtLeastOne<{
47
47
  'aria-labelledby'?: string;
48
48
  'title'?: string;
49
49
  }>;
50
- export type BaseChartProps<T extends ListData | ObjectData> = FlexProps & AriaNameProps & {
50
+ export type BaseChartProps<T extends ListData | ObjectData> = FlexProps & {
51
51
  /**
52
52
  * Chart data. For all charts except Donut(Pie), Radar and Venn should be an Array
53
53
  */
@@ -142,25 +142,30 @@ export type BaseChartProps<T extends ListData | ObjectData> = FlexProps & AriaNa
142
142
  * Animations duration, set 0 to disable animations
143
143
  */
144
144
  duration?: number;
145
- } /**
146
- * By default, we show the Legend for all charts with more the one data item.
147
- * For hide the Legend, you should set showLegend prop to `false`.
148
- */ & ({
149
145
  /**
150
- * Don't show legend
151
- */
146
+ * Flag to show/hide legend
147
+ */
148
+ showLegend?: boolean;
149
+ /**
150
+ * Props for Legend
151
+ */
152
+ legendProps?: Partial<BaseLegendProps>;
153
+ } & ({
154
+ /**
155
+ * Don't show legend
156
+ */
152
157
  showLegend?: false;
153
158
  legendProps?: never;
154
159
  } | {
155
160
  /**
156
- * By default (if showLegend don't set), for one data item on chart,
157
- * Legend component will be hide, and show for more then 1 data item.
158
- * If set `true` - Legend component will show always.
159
- */
161
+ * By default (if showLegend don't set), for one data item on chart,
162
+ * Legend component will be hide, and show for more then 1 data item.
163
+ * If set `true` - Legend component will show always.
164
+ */
160
165
  showLegend?: true;
161
166
  /**
162
- * Props for Legend
163
- */
167
+ * Props for Legend
168
+ */
164
169
  legendProps?: Partial<BaseLegendProps>;
165
170
  });
166
171
  type LegendDataMap<T extends 'Flex' | 'Table'> = Record<LegendItemKey, {
@@ -2,7 +2,7 @@ import type { Intergalactic } from '@semcore/core';
2
2
  import type { Flex } from '@semcore/flex-box';
3
3
  import type { ScaleLinear, ScaleTime } from 'd3-scale';
4
4
  import type { CurveFactory } from 'd3-shape';
5
- import type { BaseChartProps } from './AbstractChart.type';
5
+ import type { AriaNameProps, BaseChartProps } from './AbstractChart.type';
6
6
  import type { interpolateValue } from '../../utils';
7
7
  export type AreaChartData = Array<Record<string, number | typeof interpolateValue | Date>>;
8
8
  export type AreaChartProps = BaseChartProps<AreaChartData> & {
@@ -21,4 +21,6 @@ export type AreaChartProps = BaseChartProps<AreaChartData> & {
21
21
  /** Callback triggered when a user clicks on a chart at a position corresponding to a data item */
22
22
  onClickArea?: (index: number, event: React.SyntheticEvent) => void;
23
23
  };
24
- export type AreaChartType = Intergalactic.Component<typeof Flex, AreaChartProps>;
24
+ export type AreaChartType = Intergalactic.Component<typeof Flex, Intergalactic.InternalTypings.EfficientOmit<AreaChartProps, 'showLegend'> & {
25
+ showLegend?: boolean;
26
+ } & AriaNameProps>;
@@ -2,11 +2,11 @@ import type { Intergalactic } from '@semcore/core';
2
2
  import type { Flex } from '@semcore/flex-box';
3
3
  import type { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';
4
4
  import type React from 'react';
5
- import type { BaseChartProps } from './AbstractChart.type';
5
+ import type { AriaNameProps, BaseChartProps } from './AbstractChart.type';
6
6
  import type { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';
7
7
  type TrendItem = {
8
- x: number;
9
- y: number;
8
+ x: number | string;
9
+ y: number | string;
10
10
  };
11
11
  type BarKey = string;
12
12
  export type BarChartData = Array<Record<BarKey, string | number | Date>>;
@@ -26,5 +26,5 @@ export type BarChartProps = BaseChartProps<BarChartData> & {
26
26
  /** Handle click by Bar. */
27
27
  onClickBar?: (barItem: number, barKey: BarKey, e: React.SyntheticEvent) => void;
28
28
  };
29
- export type BarChartType = Intergalactic.Component<typeof Flex, BarChartProps>;
29
+ export type BarChartType = Intergalactic.Component<typeof Flex, BarChartProps & AriaNameProps>;
30
30
  export {};
@@ -100,6 +100,7 @@ export * from './component/Chart/AbstractChart.type';
100
100
  export * from './component/Chart/LineChart.type';
101
101
  export * from './component/Chart/BarChart.type';
102
102
  export * from './component/Chart/HistogramChart.type';
103
+ export * from './component/Chart/CompactHorizontalBarChart.type';
103
104
  export * from './component/Chart/ScatterPlotChart.type';
104
105
  export * from './component/Chart/AreaChart.type';
105
106
  export * from './component/Chart/BubbleChart.type';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/d3-chart",
3
3
  "description": "Semrush D3 Chart Component",
4
- "version": "16.4.0",
4
+ "version": "16.4.1-prerelease.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.mjs",
7
7
  "typings": "lib/types/index.d.ts",
@@ -16,10 +16,10 @@
16
16
  "dependencies": {
17
17
  "@formatjs/intl": "2.3.0",
18
18
  "@semcore/animation": "16.0.7",
19
- "@semcore/checkbox": "16.2.1",
19
+ "@semcore/checkbox": "16.2.2-prerelease.0",
20
20
  "@semcore/divider": "16.0.11",
21
21
  "@semcore/flex-box": "16.0.11",
22
- "@semcore/icon": "16.7.3",
22
+ "@semcore/icon": "16.7.3-prerelease.0",
23
23
  "@semcore/popper": "16.0.11",
24
24
  "@semcore/typography": "16.3.2",
25
25
  "@types/d3-shape": "^3.1.7",
@@ -35,7 +35,7 @@
35
35
  "hoist-non-react-statics": "3.3.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@semcore/base-components": "^16.0.0"
38
+ "@semcore/base-components": "^16.4.2-prerelease.0"
39
39
  },
40
40
  "repository": {
41
41
  "type": "git",
@@ -48,15 +48,15 @@
48
48
  "@types/d3-scale": "^4.0.9",
49
49
  "@types/d3-transition": "^3.0.9",
50
50
  "@semcore/core": "16.5.1",
51
- "@semcore/base-components": "16.4.1",
51
+ "@semcore/base-components": "16.4.2-prerelease.0",
52
+ "@semcore/button": "16.0.12",
52
53
  "@semcore/checkbox": "16.2.1",
53
54
  "@semcore/divider": "16.0.11",
54
- "@semcore/dropdown-menu": "16.1.14",
55
- "@semcore/button": "16.0.12",
56
55
  "@semcore/ellipsis": "16.0.12",
57
56
  "@semcore/testing-utils": "1.0.0",
57
+ "@semcore/dropdown-menu": "16.2.0-prerelease.0",
58
58
  "@semcore/typography": "16.3.2",
59
- "@semcore/icon": "16.7.3"
59
+ "@semcore/icon": "16.7.3-prerelease.0"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "pnpm semcore-builder --source=js,ts && pnpm vite build"