@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/cjs/Line.js CHANGED
@@ -23,17 +23,17 @@ var _Dots = _interopRequireDefault(require("./Dots"));
23
23
  var _Pattern = require("./Pattern");
24
24
  var _utils = require("./utils");
25
25
  /*!__reshadow-styles__:"./style/line.shadow.css"*/
26
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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)}", /*__inner_css_end__*/"jqqyf_gg_"),
26
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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)}", /*__inner_css_end__*/"iam2f_gg_"),
27
27
  /*__reshadow_css_end__*/
28
28
  {
29
- "__SLine": "___SLine_jqqyf_gg_",
30
- "--duration": "--duration_jqqyf",
31
- "_color": "__color_jqqyf_gg_",
32
- "--color": "--color_jqqyf",
33
- "_hide": "__hide_jqqyf_gg_",
34
- "_transparent": "__transparent_jqqyf_gg_",
35
- "__SNull": "___SNull_jqqyf_gg_",
36
- "__SLineArea": "___SLineArea_jqqyf_gg_"
29
+ "__SLine": "___SLine_iam2f_gg_",
30
+ "--duration": "--duration_iam2f",
31
+ "_color": "__color_iam2f_gg_",
32
+ "--color": "--color_iam2f",
33
+ "_hide": "__hide_iam2f_gg_",
34
+ "_transparent": "__transparent_iam2f_gg_",
35
+ "__SNull": "___SNull_iam2f_gg_",
36
+ "__SLineArea": "___SLineArea_iam2f_gg_"
37
37
  });
38
38
  var LineRoot = /*#__PURE__*/function (_Component) {
39
39
  function LineRoot() {
package/lib/cjs/Plot.js CHANGED
@@ -24,11 +24,11 @@ var _PlotA11yModule = require("./a11y/PlotA11yModule");
24
24
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
25
25
  var _utils = require("./utils");
26
26
  /*!__reshadow-styles__:"./style/plot.shadow.css"*/
27
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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)}", /*__inner_css_end__*/"irjhg_gg_"),
27
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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)}", /*__inner_css_end__*/"t1tww_gg_"),
28
28
  /*__reshadow_css_end__*/
29
29
  {
30
- "__SPlot": "___SPlot_irjhg_gg_",
31
- "_keyboardFocused": "__keyboardFocused_irjhg_gg_"
30
+ "__SPlot": "___SPlot_t1tww_gg_",
31
+ "_keyboardFocused": "__keyboardFocused_t1tww_gg_"
32
32
  });
33
33
  var PlotRoot = /*#__PURE__*/function (_Component) {
34
34
  function PlotRoot(props) {
package/lib/cjs/Radar.js CHANGED
@@ -28,27 +28,27 @@ var _Pattern = require("./Pattern");
28
28
  var _Tooltip = _interopRequireDefault(require("./Tooltip"));
29
29
  var _utils = require("./utils");
30
30
  /*!__reshadow-styles__:"./style/radar.shadow.css"*/
31
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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))}", /*__inner_css_end__*/"22h5e_gg_"),
31
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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))}", /*__inner_css_end__*/"f2n8f_gg_"),
32
32
  /*__reshadow_css_end__*/
33
33
  {
34
- "__SAxis": "___SAxis_22h5e_gg_",
35
- "__SAxisLine": "___SAxisLine_22h5e_gg_",
36
- "__SAxisTick": "___SAxisTick_22h5e_gg_",
37
- "_active": "__active_22h5e_gg_",
38
- "__SAxisLabel": "___SAxisLabel_22h5e_gg_",
39
- "_xDirection": "__xDirection_22h5e_gg_",
40
- "--xDirection": "--xDirection_22h5e",
41
- "_yDirection": "__yDirection_22h5e_gg_",
42
- "--yDirection": "--yDirection_22h5e",
43
- "__SPolygon": "___SPolygon_22h5e_gg_",
44
- "_color": "__color_22h5e_gg_",
45
- "--color": "--color_22h5e",
46
- "_pattern": "__pattern_22h5e_gg_",
47
- "--pattern": "--pattern_22h5e",
48
- "__SPolygonDot": "___SPolygonDot_22h5e_gg_",
49
- "_transparent": "__transparent_22h5e_gg_",
50
- "__SPolygonLine": "___SPolygonLine_22h5e_gg_",
51
- "__SPieRect": "___SPieRect_22h5e_gg_"
34
+ "__SAxis": "___SAxis_f2n8f_gg_",
35
+ "__SAxisLine": "___SAxisLine_f2n8f_gg_",
36
+ "__SAxisTick": "___SAxisTick_f2n8f_gg_",
37
+ "_active": "__active_f2n8f_gg_",
38
+ "__SAxisLabel": "___SAxisLabel_f2n8f_gg_",
39
+ "_xDirection": "__xDirection_f2n8f_gg_",
40
+ "--xDirection": "--xDirection_f2n8f",
41
+ "_yDirection": "__yDirection_f2n8f_gg_",
42
+ "--yDirection": "--yDirection_f2n8f",
43
+ "__SPolygon": "___SPolygon_f2n8f_gg_",
44
+ "_color": "__color_f2n8f_gg_",
45
+ "--color": "--color_f2n8f",
46
+ "_pattern": "__pattern_f2n8f_gg_",
47
+ "--pattern": "--pattern_f2n8f",
48
+ "__SPolygonDot": "___SPolygonDot_f2n8f_gg_",
49
+ "_transparent": "__transparent_f2n8f_gg_",
50
+ "__SPolygonLine": "___SPolygonLine_f2n8f_gg_",
51
+ "__SPieRect": "___SPieRect_f2n8f_gg_"
52
52
  });
53
53
  var clampAngle = function clampAngle(angle) {
54
54
  angle = angle % (2 * Math.PI);
@@ -26,20 +26,20 @@ var _Pattern = require("./Pattern");
26
26
  var _utils = require("./utils");
27
27
  var _excluded = ["data"];
28
28
  /*!__reshadow-styles__:"./style/radial-tree.shadow.css"*/
29
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}}", /*__inner_css_end__*/"1c8r4_gg_"),
29
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}}", /*__inner_css_end__*/"d77f5_gg_"),
30
30
  /*__reshadow_css_end__*/
31
31
  {
32
- "__SRadian": "___SRadian_1c8r4_gg_",
33
- "__SLine": "___SLine_1c8r4_gg_",
34
- "_stroke": "__stroke_1c8r4_gg_",
35
- "--stroke": "--stroke_1c8r4",
36
- "_transparent": "__transparent_1c8r4_gg_",
37
- "__SCap": "___SCap_1c8r4_gg_",
38
- "_pattern": "__pattern_1c8r4_gg_",
39
- "__SIcon": "___SIcon_1c8r4_gg_",
40
- "__SLabel": "___SLabel_1c8r4_gg_",
41
- "--color": "--color_1c8r4",
42
- "__SLineCap": "___SLineCap_1c8r4_gg_"
32
+ "__SRadian": "___SRadian_d77f5_gg_",
33
+ "__SLine": "___SLine_d77f5_gg_",
34
+ "_stroke": "__stroke_d77f5_gg_",
35
+ "--stroke": "--stroke_d77f5",
36
+ "_transparent": "__transparent_d77f5_gg_",
37
+ "__SCap": "___SCap_d77f5_gg_",
38
+ "_pattern": "__pattern_d77f5_gg_",
39
+ "__SIcon": "___SIcon_d77f5_gg_",
40
+ "__SLabel": "___SLabel_d77f5_gg_",
41
+ "--color": "--color_d77f5",
42
+ "__SLineCap": "___SLineCap_d77f5_gg_"
43
43
  });
44
44
  var baseAngle = -Math.PI / 2; // The top vertical line
45
45
 
@@ -18,20 +18,20 @@ var _react = _interopRequireDefault(require("react"));
18
18
  var _createElement = _interopRequireDefault(require("./createElement"));
19
19
  var _utils = require("./utils");
20
20
  /*!__reshadow-styles__:"./style/reference.shadow.css"*/
21
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"1kaw4_gg_"),
21
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"jnzg5_gg_"),
22
22
  /*__reshadow_css_end__*/
23
23
  {
24
- "__SReferenceLine": "___SReferenceLine_1kaw4_gg_",
25
- "__STitle": "___STitle_1kaw4_gg_",
26
- "--transform-origin": "--transform-origin_1kaw4",
27
- "_position_top": "_position_top_1kaw4_gg_",
28
- "_position_bottom": "_position_bottom_1kaw4_gg_",
29
- "_position_right": "_position_right_1kaw4_gg_",
30
- "_position_left": "_position_left_1kaw4_gg_",
31
- "__SBackground": "___SBackground_1kaw4_gg_",
32
- "__SStripes": "___SStripes_1kaw4_gg_",
33
- "--fill": "--fill_1kaw4",
34
- "__SStripesPatternPath": "___SStripesPatternPath_1kaw4_gg_"
24
+ "__SReferenceLine": "___SReferenceLine_jnzg5_gg_",
25
+ "__STitle": "___STitle_jnzg5_gg_",
26
+ "--transform-origin": "--transform-origin_jnzg5",
27
+ "_position_top": "_position_top_jnzg5_gg_",
28
+ "_position_bottom": "_position_bottom_jnzg5_gg_",
29
+ "_position_right": "_position_right_jnzg5_gg_",
30
+ "_position_left": "_position_left_jnzg5_gg_",
31
+ "__SBackground": "___SBackground_jnzg5_gg_",
32
+ "__SStripes": "___SStripes_jnzg5_gg_",
33
+ "--fill": "--fill_jnzg5",
34
+ "__SStripesPatternPath": "___SStripesPatternPath_jnzg5_gg_"
35
35
  });
36
36
  var side2direction = {
37
37
  left: 'vertical',
@@ -22,17 +22,17 @@ var _Pattern = require("./Pattern");
22
22
  var _Tooltip = _interopRequireDefault(require("./Tooltip"));
23
23
  var _utils = require("./utils");
24
24
  /*!__reshadow-styles__:"./style/scatterplot.shadow.css"*/
25
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"6iqqd_gg_"),
25
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"t0si0_gg_"),
26
26
  /*__reshadow_css_end__*/
27
27
  {
28
- "__SScatterPlot": "___SScatterPlot_6iqqd_gg_",
29
- "_color": "__color_6iqqd_gg_",
30
- "--color": "--color_6iqqd",
31
- "_pattern": "__pattern_6iqqd_gg_",
32
- "--pattern": "--pattern_6iqqd",
33
- "_transparent": "__transparent_6iqqd_gg_",
34
- "__SValue": "___SValue_6iqqd_gg_",
35
- "--duration": "--duration_6iqqd"
28
+ "__SScatterPlot": "___SScatterPlot_t0si0_gg_",
29
+ "_color": "__color_t0si0_gg_",
30
+ "--color": "--color_t0si0",
31
+ "_pattern": "__pattern_t0si0_gg_",
32
+ "--pattern": "--pattern_t0si0",
33
+ "_transparent": "__transparent_t0si0_gg_",
34
+ "__SValue": "___SValue_t0si0_gg_",
35
+ "--duration": "--duration_t0si0"
36
36
  });
37
37
  var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
38
38
  function ScatterPlotRoot() {
@@ -23,17 +23,17 @@ var _Pattern = require("./Pattern");
23
23
  var _utils = require("./utils");
24
24
  var _excluded = ["Children", "children", "tag", "forcedAdvancedMode", "onClick"];
25
25
  /*!__reshadow-styles__:"./style/tooltip.shadow.css"*/
26
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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))}", /*__inner_css_end__*/"r10f7_gg_"),
26
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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))}", /*__inner_css_end__*/"1arzy_gg_"),
27
27
  /*__reshadow_css_end__*/
28
28
  {
29
- "__STooltip": "___STooltip_r10f7_gg_",
30
- "__STitle": "___STitle_r10f7_gg_",
31
- "__SDotGroup": "___SDotGroup_r10f7_gg_",
32
- "__SDot": "___SDot_r10f7_gg_",
33
- "__SDotCircle": "___SDotCircle_r10f7_gg_",
34
- "_color": "__color_r10f7_gg_",
35
- "--color": "--color_r10f7",
36
- "__SFooter": "___SFooter_r10f7_gg_"
29
+ "__STooltip": "___STooltip_1arzy_gg_",
30
+ "__STitle": "___STitle_1arzy_gg_",
31
+ "__SDotGroup": "___SDotGroup_1arzy_gg_",
32
+ "__SDot": "___SDot_1arzy_gg_",
33
+ "__SDotCircle": "___SDotCircle_1arzy_gg_",
34
+ "_color": "__color_1arzy_gg_",
35
+ "--color": "--color_1arzy",
36
+ "__SFooter": "___SFooter_1arzy_gg_"
37
37
  });
38
38
  /**
39
39
  * `TooltipDotRenderContext` is a hack to bypass problem that getDotProps doesn't work for D3 tooltip.
package/lib/cjs/Venn.js CHANGED
@@ -25,17 +25,17 @@ var _Pattern = require("./Pattern");
25
25
  var _Tooltip = _interopRequireDefault(require("./Tooltip"));
26
26
  var _utils = require("./utils");
27
27
  /*!__reshadow-styles__:"./style/venn.shadow.css"*/
28
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"fy99p_gg_"),
28
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"1uyj7_gg_"),
29
29
  /*__reshadow_css_end__*/
30
30
  {
31
- "__SCircle": "___SCircle_fy99p_gg_",
32
- "_color": "__color_fy99p_gg_",
33
- "--color": "--color_fy99p",
34
- "_transparent": "__transparent_fy99p_gg_",
35
- "__SIntersection": "___SIntersection_fy99p_gg_",
36
- "--duration": "--duration_fy99p",
37
- "_pattern": "__pattern_fy99p_gg_",
38
- "--pattern": "--pattern_fy99p"
31
+ "__SCircle": "___SCircle_1uyj7_gg_",
32
+ "_color": "__color_1uyj7_gg_",
33
+ "--color": "--color_1uyj7",
34
+ "_transparent": "__transparent_1uyj7_gg_",
35
+ "__SIntersection": "___SIntersection_1uyj7_gg_",
36
+ "--duration": "--duration_1uyj7",
37
+ "_pattern": "__pattern_1uyj7_gg_",
38
+ "--pattern": "--pattern_1uyj7"
39
39
  });
40
40
  var VennRoot = /*#__PURE__*/function (_Component) {
41
41
  function VennRoot() {
@@ -16,10 +16,10 @@ var _react = _interopRequireDefault(require("react"));
16
16
  var _locale = require("./locale");
17
17
  var _intergalacticDynamicLocales = require("./translations/module/__intergalactic-dynamic-locales");
18
18
  /*!__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
19
- var styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"1vwo8_gg_"),
19
+ var styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"mhxh5_gg_"),
20
20
  /*__reshadow_css_end__*/
21
21
  {
22
- "__SPlotA11yModule": "___SPlotA11yModule_1vwo8_gg_"
22
+ "__SPlotA11yModule": "___SPlotA11yModule_mhxh5_gg_"
23
23
  });
24
24
  var globalWasFocused = false;
25
25
  var globalNavWithKeyboard = false;
@@ -18,10 +18,10 @@ var _intl = require("./intl");
18
18
  var _summarize = require("./summarize");
19
19
  var _intergalacticDynamicLocales = require("./translations/view/__intergalactic-dynamic-locales");
20
20
  /*!__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
21
- var styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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)}", /*__inner_css_end__*/"1qted_gg_"),
21
+ var styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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)}", /*__inner_css_end__*/"in07l_gg_"),
22
22
  /*__reshadow_css_end__*/
23
23
  {
24
- "__SPlotA11yView": "___SPlotA11yView_1qted_gg_"
24
+ "__SPlotA11yView": "___SPlotA11yView_in07l_gg_"
25
25
  });
26
26
  var PlotA11yView = exports.PlotA11yView = function PlotA11yView(_ref3) {
27
27
  var _ref = arguments[0],
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractChart.type.js","names":[],"sources":["../../../../src/component/Chart/AbstractChart.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { FlexProps } from '@semcore/flex-box';\nimport type Icon from '@semcore/icon';\nimport type React from 'react';\n\nimport type { PatternsConfig } from '../../Pattern';\n// @ts-ignore\nimport type { PlotSummarizerConfig } from '../../Plot';\nimport type { PlotEventEmitter } from '../../utils';\nimport type { BaseChartLegendProps } from '../ChartLegend/BaseLegend.type';\nimport type { TrendProps } from '../ChartLegend/LegendFlex/LegendFlex.type';\nimport type { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';\n\nexport type BaseLegendProps = BaseChartLegendProps & {\n /**\n * Disable hover (for transition items legend of each not hovered)\n */\n disableHoverItems?: boolean;\n /**\n * Disable selectable of data items by checkboxes in Legend\n */\n disableSelectItems?: boolean;\n} & (\n | (TrendProps & {\n /**\n * How to render Legend - Flex view. Just list of legend items\n */\n legendType?: never | 'Flex';\n /**\n * Config for Legend items\n */\n legendMap?: LegendDataMap<'Flex'>;\n })\n | {\n /**\n * How to render Legend - Table view. Table of legend items with some additional information in columns\n */\n legendType: 'Table';\n /**\n * Config for Legend items\n */\n legendMap?: LegendDataMap<'Table'>;\n }\n );\n\nexport type ObjectData = Record<string, unknown>;\nexport type ListData = ObjectData[];\n\n/**\n * Chart, Legend must have an accessible names (aria-name).\n * It should describe chart or legend content.\n */\nexport type AriaNameProps = Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n}>;\n\nexport type BaseChartProps<T extends ListData | ObjectData> = FlexProps &\n AriaNameProps & {\n /**\n * Chart data. For all charts except Donut(Pie), Radar and Venn should be an Array\n */\n data: T;\n /**\n * Width of plot\n */\n plotWidth: number;\n /**\n * Height of plot\n */\n plotHeight: number;\n\n /** Enables charts patterns that enhances charts accessibility */\n patterns?: PatternsConfig;\n /**\n * Margin (for Y axis points) from left side of chart container to Y axis\n */\n marginY?: number;\n /**\n * Margin (for X axis points) from bottom of chart container to X axis\n */\n marginX?: number;\n /**\n * invert axis and show horizontal charts (only for Bars!)\n */\n invertAxis?: boolean;\n\n /**\n * Show X axis\n * @default true (for charts with axis: Area, Line, Bar, ScatterPlot, ...)\n */\n showXAxis?: boolean;\n /**\n * Show Y axis\n * @default true (for charts with axis: Area, Line, Bar, ScatterPlot, ...)\n */\n showYAxis?: boolean;\n /**\n * Map with colors for data items\n */\n colorMap?: Record<string, string>;\n /**\n * Show tooltip's.\n * @default true\n */\n showTooltip?: boolean;\n /**\n * Show sum of values for selected point in tooltip\n */\n showTotalInTooltip?: boolean;\n /**\n * Scale for xAxis (see more in d3-scale)\n */\n xScale?: unknown;\n /**\n * Scale for yAxis (see more in d3-scale)\n */\n yScale?: unknown;\n /**\n * Count of ticks for X axis\n */\n xTicksCount?: number;\n /**\n * Count of ticks for Y axis\n */\n yTicksCount?: number;\n /** Enables multiline tick labels for X axis, applicable only for band scales */\n multilineXTicks?: boolean;\n /** Enables multiline tick labels for Y axis, applicable only for band scales */\n multilineYTicks?: boolean;\n /**\n * Group key for all array-based charts (for get keys of items for legend except that group key)\n */\n groupKey?: string;\n /**\n * function for format axis item text\n */\n axisXValueFormatter?: (value: unknown) => string;\n axisYValueFormatter?: (value: unknown) => string;\n /**\n * Function for format text for tooltip\n */\n tooltipValueFormatter?: (value?: unknown) => string;\n /**\n * Custom event emitter. Could be useful to handle event on few charts at the same time.\n */\n eventEmitter?: InstanceType<typeof PlotEventEmitter>;\n /**\n * Config for a11y summary\n */\n a11yAltTextConfig?: PlotSummarizerConfig;\n\n /**\n * Animations duration, set 0 to disable animations\n */\n duration?: number;\n } /**\n * By default, we show the Legend for all charts with more the one data item.\n * For hide the Legend, you should set showLegend prop to `false`.\n */ & (\n | {\n /**\n * Don't show legend\n */\n showLegend?: false;\n legendProps?: never;\n }\n | {\n /**\n * By default (if showLegend don't set), for one data item on chart,\n * Legend component will be hide, and show for more then 1 data item.\n * If set `true` - Legend component will show always.\n */\n showLegend?: true;\n /**\n * Props for Legend\n */\n legendProps?: Partial<BaseLegendProps>;\n }\n );\n\ntype LegendDataMap<T extends 'Flex' | 'Table'> = Record<\n LegendItemKey,\n {\n /**\n * Custom label for legend item (by default use keys from data item object)\n */\n label?: string;\n /**\n * Additional text after label\n */\n additionalInfo?: string;\n /**\n * Count after label\n */\n count?: number;\n /**\n * Custom Icon\n */\n icon?: typeof Icon;\n /**\n * Flag for uncheck some items by default\n */\n defaultChecked?: boolean;\n } & (T extends 'Table' ? { columns?: React.ReactNode[] } : { columns?: never })\n>;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"AbstractChart.type.js","names":[],"sources":["../../../../src/component/Chart/AbstractChart.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { FlexProps } from '@semcore/flex-box';\nimport type Icon from '@semcore/icon';\nimport type React from 'react';\n\nimport type { PatternsConfig } from '../../Pattern';\n// @ts-ignore\nimport type { PlotSummarizerConfig } from '../../Plot';\nimport type { PlotEventEmitter } from '../../utils';\nimport type { BaseChartLegendProps } from '../ChartLegend/BaseLegend.type';\nimport type { TrendProps } from '../ChartLegend/LegendFlex/LegendFlex.type';\nimport type { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';\n\nexport type BaseLegendProps = BaseChartLegendProps & {\n /**\n * Disable hover (for transition items legend of each not hovered)\n */\n disableHoverItems?: boolean;\n /**\n * Disable selectable of data items by checkboxes in Legend\n */\n disableSelectItems?: boolean;\n} & (\n | (TrendProps & {\n /**\n * How to render Legend - Flex view. Just list of legend items\n */\n legendType?: never | 'Flex';\n /**\n * Config for Legend items\n */\n legendMap?: LegendDataMap<'Flex'>;\n })\n | {\n /**\n * How to render Legend - Table view. Table of legend items with some additional information in columns\n */\n legendType: 'Table';\n /**\n * Config for Legend items\n */\n legendMap?: LegendDataMap<'Table'>;\n }\n );\n\nexport type ObjectData = Record<string, unknown>;\nexport type ListData = ObjectData[];\n\n/**\n * Chart, Legend must have an accessible names (aria-name).\n * It should describe chart or legend content.\n */\nexport type AriaNameProps = Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n}>;\n\nexport type BaseChartProps<T extends ListData | ObjectData> = FlexProps & {\n /**\n * Chart data. For all charts except Donut(Pie), Radar and Venn should be an Array\n */\n data: T;\n /**\n * Width of plot\n */\n plotWidth: number;\n /**\n * Height of plot\n */\n plotHeight: number;\n\n /** Enables charts patterns that enhances charts accessibility */\n patterns?: PatternsConfig;\n /**\n * Margin (for Y axis points) from left side of chart container to Y axis\n */\n marginY?: number;\n /**\n * Margin (for X axis points) from bottom of chart container to X axis\n */\n marginX?: number;\n /**\n * invert axis and show horizontal charts (only for Bars!)\n */\n invertAxis?: boolean;\n\n /**\n * Show X axis\n * @default true (for charts with axis: Area, Line, Bar, ScatterPlot, ...)\n */\n showXAxis?: boolean;\n /**\n * Show Y axis\n * @default true (for charts with axis: Area, Line, Bar, ScatterPlot, ...)\n */\n showYAxis?: boolean;\n /**\n * Map with colors for data items\n */\n colorMap?: Record<string, string>;\n /**\n * Show tooltip's.\n * @default true\n */\n showTooltip?: boolean;\n /**\n * Show sum of values for selected point in tooltip\n */\n showTotalInTooltip?: boolean;\n /**\n * Scale for xAxis (see more in d3-scale)\n */\n xScale?: unknown;\n /**\n * Scale for yAxis (see more in d3-scale)\n */\n yScale?: unknown;\n /**\n * Count of ticks for X axis\n */\n xTicksCount?: number;\n /**\n * Count of ticks for Y axis\n */\n yTicksCount?: number;\n /** Enables multiline tick labels for X axis, applicable only for band scales */\n multilineXTicks?: boolean;\n /** Enables multiline tick labels for Y axis, applicable only for band scales */\n multilineYTicks?: boolean;\n /**\n * Group key for all array-based charts (for get keys of items for legend except that group key)\n */\n groupKey?: string;\n /**\n * function for format axis item text\n */\n axisXValueFormatter?: (value: unknown) => string;\n axisYValueFormatter?: (value: unknown) => string;\n /**\n * Function for format text for tooltip\n */\n tooltipValueFormatter?: (value?: unknown) => string;\n /**\n * Custom event emitter. Could be useful to handle event on few charts at the same time.\n */\n eventEmitter?: InstanceType<typeof PlotEventEmitter>;\n /**\n * Config for a11y summary\n */\n a11yAltTextConfig?: PlotSummarizerConfig;\n\n /**\n * Animations duration, set 0 to disable animations\n */\n duration?: number;\n /**\n * Flag to show/hide legend\n */\n showLegend?: boolean;\n /**\n * Props for Legend\n */\n legendProps?: Partial<BaseLegendProps>;\n} & (\n | {\n /**\n * Don't show legend\n */\n showLegend?: false;\n legendProps?: never;\n }\n | {\n /**\n * By default (if showLegend don't set), for one data item on chart,\n * Legend component will be hide, and show for more then 1 data item.\n * If set `true` - Legend component will show always.\n */\n showLegend?: true;\n /**\n * Props for Legend\n */\n legendProps?: Partial<BaseLegendProps>;\n }\n );\n\ntype LegendDataMap<T extends 'Flex' | 'Table'> = Record<\n LegendItemKey,\n {\n /**\n * Custom label for legend item (by default use keys from data item object)\n */\n label?: string;\n /**\n * Additional text after label\n */\n additionalInfo?: string;\n /**\n * Count after label\n */\n count?: number;\n /**\n * Custom Icon\n */\n icon?: typeof Icon;\n /**\n * Flag for uncheck some items by default\n */\n defaultChecked?: boolean;\n } & (T extends 'Table' ? { columns?: React.ReactNode[] } : { columns?: never })\n>;\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"AreaChart.type.js","names":[],"sources":["../../../../src/component/Chart/AreaChart.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { Flex } from '@semcore/flex-box';\nimport type { ScaleLinear, ScaleTime } from 'd3-scale';\nimport type { CurveFactory } from 'd3-shape';\n\nimport type { BaseChartProps } from './AbstractChart.type';\nimport type { interpolateValue } from '../../utils';\n\nexport type AreaChartData = Array<Record<string, number | typeof interpolateValue | Date>>;\n\nexport type AreaChartProps = BaseChartProps<AreaChartData> & {\n /** Field name that groups the data points */\n groupKey: string;\n /** Custom x-axis scale */\n xScale?: ScaleLinear<any, any> | ScaleTime<any, any>;\n /** Custom y-axis scale */\n yScale?: ScaleLinear<any, any>;\n /** Controls whether to display dots on the area chart lines */\n showDots?: boolean;\n /** D3 curve factory for line interpolation (e.g., curveLinear, curveCardinal) */\n curve?: CurveFactory;\n /** Enables stacked area chart mode */\n stacked?: boolean;\n /** Callback triggered when a user clicks on a chart at a position corresponding to a data item */\n onClickArea?: (index: number, event: React.SyntheticEvent) => void;\n};\n\nexport type AreaChartType = Intergalactic.Component<typeof Flex, AreaChartProps>;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"AreaChart.type.js","names":[],"sources":["../../../../src/component/Chart/AreaChart.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { Flex } from '@semcore/flex-box';\nimport type { ScaleLinear, ScaleTime } from 'd3-scale';\nimport type { CurveFactory } from 'd3-shape';\n\nimport type { AriaNameProps, BaseChartProps } from './AbstractChart.type';\nimport type { interpolateValue } from '../../utils';\n\nexport type AreaChartData = Array<Record<string, number | typeof interpolateValue | Date>>;\n\nexport type AreaChartProps = BaseChartProps<AreaChartData> & {\n /** Field name that groups the data points */\n groupKey: string;\n /** Custom x-axis scale */\n xScale?: ScaleLinear<any, any> | ScaleTime<any, any>;\n /** Custom y-axis scale */\n yScale?: ScaleLinear<any, any>;\n /** Controls whether to display dots on the area chart lines */\n showDots?: boolean;\n /** D3 curve factory for line interpolation (e.g., curveLinear, curveCardinal) */\n curve?: CurveFactory;\n /** Enables stacked area chart mode */\n stacked?: boolean;\n /** Callback triggered when a user clicks on a chart at a position corresponding to a data item */\n onClickArea?: (index: number, event: React.SyntheticEvent) => void;\n};\n\nexport type AreaChartType = Intergalactic.Component<typeof Flex, Intergalactic.InternalTypings.EfficientOmit<AreaChartProps, 'showLegend'> & { showLegend?: boolean } & AriaNameProps>;\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"BarChart.type.js","names":[],"sources":["../../../../src/component/Chart/BarChart.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { Flex } from '@semcore/flex-box';\nimport type { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';\nimport type React from 'react';\n\nimport type { BaseChartProps } from './AbstractChart.type';\nimport type { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';\n\ntype TrendItem = {\n x: number;\n y: number;\n};\n\ntype BarKey = string;\n\nexport type BarChartData = Array<Record<BarKey, string | number | Date>>;\n\nexport type BarChartProps = BaseChartProps<BarChartData> & {\n /** Field name that groups the data points */\n groupKey: string;\n /** Custom x-axis scale */\n xScale?: ScaleBand<any> | ScaleTime<any, any>;\n /** Custom y-axis scale */\n yScale?: ScaleLinear<any, any>;\n /** Controls whether bars are grouped side-by-side or stacked */\n type?: 'stack' | 'group';\n /** Optional trend line data to overlay on the bars */\n trend?: Record<LegendItemKey, TrendItem[]>;\n /** Handle click by `HoverRect`. `index` is an index of the data array. */\n onClickHoverRect?: (index: number, e: React.SyntheticEvent) => void;\n /** Handle click by Bar. */\n onClickBar?: (barItem: number, barKey: BarKey, e: React.SyntheticEvent) => void;\n};\n\nexport type BarChartType = Intergalactic.Component<typeof Flex, BarChartProps>;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"BarChart.type.js","names":[],"sources":["../../../../src/component/Chart/BarChart.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { Flex } from '@semcore/flex-box';\nimport type { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';\nimport type React from 'react';\n\nimport type { AriaNameProps, BaseChartProps } from './AbstractChart.type';\nimport type { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';\n\ntype TrendItem = {\n x: number | string;\n y: number | string;\n};\n\ntype BarKey = string;\n\nexport type BarChartData = Array<Record<BarKey, string | number | Date>>;\n\nexport type BarChartProps = BaseChartProps<BarChartData> & {\n /** Field name that groups the data points */\n groupKey: string;\n /** Custom x-axis scale */\n xScale?: ScaleBand<any> | ScaleTime<any, any>;\n /** Custom y-axis scale */\n yScale?: ScaleLinear<any, any>;\n /** Controls whether bars are grouped side-by-side or stacked */\n type?: 'stack' | 'group';\n /** Optional trend line data to overlay on the bars */\n trend?: Record<LegendItemKey, TrendItem[]>;\n /** Handle click by `HoverRect`. `index` is an index of the data array. */\n onClickHoverRect?: (index: number, e: React.SyntheticEvent) => void;\n /** Handle click by Bar. */\n onClickBar?: (barItem: number, barKey: BarKey, e: React.SyntheticEvent) => void;\n};\n\nexport type BarChartType = Intergalactic.Component<typeof Flex, BarChartProps & AriaNameProps>;\n"],"mappings":"","ignoreList":[]}
@@ -21,12 +21,12 @@ var _intergalacticDynamicLocales = require("../../../translations/__intergalacti
21
21
  var _BaseLegend2 = require("../BaseLegend");
22
22
  var _LegendItem = require("../LegendItem/LegendItem");
23
23
  /*!__reshadow-styles__:"./legend-flex.shadow.css"*/
24
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"1huw2_gg_"),
24
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"13qix_gg_"),
25
25
  /*__reshadow_css_end__*/
26
26
  {
27
- "__SLegendFlex": "___SLegendFlex_1huw2_gg_",
28
- "_direction_row": "_direction_row_1huw2_gg_",
29
- "_direction_column": "_direction_column_1huw2_gg_"
27
+ "__SLegendFlex": "___SLegendFlex_13qix_gg_",
28
+ "_direction_row": "_direction_row_13qix_gg_",
29
+ "_direction_column": "_direction_column_13qix_gg_"
30
30
  });
31
31
  var LegendFlexRoot = /*#__PURE__*/function (_BaseLegend) {
32
32
  function LegendFlexRoot() {
@@ -24,25 +24,25 @@ var _Pattern = require("../../../Pattern");
24
24
  var _utils = require("../../../utils");
25
25
  var _excluded = ["id", "checked", "color", "onChangeLegendItem", "shape"];
26
26
  /*!__reshadow-styles__:"./legend-item.shadow.css"*/
27
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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)}", /*__inner_css_end__*/"pmd7n_gg_"),
27
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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)}", /*__inner_css_end__*/"1mf3o_gg_"),
28
28
  /*__reshadow_css_end__*/
29
29
  {
30
- "__SLegendItem": "___SLegendItem_pmd7n_gg_",
31
- "_disabled": "__disabled_pmd7n_gg_",
32
- "__SPointShape": "___SPointShape_pmd7n_gg_",
33
- "_color": "__color_pmd7n_gg_",
34
- "--color": "--color_pmd7n",
35
- "_shape_Circle": "_shape_Circle_pmd7n_gg_",
36
- "_size_l": "_size_l_pmd7n_gg_",
37
- "_size_m": "_size_m_pmd7n_gg_",
38
- "_shape_Line": "_shape_Line_pmd7n_gg_",
39
- "_shape_Square": "_shape_Square_pmd7n_gg_",
40
- "_shape_Pattern": "_shape_Pattern_pmd7n_gg_",
41
- "__SIcon": "___SIcon_pmd7n_gg_",
42
- "__SLabel": "___SLabel_pmd7n_gg_",
43
- "__SAdditionalLabel": "___SAdditionalLabel_pmd7n_gg_",
44
- "__SCount": "___SCount_pmd7n_gg_",
45
- "__SPatternSymbol": "___SPatternSymbol_pmd7n_gg_"
30
+ "__SLegendItem": "___SLegendItem_1mf3o_gg_",
31
+ "_disabled": "__disabled_1mf3o_gg_",
32
+ "__SPointShape": "___SPointShape_1mf3o_gg_",
33
+ "_color": "__color_1mf3o_gg_",
34
+ "--color": "--color_1mf3o",
35
+ "_shape_Circle": "_shape_Circle_1mf3o_gg_",
36
+ "_size_l": "_size_l_1mf3o_gg_",
37
+ "_size_m": "_size_m_1mf3o_gg_",
38
+ "_shape_Line": "_shape_Line_1mf3o_gg_",
39
+ "_shape_Square": "_shape_Square_1mf3o_gg_",
40
+ "_shape_Pattern": "_shape_Pattern_1mf3o_gg_",
41
+ "__SIcon": "___SIcon_1mf3o_gg_",
42
+ "__SLabel": "___SLabel_1mf3o_gg_",
43
+ "__SAdditionalLabel": "___SAdditionalLabel_1mf3o_gg_",
44
+ "__SCount": "___SCount_1mf3o_gg_",
45
+ "__SPatternSymbol": "___SPatternSymbol_1mf3o_gg_"
46
46
  });
47
47
  var enhance = [(0, _resolveColorEnhance["default"])(), (0, _uniqueID["default"])()];
48
48
  var LegendItemRoot = /*#__PURE__*/function (_Component) {
@@ -216,7 +216,7 @@ function Shape(props) {
216
216
  return _ref9 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], _ref9.cn("Checkbox", {
217
217
  "size": size,
218
218
  "checked": checked,
219
- "theme": checked ? color : undefined,
219
+ "theme": color,
220
220
  "onChange": onChange,
221
221
  "onFocus": onFocus,
222
222
  "onBlur": onBlur,
@@ -1 +1 @@
1
- {"version":3,"file":"LegendItem.js","names":["_core","require","_checkbox","_interopRequireDefault","_resolveColorEnhance","_uniqueID","_flexBox","_typography","_react","_LegendItem","_Pattern","_utils","_excluded","style","sstyled","insert","enhance","resolveColorEnhance","uniqueIDEnhancement","LegendItemRoot","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","getUniqueID","uid","asProps","concat","getShapeProps","_this$asProps","checked","color","shape","label","id","size","resolveColor","patterns","onChangeLegendItem","onFocusLegendItem","onBlurLegendItem","onChange","onFocus","onBlur","getIconProps","props","_objectSpread2","children","icon","onClick","getLabelProps","_this$asProps2","_color","_shape","_objectWithoutProperties2","getAdditionalLabelProps","additionalInfo","undefined","getCountProps","count","render","_ref","_ref7","SLegendItem","Flex","_this$asProps3","styles","Children","disabled","StaticShapes","includes","createElement","cn","assignProps","Component","_defineProperty2","Fragment","LegendItemComponent","Shape","Icon","Label","AdditionalLabel","Count","_ref2","arguments[0]","_ref0","SPointShape","Box","SPatternSymbol","PatternSymbol","_props$patternKey","patternKey","getChartDefaultColorName","hasChildren","_ref8","_ref9","_ref13","_ref3","_ref1","SIcon","displayName","_ref14","_ref4","_ref10","SLabel","TypographyText","_ref15","_ref5","_ref11","SAdditionalLabel","_ref16","_ref6","_ref12","SCount","exports","createComponent"],"sources":["../../../../../src/component/ChartLegend/LegendItem/LegendItem.tsx"],"sourcesContent":["import Checkbox from '@semcore/checkbox';\nimport { createComponent, Component, sstyled, Root, type IRootComponentProps } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';\nimport { Flex, Box } from '@semcore/flex-box';\nimport { Text as TypographyText } from '@semcore/typography';\nimport type { DOMAttributes } from 'react';\nimport React from 'react';\n\nimport style from './legend-item.shadow.css';\nimport {\n type ShapeProps,\n type LegendItemProps,\n type LegendItemType,\n type LegendItem,\n StaticShapes,\n} from './LegendItem.type';\nimport { PatternSymbol } from '../../../Pattern';\nimport { getChartDefaultColorName } from '../../../utils';\n\nconst enhance = [resolveColorEnhance(), uniqueIDEnhancement()] as const;\nclass LegendItemRoot extends Component<LegendItemProps, {}, {}, typeof enhance> {\n static displayName = 'LegendItem';\n static style = style;\n\n static enhance = enhance;\n\n static defaultProps = () => ({\n children: (\n <>\n <LegendItemComponent.Shape />\n <LegendItemComponent.Icon />\n <LegendItemComponent.Label />\n <LegendItemComponent.AdditionalLabel />\n <LegendItemComponent.Count />\n </>\n ),\n });\n\n getUniqueID() {\n const { uid } = this.asProps;\n return `chart-legend-item-${uid}`;\n }\n\n getShapeProps() {\n const { checked, color, shape, label, id, size, resolveColor, patterns, onChangeLegendItem, onFocusLegendItem, onBlurLegendItem } =\n this.asProps;\n return {\n label,\n shape,\n checked,\n 'color': resolveColor(color),\n 'patternKey': color,\n patterns,\n size,\n 'onChange': (value: boolean) => {\n onChangeLegendItem(id, value);\n },\n 'onFocus': () => onFocusLegendItem(id),\n 'onBlur': () => onBlurLegendItem(id),\n 'aria-labelledby': shape === 'Checkbox' ? this.getUniqueID() : null,\n };\n }\n\n getIconProps(): LegendItem & IRootComponentProps & { onClick: () => void } {\n const props = this.asProps;\n\n return {\n ...props,\n children: props.icon,\n onClick: () => props.onChangeLegendItem(props.id, !props.checked),\n };\n }\n\n getLabelProps(): Omit<LegendItem, 'color'> & IRootComponentProps & { onClick: () => void } {\n const { id, checked, color: _color, onChangeLegendItem, shape: _shape, ...props } = this.asProps;\n\n return {\n ...props,\n id: this.getUniqueID(),\n checked,\n onClick: () => onChangeLegendItem(id, !checked),\n children: props.label,\n };\n }\n\n getAdditionalLabelProps(): LegendItem & IRootComponentProps & { onClick: () => void } {\n const props = this.asProps;\n\n const { additionalInfo, onChangeLegendItem, id, checked } = props;\n\n return {\n ...props,\n children: additionalInfo && 'label' in additionalInfo ? `${additionalInfo.label}` : undefined,\n onClick: () => onChangeLegendItem(id, !checked),\n };\n }\n\n getCountProps(): LegendItem & IRootComponentProps & { onClick: () => void } {\n const props = this.asProps;\n\n const { additionalInfo, onChangeLegendItem, id, checked } = props;\n\n return {\n ...props,\n children:\n additionalInfo && 'count' in additionalInfo ? `(${additionalInfo.count})` : undefined,\n onClick: () => onChangeLegendItem(id, !checked),\n };\n }\n\n render() {\n const SLegendItem = Root;\n const { styles, Children, shape } = this.asProps;\n\n // @ts-ignore\n const disabled = StaticShapes.includes(shape) || shape === undefined;\n\n return sstyled(styles)(\n <SLegendItem render={Flex} disabled={disabled} __excludeProps={['id']}>\n <Children />\n </SLegendItem>,\n );\n }\n}\n\nfunction Shape(props: IRootComponentProps & ShapeProps & DOMAttributes<HTMLLabelElement>) {\n const SPointShape = Root;\n const SPatternSymbol = PatternSymbol;\n const {\n styles,\n size,\n shape,\n checked,\n color,\n patternKey = getChartDefaultColorName(0),\n Children,\n children: hasChildren,\n patterns,\n onChange,\n onFocus,\n onBlur,\n } = props;\n\n if (hasChildren) {\n return <Children />;\n }\n\n if (shape === 'Pattern') {\n return sstyled(styles)(\n <Box mr={1}>\n <SPatternSymbol color={color} patternKey={patternKey} aria-hidden />\n </Box>,\n );\n }\n\n if (shape === 'Checkbox') {\n return sstyled(styles)(\n <>\n <Checkbox\n size={size}\n checked={checked}\n theme={checked ? color : undefined}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n aria-labelledby={props['aria-labelledby']}\n />\n {patterns && (\n <Box mt='2px' mr={1} onClick={() => onChange(!checked)}>\n <SPatternSymbol color={color} patternKey={patternKey} aria-hidden />\n </Box>\n )}\n </>,\n );\n }\n\n return sstyled(styles)(\n <SPointShape render={Box}>\n <Children />\n </SPointShape>,\n );\n}\n\nfunction Icon({ styles, children: hasChildren, Children }: IRootComponentProps) {\n const SIcon = Root;\n\n if (!hasChildren) {\n return null;\n }\n\n return sstyled(styles)(\n <SIcon render={Box} tag='span'>\n <Children />\n </SIcon>,\n );\n}\nIcon.displayName = 'Icon';\n\nfunction Label({ styles, children: hasChildren, Children }: IRootComponentProps) {\n const SLabel = Root;\n\n if (!hasChildren) {\n return null;\n }\n\n return sstyled(styles)(\n <SLabel render={TypographyText} use='primary'>\n <Children />\n </SLabel>,\n );\n}\nLabel.displayName = 'Label';\n\nfunction AdditionalLabel({ styles, children: hasChildren, Children }: IRootComponentProps) {\n const SAdditionalLabel = Root;\n\n if (!hasChildren) {\n return null;\n }\n\n return sstyled(styles)(\n <SAdditionalLabel render={TypographyText} use='secondary'>\n <Children />\n </SAdditionalLabel>,\n );\n}\nAdditionalLabel.displayName = 'AdditionalLabel';\n\nfunction Count({ styles, children: hasChildren, Children }: IRootComponentProps) {\n const SCount = Root;\n\n if (!hasChildren) {\n return null;\n }\n\n return sstyled(styles)(\n <SCount render={TypographyText} use='secondary'>\n <Children />\n </SCount>,\n );\n}\nCount.displayName = 'Count';\n\nexport const LegendItemComponent: LegendItemType = createComponent(LegendItemRoot, {\n Shape,\n Icon,\n Label,\n AdditionalLabel,\n Count,\n});\n"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,oBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AAGA,IAAAQ,WAAA,GAAAR,OAAA;AAOA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AAA0D,IAAAW,SAAA;AAAA;AAAA,IAAAC,KAAA,8BAAAb,KAAA,CAAAc,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAE1D,IAAMC,OAAO,GAAG,CAAC,IAAAC,+BAAmB,EAAC,CAAC,EAAE,IAAAC,oBAAmB,EAAC,CAAC,CAAU;AAAC,IAClEC,cAAc,0BAAAC,UAAA;EAAA,SAAAD,eAAA;IAAA,IAAAE,gBAAA,mBAAAF,cAAA;IAAA,WA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6C,MAAA,CAAAxC,EAAA,gBAAE,CACL,CAAC;AAEb;AACAU,KAAK,CAACkB,WAAW,GAAG,OAAO;AAEpB,IAAMvB,mBAAmC,GAAAqC,OAAA,CAAArC,mBAAA,GAAG,IAAAsC,qBAAe,EAACpG,cAAc,EAAE;EACjF+D,KAAK,EAALA,KAAK;EACLC,IAAI,EAAJA,IAAI;EACJC,KAAK,EAALA,KAAK;EACLC,eAAe,EAAfA,eAAe;EACfC,KAAK,EAALA;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"LegendItem.js","names":["_core","require","_checkbox","_interopRequireDefault","_resolveColorEnhance","_uniqueID","_flexBox","_typography","_react","_LegendItem","_Pattern","_utils","_excluded","style","sstyled","insert","enhance","resolveColorEnhance","uniqueIDEnhancement","LegendItemRoot","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","getUniqueID","uid","asProps","concat","getShapeProps","_this$asProps","checked","color","shape","label","id","size","resolveColor","patterns","onChangeLegendItem","onFocusLegendItem","onBlurLegendItem","onChange","onFocus","onBlur","getIconProps","props","_objectSpread2","children","icon","onClick","getLabelProps","_this$asProps2","_color","_shape","_objectWithoutProperties2","getAdditionalLabelProps","additionalInfo","undefined","getCountProps","count","render","_ref","_ref7","SLegendItem","Flex","_this$asProps3","styles","Children","disabled","StaticShapes","includes","createElement","cn","assignProps","Component","_defineProperty2","Fragment","LegendItemComponent","Shape","Icon","Label","AdditionalLabel","Count","_ref2","arguments[0]","_ref0","SPointShape","Box","SPatternSymbol","PatternSymbol","_props$patternKey","patternKey","getChartDefaultColorName","hasChildren","_ref8","_ref9","_ref13","_ref3","_ref1","SIcon","displayName","_ref14","_ref4","_ref10","SLabel","TypographyText","_ref15","_ref5","_ref11","SAdditionalLabel","_ref16","_ref6","_ref12","SCount","exports","createComponent"],"sources":["../../../../../src/component/ChartLegend/LegendItem/LegendItem.tsx"],"sourcesContent":["import Checkbox from '@semcore/checkbox';\nimport { createComponent, Component, sstyled, Root, type IRootComponentProps } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';\nimport { Flex, Box } from '@semcore/flex-box';\nimport { Text as TypographyText } from '@semcore/typography';\nimport type { DOMAttributes } from 'react';\nimport React from 'react';\n\nimport style from './legend-item.shadow.css';\nimport {\n type ShapeProps,\n type LegendItemProps,\n type LegendItemType,\n type LegendItem,\n StaticShapes,\n} from './LegendItem.type';\nimport { PatternSymbol } from '../../../Pattern';\nimport { getChartDefaultColorName } from '../../../utils';\n\nconst enhance = [resolveColorEnhance(), uniqueIDEnhancement()] as const;\nclass LegendItemRoot extends Component<LegendItemProps, {}, {}, typeof enhance> {\n static displayName = 'LegendItem';\n static style = style;\n\n static enhance = enhance;\n\n static defaultProps = () => ({\n children: (\n <>\n <LegendItemComponent.Shape />\n <LegendItemComponent.Icon />\n <LegendItemComponent.Label />\n <LegendItemComponent.AdditionalLabel />\n <LegendItemComponent.Count />\n </>\n ),\n });\n\n getUniqueID() {\n const { uid } = this.asProps;\n return `chart-legend-item-${uid}`;\n }\n\n getShapeProps() {\n const { checked, color, shape, label, id, size, resolveColor, patterns, onChangeLegendItem, onFocusLegendItem, onBlurLegendItem } =\n this.asProps;\n return {\n label,\n shape,\n checked,\n 'color': resolveColor(color),\n 'patternKey': color,\n patterns,\n size,\n 'onChange': (value: boolean) => {\n onChangeLegendItem(id, value);\n },\n 'onFocus': () => onFocusLegendItem(id),\n 'onBlur': () => onBlurLegendItem(id),\n 'aria-labelledby': shape === 'Checkbox' ? this.getUniqueID() : null,\n };\n }\n\n getIconProps(): LegendItem & IRootComponentProps & { onClick: () => void } {\n const props = this.asProps;\n\n return {\n ...props,\n children: props.icon,\n onClick: () => props.onChangeLegendItem(props.id, !props.checked),\n };\n }\n\n getLabelProps(): Omit<LegendItem, 'color'> & IRootComponentProps & { onClick: () => void } {\n const { id, checked, color: _color, onChangeLegendItem, shape: _shape, ...props } = this.asProps;\n\n return {\n ...props,\n id: this.getUniqueID(),\n checked,\n onClick: () => onChangeLegendItem(id, !checked),\n children: props.label,\n };\n }\n\n getAdditionalLabelProps(): LegendItem & IRootComponentProps & { onClick: () => void } {\n const props = this.asProps;\n\n const { additionalInfo, onChangeLegendItem, id, checked } = props;\n\n return {\n ...props,\n children: additionalInfo && 'label' in additionalInfo ? `${additionalInfo.label}` : undefined,\n onClick: () => onChangeLegendItem(id, !checked),\n };\n }\n\n getCountProps(): LegendItem & IRootComponentProps & { onClick: () => void } {\n const props = this.asProps;\n\n const { additionalInfo, onChangeLegendItem, id, checked } = props;\n\n return {\n ...props,\n children:\n additionalInfo && 'count' in additionalInfo ? `(${additionalInfo.count})` : undefined,\n onClick: () => onChangeLegendItem(id, !checked),\n };\n }\n\n render() {\n const SLegendItem = Root;\n const { styles, Children, shape } = this.asProps;\n\n // @ts-ignore\n const disabled = StaticShapes.includes(shape) || shape === undefined;\n\n return sstyled(styles)(\n <SLegendItem render={Flex} disabled={disabled} __excludeProps={['id']}>\n <Children />\n </SLegendItem>,\n );\n }\n}\n\nfunction Shape(props: IRootComponentProps & ShapeProps & DOMAttributes<HTMLLabelElement>) {\n const SPointShape = Root;\n const SPatternSymbol = PatternSymbol;\n const {\n styles,\n size,\n shape,\n checked,\n color,\n patternKey = getChartDefaultColorName(0),\n Children,\n children: hasChildren,\n patterns,\n onChange,\n onFocus,\n onBlur,\n } = props;\n\n if (hasChildren) {\n return <Children />;\n }\n\n if (shape === 'Pattern') {\n return sstyled(styles)(\n <Box mr={1}>\n <SPatternSymbol color={color} patternKey={patternKey} aria-hidden />\n </Box>,\n );\n }\n\n if (shape === 'Checkbox') {\n return sstyled(styles)(\n <>\n <Checkbox\n size={size}\n checked={checked}\n theme={color}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n aria-labelledby={props['aria-labelledby']}\n />\n {patterns && (\n <Box mt='2px' mr={1} onClick={() => onChange(!checked)}>\n <SPatternSymbol color={color} patternKey={patternKey} aria-hidden />\n </Box>\n )}\n </>,\n );\n }\n\n return sstyled(styles)(\n <SPointShape render={Box}>\n <Children />\n </SPointShape>,\n );\n}\n\nfunction Icon({ styles, children: hasChildren, Children }: IRootComponentProps) {\n const SIcon = Root;\n\n if (!hasChildren) {\n return null;\n }\n\n return sstyled(styles)(\n <SIcon render={Box} tag='span'>\n <Children />\n </SIcon>,\n );\n}\nIcon.displayName = 'Icon';\n\nfunction Label({ styles, children: hasChildren, Children }: IRootComponentProps) {\n const SLabel = Root;\n\n if (!hasChildren) {\n return null;\n }\n\n return sstyled(styles)(\n <SLabel render={TypographyText} use='primary'>\n <Children />\n </SLabel>,\n );\n}\nLabel.displayName = 'Label';\n\nfunction AdditionalLabel({ styles, children: hasChildren, Children }: IRootComponentProps) {\n const SAdditionalLabel = Root;\n\n if (!hasChildren) {\n return null;\n }\n\n return sstyled(styles)(\n <SAdditionalLabel render={TypographyText} use='secondary'>\n <Children />\n </SAdditionalLabel>,\n );\n}\nAdditionalLabel.displayName = 'AdditionalLabel';\n\nfunction Count({ styles, children: hasChildren, Children }: IRootComponentProps) {\n const SCount = Root;\n\n if (!hasChildren) {\n return null;\n }\n\n return sstyled(styles)(\n <SCount render={TypographyText} use='secondary'>\n <Children />\n </SCount>,\n );\n}\nCount.displayName = 'Count';\n\nexport const LegendItemComponent: LegendItemType = createComponent(LegendItemRoot, {\n Shape,\n Icon,\n Label,\n AdditionalLabel,\n Count,\n});\n"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,oBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AAGA,IAAAQ,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N5C,MAAM;IAAY2B,WAAW,GAAAiB,MAAA,CAArB/D,QAAQ;IAAeoB,QAAQ,GAAA2C,MAAA,CAAR3C,QAAQ;EACtD,IAAM8C,MAAM,GAOMR,gBAAc;EALhC,IAAI,CAACZ,WAAW,EAAE;IAChB,OAAO,IAAI;EACb;EAEA,OAAAmB,MAAA,GAAO,IAAAtG,aAAO,EAACwD,MAAM,CAAC,eACpB9D,MAAA,YAAAmE,aAAA,CAAC0C,MAAM,EAAAD,MAAA,CAAAxC,EAAA,eAAA1B,cAAA,qBAAAlD,KAAA,CAAA6E,WAAA;IAAA,OAA6B;EAAW,GAAAsC,KAAA,kBAC7C3G,MAAA,YAAAmE,aAAA,CAACJ,QAAQ,EAAA6C,MAAA,CAAAxC,EAAA,gBAAE,CACL,CAAC;AAEb;AACAU,KAAK,CAACkB,WAAW,GAAG,OAAO;AAEpB,IAAMvB,mBAAmC,GAAAqC,OAAA,CAAArC,mBAAA,GAAG,IAAAsC,qBAAe,EAACpG,cAAc,EAAE;EACjF+D,KAAK,EAALA,KAAK;EACLC,IAAI,EAAJA,IAAI;EACJC,KAAK,EAALA,KAAK;EACLC,eAAe,EAAfA,eAAe;EACfC,KAAK,EAALA;AACF,CAAC,CAAC","ignoreList":[]}
@@ -17,14 +17,14 @@ var _react = _interopRequireDefault(require("react"));
17
17
  var _BaseLegend2 = require("../BaseLegend");
18
18
  var _LegendItem = require("../LegendItem/LegendItem");
19
19
  /*!__reshadow-styles__:"./legend-table.shadow.css"*/
20
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"1tgwv_gg_"),
20
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___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}", /*__inner_css_end__*/"8uz8w_gg_"),
21
21
  /*__reshadow_css_end__*/
22
22
  {
23
- "__SLegendTable": "___SLegendTable_1tgwv_gg_",
24
- "_columns-count": "__columns-count_1tgwv_gg_",
25
- "__SColumnItem": "___SColumnItem_1tgwv_gg_",
26
- "_size_l": "_size_l_1tgwv_gg_",
27
- "_size_m": "_size_m_1tgwv_gg_"
23
+ "__SLegendTable": "___SLegendTable_8uz8w_gg_",
24
+ "_columns-count": "__columns-count_8uz8w_gg_",
25
+ "__SColumnItem": "___SColumnItem_8uz8w_gg_",
26
+ "_size_l": "_size_l_8uz8w_gg_",
27
+ "_size_m": "_size_m_8uz8w_gg_"
28
28
  });
29
29
  var LegendTableRoot = /*#__PURE__*/function (_BaseLegend) {
30
30
  function LegendTableRoot() {