@alfalab/core-components-chart 3.1.4 → 3.1.6

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 (90) hide show
  1. package/Component.js +39 -41
  2. package/components/CustomizedLabel.js +5 -7
  3. package/components/Dot/index.css +8 -8
  4. package/components/Dot/index.js +9 -11
  5. package/components/Legends/index.css +8 -8
  6. package/components/Legends/index.js +13 -15
  7. package/components/LinearGradient.js +3 -5
  8. package/components/RectBar.js +5 -7
  9. package/components/Tick/index.css +4 -4
  10. package/components/Tick/index.js +7 -9
  11. package/components/TooltipContent/index.css +7 -7
  12. package/components/TooltipContent/index.js +12 -14
  13. package/cssm/Component.js +41 -43
  14. package/cssm/components/CustomizedLabel.js +5 -7
  15. package/cssm/components/Dot/index.js +10 -12
  16. package/cssm/components/Legends/index.js +13 -15
  17. package/cssm/components/LinearGradient.js +3 -5
  18. package/cssm/components/RectBar.js +5 -7
  19. package/cssm/components/Tick/index.js +7 -9
  20. package/cssm/components/TooltipContent/index.js +12 -14
  21. package/cssm/hooks/usePathBar/index.js +0 -2
  22. package/cssm/hooks/usePathBar/utils/getRadius.js +0 -2
  23. package/cssm/hooks/useSettings/index.js +1 -3
  24. package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +0 -2
  25. package/cssm/hooks/useSettings/utils/setDatas.js +4 -6
  26. package/cssm/hooks/useSettings/utils/setGradientCharts.js +2 -4
  27. package/cssm/hooks/useSettings/utils/setLegendMargin.js +0 -2
  28. package/cssm/hooks/useSettings/utils/sortByIndex.js +0 -2
  29. package/cssm/icons/Circle.js +4 -6
  30. package/cssm/icons/CircleLine.js +5 -7
  31. package/cssm/icons/FilledCircle.js +8 -10
  32. package/cssm/icons/Point.js +5 -7
  33. package/cssm/icons/StrokeCircle.js +4 -6
  34. package/cssm/index.js +9 -11
  35. package/cssm/{tslib.es6-0de342ae.d.ts → tslib.es6-19b064c1.d.ts} +0 -0
  36. package/cssm/{tslib.es6-0de342ae.js → tslib.es6-19b064c1.js} +0 -0
  37. package/cssm/types/utils/index.d.ts +1 -0
  38. package/esm/Component.js +23 -23
  39. package/esm/components/CustomizedLabel.js +1 -1
  40. package/esm/components/Dot/index.css +8 -8
  41. package/esm/components/Dot/index.js +3 -3
  42. package/esm/components/Legends/index.css +8 -8
  43. package/esm/components/Legends/index.js +4 -4
  44. package/esm/components/LinearGradient.js +1 -1
  45. package/esm/components/RectBar.js +2 -2
  46. package/esm/components/Tick/index.css +4 -4
  47. package/esm/components/Tick/index.js +2 -2
  48. package/esm/components/TooltipContent/index.css +7 -7
  49. package/esm/components/TooltipContent/index.js +2 -2
  50. package/esm/hooks/useSettings/index.js +1 -1
  51. package/esm/hooks/useSettings/utils/setDatas.js +4 -4
  52. package/esm/hooks/useSettings/utils/setGradientCharts.js +2 -2
  53. package/esm/index.css +5 -5
  54. package/esm/index.js +7 -7
  55. package/esm/{tslib.es6-98750278.d.ts → tslib.es6-44e6acd2.d.ts} +0 -0
  56. package/esm/{tslib.es6-98750278.js → tslib.es6-44e6acd2.js} +0 -0
  57. package/esm/types/utils/index.d.ts +1 -0
  58. package/hooks/usePathBar/index.js +0 -2
  59. package/hooks/usePathBar/utils/getRadius.js +0 -2
  60. package/hooks/useSettings/index.js +1 -3
  61. package/hooks/useSettings/utils/setComposedChartsMargin.js +0 -2
  62. package/hooks/useSettings/utils/setDatas.js +4 -6
  63. package/hooks/useSettings/utils/setGradientCharts.js +2 -4
  64. package/hooks/useSettings/utils/setLegendMargin.js +0 -2
  65. package/hooks/useSettings/utils/sortByIndex.js +0 -2
  66. package/icons/Circle.js +4 -6
  67. package/icons/CircleLine.js +5 -7
  68. package/icons/FilledCircle.js +8 -10
  69. package/icons/Point.js +5 -7
  70. package/icons/StrokeCircle.js +4 -6
  71. package/index.css +5 -5
  72. package/index.js +7 -9
  73. package/modern/Component.js +10 -10
  74. package/modern/components/CustomizedLabel.js +1 -1
  75. package/modern/components/Dot/index.css +8 -8
  76. package/modern/components/Dot/index.js +1 -1
  77. package/modern/components/Legends/index.css +8 -8
  78. package/modern/components/Legends/index.js +1 -1
  79. package/modern/components/RectBar.js +1 -1
  80. package/modern/components/Tick/index.css +4 -4
  81. package/modern/components/Tick/index.js +1 -1
  82. package/modern/components/TooltipContent/index.css +7 -7
  83. package/modern/components/TooltipContent/index.js +1 -1
  84. package/modern/index.css +5 -5
  85. package/modern/index.js +6 -6
  86. package/modern/types/utils/index.d.ts +1 -0
  87. package/package.json +2 -2
  88. package/{tslib.es6-27fe16ea.d.ts → tslib.es6-0a16d1e2.d.ts} +0 -0
  89. package/{tslib.es6-27fe16ea.js → tslib.es6-0a16d1e2.js} +0 -0
  90. package/types/utils/index.d.ts +1 -0
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"tickText":"chart__tickText_19d3b","circle":"chart__circle_19d3b"};
4
+ const styles = {"tickText":"chart__tickText_gmual","circle":"chart__circle_gmual"};
5
5
  require('./index.css')
6
6
 
7
7
  const Tick = ({ y, payload, tickFormatter, xAxis }) => {
@@ -1,4 +1,4 @@
1
- /* hash: qccg7 */
1
+ /* hash: ion8l */
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_ackkk {
22
+ .chart__tooltip_59a0x {
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_ackkk {
31
+ .chart__tooltipList_59a0x {
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_ackkk {
38
+ .chart__tooltipItem_59a0x {
39
39
  margin-bottom: 10px;
40
40
  }
41
- .chart__tooltipArrow_ackkk {
41
+ .chart__tooltipArrow_59a0x {
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_ackkk:before {
51
+ .chart__tooltipArrow_59a0x: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_ackkk {
62
+ .chart__tooltipArrowRight_59a0x {
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/modern';
4
4
 
5
- var styles = {"tooltip":"chart__tooltip_ackkk","tooltipList":"chart__tooltipList_ackkk","tooltipItem":"chart__tooltipItem_ackkk","tooltipArrow":"chart__tooltipArrow_ackkk","tooltipArrowRight":"chart__tooltipArrowRight_ackkk"};
5
+ const styles = {"tooltip":"chart__tooltip_59a0x","tooltipList":"chart__tooltipList_59a0x","tooltipItem":"chart__tooltipItem_59a0x","tooltipArrow":"chart__tooltipArrow_59a0x","tooltipArrowRight":"chart__tooltipArrowRight_59a0x"};
6
6
  require('./index.css')
7
7
 
8
8
  const TooltipContent = ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }) => {
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1cwyb */
1
+ /* hash: 1uc1h */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  }
@@ -10,17 +10,17 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .chart__coreChart_11fps .recharts-line path {
13
+ .chart__coreChart_12np2 .recharts-line path {
14
14
  transition: d 0.2s ease-out;
15
15
  }
16
- .chart__coreChart_11fps .recharts-text tspan {
16
+ .chart__coreChart_12np2 .recharts-text tspan {
17
17
  fill: var(--color-light-text-primary);
18
18
  font-size: 16px;
19
19
  line-height: 22px;
20
20
  }
21
- .chart__bar_11fps {
21
+ .chart__bar_12np2 {
22
22
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
23
23
  }
24
- .chart__unfocused_11fps {
24
+ .chart__unfocused_12np2 {
25
25
  opacity: 0.3;
26
26
  }
package/modern/index.js CHANGED
@@ -1,25 +1,25 @@
1
+ export { Chart } from './Component.js';
1
2
  import 'react';
2
3
  import 'classnames';
3
4
  import 'recharts';
4
- import './hooks/usePathBar/utils/getRadius.js';
5
- import './hooks/usePathBar/index.js';
6
5
  import './components/CustomizedLabel.js';
7
- import './icons/Point.js';
6
+ import './hooks/usePathBar/index.js';
7
+ import './hooks/usePathBar/utils/getRadius.js';
8
8
  import './components/Dot/index.js';
9
+ import './icons/Point.js';
10
+ import './components/Legends/index.js';
9
11
  import '@alfalab/core-components-typography/modern';
10
12
  import './icons/Circle.js';
11
13
  import './icons/CircleLine.js';
12
14
  import './icons/FilledCircle.js';
13
15
  import './icons/StrokeCircle.js';
14
- import './components/Legends/index.js';
15
16
  import './components/LinearGradient.js';
16
17
  import './components/RectBar.js';
17
18
  import './components/Tick/index.js';
18
19
  import './components/TooltipContent/index.js';
19
- export { Chart } from './Component.js';
20
+ import './hooks/useSettings/index.js';
20
21
  import './hooks/useSettings/utils/setComposedChartsMargin.js';
21
22
  import './hooks/useSettings/utils/setDatas.js';
22
23
  import './hooks/useSettings/utils/setGradientCharts.js';
23
24
  import './hooks/useSettings/utils/setLegendMargin.js';
24
25
  import './hooks/useSettings/utils/sortByIndex.js';
25
- import './hooks/useSettings/index.js';
@@ -4,3 +4,4 @@ export * from "./data.types";
4
4
  export * from "./dot.types";
5
5
  export * from "./gradient.types";
6
6
  export * from "./tick.types";
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-chart",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "description": "Chart component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "directory": "dist"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-typography": "^3.0.6",
17
+ "@alfalab/core-components-typography": "^3.0.8",
18
18
  "classnames": "^2.3.1",
19
19
  "recharts": "^2.1.2"
20
20
  },
File without changes
@@ -4,3 +4,4 @@ export * from "./data.types";
4
4
  export * from "./dot.types";
5
5
  export * from "./gradient.types";
6
6
  export * from "./tick.types";
7
+ export {};