@steroidsjs/bootstrap 3.0.0-beta.116 → 3.0.0-beta.118

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.
@@ -16,6 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  exports.__esModule = true;
17
17
  var react_1 = __importDefault(require("react"));
18
18
  var hooks_1 = require("@steroidsjs/core/hooks");
19
+ var typography_1 = require("@steroidsjs/core/ui/typography");
20
+ var form_1 = require("@steroidsjs/core/ui/form");
21
+ var nav_1 = require("@steroidsjs/core/ui/nav");
19
22
  var DEFAULT_AXIS_PARAMS = {
20
23
  tickSize: 5,
21
24
  tickPadding: 5,
@@ -41,7 +44,14 @@ function ChartView(props) {
41
44
  var bem = (0, hooks_1.useBem)('ChartView');
42
45
  var ChartComponent = props.chartComponent;
43
46
  var defaultChartConfig = (props.useDefaultLineChartConfig && DEFAULT_LINE_CHART_CONFIG) || {};
44
- return (react_1["default"].createElement("div", { className: bem(bem.block(), props.className), style: __assign({ height: "".concat(props.height, "px") }, props.style) },
45
- react_1["default"].createElement(ChartComponent, __assign({ data: props.data }, defaultChartConfig, props.config))));
47
+ var customChartHeightVariable = { '--chart-custom-height': "".concat(props.chartHeight, "px") };
48
+ return (react_1["default"].createElement("div", { className: bem(bem.block(), props.className), style: __assign(__assign(__assign({}, props.style), { height: "".concat(props.wrapperHeight, "px") }), customChartHeightVariable) },
49
+ props.title && (react_1["default"].createElement(typography_1.Title, { type: "h3", content: props.title, className: bem.element('title') })),
50
+ react_1["default"].createElement("div", { className: bem.element('controls') },
51
+ props.checkboxes && (react_1["default"].createElement(form_1.CheckboxListField, __assign({}, props.checkboxes))),
52
+ props.buttonGroup && (react_1["default"].createElement(nav_1.ButtonGroup, __assign({}, props.buttonGroup)))),
53
+ react_1["default"].createElement(ChartComponent, __assign({ style: {
54
+ height: "".concat(props.chartHeight, "px !important")
55
+ }, data: props.data }, defaultChartConfig, props.config))));
46
56
  }
47
57
  exports["default"] = ChartView;
@@ -1,8 +1,24 @@
1
1
  @use "../../scss/variables";
2
2
 
3
3
  .ChartView {
4
+ height: auto;
5
+ &__title {
6
+ font-size: variables.$font-size-lg;
7
+ font-weight: variables.$font-weight-lg;
8
+ line-height: variables.$line-height-lg;
9
+ }
4
10
 
5
- text {
6
- fill: variables.$text-color !important;
7
- }
8
- }
11
+ &__controls {
12
+ display: flex;
13
+ flex-flow: row nowrap;
14
+ justify-content: space-between;
15
+ }
16
+
17
+ &__controls + div {
18
+ height: var(--chart-custom-height) !important;
19
+ }
20
+
21
+ text {
22
+ fill: variables.$text-color !important;
23
+ }
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/bootstrap",
3
- "version": "3.0.0-beta.116",
3
+ "version": "3.0.0-beta.118",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
@@ -37,7 +37,7 @@
37
37
  "react-use": "^17.4.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@steroidsjs/core": "^3.0 || >=3.0.0-beta.100",
40
+ "@steroidsjs/core": "^3.0 || >=3.0.0-beta.102",
41
41
  "@steroidsjs/eslint-config": "^2.1.4",
42
42
  "@types/enzyme": "^3.10.8",
43
43
  "@types/googlemaps": "^3.43.3",