@oliasoft-open-source/charts-library 2.1.1 → 2.1.3

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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useDarkMode } from 'storybook-dark-mode';
3
3
  import { themes } from '@storybook/theming';
4
4
  import { DocsContainer } from '@storybook/addon-docs';
5
- import '@oliasoft-open-source/react-ui-library/src/style/global.less';
5
+ import '@oliasoft-open-source/react-ui-library/dist/global.css';
6
6
  import './storybook.less';
7
7
 
8
8
  /**
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "build": "npm run build:storybook",
8
8
  "build:storybook": "build-storybook --quiet --output-dir ./public",
9
9
  "dev:storybook": "start-storybook -p 6006",
10
+ "preview:storybook": " http-server ./public -o -p 9002 -c-1",
10
11
  "test": "npm run prettier:check && npm run lint:check && npm run test:unit",
11
12
  "test:unit": "jest",
12
13
  "lint:check": "eslint \"**/*.{js,jsx}\"",
@@ -81,13 +82,14 @@
81
82
  "react-dom": "^17.0"
82
83
  },
83
84
  "dependencies": {
84
- "@oliasoft-open-source/react-ui-library": "^2.2.2",
85
+ "@oliasoft-open-source/react-ui-library": "^3.0.4",
85
86
  "chart.js": "^3.9.1",
86
87
  "chartjs-plugin-annotation": "^1.4.0",
87
88
  "chartjs-plugin-datalabels": "^2.1.0",
88
89
  "chartjs-plugin-zoom": "^1.2.1",
89
90
  "classnames": "^2.3.1",
90
91
  "fraction.js": "^4.2.0",
92
+ "http-server": "^14.1.1",
91
93
  "less-vars-to-js": "^1.3.0",
92
94
  "prop-types": "^15.8.1",
93
95
  "react-base64-downloader": "^2.1.7",
@@ -22,9 +22,10 @@
22
22
  height: 100%;
23
23
  }
24
24
 
25
+ // TODO: fix square plot scaling
25
26
  &.squareAspectRatio {
26
- max-height: 100vh;
27
- max-width: 100vh;
27
+ max-height: 450px;
28
+ max-width: 450px;
28
29
  }
29
30
 
30
31
  &:focus {
@@ -7,8 +7,7 @@ module.exports = function getRules(env) {
7
7
  return [
8
8
  {
9
9
  test: /\.jsx$|\.es6$|\.js$/,
10
- exclude:
11
- /node_modules(?![\\/]@oliasoft-open-source[\\/]react-ui-library)/,
10
+ exclude: /node_modules/,
12
11
  use: {
13
12
  loader: 'babel-loader',
14
13
  options: {
@@ -33,6 +32,7 @@ module.exports = function getRules(env) {
33
32
  },
34
33
  {
35
34
  test: /^(?!.*?(\.module)).*\.css$/, //all *.css except for *.module.css
35
+ exclude: /node_modules/,
36
36
  use: [
37
37
  styleLoader,
38
38
  {