@semcore/d3-chart 2.0.8 → 2.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [2.1.0] - 2022-06-01
6
+
7
+ ### Changed
8
+
9
+ - Changed type names from 'ITooltipProps' to 'ITooltipChartProps' so that there are no intersections with other components.
10
+ - Changed type names from 'ITooltipContext' to 'ITooltipChartContext' so that there are no intersections with other components.
11
+
12
+ ## [2.0.10] - 2022-05-31
13
+
14
+ ### Changed
15
+
16
+ - Version patch update due to children dependencies update (`@semcore/animation` [1.5.1 ~> 1.5.2], `@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/button` [4.0.4 ~> 4.0.5], `@semcore/checkbox` [6.0.3 ~> 6.0.4]).
17
+
18
+ ## [2.0.9] - 2022-05-31
19
+
20
+ ### Changed
21
+
22
+ - Version patch update due to children dependencies update (`@semcore/checkbox` [6.0.2 ~> 6.0.3]).
23
+
5
24
  ## [2.0.8] - 2022-05-27
6
25
 
7
26
  ### Changed
@@ -42,15 +42,15 @@ var _ref = (
42
42
  /*__reshadow_css_start__*/
43
43
  (0, _core.__css__)(
44
44
  /*__inner_css_start__*/
45
- ".___SBar_my38f_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_my38f_gg_.__color_my38f_gg_{fill:var(--color)}.___SBar_my38f_gg_.__hide_my38f_gg_{display:none}.___SBackground_my38f_gg_{fill:#c4c7cf}"
45
+ ".___SBar_jslu5_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_jslu5_gg_.__color_jslu5_gg_{fill:var(--color)}.___SBar_jslu5_gg_.__hide_jslu5_gg_{display:none}.___SBackground_jslu5_gg_{fill:#c4c7cf}"
46
46
  /*__inner_css_end__*/
47
- , "10cls02_gg_")
47
+ , "1kxmrk2_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SBar": "___SBar_my38f_gg_",
51
- "_color": "__color_my38f_gg_",
52
- "_hide": "__hide_my38f_gg_",
53
- "__SBackground": "___SBackground_my38f_gg_"
50
+ "__SBar": "___SBar_jslu5_gg_",
51
+ "_color": "__color_jslu5_gg_",
52
+ "_hide": "__hide_jslu5_gg_",
53
+ "__SBackground": "___SBackground_jslu5_gg_"
54
54
  }),
55
55
  style = (0, _extends2["default"])({}, _ref);
56
56
 
@@ -48,15 +48,15 @@ var _ref = (
48
48
  /*__reshadow_css_start__*/
49
49
  (0, _core.__css__)(
50
50
  /*__inner_css_start__*/
51
- ".___SBar_lj2ph_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_lj2ph_gg_.__color_lj2ph_gg_{fill:var(--color)}.___SBar_lj2ph_gg_.__hide_lj2ph_gg_{display:none}.___SBackground_lj2ph_gg_{fill:#c4c7cf}"
51
+ ".___SBar_9bsm0_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_9bsm0_gg_.__color_9bsm0_gg_{fill:var(--color)}.___SBar_9bsm0_gg_.__hide_9bsm0_gg_{display:none}.___SBackground_9bsm0_gg_{fill:#c4c7cf}"
52
52
  /*__inner_css_end__*/
53
- , "1jje8le_gg_")
53
+ , "nck8si_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SBar": "___SBar_lj2ph_gg_",
57
- "_color": "__color_lj2ph_gg_",
58
- "_hide": "__hide_lj2ph_gg_",
59
- "__SBackground": "___SBackground_lj2ph_gg_"
56
+ "__SBar": "___SBar_9bsm0_gg_",
57
+ "_color": "__color_9bsm0_gg_",
58
+ "_hide": "__hide_9bsm0_gg_",
59
+ "__SBackground": "___SBackground_9bsm0_gg_"
60
60
  }),
61
61
  style = (0, _extends2["default"])({}, _ref);
62
62
 
@@ -46,16 +46,16 @@ var _ref = (
46
46
  /*__reshadow_css_start__*/
47
47
  (0, _core.__css__)(
48
48
  /*__inner_css_start__*/
49
- ".___SArea_5vhjv_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_5vhjv_gg_.__color_5vhjv_gg_{fill:var(--color)}.___SAreaLine_5vhjv_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_5vhjv_gg_.__color_5vhjv_gg_{stroke:var(--color)}.___SArea_5vhjv_gg_,.___SAreaLine_5vhjv_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_5vhjv_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_5vhjv_gg_.__hide_5vhjv_gg_{display:none}"
49
+ ".___SArea_12gv4_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_12gv4_gg_.__color_12gv4_gg_{fill:var(--color)}.___SAreaLine_12gv4_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_12gv4_gg_.__color_12gv4_gg_{stroke:var(--color)}.___SArea_12gv4_gg_,.___SAreaLine_12gv4_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_12gv4_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_12gv4_gg_.__hide_12gv4_gg_{display:none}"
50
50
  /*__inner_css_end__*/
51
- , "1rwvcuc_gg_")
51
+ , "1v5rl85_gg_")
52
52
  /*__reshadow_css_end__*/
53
53
  , {
54
- "__SArea": "___SArea_5vhjv_gg_",
55
- "_color": "__color_5vhjv_gg_",
56
- "__SAreaLine": "___SAreaLine_5vhjv_gg_",
57
- "__SNull": "___SNull_5vhjv_gg_",
58
- "_hide": "__hide_5vhjv_gg_"
54
+ "__SArea": "___SArea_12gv4_gg_",
55
+ "_color": "__color_12gv4_gg_",
56
+ "__SAreaLine": "___SAreaLine_12gv4_gg_",
57
+ "__SNull": "___SNull_12gv4_gg_",
58
+ "_hide": "__hide_12gv4_gg_"
59
59
  }),
60
60
  style = (0, _extends2["default"])({}, _ref);
61
61
 
@@ -4,14 +4,14 @@ import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
4
  import { IBoxProps } from '@semcore/flex-box';
5
5
  import IContext from './context';
6
6
 
7
- export interface ITooltipProps extends IPopperProps, IPopperTriggerProps, IContext {
7
+ export interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {
8
8
  /** Field from data for XAxis */
9
9
  x?: string;
10
10
  /** Field from data for YAxis */
11
11
  y?: string;
12
12
  }
13
13
 
14
- export interface ITooltipContext {
14
+ export interface ITooltipChartContext {
15
15
  getTriggerProps: PropGetterFn;
16
16
  getPopperProps: PropGetterFn;
17
17
  /** Index active value for Axis x */
@@ -20,7 +20,9 @@ export interface ITooltipContext {
20
20
  yIndex: number | null;
21
21
  }
22
22
 
23
- declare const Tooltip: (<T>(props: CProps<ITooltipProps & T, ITooltipContext>) => ReturnEl) & {
23
+ declare const Tooltip: (<T>(
24
+ props: CProps<ITooltipChartProps & T, ITooltipChartContext>,
25
+ ) => ReturnEl) & {
24
26
  Trigger: <T>(props: CProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
25
27
  Popper: <T>(props: CProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
26
28
  Title: <T>(props: CProps<IBoxProps & T>) => ReturnEl;
@@ -22,15 +22,15 @@ var _ref = (
22
22
  /*__reshadow_css_start__*/
23
23
  __css__(
24
24
  /*__inner_css_start__*/
25
- ".___SBar_my38f_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_my38f_gg_.__color_my38f_gg_{fill:var(--color)}.___SBar_my38f_gg_.__hide_my38f_gg_{display:none}.___SBackground_my38f_gg_{fill:#c4c7cf}"
25
+ ".___SBar_jslu5_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_jslu5_gg_.__color_jslu5_gg_{fill:var(--color)}.___SBar_jslu5_gg_.__hide_jslu5_gg_{display:none}.___SBackground_jslu5_gg_{fill:#c4c7cf}"
26
26
  /*__inner_css_end__*/
27
- , "10cls02_gg_")
27
+ , "1kxmrk2_gg_")
28
28
  /*__reshadow_css_end__*/
29
29
  , {
30
- "__SBar": "___SBar_my38f_gg_",
31
- "_color": "__color_my38f_gg_",
32
- "_hide": "__hide_my38f_gg_",
33
- "__SBackground": "___SBackground_my38f_gg_"
30
+ "__SBar": "___SBar_jslu5_gg_",
31
+ "_color": "__color_jslu5_gg_",
32
+ "_hide": "__hide_jslu5_gg_",
33
+ "__SBackground": "___SBackground_jslu5_gg_"
34
34
  }),
35
35
  style = _extends({}, _ref);
36
36
 
@@ -27,15 +27,15 @@ var _ref = (
27
27
  /*__reshadow_css_start__*/
28
28
  __css__(
29
29
  /*__inner_css_start__*/
30
- ".___SBar_lj2ph_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_lj2ph_gg_.__color_lj2ph_gg_{fill:var(--color)}.___SBar_lj2ph_gg_.__hide_lj2ph_gg_{display:none}.___SBackground_lj2ph_gg_{fill:#c4c7cf}"
30
+ ".___SBar_9bsm0_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_9bsm0_gg_.__color_9bsm0_gg_{fill:var(--color)}.___SBar_9bsm0_gg_.__hide_9bsm0_gg_{display:none}.___SBackground_9bsm0_gg_{fill:#c4c7cf}"
31
31
  /*__inner_css_end__*/
32
- , "1jje8le_gg_")
32
+ , "nck8si_gg_")
33
33
  /*__reshadow_css_end__*/
34
34
  , {
35
- "__SBar": "___SBar_lj2ph_gg_",
36
- "_color": "__color_lj2ph_gg_",
37
- "_hide": "__hide_lj2ph_gg_",
38
- "__SBackground": "___SBackground_lj2ph_gg_"
35
+ "__SBar": "___SBar_9bsm0_gg_",
36
+ "_color": "__color_9bsm0_gg_",
37
+ "_hide": "__hide_9bsm0_gg_",
38
+ "__SBackground": "___SBackground_9bsm0_gg_"
39
39
  }),
40
40
  style = _extends({}, _ref);
41
41
 
@@ -26,16 +26,16 @@ var _ref = (
26
26
  /*__reshadow_css_start__*/
27
27
  __css__(
28
28
  /*__inner_css_start__*/
29
- ".___SArea_5vhjv_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_5vhjv_gg_.__color_5vhjv_gg_{fill:var(--color)}.___SAreaLine_5vhjv_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_5vhjv_gg_.__color_5vhjv_gg_{stroke:var(--color)}.___SArea_5vhjv_gg_,.___SAreaLine_5vhjv_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_5vhjv_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_5vhjv_gg_.__hide_5vhjv_gg_{display:none}"
29
+ ".___SArea_12gv4_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_12gv4_gg_.__color_12gv4_gg_{fill:var(--color)}.___SAreaLine_12gv4_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_12gv4_gg_.__color_12gv4_gg_{stroke:var(--color)}.___SArea_12gv4_gg_,.___SAreaLine_12gv4_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_12gv4_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_12gv4_gg_.__hide_12gv4_gg_{display:none}"
30
30
  /*__inner_css_end__*/
31
- , "1rwvcuc_gg_")
31
+ , "1v5rl85_gg_")
32
32
  /*__reshadow_css_end__*/
33
33
  , {
34
- "__SArea": "___SArea_5vhjv_gg_",
35
- "_color": "__color_5vhjv_gg_",
36
- "__SAreaLine": "___SAreaLine_5vhjv_gg_",
37
- "__SNull": "___SNull_5vhjv_gg_",
38
- "_hide": "__hide_5vhjv_gg_"
34
+ "__SArea": "___SArea_12gv4_gg_",
35
+ "_color": "__color_12gv4_gg_",
36
+ "__SAreaLine": "___SAreaLine_12gv4_gg_",
37
+ "__SNull": "___SNull_12gv4_gg_",
38
+ "_hide": "__hide_12gv4_gg_"
39
39
  }),
40
40
  style = _extends({}, _ref);
41
41
 
@@ -4,14 +4,14 @@ import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
4
  import { IBoxProps } from '@semcore/flex-box';
5
5
  import IContext from './context';
6
6
 
7
- export interface ITooltipProps extends IPopperProps, IPopperTriggerProps, IContext {
7
+ export interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {
8
8
  /** Field from data for XAxis */
9
9
  x?: string;
10
10
  /** Field from data for YAxis */
11
11
  y?: string;
12
12
  }
13
13
 
14
- export interface ITooltipContext {
14
+ export interface ITooltipChartContext {
15
15
  getTriggerProps: PropGetterFn;
16
16
  getPopperProps: PropGetterFn;
17
17
  /** Index active value for Axis x */
@@ -20,7 +20,9 @@ export interface ITooltipContext {
20
20
  yIndex: number | null;
21
21
  }
22
22
 
23
- declare const Tooltip: (<T>(props: CProps<ITooltipProps & T, ITooltipContext>) => ReturnEl) & {
23
+ declare const Tooltip: (<T>(
24
+ props: CProps<ITooltipChartProps & T, ITooltipChartContext>,
25
+ ) => ReturnEl) & {
24
26
  Trigger: <T>(props: CProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
25
27
  Popper: <T>(props: CProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
26
28
  Title: <T>(props: CProps<IBoxProps & T>) => ReturnEl;
@@ -4,14 +4,14 @@ import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
4
  import { IBoxProps } from '@semcore/flex-box';
5
5
  import IContext from './context';
6
6
 
7
- export interface ITooltipProps extends IPopperProps, IPopperTriggerProps, IContext {
7
+ export interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {
8
8
  /** Field from data for XAxis */
9
9
  x?: string;
10
10
  /** Field from data for YAxis */
11
11
  y?: string;
12
12
  }
13
13
 
14
- export interface ITooltipContext {
14
+ export interface ITooltipChartContext {
15
15
  getTriggerProps: PropGetterFn;
16
16
  getPopperProps: PropGetterFn;
17
17
  /** Index active value for Axis x */
@@ -20,7 +20,9 @@ export interface ITooltipContext {
20
20
  yIndex: number | null;
21
21
  }
22
22
 
23
- declare const Tooltip: (<T>(props: CProps<ITooltipProps & T, ITooltipContext>) => ReturnEl) & {
23
+ declare const Tooltip: (<T>(
24
+ props: CProps<ITooltipChartProps & T, ITooltipChartContext>,
25
+ ) => ReturnEl) & {
24
26
  Trigger: <T>(props: CProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
25
27
  Popper: <T>(props: CProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
26
28
  Title: <T>(props: CProps<IBoxProps & T>) => ReturnEl;
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": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -4,14 +4,14 @@ import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
4
4
  import { IBoxProps } from '@semcore/flex-box';
5
5
  import IContext from './context';
6
6
 
7
- export interface ITooltipProps extends IPopperProps, IPopperTriggerProps, IContext {
7
+ export interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {
8
8
  /** Field from data for XAxis */
9
9
  x?: string;
10
10
  /** Field from data for YAxis */
11
11
  y?: string;
12
12
  }
13
13
 
14
- export interface ITooltipContext {
14
+ export interface ITooltipChartContext {
15
15
  getTriggerProps: PropGetterFn;
16
16
  getPopperProps: PropGetterFn;
17
17
  /** Index active value for Axis x */
@@ -20,7 +20,9 @@ export interface ITooltipContext {
20
20
  yIndex: number | null;
21
21
  }
22
22
 
23
- declare const Tooltip: (<T>(props: CProps<ITooltipProps & T, ITooltipContext>) => ReturnEl) & {
23
+ declare const Tooltip: (<T>(
24
+ props: CProps<ITooltipChartProps & T, ITooltipChartContext>,
25
+ ) => ReturnEl) & {
24
26
  Trigger: <T>(props: CProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
25
27
  Popper: <T>(props: CProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
26
28
  Title: <T>(props: CProps<IBoxProps & T>) => ReturnEl;