@vchasno/ui-kit 0.2.15 → 0.2.17
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/CHANGELOG.md +6 -0
- package/dist/Datepicker/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
- package/dist/Datepicker/types/components/ProjectsPopover/utils.d.ts +2 -1
- package/dist/ProjectsPopover/index.cjs.js +47 -66
- package/dist/ProjectsPopover/index.cjs.js.map +1 -1
- package/dist/ProjectsPopover/index.d.ts +1 -0
- package/dist/ProjectsPopover/index.js +47 -66
- package/dist/ProjectsPopover/index.js.map +1 -1
- package/dist/ProjectsPopover/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
- package/dist/ProjectsPopover/types/components/ProjectsPopover/utils.d.ts +2 -1
- package/dist/Select/index.cjs.js +95 -138
- package/dist/Select/index.cjs.js.map +1 -1
- package/dist/Select/index.js +95 -138
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
- package/dist/Select/types/components/ProjectsPopover/utils.d.ts +2 -1
- package/dist/SelectCreatable/index.cjs.js +95 -138
- package/dist/SelectCreatable/index.cjs.js.map +1 -1
- package/dist/SelectCreatable/index.js +95 -138
- package/dist/SelectCreatable/index.js.map +1 -1
- package/dist/SelectCreatable/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
- package/dist/SelectCreatable/types/components/ProjectsPopover/utils.d.ts +2 -1
- package/dist/index.js +38 -58
- package/dist/index.js.map +1 -1
- package/dist/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
- package/dist/types/components/ProjectsPopover/utils.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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 (
|
|
472
|
-
for (var
|
|
473
|
-
var
|
|
474
|
-
for (var
|
|
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
|
|
481
|
-
};
|
|
482
|
-
return _extends$1.apply(this, arguments);
|
|
476
|
+
return n;
|
|
477
|
+
}, _extends$1.apply(null, arguments);
|
|
483
478
|
}
|
|
484
479
|
|
|
485
|
-
function _objectWithoutPropertiesLoose(
|
|
486
|
-
if (
|
|
487
|
-
var
|
|
488
|
-
for (var
|
|
489
|
-
if (
|
|
490
|
-
|
|
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.indexOf(n) >= 0) continue;
|
|
485
|
+
t[n] = r[n];
|
|
493
486
|
}
|
|
494
|
-
return
|
|
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
|
-
|
|
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
|
|
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(
|
|
3212
|
-
return
|
|
3213
|
-
"default":
|
|
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 (
|
|
3618
|
-
for (var
|
|
3619
|
-
var
|
|
3620
|
-
for (var
|
|
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
|
|
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(
|
|
3644
|
-
if (
|
|
3645
|
-
var
|
|
3646
|
-
for (var
|
|
3647
|
-
if (
|
|
3648
|
-
|
|
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.indexOf(n) >= 0) continue;
|
|
3634
|
+
t[n] = r[n];
|
|
3651
3635
|
}
|
|
3652
|
-
return
|
|
3636
|
+
return t;
|
|
3653
3637
|
}
|
|
3654
3638
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3655
3639
|
} (objectWithoutPropertiesLoose));
|
|
@@ -8928,18 +8912,14 @@ function useThemeProps({
|
|
|
8928
8912
|
});
|
|
8929
8913
|
}
|
|
8930
8914
|
|
|
8931
|
-
function _setPrototypeOf(
|
|
8932
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
8933
|
-
|
|
8934
|
-
|
|
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(
|
|
8940
|
-
|
|
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 = {
|