@alfalab/core-components-chart 1.2.0 → 2.0.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 (79) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/Component.d.ts +2 -3
  3. package/dist/Component.js +6 -5
  4. package/dist/components/Dot/index.css +8 -8
  5. package/dist/components/Dot/index.js +1 -1
  6. package/dist/components/Legends/index.css +8 -8
  7. package/dist/components/Legends/index.js +1 -1
  8. package/dist/components/RectBar.d.ts +2 -3
  9. package/dist/components/RectBar.js +3 -2
  10. package/dist/components/Tick/index.css +4 -4
  11. package/dist/components/Tick/index.js +1 -1
  12. package/dist/components/TooltipContent/index.css +7 -7
  13. package/dist/components/TooltipContent/index.js +1 -1
  14. package/dist/cssm/Component.d.ts +2 -3
  15. package/dist/cssm/Component.js +4 -3
  16. package/dist/cssm/components/RectBar.d.ts +2 -3
  17. package/dist/cssm/components/RectBar.js +3 -2
  18. package/dist/cssm/index.d.ts +1 -0
  19. package/dist/cssm/index.js +6 -1
  20. package/dist/cssm/types/index.d.ts +14 -0
  21. package/dist/cssm/types/index.js +2 -0
  22. package/dist/cssm/types/utils/index.d.ts +6 -0
  23. package/dist/cssm/types/utils/index.js +2 -0
  24. package/dist/esm/Component.d.ts +2 -3
  25. package/dist/esm/Component.js +4 -5
  26. package/dist/esm/components/Dot/index.css +8 -8
  27. package/dist/esm/components/Dot/index.js +1 -1
  28. package/dist/esm/components/Legends/index.css +8 -8
  29. package/dist/esm/components/Legends/index.js +1 -1
  30. package/dist/esm/components/RectBar.d.ts +2 -3
  31. package/dist/esm/components/RectBar.js +1 -2
  32. package/dist/esm/components/Tick/index.css +4 -4
  33. package/dist/esm/components/Tick/index.js +1 -1
  34. package/dist/esm/components/TooltipContent/index.css +7 -7
  35. package/dist/esm/components/TooltipContent/index.js +1 -1
  36. package/dist/esm/hooks/useSettings/index.js +1 -1
  37. package/dist/esm/hooks/useSettings/utils/setDatas.js +1 -1
  38. package/dist/esm/hooks/useSettings/utils/setGradientCharts.js +1 -1
  39. package/dist/esm/index.css +3 -3
  40. package/dist/esm/index.d.ts +1 -0
  41. package/dist/esm/index.js +2 -2
  42. package/dist/esm/{tslib.es6-606922e2.d.ts → tslib.es6-6de29960.d.ts} +0 -0
  43. package/dist/esm/{tslib.es6-606922e2.js → tslib.es6-6de29960.js} +0 -0
  44. package/dist/esm/types/index.d.ts +14 -0
  45. package/dist/esm/types/index.js +1 -0
  46. package/dist/esm/types/utils/index.d.ts +6 -0
  47. package/dist/esm/types/utils/index.js +1 -0
  48. package/dist/hooks/useSettings/index.js +1 -1
  49. package/dist/hooks/useSettings/utils/setDatas.js +1 -1
  50. package/dist/hooks/useSettings/utils/setGradientCharts.js +1 -1
  51. package/dist/index.css +3 -3
  52. package/dist/index.d.ts +1 -0
  53. package/dist/index.js +7 -2
  54. package/dist/modern/Component.d.ts +2 -3
  55. package/dist/modern/Component.js +3 -4
  56. package/dist/modern/components/Dot/index.css +8 -8
  57. package/dist/modern/components/Dot/index.js +1 -1
  58. package/dist/modern/components/Legends/index.css +8 -8
  59. package/dist/modern/components/Legends/index.js +1 -1
  60. package/dist/modern/components/RectBar.d.ts +2 -3
  61. package/dist/modern/components/RectBar.js +1 -2
  62. package/dist/modern/components/Tick/index.css +4 -4
  63. package/dist/modern/components/Tick/index.js +1 -1
  64. package/dist/modern/components/TooltipContent/index.css +7 -7
  65. package/dist/modern/components/TooltipContent/index.js +1 -1
  66. package/dist/modern/index.css +3 -3
  67. package/dist/modern/index.d.ts +1 -0
  68. package/dist/modern/index.js +1 -1
  69. package/dist/modern/types/index.d.ts +14 -0
  70. package/dist/modern/types/index.js +1 -0
  71. package/dist/modern/types/utils/index.d.ts +6 -0
  72. package/dist/modern/types/utils/index.js +1 -0
  73. package/dist/{tslib.es6-3d19766a.d.ts → tslib.es6-c72c948d.d.ts} +0 -0
  74. package/dist/{tslib.es6-3d19766a.js → tslib.es6-c72c948d.js} +0 -0
  75. package/dist/types/index.d.ts +14 -0
  76. package/dist/types/index.js +2 -0
  77. package/dist/types/utils/index.d.ts +6 -0
  78. package/dist/types/utils/index.js +2 -0
  79. package/package.json +3 -4
@@ -1,4 +1,4 @@
1
- /* hash: 1cwrr */
1
+ /* hash: 1umff */
2
2
  :root {
3
3
  --color-dark-bg-primary: #0b1f35;
4
4
  --color-light-text-primary: #0b1f35;
@@ -11,17 +11,17 @@
11
11
 
12
12
  /* Hard up */
13
13
  }
14
- .chart__tickText_1cwrr {
14
+ .chart__tickText_sxzxj {
15
15
  fill: var(--color-light-text-primary);
16
16
  font-size: 16px;
17
17
  line-height: 24px;
18
18
  font-weight: 400;
19
19
  }
20
- .chart__circle_1cwrr {
20
+ .chart__circle_sxzxj {
21
21
  opacity: 0.3;
22
22
  fill: var(--color-dark-bg-primary);
23
23
  }
24
- .chart__circle_1cwrr {
24
+ .chart__circle_sxzxj {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
27
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"tickText":"chart__tickText_1cwrr","circle":"chart__circle_1cwrr"};
4
+ var styles = {"tickText":"chart__tickText_sxzxj","circle":"chart__circle_sxzxj"};
5
5
  require('./index.css')
6
6
 
7
7
  var Tick = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 8ie71 */
1
+ /* hash: 1ie0c */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -19,7 +19,7 @@
19
19
  :root {
20
20
  --border-radius-m: 8px;
21
21
  }
22
- .chart__tooltip_8ie71 {
22
+ .chart__tooltip_csamk {
23
23
  background-color: var(--color-light-bg-primary);
24
24
  border: 1px solid var(--color-light-border-primary);
25
25
  box-shadow: var(--shadow-l);
@@ -28,17 +28,17 @@
28
28
  pointer-events: none;
29
29
  position: relative;
30
30
  }
31
- .chart__tooltipList_8ie71 {
31
+ .chart__tooltipList_csamk {
32
32
  position: relative;
33
33
  z-index: 5;
34
34
  list-style-type: none;
35
35
  padding: 0;
36
36
  margin: 0;
37
37
  }
38
- .chart__tooltipItem_8ie71 {
38
+ .chart__tooltipItem_csamk {
39
39
  margin-bottom: 10px;
40
40
  }
41
- .chart__tooltipArrow_8ie71 {
41
+ .chart__tooltipArrow_csamk {
42
42
  position: absolute;
43
43
  left: 0;
44
44
  top: 50%;
@@ -48,7 +48,7 @@
48
48
  border: 1px solid var(--color-light-border-primary);
49
49
  background-color: var(--color-light-bg-primary);
50
50
  }
51
- .chart__tooltipArrow_8ie71:before {
51
+ .chart__tooltipArrow_csamk:before {
52
52
  content: '';
53
53
  position: absolute;
54
54
  left: -2px;
@@ -59,7 +59,7 @@
59
59
  border-width: 0 24px 24px 0;
60
60
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
61
61
  }
62
- .chart__tooltipArrowRight_8ie71 {
62
+ .chart__tooltipArrowRight_csamk {
63
63
  left: 100%;
64
64
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
65
65
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Typography } from '@alfalab/core-components-typography/dist/esm';
4
4
 
5
- var styles = {"tooltip":"chart__tooltip_8ie71","tooltipList":"chart__tooltipList_8ie71","tooltipItem":"chart__tooltipItem_8ie71","tooltipArrow":"chart__tooltipArrow_8ie71","tooltipArrowRight":"chart__tooltipArrowRight_8ie71"};
5
+ var styles = {"tooltip":"chart__tooltip_csamk","tooltipList":"chart__tooltipList_csamk","tooltipItem":"chart__tooltipItem_csamk","tooltipArrow":"chart__tooltipArrow_csamk","tooltipArrowRight":"chart__tooltipArrowRight_csamk"};
6
6
  require('./index.css')
7
7
 
8
8
  var TooltipContent = function (_a) {
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../../tslib.es6-606922e2.js';
1
+ import { _ as __assign } from '../../tslib.es6-6de29960.js';
2
2
  import { useState, useEffect } from 'react';
3
3
  import { setComposedChartsMargin } from './utils/setComposedChartsMargin.js';
4
4
  import { setDatas } from './utils/setDatas.js';
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../../../tslib.es6-606922e2.js';
1
+ import { _ as __assign } from '../../../tslib.es6-6de29960.js';
2
2
 
3
3
  var setDatas = function (series, labels) {
4
4
  var initData = [];
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../../../tslib.es6-606922e2.js';
1
+ import { _ as __assign } from '../../../tslib.es6-6de29960.js';
2
2
 
3
3
  var setGradientCharts = function (series) {
4
4
  var filterSeries = series.filter(function (item) { return item.chart !== 'gradient'; });
@@ -1,4 +1,4 @@
1
- /* hash: 1btmk */
1
+ /* hash: 1x30x */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,9 +7,9 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .chart__bar_1btmk {
10
+ .chart__bar_4ogl7 {
11
11
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
12
12
  }
13
- .chart__unfocused_1btmk {
13
+ .chart__unfocused_4ogl7 {
14
14
  opacity: 0.3;
15
15
  }
@@ -1 +1,2 @@
1
1
  export * from "./Component";
2
+ export * from "./types/index";
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import './tslib.es6-606922e2.js';
1
+ import './tslib.es6-6de29960.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import 'recharts';
5
- import './Component.js';
5
+ export { Chart } from './Component.js';
6
6
  import './components/LinearGradient.js';
7
7
  import '@alfalab/core-components-typography/dist/esm';
8
8
  import './icons/Circle.js';
@@ -0,0 +1,14 @@
1
+ export * from "./utils/index";
2
+ export * from "./brush.types";
3
+ export * from "./cartesianGrid.types";
4
+ export * from "./chart.types";
5
+ export * from "./composedChart.types";
6
+ export * from "./labelList.types";
7
+ export * from "./legend.types";
8
+ export * from "./options.types";
9
+ export * from "./payload.types";
10
+ export * from "./responsiveContainer.types";
11
+ export * from "./seria.types";
12
+ export * from "./tooltip.types";
13
+ export * from "./xAxis.types";
14
+ export * from "./yAxis.types";
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,6 @@
1
+ export * from "./axis.types";
2
+ export * from "./coordinates.types";
3
+ export * from "./data.types";
4
+ export * from "./dot.types";
5
+ export * from "./gradient.types";
6
+ export * from "./tick.types";
@@ -0,0 +1 @@
1
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-3d19766a.js');
5
+ var tslib_es6 = require('../../tslib.es6-c72c948d.js');
6
6
  var React = require('react');
7
7
  var hooks_useSettings_utils_setComposedChartsMargin = require('./utils/setComposedChartsMargin.js');
8
8
  var hooks_useSettings_utils_setDatas = require('./utils/setDatas.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../../tslib.es6-3d19766a.js');
5
+ var tslib_es6 = require('../../../tslib.es6-c72c948d.js');
6
6
 
7
7
  var setDatas = function (series, labels) {
8
8
  var initData = [];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../../tslib.es6-3d19766a.js');
5
+ var tslib_es6 = require('../../../tslib.es6-c72c948d.js');
6
6
 
7
7
  var setGradientCharts = function (series) {
8
8
  var filterSeries = series.filter(function (item) { return item.chart !== 'gradient'; });
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1btmk */
1
+ /* hash: 1x30x */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,9 +7,9 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .chart__bar_1btmk {
10
+ .chart__bar_4ogl7 {
11
11
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
12
12
  }
13
- .chart__unfocused_1btmk {
13
+ .chart__unfocused_4ogl7 {
14
14
  opacity: 0.3;
15
15
  }
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./Component";
2
+ export * from "./types/index";
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  'use strict';
2
2
 
3
- require('./tslib.es6-3d19766a.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('./tslib.es6-c72c948d.js');
4
6
  require('react');
5
7
  require('classnames');
6
8
  require('recharts');
7
- require('./Component.js');
9
+ var Component = require('./Component.js');
8
10
  require('./components/LinearGradient.js');
9
11
  require('@alfalab/core-components-typography');
10
12
  require('./icons/Circle.js');
@@ -27,3 +29,6 @@ require('./components/RectBar.js');
27
29
  require('./components/Tick/index.js');
28
30
  require('./components/TooltipContent/index.js');
29
31
 
32
+
33
+
34
+ exports.Chart = Component.Chart;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import React from 'react';
3
2
  import { OptionsProps } from "./types/options.types";
4
- declare const _default: React.MemoExoticComponent<(props: OptionsProps) => JSX.Element | null>;
5
- export { _default as default };
3
+ declare const Chart: (props: OptionsProps) => JSX.Element | null;
4
+ export { Chart };
@@ -19,7 +19,7 @@ import { useSettings } from './hooks/useSettings/index.js';
19
19
  import './hooks/usePathBar/utils/getRadius.js';
20
20
  import './hooks/usePathBar/index.js';
21
21
  import { CustomizedLabel } from './components/CustomizedLabel.js';
22
- import RectBar from './components/RectBar.js';
22
+ import { RectBar } from './components/RectBar.js';
23
23
  import { Tick } from './components/Tick/index.js';
24
24
  import { TooltipContent } from './components/TooltipContent/index.js';
25
25
 
@@ -30,7 +30,7 @@ const CustomizedHOC = (Component, options) => {
30
30
  return NewComponent;
31
31
  };
32
32
 
33
- var styles = {"coreChart":"chart__coreChart_1btmk","bar":"chart__bar_1btmk","unfocused":"chart__unfocused_1btmk"};
33
+ var styles = {"coreChart":"chart__coreChart_4ogl7","bar":"chart__bar_4ogl7","unfocused":"chart__unfocused_4ogl7"};
34
34
  require('./index.css')
35
35
 
36
36
  const Chart = (props) => {
@@ -263,6 +263,5 @@ const Chart = (props) => {
263
263
  state.brush && renderBrush,
264
264
  state.legend && renderLegend))));
265
265
  };
266
- var Component = React.memo(Chart);
267
266
 
268
- export default Component;
267
+ export { Chart };
@@ -1,19 +1,19 @@
1
- /* hash: 9g95g */
2
- .chart__dotUnfocused_9g95g {
1
+ /* hash: 11tnr */
2
+ .chart__dotUnfocused_13nr2 {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_9g95g,
7
- .chart__dotItem_9g95g,
8
- .chart__dotWrap_9g95g {
6
+ .chart__dot_13nr2,
7
+ .chart__dotItem_13nr2,
8
+ .chart__dotWrap_13nr2 {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_9g95g {
13
- animation: chart__showDot_9g95g 0.5s ease;
12
+ .chart__dot_13nr2 {
13
+ animation: chart__showDot_13nr2 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_9g95g {
16
+ @keyframes chart__showDot_13nr2 {
17
17
  from {
18
18
  opacity: 0;
19
19
  }
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { PointIcon } from '../../icons/Point.js';
4
4
 
5
- var styles = {"dotUnfocused":"chart__dotUnfocused_9g95g","dot":"chart__dot_9g95g","dotItem":"chart__dotItem_9g95g","dotWrap":"chart__dotWrap_9g95g","showDot":"chart__showDot_9g95g"};
5
+ var styles = {"dotUnfocused":"chart__dotUnfocused_13nr2","dot":"chart__dot_13nr2","dotItem":"chart__dotItem_13nr2","dotWrap":"chart__dotWrap_13nr2","showDot":"chart__showDot_13nr2"};
6
6
  require('./index.css')
7
7
 
8
8
  const Dot = React.forwardRef(({ cx, cy, index, activeDot, dataKey, dotSettings, value, stroke }, ref) => {
@@ -1,4 +1,4 @@
1
- /* hash: v8ezw */
1
+ /* hash: 1hoci */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,31 +10,31 @@
10
10
  :root {
11
11
  --gap-2xl: 32px;
12
12
  }
13
- .chart__legendContent_v8ezw {
13
+ .chart__legendContent_1e90m {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  flex-wrap: wrap;
17
17
  }
18
- .chart__legendWrap_v8ezw {
18
+ .chart__legendWrap_1e90m {
19
19
  width: 100%;
20
20
  margin: 0;
21
21
  padding: 0;
22
22
  }
23
- .chart__legendItem_v8ezw {
23
+ .chart__legendItem_1e90m {
24
24
  margin-right: var(--gap-2xl);
25
25
  cursor: pointer;
26
26
  display: inline-block;
27
27
  }
28
- .chart__legendItem_v8ezw:last-child {
28
+ .chart__legendItem_1e90m:last-child {
29
29
  margin-right: 0;
30
30
  }
31
- .chart__legendUnactive_v8ezw {
31
+ .chart__legendUnactive_1e90m {
32
32
  opacity: 0.3;
33
33
  }
34
- .chart__legendIcon_v8ezw {
34
+ .chart__legendIcon_1e90m {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
37
  }
38
- .chart__legendValue_v8ezw {
38
+ .chart__legendValue_1e90m {
39
39
  text-transform: capitalize;
40
40
  }
@@ -6,7 +6,7 @@ import { CircleLineIcon } from '../../icons/CircleLine.js';
6
6
  import { FilledCircleIcon } from '../../icons/FilledCircle.js';
7
7
  import { StrokeCircleIcon } from '../../icons/StrokeCircle.js';
8
8
 
9
- var styles = {"legendContent":"chart__legendContent_v8ezw","legendWrap":"chart__legendWrap_v8ezw","legendItem":"chart__legendItem_v8ezw","legendUnactive":"chart__legendUnactive_v8ezw","legendIcon":"chart__legendIcon_v8ezw","legendValue":"chart__legendValue_v8ezw"};
9
+ var styles = {"legendContent":"chart__legendContent_1e90m","legendWrap":"chart__legendWrap_1e90m","legendItem":"chart__legendItem_1e90m","legendUnactive":"chart__legendUnactive_1e90m","legendIcon":"chart__legendIcon_1e90m","legendValue":"chart__legendValue_1e90m"};
10
10
  require('./index.css')
11
11
 
12
12
  const icons = {
@@ -1,4 +1,3 @@
1
1
  /// <reference types="react" />
2
- import React from 'react';
3
- declare const _default: React.MemoExoticComponent<({ fill, x, y, width, height, radius, background }: any) => JSX.Element>;
4
- export { _default as default };
2
+ declare const RectBar: ({ fill, x, y, width, height, radius, background }: any) => JSX.Element;
3
+ export { RectBar };
@@ -28,6 +28,5 @@ const RectBar = ({ fill, x, y, width, height, radius, background }) => {
28
28
  const path = useMemo(() => (React.createElement("path", { d: getPath(x, width, height, initHeight, topRadius, bottomRadius, initY), stroke: 'none', fill: fill })), [x, width, height, initHeight, topRadius, bottomRadius, initY, fill]);
29
29
  return React.createElement(React.Fragment, null, path);
30
30
  };
31
- var RectBar$1 = React.memo(RectBar);
32
31
 
33
- export default RectBar$1;
32
+ export { RectBar };
@@ -1,4 +1,4 @@
1
- /* hash: 1cwrr */
1
+ /* hash: 1umff */
2
2
  :root {
3
3
  --color-dark-bg-primary: #0b1f35;
4
4
  --color-light-text-primary: #0b1f35;
@@ -11,17 +11,17 @@
11
11
 
12
12
  /* Hard up */
13
13
  }
14
- .chart__tickText_1cwrr {
14
+ .chart__tickText_sxzxj {
15
15
  fill: var(--color-light-text-primary);
16
16
  font-size: 16px;
17
17
  line-height: 24px;
18
18
  font-weight: 400;
19
19
  }
20
- .chart__circle_1cwrr {
20
+ .chart__circle_sxzxj {
21
21
  opacity: 0.3;
22
22
  fill: var(--color-dark-bg-primary);
23
23
  }
24
- .chart__circle_1cwrr {
24
+ .chart__circle_sxzxj {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
27
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"tickText":"chart__tickText_1cwrr","circle":"chart__circle_1cwrr"};
4
+ var styles = {"tickText":"chart__tickText_sxzxj","circle":"chart__circle_sxzxj"};
5
5
  require('./index.css')
6
6
 
7
7
  const Tick = ({ y, payload, tickFormatter, xAxis }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 8ie71 */
1
+ /* hash: 1ie0c */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -19,7 +19,7 @@
19
19
  :root {
20
20
  --border-radius-m: 8px;
21
21
  }
22
- .chart__tooltip_8ie71 {
22
+ .chart__tooltip_csamk {
23
23
  background-color: var(--color-light-bg-primary);
24
24
  border: 1px solid var(--color-light-border-primary);
25
25
  box-shadow: var(--shadow-l);
@@ -28,17 +28,17 @@
28
28
  pointer-events: none;
29
29
  position: relative;
30
30
  }
31
- .chart__tooltipList_8ie71 {
31
+ .chart__tooltipList_csamk {
32
32
  position: relative;
33
33
  z-index: 5;
34
34
  list-style-type: none;
35
35
  padding: 0;
36
36
  margin: 0;
37
37
  }
38
- .chart__tooltipItem_8ie71 {
38
+ .chart__tooltipItem_csamk {
39
39
  margin-bottom: 10px;
40
40
  }
41
- .chart__tooltipArrow_8ie71 {
41
+ .chart__tooltipArrow_csamk {
42
42
  position: absolute;
43
43
  left: 0;
44
44
  top: 50%;
@@ -48,7 +48,7 @@
48
48
  border: 1px solid var(--color-light-border-primary);
49
49
  background-color: var(--color-light-bg-primary);
50
50
  }
51
- .chart__tooltipArrow_8ie71:before {
51
+ .chart__tooltipArrow_csamk:before {
52
52
  content: '';
53
53
  position: absolute;
54
54
  left: -2px;
@@ -59,7 +59,7 @@
59
59
  border-width: 0 24px 24px 0;
60
60
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
61
61
  }
62
- .chart__tooltipArrowRight_8ie71 {
62
+ .chart__tooltipArrowRight_csamk {
63
63
  left: 100%;
64
64
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
65
65
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Typography } from '@alfalab/core-components-typography/dist/modern';
4
4
 
5
- var styles = {"tooltip":"chart__tooltip_8ie71","tooltipList":"chart__tooltipList_8ie71","tooltipItem":"chart__tooltipItem_8ie71","tooltipArrow":"chart__tooltipArrow_8ie71","tooltipArrowRight":"chart__tooltipArrowRight_8ie71"};
5
+ var styles = {"tooltip":"chart__tooltip_csamk","tooltipList":"chart__tooltipList_csamk","tooltipItem":"chart__tooltipItem_csamk","tooltipArrow":"chart__tooltipArrow_csamk","tooltipArrowRight":"chart__tooltipArrowRight_csamk"};
6
6
  require('./index.css')
7
7
 
8
8
  const TooltipContent = ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1btmk */
1
+ /* hash: 1x30x */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,9 +7,9 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .chart__bar_1btmk {
10
+ .chart__bar_4ogl7 {
11
11
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
12
12
  }
13
- .chart__unfocused_1btmk {
13
+ .chart__unfocused_4ogl7 {
14
14
  opacity: 0.3;
15
15
  }
@@ -1 +1,2 @@
1
1
  export * from "./Component";
2
+ export * from "./types/index";
@@ -1,7 +1,7 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
3
  import 'recharts';
4
- import './Component.js';
4
+ export { Chart } from './Component.js';
5
5
  import './components/LinearGradient.js';
6
6
  import '@alfalab/core-components-typography/dist/modern';
7
7
  import './icons/Circle.js';
@@ -0,0 +1,14 @@
1
+ export * from "./utils/index";
2
+ export * from "./brush.types";
3
+ export * from "./cartesianGrid.types";
4
+ export * from "./chart.types";
5
+ export * from "./composedChart.types";
6
+ export * from "./labelList.types";
7
+ export * from "./legend.types";
8
+ export * from "./options.types";
9
+ export * from "./payload.types";
10
+ export * from "./responsiveContainer.types";
11
+ export * from "./seria.types";
12
+ export * from "./tooltip.types";
13
+ export * from "./xAxis.types";
14
+ export * from "./yAxis.types";
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,6 @@
1
+ export * from "./axis.types";
2
+ export * from "./coordinates.types";
3
+ export * from "./data.types";
4
+ export * from "./dot.types";
5
+ export * from "./gradient.types";
6
+ export * from "./tick.types";
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,14 @@
1
+ export * from "./utils/index";
2
+ export * from "./brush.types";
3
+ export * from "./cartesianGrid.types";
4
+ export * from "./chart.types";
5
+ export * from "./composedChart.types";
6
+ export * from "./labelList.types";
7
+ export * from "./legend.types";
8
+ export * from "./options.types";
9
+ export * from "./payload.types";
10
+ export * from "./responsiveContainer.types";
11
+ export * from "./seria.types";
12
+ export * from "./tooltip.types";
13
+ export * from "./xAxis.types";
14
+ export * from "./yAxis.types";
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,6 @@
1
+ export * from "./axis.types";
2
+ export * from "./coordinates.types";
3
+ export * from "./data.types";
4
+ export * from "./dot.types";
5
+ export * from "./gradient.types";
6
+ export * from "./tick.types";
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-chart",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "description": "Chart component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,9 +15,8 @@
15
15
  "access": "public"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-typography": "^2.0.1",
18
+ "@alfalab/core-components-typography": "^2.4.0",
19
19
  "classnames": "^2.2.6",
20
- "moment": "^2.29.1",
21
20
  "recharts": "^2.0.10"
22
21
  },
23
22
  "devDependencies": {
@@ -26,5 +25,5 @@
26
25
  "peerDependencies": {
27
26
  "react": "^16.9.0 || ^17.0.1"
28
27
  },
29
- "gitHead": "86042776f9e45c24fd7bc9fe7d81c98748f66081"
28
+ "gitHead": "ddf4fab6035139cf412e0acb7174ef388f23e4f2"
30
29
  }