@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.
@@ -48,18 +48,13 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
48
48
  };
49
49
 
50
50
  function _extends() {
51
- _extends = Object.assign ? Object.assign.bind() : function (target) {
52
- for (var i = 1; i < arguments.length; i++) {
53
- var source = arguments[i];
54
- for (var key in source) {
55
- if (Object.prototype.hasOwnProperty.call(source, key)) {
56
- target[key] = source[key];
57
- }
58
- }
51
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
52
+ for (var e = 1; e < arguments.length; e++) {
53
+ var t = arguments[e];
54
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
59
55
  }
60
- return target;
61
- };
62
- return _extends.apply(this, arguments);
56
+ return n;
57
+ }, _extends.apply(null, arguments);
63
58
  }
64
59
 
65
60
  function _typeof(o) {
@@ -88,19 +83,13 @@ function toPropertyKey(t) {
88
83
  return "symbol" == _typeof(i) ? i : i + "";
89
84
  }
90
85
 
91
- function _defineProperty(obj, key, value) {
92
- key = toPropertyKey(key);
93
- if (key in obj) {
94
- Object.defineProperty(obj, key, {
95
- value: value,
96
- enumerable: true,
97
- configurable: true,
98
- writable: true
99
- });
100
- } else {
101
- obj[key] = value;
102
- }
103
- return obj;
86
+ function _defineProperty(e, r, t) {
87
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
88
+ value: t,
89
+ enumerable: !0,
90
+ configurable: !0,
91
+ writable: !0
92
+ }) : e[r] = t, e;
104
93
  }
105
94
 
106
95
  function ownKeys(e, r) {
@@ -125,60 +114,45 @@ function _objectSpread2(e) {
125
114
  return e;
126
115
  }
127
116
 
128
- function _classCallCheck(instance, Constructor) {
129
- if (!(instance instanceof Constructor)) {
130
- throw new TypeError("Cannot call a class as a function");
131
- }
117
+ function _classCallCheck(a, n) {
118
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
132
119
  }
133
120
 
134
- function _defineProperties(target, props) {
135
- for (var i = 0; i < props.length; i++) {
136
- var descriptor = props[i];
137
- descriptor.enumerable = descriptor.enumerable || false;
138
- descriptor.configurable = true;
139
- if ("value" in descriptor) descriptor.writable = true;
140
- Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
121
+ function _defineProperties(e, r) {
122
+ for (var t = 0; t < r.length; t++) {
123
+ var o = r[t];
124
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
141
125
  }
142
126
  }
143
- function _createClass(Constructor, protoProps, staticProps) {
144
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
145
- if (staticProps) _defineProperties(Constructor, staticProps);
146
- Object.defineProperty(Constructor, "prototype", {
147
- writable: false
148
- });
149
- return Constructor;
127
+ function _createClass(e, r, t) {
128
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
129
+ writable: !1
130
+ }), e;
150
131
  }
151
132
 
152
- function _setPrototypeOf(o, p) {
153
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
154
- o.__proto__ = p;
155
- return o;
156
- };
157
- return _setPrototypeOf(o, p);
133
+ function _setPrototypeOf(t, e) {
134
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
135
+ return t.__proto__ = e, t;
136
+ }, _setPrototypeOf(t, e);
158
137
  }
159
138
 
160
- function _inherits(subClass, superClass) {
161
- if (typeof superClass !== "function" && superClass !== null) {
162
- throw new TypeError("Super expression must either be null or a function");
163
- }
164
- subClass.prototype = Object.create(superClass && superClass.prototype, {
139
+ function _inherits(t, e) {
140
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
141
+ t.prototype = Object.create(e && e.prototype, {
165
142
  constructor: {
166
- value: subClass,
167
- writable: true,
168
- configurable: true
143
+ value: t,
144
+ writable: !0,
145
+ configurable: !0
169
146
  }
170
- });
171
- Object.defineProperty(subClass, "prototype", {
172
- writable: false
173
- });
174
- if (superClass) _setPrototypeOf(subClass, superClass);
147
+ }), Object.defineProperty(t, "prototype", {
148
+ writable: !1
149
+ }), e && _setPrototypeOf(t, e);
175
150
  }
176
151
 
177
- function _getPrototypeOf(o) {
178
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
179
- return o.__proto__ || Object.getPrototypeOf(o);
180
- };
181
- return _getPrototypeOf(o);
152
+ function _getPrototypeOf(t) {
153
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
154
+ return t.__proto__ || Object.getPrototypeOf(t);
155
+ }, _getPrototypeOf(t);
182
156
  }
183
157
 
184
158
  function _isNativeReflectConstruct() {
@@ -190,66 +164,58 @@ function _isNativeReflectConstruct() {
190
164
  })();
191
165
  }
192
166
 
193
- function _assertThisInitialized(self) {
194
- if (self === void 0) {
195
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
196
- }
197
- return self;
167
+ function _assertThisInitialized(e) {
168
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
169
+ return e;
198
170
  }
199
171
 
200
- function _possibleConstructorReturn(self, call) {
201
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
202
- return call;
203
- } else if (call !== void 0) {
204
- throw new TypeError("Derived constructors may only return object or undefined");
205
- }
206
- return _assertThisInitialized(self);
172
+ function _possibleConstructorReturn(t, e) {
173
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
174
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
175
+ return _assertThisInitialized(t);
207
176
  }
208
177
 
209
- function _createSuper(Derived) {
210
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
211
- return function _createSuperInternal() {
212
- var Super = _getPrototypeOf(Derived),
213
- result;
214
- if (hasNativeReflectConstruct) {
215
- var NewTarget = _getPrototypeOf(this).constructor;
216
- result = Reflect.construct(Super, arguments, NewTarget);
217
- } else {
218
- result = Super.apply(this, arguments);
219
- }
220
- return _possibleConstructorReturn(this, result);
178
+ function _createSuper(t) {
179
+ var r = _isNativeReflectConstruct();
180
+ return function () {
181
+ var e,
182
+ o = _getPrototypeOf(t);
183
+ if (r) {
184
+ var s = _getPrototypeOf(this).constructor;
185
+ e = Reflect.construct(o, arguments, s);
186
+ } else e = o.apply(this, arguments);
187
+ return _possibleConstructorReturn(this, e);
221
188
  };
222
189
  }
223
190
 
224
- function _arrayLikeToArray(arr, len) {
225
- if (len == null || len > arr.length) len = arr.length;
226
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
227
- return arr2;
191
+ function _arrayLikeToArray(r, a) {
192
+ (null == a || a > r.length) && (a = r.length);
193
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
194
+ return n;
228
195
  }
229
196
 
230
- function _arrayWithoutHoles(arr) {
231
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
197
+ function _arrayWithoutHoles(r) {
198
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
232
199
  }
233
200
 
234
- function _iterableToArray(iter) {
235
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
201
+ function _iterableToArray(r) {
202
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
236
203
  }
237
204
 
238
- function _unsupportedIterableToArray(o, minLen) {
239
- if (!o) return;
240
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
241
- var n = Object.prototype.toString.call(o).slice(8, -1);
242
- if (n === "Object" && o.constructor) n = o.constructor.name;
243
- if (n === "Map" || n === "Set") return Array.from(o);
244
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
205
+ function _unsupportedIterableToArray(r, a) {
206
+ if (r) {
207
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
208
+ var t = {}.toString.call(r).slice(8, -1);
209
+ 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;
210
+ }
245
211
  }
246
212
 
247
213
  function _nonIterableSpread() {
248
214
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
249
215
  }
250
216
 
251
- function _toConsumableArray(arr) {
252
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
217
+ function _toConsumableArray(r) {
218
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
253
219
  }
254
220
 
255
221
  /*
@@ -3050,8 +3016,8 @@ if (process.env.NODE_ENV !== 'production') {
3050
3016
  }
3051
3017
  }
3052
3018
 
3053
- function _arrayWithHoles(arr) {
3054
- if (Array.isArray(arr)) return arr;
3019
+ function _arrayWithHoles(r) {
3020
+ if (Array.isArray(r)) return r;
3055
3021
  }
3056
3022
 
3057
3023
  function _iterableToArrayLimit(r, l) {
@@ -3086,45 +3052,36 @@ function _nonIterableRest() {
3086
3052
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3087
3053
  }
3088
3054
 
3089
- function _slicedToArray(arr, i) {
3090
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
3055
+ function _slicedToArray(r, e) {
3056
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
3091
3057
  }
3092
3058
 
3093
- function _objectWithoutPropertiesLoose(source, excluded) {
3094
- if (source == null) return {};
3095
- var target = {};
3096
- for (var key in source) {
3097
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3098
- if (excluded.indexOf(key) >= 0) continue;
3099
- target[key] = source[key];
3100
- }
3059
+ function _objectWithoutPropertiesLoose(r, e) {
3060
+ if (null == r) return {};
3061
+ var t = {};
3062
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3063
+ if (e.includes(n)) continue;
3064
+ t[n] = r[n];
3101
3065
  }
3102
- return target;
3066
+ return t;
3103
3067
  }
3104
3068
 
3105
- function _objectWithoutProperties(source, excluded) {
3106
- if (source == null) return {};
3107
- var target = _objectWithoutPropertiesLoose(source, excluded);
3108
- var key, i;
3069
+ function _objectWithoutProperties(e, t) {
3070
+ if (null == e) return {};
3071
+ var o,
3072
+ r,
3073
+ i = _objectWithoutPropertiesLoose(e, t);
3109
3074
  if (Object.getOwnPropertySymbols) {
3110
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3111
- for (i = 0; i < sourceSymbolKeys.length; i++) {
3112
- key = sourceSymbolKeys[i];
3113
- if (excluded.indexOf(key) >= 0) continue;
3114
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3115
- target[key] = source[key];
3116
- }
3075
+ var s = Object.getOwnPropertySymbols(e);
3076
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3117
3077
  }
3118
- return target;
3078
+ return i;
3119
3079
  }
3120
3080
 
3121
- function _taggedTemplateLiteral(strings, raw) {
3122
- if (!raw) {
3123
- raw = strings.slice(0);
3124
- }
3125
- return Object.freeze(Object.defineProperties(strings, {
3081
+ function _taggedTemplateLiteral(e, t) {
3082
+ return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
3126
3083
  raw: {
3127
- value: Object.freeze(raw)
3084
+ value: Object.freeze(t)
3128
3085
  }
3129
3086
  }));
3130
3087
  }