@commonsku/styles 1.15.1 → 1.16.0

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/index.es.js CHANGED
@@ -5,7 +5,6 @@ import { useDropzone } from 'react-dropzone';
5
5
  import BaseSelect from 'react-select';
6
6
  export { components, createFilter, mergeStyles } from 'react-select';
7
7
  import BaseCreatableSelect from 'react-select/creatable';
8
- export { makeCreatableSelect } from 'react-select/creatable';
9
8
  import BaseAsyncSelect from 'react-select/async';
10
9
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
11
10
  import ReactDOM from 'react-dom';
@@ -2098,27 +2097,26 @@ function RadioIcon(_a) {
2098
2097
 
2099
2098
  function CheckboxIcon(_a) {
2100
2099
  var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.hoverColor, hoverColor = _c === void 0 ? teal.light : _c, _d = _a.disabledColor, disabledColor = _d === void 0 ? neutrals['60'] : _d, _e = _a.size, size = _e === void 0 ? "medium" : _e, _f = _a.hover, hover = _f === void 0 ? false : _f, _g = _a.selected, selected = _g === void 0 ? false : _g, _h = _a.disabled, disabled = _h === void 0 ? false : _h, _j = _a.indeterminate, indeterminate = _j === void 0 ? false : _j, _k = _a.altText, altText = _k === void 0 ? "Select" : _k, props = __rest(_a, ["color", "hoverColor", "disabledColor", "size", "hover", "selected", "disabled", "indeterminate", "altText"]);
2101
- selected ? altText = "Unselect" : altText = "Select";
2102
- var renderPath = React__default.useMemo(function () {
2103
- if (indeterminate) {
2104
- return React__default.createElement("path", { d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM16 13H8C7.45 13 7 12.55 7 12C7 11.45 7.45 11 8 11H16C16.55 11 17 11.45 17 12C17 12.55 16.55 13 16 13Z", fill: disabled ? disabledColor : color });
2105
- }
2106
- else if (selected) {
2107
- return React__default.createElement("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-8.29 13.29a.996.996 0 0 1-1.41 0L5.71 12.7a.996.996 0 1 1 1.41-1.41L10 14.17l6.88-6.88a.996.996 0 1 1 1.41 1.41l-7.58 7.59Z", fill: disabled ? disabledColor : color });
2108
- }
2109
- else if (hover === true && !disabled) {
2110
- return React__default.createElement(React__default.Fragment, null,
2111
- React__default.createElement("path", { d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1Zm1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z", fill: color }),
2112
- React__default.createElement("rect", { x: 6, y: 6, width: 12, height: 12, rx: 1, fill: hoverColor }));
2113
- }
2114
- // default to unselected
2115
- return React__default.createElement("path", { d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1Zm1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z", fill: disabled ? disabledColor : color });
2116
- }, [selected, hover, hoverColor, disabled, disabledColor, color]);
2117
2100
  return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "CheckboxIcon" }, props),
2118
- React__default.createElement("title", { id: "CheckboxIcon" }, altText),
2101
+ React__default.createElement("title", { id: "CheckboxIcon" }, selected && (altText === "Select" || !altText) ? "Unselect" : altText),
2119
2102
  React__default.createElement("path", { fill: "none", d: "M0 0h24v24H0z" }),
2120
- renderPath);
2121
- }
2103
+ React__default.createElement(IconPath, { indeterminate: indeterminate, selected: selected, hover: hover, disabled: disabled, color: color, hoverColor: hoverColor, disabledColor: disabledColor }));
2104
+ }
2105
+ var IconPath = React__default.memo(function (props) {
2106
+ var indeterminate = props.indeterminate, selected = props.selected, hover = props.hover, disabled = props.disabled, color = props.color, hoverColor = props.hoverColor, disabledColor = props.disabledColor;
2107
+ if (indeterminate) {
2108
+ return React__default.createElement("path", { d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM16 13H8C7.45 13 7 12.55 7 12C7 11.45 7.45 11 8 11H16C16.55 11 17 11.45 17 12C17 12.55 16.55 13 16 13Z", fill: disabled ? disabledColor : color });
2109
+ }
2110
+ else if (selected) {
2111
+ return React__default.createElement("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-8.29 13.29a.996.996 0 0 1-1.41 0L5.71 12.7a.996.996 0 1 1 1.41-1.41L10 14.17l6.88-6.88a.996.996 0 1 1 1.41 1.41l-7.58 7.59Z", fill: disabled ? disabledColor : color });
2112
+ }
2113
+ else if (hover === true && !disabled) {
2114
+ return React__default.createElement(React__default.Fragment, null,
2115
+ React__default.createElement("path", { d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1Zm1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z", fill: color }),
2116
+ React__default.createElement("rect", { x: 6, y: 6, width: 12, height: 12, rx: 1, fill: hoverColor }));
2117
+ }
2118
+ return React__default.createElement("path", { d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1Zm1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z", fill: disabled ? disabledColor : color });
2119
+ });
2122
2120
 
2123
2121
  function EditIcon(_a) {
2124
2122
  var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.filled, filled = _d === void 0 ? false : _d, _e = _a.altText, altText = _e === void 0 ? "Edit" : _e, props = __rest(_a, ["color", "size", "filled", "altText"]);
@@ -3051,8 +3049,8 @@ var LabeledRadioInButtonGroup = function (_a) {
3051
3049
  }));
3052
3050
  };
3053
3051
  var LabeledCheckbox = React__default.forwardRef(function (_a, ref) {
3054
- var label = _a.label, name = _a.name, checked = _a.checked, disabled = _a.disabled, indeterminate = _a.indeterminate, onChange = _a.onChange, checkboxColor = _a.checkboxColor, checkboxHoverColor = _a.checkboxHoverColor, _b = _a.labelStyle, labelStyle = _b === void 0 ? {} : _b, _c = _a.checkboxStyle, checkboxStyle = _c === void 0 ? {} : _c, _d = _a.hoverByLabel, hoverByLabel = _d === void 0 ? true : _d, _e = _a.stopPropagation, _f = _a.labelProps, labelProps = _f === void 0 ? {} : _f, _g = _a.checkboxIconProps, checkboxIconProps = _g === void 0 ? {} : _g, props = __rest(_a, ["label", "name", "checked", "disabled", "indeterminate", "onChange", "checkboxColor", "checkboxHoverColor", "labelStyle", "checkboxStyle", "hoverByLabel", "stopPropagation", "labelProps", "checkboxIconProps"]);
3055
- var _h = useState(false), isHovering = _h[0], updateHover = _h[1];
3052
+ var label = _a.label, name = _a.name, checked = _a.checked, disabled = _a.disabled, onChange = _a.onChange, checkboxColor = _a.checkboxColor, checkboxHoverColor = _a.checkboxHoverColor, _b = _a.hoverByLabel, hoverByLabel = _b === void 0 ? true : _b, _c = _a.stopPropagation, _d = _a.indeterminate, indeterminate = _d === void 0 ? false : _d, _e = _a.labelStyle, labelStyle = _e === void 0 ? {} : _e, _f = _a.checkboxStyle, checkboxStyle = _f === void 0 ? {} : _f, _g = _a.labelProps, labelProps = _g === void 0 ? {} : _g, _h = _a.checkboxIconProps, checkboxIconProps = _h === void 0 ? {} : _h, props = __rest(_a, ["label", "name", "checked", "disabled", "onChange", "checkboxColor", "checkboxHoverColor", "hoverByLabel", "stopPropagation", "indeterminate", "labelStyle", "checkboxStyle", "labelProps", "checkboxIconProps"]);
3053
+ var _j = useState(false), isHovering = _j[0], updateHover = _j[1];
3056
3054
  var onMouseOver = function (e) { return updateHover(true); };
3057
3055
  var onMouseLeave = function (e) { return updateHover(false); };
3058
3056
  return (React__default.createElement(CheckboxLabel, __assign({ htmlFor: name, onMouseOver: hoverByLabel ? onMouseOver : undefined, onMouseLeave: hoverByLabel ? onMouseLeave : undefined, disabled: disabled }, labelProps, { style: labelStyle }),
@@ -3148,11 +3146,7 @@ function skuSelectStyles(props) {
3148
3146
  },
3149
3147
  indicatorSeparator: function (provided, state) { return (__assign(__assign({}, provided), { display: 'none' })); },
3150
3148
  option: function (provided, state) {
3151
- var optionStyle = {};
3152
- if (state.data && state.data.styles) {
3153
- optionStyle = state.data.styles;
3154
- }
3155
- return (__assign(__assign(__assign({}, provided), optionStyle), { borderBottom: 'none', padding: 10 }));
3149
+ return (__assign(__assign(__assign({}, provided), (get(state.data, 'styles') || {})), { borderBottom: 'none', padding: 10 }));
3156
3150
  },
3157
3151
  input: function (provided, state) {
3158
3152
  return __assign(__assign({}, provided), { height: 'auto', borderColor: props.error
@@ -3250,11 +3244,13 @@ function skuSelectStyles(props) {
3250
3244
  }
3251
3245
  var skuSelectTheme = function (theme) { return (__assign(__assign({}, theme), { borderRadius: 5, colors: __assign(__assign({}, theme.colors), { primary25: colors.primary0, primary75: colors.primary0, primary50: colors.primary10, primary: colors.primary, neutral20: colors.select.border, neutral30: colors.select.border, neutral80: colors.textbody, neutral90: colors.textbody }) })); };
3252
3246
  // duplicate styles to overide .resku global styles
3247
+ // : React.ForwardRefExoticComponent<SKUSelectProps & React.RefAttributes<BaseSelect>>
3248
+ // React.ForwardRefExoticComponent<AdditionalSKUSelectProps & Omit<Pick<Props<unknown, boolean, GroupBase<unknown>>, "aria-errormessage" | "aria-invalid" | "aria-label" | ... 27 more ... | "form"> & InexactPartial<...> & InexactPartial<...>, StateManagedPropKeys> & Partial<...> & StateManagerAdditionalProps<...> & React.RefAttributes<...>>
3253
3249
  var SKUSelect = React__default.forwardRef(function (_a, ref) {
3254
3250
  var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
3255
3251
  var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
3256
3252
  var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
3257
- return React__default.createElement(BaseSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix }, (inPopup ? popupStyles : {}), { noMargin: noMargin, menuRelative: menuRelative, error: error, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props));
3253
+ return React__default.createElement(BaseSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix }, (inPopup ? popupStyles : {}), { styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props));
3258
3254
  });
3259
3255
  var LabeledSelect = React__default.forwardRef(function (_a, ref) {
3260
3256
  var parentStyle = _a.parentStyle, props = __rest(_a, ["parentStyle"]);
@@ -3269,7 +3265,7 @@ var SKUCreatableSelect = React__default.forwardRef(function (_a, ref) {
3269
3265
  var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
3270
3266
  var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
3271
3267
  var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
3272
- return (React__default.createElement(BaseCreatableSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, noMargin: noMargin, menuRelative: menuRelative, error: error, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
3268
+ return (React__default.createElement(BaseCreatableSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
3273
3269
  });
3274
3270
  var LabeledCreatableSelect = React__default.forwardRef(function (_a, ref) {
3275
3271
  var parentStyle = _a.parentStyle, props = __rest(_a, ["parentStyle"]);
@@ -3284,7 +3280,7 @@ var SKUAsyncSelect = React__default.forwardRef(function (_a, ref) {
3284
3280
  var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
3285
3281
  var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
3286
3282
  var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
3287
- return (React__default.createElement(BaseAsyncSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, noMargin: noMargin, menuRelative: menuRelative, error: error, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
3283
+ return (React__default.createElement(BaseAsyncSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
3288
3284
  });
3289
3285
  var LabeledAsyncSelect = React__default.forwardRef(function (_a, ref) {
3290
3286
  var parentStyle = _a.parentStyle, props = __rest(_a, ["parentStyle"]);
@@ -3924,23 +3920,19 @@ function _defineProperty(obj, key, value) {
3924
3920
  } else {
3925
3921
  obj[key] = value;
3926
3922
  }
3927
-
3928
3923
  return obj;
3929
3924
  }
3930
3925
 
3931
3926
  function ownKeys(object, enumerableOnly) {
3932
3927
  var keys = Object.keys(object);
3933
-
3934
3928
  if (Object.getOwnPropertySymbols) {
3935
3929
  var symbols = Object.getOwnPropertySymbols(object);
3936
3930
  enumerableOnly && (symbols = symbols.filter(function (sym) {
3937
3931
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3938
3932
  })), keys.push.apply(keys, symbols);
3939
3933
  }
3940
-
3941
3934
  return keys;
3942
3935
  }
3943
-
3944
3936
  function _objectSpread2(target) {
3945
3937
  for (var i = 1; i < arguments.length; i++) {
3946
3938
  var source = null != arguments[i] ? arguments[i] : {};
@@ -3950,7 +3942,6 @@ function _objectSpread2(target) {
3950
3942
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3951
3943
  });
3952
3944
  }
3953
-
3954
3945
  return target;
3955
3946
  }
3956
3947
 
@@ -3969,7 +3960,6 @@ function _defineProperties(target, props) {
3969
3960
  Object.defineProperty(target, descriptor.key, descriptor);
3970
3961
  }
3971
3962
  }
3972
-
3973
3963
  function _createClass(Constructor, protoProps, staticProps) {
3974
3964
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3975
3965
  if (staticProps) _defineProperties(Constructor, staticProps);
@@ -3983,7 +3973,6 @@ function _assertThisInitialized(self) {
3983
3973
  if (self === void 0) {
3984
3974
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3985
3975
  }
3986
-
3987
3976
  return self;
3988
3977
  }
3989
3978
 
@@ -3999,7 +3988,6 @@ function _inherits(subClass, superClass) {
3999
3988
  if (typeof superClass !== "function" && superClass !== null) {
4000
3989
  throw new TypeError("Super expression must either be null or a function");
4001
3990
  }
4002
-
4003
3991
  subClass.prototype = Object.create(superClass && superClass.prototype, {
4004
3992
  constructor: {
4005
3993
  value: subClass,
@@ -4024,7 +4012,6 @@ function _isNativeReflectConstruct() {
4024
4012
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
4025
4013
  if (Reflect.construct.sham) return false;
4026
4014
  if (typeof Proxy === "function") return true;
4027
-
4028
4015
  try {
4029
4016
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
4030
4017
  return true;
@@ -4049,7 +4036,6 @@ function _possibleConstructorReturn(self, call) {
4049
4036
  } else if (call !== void 0) {
4050
4037
  throw new TypeError("Derived constructors may only return object or undefined");
4051
4038
  }
4052
-
4053
4039
  return _assertThisInitialized(self);
4054
4040
  }
4055
4041
 
@@ -4057,15 +4043,13 @@ function _createSuper(Derived) {
4057
4043
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
4058
4044
  return function _createSuperInternal() {
4059
4045
  var Super = _getPrototypeOf(Derived),
4060
- result;
4061
-
4046
+ result;
4062
4047
  if (hasNativeReflectConstruct) {
4063
4048
  var NewTarget = _getPrototypeOf(this).constructor;
4064
4049
  result = Reflect.construct(Super, arguments, NewTarget);
4065
4050
  } else {
4066
4051
  result = Super.apply(this, arguments);
4067
4052
  }
4068
-
4069
4053
  return _possibleConstructorReturn(this, result);
4070
4054
  };
4071
4055
  }
@@ -4074,17 +4058,12 @@ var LOADING_IMG_SRC = '/images/gears.gif';
4074
4058
  var NOT_FOUND_IMG_SRC = '/images/404.png';
4075
4059
  var DEFAULT_MAX_ATTEMPTS = 3;
4076
4060
  var DEFAULT_ATTEMPT_INTERVAL = 10000;
4077
-
4078
4061
  var Img = /*#__PURE__*/function (_Component) {
4079
4062
  _inherits(Img, _Component);
4080
-
4081
4063
  var _super = _createSuper(Img);
4082
-
4083
4064
  function Img(props) {
4084
4065
  var _this;
4085
-
4086
4066
  _classCallCheck(this, Img);
4087
-
4088
4067
  _this = _super.call(this, props);
4089
4068
  _this.state = {
4090
4069
  src: _this.props.src,
@@ -4093,7 +4072,6 @@ var Img = /*#__PURE__*/function (_Component) {
4093
4072
  _this.onError = _this.onError.bind(_assertThisInitialized(_this));
4094
4073
  return _this;
4095
4074
  }
4096
-
4097
4075
  _createClass(Img, [{
4098
4076
  key: "UNSAFE_componentWillReceiveProps",
4099
4077
  value: function UNSAFE_componentWillReceiveProps(nextProps) {
@@ -4115,21 +4093,17 @@ var Img = /*#__PURE__*/function (_Component) {
4115
4093
  key: "onError",
4116
4094
  value: function onError() {
4117
4095
  var _this2 = this;
4118
-
4119
4096
  if (NOT_FOUND_IMG_SRC === this.state.src) {
4120
4097
  return;
4121
4098
  }
4122
-
4123
4099
  var max_attempts = this.props.max_attempts || DEFAULT_MAX_ATTEMPTS;
4124
4100
  var attempt_interval = this.props.attempt_interval || DEFAULT_ATTEMPT_INTERVAL;
4125
-
4126
4101
  if (this.state.attempts >= max_attempts) {
4127
4102
  this.setState({
4128
4103
  src: NOT_FOUND_IMG_SRC
4129
4104
  });
4130
4105
  return;
4131
4106
  }
4132
-
4133
4107
  this.setState({
4134
4108
  src: LOADING_IMG_SRC,
4135
4109
  attempts: this.state.attempts + 1
@@ -4143,17 +4117,16 @@ var Img = /*#__PURE__*/function (_Component) {
4143
4117
  }, {
4144
4118
  key: "render",
4145
4119
  value: function render() {
4146
- var props = _objectSpread2(_objectSpread2({}, this.props), {}, {
4147
- src: this.state.src,
4120
+ var props = _objectSpread2(_objectSpread2({
4148
4121
  onError: this.onError
4122
+ }, this.props), {}, {
4123
+ src: this.state.src
4149
4124
  });
4150
-
4151
4125
  return /*#__PURE__*/React__default.createElement("img", Object.assign({
4152
4126
  alt: ""
4153
4127
  }, props));
4154
4128
  }
4155
4129
  }]);
4156
-
4157
4130
  return Img;
4158
4131
  }(Component);
4159
4132
 
@@ -4177,7 +4150,7 @@ var Artwork = function (_a) {
4177
4150
  return React__default.createElement(ArtworkWrapper, { cssHeight: props.cssHeight ? props.cssHeight : props.picture ? 17 : 0, onClick: !props.picture && props.onClick ? props.onClick : undefined },
4178
4151
  props.picture ?
4179
4152
  React__default.createElement(ArtworkPicture, { onClick: function (e) { return props.onClick ? props.onClick(e) : null; }, cssHeight: props.cssHeight ? props.cssHeight : 17 },
4180
- React__default.createElement(Img, { src: props.picture, style: { objectFit: "contain", width: "100%", height: "100%" } }))
4153
+ React__default.createElement(Img, { src: props.picture, style: { objectFit: "contain", width: "100%", height: "100%" }, onError: props.onError }))
4181
4154
  :
4182
4155
  React__default.createElement(IconDoc, { ext: extension(props.name), style: { width: "3vw" } }),
4183
4156
  !props.edit ?
@@ -5182,13 +5155,11 @@ function _objectWithoutPropertiesLoose(source, excluded) {
5182
5155
  var target = {};
5183
5156
  var sourceKeys = Object.keys(source);
5184
5157
  var key, i;
5185
-
5186
5158
  for (i = 0; i < sourceKeys.length; i++) {
5187
5159
  key = sourceKeys[i];
5188
5160
  if (excluded.indexOf(key) >= 0) continue;
5189
5161
  target[key] = source[key];
5190
5162
  }
5191
-
5192
5163
  return target;
5193
5164
  }
5194
5165