@luminati-io/uikit 1.7.26 → 1.7.27

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 CHANGED
@@ -17932,7 +17932,7 @@ __webpack_require__.r(__webpack_exports__);
17932
17932
 
17933
17933
 
17934
17934
  /*jslint react:true*/
17935
- var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "chartProps"];
17935
+ var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "chartProps", "hideLegend"];
17936
17936
  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); }
17937
17937
  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; }
17938
17938
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -17956,6 +17956,7 @@ var ChartContainer = function ChartContainer(props) {
17956
17956
  loading = props.loading,
17957
17957
  Chart = props.Chart,
17958
17958
  chartProps = props.chartProps,
17959
+ hideLegend = props.hideLegend,
17959
17960
  rest = _objectWithoutProperties(props, _excluded);
17960
17961
  var outerWidth = props.width ? Math.max(410, props.width) : undefined;
17961
17962
  var outerHeight = Math.max(176, props.height || 0);
@@ -17968,9 +17969,7 @@ var ChartContainer = function ChartContainer(props) {
17968
17969
  }, header), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
17969
17970
  variant: "sm",
17970
17971
  color: "gray_11_75"
17971
- }, description)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ChartWrapper, {
17972
- noActions: !actions
17973
- }, !!actions && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", null, actions), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading__WEBPACK_IMPORTED_MODULE_8__["default"], null), !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__["default"], null), !noData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_6__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SvgWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_10__["default"], null, function (_ref) {
17972
+ }, description)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ChartWrapper, null, !!actions && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", null, actions), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading__WEBPACK_IMPORTED_MODULE_8__["default"], null), !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__["default"], null), !noData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_6__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SvgWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_10__["default"], null, function (_ref) {
17974
17973
  var width = _ref.width,
17975
17974
  height = _ref.height;
17976
17975
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Chart, _extends({}, chartProps, {
@@ -17979,7 +17978,7 @@ var ChartContainer = function ChartContainer(props) {
17979
17978
  width: width,
17980
17979
  height: height
17981
17980
  }));
17982
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_legend__WEBPACK_IMPORTED_MODULE_7__["default"], {
17981
+ })), !hideLegend && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_legend__WEBPACK_IMPORTED_MODULE_7__["default"], {
17983
17982
  data: data,
17984
17983
  palette: palette
17985
17984
  })))));
@@ -17997,12 +17996,13 @@ ChartContainer.propTypes = {
17997
17996
  height: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number.isRequired),
17998
17997
  palette: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
17999
17998
  loading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
18000
- variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'ghost'])
17999
+ variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'ghost']),
18000
+ hideLegend: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
18001
18001
  };
18002
18002
  var ChartContainerWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
18003
18003
  displayName: "ChartContainerWrapper",
18004
18004
  componentId: "sc-13xkdxv-0"
18005
- })(["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) {
18005
+ })(["display:flex;flex-direction:column;gap:", ";", " height:", ";", ""], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing["06"], function (props) {
18006
18006
  return props.width ? "width: ".concat((0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.width), ";") : undefined;
18007
18007
  }, function (props) {
18008
18008
  return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.height);
@@ -18018,14 +18018,11 @@ var HeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div
18018
18018
  var ChartWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
18019
18019
  displayName: "ChartWrapper",
18020
18020
  componentId: "sc-13xkdxv-2"
18021
- })(["display:grid;gap:", ";grid-template-columns:1fr;", ""], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing["05"], function (props) {
18022
- if (props.noActions) return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["grid-template-rows:minmax(0,1fr) auto;"]);
18023
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["grid-template-rows:auto minmax(0,1fr) auto;"]);
18024
- });
18021
+ })(["flex-grow:1;display:flex;flex-direction:column;gap:", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing["05"]);
18025
18022
  var SvgWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
18026
18023
  displayName: "SvgWrapper",
18027
18024
  componentId: "sc-13xkdxv-3"
18028
- })(["overflow:hidden;svg{display:block;padding:0;margin:0;}"]);
18025
+ })(["flex-grow:1;overflow:hidden;svg{display:block;padding:0;margin:0;}"]);
18029
18026
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ChartContainer);
18030
18027
 
18031
18028
  /***/ }),
@@ -18554,7 +18551,8 @@ Line.propTypes = {
18554
18551
  left: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
18555
18552
  }),
18556
18553
  xLabelOffset: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
18557
- yLabelOffset: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
18554
+ yLabelOffset: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
18555
+ hideLegend: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
18558
18556
  };
18559
18557
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Line);
18560
18558
 
@@ -18740,7 +18738,7 @@ var TooltipContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().di
18740
18738
  var TooltipItem = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
18741
18739
  displayName: "TooltipItem",
18742
18740
  componentId: "sc-a1je6y-3"
18743
- })(["display:flex;gap:32px;"]);
18741
+ })(["display:flex;justify-content:space-between;gap:32px;"]);
18744
18742
  var Legend = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
18745
18743
  displayName: "Legend",
18746
18744
  componentId: "sc-a1je6y-4"
@@ -18848,7 +18846,7 @@ Code.propTypes = {
18848
18846
  var CodeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_18___default().pre.withConfig({
18849
18847
  displayName: "CodeWrapper",
18850
18848
  componentId: "sc-1kleg7y-0"
18851
- })(["&&&{padding:0 !important;font-family:", ";margin:0;border:none;background-color:transparent;width:100%;white-space:pre-wrap !important;font-size:", ";line-height:", ";tab-size:4;text-align:left;word-spacing:normal;word-break:normal;word-wrap:normal;hyphens:none;max-height:none !important;code.content{all:inherit;color:", ";margin:0;padding:0;border:none;background-color:transparent;text-shadow:none;}", " .token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray;}.token.punctuation{color:#999;}.token.namespace{opacity:.7;}.token.property,.token.tag,.token.boolean,.token.constant,.token.symbol,.token.deleted{color:#f8c555;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#7ec699;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#67cdcc;}.token.atrule,.token.attr-value,.token.keyword{color:#cc99cd;}.token.function,.token.number,.token.class-name{color:#f08d49;}.token.regex,.token.important,.token.variable{color:#e90;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}}"], _theme__WEBPACK_IMPORTED_MODULE_19__["default"].font_family.mono, _theme__WEBPACK_IMPORTED_MODULE_19__["default"].font_size.sm, _theme__WEBPACK_IMPORTED_MODULE_19__["default"].line_height.loose, _theme__WEBPACK_IMPORTED_MODULE_19__["default"].color.gray_8, '' /* prism selectors below */);
18849
+ })(["&&&{padding:0 !important;font-family:", ";margin:0;border:none;background-color:transparent;width:100%;white-space:pre-wrap !important;font-size:", ";line-height:", ";tab-size:4;text-align:left;word-spacing:normal;word-break:break-word;word-wrap:normal;hyphens:none;max-height:none !important;code.content{all:inherit;color:", ";margin:0;padding:0;border:none;background-color:transparent;text-shadow:none;}", " .token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray;}.token.punctuation{color:#999;}.token.namespace{opacity:.7;}.token.property,.token.tag,.token.boolean,.token.constant,.token.symbol,.token.deleted{color:#f8c555;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#7ec699;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#67cdcc;}.token.atrule,.token.attr-value,.token.keyword{color:#cc99cd;}.token.function,.token.number,.token.class-name{color:#f08d49;}.token.regex,.token.important,.token.variable{color:#e90;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}}"], _theme__WEBPACK_IMPORTED_MODULE_19__["default"].font_family.mono, _theme__WEBPACK_IMPORTED_MODULE_19__["default"].font_size.sm, _theme__WEBPACK_IMPORTED_MODULE_19__["default"].line_height.loose, _theme__WEBPACK_IMPORTED_MODULE_19__["default"].color.gray_8, '' /* prism selectors below */);
18852
18850
 
18853
18851
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Code);
18854
18852
 
@@ -19829,7 +19827,7 @@ __webpack_require__.r(__webpack_exports__);
19829
19827
 
19830
19828
 
19831
19829
  /*jslint react:true*/
19832
- var _excluded = ["variant", "disabled", "icon", "tooltip", "tooltipPlacement"];
19830
+ var _excluded = ["variant", "disabled", "active", "icon", "tooltip", "tooltipPlacement"];
19833
19831
  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); }
19834
19832
  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; }
19835
19833
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -19843,6 +19841,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
19843
19841
  var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
19844
19842
  var variant = props.variant,
19845
19843
  disabled = props.disabled,
19844
+ active = props.active,
19846
19845
  icon = props.icon,
19847
19846
  tooltip = props.tooltip,
19848
19847
  tooltipPlacement = props.tooltipPlacement,
@@ -19854,7 +19853,8 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
19854
19853
  ref: ref
19855
19854
  }, rest, {
19856
19855
  variant: variant,
19857
- disabled: disabled
19856
+ disabled: disabled,
19857
+ active: active
19858
19858
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
19859
19859
  name: icon,
19860
19860
  size: "sm"
@@ -19868,6 +19868,7 @@ IconButton.propTypes = {
19868
19868
  variant: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['icon', 'icon-button', 'ghost']),
19869
19869
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.iconNames).isRequired,
19870
19870
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
19871
+ active: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
19871
19872
  tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node),
19872
19873
  tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.tooltipPlacements)
19873
19874
  };
@@ -19875,7 +19876,7 @@ var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
19875
19876
  displayName: "StyledIconButton",
19876
19877
  componentId: "sc-114c1w5-0"
19877
19878
  })(["display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0;cursor:pointer;", " ", ""], function (props) {
19878
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["background-color:", ";border:", ";[data-icon]{color:", ";}&:hover:not(:disabled){background-color:", ";border:", ";[data-icon]{color:", ";}}&:active:not(:disabled){background-color:", ";border:", ";[data-icon]{color:", ";}}&:disabled{border:", ";[data-icon]{color:", ";}cursor:not-allowed;}"], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.white, props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_6), _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_9, props.variant == 'ghost' ? _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.white : _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_2, props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_8), props.variant == 'ghost' ? _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_11 : _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_9, props.variant == 'ghost' ? _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.white : _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_4, props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_4), _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_11, props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_7), _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_7);
19879
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["", " &:hover:not(:disabled){background-color:", ";border:", ";[data-icon]{color:", ";}}&:active:not(:disabled){background-color:", ";border:", ";[data-icon]{color:", ";}}&:disabled{border:", ";cursor:not-allowed;[data-icon]{color:", ";}}"], props.active ? "\n background-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_4, ";\n border: ").concat(props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_4), ";\n [data-icon] {\n color: ").concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_11, ";\n }\n ") : "\n background-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.white, ";\n border: ").concat(props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_6), ";\n [data-icon] {\n color: ").concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_9, ";\n }\n "), props.variant == 'ghost' ? _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.white : _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_2, props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_8), props.variant == 'ghost' ? _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_11 : _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_9, props.variant == 'ghost' ? _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.white : _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_4, props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_4), _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_11, props.variant == 'icon' || props.variant == 'ghost' ? '0 none;' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_7), _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_7);
19879
19880
  }, function (props) {
19880
19881
  return (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toSize)(props.variant == 'icon' || props.variant == 'ghost' ? 24 : 36);
19881
19882
  });