@luminati-io/uikit 3.0.24 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -26022,16 +26022,16 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
26022
26022
  labelIcon: labelIcon,
26023
26023
  required: required
26024
26024
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputContentWrapper, {
26025
- heightCalculationCallback: heightCalculationCallback
26025
+ $heightCalculationCallback: heightCalculationCallback
26026
26026
  }, leftOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LeftOuterContentWrapper, null, leftOuterContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputWrapper, {
26027
26027
  ref: innerWrapper,
26028
- active: active,
26029
- disabled: disabled,
26030
- invalid: invalid,
26031
- leftOuterContent: leftOuterContent,
26032
- rightOuterContent: rightOuterContent,
26033
- heightCalculationCallback: heightCalculationCallback,
26034
- verticalAlign: verticalAlign,
26028
+ $active: active,
26029
+ $disabled: disabled,
26030
+ $invalid: invalid,
26031
+ $leftOuterContent: leftOuterContent,
26032
+ $rightOuterContent: rightOuterContent,
26033
+ $heightCalculationCallback: heightCalculationCallback,
26034
+ $verticalAlign: verticalAlign,
26035
26035
  onClick: onWrapperClick
26036
26036
  }, leftInnerContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Field, _extends({}, props.inputProps, {
26037
26037
  ref: field,
@@ -26137,46 +26137,46 @@ var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
26137
26137
  displayName: "InputContentWrapper",
26138
26138
  componentId: "sc-r60v1b-5"
26139
26139
  })(["", " border-radius:4px;"], function (props) {
26140
- return props.heightCalculationCallback();
26140
+ return props.$heightCalculationCallback();
26141
26141
  });
26142
26142
  var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
26143
26143
  displayName: "InputWrapper",
26144
26144
  componentId: "sc-r60v1b-6"
26145
26145
  })(["width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";", " ", " ", ""], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_family.sans, inputVerticalPadding, inputHorizontalPadding, function (props) {
26146
- return props.verticalAlign;
26146
+ return props.$verticalAlign;
26147
26147
  }, function (props) {
26148
- var leftOuterContent = props.leftOuterContent,
26149
- rightOuterContent = props.rightOuterContent;
26148
+ var $leftOuterContent = props.$leftOuterContent,
26149
+ $rightOuterContent = props.$rightOuterContent;
26150
26150
  var borderTopLeftRadius = 4;
26151
26151
  var borderBottomLeftRadius = 4;
26152
26152
  var borderTopRightRadius = 4;
26153
26153
  var borderBottomRightRadius = 4;
26154
26154
  var borderLeftWidth = 1;
26155
26155
  var borderRightWidth = 1;
26156
- if (leftOuterContent) {
26156
+ if ($leftOuterContent) {
26157
26157
  borderTopLeftRadius = borderBottomLeftRadius = 0;
26158
26158
  borderLeftWidth = 0;
26159
26159
  }
26160
- if (rightOuterContent) {
26160
+ if ($rightOuterContent) {
26161
26161
  borderTopRightRadius = borderBottomRightRadius = 0;
26162
26162
  borderRightWidth = 0;
26163
26163
  }
26164
26164
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["border-left-width:", ";border-right-width:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(borderLeftWidth), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(borderRightWidth), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(borderTopLeftRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(borderBottomLeftRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(borderTopRightRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(borderBottomRightRadius));
26165
26165
  }, function (props) {
26166
- var _props$heightCalculat;
26167
- return (_props$heightCalculat = props.heightCalculationCallback) === null || _props$heightCalculat === void 0 ? void 0 : _props$heightCalculat.call(props);
26166
+ var _props$$heightCalcula;
26167
+ return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
26168
26168
  }, function (props) {
26169
26169
  var borderColor = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_7;
26170
26170
  var boxShadow = 'none';
26171
26171
  var color = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_11_50;
26172
26172
  var backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.white;
26173
26173
  var cursor = 'text';
26174
- if (props.disabled) {
26174
+ if (props.$disabled) {
26175
26175
  color = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_9;
26176
26176
  borderColor = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_6;
26177
26177
  backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_2;
26178
26178
  cursor = 'default';
26179
- } else if (props.invalid) borderColor = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.red_11;else if (props.active) {
26179
+ } else if (props.$invalid) borderColor = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.red_11;else if (props.$active) {
26180
26180
  borderColor = _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.blue_11;
26181
26181
  boxShadow = "0px 0px 0px 2px rgba(0, 106, 220, 0.4)";
26182
26182
  }
@@ -26184,7 +26184,7 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
26184
26184
  });
26185
26185
  InputWrapper.displayName = 'InputWrapper';
26186
26186
  InputWrapper.defaultProps = {
26187
- verticalAlign: 'normal'
26187
+ $verticalAlign: 'normal'
26188
26188
  };
26189
26189
  var HelperText = function HelperText(props) {
26190
26190
  var children = props.children,
@@ -28220,7 +28220,13 @@ __webpack_require__.r(__webpack_exports__);
28220
28220
 
28221
28221
 
28222
28222
  /*jslint react:true*/
28223
+ 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); }
28223
28224
  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); }
28225
+ 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; }
28226
+ 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; }
28227
+ 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; }
28228
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
28229
+ 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); }
28224
28230
 
28225
28231
 
28226
28232
 
@@ -28228,7 +28234,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
28228
28234
 
28229
28235
 
28230
28236
 
28231
- var assign = Object.assign;
28232
28237
  var Cell = function Cell(props) {
28233
28238
  var classNamePrefix = props.classNamePrefix,
28234
28239
  rowDensity = props.rowDensity,
@@ -28259,21 +28264,22 @@ var Cell = function Cell(props) {
28259
28264
  var doneEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
28260
28265
  columnDoneEditing(columnId, rowId);
28261
28266
  }, [columnDoneEditing, columnId, rowId]);
28262
- var cellProps = assign({
28263
- type: type,
28264
- rowDensity: rowDensity,
28265
- canEdit: canEdit,
28266
- isEditing: isEditing
28267
- }, {
28268
- border: isLastRow ? null : 'bottom'
28269
- }, cell.getCellProps([getColumnProps(column), getCellProps(cell)]), canEdit ? {
28270
- onClick: function onClick(e) {
28267
+ var cellProps = _objectSpread({
28268
+ $type: type,
28269
+ $rowDensity: rowDensity,
28270
+ $canEdit: canEdit,
28271
+ $isEditing: isEditing,
28272
+ $isLastRow: isLastRow
28273
+ }, cell.getCellProps([getColumnProps(column), getCellProps(cell)]));
28274
+ if (canEdit) {
28275
+ cellProps.onClick = function (e) {
28271
28276
  e.stopPropagation();
28272
28277
  startEditing();
28273
- }
28274
- } : undefined);
28278
+ };
28279
+ }
28280
+ var className = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, columnClassName, cellClassName, cellProps.className);
28275
28281
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, _extends({}, cellProps, {
28276
- className: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, columnClassName, cellClassName, cellProps.className)
28282
+ className: className
28277
28283
  }), cell.render('Cell', {
28278
28284
  row: row,
28279
28285
  isEditing: isEditing,
@@ -28286,25 +28292,25 @@ var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.wi
28286
28292
  displayName: "StyledCell",
28287
28293
  componentId: "sc-b034il-0"
28288
28294
  })(["padding:5px 15px;overflow-x:clip;", " background-color:", ";border:1px solid ", ";", ":hover &{background-color:", ";border-left-color:", ";border-right-color:", ";}", " ", " &[data-pinned-last]{", "}", ""], function (props) {
28289
- return props.type == 'number' ? 'text-align: right;' : null;
28295
+ return props.$type == 'number' ? 'text-align: right;' : null;
28290
28296
  }, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _table_row__WEBPACK_IMPORTED_MODULE_6__["default"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, function (props) {
28291
- if (props.border == 'top') return "border-top-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
28292
- if (props.border == 'bottom') return "border-bottom-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
28297
+ if (props.$isFooter) return "border-top-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
28298
+ if (props.$isLastRow) return "border-bottom-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
28293
28299
  }, function (props) {
28294
- if (props.rowDensity == 'diamond_hand') {
28300
+ if (props.$rowDensity == 'diamond_hand') {
28295
28301
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-top:11px;padding-bottom:11px;"]);
28296
28302
  }
28297
- if (props.rowDensity == 'white_spaced') {
28303
+ if (props.$rowDensity == 'white_spaced') {
28298
28304
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-top:25px;padding-bottom:25px;"]);
28299
28305
  }
28300
28306
  }, function (props) {
28301
- if (props.canEdit && props.isEditing) {
28307
+ if (props.$canEdit && props.$isEditing) {
28302
28308
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08),inset 0px 0px 0px 3px rgba(0,106,220,0.4);"]);
28303
28309
  }
28304
28310
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08);"]);
28305
28311
  }, function (props) {
28306
- if (props.canEdit) {
28307
- if (props.isEditing) {
28312
+ if (props.$canEdit) {
28313
+ if (props.$isEditing) {
28308
28314
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["border:1px solid ", " !important;box-shadow:inset 0px 0px 0px 3px rgba(0,106,220,0.4);z-index:", ";"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11, _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.editingCell);
28309
28315
  }
28310
28316
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["&:hover{border-color:", " !important;}"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9);
@@ -28907,7 +28913,13 @@ __webpack_require__.r(__webpack_exports__);
28907
28913
 
28908
28914
 
28909
28915
  /*jslint react:true*/
28916
+ 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); }
28910
28917
  var _excluded = ["key"];
28918
+ 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; }
28919
+ 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; }
28920
+ 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; }
28921
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
28922
+ 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); }
28911
28923
  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); }
28912
28924
  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; }
28913
28925
  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; }
@@ -28957,7 +28969,7 @@ var TableFooter = function TableFooter(props) {
28957
28969
  };
28958
28970
  TableFooter.displayName = 'TableFooter';
28959
28971
  var FooterCell = function FooterCell(props) {
28960
- var className = props.className,
28972
+ var footerClassName = props.className,
28961
28973
  column = props.column,
28962
28974
  rowDensity = props.rowDensity;
28963
28975
  var _column$type = column.type,
@@ -28966,15 +28978,18 @@ var FooterCell = function FooterCell(props) {
28966
28978
  var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_3__.useTableContext)(),
28967
28979
  getColumnProps = _useTableContext2.getColumnProps,
28968
28980
  getFooterProps = _useTableContext2.getFooterProps;
28969
- var footerProps = column.getFooterProps([getColumnProps(column), getFooterProps(column)]);
28970
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__.StyledCell, _extends({}, footerProps, {
28971
- type: type,
28972
- role: "cell",
28973
- rowDensity: rowDensity,
28974
- border: "top",
28975
- className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
28976
- footer: true
28977
- }, className, footerProps.className)
28981
+ var footerProps = _objectSpread({
28982
+ $type: type,
28983
+ $rowDensity: rowDensity,
28984
+ $isFooter: true
28985
+ }, column.getFooterProps([getColumnProps(column), getFooterProps(column)]));
28986
+ var className = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
28987
+ footer: true
28988
+ }, footerClassName, footerProps.className);
28989
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__.StyledCell, _extends({
28990
+ role: "cell"
28991
+ }, footerProps, {
28992
+ className: className
28978
28993
  }), column.render('Footer'));
28979
28994
  };
28980
28995
  FooterCell.displayName = 'FooterCell';
@@ -29139,7 +29154,7 @@ var HeaderCell = function HeaderCell(props) {
29139
29154
  return setHovered(false);
29140
29155
  }
29141
29156
  }), canResize && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellResizer, _extends({}, getResizerProps(), {
29142
- isResizing: isResizing
29157
+ $isResizing: isResizing
29143
29158
  }))));
29144
29159
  };
29145
29160
  HeaderCell.displayName = 'HeaderCell';
@@ -29163,7 +29178,7 @@ var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
29163
29178
  displayName: "HeaderCellResizer",
29164
29179
  componentId: "sc-8zg5t0-3"
29165
29180
  })(["display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:", ";touch-action:none;", ""], _constants__WEBPACK_IMPORTED_MODULE_5__.Z_INDEX.cellResizer, function (props) {
29166
- if (props.isResizing) {
29181
+ if (props.$isResizing) {
29167
29182
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["&:after{content:\" \";display:block;width:2px;height:24px;background:", ";position:absolute;bottom:0;left:4px;}"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_10);
29168
29183
  }
29169
29184
  });
@@ -29261,7 +29276,7 @@ var HeaderFunctions = function HeaderFunctions(props) {
29261
29276
  }, item));
29262
29277
  }));
29263
29278
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MenuPopover, {
29264
- visible: visible,
29279
+ $visible: visible,
29265
29280
  popoverProps: {
29266
29281
  menu: menu
29267
29282
  }
@@ -29276,7 +29291,7 @@ var MenuButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_icon_
29276
29291
  icon: 'DotsHorizontal',
29277
29292
  onClick: props.popover.toggle,
29278
29293
  style: {
29279
- visibility: props.visible ? 'visible' : 'hidden'
29294
+ visibility: props.$visible ? 'visible' : 'hidden'
29280
29295
  }
29281
29296
  };
29282
29297
  }).withConfig({