@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.
- 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 +39 -59
- 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 +3 -3
|
@@ -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/Select/index.cjs.js
CHANGED
|
@@ -95,19 +95,13 @@ function toPropertyKey(t) {
|
|
|
95
95
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
function _defineProperty(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
writable: true
|
|
106
|
-
});
|
|
107
|
-
} else {
|
|
108
|
-
obj[key] = value;
|
|
109
|
-
}
|
|
110
|
-
return obj;
|
|
98
|
+
function _defineProperty(e, r, t) {
|
|
99
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
100
|
+
value: t,
|
|
101
|
+
enumerable: !0,
|
|
102
|
+
configurable: !0,
|
|
103
|
+
writable: !0
|
|
104
|
+
}) : e[r] = t, e;
|
|
111
105
|
}
|
|
112
106
|
|
|
113
107
|
function ownKeys(e, r) {
|
|
@@ -132,8 +126,8 @@ function _objectSpread2(e) {
|
|
|
132
126
|
return e;
|
|
133
127
|
}
|
|
134
128
|
|
|
135
|
-
function _arrayWithHoles(
|
|
136
|
-
if (Array.isArray(
|
|
129
|
+
function _arrayWithHoles(r) {
|
|
130
|
+
if (Array.isArray(r)) return r;
|
|
137
131
|
}
|
|
138
132
|
|
|
139
133
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -164,55 +158,48 @@ function _iterableToArrayLimit(r, l) {
|
|
|
164
158
|
}
|
|
165
159
|
}
|
|
166
160
|
|
|
167
|
-
function _arrayLikeToArray(
|
|
168
|
-
|
|
169
|
-
for (var
|
|
170
|
-
return
|
|
161
|
+
function _arrayLikeToArray(r, a) {
|
|
162
|
+
(null == a || a > r.length) && (a = r.length);
|
|
163
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
164
|
+
return n;
|
|
171
165
|
}
|
|
172
166
|
|
|
173
|
-
function _unsupportedIterableToArray(
|
|
174
|
-
if (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
167
|
+
function _unsupportedIterableToArray(r, a) {
|
|
168
|
+
if (r) {
|
|
169
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
170
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
171
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
172
|
+
}
|
|
180
173
|
}
|
|
181
174
|
|
|
182
175
|
function _nonIterableRest() {
|
|
183
176
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
184
177
|
}
|
|
185
178
|
|
|
186
|
-
function _slicedToArray(
|
|
187
|
-
return _arrayWithHoles(
|
|
179
|
+
function _slicedToArray(r, e) {
|
|
180
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
188
181
|
}
|
|
189
182
|
|
|
190
|
-
function _objectWithoutPropertiesLoose(
|
|
191
|
-
if (
|
|
192
|
-
var
|
|
193
|
-
for (var
|
|
194
|
-
if (
|
|
195
|
-
|
|
196
|
-
target[key] = source[key];
|
|
197
|
-
}
|
|
183
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
184
|
+
if (null == r) return {};
|
|
185
|
+
var t = {};
|
|
186
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
187
|
+
if (e.includes(n)) continue;
|
|
188
|
+
t[n] = r[n];
|
|
198
189
|
}
|
|
199
|
-
return
|
|
190
|
+
return t;
|
|
200
191
|
}
|
|
201
192
|
|
|
202
|
-
function _objectWithoutProperties(
|
|
203
|
-
if (
|
|
204
|
-
var
|
|
205
|
-
|
|
193
|
+
function _objectWithoutProperties(e, t) {
|
|
194
|
+
if (null == e) return {};
|
|
195
|
+
var o,
|
|
196
|
+
r,
|
|
197
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
206
198
|
if (Object.getOwnPropertySymbols) {
|
|
207
|
-
var
|
|
208
|
-
for (
|
|
209
|
-
key = sourceSymbolKeys[i];
|
|
210
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
211
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
212
|
-
target[key] = source[key];
|
|
213
|
-
}
|
|
199
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
200
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
214
201
|
}
|
|
215
|
-
return
|
|
202
|
+
return i;
|
|
216
203
|
}
|
|
217
204
|
|
|
218
205
|
var _excluded$6 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
@@ -283,74 +270,54 @@ function useStateManager(_ref) {
|
|
|
283
270
|
}
|
|
284
271
|
|
|
285
272
|
function _extends() {
|
|
286
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
287
|
-
for (var
|
|
288
|
-
var
|
|
289
|
-
for (var
|
|
290
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
291
|
-
target[key] = source[key];
|
|
292
|
-
}
|
|
293
|
-
}
|
|
273
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
274
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
275
|
+
var t = arguments[e];
|
|
276
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
294
277
|
}
|
|
295
|
-
return
|
|
296
|
-
};
|
|
297
|
-
return _extends.apply(this, arguments);
|
|
278
|
+
return n;
|
|
279
|
+
}, _extends.apply(null, arguments);
|
|
298
280
|
}
|
|
299
281
|
|
|
300
|
-
function _classCallCheck(
|
|
301
|
-
if (!(
|
|
302
|
-
throw new TypeError("Cannot call a class as a function");
|
|
303
|
-
}
|
|
282
|
+
function _classCallCheck(a, n) {
|
|
283
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
304
284
|
}
|
|
305
285
|
|
|
306
|
-
function _defineProperties(
|
|
307
|
-
for (var
|
|
308
|
-
var
|
|
309
|
-
|
|
310
|
-
descriptor.configurable = true;
|
|
311
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
312
|
-
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
286
|
+
function _defineProperties(e, r) {
|
|
287
|
+
for (var t = 0; t < r.length; t++) {
|
|
288
|
+
var o = r[t];
|
|
289
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
313
290
|
}
|
|
314
291
|
}
|
|
315
|
-
function _createClass(
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
writable: false
|
|
320
|
-
});
|
|
321
|
-
return Constructor;
|
|
292
|
+
function _createClass(e, r, t) {
|
|
293
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
294
|
+
writable: !1
|
|
295
|
+
}), e;
|
|
322
296
|
}
|
|
323
297
|
|
|
324
|
-
function _setPrototypeOf(
|
|
325
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
};
|
|
329
|
-
return _setPrototypeOf(o, p);
|
|
298
|
+
function _setPrototypeOf(t, e) {
|
|
299
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
300
|
+
return t.__proto__ = e, t;
|
|
301
|
+
}, _setPrototypeOf(t, e);
|
|
330
302
|
}
|
|
331
303
|
|
|
332
|
-
function _inherits(
|
|
333
|
-
if (typeof
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
304
|
+
function _inherits(t, e) {
|
|
305
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
306
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
337
307
|
constructor: {
|
|
338
|
-
value:
|
|
339
|
-
writable:
|
|
340
|
-
configurable:
|
|
308
|
+
value: t,
|
|
309
|
+
writable: !0,
|
|
310
|
+
configurable: !0
|
|
341
311
|
}
|
|
342
|
-
})
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
});
|
|
346
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
312
|
+
}), Object.defineProperty(t, "prototype", {
|
|
313
|
+
writable: !1
|
|
314
|
+
}), e && _setPrototypeOf(t, e);
|
|
347
315
|
}
|
|
348
316
|
|
|
349
|
-
function _getPrototypeOf(
|
|
350
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
351
|
-
return
|
|
352
|
-
};
|
|
353
|
-
return _getPrototypeOf(o);
|
|
317
|
+
function _getPrototypeOf(t) {
|
|
318
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
319
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
320
|
+
}, _getPrototypeOf(t);
|
|
354
321
|
}
|
|
355
322
|
|
|
356
323
|
function _isNativeReflectConstruct() {
|
|
@@ -362,51 +329,44 @@ function _isNativeReflectConstruct() {
|
|
|
362
329
|
})();
|
|
363
330
|
}
|
|
364
331
|
|
|
365
|
-
function _assertThisInitialized(
|
|
366
|
-
if (
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
return self;
|
|
332
|
+
function _assertThisInitialized(e) {
|
|
333
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
334
|
+
return e;
|
|
370
335
|
}
|
|
371
336
|
|
|
372
|
-
function _possibleConstructorReturn(
|
|
373
|
-
if (
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
377
|
-
}
|
|
378
|
-
return _assertThisInitialized(self);
|
|
337
|
+
function _possibleConstructorReturn(t, e) {
|
|
338
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
339
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
340
|
+
return _assertThisInitialized(t);
|
|
379
341
|
}
|
|
380
342
|
|
|
381
|
-
function _createSuper(
|
|
382
|
-
var
|
|
383
|
-
return function
|
|
384
|
-
var
|
|
385
|
-
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
388
|
-
|
|
389
|
-
} else
|
|
390
|
-
|
|
391
|
-
}
|
|
392
|
-
return _possibleConstructorReturn(this, result);
|
|
343
|
+
function _createSuper(t) {
|
|
344
|
+
var r = _isNativeReflectConstruct();
|
|
345
|
+
return function () {
|
|
346
|
+
var e,
|
|
347
|
+
o = _getPrototypeOf(t);
|
|
348
|
+
if (r) {
|
|
349
|
+
var s = _getPrototypeOf(this).constructor;
|
|
350
|
+
e = Reflect.construct(o, arguments, s);
|
|
351
|
+
} else e = o.apply(this, arguments);
|
|
352
|
+
return _possibleConstructorReturn(this, e);
|
|
393
353
|
};
|
|
394
354
|
}
|
|
395
355
|
|
|
396
|
-
function _arrayWithoutHoles(
|
|
397
|
-
if (Array.isArray(
|
|
356
|
+
function _arrayWithoutHoles(r) {
|
|
357
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
398
358
|
}
|
|
399
359
|
|
|
400
|
-
function _iterableToArray(
|
|
401
|
-
if (typeof Symbol
|
|
360
|
+
function _iterableToArray(r) {
|
|
361
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
402
362
|
}
|
|
403
363
|
|
|
404
364
|
function _nonIterableSpread() {
|
|
405
365
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
406
366
|
}
|
|
407
367
|
|
|
408
|
-
function _toConsumableArray(
|
|
409
|
-
return _arrayWithoutHoles(
|
|
368
|
+
function _toConsumableArray(r) {
|
|
369
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
410
370
|
}
|
|
411
371
|
|
|
412
372
|
/*
|
|
@@ -3207,13 +3167,10 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
3207
3167
|
}
|
|
3208
3168
|
}
|
|
3209
3169
|
|
|
3210
|
-
function _taggedTemplateLiteral(
|
|
3211
|
-
|
|
3212
|
-
raw = strings.slice(0);
|
|
3213
|
-
}
|
|
3214
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
3170
|
+
function _taggedTemplateLiteral(e, t) {
|
|
3171
|
+
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
3215
3172
|
raw: {
|
|
3216
|
-
value: Object.freeze(
|
|
3173
|
+
value: Object.freeze(t)
|
|
3217
3174
|
}
|
|
3218
3175
|
}));
|
|
3219
3176
|
}
|