@oliasoft-open-source/charts-library 2.18.0-beta-2 → 3.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.
package/dist/index.js CHANGED
@@ -40396,3 +40396,15 @@ export {
40396
40396
  ScatterChart,
40397
40397
  initializeLineChart
40398
40398
  };
40399
+ (function() {
40400
+ "use strict";
40401
+ try {
40402
+ if (typeof document != "undefined") {
40403
+ var elementStyle = document.createElement("style");
40404
+ elementStyle.appendChild(document.createTextNode("html[data-theme='dark'] ._chart_1v6ps_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\nhtml[data-theme='dark'] ._chart_15um7_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_15um7_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n position: relative;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n._chart_15um7_1 ._canvas_15um7_11 {\n flex-grow: 1;\n min-height: 0;\n}\n._chart_15um7_1 ._canvas_15um7_11 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_15um7_1._fixedHeight_15um7_19 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_15um7_1._stretchHeight_15um7_25 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_15um7_1._squareAspectRatio_15um7_31 {\n aspect-ratio: 1;\n min-height: 0;\n min-width: 0;\n}\n._chart_15um7_1:focus {\n outline: none;\n}\n._chart_15um7_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_15um7_42 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_15um7_42 ._zoomReset_15um7_50 {\n margin-left: 10px;\n}\n._zoomForm_15um7_42 ._help_15um7_53 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_15um7_57 {\n width: auto;\n height: auto;\n}\n._table_15um7_61 {\n overflow: auto;\n}\n._controls_fa3yo_1 {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n._buttons_fa3yo_7 {\n display: flex;\n margin-left: auto;\n gap: 4px;\n}\nhtml[data-theme='dark'] ._chart_1jdnu_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_1jdnu_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n padding-top: 10px;\n position: relative;\n}\n._chart_1jdnu_1 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_1jdnu_1._fixedHeight_1jdnu_13 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_1jdnu_1._stretchHeight_1jdnu_19 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_1jdnu_1:focus {\n border: 1px solid #85b7d9;\n outline: none;\n}\n._chart_1jdnu_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_1jdnu_32 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_1jdnu_32 ._zoomReset_1jdnu_40 {\n margin-left: 10px;\n}\n._zoomForm_1jdnu_32 ._help_1jdnu_43 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_1jdnu_47 {\n width: 'auto';\n height: 'auto';\n}\nhtml[data-theme='dark'] ._chart_1t41j_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_1t41j_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n padding-top: 10px;\n position: relative;\n}\n._chart_1t41j_1 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_1t41j_1._fixedHeight_1t41j_13 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_1t41j_1._stretchHeight_1t41j_19 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_1t41j_1:focus {\n border: 1px solid #85b7d9;\n outline: none;\n}\n._chart_1t41j_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_1t41j_32 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_1t41j_32 ._zoomReset_1t41j_40 {\n margin-left: 10px;\n}\n._zoomForm_1t41j_32 ._help_1t41j_43 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_1t41j_47 {\n width: auto;\n height: auto;\n}"));
40405
+ document.head.appendChild(elementStyle);
40406
+ }
40407
+ } catch (e) {
40408
+ console.error("vite-plugin-css-injected-by-js", e);
40409
+ }
40410
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "2.18.0-beta-2",
3
+ "version": "3.0.0",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
6
6
  "bugs": {
@@ -39,7 +39,6 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@storybook/addon-docs": "^7.0.18",
43
42
  "@vitejs/plugin-react-swc": "^3.3.2",
44
43
  "chart.js": "^4.2.1",
45
44
  "chartjs-plugin-annotation": "^1.4.0",
@@ -47,19 +46,17 @@
47
46
  "chartjs-plugin-dragdata": "^2.2.5",
48
47
  "chartjs-plugin-zoom": "^1.2.1",
49
48
  "classnames": "^2.3.1",
50
- "eslint-plugin-vitest": "^0.2.5",
51
49
  "lodash": "^4",
52
50
  "react-base64-downloader": "^2.1.7",
53
51
  "react-chartjs-2": "^4.3.1",
54
52
  "react-icons": "^4",
55
- "rollup-plugin-peer-deps-external": "^2.2.4",
56
- "storybook-dark-mode": "^3.0.0",
57
53
  "vite": "^4.3.9",
58
54
  "vitest": "^0.31.4"
59
55
  },
60
56
  "devDependencies": {
61
57
  "@oliasoft-open-source/react-ui-library": "^3.5.6",
62
58
  "@oliasoft-open-source/units": "^2.6.1",
59
+ "@storybook/addon-docs": "^7.0.18",
63
60
  "@storybook/react": "^7.0.18",
64
61
  "@storybook/react-vite": "^7.0.18",
65
62
  "@storybook/testing-library": "^0.0.14-next.2",
@@ -73,6 +70,7 @@
73
70
  "eslint-plugin-react": "^7.31.1",
74
71
  "eslint-plugin-react-hooks": "^4.6.0",
75
72
  "eslint-plugin-storybook": "^0.6.12",
73
+ "eslint-plugin-vitest": "^0.2.5",
76
74
  "eslint-plugin-vitest-globals": "^1.3.1",
77
75
  "http-server": "^14.1.1",
78
76
  "husky": "^8.0.1",
@@ -84,7 +82,10 @@
84
82
  "prop-types": "^15",
85
83
  "react": "^17",
86
84
  "react-dom": "^17",
87
- "storybook": "^7.0.18"
85
+ "rollup-plugin-peer-deps-external": "^2.2.4",
86
+ "storybook": "^7.0.18",
87
+ "storybook-dark-mode": "^3.0.0",
88
+ "vite-plugin-css-injected-by-js": "^3.1.1"
88
89
  },
89
90
  "peerDependencies": {
90
91
  "@oliasoft-open-source/react-ui-library": "^3.5.6",
package/dist/style.css DELETED
@@ -1,177 +0,0 @@
1
- html[data-theme='dark'] ._chart_1v6ps_1 canvas {
2
- filter: invert(1) hue-rotate(180deg);
3
- }
4
- html[data-theme='dark'] ._chart_15um7_1 canvas {
5
- filter: invert(1) hue-rotate(180deg);
6
- }
7
- ._chart_15um7_1 {
8
- border: 1px solid rgba(255, 255, 255, 0);
9
- position: relative;
10
- display: flex;
11
- flex-direction: column;
12
- gap: 8px;
13
- }
14
- ._chart_15um7_1 ._canvas_15um7_11 {
15
- flex-grow: 1;
16
- min-height: 0;
17
- }
18
- ._chart_15um7_1 ._canvas_15um7_11 canvas {
19
- width: 100% !important;
20
- height: 100% !important;
21
- }
22
- ._chart_15um7_1._fixedHeight_15um7_19 {
23
- display: flex;
24
- align-items: flex-start;
25
- justify-content: flex-start;
26
- height: auto;
27
- }
28
- ._chart_15um7_1._stretchHeight_15um7_25 {
29
- display: flex;
30
- align-items: stretch;
31
- justify-content: stretch;
32
- height: 100%;
33
- }
34
- ._chart_15um7_1._squareAspectRatio_15um7_31 {
35
- aspect-ratio: 1;
36
- min-height: 0;
37
- min-width: 0;
38
- }
39
- ._chart_15um7_1:focus {
40
- outline: none;
41
- }
42
- ._chart_15um7_1::-moz-focus-inner {
43
- border: 0;
44
- }
45
- ._zoomForm_15um7_42 {
46
- position: absolute;
47
- display: flex;
48
- align-items: center;
49
- justify-content: center;
50
- top: 0;
51
- right: 0;
52
- }
53
- ._zoomForm_15um7_42 ._zoomReset_15um7_50 {
54
- margin-left: 10px;
55
- }
56
- ._zoomForm_15um7_42 ._help_15um7_53 {
57
- margin-left: 5px;
58
- line-height: 0;
59
- }
60
- ._autoWeight_15um7_57 {
61
- width: auto;
62
- height: auto;
63
- }
64
- ._table_15um7_61 {
65
- overflow: auto;
66
- }
67
- ._controls_fa3yo_1 {
68
- display: flex;
69
- align-items: center;
70
- flex-wrap: wrap;
71
- gap: 8px;
72
- }
73
- ._buttons_fa3yo_7 {
74
- display: flex;
75
- margin-left: auto;
76
- gap: 4px;
77
- }
78
- html[data-theme='dark'] ._chart_1jdnu_1 canvas {
79
- filter: invert(1) hue-rotate(180deg);
80
- }
81
- ._chart_1jdnu_1 {
82
- border: 1px solid rgba(255, 255, 255, 0);
83
- padding-top: 10px;
84
- position: relative;
85
- }
86
- ._chart_1jdnu_1 canvas {
87
- width: 100% !important;
88
- height: 100% !important;
89
- }
90
- ._chart_1jdnu_1._fixedHeight_1jdnu_13 {
91
- display: flex;
92
- align-items: flex-start;
93
- justify-content: flex-start;
94
- height: auto;
95
- }
96
- ._chart_1jdnu_1._stretchHeight_1jdnu_19 {
97
- display: flex;
98
- align-items: stretch;
99
- justify-content: stretch;
100
- height: 100%;
101
- }
102
- ._chart_1jdnu_1:focus {
103
- border: 1px solid #85b7d9;
104
- outline: none;
105
- }
106
- ._chart_1jdnu_1::-moz-focus-inner {
107
- border: 0;
108
- }
109
- ._zoomForm_1jdnu_32 {
110
- position: absolute;
111
- display: flex;
112
- align-items: center;
113
- justify-content: center;
114
- top: 0;
115
- right: 0;
116
- }
117
- ._zoomForm_1jdnu_32 ._zoomReset_1jdnu_40 {
118
- margin-left: 10px;
119
- }
120
- ._zoomForm_1jdnu_32 ._help_1jdnu_43 {
121
- margin-left: 5px;
122
- line-height: 0;
123
- }
124
- ._autoWeight_1jdnu_47 {
125
- width: 'auto';
126
- height: 'auto';
127
- }
128
- html[data-theme='dark'] ._chart_1t41j_1 canvas {
129
- filter: invert(1) hue-rotate(180deg);
130
- }
131
- ._chart_1t41j_1 {
132
- border: 1px solid rgba(255, 255, 255, 0);
133
- padding-top: 10px;
134
- position: relative;
135
- }
136
- ._chart_1t41j_1 canvas {
137
- width: 100% !important;
138
- height: 100% !important;
139
- }
140
- ._chart_1t41j_1._fixedHeight_1t41j_13 {
141
- display: flex;
142
- align-items: flex-start;
143
- justify-content: flex-start;
144
- height: auto;
145
- }
146
- ._chart_1t41j_1._stretchHeight_1t41j_19 {
147
- display: flex;
148
- align-items: stretch;
149
- justify-content: stretch;
150
- height: 100%;
151
- }
152
- ._chart_1t41j_1:focus {
153
- border: 1px solid #85b7d9;
154
- outline: none;
155
- }
156
- ._chart_1t41j_1::-moz-focus-inner {
157
- border: 0;
158
- }
159
- ._zoomForm_1t41j_32 {
160
- position: absolute;
161
- display: flex;
162
- align-items: center;
163
- justify-content: center;
164
- top: 0;
165
- right: 0;
166
- }
167
- ._zoomForm_1t41j_32 ._zoomReset_1t41j_40 {
168
- margin-left: 10px;
169
- }
170
- ._zoomForm_1t41j_32 ._help_1t41j_43 {
171
- margin-left: 5px;
172
- line-height: 0;
173
- }
174
- ._autoWeight_1t41j_47 {
175
- width: auto;
176
- height: auto;
177
- }