@semcore/d3-chart 3.42.1 → 3.42.2

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 (44) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/Area.js +11 -11
  3. package/lib/cjs/Axis.js +14 -14
  4. package/lib/cjs/Bar.js +10 -10
  5. package/lib/cjs/Bubble.js +12 -12
  6. package/lib/cjs/Donut.js +9 -9
  7. package/lib/cjs/Dots.js +8 -8
  8. package/lib/cjs/HorizontalBar.js +10 -10
  9. package/lib/cjs/Hover.js +3 -3
  10. package/lib/cjs/Line.js +9 -9
  11. package/lib/cjs/Plot.js +3 -3
  12. package/lib/cjs/Radar.js +19 -19
  13. package/lib/cjs/RadialTree.js +11 -11
  14. package/lib/cjs/ReferenceLine.js +9 -9
  15. package/lib/cjs/ScatterPlot.js +9 -9
  16. package/lib/cjs/Tooltip.js +9 -9
  17. package/lib/cjs/Venn.js +9 -9
  18. package/lib/cjs/a11y/PlotA11yModule.js +2 -2
  19. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  20. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  21. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  22. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  23. package/lib/es6/Area.js +11 -11
  24. package/lib/es6/Axis.js +14 -14
  25. package/lib/es6/Bar.js +10 -10
  26. package/lib/es6/Bubble.js +12 -12
  27. package/lib/es6/Donut.js +9 -9
  28. package/lib/es6/Dots.js +8 -8
  29. package/lib/es6/HorizontalBar.js +10 -10
  30. package/lib/es6/Hover.js +3 -3
  31. package/lib/es6/Line.js +9 -9
  32. package/lib/es6/Plot.js +3 -3
  33. package/lib/es6/Radar.js +19 -19
  34. package/lib/es6/RadialTree.js +11 -11
  35. package/lib/es6/ReferenceLine.js +9 -9
  36. package/lib/es6/ScatterPlot.js +9 -9
  37. package/lib/es6/Tooltip.js +9 -9
  38. package/lib/es6/Venn.js +9 -9
  39. package/lib/es6/a11y/PlotA11yModule.js +2 -2
  40. package/lib/es6/a11y/PlotA11yView.js +2 -2
  41. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  42. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  43. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  44. package/package.json +6 -6
@@ -10,8 +10,8 @@ import { normalizeLocale } from './locale';
10
10
  import { localizedMessages } from './translations/module/__intergalactic-dynamic-locales';
11
11
  import { Root, sstyled } from '@semcore/core';
12
12
  /*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
13
- var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_2jkyr_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_2jkyr_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "2jkyr_gg_") /*__reshadow_css_end__*/, {
14
- "__SPlotA11yModule": "___SPlotA11yModule_2jkyr_gg_"
13
+ var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_1ojit_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1ojit_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "1ojit_gg_") /*__reshadow_css_end__*/, {
14
+ "__SPlotA11yModule": "___SPlotA11yModule_1ojit_gg_"
15
15
  });
16
16
  import { Context as I18nContext, useI18n } from '@semcore/utils/lib/enhances/WithI18n';
17
17
  import { Box } from '@semcore/flex-box';
@@ -9,8 +9,8 @@ import { getIntl } from './intl';
9
9
  import { summarize } from './summarize';
10
10
  import { Root, sstyled } from '@semcore/core';
11
11
  /*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
12
- var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_1bzj7_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_1bzj7_gg_:focus,.___SPlotA11yView_1bzj7_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_1bzj7_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1bzj7_gg_ table,.___SPlotA11yView_1bzj7_gg_ td,.___SPlotA11yView_1bzj7_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "1bzj7_gg_") /*__reshadow_css_end__*/, {
13
- "__SPlotA11yView": "___SPlotA11yView_1bzj7_gg_"
12
+ var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_19hpz_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_19hpz_gg_:focus,.___SPlotA11yView_19hpz_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_19hpz_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_19hpz_gg_ table,.___SPlotA11yView_19hpz_gg_ td,.___SPlotA11yView_19hpz_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "19hpz_gg_") /*__reshadow_css_end__*/, {
13
+ "__SPlotA11yView": "___SPlotA11yView_19hpz_gg_"
14
14
  });
15
15
  import { Box } from '@semcore/flex-box';
16
16
  import { useAsyncI18nMessages } from '@semcore/utils/lib/enhances/i18nEnhance';
@@ -10,10 +10,10 @@ import React from 'react';
10
10
  import createComponent, { sstyled, Root } from '@semcore/core';
11
11
  import { Flex } from '@semcore/flex-box';
12
12
  /*__reshadow-styles__:"./legend-flex.shadow.css"*/
13
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_1nyji_gg_._direction_row_1nyji_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1nyji_gg_._direction_column_1nyji_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "1nyji_gg_") /*__reshadow_css_end__*/, {
14
- "__SLegendFlex": "___SLegendFlex_1nyji_gg_",
15
- "_direction_row": "_direction_row_1nyji_gg_",
16
- "_direction_column": "_direction_column_1nyji_gg_"
13
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_1ok9l_gg_._direction_row_1ok9l_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1ok9l_gg_._direction_column_1ok9l_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "1ok9l_gg_") /*__reshadow_css_end__*/, {
14
+ "__SLegendFlex": "___SLegendFlex_1ok9l_gg_",
15
+ "_direction_row": "_direction_row_1ok9l_gg_",
16
+ "_direction_column": "_direction_column_1ok9l_gg_"
17
17
  });
18
18
  import { LegendItemComponent } from '../LegendItem/LegendItem';
19
19
  import Divider from '@semcore/divider';
@@ -19,23 +19,23 @@ import { Flex, Box } from '@semcore/flex-box';
19
19
  import Checkbox from '@semcore/checkbox';
20
20
  import { Text as TypographyText } from '@semcore/typography';
21
21
  /*__reshadow-styles__:"./legend-item.shadow.css"*/
22
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_tnru3_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_tnru3_gg_:hover{cursor:pointer}.___SLegendItem_tnru3_gg_.__disabled_tnru3_gg_:hover{cursor:default}}.___SPointShape_tnru3_gg_.__color_tnru3_gg_{background-color:var(--color_tnru3);margin-right:8px;flex-shrink:0}.___SPointShape_tnru3_gg_._shape_Circle_tnru3_gg_._size_l_tnru3_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_tnru3_gg_._shape_Circle_tnru3_gg_._size_m_tnru3_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_tnru3_gg_._shape_Line_tnru3_gg_._size_l_tnru3_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_tnru3_gg_._shape_Line_tnru3_gg_._size_m_tnru3_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_tnru3_gg_._shape_Square_tnru3_gg_._size_l_tnru3_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_tnru3_gg_._shape_Square_tnru3_gg_._size_m_tnru3_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_tnru3_gg_._shape_Pattern_tnru3_gg_{background-color:transparent;margin-right:4px}.___SIcon_tnru3_gg_{line-height:0;margin-right:4px}.___SIcon_tnru3_gg_._size_l_tnru3_gg_{margin-top:4px}.___SIcon_tnru3_gg_._size_m_tnru3_gg_{margin-top:2px}.___SLabel_tnru3_gg_{min-width:0}.___SAdditionalLabel_tnru3_gg_._size_l_tnru3_gg_,.___SCount_tnru3_gg_._size_l_tnru3_gg_,.___SLabel_tnru3_gg_._size_l_tnru3_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_tnru3_gg_._size_m_tnru3_gg_,.___SCount_tnru3_gg_._size_m_tnru3_gg_,.___SLabel_tnru3_gg_._size_m_tnru3_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_tnru3_gg_,.___SCount_tnru3_gg_{margin-left:4px}.___SAdditionalLabel_tnru3_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_tnru3_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_tnru3_gg_._size_l_tnru3_gg_::before{margin-top:10px}.___SAdditionalLabel_tnru3_gg_._size_m_tnru3_gg_::before{margin-top:8px}.___SPatternSymbol_tnru3_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "tnru3_gg_") /*__reshadow_css_end__*/, {
23
- "__SLegendItem": "___SLegendItem_tnru3_gg_",
24
- "_disabled": "__disabled_tnru3_gg_",
25
- "__SPointShape": "___SPointShape_tnru3_gg_",
26
- "_color": "__color_tnru3_gg_",
27
- "--color": "--color_tnru3",
28
- "_shape_Circle": "_shape_Circle_tnru3_gg_",
29
- "_size_l": "_size_l_tnru3_gg_",
30
- "_size_m": "_size_m_tnru3_gg_",
31
- "_shape_Line": "_shape_Line_tnru3_gg_",
32
- "_shape_Square": "_shape_Square_tnru3_gg_",
33
- "_shape_Pattern": "_shape_Pattern_tnru3_gg_",
34
- "__SIcon": "___SIcon_tnru3_gg_",
35
- "__SLabel": "___SLabel_tnru3_gg_",
36
- "__SAdditionalLabel": "___SAdditionalLabel_tnru3_gg_",
37
- "__SCount": "___SCount_tnru3_gg_",
38
- "__SPatternSymbol": "___SPatternSymbol_tnru3_gg_"
22
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_uzl47_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_uzl47_gg_:hover{cursor:pointer}.___SLegendItem_uzl47_gg_.__disabled_uzl47_gg_:hover{cursor:default}}.___SPointShape_uzl47_gg_.__color_uzl47_gg_{background-color:var(--color_uzl47);margin-right:8px;flex-shrink:0}.___SPointShape_uzl47_gg_._shape_Circle_uzl47_gg_._size_l_uzl47_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_uzl47_gg_._shape_Circle_uzl47_gg_._size_m_uzl47_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_uzl47_gg_._shape_Line_uzl47_gg_._size_l_uzl47_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_uzl47_gg_._shape_Line_uzl47_gg_._size_m_uzl47_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_uzl47_gg_._shape_Square_uzl47_gg_._size_l_uzl47_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_uzl47_gg_._shape_Square_uzl47_gg_._size_m_uzl47_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_uzl47_gg_._shape_Pattern_uzl47_gg_{background-color:transparent;margin-right:4px}.___SIcon_uzl47_gg_{line-height:0;margin-right:4px}.___SIcon_uzl47_gg_._size_l_uzl47_gg_{margin-top:4px}.___SIcon_uzl47_gg_._size_m_uzl47_gg_{margin-top:2px}.___SLabel_uzl47_gg_{min-width:0}.___SAdditionalLabel_uzl47_gg_._size_l_uzl47_gg_,.___SCount_uzl47_gg_._size_l_uzl47_gg_,.___SLabel_uzl47_gg_._size_l_uzl47_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_uzl47_gg_._size_m_uzl47_gg_,.___SCount_uzl47_gg_._size_m_uzl47_gg_,.___SLabel_uzl47_gg_._size_m_uzl47_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_uzl47_gg_,.___SCount_uzl47_gg_{margin-left:4px}.___SAdditionalLabel_uzl47_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_uzl47_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_uzl47_gg_._size_l_uzl47_gg_::before{margin-top:10px}.___SAdditionalLabel_uzl47_gg_._size_m_uzl47_gg_::before{margin-top:8px}.___SPatternSymbol_uzl47_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "uzl47_gg_") /*__reshadow_css_end__*/, {
23
+ "__SLegendItem": "___SLegendItem_uzl47_gg_",
24
+ "_disabled": "__disabled_uzl47_gg_",
25
+ "__SPointShape": "___SPointShape_uzl47_gg_",
26
+ "_color": "__color_uzl47_gg_",
27
+ "--color": "--color_uzl47",
28
+ "_shape_Circle": "_shape_Circle_uzl47_gg_",
29
+ "_size_l": "_size_l_uzl47_gg_",
30
+ "_size_m": "_size_m_uzl47_gg_",
31
+ "_shape_Line": "_shape_Line_uzl47_gg_",
32
+ "_shape_Square": "_shape_Square_uzl47_gg_",
33
+ "_shape_Pattern": "_shape_Pattern_uzl47_gg_",
34
+ "__SIcon": "___SIcon_uzl47_gg_",
35
+ "__SLabel": "___SLabel_uzl47_gg_",
36
+ "__SAdditionalLabel": "___SAdditionalLabel_uzl47_gg_",
37
+ "__SCount": "___SCount_uzl47_gg_",
38
+ "__SPatternSymbol": "___SPatternSymbol_uzl47_gg_"
39
39
  });
40
40
  import { StaticShapes } from './LegendItem.type';
41
41
  import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
@@ -11,12 +11,12 @@ import React from 'react';
11
11
  import createComponent, { sstyled, Root } from '@semcore/core';
12
12
  import { Box } from '@semcore/flex-box';
13
13
  /*__reshadow-styles__:"./legend-table.shadow.css"*/
14
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendTable_xbp1g_gg_.__columns-count_xbp1g_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_xbp1g_gg_._size_l_xbp1g_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_xbp1g_gg_._size_m_xbp1g_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "xbp1g_gg_") /*__reshadow_css_end__*/, {
15
- "__SLegendTable": "___SLegendTable_xbp1g_gg_",
16
- "_columns-count": "__columns-count_xbp1g_gg_",
17
- "__SColumnItem": "___SColumnItem_xbp1g_gg_",
18
- "_size_l": "_size_l_xbp1g_gg_",
19
- "_size_m": "_size_m_xbp1g_gg_"
14
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendTable_6ixbe_gg_.__columns-count_6ixbe_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_6ixbe_gg_._size_l_6ixbe_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_6ixbe_gg_._size_m_6ixbe_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "6ixbe_gg_") /*__reshadow_css_end__*/, {
15
+ "__SLegendTable": "___SLegendTable_6ixbe_gg_",
16
+ "_columns-count": "__columns-count_6ixbe_gg_",
17
+ "__SColumnItem": "___SColumnItem_6ixbe_gg_",
18
+ "_size_l": "_size_l_6ixbe_gg_",
19
+ "_size_m": "_size_m_6ixbe_gg_"
20
20
  });
21
21
  import { LegendItemComponent } from '../LegendItem/LegendItem';
22
22
  import { BaseLegend } from '../BaseLegend';
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": "3.42.1",
4
+ "version": "3.42.2",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -15,11 +15,11 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@formatjs/intl": "2.3.0",
18
- "@semcore/animation": "2.25.1",
19
- "@semcore/divider": "4.24.1",
20
- "@semcore/flex-box": "5.25.1",
21
- "@semcore/popper": "5.33.1",
22
- "@semcore/utils": "4.26.2",
18
+ "@semcore/animation": "2.25.2",
19
+ "@semcore/divider": "4.24.2",
20
+ "@semcore/flex-box": "5.25.2",
21
+ "@semcore/popper": "5.33.2",
22
+ "@semcore/utils": "4.26.3",
23
23
  "@types/d3-shape": "^3.1.0",
24
24
  "@upsetjs/venn.js": "1.4.2",
25
25
  "d3-array": "3.1.6",