@hitachivantara/uikit-react-viz 5.16.6 → 6.0.0-next.1

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 (66) hide show
  1. package/dist/{esm/BaseChart → BaseChart}/BaseChart.js +1 -1
  2. package/dist/{types/index.d.ts → index.d.ts} +6 -4
  3. package/dist/{esm/index.js → index.js} +3 -2
  4. package/dist/{esm/providers → providers}/Provider.js +9 -5
  5. package/dist/{esm/utils → utils}/registerTheme.js +1 -1
  6. package/package.json +12 -12
  7. package/dist/cjs/BarChart/BarChart.cjs +0 -138
  8. package/dist/cjs/BaseChart/BaseChart.cjs +0 -77
  9. package/dist/cjs/Boxplot/Boxplot.cjs +0 -116
  10. package/dist/cjs/Boxplot/Boxplot.styles.cjs +0 -26
  11. package/dist/cjs/Boxplot/useBoxplot.cjs +0 -72
  12. package/dist/cjs/Boxplot/useBoxplotData.cjs +0 -40
  13. package/dist/cjs/ConfusionMatrix/ConfusionMatrix.cjs +0 -182
  14. package/dist/cjs/ConfusionMatrix/ConfusionMatrix.styles.cjs +0 -29
  15. package/dist/cjs/ConfusionMatrix/utils.cjs +0 -142
  16. package/dist/cjs/DonutChart/DonutChart.cjs +0 -111
  17. package/dist/cjs/Heatmap/Heatmap.cjs +0 -127
  18. package/dist/cjs/Heatmap/Heatmap.styles.cjs +0 -26
  19. package/dist/cjs/LineChart/LineChart.cjs +0 -136
  20. package/dist/cjs/ScatterPlot/ScatterPlot.cjs +0 -128
  21. package/dist/cjs/Treemap/Treemap.cjs +0 -72
  22. package/dist/cjs/hooks/tooltip/styles.cjs +0 -80
  23. package/dist/cjs/hooks/tooltip/useTooltip.cjs +0 -116
  24. package/dist/cjs/hooks/useData.cjs +0 -164
  25. package/dist/cjs/hooks/useDataZoom.cjs +0 -27
  26. package/dist/cjs/hooks/useDataset.cjs +0 -16
  27. package/dist/cjs/hooks/useGrid.cjs +0 -39
  28. package/dist/cjs/hooks/useLegend.cjs +0 -46
  29. package/dist/cjs/hooks/useOption.cjs +0 -20
  30. package/dist/cjs/hooks/useSeries.cjs +0 -119
  31. package/dist/cjs/hooks/useVisualMap.cjs +0 -57
  32. package/dist/cjs/hooks/useVizTheme.cjs +0 -8
  33. package/dist/cjs/hooks/useXAxis.cjs +0 -64
  34. package/dist/cjs/hooks/useYAxis.cjs +0 -58
  35. package/dist/cjs/index.cjs +0 -25
  36. package/dist/cjs/providers/Provider.cjs +0 -20
  37. package/dist/cjs/utils/index.cjs +0 -193
  38. package/dist/cjs/utils/registerTheme.cjs +0 -142
  39. package/dist/esm/hooks/useVizTheme.js +0 -8
  40. /package/dist/{esm/BarChart → BarChart}/BarChart.js +0 -0
  41. /package/dist/{esm/Boxplot → Boxplot}/Boxplot.js +0 -0
  42. /package/dist/{esm/Boxplot → Boxplot}/Boxplot.styles.js +0 -0
  43. /package/dist/{esm/Boxplot → Boxplot}/useBoxplot.js +0 -0
  44. /package/dist/{esm/Boxplot → Boxplot}/useBoxplotData.js +0 -0
  45. /package/dist/{esm/ConfusionMatrix → ConfusionMatrix}/ConfusionMatrix.js +0 -0
  46. /package/dist/{esm/ConfusionMatrix → ConfusionMatrix}/ConfusionMatrix.styles.js +0 -0
  47. /package/dist/{esm/ConfusionMatrix → ConfusionMatrix}/utils.js +0 -0
  48. /package/dist/{esm/DonutChart → DonutChart}/DonutChart.js +0 -0
  49. /package/dist/{esm/Heatmap → Heatmap}/Heatmap.js +0 -0
  50. /package/dist/{esm/Heatmap → Heatmap}/Heatmap.styles.js +0 -0
  51. /package/dist/{esm/LineChart → LineChart}/LineChart.js +0 -0
  52. /package/dist/{esm/ScatterPlot → ScatterPlot}/ScatterPlot.js +0 -0
  53. /package/dist/{esm/Treemap → Treemap}/Treemap.js +0 -0
  54. /package/dist/{esm/hooks → hooks}/tooltip/styles.js +0 -0
  55. /package/dist/{esm/hooks → hooks}/tooltip/useTooltip.js +0 -0
  56. /package/dist/{esm/hooks → hooks}/useData.js +0 -0
  57. /package/dist/{esm/hooks → hooks}/useDataZoom.js +0 -0
  58. /package/dist/{esm/hooks → hooks}/useDataset.js +0 -0
  59. /package/dist/{esm/hooks → hooks}/useGrid.js +0 -0
  60. /package/dist/{esm/hooks → hooks}/useLegend.js +0 -0
  61. /package/dist/{esm/hooks → hooks}/useOption.js +0 -0
  62. /package/dist/{esm/hooks → hooks}/useSeries.js +0 -0
  63. /package/dist/{esm/hooks → hooks}/useVisualMap.js +0 -0
  64. /package/dist/{esm/hooks → hooks}/useXAxis.js +0 -0
  65. /package/dist/{esm/hooks → hooks}/useYAxis.js +0 -0
  66. /package/dist/{esm/utils → utils}/index.js +0 -0
@@ -1,142 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const echarts = require("echarts/core");
4
- function _interopNamespace(e) {
5
- if (e && e.__esModule) return e;
6
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
7
- if (e) {
8
- for (const k in e) {
9
- if (k !== "default") {
10
- const d = Object.getOwnPropertyDescriptor(e, k);
11
- Object.defineProperty(n, k, d.get ? d : {
12
- enumerable: true,
13
- get: () => e[k]
14
- });
15
- }
16
- }
17
- }
18
- n.default = e;
19
- return Object.freeze(n);
20
- }
21
- const echarts__namespace = /* @__PURE__ */ _interopNamespace(echarts);
22
- const registerTheme = (themeName, mode, themeStructure) => {
23
- const colors = themeStructure?.colors.modes[mode];
24
- if (!colors) return;
25
- const baseText = {
26
- color: colors?.text,
27
- fontWeight: themeStructure?.fontWeights.normal,
28
- fontSize: themeStructure?.fontSizes.sm,
29
- fontFamily: themeStructure?.fontFamily.body
30
- };
31
- const customAxis = {
32
- nameTextStyle: {
33
- ...baseText,
34
- color: colors?.textSubtle
35
- },
36
- axisLine: {
37
- show: true,
38
- lineStyle: {
39
- color: colors?.borderSubtle
40
- }
41
- },
42
- axisTick: {
43
- show: true,
44
- lineStyle: {
45
- color: colors?.borderSubtle
46
- }
47
- },
48
- axisLabel: {
49
- color: colors?.textSubtle,
50
- fontWeight: themeStructure?.fontWeights.normal,
51
- fontSize: themeStructure?.fontSizes.sm,
52
- fontFamily: themeStructure?.fontFamily.body
53
- },
54
- splitLine: {
55
- show: true,
56
- lineStyle: {
57
- color: colors?.borderSubtle
58
- }
59
- }
60
- };
61
- echarts__namespace.registerTheme(themeName, {
62
- color: [
63
- colors?.cat1,
64
- colors?.cat2,
65
- colors?.cat3,
66
- colors?.cat4,
67
- colors?.cat5,
68
- colors?.cat6,
69
- colors?.cat7,
70
- colors?.cat8,
71
- colors?.cat9,
72
- colors?.cat10,
73
- colors?.cat11,
74
- colors?.cat12
75
- ],
76
- legend: {
77
- textStyle: {
78
- ...baseText
79
- }
80
- },
81
- tooltip: {
82
- borderWidth: 0,
83
- padding: 0,
84
- textStyle: {
85
- ...baseText
86
- },
87
- axisPointer: {
88
- lineStyle: {
89
- color: colors?.text,
90
- width: 1
91
- }
92
- }
93
- },
94
- dataZoom: {
95
- textStyle: { ...baseText }
96
- },
97
- categoryAxis: {
98
- ...customAxis
99
- },
100
- valueAxis: {
101
- ...customAxis
102
- },
103
- logAxis: {
104
- ...customAxis
105
- },
106
- timeAxis: {
107
- ...customAxis
108
- },
109
- line: {
110
- lineStyle: {
111
- width: 2
112
- }
113
- },
114
- visualMap: {
115
- textStyle: {
116
- ...baseText
117
- }
118
- },
119
- heatmap: {
120
- label: {
121
- fontWeight: baseText.fontWeight,
122
- fontSize: baseText.fontSize,
123
- fontFamily: baseText.fontFamily
124
- },
125
- itemStyle: {
126
- borderColor: colors?.borderSubtle,
127
- borderWidth: 1
128
- }
129
- },
130
- treemap: {
131
- breadcrumb: {
132
- itemStyle: {
133
- color: colors?.text,
134
- textStyle: {
135
- color: colors?.bgContainer
136
- }
137
- }
138
- }
139
- }
140
- });
141
- };
142
- exports.registerTheme = registerTheme;
@@ -1,8 +0,0 @@
1
- import { useContext } from "react";
2
- import { HvVizContext } from "../providers/Provider.js";
3
- const useVizTheme = () => {
4
- return useContext(HvVizContext);
5
- };
6
- export {
7
- useVizTheme
8
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes