@vchasno/ui-kit 0.2.16 → 0.2.18

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.
@@ -7,6 +7,7 @@ export interface ProductLinkProps {
7
7
  queryParams?: Record<string, string>;
8
8
  onLinkClick?: (product: AllProducts, event: React.MouseEvent) => void;
9
9
  overrideHint?: (product: AllProducts) => string;
10
+ urls?: Partial<Record<AllProducts, string>>;
10
11
  }
11
12
  declare const ProductLink: React.FC<ProductLinkProps>;
12
13
  export default ProductLink;
@@ -4,7 +4,8 @@ interface ComposeLinkOptions {
4
4
  ctxProduct: string;
5
5
  targetProduct: AllProducts;
6
6
  queryParams?: Record<string, string>;
7
+ urls?: Partial<Record<AllProducts, string>>;
7
8
  }
8
9
  export declare const composeZakupivliLink: ({ targetProduct, }: Pick<ComposeLinkOptions, 'targetProduct'>) => string;
9
- export declare const composeLink: ({ targetProduct, ctxProduct, queryParams, edrpou, }: ComposeLinkOptions) => string;
10
+ export declare const composeLink: ({ targetProduct, ctxProduct, queryParams, edrpou, urls, }: ComposeLinkOptions) => string;
10
11
  export {};
package/dist/index.js CHANGED
@@ -468,30 +468,23 @@ var Paragraph = React$1.forwardRef(function (_a, ref) {
468
468
  Paragraph.displayName = 'Paragraph';
469
469
 
470
470
  function _extends$1() {
471
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
472
- for (var i = 1; i < arguments.length; i++) {
473
- var source = arguments[i];
474
- for (var key in source) {
475
- if (Object.prototype.hasOwnProperty.call(source, key)) {
476
- target[key] = source[key];
477
- }
478
- }
471
+ return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
472
+ for (var e = 1; e < arguments.length; e++) {
473
+ var t = arguments[e];
474
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
479
475
  }
480
- return target;
481
- };
482
- return _extends$1.apply(this, arguments);
476
+ return n;
477
+ }, _extends$1.apply(null, arguments);
483
478
  }
484
479
 
485
- function _objectWithoutPropertiesLoose(source, excluded) {
486
- if (source == null) return {};
487
- var target = {};
488
- for (var key in source) {
489
- if (Object.prototype.hasOwnProperty.call(source, key)) {
490
- if (excluded.indexOf(key) >= 0) continue;
491
- target[key] = source[key];
492
- }
480
+ function _objectWithoutPropertiesLoose(r, e) {
481
+ if (null == r) return {};
482
+ var t = {};
483
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
484
+ if (e.includes(n)) continue;
485
+ t[n] = r[n];
493
486
  }
494
- return target;
487
+ return t;
495
488
  }
496
489
 
497
490
  var updateRef = function updateRef(ref, value) {
@@ -2271,11 +2264,9 @@ function deepmerge$1(target, source, options = {
2271
2264
  const output = options.clone ? _extends$1({}, target) : target;
2272
2265
  if (isPlainObject(target) && isPlainObject(source)) {
2273
2266
  Object.keys(source).forEach(key => {
2267
+ if (isPlainObject(source[key]) &&
2274
2268
  // Avoid prototype pollution
2275
- if (key === '__proto__') {
2276
- return;
2277
- }
2278
- if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {
2269
+ Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
2279
2270
  // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
2280
2271
  output[key] = deepmerge$1(target[key], source[key], options);
2281
2272
  } else if (options.clone) {
@@ -2779,7 +2770,7 @@ function useControlled({
2779
2770
  current: defaultValue
2780
2771
  } = React__namespace.useRef(defaultProp);
2781
2772
  React__namespace.useEffect(() => {
2782
- if (!isControlled && defaultValue !== defaultProp) {
2773
+ if (!isControlled && !Object.is(defaultValue, defaultProp)) {
2783
2774
  console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\n'));
2784
2775
  }
2785
2776
  }, [JSON.stringify(defaultProp)]);
@@ -3208,9 +3199,9 @@ var colorManipulator = {};
3208
3199
  var interopRequireDefault = {exports: {}};
3209
3200
 
3210
3201
  (function (module) {
3211
- function _interopRequireDefault(obj) {
3212
- return obj && obj.__esModule ? obj : {
3213
- "default": obj
3202
+ function _interopRequireDefault(e) {
3203
+ return e && e.__esModule ? e : {
3204
+ "default": e
3214
3205
  };
3215
3206
  }
3216
3207
  module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -3614,18 +3605,13 @@ function require_extends () {
3614
3605
  hasRequired_extends = 1;
3615
3606
  (function (module) {
3616
3607
  function _extends() {
3617
- module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
3618
- for (var i = 1; i < arguments.length; i++) {
3619
- var source = arguments[i];
3620
- for (var key in source) {
3621
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3622
- target[key] = source[key];
3623
- }
3624
- }
3608
+ return (module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
3609
+ for (var e = 1; e < arguments.length; e++) {
3610
+ var t = arguments[e];
3611
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3625
3612
  }
3626
- return target;
3627
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
3628
- return _extends.apply(this, arguments);
3613
+ return n;
3614
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _extends.apply(null, arguments);
3629
3615
  }
3630
3616
  module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
3631
3617
  } (_extends));
@@ -3640,16 +3626,14 @@ function requireObjectWithoutPropertiesLoose () {
3640
3626
  if (hasRequiredObjectWithoutPropertiesLoose) return objectWithoutPropertiesLoose.exports;
3641
3627
  hasRequiredObjectWithoutPropertiesLoose = 1;
3642
3628
  (function (module) {
3643
- function _objectWithoutPropertiesLoose(source, excluded) {
3644
- if (source == null) return {};
3645
- var target = {};
3646
- for (var key in source) {
3647
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3648
- if (excluded.indexOf(key) >= 0) continue;
3649
- target[key] = source[key];
3650
- }
3629
+ function _objectWithoutPropertiesLoose(r, e) {
3630
+ if (null == r) return {};
3631
+ var t = {};
3632
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3633
+ if (e.includes(n)) continue;
3634
+ t[n] = r[n];
3651
3635
  }
3652
- return target;
3636
+ return t;
3653
3637
  }
3654
3638
  module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
3655
3639
  } (objectWithoutPropertiesLoose));
@@ -6615,7 +6599,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles.propTypes = {
6615
6599
  } : void 0;
6616
6600
 
6617
6601
  /**
6618
- * @mui/styled-engine v5.15.14
6602
+ * @mui/styled-engine v5.16.1
6619
6603
  *
6620
6604
  * @license MIT
6621
6605
  * This source code is licensed under the MIT license found in the
@@ -8928,18 +8912,14 @@ function useThemeProps({
8928
8912
  });
8929
8913
  }
8930
8914
 
8931
- function _setPrototypeOf(o, p) {
8932
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
8933
- o.__proto__ = p;
8934
- return o;
8935
- };
8936
- return _setPrototypeOf(o, p);
8915
+ function _setPrototypeOf(t, e) {
8916
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
8917
+ return t.__proto__ = e, t;
8918
+ }, _setPrototypeOf(t, e);
8937
8919
  }
8938
8920
 
8939
- function _inheritsLoose(subClass, superClass) {
8940
- subClass.prototype = Object.create(superClass.prototype);
8941
- subClass.prototype.constructor = subClass;
8942
- _setPrototypeOf(subClass, superClass);
8921
+ function _inheritsLoose(t, o) {
8922
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
8943
8923
  }
8944
8924
 
8945
8925
  var config = {