awing-library 2.1.67-beta → 2.1.69-beta

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.
@@ -21,8 +21,9 @@ var moment_1 = __importDefault(require("moment"));
21
21
  var react_i18next_1 = require("react-i18next");
22
22
  var Styles_1 = require("./Styles");
23
23
  var Enums_1 = require("./Enums");
24
+ var i18n_1 = __importDefault(require("../../i18n"));
24
25
  var BarLineComponent = function (props) {
25
- var t = (0, react_i18next_1.useTranslation)().t;
26
+ var t = (0, react_i18next_1.useTranslation)(undefined, { i18n: i18n_1.default }).t;
26
27
  var chart = props.chart, _a = props.width, width = _a === void 0 ? 'auto' : _a, _b = props.height, height = _b === void 0 ? 350 : _b, _c = props.timeline, timeline = _c === void 0 ? Enums_1.TYPE_TIMELINE.DAY : _c, _d = props.optionCustom, optionCustom = _d === void 0 ? {} : _d, dataChart = props.dataChart, type = props.type, _e = props.options, options = _e === void 0 ? {
27
28
  responsive: true,
28
29
  maintainAspectRatio: false,
@@ -4,8 +4,12 @@ export declare const styledLineFill: (defaultStyle: any, variant: any) => any;
4
4
  export declare const getStyle: (defaultStyle: any, type: any, color: any) => any;
5
5
  export declare const dataSetCommonStyled: {
6
6
  barStyle: {
7
- primary: {};
8
- secondary: {};
7
+ primary: {
8
+ backgroundColor: string;
9
+ };
10
+ secondary: {
11
+ backgroundColor: string;
12
+ };
9
13
  default: {
10
14
  backgroundColor: string;
11
15
  };
@@ -95,8 +95,12 @@ var getStyle = function (defaultStyle, type, color) {
95
95
  exports.getStyle = getStyle;
96
96
  exports.dataSetCommonStyled = {
97
97
  barStyle: {
98
- primary: {},
99
- secondary: {},
98
+ primary: {
99
+ backgroundColor: '#0055b8',
100
+ },
101
+ secondary: {
102
+ backgroundColor: '#dd040c',
103
+ },
100
104
  default: {
101
105
  backgroundColor: '#80b0ff',
102
106
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.67-beta",
3
+ "version": "2.1.69-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",