@vchasno/ui-kit 0.2.16 → 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.
@@ -73,19 +73,13 @@ function toPropertyKey(t) {
73
73
  return "symbol" == _typeof(i) ? i : i + "";
74
74
  }
75
75
 
76
- function _defineProperty(obj, key, value) {
77
- key = toPropertyKey(key);
78
- if (key in obj) {
79
- Object.defineProperty(obj, key, {
80
- value: value,
81
- enumerable: true,
82
- configurable: true,
83
- writable: true
84
- });
85
- } else {
86
- obj[key] = value;
87
- }
88
- return obj;
76
+ function _defineProperty(e, r, t) {
77
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
78
+ value: t,
79
+ enumerable: !0,
80
+ configurable: !0,
81
+ writable: !0
82
+ }) : e[r] = t, e;
89
83
  }
90
84
 
91
85
  function ownKeys(e, r) {
@@ -110,8 +104,8 @@ function _objectSpread2(e) {
110
104
  return e;
111
105
  }
112
106
 
113
- function _arrayWithHoles(arr) {
114
- if (Array.isArray(arr)) return arr;
107
+ function _arrayWithHoles(r) {
108
+ if (Array.isArray(r)) return r;
115
109
  }
116
110
 
117
111
  function _iterableToArrayLimit(r, l) {
@@ -142,55 +136,48 @@ function _iterableToArrayLimit(r, l) {
142
136
  }
143
137
  }
144
138
 
145
- function _arrayLikeToArray(arr, len) {
146
- if (len == null || len > arr.length) len = arr.length;
147
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
148
- return arr2;
139
+ function _arrayLikeToArray(r, a) {
140
+ (null == a || a > r.length) && (a = r.length);
141
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
142
+ return n;
149
143
  }
150
144
 
151
- function _unsupportedIterableToArray(o, minLen) {
152
- if (!o) return;
153
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
154
- var n = Object.prototype.toString.call(o).slice(8, -1);
155
- if (n === "Object" && o.constructor) n = o.constructor.name;
156
- if (n === "Map" || n === "Set") return Array.from(o);
157
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
145
+ function _unsupportedIterableToArray(r, a) {
146
+ if (r) {
147
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
148
+ var t = {}.toString.call(r).slice(8, -1);
149
+ 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;
150
+ }
158
151
  }
159
152
 
160
153
  function _nonIterableRest() {
161
154
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
162
155
  }
163
156
 
164
- function _slicedToArray(arr, i) {
165
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
157
+ function _slicedToArray(r, e) {
158
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
166
159
  }
167
160
 
168
- function _objectWithoutPropertiesLoose(source, excluded) {
169
- if (source == null) return {};
170
- var target = {};
171
- for (var key in source) {
172
- if (Object.prototype.hasOwnProperty.call(source, key)) {
173
- if (excluded.indexOf(key) >= 0) continue;
174
- target[key] = source[key];
175
- }
161
+ function _objectWithoutPropertiesLoose(r, e) {
162
+ if (null == r) return {};
163
+ var t = {};
164
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
165
+ if (e.indexOf(n) >= 0) continue;
166
+ t[n] = r[n];
176
167
  }
177
- return target;
168
+ return t;
178
169
  }
179
170
 
180
- function _objectWithoutProperties(source, excluded) {
181
- if (source == null) return {};
182
- var target = _objectWithoutPropertiesLoose(source, excluded);
183
- var key, i;
171
+ function _objectWithoutProperties(e, t) {
172
+ if (null == e) return {};
173
+ var o,
174
+ r,
175
+ i = _objectWithoutPropertiesLoose(e, t);
184
176
  if (Object.getOwnPropertySymbols) {
185
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
186
- for (i = 0; i < sourceSymbolKeys.length; i++) {
187
- key = sourceSymbolKeys[i];
188
- if (excluded.indexOf(key) >= 0) continue;
189
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
190
- target[key] = source[key];
191
- }
177
+ var n = Object.getOwnPropertySymbols(e);
178
+ for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
192
179
  }
193
- return target;
180
+ return i;
194
181
  }
195
182
 
196
183
  var _excluded$6 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
@@ -261,74 +248,54 @@ function useStateManager(_ref) {
261
248
  }
262
249
 
263
250
  function _extends() {
264
- _extends = Object.assign ? Object.assign.bind() : function (target) {
265
- for (var i = 1; i < arguments.length; i++) {
266
- var source = arguments[i];
267
- for (var key in source) {
268
- if (Object.prototype.hasOwnProperty.call(source, key)) {
269
- target[key] = source[key];
270
- }
271
- }
251
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
252
+ for (var e = 1; e < arguments.length; e++) {
253
+ var t = arguments[e];
254
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
272
255
  }
273
- return target;
274
- };
275
- return _extends.apply(this, arguments);
256
+ return n;
257
+ }, _extends.apply(null, arguments);
276
258
  }
277
259
 
278
- function _classCallCheck(instance, Constructor) {
279
- if (!(instance instanceof Constructor)) {
280
- throw new TypeError("Cannot call a class as a function");
281
- }
260
+ function _classCallCheck(a, n) {
261
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
282
262
  }
283
263
 
284
- function _defineProperties(target, props) {
285
- for (var i = 0; i < props.length; i++) {
286
- var descriptor = props[i];
287
- descriptor.enumerable = descriptor.enumerable || false;
288
- descriptor.configurable = true;
289
- if ("value" in descriptor) descriptor.writable = true;
290
- Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
264
+ function _defineProperties(e, r) {
265
+ for (var t = 0; t < r.length; t++) {
266
+ var o = r[t];
267
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
291
268
  }
292
269
  }
293
- function _createClass(Constructor, protoProps, staticProps) {
294
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
295
- if (staticProps) _defineProperties(Constructor, staticProps);
296
- Object.defineProperty(Constructor, "prototype", {
297
- writable: false
298
- });
299
- return Constructor;
270
+ function _createClass(e, r, t) {
271
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
272
+ writable: !1
273
+ }), e;
300
274
  }
301
275
 
302
- function _setPrototypeOf(o, p) {
303
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
304
- o.__proto__ = p;
305
- return o;
306
- };
307
- return _setPrototypeOf(o, p);
276
+ function _setPrototypeOf(t, e) {
277
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
278
+ return t.__proto__ = e, t;
279
+ }, _setPrototypeOf(t, e);
308
280
  }
309
281
 
310
- function _inherits(subClass, superClass) {
311
- if (typeof superClass !== "function" && superClass !== null) {
312
- throw new TypeError("Super expression must either be null or a function");
313
- }
314
- subClass.prototype = Object.create(superClass && superClass.prototype, {
282
+ function _inherits(t, e) {
283
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
284
+ t.prototype = Object.create(e && e.prototype, {
315
285
  constructor: {
316
- value: subClass,
317
- writable: true,
318
- configurable: true
286
+ value: t,
287
+ writable: !0,
288
+ configurable: !0
319
289
  }
320
- });
321
- Object.defineProperty(subClass, "prototype", {
322
- writable: false
323
- });
324
- if (superClass) _setPrototypeOf(subClass, superClass);
290
+ }), Object.defineProperty(t, "prototype", {
291
+ writable: !1
292
+ }), e && _setPrototypeOf(t, e);
325
293
  }
326
294
 
327
- function _getPrototypeOf(o) {
328
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
329
- return o.__proto__ || Object.getPrototypeOf(o);
330
- };
331
- return _getPrototypeOf(o);
295
+ function _getPrototypeOf(t) {
296
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
297
+ return t.__proto__ || Object.getPrototypeOf(t);
298
+ }, _getPrototypeOf(t);
332
299
  }
333
300
 
334
301
  function _isNativeReflectConstruct() {
@@ -340,51 +307,44 @@ function _isNativeReflectConstruct() {
340
307
  })();
341
308
  }
342
309
 
343
- function _assertThisInitialized(self) {
344
- if (self === void 0) {
345
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
346
- }
347
- return self;
310
+ function _assertThisInitialized(e) {
311
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
312
+ return e;
348
313
  }
349
314
 
350
- function _possibleConstructorReturn(self, call) {
351
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
352
- return call;
353
- } else if (call !== void 0) {
354
- throw new TypeError("Derived constructors may only return object or undefined");
355
- }
356
- return _assertThisInitialized(self);
315
+ function _possibleConstructorReturn(t, e) {
316
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
317
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
318
+ return _assertThisInitialized(t);
357
319
  }
358
320
 
359
- function _createSuper(Derived) {
360
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
361
- return function _createSuperInternal() {
362
- var Super = _getPrototypeOf(Derived),
363
- result;
364
- if (hasNativeReflectConstruct) {
365
- var NewTarget = _getPrototypeOf(this).constructor;
366
- result = Reflect.construct(Super, arguments, NewTarget);
367
- } else {
368
- result = Super.apply(this, arguments);
369
- }
370
- return _possibleConstructorReturn(this, result);
321
+ function _createSuper(t) {
322
+ var r = _isNativeReflectConstruct();
323
+ return function () {
324
+ var e,
325
+ o = _getPrototypeOf(t);
326
+ if (r) {
327
+ var s = _getPrototypeOf(this).constructor;
328
+ e = Reflect.construct(o, arguments, s);
329
+ } else e = o.apply(this, arguments);
330
+ return _possibleConstructorReturn(this, e);
371
331
  };
372
332
  }
373
333
 
374
- function _arrayWithoutHoles(arr) {
375
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
334
+ function _arrayWithoutHoles(r) {
335
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
376
336
  }
377
337
 
378
- function _iterableToArray(iter) {
379
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
338
+ function _iterableToArray(r) {
339
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
380
340
  }
381
341
 
382
342
  function _nonIterableSpread() {
383
343
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
384
344
  }
385
345
 
386
- function _toConsumableArray(arr) {
387
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
346
+ function _toConsumableArray(r) {
347
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
388
348
  }
389
349
 
390
350
  /*
@@ -3185,13 +3145,10 @@ if (process.env.NODE_ENV !== 'production') {
3185
3145
  }
3186
3146
  }
3187
3147
 
3188
- function _taggedTemplateLiteral(strings, raw) {
3189
- if (!raw) {
3190
- raw = strings.slice(0);
3191
- }
3192
- return Object.freeze(Object.defineProperties(strings, {
3148
+ function _taggedTemplateLiteral(e, t) {
3149
+ return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
3193
3150
  raw: {
3194
- value: Object.freeze(raw)
3151
+ value: Object.freeze(t)
3195
3152
  }
3196
3153
  }));
3197
3154
  }