@sebgroup/green-react 1.1.0 → 1.2.1

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/index.esm.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import React, { useState, useLayoutEffect, useEffect, useRef, useMemo } from 'react';
3
3
  import { randomId, debounce, validateClassName, delay, createStepper, createDropdown, dropdownValues, createDatepicker, months, years } from '@sebgroup/extract';
4
+ import classNames from 'classnames';
4
5
 
5
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
7
 
@@ -9,8 +10,8 @@ var check = function (it) {
9
10
  };
10
11
 
11
12
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var global$r =
13
- // eslint-disable-next-line es-x/no-global-this -- safe
13
+ var global$c =
14
+ // eslint-disable-next-line es/no-global-this -- safe
14
15
  check(typeof globalThis == 'object' && globalThis) ||
15
16
  check(typeof window == 'object' && window) ||
16
17
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -21,7 +22,7 @@ var global$r =
21
22
 
22
23
  var objectGetOwnPropertyDescriptor = {};
23
24
 
24
- var fails$a = function (exec) {
25
+ var fails$b = function (exec) {
25
26
  try {
26
27
  return !!exec();
27
28
  } catch (error) {
@@ -29,18 +30,18 @@ var fails$a = function (exec) {
29
30
  }
30
31
  };
31
32
 
32
- var fails$9 = fails$a;
33
+ var fails$a = fails$b;
33
34
 
34
35
  // Detect IE8's incomplete defineProperty implementation
35
- var descriptors = !fails$9(function () {
36
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
36
+ var descriptors = !fails$a(function () {
37
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
37
38
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
38
39
  });
39
40
 
40
- var fails$8 = fails$a;
41
+ var fails$9 = fails$b;
41
42
 
42
- var functionBindNative = !fails$8(function () {
43
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
43
+ var functionBindNative = !fails$9(function () {
44
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
44
45
  var test = (function () { /* empty */ }).bind();
45
46
  // eslint-disable-next-line no-prototype-builtins -- safe
46
47
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -57,7 +58,7 @@ var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
57
58
  var objectPropertyIsEnumerable = {};
58
59
 
59
60
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
60
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
61
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
61
62
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
62
63
 
63
64
  // Nashorn ~ JDK8 bug
@@ -82,14 +83,11 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
82
83
  var NATIVE_BIND = functionBindNative;
83
84
 
84
85
  var FunctionPrototype$1 = Function.prototype;
85
- var bind = FunctionPrototype$1.bind;
86
86
  var call$5 = FunctionPrototype$1.call;
87
- var uncurryThis$c = NATIVE_BIND && bind.bind(call$5, call$5);
87
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
88
88
 
89
- var functionUncurryThis = NATIVE_BIND ? function (fn) {
90
- return fn && uncurryThis$c(fn);
91
- } : function (fn) {
92
- return fn && function () {
89
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
90
+ return function () {
93
91
  return call$5.apply(fn, arguments);
94
92
  };
95
93
  };
@@ -97,37 +95,42 @@ var functionUncurryThis = NATIVE_BIND ? function (fn) {
97
95
  var uncurryThis$b = functionUncurryThis;
98
96
 
99
97
  var toString$3 = uncurryThis$b({}.toString);
100
- var stringSlice$1 = uncurryThis$b(''.slice);
98
+ var stringSlice$2 = uncurryThis$b(''.slice);
101
99
 
102
100
  var classofRaw$1 = function (it) {
103
- return stringSlice$1(toString$3(it), 8, -1);
101
+ return stringSlice$2(toString$3(it), 8, -1);
104
102
  };
105
103
 
106
- var global$q = global$r;
107
104
  var uncurryThis$a = functionUncurryThis;
108
- var fails$7 = fails$a;
105
+ var fails$8 = fails$b;
109
106
  var classof$2 = classofRaw$1;
110
107
 
111
- var Object$5 = global$q.Object;
108
+ var $Object$4 = Object;
112
109
  var split = uncurryThis$a(''.split);
113
110
 
114
111
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
115
- var indexedObject = fails$7(function () {
112
+ var indexedObject = fails$8(function () {
116
113
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
117
114
  // eslint-disable-next-line no-prototype-builtins -- safe
118
- return !Object$5('z').propertyIsEnumerable(0);
115
+ return !$Object$4('z').propertyIsEnumerable(0);
119
116
  }) ? function (it) {
120
- return classof$2(it) == 'String' ? split(it, '') : Object$5(it);
121
- } : Object$5;
117
+ return classof$2(it) == 'String' ? split(it, '') : $Object$4(it);
118
+ } : $Object$4;
122
119
 
123
- var global$p = global$r;
120
+ // we can't use just `it == null` since of `document.all` special case
121
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
+ var isNullOrUndefined$2 = function (it) {
123
+ return it === null || it === undefined;
124
+ };
125
+
126
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
124
127
 
125
- var TypeError$8 = global$p.TypeError;
128
+ var $TypeError$6 = TypeError;
126
129
 
127
130
  // `RequireObjectCoercible` abstract operation
128
131
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
129
132
  var requireObjectCoercible$2 = function (it) {
130
- if (it == undefined) throw TypeError$8("Can't call method on " + it);
133
+ if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
131
134
  return it;
132
135
  };
133
136
 
@@ -139,42 +142,62 @@ var toIndexedObject$5 = function (it) {
139
142
  return IndexedObject$1(requireObjectCoercible$1(it));
140
143
  };
141
144
 
145
+ var documentAll$2 = typeof document == 'object' && document.all;
146
+
147
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
148
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
149
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
150
+
151
+ var documentAll_1 = {
152
+ all: documentAll$2,
153
+ IS_HTMLDDA: IS_HTMLDDA
154
+ };
155
+
156
+ var $documentAll$1 = documentAll_1;
157
+
158
+ var documentAll$1 = $documentAll$1.all;
159
+
142
160
  // `IsCallable` abstract operation
143
161
  // https://tc39.es/ecma262/#sec-iscallable
144
- var isCallable$f = function (argument) {
162
+ var isCallable$g = $documentAll$1.IS_HTMLDDA ? function (argument) {
163
+ return typeof argument == 'function' || argument === documentAll$1;
164
+ } : function (argument) {
145
165
  return typeof argument == 'function';
146
166
  };
147
167
 
148
- var isCallable$e = isCallable$f;
168
+ var isCallable$f = isCallable$g;
169
+ var $documentAll = documentAll_1;
149
170
 
150
- var isObject$5 = function (it) {
151
- return typeof it == 'object' ? it !== null : isCallable$e(it);
171
+ var documentAll = $documentAll.all;
172
+
173
+ var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
174
+ return typeof it == 'object' ? it !== null : isCallable$f(it) || it === documentAll;
175
+ } : function (it) {
176
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
152
177
  };
153
178
 
154
- var global$o = global$r;
155
- var isCallable$d = isCallable$f;
179
+ var global$b = global$c;
180
+ var isCallable$e = isCallable$g;
156
181
 
157
182
  var aFunction = function (argument) {
158
- return isCallable$d(argument) ? argument : undefined;
183
+ return isCallable$e(argument) ? argument : undefined;
159
184
  };
160
185
 
161
- var getBuiltIn$4 = function (namespace, method) {
162
- return arguments.length < 2 ? aFunction(global$o[namespace]) : global$o[namespace] && global$o[namespace][method];
186
+ var getBuiltIn$3 = function (namespace, method) {
187
+ return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
163
188
  };
164
189
 
165
190
  var uncurryThis$9 = functionUncurryThis;
166
191
 
167
192
  var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
168
193
 
169
- var getBuiltIn$3 = getBuiltIn$4;
194
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
170
195
 
171
- var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
172
-
173
- var global$n = global$r;
196
+ var global$a = global$c;
174
197
  var userAgent = engineUserAgent;
175
198
 
176
- var process = global$n.process;
177
- var Deno = global$n.Deno;
199
+ var process = global$a.process;
200
+ var Deno = global$a.Deno;
178
201
  var versions = process && process.versions || Deno && Deno.version;
179
202
  var v8 = versions && versions.v8;
180
203
  var match, version;
@@ -198,13 +221,13 @@ if (!version && userAgent) {
198
221
 
199
222
  var engineV8Version = version;
200
223
 
201
- /* eslint-disable es-x/no-symbol -- required for testing */
224
+ /* eslint-disable es/no-symbol -- required for testing */
202
225
 
203
226
  var V8_VERSION = engineV8Version;
204
- var fails$6 = fails$a;
227
+ var fails$7 = fails$b;
205
228
 
206
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
207
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
229
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
230
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
208
231
  var symbol = Symbol();
209
232
  // Chrome 38 Symbol has incorrect toString conversion
210
233
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -213,99 +236,95 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
213
236
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
214
237
  });
215
238
 
216
- /* eslint-disable es-x/no-symbol -- required for testing */
239
+ /* eslint-disable es/no-symbol -- required for testing */
217
240
 
218
- var NATIVE_SYMBOL$2 = nativeSymbol;
241
+ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
219
242
 
220
243
  var useSymbolAsUid = NATIVE_SYMBOL$2
221
244
  && !Symbol.sham
222
245
  && typeof Symbol.iterator == 'symbol';
223
246
 
224
- var global$m = global$r;
225
- var getBuiltIn$2 = getBuiltIn$4;
226
- var isCallable$c = isCallable$f;
247
+ var getBuiltIn$2 = getBuiltIn$3;
248
+ var isCallable$d = isCallable$g;
227
249
  var isPrototypeOf$1 = objectIsPrototypeOf;
228
250
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
229
251
 
230
- var Object$4 = global$m.Object;
252
+ var $Object$3 = Object;
231
253
 
232
254
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
233
255
  return typeof it == 'symbol';
234
256
  } : function (it) {
235
257
  var $Symbol = getBuiltIn$2('Symbol');
236
- return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, Object$4(it));
258
+ return isCallable$d($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
237
259
  };
238
260
 
239
- var global$l = global$r;
240
-
241
- var String$4 = global$l.String;
261
+ var $String$4 = String;
242
262
 
243
263
  var tryToString$1 = function (argument) {
244
264
  try {
245
- return String$4(argument);
265
+ return $String$4(argument);
246
266
  } catch (error) {
247
267
  return 'Object';
248
268
  }
249
269
  };
250
270
 
251
- var global$k = global$r;
252
- var isCallable$b = isCallable$f;
271
+ var isCallable$c = isCallable$g;
253
272
  var tryToString = tryToString$1;
254
273
 
255
- var TypeError$7 = global$k.TypeError;
274
+ var $TypeError$5 = TypeError;
256
275
 
257
276
  // `Assert: IsCallable(argument) is true`
258
- var aCallable$1 = function (argument) {
259
- if (isCallable$b(argument)) return argument;
260
- throw TypeError$7(tryToString(argument) + ' is not a function');
277
+ var aCallable$2 = function (argument) {
278
+ if (isCallable$c(argument)) return argument;
279
+ throw $TypeError$5(tryToString(argument) + ' is not a function');
261
280
  };
262
281
 
263
- var aCallable = aCallable$1;
282
+ var aCallable$1 = aCallable$2;
283
+ var isNullOrUndefined = isNullOrUndefined$2;
264
284
 
265
285
  // `GetMethod` abstract operation
266
286
  // https://tc39.es/ecma262/#sec-getmethod
267
287
  var getMethod$1 = function (V, P) {
268
288
  var func = V[P];
269
- return func == null ? undefined : aCallable(func);
289
+ return isNullOrUndefined(func) ? undefined : aCallable$1(func);
270
290
  };
271
291
 
272
- var global$j = global$r;
273
292
  var call$4 = functionCall;
274
- var isCallable$a = isCallable$f;
275
- var isObject$4 = isObject$5;
293
+ var isCallable$b = isCallable$g;
294
+ var isObject$5 = isObject$6;
276
295
 
277
- var TypeError$6 = global$j.TypeError;
296
+ var $TypeError$4 = TypeError;
278
297
 
279
298
  // `OrdinaryToPrimitive` abstract operation
280
299
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
281
300
  var ordinaryToPrimitive$1 = function (input, pref) {
282
301
  var fn, val;
283
- if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$4(fn, input))) return val;
284
- if (isCallable$a(fn = input.valueOf) && !isObject$4(val = call$4(fn, input))) return val;
285
- if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$4(fn, input))) return val;
286
- throw TypeError$6("Can't convert object to primitive value");
302
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
303
+ if (isCallable$b(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
304
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
305
+ throw $TypeError$4("Can't convert object to primitive value");
287
306
  };
288
307
 
289
308
  var shared$3 = {exports: {}};
290
309
 
291
- var global$i = global$r;
310
+ var global$9 = global$c;
292
311
 
293
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
294
- var defineProperty$4 = Object.defineProperty;
312
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
313
+ var defineProperty$6 = Object.defineProperty;
295
314
 
296
- var setGlobal$3 = function (key, value) {
315
+ var defineGlobalProperty$3 = function (key, value) {
297
316
  try {
298
- defineProperty$4(global$i, key, { value: value, configurable: true, writable: true });
317
+ defineProperty$6(global$9, key, { value: value, configurable: true, writable: true });
299
318
  } catch (error) {
300
- global$i[key] = value;
319
+ global$9[key] = value;
301
320
  } return value;
302
321
  };
303
322
 
304
- var global$h = global$r;
305
- var setGlobal$2 = setGlobal$3;
323
+ var global$8 = global$c;
324
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
306
325
 
307
326
  var SHARED = '__core-js_shared__';
308
- var store$3 = global$h[SHARED] || setGlobal$2(SHARED, {});
327
+ var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
309
328
 
310
329
  var sharedStore = store$3;
311
330
 
@@ -314,22 +333,21 @@ var store$2 = sharedStore;
314
333
  (shared$3.exports = function (key, value) {
315
334
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
316
335
  })('versions', []).push({
317
- version: '3.22.2',
336
+ version: '3.29.0',
318
337
  mode: 'global',
319
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
320
- license: 'https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE',
338
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
339
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
321
340
  source: 'https://github.com/zloirock/core-js'
322
341
  });
323
342
 
324
- var global$g = global$r;
325
343
  var requireObjectCoercible = requireObjectCoercible$2;
326
344
 
327
- var Object$3 = global$g.Object;
345
+ var $Object$2 = Object;
328
346
 
329
347
  // `ToObject` abstract operation
330
348
  // https://tc39.es/ecma262/#sec-toobject
331
349
  var toObject$3 = function (argument) {
332
- return Object$3(requireObjectCoercible(argument));
350
+ return $Object$2(requireObjectCoercible(argument));
333
351
  };
334
352
 
335
353
  var uncurryThis$8 = functionUncurryThis;
@@ -339,7 +357,7 @@ var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
339
357
 
340
358
  // `HasOwnProperty` abstract operation
341
359
  // https://tc39.es/ecma262/#sec-hasownproperty
342
- // eslint-disable-next-line es-x/no-object-hasown -- safe
360
+ // eslint-disable-next-line es/no-object-hasown -- safe
343
361
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
344
362
  return hasOwnProperty(toObject$2(it), key);
345
363
  };
@@ -354,53 +372,46 @@ var uid$2 = function (key) {
354
372
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
355
373
  };
356
374
 
357
- var global$f = global$r;
375
+ var global$7 = global$c;
358
376
  var shared$2 = shared$3.exports;
359
377
  var hasOwn$9 = hasOwnProperty_1;
360
378
  var uid$1 = uid$2;
361
- var NATIVE_SYMBOL$1 = nativeSymbol;
379
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
362
380
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
363
381
 
382
+ var Symbol$1 = global$7.Symbol;
364
383
  var WellKnownSymbolsStore = shared$2('wks');
365
- var Symbol$1 = global$f.Symbol;
366
- var symbolFor = Symbol$1 && Symbol$1['for'];
367
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
384
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
368
385
 
369
386
  var wellKnownSymbol$8 = function (name) {
370
- if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) {
371
- var description = 'Symbol.' + name;
372
- if (NATIVE_SYMBOL$1 && hasOwn$9(Symbol$1, name)) {
373
- WellKnownSymbolsStore[name] = Symbol$1[name];
374
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
375
- WellKnownSymbolsStore[name] = symbolFor(description);
376
- } else {
377
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
378
- }
387
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
388
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$9(Symbol$1, name)
389
+ ? Symbol$1[name]
390
+ : createWellKnownSymbol('Symbol.' + name);
379
391
  } return WellKnownSymbolsStore[name];
380
392
  };
381
393
 
382
- var global$e = global$r;
383
394
  var call$3 = functionCall;
384
- var isObject$3 = isObject$5;
395
+ var isObject$4 = isObject$6;
385
396
  var isSymbol$1 = isSymbol$2;
386
397
  var getMethod = getMethod$1;
387
398
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
388
399
  var wellKnownSymbol$7 = wellKnownSymbol$8;
389
400
 
390
- var TypeError$5 = global$e.TypeError;
401
+ var $TypeError$3 = TypeError;
391
402
  var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
392
403
 
393
404
  // `ToPrimitive` abstract operation
394
405
  // https://tc39.es/ecma262/#sec-toprimitive
395
406
  var toPrimitive$1 = function (input, pref) {
396
- if (!isObject$3(input) || isSymbol$1(input)) return input;
407
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
397
408
  var exoticToPrim = getMethod(input, TO_PRIMITIVE);
398
409
  var result;
399
410
  if (exoticToPrim) {
400
411
  if (pref === undefined) pref = 'default';
401
412
  result = call$3(exoticToPrim, input, pref);
402
- if (!isObject$3(result) || isSymbol$1(result)) return result;
403
- throw TypeError$5("Can't convert object to primitive value");
413
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
414
+ throw $TypeError$3("Can't convert object to primitive value");
404
415
  }
405
416
  if (pref === undefined) pref = 'number';
406
417
  return ordinaryToPrimitive(input, pref);
@@ -416,30 +427,30 @@ var toPropertyKey$2 = function (argument) {
416
427
  return isSymbol(key) ? key : key + '';
417
428
  };
418
429
 
419
- var global$d = global$r;
420
- var isObject$2 = isObject$5;
430
+ var global$6 = global$c;
431
+ var isObject$3 = isObject$6;
421
432
 
422
- var document$1 = global$d.document;
433
+ var document$1 = global$6.document;
423
434
  // typeof document.createElement is 'object' in old IE
424
- var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
435
+ var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
425
436
 
426
437
  var documentCreateElement$2 = function (it) {
427
438
  return EXISTS$1 ? document$1.createElement(it) : {};
428
439
  };
429
440
 
430
- var DESCRIPTORS$9 = descriptors;
431
- var fails$5 = fails$a;
441
+ var DESCRIPTORS$a = descriptors;
442
+ var fails$6 = fails$b;
432
443
  var createElement = documentCreateElement$2;
433
444
 
434
445
  // Thanks to IE8 for its funny defineProperty
435
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$5(function () {
436
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
446
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$6(function () {
447
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
437
448
  return Object.defineProperty(createElement('div'), 'a', {
438
449
  get: function () { return 7; }
439
450
  }).a != 7;
440
451
  });
441
452
 
442
- var DESCRIPTORS$8 = descriptors;
453
+ var DESCRIPTORS$9 = descriptors;
443
454
  var call$2 = functionCall;
444
455
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
445
456
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
@@ -448,12 +459,12 @@ var toPropertyKey$1 = toPropertyKey$2;
448
459
  var hasOwn$8 = hasOwnProperty_1;
449
460
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
450
461
 
451
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
462
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
452
463
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
453
464
 
454
465
  // `Object.getOwnPropertyDescriptor` method
455
466
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
456
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
467
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
457
468
  O = toIndexedObject$4(O);
458
469
  P = toPropertyKey$1(P);
459
470
  if (IE8_DOM_DEFINE$1) try {
@@ -464,42 +475,40 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
464
475
 
465
476
  var objectDefineProperty = {};
466
477
 
467
- var DESCRIPTORS$7 = descriptors;
468
- var fails$4 = fails$a;
478
+ var DESCRIPTORS$8 = descriptors;
479
+ var fails$5 = fails$b;
469
480
 
470
481
  // V8 ~ Chrome 36-
471
482
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
472
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$4(function () {
473
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
483
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
484
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
474
485
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
475
486
  value: 42,
476
487
  writable: false
477
488
  }).prototype != 42;
478
489
  });
479
490
 
480
- var global$c = global$r;
481
- var isObject$1 = isObject$5;
491
+ var isObject$2 = isObject$6;
482
492
 
483
- var String$3 = global$c.String;
484
- var TypeError$4 = global$c.TypeError;
493
+ var $String$3 = String;
494
+ var $TypeError$2 = TypeError;
485
495
 
486
496
  // `Assert: Type(argument) is Object`
487
497
  var anObject$5 = function (argument) {
488
- if (isObject$1(argument)) return argument;
489
- throw TypeError$4(String$3(argument) + ' is not an object');
498
+ if (isObject$2(argument)) return argument;
499
+ throw $TypeError$2($String$3(argument) + ' is not an object');
490
500
  };
491
501
 
492
- var global$b = global$r;
493
- var DESCRIPTORS$6 = descriptors;
502
+ var DESCRIPTORS$7 = descriptors;
494
503
  var IE8_DOM_DEFINE = ie8DomDefine;
495
504
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
496
505
  var anObject$4 = anObject$5;
497
506
  var toPropertyKey = toPropertyKey$2;
498
507
 
499
- var TypeError$3 = global$b.TypeError;
500
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
508
+ var $TypeError$1 = TypeError;
509
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
501
510
  var $defineProperty = Object.defineProperty;
502
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
511
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
503
512
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
504
513
  var ENUMERABLE = 'enumerable';
505
514
  var CONFIGURABLE$1 = 'configurable';
@@ -507,7 +516,7 @@ var WRITABLE = 'writable';
507
516
 
508
517
  // `Object.defineProperty` method
509
518
  // https://tc39.es/ecma262/#sec-object.defineproperty
510
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
519
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
511
520
  anObject$4(O);
512
521
  P = toPropertyKey(P);
513
522
  anObject$4(Attributes);
@@ -529,46 +538,63 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
529
538
  if (IE8_DOM_DEFINE) try {
530
539
  return $defineProperty(O, P, Attributes);
531
540
  } catch (error) { /* empty */ }
532
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
541
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
533
542
  if ('value' in Attributes) O[P] = Attributes.value;
534
543
  return O;
535
544
  };
536
545
 
537
- var DESCRIPTORS$5 = descriptors;
546
+ var DESCRIPTORS$6 = descriptors;
538
547
  var definePropertyModule$3 = objectDefineProperty;
539
548
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
540
549
 
541
- var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
550
+ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
542
551
  return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
543
552
  } : function (object, key, value) {
544
553
  object[key] = value;
545
554
  return object;
546
555
  };
547
556
 
548
- var redefine$3 = {exports: {}};
557
+ var makeBuiltIn$3 = {exports: {}};
558
+
559
+ var DESCRIPTORS$5 = descriptors;
560
+ var hasOwn$7 = hasOwnProperty_1;
561
+
562
+ var FunctionPrototype = Function.prototype;
563
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
564
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
565
+
566
+ var EXISTS = hasOwn$7(FunctionPrototype, 'name');
567
+ // additional protection from minified / mangled / dropped function names
568
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
569
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
570
+
571
+ var functionName = {
572
+ EXISTS: EXISTS,
573
+ PROPER: PROPER,
574
+ CONFIGURABLE: CONFIGURABLE
575
+ };
549
576
 
550
577
  var uncurryThis$6 = functionUncurryThis;
551
- var isCallable$9 = isCallable$f;
578
+ var isCallable$a = isCallable$g;
552
579
  var store$1 = sharedStore;
553
580
 
554
581
  var functionToString = uncurryThis$6(Function.toString);
555
582
 
556
583
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
557
- if (!isCallable$9(store$1.inspectSource)) {
584
+ if (!isCallable$a(store$1.inspectSource)) {
558
585
  store$1.inspectSource = function (it) {
559
586
  return functionToString(it);
560
587
  };
561
588
  }
562
589
 
563
- var inspectSource$2 = store$1.inspectSource;
590
+ var inspectSource$1 = store$1.inspectSource;
564
591
 
565
- var global$a = global$r;
566
- var isCallable$8 = isCallable$f;
567
- var inspectSource$1 = inspectSource$2;
592
+ var global$5 = global$c;
593
+ var isCallable$9 = isCallable$g;
568
594
 
569
- var WeakMap$1 = global$a.WeakMap;
595
+ var WeakMap$1 = global$5.WeakMap;
570
596
 
571
- var nativeWeakMap = isCallable$8(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
597
+ var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
572
598
 
573
599
  var shared$1 = shared$3.exports;
574
600
  var uid = uid$2;
@@ -581,19 +607,18 @@ var sharedKey$3 = function (key) {
581
607
 
582
608
  var hiddenKeys$4 = {};
583
609
 
584
- var NATIVE_WEAK_MAP = nativeWeakMap;
585
- var global$9 = global$r;
586
- var uncurryThis$5 = functionUncurryThis;
587
- var isObject = isObject$5;
588
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
589
- var hasOwn$7 = hasOwnProperty_1;
610
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
611
+ var global$4 = global$c;
612
+ var isObject$1 = isObject$6;
613
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
614
+ var hasOwn$6 = hasOwnProperty_1;
590
615
  var shared = sharedStore;
591
616
  var sharedKey$2 = sharedKey$3;
592
617
  var hiddenKeys$3 = hiddenKeys$4;
593
618
 
594
619
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
595
- var TypeError$2 = global$9.TypeError;
596
- var WeakMap = global$9.WeakMap;
620
+ var TypeError$1 = global$4.TypeError;
621
+ var WeakMap = global$4.WeakMap;
597
622
  var set, get, has;
598
623
 
599
624
  var enforce = function (it) {
@@ -603,43 +628,45 @@ var enforce = function (it) {
603
628
  var getterFor = function (TYPE) {
604
629
  return function (it) {
605
630
  var state;
606
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
607
- throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
631
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
632
+ throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
608
633
  } return state;
609
634
  };
610
635
  };
611
636
 
612
637
  if (NATIVE_WEAK_MAP || shared.state) {
613
638
  var store = shared.state || (shared.state = new WeakMap());
614
- var wmget = uncurryThis$5(store.get);
615
- var wmhas = uncurryThis$5(store.has);
616
- var wmset = uncurryThis$5(store.set);
639
+ /* eslint-disable no-self-assign -- prototype methods protection */
640
+ store.get = store.get;
641
+ store.has = store.has;
642
+ store.set = store.set;
643
+ /* eslint-enable no-self-assign -- prototype methods protection */
617
644
  set = function (it, metadata) {
618
- if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
645
+ if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
619
646
  metadata.facade = it;
620
- wmset(store, it, metadata);
647
+ store.set(it, metadata);
621
648
  return metadata;
622
649
  };
623
650
  get = function (it) {
624
- return wmget(store, it) || {};
651
+ return store.get(it) || {};
625
652
  };
626
653
  has = function (it) {
627
- return wmhas(store, it);
654
+ return store.has(it);
628
655
  };
629
656
  } else {
630
657
  var STATE = sharedKey$2('state');
631
658
  hiddenKeys$3[STATE] = true;
632
659
  set = function (it, metadata) {
633
- if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
660
+ if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
634
661
  metadata.facade = it;
635
- createNonEnumerableProperty$4(it, STATE, metadata);
662
+ createNonEnumerableProperty$3(it, STATE, metadata);
636
663
  return metadata;
637
664
  };
638
665
  get = function (it) {
639
- return hasOwn$7(it, STATE) ? it[STATE] : {};
666
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
640
667
  };
641
668
  has = function (it) {
642
- return hasOwn$7(it, STATE);
669
+ return hasOwn$6(it, STATE);
643
670
  };
644
671
  }
645
672
 
@@ -651,82 +678,110 @@ var internalState = {
651
678
  getterFor: getterFor
652
679
  };
653
680
 
654
- var DESCRIPTORS$4 = descriptors;
655
- var hasOwn$6 = hasOwnProperty_1;
656
-
657
- var FunctionPrototype = Function.prototype;
658
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
659
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
660
-
661
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
662
- // additional protection from minified / mangled / dropped function names
663
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
664
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
665
-
666
- var functionName = {
667
- EXISTS: EXISTS,
668
- PROPER: PROPER,
669
- CONFIGURABLE: CONFIGURABLE
670
- };
671
-
672
- var global$8 = global$r;
673
- var isCallable$7 = isCallable$f;
681
+ var uncurryThis$5 = functionUncurryThis;
682
+ var fails$4 = fails$b;
683
+ var isCallable$8 = isCallable$g;
674
684
  var hasOwn$5 = hasOwnProperty_1;
675
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
676
- var setGlobal$1 = setGlobal$3;
677
- var inspectSource = inspectSource$2;
678
- var InternalStateModule$1 = internalState;
685
+ var DESCRIPTORS$4 = descriptors;
679
686
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
687
+ var inspectSource = inspectSource$1;
688
+ var InternalStateModule$1 = internalState;
680
689
 
681
- var getInternalState$1 = InternalStateModule$1.get;
682
690
  var enforceInternalState = InternalStateModule$1.enforce;
691
+ var getInternalState$1 = InternalStateModule$1.get;
692
+ var $String$2 = String;
693
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
694
+ var defineProperty$5 = Object.defineProperty;
695
+ var stringSlice$1 = uncurryThis$5(''.slice);
696
+ var replace$1 = uncurryThis$5(''.replace);
697
+ var join = uncurryThis$5([].join);
698
+
699
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$4(function () {
700
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
701
+ });
702
+
683
703
  var TEMPLATE = String(String).split('String');
684
704
 
685
- (redefine$3.exports = function (O, key, value, options) {
686
- var unsafe = options ? !!options.unsafe : false;
687
- var simple = options ? !!options.enumerable : false;
688
- var noTargetGet = options ? !!options.noTargetGet : false;
689
- var name = options && options.name !== undefined ? options.name : key;
690
- var state;
691
- if (isCallable$7(value)) {
692
- if (String(name).slice(0, 7) === 'Symbol(') {
693
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
694
- }
695
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
696
- createNonEnumerableProperty$3(value, 'name', name);
697
- }
698
- state = enforceInternalState(value);
699
- if (!state.source) {
700
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
701
- }
705
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
706
+ if (stringSlice$1($String$2(name), 0, 7) === 'Symbol(') {
707
+ name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
702
708
  }
703
- if (O === global$8) {
704
- if (simple) O[key] = value;
705
- else setGlobal$1(key, value);
706
- return;
707
- } else if (!unsafe) {
708
- delete O[key];
709
- } else if (!noTargetGet && O[key]) {
710
- simple = true;
709
+ if (options && options.getter) name = 'get ' + name;
710
+ if (options && options.setter) name = 'set ' + name;
711
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
712
+ if (DESCRIPTORS$4) defineProperty$5(value, 'name', { value: name, configurable: true });
713
+ else value.name = name;
714
+ }
715
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
716
+ defineProperty$5(value, 'length', { value: options.arity });
711
717
  }
712
- if (simple) O[key] = value;
713
- else createNonEnumerableProperty$3(O, key, value);
718
+ try {
719
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
720
+ if (DESCRIPTORS$4) defineProperty$5(value, 'prototype', { writable: false });
721
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
722
+ } else if (value.prototype) value.prototype = undefined;
723
+ } catch (error) { /* empty */ }
724
+ var state = enforceInternalState(value);
725
+ if (!hasOwn$5(state, 'source')) {
726
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
727
+ } return value;
728
+ };
729
+
714
730
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
715
- })(Function.prototype, 'toString', function toString() {
716
- return isCallable$7(this) && getInternalState$1(this).source || inspectSource(this);
717
- });
731
+ // eslint-disable-next-line no-extend-native -- required
732
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
733
+ return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
734
+ }, 'toString');
735
+
736
+ var isCallable$7 = isCallable$g;
737
+ var definePropertyModule$2 = objectDefineProperty;
738
+ var makeBuiltIn$1 = makeBuiltIn$3.exports;
739
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
740
+
741
+ var defineBuiltIn$3 = function (O, key, value, options) {
742
+ if (!options) options = {};
743
+ var simple = options.enumerable;
744
+ var name = options.name !== undefined ? options.name : key;
745
+ if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
746
+ if (options.global) {
747
+ if (simple) O[key] = value;
748
+ else defineGlobalProperty$1(key, value);
749
+ } else {
750
+ try {
751
+ if (!options.unsafe) delete O[key];
752
+ else if (O[key]) simple = true;
753
+ } catch (error) { /* empty */ }
754
+ if (simple) O[key] = value;
755
+ else definePropertyModule$2.f(O, key, {
756
+ value: value,
757
+ enumerable: false,
758
+ configurable: !options.nonConfigurable,
759
+ writable: !options.nonWritable
760
+ });
761
+ } return O;
762
+ };
718
763
 
719
764
  var objectGetOwnPropertyNames = {};
720
765
 
721
766
  var ceil = Math.ceil;
722
767
  var floor = Math.floor;
723
768
 
769
+ // `Math.trunc` method
770
+ // https://tc39.es/ecma262/#sec-math.trunc
771
+ // eslint-disable-next-line es/no-math-trunc -- safe
772
+ var mathTrunc = Math.trunc || function trunc(x) {
773
+ var n = +x;
774
+ return (n > 0 ? floor : ceil)(n);
775
+ };
776
+
777
+ var trunc = mathTrunc;
778
+
724
779
  // `ToIntegerOrInfinity` abstract operation
725
780
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
726
781
  var toIntegerOrInfinity$2 = function (argument) {
727
782
  var number = +argument;
728
- // eslint-disable-next-line no-self-compare -- safe
729
- return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
783
+ // eslint-disable-next-line no-self-compare -- NaN check
784
+ return number !== number || number === 0 ? 0 : trunc(number);
730
785
  };
731
786
 
732
787
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
@@ -832,17 +887,17 @@ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
832
887
 
833
888
  // `Object.getOwnPropertyNames` method
834
889
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
835
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
890
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
836
891
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
837
892
  return internalObjectKeys$1(O, hiddenKeys$1);
838
893
  };
839
894
 
840
895
  var objectGetOwnPropertySymbols = {};
841
896
 
842
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
897
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
843
898
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
844
899
 
845
- var getBuiltIn$1 = getBuiltIn$4;
900
+ var getBuiltIn$1 = getBuiltIn$3;
846
901
  var uncurryThis$3 = functionUncurryThis;
847
902
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
848
903
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
@@ -860,11 +915,11 @@ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
860
915
  var hasOwn$3 = hasOwnProperty_1;
861
916
  var ownKeys = ownKeys$1;
862
917
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
863
- var definePropertyModule$2 = objectDefineProperty;
918
+ var definePropertyModule$1 = objectDefineProperty;
864
919
 
865
920
  var copyConstructorProperties$2 = function (target, source, exceptions) {
866
921
  var keys = ownKeys(source);
867
- var defineProperty = definePropertyModule$2.f;
922
+ var defineProperty = definePropertyModule$1.f;
868
923
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
869
924
  for (var i = 0; i < keys.length; i++) {
870
925
  var key = keys[i];
@@ -874,8 +929,8 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
874
929
  }
875
930
  };
876
931
 
877
- var fails$3 = fails$a;
878
- var isCallable$6 = isCallable$f;
932
+ var fails$3 = fails$b;
933
+ var isCallable$6 = isCallable$g;
879
934
 
880
935
  var replacement = /#|\.prototype\./;
881
936
 
@@ -897,28 +952,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
897
952
 
898
953
  var isForced_1 = isForced$1;
899
954
 
900
- var global$7 = global$r;
955
+ var global$3 = global$c;
901
956
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
902
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
903
- var redefine$2 = redefine$3.exports;
904
- var setGlobal = setGlobal$3;
957
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
958
+ var defineBuiltIn$2 = defineBuiltIn$3;
959
+ var defineGlobalProperty = defineGlobalProperty$3;
905
960
  var copyConstructorProperties$1 = copyConstructorProperties$2;
906
961
  var isForced = isForced_1;
907
962
 
908
963
  /*
909
- options.target - name of the target object
910
- options.global - target is the global object
911
- options.stat - export as static methods of target
912
- options.proto - export as prototype methods of target
913
- options.real - real prototype method for the `pure` version
914
- options.forced - export even if the native feature is available
915
- options.bind - bind methods to the target, required for the `pure` version
916
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
917
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
918
- options.sham - add a flag to not completely full polyfills
919
- options.enumerable - export as enumerable property
920
- options.noTargetGet - prevent calling a getter on target
921
- options.name - the .name of the function if it does not match the key
964
+ options.target - name of the target object
965
+ options.global - target is the global object
966
+ options.stat - export as static methods of target
967
+ options.proto - export as prototype methods of target
968
+ options.real - real prototype method for the `pure` version
969
+ options.forced - export even if the native feature is available
970
+ options.bind - bind methods to the target, required for the `pure` version
971
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
972
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
973
+ options.sham - add a flag to not completely full polyfills
974
+ options.enumerable - export as enumerable property
975
+ options.dontCallGetSet - prevent calling a getter on target
976
+ options.name - the .name of the function if it does not match the key
922
977
  */
923
978
  var _export = function (options, source) {
924
979
  var TARGET = options.target;
@@ -926,15 +981,15 @@ var _export = function (options, source) {
926
981
  var STATIC = options.stat;
927
982
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
928
983
  if (GLOBAL) {
929
- target = global$7;
984
+ target = global$3;
930
985
  } else if (STATIC) {
931
- target = global$7[TARGET] || setGlobal(TARGET, {});
986
+ target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
932
987
  } else {
933
- target = (global$7[TARGET] || {}).prototype;
988
+ target = (global$3[TARGET] || {}).prototype;
934
989
  }
935
990
  if (target) for (key in source) {
936
991
  sourceProperty = source[key];
937
- if (options.noTargetGet) {
992
+ if (options.dontCallGetSet) {
938
993
  descriptor = getOwnPropertyDescriptor(target, key);
939
994
  targetProperty = descriptor && descriptor.value;
940
995
  } else targetProperty = target[key];
@@ -948,8 +1003,7 @@ var _export = function (options, source) {
948
1003
  if (options.sham || (targetProperty && targetProperty.sham)) {
949
1004
  createNonEnumerableProperty$2(sourceProperty, 'sham', true);
950
1005
  }
951
- // extend global
952
- redefine$2(target, key, sourceProperty, options);
1006
+ defineBuiltIn$2(target, key, sourceProperty, options);
953
1007
  }
954
1008
  };
955
1009
 
@@ -958,7 +1012,7 @@ var enumBugKeys$1 = enumBugKeys$3;
958
1012
 
959
1013
  // `Object.keys` method
960
1014
  // https://tc39.es/ecma262/#sec-object.keys
961
- // eslint-disable-next-line es-x/no-object-keys -- safe
1015
+ // eslint-disable-next-line es/no-object-keys -- safe
962
1016
  var objectKeys$2 = Object.keys || function keys(O) {
963
1017
  return internalObjectKeys(O, enumBugKeys$1);
964
1018
  };
@@ -966,27 +1020,27 @@ var objectKeys$2 = Object.keys || function keys(O) {
966
1020
  var DESCRIPTORS$3 = descriptors;
967
1021
  var uncurryThis$2 = functionUncurryThis;
968
1022
  var call$1 = functionCall;
969
- var fails$2 = fails$a;
1023
+ var fails$2 = fails$b;
970
1024
  var objectKeys$1 = objectKeys$2;
971
1025
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
972
1026
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
973
1027
  var toObject$1 = toObject$3;
974
1028
  var IndexedObject = indexedObject;
975
1029
 
976
- // eslint-disable-next-line es-x/no-object-assign -- safe
1030
+ // eslint-disable-next-line es/no-object-assign -- safe
977
1031
  var $assign = Object.assign;
978
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
979
- var defineProperty$3 = Object.defineProperty;
1032
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1033
+ var defineProperty$4 = Object.defineProperty;
980
1034
  var concat = uncurryThis$2([].concat);
981
1035
 
982
1036
  // `Object.assign` method
983
1037
  // https://tc39.es/ecma262/#sec-object.assign
984
1038
  var objectAssign = !$assign || fails$2(function () {
985
1039
  // should have correct order of operations (Edge bug)
986
- if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1040
+ if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
987
1041
  enumerable: true,
988
1042
  get: function () {
989
- defineProperty$3(this, 'b', {
1043
+ defineProperty$4(this, 'b', {
990
1044
  value: 3,
991
1045
  enumerable: false
992
1046
  });
@@ -995,7 +1049,7 @@ var objectAssign = !$assign || fails$2(function () {
995
1049
  // should work with symbols and should have deterministic property order (V8 bug)
996
1050
  var A = {};
997
1051
  var B = {};
998
- // eslint-disable-next-line es-x/no-symbol -- safe
1052
+ // eslint-disable-next-line es/no-symbol -- safe
999
1053
  var symbol = Symbol();
1000
1054
  var alphabet = 'abcdefghijklmnopqrst';
1001
1055
  A[symbol] = 7;
@@ -1025,8 +1079,8 @@ var assign = objectAssign;
1025
1079
 
1026
1080
  // `Object.assign` method
1027
1081
  // https://tc39.es/ecma262/#sec-object.assign
1028
- // eslint-disable-next-line es-x/no-object-assign -- required for testing
1029
- $$2({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
1082
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1083
+ $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1030
1084
  assign: assign
1031
1085
  });
1032
1086
 
@@ -1098,7 +1152,6 @@ const ModalHeader = ({
1098
1152
  const handleClose = event => {
1099
1153
  if (onClose) onClose(event);
1100
1154
  };
1101
-
1102
1155
  return jsxs("div", Object.assign({
1103
1156
  className: "header"
1104
1157
  }, {
@@ -1116,7 +1169,6 @@ const ModalHeader = ({
1116
1169
  }))]
1117
1170
  }));
1118
1171
  };
1119
-
1120
1172
  const ModalBody = ({
1121
1173
  children
1122
1174
  }) => {
@@ -1126,7 +1178,6 @@ const ModalBody = ({
1126
1178
  children: children
1127
1179
  }));
1128
1180
  };
1129
-
1130
1181
  const ModalFooter = ({
1131
1182
  confirm,
1132
1183
  dismiss,
@@ -1138,12 +1189,10 @@ const ModalFooter = ({
1138
1189
  if (onConfirm) onConfirm(event);
1139
1190
  if (onClose) onClose(event);
1140
1191
  };
1141
-
1142
1192
  const handleDismiss = event => {
1143
1193
  if (onDismiss) onDismiss(event);
1144
1194
  if (onClose) onClose(event);
1145
1195
  };
1146
-
1147
1196
  return jsxs("div", Object.assign({
1148
1197
  className: "footer"
1149
1198
  }, {
@@ -1160,14 +1209,12 @@ const ModalFooter = ({
1160
1209
  }))]
1161
1210
  }));
1162
1211
  };
1163
-
1164
1212
  const Modal = _a => {
1165
1213
  var {
1166
- type = 'default',
1167
- isOpen
1168
- } = _a,
1169
- props = __rest(_a, ["type", "isOpen"]);
1170
-
1214
+ type = 'default',
1215
+ isOpen
1216
+ } = _a,
1217
+ props = __rest(_a, ["type", "isOpen"]);
1171
1218
  const modalContent = () => {
1172
1219
  switch (type) {
1173
1220
  case 'slideout':
@@ -1178,7 +1225,6 @@ const Modal = _a => {
1178
1225
  children: [jsx(ModalHeader, Object.assign({}, props)), jsx(ModalBody, Object.assign({}, props)), jsx(ModalFooter, Object.assign({}, props))]
1179
1226
  }));
1180
1227
  }
1181
-
1182
1228
  case 'takeover':
1183
1229
  {
1184
1230
  return jsxs("main", Object.assign({
@@ -1187,7 +1233,6 @@ const Modal = _a => {
1187
1233
  children: [jsx(ModalHeader, Object.assign({}, props)), jsx(ModalBody, Object.assign({}, props)), jsx(ModalFooter, Object.assign({}, props))]
1188
1234
  }));
1189
1235
  }
1190
-
1191
1236
  default:
1192
1237
  {
1193
1238
  return jsxs("section", Object.assign({
@@ -1198,7 +1243,6 @@ const Modal = _a => {
1198
1243
  }
1199
1244
  }
1200
1245
  };
1201
-
1202
1246
  return isOpen ? modalContent() : null;
1203
1247
  };
1204
1248
 
@@ -1206,14 +1250,14 @@ var objectDefineProperties = {};
1206
1250
 
1207
1251
  var DESCRIPTORS$2 = descriptors;
1208
1252
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1209
- var definePropertyModule$1 = objectDefineProperty;
1253
+ var definePropertyModule = objectDefineProperty;
1210
1254
  var anObject$2 = anObject$5;
1211
1255
  var toIndexedObject$1 = toIndexedObject$5;
1212
1256
  var objectKeys = objectKeys$2;
1213
1257
 
1214
1258
  // `Object.defineProperties` method
1215
1259
  // https://tc39.es/ecma262/#sec-object.defineproperties
1216
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
1260
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1217
1261
  objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1218
1262
  anObject$2(O);
1219
1263
  var props = toIndexedObject$1(Properties);
@@ -1221,11 +1265,11 @@ objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1221
1265
  var length = keys.length;
1222
1266
  var index = 0;
1223
1267
  var key;
1224
- while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1268
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1225
1269
  return O;
1226
1270
  };
1227
1271
 
1228
- var getBuiltIn = getBuiltIn$4;
1272
+ var getBuiltIn = getBuiltIn$3;
1229
1273
 
1230
1274
  var html$1 = getBuiltIn('document', 'documentElement');
1231
1275
 
@@ -1301,7 +1345,7 @@ hiddenKeys[IE_PROTO$1] = true;
1301
1345
 
1302
1346
  // `Object.create` method
1303
1347
  // https://tc39.es/ecma262/#sec-object.create
1304
- // eslint-disable-next-line es-x/no-object-create -- safe
1348
+ // eslint-disable-next-line es/no-object-create -- safe
1305
1349
  var objectCreate = Object.create || function create(O, Properties) {
1306
1350
  var result;
1307
1351
  if (O !== null) {
@@ -1316,7 +1360,7 @@ var objectCreate = Object.create || function create(O, Properties) {
1316
1360
 
1317
1361
  var wellKnownSymbol$6 = wellKnownSymbol$8;
1318
1362
  var create$1 = objectCreate;
1319
- var definePropertyModule = objectDefineProperty;
1363
+ var defineProperty$3 = objectDefineProperty.f;
1320
1364
 
1321
1365
  var UNSCOPABLES = wellKnownSymbol$6('unscopables');
1322
1366
  var ArrayPrototype = Array.prototype;
@@ -1324,7 +1368,7 @@ var ArrayPrototype = Array.prototype;
1324
1368
  // Array.prototype[@@unscopables]
1325
1369
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1326
1370
  if (ArrayPrototype[UNSCOPABLES] == undefined) {
1327
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
1371
+ defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1328
1372
  configurable: true,
1329
1373
  value: create$1(null)
1330
1374
  });
@@ -1337,41 +1381,42 @@ var addToUnscopables$1 = function (key) {
1337
1381
 
1338
1382
  var iterators = {};
1339
1383
 
1340
- var fails$1 = fails$a;
1384
+ var fails$1 = fails$b;
1341
1385
 
1342
1386
  var correctPrototypeGetter = !fails$1(function () {
1343
1387
  function F() { /* empty */ }
1344
1388
  F.prototype.constructor = null;
1345
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
1389
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1346
1390
  return Object.getPrototypeOf(new F()) !== F.prototype;
1347
1391
  });
1348
1392
 
1349
- var global$6 = global$r;
1350
1393
  var hasOwn$2 = hasOwnProperty_1;
1351
- var isCallable$5 = isCallable$f;
1394
+ var isCallable$5 = isCallable$g;
1352
1395
  var toObject = toObject$3;
1353
1396
  var sharedKey = sharedKey$3;
1354
1397
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1355
1398
 
1356
1399
  var IE_PROTO = sharedKey('IE_PROTO');
1357
- var Object$2 = global$6.Object;
1358
- var ObjectPrototype = Object$2.prototype;
1400
+ var $Object$1 = Object;
1401
+ var ObjectPrototype = $Object$1.prototype;
1359
1402
 
1360
1403
  // `Object.getPrototypeOf` method
1361
1404
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1362
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$2.getPrototypeOf : function (O) {
1405
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1406
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1363
1407
  var object = toObject(O);
1364
1408
  if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1365
1409
  var constructor = object.constructor;
1366
1410
  if (isCallable$5(constructor) && object instanceof constructor) {
1367
1411
  return constructor.prototype;
1368
- } return object instanceof Object$2 ? ObjectPrototype : null;
1412
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1369
1413
  };
1370
1414
 
1371
- var fails = fails$a;
1372
- var isCallable$4 = isCallable$f;
1415
+ var fails = fails$b;
1416
+ var isCallable$4 = isCallable$g;
1417
+ var isObject = isObject$6;
1373
1418
  var getPrototypeOf$1 = objectGetPrototypeOf;
1374
- var redefine$1 = redefine$3.exports;
1419
+ var defineBuiltIn$1 = defineBuiltIn$3;
1375
1420
  var wellKnownSymbol$5 = wellKnownSymbol$8;
1376
1421
 
1377
1422
  var ITERATOR$2 = wellKnownSymbol$5('iterator');
@@ -1381,7 +1426,7 @@ var BUGGY_SAFARI_ITERATORS$1 = false;
1381
1426
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1382
1427
  var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1383
1428
 
1384
- /* eslint-disable es-x/no-array-prototype-keys -- safe */
1429
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1385
1430
  if ([].keys) {
1386
1431
  arrayIterator = [].keys();
1387
1432
  // Safari 8 has buggy iterators w/o `next`
@@ -1392,7 +1437,7 @@ if ([].keys) {
1392
1437
  }
1393
1438
  }
1394
1439
 
1395
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails(function () {
1440
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
1396
1441
  var test = {};
1397
1442
  // FF44- legacy iterators case
1398
1443
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1403,7 +1448,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1403
1448
  // `%IteratorPrototype%[@@iterator]()` method
1404
1449
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1405
1450
  if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1406
- redefine$1(IteratorPrototype$2, ITERATOR$2, function () {
1451
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1407
1452
  return this;
1408
1453
  });
1409
1454
  }
@@ -1434,7 +1479,7 @@ var Iterators$2 = iterators;
1434
1479
 
1435
1480
  var returnThis$1 = function () { return this; };
1436
1481
 
1437
- var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1482
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1438
1483
  var TO_STRING_TAG = NAME + ' Iterator';
1439
1484
  IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1440
1485
  setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
@@ -1442,34 +1487,42 @@ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENU
1442
1487
  return IteratorConstructor;
1443
1488
  };
1444
1489
 
1445
- var global$5 = global$r;
1446
- var isCallable$3 = isCallable$f;
1490
+ var uncurryThis$1 = functionUncurryThis;
1491
+ var aCallable = aCallable$2;
1492
+
1493
+ var functionUncurryThisAccessor = function (object, key, method) {
1494
+ try {
1495
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1496
+ return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1497
+ } catch (error) { /* empty */ }
1498
+ };
1447
1499
 
1448
- var String$2 = global$5.String;
1449
- var TypeError$1 = global$5.TypeError;
1500
+ var isCallable$3 = isCallable$g;
1501
+
1502
+ var $String$1 = String;
1503
+ var $TypeError = TypeError;
1450
1504
 
1451
1505
  var aPossiblePrototype$1 = function (argument) {
1452
1506
  if (typeof argument == 'object' || isCallable$3(argument)) return argument;
1453
- throw TypeError$1("Can't set " + String$2(argument) + ' as a prototype');
1507
+ throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
1454
1508
  };
1455
1509
 
1456
1510
  /* eslint-disable no-proto -- safe */
1457
1511
 
1458
- var uncurryThis$1 = functionUncurryThis;
1512
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1459
1513
  var anObject = anObject$5;
1460
1514
  var aPossiblePrototype = aPossiblePrototype$1;
1461
1515
 
1462
1516
  // `Object.setPrototypeOf` method
1463
1517
  // https://tc39.es/ecma262/#sec-object.setprototypeof
1464
1518
  // Works with __proto__ only. Old v8 can't work with null proto objects.
1465
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
1519
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1466
1520
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1467
1521
  var CORRECT_SETTER = false;
1468
1522
  var test = {};
1469
1523
  var setter;
1470
1524
  try {
1471
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
1472
- setter = uncurryThis$1(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1525
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1473
1526
  setter(test, []);
1474
1527
  CORRECT_SETTER = test instanceof Array;
1475
1528
  } catch (error) { /* empty */ }
@@ -1485,13 +1538,13 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1485
1538
  var $$1 = _export;
1486
1539
  var call = functionCall;
1487
1540
  var FunctionName = functionName;
1488
- var isCallable$2 = isCallable$f;
1489
- var createIteratorConstructor = createIteratorConstructor$1;
1541
+ var isCallable$2 = isCallable$g;
1542
+ var createIteratorConstructor = iteratorCreateConstructor;
1490
1543
  var getPrototypeOf = objectGetPrototypeOf;
1491
1544
  var setPrototypeOf = objectSetPrototypeOf;
1492
1545
  var setToStringTag = setToStringTag$2;
1493
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1494
- var redefine = redefine$3.exports;
1546
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1547
+ var defineBuiltIn = defineBuiltIn$3;
1495
1548
  var wellKnownSymbol$3 = wellKnownSymbol$8;
1496
1549
  var Iterators$1 = iterators;
1497
1550
  var IteratorsCore = iteratorsCore;
@@ -1507,7 +1560,7 @@ var ENTRIES = 'entries';
1507
1560
 
1508
1561
  var returnThis = function () { return this; };
1509
1562
 
1510
- var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1563
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1511
1564
  createIteratorConstructor(IteratorConstructor, NAME, next);
1512
1565
 
1513
1566
  var getIterationMethod = function (KIND) {
@@ -1538,7 +1591,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1538
1591
  if (setPrototypeOf) {
1539
1592
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1540
1593
  } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$1])) {
1541
- redefine(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1594
+ defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1542
1595
  }
1543
1596
  }
1544
1597
  // Set @@toStringTag to native iterators
@@ -1565,26 +1618,33 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1565
1618
  };
1566
1619
  if (FORCED) for (KEY in methods) {
1567
1620
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1568
- redefine(IterablePrototype, KEY, methods[KEY]);
1621
+ defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1569
1622
  }
1570
1623
  } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1571
1624
  }
1572
1625
 
1573
1626
  // define iterator
1574
1627
  if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1575
- redefine(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1628
+ defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1576
1629
  }
1577
1630
  Iterators$1[NAME] = defaultIterator;
1578
1631
 
1579
1632
  return methods;
1580
1633
  };
1581
1634
 
1635
+ // `CreateIterResultObject` abstract operation
1636
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1637
+ var createIterResultObject$1 = function (value, done) {
1638
+ return { value: value, done: done };
1639
+ };
1640
+
1582
1641
  var toIndexedObject = toIndexedObject$5;
1583
1642
  var addToUnscopables = addToUnscopables$1;
1584
1643
  var Iterators = iterators;
1585
1644
  var InternalStateModule = internalState;
1586
1645
  var defineProperty$1 = objectDefineProperty.f;
1587
- var defineIterator = defineIterator$1;
1646
+ var defineIterator = iteratorDefine;
1647
+ var createIterResultObject = createIterResultObject$1;
1588
1648
  var DESCRIPTORS$1 = descriptors;
1589
1649
 
1590
1650
  var ARRAY_ITERATOR = 'Array Iterator';
@@ -1617,11 +1677,11 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1617
1677
  var index = state.index++;
1618
1678
  if (!target || index >= target.length) {
1619
1679
  state.target = undefined;
1620
- return { value: undefined, done: true };
1680
+ return createIterResultObject(undefined, true);
1621
1681
  }
1622
- if (kind == 'keys') return { value: index, done: false };
1623
- if (kind == 'values') return { value: target[index], done: false };
1624
- return { value: [index, target[index]], done: false };
1682
+ if (kind == 'keys') return createIterResultObject(index, false);
1683
+ if (kind == 'values') return createIterResultObject(target[index], false);
1684
+ return createIterResultObject([index, target[index]], false);
1625
1685
  }, 'values');
1626
1686
 
1627
1687
  // argumentsList[@@iterator] is %ArrayProto_values%
@@ -1683,11 +1743,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1683
1743
 
1684
1744
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1685
1745
 
1686
- var global$4 = global$r;
1746
+ var global$2 = global$c;
1687
1747
  var DOMIterables = domIterables;
1688
1748
  var DOMTokenListPrototype = domTokenListPrototype;
1689
1749
  var ArrayIteratorMethods = es_array_iterator;
1690
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
1750
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
1691
1751
  var wellKnownSymbol$2 = wellKnownSymbol$8;
1692
1752
 
1693
1753
  var ITERATOR = wellKnownSymbol$2('iterator');
@@ -1717,32 +1777,31 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1717
1777
  };
1718
1778
 
1719
1779
  for (var COLLECTION_NAME in DOMIterables) {
1720
- handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1780
+ handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
1721
1781
  }
1722
1782
 
1723
1783
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1724
1784
 
1725
1785
  const Flexbox = _a => {
1726
1786
  var {
1727
- alignContent,
1728
- alignItems,
1729
- alignSelf,
1730
- children,
1731
- justifyContent,
1732
- flexDirection,
1733
- flexWrap,
1734
- className
1735
- } = _a,
1736
- props = __rest(_a, ["alignContent", "alignItems", "alignSelf", "children", "justifyContent", "flexDirection", "flexWrap", "className"]);
1737
-
1787
+ alignContent,
1788
+ alignItems,
1789
+ alignSelf,
1790
+ children,
1791
+ justifyContent,
1792
+ flexDirection,
1793
+ flexWrap,
1794
+ className
1795
+ } = _a,
1796
+ props = __rest(_a, ["alignContent", "alignItems", "alignSelf", "children", "justifyContent", "flexDirection", "flexWrap", "className"]);
1738
1797
  const [classes, setClasses] = useState(['d-flex']);
1739
- const [flexClassName, setFlexClassName] = useState('d-flex'); // // update className when classes change
1740
-
1798
+ const [flexClassName, setFlexClassName] = useState('d-flex');
1799
+ // // update className when classes change
1741
1800
  useLayoutEffect(() => {
1742
1801
  const newClassName = classes.join(' ');
1743
1802
  if (newClassName !== flexClassName) setFlexClassName(newClassName);
1744
- }, [classes, flexClassName]); // // update classes when props change
1745
-
1803
+ }, [classes, flexClassName]);
1804
+ // // update classes when props change
1746
1805
  useLayoutEffect(() => {
1747
1806
  const newClasses = ['d-flex'];
1748
1807
  alignItems && newClasses.push(`align-items-${alignItems}`);
@@ -1828,11 +1887,10 @@ const ChevronDown = ({
1828
1887
 
1829
1888
  const SquareExclamation = _a => {
1830
1889
  var {
1831
- focusable = false,
1832
- title
1833
- } = _a,
1834
- props = __rest(_a, ["focusable", "title"]);
1835
-
1890
+ focusable = false,
1891
+ title
1892
+ } = _a,
1893
+ props = __rest(_a, ["focusable", "title"]);
1836
1894
  let id;
1837
1895
  if (title) id = randomId();
1838
1896
  return jsxs("svg", Object.assign({
@@ -1858,11 +1916,10 @@ const SquareExclamation = _a => {
1858
1916
 
1859
1917
  const SquareInfo = _a => {
1860
1918
  var {
1861
- focusable = false,
1862
- title
1863
- } = _a,
1864
- props = __rest(_a, ["focusable", "title"]);
1865
-
1919
+ focusable = false,
1920
+ title
1921
+ } = _a,
1922
+ props = __rest(_a, ["focusable", "title"]);
1866
1923
  let id;
1867
1924
  if (title) id = randomId();
1868
1925
  return jsx("svg", Object.assign({
@@ -1904,11 +1961,10 @@ const Times = ({
1904
1961
 
1905
1962
  const InfoCircle = _a => {
1906
1963
  var {
1907
- focusable = false,
1908
- title
1909
- } = _a,
1910
- props = __rest(_a, ["focusable", "title"]);
1911
-
1964
+ focusable = false,
1965
+ title
1966
+ } = _a,
1967
+ props = __rest(_a, ["focusable", "title"]);
1912
1968
  let id;
1913
1969
  if (title) id = randomId();
1914
1970
  return jsxs("svg", Object.assign({
@@ -1964,7 +2020,6 @@ function AlertRibbon({
1964
2020
  })));
1965
2021
  }
1966
2022
  }, [isCloseable, closeText]);
1967
-
1968
2023
  const renderIcon = () => {
1969
2024
  switch (type) {
1970
2025
  case 'danger':
@@ -1972,19 +2027,16 @@ function AlertRibbon({
1972
2027
  return jsx(SquareExclamation, {
1973
2028
  "aria-hidden": true
1974
2029
  });
1975
-
1976
2030
  case 'success':
1977
2031
  return jsx(Check, {
1978
2032
  "aria-hidden": true
1979
2033
  });
1980
-
1981
2034
  default:
1982
2035
  return jsx(SquareInfo, {
1983
2036
  "aria-hidden": true
1984
2037
  });
1985
2038
  }
1986
2039
  };
1987
-
1988
2040
  return jsxs("div", Object.assign({
1989
2041
  className: `alert-ribbon ${type}`,
1990
2042
  role: role,
@@ -2023,11 +2075,10 @@ function AlertRibbon({
2023
2075
 
2024
2076
  const IconButton = _a => {
2025
2077
  var {
2026
- children,
2027
- onClick
2028
- } = _a,
2029
- props = __rest(_a, ["children", "onClick"]);
2030
-
2078
+ children,
2079
+ onClick
2080
+ } = _a,
2081
+ props = __rest(_a, ["children", "onClick"]);
2031
2082
  return jsx("button", Object.assign({
2032
2083
  className: "icon",
2033
2084
  onClick: onClick,
@@ -2072,21 +2123,16 @@ const validateInputValue = (target, rules, setError) => {
2072
2123
  errorMessage ? setErrorInsert(setError, target.name) : setErrorRemove(setError, target.name);
2073
2124
  return errorMessage;
2074
2125
  };
2075
-
2076
2126
  const validateInputValueErrors = (rules, target) => {
2077
2127
  const {
2078
2128
  value
2079
2129
  } = target;
2080
-
2081
2130
  if ((rules === null || rules === void 0 ? void 0 : rules.custom) instanceof Function) {
2082
2131
  return rules === null || rules === void 0 ? void 0 : rules.custom();
2083
2132
  }
2084
-
2085
2133
  return validateTextInputValues(value, rules);
2086
2134
  };
2087
2135
  /* eslint-disable-next-line */
2088
-
2089
-
2090
2136
  const setErrorInsert = (setError, name) => {
2091
2137
  /* eslint-disable-next-line */
2092
2138
  setError(errors => {
@@ -2096,8 +2142,6 @@ const setErrorInsert = (setError, name) => {
2096
2142
  });
2097
2143
  };
2098
2144
  /* eslint-disable-next-line */
2099
-
2100
-
2101
2145
  const setErrorRemove = (setError, name) => {
2102
2146
  /* eslint-disable-next-line */
2103
2147
  setError(errors => {
@@ -2107,14 +2151,12 @@ const setErrorRemove = (setError, name) => {
2107
2151
  return newError;
2108
2152
  });
2109
2153
  };
2110
-
2111
2154
  const validateTextInputValues = (value, rules) => {
2112
2155
  switch (rules === null || rules === void 0 ? void 0 : rules.type) {
2113
2156
  case 'Required':
2114
2157
  {
2115
2158
  return value === '' || value === undefined || value === null ? 'error' : null;
2116
2159
  }
2117
-
2118
2160
  default:
2119
2161
  {
2120
2162
  return;
@@ -2128,24 +2170,19 @@ const useFormContext = () => {
2128
2170
  };
2129
2171
  const FormProvider = _a => {
2130
2172
  var {
2131
- children,
2132
- direction = 'vertical',
2133
- formSize = 'md',
2134
- onSubmit,
2135
- onFormSubmit
2136
- } = _a,
2137
- props = __rest(_a, ["children", "direction", "formSize", "onSubmit", "onFormSubmit"]);
2173
+ children,
2174
+ direction = 'vertical',
2175
+ formSize = 'md',
2176
+ onSubmit,
2177
+ onFormSubmit
2178
+ } = _a,
2179
+ props = __rest(_a, ["children", "direction", "formSize", "onSubmit", "onFormSubmit"]);
2138
2180
  /* eslint-disable-next-line */
2139
-
2140
-
2141
2181
  const [values, setValues] = React.useState();
2142
2182
  /* eslint-disable-next-line */
2143
-
2144
2183
  const [errors, setErrors] = React.useState();
2145
2184
  /* eslint-disable-next-line */
2146
-
2147
2185
  const [fields, setFields] = React.useState({});
2148
-
2149
2186
  const formSubmit = event => {
2150
2187
  let hasError = false;
2151
2188
  event.preventDefault();
@@ -2156,17 +2193,14 @@ const FormProvider = _a => {
2156
2193
  }, fields[key], setErrors);
2157
2194
  hasError = hasError || !!errorMessage;
2158
2195
  });
2159
-
2160
2196
  if (!hasError) {
2161
2197
  onFormSubmit && onFormSubmit(values);
2162
2198
  }
2163
2199
  };
2164
-
2165
2200
  const resetForm = () => {
2166
2201
  setValues({});
2167
2202
  setErrors({});
2168
2203
  };
2169
-
2170
2204
  return jsx(FormContext.Provider, Object.assign({
2171
2205
  value: {
2172
2206
  setValues,
@@ -2208,26 +2242,22 @@ const FormItems = ({
2208
2242
  [name]: validate === null || validate === void 0 ? void 0 : validate.rules
2209
2243
  }));
2210
2244
  /* eslint-disable-next-line */
2211
-
2212
2245
  const removeValues = values => {
2213
2246
  /* eslint-disable-next-line */
2214
2247
  const newValues = Object.assign({}, values);
2215
2248
  delete newValues[name];
2216
2249
  return newValues;
2217
2250
  };
2218
-
2219
2251
  return () => {
2220
2252
  /* eslint-disable-next-line */
2221
2253
  setFields(fields => removeValues(fields));
2222
2254
  /* eslint-disable-next-line */
2223
-
2224
2255
  setValues(values => removeValues(values));
2225
2256
  /* eslint-disable-next-line */
2226
-
2227
2257
  setErrors(errors => removeValues(errors));
2228
- }; // eslint-disable-next-line react-hooks/exhaustive-deps
2258
+ };
2259
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2229
2260
  }, []);
2230
-
2231
2261
  const onChange = event => {
2232
2262
  if (!event.target) return;
2233
2263
  const {
@@ -2237,11 +2267,9 @@ const FormItems = ({
2237
2267
  checked
2238
2268
  } = event.target;
2239
2269
  let inputValue;
2240
-
2241
2270
  if (type === 'checkbox') {
2242
2271
  inputValue = checked ? value : null;
2243
2272
  /* eslint-disable-next-line */
2244
-
2245
2273
  checked ? setValues(values => Object.assign(Object.assign({}, values), {
2246
2274
  [name]: value
2247
2275
  })) : setValues(values => Object.assign(Object.assign({}, values), {
@@ -2250,12 +2278,10 @@ const FormItems = ({
2250
2278
  } else {
2251
2279
  inputValue = value;
2252
2280
  /* eslint-disable-next-line */
2253
-
2254
2281
  setValues(values => Object.assign(Object.assign({}, values), {
2255
2282
  [name]: value
2256
2283
  }));
2257
2284
  }
2258
-
2259
2285
  validateInputValue({
2260
2286
  value: inputValue,
2261
2287
  name,
@@ -2264,8 +2290,6 @@ const FormItems = ({
2264
2290
  }, validate === null || validate === void 0 ? void 0 : validate.rules, setErrors);
2265
2291
  };
2266
2292
  /* eslint-disable-next-line */
2267
-
2268
-
2269
2293
  return /*#__PURE__*/React.cloneElement(children, {
2270
2294
  validator: (errors === null || errors === void 0 ? void 0 : errors[name]) && validate,
2271
2295
  name,
@@ -2318,18 +2342,17 @@ const FormItem = ({
2318
2342
  const handleResize = debounce(function setExpandableHeightAfterResize() {
2319
2343
  isExpanded && expandableInnerRef.current && setExpandableHeight(expandableInnerRef.current['clientHeight']);
2320
2344
  }, 300);
2321
-
2322
2345
  if (expandableRef.current) {
2323
2346
  window.addEventListener('resize', handleResize);
2324
2347
  }
2325
-
2326
2348
  return () => {
2327
2349
  window.removeEventListener('resize', handleResize);
2328
2350
  };
2329
2351
  }, [isExpanded, expandableInnerRef]);
2330
2352
  if (!inputId) inputId = randomId();
2353
+ const formItemClassNames = classNames('gds-form-item', validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator));
2331
2354
  return jsxs("div", Object.assign({
2332
- className: `gds-form-item ${validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator)}`,
2355
+ className: formItemClassNames,
2333
2356
  role: role ? role : undefined,
2334
2357
  "aria-labelledby": role ? `${inputId}-label` : undefined
2335
2358
  }, {
@@ -2411,7 +2434,6 @@ const useInput = (props, onChanges, onChangeInput) => {
2411
2434
  setValue(props.value ? props.value : '');
2412
2435
  setChecked(props.checked ? props.checked : false);
2413
2436
  };
2414
-
2415
2437
  const form = ref.current.form;
2416
2438
  form.addEventListener('reset', resetListener);
2417
2439
  return () => form.removeEventListener('reset', resetListener);
@@ -2420,14 +2442,12 @@ const useInput = (props, onChanges, onChangeInput) => {
2420
2442
  return () => {};
2421
2443
  }
2422
2444
  }, [props]);
2423
-
2424
2445
  const onChange = event => {
2425
2446
  setValue(event.target.value);
2426
2447
  setChecked(event.currentTarget.checked);
2427
2448
  onChanges && onChanges(event);
2428
2449
  onChangeInput && onChangeInput(event.target.value);
2429
2450
  };
2430
-
2431
2451
  return Object.assign(Object.assign({}, props), {
2432
2452
  id,
2433
2453
  ref,
@@ -2439,15 +2459,14 @@ const useInput = (props, onChanges, onChangeInput) => {
2439
2459
 
2440
2460
  const RenderInput = (type, props, onChange, onChangeInput, label, info, validator, expandableInfo, expandableInfoButtonLabel) => {
2441
2461
  const _a = useInput(props, onChange, onChangeInput),
2442
- {
2443
- value
2444
- } = _a,
2445
- inputProps = __rest(_a, ["value"]);
2446
-
2462
+ {
2463
+ value
2464
+ } = _a,
2465
+ inputProps = __rest(_a, ["value"]);
2447
2466
  const propsWithDescription = info ? Object.assign(Object.assign({}, inputProps), {
2448
2467
  'aria-describedby': `${inputProps.id}_info`
2449
- }) : inputProps; // Render naked
2450
-
2468
+ }) : inputProps;
2469
+ // Render naked
2451
2470
  if (!label && !info && !expandableInfo) return jsx("input", Object.assign({
2452
2471
  type: type,
2453
2472
  value: value
@@ -2460,75 +2479,76 @@ const RenderInput = (type, props, onChange, onChangeInput, label, info, validato
2460
2479
  expandableInfoButtonLabel: expandableInfoButtonLabel,
2461
2480
  inputId: inputProps.id
2462
2481
  }, {
2463
- children: jsx("input", Object.assign({
2464
- type: type,
2465
- value: value
2466
- }, propsWithDescription, {
2467
- className: validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator)
2482
+ children: jsx("div", Object.assign({
2483
+ className: "gds-input-wrapper"
2484
+ }, {
2485
+ children: jsx("input", Object.assign({
2486
+ type: type,
2487
+ value: value
2488
+ }, propsWithDescription, {
2489
+ className: validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator)
2490
+ }))
2468
2491
  }))
2469
2492
  }));
2470
2493
  };
2471
2494
  const TextInput = _a => {
2472
2495
  var {
2473
- label,
2474
- info,
2475
- onChange,
2476
- onChangeInput,
2477
- validator,
2478
- expandableInfo,
2479
- expandableInfoButtonLabel
2480
- } = _a,
2481
- props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator", "expandableInfo", "expandableInfoButtonLabel"]);
2482
-
2496
+ label,
2497
+ info,
2498
+ onChange,
2499
+ onChangeInput,
2500
+ validator,
2501
+ expandableInfo,
2502
+ expandableInfoButtonLabel
2503
+ } = _a,
2504
+ props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator", "expandableInfo", "expandableInfoButtonLabel"]);
2483
2505
  return RenderInput('text', props, onChange, onChangeInput, label, info, validator, expandableInfo, expandableInfoButtonLabel);
2484
2506
  };
2485
2507
  const EmailInput = _a => {
2486
2508
  var {
2487
- label,
2488
- info,
2489
- onChange,
2490
- onChangeInput,
2491
- validator
2492
- } = _a,
2493
- props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator"]);
2494
-
2509
+ label,
2510
+ info,
2511
+ onChange,
2512
+ onChangeInput,
2513
+ validator
2514
+ } = _a,
2515
+ props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator"]);
2495
2516
  return RenderInput('email', props, onChange, onChangeInput, label, info, validator);
2496
2517
  };
2497
2518
  const NumberInput = _a => {
2498
2519
  var {
2499
- label,
2500
- info,
2501
- onChange,
2502
- onChangeInput,
2503
- validator,
2504
- expandableInfo,
2505
- expandableInfoButtonLabel
2506
- } = _a,
2507
- props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator", "expandableInfo", "expandableInfoButtonLabel"]);
2508
-
2520
+ label,
2521
+ info,
2522
+ onChange,
2523
+ onChangeInput,
2524
+ validator,
2525
+ expandableInfo,
2526
+ expandableInfoButtonLabel
2527
+ } = _a,
2528
+ props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator", "expandableInfo", "expandableInfoButtonLabel"]);
2509
2529
  return RenderInput('number', props, onChange, onChangeInput, label, info, validator, expandableInfo, expandableInfoButtonLabel);
2510
2530
  };
2511
2531
  const Checkbox = _a => {
2512
2532
  var {
2513
- label,
2514
- onChange,
2515
- validator
2516
- } = _a,
2517
- props = __rest(_a, ["label", "onChange", "validator"]);
2518
-
2533
+ label,
2534
+ onChange,
2535
+ validator
2536
+ } = _a,
2537
+ props = __rest(_a, ["label", "onChange", "validator"]);
2519
2538
  const inputProps = useInput(props, onChange);
2520
- const validatorClassName = validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
2539
+ const labelClassNames = classNames('form-control', validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator));
2540
+ const inputClassNames = classNames(validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator));
2521
2541
  return jsxs("div", Object.assign({
2522
2542
  className: "form-group"
2523
2543
  }, {
2524
2544
  children: [jsxs("label", Object.assign({
2525
2545
  htmlFor: inputProps.id,
2526
- className: `form-control ${validatorClassName}`
2546
+ className: labelClassNames
2527
2547
  }, {
2528
2548
  children: [label, jsx("input", Object.assign({
2529
2549
  type: "checkbox"
2530
2550
  }, inputProps, {
2531
- className: validatorClassName
2551
+ className: inputClassNames
2532
2552
  })), jsx("i", {})]
2533
2553
  })), validator && jsx("span", Object.assign({
2534
2554
  className: "form-info"
@@ -2539,14 +2559,14 @@ const Checkbox = _a => {
2539
2559
  };
2540
2560
  const RadioButton = /*#__PURE__*/React.forwardRef((_a, ref) => {
2541
2561
  var {
2542
- label,
2543
- validator
2544
- } = _a,
2545
- props = __rest(_a, ["label", "validator"]);
2546
-
2562
+ label,
2563
+ validator
2564
+ } = _a,
2565
+ props = __rest(_a, ["label", "validator"]);
2547
2566
  const {
2548
2567
  id
2549
2568
  } = useInput(props);
2569
+ const inputClassNames = classNames(validator);
2550
2570
  return jsxs("label", Object.assign({
2551
2571
  htmlFor: id,
2552
2572
  className: "form-control"
@@ -2555,7 +2575,7 @@ const RadioButton = /*#__PURE__*/React.forwardRef((_a, ref) => {
2555
2575
  id: id,
2556
2576
  type: "radio"
2557
2577
  }, props, {
2558
- className: validator,
2578
+ className: inputClassNames,
2559
2579
  ref: ref
2560
2580
  })), jsx("span", {
2561
2581
  children: label
@@ -2580,14 +2600,13 @@ test[TO_STRING_TAG$1] = 'z';
2580
2600
 
2581
2601
  var toStringTagSupport = String(test) === '[object z]';
2582
2602
 
2583
- var global$3 = global$r;
2584
2603
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2585
- var isCallable$1 = isCallable$f;
2604
+ var isCallable$1 = isCallable$g;
2586
2605
  var classofRaw = classofRaw$1;
2587
2606
  var wellKnownSymbol = wellKnownSymbol$8;
2588
2607
 
2589
2608
  var TO_STRING_TAG = wellKnownSymbol('toStringTag');
2590
- var Object$1 = global$3.Object;
2609
+ var $Object = Object;
2591
2610
 
2592
2611
  // ES3 wrong here
2593
2612
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
@@ -2604,32 +2623,40 @@ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
2604
2623
  var O, tag, result;
2605
2624
  return it === undefined ? 'Undefined' : it === null ? 'Null'
2606
2625
  // @@toStringTag case
2607
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
2626
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
2608
2627
  // builtinTag case
2609
2628
  : CORRECT_ARGUMENTS ? classofRaw(O)
2610
2629
  // ES3 arguments fallback
2611
2630
  : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
2612
2631
  };
2613
2632
 
2614
- var global$2 = global$r;
2615
2633
  var classof = classof$1;
2616
2634
 
2617
- var String$1 = global$2.String;
2635
+ var $String = String;
2618
2636
 
2619
2637
  var toString$1 = function (argument) {
2620
2638
  if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2621
- return String$1(argument);
2639
+ return $String(argument);
2640
+ };
2641
+
2642
+ var makeBuiltIn = makeBuiltIn$3.exports;
2643
+ var defineProperty = objectDefineProperty;
2644
+
2645
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
2646
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2647
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2648
+ return defineProperty.f(target, name, descriptor);
2622
2649
  };
2623
2650
 
2624
2651
  var $ = _export;
2625
2652
  var DESCRIPTORS = descriptors;
2626
- var global$1 = global$r;
2653
+ var global$1 = global$c;
2627
2654
  var uncurryThis = functionUncurryThis;
2628
2655
  var hasOwn = hasOwnProperty_1;
2629
- var isCallable = isCallable$f;
2656
+ var isCallable = isCallable$g;
2630
2657
  var isPrototypeOf = objectIsPrototypeOf;
2631
2658
  var toString = toString$1;
2632
- var defineProperty = objectDefineProperty.f;
2659
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
2633
2660
  var copyConstructorProperties = copyConstructorProperties$2;
2634
2661
 
2635
2662
  var NativeSymbol = global$1.Symbol;
@@ -2656,24 +2683,24 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
2656
2683
  SymbolPrototype.constructor = SymbolWrapper;
2657
2684
 
2658
2685
  var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
2659
- var symbolToString = uncurryThis(SymbolPrototype.toString);
2660
- var symbolValueOf = uncurryThis(SymbolPrototype.valueOf);
2686
+ var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf);
2687
+ var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString);
2661
2688
  var regexp = /^Symbol\((.*)\)[^)]+$/;
2662
2689
  var replace = uncurryThis(''.replace);
2663
2690
  var stringSlice = uncurryThis(''.slice);
2664
2691
 
2665
- defineProperty(SymbolPrototype, 'description', {
2692
+ defineBuiltInAccessor(SymbolPrototype, 'description', {
2666
2693
  configurable: true,
2667
2694
  get: function description() {
2668
- var symbol = symbolValueOf(this);
2669
- var string = symbolToString(symbol);
2695
+ var symbol = thisSymbolValue(this);
2670
2696
  if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
2697
+ var string = symbolDescriptiveString(symbol);
2671
2698
  var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
2672
2699
  return desc === '' ? undefined : desc;
2673
2700
  }
2674
2701
  });
2675
2702
 
2676
- $({ global: true, forced: true }, {
2703
+ $({ global: true, constructor: true, forced: true }, {
2677
2704
  Symbol: SymbolWrapper
2678
2705
  });
2679
2706
  }
@@ -2691,20 +2718,18 @@ const RadioGroup = ({
2691
2718
  onChangeRadio,
2692
2719
  onChange,
2693
2720
  name,
2721
+ horizontal,
2694
2722
  children
2695
2723
  }) => {
2696
2724
  if (title) console.warn('"title" prop is deprecated. Please use "label" instead.');
2697
2725
  if (description) console.warn('"description" prop is deprecated. Please use "labelInformation" instead.');
2698
2726
  const [selected, setSelected] = useState(valueSelected !== null && valueSelected !== void 0 ? valueSelected : defaultSelected);
2699
2727
  const [prevValueSelected, setPrevValueSelected] = useState(valueSelected);
2700
-
2701
2728
  if (valueSelected !== prevValueSelected) {
2702
2729
  setSelected(valueSelected);
2703
2730
  setPrevValueSelected(valueSelected);
2704
2731
  }
2705
-
2706
- const validatorClassName = validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
2707
-
2732
+ validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
2708
2733
  const handleOnChange = event => {
2709
2734
  if (event.target.value !== selected) {
2710
2735
  setSelected(event.target.value);
@@ -2712,25 +2737,21 @@ const RadioGroup = ({
2712
2737
  onChange && onChange(event);
2713
2738
  }
2714
2739
  };
2715
-
2716
2740
  const radioBtnRef = useRef(null);
2717
2741
  React.useEffect(() => {
2718
2742
  var _a;
2719
-
2720
2743
  if (radioBtnRef && radioBtnRef.current) {
2721
2744
  const form = (_a = radioBtnRef === null || radioBtnRef === void 0 ? void 0 : radioBtnRef.current) === null || _a === void 0 ? void 0 : _a.form;
2722
-
2723
2745
  const resetListner = () => {
2724
2746
  setSelected(undefined);
2725
2747
  };
2726
-
2727
2748
  form === null || form === void 0 ? void 0 : form.addEventListener('reset', resetListner);
2728
2749
  return () => form === null || form === void 0 ? void 0 : form.removeEventListener('reset', resetListner);
2729
2750
  } else {
2730
2751
  // eslint-disable-next-line @typescript-eslint/no-empty-function
2731
2752
  return () => {};
2732
- } // eslint-disable-next-line react-hooks/exhaustive-deps
2733
-
2753
+ }
2754
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2734
2755
  }, []);
2735
2756
  const labelFromTitle = label || title;
2736
2757
  const labelInformationFromDescription = labelInformation || description;
@@ -2743,27 +2764,33 @@ const RadioGroup = ({
2743
2764
  role: 'radiogroup'
2744
2765
  };
2745
2766
  if (!name) name = randomId();
2767
+ const radioGroupWrapperClassNames = classNames('gds-radio-group-wrapper', {
2768
+ 'gds-radio-group-wrapper--horizontal': horizontal
2769
+ });
2746
2770
  return jsx(FormItem, Object.assign({}, formItemProps, {
2747
- children: React.Children.map(children, radioButton => {
2748
- return /*#__PURE__*/React.isValidElement(radioButton) ? /*#__PURE__*/React.cloneElement(radioButton, {
2749
- validator: validatorClassName,
2750
- onChange: handleOnChange,
2751
- checked: selected === radioButton.props.value,
2752
- name,
2753
- ref: radioBtnRef
2754
- }) : radioButton;
2755
- })
2771
+ children: jsx("div", Object.assign({
2772
+ className: radioGroupWrapperClassNames
2773
+ }, {
2774
+ children: React.Children.map(children, radioButton => {
2775
+ return /*#__PURE__*/React.isValidElement(radioButton) ? /*#__PURE__*/React.cloneElement(radioButton, {
2776
+ validator: validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator),
2777
+ onChange: handleOnChange,
2778
+ checked: selected === radioButton.props.value,
2779
+ name,
2780
+ ref: radioBtnRef
2781
+ }) : radioButton;
2782
+ })
2783
+ }))
2756
2784
  }));
2757
2785
  };
2758
2786
 
2759
2787
  const ListItem = _a => {
2760
2788
  var {
2761
- listType,
2762
- tableRowData,
2763
- children
2764
- } = _a,
2765
- props = __rest(_a, ["listType", "tableRowData", "children"]);
2766
-
2789
+ listType,
2790
+ tableRowData,
2791
+ children
2792
+ } = _a,
2793
+ props = __rest(_a, ["listType", "tableRowData", "children"]);
2767
2794
  if (listType === 'table') {
2768
2795
  return jsx("dl", {
2769
2796
  children: jsxs("div", {
@@ -2783,13 +2810,12 @@ const ListItem = _a => {
2783
2810
 
2784
2811
  const List$1 = _a => {
2785
2812
  var {
2786
- listType,
2787
- tableCaption,
2788
- tableData,
2789
- children
2790
- } = _a,
2791
- props = __rest(_a, ["listType", "tableCaption", "tableData", "children"]);
2792
-
2813
+ listType,
2814
+ tableCaption,
2815
+ tableData,
2816
+ children
2817
+ } = _a,
2818
+ props = __rest(_a, ["listType", "tableCaption", "tableData", "children"]);
2793
2819
  if (listType === 'ordered') {
2794
2820
  return jsx("ol", Object.assign({}, props, {
2795
2821
  children: children === null || children === void 0 ? void 0 : children.map((child, index) => jsx(ListItem, {
@@ -2862,11 +2888,10 @@ var valueList$1 = /*#__PURE__*/Object.freeze({
2862
2888
 
2863
2889
  const Link = _a => {
2864
2890
  var {
2865
- button,
2866
- children
2867
- } = _a,
2868
- props = __rest(_a, ["button", "children"]);
2869
-
2891
+ button,
2892
+ children
2893
+ } = _a,
2894
+ props = __rest(_a, ["button", "children"]);
2870
2895
  const [anchorProps, setAnchorProps] = useState({});
2871
2896
  useEffect(() => {
2872
2897
  const className = button ? typeof button === 'string' ? `button ${button}` : 'button' : undefined;
@@ -2874,13 +2899,15 @@ const Link = _a => {
2874
2899
  role: button ? 'button' : undefined,
2875
2900
  className: className
2876
2901
  }, props);
2877
- setAnchorProps(newProps); // eslint-disable-next-line react-hooks/exhaustive-deps
2902
+ setAnchorProps(newProps);
2903
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2878
2904
  }, [button]);
2879
2905
  return jsx("a", Object.assign({}, anchorProps, {
2880
2906
  children: children
2881
2907
  }));
2882
2908
  };
2883
2909
 
2910
+ //TODO: Add variants
2884
2911
  const Navbar = ({
2885
2912
  children,
2886
2913
  variant,
@@ -2895,7 +2922,8 @@ const Navbar = ({
2895
2922
  if (variant) classNames.push(variant);
2896
2923
  setProps(Object.assign(Object.assign({}, props), {
2897
2924
  className: classNames.join(' ')
2898
- })); // eslint-disable-next-line react-hooks/exhaustive-deps
2925
+ }));
2926
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2899
2927
  }, [variant]);
2900
2928
  return jsxs("nav", Object.assign({
2901
2929
  role: "navigation"
@@ -2940,22 +2968,20 @@ const Navbar = ({
2940
2968
 
2941
2969
  function Badge(_a) {
2942
2970
  var {
2943
- children,
2944
- badgeType,
2945
- isCloseable,
2946
- closeText,
2947
- customColor,
2948
- customBackgroundColor
2949
- } = _a,
2950
- props = __rest(_a, ["children", "badgeType", "isCloseable", "closeText", "customColor", "customBackgroundColor"]);
2951
-
2971
+ children,
2972
+ badgeType,
2973
+ isCloseable,
2974
+ closeText,
2975
+ customColor,
2976
+ customBackgroundColor
2977
+ } = _a,
2978
+ props = __rest(_a, ["children", "badgeType", "isCloseable", "closeText", "customColor", "customBackgroundColor"]);
2952
2979
  const [isClosed, setIsClosed] = React.useState(false);
2953
2980
  const [type, setType] = React.useState('');
2954
2981
  React.useEffect(() => {
2955
2982
  if (badgeType) {
2956
2983
  setType(badgeType);
2957
2984
  }
2958
-
2959
2985
  if (!!customColor || !!customBackgroundColor) {
2960
2986
  setType('');
2961
2987
  }
@@ -2979,8 +3005,8 @@ function Badge(_a) {
2979
3005
  })) : null;
2980
3006
  }
2981
3007
 
3008
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2982
3009
  const noop = () => {};
2983
-
2984
3010
  const useStepper = ({
2985
3011
  min,
2986
3012
  max,
@@ -3004,20 +3030,20 @@ const useStepper = ({
3004
3030
  min,
3005
3031
  max,
3006
3032
  step: _step
3007
- }); // eslint-disable-next-line react-hooks/exhaustive-deps
3008
-
3033
+ });
3034
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3009
3035
  useEffect(() => {
3010
3036
  if (max !== data.max) stepper.setMax(max);
3011
- }, [stepper, max]); // eslint-disable-next-line react-hooks/exhaustive-deps
3012
-
3037
+ }, [stepper, max]);
3038
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3013
3039
  useEffect(() => {
3014
3040
  if (min !== data.min) stepper.setMin(min);
3015
- }, [stepper, min]); // eslint-disable-next-line react-hooks/exhaustive-deps
3016
-
3041
+ }, [stepper, min]);
3042
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3017
3043
  useEffect(() => {
3018
3044
  if (_step !== data.step) stepper.setStep(_step || 1);
3019
- }, [stepper, _step]); // eslint-disable-next-line react-hooks/exhaustive-deps
3020
-
3045
+ }, [stepper, _step]);
3046
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3021
3047
  useEffect(() => {
3022
3048
  if (_value !== data.value) stepper.setValue(_value || 0, false);
3023
3049
  }, [stepper, _value]);
@@ -3029,26 +3055,25 @@ const useStepper = ({
3029
3055
  max,
3030
3056
  step: _step,
3031
3057
  onChange
3032
- }, setData)); // eslint-disable-next-line react-hooks/exhaustive-deps
3058
+ }, setData));
3059
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3033
3060
  }, []);
3034
3061
  return [stepper, data];
3035
3062
  };
3036
3063
 
3064
+ // TODO: Should be named "Numeric input" instead of stepper?
3037
3065
  function Stepper(_a) {
3038
3066
  var {
3039
- label,
3040
- description,
3041
- statusMessage,
3042
- validator
3043
- } = _a,
3044
- stepperArgs = __rest(_a, ["label", "description", "statusMessage", "validator"]);
3045
-
3067
+ label,
3068
+ description,
3069
+ statusMessage,
3070
+ validator
3071
+ } = _a,
3072
+ stepperArgs = __rest(_a, ["label", "description", "statusMessage", "validator"]);
3046
3073
  const [stepper, data] = useStepper(stepperArgs);
3047
-
3048
3074
  const onChangeEvent = e => {
3049
3075
  stepper.setValue(e.target.valueAsNumber);
3050
3076
  };
3051
-
3052
3077
  const PrimitiveStepper = jsxs("div", Object.assign({
3053
3078
  className: `group group-border group-stepper ${validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator)}`
3054
3079
  }, {
@@ -3071,7 +3096,6 @@ function Stepper(_a) {
3071
3096
  children: "+"
3072
3097
  }))]
3073
3098
  }));
3074
-
3075
3099
  if (!label && !description && !statusMessage && !validator) return PrimitiveStepper;
3076
3100
  return jsxs("div", Object.assign({
3077
3101
  className: "form-group"
@@ -3118,10 +3142,11 @@ const Select = /*#__PURE__*/React.forwardRef(({
3118
3142
  labelInformation: labelInformation,
3119
3143
  expandableInfo: expandableInfo,
3120
3144
  expandableInfoButtonLabel: expandableInfoButtonLabel,
3121
- inputId: selectId
3145
+ inputId: selectId,
3146
+ validator: validator
3122
3147
  }, {
3123
3148
  children: jsxs("div", Object.assign({
3124
- className: `gsd-select ${validatorClassName}`
3149
+ className: `gds-select ${validatorClassName}`
3125
3150
  }, {
3126
3151
  children: [jsx("select", Object.assign({
3127
3152
  id: selectId,
@@ -3141,11 +3166,10 @@ const Select = /*#__PURE__*/React.forwardRef(({
3141
3166
  });
3142
3167
  const Option = _a => {
3143
3168
  var {
3144
- value,
3145
- children
3146
- } = _a,
3147
- rest = __rest(_a, ["value", "children"]);
3148
-
3169
+ value,
3170
+ children
3171
+ } = _a,
3172
+ rest = __rest(_a, ["value", "children"]);
3149
3173
  return jsx("option", Object.assign({
3150
3174
  value: value
3151
3175
  }, rest, {
@@ -3187,11 +3211,10 @@ const useDropdown = ({
3187
3211
  const [togglerProps, setTogglerProps] = useState({});
3188
3212
  const [listboxProps, setListboxProps] = useState({});
3189
3213
  const [listItems, setListItems] = useState([]);
3190
- const [multiSelectProps, setMultiSelectProps] = useState({}); // When dropdown data changes
3191
-
3214
+ const [multiSelectProps, setMultiSelectProps] = useState({});
3215
+ // When dropdown data changes
3192
3216
  useEffect(() => {
3193
3217
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3194
-
3195
3218
  if (!dropdown) return;
3196
3219
  const {
3197
3220
  elements: {
@@ -3209,11 +3232,9 @@ const useDropdown = ({
3209
3232
  className: (_c = listbox === null || listbox === void 0 ? void 0 : listbox.classes) === null || _c === void 0 ? void 0 : _c.join(' ')
3210
3233
  });
3211
3234
  setListboxProps(newListboxProps);
3212
-
3213
3235
  if (!dropdown.isMultiSelect) {
3214
3236
  const newListItems = dropdown.options.map(o => {
3215
3237
  var _a;
3216
-
3217
3238
  return Object.assign(Object.assign({}, o.attributes), {
3218
3239
  className: (_a = o.classes) === null || _a === void 0 ? void 0 : _a.join(' '),
3219
3240
  children: o[dropdown.display],
@@ -3251,10 +3272,10 @@ const useDropdown = ({
3251
3272
  checkboxes
3252
3273
  };
3253
3274
  setMultiSelectProps(newMultiselect);
3254
- } // eslint-disable-next-line react-hooks/exhaustive-deps
3255
-
3256
- }, [dropdown]); // When dropdown properties change
3257
-
3275
+ }
3276
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3277
+ }, [dropdown]);
3278
+ // When dropdown properties change
3258
3279
  useEffect(() => {
3259
3280
  if (!dropdown) return;
3260
3281
  handler === null || handler === void 0 ? void 0 : handler.update({
@@ -3270,19 +3291,22 @@ const useDropdown = ({
3270
3291
  useValue,
3271
3292
  display,
3272
3293
  validator
3273
- }); // eslint-disable-next-line react-hooks/exhaustive-deps
3294
+ });
3295
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3274
3296
  }, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]);
3275
3297
  useEffect(() => {
3276
3298
  if (!dropdown) return;
3277
3299
  handler === null || handler === void 0 ? void 0 : handler.selectByValue(value);
3278
- console.log('new value'); // eslint-disable-next-line react-hooks/exhaustive-deps
3279
- }, [value]); // When validator changes
3280
-
3300
+ console.log('new value');
3301
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3302
+ }, [value]);
3303
+ // When validator changes
3281
3304
  useEffect(() => {
3282
3305
  if (!dropdown) return;
3283
- if (validator) handler === null || handler === void 0 ? void 0 : handler.validate(validator); // eslint-disable-next-line react-hooks/exhaustive-deps
3284
- }, [validator]); // Create dropdown handler
3285
-
3306
+ if (validator) handler === null || handler === void 0 ? void 0 : handler.validate(validator);
3307
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3308
+ }, [validator]);
3309
+ // Create dropdown handler
3286
3310
  useEffect(() => {
3287
3311
  if (!handler && togglerRef.current && listboxRef.current) {
3288
3312
  setHandler(createDropdown({
@@ -3300,8 +3324,8 @@ const useDropdown = ({
3300
3324
  validator
3301
3325
  }, togglerRef.current, listboxRef.current, listboxRef.current, dd => setDropdown(dd), value => onChange === null || onChange === void 0 ? void 0 : onChange(value)));
3302
3326
  }
3303
-
3304
- return () => handler === null || handler === void 0 ? void 0 : handler.destroy(); // eslint-disable-next-line react-hooks/exhaustive-deps
3327
+ return () => handler === null || handler === void 0 ? void 0 : handler.destroy();
3328
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3305
3329
  }, [togglerRef, listboxRef]);
3306
3330
  return {
3307
3331
  dropdown: handler,
@@ -3330,7 +3354,6 @@ const Dropdown = ({
3330
3354
  value
3331
3355
  }) => {
3332
3356
  var _a;
3333
-
3334
3357
  const togglerRef = useRef(null);
3335
3358
  const listboxRef = useRef(null);
3336
3359
  const {
@@ -3356,10 +3379,8 @@ const Dropdown = ({
3356
3379
  onChange,
3357
3380
  validator
3358
3381
  });
3359
-
3360
3382
  const getListBoxProps = props => {
3361
3383
  var _a, _b, _c;
3362
-
3363
3384
  if (Object.keys(props).length === 0) return {
3364
3385
  role: 'listbox',
3365
3386
  tabIndex: -1,
@@ -3367,7 +3388,6 @@ const Dropdown = ({
3367
3388
  };
3368
3389
  return props;
3369
3390
  };
3370
-
3371
3391
  return jsxs("div", Object.assign({
3372
3392
  className: "form-group"
3373
3393
  }, {
@@ -3464,17 +3484,14 @@ const Datepicker = (options = {}) => {
3464
3484
  } = useDatepicker(datepickerRef, datepickerDialogRef, dateInputRef, datepickerTriggerRef, options);
3465
3485
  useEffect(() => {
3466
3486
  var _a;
3467
-
3468
3487
  const selDateSub = (_a = datepicker.selectedDate$) === null || _a === void 0 ? void 0 : _a.subscribe(newDate => options.onChange && options.onChange(newDate));
3469
3488
  return () => selDateSub === null || selDateSub === void 0 ? void 0 : selDateSub.unsubscribe();
3470
3489
  }, [datepicker, options]);
3471
-
3472
3490
  const classNames = day => Object.entries({
3473
3491
  disabled: !day.currentMonth,
3474
- 'sg-date-today': day.today // 'sg-date-holiday': day.holiday,
3475
-
3492
+ 'sg-date-today': day.today
3493
+ // 'sg-date-holiday': day.holiday,
3476
3494
  }).map(([className, add]) => add ? className : '').join(' ');
3477
-
3478
3495
  return jsxs(Fragment, {
3479
3496
  children: [jsxs("div", Object.assign({
3480
3497
  className: "form-group"
@@ -3533,11 +3550,13 @@ const Datepicker = (options = {}) => {
3533
3550
  }))
3534
3551
  })), jsx(Dropdown, {
3535
3552
  options: months({}),
3553
+ display: "key",
3536
3554
  texts: {
3537
3555
  placeholder: data.monthName
3538
3556
  }
3539
3557
  }), jsx(Dropdown, {
3540
3558
  options: years({}),
3559
+ display: "key",
3541
3560
  texts: {
3542
3561
  placeholder: data.year + ''
3543
3562
  }
@@ -3593,4 +3612,4 @@ const Datepicker = (options = {}) => {
3593
3612
  });
3594
3613
  };
3595
3614
 
3596
- export { AlertRibbon as Alert, AlertRibbon, Badge, Button, ButtonGroup, Card, Checkbox, Datepicker, Dropdown, EmailInput, Flexbox, Form, FormItems, Group, Link, List$1 as List, Modal, Navbar, NumberInput, Option, OptionGroup, RadioButton, RadioGroup, RenderInput, Select, Stepper, Text, TextInput, valueList$1 as ValueList };
3615
+ export { AlertRibbon as Alert, AlertRibbon, Badge, Button, ButtonGroup, Card, Checkbox, Datepicker, Dropdown, EmailInput, Flexbox, Form, FormItem, FormItems, Group, Link, List$1 as List, Modal, Navbar, NumberInput, Option, OptionGroup, RadioButton, RadioGroup, RenderInput, Select, Stepper, Text, TextInput, valueList$1 as ValueList };