@luminati-io/uikit 6.0.1 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30065,7 +30065,7 @@ __webpack_require__.r(__webpack_exports__);
30065
30065
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
30066
30066
  /* harmony export */ ChartContainer: () => (/* binding */ ChartContainer)
30067
30067
  /* harmony export */ });
30068
- /* harmony import */ var _visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @visx/responsive/lib/components/ParentSize */ "./node_modules/@visx/responsive/lib/components/ParentSize.js");
30068
+ /* harmony import */ var _visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @visx/responsive/lib/components/ParentSize */ "./node_modules/@visx/responsive/lib/components/ParentSize.js");
30069
30069
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
30070
30070
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
30071
30071
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
@@ -30076,14 +30076,15 @@ __webpack_require__.r(__webpack_exports__);
30076
30076
  /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
30077
30077
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
30078
30078
  /* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./error_boundary */ "./src/chart/error_boundary.js");
30079
- /* harmony import */ var _legend__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./legend */ "./src/chart/legend.js");
30080
- /* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./loading */ "./src/chart/loading.js");
30081
- /* harmony import */ var _no_data__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./no_data */ "./src/chart/no_data.js");
30079
+ /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./error */ "./src/chart/error.js");
30080
+ /* harmony import */ var _legend__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./legend */ "./src/chart/legend.js");
30081
+ /* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./loading */ "./src/chart/loading.js");
30082
+ /* harmony import */ var _no_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./no_data */ "./src/chart/no_data.js");
30082
30083
  // LICENSE_CODE ZON
30083
30084
 
30084
30085
 
30085
30086
  /*jslint react:true*/
30086
- var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "legendItem", "chartProps", "showLegend", "variant", "width", "height", "classNamePrefix"];
30087
+ var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "legendItem", "chartProps", "showLegend", "variant", "width", "height", "classNamePrefix", "error", "reload"];
30087
30088
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
30088
30089
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
30089
30090
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
@@ -30098,6 +30099,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
30098
30099
 
30099
30100
 
30100
30101
 
30102
+
30101
30103
  var ChartContainer = function ChartContainer(_ref) {
30102
30104
  var header = _ref.header,
30103
30105
  description = _ref.description,
@@ -30114,6 +30116,8 @@ var ChartContainer = function ChartContainer(_ref) {
30114
30116
  _width = _ref.width,
30115
30117
  _height = _ref.height,
30116
30118
  classNamePrefix = _ref.classNamePrefix,
30119
+ error = _ref.error,
30120
+ reload = _ref.reload,
30117
30121
  rest = _objectWithoutProperties(_ref, _excluded);
30118
30122
  var _useTheme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)(),
30119
30123
  chart_palette = _useTheme.chart_palette;
@@ -30133,19 +30137,22 @@ var ChartContainer = function ChartContainer(_ref) {
30133
30137
  className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
30134
30138
  actions: true
30135
30139
  })
30136
- }, actions), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading__WEBPACK_IMPORTED_MODULE_8__.Loading, {
30140
+ }, actions), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading__WEBPACK_IMPORTED_MODULE_9__.Loading, {
30137
30141
  className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
30138
30142
  loader: true
30139
30143
  })
30140
- }), !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, noData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_no_data__WEBPACK_IMPORTED_MODULE_9__.NoData, {
30144
+ }), !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, error && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_error__WEBPACK_IMPORTED_MODULE_7__.Error, {
30145
+ error: error,
30146
+ reload: reload
30147
+ }), !error && noData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_no_data__WEBPACK_IMPORTED_MODULE_10__.NoData, {
30141
30148
  className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
30142
30149
  placeholder: true
30143
30150
  })
30144
- }), !noData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_6__.ErrorBoundary, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SvgWrapper, {
30151
+ }), !error && !noData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_6__.ErrorBoundary, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SvgWrapper, {
30145
30152
  className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
30146
30153
  container: true
30147
30154
  })
30148
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_10__["default"], null, function (_ref2) {
30155
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__["default"], null, function (_ref2) {
30149
30156
  var width = _ref2.width,
30150
30157
  height = _ref2.height;
30151
30158
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Chart, _extends({}, chartProps, {
@@ -30154,7 +30161,7 @@ var ChartContainer = function ChartContainer(_ref) {
30154
30161
  width: width,
30155
30162
  height: height
30156
30163
  }));
30157
- })), !!showLegend && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_legend__WEBPACK_IMPORTED_MODULE_7__.Legend, {
30164
+ })), !!showLegend && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_legend__WEBPACK_IMPORTED_MODULE_8__.Legend, {
30158
30165
  className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
30159
30166
  legend: true
30160
30167
  }),
@@ -30231,16 +30238,16 @@ var SvgWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.wi
30231
30238
 
30232
30239
  /***/ }),
30233
30240
 
30234
- /***/ "./src/chart/error_boundary.js":
30235
- /*!*************************************!*\
30236
- !*** ./src/chart/error_boundary.js ***!
30237
- \*************************************/
30241
+ /***/ "./src/chart/error.js":
30242
+ /*!****************************!*\
30243
+ !*** ./src/chart/error.js ***!
30244
+ \****************************/
30238
30245
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
30239
30246
 
30240
30247
  "use strict";
30241
30248
  __webpack_require__.r(__webpack_exports__);
30242
30249
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
30243
- /* harmony export */ ErrorBoundary: () => (/* binding */ ErrorBoundary)
30250
+ /* harmony export */ Error: () => (/* binding */ Error)
30244
30251
  /* harmony export */ });
30245
30252
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
30246
30253
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -30253,6 +30260,56 @@ __webpack_require__.r(__webpack_exports__);
30253
30260
 
30254
30261
 
30255
30262
  /*jslint react:true*/
30263
+
30264
+
30265
+
30266
+
30267
+
30268
+ var ErrorWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
30269
+ displayName: "ErrorWrapper",
30270
+ componentId: "sc-otnf1g-0"
30271
+ })(["flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:", ";"], function (_ref) {
30272
+ var spacing = _ref.theme.spacing;
30273
+ return spacing['04'];
30274
+ });
30275
+ var Error = function Error(_ref2) {
30276
+ var error = _ref2.error,
30277
+ reload = _ref2.reload;
30278
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ErrorWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_2__.Icon, {
30279
+ name: "Warning",
30280
+ color: "icon_error",
30281
+ size: "md"
30282
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
30283
+ variant: "sm",
30284
+ color: "text_quaternary"
30285
+ }, error), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_link__WEBPACK_IMPORTED_MODULE_3__.Link, {
30286
+ as: "button",
30287
+ size: "sm",
30288
+ text: "Reload",
30289
+ onClick: reload
30290
+ }));
30291
+ };
30292
+
30293
+ /***/ }),
30294
+
30295
+ /***/ "./src/chart/error_boundary.js":
30296
+ /*!*************************************!*\
30297
+ !*** ./src/chart/error_boundary.js ***!
30298
+ \*************************************/
30299
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
30300
+
30301
+ "use strict";
30302
+ __webpack_require__.r(__webpack_exports__);
30303
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
30304
+ /* harmony export */ ErrorBoundary: () => (/* binding */ ErrorBoundary)
30305
+ /* harmony export */ });
30306
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
30307
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
30308
+ /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./error */ "./src/chart/error.js");
30309
+ // LICENSE_CODE ZON
30310
+
30311
+
30312
+ /*jslint react:true*/
30256
30313
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
30257
30314
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
30258
30315
  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); } }
@@ -30268,9 +30325,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
30268
30325
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30269
30326
 
30270
30327
 
30271
-
30272
-
30273
-
30274
30328
  var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
30275
30329
  function ErrorBoundary(props) {
30276
30330
  var _this;
@@ -30294,19 +30348,10 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
30294
30348
  key: "render",
30295
30349
  value: function render() {
30296
30350
  if (this.state.hasError) {
30297
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ErrorBoundaryWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_2__.Icon, {
30298
- name: "Warning",
30299
- color: "icon_error",
30300
- size: "md"
30301
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
30302
- variant: "sm",
30303
- color: "text_quaternary"
30304
- }, "Unable to load chart"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_link__WEBPACK_IMPORTED_MODULE_3__.Link, {
30305
- as: "button",
30306
- size: "sm",
30307
- text: "Reload",
30308
- onClick: this.reload
30309
- }));
30351
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error__WEBPACK_IMPORTED_MODULE_1__.Error, {
30352
+ error: "Unable to load chart",
30353
+ reload: this.reload.bind(this)
30354
+ });
30310
30355
  }
30311
30356
  return this.props.children;
30312
30357
  }
@@ -30320,13 +30365,6 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
30320
30365
  }
30321
30366
  }]);
30322
30367
  }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
30323
- var ErrorBoundaryWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
30324
- displayName: "ErrorBoundaryWrapper",
30325
- componentId: "sc-qlqvht-0"
30326
- })(["flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:", ";"], function (_ref) {
30327
- var spacing = _ref.theme.spacing;
30328
- return spacing['04'];
30329
- });
30330
30368
 
30331
30369
  /***/ }),
30332
30370
 
@@ -35663,12 +35701,12 @@ var UploadBaseContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default
35663
35701
  var $isHovered = _ref.$isHovered,
35664
35702
  $invalid = _ref.$invalid,
35665
35703
  color = _ref.theme.color;
35666
- return border($invalid ? color.border_error : $isHovered ? color.border_primary : color.border);
35704
+ return border($isHovered ? color.border_primary : $invalid ? color.border_error : color.border);
35667
35705
  }, function (_ref2) {
35668
35706
  var $isHovered = _ref2.$isHovered,
35669
35707
  $invalid = _ref2.$invalid,
35670
35708
  color = _ref2.theme.color;
35671
- return $invalid ? color.bg : $isHovered ? color.bg_fill_primary_secondary : color.bg;
35709
+ return $isHovered ? color.bg_fill_primary_secondary : $invalid ? color.bg : color.bg;
35672
35710
  });
35673
35711
  var UploadBase = function UploadBase(props) {
35674
35712
  var label = props.label,