@majoo-ui/react 1.54.1-rc.2 → 1.54.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/components/editableTable/EditableMobile.d.ts +1 -0
- package/components/editableTable/EditableTable.d.ts +4 -0
- package/components/loadingBar/LoadingBar.d.ts +5 -0
- package/components/pageDialog/PageDialog.d.ts +24 -8
- package/components/stepWizard/index.d.ts +1 -0
- package/index.esm.css +1294 -1307
- package/index.esm.js +911 -765
- package/index.umd.css +1294 -1307
- package/index.umd.js +922 -770
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -49,7 +49,7 @@ import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
|
|
|
49
49
|
import imageCompressionComponent from 'browser-image-compression';
|
|
50
50
|
import { useSticky } from 'react-table-sticky';
|
|
51
51
|
|
|
52
|
-
var _jsxFileName$
|
|
52
|
+
var _jsxFileName$11 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
|
|
53
53
|
|
|
54
54
|
function ThemeProvider({
|
|
55
55
|
theme,
|
|
@@ -59,7 +59,7 @@ function ThemeProvider({
|
|
|
59
59
|
className: theme,
|
|
60
60
|
__self: this,
|
|
61
61
|
__source: {
|
|
62
|
-
fileName: _jsxFileName$
|
|
62
|
+
fileName: _jsxFileName$11,
|
|
63
63
|
lineNumber: 5,
|
|
64
64
|
columnNumber: 10
|
|
65
65
|
}
|
|
@@ -78,7 +78,7 @@ var check = function (it) {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
81
|
-
var global$
|
|
81
|
+
var global$s =
|
|
82
82
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
83
83
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
84
84
|
check(typeof window == 'object' && window) ||
|
|
@@ -172,31 +172,28 @@ var classofRaw$1 = function (it) {
|
|
|
172
172
|
return stringSlice$b(toString$j(it), 8, -1);
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
var global$T = global$U;
|
|
176
175
|
var uncurryThis$v = functionUncurryThis;
|
|
177
176
|
var fails$q = fails$t;
|
|
178
177
|
var classof$8 = classofRaw$1;
|
|
179
178
|
|
|
180
|
-
var Object$
|
|
179
|
+
var $Object$4 = Object;
|
|
181
180
|
var split$3 = uncurryThis$v(''.split);
|
|
182
181
|
|
|
183
182
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
184
183
|
var indexedObject = fails$q(function () {
|
|
185
184
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
186
185
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
187
|
-
return
|
|
186
|
+
return !$Object$4('z').propertyIsEnumerable(0);
|
|
188
187
|
}) ? function (it) {
|
|
189
|
-
return classof$8(it) == 'String' ? split$3(it, '') : Object$
|
|
190
|
-
} : Object$
|
|
191
|
-
|
|
192
|
-
var global$S = global$U;
|
|
188
|
+
return classof$8(it) == 'String' ? split$3(it, '') : $Object$4(it);
|
|
189
|
+
} : $Object$4;
|
|
193
190
|
|
|
194
|
-
var TypeError$
|
|
191
|
+
var $TypeError$f = TypeError;
|
|
195
192
|
|
|
196
193
|
// `RequireObjectCoercible` abstract operation
|
|
197
194
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
198
195
|
var requireObjectCoercible$a = function (it) {
|
|
199
|
-
if (it == undefined) throw TypeError$
|
|
196
|
+
if (it == undefined) throw $TypeError$f("Can't call method on " + it);
|
|
200
197
|
return it;
|
|
201
198
|
};
|
|
202
199
|
|
|
@@ -220,7 +217,7 @@ var isObject$d = function (it) {
|
|
|
220
217
|
return typeof it == 'object' ? it !== null : isCallable$o(it);
|
|
221
218
|
};
|
|
222
219
|
|
|
223
|
-
var global$
|
|
220
|
+
var global$r = global$s;
|
|
224
221
|
var isCallable$n = isCallable$p;
|
|
225
222
|
|
|
226
223
|
var aFunction = function (argument) {
|
|
@@ -228,7 +225,7 @@ var aFunction = function (argument) {
|
|
|
228
225
|
};
|
|
229
226
|
|
|
230
227
|
var getBuiltIn$8 = function (namespace, method) {
|
|
231
|
-
return arguments.length < 2 ? aFunction(global$
|
|
228
|
+
return arguments.length < 2 ? aFunction(global$r[namespace]) : global$r[namespace] && global$r[namespace][method];
|
|
232
229
|
};
|
|
233
230
|
|
|
234
231
|
var uncurryThis$u = functionUncurryThis;
|
|
@@ -239,11 +236,11 @@ var getBuiltIn$7 = getBuiltIn$8;
|
|
|
239
236
|
|
|
240
237
|
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
|
241
238
|
|
|
242
|
-
var global$
|
|
239
|
+
var global$q = global$s;
|
|
243
240
|
var userAgent$5 = engineUserAgent;
|
|
244
241
|
|
|
245
|
-
var process$3 = global$
|
|
246
|
-
var Deno$1 = global$
|
|
242
|
+
var process$3 = global$q.process;
|
|
243
|
+
var Deno$1 = global$q.Deno;
|
|
247
244
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
248
245
|
var v8 = versions && versions.v8;
|
|
249
246
|
var match, version;
|
|
@@ -290,43 +287,39 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
290
287
|
&& !Symbol.sham
|
|
291
288
|
&& typeof Symbol.iterator == 'symbol';
|
|
292
289
|
|
|
293
|
-
var global$P = global$U;
|
|
294
290
|
var getBuiltIn$6 = getBuiltIn$8;
|
|
295
291
|
var isCallable$m = isCallable$p;
|
|
296
292
|
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
297
293
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
298
294
|
|
|
299
|
-
var Object$
|
|
295
|
+
var $Object$3 = Object;
|
|
300
296
|
|
|
301
297
|
var isSymbol$6 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
302
298
|
return typeof it == 'symbol';
|
|
303
299
|
} : function (it) {
|
|
304
300
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
305
|
-
return isCallable$m($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$
|
|
301
|
+
return isCallable$m($Symbol) && isPrototypeOf$5($Symbol.prototype, $Object$3(it));
|
|
306
302
|
};
|
|
307
303
|
|
|
308
|
-
var
|
|
309
|
-
|
|
310
|
-
var String$6 = global$O.String;
|
|
304
|
+
var $String$4 = String;
|
|
311
305
|
|
|
312
|
-
var tryToString$
|
|
306
|
+
var tryToString$5 = function (argument) {
|
|
313
307
|
try {
|
|
314
|
-
return String$
|
|
308
|
+
return $String$4(argument);
|
|
315
309
|
} catch (error) {
|
|
316
310
|
return 'Object';
|
|
317
311
|
}
|
|
318
312
|
};
|
|
319
313
|
|
|
320
|
-
var global$N = global$U;
|
|
321
314
|
var isCallable$l = isCallable$p;
|
|
322
|
-
var tryToString$
|
|
315
|
+
var tryToString$4 = tryToString$5;
|
|
323
316
|
|
|
324
|
-
var TypeError$
|
|
317
|
+
var $TypeError$e = TypeError;
|
|
325
318
|
|
|
326
319
|
// `Assert: IsCallable(argument) is true`
|
|
327
320
|
var aCallable$9 = function (argument) {
|
|
328
321
|
if (isCallable$l(argument)) return argument;
|
|
329
|
-
throw TypeError$
|
|
322
|
+
throw $TypeError$e(tryToString$4(argument) + ' is not a function');
|
|
330
323
|
};
|
|
331
324
|
|
|
332
325
|
var aCallable$8 = aCallable$9;
|
|
@@ -338,12 +331,11 @@ var getMethod$6 = function (V, P) {
|
|
|
338
331
|
return func == null ? undefined : aCallable$8(func);
|
|
339
332
|
};
|
|
340
333
|
|
|
341
|
-
var global$M = global$U;
|
|
342
334
|
var call$l = functionCall;
|
|
343
335
|
var isCallable$k = isCallable$p;
|
|
344
336
|
var isObject$c = isObject$d;
|
|
345
337
|
|
|
346
|
-
var TypeError$
|
|
338
|
+
var $TypeError$d = TypeError;
|
|
347
339
|
|
|
348
340
|
// `OrdinaryToPrimitive` abstract operation
|
|
349
341
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -352,31 +344,31 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
352
344
|
if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$c(val = call$l(fn, input))) return val;
|
|
353
345
|
if (isCallable$k(fn = input.valueOf) && !isObject$c(val = call$l(fn, input))) return val;
|
|
354
346
|
if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$c(val = call$l(fn, input))) return val;
|
|
355
|
-
throw TypeError$
|
|
347
|
+
throw $TypeError$d("Can't convert object to primitive value");
|
|
356
348
|
};
|
|
357
349
|
|
|
358
350
|
var shared$4 = {exports: {}};
|
|
359
351
|
|
|
360
352
|
var isPure = false;
|
|
361
353
|
|
|
362
|
-
var global$
|
|
354
|
+
var global$p = global$s;
|
|
363
355
|
|
|
364
356
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
365
|
-
var defineProperty$
|
|
357
|
+
var defineProperty$8 = Object.defineProperty;
|
|
366
358
|
|
|
367
|
-
var
|
|
359
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
368
360
|
try {
|
|
369
|
-
defineProperty$
|
|
361
|
+
defineProperty$8(global$p, key, { value: value, configurable: true, writable: true });
|
|
370
362
|
} catch (error) {
|
|
371
|
-
global$
|
|
363
|
+
global$p[key] = value;
|
|
372
364
|
} return value;
|
|
373
365
|
};
|
|
374
366
|
|
|
375
|
-
var global$
|
|
376
|
-
var
|
|
367
|
+
var global$o = global$s;
|
|
368
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
377
369
|
|
|
378
370
|
var SHARED = '__core-js_shared__';
|
|
379
|
-
var store$3 = global$
|
|
371
|
+
var store$3 = global$o[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
380
372
|
|
|
381
373
|
var sharedStore = store$3;
|
|
382
374
|
|
|
@@ -385,22 +377,21 @@ var store$2 = sharedStore;
|
|
|
385
377
|
(shared$4.exports = function (key, value) {
|
|
386
378
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
387
379
|
})('versions', []).push({
|
|
388
|
-
version: '3.
|
|
380
|
+
version: '3.24.1',
|
|
389
381
|
mode: 'global',
|
|
390
382
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
391
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
383
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
392
384
|
source: 'https://github.com/zloirock/core-js'
|
|
393
385
|
});
|
|
394
386
|
|
|
395
|
-
var global$J = global$U;
|
|
396
387
|
var requireObjectCoercible$8 = requireObjectCoercible$a;
|
|
397
388
|
|
|
398
|
-
var Object$
|
|
389
|
+
var $Object$2 = Object;
|
|
399
390
|
|
|
400
391
|
// `ToObject` abstract operation
|
|
401
392
|
// https://tc39.es/ecma262/#sec-toobject
|
|
402
393
|
var toObject$7 = function (argument) {
|
|
403
|
-
return Object$
|
|
394
|
+
return $Object$2(requireObjectCoercible$8(argument));
|
|
404
395
|
};
|
|
405
396
|
|
|
406
397
|
var uncurryThis$t = functionUncurryThis;
|
|
@@ -425,7 +416,7 @@ var uid$2 = function (key) {
|
|
|
425
416
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$i(++id + postfix, 36);
|
|
426
417
|
};
|
|
427
418
|
|
|
428
|
-
var global$
|
|
419
|
+
var global$n = global$s;
|
|
429
420
|
var shared$3 = shared$4.exports;
|
|
430
421
|
var hasOwn$e = hasOwnProperty_1;
|
|
431
422
|
var uid$1 = uid$2;
|
|
@@ -433,7 +424,7 @@ var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
|
433
424
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
434
425
|
|
|
435
426
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
436
|
-
var Symbol$7 = global$
|
|
427
|
+
var Symbol$7 = global$n.Symbol;
|
|
437
428
|
var symbolFor = Symbol$7 && Symbol$7['for'];
|
|
438
429
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$7 : Symbol$7 && Symbol$7.withoutSetter || uid$1;
|
|
439
430
|
|
|
@@ -450,7 +441,6 @@ var wellKnownSymbol$l = function (name) {
|
|
|
450
441
|
} return WellKnownSymbolsStore[name];
|
|
451
442
|
};
|
|
452
443
|
|
|
453
|
-
var global$H = global$U;
|
|
454
444
|
var call$k = functionCall;
|
|
455
445
|
var isObject$b = isObject$d;
|
|
456
446
|
var isSymbol$5 = isSymbol$6;
|
|
@@ -458,7 +448,7 @@ var getMethod$5 = getMethod$6;
|
|
|
458
448
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
459
449
|
var wellKnownSymbol$k = wellKnownSymbol$l;
|
|
460
450
|
|
|
461
|
-
var TypeError$
|
|
451
|
+
var $TypeError$c = TypeError;
|
|
462
452
|
var TO_PRIMITIVE = wellKnownSymbol$k('toPrimitive');
|
|
463
453
|
|
|
464
454
|
// `ToPrimitive` abstract operation
|
|
@@ -471,7 +461,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
471
461
|
if (pref === undefined) pref = 'default';
|
|
472
462
|
result = call$k(exoticToPrim, input, pref);
|
|
473
463
|
if (!isObject$b(result) || isSymbol$5(result)) return result;
|
|
474
|
-
throw TypeError$
|
|
464
|
+
throw $TypeError$c("Can't convert object to primitive value");
|
|
475
465
|
}
|
|
476
466
|
if (pref === undefined) pref = 'number';
|
|
477
467
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -487,10 +477,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
487
477
|
return isSymbol$4(key) ? key : key + '';
|
|
488
478
|
};
|
|
489
479
|
|
|
490
|
-
var global$
|
|
480
|
+
var global$m = global$s;
|
|
491
481
|
var isObject$a = isObject$d;
|
|
492
482
|
|
|
493
|
-
var document$3 = global$
|
|
483
|
+
var document$3 = global$m.document;
|
|
494
484
|
// typeof document.createElement is 'object' in old IE
|
|
495
485
|
var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
|
|
496
486
|
|
|
@@ -548,26 +538,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$n(function () {
|
|
|
548
538
|
}).prototype != 42;
|
|
549
539
|
});
|
|
550
540
|
|
|
551
|
-
var global$F = global$U;
|
|
552
541
|
var isObject$9 = isObject$d;
|
|
553
542
|
|
|
554
|
-
var String$
|
|
555
|
-
var TypeError$
|
|
543
|
+
var $String$3 = String;
|
|
544
|
+
var $TypeError$b = TypeError;
|
|
556
545
|
|
|
557
546
|
// `Assert: Type(argument) is Object`
|
|
558
547
|
var anObject$i = function (argument) {
|
|
559
548
|
if (isObject$9(argument)) return argument;
|
|
560
|
-
throw TypeError$
|
|
549
|
+
throw $TypeError$b($String$3(argument) + ' is not an object');
|
|
561
550
|
};
|
|
562
551
|
|
|
563
|
-
var global$E = global$U;
|
|
564
552
|
var DESCRIPTORS$b = descriptors;
|
|
565
553
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
566
554
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
567
555
|
var anObject$h = anObject$i;
|
|
568
556
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
569
557
|
|
|
570
|
-
var TypeError$
|
|
558
|
+
var $TypeError$a = TypeError;
|
|
571
559
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
572
560
|
var $defineProperty = Object.defineProperty;
|
|
573
561
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -600,7 +588,7 @@ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
600
588
|
if (IE8_DOM_DEFINE) try {
|
|
601
589
|
return $defineProperty(O, P, Attributes);
|
|
602
590
|
} catch (error) { /* empty */ }
|
|
603
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
591
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$a('Accessors not supported');
|
|
604
592
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
605
593
|
return O;
|
|
606
594
|
};
|
|
@@ -609,7 +597,7 @@ var DESCRIPTORS$a = descriptors;
|
|
|
609
597
|
var definePropertyModule$5 = objectDefineProperty;
|
|
610
598
|
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
611
599
|
|
|
612
|
-
var createNonEnumerableProperty$
|
|
600
|
+
var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value) {
|
|
613
601
|
return definePropertyModule$5.f(object, key, createPropertyDescriptor$3(1, value));
|
|
614
602
|
} : function (object, key, value) {
|
|
615
603
|
object[key] = value;
|
|
@@ -651,11 +639,11 @@ if (!isCallable$j(store$1.inspectSource)) {
|
|
|
651
639
|
|
|
652
640
|
var inspectSource$4 = store$1.inspectSource;
|
|
653
641
|
|
|
654
|
-
var global$
|
|
642
|
+
var global$l = global$s;
|
|
655
643
|
var isCallable$i = isCallable$p;
|
|
656
644
|
var inspectSource$3 = inspectSource$4;
|
|
657
645
|
|
|
658
|
-
var WeakMap$1 = global$
|
|
646
|
+
var WeakMap$1 = global$l.WeakMap;
|
|
659
647
|
|
|
660
648
|
var nativeWeakMap = isCallable$i(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
661
649
|
|
|
@@ -671,18 +659,18 @@ var sharedKey$3 = function (key) {
|
|
|
671
659
|
var hiddenKeys$4 = {};
|
|
672
660
|
|
|
673
661
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
674
|
-
var global$
|
|
662
|
+
var global$k = global$s;
|
|
675
663
|
var uncurryThis$q = functionUncurryThis;
|
|
676
664
|
var isObject$8 = isObject$d;
|
|
677
|
-
var createNonEnumerableProperty$
|
|
665
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
|
|
678
666
|
var hasOwn$b = hasOwnProperty_1;
|
|
679
667
|
var shared$1 = sharedStore;
|
|
680
668
|
var sharedKey$2 = sharedKey$3;
|
|
681
669
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
682
670
|
|
|
683
671
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
684
|
-
var TypeError$
|
|
685
|
-
var WeakMap = global$
|
|
672
|
+
var TypeError$4 = global$k.TypeError;
|
|
673
|
+
var WeakMap = global$k.WeakMap;
|
|
686
674
|
var set$1, get$1, has;
|
|
687
675
|
|
|
688
676
|
var enforce = function (it) {
|
|
@@ -693,7 +681,7 @@ var getterFor = function (TYPE) {
|
|
|
693
681
|
return function (it) {
|
|
694
682
|
var state;
|
|
695
683
|
if (!isObject$8(it) || (state = get$1(it)).type !== TYPE) {
|
|
696
|
-
throw TypeError$
|
|
684
|
+
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
697
685
|
} return state;
|
|
698
686
|
};
|
|
699
687
|
};
|
|
@@ -704,7 +692,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
704
692
|
var wmhas = uncurryThis$q(store.has);
|
|
705
693
|
var wmset = uncurryThis$q(store.set);
|
|
706
694
|
set$1 = function (it, metadata) {
|
|
707
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
695
|
+
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
708
696
|
metadata.facade = it;
|
|
709
697
|
wmset(store, it, metadata);
|
|
710
698
|
return metadata;
|
|
@@ -719,9 +707,9 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
719
707
|
var STATE = sharedKey$2('state');
|
|
720
708
|
hiddenKeys$3[STATE] = true;
|
|
721
709
|
set$1 = function (it, metadata) {
|
|
722
|
-
if (hasOwn$b(it, STATE)) throw new TypeError$
|
|
710
|
+
if (hasOwn$b(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
723
711
|
metadata.facade = it;
|
|
724
|
-
createNonEnumerableProperty$
|
|
712
|
+
createNonEnumerableProperty$5(it, STATE, metadata);
|
|
725
713
|
return metadata;
|
|
726
714
|
};
|
|
727
715
|
get$1 = function (it) {
|
|
@@ -751,10 +739,10 @@ var InternalStateModule$5 = internalState;
|
|
|
751
739
|
var enforceInternalState$1 = InternalStateModule$5.enforce;
|
|
752
740
|
var getInternalState$3 = InternalStateModule$5.get;
|
|
753
741
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
754
|
-
var defineProperty$
|
|
742
|
+
var defineProperty$7 = Object.defineProperty;
|
|
755
743
|
|
|
756
744
|
var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$m(function () {
|
|
757
|
-
return defineProperty$
|
|
745
|
+
return defineProperty$7(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
758
746
|
});
|
|
759
747
|
|
|
760
748
|
var TEMPLATE = String(String).split('String');
|
|
@@ -766,16 +754,18 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
766
754
|
if (options && options.getter) name = 'get ' + name;
|
|
767
755
|
if (options && options.setter) name = 'set ' + name;
|
|
768
756
|
if (!hasOwn$a(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
769
|
-
defineProperty$
|
|
757
|
+
if (DESCRIPTORS$8) defineProperty$7(value, 'name', { value: name, configurable: true });
|
|
758
|
+
else value.name = name;
|
|
770
759
|
}
|
|
771
760
|
if (CONFIGURABLE_LENGTH && options && hasOwn$a(options, 'arity') && value.length !== options.arity) {
|
|
772
|
-
defineProperty$
|
|
761
|
+
defineProperty$7(value, 'length', { value: options.arity });
|
|
773
762
|
}
|
|
774
|
-
|
|
775
|
-
if (
|
|
776
|
-
defineProperty$
|
|
777
|
-
|
|
778
|
-
|
|
763
|
+
try {
|
|
764
|
+
if (options && hasOwn$a(options, 'constructor') && options.constructor) {
|
|
765
|
+
if (DESCRIPTORS$8) defineProperty$7(value, 'prototype', { writable: false });
|
|
766
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
767
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
768
|
+
} catch (error) { /* empty */ }
|
|
779
769
|
var state = enforceInternalState$1(value);
|
|
780
770
|
if (!hasOwn$a(state, 'source')) {
|
|
781
771
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
@@ -788,30 +778,32 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
788
778
|
return isCallable$h(this) && getInternalState$3(this).source || inspectSource$2(this);
|
|
789
779
|
}, 'toString');
|
|
790
780
|
|
|
791
|
-
var global$B = global$U;
|
|
792
781
|
var isCallable$g = isCallable$p;
|
|
793
|
-
var
|
|
782
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
794
783
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
795
|
-
var
|
|
784
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
796
785
|
|
|
797
786
|
var defineBuiltIn$b = function (O, key, value, options) {
|
|
798
|
-
|
|
799
|
-
var simple = options
|
|
800
|
-
var
|
|
801
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
787
|
+
if (!options) options = {};
|
|
788
|
+
var simple = options.enumerable;
|
|
789
|
+
var name = options.name !== undefined ? options.name : key;
|
|
802
790
|
if (isCallable$g(value)) makeBuiltIn$1(value, name, options);
|
|
803
|
-
if (
|
|
791
|
+
if (options.global) {
|
|
804
792
|
if (simple) O[key] = value;
|
|
805
|
-
else
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
793
|
+
else defineGlobalProperty$1(key, value);
|
|
794
|
+
} else {
|
|
795
|
+
try {
|
|
796
|
+
if (!options.unsafe) delete O[key];
|
|
797
|
+
else if (O[key]) simple = true;
|
|
798
|
+
} catch (error) { /* empty */ }
|
|
799
|
+
if (simple) O[key] = value;
|
|
800
|
+
else definePropertyModule$4.f(O, key, {
|
|
801
|
+
value: value,
|
|
802
|
+
enumerable: false,
|
|
803
|
+
configurable: !options.nonConfigurable,
|
|
804
|
+
writable: !options.nonWritable
|
|
805
|
+
});
|
|
806
|
+
} return O;
|
|
815
807
|
};
|
|
816
808
|
|
|
817
809
|
var objectGetOwnPropertyNames = {};
|
|
@@ -819,12 +811,22 @@ var objectGetOwnPropertyNames = {};
|
|
|
819
811
|
var ceil = Math.ceil;
|
|
820
812
|
var floor$5 = Math.floor;
|
|
821
813
|
|
|
814
|
+
// `Math.trunc` method
|
|
815
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
816
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
817
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
818
|
+
var n = +x;
|
|
819
|
+
return (n > 0 ? floor$5 : ceil)(n);
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
var trunc = mathTrunc;
|
|
823
|
+
|
|
822
824
|
// `ToIntegerOrInfinity` abstract operation
|
|
823
825
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
824
826
|
var toIntegerOrInfinity$6 = function (argument) {
|
|
825
827
|
var number = +argument;
|
|
826
|
-
// eslint-disable-next-line no-self-compare --
|
|
827
|
-
return number !== number || number === 0 ? 0 : (number
|
|
828
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
829
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
828
830
|
};
|
|
829
831
|
|
|
830
832
|
var toIntegerOrInfinity$5 = toIntegerOrInfinity$6;
|
|
@@ -958,11 +960,11 @@ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
958
960
|
var hasOwn$8 = hasOwnProperty_1;
|
|
959
961
|
var ownKeys = ownKeys$1;
|
|
960
962
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
961
|
-
var definePropertyModule$
|
|
963
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
962
964
|
|
|
963
965
|
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
964
966
|
var keys = ownKeys(source);
|
|
965
|
-
var defineProperty = definePropertyModule$
|
|
967
|
+
var defineProperty = definePropertyModule$3.f;
|
|
966
968
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
967
969
|
for (var i = 0; i < keys.length; i++) {
|
|
968
970
|
var key = keys[i];
|
|
@@ -995,28 +997,28 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
995
997
|
|
|
996
998
|
var isForced_1 = isForced$3;
|
|
997
999
|
|
|
998
|
-
var global$
|
|
1000
|
+
var global$j = global$s;
|
|
999
1001
|
var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
|
|
1000
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$
|
|
1002
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
1001
1003
|
var defineBuiltIn$a = defineBuiltIn$b;
|
|
1002
|
-
var
|
|
1004
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1003
1005
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1004
1006
|
var isForced$2 = isForced_1;
|
|
1005
1007
|
|
|
1006
1008
|
/*
|
|
1007
|
-
options.target
|
|
1008
|
-
options.global
|
|
1009
|
-
options.stat
|
|
1010
|
-
options.proto
|
|
1011
|
-
options.real
|
|
1012
|
-
options.forced
|
|
1013
|
-
options.bind
|
|
1014
|
-
options.wrap
|
|
1015
|
-
options.unsafe
|
|
1016
|
-
options.sham
|
|
1017
|
-
options.enumerable
|
|
1018
|
-
options.
|
|
1019
|
-
options.name
|
|
1009
|
+
options.target - name of the target object
|
|
1010
|
+
options.global - target is the global object
|
|
1011
|
+
options.stat - export as static methods of target
|
|
1012
|
+
options.proto - export as prototype methods of target
|
|
1013
|
+
options.real - real prototype method for the `pure` version
|
|
1014
|
+
options.forced - export even if the native feature is available
|
|
1015
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1016
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1017
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1018
|
+
options.sham - add a flag to not completely full polyfills
|
|
1019
|
+
options.enumerable - export as enumerable property
|
|
1020
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
1021
|
+
options.name - the .name of the function if it does not match the key
|
|
1020
1022
|
*/
|
|
1021
1023
|
var _export = function (options, source) {
|
|
1022
1024
|
var TARGET = options.target;
|
|
@@ -1024,15 +1026,15 @@ var _export = function (options, source) {
|
|
|
1024
1026
|
var STATIC = options.stat;
|
|
1025
1027
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1026
1028
|
if (GLOBAL) {
|
|
1027
|
-
target = global$
|
|
1029
|
+
target = global$j;
|
|
1028
1030
|
} else if (STATIC) {
|
|
1029
|
-
target = global$
|
|
1031
|
+
target = global$j[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1030
1032
|
} else {
|
|
1031
|
-
target = (global$
|
|
1033
|
+
target = (global$j[TARGET] || {}).prototype;
|
|
1032
1034
|
}
|
|
1033
1035
|
if (target) for (key in source) {
|
|
1034
1036
|
sourceProperty = source[key];
|
|
1035
|
-
if (options.
|
|
1037
|
+
if (options.dontCallGetSet) {
|
|
1036
1038
|
descriptor = getOwnPropertyDescriptor$3(target, key);
|
|
1037
1039
|
targetProperty = descriptor && descriptor.value;
|
|
1038
1040
|
} else targetProperty = target[key];
|
|
@@ -1073,17 +1075,17 @@ var IndexedObject$1 = indexedObject;
|
|
|
1073
1075
|
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
1074
1076
|
var $assign = Object.assign;
|
|
1075
1077
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
1076
|
-
var defineProperty$
|
|
1078
|
+
var defineProperty$6 = Object.defineProperty;
|
|
1077
1079
|
var concat$1 = uncurryThis$n([].concat);
|
|
1078
1080
|
|
|
1079
1081
|
// `Object.assign` method
|
|
1080
1082
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1081
1083
|
var objectAssign = !$assign || fails$k(function () {
|
|
1082
1084
|
// should have correct order of operations (Edge bug)
|
|
1083
|
-
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$
|
|
1085
|
+
if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$6({}, 'a', {
|
|
1084
1086
|
enumerable: true,
|
|
1085
1087
|
get: function () {
|
|
1086
|
-
defineProperty$
|
|
1088
|
+
defineProperty$6(this, 'b', {
|
|
1087
1089
|
value: 3,
|
|
1088
1090
|
enumerable: false
|
|
1089
1091
|
});
|
|
@@ -1403,7 +1405,7 @@ var objectDefineProperties = {};
|
|
|
1403
1405
|
|
|
1404
1406
|
var DESCRIPTORS$6 = descriptors;
|
|
1405
1407
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1406
|
-
var definePropertyModule$
|
|
1408
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1407
1409
|
var anObject$f = anObject$i;
|
|
1408
1410
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1409
1411
|
var objectKeys = objectKeys$2;
|
|
@@ -1418,7 +1420,7 @@ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1418
1420
|
var length = keys.length;
|
|
1419
1421
|
var index = 0;
|
|
1420
1422
|
var key;
|
|
1421
|
-
while (length > index) definePropertyModule$
|
|
1423
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
|
1422
1424
|
return O;
|
|
1423
1425
|
};
|
|
1424
1426
|
|
|
@@ -1513,7 +1515,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1513
1515
|
|
|
1514
1516
|
var wellKnownSymbol$j = wellKnownSymbol$l;
|
|
1515
1517
|
var create$3 = objectCreate;
|
|
1516
|
-
var
|
|
1518
|
+
var defineProperty$5 = objectDefineProperty.f;
|
|
1517
1519
|
|
|
1518
1520
|
var UNSCOPABLES = wellKnownSymbol$j('unscopables');
|
|
1519
1521
|
var ArrayPrototype$1 = Array.prototype;
|
|
@@ -1521,7 +1523,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1521
1523
|
// Array.prototype[@@unscopables]
|
|
1522
1524
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1523
1525
|
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
1524
|
-
|
|
1526
|
+
defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
|
|
1525
1527
|
configurable: true,
|
|
1526
1528
|
value: create$3(null)
|
|
1527
1529
|
});
|
|
@@ -1543,7 +1545,6 @@ var correctPrototypeGetter = !fails$j(function () {
|
|
|
1543
1545
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1544
1546
|
});
|
|
1545
1547
|
|
|
1546
|
-
var global$z = global$U;
|
|
1547
1548
|
var hasOwn$7 = hasOwnProperty_1;
|
|
1548
1549
|
var isCallable$e = isCallable$p;
|
|
1549
1550
|
var toObject$4 = toObject$7;
|
|
@@ -1551,18 +1552,19 @@ var sharedKey = sharedKey$3;
|
|
|
1551
1552
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1552
1553
|
|
|
1553
1554
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1554
|
-
var Object$
|
|
1555
|
-
var ObjectPrototype = Object$
|
|
1555
|
+
var $Object$1 = Object;
|
|
1556
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
1556
1557
|
|
|
1557
1558
|
// `Object.getPrototypeOf` method
|
|
1558
1559
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1559
|
-
|
|
1560
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
1561
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1560
1562
|
var object = toObject$4(O);
|
|
1561
1563
|
if (hasOwn$7(object, IE_PROTO)) return object[IE_PROTO];
|
|
1562
1564
|
var constructor = object.constructor;
|
|
1563
1565
|
if (isCallable$e(constructor) && object instanceof constructor) {
|
|
1564
1566
|
return constructor.prototype;
|
|
1565
|
-
} return object instanceof Object$
|
|
1567
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1566
1568
|
};
|
|
1567
1569
|
|
|
1568
1570
|
var fails$i = fails$t;
|
|
@@ -1639,15 +1641,14 @@ var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1639
1641
|
return IteratorConstructor;
|
|
1640
1642
|
};
|
|
1641
1643
|
|
|
1642
|
-
var global$y = global$U;
|
|
1643
1644
|
var isCallable$c = isCallable$p;
|
|
1644
1645
|
|
|
1645
|
-
var String$
|
|
1646
|
-
var TypeError$
|
|
1646
|
+
var $String$2 = String;
|
|
1647
|
+
var $TypeError$9 = TypeError;
|
|
1647
1648
|
|
|
1648
1649
|
var aPossiblePrototype$1 = function (argument) {
|
|
1649
1650
|
if (typeof argument == 'object' || isCallable$c(argument)) return argument;
|
|
1650
|
-
throw TypeError$
|
|
1651
|
+
throw $TypeError$9("Can't set " + $String$2(argument) + ' as a prototype');
|
|
1651
1652
|
};
|
|
1652
1653
|
|
|
1653
1654
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1687,7 +1688,7 @@ var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
|
1687
1688
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1688
1689
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1689
1690
|
var setToStringTag$3 = setToStringTag$5;
|
|
1690
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$
|
|
1691
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
|
|
1691
1692
|
var defineBuiltIn$8 = defineBuiltIn$b;
|
|
1692
1693
|
var wellKnownSymbol$g = wellKnownSymbol$l;
|
|
1693
1694
|
var Iterators$3 = iterators;
|
|
@@ -1880,11 +1881,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1880
1881
|
|
|
1881
1882
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1882
1883
|
|
|
1883
|
-
var global$
|
|
1884
|
+
var global$i = global$s;
|
|
1884
1885
|
var DOMIterables = domIterables;
|
|
1885
1886
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1886
1887
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1887
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$
|
|
1888
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
|
|
1888
1889
|
var wellKnownSymbol$f = wellKnownSymbol$l;
|
|
1889
1890
|
|
|
1890
1891
|
var ITERATOR$7 = wellKnownSymbol$f('iterator');
|
|
@@ -1914,7 +1915,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1914
1915
|
};
|
|
1915
1916
|
|
|
1916
1917
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1917
|
-
handlePrototype(global$
|
|
1918
|
+
handlePrototype(global$i[COLLECTION_NAME] && global$i[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1918
1919
|
}
|
|
1919
1920
|
|
|
1920
1921
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1928,14 +1929,13 @@ test$1[TO_STRING_TAG$1] = 'z';
|
|
|
1928
1929
|
|
|
1929
1930
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1930
1931
|
|
|
1931
|
-
var global$w = global$U;
|
|
1932
1932
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1933
1933
|
var isCallable$a = isCallable$p;
|
|
1934
1934
|
var classofRaw = classofRaw$1;
|
|
1935
1935
|
var wellKnownSymbol$d = wellKnownSymbol$l;
|
|
1936
1936
|
|
|
1937
1937
|
var TO_STRING_TAG = wellKnownSymbol$d('toStringTag');
|
|
1938
|
-
var Object
|
|
1938
|
+
var $Object = Object;
|
|
1939
1939
|
|
|
1940
1940
|
// ES3 wrong here
|
|
1941
1941
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1952,26 +1952,25 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1952
1952
|
var O, tag, result;
|
|
1953
1953
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1954
1954
|
// @@toStringTag case
|
|
1955
|
-
: typeof (tag = tryGet(O = Object
|
|
1955
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1956
1956
|
// builtinTag case
|
|
1957
1957
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1958
1958
|
// ES3 arguments fallback
|
|
1959
1959
|
: (result = classofRaw(O)) == 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
|
|
1960
1960
|
};
|
|
1961
1961
|
|
|
1962
|
-
var global$v = global$U;
|
|
1963
1962
|
var classof$6 = classof$7;
|
|
1964
1963
|
|
|
1965
|
-
var String$
|
|
1964
|
+
var $String$1 = String;
|
|
1966
1965
|
|
|
1967
1966
|
var toString$h = function (argument) {
|
|
1968
1967
|
if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1969
|
-
return String$
|
|
1968
|
+
return $String$1(argument);
|
|
1970
1969
|
};
|
|
1971
1970
|
|
|
1972
1971
|
var $$k = _export;
|
|
1973
1972
|
var DESCRIPTORS$4 = descriptors;
|
|
1974
|
-
var global$
|
|
1973
|
+
var global$h = global$s;
|
|
1975
1974
|
var uncurryThis$l = functionUncurryThis;
|
|
1976
1975
|
var hasOwn$5 = hasOwnProperty_1;
|
|
1977
1976
|
var isCallable$9 = isCallable$p;
|
|
@@ -1980,7 +1979,7 @@ var toString$g = toString$h;
|
|
|
1980
1979
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1981
1980
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
1982
1981
|
|
|
1983
|
-
var NativeSymbol = global$
|
|
1982
|
+
var NativeSymbol = global$h.Symbol;
|
|
1984
1983
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
1985
1984
|
|
|
1986
1985
|
if (DESCRIPTORS$4 && isCallable$9(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
@@ -2060,14 +2059,13 @@ var isRegexp = function (it) {
|
|
|
2060
2059
|
return isObject$7(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$5(it) == 'RegExp');
|
|
2061
2060
|
};
|
|
2062
2061
|
|
|
2063
|
-
var global$t = global$U;
|
|
2064
2062
|
var isRegExp$2 = isRegexp;
|
|
2065
2063
|
|
|
2066
|
-
var TypeError$
|
|
2064
|
+
var $TypeError$8 = TypeError;
|
|
2067
2065
|
|
|
2068
2066
|
var notARegexp = function (it) {
|
|
2069
2067
|
if (isRegExp$2(it)) {
|
|
2070
|
-
throw TypeError$
|
|
2068
|
+
throw $TypeError$8("The method doesn't accept regular expressions");
|
|
2071
2069
|
} return it;
|
|
2072
2070
|
};
|
|
2073
2071
|
|
|
@@ -2239,9 +2237,9 @@ Flex$1.defaultProps = {
|
|
|
2239
2237
|
};
|
|
2240
2238
|
Flex$1.displayName = 'Flex';
|
|
2241
2239
|
|
|
2242
|
-
const _excluded$
|
|
2240
|
+
const _excluded$B = ["children"],
|
|
2243
2241
|
_excluded2$2 = ["children"];
|
|
2244
|
-
var _jsxFileName
|
|
2242
|
+
var _jsxFileName$10 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/grid/Grid.js";
|
|
2245
2243
|
const GridComponent = styled('div', {
|
|
2246
2244
|
display: 'grid',
|
|
2247
2245
|
variants: {
|
|
@@ -2415,7 +2413,7 @@ const Grid = _ref => {
|
|
|
2415
2413
|
let {
|
|
2416
2414
|
children
|
|
2417
2415
|
} = _ref,
|
|
2418
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2416
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
2419
2417
|
|
|
2420
2418
|
return /*#__PURE__*/React__default.createElement(GridComponent, _extends({}, props, {
|
|
2421
2419
|
css: Object.assign({}, props.css, {
|
|
@@ -2426,7 +2424,7 @@ const Grid = _ref => {
|
|
|
2426
2424
|
}),
|
|
2427
2425
|
__self: undefined,
|
|
2428
2426
|
__source: {
|
|
2429
|
-
fileName: _jsxFileName
|
|
2427
|
+
fileName: _jsxFileName$10,
|
|
2430
2428
|
lineNumber: 178,
|
|
2431
2429
|
columnNumber: 5
|
|
2432
2430
|
}
|
|
@@ -2482,7 +2480,7 @@ const GridItem = _ref2 => {
|
|
|
2482
2480
|
}),
|
|
2483
2481
|
__self: undefined,
|
|
2484
2482
|
__source: {
|
|
2485
|
-
fileName: _jsxFileName
|
|
2483
|
+
fileName: _jsxFileName$10,
|
|
2486
2484
|
lineNumber: 232,
|
|
2487
2485
|
columnNumber: 5
|
|
2488
2486
|
}
|
|
@@ -2499,8 +2497,8 @@ GridItem.propTypes = {
|
|
|
2499
2497
|
};
|
|
2500
2498
|
GridItem.displayName = 'Grid Item';
|
|
2501
2499
|
|
|
2502
|
-
const _excluded$
|
|
2503
|
-
var _jsxFileName
|
|
2500
|
+
const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
|
|
2501
|
+
var _jsxFileName$$ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
|
|
2504
2502
|
const StyledDiv$3 = styled(Flex$1, {
|
|
2505
2503
|
justifyContent: 'center',
|
|
2506
2504
|
marginLeft: 'auto',
|
|
@@ -2529,7 +2527,7 @@ const PageContainer = _ref => {
|
|
|
2529
2527
|
css,
|
|
2530
2528
|
contentHeader
|
|
2531
2529
|
} = _ref,
|
|
2532
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2530
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
2533
2531
|
|
|
2534
2532
|
return /*#__PURE__*/React__default.createElement(StyledDiv$3, _extends({
|
|
2535
2533
|
id: "retina-container",
|
|
@@ -2539,7 +2537,7 @@ const PageContainer = _ref => {
|
|
|
2539
2537
|
}, props, {
|
|
2540
2538
|
__self: undefined,
|
|
2541
2539
|
__source: {
|
|
2542
|
-
fileName: _jsxFileName
|
|
2540
|
+
fileName: _jsxFileName$$,
|
|
2543
2541
|
lineNumber: 28,
|
|
2544
2542
|
columnNumber: 5
|
|
2545
2543
|
}
|
|
@@ -2855,8 +2853,8 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
2855
2853
|
}), void 0);
|
|
2856
2854
|
});
|
|
2857
2855
|
|
|
2858
|
-
const _excluded$
|
|
2859
|
-
var _jsxFileName$
|
|
2856
|
+
const _excluded$z = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
|
|
2857
|
+
var _jsxFileName$_ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
|
|
2860
2858
|
const TOAST_WIDTH = 576;
|
|
2861
2859
|
const ANIMATION_DURATION = 400;
|
|
2862
2860
|
const TOP_RIGHT_POSITION = 'top-right';
|
|
@@ -3028,7 +3026,7 @@ const Toast = _ref => {
|
|
|
3028
3026
|
captionOfAction,
|
|
3029
3027
|
hrefOfAction
|
|
3030
3028
|
} = _ref,
|
|
3031
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3029
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
3032
3030
|
|
|
3033
3031
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
3034
3032
|
const close = React.useCallback(() => {
|
|
@@ -3057,7 +3055,7 @@ const Toast = _ref => {
|
|
|
3057
3055
|
onExited: onRemove,
|
|
3058
3056
|
__self: undefined,
|
|
3059
3057
|
__source: {
|
|
3060
|
-
fileName: _jsxFileName$
|
|
3058
|
+
fileName: _jsxFileName$_,
|
|
3061
3059
|
lineNumber: 212,
|
|
3062
3060
|
columnNumber: 5
|
|
3063
3061
|
}
|
|
@@ -3069,7 +3067,7 @@ const Toast = _ref => {
|
|
|
3069
3067
|
}, rest, {
|
|
3070
3068
|
__self: undefined,
|
|
3071
3069
|
__source: {
|
|
3072
|
-
fileName: _jsxFileName$
|
|
3070
|
+
fileName: _jsxFileName$_,
|
|
3073
3071
|
lineNumber: 223,
|
|
3074
3072
|
columnNumber: 9
|
|
3075
3073
|
}
|
|
@@ -3079,7 +3077,7 @@ const Toast = _ref => {
|
|
|
3079
3077
|
onClick: onClick,
|
|
3080
3078
|
__self: undefined,
|
|
3081
3079
|
__source: {
|
|
3082
|
-
fileName: _jsxFileName$
|
|
3080
|
+
fileName: _jsxFileName$_,
|
|
3083
3081
|
lineNumber: 230,
|
|
3084
3082
|
columnNumber: 11
|
|
3085
3083
|
}
|
|
@@ -3087,7 +3085,7 @@ const Toast = _ref => {
|
|
|
3087
3085
|
direction: "column",
|
|
3088
3086
|
__self: undefined,
|
|
3089
3087
|
__source: {
|
|
3090
|
-
fileName: _jsxFileName$
|
|
3088
|
+
fileName: _jsxFileName$_,
|
|
3091
3089
|
lineNumber: 231,
|
|
3092
3090
|
columnNumber: 13
|
|
3093
3091
|
}
|
|
@@ -3095,7 +3093,7 @@ const Toast = _ref => {
|
|
|
3095
3093
|
direction: "row",
|
|
3096
3094
|
__self: undefined,
|
|
3097
3095
|
__source: {
|
|
3098
|
-
fileName: _jsxFileName$
|
|
3096
|
+
fileName: _jsxFileName$_,
|
|
3099
3097
|
lineNumber: 232,
|
|
3100
3098
|
columnNumber: 15
|
|
3101
3099
|
}
|
|
@@ -3103,7 +3101,7 @@ const Toast = _ref => {
|
|
|
3103
3101
|
variant: variant,
|
|
3104
3102
|
__self: undefined,
|
|
3105
3103
|
__source: {
|
|
3106
|
-
fileName: _jsxFileName$
|
|
3104
|
+
fileName: _jsxFileName$_,
|
|
3107
3105
|
lineNumber: 233,
|
|
3108
3106
|
columnNumber: 17
|
|
3109
3107
|
}
|
|
@@ -3115,7 +3113,7 @@ const Toast = _ref => {
|
|
|
3115
3113
|
},
|
|
3116
3114
|
__self: undefined,
|
|
3117
3115
|
__source: {
|
|
3118
|
-
fileName: _jsxFileName$
|
|
3116
|
+
fileName: _jsxFileName$_,
|
|
3119
3117
|
lineNumber: 234,
|
|
3120
3118
|
columnNumber: 17
|
|
3121
3119
|
}
|
|
@@ -3123,7 +3121,7 @@ const Toast = _ref => {
|
|
|
3123
3121
|
justify: "between",
|
|
3124
3122
|
__self: undefined,
|
|
3125
3123
|
__source: {
|
|
3126
|
-
fileName: _jsxFileName$
|
|
3124
|
+
fileName: _jsxFileName$_,
|
|
3127
3125
|
lineNumber: 242,
|
|
3128
3126
|
columnNumber: 21
|
|
3129
3127
|
}
|
|
@@ -3138,7 +3136,7 @@ const Toast = _ref => {
|
|
|
3138
3136
|
},
|
|
3139
3137
|
__self: undefined,
|
|
3140
3138
|
__source: {
|
|
3141
|
-
fileName: _jsxFileName$
|
|
3139
|
+
fileName: _jsxFileName$_,
|
|
3142
3140
|
lineNumber: 243,
|
|
3143
3141
|
columnNumber: 23
|
|
3144
3142
|
}
|
|
@@ -3147,7 +3145,7 @@ const Toast = _ref => {
|
|
|
3147
3145
|
color: "secondary",
|
|
3148
3146
|
__self: undefined,
|
|
3149
3147
|
__source: {
|
|
3150
|
-
fileName: _jsxFileName$
|
|
3148
|
+
fileName: _jsxFileName$_,
|
|
3151
3149
|
lineNumber: 257,
|
|
3152
3150
|
columnNumber: 19
|
|
3153
3151
|
}
|
|
@@ -3162,7 +3160,7 @@ const Toast = _ref => {
|
|
|
3162
3160
|
hasTitle: !!title,
|
|
3163
3161
|
__self: undefined,
|
|
3164
3162
|
__source: {
|
|
3165
|
-
fileName: _jsxFileName$
|
|
3163
|
+
fileName: _jsxFileName$_,
|
|
3166
3164
|
lineNumber: 261,
|
|
3167
3165
|
columnNumber: 17
|
|
3168
3166
|
}
|
|
@@ -3171,7 +3169,7 @@ const Toast = _ref => {
|
|
|
3171
3169
|
size: "16px",
|
|
3172
3170
|
__self: undefined,
|
|
3173
3171
|
__source: {
|
|
3174
|
-
fileName: _jsxFileName$
|
|
3172
|
+
fileName: _jsxFileName$_,
|
|
3175
3173
|
lineNumber: 271,
|
|
3176
3174
|
columnNumber: 19
|
|
3177
3175
|
}
|
|
@@ -3186,7 +3184,7 @@ const Toast = _ref => {
|
|
|
3186
3184
|
},
|
|
3187
3185
|
__self: undefined,
|
|
3188
3186
|
__source: {
|
|
3189
|
-
fileName: _jsxFileName$
|
|
3187
|
+
fileName: _jsxFileName$_,
|
|
3190
3188
|
lineNumber: 275,
|
|
3191
3189
|
columnNumber: 17
|
|
3192
3190
|
}
|
|
@@ -3210,7 +3208,7 @@ Toast.defaultProps = {
|
|
|
3210
3208
|
|
|
3211
3209
|
const ToastContext = /*#__PURE__*/React.createContext({});
|
|
3212
3210
|
|
|
3213
|
-
var _jsxFileName$
|
|
3211
|
+
var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
|
|
3214
3212
|
const ToastBox = styled(Flex$1, {
|
|
3215
3213
|
position: 'fixed',
|
|
3216
3214
|
variants: {
|
|
@@ -3258,7 +3256,7 @@ const ToastContainer = ({
|
|
|
3258
3256
|
},
|
|
3259
3257
|
__self: undefined,
|
|
3260
3258
|
__source: {
|
|
3261
|
-
fileName: _jsxFileName$
|
|
3259
|
+
fileName: _jsxFileName$Z,
|
|
3262
3260
|
lineNumber: 43,
|
|
3263
3261
|
columnNumber: 5
|
|
3264
3262
|
}
|
|
@@ -3266,7 +3264,7 @@ const ToastContainer = ({
|
|
|
3266
3264
|
position: position,
|
|
3267
3265
|
__self: undefined,
|
|
3268
3266
|
__source: {
|
|
3269
|
-
fileName: _jsxFileName$
|
|
3267
|
+
fileName: _jsxFileName$Z,
|
|
3270
3268
|
lineNumber: 44,
|
|
3271
3269
|
columnNumber: 7
|
|
3272
3270
|
}
|
|
@@ -3277,7 +3275,7 @@ const ToastContainer = ({
|
|
|
3277
3275
|
}, toast, {
|
|
3278
3276
|
__self: undefined,
|
|
3279
3277
|
__source: {
|
|
3280
|
-
fileName: _jsxFileName$
|
|
3278
|
+
fileName: _jsxFileName$Z,
|
|
3281
3279
|
lineNumber: 46,
|
|
3282
3280
|
columnNumber: 18
|
|
3283
3281
|
}
|
|
@@ -3285,8 +3283,8 @@ const ToastContainer = ({
|
|
|
3285
3283
|
})));
|
|
3286
3284
|
};
|
|
3287
3285
|
|
|
3288
|
-
const _excluded$
|
|
3289
|
-
var _jsxFileName$
|
|
3286
|
+
const _excluded$y = ["id"];
|
|
3287
|
+
var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
|
|
3290
3288
|
let toastCount = 0;
|
|
3291
3289
|
|
|
3292
3290
|
const ToastProvider = ({
|
|
@@ -3298,7 +3296,7 @@ const ToastProvider = ({
|
|
|
3298
3296
|
const {
|
|
3299
3297
|
id
|
|
3300
3298
|
} = toast,
|
|
3301
|
-
rest = _objectWithoutPropertiesLoose(toast, _excluded$
|
|
3299
|
+
rest = _objectWithoutPropertiesLoose(toast, _excluded$y); // eslint-disable-next-line no-plusplus
|
|
3302
3300
|
|
|
3303
3301
|
|
|
3304
3302
|
const uniqueId = ++toastCount;
|
|
@@ -3328,7 +3326,7 @@ const ToastProvider = ({
|
|
|
3328
3326
|
},
|
|
3329
3327
|
__self: undefined,
|
|
3330
3328
|
__source: {
|
|
3331
|
-
fileName: _jsxFileName$
|
|
3329
|
+
fileName: _jsxFileName$Y,
|
|
3332
3330
|
lineNumber: 43,
|
|
3333
3331
|
columnNumber: 5
|
|
3334
3332
|
}
|
|
@@ -3337,7 +3335,7 @@ const ToastProvider = ({
|
|
|
3337
3335
|
position: TOP_RIGHT_POSITION,
|
|
3338
3336
|
__self: undefined,
|
|
3339
3337
|
__source: {
|
|
3340
|
-
fileName: _jsxFileName$
|
|
3338
|
+
fileName: _jsxFileName$Y,
|
|
3341
3339
|
lineNumber: 45,
|
|
3342
3340
|
columnNumber: 7
|
|
3343
3341
|
}
|
|
@@ -3346,7 +3344,7 @@ const ToastProvider = ({
|
|
|
3346
3344
|
position: TOP_LEFT_POSITION,
|
|
3347
3345
|
__self: undefined,
|
|
3348
3346
|
__source: {
|
|
3349
|
-
fileName: _jsxFileName$
|
|
3347
|
+
fileName: _jsxFileName$Y,
|
|
3350
3348
|
lineNumber: 49,
|
|
3351
3349
|
columnNumber: 7
|
|
3352
3350
|
}
|
|
@@ -3355,7 +3353,7 @@ const ToastProvider = ({
|
|
|
3355
3353
|
position: BOTTOM_RIGHT_POSITION,
|
|
3356
3354
|
__self: undefined,
|
|
3357
3355
|
__source: {
|
|
3358
|
-
fileName: _jsxFileName$
|
|
3356
|
+
fileName: _jsxFileName$Y,
|
|
3359
3357
|
lineNumber: 53,
|
|
3360
3358
|
columnNumber: 7
|
|
3361
3359
|
}
|
|
@@ -3364,14 +3362,14 @@ const ToastProvider = ({
|
|
|
3364
3362
|
position: BOTTOM_LEFT_POSITION,
|
|
3365
3363
|
__self: undefined,
|
|
3366
3364
|
__source: {
|
|
3367
|
-
fileName: _jsxFileName$
|
|
3365
|
+
fileName: _jsxFileName$Y,
|
|
3368
3366
|
lineNumber: 57,
|
|
3369
3367
|
columnNumber: 7
|
|
3370
3368
|
}
|
|
3371
3369
|
}));
|
|
3372
3370
|
};
|
|
3373
3371
|
|
|
3374
|
-
var _jsxFileName$
|
|
3372
|
+
var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
|
|
3375
3373
|
|
|
3376
3374
|
function MajooProvider({
|
|
3377
3375
|
children,
|
|
@@ -3384,14 +3382,14 @@ function MajooProvider({
|
|
|
3384
3382
|
theme: theme$1,
|
|
3385
3383
|
__self: this,
|
|
3386
3384
|
__source: {
|
|
3387
|
-
fileName: _jsxFileName$
|
|
3385
|
+
fileName: _jsxFileName$X,
|
|
3388
3386
|
lineNumber: 15,
|
|
3389
3387
|
columnNumber: 10
|
|
3390
3388
|
}
|
|
3391
3389
|
}, /*#__PURE__*/React__default.createElement(ToastProvider, {
|
|
3392
3390
|
__self: this,
|
|
3393
3391
|
__source: {
|
|
3394
|
-
fileName: _jsxFileName$
|
|
3392
|
+
fileName: _jsxFileName$X,
|
|
3395
3393
|
lineNumber: 16,
|
|
3396
3394
|
columnNumber: 5
|
|
3397
3395
|
}
|
|
@@ -3405,8 +3403,8 @@ MajooProvider.propTypes = {
|
|
|
3405
3403
|
disableGlobalStyle: PropTypes.bool
|
|
3406
3404
|
};
|
|
3407
3405
|
|
|
3408
|
-
const _excluded$
|
|
3409
|
-
var _jsxFileName$
|
|
3406
|
+
const _excluded$x = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock"];
|
|
3407
|
+
var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/banner/Banner.js";
|
|
3410
3408
|
const Context$2 = /*#__PURE__*/React.createContext();
|
|
3411
3409
|
const StyledBanner = styled(Flex$1, {
|
|
3412
3410
|
maxWidth: '100%',
|
|
@@ -3492,19 +3490,19 @@ const BannerTitle = props => /*#__PURE__*/React.createElement(Title$2, _extends(
|
|
|
3492
3490
|
}, props, {
|
|
3493
3491
|
__self: undefined,
|
|
3494
3492
|
__source: {
|
|
3495
|
-
fileName: _jsxFileName$
|
|
3493
|
+
fileName: _jsxFileName$W,
|
|
3496
3494
|
lineNumber: 95,
|
|
3497
3495
|
columnNumber: 3
|
|
3498
3496
|
}
|
|
3499
3497
|
}), props.children);
|
|
3500
3498
|
BannerTitle.propTypes = {
|
|
3501
|
-
/**
|
|
3502
|
-
Additional styles of title
|
|
3499
|
+
/**
|
|
3500
|
+
Additional styles of title
|
|
3503
3501
|
*/
|
|
3504
3502
|
css: PropTypes.object,
|
|
3505
3503
|
|
|
3506
|
-
/**
|
|
3507
|
-
Title of the Banner to be displayed
|
|
3504
|
+
/**
|
|
3505
|
+
Title of the Banner to be displayed
|
|
3508
3506
|
*/
|
|
3509
3507
|
children: PropTypes.string
|
|
3510
3508
|
};
|
|
@@ -3514,19 +3512,19 @@ const BannerDescription = props => /*#__PURE__*/React.createElement(Description,
|
|
|
3514
3512
|
}, props, {
|
|
3515
3513
|
__self: undefined,
|
|
3516
3514
|
__source: {
|
|
3517
|
-
fileName: _jsxFileName$
|
|
3515
|
+
fileName: _jsxFileName$W,
|
|
3518
3516
|
lineNumber: 112,
|
|
3519
3517
|
columnNumber: 3
|
|
3520
3518
|
}
|
|
3521
3519
|
}), props.children);
|
|
3522
3520
|
BannerDescription.propTypes = {
|
|
3523
|
-
/**
|
|
3524
|
-
Additional styles of description
|
|
3521
|
+
/**
|
|
3522
|
+
Additional styles of description
|
|
3525
3523
|
*/
|
|
3526
3524
|
css: PropTypes.object,
|
|
3527
3525
|
|
|
3528
|
-
/**
|
|
3529
|
-
Description of the Banner to be displayed
|
|
3526
|
+
/**
|
|
3527
|
+
Description of the Banner to be displayed
|
|
3530
3528
|
*/
|
|
3531
3529
|
children: PropTypes.string
|
|
3532
3530
|
};
|
|
@@ -3537,7 +3535,7 @@ const BannerLink = ({
|
|
|
3537
3535
|
}) => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
3538
3536
|
__self: undefined,
|
|
3539
3537
|
__source: {
|
|
3540
|
-
fileName: _jsxFileName$
|
|
3538
|
+
fileName: _jsxFileName$W,
|
|
3541
3539
|
lineNumber: 129,
|
|
3542
3540
|
columnNumber: 3
|
|
3543
3541
|
}
|
|
@@ -3549,24 +3547,24 @@ const BannerLink = ({
|
|
|
3549
3547
|
},
|
|
3550
3548
|
__self: undefined,
|
|
3551
3549
|
__source: {
|
|
3552
|
-
fileName: _jsxFileName$
|
|
3550
|
+
fileName: _jsxFileName$W,
|
|
3553
3551
|
lineNumber: 131,
|
|
3554
3552
|
columnNumber: 7
|
|
3555
3553
|
}
|
|
3556
3554
|
}, children));
|
|
3557
3555
|
BannerLink.propTypes = {
|
|
3558
|
-
/**
|
|
3559
|
-
The purpose of a clickable link, presented in url
|
|
3556
|
+
/**
|
|
3557
|
+
The purpose of a clickable link, presented in url
|
|
3560
3558
|
*/
|
|
3561
3559
|
link: PropTypes.string,
|
|
3562
3560
|
|
|
3563
|
-
/**
|
|
3564
|
-
Text of BannerLink to be displayed
|
|
3561
|
+
/**
|
|
3562
|
+
Text of BannerLink to be displayed
|
|
3565
3563
|
*/
|
|
3566
3564
|
children: PropTypes.string,
|
|
3567
3565
|
|
|
3568
|
-
/**
|
|
3569
|
-
Additional theme of BannerLink is presented by color variants
|
|
3566
|
+
/**
|
|
3567
|
+
Additional theme of BannerLink is presented by color variants
|
|
3570
3568
|
*/
|
|
3571
3569
|
variant: PropTypes.oneOf(['info', 'warning', 'success', 'failed'])
|
|
3572
3570
|
};
|
|
@@ -3576,7 +3574,7 @@ BannerLink.defaultProps = {
|
|
|
3576
3574
|
const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
3577
3575
|
__self: undefined,
|
|
3578
3576
|
__source: {
|
|
3579
|
-
fileName: _jsxFileName$
|
|
3577
|
+
fileName: _jsxFileName$W,
|
|
3580
3578
|
lineNumber: 158,
|
|
3581
3579
|
columnNumber: 3
|
|
3582
3580
|
}
|
|
@@ -3588,7 +3586,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
3588
3586
|
},
|
|
3589
3587
|
__self: undefined,
|
|
3590
3588
|
__source: {
|
|
3591
|
-
fileName: _jsxFileName$
|
|
3589
|
+
fileName: _jsxFileName$W,
|
|
3592
3590
|
lineNumber: 160,
|
|
3593
3591
|
columnNumber: 7
|
|
3594
3592
|
}
|
|
@@ -3597,7 +3595,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
3597
3595
|
size: "16px",
|
|
3598
3596
|
__self: undefined,
|
|
3599
3597
|
__source: {
|
|
3600
|
-
fileName: _jsxFileName$
|
|
3598
|
+
fileName: _jsxFileName$W,
|
|
3601
3599
|
lineNumber: 167,
|
|
3602
3600
|
columnNumber: 9
|
|
3603
3601
|
}
|
|
@@ -3607,7 +3605,7 @@ const SingleTagBanner = props => {
|
|
|
3607
3605
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
3608
3606
|
__self: undefined,
|
|
3609
3607
|
__source: {
|
|
3610
|
-
fileName: _jsxFileName$
|
|
3608
|
+
fileName: _jsxFileName$W,
|
|
3611
3609
|
lineNumber: 175,
|
|
3612
3610
|
columnNumber: 5
|
|
3613
3611
|
}
|
|
@@ -3617,7 +3615,7 @@ const SingleTagBanner = props => {
|
|
|
3617
3615
|
align: "end",
|
|
3618
3616
|
__self: undefined,
|
|
3619
3617
|
__source: {
|
|
3620
|
-
fileName: _jsxFileName$
|
|
3618
|
+
fileName: _jsxFileName$W,
|
|
3621
3619
|
lineNumber: 176,
|
|
3622
3620
|
columnNumber: 7
|
|
3623
3621
|
}
|
|
@@ -3630,21 +3628,21 @@ const SingleTagBanner = props => {
|
|
|
3630
3628
|
},
|
|
3631
3629
|
__self: undefined,
|
|
3632
3630
|
__source: {
|
|
3633
|
-
fileName: _jsxFileName$
|
|
3631
|
+
fileName: _jsxFileName$W,
|
|
3634
3632
|
lineNumber: 177,
|
|
3635
3633
|
columnNumber: 9
|
|
3636
3634
|
}
|
|
3637
3635
|
}, props.title && /*#__PURE__*/React.createElement(BannerTitle, {
|
|
3638
3636
|
__self: undefined,
|
|
3639
3637
|
__source: {
|
|
3640
|
-
fileName: _jsxFileName$
|
|
3638
|
+
fileName: _jsxFileName$W,
|
|
3641
3639
|
lineNumber: 185,
|
|
3642
3640
|
columnNumber: 27
|
|
3643
3641
|
}
|
|
3644
3642
|
}, props.title), props.description && /*#__PURE__*/React.createElement(BannerDescription, {
|
|
3645
3643
|
__self: undefined,
|
|
3646
3644
|
__source: {
|
|
3647
|
-
fileName: _jsxFileName$
|
|
3645
|
+
fileName: _jsxFileName$W,
|
|
3648
3646
|
lineNumber: 186,
|
|
3649
3647
|
columnNumber: 33
|
|
3650
3648
|
}
|
|
@@ -3653,7 +3651,7 @@ const SingleTagBanner = props => {
|
|
|
3653
3651
|
variant: props.variant,
|
|
3654
3652
|
__self: undefined,
|
|
3655
3653
|
__source: {
|
|
3656
|
-
fileName: _jsxFileName$
|
|
3654
|
+
fileName: _jsxFileName$W,
|
|
3657
3655
|
lineNumber: 189,
|
|
3658
3656
|
columnNumber: 11
|
|
3659
3657
|
}
|
|
@@ -3666,7 +3664,7 @@ const SingleTagBanner = props => {
|
|
|
3666
3664
|
closeCenter: !props.title && !props.link,
|
|
3667
3665
|
__self: undefined,
|
|
3668
3666
|
__source: {
|
|
3669
|
-
fileName: _jsxFileName$
|
|
3667
|
+
fileName: _jsxFileName$W,
|
|
3670
3668
|
lineNumber: 194,
|
|
3671
3669
|
columnNumber: 7
|
|
3672
3670
|
}
|
|
@@ -3675,7 +3673,7 @@ const SingleTagBanner = props => {
|
|
|
3675
3673
|
size: "16px",
|
|
3676
3674
|
__self: undefined,
|
|
3677
3675
|
__source: {
|
|
3678
|
-
fileName: _jsxFileName$
|
|
3676
|
+
fileName: _jsxFileName$W,
|
|
3679
3677
|
lineNumber: 202,
|
|
3680
3678
|
columnNumber: 9
|
|
3681
3679
|
}
|
|
@@ -3694,7 +3692,7 @@ const Banner = _ref => {
|
|
|
3694
3692
|
children,
|
|
3695
3693
|
bannerBlock
|
|
3696
3694
|
} = _ref,
|
|
3697
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3695
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
3698
3696
|
|
|
3699
3697
|
return /*#__PURE__*/React.createElement(StyledBanner, _extends({
|
|
3700
3698
|
variant: variant,
|
|
@@ -3704,7 +3702,7 @@ const Banner = _ref => {
|
|
|
3704
3702
|
}, rest, {
|
|
3705
3703
|
__self: undefined,
|
|
3706
3704
|
__source: {
|
|
3707
|
-
fileName: _jsxFileName$
|
|
3705
|
+
fileName: _jsxFileName$W,
|
|
3708
3706
|
lineNumber: 210,
|
|
3709
3707
|
columnNumber: 5
|
|
3710
3708
|
}
|
|
@@ -3721,7 +3719,7 @@ const Banner = _ref => {
|
|
|
3721
3719
|
},
|
|
3722
3720
|
__self: undefined,
|
|
3723
3721
|
__source: {
|
|
3724
|
-
fileName: _jsxFileName$
|
|
3722
|
+
fileName: _jsxFileName$W,
|
|
3725
3723
|
lineNumber: 212,
|
|
3726
3724
|
columnNumber: 9
|
|
3727
3725
|
}
|
|
@@ -3732,7 +3730,7 @@ const Banner = _ref => {
|
|
|
3732
3730
|
},
|
|
3733
3731
|
__self: undefined,
|
|
3734
3732
|
__source: {
|
|
3735
|
-
fileName: _jsxFileName$
|
|
3733
|
+
fileName: _jsxFileName$W,
|
|
3736
3734
|
lineNumber: 219,
|
|
3737
3735
|
columnNumber: 11
|
|
3738
3736
|
}
|
|
@@ -3746,7 +3744,7 @@ const Banner = _ref => {
|
|
|
3746
3744
|
onRemove: onRemove,
|
|
3747
3745
|
__self: undefined,
|
|
3748
3746
|
__source: {
|
|
3749
|
-
fileName: _jsxFileName$
|
|
3747
|
+
fileName: _jsxFileName$W,
|
|
3750
3748
|
lineNumber: 222,
|
|
3751
3749
|
columnNumber: 9
|
|
3752
3750
|
}
|
|
@@ -3757,43 +3755,43 @@ Banner.displayName = 'Banner';
|
|
|
3757
3755
|
BannerTitle.displayName = 'BannerTitle';
|
|
3758
3756
|
BannerDescription.displayName = 'BannerDescription';
|
|
3759
3757
|
Banner.propTypes = {
|
|
3760
|
-
/**
|
|
3761
|
-
Title of banner to be displayed
|
|
3758
|
+
/**
|
|
3759
|
+
Title of banner to be displayed
|
|
3762
3760
|
*/
|
|
3763
3761
|
title: PropTypes.string,
|
|
3764
3762
|
|
|
3765
|
-
/**
|
|
3766
|
-
Description of banner to be displayed
|
|
3763
|
+
/**
|
|
3764
|
+
Description of banner to be displayed
|
|
3767
3765
|
*/
|
|
3768
3766
|
description: PropTypes.string,
|
|
3769
3767
|
|
|
3770
|
-
/**
|
|
3771
|
-
The banner theme is presented in color variants
|
|
3768
|
+
/**
|
|
3769
|
+
The banner theme is presented in color variants
|
|
3772
3770
|
*/
|
|
3773
3771
|
variant: PropTypes.oneOf(['info', 'warning', 'success', 'failed']),
|
|
3774
3772
|
|
|
3775
|
-
/**
|
|
3776
|
-
The purpose of a clickable link, presented in url
|
|
3773
|
+
/**
|
|
3774
|
+
The purpose of a clickable link, presented in url
|
|
3777
3775
|
*/
|
|
3778
3776
|
link: PropTypes.string,
|
|
3779
3777
|
|
|
3780
|
-
/**
|
|
3781
|
-
Text of button link to be displayed
|
|
3778
|
+
/**
|
|
3779
|
+
Text of button link to be displayed
|
|
3782
3780
|
*/
|
|
3783
3781
|
linkText: PropTypes.string,
|
|
3784
3782
|
|
|
3785
|
-
/**
|
|
3786
|
-
Clickable event handler
|
|
3783
|
+
/**
|
|
3784
|
+
Clickable event handler
|
|
3787
3785
|
*/
|
|
3788
3786
|
onClick: PropTypes.func,
|
|
3789
3787
|
|
|
3790
|
-
/**
|
|
3791
|
-
Closable event handler
|
|
3788
|
+
/**
|
|
3789
|
+
Closable event handler
|
|
3792
3790
|
*/
|
|
3793
3791
|
onRemove: PropTypes.func,
|
|
3794
3792
|
|
|
3795
|
-
/**
|
|
3796
|
-
Block type banner to display in full width
|
|
3793
|
+
/**
|
|
3794
|
+
Block type banner to display in full width
|
|
3797
3795
|
*/
|
|
3798
3796
|
bannerBlock: PropTypes.bool
|
|
3799
3797
|
};
|
|
@@ -4089,8 +4087,8 @@ const Button$3 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
4089
4087
|
}), void 0);
|
|
4090
4088
|
});
|
|
4091
4089
|
|
|
4092
|
-
const _excluded$
|
|
4093
|
-
var _jsxFileName$
|
|
4090
|
+
const _excluded$w = ["className", "children", "color", "shadow", "radius", "padding", "title", "width", "textColor", "icon"];
|
|
4091
|
+
var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/card/Card.js";
|
|
4094
4092
|
const CardComponent = styled('div', {
|
|
4095
4093
|
padding: '12px',
|
|
4096
4094
|
height: 'auto',
|
|
@@ -4227,7 +4225,7 @@ const Card$1 = _ref => {
|
|
|
4227
4225
|
textColor,
|
|
4228
4226
|
icon
|
|
4229
4227
|
} = _ref,
|
|
4230
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4228
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
4231
4229
|
|
|
4232
4230
|
return /*#__PURE__*/React__default.createElement(CardComponent, {
|
|
4233
4231
|
className: className,
|
|
@@ -4240,7 +4238,7 @@ const Card$1 = _ref => {
|
|
|
4240
4238
|
}, props.css),
|
|
4241
4239
|
__self: undefined,
|
|
4242
4240
|
__source: {
|
|
4243
|
-
fileName: _jsxFileName$
|
|
4241
|
+
fileName: _jsxFileName$V,
|
|
4244
4242
|
lineNumber: 102,
|
|
4245
4243
|
columnNumber: 5
|
|
4246
4244
|
}
|
|
@@ -4248,14 +4246,14 @@ const Card$1 = _ref => {
|
|
|
4248
4246
|
color: color,
|
|
4249
4247
|
__self: undefined,
|
|
4250
4248
|
__source: {
|
|
4251
|
-
fileName: _jsxFileName$
|
|
4249
|
+
fileName: _jsxFileName$V,
|
|
4252
4250
|
lineNumber: 113,
|
|
4253
4251
|
columnNumber: 7
|
|
4254
4252
|
}
|
|
4255
4253
|
}), title !== '' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, icon !== undefined ? /*#__PURE__*/React__default.createElement(StyledTitle$2, {
|
|
4256
4254
|
__self: undefined,
|
|
4257
4255
|
__source: {
|
|
4258
|
-
fileName: _jsxFileName$
|
|
4256
|
+
fileName: _jsxFileName$V,
|
|
4259
4257
|
lineNumber: 117,
|
|
4260
4258
|
columnNumber: 13
|
|
4261
4259
|
}
|
|
@@ -4264,14 +4262,14 @@ const Card$1 = _ref => {
|
|
|
4264
4262
|
iconColor: color,
|
|
4265
4263
|
__self: undefined,
|
|
4266
4264
|
__source: {
|
|
4267
|
-
fileName: _jsxFileName$
|
|
4265
|
+
fileName: _jsxFileName$V,
|
|
4268
4266
|
lineNumber: 118,
|
|
4269
4267
|
columnNumber: 15
|
|
4270
4268
|
}
|
|
4271
4269
|
}, icon), title) : /*#__PURE__*/React__default.createElement(StyledTitle$2, {
|
|
4272
4270
|
__self: undefined,
|
|
4273
4271
|
__source: {
|
|
4274
|
-
fileName: _jsxFileName$
|
|
4272
|
+
fileName: _jsxFileName$V,
|
|
4275
4273
|
lineNumber: 124,
|
|
4276
4274
|
columnNumber: 13
|
|
4277
4275
|
}
|
|
@@ -4297,8 +4295,8 @@ Card$1.defaultProps = {
|
|
|
4297
4295
|
title: ''
|
|
4298
4296
|
};
|
|
4299
4297
|
|
|
4300
|
-
const _excluded$
|
|
4301
|
-
var _jsxFileName$
|
|
4298
|
+
const _excluded$v = ["children"];
|
|
4299
|
+
var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
|
|
4302
4300
|
const BreadcrumbStyle = styled('nav', {
|
|
4303
4301
|
wordWrap: 'break-word',
|
|
4304
4302
|
'& li+li:before': {
|
|
@@ -4344,7 +4342,7 @@ const BreadcrumbLinkBase = props => {
|
|
|
4344
4342
|
return /*#__PURE__*/React__default.createElement(BreadcrumbLinkStyle, _extends({}, props, aria, {
|
|
4345
4343
|
__self: undefined,
|
|
4346
4344
|
__source: {
|
|
4347
|
-
fileName: _jsxFileName$
|
|
4345
|
+
fileName: _jsxFileName$U,
|
|
4348
4346
|
lineNumber: 42,
|
|
4349
4347
|
columnNumber: 10
|
|
4350
4348
|
}
|
|
@@ -4355,20 +4353,20 @@ const BreadcrumbBase = _ref => {
|
|
|
4355
4353
|
let {
|
|
4356
4354
|
children
|
|
4357
4355
|
} = _ref,
|
|
4358
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4356
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4359
4357
|
|
|
4360
4358
|
return /*#__PURE__*/React__default.createElement(BreadcrumbStyle, _extends({}, rest, {
|
|
4361
4359
|
"aria-label": "breadcrumb",
|
|
4362
4360
|
__self: undefined,
|
|
4363
4361
|
__source: {
|
|
4364
|
-
fileName: _jsxFileName$
|
|
4362
|
+
fileName: _jsxFileName$U,
|
|
4365
4363
|
lineNumber: 47,
|
|
4366
4364
|
columnNumber: 5
|
|
4367
4365
|
}
|
|
4368
4366
|
}), /*#__PURE__*/React__default.createElement(Ol, {
|
|
4369
4367
|
__self: undefined,
|
|
4370
4368
|
__source: {
|
|
4371
|
-
fileName: _jsxFileName$
|
|
4369
|
+
fileName: _jsxFileName$U,
|
|
4372
4370
|
lineNumber: 48,
|
|
4373
4371
|
columnNumber: 7
|
|
4374
4372
|
}
|
|
@@ -4573,8 +4571,8 @@ Badge.defaultProps = {
|
|
|
4573
4571
|
};
|
|
4574
4572
|
Badge.displayName = 'Badge';
|
|
4575
4573
|
|
|
4576
|
-
const _excluded$
|
|
4577
|
-
var _jsxFileName$
|
|
4574
|
+
const _excluded$u = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
|
|
4575
|
+
var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
|
|
4578
4576
|
const StyledAvatar = styled(AvatarPrimitive.Root, {
|
|
4579
4577
|
width: '32px',
|
|
4580
4578
|
height: '32px',
|
|
@@ -4618,7 +4616,7 @@ function Avatar(_ref) {
|
|
|
4618
4616
|
onClick,
|
|
4619
4617
|
css
|
|
4620
4618
|
} = _ref,
|
|
4621
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4619
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4622
4620
|
|
|
4623
4621
|
return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends({
|
|
4624
4622
|
className: className,
|
|
@@ -4627,7 +4625,7 @@ function Avatar(_ref) {
|
|
|
4627
4625
|
}, props, {
|
|
4628
4626
|
__self: this,
|
|
4629
4627
|
__source: {
|
|
4630
|
-
fileName: _jsxFileName$
|
|
4628
|
+
fileName: _jsxFileName$T,
|
|
4631
4629
|
lineNumber: 46,
|
|
4632
4630
|
columnNumber: 5
|
|
4633
4631
|
}
|
|
@@ -4637,7 +4635,7 @@ function Avatar(_ref) {
|
|
|
4637
4635
|
onLoadingStatusChange: onLoadingStatusChange,
|
|
4638
4636
|
__self: this,
|
|
4639
4637
|
__source: {
|
|
4640
|
-
fileName: _jsxFileName$
|
|
4638
|
+
fileName: _jsxFileName$T,
|
|
4641
4639
|
lineNumber: 47,
|
|
4642
4640
|
columnNumber: 21
|
|
4643
4641
|
}
|
|
@@ -4645,21 +4643,21 @@ function Avatar(_ref) {
|
|
|
4645
4643
|
delayMs: delayMs,
|
|
4646
4644
|
__self: this,
|
|
4647
4645
|
__source: {
|
|
4648
|
-
fileName: _jsxFileName$
|
|
4646
|
+
fileName: _jsxFileName$T,
|
|
4649
4647
|
lineNumber: 48,
|
|
4650
4648
|
columnNumber: 7
|
|
4651
4649
|
}
|
|
4652
4650
|
}, children !== undefined ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
4653
4651
|
__self: this,
|
|
4654
4652
|
__source: {
|
|
4655
|
-
fileName: _jsxFileName$
|
|
4653
|
+
fileName: _jsxFileName$T,
|
|
4656
4654
|
lineNumber: 52,
|
|
4657
4655
|
columnNumber: 11
|
|
4658
4656
|
}
|
|
4659
4657
|
}, /*#__PURE__*/React__default.createElement(UserFilled, {
|
|
4660
4658
|
__self: this,
|
|
4661
4659
|
__source: {
|
|
4662
|
-
fileName: _jsxFileName$
|
|
4660
|
+
fileName: _jsxFileName$T,
|
|
4663
4661
|
lineNumber: 53,
|
|
4664
4662
|
columnNumber: 13
|
|
4665
4663
|
}
|
|
@@ -4676,8 +4674,8 @@ Avatar.defaultProps = {
|
|
|
4676
4674
|
delayMs: 0
|
|
4677
4675
|
};
|
|
4678
4676
|
|
|
4679
|
-
const _excluded$
|
|
4680
|
-
var _jsxFileName$
|
|
4677
|
+
const _excluded$t = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
|
|
4678
|
+
var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
|
|
4681
4679
|
const ContainerFallback = styled(Flex$1, {
|
|
4682
4680
|
boxSizing: 'border-box',
|
|
4683
4681
|
border: '2px dashed #C0C4C4',
|
|
@@ -4726,7 +4724,7 @@ function Image(_ref) {
|
|
|
4726
4724
|
cssFallback,
|
|
4727
4725
|
rounded
|
|
4728
4726
|
} = _ref,
|
|
4729
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4727
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
4730
4728
|
|
|
4731
4729
|
if (src || fallback) {
|
|
4732
4730
|
return /*#__PURE__*/React__default.createElement(StyledImage, _extends({
|
|
@@ -4743,7 +4741,7 @@ function Image(_ref) {
|
|
|
4743
4741
|
}, props, {
|
|
4744
4742
|
__self: this,
|
|
4745
4743
|
__source: {
|
|
4746
|
-
fileName: _jsxFileName$
|
|
4744
|
+
fileName: _jsxFileName$S,
|
|
4747
4745
|
lineNumber: 59,
|
|
4748
4746
|
columnNumber: 7
|
|
4749
4747
|
}
|
|
@@ -4759,14 +4757,14 @@ function Image(_ref) {
|
|
|
4759
4757
|
}, cssFallback),
|
|
4760
4758
|
__self: this,
|
|
4761
4759
|
__source: {
|
|
4762
|
-
fileName: _jsxFileName$
|
|
4760
|
+
fileName: _jsxFileName$S,
|
|
4763
4761
|
lineNumber: 73,
|
|
4764
4762
|
columnNumber: 7
|
|
4765
4763
|
}
|
|
4766
4764
|
}, /*#__PURE__*/React__default.createElement(TextFallback, {
|
|
4767
4765
|
__self: this,
|
|
4768
4766
|
__source: {
|
|
4769
|
-
fileName: _jsxFileName$
|
|
4767
|
+
fileName: _jsxFileName$S,
|
|
4770
4768
|
lineNumber: 74,
|
|
4771
4769
|
columnNumber: 9
|
|
4772
4770
|
}
|
|
@@ -4774,58 +4772,58 @@ function Image(_ref) {
|
|
|
4774
4772
|
}
|
|
4775
4773
|
}
|
|
4776
4774
|
Image.propTypes = {
|
|
4777
|
-
/**
|
|
4778
|
-
Additional className for img element.
|
|
4775
|
+
/**
|
|
4776
|
+
Additional className for img element.
|
|
4779
4777
|
*/
|
|
4780
4778
|
className: PropTypes.string,
|
|
4781
4779
|
|
|
4782
|
-
/**
|
|
4783
|
-
Which is used to specify the source of an image.
|
|
4780
|
+
/**
|
|
4781
|
+
Which is used to specify the source of an image.
|
|
4784
4782
|
*/
|
|
4785
4783
|
src: PropTypes.string,
|
|
4786
4784
|
|
|
4787
|
-
/**
|
|
4788
|
-
The written copy that appears in place of an image on a webpage if the image fails to load on a user's screen.
|
|
4785
|
+
/**
|
|
4786
|
+
The written copy that appears in place of an image on a webpage if the image fails to load on a user's screen.
|
|
4789
4787
|
*/
|
|
4790
4788
|
alt: PropTypes.string,
|
|
4791
4789
|
|
|
4792
|
-
/**
|
|
4793
|
-
Additional css for img element.
|
|
4790
|
+
/**
|
|
4791
|
+
Additional css for img element.
|
|
4794
4792
|
*/
|
|
4795
4793
|
css: PropTypes.object,
|
|
4796
4794
|
|
|
4797
|
-
/**
|
|
4798
|
-
Additional css for default fallback element.
|
|
4795
|
+
/**
|
|
4796
|
+
Additional css for default fallback element.
|
|
4799
4797
|
*/
|
|
4800
4798
|
cssFallback: PropTypes.object,
|
|
4801
4799
|
|
|
4802
|
-
/**
|
|
4803
|
-
Custom width of img element.
|
|
4800
|
+
/**
|
|
4801
|
+
Custom width of img element.
|
|
4804
4802
|
*/
|
|
4805
4803
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
4806
4804
|
|
|
4807
|
-
/**
|
|
4808
|
-
Custom height of img element.
|
|
4805
|
+
/**
|
|
4806
|
+
Custom height of img element.
|
|
4809
4807
|
*/
|
|
4810
4808
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
4811
4809
|
|
|
4812
|
-
/**
|
|
4813
|
-
Set image to circle.
|
|
4810
|
+
/**
|
|
4811
|
+
Set image to circle.
|
|
4814
4812
|
*/
|
|
4815
4813
|
rounded: PropTypes.bool,
|
|
4816
4814
|
|
|
4817
|
-
/**
|
|
4818
|
-
Used to specify how an <img> should be resized to fit its container.
|
|
4815
|
+
/**
|
|
4816
|
+
Used to specify how an <img> should be resized to fit its container.
|
|
4819
4817
|
*/
|
|
4820
4818
|
objectFit: PropTypes.string,
|
|
4821
4819
|
|
|
4822
|
-
/**
|
|
4823
|
-
Custom fallback if image url doesn't exist.
|
|
4820
|
+
/**
|
|
4821
|
+
Custom fallback if image url doesn't exist.
|
|
4824
4822
|
*/
|
|
4825
4823
|
fallback: PropTypes.string,
|
|
4826
4824
|
|
|
4827
|
-
/**
|
|
4828
|
-
Custom fallback title for default fallback.
|
|
4825
|
+
/**
|
|
4826
|
+
Custom fallback title for default fallback.
|
|
4829
4827
|
*/
|
|
4830
4828
|
fallbackTitle: PropTypes.string
|
|
4831
4829
|
};
|
|
@@ -4834,8 +4832,8 @@ Image.defaultProps = {
|
|
|
4834
4832
|
fallbackTitle: 'Tidak ada foto'
|
|
4835
4833
|
};
|
|
4836
4834
|
|
|
4837
|
-
const _excluded$
|
|
4838
|
-
var _jsxFileName$
|
|
4835
|
+
const _excluded$s = ["children", "label", "color", "css", "withClick", "side", "align"];
|
|
4836
|
+
var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
|
|
4839
4837
|
const {
|
|
4840
4838
|
zIndices: zIndices$1
|
|
4841
4839
|
} = foundations;
|
|
@@ -4949,13 +4947,13 @@ const Tooltip$1 = _ref => {
|
|
|
4949
4947
|
side,
|
|
4950
4948
|
align
|
|
4951
4949
|
} = _ref,
|
|
4952
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4950
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
4953
4951
|
|
|
4954
4952
|
const [open, setOpen] = useState(false);
|
|
4955
4953
|
return /*#__PURE__*/React__default.createElement(Provider, {
|
|
4956
4954
|
__self: undefined,
|
|
4957
4955
|
__source: {
|
|
4958
|
-
fileName: _jsxFileName$
|
|
4956
|
+
fileName: _jsxFileName$R,
|
|
4959
4957
|
lineNumber: 91,
|
|
4960
4958
|
columnNumber: 5
|
|
4961
4959
|
}
|
|
@@ -4963,7 +4961,7 @@ const Tooltip$1 = _ref => {
|
|
|
4963
4961
|
open: withClick ? open : undefined,
|
|
4964
4962
|
__self: undefined,
|
|
4965
4963
|
__source: {
|
|
4966
|
-
fileName: _jsxFileName$
|
|
4964
|
+
fileName: _jsxFileName$R,
|
|
4967
4965
|
lineNumber: 92,
|
|
4968
4966
|
columnNumber: 7
|
|
4969
4967
|
}
|
|
@@ -4971,7 +4969,7 @@ const Tooltip$1 = _ref => {
|
|
|
4971
4969
|
asChild: true,
|
|
4972
4970
|
__self: undefined,
|
|
4973
4971
|
__source: {
|
|
4974
|
-
fileName: _jsxFileName$
|
|
4972
|
+
fileName: _jsxFileName$R,
|
|
4975
4973
|
lineNumber: 93,
|
|
4976
4974
|
columnNumber: 9
|
|
4977
4975
|
}
|
|
@@ -4979,14 +4977,14 @@ const Tooltip$1 = _ref => {
|
|
|
4979
4977
|
onClick: () => withClick ? setOpen(!open) : undefined,
|
|
4980
4978
|
__self: undefined,
|
|
4981
4979
|
__source: {
|
|
4982
|
-
fileName: _jsxFileName$
|
|
4980
|
+
fileName: _jsxFileName$R,
|
|
4983
4981
|
lineNumber: 94,
|
|
4984
4982
|
columnNumber: 11
|
|
4985
4983
|
}
|
|
4986
4984
|
}, children)), /*#__PURE__*/React__default.createElement(TooltipPrimitive.Portal, {
|
|
4987
4985
|
__self: undefined,
|
|
4988
4986
|
__source: {
|
|
4989
|
-
fileName: _jsxFileName$
|
|
4987
|
+
fileName: _jsxFileName$R,
|
|
4990
4988
|
lineNumber: 96,
|
|
4991
4989
|
columnNumber: 9
|
|
4992
4990
|
}
|
|
@@ -4997,7 +4995,7 @@ const Tooltip$1 = _ref => {
|
|
|
4997
4995
|
css: color === 'dark' ? Object.assign({}, dark, css) : Object.assign({}, ligth, css),
|
|
4998
4996
|
__self: undefined,
|
|
4999
4997
|
__source: {
|
|
5000
|
-
fileName: _jsxFileName$
|
|
4998
|
+
fileName: _jsxFileName$R,
|
|
5001
4999
|
lineNumber: 97,
|
|
5002
5000
|
columnNumber: 11
|
|
5003
5001
|
}
|
|
@@ -5006,7 +5004,7 @@ const Tooltip$1 = _ref => {
|
|
|
5006
5004
|
css: color === 'dark' ? darkArrow : lightArrow,
|
|
5007
5005
|
__self: undefined,
|
|
5008
5006
|
__source: {
|
|
5009
|
-
fileName: _jsxFileName$
|
|
5007
|
+
fileName: _jsxFileName$R,
|
|
5010
5008
|
lineNumber: 104,
|
|
5011
5009
|
columnNumber: 13
|
|
5012
5010
|
}
|
|
@@ -5028,15 +5026,15 @@ Tooltip$1.defaultProps = {
|
|
|
5028
5026
|
children: /*#__PURE__*/React__default.createElement("div", {
|
|
5029
5027
|
__self: undefined,
|
|
5030
5028
|
__source: {
|
|
5031
|
-
fileName: _jsxFileName$
|
|
5029
|
+
fileName: _jsxFileName$R,
|
|
5032
5030
|
lineNumber: 125,
|
|
5033
5031
|
columnNumber: 13
|
|
5034
5032
|
}
|
|
5035
5033
|
})
|
|
5036
5034
|
};
|
|
5037
5035
|
|
|
5038
|
-
const _excluded$
|
|
5039
|
-
var _jsxFileName$
|
|
5036
|
+
const _excluded$r = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
|
|
5037
|
+
var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
|
|
5040
5038
|
const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
|
|
5041
5039
|
position: 'relative',
|
|
5042
5040
|
overflow: 'hidden',
|
|
@@ -5154,7 +5152,7 @@ function Progress$1(_ref) {
|
|
|
5154
5152
|
rounded,
|
|
5155
5153
|
width
|
|
5156
5154
|
} = _ref,
|
|
5157
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5155
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
5158
5156
|
|
|
5159
5157
|
return /*#__PURE__*/React__default.createElement(StyledProgress$1, _extends({
|
|
5160
5158
|
className: className,
|
|
@@ -5170,7 +5168,7 @@ function Progress$1(_ref) {
|
|
|
5170
5168
|
}, props, {
|
|
5171
5169
|
__self: this,
|
|
5172
5170
|
__source: {
|
|
5173
|
-
fileName: _jsxFileName$
|
|
5171
|
+
fileName: _jsxFileName$Q,
|
|
5174
5172
|
lineNumber: 88,
|
|
5175
5173
|
columnNumber: 5
|
|
5176
5174
|
}
|
|
@@ -5183,7 +5181,7 @@ function Progress$1(_ref) {
|
|
|
5183
5181
|
},
|
|
5184
5182
|
__self: this,
|
|
5185
5183
|
__source: {
|
|
5186
|
-
fileName: _jsxFileName$
|
|
5184
|
+
fileName: _jsxFileName$Q,
|
|
5187
5185
|
lineNumber: 89,
|
|
5188
5186
|
columnNumber: 7
|
|
5189
5187
|
}
|
|
@@ -5206,33 +5204,49 @@ Progress$1.defaultProps = {
|
|
|
5206
5204
|
rounded: true
|
|
5207
5205
|
};
|
|
5208
5206
|
|
|
5209
|
-
const
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5207
|
+
const ConditionalWrapper = ({
|
|
5208
|
+
condition,
|
|
5209
|
+
wrapper,
|
|
5210
|
+
children
|
|
5211
|
+
}) => condition ? wrapper(children) : children;
|
|
5212
|
+
|
|
5213
|
+
const _excluded$q = ["count", "maxCount", "css"];
|
|
5214
|
+
var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
|
|
5215
|
+
const formLabelClassStyle = {
|
|
5216
|
+
alignItems: 'start !important',
|
|
5217
|
+
'& > div': {
|
|
5218
|
+
width: 175
|
|
5219
|
+
},
|
|
5220
|
+
'& > div > span[role="label"]': {
|
|
5221
|
+
color: '$textPrimary',
|
|
5222
|
+
fontSize: '$label',
|
|
5223
|
+
fontWeight: 500,
|
|
5224
|
+
lineHeight: '$label',
|
|
5225
|
+
letterSpacings: '$label',
|
|
5226
|
+
'@md': {
|
|
5216
5227
|
color: '$textPrimary',
|
|
5217
|
-
fontSize: '$
|
|
5218
|
-
fontWeight:
|
|
5219
|
-
lineHeight: '$
|
|
5220
|
-
letterSpacings: '$
|
|
5221
|
-
'@md': {
|
|
5222
|
-
color: '$textPrimary',
|
|
5223
|
-
fontSize: '$section-sub-title',
|
|
5224
|
-
fontWeight: 600,
|
|
5225
|
-
lineHeight: '$section-sub-title',
|
|
5226
|
-
letterSpacings: '$section-sub-title'
|
|
5227
|
-
}
|
|
5228
|
+
fontSize: '$section-sub-title',
|
|
5229
|
+
fontWeight: 600,
|
|
5230
|
+
lineHeight: '$section-sub-title',
|
|
5231
|
+
letterSpacings: '$section-sub-title'
|
|
5228
5232
|
}
|
|
5229
5233
|
}
|
|
5230
5234
|
};
|
|
5231
|
-
const
|
|
5235
|
+
const formLabelStyle = {
|
|
5236
|
+
'& > .form-label': Object.assign({}, formLabelClassStyle)
|
|
5237
|
+
};
|
|
5238
|
+
const StyledFormGroup = styled('div', {
|
|
5232
5239
|
display: 'grid',
|
|
5233
5240
|
gridTemplateColumns: '1fr',
|
|
5234
5241
|
rowGap: '$spacing-03',
|
|
5235
5242
|
variants: {
|
|
5243
|
+
withCounter: {
|
|
5244
|
+
true: {
|
|
5245
|
+
'& > .form-label': Object.assign({
|
|
5246
|
+
marginTop: '-24px'
|
|
5247
|
+
}, formLabelClassStyle)
|
|
5248
|
+
}
|
|
5249
|
+
},
|
|
5236
5250
|
responsive: {
|
|
5237
5251
|
input: Object.assign({
|
|
5238
5252
|
display: 'grid',
|
|
@@ -5294,10 +5308,64 @@ const FormGroup = styled('div', {
|
|
|
5294
5308
|
}
|
|
5295
5309
|
}
|
|
5296
5310
|
});
|
|
5311
|
+
|
|
5312
|
+
const FormGroup = _ref => {
|
|
5313
|
+
let {
|
|
5314
|
+
count,
|
|
5315
|
+
maxCount,
|
|
5316
|
+
css
|
|
5317
|
+
} = _ref,
|
|
5318
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
5319
|
+
|
|
5320
|
+
const withCounter = Boolean(count || maxCount);
|
|
5321
|
+
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
5322
|
+
condition: withCounter,
|
|
5323
|
+
wrapper: children => /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
5324
|
+
direction: "column",
|
|
5325
|
+
css: css,
|
|
5326
|
+
__self: undefined,
|
|
5327
|
+
__source: {
|
|
5328
|
+
fileName: _jsxFileName$P,
|
|
5329
|
+
lineNumber: 115,
|
|
5330
|
+
columnNumber: 9
|
|
5331
|
+
}
|
|
5332
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
5333
|
+
variant: "label",
|
|
5334
|
+
color: "disable",
|
|
5335
|
+
css: {
|
|
5336
|
+
alignSelf: 'end',
|
|
5337
|
+
marginBottom: '$spacing-03'
|
|
5338
|
+
},
|
|
5339
|
+
__self: undefined,
|
|
5340
|
+
__source: {
|
|
5341
|
+
fileName: _jsxFileName$P,
|
|
5342
|
+
lineNumber: 116,
|
|
5343
|
+
columnNumber: 11
|
|
5344
|
+
}
|
|
5345
|
+
}, count, "/", maxCount), children),
|
|
5346
|
+
__self: undefined,
|
|
5347
|
+
__source: {
|
|
5348
|
+
fileName: _jsxFileName$P,
|
|
5349
|
+
lineNumber: 112,
|
|
5350
|
+
columnNumber: 5
|
|
5351
|
+
}
|
|
5352
|
+
}, /*#__PURE__*/React__default.createElement(StyledFormGroup, _extends({
|
|
5353
|
+
withCounter: withCounter,
|
|
5354
|
+
css: Object.assign({}, !withCounter && Object.assign({}, css))
|
|
5355
|
+
}, props, {
|
|
5356
|
+
__self: undefined,
|
|
5357
|
+
__source: {
|
|
5358
|
+
fileName: _jsxFileName$P,
|
|
5359
|
+
lineNumber: 123,
|
|
5360
|
+
columnNumber: 7
|
|
5361
|
+
}
|
|
5362
|
+
})));
|
|
5363
|
+
};
|
|
5364
|
+
|
|
5297
5365
|
FormGroup.displayName = 'FormGroup';
|
|
5298
5366
|
|
|
5299
5367
|
const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
|
|
5300
|
-
var _jsxFileName$O = "
|
|
5368
|
+
var _jsxFileName$O = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
|
|
5301
5369
|
const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
|
|
5302
5370
|
display: 'inline-block',
|
|
5303
5371
|
fontSize: '$label',
|
|
@@ -5417,7 +5485,7 @@ FormLabel.defaultProps = {
|
|
|
5417
5485
|
FormLabel.displayName = 'FormLabel';
|
|
5418
5486
|
|
|
5419
5487
|
const _excluded$o = ["children", "error", "errorMessage"];
|
|
5420
|
-
var _jsxFileName$N = "
|
|
5488
|
+
var _jsxFileName$N = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
|
|
5421
5489
|
const StyledHelper = styled(Text$1, {
|
|
5422
5490
|
display: 'inline-block',
|
|
5423
5491
|
color: '$textSecondary',
|
|
@@ -5478,7 +5546,7 @@ FormHelper.propTypes = {
|
|
|
5478
5546
|
};
|
|
5479
5547
|
FormHelper.displayName = 'FormHelper';
|
|
5480
5548
|
|
|
5481
|
-
var _jsxFileName$M = "
|
|
5549
|
+
var _jsxFileName$M = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
|
|
5482
5550
|
const CheckboxContext = /*#__PURE__*/createContext();
|
|
5483
5551
|
|
|
5484
5552
|
const CheckboxGroup = ({
|
|
@@ -5541,7 +5609,7 @@ CheckboxGroup.defaultProps = {
|
|
|
5541
5609
|
};
|
|
5542
5610
|
CheckboxGroup.displayName = 'CheckboxGroup';
|
|
5543
5611
|
|
|
5544
|
-
var _jsxFileName$L = "
|
|
5612
|
+
var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
|
|
5545
5613
|
|
|
5546
5614
|
const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5547
5615
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5589,7 +5657,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
|
|
|
5589
5657
|
}
|
|
5590
5658
|
}));
|
|
5591
5659
|
|
|
5592
|
-
var _jsxFileName$K = "
|
|
5660
|
+
var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
|
|
5593
5661
|
|
|
5594
5662
|
const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5595
5663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5638,7 +5706,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
|
|
|
5638
5706
|
}));
|
|
5639
5707
|
|
|
5640
5708
|
const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
|
|
5641
|
-
var _jsxFileName$J = "
|
|
5709
|
+
var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
|
|
5642
5710
|
const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
|
|
5643
5711
|
alignItems: 'center',
|
|
5644
5712
|
display: 'flex',
|
|
@@ -5804,7 +5872,7 @@ InputCheckbox.propTypes = {
|
|
|
5804
5872
|
InputCheckbox.displayName = 'InputCheckbox';
|
|
5805
5873
|
|
|
5806
5874
|
const _excluded$m = ["children", "size"];
|
|
5807
|
-
var _jsxFileName$I = "
|
|
5875
|
+
var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
|
|
5808
5876
|
const InputGroupStyle = styled('div', {
|
|
5809
5877
|
display: 'flex',
|
|
5810
5878
|
width: '100%',
|
|
@@ -5951,13 +6019,13 @@ const InputGroup = _ref => {
|
|
|
5951
6019
|
}));
|
|
5952
6020
|
};
|
|
5953
6021
|
InputGroup.propTypes = {
|
|
5954
|
-
/**
|
|
5955
|
-
Adjust Input Text Size
|
|
6022
|
+
/**
|
|
6023
|
+
Adjust Input Text Size
|
|
5956
6024
|
*/
|
|
5957
6025
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
5958
6026
|
|
|
5959
|
-
/**
|
|
5960
|
-
Children must be InputText, InputAddon, or InputPrefixes
|
|
6027
|
+
/**
|
|
6028
|
+
Children must be InputText, InputAddon, or InputPrefixes
|
|
5961
6029
|
*/
|
|
5962
6030
|
children: PropTypes.node.isRequired,
|
|
5963
6031
|
|
|
@@ -6123,7 +6191,7 @@ InputSuffix.propTypes = {
|
|
|
6123
6191
|
};
|
|
6124
6192
|
|
|
6125
6193
|
const _excluded$l = ["disabled", "readOnly"];
|
|
6126
|
-
var _jsxFileName$H = "
|
|
6194
|
+
var _jsxFileName$H = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
|
|
6127
6195
|
const disabledStyle = {
|
|
6128
6196
|
backgroundColor: '$formDisable',
|
|
6129
6197
|
color: '$textDisable',
|
|
@@ -6201,6 +6269,8 @@ const StyledInput$1 = styled('input', {
|
|
|
6201
6269
|
},
|
|
6202
6270
|
inputGroup: {
|
|
6203
6271
|
true: {
|
|
6272
|
+
paddingLeft: 0,
|
|
6273
|
+
paddingRight: 0,
|
|
6204
6274
|
border: 'none',
|
|
6205
6275
|
borderRadius: '$lg',
|
|
6206
6276
|
'&:focus': {
|
|
@@ -6220,7 +6290,7 @@ const StyledInput$1 = styled('input', {
|
|
|
6220
6290
|
color: '$textDisable'
|
|
6221
6291
|
},
|
|
6222
6292
|
'&:hover': {
|
|
6223
|
-
border: '
|
|
6293
|
+
border: 'none'
|
|
6224
6294
|
}
|
|
6225
6295
|
}
|
|
6226
6296
|
}
|
|
@@ -6277,7 +6347,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6277
6347
|
__self: undefined,
|
|
6278
6348
|
__source: {
|
|
6279
6349
|
fileName: _jsxFileName$H,
|
|
6280
|
-
lineNumber:
|
|
6350
|
+
lineNumber: 153,
|
|
6281
6351
|
columnNumber: 3
|
|
6282
6352
|
}
|
|
6283
6353
|
}));
|
|
@@ -6285,7 +6355,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6285
6355
|
InputText.displayName = 'InputText';
|
|
6286
6356
|
|
|
6287
6357
|
const _excluded$k = ["disabled", "readOnly"];
|
|
6288
|
-
var _jsxFileName$G = "
|
|
6358
|
+
var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
|
|
6289
6359
|
const StyledTextArea = styled(StyledInput$1, {
|
|
6290
6360
|
variants: {
|
|
6291
6361
|
size: {
|
|
@@ -6311,15 +6381,15 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6311
6381
|
const textareaRef = useRef(null);
|
|
6312
6382
|
useEffect(() => {
|
|
6313
6383
|
if (textareaRef.current) {
|
|
6314
|
-
textareaRef.current.style.height = '
|
|
6384
|
+
textareaRef.current.style.height = '50px';
|
|
6315
6385
|
const scrollHeight = textareaRef == null ? void 0 : textareaRef.current.scrollHeight;
|
|
6316
|
-
textareaRef.current.style.height = scrollHeight +
|
|
6386
|
+
textareaRef.current.style.height = scrollHeight + 5 + 'px';
|
|
6317
6387
|
}
|
|
6318
6388
|
}, []);
|
|
6319
6389
|
|
|
6320
6390
|
function handleKeyDown(e) {
|
|
6321
|
-
e.target.style.height = '
|
|
6322
|
-
e.target.style.height = `${e.target.scrollHeight +
|
|
6391
|
+
e.target.style.height = '50px';
|
|
6392
|
+
e.target.style.height = `${e.target.scrollHeight + 5}px`;
|
|
6323
6393
|
}
|
|
6324
6394
|
|
|
6325
6395
|
return /*#__PURE__*/React__default.createElement(StyledTextArea, _extends({
|
|
@@ -6351,7 +6421,7 @@ InputTextArea.defaultProps = {
|
|
|
6351
6421
|
|
|
6352
6422
|
const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
6353
6423
|
|
|
6354
|
-
var _jsxFileName$F = "
|
|
6424
|
+
var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
|
|
6355
6425
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
6356
6426
|
function InputRadioGroup(props) {
|
|
6357
6427
|
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
@@ -6384,7 +6454,7 @@ InputRadioGroup.propTypes = {
|
|
|
6384
6454
|
InputRadioGroup.displayName = 'InputRadioGroup';
|
|
6385
6455
|
|
|
6386
6456
|
const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
|
|
6387
|
-
var _jsxFileName$E = "
|
|
6457
|
+
var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
|
|
6388
6458
|
const INDICATOR_BASE_STYLES = {
|
|
6389
6459
|
alignItems: 'center',
|
|
6390
6460
|
display: 'flex',
|
|
@@ -6475,8 +6545,8 @@ const Container$8 = styled(Flex$1, {
|
|
|
6475
6545
|
outlined: {
|
|
6476
6546
|
true: {
|
|
6477
6547
|
border: '1px solid $gray300',
|
|
6478
|
-
borderRadius:
|
|
6479
|
-
padding:
|
|
6548
|
+
borderRadius: '$lg',
|
|
6549
|
+
padding: '$spacing-03',
|
|
6480
6550
|
'& > input': {
|
|
6481
6551
|
border: 'none !important',
|
|
6482
6552
|
padding: '0px !important',
|
|
@@ -6508,8 +6578,20 @@ const Container$8 = styled(Flex$1, {
|
|
|
6508
6578
|
color: '$textSecondary !important'
|
|
6509
6579
|
}
|
|
6510
6580
|
}
|
|
6581
|
+
},
|
|
6582
|
+
withInputProps: {
|
|
6583
|
+
true: {
|
|
6584
|
+
padding: '0 $spacing-03'
|
|
6585
|
+
}
|
|
6511
6586
|
}
|
|
6512
|
-
}
|
|
6587
|
+
},
|
|
6588
|
+
compoundVariants: [{
|
|
6589
|
+
outlined: true,
|
|
6590
|
+
withInputProps: true,
|
|
6591
|
+
css: {
|
|
6592
|
+
padding: '0 $spacing-03'
|
|
6593
|
+
}
|
|
6594
|
+
}]
|
|
6513
6595
|
});
|
|
6514
6596
|
const InputRadio = _ref => {
|
|
6515
6597
|
let {
|
|
@@ -6527,12 +6609,12 @@ const InputRadio = _ref => {
|
|
|
6527
6609
|
switch (type) {
|
|
6528
6610
|
case 'number':
|
|
6529
6611
|
return /*#__PURE__*/React__default.createElement(InputNumber, _extends({}, inputProps, {
|
|
6530
|
-
disabled: disabled || checked !== props.value,
|
|
6531
6612
|
readOnly: readOnly || checked !== props.value,
|
|
6613
|
+
inputGroup: true,
|
|
6532
6614
|
__self: this,
|
|
6533
6615
|
__source: {
|
|
6534
6616
|
fileName: _jsxFileName$E,
|
|
6535
|
-
lineNumber:
|
|
6617
|
+
lineNumber: 160,
|
|
6536
6618
|
columnNumber: 11
|
|
6537
6619
|
}
|
|
6538
6620
|
}));
|
|
@@ -6541,10 +6623,11 @@ const InputRadio = _ref => {
|
|
|
6541
6623
|
return /*#__PURE__*/React__default.createElement(InputText, _extends({}, inputProps, {
|
|
6542
6624
|
disabled: disabled || checked !== props.value,
|
|
6543
6625
|
readOnly: readOnly || checked !== props.value,
|
|
6626
|
+
inputGroup: true,
|
|
6544
6627
|
__self: this,
|
|
6545
6628
|
__source: {
|
|
6546
6629
|
fileName: _jsxFileName$E,
|
|
6547
|
-
lineNumber:
|
|
6630
|
+
lineNumber: 169,
|
|
6548
6631
|
columnNumber: 11
|
|
6549
6632
|
}
|
|
6550
6633
|
}));
|
|
@@ -6564,7 +6647,7 @@ const InputRadio = _ref => {
|
|
|
6564
6647
|
__self: this,
|
|
6565
6648
|
__source: {
|
|
6566
6649
|
fileName: _jsxFileName$E,
|
|
6567
|
-
lineNumber:
|
|
6650
|
+
lineNumber: 179,
|
|
6568
6651
|
columnNumber: 11
|
|
6569
6652
|
}
|
|
6570
6653
|
}, props.label);
|
|
@@ -6575,7 +6658,7 @@ const InputRadio = _ref => {
|
|
|
6575
6658
|
__self: undefined,
|
|
6576
6659
|
__source: {
|
|
6577
6660
|
fileName: _jsxFileName$E,
|
|
6578
|
-
lineNumber:
|
|
6661
|
+
lineNumber: 198,
|
|
6579
6662
|
columnNumber: 5
|
|
6580
6663
|
}
|
|
6581
6664
|
}, ({
|
|
@@ -6590,11 +6673,12 @@ const InputRadio = _ref => {
|
|
|
6590
6673
|
disabledOutlined: outlined && (readOnly || disabled),
|
|
6591
6674
|
disabled: disabled,
|
|
6592
6675
|
active: outlined && checked === props.value && !disabled && !readOnly,
|
|
6676
|
+
withInputProps: !!inputProps,
|
|
6593
6677
|
css: css,
|
|
6594
6678
|
__self: undefined,
|
|
6595
6679
|
__source: {
|
|
6596
6680
|
fileName: _jsxFileName$E,
|
|
6597
|
-
lineNumber:
|
|
6681
|
+
lineNumber: 203,
|
|
6598
6682
|
columnNumber: 11
|
|
6599
6683
|
}
|
|
6600
6684
|
}, /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
@@ -6603,7 +6687,7 @@ const InputRadio = _ref => {
|
|
|
6603
6687
|
__self: undefined,
|
|
6604
6688
|
__source: {
|
|
6605
6689
|
fileName: _jsxFileName$E,
|
|
6606
|
-
lineNumber:
|
|
6690
|
+
lineNumber: 212,
|
|
6607
6691
|
columnNumber: 13
|
|
6608
6692
|
}
|
|
6609
6693
|
}, /*#__PURE__*/React__default.createElement(StyledRadio, _extends({
|
|
@@ -6614,14 +6698,14 @@ const InputRadio = _ref => {
|
|
|
6614
6698
|
__self: undefined,
|
|
6615
6699
|
__source: {
|
|
6616
6700
|
fileName: _jsxFileName$E,
|
|
6617
|
-
lineNumber:
|
|
6701
|
+
lineNumber: 213,
|
|
6618
6702
|
columnNumber: 15
|
|
6619
6703
|
}
|
|
6620
6704
|
}), /*#__PURE__*/React__default.createElement(StyledIndicator$1, {
|
|
6621
6705
|
__self: undefined,
|
|
6622
6706
|
__source: {
|
|
6623
6707
|
fileName: _jsxFileName$E,
|
|
6624
|
-
lineNumber:
|
|
6708
|
+
lineNumber: 214,
|
|
6625
6709
|
columnNumber: 17
|
|
6626
6710
|
}
|
|
6627
6711
|
})), renderInputType(inputType, checked)), description && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -6633,7 +6717,7 @@ const InputRadio = _ref => {
|
|
|
6633
6717
|
__self: undefined,
|
|
6634
6718
|
__source: {
|
|
6635
6719
|
fileName: _jsxFileName$E,
|
|
6636
|
-
lineNumber:
|
|
6720
|
+
lineNumber: 219,
|
|
6637
6721
|
columnNumber: 15
|
|
6638
6722
|
}
|
|
6639
6723
|
}, description));
|
|
@@ -6682,7 +6766,7 @@ InputRightElement.propTypes = {
|
|
|
6682
6766
|
InputRightElement.name = 'InputRightElement';
|
|
6683
6767
|
|
|
6684
6768
|
const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled"];
|
|
6685
|
-
var _jsxFileName$D = "
|
|
6769
|
+
var _jsxFileName$D = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
|
|
6686
6770
|
const StyledInput = styled(NumberFormat, {
|
|
6687
6771
|
// Reset
|
|
6688
6772
|
appearance: 'none',
|
|
@@ -6753,6 +6837,8 @@ const StyledInput = styled(NumberFormat, {
|
|
|
6753
6837
|
},
|
|
6754
6838
|
inputGroup: {
|
|
6755
6839
|
true: {
|
|
6840
|
+
paddingLeft: 0,
|
|
6841
|
+
paddingRight: 0,
|
|
6756
6842
|
border: 'none',
|
|
6757
6843
|
borderRadius: '$lg',
|
|
6758
6844
|
'&:focus': {
|
|
@@ -6772,7 +6858,7 @@ const StyledInput = styled(NumberFormat, {
|
|
|
6772
6858
|
color: '$textDisable'
|
|
6773
6859
|
},
|
|
6774
6860
|
'&:hover': {
|
|
6775
|
-
border: '
|
|
6861
|
+
border: 'none'
|
|
6776
6862
|
}
|
|
6777
6863
|
}
|
|
6778
6864
|
}
|
|
@@ -6839,7 +6925,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6839
6925
|
__self: undefined,
|
|
6840
6926
|
__source: {
|
|
6841
6927
|
fileName: _jsxFileName$D,
|
|
6842
|
-
lineNumber:
|
|
6928
|
+
lineNumber: 152,
|
|
6843
6929
|
columnNumber: 3
|
|
6844
6930
|
}
|
|
6845
6931
|
}));
|
|
@@ -6892,6 +6978,7 @@ var regexpFlags$1 = function () {
|
|
|
6892
6978
|
if (that.multiline) result += 'm';
|
|
6893
6979
|
if (that.dotAll) result += 's';
|
|
6894
6980
|
if (that.unicode) result += 'u';
|
|
6981
|
+
if (that.unicodeSets) result += 'v';
|
|
6895
6982
|
if (that.sticky) result += 'y';
|
|
6896
6983
|
return result;
|
|
6897
6984
|
};
|
|
@@ -6910,10 +6997,10 @@ var regexpGetFlags = function (R) {
|
|
|
6910
6997
|
};
|
|
6911
6998
|
|
|
6912
6999
|
var fails$g = fails$t;
|
|
6913
|
-
var global$
|
|
7000
|
+
var global$g = global$s;
|
|
6914
7001
|
|
|
6915
7002
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
6916
|
-
var $RegExp$2 = global$
|
|
7003
|
+
var $RegExp$2 = global$g.RegExp;
|
|
6917
7004
|
|
|
6918
7005
|
var UNSUPPORTED_Y$3 = fails$g(function () {
|
|
6919
7006
|
var re = $RegExp$2('a', 'y');
|
|
@@ -6970,10 +7057,10 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
|
6970
7057
|
};
|
|
6971
7058
|
|
|
6972
7059
|
var fails$f = fails$t;
|
|
6973
|
-
var global$
|
|
7060
|
+
var global$f = global$s;
|
|
6974
7061
|
|
|
6975
7062
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
6976
|
-
var $RegExp$1 = global$
|
|
7063
|
+
var $RegExp$1 = global$f.RegExp;
|
|
6977
7064
|
|
|
6978
7065
|
var regexpUnsupportedDotAll = fails$f(function () {
|
|
6979
7066
|
var re = $RegExp$1('.', 's');
|
|
@@ -6981,10 +7068,10 @@ var regexpUnsupportedDotAll = fails$f(function () {
|
|
|
6981
7068
|
});
|
|
6982
7069
|
|
|
6983
7070
|
var fails$e = fails$t;
|
|
6984
|
-
var global$
|
|
7071
|
+
var global$e = global$s;
|
|
6985
7072
|
|
|
6986
7073
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
6987
|
-
var $RegExp = global$
|
|
7074
|
+
var $RegExp = global$e.RegExp;
|
|
6988
7075
|
|
|
6989
7076
|
var regexpUnsupportedNcg = fails$e(function () {
|
|
6990
7077
|
var re = $RegExp('(?<a>b)', 'g');
|
|
@@ -6993,11 +7080,11 @@ var regexpUnsupportedNcg = fails$e(function () {
|
|
|
6993
7080
|
});
|
|
6994
7081
|
|
|
6995
7082
|
var DESCRIPTORS$2 = descriptors;
|
|
6996
|
-
var global$
|
|
7083
|
+
var global$d = global$s;
|
|
6997
7084
|
var uncurryThis$j = functionUncurryThis;
|
|
6998
7085
|
var isForced$1 = isForced_1;
|
|
6999
7086
|
var inheritIfRequired = inheritIfRequired$1;
|
|
7000
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
7087
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
|
|
7001
7088
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
7002
7089
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
7003
7090
|
var isRegExp$1 = isRegexp;
|
|
@@ -7015,15 +7102,15 @@ var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
|
|
|
7015
7102
|
var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
|
|
7016
7103
|
|
|
7017
7104
|
var MATCH = wellKnownSymbol$9('match');
|
|
7018
|
-
var NativeRegExp = global$
|
|
7105
|
+
var NativeRegExp = global$d.RegExp;
|
|
7019
7106
|
var RegExpPrototype$2 = NativeRegExp.prototype;
|
|
7020
|
-
var SyntaxError = global$
|
|
7107
|
+
var SyntaxError = global$d.SyntaxError;
|
|
7021
7108
|
var exec$6 = uncurryThis$j(RegExpPrototype$2.exec);
|
|
7022
7109
|
var charAt$8 = uncurryThis$j(''.charAt);
|
|
7023
7110
|
var replace$6 = uncurryThis$j(''.replace);
|
|
7024
7111
|
var stringIndexOf$1 = uncurryThis$j(''.indexOf);
|
|
7025
7112
|
var stringSlice$9 = uncurryThis$j(''.slice);
|
|
7026
|
-
// TODO: Use only
|
|
7113
|
+
// TODO: Use only proper RegExpIdentifierName
|
|
7027
7114
|
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
7028
7115
|
var re1 = /a/g;
|
|
7029
7116
|
var re2 = /a/g;
|
|
@@ -7177,7 +7264,7 @@ if (isForced$1('RegExp', BASE_FORCED)) {
|
|
|
7177
7264
|
|
|
7178
7265
|
RegExpPrototype$2.constructor = RegExpWrapper;
|
|
7179
7266
|
RegExpWrapper.prototype = RegExpPrototype$2;
|
|
7180
|
-
defineBuiltIn$7(global$
|
|
7267
|
+
defineBuiltIn$7(global$d, 'RegExp', RegExpWrapper, { constructor: true });
|
|
7181
7268
|
}
|
|
7182
7269
|
|
|
7183
7270
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
@@ -7278,7 +7365,7 @@ if (PATCH) {
|
|
|
7278
7365
|
}
|
|
7279
7366
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
7280
7367
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
7281
|
-
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
7368
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
7282
7369
|
call$f(nativeReplace, match[0], reCopy, function () {
|
|
7283
7370
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
7284
7371
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
@@ -7336,7 +7423,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
7336
7423
|
}
|
|
7337
7424
|
|
|
7338
7425
|
const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
|
|
7339
|
-
var _jsxFileName$C = "
|
|
7426
|
+
var _jsxFileName$C = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tag/Tag.js";
|
|
7340
7427
|
const TagWrapper$3 = styled('div', {
|
|
7341
7428
|
boxSizing: 'border-box',
|
|
7342
7429
|
listStyle: 'none',
|
|
@@ -7513,7 +7600,7 @@ Tag.defaultProps = {
|
|
|
7513
7600
|
};
|
|
7514
7601
|
|
|
7515
7602
|
const _excluded$g = ["size", "isInvalid", "placeholder", "onChange", "onEnter", "onInputChange", "value", "disabled", "readOnly", "max", "maxChar", "pattern", "helperText", "unremovableTags", "onRemoveItem"];
|
|
7516
|
-
var _jsxFileName$B = "
|
|
7603
|
+
var _jsxFileName$B = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTags/InputTags.js";
|
|
7517
7604
|
const Wrapper$2 = styled('div', {
|
|
7518
7605
|
margin: 0,
|
|
7519
7606
|
flexDirection: 'column',
|
|
@@ -7813,7 +7900,7 @@ TagsInput.defaultProps = {
|
|
|
7813
7900
|
};
|
|
7814
7901
|
|
|
7815
7902
|
const _excluded$f = ["id", "defaultChecked", "dataOnLabel", "dataOffLabel", "disabled"];
|
|
7816
|
-
var _jsxFileName$A = "
|
|
7903
|
+
var _jsxFileName$A = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSwitch/InputSwitch.js";
|
|
7817
7904
|
const StyledThumb$1 = styled(SwitchPrimitive.Thumb, {
|
|
7818
7905
|
display: 'block',
|
|
7819
7906
|
width: '16px',
|
|
@@ -7921,7 +8008,7 @@ InputSwitch.propTypes = {
|
|
|
7921
8008
|
};
|
|
7922
8009
|
InputSwitch.displayName = 'InputSwitch';
|
|
7923
8010
|
|
|
7924
|
-
var _jsxFileName$z = "
|
|
8011
|
+
var _jsxFileName$z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/CloseFilled.js";
|
|
7925
8012
|
|
|
7926
8013
|
const SvgCloseFilled = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7927
8014
|
width: props.size,
|
|
@@ -7982,7 +8069,7 @@ SvgCloseFilled.defaultProps = {
|
|
|
7982
8069
|
size: 24
|
|
7983
8070
|
};
|
|
7984
8071
|
|
|
7985
|
-
var _jsxFileName$y = "
|
|
8072
|
+
var _jsxFileName$y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/SearchOutline.js";
|
|
7986
8073
|
|
|
7987
8074
|
const SvgSearchOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
7988
8075
|
width: props.size,
|
|
@@ -8025,7 +8112,7 @@ SvgSearchOutline.defaultProps = {
|
|
|
8025
8112
|
};
|
|
8026
8113
|
|
|
8027
8114
|
const _excluded$e = ["size", "onChange", "css", "disabled"];
|
|
8028
|
-
var _jsxFileName$x = "
|
|
8115
|
+
var _jsxFileName$x = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSearchbox/InputSearchbox.js";
|
|
8029
8116
|
|
|
8030
8117
|
const InputSearchbox = _ref => {
|
|
8031
8118
|
let {
|
|
@@ -8140,7 +8227,7 @@ var defineBuiltIn$5 = defineBuiltIn$b;
|
|
|
8140
8227
|
var regexpExec$2 = regexpExec$3;
|
|
8141
8228
|
var fails$b = fails$t;
|
|
8142
8229
|
var wellKnownSymbol$8 = wellKnownSymbol$l;
|
|
8143
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
8230
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$6;
|
|
8144
8231
|
|
|
8145
8232
|
var SPECIES$2 = wellKnownSymbol$8('species');
|
|
8146
8233
|
var RegExpPrototype = RegExp.prototype;
|
|
@@ -8215,14 +8302,13 @@ var sameValue$1 = Object.is || function is(x, y) {
|
|
|
8215
8302
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
8216
8303
|
};
|
|
8217
8304
|
|
|
8218
|
-
var global$o = global$U;
|
|
8219
8305
|
var call$e = functionCall;
|
|
8220
8306
|
var anObject$a = anObject$i;
|
|
8221
8307
|
var isCallable$7 = isCallable$p;
|
|
8222
8308
|
var classof$4 = classofRaw$1;
|
|
8223
8309
|
var regexpExec$1 = regexpExec$3;
|
|
8224
8310
|
|
|
8225
|
-
var TypeError$
|
|
8311
|
+
var $TypeError$7 = TypeError;
|
|
8226
8312
|
|
|
8227
8313
|
// `RegExpExec` abstract operation
|
|
8228
8314
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -8234,7 +8320,7 @@ var regexpExecAbstract = function (R, S) {
|
|
|
8234
8320
|
return result;
|
|
8235
8321
|
}
|
|
8236
8322
|
if (classof$4(R) === 'RegExp') return call$e(regexpExec$1, R, S);
|
|
8237
|
-
throw TypeError$
|
|
8323
|
+
throw $TypeError$7('RegExp#exec called on incompatible receiver');
|
|
8238
8324
|
};
|
|
8239
8325
|
|
|
8240
8326
|
var call$d = functionCall;
|
|
@@ -8274,12 +8360,6 @@ fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeC
|
|
|
8274
8360
|
];
|
|
8275
8361
|
});
|
|
8276
8362
|
|
|
8277
|
-
const ConditionalWrapper = ({
|
|
8278
|
-
condition,
|
|
8279
|
-
wrapper,
|
|
8280
|
-
children
|
|
8281
|
-
}) => condition ? wrapper(children) : children;
|
|
8282
|
-
|
|
8283
8363
|
const SelectContainer = styled('div', {
|
|
8284
8364
|
margin: 0,
|
|
8285
8365
|
flexDirection: 'column',
|
|
@@ -8788,7 +8868,8 @@ function InputSelect(_a) {
|
|
|
8788
8868
|
suppressRefError: true
|
|
8789
8869
|
}), {
|
|
8790
8870
|
css: {
|
|
8791
|
-
display: isOpen ? 'block' : 'none'
|
|
8871
|
+
display: isOpen ? 'block' : 'none',
|
|
8872
|
+
zIndex: '$popover'
|
|
8792
8873
|
},
|
|
8793
8874
|
placement: placement
|
|
8794
8875
|
}, {
|
|
@@ -8865,6 +8946,14 @@ function InputSelect(_a) {
|
|
|
8865
8946
|
}), void 0);
|
|
8866
8947
|
}
|
|
8867
8948
|
|
|
8949
|
+
var tryToString$3 = tryToString$5;
|
|
8950
|
+
|
|
8951
|
+
var $TypeError$6 = TypeError;
|
|
8952
|
+
|
|
8953
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
8954
|
+
if (!delete O[P]) throw $TypeError$6('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
|
|
8955
|
+
};
|
|
8956
|
+
|
|
8868
8957
|
var toPropertyKey = toPropertyKey$3;
|
|
8869
8958
|
var definePropertyModule = objectDefineProperty;
|
|
8870
8959
|
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
@@ -8875,19 +8964,18 @@ var createProperty$2 = function (object, key, value) {
|
|
|
8875
8964
|
else object[propertyKey] = value;
|
|
8876
8965
|
};
|
|
8877
8966
|
|
|
8878
|
-
var global$n = global$U;
|
|
8879
8967
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
8880
8968
|
var lengthOfArrayLike$4 = lengthOfArrayLike$6;
|
|
8881
8969
|
var createProperty$1 = createProperty$2;
|
|
8882
8970
|
|
|
8883
|
-
var Array$
|
|
8971
|
+
var $Array$1 = Array;
|
|
8884
8972
|
var max$1 = Math.max;
|
|
8885
8973
|
|
|
8886
8974
|
var arraySliceSimple = function (O, start, end) {
|
|
8887
8975
|
var length = lengthOfArrayLike$4(O);
|
|
8888
8976
|
var k = toAbsoluteIndex(start, length);
|
|
8889
8977
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
8890
|
-
var result = Array$
|
|
8978
|
+
var result = $Array$1(max$1(fin - k, 0));
|
|
8891
8979
|
for (var n = 0; k < fin; k++, n++) createProperty$1(result, n, O[k]);
|
|
8892
8980
|
result.length = n;
|
|
8893
8981
|
return result;
|
|
@@ -8969,6 +9057,7 @@ var uncurryThis$g = functionUncurryThis;
|
|
|
8969
9057
|
var aCallable$7 = aCallable$9;
|
|
8970
9058
|
var toObject$3 = toObject$7;
|
|
8971
9059
|
var lengthOfArrayLike$3 = lengthOfArrayLike$6;
|
|
9060
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
8972
9061
|
var toString$b = toString$h;
|
|
8973
9062
|
var fails$9 = fails$t;
|
|
8974
9063
|
var internalSort = arraySort$1;
|
|
@@ -9063,19 +9152,18 @@ $$g({ target: 'Array', proto: true, forced: FORCED$3 }, {
|
|
|
9063
9152
|
index = 0;
|
|
9064
9153
|
|
|
9065
9154
|
while (index < itemsLength) array[index] = items[index++];
|
|
9066
|
-
while (index < arrayLength)
|
|
9155
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
9067
9156
|
|
|
9068
9157
|
return array;
|
|
9069
9158
|
}
|
|
9070
9159
|
});
|
|
9071
9160
|
|
|
9072
|
-
var global$m = global$U;
|
|
9073
9161
|
var aCallable$6 = aCallable$9;
|
|
9074
9162
|
var toObject$2 = toObject$7;
|
|
9075
9163
|
var IndexedObject = indexedObject;
|
|
9076
9164
|
var lengthOfArrayLike$2 = lengthOfArrayLike$6;
|
|
9077
9165
|
|
|
9078
|
-
var TypeError$
|
|
9166
|
+
var $TypeError$5 = TypeError;
|
|
9079
9167
|
|
|
9080
9168
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
9081
9169
|
var createMethod$2 = function (IS_RIGHT) {
|
|
@@ -9094,7 +9182,7 @@ var createMethod$2 = function (IS_RIGHT) {
|
|
|
9094
9182
|
}
|
|
9095
9183
|
index += i;
|
|
9096
9184
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
9097
|
-
throw TypeError$
|
|
9185
|
+
throw $TypeError$5('Reduce of empty array with no initial value');
|
|
9098
9186
|
}
|
|
9099
9187
|
}
|
|
9100
9188
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -9114,20 +9202,20 @@ var arrayReduce = {
|
|
|
9114
9202
|
};
|
|
9115
9203
|
|
|
9116
9204
|
var classof$3 = classofRaw$1;
|
|
9117
|
-
var global$
|
|
9205
|
+
var global$c = global$s;
|
|
9118
9206
|
|
|
9119
|
-
var engineIsNode = classof$3(global$
|
|
9207
|
+
var engineIsNode = classof$3(global$c.process) == 'process';
|
|
9120
9208
|
|
|
9121
9209
|
var $$f = _export;
|
|
9122
9210
|
var $reduce = arrayReduce.left;
|
|
9123
9211
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
9124
9212
|
var CHROME_VERSION = engineV8Version;
|
|
9125
|
-
var IS_NODE$
|
|
9213
|
+
var IS_NODE$4 = engineIsNode;
|
|
9126
9214
|
|
|
9127
9215
|
var STRICT_METHOD = arrayMethodIsStrict('reduce');
|
|
9128
9216
|
// Chrome 80-82 has a critical bug
|
|
9129
9217
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
9130
|
-
var CHROME_BUG = !IS_NODE$
|
|
9218
|
+
var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
9131
9219
|
|
|
9132
9220
|
// `Array.prototype.reduce` method
|
|
9133
9221
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
@@ -9138,7 +9226,7 @@ $$f({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
|
9138
9226
|
}
|
|
9139
9227
|
});
|
|
9140
9228
|
|
|
9141
|
-
var _jsxFileName$w = "
|
|
9229
|
+
var _jsxFileName$w = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/icon/CheckOutline.js";
|
|
9142
9230
|
|
|
9143
9231
|
const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
9144
9232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9187,7 +9275,7 @@ const CheckOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
9187
9275
|
}));
|
|
9188
9276
|
|
|
9189
9277
|
const _excluded$d = ["placeholder", "option", "value", "size", "disabled", "onChange", "search", "readOnly", "placement", "disabledOptions", "textEmptyItem", "onRemoveItem", "isInvalid", "sortBy", "showSelectAll", "selectAllLabel", "showSelectedTag", "unremovableTags", "helperText", "css", "showCounter", "labelCounter"];
|
|
9190
|
-
var _jsxFileName$v = "
|
|
9278
|
+
var _jsxFileName$v = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectCheck/InputSelectCheck.js";
|
|
9191
9279
|
const Wrapper$1 = styled('div', {
|
|
9192
9280
|
margin: 0,
|
|
9193
9281
|
flexDirection: 'column',
|
|
@@ -10033,7 +10121,7 @@ InputSelectCheck.defaultProps = {
|
|
|
10033
10121
|
labelCounter: 'Item terpilih'
|
|
10034
10122
|
};
|
|
10035
10123
|
|
|
10036
|
-
var _jsxFileName$u = "
|
|
10124
|
+
var _jsxFileName$u = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputSelectTag/InputSelectTag.js";
|
|
10037
10125
|
const InputSelectTag = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
10038
10126
|
return /*#__PURE__*/React.createElement(InputSelectCheck, _extends({
|
|
10039
10127
|
ref: ref,
|
|
@@ -10084,7 +10172,7 @@ InputSelectTag.defaultProps = {
|
|
|
10084
10172
|
labelCounter: 'Item terpilih'
|
|
10085
10173
|
};
|
|
10086
10174
|
|
|
10087
|
-
var _jsxFileName$t = "
|
|
10175
|
+
var _jsxFileName$t = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCreatable/InputCreatable.js";
|
|
10088
10176
|
const Wrapper = styled('div', {
|
|
10089
10177
|
margin: 0,
|
|
10090
10178
|
flexDirection: 'column',
|
|
@@ -10849,15 +10937,15 @@ var stringTrim = {
|
|
|
10849
10937
|
trim: createMethod$1(3)
|
|
10850
10938
|
};
|
|
10851
10939
|
|
|
10852
|
-
var global$
|
|
10940
|
+
var global$b = global$s;
|
|
10853
10941
|
var fails$8 = fails$t;
|
|
10854
10942
|
var uncurryThis$d = functionUncurryThis;
|
|
10855
10943
|
var toString$8 = toString$h;
|
|
10856
10944
|
var trim$1 = stringTrim.trim;
|
|
10857
10945
|
var whitespaces$2 = whitespaces$4;
|
|
10858
10946
|
|
|
10859
|
-
var $parseInt$1 = global$
|
|
10860
|
-
var Symbol$6 = global$
|
|
10947
|
+
var $parseInt$1 = global$b.parseInt;
|
|
10948
|
+
var Symbol$6 = global$b.Symbol;
|
|
10861
10949
|
var ITERATOR$6 = Symbol$6 && Symbol$6.iterator;
|
|
10862
10950
|
var hex = /^[+-]?0x/i;
|
|
10863
10951
|
var exec$4 = uncurryThis$d(hex.exec);
|
|
@@ -11076,7 +11164,7 @@ InputCounter.defaultProps = {
|
|
|
11076
11164
|
};
|
|
11077
11165
|
|
|
11078
11166
|
const _excluded$c = ["children"];
|
|
11079
|
-
var _jsxFileName$s = "
|
|
11167
|
+
var _jsxFileName$s = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/popover/Popover.js";
|
|
11080
11168
|
const {
|
|
11081
11169
|
zIndices
|
|
11082
11170
|
} = foundations;
|
|
@@ -11210,7 +11298,7 @@ Popover.propTypes = {
|
|
|
11210
11298
|
Popover.displayName = 'Popover';
|
|
11211
11299
|
|
|
11212
11300
|
const _excluded$b = ["className", "defaultValue", "value", "name", "disabled", "orientation", "dir", "min", "max", "step", "onValueChange", "minStepsBetweenThumbs", "color", "size", "width", "height"];
|
|
11213
|
-
var _jsxFileName$r = "
|
|
11301
|
+
var _jsxFileName$r = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/slider/Slider.js";
|
|
11214
11302
|
const StyledSlider = styled$1(SliderPrimitive.Root, {
|
|
11215
11303
|
position: 'relative',
|
|
11216
11304
|
display: 'flex',
|
|
@@ -11555,7 +11643,7 @@ Slider.defaultProps = {
|
|
|
11555
11643
|
};
|
|
11556
11644
|
|
|
11557
11645
|
const _excluded$a = ["className", "children", "onClick", "type", "size"];
|
|
11558
|
-
var _jsxFileName$q = "
|
|
11646
|
+
var _jsxFileName$q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tagStatus/TagStatus.js";
|
|
11559
11647
|
const TagWrapper = styled('div', {
|
|
11560
11648
|
boxSizing: 'border-box',
|
|
11561
11649
|
fontSize: '12px',
|
|
@@ -11721,7 +11809,7 @@ const _excluded$9 = ["children"],
|
|
|
11721
11809
|
_excluded2$1 = ["children", "activeTabs"],
|
|
11722
11810
|
_excluded3 = ["children", "icon", "activeTabs", "value"],
|
|
11723
11811
|
_excluded4 = ["activeTabs"];
|
|
11724
|
-
var _jsxFileName$p = "
|
|
11812
|
+
var _jsxFileName$p = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tabs/Tabs.js";
|
|
11725
11813
|
const StyledTabs = styled(TabsPrimitive.Root, {
|
|
11726
11814
|
display: 'flex',
|
|
11727
11815
|
flexDirection: 'column',
|
|
@@ -12072,7 +12160,7 @@ Separator$2.displayName = 'Separator';
|
|
|
12072
12160
|
|
|
12073
12161
|
const _excluded$8 = ["className", "children", "type", "value", "defaultValue", "onValueChange", "disabled", "rovingFocus", "orientation", "dir", "loop", "size"],
|
|
12074
12162
|
_excluded2 = ["className", "children", "leftIcon", "rightIcon", "disabled", "isToggle", "value"];
|
|
12075
|
-
var _jsxFileName$o = "
|
|
12163
|
+
var _jsxFileName$o = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/buttonGroup/ButtonGroup.js";
|
|
12076
12164
|
const ButtonGroupComponent = styled(ToggleGroupPrimitive.Root, {
|
|
12077
12165
|
display: 'inline-flex',
|
|
12078
12166
|
borderRadius: '$md',
|
|
@@ -12300,7 +12388,7 @@ ButtonGroupItem.defaultProps = {
|
|
|
12300
12388
|
};
|
|
12301
12389
|
|
|
12302
12390
|
const _excluded$7 = ["children"];
|
|
12303
|
-
var _jsxFileName$n = "
|
|
12391
|
+
var _jsxFileName$n = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/notificationBadge/NotificationBadge.js";
|
|
12304
12392
|
const NotificationBadgeRootStyle = styled('span', {
|
|
12305
12393
|
position: 'relative',
|
|
12306
12394
|
display: 'inline-flex',
|
|
@@ -12444,7 +12532,7 @@ NotificationBadge.propTypes = {
|
|
|
12444
12532
|
};
|
|
12445
12533
|
|
|
12446
12534
|
const _excluded$6 = ["className", "children", "radius", "padding", "width", "height"];
|
|
12447
|
-
var _jsxFileName$m = "
|
|
12535
|
+
var _jsxFileName$m = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/paper/Paper.js";
|
|
12448
12536
|
const PaperComponent = styled('div', {
|
|
12449
12537
|
padding: '20px',
|
|
12450
12538
|
height: 'auto',
|
|
@@ -12655,14 +12743,13 @@ DialogClose.displayName = 'DialogClose';
|
|
|
12655
12743
|
DialogOverlay.displayName = 'DialogOverlay';
|
|
12656
12744
|
DialogPortal.displayName = 'DialogPortal';
|
|
12657
12745
|
|
|
12658
|
-
var global$j = global$U;
|
|
12659
12746
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
12660
12747
|
|
|
12661
|
-
var TypeError$
|
|
12748
|
+
var $TypeError$4 = TypeError;
|
|
12662
12749
|
|
|
12663
12750
|
var anInstance$3 = function (it, Prototype) {
|
|
12664
12751
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
12665
|
-
throw TypeError$
|
|
12752
|
+
throw $TypeError$4('Incorrect invocation');
|
|
12666
12753
|
};
|
|
12667
12754
|
|
|
12668
12755
|
var uncurryThis$c = functionUncurryThis;
|
|
@@ -12718,16 +12805,15 @@ var isConstructor$2 = !construct || fails$7(function () {
|
|
|
12718
12805
|
|| called;
|
|
12719
12806
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
12720
12807
|
|
|
12721
|
-
var global$i = global$U;
|
|
12722
12808
|
var isConstructor$1 = isConstructor$2;
|
|
12723
|
-
var tryToString$2 = tryToString$
|
|
12809
|
+
var tryToString$2 = tryToString$5;
|
|
12724
12810
|
|
|
12725
|
-
var TypeError$
|
|
12811
|
+
var $TypeError$3 = TypeError;
|
|
12726
12812
|
|
|
12727
12813
|
// `Assert: IsConstructor(argument) is true`
|
|
12728
12814
|
var aConstructor$1 = function (argument) {
|
|
12729
12815
|
if (isConstructor$1(argument)) return argument;
|
|
12730
|
-
throw TypeError$
|
|
12816
|
+
throw $TypeError$3(tryToString$2(argument) + ' is not a constructor');
|
|
12731
12817
|
};
|
|
12732
12818
|
|
|
12733
12819
|
var anObject$8 = anObject$i;
|
|
@@ -12773,12 +12859,10 @@ var uncurryThis$a = functionUncurryThis;
|
|
|
12773
12859
|
|
|
12774
12860
|
var arraySlice$3 = uncurryThis$a([].slice);
|
|
12775
12861
|
|
|
12776
|
-
var
|
|
12777
|
-
|
|
12778
|
-
var TypeError$6 = global$h.TypeError;
|
|
12862
|
+
var $TypeError$2 = TypeError;
|
|
12779
12863
|
|
|
12780
12864
|
var validateArgumentsLength$3 = function (passed, required) {
|
|
12781
|
-
if (passed < required) throw TypeError$
|
|
12865
|
+
if (passed < required) throw $TypeError$2('Not enough arguments');
|
|
12782
12866
|
return passed;
|
|
12783
12867
|
};
|
|
12784
12868
|
|
|
@@ -12786,7 +12870,7 @@ var userAgent$2 = engineUserAgent;
|
|
|
12786
12870
|
|
|
12787
12871
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
12788
12872
|
|
|
12789
|
-
var global$
|
|
12873
|
+
var global$a = global$s;
|
|
12790
12874
|
var apply$2 = functionApply;
|
|
12791
12875
|
var bind$6 = functionBindContext;
|
|
12792
12876
|
var isCallable$5 = isCallable$p;
|
|
@@ -12797,15 +12881,15 @@ var arraySlice$2 = arraySlice$3;
|
|
|
12797
12881
|
var createElement = documentCreateElement$2;
|
|
12798
12882
|
var validateArgumentsLength$2 = validateArgumentsLength$3;
|
|
12799
12883
|
var IS_IOS$1 = engineIsIos;
|
|
12800
|
-
var IS_NODE$
|
|
12884
|
+
var IS_NODE$3 = engineIsNode;
|
|
12801
12885
|
|
|
12802
|
-
var set = global$
|
|
12803
|
-
var clear = global$
|
|
12804
|
-
var process$2 = global$
|
|
12805
|
-
var Dispatch = global$
|
|
12806
|
-
var Function$1 = global$
|
|
12807
|
-
var MessageChannel = global$
|
|
12808
|
-
var String$
|
|
12886
|
+
var set = global$a.setImmediate;
|
|
12887
|
+
var clear = global$a.clearImmediate;
|
|
12888
|
+
var process$2 = global$a.process;
|
|
12889
|
+
var Dispatch = global$a.Dispatch;
|
|
12890
|
+
var Function$1 = global$a.Function;
|
|
12891
|
+
var MessageChannel = global$a.MessageChannel;
|
|
12892
|
+
var String$1 = global$a.String;
|
|
12809
12893
|
var counter = 0;
|
|
12810
12894
|
var queue$1 = {};
|
|
12811
12895
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -12813,7 +12897,7 @@ var location, defer, channel, port;
|
|
|
12813
12897
|
|
|
12814
12898
|
try {
|
|
12815
12899
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
12816
|
-
location = global$
|
|
12900
|
+
location = global$a.location;
|
|
12817
12901
|
} catch (error) { /* empty */ }
|
|
12818
12902
|
|
|
12819
12903
|
var run = function (id) {
|
|
@@ -12836,7 +12920,7 @@ var listener = function (event) {
|
|
|
12836
12920
|
|
|
12837
12921
|
var post = function (id) {
|
|
12838
12922
|
// old engines have not location.origin
|
|
12839
|
-
global$
|
|
12923
|
+
global$a.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
12840
12924
|
};
|
|
12841
12925
|
|
|
12842
12926
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -12855,7 +12939,7 @@ if (!set || !clear) {
|
|
|
12855
12939
|
delete queue$1[id];
|
|
12856
12940
|
};
|
|
12857
12941
|
// Node.js 0.8-
|
|
12858
|
-
if (IS_NODE$
|
|
12942
|
+
if (IS_NODE$3) {
|
|
12859
12943
|
defer = function (id) {
|
|
12860
12944
|
process$2.nextTick(runner(id));
|
|
12861
12945
|
};
|
|
@@ -12874,14 +12958,14 @@ if (!set || !clear) {
|
|
|
12874
12958
|
// Browsers with postMessage, skip WebWorkers
|
|
12875
12959
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
12876
12960
|
} else if (
|
|
12877
|
-
global$
|
|
12878
|
-
isCallable$5(global$
|
|
12879
|
-
!global$
|
|
12961
|
+
global$a.addEventListener &&
|
|
12962
|
+
isCallable$5(global$a.postMessage) &&
|
|
12963
|
+
!global$a.importScripts &&
|
|
12880
12964
|
location && location.protocol !== 'file:' &&
|
|
12881
12965
|
!fails$6(post)
|
|
12882
12966
|
) {
|
|
12883
12967
|
defer = post;
|
|
12884
|
-
global$
|
|
12968
|
+
global$a.addEventListener('message', listener, false);
|
|
12885
12969
|
// IE8-
|
|
12886
12970
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
12887
12971
|
defer = function (id) {
|
|
@@ -12904,29 +12988,29 @@ var task$1 = {
|
|
|
12904
12988
|
};
|
|
12905
12989
|
|
|
12906
12990
|
var userAgent$1 = engineUserAgent;
|
|
12907
|
-
var global$
|
|
12991
|
+
var global$9 = global$s;
|
|
12908
12992
|
|
|
12909
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
12993
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$9.Pebble !== undefined;
|
|
12910
12994
|
|
|
12911
12995
|
var userAgent = engineUserAgent;
|
|
12912
12996
|
|
|
12913
12997
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
12914
12998
|
|
|
12915
|
-
var global$
|
|
12999
|
+
var global$8 = global$s;
|
|
12916
13000
|
var bind$5 = functionBindContext;
|
|
12917
13001
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
12918
13002
|
var macrotask = task$1.set;
|
|
12919
13003
|
var IS_IOS = engineIsIos;
|
|
12920
13004
|
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
12921
13005
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
12922
|
-
var IS_NODE$
|
|
13006
|
+
var IS_NODE$2 = engineIsNode;
|
|
12923
13007
|
|
|
12924
|
-
var MutationObserver = global$
|
|
12925
|
-
var document$2 = global$
|
|
12926
|
-
var process$1 = global$
|
|
12927
|
-
var Promise$1 = global$
|
|
13008
|
+
var MutationObserver = global$8.MutationObserver || global$8.WebKitMutationObserver;
|
|
13009
|
+
var document$2 = global$8.document;
|
|
13010
|
+
var process$1 = global$8.process;
|
|
13011
|
+
var Promise$1 = global$8.Promise;
|
|
12928
13012
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
12929
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$
|
|
13013
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$8, 'queueMicrotask');
|
|
12930
13014
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
12931
13015
|
|
|
12932
13016
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
@@ -12935,7 +13019,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
|
|
|
12935
13019
|
if (!queueMicrotask) {
|
|
12936
13020
|
flush = function () {
|
|
12937
13021
|
var parent, fn;
|
|
12938
|
-
if (IS_NODE$
|
|
13022
|
+
if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
|
|
12939
13023
|
while (head) {
|
|
12940
13024
|
fn = head.fn;
|
|
12941
13025
|
head = head.next;
|
|
@@ -12952,7 +13036,7 @@ if (!queueMicrotask) {
|
|
|
12952
13036
|
|
|
12953
13037
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
12954
13038
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
12955
|
-
if (!IS_IOS && !IS_NODE$
|
|
13039
|
+
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
12956
13040
|
toggle = true;
|
|
12957
13041
|
node = document$2.createTextNode('');
|
|
12958
13042
|
new MutationObserver(flush).observe(node, { characterData: true });
|
|
@@ -12970,7 +13054,7 @@ if (!queueMicrotask) {
|
|
|
12970
13054
|
then(flush);
|
|
12971
13055
|
};
|
|
12972
13056
|
// Node.js without promises
|
|
12973
|
-
} else if (IS_NODE$
|
|
13057
|
+
} else if (IS_NODE$2) {
|
|
12974
13058
|
notify$1 = function () {
|
|
12975
13059
|
process$1.nextTick(flush);
|
|
12976
13060
|
};
|
|
@@ -12982,7 +13066,7 @@ if (!queueMicrotask) {
|
|
|
12982
13066
|
// - setTimeout
|
|
12983
13067
|
} else {
|
|
12984
13068
|
// strange IE + webpack dev server bug - use .bind(global)
|
|
12985
|
-
macrotask = bind$5(macrotask, global$
|
|
13069
|
+
macrotask = bind$5(macrotask, global$8);
|
|
12986
13070
|
notify$1 = function () {
|
|
12987
13071
|
macrotask(flush);
|
|
12988
13072
|
};
|
|
@@ -12998,10 +13082,10 @@ var microtask$1 = queueMicrotask || function (fn) {
|
|
|
12998
13082
|
} last = task;
|
|
12999
13083
|
};
|
|
13000
13084
|
|
|
13001
|
-
var global$
|
|
13085
|
+
var global$7 = global$s;
|
|
13002
13086
|
|
|
13003
13087
|
var hostReportErrors$1 = function (a, b) {
|
|
13004
|
-
var console = global$
|
|
13088
|
+
var console = global$7.console;
|
|
13005
13089
|
if (console && console.error) {
|
|
13006
13090
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
13007
13091
|
}
|
|
@@ -13039,25 +13123,35 @@ Queue$1.prototype = {
|
|
|
13039
13123
|
|
|
13040
13124
|
var queue = Queue$1;
|
|
13041
13125
|
|
|
13042
|
-
var global$
|
|
13126
|
+
var global$6 = global$s;
|
|
13127
|
+
|
|
13128
|
+
var promiseNativeConstructor = global$6.Promise;
|
|
13129
|
+
|
|
13130
|
+
/* global Deno -- Deno case */
|
|
13043
13131
|
|
|
13044
|
-
var
|
|
13132
|
+
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
13133
|
+
|
|
13134
|
+
var IS_DENO$1 = engineIsDeno;
|
|
13135
|
+
var IS_NODE$1 = engineIsNode;
|
|
13045
13136
|
|
|
13046
|
-
var engineIsBrowser =
|
|
13137
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
13138
|
+
&& typeof window == 'object'
|
|
13139
|
+
&& typeof document == 'object';
|
|
13047
13140
|
|
|
13048
|
-
var global$
|
|
13141
|
+
var global$5 = global$s;
|
|
13049
13142
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
13050
13143
|
var isCallable$4 = isCallable$p;
|
|
13051
13144
|
var isForced = isForced_1;
|
|
13052
13145
|
var inspectSource = inspectSource$4;
|
|
13053
13146
|
var wellKnownSymbol$6 = wellKnownSymbol$l;
|
|
13054
13147
|
var IS_BROWSER = engineIsBrowser;
|
|
13148
|
+
var IS_DENO = engineIsDeno;
|
|
13055
13149
|
var V8_VERSION = engineV8Version;
|
|
13056
13150
|
|
|
13057
13151
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
13058
13152
|
var SPECIES = wellKnownSymbol$6('species');
|
|
13059
13153
|
var SUBCLASSING = false;
|
|
13060
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$
|
|
13154
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$5.PromiseRejectionEvent);
|
|
13061
13155
|
|
|
13062
13156
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
13063
13157
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -13069,18 +13163,18 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
13069
13163
|
// We can't use @@species feature detection in V8 since it causes
|
|
13070
13164
|
// deoptimization and performance degradation
|
|
13071
13165
|
// https://github.com/zloirock/core-js/issues/679
|
|
13072
|
-
if (V8_VERSION
|
|
13073
|
-
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13166
|
+
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
13167
|
+
// Detect correctness of subclassing with @@species support
|
|
13168
|
+
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
|
13169
|
+
var FakePromise = function (exec) {
|
|
13170
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
13171
|
+
};
|
|
13172
|
+
var constructor = promise.constructor = {};
|
|
13173
|
+
constructor[SPECIES] = FakePromise;
|
|
13174
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
13175
|
+
if (!SUBCLASSING) return true;
|
|
13082
13176
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
13083
|
-
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
13177
|
+
} return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
13084
13178
|
});
|
|
13085
13179
|
|
|
13086
13180
|
var promiseConstructorDetection = {
|
|
@@ -13112,7 +13206,7 @@ newPromiseCapability$2.f = function (C) {
|
|
|
13112
13206
|
|
|
13113
13207
|
var $$c = _export;
|
|
13114
13208
|
var IS_NODE = engineIsNode;
|
|
13115
|
-
var global$
|
|
13209
|
+
var global$4 = global$s;
|
|
13116
13210
|
var call$b = functionCall;
|
|
13117
13211
|
var defineBuiltIn$4 = defineBuiltIn$b;
|
|
13118
13212
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
@@ -13142,13 +13236,13 @@ var setInternalState$3 = InternalStateModule$3.set;
|
|
|
13142
13236
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
13143
13237
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
13144
13238
|
var PromisePrototype = NativePromisePrototype$1;
|
|
13145
|
-
var TypeError$
|
|
13146
|
-
var document$1 = global$
|
|
13147
|
-
var process = global$
|
|
13239
|
+
var TypeError$3 = global$4.TypeError;
|
|
13240
|
+
var document$1 = global$4.document;
|
|
13241
|
+
var process = global$4.process;
|
|
13148
13242
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
13149
13243
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
13150
13244
|
|
|
13151
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
13245
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
|
|
13152
13246
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
13153
13247
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
13154
13248
|
var PENDING = 0;
|
|
@@ -13189,7 +13283,7 @@ var callReaction = function (reaction, state) {
|
|
|
13189
13283
|
}
|
|
13190
13284
|
}
|
|
13191
13285
|
if (result === reaction.promise) {
|
|
13192
|
-
reject(TypeError$
|
|
13286
|
+
reject(TypeError$3('Promise-chain cycle'));
|
|
13193
13287
|
} else if (then = isThenable(result)) {
|
|
13194
13288
|
call$b(then, result, resolve, reject);
|
|
13195
13289
|
} else resolve(result);
|
|
@@ -13221,14 +13315,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
13221
13315
|
event.promise = promise;
|
|
13222
13316
|
event.reason = reason;
|
|
13223
13317
|
event.initEvent(name, false, true);
|
|
13224
|
-
global$
|
|
13318
|
+
global$4.dispatchEvent(event);
|
|
13225
13319
|
} else event = { promise: promise, reason: reason };
|
|
13226
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
13320
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
|
|
13227
13321
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
13228
13322
|
};
|
|
13229
13323
|
|
|
13230
13324
|
var onUnhandled = function (state) {
|
|
13231
|
-
call$b(task, global$
|
|
13325
|
+
call$b(task, global$4, function () {
|
|
13232
13326
|
var promise = state.facade;
|
|
13233
13327
|
var value = state.value;
|
|
13234
13328
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -13251,7 +13345,7 @@ var isUnhandled = function (state) {
|
|
|
13251
13345
|
};
|
|
13252
13346
|
|
|
13253
13347
|
var onHandleUnhandled = function (state) {
|
|
13254
|
-
call$b(task, global$
|
|
13348
|
+
call$b(task, global$4, function () {
|
|
13255
13349
|
var promise = state.facade;
|
|
13256
13350
|
if (IS_NODE) {
|
|
13257
13351
|
process.emit('rejectionHandled', promise);
|
|
@@ -13279,7 +13373,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
13279
13373
|
state.done = true;
|
|
13280
13374
|
if (unwrap) state = unwrap;
|
|
13281
13375
|
try {
|
|
13282
|
-
if (state.facade === value) throw TypeError$
|
|
13376
|
+
if (state.facade === value) throw TypeError$3("Promise can't be resolved itself");
|
|
13283
13377
|
var then = isThenable(value);
|
|
13284
13378
|
if (then) {
|
|
13285
13379
|
microtask(function () {
|
|
@@ -13421,19 +13515,18 @@ var getIteratorMethod$4 = function (it) {
|
|
|
13421
13515
|
|| Iterators[classof$1(it)];
|
|
13422
13516
|
};
|
|
13423
13517
|
|
|
13424
|
-
var global$9 = global$U;
|
|
13425
13518
|
var call$a = functionCall;
|
|
13426
13519
|
var aCallable$2 = aCallable$9;
|
|
13427
13520
|
var anObject$7 = anObject$i;
|
|
13428
|
-
var tryToString$1 = tryToString$
|
|
13521
|
+
var tryToString$1 = tryToString$5;
|
|
13429
13522
|
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
13430
13523
|
|
|
13431
|
-
var TypeError$
|
|
13524
|
+
var $TypeError$1 = TypeError;
|
|
13432
13525
|
|
|
13433
13526
|
var getIterator$3 = function (argument, usingIterator) {
|
|
13434
13527
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
13435
13528
|
if (aCallable$2(iteratorMethod)) return anObject$7(call$a(iteratorMethod, argument));
|
|
13436
|
-
throw TypeError$
|
|
13529
|
+
throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
|
|
13437
13530
|
};
|
|
13438
13531
|
|
|
13439
13532
|
var call$9 = functionCall;
|
|
@@ -13460,11 +13553,10 @@ var iteratorClose$2 = function (iterator, kind, value) {
|
|
|
13460
13553
|
return value;
|
|
13461
13554
|
};
|
|
13462
13555
|
|
|
13463
|
-
var global$8 = global$U;
|
|
13464
13556
|
var bind$3 = functionBindContext;
|
|
13465
13557
|
var call$8 = functionCall;
|
|
13466
13558
|
var anObject$5 = anObject$i;
|
|
13467
|
-
var tryToString = tryToString$
|
|
13559
|
+
var tryToString = tryToString$5;
|
|
13468
13560
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
13469
13561
|
var lengthOfArrayLike$1 = lengthOfArrayLike$6;
|
|
13470
13562
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
@@ -13472,7 +13564,7 @@ var getIterator$2 = getIterator$3;
|
|
|
13472
13564
|
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
13473
13565
|
var iteratorClose$1 = iteratorClose$2;
|
|
13474
13566
|
|
|
13475
|
-
var TypeError
|
|
13567
|
+
var $TypeError = TypeError;
|
|
13476
13568
|
|
|
13477
13569
|
var Result = function (stopped, result) {
|
|
13478
13570
|
this.stopped = stopped;
|
|
@@ -13484,6 +13576,7 @@ var ResultPrototype = Result.prototype;
|
|
|
13484
13576
|
var iterate$2 = function (iterable, unboundFunction, options) {
|
|
13485
13577
|
var that = options && options.that;
|
|
13486
13578
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
13579
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
13487
13580
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
13488
13581
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
13489
13582
|
var fn = bind$3(unboundFunction, that);
|
|
@@ -13501,11 +13594,13 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
13501
13594
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
13502
13595
|
};
|
|
13503
13596
|
|
|
13504
|
-
if (
|
|
13597
|
+
if (IS_RECORD) {
|
|
13598
|
+
iterator = iterable.iterator;
|
|
13599
|
+
} else if (IS_ITERATOR) {
|
|
13505
13600
|
iterator = iterable;
|
|
13506
13601
|
} else {
|
|
13507
13602
|
iterFn = getIteratorMethod$2(iterable);
|
|
13508
|
-
if (!iterFn) throw TypeError
|
|
13603
|
+
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
13509
13604
|
// optimisation for array iterators
|
|
13510
13605
|
if (isArrayIteratorMethod$1(iterFn)) {
|
|
13511
13606
|
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
@@ -13516,7 +13611,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
13516
13611
|
iterator = getIterator$2(iterable, iterFn);
|
|
13517
13612
|
}
|
|
13518
13613
|
|
|
13519
|
-
next = iterator.next;
|
|
13614
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
13520
13615
|
while (!(step = call$8(next, iterator)).done) {
|
|
13521
13616
|
try {
|
|
13522
13617
|
result = callFn(step.value);
|
|
@@ -13943,7 +14038,7 @@ ModalDialog.defaultProps = {
|
|
|
13943
14038
|
};
|
|
13944
14039
|
|
|
13945
14040
|
const _excluded$5 = ["children"];
|
|
13946
|
-
var _jsxFileName$l = "
|
|
14041
|
+
var _jsxFileName$l = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/drawer/Drawer.js";
|
|
13947
14042
|
const Context$1 = /*#__PURE__*/React__default.createContext();
|
|
13948
14043
|
const {
|
|
13949
14044
|
sizes
|
|
@@ -15635,7 +15730,7 @@ const MobileCalendarBox = ({
|
|
|
15635
15730
|
return null;
|
|
15636
15731
|
};
|
|
15637
15732
|
|
|
15638
|
-
var _jsxFileName$k = "
|
|
15733
|
+
var _jsxFileName$k = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/datePicker/timePicker/TimePicker.js";
|
|
15639
15734
|
const Input$3 = styled('input', {
|
|
15640
15735
|
display: 'none'
|
|
15641
15736
|
});
|
|
@@ -15892,33 +15987,33 @@ const NativeTimePicker = ({
|
|
|
15892
15987
|
})));
|
|
15893
15988
|
};
|
|
15894
15989
|
NativeTimePicker.propTypes = {
|
|
15895
|
-
/**
|
|
15896
|
-
Resize time picker.
|
|
15990
|
+
/**
|
|
15991
|
+
Resize time picker.
|
|
15897
15992
|
*/
|
|
15898
15993
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15899
15994
|
|
|
15900
|
-
/**
|
|
15901
|
-
Change handler.
|
|
15995
|
+
/**
|
|
15996
|
+
Change handler.
|
|
15902
15997
|
*/
|
|
15903
15998
|
onChange: PropTypes.func,
|
|
15904
15999
|
|
|
15905
|
-
/**
|
|
15906
|
-
Time picker default value, support moment format.
|
|
16000
|
+
/**
|
|
16001
|
+
Time picker default value, support moment format.
|
|
15907
16002
|
*/
|
|
15908
16003
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15909
16004
|
|
|
15910
|
-
/**
|
|
15911
|
-
Time picker value, support moment format.
|
|
16005
|
+
/**
|
|
16006
|
+
Time picker value, support moment format.
|
|
15912
16007
|
*/
|
|
15913
16008
|
value: PropTypes.instanceOf(Date),
|
|
15914
16009
|
|
|
15915
|
-
/**
|
|
15916
|
-
Specify the minimum date.
|
|
16010
|
+
/**
|
|
16011
|
+
Specify the minimum date.
|
|
15917
16012
|
*/
|
|
15918
16013
|
minDate: PropTypes.instanceOf(Date),
|
|
15919
16014
|
|
|
15920
|
-
/**
|
|
15921
|
-
Specify the maximum date.
|
|
16015
|
+
/**
|
|
16016
|
+
Specify the maximum date.
|
|
15922
16017
|
*/
|
|
15923
16018
|
maxDate: PropTypes.instanceOf(Date)
|
|
15924
16019
|
};
|
|
@@ -15963,49 +16058,49 @@ const TimePicker = ({
|
|
|
15963
16058
|
};
|
|
15964
16059
|
TimePicker.displayName = 'TimePicker';
|
|
15965
16060
|
TimePicker.propTypes = {
|
|
15966
|
-
/**
|
|
15967
|
-
Additional styles.
|
|
16061
|
+
/**
|
|
16062
|
+
Additional styles.
|
|
15968
16063
|
*/
|
|
15969
16064
|
css: PropTypes.object,
|
|
15970
16065
|
|
|
15971
|
-
/**
|
|
15972
|
-
Resize time picker.
|
|
16066
|
+
/**
|
|
16067
|
+
Resize time picker.
|
|
15973
16068
|
*/
|
|
15974
16069
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
15975
16070
|
|
|
15976
|
-
/**
|
|
15977
|
-
Change handler.
|
|
16071
|
+
/**
|
|
16072
|
+
Change handler.
|
|
15978
16073
|
*/
|
|
15979
16074
|
onChange: PropTypes.func,
|
|
15980
16075
|
|
|
15981
|
-
/**
|
|
15982
|
-
Time picker default value, support moment format.
|
|
16076
|
+
/**
|
|
16077
|
+
Time picker default value, support moment format.
|
|
15983
16078
|
*/
|
|
15984
16079
|
defaultValue: PropTypes.instanceOf(Date),
|
|
15985
16080
|
|
|
15986
|
-
/**
|
|
15987
|
-
Time picker value, support moment format.
|
|
16081
|
+
/**
|
|
16082
|
+
Time picker value, support moment format.
|
|
15988
16083
|
*/
|
|
15989
16084
|
value: PropTypes.instanceOf(Date),
|
|
15990
16085
|
|
|
15991
|
-
/**
|
|
15992
|
-
Disabled state.
|
|
16086
|
+
/**
|
|
16087
|
+
Disabled state.
|
|
15993
16088
|
*/
|
|
15994
16089
|
disabled: PropTypes.bool,
|
|
15995
16090
|
|
|
15996
|
-
/**
|
|
15997
|
-
Specify the minimum date.
|
|
16091
|
+
/**
|
|
16092
|
+
Specify the minimum date.
|
|
15998
16093
|
*/
|
|
15999
16094
|
minDate: PropTypes.instanceOf(Date),
|
|
16000
16095
|
|
|
16001
|
-
/**
|
|
16002
|
-
Specify the maximum date.
|
|
16096
|
+
/**
|
|
16097
|
+
Specify the maximum date.
|
|
16003
16098
|
*/
|
|
16004
16099
|
maxDate: PropTypes.instanceOf(Date)
|
|
16005
16100
|
};
|
|
16006
16101
|
NativeTimePicker.displayName = 'NativeTimePicker';
|
|
16007
16102
|
|
|
16008
|
-
var _jsxFileName$j = "
|
|
16103
|
+
var _jsxFileName$j = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/datePicker/timePicker/InputTimePicker.js";
|
|
16009
16104
|
|
|
16010
16105
|
const getInputPickerValue$1 = date => {
|
|
16011
16106
|
if (!date) return;
|
|
@@ -16181,63 +16276,63 @@ InputTimePicker.defaultProps = {
|
|
|
16181
16276
|
placeholder: 'Select Time'
|
|
16182
16277
|
};
|
|
16183
16278
|
InputTimePicker.propTypes = {
|
|
16184
|
-
/**
|
|
16185
|
-
Additional styles.
|
|
16279
|
+
/**
|
|
16280
|
+
Additional styles.
|
|
16186
16281
|
*/
|
|
16187
16282
|
css: PropTypes.object,
|
|
16188
16283
|
|
|
16189
|
-
/**
|
|
16190
|
-
Disabled state.
|
|
16284
|
+
/**
|
|
16285
|
+
Disabled state.
|
|
16191
16286
|
*/
|
|
16192
16287
|
disabled: PropTypes.bool,
|
|
16193
16288
|
|
|
16194
|
-
/**
|
|
16195
|
-
ReadOnly state.
|
|
16289
|
+
/**
|
|
16290
|
+
ReadOnly state.
|
|
16196
16291
|
*/
|
|
16197
16292
|
readOnly: PropTypes.bool,
|
|
16198
16293
|
|
|
16199
|
-
/**
|
|
16200
|
-
Resize time picker.
|
|
16294
|
+
/**
|
|
16295
|
+
Resize time picker.
|
|
16201
16296
|
*/
|
|
16202
16297
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
16203
16298
|
|
|
16204
|
-
/**
|
|
16205
|
-
Custom placeholder input time picker.
|
|
16299
|
+
/**
|
|
16300
|
+
Custom placeholder input time picker.
|
|
16206
16301
|
*/
|
|
16207
16302
|
placeholder: PropTypes.string,
|
|
16208
16303
|
|
|
16209
|
-
/**
|
|
16210
|
-
Time picker default value, support moment format.
|
|
16304
|
+
/**
|
|
16305
|
+
Time picker default value, support moment format.
|
|
16211
16306
|
*/
|
|
16212
16307
|
defaultValue: PropTypes.instanceOf(Date),
|
|
16213
16308
|
|
|
16214
|
-
/**
|
|
16215
|
-
Time picker value, support moment format.
|
|
16309
|
+
/**
|
|
16310
|
+
Time picker value, support moment format.
|
|
16216
16311
|
*/
|
|
16217
16312
|
value: PropTypes.instanceOf(Date),
|
|
16218
16313
|
|
|
16219
|
-
/**
|
|
16220
|
-
Change handler.
|
|
16314
|
+
/**
|
|
16315
|
+
Change handler.
|
|
16221
16316
|
*/
|
|
16222
16317
|
onChange: PropTypes.func,
|
|
16223
16318
|
|
|
16224
|
-
/**
|
|
16225
|
-
Placement popover input time picker.
|
|
16319
|
+
/**
|
|
16320
|
+
Placement popover input time picker.
|
|
16226
16321
|
*/
|
|
16227
16322
|
placement: PropTypes.string,
|
|
16228
16323
|
|
|
16229
|
-
/**
|
|
16230
|
-
Specify the minimum date.
|
|
16324
|
+
/**
|
|
16325
|
+
Specify the minimum date.
|
|
16231
16326
|
*/
|
|
16232
16327
|
minDate: PropTypes.instanceOf(Date),
|
|
16233
16328
|
|
|
16234
|
-
/**
|
|
16235
|
-
Specify the maximum date.
|
|
16329
|
+
/**
|
|
16330
|
+
Specify the maximum date.
|
|
16236
16331
|
*/
|
|
16237
16332
|
maxDate: PropTypes.instanceOf(Date),
|
|
16238
16333
|
|
|
16239
|
-
/**
|
|
16240
|
-
* Invalid state input.
|
|
16334
|
+
/**
|
|
16335
|
+
* Invalid state input.
|
|
16241
16336
|
*/
|
|
16242
16337
|
isInvalid: PropTypes.bool
|
|
16243
16338
|
};
|
|
@@ -16772,7 +16867,7 @@ const removeUndefinedFields = obj => {
|
|
|
16772
16867
|
};
|
|
16773
16868
|
|
|
16774
16869
|
const _excluded$4 = ["isActive", "onClick"];
|
|
16775
|
-
var _jsxFileName$i = "
|
|
16870
|
+
var _jsxFileName$i = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationButton.js";
|
|
16776
16871
|
const PrevNextButton = styled(Text$1, {
|
|
16777
16872
|
padding: '$spacing-01',
|
|
16778
16873
|
cursor: 'pointer',
|
|
@@ -17042,7 +17137,7 @@ const PaginationButton = ({
|
|
|
17042
17137
|
};
|
|
17043
17138
|
|
|
17044
17139
|
const _excluded$3 = ["limits", "selectedLimit", "currentPage", "totalData", "onChange"];
|
|
17045
|
-
var _jsxFileName$h = "
|
|
17140
|
+
var _jsxFileName$h = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/PaginationInfo.js";
|
|
17046
17141
|
const LimitContainer = styled(Flex$1, {
|
|
17047
17142
|
cursor: 'pointer'
|
|
17048
17143
|
});
|
|
@@ -17179,7 +17274,7 @@ function PaginationInfo(_ref) {
|
|
|
17179
17274
|
}
|
|
17180
17275
|
|
|
17181
17276
|
const _excluded$2 = ["limit", "currentPage", "totalData", "hideDataInfo", "onLimitChange", "onPageChange", "rowsPerPageOptions"];
|
|
17182
|
-
var _jsxFileName$g = "
|
|
17277
|
+
var _jsxFileName$g = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/pagination/Pagination.js";
|
|
17183
17278
|
|
|
17184
17279
|
function Pagination(_ref) {
|
|
17185
17280
|
let {
|
|
@@ -17796,7 +17891,7 @@ const stickyPositionStyling = column => {
|
|
|
17796
17891
|
return {};
|
|
17797
17892
|
};
|
|
17798
17893
|
|
|
17799
|
-
const stickyShadowStyling = column => {
|
|
17894
|
+
const stickyShadowStyling = (column, tableScrollPosition, scrollAreaWidth) => {
|
|
17800
17895
|
const cssAfter = {
|
|
17801
17896
|
position: 'absolute',
|
|
17802
17897
|
top: 0,
|
|
@@ -17812,12 +17907,12 @@ const stickyShadowStyling = column => {
|
|
|
17812
17907
|
return column.sticky === 'left' ? {
|
|
17813
17908
|
'&::after': Object.assign(Object.assign({}, cssAfter), {
|
|
17814
17909
|
right: 0,
|
|
17815
|
-
boxShadow: 'inset 10px 0 10px -10px #00000026'
|
|
17910
|
+
boxShadow: tableScrollPosition === 'start' || scrollAreaWidth <= 0 ? 'none' : 'inset 10px 0 10px -10px #00000026'
|
|
17816
17911
|
})
|
|
17817
17912
|
} : {
|
|
17818
17913
|
'&::after': Object.assign(Object.assign({}, cssAfter), {
|
|
17819
17914
|
left: 0,
|
|
17820
|
-
boxShadow: 'inset -10px 0 10px -10px #00000026'
|
|
17915
|
+
boxShadow: tableScrollPosition === 'end' || scrollAreaWidth <= 0 ? 'none' : 'inset -10px 0 10px -10px #00000026'
|
|
17821
17916
|
})
|
|
17822
17917
|
};
|
|
17823
17918
|
}
|
|
@@ -17872,6 +17967,8 @@ function Table({
|
|
|
17872
17967
|
}) {
|
|
17873
17968
|
const [limit, setLimit] = useState(rowLimit);
|
|
17874
17969
|
const [dataRow, setDataRow] = useState({});
|
|
17970
|
+
const [tableScrollPosition, setTableScrollPosition] = useState('start');
|
|
17971
|
+
const [scrollAreaWidth, setScrollAreaWidth] = useState(0);
|
|
17875
17972
|
|
|
17876
17973
|
const getInitialState = () => {
|
|
17877
17974
|
const initialState = {};
|
|
@@ -17905,6 +18002,8 @@ function Table({
|
|
|
17905
18002
|
autoResetSelectedRows: false,
|
|
17906
18003
|
getRowId: showDuplicatedData ? undefined : row => row[keyId] || JSON.stringify(row)
|
|
17907
18004
|
}, useSortBy, useExpanded, usePagination, useRowSelect, useSticky, useColumnOrder);
|
|
18005
|
+
const scrollerRef = useRef(null);
|
|
18006
|
+
const isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 1024px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
17908
18007
|
const {
|
|
17909
18008
|
getTableProps,
|
|
17910
18009
|
getTableBodyProps,
|
|
@@ -17936,9 +18035,6 @@ function Table({
|
|
|
17936
18035
|
if (fetchData) fetchData(fetchParams);
|
|
17937
18036
|
};
|
|
17938
18037
|
|
|
17939
|
-
const scrollerRef = useRef(null);
|
|
17940
|
-
const isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 1024px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
17941
|
-
|
|
17942
18038
|
const renderFooter = () => jsx(Pagination, {
|
|
17943
18039
|
limit: pageSize,
|
|
17944
18040
|
currentPage: pageIndex + 1,
|
|
@@ -17980,43 +18076,6 @@ function Table({
|
|
|
17980
18076
|
children: children
|
|
17981
18077
|
}), void 0);
|
|
17982
18078
|
|
|
17983
|
-
useEffect(() => {
|
|
17984
|
-
if (hiddenColumns) setHiddenColumns(hiddenColumns);
|
|
17985
|
-
}, [hiddenColumns]);
|
|
17986
|
-
useEffect(() => {
|
|
17987
|
-
if (columnOrder) setColumnOrder(columnOrder);
|
|
17988
|
-
}, [columnOrder]);
|
|
17989
|
-
useEffect(() => {
|
|
17990
|
-
setPageSize(rowLimit);
|
|
17991
|
-
}, [rowLimit]);
|
|
17992
|
-
useEffect(() => {
|
|
17993
|
-
gotoPage(controlledPageIndex);
|
|
17994
|
-
}, [controlledPageIndex]);
|
|
17995
|
-
useEffect(() => {
|
|
17996
|
-
if (data && data.length > 0) doFetchData(0, isInfiniteScroll ? rowLimit : pageSize);
|
|
17997
|
-
}, [sortBy]);
|
|
17998
|
-
useMountedLayoutEffect(() => {
|
|
17999
|
-
if (data && data.length > 0 && selectedRowIds && onSelectedChange) onSelectedChange(selectedRowIds ? Object.keys(selectedRowIds) : []);
|
|
18000
|
-
}, [selectedRowIds]);
|
|
18001
|
-
useEffect(() => {
|
|
18002
|
-
var _a;
|
|
18003
|
-
|
|
18004
|
-
if (isInfiniteScroll && data.length <= rowLimit) {
|
|
18005
|
-
(_a = scrollerRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
18006
|
-
top: 0
|
|
18007
|
-
});
|
|
18008
|
-
}
|
|
18009
|
-
}, [data]);
|
|
18010
|
-
useEffect(() => {
|
|
18011
|
-
if (selectedIds && data.length > 0) {
|
|
18012
|
-
const selectedIdsKeys = Object.keys(selectedIds);
|
|
18013
|
-
selectedIdsKeys.map(key => {
|
|
18014
|
-
toggleRowSelected(key, true);
|
|
18015
|
-
return key;
|
|
18016
|
-
});
|
|
18017
|
-
}
|
|
18018
|
-
}, [data, selectedIds]);
|
|
18019
|
-
|
|
18020
18079
|
const getOptionsMenu = () => {
|
|
18021
18080
|
var _a, _b;
|
|
18022
18081
|
|
|
@@ -18064,6 +18123,47 @@ function Table({
|
|
|
18064
18123
|
setDataRow(row);
|
|
18065
18124
|
};
|
|
18066
18125
|
|
|
18126
|
+
useLayoutEffect(() => {
|
|
18127
|
+
if (scrollerRef && scrollerRef.current) {
|
|
18128
|
+
setScrollAreaWidth(scrollerRef.current.scrollWidth - scrollerRef.current.clientWidth);
|
|
18129
|
+
}
|
|
18130
|
+
}, [scrollerRef, visibleColumns]);
|
|
18131
|
+
useEffect(() => {
|
|
18132
|
+
if (hiddenColumns) setHiddenColumns(hiddenColumns);
|
|
18133
|
+
}, [hiddenColumns]);
|
|
18134
|
+
useEffect(() => {
|
|
18135
|
+
if (columnOrder) setColumnOrder(columnOrder);
|
|
18136
|
+
}, [columnOrder]);
|
|
18137
|
+
useEffect(() => {
|
|
18138
|
+
setPageSize(rowLimit);
|
|
18139
|
+
}, [rowLimit]);
|
|
18140
|
+
useEffect(() => {
|
|
18141
|
+
gotoPage(controlledPageIndex);
|
|
18142
|
+
}, [controlledPageIndex]);
|
|
18143
|
+
useEffect(() => {
|
|
18144
|
+
if (data && data.length > 0) doFetchData(0, isInfiniteScroll ? rowLimit : pageSize);
|
|
18145
|
+
}, [sortBy]);
|
|
18146
|
+
useMountedLayoutEffect(() => {
|
|
18147
|
+
if (data && data.length > 0 && selectedRowIds && onSelectedChange) onSelectedChange(selectedRowIds ? Object.keys(selectedRowIds) : []);
|
|
18148
|
+
}, [selectedRowIds]);
|
|
18149
|
+
useEffect(() => {
|
|
18150
|
+
var _a;
|
|
18151
|
+
|
|
18152
|
+
if (isInfiniteScroll && data.length <= rowLimit) {
|
|
18153
|
+
(_a = scrollerRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
18154
|
+
top: 0
|
|
18155
|
+
});
|
|
18156
|
+
}
|
|
18157
|
+
}, [data]);
|
|
18158
|
+
useEffect(() => {
|
|
18159
|
+
if (selectedIds && data.length > 0) {
|
|
18160
|
+
const selectedIdsKeys = Object.keys(selectedIds);
|
|
18161
|
+
selectedIdsKeys.map(key => {
|
|
18162
|
+
toggleRowSelected(key, true);
|
|
18163
|
+
return key;
|
|
18164
|
+
});
|
|
18165
|
+
}
|
|
18166
|
+
}, [data, selectedIds]);
|
|
18067
18167
|
return jsxs(Box, Object.assign({
|
|
18068
18168
|
css: {
|
|
18069
18169
|
position: 'relative',
|
|
@@ -18093,7 +18193,18 @@ function Table({
|
|
|
18093
18193
|
}), void 0), !isMobile ? jsxs(Fragment, {
|
|
18094
18194
|
children: [jsxs(TableContainer$3, Object.assign({
|
|
18095
18195
|
css: css,
|
|
18096
|
-
ref: scrollerRef
|
|
18196
|
+
ref: scrollerRef,
|
|
18197
|
+
onScroll: e => {
|
|
18198
|
+
const scrollPosition = e.currentTarget.scrollLeft;
|
|
18199
|
+
|
|
18200
|
+
if (scrollPosition < 3) {
|
|
18201
|
+
setTableScrollPosition('start');
|
|
18202
|
+
} else if (scrollPosition > scrollAreaWidth - 3) {
|
|
18203
|
+
setTableScrollPosition('end');
|
|
18204
|
+
} else {
|
|
18205
|
+
setTableScrollPosition('between');
|
|
18206
|
+
}
|
|
18207
|
+
}
|
|
18097
18208
|
}, {
|
|
18098
18209
|
children: [renderInfiniteScrollWrapper(jsxs(TableContent$3, Object.assign({}, getTableProps(), {
|
|
18099
18210
|
children: [jsx(TableHead$3, Object.assign({
|
|
@@ -18113,7 +18224,7 @@ function Table({
|
|
|
18113
18224
|
minWidth: column.colMinWidth
|
|
18114
18225
|
}
|
|
18115
18226
|
}]), {
|
|
18116
|
-
css: Object.assign(Object.assign({}, stickyPositionStyling(column)), stickyShadowStyling(column))
|
|
18227
|
+
css: Object.assign(Object.assign({}, stickyPositionStyling(column)), stickyShadowStyling(column, tableScrollPosition, scrollAreaWidth))
|
|
18117
18228
|
}, {
|
|
18118
18229
|
children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer, Object.assign({
|
|
18119
18230
|
isSortedDesc: column.isSortedDesc,
|
|
@@ -18168,7 +18279,7 @@ function Table({
|
|
|
18168
18279
|
padding: !isContextMenu || ['expander', 'selection', 'menu', 'eye'].includes((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.id) ? cell.column.accessor ? '20px 8px' : '20px 20px' : '',
|
|
18169
18280
|
verticalAlign: cell.column.accessor ? cellAlign : 'center',
|
|
18170
18281
|
cursor: onRowClick ? 'pointer' : 'unset'
|
|
18171
|
-
}, stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column)),
|
|
18282
|
+
}, stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column, tableScrollPosition, scrollAreaWidth)),
|
|
18172
18283
|
onClick: () => handleRowClick(row, i)
|
|
18173
18284
|
}, {
|
|
18174
18285
|
children: jsx(ConditionalWrapper, Object.assign({
|
|
@@ -18273,7 +18384,7 @@ const TableColumn = _a => {
|
|
|
18273
18384
|
return jsx("div", {}, void 0);
|
|
18274
18385
|
};
|
|
18275
18386
|
|
|
18276
|
-
var _jsxFileName$f = "
|
|
18387
|
+
var _jsxFileName$f = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/DateColumn.js";
|
|
18277
18388
|
|
|
18278
18389
|
const DateColumn = ({
|
|
18279
18390
|
value,
|
|
@@ -18309,12 +18420,11 @@ var uncurryThis$9 = functionUncurryThis;
|
|
|
18309
18420
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
18310
18421
|
var thisNumberValue$1 = uncurryThis$9(1.0.valueOf);
|
|
18311
18422
|
|
|
18312
|
-
var global$7 = global$U;
|
|
18313
18423
|
var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
|
|
18314
18424
|
var toString$7 = toString$h;
|
|
18315
18425
|
var requireObjectCoercible$3 = requireObjectCoercible$a;
|
|
18316
18426
|
|
|
18317
|
-
var RangeError$2 =
|
|
18427
|
+
var $RangeError$2 = RangeError;
|
|
18318
18428
|
|
|
18319
18429
|
// `String.prototype.repeat` method implementation
|
|
18320
18430
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
@@ -18322,21 +18432,20 @@ var stringRepeat = function repeat(count) {
|
|
|
18322
18432
|
var str = toString$7(requireObjectCoercible$3(this));
|
|
18323
18433
|
var result = '';
|
|
18324
18434
|
var n = toIntegerOrInfinity$3(count);
|
|
18325
|
-
if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
|
|
18435
|
+
if (n < 0 || n == Infinity) throw $RangeError$2('Wrong number of repetitions');
|
|
18326
18436
|
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
|
|
18327
18437
|
return result;
|
|
18328
18438
|
};
|
|
18329
18439
|
|
|
18330
18440
|
var $$6 = _export;
|
|
18331
|
-
var global$6 = global$U;
|
|
18332
18441
|
var uncurryThis$8 = functionUncurryThis;
|
|
18333
18442
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
|
|
18334
18443
|
var thisNumberValue = thisNumberValue$1;
|
|
18335
18444
|
var $repeat = stringRepeat;
|
|
18336
18445
|
var fails$5 = fails$t;
|
|
18337
18446
|
|
|
18338
|
-
var RangeError$1 =
|
|
18339
|
-
var String
|
|
18447
|
+
var $RangeError$1 = RangeError;
|
|
18448
|
+
var $String = String;
|
|
18340
18449
|
var floor$3 = Math.floor;
|
|
18341
18450
|
var repeat = uncurryThis$8($repeat);
|
|
18342
18451
|
var stringSlice$6 = uncurryThis$8(''.slice);
|
|
@@ -18384,7 +18493,7 @@ var dataToString = function (data) {
|
|
|
18384
18493
|
var s = '';
|
|
18385
18494
|
while (--index >= 0) {
|
|
18386
18495
|
if (s !== '' || index === 0 || data[index] !== 0) {
|
|
18387
|
-
var t = String
|
|
18496
|
+
var t = $String(data[index]);
|
|
18388
18497
|
s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
|
|
18389
18498
|
}
|
|
18390
18499
|
} return s;
|
|
@@ -18412,10 +18521,10 @@ $$6({ target: 'Number', proto: true, forced: FORCED$1 }, {
|
|
|
18412
18521
|
var e, z, j, k;
|
|
18413
18522
|
|
|
18414
18523
|
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
|
|
18415
|
-
if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits');
|
|
18524
|
+
if (fractDigits < 0 || fractDigits > 20) throw $RangeError$1('Incorrect fraction digits');
|
|
18416
18525
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
18417
18526
|
if (number != number) return 'NaN';
|
|
18418
|
-
if (number <= -1e21 || number >= 1e21) return String
|
|
18527
|
+
if (number <= -1e21 || number >= 1e21) return $String(number);
|
|
18419
18528
|
if (number < 0) {
|
|
18420
18529
|
sign = '-';
|
|
18421
18530
|
number = -number;
|
|
@@ -18459,7 +18568,7 @@ $$6({ target: 'Number', proto: true, forced: FORCED$1 }, {
|
|
|
18459
18568
|
}
|
|
18460
18569
|
});
|
|
18461
18570
|
|
|
18462
|
-
var global$
|
|
18571
|
+
var global$3 = global$s;
|
|
18463
18572
|
var fails$4 = fails$t;
|
|
18464
18573
|
var uncurryThis$7 = functionUncurryThis;
|
|
18465
18574
|
var toString$6 = toString$h;
|
|
@@ -18467,8 +18576,8 @@ var trim = stringTrim.trim;
|
|
|
18467
18576
|
var whitespaces$1 = whitespaces$4;
|
|
18468
18577
|
|
|
18469
18578
|
var charAt$6 = uncurryThis$7(''.charAt);
|
|
18470
|
-
var n$ParseFloat = global$
|
|
18471
|
-
var Symbol$5 = global$
|
|
18579
|
+
var n$ParseFloat = global$3.parseFloat;
|
|
18580
|
+
var Symbol$5 = global$3.Symbol;
|
|
18472
18581
|
var ITERATOR$2 = Symbol$5 && Symbol$5.iterator;
|
|
18473
18582
|
var FORCED = 1 / n$ParseFloat(whitespaces$1 + '-0') !== -Infinity
|
|
18474
18583
|
// MS Edge 18- broken with boxed symbols
|
|
@@ -18957,7 +19066,7 @@ const PriceColumn = props => {
|
|
|
18957
19066
|
return addThousandSeparator(param);
|
|
18958
19067
|
};
|
|
18959
19068
|
|
|
18960
|
-
var _jsxFileName$e = "
|
|
19069
|
+
var _jsxFileName$e = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowExpanderColumn.js";
|
|
18961
19070
|
const rowExpanderColumn = {
|
|
18962
19071
|
id: 'expander',
|
|
18963
19072
|
Header: () => null,
|
|
@@ -18999,7 +19108,7 @@ const rowExpanderColumn = {
|
|
|
18999
19108
|
unsortable: true
|
|
19000
19109
|
};
|
|
19001
19110
|
|
|
19002
|
-
var _jsxFileName$d = "
|
|
19111
|
+
var _jsxFileName$d = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowMenuColumn.js";
|
|
19003
19112
|
|
|
19004
19113
|
const rowMenuColumn = (options, icon, config) => ({
|
|
19005
19114
|
id: 'menu',
|
|
@@ -19251,7 +19360,7 @@ const rowMenuColumn = (options, icon, config) => ({
|
|
|
19251
19360
|
unsortable: true
|
|
19252
19361
|
});
|
|
19253
19362
|
|
|
19254
|
-
var _jsxFileName$c = "
|
|
19363
|
+
var _jsxFileName$c = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/table/components/columns/RowSelectionColumn.js";
|
|
19255
19364
|
const rowSelectionColumn = {
|
|
19256
19365
|
id: 'selection',
|
|
19257
19366
|
Header: ({
|
|
@@ -19554,7 +19663,7 @@ PageDialog.defaultProps = {
|
|
|
19554
19663
|
};
|
|
19555
19664
|
|
|
19556
19665
|
const _excluded$1 = ["children"];
|
|
19557
|
-
var _jsxFileName$b = "
|
|
19666
|
+
var _jsxFileName$b = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/alertDialog/AlertDialog.js";
|
|
19558
19667
|
const overlayShow = keyframes({
|
|
19559
19668
|
'0%': {
|
|
19560
19669
|
opacity: 0
|
|
@@ -20153,7 +20262,7 @@ const AlertDialogCancel = ADialog.Cancel;
|
|
|
20153
20262
|
const AlertDialogConfirm = ADialog.Action;
|
|
20154
20263
|
|
|
20155
20264
|
const _excluded = ["side", "align", "children"];
|
|
20156
|
-
var _jsxFileName$a = "
|
|
20265
|
+
var _jsxFileName$a = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/dropdownMenu/DropdownMenu.js";
|
|
20157
20266
|
const Context = /*#__PURE__*/React__default.createContext();
|
|
20158
20267
|
const slideUpAndFade = keyframes({
|
|
20159
20268
|
'0%': {
|
|
@@ -20490,7 +20599,6 @@ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
|
20490
20599
|
}
|
|
20491
20600
|
};
|
|
20492
20601
|
|
|
20493
|
-
var global$4 = global$U;
|
|
20494
20602
|
var bind$2 = functionBindContext;
|
|
20495
20603
|
var call$2 = functionCall;
|
|
20496
20604
|
var toObject = toObject$7;
|
|
@@ -20502,7 +20610,7 @@ var createProperty = createProperty$2;
|
|
|
20502
20610
|
var getIterator$1 = getIterator$3;
|
|
20503
20611
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
20504
20612
|
|
|
20505
|
-
var Array
|
|
20613
|
+
var $Array = Array;
|
|
20506
20614
|
|
|
20507
20615
|
// `Array.from` method implementation
|
|
20508
20616
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -20517,7 +20625,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
20517
20625
|
var index = 0;
|
|
20518
20626
|
var length, result, step, iterator, next, value;
|
|
20519
20627
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
20520
|
-
if (iteratorMethod && !(this
|
|
20628
|
+
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
20521
20629
|
iterator = getIterator$1(O, iteratorMethod);
|
|
20522
20630
|
next = iterator.next;
|
|
20523
20631
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
@@ -20527,7 +20635,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
20527
20635
|
}
|
|
20528
20636
|
} else {
|
|
20529
20637
|
length = lengthOfArrayLike(O);
|
|
20530
|
-
result = IS_CONSTRUCTOR ? new this(length) : Array
|
|
20638
|
+
result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
|
|
20531
20639
|
for (;length > index; index++) {
|
|
20532
20640
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
20533
20641
|
createProperty(result, index, value);
|
|
@@ -20538,7 +20646,6 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
20538
20646
|
};
|
|
20539
20647
|
|
|
20540
20648
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
20541
|
-
var global$3 = global$U;
|
|
20542
20649
|
var uncurryThis$2 = functionUncurryThis;
|
|
20543
20650
|
|
|
20544
20651
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
@@ -20555,7 +20662,7 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
|
20555
20662
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
20556
20663
|
var baseMinusTMin = base - tMin;
|
|
20557
20664
|
|
|
20558
|
-
var RangeError =
|
|
20665
|
+
var $RangeError = RangeError;
|
|
20559
20666
|
var exec$1 = uncurryThis$2(regexSeparators.exec);
|
|
20560
20667
|
var floor$1 = Math.floor;
|
|
20561
20668
|
var fromCharCode = String.fromCharCode;
|
|
@@ -20670,7 +20777,7 @@ var encode = function (input) {
|
|
|
20670
20777
|
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
20671
20778
|
var handledCPCountPlusOne = handledCPCount + 1;
|
|
20672
20779
|
if (m - n > floor$1((maxInt - delta) / handledCPCountPlusOne)) {
|
|
20673
|
-
throw RangeError(OVERFLOW_ERROR);
|
|
20780
|
+
throw $RangeError(OVERFLOW_ERROR);
|
|
20674
20781
|
}
|
|
20675
20782
|
|
|
20676
20783
|
delta += (m - n) * handledCPCountPlusOne;
|
|
@@ -20679,7 +20786,7 @@ var encode = function (input) {
|
|
|
20679
20786
|
for (i = 0; i < input.length; i++) {
|
|
20680
20787
|
currentValue = input[i];
|
|
20681
20788
|
if (currentValue < n && ++delta > maxInt) {
|
|
20682
|
-
throw RangeError(OVERFLOW_ERROR);
|
|
20789
|
+
throw $RangeError(OVERFLOW_ERROR);
|
|
20683
20790
|
}
|
|
20684
20791
|
if (currentValue == n) {
|
|
20685
20792
|
// Represent delta as a generalized variable-length integer.
|
|
@@ -20729,7 +20836,7 @@ var defineBuiltIns$1 = function (target, src, options) {
|
|
|
20729
20836
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
20730
20837
|
|
|
20731
20838
|
var $$4 = _export;
|
|
20732
|
-
var global$2 = global$
|
|
20839
|
+
var global$2 = global$s;
|
|
20733
20840
|
var call$1 = functionCall;
|
|
20734
20841
|
var uncurryThis$1 = functionUncurryThis;
|
|
20735
20842
|
var DESCRIPTORS$1 = descriptors;
|
|
@@ -21091,7 +21198,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
21091
21198
|
};
|
|
21092
21199
|
|
|
21093
21200
|
if (isCallable(nativeFetch)) {
|
|
21094
|
-
$$4({ global: true, enumerable: true,
|
|
21201
|
+
$$4({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
|
|
21095
21202
|
fetch: function fetch(input /* , init */) {
|
|
21096
21203
|
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
21097
21204
|
}
|
|
@@ -21107,7 +21214,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
21107
21214
|
RequestPrototype.constructor = RequestConstructor;
|
|
21108
21215
|
RequestConstructor.prototype = RequestPrototype;
|
|
21109
21216
|
|
|
21110
|
-
$$4({ global: true, constructor: true,
|
|
21217
|
+
$$4({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
|
|
21111
21218
|
Request: RequestConstructor
|
|
21112
21219
|
});
|
|
21113
21220
|
}
|
|
@@ -21123,7 +21230,7 @@ var web_urlSearchParams_constructor = {
|
|
|
21123
21230
|
var $$3 = _export;
|
|
21124
21231
|
var DESCRIPTORS = descriptors;
|
|
21125
21232
|
var USE_NATIVE_URL = nativeUrl;
|
|
21126
|
-
var global$1 = global$
|
|
21233
|
+
var global$1 = global$s;
|
|
21127
21234
|
var bind = functionBindContext;
|
|
21128
21235
|
var uncurryThis = functionUncurryThis;
|
|
21129
21236
|
var defineBuiltIn = defineBuiltIn$b;
|
|
@@ -22267,7 +22374,7 @@ function upload({
|
|
|
22267
22374
|
return promise;
|
|
22268
22375
|
}
|
|
22269
22376
|
|
|
22270
|
-
var _jsxFileName$9 = "
|
|
22377
|
+
var _jsxFileName$9 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/upload/Upload.js";
|
|
22271
22378
|
const Input$2 = styled('input', {
|
|
22272
22379
|
display: 'none !important'
|
|
22273
22380
|
});
|
|
@@ -23456,176 +23563,176 @@ Upload.defaultProps = {
|
|
|
23456
23563
|
imageCompression: true
|
|
23457
23564
|
};
|
|
23458
23565
|
Upload.propTypes = {
|
|
23459
|
-
/**
|
|
23460
|
-
Placeholder label of upload.
|
|
23566
|
+
/**
|
|
23567
|
+
Placeholder label of upload.
|
|
23461
23568
|
*/
|
|
23462
23569
|
placeholder: PropTypes.string,
|
|
23463
23570
|
|
|
23464
|
-
/**
|
|
23465
|
-
Disabled state of upload.
|
|
23571
|
+
/**
|
|
23572
|
+
Disabled state of upload.
|
|
23466
23573
|
*/
|
|
23467
23574
|
disabled: PropTypes.bool,
|
|
23468
23575
|
|
|
23469
|
-
/**
|
|
23470
|
-
Built-in stylesheets, support for two types.
|
|
23576
|
+
/**
|
|
23577
|
+
Built-in stylesheets, support for two types.
|
|
23471
23578
|
*/
|
|
23472
23579
|
listType: PropTypes.oneOf(['file', 'picture']),
|
|
23473
23580
|
|
|
23474
|
-
/**
|
|
23475
|
-
Whether to support selected multiple file.
|
|
23581
|
+
/**
|
|
23582
|
+
Whether to support selected multiple file.
|
|
23476
23583
|
*/
|
|
23477
23584
|
multiple: PropTypes.bool,
|
|
23478
23585
|
|
|
23479
|
-
/**
|
|
23480
|
-
List of files to be uploaded.
|
|
23586
|
+
/**
|
|
23587
|
+
List of files to be uploaded.
|
|
23481
23588
|
*/
|
|
23482
23589
|
fileList: PropTypes.array,
|
|
23483
23590
|
|
|
23484
|
-
/**
|
|
23485
|
-
A callback function, can be executed when uploading state is changing.
|
|
23591
|
+
/**
|
|
23592
|
+
A callback function, can be executed when uploading state is changing.
|
|
23486
23593
|
*/
|
|
23487
23594
|
onChange: PropTypes.func,
|
|
23488
23595
|
|
|
23489
|
-
/**
|
|
23490
|
-
A callback function, can be executed when uploading in progress.
|
|
23491
|
-
`(progress) => void`
|
|
23596
|
+
/**
|
|
23597
|
+
A callback function, can be executed when uploading in progress.
|
|
23598
|
+
`(progress) => void`
|
|
23492
23599
|
*/
|
|
23493
23600
|
onProgress: PropTypes.func,
|
|
23494
23601
|
|
|
23495
|
-
/**
|
|
23496
|
-
A callback function, can be executed when uploading is success.
|
|
23497
|
-
`(response) => void`
|
|
23602
|
+
/**
|
|
23603
|
+
A callback function, can be executed when uploading is success.
|
|
23604
|
+
`(response) => void`
|
|
23498
23605
|
*/
|
|
23499
23606
|
onSuccess: PropTypes.func,
|
|
23500
23607
|
|
|
23501
|
-
/**
|
|
23502
|
-
A callback function, can be executed when uploading is error.
|
|
23503
|
-
`(error, response) => void`
|
|
23608
|
+
/**
|
|
23609
|
+
A callback function, can be executed when uploading is error.
|
|
23610
|
+
`(error, response) => void`
|
|
23504
23611
|
*/
|
|
23505
23612
|
onError: PropTypes.func,
|
|
23506
23613
|
|
|
23507
|
-
/**
|
|
23508
|
-
A callback function, can be executed when preview icon in picture type is clicked.
|
|
23614
|
+
/**
|
|
23615
|
+
A callback function, can be executed when preview icon in picture type is clicked.
|
|
23509
23616
|
*/
|
|
23510
23617
|
onPreview: PropTypes.func,
|
|
23511
23618
|
|
|
23512
|
-
/**
|
|
23513
|
-
A callback function, can be executed when remove icon is clicked.
|
|
23619
|
+
/**
|
|
23620
|
+
A callback function, can be executed when remove icon is clicked.
|
|
23514
23621
|
*/
|
|
23515
23622
|
onRemove: PropTypes.func,
|
|
23516
23623
|
|
|
23517
|
-
/**
|
|
23518
|
-
A custom element inside upload container.
|
|
23624
|
+
/**
|
|
23625
|
+
A custom element inside upload container.
|
|
23519
23626
|
*/
|
|
23520
23627
|
children: PropTypes.element,
|
|
23521
23628
|
|
|
23522
|
-
/**
|
|
23523
|
-
Limit the number of uploaded files.
|
|
23629
|
+
/**
|
|
23630
|
+
Limit the number of uploaded files.
|
|
23524
23631
|
*/
|
|
23525
23632
|
max: PropTypes.number,
|
|
23526
23633
|
|
|
23527
|
-
/**
|
|
23528
|
-
Limit the maximum image size in MB.
|
|
23634
|
+
/**
|
|
23635
|
+
Limit the maximum image size in MB.
|
|
23529
23636
|
*/
|
|
23530
23637
|
maxSizeMB: PropTypes.number,
|
|
23531
23638
|
|
|
23532
|
-
/**
|
|
23533
|
-
Limit file type of upload.
|
|
23639
|
+
/**
|
|
23640
|
+
Limit file type of upload.
|
|
23534
23641
|
*/
|
|
23535
23642
|
accept: PropTypes.string,
|
|
23536
23643
|
|
|
23537
|
-
/**
|
|
23538
|
-
Custom label for replace button.
|
|
23644
|
+
/**
|
|
23645
|
+
Custom label for replace button.
|
|
23539
23646
|
*/
|
|
23540
23647
|
replaceLabel: PropTypes.string,
|
|
23541
23648
|
|
|
23542
|
-
/**
|
|
23543
|
-
Custom width of upload container.
|
|
23649
|
+
/**
|
|
23650
|
+
Custom width of upload container.
|
|
23544
23651
|
*/
|
|
23545
23652
|
width: PropTypes.number,
|
|
23546
23653
|
|
|
23547
|
-
/**
|
|
23548
|
-
Custom height of upload container.
|
|
23654
|
+
/**
|
|
23655
|
+
Custom height of upload container.
|
|
23549
23656
|
*/
|
|
23550
23657
|
height: PropTypes.number,
|
|
23551
23658
|
|
|
23552
|
-
/**
|
|
23553
|
-
Additional css.
|
|
23659
|
+
/**
|
|
23660
|
+
Additional css.
|
|
23554
23661
|
*/
|
|
23555
23662
|
css: PropTypes.object,
|
|
23556
23663
|
|
|
23557
|
-
/**
|
|
23558
|
-
Custom title header of cropper modal.
|
|
23664
|
+
/**
|
|
23665
|
+
Custom title header of cropper modal.
|
|
23559
23666
|
*/
|
|
23560
23667
|
cropperTitle: PropTypes.string,
|
|
23561
23668
|
|
|
23562
|
-
/**
|
|
23563
|
-
Add image cropper on upload.
|
|
23669
|
+
/**
|
|
23670
|
+
Add image cropper on upload.
|
|
23564
23671
|
*/
|
|
23565
23672
|
showCropper: PropTypes.bool,
|
|
23566
23673
|
|
|
23567
|
-
/**
|
|
23568
|
-
Hidden toggle aspect ratio image cropper.
|
|
23674
|
+
/**
|
|
23675
|
+
Hidden toggle aspect ratio image cropper.
|
|
23569
23676
|
*/
|
|
23570
23677
|
hiddenToggleAspect: PropTypes.bool,
|
|
23571
23678
|
|
|
23572
|
-
/**
|
|
23573
|
-
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.
|
|
23679
|
+
/**
|
|
23680
|
+
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.
|
|
23574
23681
|
*/
|
|
23575
23682
|
ratio: PropTypes.number,
|
|
23576
23683
|
|
|
23577
|
-
/**
|
|
23578
|
-
Can set error message to the upload.
|
|
23684
|
+
/**
|
|
23685
|
+
Can set error message to the upload.
|
|
23579
23686
|
*/
|
|
23580
23687
|
errorMessage: PropTypes.string,
|
|
23581
23688
|
|
|
23582
|
-
/**
|
|
23583
|
-
Progress of upload process.
|
|
23689
|
+
/**
|
|
23690
|
+
Progress of upload process.
|
|
23584
23691
|
*/
|
|
23585
23692
|
progress: PropTypes.number,
|
|
23586
23693
|
|
|
23587
|
-
/**
|
|
23588
|
-
Auto increment progress of upload process.
|
|
23694
|
+
/**
|
|
23695
|
+
Auto increment progress of upload process.
|
|
23589
23696
|
*/
|
|
23590
23697
|
loading: PropTypes.bool,
|
|
23591
23698
|
|
|
23592
|
-
/**
|
|
23593
|
-
API upload url, allows components to automatically upload directly to API service.
|
|
23699
|
+
/**
|
|
23700
|
+
API upload url, allows components to automatically upload directly to API service.
|
|
23594
23701
|
*/
|
|
23595
23702
|
action: PropTypes.string,
|
|
23596
23703
|
|
|
23597
|
-
/**
|
|
23598
|
-
Custom body request to upload action.
|
|
23704
|
+
/**
|
|
23705
|
+
Custom body request to upload action.
|
|
23599
23706
|
*/
|
|
23600
23707
|
customBodyRequest: PropTypes.func,
|
|
23601
23708
|
|
|
23602
|
-
/**
|
|
23603
|
-
Contains an authentication token for upload API.
|
|
23709
|
+
/**
|
|
23710
|
+
Contains an authentication token for upload API.
|
|
23604
23711
|
*/
|
|
23605
23712
|
token: PropTypes.string,
|
|
23606
23713
|
|
|
23607
|
-
/**
|
|
23608
|
-
Referencing the headers key to attach the token.
|
|
23714
|
+
/**
|
|
23715
|
+
Referencing the headers key to attach the token.
|
|
23609
23716
|
*/
|
|
23610
23717
|
tokenKey: PropTypes.string,
|
|
23611
23718
|
|
|
23612
|
-
/**
|
|
23613
|
-
Referencing the key to attach the file to be sent.
|
|
23719
|
+
/**
|
|
23720
|
+
Referencing the key to attach the file to be sent.
|
|
23614
23721
|
*/
|
|
23615
23722
|
reqKey: PropTypes.string,
|
|
23616
23723
|
|
|
23617
|
-
/**
|
|
23618
|
-
Referencing the key to get the file from the API response.
|
|
23724
|
+
/**
|
|
23725
|
+
Referencing the key to get the file from the API response.
|
|
23619
23726
|
*/
|
|
23620
23727
|
resKey: PropTypes.string,
|
|
23621
23728
|
|
|
23622
|
-
/**
|
|
23623
|
-
To compression image if file size > 1MB.
|
|
23729
|
+
/**
|
|
23730
|
+
To compression image if file size > 1MB.
|
|
23624
23731
|
*/
|
|
23625
23732
|
imageCompression: PropTypes.bool,
|
|
23626
23733
|
|
|
23627
|
-
/**
|
|
23628
|
-
Callback to handle before crop image.
|
|
23734
|
+
/**
|
|
23735
|
+
Callback to handle before crop image.
|
|
23629
23736
|
*/
|
|
23630
23737
|
onBeforeCrop: PropTypes.func
|
|
23631
23738
|
};
|
|
@@ -23674,6 +23781,8 @@ const CardMessage = styled('div', {
|
|
|
23674
23781
|
color: '$textPrimary',
|
|
23675
23782
|
fontSize: 12,
|
|
23676
23783
|
fontWeight: 400,
|
|
23784
|
+
overflowWrap: 'break-word',
|
|
23785
|
+
wordWrap: 'break-word',
|
|
23677
23786
|
variants: {
|
|
23678
23787
|
variant: {
|
|
23679
23788
|
sms: {
|
|
@@ -23901,8 +24010,7 @@ const Device = props => {
|
|
|
23901
24010
|
border: 'none',
|
|
23902
24011
|
width: '100%',
|
|
23903
24012
|
height: '100%',
|
|
23904
|
-
|
|
23905
|
-
zIndex: 1
|
|
24013
|
+
zIndex: 3
|
|
23906
24014
|
}
|
|
23907
24015
|
}, {
|
|
23908
24016
|
children: jsxs(Box, Object.assign({
|
|
@@ -23915,13 +24023,29 @@ const Device = props => {
|
|
|
23915
24023
|
height: "100%",
|
|
23916
24024
|
objectFit: props.typeDevice === 'android' ? 'fill' : 'cover',
|
|
23917
24025
|
src: img$g,
|
|
23918
|
-
alt: "whatsapp-preview"
|
|
24026
|
+
alt: "whatsapp-preview",
|
|
24027
|
+
css: {
|
|
24028
|
+
borderRadius: 8
|
|
24029
|
+
}
|
|
23919
24030
|
}, void 0), jsx(Box, Object.assign({
|
|
24031
|
+
className: "mobile-scrollbar",
|
|
23920
24032
|
css: {
|
|
23921
24033
|
position: 'absolute',
|
|
23922
24034
|
right: '5%',
|
|
23923
24035
|
bottom: '12%',
|
|
23924
|
-
left: '10%'
|
|
24036
|
+
left: '10%',
|
|
24037
|
+
top: '10%',
|
|
24038
|
+
overflow: 'auto',
|
|
24039
|
+
'&::-webkit-scrollbar': {
|
|
24040
|
+
width: 3
|
|
24041
|
+
},
|
|
24042
|
+
'&::-webkit-scrollbar-track': {
|
|
24043
|
+
boxShadow: 'inset 0 0 6px $gray200'
|
|
24044
|
+
},
|
|
24045
|
+
'&::-webkit-scrollbar-thumb': {
|
|
24046
|
+
backgroundColor: '$gray150',
|
|
24047
|
+
outline: '1px solid $gray150'
|
|
24048
|
+
}
|
|
23925
24049
|
}
|
|
23926
24050
|
}, {
|
|
23927
24051
|
children: typeof (content === null || content === void 0 ? void 0 : content.message) === 'string' ? jsx(CardMessage, Object.assign({
|
|
@@ -24037,7 +24161,9 @@ const Device = props => {
|
|
|
24037
24161
|
css: {
|
|
24038
24162
|
fontSize: 12,
|
|
24039
24163
|
color: '$textPrimary',
|
|
24040
|
-
lineHeight: '16px'
|
|
24164
|
+
lineHeight: '16px',
|
|
24165
|
+
overflowWrap: 'break-word',
|
|
24166
|
+
wordWrap: 'break-word'
|
|
24041
24167
|
}
|
|
24042
24168
|
}, {
|
|
24043
24169
|
children: typeof (content === null || content === void 0 ? void 0 : content.message) === 'string' ? content === null || content === void 0 ? void 0 : content.message : (_f = content === null || content === void 0 ? void 0 : content.message) === null || _f === void 0 ? void 0 : _f.call(content)
|
|
@@ -24136,7 +24262,9 @@ const Device = props => {
|
|
|
24136
24262
|
css: {
|
|
24137
24263
|
fontSize: 9,
|
|
24138
24264
|
color: '$textSecondary',
|
|
24139
|
-
lineHeight: '14px !important'
|
|
24265
|
+
lineHeight: '14px !important',
|
|
24266
|
+
overflowWrap: 'break-word',
|
|
24267
|
+
wordWrap: 'break-word'
|
|
24140
24268
|
}
|
|
24141
24269
|
}, {
|
|
24142
24270
|
children: typeof (content === null || content === void 0 ? void 0 : content.message) === 'string' ? content === null || content === void 0 ? void 0 : content.message : (_j = content === null || content === void 0 ? void 0 : content.message) === null || _j === void 0 ? void 0 : _j.call(content)
|
|
@@ -24180,7 +24308,7 @@ const Device = props => {
|
|
|
24180
24308
|
style: {
|
|
24181
24309
|
width: props.size ? props.size : undefined,
|
|
24182
24310
|
position: 'relative',
|
|
24183
|
-
zIndex: withComponent ? 1 : 2
|
|
24311
|
+
zIndex: withComponent || (props === null || props === void 0 ? void 0 : props.variant) === 'whatsapp' ? 1 : 2
|
|
24184
24312
|
},
|
|
24185
24313
|
src: properties.typeDevice,
|
|
24186
24314
|
alt: "device-preview"
|
|
@@ -24231,7 +24359,7 @@ const Device = props => {
|
|
|
24231
24359
|
|
|
24232
24360
|
Device.displayName = 'DevicePreview';
|
|
24233
24361
|
|
|
24234
|
-
var _jsxFileName$8 = "
|
|
24362
|
+
var _jsxFileName$8 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/InputColorPicker.js";
|
|
24235
24363
|
const Separator$1 = styled('div', {
|
|
24236
24364
|
height: 20,
|
|
24237
24365
|
width: 1,
|
|
@@ -24343,28 +24471,28 @@ function InputColorPicker(props) {
|
|
|
24343
24471
|
|
|
24344
24472
|
InputColorPicker.displayName = 'InputColorPicker';
|
|
24345
24473
|
InputColorPicker.propTypes = {
|
|
24346
|
-
/**
|
|
24347
|
-
Color code to be displayed.
|
|
24474
|
+
/**
|
|
24475
|
+
Color code to be displayed.
|
|
24348
24476
|
*/
|
|
24349
24477
|
color: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
24350
24478
|
|
|
24351
|
-
/**
|
|
24352
|
-
Additional color list.
|
|
24479
|
+
/**
|
|
24480
|
+
Additional color list.
|
|
24353
24481
|
*/
|
|
24354
24482
|
presetColors: PropTypes.array,
|
|
24355
24483
|
|
|
24356
|
-
/**
|
|
24357
|
-
Change event handler.
|
|
24484
|
+
/**
|
|
24485
|
+
Change event handler.
|
|
24358
24486
|
*/
|
|
24359
24487
|
onChange: PropTypes.func,
|
|
24360
24488
|
|
|
24361
|
-
/**
|
|
24362
|
-
Add preset color event handler.
|
|
24489
|
+
/**
|
|
24490
|
+
Add preset color event handler.
|
|
24363
24491
|
*/
|
|
24364
24492
|
onAddColor: PropTypes.func,
|
|
24365
24493
|
|
|
24366
|
-
/**
|
|
24367
|
-
Disable opacity selector.
|
|
24494
|
+
/**
|
|
24495
|
+
Disable opacity selector.
|
|
24368
24496
|
*/
|
|
24369
24497
|
disableAlpha: PropTypes.bool
|
|
24370
24498
|
};
|
|
@@ -24374,7 +24502,7 @@ InputColorPicker.defaultProps = {
|
|
|
24374
24502
|
|
|
24375
24503
|
var img$d = "data:image/gif;base64,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";
|
|
24376
24504
|
|
|
24377
|
-
var _jsxFileName$7 = "
|
|
24505
|
+
var _jsxFileName$7 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/components/ColorMap.js";
|
|
24378
24506
|
const Container$6 = styled('div', {
|
|
24379
24507
|
userSelect: 'none',
|
|
24380
24508
|
margin: 'auto',
|
|
@@ -26338,7 +26466,7 @@ function ColorMap({
|
|
|
26338
26466
|
})));
|
|
26339
26467
|
}
|
|
26340
26468
|
|
|
26341
|
-
var _jsxFileName$6 = "
|
|
26469
|
+
var _jsxFileName$6 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/components/ColorFields.js";
|
|
26342
26470
|
const CheckBoard = styled(Flex$1, {
|
|
26343
26471
|
background: '$bgwhite',
|
|
26344
26472
|
border: '1px solid #E5E7EB',
|
|
@@ -26539,7 +26667,7 @@ function ColorFields({
|
|
|
26539
26667
|
}, "%")));
|
|
26540
26668
|
}
|
|
26541
26669
|
|
|
26542
|
-
var _jsxFileName$5 = "
|
|
26670
|
+
var _jsxFileName$5 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/colorPicker/ColorPicker.js";
|
|
26543
26671
|
const Container$5 = styled(Flex$1, {
|
|
26544
26672
|
background: '$white',
|
|
26545
26673
|
padding: 16,
|
|
@@ -27042,28 +27170,28 @@ function ColorPicker({
|
|
|
27042
27170
|
}
|
|
27043
27171
|
|
|
27044
27172
|
ColorPicker.propTypes = {
|
|
27045
|
-
/**
|
|
27046
|
-
Color code to be displayed.
|
|
27173
|
+
/**
|
|
27174
|
+
Color code to be displayed.
|
|
27047
27175
|
*/
|
|
27048
27176
|
color: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
27049
27177
|
|
|
27050
|
-
/**
|
|
27051
|
-
Additional color list
|
|
27178
|
+
/**
|
|
27179
|
+
Additional color list
|
|
27052
27180
|
*/
|
|
27053
27181
|
presetColors: PropTypes.array,
|
|
27054
27182
|
|
|
27055
|
-
/**
|
|
27056
|
-
Change event handler
|
|
27183
|
+
/**
|
|
27184
|
+
Change event handler
|
|
27057
27185
|
*/
|
|
27058
27186
|
onChange: PropTypes.func,
|
|
27059
27187
|
|
|
27060
|
-
/**
|
|
27061
|
-
Add preset color event handler
|
|
27188
|
+
/**
|
|
27189
|
+
Add preset color event handler
|
|
27062
27190
|
*/
|
|
27063
27191
|
onAddColor: PropTypes.func,
|
|
27064
27192
|
|
|
27065
|
-
/**
|
|
27066
|
-
Disable opacity selector
|
|
27193
|
+
/**
|
|
27194
|
+
Disable opacity selector
|
|
27067
27195
|
*/
|
|
27068
27196
|
disableAlpha: PropTypes.bool
|
|
27069
27197
|
};
|
|
@@ -27072,7 +27200,7 @@ ColorPicker.defaultProps = {
|
|
|
27072
27200
|
};
|
|
27073
27201
|
var ColorPicker$1 = ColorWrap(ColorPicker);
|
|
27074
27202
|
|
|
27075
|
-
var _jsxFileName$4 = "
|
|
27203
|
+
var _jsxFileName$4 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/stepWizard/StepWizard.js";
|
|
27076
27204
|
const StepWizardContext = /*#__PURE__*/React__default.createContext({});
|
|
27077
27205
|
const Stepper = StepWizard$1;
|
|
27078
27206
|
Stepper.displayName = 'Stepper';
|
|
@@ -27158,7 +27286,8 @@ const Navigation = props => {
|
|
|
27158
27286
|
data,
|
|
27159
27287
|
cssNav,
|
|
27160
27288
|
isHide,
|
|
27161
|
-
forbidClickNav
|
|
27289
|
+
forbidClickNav,
|
|
27290
|
+
hideCheckedIcon
|
|
27162
27291
|
} = React__default.useContext(StepWizardContext);
|
|
27163
27292
|
const mobileHidden = isMobile && isHide && {
|
|
27164
27293
|
height: 'unset',
|
|
@@ -27206,7 +27335,7 @@ const Navigation = props => {
|
|
|
27206
27335
|
lineNumber: 119,
|
|
27207
27336
|
columnNumber: 15
|
|
27208
27337
|
}
|
|
27209
|
-
}), isComplete && /*#__PURE__*/React__default.createElement(StyledCheckFiled, {
|
|
27338
|
+
}), isComplete && !hideCheckedIcon && /*#__PURE__*/React__default.createElement(StyledCheckFiled, {
|
|
27210
27339
|
css: {
|
|
27211
27340
|
marginRight: 9
|
|
27212
27341
|
},
|
|
@@ -27216,7 +27345,7 @@ const Navigation = props => {
|
|
|
27216
27345
|
__source: {
|
|
27217
27346
|
fileName: _jsxFileName$4,
|
|
27218
27347
|
lineNumber: 120,
|
|
27219
|
-
columnNumber:
|
|
27348
|
+
columnNumber: 50
|
|
27220
27349
|
}
|
|
27221
27350
|
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (_data = data[i - 1]).title) == null ? void 0 : _data$title.call(_data), ((_data2 = data[i - 1]) == null ? void 0 : _data2.withTolltip) && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
27222
27351
|
align: "center",
|
|
@@ -27276,14 +27405,14 @@ const Navigation = props => {
|
|
|
27276
27405
|
lineNumber: 137,
|
|
27277
27406
|
columnNumber: 13
|
|
27278
27407
|
}
|
|
27279
|
-
}, isComplete && /*#__PURE__*/React__default.createElement(StyledCheckFiled, {
|
|
27408
|
+
}, isComplete && !hideCheckedIcon && /*#__PURE__*/React__default.createElement(StyledCheckFiled, {
|
|
27280
27409
|
size: "24",
|
|
27281
27410
|
color: colors$4.bgGreen,
|
|
27282
27411
|
__self: undefined,
|
|
27283
27412
|
__source: {
|
|
27284
27413
|
fileName: _jsxFileName$4,
|
|
27285
27414
|
lineNumber: 149,
|
|
27286
|
-
columnNumber:
|
|
27415
|
+
columnNumber: 50
|
|
27287
27416
|
}
|
|
27288
27417
|
}), !isComplete && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
27289
27418
|
justify: "center",
|
|
@@ -27511,7 +27640,8 @@ const Default = props => {
|
|
|
27511
27640
|
data: props.navContents,
|
|
27512
27641
|
cssNav: props.cssNav,
|
|
27513
27642
|
getIsComplete,
|
|
27514
|
-
getTitleStep
|
|
27643
|
+
getTitleStep,
|
|
27644
|
+
hideCheckedIcon: props.hideCheckedIcon
|
|
27515
27645
|
},
|
|
27516
27646
|
__self: undefined,
|
|
27517
27647
|
__source: {
|
|
@@ -27529,7 +27659,7 @@ const Default = props => {
|
|
|
27529
27659
|
__self: undefined,
|
|
27530
27660
|
__source: {
|
|
27531
27661
|
fileName: _jsxFileName$4,
|
|
27532
|
-
lineNumber:
|
|
27662
|
+
lineNumber: 321,
|
|
27533
27663
|
columnNumber: 16
|
|
27534
27664
|
}
|
|
27535
27665
|
}),
|
|
@@ -27539,7 +27669,7 @@ const Default = props => {
|
|
|
27539
27669
|
__self: undefined,
|
|
27540
27670
|
__source: {
|
|
27541
27671
|
fileName: _jsxFileName$4,
|
|
27542
|
-
lineNumber:
|
|
27672
|
+
lineNumber: 316,
|
|
27543
27673
|
columnNumber: 9
|
|
27544
27674
|
}
|
|
27545
27675
|
}), props.children)));
|
|
@@ -27551,7 +27681,7 @@ const StepWizard = props => {
|
|
|
27551
27681
|
}), void 0);
|
|
27552
27682
|
};
|
|
27553
27683
|
|
|
27554
|
-
var _jsxFileName$3 = "
|
|
27684
|
+
var _jsxFileName$3 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tableOfContent/transition.js";
|
|
27555
27685
|
|
|
27556
27686
|
function Collapse({
|
|
27557
27687
|
children,
|
|
@@ -27596,7 +27726,7 @@ Collapse.defaultProps = {
|
|
|
27596
27726
|
isOpen: false
|
|
27597
27727
|
};
|
|
27598
27728
|
|
|
27599
|
-
var _jsxFileName$2 = "
|
|
27729
|
+
var _jsxFileName$2 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tableOfContent/TableOfContent.js";
|
|
27600
27730
|
const DesktopContainer = styled(Flex$1, {
|
|
27601
27731
|
display: 'none',
|
|
27602
27732
|
'& .active-scroll-spy': {
|
|
@@ -27882,23 +28012,23 @@ TableOfContent.defaultProps = {
|
|
|
27882
28012
|
isDialog: false
|
|
27883
28013
|
};
|
|
27884
28014
|
TableOfContent.propTypes = {
|
|
27885
|
-
/**
|
|
27886
|
-
List of contents containing the title and id of a content.
|
|
28015
|
+
/**
|
|
28016
|
+
List of contents containing the title and id of a content.
|
|
27887
28017
|
*/
|
|
27888
28018
|
content: PropTypes.array,
|
|
27889
28019
|
|
|
27890
|
-
/**
|
|
27891
|
-
Components devoted to mobile viewing only.
|
|
28020
|
+
/**
|
|
28021
|
+
Components devoted to mobile viewing only.
|
|
27892
28022
|
*/
|
|
27893
28023
|
isMobile: PropTypes.bool,
|
|
27894
28024
|
|
|
27895
|
-
/**
|
|
27896
|
-
Condition when table of content is inside a component dialog.
|
|
28025
|
+
/**
|
|
28026
|
+
Condition when table of content is inside a component dialog.
|
|
27897
28027
|
*/
|
|
27898
28028
|
isDialog: PropTypes.bool,
|
|
27899
28029
|
|
|
27900
|
-
/**
|
|
27901
|
-
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
28030
|
+
/**
|
|
28031
|
+
The active ID to reference the active content on the mobile view obtained from onUpdateCallback.
|
|
27902
28032
|
*/
|
|
27903
28033
|
activeId: PropTypes.string
|
|
27904
28034
|
};
|
|
@@ -27918,7 +28048,7 @@ TableOfContentPage.defaultProps = {
|
|
|
27918
28048
|
useBoxMethod: true
|
|
27919
28049
|
};
|
|
27920
28050
|
|
|
27921
|
-
var _jsxFileName$1 = "
|
|
28051
|
+
var _jsxFileName$1 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/editableTable/transition.js";
|
|
27922
28052
|
|
|
27923
28053
|
function Collapalse({
|
|
27924
28054
|
children,
|
|
@@ -28044,7 +28174,8 @@ function EditableTableMobile(props) {
|
|
|
28044
28174
|
instance,
|
|
28045
28175
|
emptyDataMessage,
|
|
28046
28176
|
showCheckbox,
|
|
28047
|
-
customRows
|
|
28177
|
+
customRows,
|
|
28178
|
+
onExpand
|
|
28048
28179
|
} = props;
|
|
28049
28180
|
const {
|
|
28050
28181
|
getTableProps,
|
|
@@ -28126,6 +28257,7 @@ function EditableTableMobile(props) {
|
|
|
28126
28257
|
}
|
|
28127
28258
|
|
|
28128
28259
|
row.toggleRowExpanded(!row.isExpanded);
|
|
28260
|
+
onExpand === null || onExpand === void 0 ? void 0 : onExpand(!row.isExpanded);
|
|
28129
28261
|
}
|
|
28130
28262
|
}, {
|
|
28131
28263
|
children: row.isExpanded ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
|
|
@@ -28572,7 +28704,8 @@ function EditableTable(props) {
|
|
|
28572
28704
|
onSelectedChange,
|
|
28573
28705
|
getCheckboxProps,
|
|
28574
28706
|
keyId = 'id',
|
|
28575
|
-
selectedIds
|
|
28707
|
+
selectedIds,
|
|
28708
|
+
onExpand
|
|
28576
28709
|
} = props;
|
|
28577
28710
|
const [selectedIndex, setSelectedIndex] = useState(null);
|
|
28578
28711
|
|
|
@@ -28821,7 +28954,8 @@ function EditableTable(props) {
|
|
|
28821
28954
|
instance: instance,
|
|
28822
28955
|
emptyDataMessage: emptyDataMessage,
|
|
28823
28956
|
showCheckbox: showCheckbox,
|
|
28824
|
-
customRows: customRows
|
|
28957
|
+
customRows: customRows,
|
|
28958
|
+
onExpand: onExpand
|
|
28825
28959
|
}, void 0);
|
|
28826
28960
|
}
|
|
28827
28961
|
|
|
@@ -28847,7 +28981,16 @@ const StyledProgress = styled$1(ProgressPrimitive.Root, {
|
|
|
28847
28981
|
background: '$gray150',
|
|
28848
28982
|
borderRadius: '99999px',
|
|
28849
28983
|
width: '100%',
|
|
28850
|
-
|
|
28984
|
+
variants: {
|
|
28985
|
+
size: {
|
|
28986
|
+
sm: {
|
|
28987
|
+
height: 4
|
|
28988
|
+
},
|
|
28989
|
+
md: {
|
|
28990
|
+
height: 8
|
|
28991
|
+
}
|
|
28992
|
+
}
|
|
28993
|
+
}
|
|
28851
28994
|
});
|
|
28852
28995
|
const StyledIndicator = styled$1(ProgressPrimitive.Indicator, {
|
|
28853
28996
|
background: 'linear-gradient(90deg, rgba(1,174,136,1) 35%, rgba(4,201,158,1) 100%)',
|
|
@@ -28864,13 +29007,15 @@ function PrimitiveLoadingBar({
|
|
|
28864
29007
|
showProgressOnly,
|
|
28865
29008
|
css,
|
|
28866
29009
|
visibility,
|
|
28867
|
-
colors
|
|
29010
|
+
colors,
|
|
29011
|
+
size
|
|
28868
29012
|
}) {
|
|
28869
29013
|
return visibility && jsxs(Container$4, Object.assign({
|
|
28870
29014
|
css: css
|
|
28871
29015
|
}, {
|
|
28872
29016
|
children: [jsx(Progress, Object.assign({
|
|
28873
|
-
value: 66
|
|
29017
|
+
value: 66,
|
|
29018
|
+
size: size
|
|
28874
29019
|
}, {
|
|
28875
29020
|
children: jsx(ProgressIndicator$1, {
|
|
28876
29021
|
style: {
|
|
@@ -28931,7 +29076,8 @@ function LoadingBar(props) {
|
|
|
28931
29076
|
LoadingBar.defaultProps = {
|
|
28932
29077
|
showProgressOnly: false,
|
|
28933
29078
|
show: false,
|
|
28934
|
-
description: 'Loading...'
|
|
29079
|
+
description: 'Loading...',
|
|
29080
|
+
size: 'md'
|
|
28935
29081
|
};
|
|
28936
29082
|
|
|
28937
29083
|
const Container$3 = styled(Flex$1, {
|
|
@@ -31591,7 +31737,7 @@ function Skeleton() {
|
|
|
31591
31737
|
}
|
|
31592
31738
|
}
|
|
31593
31739
|
|
|
31594
|
-
var _jsxFileName = "
|
|
31740
|
+
var _jsxFileName = "/home/alfiantryp/Project/majoo-ui/packages/react/src/colors/Colors.js";
|
|
31595
31741
|
const StyledPaper = styled(Paper, {
|
|
31596
31742
|
borderRadius: '10px 10px 0 0',
|
|
31597
31743
|
padding: 15,
|