@luminati-io/uikit 1.7.21 → 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 +41 -32
- 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",
|
|
@@ -18067,8 +18073,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
18067
18073
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18068
18074
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
18069
18075
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18070
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18071
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18072
18076
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
18073
18077
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18074
18078
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -18076,6 +18080,9 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
18076
18080
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
18077
18081
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
18078
18082
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
18083
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18084
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18085
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18079
18086
|
|
|
18080
18087
|
|
|
18081
18088
|
|
|
@@ -18091,29 +18098,17 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
18091
18098
|
var _this;
|
|
18092
18099
|
_classCallCheck(this, ErrorBoundary);
|
|
18093
18100
|
_this = _super.call(this, props);
|
|
18101
|
+
_defineProperty(_assertThisInitialized(_this), "reload", function () {
|
|
18102
|
+
_this.setState({
|
|
18103
|
+
hasError: false
|
|
18104
|
+
});
|
|
18105
|
+
});
|
|
18094
18106
|
_this.state = {
|
|
18095
18107
|
hasError: false
|
|
18096
18108
|
};
|
|
18097
18109
|
return _this;
|
|
18098
18110
|
}
|
|
18099
18111
|
_createClass(ErrorBoundary, [{
|
|
18100
|
-
key: "reload",
|
|
18101
|
-
value:
|
|
18102
|
-
// componentDidCatch(error, info) {
|
|
18103
|
-
// // Example "componentStack":
|
|
18104
|
-
// // in ComponentThatThrows (created by App)
|
|
18105
|
-
// // in ErrorBoundary (created by App)
|
|
18106
|
-
// // in div (created by App)
|
|
18107
|
-
// // in App
|
|
18108
|
-
// logErrorToMyService(error, info.componentStack);
|
|
18109
|
-
// }
|
|
18110
|
-
function reload(evt) {
|
|
18111
|
-
evt.preventDefault();
|
|
18112
|
-
this.setState({
|
|
18113
|
-
hasError: false
|
|
18114
|
-
});
|
|
18115
|
-
}
|
|
18116
|
-
}, {
|
|
18117
18112
|
key: "render",
|
|
18118
18113
|
value: function render() {
|
|
18119
18114
|
if (this.state.hasError) {
|
|
@@ -18130,7 +18125,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
18130
18125
|
variant: "sm",
|
|
18131
18126
|
color: "gray_11"
|
|
18132
18127
|
}, "Unable to load chart"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_link__WEBPACK_IMPORTED_MODULE_3__.Link, {
|
|
18133
|
-
|
|
18128
|
+
as: "button",
|
|
18134
18129
|
text: "Reload",
|
|
18135
18130
|
onClick: this.reload
|
|
18136
18131
|
}));
|
|
@@ -18145,6 +18140,15 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
18145
18140
|
hasError: true
|
|
18146
18141
|
};
|
|
18147
18142
|
}
|
|
18143
|
+
|
|
18144
|
+
// componentDidCatch(error, info) {
|
|
18145
|
+
// // Example "componentStack":
|
|
18146
|
+
// // in ComponentThatThrows (created by App)
|
|
18147
|
+
// // in ErrorBoundary (created by App)
|
|
18148
|
+
// // in div (created by App)
|
|
18149
|
+
// // in App
|
|
18150
|
+
// logErrorToMyService(error, info.componentStack);
|
|
18151
|
+
// }
|
|
18148
18152
|
}]);
|
|
18149
18153
|
return ErrorBoundary;
|
|
18150
18154
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
@@ -20412,7 +20416,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20412
20416
|
|
|
20413
20417
|
/*jslint react:true*/
|
|
20414
20418
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
20415
|
-
var _excluded = ["label", "labelIcon", "required", "size", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "classNamePrefix", "menuPortalTarget", "filterOption", "formatOptionLabel"];
|
|
20419
|
+
var _excluded = ["label", "labelIcon", "required", "size", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "classNamePrefix", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement"];
|
|
20416
20420
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20417
20421
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20418
20422
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -20457,6 +20461,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forward
|
|
|
20457
20461
|
menuPortalTarget = props.menuPortalTarget,
|
|
20458
20462
|
filterOption = props.filterOption,
|
|
20459
20463
|
formatOptionLabel = props.formatOptionLabel,
|
|
20464
|
+
menuPlacement = props.menuPlacement,
|
|
20460
20465
|
rest = _objectWithoutProperties(props, _excluded);
|
|
20461
20466
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_8__.useLabelId)(props.id);
|
|
20462
20467
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_9__.useTranslation)();
|
|
@@ -20505,7 +20510,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forward
|
|
|
20505
20510
|
isOptionDisabled: function isOptionDisabled(opt) {
|
|
20506
20511
|
return opt.disabled;
|
|
20507
20512
|
},
|
|
20508
|
-
closeMenuOnSelect: !multiselect
|
|
20513
|
+
closeMenuOnSelect: !multiselect,
|
|
20514
|
+
menuPlacement: menuPlacement
|
|
20509
20515
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_7__.HelperText, {
|
|
20510
20516
|
invalid: invalid
|
|
20511
20517
|
}, helperText));
|
|
@@ -20531,11 +20537,13 @@ Dropdown.propTypes = {
|
|
|
20531
20537
|
multiselect: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
20532
20538
|
clearable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
20533
20539
|
creatable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
20534
|
-
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
20540
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
20541
|
+
menuPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['bottom', 'auto', 'top'])
|
|
20535
20542
|
};
|
|
20536
20543
|
Dropdown.defaultProps = {
|
|
20537
20544
|
size: 'sm',
|
|
20538
|
-
clearable: false
|
|
20545
|
+
clearable: false,
|
|
20546
|
+
menuPlacement: 'auto'
|
|
20539
20547
|
};
|
|
20540
20548
|
var DropdownIndicator = function DropdownIndicator(props) {
|
|
20541
20549
|
var selectProps = props.selectProps,
|
|
@@ -21919,7 +21927,7 @@ Link.propTypes = {
|
|
|
21919
21927
|
var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_1___default().a.withConfig({
|
|
21920
21928
|
displayName: "StyledLink",
|
|
21921
21929
|
componentId: "sc-1ilmd36-0"
|
|
21922
|
-
})(["display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:0 none;border:0 none;padding:0;gap:", ";[data-label]{color:", ";text-decoration:", ";}[data-icon]{color:", ";}&:hover:not(:disabled){[data-label]{color:", ";text-decoration:", ";}[data-icon]{color:", ";}}&:hover,:visited,:focus{text-decoration:none;}"], function (props) {
|
|
21930
|
+
})(["display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:0 none;border:0 none;padding:0;gap:", ";[data-label]{color:", ";text-decoration:", ";}[data-icon]{color:", ";}cursor:pointer;&:disabled{cursor:not-allowed;}&:hover:not(:disabled){[data-label]{color:", ";text-decoration:", ";}[data-icon]{color:", ";}}&:hover,:visited,:focus{text-decoration:none;}"], function (props) {
|
|
21923
21931
|
return (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(props.size == 'lg' ? 8 : 4);
|
|
21924
21932
|
}, function (props) {
|
|
21925
21933
|
return props.variant == 'primary' ? _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_11 : _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_11_50;
|
|
@@ -23829,7 +23837,8 @@ var PaginationControls = function PaginationControls(props) {
|
|
|
23829
23837
|
classNamePrefix: "uikit-table-pagination",
|
|
23830
23838
|
value: sel,
|
|
23831
23839
|
options: opts,
|
|
23832
|
-
onChange: handleChange
|
|
23840
|
+
onChange: handleChange,
|
|
23841
|
+
menuPortalTarget: document.body
|
|
23833
23842
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_6__["default"].Flex, {
|
|
23834
23843
|
align_items: "center",
|
|
23835
23844
|
column_gap: "0.2em"
|