@majoo-ui/react 1.52.1 → 1.52.2-rc.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/README.md +7 -7
- package/index.esm.css +1298 -1311
- package/index.esm.js +636 -647
- package/index.umd.css +1298 -1311
- package/index.umd.js +636 -647
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -45,7 +45,7 @@ import { Editor } from 'react-draft-wysiwyg';
|
|
|
45
45
|
import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
|
|
46
46
|
import { useSticky } from 'react-table-sticky';
|
|
47
47
|
|
|
48
|
-
var _jsxFileName$10 = "
|
|
48
|
+
var _jsxFileName$10 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
|
|
49
49
|
|
|
50
50
|
function ThemeProvider({
|
|
51
51
|
theme,
|
|
@@ -74,7 +74,7 @@ var check = function (it) {
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
77
|
-
var global$
|
|
77
|
+
var global$s =
|
|
78
78
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
79
79
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
80
80
|
check(typeof window == 'object' && window) ||
|
|
@@ -168,31 +168,28 @@ var classofRaw$1 = function (it) {
|
|
|
168
168
|
return stringSlice$b(toString$j(it), 8, -1);
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
var global$T = global$U;
|
|
172
171
|
var uncurryThis$v = functionUncurryThis;
|
|
173
172
|
var fails$q = fails$t;
|
|
174
173
|
var classof$8 = classofRaw$1;
|
|
175
174
|
|
|
176
|
-
var Object$
|
|
175
|
+
var $Object$4 = Object;
|
|
177
176
|
var split$3 = uncurryThis$v(''.split);
|
|
178
177
|
|
|
179
178
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
180
179
|
var indexedObject = fails$q(function () {
|
|
181
180
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
182
181
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
183
|
-
return
|
|
182
|
+
return !$Object$4('z').propertyIsEnumerable(0);
|
|
184
183
|
}) ? function (it) {
|
|
185
|
-
return classof$8(it) == 'String' ? split$3(it, '') : Object$
|
|
186
|
-
} : Object$
|
|
184
|
+
return classof$8(it) == 'String' ? split$3(it, '') : $Object$4(it);
|
|
185
|
+
} : $Object$4;
|
|
187
186
|
|
|
188
|
-
var
|
|
189
|
-
|
|
190
|
-
var TypeError$j = global$S.TypeError;
|
|
187
|
+
var $TypeError$f = TypeError;
|
|
191
188
|
|
|
192
189
|
// `RequireObjectCoercible` abstract operation
|
|
193
190
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
194
191
|
var requireObjectCoercible$a = function (it) {
|
|
195
|
-
if (it == undefined) throw TypeError$
|
|
192
|
+
if (it == undefined) throw $TypeError$f("Can't call method on " + it);
|
|
196
193
|
return it;
|
|
197
194
|
};
|
|
198
195
|
|
|
@@ -216,7 +213,7 @@ var isObject$d = function (it) {
|
|
|
216
213
|
return typeof it == 'object' ? it !== null : isCallable$o(it);
|
|
217
214
|
};
|
|
218
215
|
|
|
219
|
-
var global$
|
|
216
|
+
var global$r = global$s;
|
|
220
217
|
var isCallable$n = isCallable$p;
|
|
221
218
|
|
|
222
219
|
var aFunction = function (argument) {
|
|
@@ -224,7 +221,7 @@ var aFunction = function (argument) {
|
|
|
224
221
|
};
|
|
225
222
|
|
|
226
223
|
var getBuiltIn$8 = function (namespace, method) {
|
|
227
|
-
return arguments.length < 2 ? aFunction(global$
|
|
224
|
+
return arguments.length < 2 ? aFunction(global$r[namespace]) : global$r[namespace] && global$r[namespace][method];
|
|
228
225
|
};
|
|
229
226
|
|
|
230
227
|
var uncurryThis$u = functionUncurryThis;
|
|
@@ -235,11 +232,11 @@ var getBuiltIn$7 = getBuiltIn$8;
|
|
|
235
232
|
|
|
236
233
|
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
|
237
234
|
|
|
238
|
-
var global$
|
|
235
|
+
var global$q = global$s;
|
|
239
236
|
var userAgent$5 = engineUserAgent;
|
|
240
237
|
|
|
241
|
-
var process$3 = global$
|
|
242
|
-
var Deno$1 = global$
|
|
238
|
+
var process$3 = global$q.process;
|
|
239
|
+
var Deno$1 = global$q.Deno;
|
|
243
240
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
244
241
|
var v8 = versions && versions.v8;
|
|
245
242
|
var match, version;
|
|
@@ -286,43 +283,39 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
286
283
|
&& !Symbol.sham
|
|
287
284
|
&& typeof Symbol.iterator == 'symbol';
|
|
288
285
|
|
|
289
|
-
var global$P = global$U;
|
|
290
286
|
var getBuiltIn$6 = getBuiltIn$8;
|
|
291
287
|
var isCallable$m = isCallable$p;
|
|
292
288
|
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
293
289
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
294
290
|
|
|
295
|
-
var Object$
|
|
291
|
+
var $Object$3 = Object;
|
|
296
292
|
|
|
297
293
|
var isSymbol$6 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
298
294
|
return typeof it == 'symbol';
|
|
299
295
|
} : function (it) {
|
|
300
296
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
301
|
-
return isCallable$m($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$
|
|
297
|
+
return isCallable$m($Symbol) && isPrototypeOf$5($Symbol.prototype, $Object$3(it));
|
|
302
298
|
};
|
|
303
299
|
|
|
304
|
-
var
|
|
305
|
-
|
|
306
|
-
var String$6 = global$O.String;
|
|
300
|
+
var $String$4 = String;
|
|
307
301
|
|
|
308
|
-
var tryToString$
|
|
302
|
+
var tryToString$5 = function (argument) {
|
|
309
303
|
try {
|
|
310
|
-
return String$
|
|
304
|
+
return $String$4(argument);
|
|
311
305
|
} catch (error) {
|
|
312
306
|
return 'Object';
|
|
313
307
|
}
|
|
314
308
|
};
|
|
315
309
|
|
|
316
|
-
var global$N = global$U;
|
|
317
310
|
var isCallable$l = isCallable$p;
|
|
318
|
-
var tryToString$
|
|
311
|
+
var tryToString$4 = tryToString$5;
|
|
319
312
|
|
|
320
|
-
var TypeError$
|
|
313
|
+
var $TypeError$e = TypeError;
|
|
321
314
|
|
|
322
315
|
// `Assert: IsCallable(argument) is true`
|
|
323
316
|
var aCallable$9 = function (argument) {
|
|
324
317
|
if (isCallable$l(argument)) return argument;
|
|
325
|
-
throw TypeError$
|
|
318
|
+
throw $TypeError$e(tryToString$4(argument) + ' is not a function');
|
|
326
319
|
};
|
|
327
320
|
|
|
328
321
|
var aCallable$8 = aCallable$9;
|
|
@@ -334,12 +327,11 @@ var getMethod$6 = function (V, P) {
|
|
|
334
327
|
return func == null ? undefined : aCallable$8(func);
|
|
335
328
|
};
|
|
336
329
|
|
|
337
|
-
var global$M = global$U;
|
|
338
330
|
var call$l = functionCall;
|
|
339
331
|
var isCallable$k = isCallable$p;
|
|
340
332
|
var isObject$c = isObject$d;
|
|
341
333
|
|
|
342
|
-
var TypeError$
|
|
334
|
+
var $TypeError$d = TypeError;
|
|
343
335
|
|
|
344
336
|
// `OrdinaryToPrimitive` abstract operation
|
|
345
337
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -348,31 +340,31 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
348
340
|
if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$c(val = call$l(fn, input))) return val;
|
|
349
341
|
if (isCallable$k(fn = input.valueOf) && !isObject$c(val = call$l(fn, input))) return val;
|
|
350
342
|
if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$c(val = call$l(fn, input))) return val;
|
|
351
|
-
throw TypeError$
|
|
343
|
+
throw $TypeError$d("Can't convert object to primitive value");
|
|
352
344
|
};
|
|
353
345
|
|
|
354
346
|
var shared$4 = {exports: {}};
|
|
355
347
|
|
|
356
348
|
var isPure = false;
|
|
357
349
|
|
|
358
|
-
var global$
|
|
350
|
+
var global$p = global$s;
|
|
359
351
|
|
|
360
352
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
361
|
-
var defineProperty$
|
|
353
|
+
var defineProperty$8 = Object.defineProperty;
|
|
362
354
|
|
|
363
|
-
var
|
|
355
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
364
356
|
try {
|
|
365
|
-
defineProperty$
|
|
357
|
+
defineProperty$8(global$p, key, { value: value, configurable: true, writable: true });
|
|
366
358
|
} catch (error) {
|
|
367
|
-
global$
|
|
359
|
+
global$p[key] = value;
|
|
368
360
|
} return value;
|
|
369
361
|
};
|
|
370
362
|
|
|
371
|
-
var global$
|
|
372
|
-
var
|
|
363
|
+
var global$o = global$s;
|
|
364
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
373
365
|
|
|
374
366
|
var SHARED = '__core-js_shared__';
|
|
375
|
-
var store$3 = global$
|
|
367
|
+
var store$3 = global$o[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
376
368
|
|
|
377
369
|
var sharedStore = store$3;
|
|
378
370
|
|
|
@@ -381,22 +373,21 @@ var store$2 = sharedStore;
|
|
|
381
373
|
(shared$4.exports = function (key, value) {
|
|
382
374
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
383
375
|
})('versions', []).push({
|
|
384
|
-
version: '3.
|
|
376
|
+
version: '3.24.1',
|
|
385
377
|
mode: 'global',
|
|
386
378
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
387
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
379
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
388
380
|
source: 'https://github.com/zloirock/core-js'
|
|
389
381
|
});
|
|
390
382
|
|
|
391
|
-
var global$J = global$U;
|
|
392
383
|
var requireObjectCoercible$8 = requireObjectCoercible$a;
|
|
393
384
|
|
|
394
|
-
var Object$
|
|
385
|
+
var $Object$2 = Object;
|
|
395
386
|
|
|
396
387
|
// `ToObject` abstract operation
|
|
397
388
|
// https://tc39.es/ecma262/#sec-toobject
|
|
398
389
|
var toObject$7 = function (argument) {
|
|
399
|
-
return Object$
|
|
390
|
+
return $Object$2(requireObjectCoercible$8(argument));
|
|
400
391
|
};
|
|
401
392
|
|
|
402
393
|
var uncurryThis$t = functionUncurryThis;
|
|
@@ -421,7 +412,7 @@ var uid$2 = function (key) {
|
|
|
421
412
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$i(++id + postfix, 36);
|
|
422
413
|
};
|
|
423
414
|
|
|
424
|
-
var global$
|
|
415
|
+
var global$n = global$s;
|
|
425
416
|
var shared$3 = shared$4.exports;
|
|
426
417
|
var hasOwn$e = hasOwnProperty_1;
|
|
427
418
|
var uid$1 = uid$2;
|
|
@@ -429,7 +420,7 @@ var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
|
429
420
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
430
421
|
|
|
431
422
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
432
|
-
var Symbol$7 = global$
|
|
423
|
+
var Symbol$7 = global$n.Symbol;
|
|
433
424
|
var symbolFor = Symbol$7 && Symbol$7['for'];
|
|
434
425
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$7 : Symbol$7 && Symbol$7.withoutSetter || uid$1;
|
|
435
426
|
|
|
@@ -446,7 +437,6 @@ var wellKnownSymbol$l = function (name) {
|
|
|
446
437
|
} return WellKnownSymbolsStore[name];
|
|
447
438
|
};
|
|
448
439
|
|
|
449
|
-
var global$H = global$U;
|
|
450
440
|
var call$k = functionCall;
|
|
451
441
|
var isObject$b = isObject$d;
|
|
452
442
|
var isSymbol$5 = isSymbol$6;
|
|
@@ -454,7 +444,7 @@ var getMethod$5 = getMethod$6;
|
|
|
454
444
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
455
445
|
var wellKnownSymbol$k = wellKnownSymbol$l;
|
|
456
446
|
|
|
457
|
-
var TypeError$
|
|
447
|
+
var $TypeError$c = TypeError;
|
|
458
448
|
var TO_PRIMITIVE = wellKnownSymbol$k('toPrimitive');
|
|
459
449
|
|
|
460
450
|
// `ToPrimitive` abstract operation
|
|
@@ -467,7 +457,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
467
457
|
if (pref === undefined) pref = 'default';
|
|
468
458
|
result = call$k(exoticToPrim, input, pref);
|
|
469
459
|
if (!isObject$b(result) || isSymbol$5(result)) return result;
|
|
470
|
-
throw TypeError$
|
|
460
|
+
throw $TypeError$c("Can't convert object to primitive value");
|
|
471
461
|
}
|
|
472
462
|
if (pref === undefined) pref = 'number';
|
|
473
463
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -483,10 +473,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
483
473
|
return isSymbol$4(key) ? key : key + '';
|
|
484
474
|
};
|
|
485
475
|
|
|
486
|
-
var global$
|
|
476
|
+
var global$m = global$s;
|
|
487
477
|
var isObject$a = isObject$d;
|
|
488
478
|
|
|
489
|
-
var document$3 = global$
|
|
479
|
+
var document$3 = global$m.document;
|
|
490
480
|
// typeof document.createElement is 'object' in old IE
|
|
491
481
|
var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
|
|
492
482
|
|
|
@@ -544,26 +534,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$n(function () {
|
|
|
544
534
|
}).prototype != 42;
|
|
545
535
|
});
|
|
546
536
|
|
|
547
|
-
var global$F = global$U;
|
|
548
537
|
var isObject$9 = isObject$d;
|
|
549
538
|
|
|
550
|
-
var String$
|
|
551
|
-
var TypeError$
|
|
539
|
+
var $String$3 = String;
|
|
540
|
+
var $TypeError$b = TypeError;
|
|
552
541
|
|
|
553
542
|
// `Assert: Type(argument) is Object`
|
|
554
543
|
var anObject$i = function (argument) {
|
|
555
544
|
if (isObject$9(argument)) return argument;
|
|
556
|
-
throw TypeError$
|
|
545
|
+
throw $TypeError$b($String$3(argument) + ' is not an object');
|
|
557
546
|
};
|
|
558
547
|
|
|
559
|
-
var global$E = global$U;
|
|
560
548
|
var DESCRIPTORS$b = descriptors;
|
|
561
549
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
562
550
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
563
551
|
var anObject$h = anObject$i;
|
|
564
552
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
565
553
|
|
|
566
|
-
var TypeError$
|
|
554
|
+
var $TypeError$a = TypeError;
|
|
567
555
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
568
556
|
var $defineProperty = Object.defineProperty;
|
|
569
557
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -596,7 +584,7 @@ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
596
584
|
if (IE8_DOM_DEFINE) try {
|
|
597
585
|
return $defineProperty(O, P, Attributes);
|
|
598
586
|
} catch (error) { /* empty */ }
|
|
599
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
587
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$a('Accessors not supported');
|
|
600
588
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
601
589
|
return O;
|
|
602
590
|
};
|
|
@@ -605,7 +593,7 @@ var DESCRIPTORS$a = descriptors;
|
|
|
605
593
|
var definePropertyModule$5 = objectDefineProperty;
|
|
606
594
|
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
607
595
|
|
|
608
|
-
var createNonEnumerableProperty$
|
|
596
|
+
var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value) {
|
|
609
597
|
return definePropertyModule$5.f(object, key, createPropertyDescriptor$3(1, value));
|
|
610
598
|
} : function (object, key, value) {
|
|
611
599
|
object[key] = value;
|
|
@@ -647,11 +635,11 @@ if (!isCallable$j(store$1.inspectSource)) {
|
|
|
647
635
|
|
|
648
636
|
var inspectSource$4 = store$1.inspectSource;
|
|
649
637
|
|
|
650
|
-
var global$
|
|
638
|
+
var global$l = global$s;
|
|
651
639
|
var isCallable$i = isCallable$p;
|
|
652
640
|
var inspectSource$3 = inspectSource$4;
|
|
653
641
|
|
|
654
|
-
var WeakMap$1 = global$
|
|
642
|
+
var WeakMap$1 = global$l.WeakMap;
|
|
655
643
|
|
|
656
644
|
var nativeWeakMap = isCallable$i(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
657
645
|
|
|
@@ -667,18 +655,18 @@ var sharedKey$3 = function (key) {
|
|
|
667
655
|
var hiddenKeys$4 = {};
|
|
668
656
|
|
|
669
657
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
670
|
-
var global$
|
|
658
|
+
var global$k = global$s;
|
|
671
659
|
var uncurryThis$q = functionUncurryThis;
|
|
672
660
|
var isObject$8 = isObject$d;
|
|
673
|
-
var createNonEnumerableProperty$
|
|
661
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
|
|
674
662
|
var hasOwn$b = hasOwnProperty_1;
|
|
675
663
|
var shared$1 = sharedStore;
|
|
676
664
|
var sharedKey$2 = sharedKey$3;
|
|
677
665
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
678
666
|
|
|
679
667
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
680
|
-
var TypeError$
|
|
681
|
-
var WeakMap = global$
|
|
668
|
+
var TypeError$4 = global$k.TypeError;
|
|
669
|
+
var WeakMap = global$k.WeakMap;
|
|
682
670
|
var set$1, get$1, has;
|
|
683
671
|
|
|
684
672
|
var enforce = function (it) {
|
|
@@ -689,7 +677,7 @@ var getterFor = function (TYPE) {
|
|
|
689
677
|
return function (it) {
|
|
690
678
|
var state;
|
|
691
679
|
if (!isObject$8(it) || (state = get$1(it)).type !== TYPE) {
|
|
692
|
-
throw TypeError$
|
|
680
|
+
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
693
681
|
} return state;
|
|
694
682
|
};
|
|
695
683
|
};
|
|
@@ -700,7 +688,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
700
688
|
var wmhas = uncurryThis$q(store.has);
|
|
701
689
|
var wmset = uncurryThis$q(store.set);
|
|
702
690
|
set$1 = function (it, metadata) {
|
|
703
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
691
|
+
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
704
692
|
metadata.facade = it;
|
|
705
693
|
wmset(store, it, metadata);
|
|
706
694
|
return metadata;
|
|
@@ -715,9 +703,9 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
715
703
|
var STATE = sharedKey$2('state');
|
|
716
704
|
hiddenKeys$3[STATE] = true;
|
|
717
705
|
set$1 = function (it, metadata) {
|
|
718
|
-
if (hasOwn$b(it, STATE)) throw new TypeError$
|
|
706
|
+
if (hasOwn$b(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
719
707
|
metadata.facade = it;
|
|
720
|
-
createNonEnumerableProperty$
|
|
708
|
+
createNonEnumerableProperty$5(it, STATE, metadata);
|
|
721
709
|
return metadata;
|
|
722
710
|
};
|
|
723
711
|
get$1 = function (it) {
|
|
@@ -747,10 +735,10 @@ var InternalStateModule$5 = internalState;
|
|
|
747
735
|
var enforceInternalState$1 = InternalStateModule$5.enforce;
|
|
748
736
|
var getInternalState$3 = InternalStateModule$5.get;
|
|
749
737
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
750
|
-
var defineProperty$
|
|
738
|
+
var defineProperty$7 = Object.defineProperty;
|
|
751
739
|
|
|
752
740
|
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$m(function () {
|
|
753
|
-
return defineProperty$
|
|
741
|
+
return defineProperty$7(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
754
742
|
});
|
|
755
743
|
|
|
756
744
|
var TEMPLATE = String(String).split('String');
|
|
@@ -762,16 +750,18 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
762
750
|
if (options && options.getter) name = 'get ' + name;
|
|
763
751
|
if (options && options.setter) name = 'set ' + name;
|
|
764
752
|
if (!hasOwn$a(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
765
|
-
defineProperty$
|
|
753
|
+
if (DESCRIPTORS$8) defineProperty$7(value, 'name', { value: name, configurable: true });
|
|
754
|
+
else value.name = name;
|
|
766
755
|
}
|
|
767
756
|
if (CONFIGURABLE_LENGTH && options && hasOwn$a(options, 'arity') && value.length !== options.arity) {
|
|
768
|
-
defineProperty$
|
|
757
|
+
defineProperty$7(value, 'length', { value: options.arity });
|
|
769
758
|
}
|
|
770
|
-
|
|
771
|
-
if (
|
|
772
|
-
defineProperty$
|
|
773
|
-
|
|
774
|
-
|
|
759
|
+
try {
|
|
760
|
+
if (options && hasOwn$a(options, 'constructor') && options.constructor) {
|
|
761
|
+
if (DESCRIPTORS$8) defineProperty$7(value, 'prototype', { writable: false });
|
|
762
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
763
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
764
|
+
} catch (error) { /* empty */ }
|
|
775
765
|
var state = enforceInternalState$1(value);
|
|
776
766
|
if (!hasOwn$a(state, 'source')) {
|
|
777
767
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
@@ -784,30 +774,32 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
784
774
|
return isCallable$h(this) && getInternalState$3(this).source || inspectSource$2(this);
|
|
785
775
|
}, 'toString');
|
|
786
776
|
|
|
787
|
-
var global$B = global$U;
|
|
788
777
|
var isCallable$g = isCallable$p;
|
|
789
|
-
var
|
|
778
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
790
779
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
791
|
-
var
|
|
780
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
792
781
|
|
|
793
782
|
var defineBuiltIn$b = function (O, key, value, options) {
|
|
794
|
-
|
|
795
|
-
var simple = options
|
|
796
|
-
var
|
|
797
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
783
|
+
if (!options) options = {};
|
|
784
|
+
var simple = options.enumerable;
|
|
785
|
+
var name = options.name !== undefined ? options.name : key;
|
|
798
786
|
if (isCallable$g(value)) makeBuiltIn$1(value, name, options);
|
|
799
|
-
if (
|
|
787
|
+
if (options.global) {
|
|
800
788
|
if (simple) O[key] = value;
|
|
801
|
-
else
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
789
|
+
else defineGlobalProperty$1(key, value);
|
|
790
|
+
} else {
|
|
791
|
+
try {
|
|
792
|
+
if (!options.unsafe) delete O[key];
|
|
793
|
+
else if (O[key]) simple = true;
|
|
794
|
+
} catch (error) { /* empty */ }
|
|
795
|
+
if (simple) O[key] = value;
|
|
796
|
+
else definePropertyModule$4.f(O, key, {
|
|
797
|
+
value: value,
|
|
798
|
+
enumerable: false,
|
|
799
|
+
configurable: !options.nonConfigurable,
|
|
800
|
+
writable: !options.nonWritable
|
|
801
|
+
});
|
|
802
|
+
} return O;
|
|
811
803
|
};
|
|
812
804
|
|
|
813
805
|
var objectGetOwnPropertyNames = {};
|
|
@@ -815,12 +807,22 @@ var objectGetOwnPropertyNames = {};
|
|
|
815
807
|
var ceil = Math.ceil;
|
|
816
808
|
var floor$5 = Math.floor;
|
|
817
809
|
|
|
810
|
+
// `Math.trunc` method
|
|
811
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
812
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
813
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
814
|
+
var n = +x;
|
|
815
|
+
return (n > 0 ? floor$5 : ceil)(n);
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
var trunc = mathTrunc;
|
|
819
|
+
|
|
818
820
|
// `ToIntegerOrInfinity` abstract operation
|
|
819
821
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
820
822
|
var toIntegerOrInfinity$6 = function (argument) {
|
|
821
823
|
var number = +argument;
|
|
822
|
-
// eslint-disable-next-line no-self-compare --
|
|
823
|
-
return number !== number || number === 0 ? 0 : (number
|
|
824
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
825
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
824
826
|
};
|
|
825
827
|
|
|
826
828
|
var toIntegerOrInfinity$5 = toIntegerOrInfinity$6;
|
|
@@ -954,11 +956,11 @@ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
954
956
|
var hasOwn$8 = hasOwnProperty_1;
|
|
955
957
|
var ownKeys = ownKeys$1;
|
|
956
958
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
957
|
-
var definePropertyModule$
|
|
959
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
958
960
|
|
|
959
961
|
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
960
962
|
var keys = ownKeys(source);
|
|
961
|
-
var defineProperty = definePropertyModule$
|
|
963
|
+
var defineProperty = definePropertyModule$3.f;
|
|
962
964
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
963
965
|
for (var i = 0; i < keys.length; i++) {
|
|
964
966
|
var key = keys[i];
|
|
@@ -991,28 +993,28 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
991
993
|
|
|
992
994
|
var isForced_1 = isForced$3;
|
|
993
995
|
|
|
994
|
-
var global$
|
|
996
|
+
var global$j = global$s;
|
|
995
997
|
var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
|
|
996
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$
|
|
998
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
997
999
|
var defineBuiltIn$a = defineBuiltIn$b;
|
|
998
|
-
var
|
|
1000
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
999
1001
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1000
1002
|
var isForced$2 = isForced_1;
|
|
1001
1003
|
|
|
1002
1004
|
/*
|
|
1003
|
-
options.target
|
|
1004
|
-
options.global
|
|
1005
|
-
options.stat
|
|
1006
|
-
options.proto
|
|
1007
|
-
options.real
|
|
1008
|
-
options.forced
|
|
1009
|
-
options.bind
|
|
1010
|
-
options.wrap
|
|
1011
|
-
options.unsafe
|
|
1012
|
-
options.sham
|
|
1013
|
-
options.enumerable
|
|
1014
|
-
options.
|
|
1015
|
-
options.name
|
|
1005
|
+
options.target - name of the target object
|
|
1006
|
+
options.global - target is the global object
|
|
1007
|
+
options.stat - export as static methods of target
|
|
1008
|
+
options.proto - export as prototype methods of target
|
|
1009
|
+
options.real - real prototype method for the `pure` version
|
|
1010
|
+
options.forced - export even if the native feature is available
|
|
1011
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1012
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1013
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1014
|
+
options.sham - add a flag to not completely full polyfills
|
|
1015
|
+
options.enumerable - export as enumerable property
|
|
1016
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
1017
|
+
options.name - the .name of the function if it does not match the key
|
|
1016
1018
|
*/
|
|
1017
1019
|
var _export = function (options, source) {
|
|
1018
1020
|
var TARGET = options.target;
|
|
@@ -1020,15 +1022,15 @@ var _export = function (options, source) {
|
|
|
1020
1022
|
var STATIC = options.stat;
|
|
1021
1023
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1022
1024
|
if (GLOBAL) {
|
|
1023
|
-
target = global$
|
|
1025
|
+
target = global$j;
|
|
1024
1026
|
} else if (STATIC) {
|
|
1025
|
-
target = global$
|
|
1027
|
+
target = global$j[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1026
1028
|
} else {
|
|
1027
|
-
target = (global$
|
|
1029
|
+
target = (global$j[TARGET] || {}).prototype;
|
|
1028
1030
|
}
|
|
1029
1031
|
if (target) for (key in source) {
|
|
1030
1032
|
sourceProperty = source[key];
|
|
1031
|
-
if (options.
|
|
1033
|
+
if (options.dontCallGetSet) {
|
|
1032
1034
|
descriptor = getOwnPropertyDescriptor$3(target, key);
|
|
1033
1035
|
targetProperty = descriptor && descriptor.value;
|
|
1034
1036
|
} else targetProperty = target[key];
|
|
@@ -1069,17 +1071,17 @@ var IndexedObject$1 = indexedObject;
|
|
|
1069
1071
|
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
1070
1072
|
var $assign = Object.assign;
|
|
1071
1073
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
1072
|
-
var defineProperty$
|
|
1074
|
+
var defineProperty$6 = Object.defineProperty;
|
|
1073
1075
|
var concat$1 = uncurryThis$n([].concat);
|
|
1074
1076
|
|
|
1075
1077
|
// `Object.assign` method
|
|
1076
1078
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1077
1079
|
var objectAssign = !$assign || fails$k(function () {
|
|
1078
1080
|
// should have correct order of operations (Edge bug)
|
|
1079
|
-
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$
|
|
1081
|
+
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$6({}, 'a', {
|
|
1080
1082
|
enumerable: true,
|
|
1081
1083
|
get: function () {
|
|
1082
|
-
defineProperty$
|
|
1084
|
+
defineProperty$6(this, 'b', {
|
|
1083
1085
|
value: 3,
|
|
1084
1086
|
enumerable: false
|
|
1085
1087
|
});
|
|
@@ -1399,7 +1401,7 @@ var objectDefineProperties = {};
|
|
|
1399
1401
|
|
|
1400
1402
|
var DESCRIPTORS$6 = descriptors;
|
|
1401
1403
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1402
|
-
var definePropertyModule$
|
|
1404
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1403
1405
|
var anObject$f = anObject$i;
|
|
1404
1406
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1405
1407
|
var objectKeys = objectKeys$2;
|
|
@@ -1414,7 +1416,7 @@ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1414
1416
|
var length = keys.length;
|
|
1415
1417
|
var index = 0;
|
|
1416
1418
|
var key;
|
|
1417
|
-
while (length > index) definePropertyModule$
|
|
1419
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
|
1418
1420
|
return O;
|
|
1419
1421
|
};
|
|
1420
1422
|
|
|
@@ -1509,7 +1511,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1509
1511
|
|
|
1510
1512
|
var wellKnownSymbol$j = wellKnownSymbol$l;
|
|
1511
1513
|
var create$3 = objectCreate;
|
|
1512
|
-
var
|
|
1514
|
+
var defineProperty$5 = objectDefineProperty.f;
|
|
1513
1515
|
|
|
1514
1516
|
var UNSCOPABLES = wellKnownSymbol$j('unscopables');
|
|
1515
1517
|
var ArrayPrototype$1 = Array.prototype;
|
|
@@ -1517,7 +1519,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1517
1519
|
// Array.prototype[@@unscopables]
|
|
1518
1520
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1519
1521
|
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
1520
|
-
|
|
1522
|
+
defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
|
|
1521
1523
|
configurable: true,
|
|
1522
1524
|
value: create$3(null)
|
|
1523
1525
|
});
|
|
@@ -1539,7 +1541,6 @@ var correctPrototypeGetter = !fails$j(function () {
|
|
|
1539
1541
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1540
1542
|
});
|
|
1541
1543
|
|
|
1542
|
-
var global$z = global$U;
|
|
1543
1544
|
var hasOwn$7 = hasOwnProperty_1;
|
|
1544
1545
|
var isCallable$e = isCallable$p;
|
|
1545
1546
|
var toObject$4 = toObject$7;
|
|
@@ -1547,18 +1548,19 @@ var sharedKey = sharedKey$3;
|
|
|
1547
1548
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1548
1549
|
|
|
1549
1550
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1550
|
-
var Object$
|
|
1551
|
-
var ObjectPrototype = Object$
|
|
1551
|
+
var $Object$1 = Object;
|
|
1552
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
1552
1553
|
|
|
1553
1554
|
// `Object.getPrototypeOf` method
|
|
1554
1555
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1555
|
-
|
|
1556
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
1557
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1556
1558
|
var object = toObject$4(O);
|
|
1557
1559
|
if (hasOwn$7(object, IE_PROTO)) return object[IE_PROTO];
|
|
1558
1560
|
var constructor = object.constructor;
|
|
1559
1561
|
if (isCallable$e(constructor) && object instanceof constructor) {
|
|
1560
1562
|
return constructor.prototype;
|
|
1561
|
-
} return object instanceof Object$
|
|
1563
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1562
1564
|
};
|
|
1563
1565
|
|
|
1564
1566
|
var fails$i = fails$t;
|
|
@@ -1635,15 +1637,14 @@ var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1635
1637
|
return IteratorConstructor;
|
|
1636
1638
|
};
|
|
1637
1639
|
|
|
1638
|
-
var global$y = global$U;
|
|
1639
1640
|
var isCallable$c = isCallable$p;
|
|
1640
1641
|
|
|
1641
|
-
var String$
|
|
1642
|
-
var TypeError$
|
|
1642
|
+
var $String$2 = String;
|
|
1643
|
+
var $TypeError$9 = TypeError;
|
|
1643
1644
|
|
|
1644
1645
|
var aPossiblePrototype$1 = function (argument) {
|
|
1645
1646
|
if (typeof argument == 'object' || isCallable$c(argument)) return argument;
|
|
1646
|
-
throw TypeError$
|
|
1647
|
+
throw $TypeError$9("Can't set " + $String$2(argument) + ' as a prototype');
|
|
1647
1648
|
};
|
|
1648
1649
|
|
|
1649
1650
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1683,7 +1684,7 @@ var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
|
1683
1684
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1684
1685
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1685
1686
|
var setToStringTag$3 = setToStringTag$5;
|
|
1686
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$
|
|
1687
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
|
|
1687
1688
|
var defineBuiltIn$8 = defineBuiltIn$b;
|
|
1688
1689
|
var wellKnownSymbol$g = wellKnownSymbol$l;
|
|
1689
1690
|
var Iterators$3 = iterators;
|
|
@@ -1876,11 +1877,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1876
1877
|
|
|
1877
1878
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1878
1879
|
|
|
1879
|
-
var global$
|
|
1880
|
+
var global$i = global$s;
|
|
1880
1881
|
var DOMIterables = domIterables;
|
|
1881
1882
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1882
1883
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1883
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$
|
|
1884
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
|
|
1884
1885
|
var wellKnownSymbol$f = wellKnownSymbol$l;
|
|
1885
1886
|
|
|
1886
1887
|
var ITERATOR$7 = wellKnownSymbol$f('iterator');
|
|
@@ -1910,7 +1911,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1910
1911
|
};
|
|
1911
1912
|
|
|
1912
1913
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1913
|
-
handlePrototype(global$
|
|
1914
|
+
handlePrototype(global$i[COLLECTION_NAME] && global$i[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1914
1915
|
}
|
|
1915
1916
|
|
|
1916
1917
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1924,14 +1925,13 @@ test$1[TO_STRING_TAG$1] = 'z';
|
|
|
1924
1925
|
|
|
1925
1926
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1926
1927
|
|
|
1927
|
-
var global$w = global$U;
|
|
1928
1928
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1929
1929
|
var isCallable$a = isCallable$p;
|
|
1930
1930
|
var classofRaw = classofRaw$1;
|
|
1931
1931
|
var wellKnownSymbol$d = wellKnownSymbol$l;
|
|
1932
1932
|
|
|
1933
1933
|
var TO_STRING_TAG = wellKnownSymbol$d('toStringTag');
|
|
1934
|
-
var Object
|
|
1934
|
+
var $Object = Object;
|
|
1935
1935
|
|
|
1936
1936
|
// ES3 wrong here
|
|
1937
1937
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1948,26 +1948,25 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1948
1948
|
var O, tag, result;
|
|
1949
1949
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1950
1950
|
// @@toStringTag case
|
|
1951
|
-
: typeof (tag = tryGet(O = Object
|
|
1951
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1952
1952
|
// builtinTag case
|
|
1953
1953
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1954
1954
|
// ES3 arguments fallback
|
|
1955
1955
|
: (result = classofRaw(O)) == 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
|
|
1956
1956
|
};
|
|
1957
1957
|
|
|
1958
|
-
var global$v = global$U;
|
|
1959
1958
|
var classof$6 = classof$7;
|
|
1960
1959
|
|
|
1961
|
-
var String$
|
|
1960
|
+
var $String$1 = String;
|
|
1962
1961
|
|
|
1963
1962
|
var toString$h = function (argument) {
|
|
1964
1963
|
if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1965
|
-
return String$
|
|
1964
|
+
return $String$1(argument);
|
|
1966
1965
|
};
|
|
1967
1966
|
|
|
1968
1967
|
var $$k = _export;
|
|
1969
1968
|
var DESCRIPTORS$4 = descriptors;
|
|
1970
|
-
var global$
|
|
1969
|
+
var global$h = global$s;
|
|
1971
1970
|
var uncurryThis$l = functionUncurryThis;
|
|
1972
1971
|
var hasOwn$5 = hasOwnProperty_1;
|
|
1973
1972
|
var isCallable$9 = isCallable$p;
|
|
@@ -1976,7 +1975,7 @@ var toString$g = toString$h;
|
|
|
1976
1975
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1977
1976
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
1978
1977
|
|
|
1979
|
-
var NativeSymbol = global$
|
|
1978
|
+
var NativeSymbol = global$h.Symbol;
|
|
1980
1979
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
1981
1980
|
|
|
1982
1981
|
if (DESCRIPTORS$4 && isCallable$9(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
@@ -2056,14 +2055,13 @@ var isRegexp = function (it) {
|
|
|
2056
2055
|
return isObject$7(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$5(it) == 'RegExp');
|
|
2057
2056
|
};
|
|
2058
2057
|
|
|
2059
|
-
var global$t = global$U;
|
|
2060
2058
|
var isRegExp$2 = isRegexp;
|
|
2061
2059
|
|
|
2062
|
-
var TypeError$
|
|
2060
|
+
var $TypeError$8 = TypeError;
|
|
2063
2061
|
|
|
2064
2062
|
var notARegexp = function (it) {
|
|
2065
2063
|
if (isRegExp$2(it)) {
|
|
2066
|
-
throw TypeError$
|
|
2064
|
+
throw $TypeError$8("The method doesn't accept regular expressions");
|
|
2067
2065
|
} return it;
|
|
2068
2066
|
};
|
|
2069
2067
|
|
|
@@ -2237,7 +2235,7 @@ Flex$1.displayName = 'Flex';
|
|
|
2237
2235
|
|
|
2238
2236
|
const _excluded$A = ["children"],
|
|
2239
2237
|
_excluded2$2 = ["children"];
|
|
2240
|
-
var _jsxFileName$$ = "
|
|
2238
|
+
var _jsxFileName$$ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/grid/Grid.js";
|
|
2241
2239
|
const GridComponent = styled('div', {
|
|
2242
2240
|
display: 'grid',
|
|
2243
2241
|
variants: {
|
|
@@ -2496,7 +2494,7 @@ GridItem.propTypes = {
|
|
|
2496
2494
|
GridItem.displayName = 'Grid Item';
|
|
2497
2495
|
|
|
2498
2496
|
const _excluded$z = ["children", "isCollapse", "css", "contentHeader"];
|
|
2499
|
-
var _jsxFileName$_ = "
|
|
2497
|
+
var _jsxFileName$_ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
2500
2498
|
const StyledDiv$3 = styled(Flex$1, {
|
|
2501
2499
|
justifyContent: 'center',
|
|
2502
2500
|
marginLeft: 'auto',
|
|
@@ -2506,7 +2504,7 @@ const StyledDiv$3 = styled(Flex$1, {
|
|
|
2506
2504
|
backgroundColor: '$white',
|
|
2507
2505
|
width: '100%'
|
|
2508
2506
|
},
|
|
2509
|
-
'@
|
|
2507
|
+
'@lg': {
|
|
2510
2508
|
padding: '0',
|
|
2511
2509
|
backgroundColor: '$bgGray'
|
|
2512
2510
|
},
|
|
@@ -2849,7 +2847,7 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
2849
2847
|
});
|
|
2850
2848
|
|
|
2851
2849
|
const _excluded$y = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
2852
|
-
var _jsxFileName$Z = "
|
|
2850
|
+
var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
|
|
2853
2851
|
const TOAST_WIDTH = 576;
|
|
2854
2852
|
const ANIMATION_DURATION = 400;
|
|
2855
2853
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -3196,7 +3194,7 @@ Toast.defaultProps = {
|
|
|
3196
3194
|
|
|
3197
3195
|
const ToastContext = /*#__PURE__*/React.createContext({});
|
|
3198
3196
|
|
|
3199
|
-
var _jsxFileName$Y = "
|
|
3197
|
+
var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
|
|
3200
3198
|
const ToastBox = styled(Flex$1, {
|
|
3201
3199
|
position: 'fixed',
|
|
3202
3200
|
variants: {
|
|
@@ -3272,7 +3270,7 @@ const ToastContainer = ({
|
|
|
3272
3270
|
};
|
|
3273
3271
|
|
|
3274
3272
|
const _excluded$x = ["id"];
|
|
3275
|
-
var _jsxFileName$X = "
|
|
3273
|
+
var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
|
|
3276
3274
|
let toastCount = 0;
|
|
3277
3275
|
|
|
3278
3276
|
const ToastProvider = ({
|
|
@@ -3357,7 +3355,7 @@ const ToastProvider = ({
|
|
|
3357
3355
|
}));
|
|
3358
3356
|
};
|
|
3359
3357
|
|
|
3360
|
-
var _jsxFileName$W = "
|
|
3358
|
+
var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
|
|
3361
3359
|
|
|
3362
3360
|
function MajooProvider({
|
|
3363
3361
|
children,
|
|
@@ -3392,7 +3390,7 @@ MajooProvider.propTypes = {
|
|
|
3392
3390
|
};
|
|
3393
3391
|
|
|
3394
3392
|
const _excluded$w = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock"];
|
|
3395
|
-
var _jsxFileName$V = "
|
|
3393
|
+
var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/banner/Banner.js";
|
|
3396
3394
|
const Context$2 = /*#__PURE__*/React.createContext();
|
|
3397
3395
|
const StyledBanner = styled(Flex$1, {
|
|
3398
3396
|
maxWidth: '100%',
|
|
@@ -3480,13 +3478,13 @@ const BannerTitle = props => /*#__PURE__*/React.createElement(Title$2, _extends(
|
|
|
3480
3478
|
}
|
|
3481
3479
|
}), props.children);
|
|
3482
3480
|
BannerTitle.propTypes = {
|
|
3483
|
-
/**
|
|
3484
|
-
Additional styles of title
|
|
3481
|
+
/**
|
|
3482
|
+
Additional styles of title
|
|
3485
3483
|
*/
|
|
3486
3484
|
css: PropTypes.object,
|
|
3487
3485
|
|
|
3488
|
-
/**
|
|
3489
|
-
Title of the Banner to be displayed
|
|
3486
|
+
/**
|
|
3487
|
+
Title of the Banner to be displayed
|
|
3490
3488
|
*/
|
|
3491
3489
|
children: PropTypes.string
|
|
3492
3490
|
};
|
|
@@ -3502,13 +3500,13 @@ const BannerDescription = props => /*#__PURE__*/React.createElement(Description,
|
|
|
3502
3500
|
}
|
|
3503
3501
|
}), props.children);
|
|
3504
3502
|
BannerDescription.propTypes = {
|
|
3505
|
-
/**
|
|
3506
|
-
Additional styles of description
|
|
3503
|
+
/**
|
|
3504
|
+
Additional styles of description
|
|
3507
3505
|
*/
|
|
3508
3506
|
css: PropTypes.object,
|
|
3509
3507
|
|
|
3510
|
-
/**
|
|
3511
|
-
Description of the Banner to be displayed
|
|
3508
|
+
/**
|
|
3509
|
+
Description of the Banner to be displayed
|
|
3512
3510
|
*/
|
|
3513
3511
|
children: PropTypes.string
|
|
3514
3512
|
};
|
|
@@ -3537,18 +3535,18 @@ const BannerLink = ({
|
|
|
3537
3535
|
}
|
|
3538
3536
|
}, children));
|
|
3539
3537
|
BannerLink.propTypes = {
|
|
3540
|
-
/**
|
|
3541
|
-
The purpose of a clickable link, presented in url
|
|
3538
|
+
/**
|
|
3539
|
+
The purpose of a clickable link, presented in url
|
|
3542
3540
|
*/
|
|
3543
3541
|
link: PropTypes.string,
|
|
3544
3542
|
|
|
3545
|
-
/**
|
|
3546
|
-
Text of BannerLink to be displayed
|
|
3543
|
+
/**
|
|
3544
|
+
Text of BannerLink to be displayed
|
|
3547
3545
|
*/
|
|
3548
3546
|
children: PropTypes.string,
|
|
3549
3547
|
|
|
3550
|
-
/**
|
|
3551
|
-
Additional theme of BannerLink is presented by color variants
|
|
3548
|
+
/**
|
|
3549
|
+
Additional theme of BannerLink is presented by color variants
|
|
3552
3550
|
*/
|
|
3553
3551
|
variant: PropTypes.oneOf(['info', 'warning', 'success', 'failed'])
|
|
3554
3552
|
};
|
|
@@ -3566,7 +3564,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
3566
3564
|
onClick: e => {
|
|
3567
3565
|
e.preventDefault();
|
|
3568
3566
|
e.stopPropagation();
|
|
3569
|
-
value
|
|
3567
|
+
value == null ? void 0 : value.onRemove();
|
|
3570
3568
|
},
|
|
3571
3569
|
__self: undefined,
|
|
3572
3570
|
__source: {
|
|
@@ -3643,7 +3641,7 @@ const SingleTagBanner = props => {
|
|
|
3643
3641
|
onClick: e => {
|
|
3644
3642
|
e.preventDefault();
|
|
3645
3643
|
e.stopPropagation();
|
|
3646
|
-
props
|
|
3644
|
+
props == null ? void 0 : props.onRemove();
|
|
3647
3645
|
},
|
|
3648
3646
|
closeCenter: !props.title && !props.link,
|
|
3649
3647
|
__self: undefined,
|
|
@@ -3739,43 +3737,43 @@ Banner.displayName = 'Banner';
|
|
|
3739
3737
|
BannerTitle.displayName = 'BannerTitle';
|
|
3740
3738
|
BannerDescription.displayName = 'BannerDescription';
|
|
3741
3739
|
Banner.propTypes = {
|
|
3742
|
-
/**
|
|
3743
|
-
Title of banner to be displayed
|
|
3740
|
+
/**
|
|
3741
|
+
Title of banner to be displayed
|
|
3744
3742
|
*/
|
|
3745
3743
|
title: PropTypes.string,
|
|
3746
3744
|
|
|
3747
|
-
/**
|
|
3748
|
-
Description of banner to be displayed
|
|
3745
|
+
/**
|
|
3746
|
+
Description of banner to be displayed
|
|
3749
3747
|
*/
|
|
3750
3748
|
description: PropTypes.string,
|
|
3751
3749
|
|
|
3752
|
-
/**
|
|
3753
|
-
The banner theme is presented in color variants
|
|
3750
|
+
/**
|
|
3751
|
+
The banner theme is presented in color variants
|
|
3754
3752
|
*/
|
|
3755
3753
|
variant: PropTypes.oneOf(['info', 'warning', 'success', 'failed']),
|
|
3756
3754
|
|
|
3757
|
-
/**
|
|
3758
|
-
The purpose of a clickable link, presented in url
|
|
3755
|
+
/**
|
|
3756
|
+
The purpose of a clickable link, presented in url
|
|
3759
3757
|
*/
|
|
3760
3758
|
link: PropTypes.string,
|
|
3761
3759
|
|
|
3762
|
-
/**
|
|
3763
|
-
Text of button link to be displayed
|
|
3760
|
+
/**
|
|
3761
|
+
Text of button link to be displayed
|
|
3764
3762
|
*/
|
|
3765
3763
|
linkText: PropTypes.string,
|
|
3766
3764
|
|
|
3767
|
-
/**
|
|
3768
|
-
Clickable event handler
|
|
3765
|
+
/**
|
|
3766
|
+
Clickable event handler
|
|
3769
3767
|
*/
|
|
3770
3768
|
onClick: PropTypes.func,
|
|
3771
3769
|
|
|
3772
|
-
/**
|
|
3773
|
-
Closable event handler
|
|
3770
|
+
/**
|
|
3771
|
+
Closable event handler
|
|
3774
3772
|
*/
|
|
3775
3773
|
onRemove: PropTypes.func,
|
|
3776
3774
|
|
|
3777
|
-
/**
|
|
3778
|
-
Block type banner to display in full width
|
|
3775
|
+
/**
|
|
3776
|
+
Block type banner to display in full width
|
|
3779
3777
|
*/
|
|
3780
3778
|
bannerBlock: PropTypes.bool
|
|
3781
3779
|
};
|
|
@@ -4039,7 +4037,7 @@ const Button$3 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
4039
4037
|
});
|
|
4040
4038
|
|
|
4041
4039
|
const _excluded$v = ["className", "children", "color", "shadow", "radius", "padding", "title", "width", "textColor", "icon"];
|
|
4042
|
-
var _jsxFileName$U = "
|
|
4040
|
+
var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/card/Card.js";
|
|
4043
4041
|
const CardComponent = styled('div', {
|
|
4044
4042
|
padding: '12px',
|
|
4045
4043
|
height: 'auto',
|
|
@@ -4247,7 +4245,7 @@ Card.defaultProps = {
|
|
|
4247
4245
|
};
|
|
4248
4246
|
|
|
4249
4247
|
const _excluded$u = ["children"];
|
|
4250
|
-
var _jsxFileName$T = "
|
|
4248
|
+
var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
|
|
4251
4249
|
const BreadcrumbStyle = styled('nav', {
|
|
4252
4250
|
wordWrap: 'break-word',
|
|
4253
4251
|
'& li+li:before': {
|
|
@@ -4523,7 +4521,7 @@ Badge.defaultProps = {
|
|
|
4523
4521
|
Badge.displayName = 'Badge';
|
|
4524
4522
|
|
|
4525
4523
|
const _excluded$t = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
|
|
4526
|
-
var _jsxFileName$S = "
|
|
4524
|
+
var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
|
|
4527
4525
|
const StyledAvatar = styled(AvatarPrimitive.Root, {
|
|
4528
4526
|
width: '32px',
|
|
4529
4527
|
height: '32px',
|
|
@@ -4626,7 +4624,7 @@ Avatar.defaultProps = {
|
|
|
4626
4624
|
};
|
|
4627
4625
|
|
|
4628
4626
|
const _excluded$s = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
|
|
4629
|
-
var _jsxFileName$R = "
|
|
4627
|
+
var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
|
|
4630
4628
|
const ContainerFallback = styled(Flex$1, {
|
|
4631
4629
|
boxSizing: 'border-box',
|
|
4632
4630
|
border: '2px dashed #C0C4C4',
|
|
@@ -4723,58 +4721,58 @@ function Image(_ref) {
|
|
|
4723
4721
|
}
|
|
4724
4722
|
}
|
|
4725
4723
|
Image.propTypes = {
|
|
4726
|
-
/**
|
|
4727
|
-
Additional className for img element.
|
|
4724
|
+
/**
|
|
4725
|
+
Additional className for img element.
|
|
4728
4726
|
*/
|
|
4729
4727
|
className: PropTypes.string,
|
|
4730
4728
|
|
|
4731
|
-
/**
|
|
4732
|
-
Which is used to specify the source of an image.
|
|
4729
|
+
/**
|
|
4730
|
+
Which is used to specify the source of an image.
|
|
4733
4731
|
*/
|
|
4734
4732
|
src: PropTypes.string,
|
|
4735
4733
|
|
|
4736
|
-
/**
|
|
4737
|
-
The written copy that appears in place of an image on a webpage if the image fails to load on a user's screen.
|
|
4734
|
+
/**
|
|
4735
|
+
The written copy that appears in place of an image on a webpage if the image fails to load on a user's screen.
|
|
4738
4736
|
*/
|
|
4739
4737
|
alt: PropTypes.string,
|
|
4740
4738
|
|
|
4741
|
-
/**
|
|
4742
|
-
Additional css for img element.
|
|
4739
|
+
/**
|
|
4740
|
+
Additional css for img element.
|
|
4743
4741
|
*/
|
|
4744
4742
|
css: PropTypes.object,
|
|
4745
4743
|
|
|
4746
|
-
/**
|
|
4747
|
-
Additional css for default fallback element.
|
|
4744
|
+
/**
|
|
4745
|
+
Additional css for default fallback element.
|
|
4748
4746
|
*/
|
|
4749
4747
|
cssFallback: PropTypes.object,
|
|
4750
4748
|
|
|
4751
|
-
/**
|
|
4752
|
-
Custom width of img element.
|
|
4749
|
+
/**
|
|
4750
|
+
Custom width of img element.
|
|
4753
4751
|
*/
|
|
4754
4752
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
4755
4753
|
|
|
4756
|
-
/**
|
|
4757
|
-
Custom height of img element.
|
|
4754
|
+
/**
|
|
4755
|
+
Custom height of img element.
|
|
4758
4756
|
*/
|
|
4759
4757
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
4760
4758
|
|
|
4761
|
-
/**
|
|
4762
|
-
Set image to circle.
|
|
4759
|
+
/**
|
|
4760
|
+
Set image to circle.
|
|
4763
4761
|
*/
|
|
4764
4762
|
rounded: PropTypes.bool,
|
|
4765
4763
|
|
|
4766
|
-
/**
|
|
4767
|
-
Used to specify how an <img> should be resized to fit its container.
|
|
4764
|
+
/**
|
|
4765
|
+
Used to specify how an <img> should be resized to fit its container.
|
|
4768
4766
|
*/
|
|
4769
4767
|
objectFit: PropTypes.string,
|
|
4770
4768
|
|
|
4771
|
-
/**
|
|
4772
|
-
Custom fallback if image url doesn't exist.
|
|
4769
|
+
/**
|
|
4770
|
+
Custom fallback if image url doesn't exist.
|
|
4773
4771
|
*/
|
|
4774
4772
|
fallback: PropTypes.string,
|
|
4775
4773
|
|
|
4776
|
-
/**
|
|
4777
|
-
Custom fallback title for default fallback.
|
|
4774
|
+
/**
|
|
4775
|
+
Custom fallback title for default fallback.
|
|
4778
4776
|
*/
|
|
4779
4777
|
fallbackTitle: PropTypes.string
|
|
4780
4778
|
};
|
|
@@ -4784,7 +4782,7 @@ Image.defaultProps = {
|
|
|
4784
4782
|
};
|
|
4785
4783
|
|
|
4786
4784
|
const _excluded$r = ["children", "label", "color", "css", "withClick", "side", "align"];
|
|
4787
|
-
var _jsxFileName$Q = "
|
|
4785
|
+
var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
|
|
4788
4786
|
const {
|
|
4789
4787
|
zIndices: zIndices$1
|
|
4790
4788
|
} = foundations;
|
|
@@ -4985,7 +4983,7 @@ Tooltip$1.defaultProps = {
|
|
|
4985
4983
|
};
|
|
4986
4984
|
|
|
4987
4985
|
const _excluded$q = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
4988
|
-
var _jsxFileName$P = "
|
|
4986
|
+
var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
|
|
4989
4987
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
4990
4988
|
position: 'relative',
|
|
4991
4989
|
overflow: 'hidden',
|
|
@@ -5246,7 +5244,7 @@ const FormGroup = styled('div', {
|
|
|
5246
5244
|
FormGroup.displayName = 'FormGroup';
|
|
5247
5245
|
|
|
5248
5246
|
const _excluded$p = ["children", "htmlFor", "variant", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
5249
|
-
var _jsxFileName$O = "
|
|
5247
|
+
var _jsxFileName$O = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
|
|
5250
5248
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
5251
5249
|
display: 'inline-block',
|
|
5252
5250
|
fontSize: '$label',
|
|
@@ -5361,7 +5359,7 @@ FormLabel.propTypes = {
|
|
|
5361
5359
|
FormLabel.displayName = 'FormLabel';
|
|
5362
5360
|
|
|
5363
5361
|
const _excluded$o = ["children", "error", "errorMessage"];
|
|
5364
|
-
var _jsxFileName$N = "
|
|
5362
|
+
var _jsxFileName$N = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
|
|
5365
5363
|
const StyledHelper = styled(Text$1, {
|
|
5366
5364
|
display: 'inline-block',
|
|
5367
5365
|
color: '$textSecondary',
|
|
@@ -5422,7 +5420,7 @@ FormHelper.propTypes = {
|
|
|
5422
5420
|
};
|
|
5423
5421
|
FormHelper.displayName = 'FormHelper';
|
|
5424
5422
|
|
|
5425
|
-
var _jsxFileName$M = "
|
|
5423
|
+
var _jsxFileName$M = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
|
|
5426
5424
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
5427
5425
|
|
|
5428
5426
|
const CheckboxGroup = ({
|
|
@@ -5485,7 +5483,7 @@ CheckboxGroup.defaultProps = {
|
|
|
5485
5483
|
};
|
|
5486
5484
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
5487
5485
|
|
|
5488
|
-
var _jsxFileName$L = "
|
|
5486
|
+
var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
|
|
5489
5487
|
|
|
5490
5488
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5491
5489
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5533,7 +5531,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
5533
5531
|
}
|
|
5534
5532
|
}));
|
|
5535
5533
|
|
|
5536
|
-
var _jsxFileName$K = "
|
|
5534
|
+
var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
|
|
5537
5535
|
|
|
5538
5536
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5539
5537
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5582,7 +5580,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
5582
5580
|
}));
|
|
5583
5581
|
|
|
5584
5582
|
const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
5585
|
-
var _jsxFileName$J = "
|
|
5583
|
+
var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
|
|
5586
5584
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
5587
5585
|
alignItems: 'center',
|
|
5588
5586
|
display: 'flex',
|
|
@@ -5647,7 +5645,7 @@ const Checkbox = _ref => {
|
|
|
5647
5645
|
const [isChecked, setChecked] = useState(false);
|
|
5648
5646
|
useEffect(() => {
|
|
5649
5647
|
const checkValue = context && context.checkedItems.includes(value) || checked || indeterminate;
|
|
5650
|
-
setChecked(checkValue
|
|
5648
|
+
setChecked(checkValue != null ? checkValue : false);
|
|
5651
5649
|
}, [checked, indeterminate, context]);
|
|
5652
5650
|
return /*#__PURE__*/React__default.createElement(StyledCheckbox, _extends({
|
|
5653
5651
|
id: id,
|
|
@@ -5748,7 +5746,7 @@ InputCheckbox.propTypes = {
|
|
|
5748
5746
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
5749
5747
|
|
|
5750
5748
|
const _excluded$m = ["children", "size"];
|
|
5751
|
-
var _jsxFileName$I = "
|
|
5749
|
+
var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
|
|
5752
5750
|
const InputGroupStyle = styled('div', {
|
|
5753
5751
|
display: 'flex',
|
|
5754
5752
|
width: '100%',
|
|
@@ -5895,13 +5893,13 @@ const InputGroup = _ref => {
|
|
|
5895
5893
|
}));
|
|
5896
5894
|
};
|
|
5897
5895
|
InputGroup.propTypes = {
|
|
5898
|
-
/**
|
|
5899
|
-
Adjust Input Text Size
|
|
5896
|
+
/**
|
|
5897
|
+
Adjust Input Text Size
|
|
5900
5898
|
*/
|
|
5901
5899
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
5902
5900
|
|
|
5903
|
-
/**
|
|
5904
|
-
Children must be InputText, InputAddon, or InputPrefixes
|
|
5901
|
+
/**
|
|
5902
|
+
Children must be InputText, InputAddon, or InputPrefixes
|
|
5905
5903
|
*/
|
|
5906
5904
|
children: PropTypes.node.isRequired,
|
|
5907
5905
|
|
|
@@ -6035,7 +6033,7 @@ InputSuffix.propTypes = {
|
|
|
6035
6033
|
};
|
|
6036
6034
|
|
|
6037
6035
|
const _excluded$l = ["disabled", "readOnly"];
|
|
6038
|
-
var _jsxFileName$H = "
|
|
6036
|
+
var _jsxFileName$H = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
|
|
6039
6037
|
const disabledStyle = {
|
|
6040
6038
|
backgroundColor: '$formDisable',
|
|
6041
6039
|
color: '$textDisable',
|
|
@@ -6197,7 +6195,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6197
6195
|
InputText.displayName = 'InputText';
|
|
6198
6196
|
|
|
6199
6197
|
const _excluded$k = ["disabled", "readOnly"];
|
|
6200
|
-
var _jsxFileName$G = "
|
|
6198
|
+
var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
|
|
6201
6199
|
const StyledTextArea = styled(StyledInput$1, {
|
|
6202
6200
|
variants: {
|
|
6203
6201
|
size: {
|
|
@@ -6242,10 +6240,10 @@ InputTextArea.defaultProps = {
|
|
|
6242
6240
|
|
|
6243
6241
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
6244
6242
|
|
|
6245
|
-
var _jsxFileName$F = "
|
|
6243
|
+
var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
|
|
6246
6244
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
6247
6245
|
function InputRadioGroup(props) {
|
|
6248
|
-
return (props
|
|
6246
|
+
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
6249
6247
|
value: props,
|
|
6250
6248
|
__self: this,
|
|
6251
6249
|
__source: {
|
|
@@ -6260,7 +6258,7 @@ function InputRadioGroup(props) {
|
|
|
6260
6258
|
lineNumber: 14,
|
|
6261
6259
|
columnNumber: 9
|
|
6262
6260
|
}
|
|
6263
|
-
}), React__default.Children.map(props
|
|
6261
|
+
}), React__default.Children.map(props == null ? void 0 : props.children, child => /*#__PURE__*/React__default.cloneElement(child, {
|
|
6264
6262
|
style: Object.assign({}, child.props.style, {
|
|
6265
6263
|
opacity: 1
|
|
6266
6264
|
})
|
|
@@ -6275,7 +6273,7 @@ InputRadioGroup.propTypes = {
|
|
|
6275
6273
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
6276
6274
|
|
|
6277
6275
|
const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps"];
|
|
6278
|
-
var _jsxFileName$E = "
|
|
6276
|
+
var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
|
|
6279
6277
|
const INDICATOR_BASE_STYLES = {
|
|
6280
6278
|
alignItems: 'center',
|
|
6281
6279
|
display: 'flex',
|
|
@@ -6451,7 +6449,7 @@ const InputRadio = _ref => {
|
|
|
6451
6449
|
value,
|
|
6452
6450
|
outlined
|
|
6453
6451
|
}) => {
|
|
6454
|
-
const checked = value
|
|
6452
|
+
const checked = value != null ? value : defaultValue;
|
|
6455
6453
|
return /*#__PURE__*/React__default.createElement(Container$8, {
|
|
6456
6454
|
align: "center",
|
|
6457
6455
|
gap: 4,
|
|
@@ -6526,7 +6524,7 @@ InputRightElement.propTypes = {
|
|
|
6526
6524
|
InputRightElement.name = 'InputRightElement';
|
|
6527
6525
|
|
|
6528
6526
|
const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled"];
|
|
6529
|
-
var _jsxFileName$D = "
|
|
6527
|
+
var _jsxFileName$D = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
|
|
6530
6528
|
const StyledInput = styled(NumberFormat, {
|
|
6531
6529
|
// Reset
|
|
6532
6530
|
appearance: 'none',
|
|
@@ -6733,6 +6731,7 @@ var regexpFlags$1 = function () {
|
|
|
6733
6731
|
if (that.multiline) result += 'm';
|
|
6734
6732
|
if (that.dotAll) result += 's';
|
|
6735
6733
|
if (that.unicode) result += 'u';
|
|
6734
|
+
if (that.unicodeSets) result += 'v';
|
|
6736
6735
|
if (that.sticky) result += 'y';
|
|
6737
6736
|
return result;
|
|
6738
6737
|
};
|
|
@@ -6751,10 +6750,10 @@ var regexpGetFlags = function (R) {
|
|
|
6751
6750
|
};
|
|
6752
6751
|
|
|
6753
6752
|
var fails$g = fails$t;
|
|
6754
|
-
var global$
|
|
6753
|
+
var global$g = global$s;
|
|
6755
6754
|
|
|
6756
6755
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
6757
|
-
var $RegExp$2 = global$
|
|
6756
|
+
var $RegExp$2 = global$g.RegExp;
|
|
6758
6757
|
|
|
6759
6758
|
var UNSUPPORTED_Y$3 = fails$g(function () {
|
|
6760
6759
|
var re = $RegExp$2('a', 'y');
|
|
@@ -6811,10 +6810,10 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
|
6811
6810
|
};
|
|
6812
6811
|
|
|
6813
6812
|
var fails$f = fails$t;
|
|
6814
|
-
var global$
|
|
6813
|
+
var global$f = global$s;
|
|
6815
6814
|
|
|
6816
6815
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
6817
|
-
var $RegExp$1 = global$
|
|
6816
|
+
var $RegExp$1 = global$f.RegExp;
|
|
6818
6817
|
|
|
6819
6818
|
var regexpUnsupportedDotAll = fails$f(function () {
|
|
6820
6819
|
var re = $RegExp$1('.', 's');
|
|
@@ -6822,10 +6821,10 @@ var regexpUnsupportedDotAll = fails$f(function () {
|
|
|
6822
6821
|
});
|
|
6823
6822
|
|
|
6824
6823
|
var fails$e = fails$t;
|
|
6825
|
-
var global$
|
|
6824
|
+
var global$e = global$s;
|
|
6826
6825
|
|
|
6827
6826
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
6828
|
-
var $RegExp = global$
|
|
6827
|
+
var $RegExp = global$e.RegExp;
|
|
6829
6828
|
|
|
6830
6829
|
var regexpUnsupportedNcg = fails$e(function () {
|
|
6831
6830
|
var re = $RegExp('(?<a>b)', 'g');
|
|
@@ -6834,11 +6833,11 @@ var regexpUnsupportedNcg = fails$e(function () {
|
|
|
6834
6833
|
});
|
|
6835
6834
|
|
|
6836
6835
|
var DESCRIPTORS$2 = descriptors;
|
|
6837
|
-
var global$
|
|
6836
|
+
var global$d = global$s;
|
|
6838
6837
|
var uncurryThis$j = functionUncurryThis;
|
|
6839
6838
|
var isForced$1 = isForced_1;
|
|
6840
6839
|
var inheritIfRequired = inheritIfRequired$1;
|
|
6841
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
6840
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
|
|
6842
6841
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
6843
6842
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
6844
6843
|
var isRegExp$1 = isRegexp;
|
|
@@ -6856,15 +6855,15 @@ var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
|
|
|
6856
6855
|
var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
|
|
6857
6856
|
|
|
6858
6857
|
var MATCH = wellKnownSymbol$9('match');
|
|
6859
|
-
var NativeRegExp = global$
|
|
6858
|
+
var NativeRegExp = global$d.RegExp;
|
|
6860
6859
|
var RegExpPrototype$2 = NativeRegExp.prototype;
|
|
6861
|
-
var SyntaxError = global$
|
|
6860
|
+
var SyntaxError = global$d.SyntaxError;
|
|
6862
6861
|
var exec$6 = uncurryThis$j(RegExpPrototype$2.exec);
|
|
6863
6862
|
var charAt$8 = uncurryThis$j(''.charAt);
|
|
6864
6863
|
var replace$6 = uncurryThis$j(''.replace);
|
|
6865
6864
|
var stringIndexOf$1 = uncurryThis$j(''.indexOf);
|
|
6866
6865
|
var stringSlice$9 = uncurryThis$j(''.slice);
|
|
6867
|
-
// TODO: Use only
|
|
6866
|
+
// TODO: Use only proper RegExpIdentifierName
|
|
6868
6867
|
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
6869
6868
|
var re1 = /a/g;
|
|
6870
6869
|
var re2 = /a/g;
|
|
@@ -7018,7 +7017,7 @@ if (isForced$1('RegExp', BASE_FORCED)) {
|
|
|
7018
7017
|
|
|
7019
7018
|
RegExpPrototype$2.constructor = RegExpWrapper;
|
|
7020
7019
|
RegExpWrapper.prototype = RegExpPrototype$2;
|
|
7021
|
-
defineBuiltIn$7(global$
|
|
7020
|
+
defineBuiltIn$7(global$d, 'RegExp', RegExpWrapper, { constructor: true });
|
|
7022
7021
|
}
|
|
7023
7022
|
|
|
7024
7023
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
@@ -7119,7 +7118,7 @@ if (PATCH) {
|
|
|
7119
7118
|
}
|
|
7120
7119
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
7121
7120
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
7122
|
-
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
7121
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
7123
7122
|
call$f(nativeReplace, match[0], reCopy, function () {
|
|
7124
7123
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
7125
7124
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
@@ -7177,7 +7176,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
7177
7176
|
}
|
|
7178
7177
|
|
|
7179
7178
|
const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
7180
|
-
var _jsxFileName$C = "
|
|
7179
|
+
var _jsxFileName$C = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tag/Tag.js";
|
|
7181
7180
|
const TagWrapper$3 = styled('div', {
|
|
7182
7181
|
boxSizing: 'border-box',
|
|
7183
7182
|
listStyle: 'none',
|
|
@@ -7354,7 +7353,7 @@ Tag.defaultProps = {
|
|
|
7354
7353
|
};
|
|
7355
7354
|
|
|
7356
7355
|
const _excluded$g = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
|
|
7357
|
-
var _jsxFileName$B = "
|
|
7356
|
+
var _jsxFileName$B = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTags/InputTags.js";
|
|
7358
7357
|
const Wrapper$2 = styled('div', {
|
|
7359
7358
|
margin: 0,
|
|
7360
7359
|
flexDirection: 'column',
|
|
@@ -7490,18 +7489,18 @@ function TagsInput(_ref) {
|
|
|
7490
7489
|
const addTags = event => {
|
|
7491
7490
|
if (event.key === 'Enter' && event.target.value !== '' && max !== tags.length) {
|
|
7492
7491
|
if (tags.find(tag => tag.toLowerCase() === event.target.value.toLowerCase())) {
|
|
7493
|
-
onEnter
|
|
7492
|
+
onEnter == null ? void 0 : onEnter({
|
|
7494
7493
|
key: 'duplicate',
|
|
7495
7494
|
value: event.target.value
|
|
7496
7495
|
});
|
|
7497
7496
|
return;
|
|
7498
7497
|
}
|
|
7499
7498
|
|
|
7500
|
-
if (pattern && pattern
|
|
7499
|
+
if (pattern && pattern != null && pattern.regex) {
|
|
7501
7500
|
const regex = new RegExp(pattern.regex);
|
|
7502
7501
|
|
|
7503
7502
|
if (!regex.test(event.target.value)) {
|
|
7504
|
-
onEnter
|
|
7503
|
+
onEnter == null ? void 0 : onEnter({
|
|
7505
7504
|
key: 'error',
|
|
7506
7505
|
value: event.target.value
|
|
7507
7506
|
});
|
|
@@ -7511,7 +7510,7 @@ function TagsInput(_ref) {
|
|
|
7511
7510
|
}
|
|
7512
7511
|
|
|
7513
7512
|
setRegexError(false);
|
|
7514
|
-
onEnter
|
|
7513
|
+
onEnter == null ? void 0 : onEnter({
|
|
7515
7514
|
key: 'success',
|
|
7516
7515
|
value: event.target.value
|
|
7517
7516
|
});
|
|
@@ -7524,7 +7523,7 @@ function TagsInput(_ref) {
|
|
|
7524
7523
|
if (disabled || readOnly) {
|
|
7525
7524
|
return tags;
|
|
7526
7525
|
} else if (key === 'removeTag' || key === 'Backspace') {
|
|
7527
|
-
onRemoveItem
|
|
7526
|
+
onRemoveItem == null ? void 0 : onRemoveItem(tags[index]);
|
|
7528
7527
|
setTags([...tags.filter(tag => tags.indexOf(tag) !== index)]);
|
|
7529
7528
|
}
|
|
7530
7529
|
}; // const handleErrorMessage = () => {
|
|
@@ -7572,7 +7571,7 @@ function TagsInput(_ref) {
|
|
|
7572
7571
|
lineNumber: 180,
|
|
7573
7572
|
columnNumber: 9
|
|
7574
7573
|
}
|
|
7575
|
-
})), regexError && pattern && (pattern
|
|
7574
|
+
})), regexError && pattern && (pattern != null && pattern.errorMessage ? /*#__PURE__*/React__default.createElement(FormHelper, {
|
|
7576
7575
|
color: "red",
|
|
7577
7576
|
__self: this,
|
|
7578
7577
|
__source: {
|
|
@@ -7654,7 +7653,7 @@ TagsInput.defaultProps = {
|
|
|
7654
7653
|
};
|
|
7655
7654
|
|
|
7656
7655
|
const _excluded$f = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
|
|
7657
|
-
var _jsxFileName$A = "
|
|
7656
|
+
var _jsxFileName$A = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSwitch/InputSwitch.js";
|
|
7658
7657
|
const StyledThumb$1 = styled(SwitchPrimitive.Thumb, {
|
|
7659
7658
|
display: 'block',
|
|
7660
7659
|
width: '16px',
|
|
@@ -7762,7 +7761,7 @@ InputSwitch.propTypes = {
|
|
|
7762
7761
|
};
|
|
7763
7762
|
InputSwitch.displayName = 'InputSwitch';
|
|
7764
7763
|
|
|
7765
|
-
var _jsxFileName$z = "
|
|
7764
|
+
var _jsxFileName$z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/CloseFilled.js";
|
|
7766
7765
|
|
|
7767
7766
|
const SvgCloseFilled = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7768
7767
|
width: props.size,
|
|
@@ -7823,7 +7822,7 @@ SvgCloseFilled.defaultProps = {
|
|
|
7823
7822
|
size: 24
|
|
7824
7823
|
};
|
|
7825
7824
|
|
|
7826
|
-
var _jsxFileName$y = "
|
|
7825
|
+
var _jsxFileName$y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/SearchOutline.js";
|
|
7827
7826
|
|
|
7828
7827
|
const SvgSearchOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7829
7828
|
width: props.size,
|
|
@@ -7866,7 +7865,7 @@ SvgSearchOutline.defaultProps = {
|
|
|
7866
7865
|
};
|
|
7867
7866
|
|
|
7868
7867
|
const _excluded$e = ["size", "onChange", "css", "disabled"];
|
|
7869
|
-
var _jsxFileName$x = "
|
|
7868
|
+
var _jsxFileName$x = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/InputSearchbox.js";
|
|
7870
7869
|
|
|
7871
7870
|
const InputSearchbox = _ref => {
|
|
7872
7871
|
let {
|
|
@@ -7981,7 +7980,7 @@ var defineBuiltIn$5 = defineBuiltIn$b;
|
|
|
7981
7980
|
var regexpExec$2 = regexpExec$3;
|
|
7982
7981
|
var fails$b = fails$t;
|
|
7983
7982
|
var wellKnownSymbol$8 = wellKnownSymbol$l;
|
|
7984
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
7983
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$6;
|
|
7985
7984
|
|
|
7986
7985
|
var SPECIES$2 = wellKnownSymbol$8('species');
|
|
7987
7986
|
var RegExpPrototype = RegExp.prototype;
|
|
@@ -8056,14 +8055,13 @@ var sameValue$1 = Object.is || function is(x, y) {
|
|
|
8056
8055
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
8057
8056
|
};
|
|
8058
8057
|
|
|
8059
|
-
var global$o = global$U;
|
|
8060
8058
|
var call$e = functionCall;
|
|
8061
8059
|
var anObject$a = anObject$i;
|
|
8062
8060
|
var isCallable$7 = isCallable$p;
|
|
8063
8061
|
var classof$4 = classofRaw$1;
|
|
8064
8062
|
var regexpExec$1 = regexpExec$3;
|
|
8065
8063
|
|
|
8066
|
-
var TypeError$
|
|
8064
|
+
var $TypeError$7 = TypeError;
|
|
8067
8065
|
|
|
8068
8066
|
// `RegExpExec` abstract operation
|
|
8069
8067
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -8075,7 +8073,7 @@ var regexpExecAbstract = function (R, S) {
|
|
|
8075
8073
|
return result;
|
|
8076
8074
|
}
|
|
8077
8075
|
if (classof$4(R) === 'RegExp') return call$e(regexpExec$1, R, S);
|
|
8078
|
-
throw TypeError$
|
|
8076
|
+
throw $TypeError$7('RegExp#exec called on incompatible receiver');
|
|
8079
8077
|
};
|
|
8080
8078
|
|
|
8081
8079
|
var call$d = functionCall;
|
|
@@ -8692,6 +8690,14 @@ function InputSelect(_a) {
|
|
|
8692
8690
|
}), void 0);
|
|
8693
8691
|
}
|
|
8694
8692
|
|
|
8693
|
+
var tryToString$3 = tryToString$5;
|
|
8694
|
+
|
|
8695
|
+
var $TypeError$6 = TypeError;
|
|
8696
|
+
|
|
8697
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
8698
|
+
if (!delete O[P]) throw $TypeError$6('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
|
|
8699
|
+
};
|
|
8700
|
+
|
|
8695
8701
|
var toPropertyKey = toPropertyKey$3;
|
|
8696
8702
|
var definePropertyModule = objectDefineProperty;
|
|
8697
8703
|
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
@@ -8702,19 +8708,18 @@ var createProperty$2 = function (object, key, value) {
|
|
|
8702
8708
|
else object[propertyKey] = value;
|
|
8703
8709
|
};
|
|
8704
8710
|
|
|
8705
|
-
var global$n = global$U;
|
|
8706
8711
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
8707
8712
|
var lengthOfArrayLike$4 = lengthOfArrayLike$6;
|
|
8708
8713
|
var createProperty$1 = createProperty$2;
|
|
8709
8714
|
|
|
8710
|
-
var Array$
|
|
8715
|
+
var $Array$1 = Array;
|
|
8711
8716
|
var max$1 = Math.max;
|
|
8712
8717
|
|
|
8713
8718
|
var arraySliceSimple = function (O, start, end) {
|
|
8714
8719
|
var length = lengthOfArrayLike$4(O);
|
|
8715
8720
|
var k = toAbsoluteIndex(start, length);
|
|
8716
8721
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
8717
|
-
var result = Array$
|
|
8722
|
+
var result = $Array$1(max$1(fin - k, 0));
|
|
8718
8723
|
for (var n = 0; k < fin; k++, n++) createProperty$1(result, n, O[k]);
|
|
8719
8724
|
result.length = n;
|
|
8720
8725
|
return result;
|
|
@@ -8796,6 +8801,7 @@ var uncurryThis$g = functionUncurryThis;
|
|
|
8796
8801
|
var aCallable$7 = aCallable$9;
|
|
8797
8802
|
var toObject$3 = toObject$7;
|
|
8798
8803
|
var lengthOfArrayLike$3 = lengthOfArrayLike$6;
|
|
8804
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
8799
8805
|
var toString$b = toString$h;
|
|
8800
8806
|
var fails$9 = fails$t;
|
|
8801
8807
|
var internalSort = arraySort$1;
|
|
@@ -8890,19 +8896,18 @@ $$g({ target: 'Array', proto: true, forced: FORCED$3 }, {
|
|
|
8890
8896
|
index = 0;
|
|
8891
8897
|
|
|
8892
8898
|
while (index < itemsLength) array[index] = items[index++];
|
|
8893
|
-
while (index < arrayLength)
|
|
8899
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
8894
8900
|
|
|
8895
8901
|
return array;
|
|
8896
8902
|
}
|
|
8897
8903
|
});
|
|
8898
8904
|
|
|
8899
|
-
var global$m = global$U;
|
|
8900
8905
|
var aCallable$6 = aCallable$9;
|
|
8901
8906
|
var toObject$2 = toObject$7;
|
|
8902
8907
|
var IndexedObject = indexedObject;
|
|
8903
8908
|
var lengthOfArrayLike$2 = lengthOfArrayLike$6;
|
|
8904
8909
|
|
|
8905
|
-
var TypeError$
|
|
8910
|
+
var $TypeError$5 = TypeError;
|
|
8906
8911
|
|
|
8907
8912
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
8908
8913
|
var createMethod$2 = function (IS_RIGHT) {
|
|
@@ -8921,7 +8926,7 @@ var createMethod$2 = function (IS_RIGHT) {
|
|
|
8921
8926
|
}
|
|
8922
8927
|
index += i;
|
|
8923
8928
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
8924
|
-
throw TypeError$
|
|
8929
|
+
throw $TypeError$5('Reduce of empty array with no initial value');
|
|
8925
8930
|
}
|
|
8926
8931
|
}
|
|
8927
8932
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -8941,20 +8946,20 @@ var arrayReduce = {
|
|
|
8941
8946
|
};
|
|
8942
8947
|
|
|
8943
8948
|
var classof$3 = classofRaw$1;
|
|
8944
|
-
var global$
|
|
8949
|
+
var global$c = global$s;
|
|
8945
8950
|
|
|
8946
|
-
var engineIsNode = classof$3(global$
|
|
8951
|
+
var engineIsNode = classof$3(global$c.process) == 'process';
|
|
8947
8952
|
|
|
8948
8953
|
var $$f = _export;
|
|
8949
8954
|
var $reduce = arrayReduce.left;
|
|
8950
8955
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
8951
8956
|
var CHROME_VERSION = engineV8Version;
|
|
8952
|
-
var IS_NODE$
|
|
8957
|
+
var IS_NODE$4 = engineIsNode;
|
|
8953
8958
|
|
|
8954
8959
|
var STRICT_METHOD = arrayMethodIsStrict('reduce');
|
|
8955
8960
|
// Chrome 80-82 has a critical bug
|
|
8956
8961
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
8957
|
-
var CHROME_BUG = !IS_NODE$
|
|
8962
|
+
var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
8958
8963
|
|
|
8959
8964
|
// `Array.prototype.reduce` method
|
|
8960
8965
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
@@ -9000,7 +9005,7 @@ $$e({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
|
|
|
9000
9005
|
}
|
|
9001
9006
|
});
|
|
9002
9007
|
|
|
9003
|
-
var _jsxFileName$w = "
|
|
9008
|
+
var _jsxFileName$w = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/icon/CheckOutline.js";
|
|
9004
9009
|
|
|
9005
9010
|
const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
9006
9011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9049,7 +9054,7 @@ const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
9049
9054
|
}));
|
|
9050
9055
|
|
|
9051
9056
|
const _excluded$d = ["placeholder", "option", "value", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css"];
|
|
9052
|
-
var _jsxFileName$v = "
|
|
9057
|
+
var _jsxFileName$v = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/InputSelectCheck.js";
|
|
9053
9058
|
const Wrapper$1 = styled('div', {
|
|
9054
9059
|
margin: 0,
|
|
9055
9060
|
flexDirection: 'column',
|
|
@@ -9410,7 +9415,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9410
9415
|
setSelectedValue(filterItems);
|
|
9411
9416
|
|
|
9412
9417
|
if (selected.id !== '!all') {
|
|
9413
|
-
onChange
|
|
9418
|
+
onChange == null ? void 0 : onChange(filterItems);
|
|
9414
9419
|
}
|
|
9415
9420
|
}
|
|
9416
9421
|
};
|
|
@@ -9454,7 +9459,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9454
9459
|
removeSelectedItem(item);
|
|
9455
9460
|
});
|
|
9456
9461
|
setSelectedValue([]);
|
|
9457
|
-
onChange
|
|
9462
|
+
onChange == null ? void 0 : onChange([]);
|
|
9458
9463
|
} else {
|
|
9459
9464
|
removeItem(selectedItem);
|
|
9460
9465
|
}
|
|
@@ -9469,12 +9474,12 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9469
9474
|
itemIds.push(item.id);
|
|
9470
9475
|
});
|
|
9471
9476
|
setSelectedValue(itemIds);
|
|
9472
|
-
onChange
|
|
9477
|
+
onChange == null ? void 0 : onChange(itemIds.slice(1));
|
|
9473
9478
|
} else {
|
|
9474
9479
|
addSelectedItem(selectedItem);
|
|
9475
9480
|
setSelectedValue([...selectedValue, selectedItem.id]);
|
|
9476
9481
|
const filteredSelectedValues = selectedValue.filter(val => val !== '!all');
|
|
9477
|
-
onChange
|
|
9482
|
+
onChange == null ? void 0 : onChange([...filteredSelectedValues, selectedItem.id]);
|
|
9478
9483
|
}
|
|
9479
9484
|
|
|
9480
9485
|
selectItem(null);
|
|
@@ -9811,7 +9816,7 @@ InputSelectCheck.defaultProps = {
|
|
|
9811
9816
|
selectAllLabel: 'Pilih Semua'
|
|
9812
9817
|
};
|
|
9813
9818
|
|
|
9814
|
-
var _jsxFileName$u = "
|
|
9819
|
+
var _jsxFileName$u = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectTag/InputSelectTag.js";
|
|
9815
9820
|
const InputSelectTag = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
9816
9821
|
return /*#__PURE__*/React.createElement(InputSelectCheck, _extends({
|
|
9817
9822
|
ref: ref,
|
|
@@ -9858,7 +9863,7 @@ InputSelectTag.defaultProps = {
|
|
|
9858
9863
|
sortBy: 'name'
|
|
9859
9864
|
};
|
|
9860
9865
|
|
|
9861
|
-
var _jsxFileName$t = "
|
|
9866
|
+
var _jsxFileName$t = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCreatable/InputCreatable.js";
|
|
9862
9867
|
const Wrapper = styled('div', {
|
|
9863
9868
|
margin: 0,
|
|
9864
9869
|
flexDirection: 'column',
|
|
@@ -10455,15 +10460,15 @@ var stringTrim = {
|
|
|
10455
10460
|
trim: createMethod$1(3)
|
|
10456
10461
|
};
|
|
10457
10462
|
|
|
10458
|
-
var global$
|
|
10463
|
+
var global$b = global$s;
|
|
10459
10464
|
var fails$8 = fails$t;
|
|
10460
10465
|
var uncurryThis$d = functionUncurryThis;
|
|
10461
10466
|
var toString$8 = toString$h;
|
|
10462
10467
|
var trim$1 = stringTrim.trim;
|
|
10463
10468
|
var whitespaces$2 = whitespaces$4;
|
|
10464
10469
|
|
|
10465
|
-
var $parseInt$1 = global$
|
|
10466
|
-
var Symbol$6 = global$
|
|
10470
|
+
var $parseInt$1 = global$b.parseInt;
|
|
10471
|
+
var Symbol$6 = global$b.Symbol;
|
|
10467
10472
|
var ITERATOR$6 = Symbol$6 && Symbol$6.iterator;
|
|
10468
10473
|
var hex = /^[+-]?0x/i;
|
|
10469
10474
|
var exec$4 = uncurryThis$d(hex.exec);
|
|
@@ -10643,7 +10648,7 @@ InputCounter.defaultProps = {
|
|
|
10643
10648
|
};
|
|
10644
10649
|
|
|
10645
10650
|
const _excluded$c = ["children"];
|
|
10646
|
-
var _jsxFileName$s = "
|
|
10651
|
+
var _jsxFileName$s = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/popover/Popover.js";
|
|
10647
10652
|
const {
|
|
10648
10653
|
zIndices
|
|
10649
10654
|
} = foundations;
|
|
@@ -10733,8 +10738,8 @@ const PopoverContent = ({
|
|
|
10733
10738
|
ref: floating,
|
|
10734
10739
|
style: Object.assign({
|
|
10735
10740
|
position: strategy,
|
|
10736
|
-
top: isMobile ? 0 : y
|
|
10737
|
-
left: isMobile ? 0 : x
|
|
10741
|
+
top: isMobile ? 0 : y != null ? y : '',
|
|
10742
|
+
left: isMobile ? 0 : x != null ? x : '',
|
|
10738
10743
|
zIndex: zIndices.popover
|
|
10739
10744
|
}, style)
|
|
10740
10745
|
}), {
|
|
@@ -10777,7 +10782,7 @@ Popover.propTypes = {
|
|
|
10777
10782
|
Popover.displayName = 'Popover';
|
|
10778
10783
|
|
|
10779
10784
|
const _excluded$b = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
|
|
10780
|
-
var _jsxFileName$r = "
|
|
10785
|
+
var _jsxFileName$r = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/slider/Slider.js";
|
|
10781
10786
|
const StyledSlider = styled$1(SliderPrimitive.Root, {
|
|
10782
10787
|
position: 'relative',
|
|
10783
10788
|
display: 'flex',
|
|
@@ -11122,7 +11127,7 @@ Slider.defaultProps = {
|
|
|
11122
11127
|
};
|
|
11123
11128
|
|
|
11124
11129
|
const _excluded$a = ["className", "children", "onClick", "type", "size"];
|
|
11125
|
-
var _jsxFileName$q = "
|
|
11130
|
+
var _jsxFileName$q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
|
|
11126
11131
|
const TagWrapper = styled('div', {
|
|
11127
11132
|
boxSizing: 'border-box',
|
|
11128
11133
|
fontSize: '12px',
|
|
@@ -11288,7 +11293,7 @@ const _excluded$9 = ["children"],
|
|
|
11288
11293
|
_excluded2$1 = ["children", "activeTabs"],
|
|
11289
11294
|
_excluded3 = ["children", "icon", "activeTabs", "value"],
|
|
11290
11295
|
_excluded4 = ["activeTabs"];
|
|
11291
|
-
var _jsxFileName$p = "
|
|
11296
|
+
var _jsxFileName$p = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tabs/Tabs.js";
|
|
11292
11297
|
const StyledTabs = styled(TabsPrimitive.Root, {
|
|
11293
11298
|
display: 'flex',
|
|
11294
11299
|
flexDirection: 'column',
|
|
@@ -11512,7 +11517,7 @@ Separator$2.displayName = 'Separator';
|
|
|
11512
11517
|
|
|
11513
11518
|
const _excluded$8 = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size"],
|
|
11514
11519
|
_excluded2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
|
|
11515
|
-
var _jsxFileName$o = "
|
|
11520
|
+
var _jsxFileName$o = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/buttonGroup/ButtonGroup.js";
|
|
11516
11521
|
const ButtonGroupComponent = styled(ToggleGroupPrimitive.Root, {
|
|
11517
11522
|
display: 'inline-flex',
|
|
11518
11523
|
borderRadius: '$md',
|
|
@@ -11740,7 +11745,7 @@ ButtonGroupItem.defaultProps = {
|
|
|
11740
11745
|
};
|
|
11741
11746
|
|
|
11742
11747
|
const _excluded$7 = ["children"];
|
|
11743
|
-
var _jsxFileName$n = "
|
|
11748
|
+
var _jsxFileName$n = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
|
|
11744
11749
|
const NotificationBadgeRootStyle = styled('span', {
|
|
11745
11750
|
position: 'relative',
|
|
11746
11751
|
display: 'inline-flex',
|
|
@@ -11840,7 +11845,7 @@ const NotificationBadge = _ref => {
|
|
|
11840
11845
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
11841
11846
|
|
|
11842
11847
|
const getValue = () => {
|
|
11843
|
-
let value = props
|
|
11848
|
+
let value = props == null ? void 0 : props.value;
|
|
11844
11849
|
|
|
11845
11850
|
if (typeof value === 'number' || parseInt(value)) {
|
|
11846
11851
|
if (Math.sign(value) === 1 || Math.sign(value) === 0) {
|
|
@@ -11884,7 +11889,7 @@ NotificationBadge.propTypes = {
|
|
|
11884
11889
|
};
|
|
11885
11890
|
|
|
11886
11891
|
const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
|
|
11887
|
-
var _jsxFileName$m = "
|
|
11892
|
+
var _jsxFileName$m = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/paper/Paper.js";
|
|
11888
11893
|
const PaperComponent = styled('div', {
|
|
11889
11894
|
padding: '20px',
|
|
11890
11895
|
height: 'auto',
|
|
@@ -12095,14 +12100,13 @@ DialogClose.displayName = 'DialogClose';
|
|
|
12095
12100
|
DialogOverlay.displayName = 'DialogOverlay';
|
|
12096
12101
|
DialogPortal.displayName = 'DialogPortal';
|
|
12097
12102
|
|
|
12098
|
-
var global$j = global$U;
|
|
12099
12103
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
12100
12104
|
|
|
12101
|
-
var TypeError$
|
|
12105
|
+
var $TypeError$4 = TypeError;
|
|
12102
12106
|
|
|
12103
12107
|
var anInstance$3 = function (it, Prototype) {
|
|
12104
12108
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
12105
|
-
throw TypeError$
|
|
12109
|
+
throw $TypeError$4('Incorrect invocation');
|
|
12106
12110
|
};
|
|
12107
12111
|
|
|
12108
12112
|
var uncurryThis$c = functionUncurryThis;
|
|
@@ -12158,16 +12162,15 @@ var isConstructor$2 = !construct || fails$7(function () {
|
|
|
12158
12162
|
|| called;
|
|
12159
12163
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
12160
12164
|
|
|
12161
|
-
var global$i = global$U;
|
|
12162
12165
|
var isConstructor$1 = isConstructor$2;
|
|
12163
|
-
var tryToString$2 = tryToString$
|
|
12166
|
+
var tryToString$2 = tryToString$5;
|
|
12164
12167
|
|
|
12165
|
-
var TypeError$
|
|
12168
|
+
var $TypeError$3 = TypeError;
|
|
12166
12169
|
|
|
12167
12170
|
// `Assert: IsConstructor(argument) is true`
|
|
12168
12171
|
var aConstructor$1 = function (argument) {
|
|
12169
12172
|
if (isConstructor$1(argument)) return argument;
|
|
12170
|
-
throw TypeError$
|
|
12173
|
+
throw $TypeError$3(tryToString$2(argument) + ' is not a constructor');
|
|
12171
12174
|
};
|
|
12172
12175
|
|
|
12173
12176
|
var anObject$8 = anObject$i;
|
|
@@ -12213,12 +12216,10 @@ var uncurryThis$a = functionUncurryThis;
|
|
|
12213
12216
|
|
|
12214
12217
|
var arraySlice$3 = uncurryThis$a([].slice);
|
|
12215
12218
|
|
|
12216
|
-
var
|
|
12217
|
-
|
|
12218
|
-
var TypeError$6 = global$h.TypeError;
|
|
12219
|
+
var $TypeError$2 = TypeError;
|
|
12219
12220
|
|
|
12220
12221
|
var validateArgumentsLength$3 = function (passed, required) {
|
|
12221
|
-
if (passed < required) throw TypeError$
|
|
12222
|
+
if (passed < required) throw $TypeError$2('Not enough arguments');
|
|
12222
12223
|
return passed;
|
|
12223
12224
|
};
|
|
12224
12225
|
|
|
@@ -12226,7 +12227,7 @@ var userAgent$2 = engineUserAgent;
|
|
|
12226
12227
|
|
|
12227
12228
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
12228
12229
|
|
|
12229
|
-
var global$
|
|
12230
|
+
var global$a = global$s;
|
|
12230
12231
|
var apply$2 = functionApply;
|
|
12231
12232
|
var bind$6 = functionBindContext;
|
|
12232
12233
|
var isCallable$5 = isCallable$p;
|
|
@@ -12237,15 +12238,15 @@ var arraySlice$2 = arraySlice$3;
|
|
|
12237
12238
|
var createElement = documentCreateElement$2;
|
|
12238
12239
|
var validateArgumentsLength$2 = validateArgumentsLength$3;
|
|
12239
12240
|
var IS_IOS$1 = engineIsIos;
|
|
12240
|
-
var IS_NODE$
|
|
12241
|
+
var IS_NODE$3 = engineIsNode;
|
|
12241
12242
|
|
|
12242
|
-
var set = global$
|
|
12243
|
-
var clear = global$
|
|
12244
|
-
var process$2 = global$
|
|
12245
|
-
var Dispatch = global$
|
|
12246
|
-
var Function$1 = global$
|
|
12247
|
-
var MessageChannel = global$
|
|
12248
|
-
var String$
|
|
12243
|
+
var set = global$a.setImmediate;
|
|
12244
|
+
var clear = global$a.clearImmediate;
|
|
12245
|
+
var process$2 = global$a.process;
|
|
12246
|
+
var Dispatch = global$a.Dispatch;
|
|
12247
|
+
var Function$1 = global$a.Function;
|
|
12248
|
+
var MessageChannel = global$a.MessageChannel;
|
|
12249
|
+
var String$1 = global$a.String;
|
|
12249
12250
|
var counter = 0;
|
|
12250
12251
|
var queue$1 = {};
|
|
12251
12252
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -12253,7 +12254,7 @@ var location, defer, channel, port;
|
|
|
12253
12254
|
|
|
12254
12255
|
try {
|
|
12255
12256
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
12256
|
-
location = global$
|
|
12257
|
+
location = global$a.location;
|
|
12257
12258
|
} catch (error) { /* empty */ }
|
|
12258
12259
|
|
|
12259
12260
|
var run = function (id) {
|
|
@@ -12276,7 +12277,7 @@ var listener = function (event) {
|
|
|
12276
12277
|
|
|
12277
12278
|
var post = function (id) {
|
|
12278
12279
|
// old engines have not location.origin
|
|
12279
|
-
global$
|
|
12280
|
+
global$a.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
12280
12281
|
};
|
|
12281
12282
|
|
|
12282
12283
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -12295,7 +12296,7 @@ if (!set || !clear) {
|
|
|
12295
12296
|
delete queue$1[id];
|
|
12296
12297
|
};
|
|
12297
12298
|
// Node.js 0.8-
|
|
12298
|
-
if (IS_NODE$
|
|
12299
|
+
if (IS_NODE$3) {
|
|
12299
12300
|
defer = function (id) {
|
|
12300
12301
|
process$2.nextTick(runner(id));
|
|
12301
12302
|
};
|
|
@@ -12314,14 +12315,14 @@ if (!set || !clear) {
|
|
|
12314
12315
|
// Browsers with postMessage, skip WebWorkers
|
|
12315
12316
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
12316
12317
|
} else if (
|
|
12317
|
-
global$
|
|
12318
|
-
isCallable$5(global$
|
|
12319
|
-
!global$
|
|
12318
|
+
global$a.addEventListener &&
|
|
12319
|
+
isCallable$5(global$a.postMessage) &&
|
|
12320
|
+
!global$a.importScripts &&
|
|
12320
12321
|
location && location.protocol !== 'file:' &&
|
|
12321
12322
|
!fails$6(post)
|
|
12322
12323
|
) {
|
|
12323
12324
|
defer = post;
|
|
12324
|
-
global$
|
|
12325
|
+
global$a.addEventListener('message', listener, false);
|
|
12325
12326
|
// IE8-
|
|
12326
12327
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
12327
12328
|
defer = function (id) {
|
|
@@ -12344,29 +12345,29 @@ var task$1 = {
|
|
|
12344
12345
|
};
|
|
12345
12346
|
|
|
12346
12347
|
var userAgent$1 = engineUserAgent;
|
|
12347
|
-
var global$
|
|
12348
|
+
var global$9 = global$s;
|
|
12348
12349
|
|
|
12349
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
12350
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$9.Pebble !== undefined;
|
|
12350
12351
|
|
|
12351
12352
|
var userAgent = engineUserAgent;
|
|
12352
12353
|
|
|
12353
12354
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
12354
12355
|
|
|
12355
|
-
var global$
|
|
12356
|
+
var global$8 = global$s;
|
|
12356
12357
|
var bind$5 = functionBindContext;
|
|
12357
12358
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
12358
12359
|
var macrotask = task$1.set;
|
|
12359
12360
|
var IS_IOS = engineIsIos;
|
|
12360
12361
|
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
12361
12362
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
12362
|
-
var IS_NODE$
|
|
12363
|
+
var IS_NODE$2 = engineIsNode;
|
|
12363
12364
|
|
|
12364
|
-
var MutationObserver = global$
|
|
12365
|
-
var document$2 = global$
|
|
12366
|
-
var process$1 = global$
|
|
12367
|
-
var Promise$1 = global$
|
|
12365
|
+
var MutationObserver = global$8.MutationObserver || global$8.WebKitMutationObserver;
|
|
12366
|
+
var document$2 = global$8.document;
|
|
12367
|
+
var process$1 = global$8.process;
|
|
12368
|
+
var Promise$1 = global$8.Promise;
|
|
12368
12369
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
12369
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$
|
|
12370
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$8, 'queueMicrotask');
|
|
12370
12371
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
12371
12372
|
|
|
12372
12373
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
@@ -12375,7 +12376,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
|
|
|
12375
12376
|
if (!queueMicrotask) {
|
|
12376
12377
|
flush = function () {
|
|
12377
12378
|
var parent, fn;
|
|
12378
|
-
if (IS_NODE$
|
|
12379
|
+
if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
|
|
12379
12380
|
while (head) {
|
|
12380
12381
|
fn = head.fn;
|
|
12381
12382
|
head = head.next;
|
|
@@ -12392,7 +12393,7 @@ if (!queueMicrotask) {
|
|
|
12392
12393
|
|
|
12393
12394
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
12394
12395
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
12395
|
-
if (!IS_IOS && !IS_NODE$
|
|
12396
|
+
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
12396
12397
|
toggle = true;
|
|
12397
12398
|
node = document$2.createTextNode('');
|
|
12398
12399
|
new MutationObserver(flush).observe(node, { characterData: true });
|
|
@@ -12410,7 +12411,7 @@ if (!queueMicrotask) {
|
|
|
12410
12411
|
then(flush);
|
|
12411
12412
|
};
|
|
12412
12413
|
// Node.js without promises
|
|
12413
|
-
} else if (IS_NODE$
|
|
12414
|
+
} else if (IS_NODE$2) {
|
|
12414
12415
|
notify$1 = function () {
|
|
12415
12416
|
process$1.nextTick(flush);
|
|
12416
12417
|
};
|
|
@@ -12422,7 +12423,7 @@ if (!queueMicrotask) {
|
|
|
12422
12423
|
// - setTimeout
|
|
12423
12424
|
} else {
|
|
12424
12425
|
// strange IE + webpack dev server bug - use .bind(global)
|
|
12425
|
-
macrotask = bind$5(macrotask, global$
|
|
12426
|
+
macrotask = bind$5(macrotask, global$8);
|
|
12426
12427
|
notify$1 = function () {
|
|
12427
12428
|
macrotask(flush);
|
|
12428
12429
|
};
|
|
@@ -12438,10 +12439,10 @@ var microtask$1 = queueMicrotask || function (fn) {
|
|
|
12438
12439
|
} last = task;
|
|
12439
12440
|
};
|
|
12440
12441
|
|
|
12441
|
-
var global$
|
|
12442
|
+
var global$7 = global$s;
|
|
12442
12443
|
|
|
12443
12444
|
var hostReportErrors$1 = function (a, b) {
|
|
12444
|
-
var console = global$
|
|
12445
|
+
var console = global$7.console;
|
|
12445
12446
|
if (console && console.error) {
|
|
12446
12447
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
12447
12448
|
}
|
|
@@ -12479,25 +12480,35 @@ Queue$1.prototype = {
|
|
|
12479
12480
|
|
|
12480
12481
|
var queue = Queue$1;
|
|
12481
12482
|
|
|
12482
|
-
var global$
|
|
12483
|
+
var global$6 = global$s;
|
|
12484
|
+
|
|
12485
|
+
var promiseNativeConstructor = global$6.Promise;
|
|
12483
12486
|
|
|
12484
|
-
|
|
12487
|
+
/* global Deno -- Deno case */
|
|
12485
12488
|
|
|
12486
|
-
var
|
|
12489
|
+
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
12487
12490
|
|
|
12488
|
-
var
|
|
12491
|
+
var IS_DENO$1 = engineIsDeno;
|
|
12492
|
+
var IS_NODE$1 = engineIsNode;
|
|
12493
|
+
|
|
12494
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
12495
|
+
&& typeof window == 'object'
|
|
12496
|
+
&& typeof document == 'object';
|
|
12497
|
+
|
|
12498
|
+
var global$5 = global$s;
|
|
12489
12499
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
12490
12500
|
var isCallable$4 = isCallable$p;
|
|
12491
12501
|
var isForced = isForced_1;
|
|
12492
12502
|
var inspectSource = inspectSource$4;
|
|
12493
12503
|
var wellKnownSymbol$6 = wellKnownSymbol$l;
|
|
12494
12504
|
var IS_BROWSER = engineIsBrowser;
|
|
12505
|
+
var IS_DENO = engineIsDeno;
|
|
12495
12506
|
var V8_VERSION = engineV8Version;
|
|
12496
12507
|
|
|
12497
12508
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
12498
12509
|
var SPECIES = wellKnownSymbol$6('species');
|
|
12499
12510
|
var SUBCLASSING = false;
|
|
12500
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$
|
|
12511
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$5.PromiseRejectionEvent);
|
|
12501
12512
|
|
|
12502
12513
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
12503
12514
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -12509,18 +12520,18 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
12509
12520
|
// We can't use @@species feature detection in V8 since it causes
|
|
12510
12521
|
// deoptimization and performance degradation
|
|
12511
12522
|
// https://github.com/zloirock/core-js/issues/679
|
|
12512
|
-
if (V8_VERSION
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12523
|
+
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
12524
|
+
// Detect correctness of subclassing with @@species support
|
|
12525
|
+
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
|
12526
|
+
var FakePromise = function (exec) {
|
|
12527
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
12528
|
+
};
|
|
12529
|
+
var constructor = promise.constructor = {};
|
|
12530
|
+
constructor[SPECIES] = FakePromise;
|
|
12531
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
12532
|
+
if (!SUBCLASSING) return true;
|
|
12522
12533
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
12523
|
-
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
12534
|
+
} return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
12524
12535
|
});
|
|
12525
12536
|
|
|
12526
12537
|
var promiseConstructorDetection = {
|
|
@@ -12552,7 +12563,7 @@ newPromiseCapability$2.f = function (C) {
|
|
|
12552
12563
|
|
|
12553
12564
|
var $$c = _export;
|
|
12554
12565
|
var IS_NODE = engineIsNode;
|
|
12555
|
-
var global$
|
|
12566
|
+
var global$4 = global$s;
|
|
12556
12567
|
var call$b = functionCall;
|
|
12557
12568
|
var defineBuiltIn$4 = defineBuiltIn$b;
|
|
12558
12569
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
@@ -12582,13 +12593,13 @@ var setInternalState$3 = InternalStateModule$3.set;
|
|
|
12582
12593
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
12583
12594
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
12584
12595
|
var PromisePrototype = NativePromisePrototype$1;
|
|
12585
|
-
var TypeError$
|
|
12586
|
-
var document$1 = global$
|
|
12587
|
-
var process = global$
|
|
12596
|
+
var TypeError$3 = global$4.TypeError;
|
|
12597
|
+
var document$1 = global$4.document;
|
|
12598
|
+
var process = global$4.process;
|
|
12588
12599
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
12589
12600
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
12590
12601
|
|
|
12591
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
12602
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
|
|
12592
12603
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
12593
12604
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
12594
12605
|
var PENDING = 0;
|
|
@@ -12629,7 +12640,7 @@ var callReaction = function (reaction, state) {
|
|
|
12629
12640
|
}
|
|
12630
12641
|
}
|
|
12631
12642
|
if (result === reaction.promise) {
|
|
12632
|
-
reject(TypeError$
|
|
12643
|
+
reject(TypeError$3('Promise-chain cycle'));
|
|
12633
12644
|
} else if (then = isThenable(result)) {
|
|
12634
12645
|
call$b(then, result, resolve, reject);
|
|
12635
12646
|
} else resolve(result);
|
|
@@ -12661,14 +12672,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
12661
12672
|
event.promise = promise;
|
|
12662
12673
|
event.reason = reason;
|
|
12663
12674
|
event.initEvent(name, false, true);
|
|
12664
|
-
global$
|
|
12675
|
+
global$4.dispatchEvent(event);
|
|
12665
12676
|
} else event = { promise: promise, reason: reason };
|
|
12666
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
12677
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
|
|
12667
12678
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
12668
12679
|
};
|
|
12669
12680
|
|
|
12670
12681
|
var onUnhandled = function (state) {
|
|
12671
|
-
call$b(task, global$
|
|
12682
|
+
call$b(task, global$4, function () {
|
|
12672
12683
|
var promise = state.facade;
|
|
12673
12684
|
var value = state.value;
|
|
12674
12685
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -12691,7 +12702,7 @@ var isUnhandled = function (state) {
|
|
|
12691
12702
|
};
|
|
12692
12703
|
|
|
12693
12704
|
var onHandleUnhandled = function (state) {
|
|
12694
|
-
call$b(task, global$
|
|
12705
|
+
call$b(task, global$4, function () {
|
|
12695
12706
|
var promise = state.facade;
|
|
12696
12707
|
if (IS_NODE) {
|
|
12697
12708
|
process.emit('rejectionHandled', promise);
|
|
@@ -12719,7 +12730,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
12719
12730
|
state.done = true;
|
|
12720
12731
|
if (unwrap) state = unwrap;
|
|
12721
12732
|
try {
|
|
12722
|
-
if (state.facade === value) throw TypeError$
|
|
12733
|
+
if (state.facade === value) throw TypeError$3("Promise can't be resolved itself");
|
|
12723
12734
|
var then = isThenable(value);
|
|
12724
12735
|
if (then) {
|
|
12725
12736
|
microtask(function () {
|
|
@@ -12861,19 +12872,18 @@ var getIteratorMethod$4 = function (it) {
|
|
|
12861
12872
|
|| Iterators[classof$1(it)];
|
|
12862
12873
|
};
|
|
12863
12874
|
|
|
12864
|
-
var global$9 = global$U;
|
|
12865
12875
|
var call$a = functionCall;
|
|
12866
12876
|
var aCallable$2 = aCallable$9;
|
|
12867
12877
|
var anObject$7 = anObject$i;
|
|
12868
|
-
var tryToString$1 = tryToString$
|
|
12878
|
+
var tryToString$1 = tryToString$5;
|
|
12869
12879
|
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
12870
12880
|
|
|
12871
|
-
var TypeError$
|
|
12881
|
+
var $TypeError$1 = TypeError;
|
|
12872
12882
|
|
|
12873
12883
|
var getIterator$3 = function (argument, usingIterator) {
|
|
12874
12884
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
12875
12885
|
if (aCallable$2(iteratorMethod)) return anObject$7(call$a(iteratorMethod, argument));
|
|
12876
|
-
throw TypeError$
|
|
12886
|
+
throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
|
|
12877
12887
|
};
|
|
12878
12888
|
|
|
12879
12889
|
var call$9 = functionCall;
|
|
@@ -12900,11 +12910,10 @@ var iteratorClose$2 = function (iterator, kind, value) {
|
|
|
12900
12910
|
return value;
|
|
12901
12911
|
};
|
|
12902
12912
|
|
|
12903
|
-
var global$8 = global$U;
|
|
12904
12913
|
var bind$3 = functionBindContext;
|
|
12905
12914
|
var call$8 = functionCall;
|
|
12906
12915
|
var anObject$5 = anObject$i;
|
|
12907
|
-
var tryToString = tryToString$
|
|
12916
|
+
var tryToString = tryToString$5;
|
|
12908
12917
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
12909
12918
|
var lengthOfArrayLike$1 = lengthOfArrayLike$6;
|
|
12910
12919
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
@@ -12912,7 +12921,7 @@ var getIterator$2 = getIterator$3;
|
|
|
12912
12921
|
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
12913
12922
|
var iteratorClose$1 = iteratorClose$2;
|
|
12914
12923
|
|
|
12915
|
-
var TypeError
|
|
12924
|
+
var $TypeError = TypeError;
|
|
12916
12925
|
|
|
12917
12926
|
var Result = function (stopped, result) {
|
|
12918
12927
|
this.stopped = stopped;
|
|
@@ -12924,6 +12933,7 @@ var ResultPrototype = Result.prototype;
|
|
|
12924
12933
|
var iterate$2 = function (iterable, unboundFunction, options) {
|
|
12925
12934
|
var that = options && options.that;
|
|
12926
12935
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
12936
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
12927
12937
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
12928
12938
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
12929
12939
|
var fn = bind$3(unboundFunction, that);
|
|
@@ -12941,11 +12951,13 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
12941
12951
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
12942
12952
|
};
|
|
12943
12953
|
|
|
12944
|
-
if (
|
|
12954
|
+
if (IS_RECORD) {
|
|
12955
|
+
iterator = iterable.iterator;
|
|
12956
|
+
} else if (IS_ITERATOR) {
|
|
12945
12957
|
iterator = iterable;
|
|
12946
12958
|
} else {
|
|
12947
12959
|
iterFn = getIteratorMethod$2(iterable);
|
|
12948
|
-
if (!iterFn) throw TypeError
|
|
12960
|
+
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
12949
12961
|
// optimisation for array iterators
|
|
12950
12962
|
if (isArrayIteratorMethod$1(iterFn)) {
|
|
12951
12963
|
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
@@ -12956,7 +12968,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
12956
12968
|
iterator = getIterator$2(iterable, iterFn);
|
|
12957
12969
|
}
|
|
12958
12970
|
|
|
12959
|
-
next = iterator.next;
|
|
12971
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
12960
12972
|
while (!(step = call$8(next, iterator)).done) {
|
|
12961
12973
|
try {
|
|
12962
12974
|
result = callFn(step.value);
|
|
@@ -13376,7 +13388,7 @@ ModalDialog.defaultProps = {
|
|
|
13376
13388
|
};
|
|
13377
13389
|
|
|
13378
13390
|
const _excluded$5 = ["children"];
|
|
13379
|
-
var _jsxFileName$l = "
|
|
13391
|
+
var _jsxFileName$l = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/drawer/Drawer.js";
|
|
13380
13392
|
const Context$1 = /*#__PURE__*/React__default.createContext();
|
|
13381
13393
|
const {
|
|
13382
13394
|
sizes
|
|
@@ -15068,7 +15080,7 @@ const MobileCalendarBox = ({
|
|
|
15068
15080
|
return null;
|
|
15069
15081
|
};
|
|
15070
15082
|
|
|
15071
|
-
var _jsxFileName$k = "
|
|
15083
|
+
var _jsxFileName$k = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/datePicker/timePicker/TimePicker.js";
|
|
15072
15084
|
const Input$3 = styled('input', {
|
|
15073
15085
|
display: 'none'
|
|
15074
15086
|
});
|
|
@@ -15325,33 +15337,33 @@ const NativeTimePicker = ({
|
|
|
15325
15337
|
})));
|
|
15326
15338
|
};
|
|
15327
15339
|
NativeTimePicker.propTypes = {
|
|
15328
|
-
/**
|
|
15329
|
-
Resize time picker.
|
|
15340
|
+
/**
|
|
15341
|
+
Resize time picker.
|
|
15330
15342
|
*/
|
|
15331
15343
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15332
15344
|
|
|
15333
|
-
/**
|
|
15334
|
-
Change handler.
|
|
15345
|
+
/**
|
|
15346
|
+
Change handler.
|
|
15335
15347
|
*/
|
|
15336
15348
|
onChange: PropTypes.func,
|
|
15337
15349
|
|
|
15338
|
-
/**
|
|
15339
|
-
Time picker default value, support moment format.
|
|
15350
|
+
/**
|
|
15351
|
+
Time picker default value, support moment format.
|
|
15340
15352
|
*/
|
|
15341
15353
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15342
15354
|
|
|
15343
|
-
/**
|
|
15344
|
-
Time picker value, support moment format.
|
|
15355
|
+
/**
|
|
15356
|
+
Time picker value, support moment format.
|
|
15345
15357
|
*/
|
|
15346
15358
|
value: PropTypes.instanceOf(Date),
|
|
15347
15359
|
|
|
15348
|
-
/**
|
|
15349
|
-
Specify the minimum date.
|
|
15360
|
+
/**
|
|
15361
|
+
Specify the minimum date.
|
|
15350
15362
|
*/
|
|
15351
15363
|
minDate: PropTypes.instanceOf(Date),
|
|
15352
15364
|
|
|
15353
|
-
/**
|
|
15354
|
-
Specify the maximum date.
|
|
15365
|
+
/**
|
|
15366
|
+
Specify the maximum date.
|
|
15355
15367
|
*/
|
|
15356
15368
|
maxDate: PropTypes.instanceOf(Date)
|
|
15357
15369
|
};
|
|
@@ -15396,49 +15408,49 @@ const TimePicker = ({
|
|
|
15396
15408
|
};
|
|
15397
15409
|
TimePicker.displayName = 'TimePicker';
|
|
15398
15410
|
TimePicker.propTypes = {
|
|
15399
|
-
/**
|
|
15400
|
-
Additional styles.
|
|
15411
|
+
/**
|
|
15412
|
+
Additional styles.
|
|
15401
15413
|
*/
|
|
15402
15414
|
css: PropTypes.object,
|
|
15403
15415
|
|
|
15404
|
-
/**
|
|
15405
|
-
Resize time picker.
|
|
15416
|
+
/**
|
|
15417
|
+
Resize time picker.
|
|
15406
15418
|
*/
|
|
15407
15419
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15408
15420
|
|
|
15409
|
-
/**
|
|
15410
|
-
Change handler.
|
|
15421
|
+
/**
|
|
15422
|
+
Change handler.
|
|
15411
15423
|
*/
|
|
15412
15424
|
onChange: PropTypes.func,
|
|
15413
15425
|
|
|
15414
|
-
/**
|
|
15415
|
-
Time picker default value, support moment format.
|
|
15426
|
+
/**
|
|
15427
|
+
Time picker default value, support moment format.
|
|
15416
15428
|
*/
|
|
15417
15429
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15418
15430
|
|
|
15419
|
-
/**
|
|
15420
|
-
Time picker value, support moment format.
|
|
15431
|
+
/**
|
|
15432
|
+
Time picker value, support moment format.
|
|
15421
15433
|
*/
|
|
15422
15434
|
value: PropTypes.instanceOf(Date),
|
|
15423
15435
|
|
|
15424
|
-
/**
|
|
15425
|
-
Disabled state.
|
|
15436
|
+
/**
|
|
15437
|
+
Disabled state.
|
|
15426
15438
|
*/
|
|
15427
15439
|
disabled: PropTypes.bool,
|
|
15428
15440
|
|
|
15429
|
-
/**
|
|
15430
|
-
Specify the minimum date.
|
|
15441
|
+
/**
|
|
15442
|
+
Specify the minimum date.
|
|
15431
15443
|
*/
|
|
15432
15444
|
minDate: PropTypes.instanceOf(Date),
|
|
15433
15445
|
|
|
15434
|
-
/**
|
|
15435
|
-
Specify the maximum date.
|
|
15446
|
+
/**
|
|
15447
|
+
Specify the maximum date.
|
|
15436
15448
|
*/
|
|
15437
15449
|
maxDate: PropTypes.instanceOf(Date)
|
|
15438
15450
|
};
|
|
15439
15451
|
NativeTimePicker.displayName = 'NativeTimePicker';
|
|
15440
15452
|
|
|
15441
|
-
var _jsxFileName$j = "
|
|
15453
|
+
var _jsxFileName$j = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/datePicker/timePicker/InputTimePicker.js";
|
|
15442
15454
|
|
|
15443
15455
|
const getInputPickerValue$1 = date => {
|
|
15444
15456
|
if (!date) return;
|
|
@@ -15612,58 +15624,58 @@ InputTimePicker.defaultProps = {
|
|
|
15612
15624
|
placeholder: 'Select Time'
|
|
15613
15625
|
};
|
|
15614
15626
|
InputTimePicker.propTypes = {
|
|
15615
|
-
/**
|
|
15616
|
-
Additional styles.
|
|
15627
|
+
/**
|
|
15628
|
+
Additional styles.
|
|
15617
15629
|
*/
|
|
15618
15630
|
css: PropTypes.object,
|
|
15619
15631
|
|
|
15620
|
-
/**
|
|
15621
|
-
Disabled state.
|
|
15632
|
+
/**
|
|
15633
|
+
Disabled state.
|
|
15622
15634
|
*/
|
|
15623
15635
|
disabled: PropTypes.bool,
|
|
15624
15636
|
|
|
15625
|
-
/**
|
|
15626
|
-
ReadOnly state.
|
|
15637
|
+
/**
|
|
15638
|
+
ReadOnly state.
|
|
15627
15639
|
*/
|
|
15628
15640
|
readOnly: PropTypes.bool,
|
|
15629
15641
|
|
|
15630
|
-
/**
|
|
15631
|
-
Resize time picker.
|
|
15642
|
+
/**
|
|
15643
|
+
Resize time picker.
|
|
15632
15644
|
*/
|
|
15633
15645
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15634
15646
|
|
|
15635
|
-
/**
|
|
15636
|
-
Custom placeholder input time picker.
|
|
15647
|
+
/**
|
|
15648
|
+
Custom placeholder input time picker.
|
|
15637
15649
|
*/
|
|
15638
15650
|
placeholder: PropTypes.string,
|
|
15639
15651
|
|
|
15640
|
-
/**
|
|
15641
|
-
Time picker default value, support moment format.
|
|
15652
|
+
/**
|
|
15653
|
+
Time picker default value, support moment format.
|
|
15642
15654
|
*/
|
|
15643
15655
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15644
15656
|
|
|
15645
|
-
/**
|
|
15646
|
-
Time picker value, support moment format.
|
|
15657
|
+
/**
|
|
15658
|
+
Time picker value, support moment format.
|
|
15647
15659
|
*/
|
|
15648
15660
|
value: PropTypes.instanceOf(Date),
|
|
15649
15661
|
|
|
15650
|
-
/**
|
|
15651
|
-
Change handler.
|
|
15662
|
+
/**
|
|
15663
|
+
Change handler.
|
|
15652
15664
|
*/
|
|
15653
15665
|
onChange: PropTypes.func,
|
|
15654
15666
|
|
|
15655
|
-
/**
|
|
15656
|
-
Placement popover input time picker.
|
|
15667
|
+
/**
|
|
15668
|
+
Placement popover input time picker.
|
|
15657
15669
|
*/
|
|
15658
15670
|
placement: PropTypes.string,
|
|
15659
15671
|
|
|
15660
|
-
/**
|
|
15661
|
-
Specify the minimum date.
|
|
15672
|
+
/**
|
|
15673
|
+
Specify the minimum date.
|
|
15662
15674
|
*/
|
|
15663
15675
|
minDate: PropTypes.instanceOf(Date),
|
|
15664
15676
|
|
|
15665
|
-
/**
|
|
15666
|
-
Specify the maximum date.
|
|
15677
|
+
/**
|
|
15678
|
+
Specify the maximum date.
|
|
15667
15679
|
*/
|
|
15668
15680
|
maxDate: PropTypes.instanceOf(Date)
|
|
15669
15681
|
};
|
|
@@ -16198,7 +16210,7 @@ const removeUndefinedFields = obj => {
|
|
|
16198
16210
|
};
|
|
16199
16211
|
|
|
16200
16212
|
const _excluded$4 = ["isActive", "onClick"];
|
|
16201
|
-
var _jsxFileName$i = "
|
|
16213
|
+
var _jsxFileName$i = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
|
|
16202
16214
|
const PrevNextButton = styled(Text$1, {
|
|
16203
16215
|
padding: '$spacing-01',
|
|
16204
16216
|
cursor: 'pointer',
|
|
@@ -16468,7 +16480,7 @@ const PaginationButton = ({
|
|
|
16468
16480
|
};
|
|
16469
16481
|
|
|
16470
16482
|
const _excluded$3 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
|
|
16471
|
-
var _jsxFileName$h = "
|
|
16483
|
+
var _jsxFileName$h = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
|
|
16472
16484
|
const LimitContainer = styled(Flex$1, {
|
|
16473
16485
|
cursor: 'pointer'
|
|
16474
16486
|
});
|
|
@@ -16574,7 +16586,7 @@ function PaginationInfo(_ref) {
|
|
|
16574
16586
|
lineNumber: 40,
|
|
16575
16587
|
columnNumber: 11
|
|
16576
16588
|
}
|
|
16577
|
-
}, limits
|
|
16589
|
+
}, limits == null ? void 0 : limits.map(limit => /*#__PURE__*/React__default.createElement(PopoverClose, {
|
|
16578
16590
|
key: limit,
|
|
16579
16591
|
css: limitItemContainerStyle(selectedLimit === limit),
|
|
16580
16592
|
onClick: () => onChange(limit),
|
|
@@ -16605,7 +16617,7 @@ function PaginationInfo(_ref) {
|
|
|
16605
16617
|
}
|
|
16606
16618
|
|
|
16607
16619
|
const _excluded$2 = ["limit", "currentPage", "totalData", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions"];
|
|
16608
|
-
var _jsxFileName$g = "
|
|
16620
|
+
var _jsxFileName$g = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/Pagination.js";
|
|
16609
16621
|
|
|
16610
16622
|
function Pagination(_ref) {
|
|
16611
16623
|
let {
|
|
@@ -17325,8 +17337,7 @@ function Table({
|
|
|
17325
17337
|
return jsx(TableHeadRow$3, Object.assign({}, headerGroup.getHeaderGroupProps(), {
|
|
17326
17338
|
children: visibleHeaders.map((column, index) => {
|
|
17327
17339
|
const headerRender = column.render('Header');
|
|
17328
|
-
return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props,
|
|
17329
|
-
!column.unsortable ? column.getSortByToggleProps({
|
|
17340
|
+
return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props, !column.unsortable ? column.getSortByToggleProps({
|
|
17330
17341
|
title: 'Urutkan'
|
|
17331
17342
|
}) : {}, {
|
|
17332
17343
|
style: {
|
|
@@ -17337,23 +17348,7 @@ function Table({
|
|
|
17337
17348
|
}]), {
|
|
17338
17349
|
css: stickyPositionStyling(column)
|
|
17339
17350
|
}, {
|
|
17340
|
-
children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer
|
|
17341
|
-
// padding:
|
|
17342
|
-
// index > 0
|
|
17343
|
-
// ? index < visibleHeaders.length - 1
|
|
17344
|
-
// ? '0 $spacing-03'
|
|
17345
|
-
// : '0 20px 0 $spacing-03'
|
|
17346
|
-
// : '0 $spacing-03 0 20px',
|
|
17347
|
-
// }}
|
|
17348
|
-
, Object.assign({
|
|
17349
|
-
// css={{
|
|
17350
|
-
// padding:
|
|
17351
|
-
// index > 0
|
|
17352
|
-
// ? index < visibleHeaders.length - 1
|
|
17353
|
-
// ? '0 $spacing-03'
|
|
17354
|
-
// : '0 20px 0 $spacing-03'
|
|
17355
|
-
// : '0 $spacing-03 0 20px',
|
|
17356
|
-
// }}
|
|
17351
|
+
children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer, Object.assign({
|
|
17357
17352
|
isSortedDesc: column.isSortedDesc,
|
|
17358
17353
|
unsortable: column.unsortable
|
|
17359
17354
|
}, {
|
|
@@ -17403,7 +17398,7 @@ function Table({
|
|
|
17403
17398
|
children: cell.render('Cell')
|
|
17404
17399
|
}), void 0);
|
|
17405
17400
|
})
|
|
17406
|
-
}), void 0),
|
|
17401
|
+
}), void 0), row.isExpanded ? subRowCells.map((cell, index) => jsxs(TableRow$3, Object.assign({
|
|
17407
17402
|
subRow: true
|
|
17408
17403
|
}, {
|
|
17409
17404
|
children: [leftAddOnCells.map((_, index) => jsx("td", {}, index)), jsxs(React.Fragment, {
|
|
@@ -17436,7 +17431,7 @@ function Table({
|
|
|
17436
17431
|
}), void 0)
|
|
17437
17432
|
}), void 0)]
|
|
17438
17433
|
}, cell.column.id)]
|
|
17439
|
-
}), cell.column.id)) : null]
|
|
17434
|
+
}), cell.column.id)) : null, ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isBottomChild'] && !!(rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender) && (rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender(row))]
|
|
17440
17435
|
}, row.id);
|
|
17441
17436
|
})
|
|
17442
17437
|
}), void 0)]
|
|
@@ -17484,7 +17479,7 @@ const TableColumn = _a => {
|
|
|
17484
17479
|
return jsx("div", {}, void 0);
|
|
17485
17480
|
};
|
|
17486
17481
|
|
|
17487
|
-
var _jsxFileName$f = "
|
|
17482
|
+
var _jsxFileName$f = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/DateColumn.js";
|
|
17488
17483
|
|
|
17489
17484
|
const DateColumn = ({
|
|
17490
17485
|
value
|
|
@@ -17519,12 +17514,11 @@ var uncurryThis$9 = functionUncurryThis;
|
|
|
17519
17514
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
17520
17515
|
var thisNumberValue$1 = uncurryThis$9(1.0.valueOf);
|
|
17521
17516
|
|
|
17522
|
-
var global$7 = global$U;
|
|
17523
17517
|
var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
|
|
17524
17518
|
var toString$7 = toString$h;
|
|
17525
17519
|
var requireObjectCoercible$3 = requireObjectCoercible$a;
|
|
17526
17520
|
|
|
17527
|
-
var RangeError$2 =
|
|
17521
|
+
var $RangeError$2 = RangeError;
|
|
17528
17522
|
|
|
17529
17523
|
// `String.prototype.repeat` method implementation
|
|
17530
17524
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
@@ -17532,21 +17526,20 @@ var stringRepeat = function repeat(count) {
|
|
|
17532
17526
|
var str = toString$7(requireObjectCoercible$3(this));
|
|
17533
17527
|
var result = '';
|
|
17534
17528
|
var n = toIntegerOrInfinity$3(count);
|
|
17535
|
-
if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
|
|
17529
|
+
if (n < 0 || n == Infinity) throw $RangeError$2('Wrong number of repetitions');
|
|
17536
17530
|
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
|
|
17537
17531
|
return result;
|
|
17538
17532
|
};
|
|
17539
17533
|
|
|
17540
17534
|
var $$6 = _export;
|
|
17541
|
-
var global$6 = global$U;
|
|
17542
17535
|
var uncurryThis$8 = functionUncurryThis;
|
|
17543
17536
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
|
|
17544
17537
|
var thisNumberValue = thisNumberValue$1;
|
|
17545
17538
|
var $repeat = stringRepeat;
|
|
17546
17539
|
var fails$5 = fails$t;
|
|
17547
17540
|
|
|
17548
|
-
var RangeError$1 =
|
|
17549
|
-
var String
|
|
17541
|
+
var $RangeError$1 = RangeError;
|
|
17542
|
+
var $String = String;
|
|
17550
17543
|
var floor$3 = Math.floor;
|
|
17551
17544
|
var repeat = uncurryThis$8($repeat);
|
|
17552
17545
|
var stringSlice$6 = uncurryThis$8(''.slice);
|
|
@@ -17594,7 +17587,7 @@ var dataToString = function (data) {
|
|
|
17594
17587
|
var s = '';
|
|
17595
17588
|
while (--index >= 0) {
|
|
17596
17589
|
if (s !== '' || index === 0 || data[index] !== 0) {
|
|
17597
|
-
var t = String
|
|
17590
|
+
var t = $String(data[index]);
|
|
17598
17591
|
s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
|
|
17599
17592
|
}
|
|
17600
17593
|
} return s;
|
|
@@ -17622,10 +17615,10 @@ $$6({ target: 'Number', proto: true, forced: FORCED$1 }, {
|
|
|
17622
17615
|
var e, z, j, k;
|
|
17623
17616
|
|
|
17624
17617
|
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
|
|
17625
|
-
if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits');
|
|
17618
|
+
if (fractDigits < 0 || fractDigits > 20) throw $RangeError$1('Incorrect fraction digits');
|
|
17626
17619
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
17627
17620
|
if (number != number) return 'NaN';
|
|
17628
|
-
if (number <= -1e21 || number >= 1e21) return String
|
|
17621
|
+
if (number <= -1e21 || number >= 1e21) return $String(number);
|
|
17629
17622
|
if (number < 0) {
|
|
17630
17623
|
sign = '-';
|
|
17631
17624
|
number = -number;
|
|
@@ -17669,7 +17662,7 @@ $$6({ target: 'Number', proto: true, forced: FORCED$1 }, {
|
|
|
17669
17662
|
}
|
|
17670
17663
|
});
|
|
17671
17664
|
|
|
17672
|
-
var global$
|
|
17665
|
+
var global$3 = global$s;
|
|
17673
17666
|
var fails$4 = fails$t;
|
|
17674
17667
|
var uncurryThis$7 = functionUncurryThis;
|
|
17675
17668
|
var toString$6 = toString$h;
|
|
@@ -17677,8 +17670,8 @@ var trim = stringTrim.trim;
|
|
|
17677
17670
|
var whitespaces$1 = whitespaces$4;
|
|
17678
17671
|
|
|
17679
17672
|
var charAt$6 = uncurryThis$7(''.charAt);
|
|
17680
|
-
var n$ParseFloat = global$
|
|
17681
|
-
var Symbol$5 = global$
|
|
17673
|
+
var n$ParseFloat = global$3.parseFloat;
|
|
17674
|
+
var Symbol$5 = global$3.Symbol;
|
|
17682
17675
|
var ITERATOR$2 = Symbol$5 && Symbol$5.iterator;
|
|
17683
17676
|
var FORCED = 1 / n$ParseFloat(whitespaces$1 + '-0') !== -Infinity
|
|
17684
17677
|
// MS Edge 18- broken with boxed symbols
|
|
@@ -18167,7 +18160,7 @@ const PriceColumn = props => {
|
|
|
18167
18160
|
return addThousandSeparator(param);
|
|
18168
18161
|
};
|
|
18169
18162
|
|
|
18170
|
-
var _jsxFileName$e = "
|
|
18163
|
+
var _jsxFileName$e = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowExpanderColumn.js";
|
|
18171
18164
|
const rowExpanderColumn = {
|
|
18172
18165
|
id: 'expander',
|
|
18173
18166
|
Header: () => null,
|
|
@@ -18209,7 +18202,7 @@ const rowExpanderColumn = {
|
|
|
18209
18202
|
unsortable: true
|
|
18210
18203
|
};
|
|
18211
18204
|
|
|
18212
|
-
var _jsxFileName$d = "
|
|
18205
|
+
var _jsxFileName$d = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowMenuColumn.js";
|
|
18213
18206
|
|
|
18214
18207
|
const rowMenuColumn = (options, icon, config) => ({
|
|
18215
18208
|
id: 'menu',
|
|
@@ -18453,7 +18446,7 @@ const rowMenuColumn = (options, icon, config) => ({
|
|
|
18453
18446
|
unsortable: true
|
|
18454
18447
|
});
|
|
18455
18448
|
|
|
18456
|
-
var _jsxFileName$c = "
|
|
18449
|
+
var _jsxFileName$c = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowSelectionColumn.js";
|
|
18457
18450
|
const rowSelectionColumn = {
|
|
18458
18451
|
id: 'selection',
|
|
18459
18452
|
Header: ({
|
|
@@ -18745,7 +18738,7 @@ PageDialog.defaultProps = {
|
|
|
18745
18738
|
};
|
|
18746
18739
|
|
|
18747
18740
|
const _excluded$1 = ["children"];
|
|
18748
|
-
var _jsxFileName$b = "
|
|
18741
|
+
var _jsxFileName$b = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
|
|
18749
18742
|
const overlayShow = keyframes({
|
|
18750
18743
|
'0%': {
|
|
18751
18744
|
opacity: 0
|
|
@@ -18917,7 +18910,7 @@ const TemplateAlertFunction = props => {
|
|
|
18917
18910
|
if (!props.onOpenAutoFocus) {
|
|
18918
18911
|
e.preventDefault();
|
|
18919
18912
|
} else {
|
|
18920
|
-
props
|
|
18913
|
+
props == null ? void 0 : props.onOpenAutoFocus();
|
|
18921
18914
|
}
|
|
18922
18915
|
},
|
|
18923
18916
|
__self: undefined,
|
|
@@ -19038,8 +19031,8 @@ const TemplateAlertFunction = props => {
|
|
|
19038
19031
|
size: "sm",
|
|
19039
19032
|
onClick: buttonConfirm,
|
|
19040
19033
|
buttonType: props.dialogType,
|
|
19041
|
-
disabled: props
|
|
19042
|
-
}, props
|
|
19034
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19035
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
19043
19036
|
__self: undefined,
|
|
19044
19037
|
__source: {
|
|
19045
19038
|
fileName: _jsxFileName$b,
|
|
@@ -19058,12 +19051,12 @@ const TemplateAlertFunction = props => {
|
|
|
19058
19051
|
size: "sm",
|
|
19059
19052
|
onClick: buttonCancel,
|
|
19060
19053
|
css: {
|
|
19061
|
-
color: props.dialogType === 'negative' && !(props
|
|
19054
|
+
color: props.dialogType === 'negative' && !(props != null && props.disabledButton) && '$gray900 !important',
|
|
19062
19055
|
flex: props.isMobile && 1
|
|
19063
19056
|
},
|
|
19064
19057
|
buttonType: "ghost",
|
|
19065
|
-
disabled: props
|
|
19066
|
-
}, props
|
|
19058
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19059
|
+
}, props == null ? void 0 : props.cancelButtonProps, {
|
|
19067
19060
|
__self: undefined,
|
|
19068
19061
|
__source: {
|
|
19069
19062
|
fileName: _jsxFileName$b,
|
|
@@ -19085,8 +19078,8 @@ const TemplateAlertFunction = props => {
|
|
|
19085
19078
|
css: {
|
|
19086
19079
|
flex: props.isMobile && 1
|
|
19087
19080
|
},
|
|
19088
|
-
disabled: props
|
|
19089
|
-
}, props
|
|
19081
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19082
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
19090
19083
|
__self: undefined,
|
|
19091
19084
|
__source: {
|
|
19092
19085
|
fileName: _jsxFileName$b,
|
|
@@ -19245,8 +19238,8 @@ function AlertDialog(props) {
|
|
|
19245
19238
|
css: {
|
|
19246
19239
|
flex: props.isMobile && 1
|
|
19247
19240
|
},
|
|
19248
|
-
disabled: props
|
|
19249
|
-
}, props
|
|
19241
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19242
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
19250
19243
|
__self: this,
|
|
19251
19244
|
__source: {
|
|
19252
19245
|
fileName: _jsxFileName$b,
|
|
@@ -19265,12 +19258,12 @@ function AlertDialog(props) {
|
|
|
19265
19258
|
size: "sm",
|
|
19266
19259
|
onClick: props.onCancel,
|
|
19267
19260
|
css: {
|
|
19268
|
-
color: props.dialogType === 'negative' && !(props
|
|
19261
|
+
color: props.dialogType === 'negative' && !(props != null && props.disabledButton) && '$gray900 !important',
|
|
19269
19262
|
flex: props.isMobile && 1
|
|
19270
19263
|
},
|
|
19271
19264
|
buttonType: "ghost",
|
|
19272
|
-
disabled: props
|
|
19273
|
-
}, props
|
|
19265
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19266
|
+
}, props == null ? void 0 : props.cancelButtonProps, {
|
|
19274
19267
|
__self: this,
|
|
19275
19268
|
__source: {
|
|
19276
19269
|
fileName: _jsxFileName$b,
|
|
@@ -19292,8 +19285,8 @@ function AlertDialog(props) {
|
|
|
19292
19285
|
css: {
|
|
19293
19286
|
flex: props.isMobile && 1
|
|
19294
19287
|
},
|
|
19295
|
-
disabled: props
|
|
19296
|
-
}, props
|
|
19288
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19289
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
19297
19290
|
__self: this,
|
|
19298
19291
|
__source: {
|
|
19299
19292
|
fileName: _jsxFileName$b,
|
|
@@ -19343,7 +19336,7 @@ const AlertDialogCancel = ADialog.Cancel;
|
|
|
19343
19336
|
const AlertDialogConfirm = ADialog.Action;
|
|
19344
19337
|
|
|
19345
19338
|
const _excluded = ["side", "align", "children"];
|
|
19346
|
-
var _jsxFileName$a = "
|
|
19339
|
+
var _jsxFileName$a = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
|
|
19347
19340
|
const Context = /*#__PURE__*/React__default.createContext();
|
|
19348
19341
|
const slideUpAndFade = keyframes({
|
|
19349
19342
|
'0%': {
|
|
@@ -19679,7 +19672,6 @@ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
|
19679
19672
|
}
|
|
19680
19673
|
};
|
|
19681
19674
|
|
|
19682
|
-
var global$4 = global$U;
|
|
19683
19675
|
var bind$2 = functionBindContext;
|
|
19684
19676
|
var call$2 = functionCall;
|
|
19685
19677
|
var toObject = toObject$7;
|
|
@@ -19691,7 +19683,7 @@ var createProperty = createProperty$2;
|
|
|
19691
19683
|
var getIterator$1 = getIterator$3;
|
|
19692
19684
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
19693
19685
|
|
|
19694
|
-
var Array
|
|
19686
|
+
var $Array = Array;
|
|
19695
19687
|
|
|
19696
19688
|
// `Array.from` method implementation
|
|
19697
19689
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -19706,7 +19698,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
19706
19698
|
var index = 0;
|
|
19707
19699
|
var length, result, step, iterator, next, value;
|
|
19708
19700
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
19709
|
-
if (iteratorMethod && !(this
|
|
19701
|
+
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
19710
19702
|
iterator = getIterator$1(O, iteratorMethod);
|
|
19711
19703
|
next = iterator.next;
|
|
19712
19704
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
@@ -19716,7 +19708,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
19716
19708
|
}
|
|
19717
19709
|
} else {
|
|
19718
19710
|
length = lengthOfArrayLike(O);
|
|
19719
|
-
result = IS_CONSTRUCTOR ? new this(length) : Array
|
|
19711
|
+
result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
|
|
19720
19712
|
for (;length > index; index++) {
|
|
19721
19713
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
19722
19714
|
createProperty(result, index, value);
|
|
@@ -19727,7 +19719,6 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
19727
19719
|
};
|
|
19728
19720
|
|
|
19729
19721
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
19730
|
-
var global$3 = global$U;
|
|
19731
19722
|
var uncurryThis$2 = functionUncurryThis;
|
|
19732
19723
|
|
|
19733
19724
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
@@ -19744,7 +19735,7 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
|
19744
19735
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
19745
19736
|
var baseMinusTMin = base - tMin;
|
|
19746
19737
|
|
|
19747
|
-
var RangeError =
|
|
19738
|
+
var $RangeError = RangeError;
|
|
19748
19739
|
var exec$1 = uncurryThis$2(regexSeparators.exec);
|
|
19749
19740
|
var floor$1 = Math.floor;
|
|
19750
19741
|
var fromCharCode = String.fromCharCode;
|
|
@@ -19859,7 +19850,7 @@ var encode = function (input) {
|
|
|
19859
19850
|
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
19860
19851
|
var handledCPCountPlusOne = handledCPCount + 1;
|
|
19861
19852
|
if (m - n > floor$1((maxInt - delta) / handledCPCountPlusOne)) {
|
|
19862
|
-
throw RangeError(OVERFLOW_ERROR);
|
|
19853
|
+
throw $RangeError(OVERFLOW_ERROR);
|
|
19863
19854
|
}
|
|
19864
19855
|
|
|
19865
19856
|
delta += (m - n) * handledCPCountPlusOne;
|
|
@@ -19868,7 +19859,7 @@ var encode = function (input) {
|
|
|
19868
19859
|
for (i = 0; i < input.length; i++) {
|
|
19869
19860
|
currentValue = input[i];
|
|
19870
19861
|
if (currentValue < n && ++delta > maxInt) {
|
|
19871
|
-
throw RangeError(OVERFLOW_ERROR);
|
|
19862
|
+
throw $RangeError(OVERFLOW_ERROR);
|
|
19872
19863
|
}
|
|
19873
19864
|
if (currentValue == n) {
|
|
19874
19865
|
// Represent delta as a generalized variable-length integer.
|
|
@@ -19918,7 +19909,7 @@ var defineBuiltIns$1 = function (target, src, options) {
|
|
|
19918
19909
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
19919
19910
|
|
|
19920
19911
|
var $$4 = _export;
|
|
19921
|
-
var global$2 = global$
|
|
19912
|
+
var global$2 = global$s;
|
|
19922
19913
|
var call$1 = functionCall;
|
|
19923
19914
|
var uncurryThis$1 = functionUncurryThis;
|
|
19924
19915
|
var DESCRIPTORS$1 = descriptors;
|
|
@@ -20280,7 +20271,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
20280
20271
|
};
|
|
20281
20272
|
|
|
20282
20273
|
if (isCallable(nativeFetch)) {
|
|
20283
|
-
$$4({ global: true, enumerable: true,
|
|
20274
|
+
$$4({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
|
|
20284
20275
|
fetch: function fetch(input /* , init */) {
|
|
20285
20276
|
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
20286
20277
|
}
|
|
@@ -20296,7 +20287,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
20296
20287
|
RequestPrototype.constructor = RequestConstructor;
|
|
20297
20288
|
RequestConstructor.prototype = RequestPrototype;
|
|
20298
20289
|
|
|
20299
|
-
$$4({ global: true, constructor: true,
|
|
20290
|
+
$$4({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
|
|
20300
20291
|
Request: RequestConstructor
|
|
20301
20292
|
});
|
|
20302
20293
|
}
|
|
@@ -20312,7 +20303,7 @@ var web_urlSearchParams_constructor = {
|
|
|
20312
20303
|
var $$3 = _export;
|
|
20313
20304
|
var DESCRIPTORS = descriptors;
|
|
20314
20305
|
var USE_NATIVE_URL = nativeUrl;
|
|
20315
|
-
var global$1 = global$
|
|
20306
|
+
var global$1 = global$s;
|
|
20316
20307
|
var bind = functionBindContext;
|
|
20317
20308
|
var uncurryThis = functionUncurryThis;
|
|
20318
20309
|
var defineBuiltIn = defineBuiltIn$b;
|
|
@@ -21435,7 +21426,7 @@ function upload({
|
|
|
21435
21426
|
return promise;
|
|
21436
21427
|
}
|
|
21437
21428
|
|
|
21438
|
-
var _jsxFileName$9 = "
|
|
21429
|
+
var _jsxFileName$9 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/upload/Upload.js";
|
|
21439
21430
|
const Input$2 = styled('input', {
|
|
21440
21431
|
display: 'none !important'
|
|
21441
21432
|
});
|
|
@@ -21775,7 +21766,7 @@ const Upload = ({
|
|
|
21775
21766
|
file: fileProgress,
|
|
21776
21767
|
indexReplace: indexReplace.current,
|
|
21777
21768
|
isReplace: indexReplace.current !== null
|
|
21778
|
-
}))
|
|
21769
|
+
})) == null ? void 0 : (_onChange$then = _onChange.then(() => setError(null))) == null ? void 0 : _onChange$then.catch(error => setError(error.message));
|
|
21779
21770
|
}
|
|
21780
21771
|
}).then(result => {
|
|
21781
21772
|
var _onChange2, _onChange2$then;
|
|
@@ -21797,7 +21788,7 @@ const Upload = ({
|
|
|
21797
21788
|
file: fileSuccess,
|
|
21798
21789
|
indexReplace: indexReplace.current,
|
|
21799
21790
|
isReplace: indexReplace.current !== null
|
|
21800
|
-
}))
|
|
21791
|
+
})) == null ? void 0 : (_onChange2$then = _onChange2.then(() => setError(null))) == null ? void 0 : _onChange2$then.catch(error => setError(error.message));
|
|
21801
21792
|
}).catch(error => {
|
|
21802
21793
|
var _onChange3, _onChange3$then;
|
|
21803
21794
|
|
|
@@ -21818,7 +21809,7 @@ const Upload = ({
|
|
|
21818
21809
|
file: fileError,
|
|
21819
21810
|
indexReplace: indexReplace.current,
|
|
21820
21811
|
isReplace: indexReplace.current !== null
|
|
21821
|
-
}))
|
|
21812
|
+
})) == null ? void 0 : (_onChange3$then = _onChange3.then(() => setError(null))) == null ? void 0 : _onChange3$then.catch(error => setError(error.message));
|
|
21822
21813
|
});
|
|
21823
21814
|
} else {
|
|
21824
21815
|
var _onChange4, _onChange4$then;
|
|
@@ -21828,7 +21819,7 @@ const Upload = ({
|
|
|
21828
21819
|
file: newFile,
|
|
21829
21820
|
indexReplace: indexReplace.current,
|
|
21830
21821
|
isReplace: indexReplace.current !== null
|
|
21831
|
-
}))
|
|
21822
|
+
})) == null ? void 0 : (_onChange4$then = _onChange4.then(() => setError(null))) == null ? void 0 : _onChange4$then.catch(error => setError(error.message));
|
|
21832
21823
|
}
|
|
21833
21824
|
|
|
21834
21825
|
if (indexReplace.current !== null) {
|
|
@@ -21855,9 +21846,9 @@ const Upload = ({
|
|
|
21855
21846
|
}
|
|
21856
21847
|
|
|
21857
21848
|
function handleCrop() {
|
|
21858
|
-
if (completedCrop
|
|
21849
|
+
if (completedCrop != null && completedCrop.width && completedCrop != null && completedCrop.height && imgRef.current) {
|
|
21859
21850
|
imgPreview(imgRef.current, completedCrop, 1, 0, ratio).then(blob => {
|
|
21860
|
-
const file = new File([blob], fileState
|
|
21851
|
+
const file = new File([blob], fileState == null ? void 0 : fileState.name, {
|
|
21861
21852
|
type: blob.type
|
|
21862
21853
|
});
|
|
21863
21854
|
handleUpload([file]);
|
|
@@ -21925,22 +21916,22 @@ const Upload = ({
|
|
|
21925
21916
|
function handleOpenFile(file) {
|
|
21926
21917
|
var _String, _file$name;
|
|
21927
21918
|
|
|
21928
|
-
let extension = (_String = String(file
|
|
21919
|
+
let extension = (_String = String(file == null ? void 0 : (_file$name = file.name) == null ? void 0 : _file$name.split('.').pop())) == null ? void 0 : _String.toLowerCase();
|
|
21929
21920
|
|
|
21930
21921
|
if (extension === 'pdf') {
|
|
21931
|
-
window.open(file
|
|
21922
|
+
window.open(file == null ? void 0 : file.url);
|
|
21932
21923
|
} else {
|
|
21933
|
-
request.get(file
|
|
21924
|
+
request.get(file == null ? void 0 : file.url).end((err, res) => {
|
|
21934
21925
|
if (err) {
|
|
21935
21926
|
console.error(err.message);
|
|
21936
21927
|
}
|
|
21937
21928
|
|
|
21938
|
-
if (res && res
|
|
21939
|
-
const response = res
|
|
21929
|
+
if (res && res != null && res.ok) {
|
|
21930
|
+
const response = res == null ? void 0 : res.text;
|
|
21940
21931
|
const url = window.URL.createObjectURL(new Blob([response]));
|
|
21941
21932
|
const link = document.createElement('a');
|
|
21942
21933
|
link.href = url;
|
|
21943
|
-
link.setAttribute('download', file
|
|
21934
|
+
link.setAttribute('download', file == null ? void 0 : file.name);
|
|
21944
21935
|
document.body.appendChild(link);
|
|
21945
21936
|
link.click();
|
|
21946
21937
|
document.body.removeChild(link);
|
|
@@ -22010,12 +22001,12 @@ const Upload = ({
|
|
|
22010
22001
|
}
|
|
22011
22002
|
|
|
22012
22003
|
const renderPicture = () => {
|
|
22013
|
-
return fileList
|
|
22014
|
-
if ((item
|
|
22004
|
+
return fileList == null ? void 0 : fileList.map((item, index) => {
|
|
22005
|
+
if ((item == null ? void 0 : item.status) === 'uploading') {
|
|
22015
22006
|
return /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
22016
22007
|
key: index,
|
|
22017
|
-
progress: item
|
|
22018
|
-
loading: item
|
|
22008
|
+
progress: item == null ? void 0 : item.percent,
|
|
22009
|
+
loading: item == null ? void 0 : item.loading,
|
|
22019
22010
|
__self: undefined,
|
|
22020
22011
|
__source: {
|
|
22021
22012
|
fileName: _jsxFileName$9,
|
|
@@ -22090,14 +22081,14 @@ const Upload = ({
|
|
|
22090
22081
|
};
|
|
22091
22082
|
|
|
22092
22083
|
const renderFile = () => {
|
|
22093
|
-
return fileList
|
|
22084
|
+
return fileList == null ? void 0 : fileList.map((item, index) => {
|
|
22094
22085
|
var _item$name;
|
|
22095
22086
|
|
|
22096
|
-
if ((item
|
|
22087
|
+
if ((item == null ? void 0 : item.status) === 'uploading') {
|
|
22097
22088
|
return /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
22098
22089
|
key: index,
|
|
22099
|
-
progress: item
|
|
22100
|
-
loading: item
|
|
22090
|
+
progress: item == null ? void 0 : item.percent,
|
|
22091
|
+
loading: item == null ? void 0 : item.loading,
|
|
22101
22092
|
__self: undefined,
|
|
22102
22093
|
__source: {
|
|
22103
22094
|
fileName: _jsxFileName$9,
|
|
@@ -22164,7 +22155,7 @@ const Upload = ({
|
|
|
22164
22155
|
lineNumber: 611,
|
|
22165
22156
|
columnNumber: 17
|
|
22166
22157
|
}
|
|
22167
|
-
}, ".", item
|
|
22158
|
+
}, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
22168
22159
|
label: item.name,
|
|
22169
22160
|
__self: undefined,
|
|
22170
22161
|
__source: {
|
|
@@ -22336,7 +22327,7 @@ const Upload = ({
|
|
|
22336
22327
|
lineNumber: 686,
|
|
22337
22328
|
columnNumber: 11
|
|
22338
22329
|
}
|
|
22339
|
-
}, children
|
|
22330
|
+
}, children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
22340
22331
|
__self: this,
|
|
22341
22332
|
__source: {
|
|
22342
22333
|
fileName: _jsxFileName$9,
|
|
@@ -22370,7 +22361,7 @@ const Upload = ({
|
|
|
22370
22361
|
lineNumber: 692,
|
|
22371
22362
|
columnNumber: 17
|
|
22372
22363
|
}
|
|
22373
|
-
}, placeholder
|
|
22364
|
+
}, placeholder != null ? placeholder : `Pilih atau letakkan berkas di sini`)))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
22374
22365
|
__self: this,
|
|
22375
22366
|
__source: {
|
|
22376
22367
|
fileName: _jsxFileName$9,
|
|
@@ -22518,12 +22509,12 @@ const Upload = ({
|
|
|
22518
22509
|
lineNumber: 731,
|
|
22519
22510
|
columnNumber: 15
|
|
22520
22511
|
}
|
|
22521
|
-
}, `${completedCrop
|
|
22512
|
+
}, `${completedCrop != null && completedCrop.width && completedCrop != null && completedCrop.height ? 'Potong & Simpan' : 'Simpan'}`)))));
|
|
22522
22513
|
}
|
|
22523
22514
|
|
|
22524
22515
|
return /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
22525
22516
|
direction: "row",
|
|
22526
|
-
gap: (fileList
|
|
22517
|
+
gap: (fileList == null ? void 0 : fileList.length) <= 1 && max === 1 ? 0 : 3,
|
|
22527
22518
|
wrap: "wrap",
|
|
22528
22519
|
css: {
|
|
22529
22520
|
userSelect: 'none'
|
|
@@ -22560,151 +22551,151 @@ Upload.defaultProps = {
|
|
|
22560
22551
|
disabled: false
|
|
22561
22552
|
};
|
|
22562
22553
|
Upload.propTypes = {
|
|
22563
|
-
/**
|
|
22564
|
-
Placeholder label of upload.
|
|
22554
|
+
/**
|
|
22555
|
+
Placeholder label of upload.
|
|
22565
22556
|
*/
|
|
22566
22557
|
placeholder: PropTypes.string,
|
|
22567
22558
|
|
|
22568
|
-
/**
|
|
22569
|
-
Disabled state of upload.
|
|
22559
|
+
/**
|
|
22560
|
+
Disabled state of upload.
|
|
22570
22561
|
*/
|
|
22571
22562
|
disabled: PropTypes.bool,
|
|
22572
22563
|
|
|
22573
|
-
/**
|
|
22574
|
-
Built-in stylesheets, support for two types.
|
|
22564
|
+
/**
|
|
22565
|
+
Built-in stylesheets, support for two types.
|
|
22575
22566
|
*/
|
|
22576
22567
|
listType: PropTypes.oneOf(['file', 'picture']),
|
|
22577
22568
|
|
|
22578
|
-
/**
|
|
22579
|
-
Whether to support selected multiple file.
|
|
22569
|
+
/**
|
|
22570
|
+
Whether to support selected multiple file.
|
|
22580
22571
|
*/
|
|
22581
22572
|
multiple: PropTypes.bool,
|
|
22582
22573
|
|
|
22583
|
-
/**
|
|
22584
|
-
List of files to be uploaded.
|
|
22574
|
+
/**
|
|
22575
|
+
List of files to be uploaded.
|
|
22585
22576
|
*/
|
|
22586
22577
|
fileList: PropTypes.array,
|
|
22587
22578
|
|
|
22588
|
-
/**
|
|
22589
|
-
A callback function, can be executed when uploading state is changing.
|
|
22579
|
+
/**
|
|
22580
|
+
A callback function, can be executed when uploading state is changing.
|
|
22590
22581
|
*/
|
|
22591
22582
|
onChange: PropTypes.func,
|
|
22592
22583
|
|
|
22593
|
-
/**
|
|
22594
|
-
A callback function, can be executed when uploading in progress.
|
|
22595
|
-
`(progress) => void`
|
|
22584
|
+
/**
|
|
22585
|
+
A callback function, can be executed when uploading in progress.
|
|
22586
|
+
`(progress) => void`
|
|
22596
22587
|
*/
|
|
22597
22588
|
onProgress: PropTypes.func,
|
|
22598
22589
|
|
|
22599
|
-
/**
|
|
22600
|
-
A callback function, can be executed when uploading is success.
|
|
22601
|
-
`(response) => void`
|
|
22590
|
+
/**
|
|
22591
|
+
A callback function, can be executed when uploading is success.
|
|
22592
|
+
`(response) => void`
|
|
22602
22593
|
*/
|
|
22603
22594
|
onSuccess: PropTypes.func,
|
|
22604
22595
|
|
|
22605
|
-
/**
|
|
22606
|
-
A callback function, can be executed when uploading is error.
|
|
22607
|
-
`(error, response) => void`
|
|
22596
|
+
/**
|
|
22597
|
+
A callback function, can be executed when uploading is error.
|
|
22598
|
+
`(error, response) => void`
|
|
22608
22599
|
*/
|
|
22609
22600
|
onError: PropTypes.func,
|
|
22610
22601
|
|
|
22611
|
-
/**
|
|
22612
|
-
A callback function, can be executed when preview icon in picture type is clicked.
|
|
22602
|
+
/**
|
|
22603
|
+
A callback function, can be executed when preview icon in picture type is clicked.
|
|
22613
22604
|
*/
|
|
22614
22605
|
onPreview: PropTypes.func,
|
|
22615
22606
|
|
|
22616
|
-
/**
|
|
22617
|
-
A callback function, can be executed when remove icon is clicked.
|
|
22607
|
+
/**
|
|
22608
|
+
A callback function, can be executed when remove icon is clicked.
|
|
22618
22609
|
*/
|
|
22619
22610
|
onRemove: PropTypes.func,
|
|
22620
22611
|
|
|
22621
|
-
/**
|
|
22622
|
-
A custom element inside upload container.
|
|
22612
|
+
/**
|
|
22613
|
+
A custom element inside upload container.
|
|
22623
22614
|
*/
|
|
22624
22615
|
children: PropTypes.element,
|
|
22625
22616
|
|
|
22626
|
-
/**
|
|
22627
|
-
Limit the number of uploaded files.
|
|
22617
|
+
/**
|
|
22618
|
+
Limit the number of uploaded files.
|
|
22628
22619
|
*/
|
|
22629
22620
|
max: PropTypes.number,
|
|
22630
22621
|
|
|
22631
|
-
/**
|
|
22632
|
-
Limit file type of upload.
|
|
22622
|
+
/**
|
|
22623
|
+
Limit file type of upload.
|
|
22633
22624
|
*/
|
|
22634
22625
|
accept: PropTypes.string,
|
|
22635
22626
|
|
|
22636
|
-
/**
|
|
22637
|
-
Custom label for replace button.
|
|
22627
|
+
/**
|
|
22628
|
+
Custom label for replace button.
|
|
22638
22629
|
*/
|
|
22639
22630
|
replaceLabel: PropTypes.string,
|
|
22640
22631
|
|
|
22641
|
-
/**
|
|
22642
|
-
Custom width of upload container.
|
|
22632
|
+
/**
|
|
22633
|
+
Custom width of upload container.
|
|
22643
22634
|
*/
|
|
22644
22635
|
width: PropTypes.number,
|
|
22645
22636
|
|
|
22646
|
-
/**
|
|
22647
|
-
Custom height of upload container.
|
|
22637
|
+
/**
|
|
22638
|
+
Custom height of upload container.
|
|
22648
22639
|
*/
|
|
22649
22640
|
height: PropTypes.number,
|
|
22650
22641
|
|
|
22651
|
-
/**
|
|
22652
|
-
Additional css.
|
|
22642
|
+
/**
|
|
22643
|
+
Additional css.
|
|
22653
22644
|
*/
|
|
22654
22645
|
css: PropTypes.object,
|
|
22655
22646
|
|
|
22656
|
-
/**
|
|
22657
|
-
Custom title header of cropper modal.
|
|
22647
|
+
/**
|
|
22648
|
+
Custom title header of cropper modal.
|
|
22658
22649
|
*/
|
|
22659
22650
|
cropperTitle: PropTypes.string,
|
|
22660
22651
|
|
|
22661
|
-
/**
|
|
22662
|
-
Add image cropper on upload.
|
|
22652
|
+
/**
|
|
22653
|
+
Add image cropper on upload.
|
|
22663
22654
|
*/
|
|
22664
22655
|
showCropper: PropTypes.bool,
|
|
22665
22656
|
|
|
22666
|
-
/**
|
|
22667
|
-
The aspect ratio of the crop, e.g. `1` for a square or `16 / 9` for landscape. Omit/pass undefined for a free-form crop.
|
|
22657
|
+
/**
|
|
22658
|
+
The aspect ratio of the crop, e.g. `1` for a square or `16 / 9` for landscape. Omit/pass undefined for a free-form crop.
|
|
22668
22659
|
*/
|
|
22669
22660
|
ratio: PropTypes.number,
|
|
22670
22661
|
|
|
22671
|
-
/**
|
|
22672
|
-
Can set error message to the upload.
|
|
22662
|
+
/**
|
|
22663
|
+
Can set error message to the upload.
|
|
22673
22664
|
*/
|
|
22674
22665
|
errorMessage: PropTypes.string,
|
|
22675
22666
|
|
|
22676
|
-
/**
|
|
22677
|
-
Progress of upload process.
|
|
22667
|
+
/**
|
|
22668
|
+
Progress of upload process.
|
|
22678
22669
|
*/
|
|
22679
22670
|
progress: PropTypes.number,
|
|
22680
22671
|
|
|
22681
|
-
/**
|
|
22682
|
-
Auto increment progress of upload process.
|
|
22672
|
+
/**
|
|
22673
|
+
Auto increment progress of upload process.
|
|
22683
22674
|
*/
|
|
22684
22675
|
loading: PropTypes.bool,
|
|
22685
22676
|
|
|
22686
|
-
/**
|
|
22687
|
-
API upload url, allows components to automatically upload directly to API service.
|
|
22677
|
+
/**
|
|
22678
|
+
API upload url, allows components to automatically upload directly to API service.
|
|
22688
22679
|
*/
|
|
22689
22680
|
action: PropTypes.string,
|
|
22690
22681
|
|
|
22691
|
-
/**
|
|
22692
|
-
Contains an authentication token for upload API.
|
|
22682
|
+
/**
|
|
22683
|
+
Contains an authentication token for upload API.
|
|
22693
22684
|
*/
|
|
22694
22685
|
token: PropTypes.string,
|
|
22695
22686
|
|
|
22696
|
-
/**
|
|
22697
|
-
Referencing the headers key to attach the token.
|
|
22687
|
+
/**
|
|
22688
|
+
Referencing the headers key to attach the token.
|
|
22698
22689
|
*/
|
|
22699
22690
|
tokenKey: PropTypes.string,
|
|
22700
22691
|
|
|
22701
|
-
/**
|
|
22702
|
-
Referencing the key to attach the file to be sent.
|
|
22692
|
+
/**
|
|
22693
|
+
Referencing the key to attach the file to be sent.
|
|
22703
22694
|
*/
|
|
22704
22695
|
reqKey: PropTypes.string,
|
|
22705
22696
|
|
|
22706
|
-
/**
|
|
22707
|
-
Referencing the key to get the file from the API response.
|
|
22697
|
+
/**
|
|
22698
|
+
Referencing the key to get the file from the API response.
|
|
22708
22699
|
*/
|
|
22709
22700
|
resKey: PropTypes.string
|
|
22710
22701
|
};
|
|
@@ -22936,7 +22927,7 @@ const Device = props => {
|
|
|
22936
22927
|
|
|
22937
22928
|
Device.displayName = 'DevicePreview';
|
|
22938
22929
|
|
|
22939
|
-
var _jsxFileName$8 = "
|
|
22930
|
+
var _jsxFileName$8 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/InputColorPicker.js";
|
|
22940
22931
|
const Separator$1 = styled('div', {
|
|
22941
22932
|
height: 20,
|
|
22942
22933
|
width: 1,
|
|
@@ -22948,10 +22939,10 @@ function InputColorPicker(props) {
|
|
|
22948
22939
|
const [isPopover, setIsPopover] = useState(false);
|
|
22949
22940
|
|
|
22950
22941
|
function getColor() {
|
|
22951
|
-
const color = props
|
|
22942
|
+
const color = props == null ? void 0 : props.color;
|
|
22952
22943
|
|
|
22953
22944
|
if (typeof color === 'string') {
|
|
22954
|
-
return color
|
|
22945
|
+
return color == null ? void 0 : color.toUpperCase();
|
|
22955
22946
|
}
|
|
22956
22947
|
|
|
22957
22948
|
return `rgba(${color.r},${color.g},${color.b},${color.a})`;
|
|
@@ -23048,28 +23039,28 @@ function InputColorPicker(props) {
|
|
|
23048
23039
|
|
|
23049
23040
|
InputColorPicker.displayName = 'InputColorPicker';
|
|
23050
23041
|
InputColorPicker.propTypes = {
|
|
23051
|
-
/**
|
|
23052
|
-
Color code to be displayed.
|
|
23042
|
+
/**
|
|
23043
|
+
Color code to be displayed.
|
|
23053
23044
|
*/
|
|
23054
23045
|
color: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
23055
23046
|
|
|
23056
|
-
/**
|
|
23057
|
-
Additional color list.
|
|
23047
|
+
/**
|
|
23048
|
+
Additional color list.
|
|
23058
23049
|
*/
|
|
23059
23050
|
presetColors: PropTypes.array,
|
|
23060
23051
|
|
|
23061
|
-
/**
|
|
23062
|
-
Change event handler.
|
|
23052
|
+
/**
|
|
23053
|
+
Change event handler.
|
|
23063
23054
|
*/
|
|
23064
23055
|
onChange: PropTypes.func,
|
|
23065
23056
|
|
|
23066
|
-
/**
|
|
23067
|
-
Add preset color event handler.
|
|
23057
|
+
/**
|
|
23058
|
+
Add preset color event handler.
|
|
23068
23059
|
*/
|
|
23069
23060
|
onAddColor: PropTypes.func,
|
|
23070
23061
|
|
|
23071
|
-
/**
|
|
23072
|
-
Disable opacity selector.
|
|
23062
|
+
/**
|
|
23063
|
+
Disable opacity selector.
|
|
23073
23064
|
*/
|
|
23074
23065
|
disableAlpha: PropTypes.bool
|
|
23075
23066
|
};
|
|
@@ -23079,7 +23070,7 @@ InputColorPicker.defaultProps = {
|
|
|
23079
23070
|
|
|
23080
23071
|
var img$d = "data:image/gif;base64,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";
|
|
23081
23072
|
|
|
23082
|
-
var _jsxFileName$7 = "
|
|
23073
|
+
var _jsxFileName$7 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/components/ColorMap.js";
|
|
23083
23074
|
const Container$6 = styled('div', {
|
|
23084
23075
|
userSelect: 'none',
|
|
23085
23076
|
margin: 'auto',
|
|
@@ -25043,7 +25034,7 @@ function ColorMap({
|
|
|
25043
25034
|
})));
|
|
25044
25035
|
}
|
|
25045
25036
|
|
|
25046
|
-
var _jsxFileName$6 = "
|
|
25037
|
+
var _jsxFileName$6 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/components/ColorFields.js";
|
|
25047
25038
|
const CheckBoard = styled(Flex$1, {
|
|
25048
25039
|
background: '$bgwhite',
|
|
25049
25040
|
border: '1px solid #E5E7EB',
|
|
@@ -25244,7 +25235,7 @@ function ColorFields({
|
|
|
25244
25235
|
}, "%")));
|
|
25245
25236
|
}
|
|
25246
25237
|
|
|
25247
|
-
var _jsxFileName$5 = "
|
|
25238
|
+
var _jsxFileName$5 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/ColorPicker.js";
|
|
25248
25239
|
const Container$5 = styled(Flex$1, {
|
|
25249
25240
|
background: '$white',
|
|
25250
25241
|
padding: 16,
|
|
@@ -25747,28 +25738,28 @@ function ColorPicker({
|
|
|
25747
25738
|
}
|
|
25748
25739
|
|
|
25749
25740
|
ColorPicker.propTypes = {
|
|
25750
|
-
/**
|
|
25751
|
-
Color code to be displayed.
|
|
25741
|
+
/**
|
|
25742
|
+
Color code to be displayed.
|
|
25752
25743
|
*/
|
|
25753
25744
|
color: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
25754
25745
|
|
|
25755
|
-
/**
|
|
25756
|
-
Additional color list
|
|
25746
|
+
/**
|
|
25747
|
+
Additional color list
|
|
25757
25748
|
*/
|
|
25758
25749
|
presetColors: PropTypes.array,
|
|
25759
25750
|
|
|
25760
|
-
/**
|
|
25761
|
-
Change event handler
|
|
25751
|
+
/**
|
|
25752
|
+
Change event handler
|
|
25762
25753
|
*/
|
|
25763
25754
|
onChange: PropTypes.func,
|
|
25764
25755
|
|
|
25765
|
-
/**
|
|
25766
|
-
Add preset color event handler
|
|
25756
|
+
/**
|
|
25757
|
+
Add preset color event handler
|
|
25767
25758
|
*/
|
|
25768
25759
|
onAddColor: PropTypes.func,
|
|
25769
25760
|
|
|
25770
|
-
/**
|
|
25771
|
-
Disable opacity selector
|
|
25761
|
+
/**
|
|
25762
|
+
Disable opacity selector
|
|
25772
25763
|
*/
|
|
25773
25764
|
disableAlpha: PropTypes.bool
|
|
25774
25765
|
};
|
|
@@ -25777,7 +25768,7 @@ ColorPicker.defaultProps = {
|
|
|
25777
25768
|
};
|
|
25778
25769
|
var ColorPicker$1 = ColorWrap(ColorPicker);
|
|
25779
25770
|
|
|
25780
|
-
var _jsxFileName$4 = "
|
|
25771
|
+
var _jsxFileName$4 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/stepWizard/StepWizard.js";
|
|
25781
25772
|
const StepWizardContext = /*#__PURE__*/React__default.createContext({});
|
|
25782
25773
|
const Stepper = StepWizard$1;
|
|
25783
25774
|
Stepper.displayName = 'Stepper';
|
|
@@ -25921,9 +25912,9 @@ const Navigation = props => {
|
|
|
25921
25912
|
lineNumber: 119,
|
|
25922
25913
|
columnNumber: 30
|
|
25923
25914
|
}
|
|
25924
|
-
}), data[i - 1].title, ((_data = data[i - 1])
|
|
25915
|
+
}), data[i - 1].title, ((_data = data[i - 1]) == null ? void 0 : _data.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
25925
25916
|
align: "center",
|
|
25926
|
-
label: (_data2 = data[i - 1])
|
|
25917
|
+
label: (_data2 = data[i - 1]) == null ? void 0 : _data2.tooltipsContents,
|
|
25927
25918
|
__self: undefined,
|
|
25928
25919
|
__source: {
|
|
25929
25920
|
fileName: _jsxFileName$4,
|
|
@@ -25994,10 +25985,10 @@ const Navigation = props => {
|
|
|
25994
25985
|
lineNumber: 155,
|
|
25995
25986
|
columnNumber: 15
|
|
25996
25987
|
}
|
|
25997
|
-
}, isActive ? data[i - 1].title : ''), isActive && ((_data3 = data[i - 1])
|
|
25988
|
+
}, isActive ? data[i - 1].title : ''), isActive && ((_data3 = data[i - 1]) == null ? void 0 : _data3.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
25998
25989
|
align: "center",
|
|
25999
25990
|
withClick: true,
|
|
26000
|
-
label: (_data4 = data[i - 1])
|
|
25991
|
+
label: (_data4 = data[i - 1]) == null ? void 0 : _data4.tooltipsContents,
|
|
26001
25992
|
__self: undefined,
|
|
26002
25993
|
__source: {
|
|
26003
25994
|
fileName: _jsxFileName$4,
|
|
@@ -26078,9 +26069,7 @@ const Default = props => {
|
|
|
26078
26069
|
}));
|
|
26079
26070
|
}, [props.hide]);
|
|
26080
26071
|
useEffect(() => {
|
|
26081
|
-
|
|
26082
|
-
|
|
26083
|
-
props === null || props === void 0 ? void 0 : (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 ? void 0 : _props$onChangeVisibi.call(props, state.hide);
|
|
26072
|
+
props == null ? void 0 : props.onChangeVisibility == null ? void 0 : props.onChangeVisibility(state.hide);
|
|
26084
26073
|
}, [state.hide]);
|
|
26085
26074
|
|
|
26086
26075
|
const toogleVisibility = value => {
|
|
@@ -26092,13 +26081,13 @@ const Default = props => {
|
|
|
26092
26081
|
const getIsComplete = currentStep => {
|
|
26093
26082
|
var _state$isComplete;
|
|
26094
26083
|
|
|
26095
|
-
return state
|
|
26084
|
+
return state == null ? void 0 : (_state$isComplete = state.isComplete) == null ? void 0 : _state$isComplete[currentStep - 1];
|
|
26096
26085
|
};
|
|
26097
26086
|
|
|
26098
26087
|
const getTitleStep = currentStep => {
|
|
26099
26088
|
var _props$navContents, _props$navContents2;
|
|
26100
26089
|
|
|
26101
|
-
return props
|
|
26090
|
+
return props == null ? void 0 : (_props$navContents = props.navContents) == null ? void 0 : (_props$navContents2 = _props$navContents[currentStep - 1]) == null ? void 0 : _props$navContents2.title;
|
|
26102
26091
|
};
|
|
26103
26092
|
|
|
26104
26093
|
const setState = value => {
|
|
@@ -26150,11 +26139,11 @@ const Default = props => {
|
|
|
26150
26139
|
}, /*#__PURE__*/React__default.createElement(StepWizardContext.Provider, {
|
|
26151
26140
|
value: {
|
|
26152
26141
|
toogleVisibility,
|
|
26153
|
-
isHide: state
|
|
26142
|
+
isHide: state == null ? void 0 : state.hide,
|
|
26154
26143
|
setComplete,
|
|
26155
26144
|
setState,
|
|
26156
26145
|
state,
|
|
26157
|
-
SW: state
|
|
26146
|
+
SW: state == null ? void 0 : state.SW,
|
|
26158
26147
|
forbidClickNav: props.forbidClickNav,
|
|
26159
26148
|
titles: props.titles,
|
|
26160
26149
|
isMobile: props.isMobile,
|
|
@@ -26200,7 +26189,7 @@ const StepWizard = props => {
|
|
|
26200
26189
|
}), void 0);
|
|
26201
26190
|
};
|
|
26202
26191
|
|
|
26203
|
-
var _jsxFileName$3 = "
|
|
26192
|
+
var _jsxFileName$3 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tableOfContent/transition.js";
|
|
26204
26193
|
|
|
26205
26194
|
function Collapse({
|
|
26206
26195
|
children,
|
|
@@ -26245,7 +26234,7 @@ Collapse.defaultProps = {
|
|
|
26245
26234
|
isOpen: false
|
|
26246
26235
|
};
|
|
26247
26236
|
|
|
26248
|
-
var _jsxFileName$2 = "
|
|
26237
|
+
var _jsxFileName$2 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tableOfContent/TableOfContent.js";
|
|
26249
26238
|
const DesktopContainer = styled(Flex$1, {
|
|
26250
26239
|
display: 'none',
|
|
26251
26240
|
'& .active-scroll-spy': {
|
|
@@ -26326,10 +26315,10 @@ function Content({
|
|
|
26326
26315
|
function getDatasets(content, activeId, isCollapse) {
|
|
26327
26316
|
const datasets = [];
|
|
26328
26317
|
|
|
26329
|
-
for (let i = 0; i < (content
|
|
26318
|
+
for (let i = 0; i < (content == null ? void 0 : content.length); i++) {
|
|
26330
26319
|
var _content$i;
|
|
26331
26320
|
|
|
26332
|
-
if (((_content$i = content[i])
|
|
26321
|
+
if (((_content$i = content[i]) == null ? void 0 : _content$i.id) === activeId) {
|
|
26333
26322
|
datasets.unshift(content[i]);
|
|
26334
26323
|
} else {
|
|
26335
26324
|
datasets.push(content[i]);
|
|
@@ -26369,7 +26358,7 @@ function Content({
|
|
|
26369
26358
|
lineNumber: 99,
|
|
26370
26359
|
columnNumber: 7
|
|
26371
26360
|
}
|
|
26372
|
-
}, (_getDatasets = getDatasets(content, activeId, isCollapse))
|
|
26361
|
+
}, (_getDatasets = getDatasets(content, activeId, isCollapse)) == null ? void 0 : _getDatasets.map((item, index) => {
|
|
26373
26362
|
return /*#__PURE__*/React__default.createElement(List, {
|
|
26374
26363
|
key: index,
|
|
26375
26364
|
__self: this,
|
|
@@ -26386,11 +26375,11 @@ function Content({
|
|
|
26386
26375
|
marginLeft: '-4px !important',
|
|
26387
26376
|
borderLeftWidth: '4px !important',
|
|
26388
26377
|
borderLeftStyle: 'solid !important',
|
|
26389
|
-
borderLeftColor: `${(item
|
|
26378
|
+
borderLeftColor: `${(item == null ? void 0 : item.id) === activeId ? colors$4.primary500 : 'transparent'} !important`,
|
|
26390
26379
|
paddingLeft: '16px !important',
|
|
26391
26380
|
minHeight: 25
|
|
26392
26381
|
},
|
|
26393
|
-
"data-to-scrollspy-id": item
|
|
26382
|
+
"data-to-scrollspy-id": item == null ? void 0 : item.id,
|
|
26394
26383
|
__self: this,
|
|
26395
26384
|
__source: {
|
|
26396
26385
|
fileName: _jsxFileName$2,
|
|
@@ -26399,8 +26388,8 @@ function Content({
|
|
|
26399
26388
|
}
|
|
26400
26389
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
26401
26390
|
className: "link-title",
|
|
26402
|
-
active: (item
|
|
26403
|
-
href: `#${item
|
|
26391
|
+
active: (item == null ? void 0 : item.id) === activeId,
|
|
26392
|
+
href: `#${item == null ? void 0 : item.id}`,
|
|
26404
26393
|
onClick: e => {
|
|
26405
26394
|
e.preventDefault();
|
|
26406
26395
|
const target = window.document.getElementById(e.currentTarget.href.split('#')[1]);
|
|
@@ -26429,7 +26418,7 @@ function Content({
|
|
|
26429
26418
|
lineNumber: 117,
|
|
26430
26419
|
columnNumber: 17
|
|
26431
26420
|
}
|
|
26432
|
-
}, item
|
|
26421
|
+
}, item == null ? void 0 : item.title), item == null ? void 0 : item.icon));
|
|
26433
26422
|
})));
|
|
26434
26423
|
}
|
|
26435
26424
|
|
|
@@ -26531,23 +26520,23 @@ TableOfContent.defaultProps = {
|
|
|
26531
26520
|
isDialog: false
|
|
26532
26521
|
};
|
|
26533
26522
|
TableOfContent.propTypes = {
|
|
26534
|
-
/**
|
|
26535
|
-
List of contents containing the title and id of a content.
|
|
26523
|
+
/**
|
|
26524
|
+
List of contents containing the title and id of a content.
|
|
26536
26525
|
*/
|
|
26537
26526
|
content: PropTypes.array,
|
|
26538
26527
|
|
|
26539
|
-
/**
|
|
26540
|
-
Components devoted to mobile viewing only.
|
|
26528
|
+
/**
|
|
26529
|
+
Components devoted to mobile viewing only.
|
|
26541
26530
|
*/
|
|
26542
26531
|
isMobile: PropTypes.bool,
|
|
26543
26532
|
|
|
26544
|
-
/**
|
|
26545
|
-
Condition when table of content is inside a component dialog.
|
|
26533
|
+
/**
|
|
26534
|
+
Condition when table of content is inside a component dialog.
|
|
26546
26535
|
*/
|
|
26547
26536
|
isDialog: PropTypes.bool,
|
|
26548
26537
|
|
|
26549
|
-
/**
|
|
26550
|
-
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
26538
|
+
/**
|
|
26539
|
+
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
26551
26540
|
*/
|
|
26552
26541
|
activeId: PropTypes.string
|
|
26553
26542
|
};
|
|
@@ -26567,7 +26556,7 @@ TableOfContentPage.defaultProps = {
|
|
|
26567
26556
|
useBoxMethod: true
|
|
26568
26557
|
};
|
|
26569
26558
|
|
|
26570
|
-
var _jsxFileName$1 = "
|
|
26559
|
+
var _jsxFileName$1 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/editableTable/transition.js";
|
|
26571
26560
|
|
|
26572
26561
|
function Collapalse({
|
|
26573
26562
|
children,
|
|
@@ -29608,7 +29597,7 @@ function ContentEditor(props) {
|
|
|
29608
29597
|
}), void 0);
|
|
29609
29598
|
}
|
|
29610
29599
|
|
|
29611
|
-
var _jsxFileName = "
|
|
29600
|
+
var _jsxFileName = "/home/alfiantryp/Project/majoo-ui/packages/react/src/colors/Colors.js";
|
|
29612
29601
|
const StyledPaper = styled(Paper, {
|
|
29613
29602
|
borderRadius: '10px 10px 0 0',
|
|
29614
29603
|
padding: 15,
|