@luminati-io/uikit 1.7.22 → 1.7.23
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/uikit.umd.js +12 -6
- package/dist/uikit.umd.js.map +1 -1
- package/dist/uikit.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/uikit.umd.js
CHANGED
|
@@ -17950,7 +17950,7 @@ var ChartContainer = function ChartContainer(props) {
|
|
|
17950
17950
|
Chart = props.Chart,
|
|
17951
17951
|
chartProps = props.chartProps,
|
|
17952
17952
|
rest = _objectWithoutProperties(props, _excluded);
|
|
17953
|
-
var outerWidth = Math.max(410, props.width
|
|
17953
|
+
var outerWidth = props.width ? Math.max(410, props.width) : undefined;
|
|
17954
17954
|
var outerHeight = Math.max(176, props.height || 0);
|
|
17955
17955
|
var noData = !(data && data.length);
|
|
17956
17956
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ChartContainerWrapper, _extends({}, rest, {
|
|
@@ -17979,24 +17979,30 @@ var ChartContainer = function ChartContainer(props) {
|
|
|
17979
17979
|
};
|
|
17980
17980
|
ChartContainer.displayName = 'ChartContainer';
|
|
17981
17981
|
ChartContainer.defaultProps = {
|
|
17982
|
-
palette: ['#AA99EC', '#3DB9CF', '#E58FB1', '#EBBC00', '#94BA2C', '#D09E72', '#0091FF', '#E5484D', '#12A594', '#FFB224']
|
|
17982
|
+
palette: ['#AA99EC', '#3DB9CF', '#E58FB1', '#EBBC00', '#94BA2C', '#D09E72', '#0091FF', '#E5484D', '#12A594', '#FFB224'],
|
|
17983
|
+
variant: 'default'
|
|
17983
17984
|
};
|
|
17984
17985
|
ChartContainer.propTypes = {
|
|
17985
17986
|
header: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired),
|
|
17986
17987
|
description: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
17987
17988
|
actions: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
17988
17989
|
width: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
|
17989
|
-
height: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
|
17990
|
+
height: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number.isRequired),
|
|
17990
17991
|
palette: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)),
|
|
17991
|
-
loading: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
|
17992
|
+
loading: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
17993
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['default', 'ghost'])
|
|
17992
17994
|
};
|
|
17993
17995
|
var ChartContainerWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
|
17994
17996
|
displayName: "ChartContainerWrapper",
|
|
17995
17997
|
componentId: "sc-13xkdxv-0"
|
|
17996
|
-
})(["display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:", ";
|
|
17997
|
-
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.width);
|
|
17998
|
+
})(["display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:", ";", " height:", ";", ""], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing["06"], function (props) {
|
|
17999
|
+
return props.width ? "width: ".concat((0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.width), ";") : undefined;
|
|
17998
18000
|
}, function (props) {
|
|
17999
18001
|
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.height);
|
|
18002
|
+
}, function (props) {
|
|
18003
|
+
if (props.variant != 'ghost') {
|
|
18004
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["padding:", ";border-radius:8px;border:1px solid ", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing["06"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_5);
|
|
18005
|
+
}
|
|
18000
18006
|
});
|
|
18001
18007
|
var HeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
|
18002
18008
|
displayName: "HeaderWrapper",
|