@majoo-ui/react 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js ADDED
@@ -0,0 +1,4055 @@
1
+ import * as React from 'react';
2
+ import React__default, { createContext, useState, useContext, useEffect } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { createStitches, keyframes as keyframes$1, styled as styled$1 } from '@stitches/react';
5
+ import { foundations } from '@majoo-ui/core';
6
+ import { Portal } from '@majoo-ui/helpers';
7
+ import { Transition } from 'react-transition-group';
8
+ import '@majoo-ui/icons';
9
+ import { jsx } from 'react/jsx-runtime';
10
+ import * as AlertDialog from '@radix-ui/react-alert-dialog';
11
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
12
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
13
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
14
+
15
+ var _jsxFileName$g = "C:\\Project\\majoo-ui\\packages\\react\\src\\majoo-provider\\ThemeProvider.js";
16
+
17
+ function ThemeProvider({
18
+ theme,
19
+ children
20
+ }) {
21
+ return /*#__PURE__*/React__default.createElement("div", {
22
+ className: theme,
23
+ __self: this,
24
+ __source: {
25
+ fileName: _jsxFileName$g,
26
+ lineNumber: 5,
27
+ columnNumber: 10
28
+ }
29
+ }, children);
30
+ }
31
+
32
+ ThemeProvider.propTypes = {
33
+ theme: PropTypes.object.isRequired,
34
+ children: PropTypes.node.isRequired
35
+ };
36
+
37
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
38
+
39
+ var check = function (it) {
40
+ return it && it.Math == Math && it;
41
+ };
42
+
43
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
44
+ var global$o =
45
+ // eslint-disable-next-line es/no-global-this -- safe
46
+ check(typeof globalThis == 'object' && globalThis) ||
47
+ check(typeof window == 'object' && window) ||
48
+ // eslint-disable-next-line no-restricted-globals -- safe
49
+ check(typeof self == 'object' && self) ||
50
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
51
+ // eslint-disable-next-line no-new-func -- fallback
52
+ (function () { return this; })() || Function('return this')();
53
+
54
+ var objectGetOwnPropertyDescriptor = {};
55
+
56
+ var fails$a = function (exec) {
57
+ try {
58
+ return !!exec();
59
+ } catch (error) {
60
+ return true;
61
+ }
62
+ };
63
+
64
+ var fails$9 = fails$a;
65
+
66
+ // Detect IE8's incomplete defineProperty implementation
67
+ var descriptors = !fails$9(function () {
68
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
69
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
70
+ });
71
+
72
+ var fails$8 = fails$a;
73
+
74
+ var functionBindNative = !fails$8(function () {
75
+ var test = (function () { /* empty */ }).bind();
76
+ // eslint-disable-next-line no-prototype-builtins -- safe
77
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
78
+ });
79
+
80
+ var NATIVE_BIND$1 = functionBindNative;
81
+
82
+ var call$6 = Function.prototype.call;
83
+
84
+ var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
85
+ return call$6.apply(call$6, arguments);
86
+ };
87
+
88
+ var objectPropertyIsEnumerable = {};
89
+
90
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
91
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
92
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
93
+
94
+ // Nashorn ~ JDK8 bug
95
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
96
+
97
+ // `Object.prototype.propertyIsEnumerable` method implementation
98
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
99
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
100
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
101
+ return !!descriptor && descriptor.enumerable;
102
+ } : $propertyIsEnumerable;
103
+
104
+ var createPropertyDescriptor$3 = function (bitmap, value) {
105
+ return {
106
+ enumerable: !(bitmap & 1),
107
+ configurable: !(bitmap & 2),
108
+ writable: !(bitmap & 4),
109
+ value: value
110
+ };
111
+ };
112
+
113
+ var NATIVE_BIND = functionBindNative;
114
+
115
+ var FunctionPrototype$1 = Function.prototype;
116
+ var bind = FunctionPrototype$1.bind;
117
+ var call$5 = FunctionPrototype$1.call;
118
+ var uncurryThis$b = NATIVE_BIND && bind.bind(call$5, call$5);
119
+
120
+ var functionUncurryThis = NATIVE_BIND ? function (fn) {
121
+ return fn && uncurryThis$b(fn);
122
+ } : function (fn) {
123
+ return fn && function () {
124
+ return call$5.apply(fn, arguments);
125
+ };
126
+ };
127
+
128
+ var uncurryThis$a = functionUncurryThis;
129
+
130
+ var toString$1 = uncurryThis$a({}.toString);
131
+ var stringSlice = uncurryThis$a(''.slice);
132
+
133
+ var classofRaw = function (it) {
134
+ return stringSlice(toString$1(it), 8, -1);
135
+ };
136
+
137
+ var global$n = global$o;
138
+ var uncurryThis$9 = functionUncurryThis;
139
+ var fails$7 = fails$a;
140
+ var classof = classofRaw;
141
+
142
+ var Object$4 = global$n.Object;
143
+ var split = uncurryThis$9(''.split);
144
+
145
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
146
+ var indexedObject = fails$7(function () {
147
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
148
+ // eslint-disable-next-line no-prototype-builtins -- safe
149
+ return !Object$4('z').propertyIsEnumerable(0);
150
+ }) ? function (it) {
151
+ return classof(it) == 'String' ? split(it, '') : Object$4(it);
152
+ } : Object$4;
153
+
154
+ var global$m = global$o;
155
+
156
+ var TypeError$7 = global$m.TypeError;
157
+
158
+ // `RequireObjectCoercible` abstract operation
159
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
160
+ var requireObjectCoercible$2 = function (it) {
161
+ if (it == undefined) throw TypeError$7("Can't call method on " + it);
162
+ return it;
163
+ };
164
+
165
+ // toObject with fallback for non-array-like ES3 strings
166
+ var IndexedObject$1 = indexedObject;
167
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
168
+
169
+ var toIndexedObject$5 = function (it) {
170
+ return IndexedObject$1(requireObjectCoercible$1(it));
171
+ };
172
+
173
+ // `IsCallable` abstract operation
174
+ // https://tc39.es/ecma262/#sec-iscallable
175
+ var isCallable$d = function (argument) {
176
+ return typeof argument == 'function';
177
+ };
178
+
179
+ var isCallable$c = isCallable$d;
180
+
181
+ var isObject$5 = function (it) {
182
+ return typeof it == 'object' ? it !== null : isCallable$c(it);
183
+ };
184
+
185
+ var global$l = global$o;
186
+ var isCallable$b = isCallable$d;
187
+
188
+ var aFunction = function (argument) {
189
+ return isCallable$b(argument) ? argument : undefined;
190
+ };
191
+
192
+ var getBuiltIn$4 = function (namespace, method) {
193
+ return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
194
+ };
195
+
196
+ var uncurryThis$8 = functionUncurryThis;
197
+
198
+ var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
199
+
200
+ var getBuiltIn$3 = getBuiltIn$4;
201
+
202
+ var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
203
+
204
+ var global$k = global$o;
205
+ var userAgent = engineUserAgent;
206
+
207
+ var process = global$k.process;
208
+ var Deno = global$k.Deno;
209
+ var versions = process && process.versions || Deno && Deno.version;
210
+ var v8 = versions && versions.v8;
211
+ var match, version;
212
+
213
+ if (v8) {
214
+ match = v8.split('.');
215
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
216
+ // but their correct versions are not interesting for us
217
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
218
+ }
219
+
220
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
221
+ // so check `userAgent` even if `.v8` exists, but 0
222
+ if (!version && userAgent) {
223
+ match = userAgent.match(/Edge\/(\d+)/);
224
+ if (!match || match[1] >= 74) {
225
+ match = userAgent.match(/Chrome\/(\d+)/);
226
+ if (match) version = +match[1];
227
+ }
228
+ }
229
+
230
+ var engineV8Version = version;
231
+
232
+ /* eslint-disable es/no-symbol -- required for testing */
233
+
234
+ var V8_VERSION = engineV8Version;
235
+ var fails$6 = fails$a;
236
+
237
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
238
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
239
+ var symbol = Symbol();
240
+ // Chrome 38 Symbol has incorrect toString conversion
241
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
242
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
243
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
244
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
245
+ });
246
+
247
+ /* eslint-disable es/no-symbol -- required for testing */
248
+
249
+ var NATIVE_SYMBOL$1 = nativeSymbol;
250
+
251
+ var useSymbolAsUid = NATIVE_SYMBOL$1
252
+ && !Symbol.sham
253
+ && typeof Symbol.iterator == 'symbol';
254
+
255
+ var global$j = global$o;
256
+ var getBuiltIn$2 = getBuiltIn$4;
257
+ var isCallable$a = isCallable$d;
258
+ var isPrototypeOf = objectIsPrototypeOf;
259
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
260
+
261
+ var Object$3 = global$j.Object;
262
+
263
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
264
+ return typeof it == 'symbol';
265
+ } : function (it) {
266
+ var $Symbol = getBuiltIn$2('Symbol');
267
+ return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
268
+ };
269
+
270
+ var global$i = global$o;
271
+
272
+ var String$3 = global$i.String;
273
+
274
+ var tryToString$1 = function (argument) {
275
+ try {
276
+ return String$3(argument);
277
+ } catch (error) {
278
+ return 'Object';
279
+ }
280
+ };
281
+
282
+ var global$h = global$o;
283
+ var isCallable$9 = isCallable$d;
284
+ var tryToString = tryToString$1;
285
+
286
+ var TypeError$6 = global$h.TypeError;
287
+
288
+ // `Assert: IsCallable(argument) is true`
289
+ var aCallable$1 = function (argument) {
290
+ if (isCallable$9(argument)) return argument;
291
+ throw TypeError$6(tryToString(argument) + ' is not a function');
292
+ };
293
+
294
+ var aCallable = aCallable$1;
295
+
296
+ // `GetMethod` abstract operation
297
+ // https://tc39.es/ecma262/#sec-getmethod
298
+ var getMethod$1 = function (V, P) {
299
+ var func = V[P];
300
+ return func == null ? undefined : aCallable(func);
301
+ };
302
+
303
+ var global$g = global$o;
304
+ var call$4 = functionCall;
305
+ var isCallable$8 = isCallable$d;
306
+ var isObject$4 = isObject$5;
307
+
308
+ var TypeError$5 = global$g.TypeError;
309
+
310
+ // `OrdinaryToPrimitive` abstract operation
311
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
312
+ var ordinaryToPrimitive$1 = function (input, pref) {
313
+ var fn, val;
314
+ if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$4(fn, input))) return val;
315
+ if (isCallable$8(fn = input.valueOf) && !isObject$4(val = call$4(fn, input))) return val;
316
+ if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$4(fn, input))) return val;
317
+ throw TypeError$5("Can't convert object to primitive value");
318
+ };
319
+
320
+ var shared$3 = {exports: {}};
321
+
322
+ var global$f = global$o;
323
+
324
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
325
+ var defineProperty$3 = Object.defineProperty;
326
+
327
+ var setGlobal$3 = function (key, value) {
328
+ try {
329
+ defineProperty$3(global$f, key, { value: value, configurable: true, writable: true });
330
+ } catch (error) {
331
+ global$f[key] = value;
332
+ } return value;
333
+ };
334
+
335
+ var global$e = global$o;
336
+ var setGlobal$2 = setGlobal$3;
337
+
338
+ var SHARED = '__core-js_shared__';
339
+ var store$3 = global$e[SHARED] || setGlobal$2(SHARED, {});
340
+
341
+ var sharedStore = store$3;
342
+
343
+ var store$2 = sharedStore;
344
+
345
+ (shared$3.exports = function (key, value) {
346
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
347
+ })('versions', []).push({
348
+ version: '3.21.1',
349
+ mode: 'global',
350
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
351
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
352
+ source: 'https://github.com/zloirock/core-js'
353
+ });
354
+
355
+ var global$d = global$o;
356
+ var requireObjectCoercible = requireObjectCoercible$2;
357
+
358
+ var Object$2 = global$d.Object;
359
+
360
+ // `ToObject` abstract operation
361
+ // https://tc39.es/ecma262/#sec-toobject
362
+ var toObject$3 = function (argument) {
363
+ return Object$2(requireObjectCoercible(argument));
364
+ };
365
+
366
+ var uncurryThis$7 = functionUncurryThis;
367
+ var toObject$2 = toObject$3;
368
+
369
+ var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
370
+
371
+ // `HasOwnProperty` abstract operation
372
+ // https://tc39.es/ecma262/#sec-hasownproperty
373
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
374
+ return hasOwnProperty(toObject$2(it), key);
375
+ };
376
+
377
+ var uncurryThis$6 = functionUncurryThis;
378
+
379
+ var id = 0;
380
+ var postfix = Math.random();
381
+ var toString = uncurryThis$6(1.0.toString);
382
+
383
+ var uid$2 = function (key) {
384
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
385
+ };
386
+
387
+ var global$c = global$o;
388
+ var shared$2 = shared$3.exports;
389
+ var hasOwn$8 = hasOwnProperty_1;
390
+ var uid$1 = uid$2;
391
+ var NATIVE_SYMBOL = nativeSymbol;
392
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
393
+
394
+ var WellKnownSymbolsStore = shared$2('wks');
395
+ var Symbol$1 = global$c.Symbol;
396
+ var symbolFor = Symbol$1 && Symbol$1['for'];
397
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
398
+
399
+ var wellKnownSymbol$6 = function (name) {
400
+ if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
401
+ var description = 'Symbol.' + name;
402
+ if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
403
+ WellKnownSymbolsStore[name] = Symbol$1[name];
404
+ } else if (USE_SYMBOL_AS_UID && symbolFor) {
405
+ WellKnownSymbolsStore[name] = symbolFor(description);
406
+ } else {
407
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
408
+ }
409
+ } return WellKnownSymbolsStore[name];
410
+ };
411
+
412
+ var global$b = global$o;
413
+ var call$3 = functionCall;
414
+ var isObject$3 = isObject$5;
415
+ var isSymbol$1 = isSymbol$2;
416
+ var getMethod = getMethod$1;
417
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
418
+ var wellKnownSymbol$5 = wellKnownSymbol$6;
419
+
420
+ var TypeError$4 = global$b.TypeError;
421
+ var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
422
+
423
+ // `ToPrimitive` abstract operation
424
+ // https://tc39.es/ecma262/#sec-toprimitive
425
+ var toPrimitive$1 = function (input, pref) {
426
+ if (!isObject$3(input) || isSymbol$1(input)) return input;
427
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
428
+ var result;
429
+ if (exoticToPrim) {
430
+ if (pref === undefined) pref = 'default';
431
+ result = call$3(exoticToPrim, input, pref);
432
+ if (!isObject$3(result) || isSymbol$1(result)) return result;
433
+ throw TypeError$4("Can't convert object to primitive value");
434
+ }
435
+ if (pref === undefined) pref = 'number';
436
+ return ordinaryToPrimitive(input, pref);
437
+ };
438
+
439
+ var toPrimitive = toPrimitive$1;
440
+ var isSymbol = isSymbol$2;
441
+
442
+ // `ToPropertyKey` abstract operation
443
+ // https://tc39.es/ecma262/#sec-topropertykey
444
+ var toPropertyKey$2 = function (argument) {
445
+ var key = toPrimitive(argument, 'string');
446
+ return isSymbol(key) ? key : key + '';
447
+ };
448
+
449
+ var global$a = global$o;
450
+ var isObject$2 = isObject$5;
451
+
452
+ var document$1 = global$a.document;
453
+ // typeof document.createElement is 'object' in old IE
454
+ var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
455
+
456
+ var documentCreateElement$2 = function (it) {
457
+ return EXISTS$1 ? document$1.createElement(it) : {};
458
+ };
459
+
460
+ var DESCRIPTORS$8 = descriptors;
461
+ var fails$5 = fails$a;
462
+ var createElement = documentCreateElement$2;
463
+
464
+ // Thanks to IE8 for its funny defineProperty
465
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
466
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
467
+ return Object.defineProperty(createElement('div'), 'a', {
468
+ get: function () { return 7; }
469
+ }).a != 7;
470
+ });
471
+
472
+ var DESCRIPTORS$7 = descriptors;
473
+ var call$2 = functionCall;
474
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
475
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
476
+ var toIndexedObject$4 = toIndexedObject$5;
477
+ var toPropertyKey$1 = toPropertyKey$2;
478
+ var hasOwn$7 = hasOwnProperty_1;
479
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
480
+
481
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
482
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
483
+
484
+ // `Object.getOwnPropertyDescriptor` method
485
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
486
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
487
+ O = toIndexedObject$4(O);
488
+ P = toPropertyKey$1(P);
489
+ if (IE8_DOM_DEFINE$1) try {
490
+ return $getOwnPropertyDescriptor$1(O, P);
491
+ } catch (error) { /* empty */ }
492
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
493
+ };
494
+
495
+ var objectDefineProperty = {};
496
+
497
+ var DESCRIPTORS$6 = descriptors;
498
+ var fails$4 = fails$a;
499
+
500
+ // V8 ~ Chrome 36-
501
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
502
+ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$4(function () {
503
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
504
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
505
+ value: 42,
506
+ writable: false
507
+ }).prototype != 42;
508
+ });
509
+
510
+ var global$9 = global$o;
511
+ var isObject$1 = isObject$5;
512
+
513
+ var String$2 = global$9.String;
514
+ var TypeError$3 = global$9.TypeError;
515
+
516
+ // `Assert: Type(argument) is Object`
517
+ var anObject$5 = function (argument) {
518
+ if (isObject$1(argument)) return argument;
519
+ throw TypeError$3(String$2(argument) + ' is not an object');
520
+ };
521
+
522
+ var global$8 = global$o;
523
+ var DESCRIPTORS$5 = descriptors;
524
+ var IE8_DOM_DEFINE = ie8DomDefine;
525
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
526
+ var anObject$4 = anObject$5;
527
+ var toPropertyKey = toPropertyKey$2;
528
+
529
+ var TypeError$2 = global$8.TypeError;
530
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
531
+ var $defineProperty = Object.defineProperty;
532
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
533
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
534
+ var ENUMERABLE = 'enumerable';
535
+ var CONFIGURABLE$1 = 'configurable';
536
+ var WRITABLE = 'writable';
537
+
538
+ // `Object.defineProperty` method
539
+ // https://tc39.es/ecma262/#sec-object.defineproperty
540
+ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
541
+ anObject$4(O);
542
+ P = toPropertyKey(P);
543
+ anObject$4(Attributes);
544
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
545
+ var current = $getOwnPropertyDescriptor(O, P);
546
+ if (current && current[WRITABLE]) {
547
+ O[P] = Attributes.value;
548
+ Attributes = {
549
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
550
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
551
+ writable: false
552
+ };
553
+ }
554
+ } return $defineProperty(O, P, Attributes);
555
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
556
+ anObject$4(O);
557
+ P = toPropertyKey(P);
558
+ anObject$4(Attributes);
559
+ if (IE8_DOM_DEFINE) try {
560
+ return $defineProperty(O, P, Attributes);
561
+ } catch (error) { /* empty */ }
562
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$2('Accessors not supported');
563
+ if ('value' in Attributes) O[P] = Attributes.value;
564
+ return O;
565
+ };
566
+
567
+ var DESCRIPTORS$4 = descriptors;
568
+ var definePropertyModule$3 = objectDefineProperty;
569
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
570
+
571
+ var createNonEnumerableProperty$5 = DESCRIPTORS$4 ? function (object, key, value) {
572
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
573
+ } : function (object, key, value) {
574
+ object[key] = value;
575
+ return object;
576
+ };
577
+
578
+ var redefine$3 = {exports: {}};
579
+
580
+ var uncurryThis$5 = functionUncurryThis;
581
+ var isCallable$7 = isCallable$d;
582
+ var store$1 = sharedStore;
583
+
584
+ var functionToString = uncurryThis$5(Function.toString);
585
+
586
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
587
+ if (!isCallable$7(store$1.inspectSource)) {
588
+ store$1.inspectSource = function (it) {
589
+ return functionToString(it);
590
+ };
591
+ }
592
+
593
+ var inspectSource$2 = store$1.inspectSource;
594
+
595
+ var global$7 = global$o;
596
+ var isCallable$6 = isCallable$d;
597
+ var inspectSource$1 = inspectSource$2;
598
+
599
+ var WeakMap$1 = global$7.WeakMap;
600
+
601
+ var nativeWeakMap = isCallable$6(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
602
+
603
+ var shared$1 = shared$3.exports;
604
+ var uid = uid$2;
605
+
606
+ var keys = shared$1('keys');
607
+
608
+ var sharedKey$3 = function (key) {
609
+ return keys[key] || (keys[key] = uid(key));
610
+ };
611
+
612
+ var hiddenKeys$4 = {};
613
+
614
+ var NATIVE_WEAK_MAP = nativeWeakMap;
615
+ var global$6 = global$o;
616
+ var uncurryThis$4 = functionUncurryThis;
617
+ var isObject = isObject$5;
618
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
619
+ var hasOwn$6 = hasOwnProperty_1;
620
+ var shared = sharedStore;
621
+ var sharedKey$2 = sharedKey$3;
622
+ var hiddenKeys$3 = hiddenKeys$4;
623
+
624
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
625
+ var TypeError$1 = global$6.TypeError;
626
+ var WeakMap = global$6.WeakMap;
627
+ var set, get, has;
628
+
629
+ var enforce = function (it) {
630
+ return has(it) ? get(it) : set(it, {});
631
+ };
632
+
633
+ var getterFor = function (TYPE) {
634
+ return function (it) {
635
+ var state;
636
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
637
+ throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
638
+ } return state;
639
+ };
640
+ };
641
+
642
+ if (NATIVE_WEAK_MAP || shared.state) {
643
+ var store = shared.state || (shared.state = new WeakMap());
644
+ var wmget = uncurryThis$4(store.get);
645
+ var wmhas = uncurryThis$4(store.has);
646
+ var wmset = uncurryThis$4(store.set);
647
+ set = function (it, metadata) {
648
+ if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
649
+ metadata.facade = it;
650
+ wmset(store, it, metadata);
651
+ return metadata;
652
+ };
653
+ get = function (it) {
654
+ return wmget(store, it) || {};
655
+ };
656
+ has = function (it) {
657
+ return wmhas(store, it);
658
+ };
659
+ } else {
660
+ var STATE = sharedKey$2('state');
661
+ hiddenKeys$3[STATE] = true;
662
+ set = function (it, metadata) {
663
+ if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
664
+ metadata.facade = it;
665
+ createNonEnumerableProperty$4(it, STATE, metadata);
666
+ return metadata;
667
+ };
668
+ get = function (it) {
669
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
670
+ };
671
+ has = function (it) {
672
+ return hasOwn$6(it, STATE);
673
+ };
674
+ }
675
+
676
+ var internalState = {
677
+ set: set,
678
+ get: get,
679
+ has: has,
680
+ enforce: enforce,
681
+ getterFor: getterFor
682
+ };
683
+
684
+ var DESCRIPTORS$3 = descriptors;
685
+ var hasOwn$5 = hasOwnProperty_1;
686
+
687
+ var FunctionPrototype = Function.prototype;
688
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
689
+ var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
690
+
691
+ var EXISTS = hasOwn$5(FunctionPrototype, 'name');
692
+ // additional protection from minified / mangled / dropped function names
693
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
694
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
695
+
696
+ var functionName = {
697
+ EXISTS: EXISTS,
698
+ PROPER: PROPER,
699
+ CONFIGURABLE: CONFIGURABLE
700
+ };
701
+
702
+ var global$5 = global$o;
703
+ var isCallable$5 = isCallable$d;
704
+ var hasOwn$4 = hasOwnProperty_1;
705
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
706
+ var setGlobal$1 = setGlobal$3;
707
+ var inspectSource = inspectSource$2;
708
+ var InternalStateModule$1 = internalState;
709
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
710
+
711
+ var getInternalState$1 = InternalStateModule$1.get;
712
+ var enforceInternalState = InternalStateModule$1.enforce;
713
+ var TEMPLATE = String(String).split('String');
714
+
715
+ (redefine$3.exports = function (O, key, value, options) {
716
+ var unsafe = options ? !!options.unsafe : false;
717
+ var simple = options ? !!options.enumerable : false;
718
+ var noTargetGet = options ? !!options.noTargetGet : false;
719
+ var name = options && options.name !== undefined ? options.name : key;
720
+ var state;
721
+ if (isCallable$5(value)) {
722
+ if (String(name).slice(0, 7) === 'Symbol(') {
723
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
724
+ }
725
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
726
+ createNonEnumerableProperty$3(value, 'name', name);
727
+ }
728
+ state = enforceInternalState(value);
729
+ if (!state.source) {
730
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
731
+ }
732
+ }
733
+ if (O === global$5) {
734
+ if (simple) O[key] = value;
735
+ else setGlobal$1(key, value);
736
+ return;
737
+ } else if (!unsafe) {
738
+ delete O[key];
739
+ } else if (!noTargetGet && O[key]) {
740
+ simple = true;
741
+ }
742
+ if (simple) O[key] = value;
743
+ else createNonEnumerableProperty$3(O, key, value);
744
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
745
+ })(Function.prototype, 'toString', function toString() {
746
+ return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
747
+ });
748
+
749
+ var objectGetOwnPropertyNames = {};
750
+
751
+ var ceil = Math.ceil;
752
+ var floor = Math.floor;
753
+
754
+ // `ToIntegerOrInfinity` abstract operation
755
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
756
+ var toIntegerOrInfinity$2 = function (argument) {
757
+ var number = +argument;
758
+ // eslint-disable-next-line no-self-compare -- safe
759
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
760
+ };
761
+
762
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
763
+
764
+ var max = Math.max;
765
+ var min$1 = Math.min;
766
+
767
+ // Helper for a popular repeating case of the spec:
768
+ // Let integer be ? ToInteger(index).
769
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
770
+ var toAbsoluteIndex$1 = function (index, length) {
771
+ var integer = toIntegerOrInfinity$1(index);
772
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
773
+ };
774
+
775
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
776
+
777
+ var min = Math.min;
778
+
779
+ // `ToLength` abstract operation
780
+ // https://tc39.es/ecma262/#sec-tolength
781
+ var toLength$1 = function (argument) {
782
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
783
+ };
784
+
785
+ var toLength = toLength$1;
786
+
787
+ // `LengthOfArrayLike` abstract operation
788
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
789
+ var lengthOfArrayLike$1 = function (obj) {
790
+ return toLength(obj.length);
791
+ };
792
+
793
+ var toIndexedObject$3 = toIndexedObject$5;
794
+ var toAbsoluteIndex = toAbsoluteIndex$1;
795
+ var lengthOfArrayLike = lengthOfArrayLike$1;
796
+
797
+ // `Array.prototype.{ indexOf, includes }` methods implementation
798
+ var createMethod = function (IS_INCLUDES) {
799
+ return function ($this, el, fromIndex) {
800
+ var O = toIndexedObject$3($this);
801
+ var length = lengthOfArrayLike(O);
802
+ var index = toAbsoluteIndex(fromIndex, length);
803
+ var value;
804
+ // Array#includes uses SameValueZero equality algorithm
805
+ // eslint-disable-next-line no-self-compare -- NaN check
806
+ if (IS_INCLUDES && el != el) while (length > index) {
807
+ value = O[index++];
808
+ // eslint-disable-next-line no-self-compare -- NaN check
809
+ if (value != value) return true;
810
+ // Array#indexOf ignores holes, Array#includes - not
811
+ } else for (;length > index; index++) {
812
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
813
+ } return !IS_INCLUDES && -1;
814
+ };
815
+ };
816
+
817
+ var arrayIncludes = {
818
+ // `Array.prototype.includes` method
819
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
820
+ includes: createMethod(true),
821
+ // `Array.prototype.indexOf` method
822
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
823
+ indexOf: createMethod(false)
824
+ };
825
+
826
+ var uncurryThis$3 = functionUncurryThis;
827
+ var hasOwn$3 = hasOwnProperty_1;
828
+ var toIndexedObject$2 = toIndexedObject$5;
829
+ var indexOf = arrayIncludes.indexOf;
830
+ var hiddenKeys$2 = hiddenKeys$4;
831
+
832
+ var push = uncurryThis$3([].push);
833
+
834
+ var objectKeysInternal = function (object, names) {
835
+ var O = toIndexedObject$2(object);
836
+ var i = 0;
837
+ var result = [];
838
+ var key;
839
+ for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
840
+ // Don't enum bug & hidden keys
841
+ while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
842
+ ~indexOf(result, key) || push(result, key);
843
+ }
844
+ return result;
845
+ };
846
+
847
+ // IE8- don't enum bug keys
848
+ var enumBugKeys$3 = [
849
+ 'constructor',
850
+ 'hasOwnProperty',
851
+ 'isPrototypeOf',
852
+ 'propertyIsEnumerable',
853
+ 'toLocaleString',
854
+ 'toString',
855
+ 'valueOf'
856
+ ];
857
+
858
+ var internalObjectKeys$1 = objectKeysInternal;
859
+ var enumBugKeys$2 = enumBugKeys$3;
860
+
861
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
862
+
863
+ // `Object.getOwnPropertyNames` method
864
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
865
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
866
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
867
+ return internalObjectKeys$1(O, hiddenKeys$1);
868
+ };
869
+
870
+ var objectGetOwnPropertySymbols = {};
871
+
872
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
873
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
874
+
875
+ var getBuiltIn$1 = getBuiltIn$4;
876
+ var uncurryThis$2 = functionUncurryThis;
877
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
878
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
879
+ var anObject$3 = anObject$5;
880
+
881
+ var concat$1 = uncurryThis$2([].concat);
882
+
883
+ // all object keys, includes non-enumerable and symbols
884
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
885
+ var keys = getOwnPropertyNamesModule.f(anObject$3(it));
886
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
887
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
888
+ };
889
+
890
+ var hasOwn$2 = hasOwnProperty_1;
891
+ var ownKeys = ownKeys$1;
892
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
893
+ var definePropertyModule$2 = objectDefineProperty;
894
+
895
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
896
+ var keys = ownKeys(source);
897
+ var defineProperty = definePropertyModule$2.f;
898
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
899
+ for (var i = 0; i < keys.length; i++) {
900
+ var key = keys[i];
901
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
902
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
903
+ }
904
+ }
905
+ };
906
+
907
+ var fails$3 = fails$a;
908
+ var isCallable$4 = isCallable$d;
909
+
910
+ var replacement = /#|\.prototype\./;
911
+
912
+ var isForced$1 = function (feature, detection) {
913
+ var value = data[normalize$1(feature)];
914
+ return value == POLYFILL ? true
915
+ : value == NATIVE ? false
916
+ : isCallable$4(detection) ? fails$3(detection)
917
+ : !!detection;
918
+ };
919
+
920
+ var normalize$1 = isForced$1.normalize = function (string) {
921
+ return String(string).replace(replacement, '.').toLowerCase();
922
+ };
923
+
924
+ var data = isForced$1.data = {};
925
+ var NATIVE = isForced$1.NATIVE = 'N';
926
+ var POLYFILL = isForced$1.POLYFILL = 'P';
927
+
928
+ var isForced_1 = isForced$1;
929
+
930
+ var global$4 = global$o;
931
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
932
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
933
+ var redefine$2 = redefine$3.exports;
934
+ var setGlobal = setGlobal$3;
935
+ var copyConstructorProperties = copyConstructorProperties$1;
936
+ var isForced = isForced_1;
937
+
938
+ /*
939
+ options.target - name of the target object
940
+ options.global - target is the global object
941
+ options.stat - export as static methods of target
942
+ options.proto - export as prototype methods of target
943
+ options.real - real prototype method for the `pure` version
944
+ options.forced - export even if the native feature is available
945
+ options.bind - bind methods to the target, required for the `pure` version
946
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
947
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
948
+ options.sham - add a flag to not completely full polyfills
949
+ options.enumerable - export as enumerable property
950
+ options.noTargetGet - prevent calling a getter on target
951
+ options.name - the .name of the function if it does not match the key
952
+ */
953
+ var _export = function (options, source) {
954
+ var TARGET = options.target;
955
+ var GLOBAL = options.global;
956
+ var STATIC = options.stat;
957
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
958
+ if (GLOBAL) {
959
+ target = global$4;
960
+ } else if (STATIC) {
961
+ target = global$4[TARGET] || setGlobal(TARGET, {});
962
+ } else {
963
+ target = (global$4[TARGET] || {}).prototype;
964
+ }
965
+ if (target) for (key in source) {
966
+ sourceProperty = source[key];
967
+ if (options.noTargetGet) {
968
+ descriptor = getOwnPropertyDescriptor(target, key);
969
+ targetProperty = descriptor && descriptor.value;
970
+ } else targetProperty = target[key];
971
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
972
+ // contained in target
973
+ if (!FORCED && targetProperty !== undefined) {
974
+ if (typeof sourceProperty == typeof targetProperty) continue;
975
+ copyConstructorProperties(sourceProperty, targetProperty);
976
+ }
977
+ // add a flag to not completely full polyfills
978
+ if (options.sham || (targetProperty && targetProperty.sham)) {
979
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
980
+ }
981
+ // extend global
982
+ redefine$2(target, key, sourceProperty, options);
983
+ }
984
+ };
985
+
986
+ var internalObjectKeys = objectKeysInternal;
987
+ var enumBugKeys$1 = enumBugKeys$3;
988
+
989
+ // `Object.keys` method
990
+ // https://tc39.es/ecma262/#sec-object.keys
991
+ // eslint-disable-next-line es/no-object-keys -- safe
992
+ var objectKeys$2 = Object.keys || function keys(O) {
993
+ return internalObjectKeys(O, enumBugKeys$1);
994
+ };
995
+
996
+ var DESCRIPTORS$2 = descriptors;
997
+ var uncurryThis$1 = functionUncurryThis;
998
+ var call$1 = functionCall;
999
+ var fails$2 = fails$a;
1000
+ var objectKeys$1 = objectKeys$2;
1001
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1002
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1003
+ var toObject$1 = toObject$3;
1004
+ var IndexedObject = indexedObject;
1005
+
1006
+ // eslint-disable-next-line es/no-object-assign -- safe
1007
+ var $assign = Object.assign;
1008
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1009
+ var defineProperty$2 = Object.defineProperty;
1010
+ var concat = uncurryThis$1([].concat);
1011
+
1012
+ // `Object.assign` method
1013
+ // https://tc39.es/ecma262/#sec-object.assign
1014
+ var objectAssign = !$assign || fails$2(function () {
1015
+ // should have correct order of operations (Edge bug)
1016
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
1017
+ enumerable: true,
1018
+ get: function () {
1019
+ defineProperty$2(this, 'b', {
1020
+ value: 3,
1021
+ enumerable: false
1022
+ });
1023
+ }
1024
+ }), { b: 2 })).b !== 1) return true;
1025
+ // should work with symbols and should have deterministic property order (V8 bug)
1026
+ var A = {};
1027
+ var B = {};
1028
+ // eslint-disable-next-line es/no-symbol -- safe
1029
+ var symbol = Symbol();
1030
+ var alphabet = 'abcdefghijklmnopqrst';
1031
+ A[symbol] = 7;
1032
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1033
+ return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1034
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1035
+ var T = toObject$1(target);
1036
+ var argumentsLength = arguments.length;
1037
+ var index = 1;
1038
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1039
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1040
+ while (argumentsLength > index) {
1041
+ var S = IndexedObject(arguments[index++]);
1042
+ var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1043
+ var length = keys.length;
1044
+ var j = 0;
1045
+ var key;
1046
+ while (length > j) {
1047
+ key = keys[j++];
1048
+ if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
1049
+ }
1050
+ } return T;
1051
+ } : $assign;
1052
+
1053
+ var $$1 = _export;
1054
+ var assign = objectAssign;
1055
+
1056
+ // `Object.assign` method
1057
+ // https://tc39.es/ecma262/#sec-object.assign
1058
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1059
+ $$1({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
1060
+ assign: assign
1061
+ });
1062
+
1063
+ const {
1064
+ styled,
1065
+ css,
1066
+ globalCss,
1067
+ keyframes,
1068
+ getCssText,
1069
+ theme,
1070
+ createTheme,
1071
+ config
1072
+ } = createStitches({
1073
+ theme: {
1074
+ colors: Object.assign({}, foundations.colors),
1075
+ space: Object.assign({}, foundations.space),
1076
+ shadows: Object.assign({}, foundations.shadows),
1077
+ fontSizes: Object.assign({}, foundations.fontSizes),
1078
+ fonts: Object.assign({}, foundations.fonts),
1079
+ lineHeights: Object.assign({}, foundations.lineHeights),
1080
+ letterSpacings: Object.assign({}, foundations.letterSpacings),
1081
+ radii: Object.assign({}, foundations.radii)
1082
+ },
1083
+ media: {
1084
+ sm: '(min-width: 359px)',
1085
+ md: '(min-width: 767px)',
1086
+ lg: '(min-width: 1023px)',
1087
+ xl: '(min-width: 1199px)',
1088
+ '2xl': '(min-width: 1399px)'
1089
+ },
1090
+ utils: {
1091
+ m: value => ({
1092
+ margin: value
1093
+ }),
1094
+ mt: value => ({
1095
+ marginTop: value
1096
+ }),
1097
+ mr: value => ({
1098
+ marginRight: value
1099
+ }),
1100
+ mb: value => ({
1101
+ marginBottom: value
1102
+ }),
1103
+ ml: value => ({
1104
+ marginLeft: value
1105
+ }),
1106
+ mx: value => ({
1107
+ marginLeft: value,
1108
+ marginRight: value
1109
+ }),
1110
+ my: value => ({
1111
+ marginTop: value,
1112
+ marginBottom: value
1113
+ }),
1114
+ size: value => ({
1115
+ width: value,
1116
+ height: value
1117
+ })
1118
+ }
1119
+ });
1120
+ createTheme({
1121
+ colors: {
1122
+ bgWhite: '#000000',
1123
+ bgDark: '#FFFFFF'
1124
+ }
1125
+ });
1126
+
1127
+ const normalize = {
1128
+ '*,::before,::after': {
1129
+ boxSizing: 'border-box'
1130
+ },
1131
+ html: {
1132
+ lineHeight: 1.15,
1133
+ WebkitTextSizeAdjust: '100%',
1134
+ MozTabSize: '4',
1135
+ tabSize: 4
1136
+ },
1137
+ body: {
1138
+ margin: '0',
1139
+ fontFamily: "system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji'"
1140
+ },
1141
+ hr: {
1142
+ height: '0',
1143
+ color: 'inherit'
1144
+ },
1145
+ 'abbr[title]': {
1146
+ textDecoration: 'underline dotted'
1147
+ },
1148
+ 'b,strong': {
1149
+ fontWeight: 'bolder'
1150
+ },
1151
+ 'code,kbd,samp,pre': {
1152
+ fontFamily: "ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace",
1153
+ fontSize: '1em'
1154
+ },
1155
+ small: {
1156
+ fontSize: '80%'
1157
+ },
1158
+ 'sub,sup': {
1159
+ fontSize: '75%',
1160
+ lineHeight: 0,
1161
+ position: 'relative',
1162
+ verticalAlign: 'baseline'
1163
+ },
1164
+ sub: {
1165
+ bottom: '-0.25em'
1166
+ },
1167
+ sup: {
1168
+ top: '-0.5em'
1169
+ },
1170
+ table: {
1171
+ textIndent: '0',
1172
+ borderColor: 'inherit'
1173
+ },
1174
+ 'button,input,optgroup,select,textarea': {
1175
+ fontFamily: 'inherit',
1176
+ fontSize: '100%',
1177
+ lineHeight: 1.15,
1178
+ margin: '0'
1179
+ },
1180
+ 'button,select': {
1181
+ textTransform: 'none'
1182
+ },
1183
+ "button,[type='button'],[type='reset'],[type='submit']": {
1184
+ WebkitAppearance: 'button'
1185
+ },
1186
+ '::-moz-focus-inner': {
1187
+ borderStyle: 'none',
1188
+ padding: '0'
1189
+ },
1190
+ ':-moz-focusring': {
1191
+ outline: '1px dotted ButtonText'
1192
+ },
1193
+ ':-moz-ui-invalid': {
1194
+ boxShadow: 'none'
1195
+ },
1196
+ legend: {
1197
+ padding: '0'
1198
+ },
1199
+ progress: {
1200
+ verticalAlign: 'baseline'
1201
+ },
1202
+ '::-webkit-inner-spin-button,::-webkit-outer-spin-button': {
1203
+ height: 'auto'
1204
+ },
1205
+ "[type='search']": {
1206
+ WebkitAppearance: 'textfield',
1207
+ outlineOffset: '-2px'
1208
+ },
1209
+ '::-webkit-search-decoration': {
1210
+ WebkitAppearance: 'none'
1211
+ },
1212
+ '::-webkit-file-upload-button': {
1213
+ WebkitAppearance: 'button',
1214
+ font: 'inherit'
1215
+ },
1216
+ summary: {
1217
+ display: 'list-item'
1218
+ }
1219
+ };
1220
+
1221
+ const applyGlobalStyles = additionaStyles => {
1222
+ const globalStyles = globalCss(Object.assign({}, normalize), {
1223
+ '@import': ['url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap")'],
1224
+ '*': {
1225
+ fontFamily: '$main'
1226
+ },
1227
+ 'html,body,#root': {
1228
+ width: '100%',
1229
+ height: '100%'
1230
+ },
1231
+ 'h1,h2,h3,h4,h5,h6,p': {
1232
+ margin: '0'
1233
+ },
1234
+ a: {
1235
+ color: 'inherit',
1236
+ textDecoration: 'none'
1237
+ },
1238
+ img: {
1239
+ display: 'block',
1240
+ maxWidth: '100%'
1241
+ },
1242
+ '.noscroll': {
1243
+ overflow: 'hidden'
1244
+ },
1245
+ '.noselect': {
1246
+ userSelect: 'none'
1247
+ },
1248
+ '.full-size': {
1249
+ height: '100%',
1250
+ width: '100%'
1251
+ },
1252
+ '.full-size-layout': {
1253
+ height: '100%',
1254
+ minHeight: '100vh',
1255
+ width: '100%'
1256
+ },
1257
+ '.drag-handle': {
1258
+ cursor: 'move',
1259
+ display: 'inline-block',
1260
+ '&::before': {
1261
+ content: "'......'",
1262
+ display: 'inline-block',
1263
+ width: '10px',
1264
+ wordBreak: 'break-word',
1265
+ whiteSpace: 'normal',
1266
+ letterSpacing: '2px',
1267
+ lineHeight: '4.5px',
1268
+ textAlign: 'center',
1269
+ height: '18px'
1270
+ }
1271
+ },
1272
+ '[data-reach-skip-link]': {
1273
+ border: '0',
1274
+ clip: 'rect(0 0 0 0)',
1275
+ height: '1px',
1276
+ width: '1px',
1277
+ margin: '-1px',
1278
+ padding: '0',
1279
+ overflow: 'hidden',
1280
+ position: 'absolute'
1281
+ },
1282
+ '[data-reach-skip-link]:focus': {
1283
+ padding: '1rem',
1284
+ position: 'fixed',
1285
+ top: '10px',
1286
+ left: '10px',
1287
+ background: 'white',
1288
+ zIndex: 100,
1289
+ width: 'auto',
1290
+ height: 'auto',
1291
+ clip: 'auto'
1292
+ }
1293
+ }, Object.assign({}, additionaStyles));
1294
+ globalStyles();
1295
+ };
1296
+
1297
+ function _extends() {
1298
+ _extends = Object.assign || function (target) {
1299
+ for (var i = 1; i < arguments.length; i++) {
1300
+ var source = arguments[i];
1301
+
1302
+ for (var key in source) {
1303
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1304
+ target[key] = source[key];
1305
+ }
1306
+ }
1307
+ }
1308
+
1309
+ return target;
1310
+ };
1311
+
1312
+ return _extends.apply(this, arguments);
1313
+ }
1314
+
1315
+ function _objectWithoutPropertiesLoose(source, excluded) {
1316
+ if (source == null) return {};
1317
+ var target = {};
1318
+ var sourceKeys = Object.keys(source);
1319
+ var key, i;
1320
+
1321
+ for (i = 0; i < sourceKeys.length; i++) {
1322
+ key = sourceKeys[i];
1323
+ if (excluded.indexOf(key) >= 0) continue;
1324
+ target[key] = source[key];
1325
+ }
1326
+
1327
+ return target;
1328
+ }
1329
+
1330
+ var objectDefineProperties = {};
1331
+
1332
+ var DESCRIPTORS$1 = descriptors;
1333
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1334
+ var definePropertyModule$1 = objectDefineProperty;
1335
+ var anObject$2 = anObject$5;
1336
+ var toIndexedObject$1 = toIndexedObject$5;
1337
+ var objectKeys = objectKeys$2;
1338
+
1339
+ // `Object.defineProperties` method
1340
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1341
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1342
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1343
+ anObject$2(O);
1344
+ var props = toIndexedObject$1(Properties);
1345
+ var keys = objectKeys(Properties);
1346
+ var length = keys.length;
1347
+ var index = 0;
1348
+ var key;
1349
+ while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1350
+ return O;
1351
+ };
1352
+
1353
+ var getBuiltIn = getBuiltIn$4;
1354
+
1355
+ var html$1 = getBuiltIn('document', 'documentElement');
1356
+
1357
+ /* global ActiveXObject -- old IE, WSH */
1358
+
1359
+ var anObject$1 = anObject$5;
1360
+ var definePropertiesModule = objectDefineProperties;
1361
+ var enumBugKeys = enumBugKeys$3;
1362
+ var hiddenKeys = hiddenKeys$4;
1363
+ var html = html$1;
1364
+ var documentCreateElement$1 = documentCreateElement$2;
1365
+ var sharedKey$1 = sharedKey$3;
1366
+
1367
+ var GT = '>';
1368
+ var LT = '<';
1369
+ var PROTOTYPE = 'prototype';
1370
+ var SCRIPT = 'script';
1371
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1372
+
1373
+ var EmptyConstructor = function () { /* empty */ };
1374
+
1375
+ var scriptTag = function (content) {
1376
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1377
+ };
1378
+
1379
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1380
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1381
+ activeXDocument.write(scriptTag(''));
1382
+ activeXDocument.close();
1383
+ var temp = activeXDocument.parentWindow.Object;
1384
+ activeXDocument = null; // avoid memory leak
1385
+ return temp;
1386
+ };
1387
+
1388
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1389
+ var NullProtoObjectViaIFrame = function () {
1390
+ // Thrash, waste and sodomy: IE GC bug
1391
+ var iframe = documentCreateElement$1('iframe');
1392
+ var JS = 'java' + SCRIPT + ':';
1393
+ var iframeDocument;
1394
+ iframe.style.display = 'none';
1395
+ html.appendChild(iframe);
1396
+ // https://github.com/zloirock/core-js/issues/475
1397
+ iframe.src = String(JS);
1398
+ iframeDocument = iframe.contentWindow.document;
1399
+ iframeDocument.open();
1400
+ iframeDocument.write(scriptTag('document.F=Object'));
1401
+ iframeDocument.close();
1402
+ return iframeDocument.F;
1403
+ };
1404
+
1405
+ // Check for document.domain and active x support
1406
+ // No need to use active x approach when document.domain is not set
1407
+ // see https://github.com/es-shims/es5-shim/issues/150
1408
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1409
+ // avoid IE GC bug
1410
+ var activeXDocument;
1411
+ var NullProtoObject = function () {
1412
+ try {
1413
+ activeXDocument = new ActiveXObject('htmlfile');
1414
+ } catch (error) { /* ignore */ }
1415
+ NullProtoObject = typeof document != 'undefined'
1416
+ ? document.domain && activeXDocument
1417
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1418
+ : NullProtoObjectViaIFrame()
1419
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1420
+ var length = enumBugKeys.length;
1421
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1422
+ return NullProtoObject();
1423
+ };
1424
+
1425
+ hiddenKeys[IE_PROTO$1] = true;
1426
+
1427
+ // `Object.create` method
1428
+ // https://tc39.es/ecma262/#sec-object.create
1429
+ var objectCreate = Object.create || function create(O, Properties) {
1430
+ var result;
1431
+ if (O !== null) {
1432
+ EmptyConstructor[PROTOTYPE] = anObject$1(O);
1433
+ result = new EmptyConstructor();
1434
+ EmptyConstructor[PROTOTYPE] = null;
1435
+ // add "__proto__" for Object.getPrototypeOf polyfill
1436
+ result[IE_PROTO$1] = O;
1437
+ } else result = NullProtoObject();
1438
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1439
+ };
1440
+
1441
+ var wellKnownSymbol$4 = wellKnownSymbol$6;
1442
+ var create$1 = objectCreate;
1443
+ var definePropertyModule = objectDefineProperty;
1444
+
1445
+ var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1446
+ var ArrayPrototype = Array.prototype;
1447
+
1448
+ // Array.prototype[@@unscopables]
1449
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1450
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
1451
+ definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
1452
+ configurable: true,
1453
+ value: create$1(null)
1454
+ });
1455
+ }
1456
+
1457
+ // add a key to Array.prototype[@@unscopables]
1458
+ var addToUnscopables$1 = function (key) {
1459
+ ArrayPrototype[UNSCOPABLES][key] = true;
1460
+ };
1461
+
1462
+ var iterators = {};
1463
+
1464
+ var fails$1 = fails$a;
1465
+
1466
+ var correctPrototypeGetter = !fails$1(function () {
1467
+ function F() { /* empty */ }
1468
+ F.prototype.constructor = null;
1469
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1470
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1471
+ });
1472
+
1473
+ var global$3 = global$o;
1474
+ var hasOwn$1 = hasOwnProperty_1;
1475
+ var isCallable$3 = isCallable$d;
1476
+ var toObject = toObject$3;
1477
+ var sharedKey = sharedKey$3;
1478
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1479
+
1480
+ var IE_PROTO = sharedKey('IE_PROTO');
1481
+ var Object$1 = global$3.Object;
1482
+ var ObjectPrototype = Object$1.prototype;
1483
+
1484
+ // `Object.getPrototypeOf` method
1485
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1486
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
1487
+ var object = toObject(O);
1488
+ if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1489
+ var constructor = object.constructor;
1490
+ if (isCallable$3(constructor) && object instanceof constructor) {
1491
+ return constructor.prototype;
1492
+ } return object instanceof Object$1 ? ObjectPrototype : null;
1493
+ };
1494
+
1495
+ var fails = fails$a;
1496
+ var isCallable$2 = isCallable$d;
1497
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1498
+ var redefine$1 = redefine$3.exports;
1499
+ var wellKnownSymbol$3 = wellKnownSymbol$6;
1500
+
1501
+ var ITERATOR$2 = wellKnownSymbol$3('iterator');
1502
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1503
+
1504
+ // `%IteratorPrototype%` object
1505
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1506
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1507
+
1508
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1509
+ if ([].keys) {
1510
+ arrayIterator = [].keys();
1511
+ // Safari 8 has buggy iterators w/o `next`
1512
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1513
+ else {
1514
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1515
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1516
+ }
1517
+ }
1518
+
1519
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails(function () {
1520
+ var test = {};
1521
+ // FF44- legacy iterators case
1522
+ return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1523
+ });
1524
+
1525
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1526
+
1527
+ // `%IteratorPrototype%[@@iterator]()` method
1528
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1529
+ if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1530
+ redefine$1(IteratorPrototype$2, ITERATOR$2, function () {
1531
+ return this;
1532
+ });
1533
+ }
1534
+
1535
+ var iteratorsCore = {
1536
+ IteratorPrototype: IteratorPrototype$2,
1537
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1538
+ };
1539
+
1540
+ var defineProperty$1 = objectDefineProperty.f;
1541
+ var hasOwn = hasOwnProperty_1;
1542
+ var wellKnownSymbol$2 = wellKnownSymbol$6;
1543
+
1544
+ var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1545
+
1546
+ var setToStringTag$2 = function (target, TAG, STATIC) {
1547
+ if (target && !STATIC) target = target.prototype;
1548
+ if (target && !hasOwn(target, TO_STRING_TAG$1)) {
1549
+ defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1550
+ }
1551
+ };
1552
+
1553
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1554
+ var create = objectCreate;
1555
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1556
+ var setToStringTag$1 = setToStringTag$2;
1557
+ var Iterators$2 = iterators;
1558
+
1559
+ var returnThis$1 = function () { return this; };
1560
+
1561
+ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1562
+ var TO_STRING_TAG = NAME + ' Iterator';
1563
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1564
+ setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1565
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
1566
+ return IteratorConstructor;
1567
+ };
1568
+
1569
+ var global$2 = global$o;
1570
+ var isCallable$1 = isCallable$d;
1571
+
1572
+ var String$1 = global$2.String;
1573
+ var TypeError = global$2.TypeError;
1574
+
1575
+ var aPossiblePrototype$1 = function (argument) {
1576
+ if (typeof argument == 'object' || isCallable$1(argument)) return argument;
1577
+ throw TypeError("Can't set " + String$1(argument) + ' as a prototype');
1578
+ };
1579
+
1580
+ /* eslint-disable no-proto -- safe */
1581
+
1582
+ var uncurryThis = functionUncurryThis;
1583
+ var anObject = anObject$5;
1584
+ var aPossiblePrototype = aPossiblePrototype$1;
1585
+
1586
+ // `Object.setPrototypeOf` method
1587
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1588
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1589
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1590
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1591
+ var CORRECT_SETTER = false;
1592
+ var test = {};
1593
+ var setter;
1594
+ try {
1595
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1596
+ setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1597
+ setter(test, []);
1598
+ CORRECT_SETTER = test instanceof Array;
1599
+ } catch (error) { /* empty */ }
1600
+ return function setPrototypeOf(O, proto) {
1601
+ anObject(O);
1602
+ aPossiblePrototype(proto);
1603
+ if (CORRECT_SETTER) setter(O, proto);
1604
+ else O.__proto__ = proto;
1605
+ return O;
1606
+ };
1607
+ }() : undefined);
1608
+
1609
+ var $ = _export;
1610
+ var call = functionCall;
1611
+ var FunctionName = functionName;
1612
+ var isCallable = isCallable$d;
1613
+ var createIteratorConstructor = createIteratorConstructor$1;
1614
+ var getPrototypeOf = objectGetPrototypeOf;
1615
+ var setPrototypeOf = objectSetPrototypeOf;
1616
+ var setToStringTag = setToStringTag$2;
1617
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1618
+ var redefine = redefine$3.exports;
1619
+ var wellKnownSymbol$1 = wellKnownSymbol$6;
1620
+ var Iterators$1 = iterators;
1621
+ var IteratorsCore = iteratorsCore;
1622
+
1623
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1624
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1625
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1626
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1627
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
1628
+ var KEYS = 'keys';
1629
+ var VALUES = 'values';
1630
+ var ENTRIES = 'entries';
1631
+
1632
+ var returnThis = function () { return this; };
1633
+
1634
+ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1635
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1636
+
1637
+ var getIterationMethod = function (KIND) {
1638
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1639
+ if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1640
+ switch (KIND) {
1641
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1642
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1643
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1644
+ } return function () { return new IteratorConstructor(this); };
1645
+ };
1646
+
1647
+ var TO_STRING_TAG = NAME + ' Iterator';
1648
+ var INCORRECT_VALUES_NAME = false;
1649
+ var IterablePrototype = Iterable.prototype;
1650
+ var nativeIterator = IterablePrototype[ITERATOR$1]
1651
+ || IterablePrototype['@@iterator']
1652
+ || DEFAULT && IterablePrototype[DEFAULT];
1653
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1654
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1655
+ var CurrentIteratorPrototype, methods, KEY;
1656
+
1657
+ // fix native
1658
+ if (anyNativeIterator) {
1659
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1660
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1661
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1662
+ if (setPrototypeOf) {
1663
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1664
+ } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1665
+ redefine(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1666
+ }
1667
+ }
1668
+ // Set @@toStringTag to native iterators
1669
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1670
+ }
1671
+ }
1672
+
1673
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1674
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1675
+ if (CONFIGURABLE_FUNCTION_NAME) {
1676
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1677
+ } else {
1678
+ INCORRECT_VALUES_NAME = true;
1679
+ defaultIterator = function values() { return call(nativeIterator, this); };
1680
+ }
1681
+ }
1682
+
1683
+ // export additional methods
1684
+ if (DEFAULT) {
1685
+ methods = {
1686
+ values: getIterationMethod(VALUES),
1687
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1688
+ entries: getIterationMethod(ENTRIES)
1689
+ };
1690
+ if (FORCED) for (KEY in methods) {
1691
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1692
+ redefine(IterablePrototype, KEY, methods[KEY]);
1693
+ }
1694
+ } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1695
+ }
1696
+
1697
+ // define iterator
1698
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1699
+ redefine(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1700
+ }
1701
+ Iterators$1[NAME] = defaultIterator;
1702
+
1703
+ return methods;
1704
+ };
1705
+
1706
+ var toIndexedObject = toIndexedObject$5;
1707
+ var addToUnscopables = addToUnscopables$1;
1708
+ var Iterators = iterators;
1709
+ var InternalStateModule = internalState;
1710
+ var defineProperty = objectDefineProperty.f;
1711
+ var defineIterator = defineIterator$1;
1712
+ var DESCRIPTORS = descriptors;
1713
+
1714
+ var ARRAY_ITERATOR = 'Array Iterator';
1715
+ var setInternalState = InternalStateModule.set;
1716
+ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1717
+
1718
+ // `Array.prototype.entries` method
1719
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1720
+ // `Array.prototype.keys` method
1721
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1722
+ // `Array.prototype.values` method
1723
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1724
+ // `Array.prototype[@@iterator]` method
1725
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1726
+ // `CreateArrayIterator` internal method
1727
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1728
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1729
+ setInternalState(this, {
1730
+ type: ARRAY_ITERATOR,
1731
+ target: toIndexedObject(iterated), // target
1732
+ index: 0, // next index
1733
+ kind: kind // kind
1734
+ });
1735
+ // `%ArrayIteratorPrototype%.next` method
1736
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1737
+ }, function () {
1738
+ var state = getInternalState(this);
1739
+ var target = state.target;
1740
+ var kind = state.kind;
1741
+ var index = state.index++;
1742
+ if (!target || index >= target.length) {
1743
+ state.target = undefined;
1744
+ return { value: undefined, done: true };
1745
+ }
1746
+ if (kind == 'keys') return { value: index, done: false };
1747
+ if (kind == 'values') return { value: target[index], done: false };
1748
+ return { value: [index, target[index]], done: false };
1749
+ }, 'values');
1750
+
1751
+ // argumentsList[@@iterator] is %ArrayProto_values%
1752
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1753
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1754
+ var values = Iterators.Arguments = Iterators.Array;
1755
+
1756
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1757
+ addToUnscopables('keys');
1758
+ addToUnscopables('values');
1759
+ addToUnscopables('entries');
1760
+
1761
+ // V8 ~ Chrome 45- bug
1762
+ if (DESCRIPTORS && values.name !== 'values') try {
1763
+ defineProperty(values, 'name', { value: 'values' });
1764
+ } catch (error) { /* empty */ }
1765
+
1766
+ // iterable DOM collections
1767
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1768
+ var domIterables = {
1769
+ CSSRuleList: 0,
1770
+ CSSStyleDeclaration: 0,
1771
+ CSSValueList: 0,
1772
+ ClientRectList: 0,
1773
+ DOMRectList: 0,
1774
+ DOMStringList: 0,
1775
+ DOMTokenList: 1,
1776
+ DataTransferItemList: 0,
1777
+ FileList: 0,
1778
+ HTMLAllCollection: 0,
1779
+ HTMLCollection: 0,
1780
+ HTMLFormElement: 0,
1781
+ HTMLSelectElement: 0,
1782
+ MediaList: 0,
1783
+ MimeTypeArray: 0,
1784
+ NamedNodeMap: 0,
1785
+ NodeList: 1,
1786
+ PaintRequestList: 0,
1787
+ Plugin: 0,
1788
+ PluginArray: 0,
1789
+ SVGLengthList: 0,
1790
+ SVGNumberList: 0,
1791
+ SVGPathSegList: 0,
1792
+ SVGPointList: 0,
1793
+ SVGStringList: 0,
1794
+ SVGTransformList: 0,
1795
+ SourceBufferList: 0,
1796
+ StyleSheetList: 0,
1797
+ TextTrackCueList: 0,
1798
+ TextTrackList: 0,
1799
+ TouchList: 0
1800
+ };
1801
+
1802
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1803
+ var documentCreateElement = documentCreateElement$2;
1804
+
1805
+ var classList = documentCreateElement('span').classList;
1806
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1807
+
1808
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1809
+
1810
+ var global$1 = global$o;
1811
+ var DOMIterables = domIterables;
1812
+ var DOMTokenListPrototype = domTokenListPrototype;
1813
+ var ArrayIteratorMethods = es_array_iterator;
1814
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
1815
+ var wellKnownSymbol = wellKnownSymbol$6;
1816
+
1817
+ var ITERATOR = wellKnownSymbol('iterator');
1818
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1819
+ var ArrayValues = ArrayIteratorMethods.values;
1820
+
1821
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1822
+ if (CollectionPrototype) {
1823
+ // some Chrome versions have non-configurable methods on DOMTokenList
1824
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1825
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1826
+ } catch (error) {
1827
+ CollectionPrototype[ITERATOR] = ArrayValues;
1828
+ }
1829
+ if (!CollectionPrototype[TO_STRING_TAG]) {
1830
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1831
+ }
1832
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1833
+ // some Chrome versions have non-configurable methods on DOMTokenList
1834
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1835
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1836
+ } catch (error) {
1837
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1838
+ }
1839
+ }
1840
+ }
1841
+ };
1842
+
1843
+ for (var COLLECTION_NAME in DOMIterables) {
1844
+ handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1845
+ }
1846
+
1847
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1848
+
1849
+ var _jsxFileName$f = "C:\\Project\\majoo-ui\\packages\\react\\src\\layout\\box\\Box.js";
1850
+ const BoxComponent = styled('div', {
1851
+ padding: '10px',
1852
+ height: 'auto'
1853
+ });
1854
+ const Box = ({
1855
+ className,
1856
+ children,
1857
+ color,
1858
+ textColor,
1859
+ padding
1860
+ }) => /*#__PURE__*/React__default.createElement(BoxComponent, {
1861
+ className: className,
1862
+ css: {
1863
+ padding: padding,
1864
+ backgroundColor: '$' + color,
1865
+ color: '$' + textColor
1866
+ },
1867
+ __self: undefined,
1868
+ __source: {
1869
+ fileName: _jsxFileName$f,
1870
+ lineNumber: 11,
1871
+ columnNumber: 5
1872
+ }
1873
+ }, children);
1874
+ Box.propTypes = {
1875
+ textColor: PropTypes.string,
1876
+ className: PropTypes.string,
1877
+ color: PropTypes.string,
1878
+ padding: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1879
+ };
1880
+ Box.defaultProps = {
1881
+ className: '',
1882
+ color: 'white',
1883
+ padding: '20px'
1884
+ };
1885
+
1886
+ function seqNumberVariants(variantFn, max, fromOne) {
1887
+ let variants = {};
1888
+
1889
+ for (let i = fromOne ? 1 : 0; (_ref = i <= max) != null ? _ref : 100; i++) {
1890
+ var _ref;
1891
+
1892
+ variants = Object.assign({}, variants, {
1893
+ [i]: variantFn(i)
1894
+ });
1895
+ }
1896
+
1897
+ return variants;
1898
+ }
1899
+
1900
+ const _excluded$9 = ["children"];
1901
+ var _jsxFileName$e = "C:\\Project\\majoo-ui\\packages\\react\\src\\layout\\flex\\Flex.js";
1902
+ const FlexComponent = styled('div', {
1903
+ boxSizing: 'border-box',
1904
+ display: 'flex',
1905
+ variants: {
1906
+ center: {
1907
+ true: {
1908
+ alignItems: 'center',
1909
+ justifyContent: 'center'
1910
+ }
1911
+ },
1912
+ direction: {
1913
+ row: {
1914
+ flexDirection: 'row'
1915
+ },
1916
+ column: {
1917
+ flexDirection: 'column'
1918
+ },
1919
+ rowReverse: {
1920
+ flexDirection: 'row-reverse'
1921
+ },
1922
+ columnReverse: {
1923
+ flexDirection: 'column-reverse'
1924
+ }
1925
+ },
1926
+ align: {
1927
+ start: {
1928
+ alignItems: 'flex-start'
1929
+ },
1930
+ center: {
1931
+ alignItems: 'center'
1932
+ },
1933
+ end: {
1934
+ alignItems: 'flex-end'
1935
+ },
1936
+ stretch: {
1937
+ alignItems: 'stretch'
1938
+ },
1939
+ baseline: {
1940
+ alignItems: 'baseline'
1941
+ }
1942
+ },
1943
+ justify: {
1944
+ start: {
1945
+ justifyContent: 'flex-start'
1946
+ },
1947
+ center: {
1948
+ justifyContent: 'center'
1949
+ },
1950
+ end: {
1951
+ justifyContent: 'flex-end'
1952
+ },
1953
+ between: {
1954
+ justifyContent: 'space-between'
1955
+ }
1956
+ },
1957
+ wrap: {
1958
+ noWrap: {
1959
+ flexWrap: 'nowrap'
1960
+ },
1961
+ wrap: {
1962
+ flexWrap: 'wrap'
1963
+ },
1964
+ wrapReverse: {
1965
+ flexWrap: 'wrap-reverse'
1966
+ }
1967
+ },
1968
+ gap: seqNumberVariants(value => ({
1969
+ gap: `$spacing-${value < 10 ? '0' + value : value}`
1970
+ }), 12, true)
1971
+ }
1972
+ });
1973
+
1974
+ const Flex = _ref => {
1975
+ let {
1976
+ children
1977
+ } = _ref,
1978
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
1979
+
1980
+ return /*#__PURE__*/React__default.createElement(FlexComponent, _extends({}, props, {
1981
+ css: Object.assign({}, props.css),
1982
+ __self: undefined,
1983
+ __source: {
1984
+ fileName: _jsxFileName$e,
1985
+ lineNumber: 80,
1986
+ columnNumber: 5
1987
+ }
1988
+ }), children);
1989
+ };
1990
+
1991
+ Flex.propTypes = {
1992
+ center: PropTypes.bool,
1993
+ direction: PropTypes.string,
1994
+ align: PropTypes.string,
1995
+ justify: PropTypes.string,
1996
+ wrap: PropTypes.string,
1997
+ gap: PropTypes.number
1998
+ };
1999
+ Flex.defaultProps = {
2000
+ center: false,
2001
+ direction: 'row',
2002
+ align: 'stretch',
2003
+ justify: 'start',
2004
+ wrap: 'noWrap',
2005
+ gap: 0
2006
+ };
2007
+ Flex.displayName = 'Flex';
2008
+
2009
+ const _excluded$8 = ["children"],
2010
+ _excluded2 = ["children"];
2011
+ var _jsxFileName$d = "C:\\Project\\majoo-ui\\packages\\react\\src\\layout\\grid\\Grid.js";
2012
+ const GridComponent = styled('div', {
2013
+ display: 'grid',
2014
+ variants: {
2015
+ align: {
2016
+ start: {
2017
+ alignItems: 'start'
2018
+ },
2019
+ center: {
2020
+ alignItems: 'center'
2021
+ },
2022
+ end: {
2023
+ alignItems: 'end'
2024
+ },
2025
+ stretch: {
2026
+ alignItems: 'stretch'
2027
+ },
2028
+ baseline: {
2029
+ alignItems: 'baseline'
2030
+ }
2031
+ },
2032
+ justify: {
2033
+ start: {
2034
+ justifyContent: 'start'
2035
+ },
2036
+ center: {
2037
+ justifyContent: 'center'
2038
+ },
2039
+ end: {
2040
+ justifyContent: 'end'
2041
+ },
2042
+ between: {
2043
+ justifyContent: 'space-between'
2044
+ }
2045
+ },
2046
+ flow: {
2047
+ row: {
2048
+ gridAutoFlow: 'row'
2049
+ },
2050
+ column: {
2051
+ gridAutoFlow: 'column'
2052
+ },
2053
+ dense: {
2054
+ gridAutoFlow: 'dense'
2055
+ },
2056
+ rowDense: {
2057
+ gridAutoFlow: 'row dense'
2058
+ },
2059
+ columnDense: {
2060
+ gridAutoFlow: 'column dense'
2061
+ }
2062
+ },
2063
+ columns: seqNumberVariants(value => ({
2064
+ gridTemplateColumns: `repeat(${value}, 1fr)`
2065
+ }), 10),
2066
+ rows: seqNumberVariants(value => ({
2067
+ gridTemplateRows: `repeat(${value}, 1fr)`
2068
+ }), 10),
2069
+ placeItems: {
2070
+ stretch: {
2071
+ placeItems: 'stretch'
2072
+ },
2073
+ start: {
2074
+ placeItems: 'start'
2075
+ },
2076
+ end: {
2077
+ placeItems: 'end'
2078
+ },
2079
+ center: {
2080
+ placeItems: 'center'
2081
+ },
2082
+ left: {
2083
+ placeItems: 'left'
2084
+ },
2085
+ right: {
2086
+ placeItems: 'right'
2087
+ }
2088
+ },
2089
+ gap: {
2090
+ 1: {
2091
+ gap: '$spacing-03'
2092
+ },
2093
+ 2: {
2094
+ gap: '$spacing-05'
2095
+ },
2096
+ 3: {
2097
+ gap: '$spacing-06'
2098
+ },
2099
+ 4: {
2100
+ gap: '$spacing-07'
2101
+ },
2102
+ 5: {
2103
+ gap: '$spacing-08'
2104
+ },
2105
+ 6: {
2106
+ gap: '$spacing-09'
2107
+ },
2108
+ 7: {
2109
+ gap: '$spacing-10'
2110
+ },
2111
+ 8: {
2112
+ gap: '$spacing-11'
2113
+ },
2114
+ 9: {
2115
+ gap: '$spacing-12'
2116
+ }
2117
+ },
2118
+ gapX: {
2119
+ normal: {
2120
+ columnGap: 'normal'
2121
+ },
2122
+ 1: {
2123
+ columnGap: '$spacing-03'
2124
+ },
2125
+ 2: {
2126
+ columnGap: '$spacing-05'
2127
+ },
2128
+ 3: {
2129
+ columnGap: '$spacing-06'
2130
+ },
2131
+ 4: {
2132
+ columnGap: '$spacing-07'
2133
+ },
2134
+ 5: {
2135
+ columnGap: '$spacing-08'
2136
+ },
2137
+ 6: {
2138
+ columnGap: '$spacing-09'
2139
+ },
2140
+ 7: {
2141
+ columnGap: '$spacing-10'
2142
+ },
2143
+ 8: {
2144
+ columnGap: '$spacing-11'
2145
+ },
2146
+ 9: {
2147
+ columnGap: '$spacing-12'
2148
+ }
2149
+ },
2150
+ gapY: {
2151
+ 1: {
2152
+ rowGap: '$spacing-03'
2153
+ },
2154
+ 2: {
2155
+ rowGap: '$spacing-05'
2156
+ },
2157
+ 3: {
2158
+ rowGap: '$spacing-06'
2159
+ },
2160
+ 4: {
2161
+ rowGap: '$spacing-07'
2162
+ },
2163
+ 5: {
2164
+ rowGap: '$spacing-08'
2165
+ },
2166
+ 6: {
2167
+ rowGap: '$spacing-09'
2168
+ },
2169
+ 7: {
2170
+ rowGap: '$spacing-10'
2171
+ },
2172
+ 8: {
2173
+ rowGap: '$spacing-11'
2174
+ },
2175
+ 9: {
2176
+ rowGap: '$spacing-12'
2177
+ }
2178
+ }
2179
+ }
2180
+ });
2181
+ const Grid = _ref => {
2182
+ let {
2183
+ children
2184
+ } = _ref,
2185
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
2186
+
2187
+ return /*#__PURE__*/React__default.createElement(GridComponent, _extends({}, props, {
2188
+ css: Object.assign({}, props.css, {
2189
+ gridAutoColumns: props.autoColumns,
2190
+ gridAutoRows: props.autoRows,
2191
+ gridTemplateColumns: props.templateColumns,
2192
+ gridTemplateRows: props.templateRows
2193
+ }),
2194
+ __self: undefined,
2195
+ __source: {
2196
+ fileName: _jsxFileName$d,
2197
+ lineNumber: 178,
2198
+ columnNumber: 5
2199
+ }
2200
+ }), children);
2201
+ };
2202
+ Grid.propTypes = {
2203
+ align: PropTypes.string,
2204
+ justify: PropTypes.string,
2205
+ autoColumns: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2206
+ autoRows: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2207
+ autoFlow: PropTypes.string,
2208
+ templateColumns: PropTypes.string,
2209
+ templateRows: PropTypes.string,
2210
+ columns: PropTypes.number,
2211
+ rows: PropTypes.number,
2212
+ gap: PropTypes.number,
2213
+ gapX: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2214
+ gapY: PropTypes.number
2215
+ };
2216
+ Grid.displayName = 'Grid';
2217
+
2218
+ function spanFn(value) {
2219
+ return value === "auto" ? "auto" : `span ${value}/span ${value}`;
2220
+ }
2221
+
2222
+ const GridItemComponent = styled('div', {
2223
+ variants: {
2224
+ colSpan: Object.assign({
2225
+ auto: spanFn('auto')
2226
+ }, seqNumberVariants(value => ({
2227
+ gridColumn: spanFn(value)
2228
+ }), 10, true)),
2229
+ rowSpan: Object.assign({
2230
+ auto: spanFn('auto')
2231
+ }, seqNumberVariants(value => ({
2232
+ gridRow: spanFn(value)
2233
+ }), 10, true))
2234
+ }
2235
+ });
2236
+ const GridItem = _ref2 => {
2237
+ let {
2238
+ children
2239
+ } = _ref2,
2240
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
2241
+
2242
+ return /*#__PURE__*/React__default.createElement(GridItemComponent, _extends({}, props, {
2243
+ css: Object.assign({}, props.css, {
2244
+ gridArea: props.area,
2245
+ gridColumnStart: props.colStart,
2246
+ gridColumnEnd: props.colEnd,
2247
+ gridRowStart: props.rowStart,
2248
+ gridRowEnd: props.rowEnd
2249
+ }),
2250
+ __self: undefined,
2251
+ __source: {
2252
+ fileName: _jsxFileName$d,
2253
+ lineNumber: 230,
2254
+ columnNumber: 5
2255
+ }
2256
+ }), children);
2257
+ };
2258
+ GridItem.propTypes = {
2259
+ gridArea: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2260
+ colSpan: PropTypes.number,
2261
+ rowSpan: PropTypes.number,
2262
+ colStart: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2263
+ colEnd: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2264
+ rowStart: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2265
+ rowEnd: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2266
+ };
2267
+ GridItem.displayName = 'Grid Item';
2268
+
2269
+ const _excluded$7 = ["className", "children", "type", "buttonType", "size", "disabled", "onClick", "block", "width", "leftIcon", "rightIcon"];
2270
+ var _jsxFileName$c = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\button\\Button.js";
2271
+ const ButtonPrimary = {
2272
+ backgroundColor: '$btnPrimary',
2273
+ border: '1px solid $btnPrimary',
2274
+ margin: '2px',
2275
+ color: '$textWhite',
2276
+ '&:hover': {
2277
+ backgroundColor: '$primary600',
2278
+ border: '1px solid $primary600'
2279
+ },
2280
+ '&:active': {
2281
+ backgroundColor: '$primary700',
2282
+ border: '1px solid $primary700'
2283
+ }
2284
+ };
2285
+ const PrimarySecondary = {
2286
+ backgroundColor: '$btnSecondary',
2287
+ border: '1px solid $btnPrimary',
2288
+ color: '$textGreen',
2289
+ '&:hover': {
2290
+ backgroundColor: '$primary50',
2291
+ border: '1px solid $btnPrimary',
2292
+ color: '$textGreen'
2293
+ },
2294
+ '&:active': {
2295
+ backgroundColor: '$primary100',
2296
+ border: '1px solid $btnPrimary'
2297
+ }
2298
+ };
2299
+ const GhostButton = {
2300
+ backgroundColor: '$btnSecondary',
2301
+ border: '1px solid $btnSecondary',
2302
+ margin: '2px',
2303
+ color: '$textGreen',
2304
+ '&:hover': {
2305
+ backgroundColor: '$primary50',
2306
+ border: '1px solid $primary50',
2307
+ color: '$textGreen'
2308
+ },
2309
+ '&:active': {
2310
+ backgroundColor: '$primary100',
2311
+ border: '1px solid $btnPrimary'
2312
+ }
2313
+ };
2314
+ const ButtonNegative = {
2315
+ backgroundColor: '$btnNegative',
2316
+ border: '1px solid $btnNegative',
2317
+ margin: '2px',
2318
+ color: '$textWhite',
2319
+ '&:hover': {
2320
+ backgroundColor: '$red600',
2321
+ border: '1px solid $red600'
2322
+ },
2323
+ '&:active': {
2324
+ backgroundColor: '$red700',
2325
+ border: '1px solid $red700'
2326
+ }
2327
+ };
2328
+ const ButtonNegativeSecondary = {
2329
+ backgroundColor: '$bgWhite',
2330
+ border: '1px solid $btnNegative',
2331
+ margin: '2px',
2332
+ color: '$textRed',
2333
+ '&:hover': {
2334
+ backgroundColor: '$red50',
2335
+ border: '1px solid $textRed'
2336
+ },
2337
+ '&:active': {
2338
+ backgroundColor: '$red100',
2339
+ border: '1px solid $textRed'
2340
+ }
2341
+ };
2342
+ const StyledIconLeft = styled('div', {
2343
+ marginRight: '5px',
2344
+ display: 'inline-block'
2345
+ });
2346
+ const StyledIconRight = styled('div', {
2347
+ marginLeft: '5px',
2348
+ display: 'inline-block'
2349
+ });
2350
+ const ButtonComponent = styled('button', {
2351
+ backgroundColor: '$btnPrimary',
2352
+ border: '1px solid $btnPrimary',
2353
+ borderRadius: '$lg',
2354
+ fontSize: '14px',
2355
+ fontWeight: 400,
2356
+ color: '$textWhite',
2357
+ padding: '10px 12px',
2358
+ margin: '2px',
2359
+ '&:hover': {
2360
+ backgroundColor: '$primary600',
2361
+ border: '1px solid $primary600'
2362
+ },
2363
+ '&:active': {
2364
+ backgroundColor: '$primary700',
2365
+ border: '1px solid $primary700'
2366
+ },
2367
+ '&:disabled': {
2368
+ border: '1px solid $btnDisable',
2369
+ backgroundColor: '$btnDisable',
2370
+ color: '$textDisable',
2371
+ '&:hover': {
2372
+ backgroundColor: '$btnDisable',
2373
+ border: '1px solid $btnDisable'
2374
+ },
2375
+ '&:active': {
2376
+ backgroundColor: '$btnDisable',
2377
+ border: '1px solid $btnDisable'
2378
+ }
2379
+ },
2380
+ variants: {
2381
+ buttonType: {
2382
+ primary: Object.assign({}, ButtonPrimary),
2383
+ secondary: Object.assign({}, PrimarySecondary),
2384
+ ghost: Object.assign({}, GhostButton),
2385
+ negative: Object.assign({}, ButtonNegative),
2386
+ 'negative-secondary': Object.assign({}, ButtonNegativeSecondary)
2387
+ },
2388
+ size: {
2389
+ xsmall: {
2390
+ padding: '4px 12px',
2391
+ textAlign: 'center'
2392
+ },
2393
+ small: {
2394
+ padding: '6px 12px',
2395
+ textAlign: 'center'
2396
+ },
2397
+ medium: {
2398
+ padding: '10px 12px',
2399
+ textAlign: 'center'
2400
+ },
2401
+ large: {
2402
+ fontSize: '16px',
2403
+ padding: '14px 16px',
2404
+ textAlign: 'center'
2405
+ }
2406
+ }
2407
+ }
2408
+ });
2409
+ function Button(_ref) {
2410
+ let {
2411
+ className,
2412
+ children,
2413
+ type,
2414
+ buttonType,
2415
+ size,
2416
+ disabled,
2417
+ onClick,
2418
+ block,
2419
+ width,
2420
+ leftIcon,
2421
+ rightIcon
2422
+ } = _ref,
2423
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
2424
+
2425
+ return /*#__PURE__*/React__default.createElement(ButtonComponent, _extends({
2426
+ className: className,
2427
+ type: type,
2428
+ buttonType: buttonType,
2429
+ size: size,
2430
+ onClick: onClick,
2431
+ disabled: disabled,
2432
+ css: {
2433
+ display: block ? 'block' : 'inline-block',
2434
+ width: width
2435
+ }
2436
+ }, props, {
2437
+ __self: this,
2438
+ __source: {
2439
+ fileName: _jsxFileName$c,
2440
+ lineNumber: 155,
2441
+ columnNumber: 5
2442
+ }
2443
+ }), leftIcon !== undefined ? /*#__PURE__*/React__default.createElement(StyledIconLeft, {
2444
+ __self: this,
2445
+ __source: {
2446
+ fileName: _jsxFileName$c,
2447
+ lineNumber: 157,
2448
+ columnNumber: 12
2449
+ }
2450
+ }, leftIcon) : null, children, rightIcon !== undefined ? /*#__PURE__*/React__default.createElement(StyledIconRight, {
2451
+ __self: this,
2452
+ __source: {
2453
+ fileName: _jsxFileName$c,
2454
+ lineNumber: 161,
2455
+ columnNumber: 12
2456
+ }
2457
+ }, rightIcon) : null);
2458
+ }
2459
+ Button.propTypes = {
2460
+ className: PropTypes.string,
2461
+ buttonType: PropTypes.string,
2462
+ size: PropTypes.string,
2463
+ disabled: PropTypes.bool,
2464
+ onClick: PropTypes.func,
2465
+ block: PropTypes.bool,
2466
+ width: PropTypes.string,
2467
+ leftIcon: PropTypes.element,
2468
+ rightIcon: PropTypes.element
2469
+ };
2470
+ Button.defaultProps = {
2471
+ buttonType: 'primary',
2472
+ size: 'medium',
2473
+ disabled: false,
2474
+ block: false
2475
+ };
2476
+
2477
+ const _excluded$6 = ["id", "message", "dismissAfter", "variant", "onAction", "actionText", "onRemove"];
2478
+ var _jsxFileName$b = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\toast\\Toast.js";
2479
+ const TOAST_WIDTH = 360;
2480
+ const ANIMATION_DURATION = 400; // export interface ToastProps extends Omit<ToastSettings, 'status'>, BoxProps {
2481
+ // variant?: ToastVariants;
2482
+ // }
2483
+
2484
+ const toastEnter = keyframes$1({
2485
+ '0%': {
2486
+ right: `-${TOAST_WIDTH}px`,
2487
+ opacity: '0'
2488
+ },
2489
+ '100%': {
2490
+ right: '0',
2491
+ opacity: '1'
2492
+ }
2493
+ });
2494
+ const toastExit = keyframes$1({
2495
+ '0%': {
2496
+ transform: 'translateX(0%)',
2497
+ opacity: '1',
2498
+ maxHeight: '200px',
2499
+ marginBottom: '20px'
2500
+ },
2501
+ '40%': {
2502
+ maxHeight: '200px',
2503
+ marginBottom: '20px'
2504
+ },
2505
+ '50%': {
2506
+ transform: 'translateX(100%)',
2507
+ opacity: '0'
2508
+ },
2509
+ '100%': {
2510
+ transform: 'translateX(100%)',
2511
+ opacity: '0',
2512
+ maxHeight: '0',
2513
+ marginBottom: '0'
2514
+ }
2515
+ });
2516
+ const Root = styled$1('div', {
2517
+ display: 'block',
2518
+ width: `${TOAST_WIDTH}px`,
2519
+ height: '100%',
2520
+ position: 'relative',
2521
+ marginBottom: '20px',
2522
+ opacity: 0,
2523
+ '&[state="entering"], &[state="entered"]': {
2524
+ animationFillMode: 'forwards',
2525
+ animationName: toastEnter,
2526
+ animationDuration: `${ANIMATION_DURATION}ms`
2527
+ },
2528
+ '&[state="exiting"]': {
2529
+ animationFillMode: 'forwards',
2530
+ animationName: toastExit,
2531
+ animationDuration: `${ANIMATION_DURATION * 2}ms`
2532
+ },
2533
+ '&[state="entered"]': {
2534
+ right: 0,
2535
+ opacity: '1'
2536
+ }
2537
+ });
2538
+ const StyledToast = styled$1('div', {
2539
+ display: 'inline-flex',
2540
+ flexDirection: 'row',
2541
+ alignItems: 'center',
2542
+ justifyContent: 'center',
2543
+ width: '100%',
2544
+ maxWidth: TOAST_WIDTH,
2545
+ padding: '$spacing-05',
2546
+ textAlign: 'left',
2547
+ borderRadius: 8,
2548
+ backgroundColor: foundations.colors.bgDark,
2549
+ color: foundations.colors.textWhite,
2550
+ variants: {
2551
+ variant: {
2552
+ news: {
2553
+ backgroundColor: foundations.colors.hlNews,
2554
+ color: foundations.colors.textWhite
2555
+ },
2556
+ process: {
2557
+ backgroundColor: foundations.colors.hlProcess,
2558
+ color: foundations.colors.textWhite
2559
+ },
2560
+ success: {
2561
+ backgroundColor: foundations.colors.hlSuccess,
2562
+ color: foundations.colors.textWhite
2563
+ },
2564
+ failed: {
2565
+ backgroundColor: foundations.colors.hlFailed,
2566
+ color: foundations.colors.textWhite
2567
+ }
2568
+ }
2569
+ }
2570
+ });
2571
+ const Text$1 = styled$1('span', {
2572
+ display: 'block'
2573
+ });
2574
+
2575
+ const Toast = _ref => {
2576
+ let {
2577
+ id,
2578
+ message,
2579
+ dismissAfter,
2580
+ variant,
2581
+ onAction,
2582
+ actionText,
2583
+ onRemove
2584
+ } = _ref,
2585
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
2586
+
2587
+ const [isOpen, setIsOpen] = React.useState(false);
2588
+ const close = React.useCallback(() => {
2589
+ setIsOpen(false);
2590
+ }, [setIsOpen]);
2591
+ React.useEffect(() => {
2592
+ let currentTimer = null;
2593
+ setIsOpen(true);
2594
+ currentTimer = setTimeout(() => {
2595
+ close();
2596
+ }, dismissAfter);
2597
+ return () => {
2598
+ if (currentTimer) {
2599
+ clearTimeout(currentTimer);
2600
+ }
2601
+ };
2602
+ }, [dismissAfter]);
2603
+ return /*#__PURE__*/React.createElement(Transition, {
2604
+ appear: true,
2605
+ in: isOpen,
2606
+ timeout: {
2607
+ enter: ANIMATION_DURATION + 100,
2608
+ exit: ANIMATION_DURATION + 400
2609
+ },
2610
+ unmountOnExit: true,
2611
+ onExited: onRemove,
2612
+ __self: undefined,
2613
+ __source: {
2614
+ fileName: _jsxFileName$b,
2615
+ lineNumber: 144,
2616
+ columnNumber: 5
2617
+ }
2618
+ }, state => /*#__PURE__*/React.createElement(Root, _extends({
2619
+ id: id,
2620
+ state: state
2621
+ }, rest, {
2622
+ __self: undefined,
2623
+ __source: {
2624
+ fileName: _jsxFileName$b,
2625
+ lineNumber: 155,
2626
+ columnNumber: 9
2627
+ }
2628
+ }), /*#__PURE__*/React.createElement(StyledToast, {
2629
+ variant: variant,
2630
+ __self: undefined,
2631
+ __source: {
2632
+ fileName: _jsxFileName$b,
2633
+ lineNumber: 156,
2634
+ columnNumber: 11
2635
+ }
2636
+ }, /*#__PURE__*/React.createElement(Flex, {
2637
+ align: "center",
2638
+ css: {
2639
+ flex: "1 1 auto"
2640
+ },
2641
+ __self: undefined,
2642
+ __source: {
2643
+ fileName: _jsxFileName$b,
2644
+ lineNumber: 157,
2645
+ columnNumber: 13
2646
+ }
2647
+ }, /*#__PURE__*/React.createElement(Text$1, {
2648
+ __self: undefined,
2649
+ __source: {
2650
+ fileName: _jsxFileName$b,
2651
+ lineNumber: 160,
2652
+ columnNumber: 15
2653
+ }
2654
+ }, message)), onAction && /*#__PURE__*/React.createElement(Flex, {
2655
+ align: "start",
2656
+ ml: "$spacing-01",
2657
+ css: {},
2658
+ __self: undefined,
2659
+ __source: {
2660
+ fileName: _jsxFileName$b,
2661
+ lineNumber: 165,
2662
+ columnNumber: 15
2663
+ }
2664
+ }, /*#__PURE__*/React.createElement(Button, {
2665
+ buttonType: "secondary",
2666
+ onClick: () => {
2667
+ if (onAction) {
2668
+ onAction();
2669
+ }
2670
+
2671
+ close();
2672
+ },
2673
+ __self: undefined,
2674
+ __source: {
2675
+ fileName: _jsxFileName$b,
2676
+ lineNumber: 168,
2677
+ columnNumber: 17
2678
+ }
2679
+ }, actionText)))));
2680
+ };
2681
+
2682
+ Toast.displayName = 'Toast';
2683
+ Toast.propTypes = {
2684
+ id: PropTypes.string,
2685
+ message: PropTypes.string,
2686
+ dismissAfter: PropTypes.number,
2687
+ variant: PropTypes.string,
2688
+ onAction: PropTypes.func,
2689
+ actionText: PropTypes.string,
2690
+ onRemove: PropTypes.func
2691
+ };
2692
+ Toast.defaultProps = {
2693
+ dismissAfter: 5000
2694
+ };
2695
+
2696
+ const ToastContext = /*#__PURE__*/React.createContext({});
2697
+
2698
+ var _jsxFileName$a = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\toast\\ToastContainer.js";
2699
+ const ToastBox = styled(Box, {
2700
+ display: 'block',
2701
+ position: 'fixed',
2702
+ bottom: 0,
2703
+ right: 24
2704
+ });
2705
+
2706
+ const ToastContainer = ({
2707
+ toasts
2708
+ }) => {
2709
+ const {
2710
+ removeToast
2711
+ } = React.useContext(ToastContext);
2712
+ return /*#__PURE__*/React.createElement(Portal, {
2713
+ __self: undefined,
2714
+ __source: {
2715
+ fileName: _jsxFileName$a,
2716
+ lineNumber: 19,
2717
+ columnNumber: 5
2718
+ }
2719
+ }, /*#__PURE__*/React.createElement(ToastBox, {
2720
+ padding: 0,
2721
+ __self: undefined,
2722
+ __source: {
2723
+ fileName: _jsxFileName$a,
2724
+ lineNumber: 20,
2725
+ columnNumber: 7
2726
+ }
2727
+ }, toasts.map(toast => {
2728
+ console.log(toast);
2729
+ return /*#__PURE__*/React.createElement(Toast, _extends({
2730
+ key: toast.id,
2731
+ onRemove: () => removeToast(toast.id)
2732
+ }, toast, {
2733
+ __self: undefined,
2734
+ __source: {
2735
+ fileName: _jsxFileName$a,
2736
+ lineNumber: 24,
2737
+ columnNumber: 13
2738
+ }
2739
+ }));
2740
+ })));
2741
+ };
2742
+
2743
+ const _excluded$5 = ["id"];
2744
+ var _jsxFileName$9 = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\toast\\context\\ToastProvider.js";
2745
+ let toastCount = 0;
2746
+
2747
+ const ToastProvider = ({
2748
+ children
2749
+ }) => {
2750
+ const [toasts, setToasts] = React.useState([]);
2751
+
2752
+ const createToastInstance = toast => {
2753
+ const {
2754
+ id
2755
+ } = toast,
2756
+ rest = _objectWithoutPropertiesLoose(toast, _excluded$5); // eslint-disable-next-line no-plusplus
2757
+
2758
+
2759
+ const uniqueId = ++toastCount;
2760
+ const generatedId = `${id || 'toast'}-${uniqueId}`;
2761
+ return Object.assign({
2762
+ id: generatedId
2763
+ }, rest);
2764
+ };
2765
+
2766
+ const addToast = React.useCallback(toast => {
2767
+ const toastInstance = createToastInstance(toast);
2768
+ setToasts(toastItems => [toastInstance, ...toastItems]);
2769
+ return toastInstance;
2770
+ }, [setToasts]);
2771
+ const removeToast = React.useCallback(id => {
2772
+ setToasts(toastItems => toastItems.filter(t => t.id !== id));
2773
+ }, [setToasts]);
2774
+ return /*#__PURE__*/React.createElement(ToastContext.Provider, {
2775
+ value: {
2776
+ addToast,
2777
+ removeToast
2778
+ },
2779
+ __self: undefined,
2780
+ __source: {
2781
+ fileName: _jsxFileName$9,
2782
+ lineNumber: 40,
2783
+ columnNumber: 5
2784
+ }
2785
+ }, children, /*#__PURE__*/React.createElement(ToastContainer, {
2786
+ toasts: toasts,
2787
+ __self: undefined,
2788
+ __source: {
2789
+ fileName: _jsxFileName$9,
2790
+ lineNumber: 42,
2791
+ columnNumber: 7
2792
+ }
2793
+ }));
2794
+ };
2795
+
2796
+ var _jsxFileName$8 = "C:\\Project\\majoo-ui\\packages\\react\\src\\majoo-provider\\MajooProvider.js";
2797
+
2798
+ function MajooProvider({
2799
+ children,
2800
+ theme: theme$1 = theme,
2801
+ extendStyle,
2802
+ disableGlobalStyle
2803
+ }) {
2804
+ !disableGlobalStyle && applyGlobalStyles(extendStyle);
2805
+ return /*#__PURE__*/React__default.createElement(ThemeProvider, {
2806
+ theme: theme$1,
2807
+ __self: this,
2808
+ __source: {
2809
+ fileName: _jsxFileName$8,
2810
+ lineNumber: 15,
2811
+ columnNumber: 10
2812
+ }
2813
+ }, /*#__PURE__*/React__default.createElement(ToastProvider, {
2814
+ __self: this,
2815
+ __source: {
2816
+ fileName: _jsxFileName$8,
2817
+ lineNumber: 16,
2818
+ columnNumber: 5
2819
+ }
2820
+ }, children));
2821
+ }
2822
+
2823
+ MajooProvider.propTypes = {
2824
+ theme: PropTypes.object.isRequired,
2825
+ children: PropTypes.node.isRequired,
2826
+ extendStyle: PropTypes.object,
2827
+ disableGlobalStyle: PropTypes.bool
2828
+ };
2829
+
2830
+ var _jsxFileName$7 = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\alert\\AlertProvider.js";
2831
+ const StatusContext = /*#__PURE__*/createContext();
2832
+
2833
+ const AlertProvider = ({
2834
+ children
2835
+ }) => {
2836
+ const [statusAlert, setStatus] = useState();
2837
+ return /*#__PURE__*/React__default.createElement(StatusContext.Provider, {
2838
+ value: {
2839
+ statusAlert,
2840
+ setStatus
2841
+ },
2842
+ __self: undefined,
2843
+ __source: {
2844
+ fileName: _jsxFileName$7,
2845
+ lineNumber: 8,
2846
+ columnNumber: 5
2847
+ }
2848
+ }, children);
2849
+ };
2850
+
2851
+ var _jsxFileName$6 = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\alert\\Alert.js";
2852
+ const AlertStyle = styled(AlertDialog.Content, {
2853
+ backgroundColor: 'white',
2854
+ borderWidth: 0,
2855
+ borderStyle: 'solid',
2856
+ display: 'flex',
2857
+ alignItems: 'center',
2858
+ boxShadow: '$large',
2859
+ width: '90vw',
2860
+ maxHeight: '85vh',
2861
+ padding: '$spacing-05',
2862
+ '&:focus': {
2863
+ outline: 'none'
2864
+ },
2865
+ variants: {
2866
+ status: {
2867
+ success: {
2868
+ color: '$textPrimary',
2869
+ backgroundColor: '$green50'
2870
+ },
2871
+ failed: {
2872
+ color: '$textRed',
2873
+ backgroundColor: '$red50'
2874
+ },
2875
+ process: {
2876
+ color: '$textPrimary',
2877
+ backgroundColor: '$secondary50'
2878
+ },
2879
+ news: {
2880
+ color: '$textPrimary',
2881
+ backgroundColor: '$blue50'
2882
+ }
2883
+ },
2884
+ variant: {
2885
+ subtle: {},
2886
+ solid: {
2887
+ color: '$textPrimary'
2888
+ },
2889
+ 'left-accent': {
2890
+ borderInlineStartWidth: '4px'
2891
+ },
2892
+ 'top-accent': {
2893
+ borderTopWidth: '4px'
2894
+ }
2895
+ }
2896
+ },
2897
+ compoundVariants: [{
2898
+ status: 'success',
2899
+ variant: 'solid',
2900
+ css: {
2901
+ color: '$white',
2902
+ backgroundColor: '$colors$green500'
2903
+ }
2904
+ }, {
2905
+ status: 'failed',
2906
+ variant: 'solid',
2907
+ css: {
2908
+ color: '$white',
2909
+ backgroundColor: '$colors$red500'
2910
+ }
2911
+ }, {
2912
+ status: 'process',
2913
+ variant: 'solid',
2914
+ css: {
2915
+ color: '$white',
2916
+ backgroundColor: '$colors$secondary500'
2917
+ }
2918
+ }, {
2919
+ status: 'news',
2920
+ variant: 'solid',
2921
+ css: {
2922
+ color: '$white',
2923
+ backgroundColor: '$colors$blue500'
2924
+ }
2925
+ }, {
2926
+ status: 'success',
2927
+ variant: 'left-accent',
2928
+ css: {
2929
+ borderInlineStartColor: '$colors$green500'
2930
+ }
2931
+ }, {
2932
+ status: 'failed',
2933
+ variant: 'left-accent',
2934
+ css: {
2935
+ borderInlineStartColor: '$colors$red500'
2936
+ }
2937
+ }, {
2938
+ status: 'process',
2939
+ variant: 'left-accent',
2940
+ css: {
2941
+ borderInlineStartColor: '$colors$secondary500'
2942
+ }
2943
+ }, {
2944
+ status: 'news',
2945
+ variant: 'left-accent',
2946
+ css: {
2947
+ borderInlineStartColor: '$colors$blue500'
2948
+ }
2949
+ }, {
2950
+ status: 'success',
2951
+ variant: 'top-accent',
2952
+ css: {
2953
+ borderTopColor: '$colors$green500'
2954
+ }
2955
+ }, {
2956
+ status: 'failed',
2957
+ variant: 'top-accent',
2958
+ css: {
2959
+ borderTopColor: '$colors$red500'
2960
+ }
2961
+ }, {
2962
+ status: 'process',
2963
+ variant: 'top-accent',
2964
+ css: {
2965
+ borderTopColor: '$colors$secondary500'
2966
+ }
2967
+ }, {
2968
+ status: 'news',
2969
+ variant: 'top-accent',
2970
+ css: {
2971
+ borderTopColor: '$colors$blue500'
2972
+ }
2973
+ }],
2974
+ defaultVariants: {
2975
+ status: 'success',
2976
+ variant: 'subtle'
2977
+ }
2978
+ });
2979
+ const AlertTitle = styled(AlertDialog.Title, {
2980
+ fontWeight: 'bold',
2981
+ fontSize: '$section-title'
2982
+ });
2983
+ const AlertDescription = styled(AlertDialog.Description, {
2984
+ fontSize: '$section-sub-title'
2985
+ });
2986
+ const AlertBase = props => {
2987
+ return /*#__PURE__*/React__default.createElement(AlertProvider, {
2988
+ __self: undefined,
2989
+ __source: {
2990
+ fileName: _jsxFileName$6,
2991
+ lineNumber: 158,
2992
+ columnNumber: 5
2993
+ }
2994
+ }, /*#__PURE__*/React__default.createElement(AlertDialog.Root, {
2995
+ defaultOpen: true,
2996
+ __self: undefined,
2997
+ __source: {
2998
+ fileName: _jsxFileName$6,
2999
+ lineNumber: 159,
3000
+ columnNumber: 7
3001
+ }
3002
+ }, /*#__PURE__*/React__default.createElement(AlertContent, _extends({}, props, {
3003
+ __self: undefined,
3004
+ __source: {
3005
+ fileName: _jsxFileName$6,
3006
+ lineNumber: 160,
3007
+ columnNumber: 9
3008
+ }
3009
+ }), props.children)));
3010
+ };
3011
+ const AlertContent = props => {
3012
+ const {
3013
+ setStatus
3014
+ } = useContext(StatusContext);
3015
+ useEffect(() => {
3016
+ setStatus(props.status);
3017
+ });
3018
+ return /*#__PURE__*/React__default.createElement(AlertStyle, _extends({}, props, {
3019
+ __self: undefined,
3020
+ __source: {
3021
+ fileName: _jsxFileName$6,
3022
+ lineNumber: 171,
3023
+ columnNumber: 10
3024
+ }
3025
+ }));
3026
+ };
3027
+ const AlertIconStyle = styled('div', {});
3028
+ const AlertIconBase = props => {
3029
+ const {
3030
+ statusAlert
3031
+ } = useContext(StatusContext);
3032
+
3033
+ const Icon = statusAlert => {
3034
+ switch (statusAlert) {
3035
+ case 'success':
3036
+ return /*#__PURE__*/React__default.createElement("span", {
3037
+ __self: undefined,
3038
+ __source: {
3039
+ fileName: _jsxFileName$6,
3040
+ lineNumber: 180,
3041
+ columnNumber: 16
3042
+ }
3043
+ }, "\u2714");
3044
+
3045
+ case 'failed':
3046
+ return /*#__PURE__*/React__default.createElement("span", {
3047
+ __self: undefined,
3048
+ __source: {
3049
+ fileName: _jsxFileName$6,
3050
+ lineNumber: 182,
3051
+ columnNumber: 16
3052
+ }
3053
+ }, "\u274C");
3054
+
3055
+ case 'news':
3056
+ return /*#__PURE__*/React__default.createElement("span", {
3057
+ __self: undefined,
3058
+ __source: {
3059
+ fileName: _jsxFileName$6,
3060
+ lineNumber: 184,
3061
+ columnNumber: 16
3062
+ }
3063
+ }, "\u2139");
3064
+
3065
+ case 'process':
3066
+ return /*#__PURE__*/React__default.createElement("span", {
3067
+ __self: undefined,
3068
+ __source: {
3069
+ fileName: _jsxFileName$6,
3070
+ lineNumber: 186,
3071
+ columnNumber: 16
3072
+ }
3073
+ }, "\u26A0");
3074
+
3075
+ default:
3076
+ return /*#__PURE__*/React__default.createElement("span", {
3077
+ __self: undefined,
3078
+ __source: {
3079
+ fileName: _jsxFileName$6,
3080
+ lineNumber: 188,
3081
+ columnNumber: 16
3082
+ }
3083
+ }, "\u2714");
3084
+ }
3085
+ };
3086
+
3087
+ return /*#__PURE__*/React__default.createElement(AlertIconStyle, _extends({}, props, {
3088
+ __self: undefined,
3089
+ __source: {
3090
+ fileName: _jsxFileName$6,
3091
+ lineNumber: 191,
3092
+ columnNumber: 10
3093
+ }
3094
+ }), Icon(statusAlert));
3095
+ };
3096
+ const AlertCloseTrigger = styled(AlertDialog.Cancel, {});
3097
+ AlertStyle.propTypes = {
3098
+ status: PropTypes.oneOf(['success', 'failed', 'process', 'news']),
3099
+ variant: PropTypes.oneOf(['subtle', 'solid', 'left-accent', 'top-accent'])
3100
+ };
3101
+ AlertStyle.defaultProps = {
3102
+ status: 'success',
3103
+ variant: 'subtle'
3104
+ };
3105
+
3106
+ const AlertIcon = props => {
3107
+ return jsx(AlertIconBase, Object.assign({}, props), void 0);
3108
+ };
3109
+ const Alert = props => {
3110
+ return jsx(AlertBase, Object.assign({}, props), void 0);
3111
+ };
3112
+ AlertDescription.displayName = 'AlertDescription';
3113
+ AlertTitle.displayName = 'AlertTitle';
3114
+ AlertCloseTrigger.displayName = 'AlertCloseTrigger';
3115
+
3116
+ var _jsxFileName$5 = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\card\\Card.js";
3117
+ const StyledTitle = styled('div', {
3118
+ paddingBottom: "10px",
3119
+ marginBottom: "10px",
3120
+ fontWeight: 600,
3121
+ borderBottom: '1px solid $bgBorder',
3122
+ fontSize: '18px'
3123
+ });
3124
+ const CardComponent = styled('div', {
3125
+ margin: '10px',
3126
+ padding: '20px',
3127
+ height: 'auto',
3128
+ $$shadowColor: '$colors$gray200',
3129
+ boxShadow: '0px 4px 16px $$shadowColor',
3130
+ backgroundColor: '$white',
3131
+ borderRadius: '$lg'
3132
+ });
3133
+ const Card = ({
3134
+ className,
3135
+ children,
3136
+ color,
3137
+ radius,
3138
+ padding,
3139
+ title,
3140
+ background,
3141
+ width,
3142
+ textColor
3143
+ }) => {
3144
+ return /*#__PURE__*/React__default.createElement(CardComponent, {
3145
+ className: className,
3146
+ css: {
3147
+ width: width,
3148
+ borderRadius: '$' + radius,
3149
+ padding: padding,
3150
+ background: background,
3151
+ backgroundColor: '$' + color,
3152
+ color: '$' + textColor
3153
+ },
3154
+ __self: undefined,
3155
+ __source: {
3156
+ fileName: _jsxFileName$5,
3157
+ lineNumber: 25,
3158
+ columnNumber: 5
3159
+ }
3160
+ }, title !== '' ? /*#__PURE__*/React__default.createElement(StyledTitle, {
3161
+ __self: undefined,
3162
+ __source: {
3163
+ fileName: _jsxFileName$5,
3164
+ lineNumber: 27,
3165
+ columnNumber: 9
3166
+ }
3167
+ }, title) : null, children);
3168
+ };
3169
+ Card.propTypes = {
3170
+ className: PropTypes.string,
3171
+ color: PropTypes.string,
3172
+ textColor: PropTypes.string,
3173
+ radius: PropTypes.string,
3174
+ padding: PropTypes.string,
3175
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.element, PropTypes.node]),
3176
+ background: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3177
+ width: PropTypes.string
3178
+ };
3179
+ Card.defaultProps = {
3180
+ className: '',
3181
+ color: 'white',
3182
+ radius: 'lg',
3183
+ padding: '20px',
3184
+ title: '',
3185
+ background: {}
3186
+ };
3187
+
3188
+ const Text = styled('p', {
3189
+ variants: {
3190
+ variant: {
3191
+ link: {
3192
+ fontSize: '$link',
3193
+ lineHeight: '$link',
3194
+ letterSpacing: '$link',
3195
+ fontWeight: '400'
3196
+ },
3197
+ contentButton: {
3198
+ fontSize: '$content-button',
3199
+ lineHeight: '$content-button',
3200
+ letterSpacing: '$content-button',
3201
+ fontWeight: '600'
3202
+ },
3203
+ placeholder: {
3204
+ fontSize: '$placeholder',
3205
+ lineHeight: '$placeholder',
3206
+ letterSpacing: '$placeholder',
3207
+ fontWeight: '400'
3208
+ },
3209
+ breadcrumb: {
3210
+ fontSize: '$breadcrumb',
3211
+ lineHeight: '$breadcrumb',
3212
+ letterSpacing: '$breadcrumb',
3213
+ fontWeight: '500'
3214
+ },
3215
+ label: {
3216
+ fontSize: '$label',
3217
+ lineHeight: '$label',
3218
+ letterSpacing: '$label',
3219
+ fontWeight: '500'
3220
+ },
3221
+ status: {
3222
+ fontSize: '$status',
3223
+ lineHeight: '$status',
3224
+ letterSpacing: '$status',
3225
+ fontWeight: '600'
3226
+ },
3227
+ helper: {
3228
+ fontSize: '$helper',
3229
+ lineHeight: '$helper',
3230
+ letterSpacing: '$helper',
3231
+ fontWeight: '400'
3232
+ },
3233
+ caption: {
3234
+ fontSize: '$caption',
3235
+ lineHeight: '$caption',
3236
+ letterSpacing: '$caption',
3237
+ fontWeight: '400'
3238
+ }
3239
+ },
3240
+ color: {
3241
+ primary: {
3242
+ color: '$textPrimary'
3243
+ },
3244
+ secondary: {
3245
+ color: '$textSecondary'
3246
+ },
3247
+ disable: {
3248
+ color: '$textDisable'
3249
+ },
3250
+ green: {
3251
+ color: '$textGreen'
3252
+ },
3253
+ red: {
3254
+ color: '$textRed'
3255
+ }
3256
+ },
3257
+ uppercase: {
3258
+ true: {
3259
+ textTransform: 'uppercase'
3260
+ }
3261
+ },
3262
+ isTruncated: {
3263
+ true: {
3264
+ textOverflow: 'ellipsis',
3265
+ overflow: 'hidden',
3266
+ whiteSpace: 'nowrap'
3267
+ }
3268
+ }
3269
+ },
3270
+ defaultVariants: {
3271
+ variant: 'label',
3272
+ as: 'p'
3273
+ }
3274
+ });
3275
+ const TextVariantsEnum = ['link', 'contentButton', 'placeholder', 'breadcrumb', 'label', 'status', 'helper', 'caption'];
3276
+ Text.propTypes = {
3277
+ variant: PropTypes.oneOf(TextVariantsEnum),
3278
+ uppercase: PropTypes.bool,
3279
+ isTruncated: PropTypes.bool
3280
+ };
3281
+ Text.defaultProps = {
3282
+ variant: 'label',
3283
+ as: 'p'
3284
+ };
3285
+
3286
+ Text.displayName = 'Text';
3287
+
3288
+ const Heading = styled(Text, {
3289
+ variants: {
3290
+ heading: {
3291
+ h1: {
3292
+ fontSize: '$heading-1',
3293
+ lineHeight: '$heading-1',
3294
+ letterSpacing: '$heading-1',
3295
+ fontWeight: 'bold'
3296
+ },
3297
+ h2: {
3298
+ fontSize: '$heading-2',
3299
+ lineHeight: '$heading-2',
3300
+ letterSpacing: '$heading-2',
3301
+ fontWeight: '600'
3302
+ },
3303
+ h3: {
3304
+ fontSize: '$heading-3',
3305
+ lineHeight: '$heading-3',
3306
+ letterSpacing: '$heading-3',
3307
+ fontWeight: '600'
3308
+ },
3309
+ pageTitle: {
3310
+ fontSize: '$page-title',
3311
+ lineHeight: '$page-title',
3312
+ letterSpacing: '$page-title',
3313
+ fontWeight: '600'
3314
+ },
3315
+ sectionTitle: {
3316
+ fontSize: '$section-title',
3317
+ lineHeight: '$section-title',
3318
+ letterSpacing: '$section-title',
3319
+ fontWeight: '600'
3320
+ },
3321
+ sectionSubTitle: {
3322
+ fontSize: '$section-sub-title',
3323
+ lineHeight: '$section-sub-title',
3324
+ letterSpacing: '$section-sub-title',
3325
+ fontWeight: '600'
3326
+ },
3327
+ headerTabs: {
3328
+ fontSize: '$header-tabs',
3329
+ lineHeight: '$header-tabs',
3330
+ letterSpacing: '$header-tabs',
3331
+ fontWeight: '500'
3332
+ },
3333
+ headerTable: {
3334
+ fontSize: '$header-table',
3335
+ lineHeight: '$header-table',
3336
+ letterSpacing: '$header-table',
3337
+ fontWeight: '600'
3338
+ }
3339
+ }
3340
+ },
3341
+ defaultVariants: {
3342
+ color: 'primary',
3343
+ heading: 'h1',
3344
+ as: 'h1'
3345
+ }
3346
+ });
3347
+ Heading.propTypes = {
3348
+ uppercase: PropTypes.bool,
3349
+ isTruncated: PropTypes.bool,
3350
+ heading: PropTypes.oneOf(['h1', 'h2', 'h3', 'pageTitle', 'sectionTitle', 'sectionSubTitle', 'headerTabs', 'headerTable']),
3351
+ color: PropTypes.oneOf(['primary', 'secondary', 'disable', 'green', 'red'])
3352
+ };
3353
+ Heading.defaultProps = {
3354
+ color: 'primary',
3355
+ heading: 'h1',
3356
+ as: 'h1'
3357
+ };
3358
+
3359
+ Heading.displayName = "Heading";
3360
+
3361
+ const Paragraph = styled(Text, {
3362
+ variants: {
3363
+ paragraph: {
3364
+ shortContentBold: {
3365
+ fontSize: '$short-content-bold',
3366
+ lineHeight: '$short-content-bold',
3367
+ letterSpacing: '$short-content-bold',
3368
+ fontWeight: '600',
3369
+ color: '$textSecondary'
3370
+ },
3371
+ shortContentRegular: {
3372
+ fontSize: '$short-content-regular',
3373
+ lineHeight: '$short-content-regular',
3374
+ letterSpacing: '$short-content-regular',
3375
+ fontWeight: '400',
3376
+ color: '$textSecondary'
3377
+ },
3378
+ longContentRegular: {
3379
+ fontSize: '$long-content-regular',
3380
+ lineHeight: '$long-content-regular',
3381
+ letterSpacing: '$long-content-regular',
3382
+ fontWeight: '400',
3383
+ color: '$textSecondary'
3384
+ }
3385
+ }
3386
+ },
3387
+ defaultVariants: {
3388
+ paragraph: 'shortContentRegular',
3389
+ as: 'p'
3390
+ }
3391
+ });
3392
+ Paragraph.propTypes = {
3393
+ paragraph: PropTypes.oneOf(['shortContentBold', 'shortContentRegular', 'longContentRegular']),
3394
+ uppercase: PropTypes.bool,
3395
+ isTruncated: PropTypes.bool
3396
+ };
3397
+ Paragraph.defaultProps = {
3398
+ paragraph: 'shortContentRegular',
3399
+ as: 'p'
3400
+ };
3401
+
3402
+ Paragraph.displayName = 'Paragraph';
3403
+
3404
+ /*! *****************************************************************************
3405
+ Copyright (c) Microsoft Corporation.
3406
+
3407
+ Permission to use, copy, modify, and/or distribute this software for any
3408
+ purpose with or without fee is hereby granted.
3409
+
3410
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3411
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3412
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3413
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3414
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3415
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3416
+ PERFORMANCE OF THIS SOFTWARE.
3417
+ ***************************************************************************** */
3418
+
3419
+ function __rest(s, e) {
3420
+ var t = {};
3421
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3422
+ t[p] = s[p];
3423
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
3424
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3425
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3426
+ t[p[i]] = s[p[i]];
3427
+ }
3428
+ return t;
3429
+ }
3430
+
3431
+ const _excluded$4 = ["children"];
3432
+ var _jsxFileName$4 = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\breadcrumb\\Breadcrumb.js";
3433
+ const BreadcrumbStyle = styled('nav', {
3434
+ wordWrap: 'break-word',
3435
+ '& li+li:before': {
3436
+ marginInline: '0.5rem',
3437
+ content: '/',
3438
+ fontSize: 12,
3439
+ color: '$textGreen'
3440
+ },
3441
+ '& li:last-child:before': {
3442
+ color: '$textSecondary'
3443
+ }
3444
+ });
3445
+ const Ol = styled('ol', {
3446
+ margin: 0,
3447
+ padding: 0
3448
+ });
3449
+ const BreadcrumbItem = styled('li', {
3450
+ display: 'inline-flex',
3451
+ alignItems: 'center'
3452
+ });
3453
+ const BreadcrumbLinkStyle = styled(Text, {
3454
+ '&:hover': {
3455
+ textDecoration: 'underline'
3456
+ },
3457
+ color: '$textGreen',
3458
+ variants: {
3459
+ isCurrentPage: {
3460
+ true: {
3461
+ color: '$textSecondary'
3462
+ }
3463
+ }
3464
+ }
3465
+ });
3466
+ BreadcrumbLinkStyle.defaultProps = {
3467
+ variant: 'breadcrumb',
3468
+ as: 'a'
3469
+ };
3470
+
3471
+ const BreadcrumbLinkBase = props => {
3472
+ const aria = props.isCurrentPage && {
3473
+ 'aria-current': 'page'
3474
+ };
3475
+ return /*#__PURE__*/React__default.createElement(BreadcrumbLinkStyle, _extends({}, props, aria, {
3476
+ __self: undefined,
3477
+ __source: {
3478
+ fileName: _jsxFileName$4,
3479
+ lineNumber: 42,
3480
+ columnNumber: 10
3481
+ }
3482
+ }));
3483
+ };
3484
+
3485
+ const BreadcrumbBase = _ref => {
3486
+ let {
3487
+ children
3488
+ } = _ref,
3489
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3490
+
3491
+ return /*#__PURE__*/React__default.createElement(BreadcrumbStyle, _extends({}, rest, {
3492
+ "aria-label": "breadcrumb",
3493
+ __self: undefined,
3494
+ __source: {
3495
+ fileName: _jsxFileName$4,
3496
+ lineNumber: 47,
3497
+ columnNumber: 5
3498
+ }
3499
+ }), /*#__PURE__*/React__default.createElement(Ol, {
3500
+ __self: undefined,
3501
+ __source: {
3502
+ fileName: _jsxFileName$4,
3503
+ lineNumber: 48,
3504
+ columnNumber: 7
3505
+ }
3506
+ }, children));
3507
+ };
3508
+
3509
+ const Breadcrumb = _a => {
3510
+ var {
3511
+ children
3512
+ } = _a,
3513
+ rest = __rest(_a, ["children"]);
3514
+
3515
+ return jsx(BreadcrumbBase, Object.assign({}, rest, {
3516
+ children: children
3517
+ }), void 0);
3518
+ };
3519
+
3520
+ const BreadcrumbLink = props => {
3521
+ return jsx(BreadcrumbLinkBase, Object.assign({}, props), void 0);
3522
+ };
3523
+
3524
+ const Badge = styled(Text, {
3525
+ // Reset
3526
+ alignItems: 'center',
3527
+ appearance: 'none',
3528
+ borderWidth: '0',
3529
+ boxSizing: 'border-box',
3530
+ display: 'inline-flex',
3531
+ flexShrink: 0,
3532
+ fontFamily: 'inherit',
3533
+ fontSize: '$caption',
3534
+ justifyContent: 'center',
3535
+ lineHeight: '1',
3536
+ verticalAlign: 'middle',
3537
+ outline: 'none',
3538
+ padding: '$spacing-01 $spacing-02',
3539
+ textDecoration: 'none',
3540
+ userSelect: 'none',
3541
+ WebkitTapHighlightColor: 'rgba(0,0,0,0)',
3542
+ '&:disabled': {
3543
+ backgroundColor: '$btnDisable',
3544
+ pointerEvents: 'none',
3545
+ color: '$textDisable'
3546
+ },
3547
+ '&::before': {
3548
+ boxSizing: 'border-box',
3549
+ content: '""'
3550
+ },
3551
+ '&::after': {
3552
+ boxSizing: 'border-box',
3553
+ content: '""'
3554
+ },
3555
+ // Custom
3556
+ borderRadius: '$md',
3557
+ color: '$textPrimary',
3558
+ whiteSpace: 'nowrap',
3559
+ fontVariantNumeric: 'tabular-nums',
3560
+ backgroundColor: '$btnDisable',
3561
+ variants: {
3562
+ outline: {
3563
+ true: {
3564
+ backgroundColor: 'transparent',
3565
+ border: '1px solid Black'
3566
+ }
3567
+ }
3568
+ }
3569
+ });
3570
+ Badge.defaultProps = {
3571
+ as: 'span'
3572
+ };
3573
+
3574
+ Badge.displayName = 'Badge';
3575
+
3576
+ const _excluded$3 = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3577
+ var _jsxFileName$3 = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\avatar\\Avatar.js";
3578
+ const StyledAvatar = styled(AvatarPrimitive.Root, {
3579
+ margin: '2px',
3580
+ width: '32px',
3581
+ height: '32px',
3582
+ borderRadius: '100%',
3583
+ backgroundColor: '$bgGray',
3584
+ display: 'inline-flex',
3585
+ alignItems: 'center',
3586
+ justifyContent: 'center',
3587
+ verticalAlign: 'middle',
3588
+ overflow: 'hidden',
3589
+ userSelect: 'none'
3590
+ });
3591
+ const StyledImage$1 = styled(AvatarPrimitive.Image, {
3592
+ width: '100%',
3593
+ height: '100%',
3594
+ objectFit: 'cover',
3595
+ borderRadius: 'inherit'
3596
+ });
3597
+ const StyledFallback = styled(AvatarPrimitive.Fallback, {
3598
+ width: '100%',
3599
+ height: '100%',
3600
+ display: 'flex',
3601
+ alignItems: 'center',
3602
+ justifyContent: 'center',
3603
+ backgroundColor: '$bgGreen',
3604
+ color: '$textWhite',
3605
+ fontSize: '$label',
3606
+ lineHeight: 1,
3607
+ fontWeight: 600
3608
+ });
3609
+ function Avatar(_ref) {
3610
+ let {
3611
+ className,
3612
+ img,
3613
+ children,
3614
+ onLoadingStatusChange,
3615
+ delayMs,
3616
+ onClick,
3617
+ css
3618
+ } = _ref,
3619
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3620
+
3621
+ return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends({
3622
+ className: className,
3623
+ onClick: onClick,
3624
+ css: Object.assign({}, css)
3625
+ }, props, {
3626
+ __self: this,
3627
+ __source: {
3628
+ fileName: _jsxFileName$3,
3629
+ lineNumber: 42,
3630
+ columnNumber: 9
3631
+ }
3632
+ }), img !== "" ? /*#__PURE__*/React__default.createElement(StyledImage$1, {
3633
+ src: img,
3634
+ alt: "images",
3635
+ onLoadingStatusChange: onLoadingStatusChange,
3636
+ __self: this,
3637
+ __source: {
3638
+ fileName: _jsxFileName$3,
3639
+ lineNumber: 44,
3640
+ columnNumber: 15
3641
+ }
3642
+ }) : null, /*#__PURE__*/React__default.createElement(StyledFallback, {
3643
+ delayMs: delayMs,
3644
+ css: Object.assign({}, css),
3645
+ __self: this,
3646
+ __source: {
3647
+ fileName: _jsxFileName$3,
3648
+ lineNumber: 46,
3649
+ columnNumber: 13
3650
+ }
3651
+ }, children));
3652
+ }
3653
+ Avatar.propTypes = {
3654
+ className: PropTypes.string,
3655
+ img: PropTypes.string,
3656
+ onLoadingStatusChange: PropTypes.func,
3657
+ delayMs: PropTypes.number,
3658
+ onClick: PropTypes.func
3659
+ };
3660
+ Avatar.defaultProps = {
3661
+ delayMs: 0
3662
+ };
3663
+
3664
+ const _excluded$2 = ["className", "src", "alt", "width", "height", "objectFit", "fallback"];
3665
+ var _jsxFileName$2 = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\image\\Image.js";
3666
+ const StyledImage = styled('img', {
3667
+ margin: '5px',
3668
+ display: 'inline-block',
3669
+ alignItems: 'center',
3670
+ justifyContent: 'center',
3671
+ variants: {
3672
+ rounded: {
3673
+ true: {
3674
+ borderRadius: '100%'
3675
+ }
3676
+ }
3677
+ }
3678
+ });
3679
+ function Image(_ref) {
3680
+ let {
3681
+ className,
3682
+ src,
3683
+ alt,
3684
+ width,
3685
+ height,
3686
+ objectFit,
3687
+ fallback
3688
+ } = _ref,
3689
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
3690
+
3691
+ return /*#__PURE__*/React__default.createElement(StyledImage, _extends({
3692
+ className: className,
3693
+ src: src,
3694
+ alt: alt,
3695
+ width: width,
3696
+ height: height,
3697
+ srcset: fallback,
3698
+ css: Object.assign({
3699
+ objectFit: objectFit
3700
+ }, props.css)
3701
+ }, props, {
3702
+ __self: this,
3703
+ __source: {
3704
+ fileName: _jsxFileName$2,
3705
+ lineNumber: 21,
3706
+ columnNumber: 9
3707
+ }
3708
+ }));
3709
+ }
3710
+ Image.propTypes = {
3711
+ className: PropTypes.string,
3712
+ src: PropTypes.string,
3713
+ alt: PropTypes.string,
3714
+ width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3715
+ height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3716
+ rounded: PropTypes.bool,
3717
+ objectFit: PropTypes.string,
3718
+ fallback: PropTypes.string
3719
+ };
3720
+ Image.defaultProps = {
3721
+ rounded: false
3722
+ };
3723
+
3724
+ const _excluded$1 = ["children", "label", "color", "contentCss", "withClick"];
3725
+ var _jsxFileName$1 = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\tooltip\\Tooltip.js";
3726
+ const slideUpAndFade = keyframes({
3727
+ '0%': {
3728
+ opacity: 0,
3729
+ transform: 'translateY(2px)'
3730
+ },
3731
+ '100%': {
3732
+ opacity: 1,
3733
+ transform: 'translateY(0)'
3734
+ }
3735
+ });
3736
+ const slideRightAndFade = keyframes({
3737
+ '0%': {
3738
+ opacity: 0,
3739
+ transform: 'translateX(-2px)'
3740
+ },
3741
+ '100%': {
3742
+ opacity: 1,
3743
+ transform: 'translateX(0)'
3744
+ }
3745
+ });
3746
+ const slideDownAndFade = keyframes({
3747
+ '0%': {
3748
+ opacity: 0,
3749
+ transform: 'translateY(-2px)'
3750
+ },
3751
+ '100%': {
3752
+ opacity: 1,
3753
+ transform: 'translateY(0)'
3754
+ }
3755
+ });
3756
+ const slideLeftAndFade = keyframes({
3757
+ '0%': {
3758
+ opacity: 0,
3759
+ transform: 'translateX(2px)'
3760
+ },
3761
+ '100%': {
3762
+ opacity: 1,
3763
+ transform: 'translateX(0)'
3764
+ }
3765
+ });
3766
+ const StyledContent = styled(TooltipPrimitive.Content, {
3767
+ borderRadius: 4,
3768
+ padding: '10px 12px',
3769
+ fontSize: '$helper',
3770
+ letterSpacing: '$helper',
3771
+ lineHeight: '$helper',
3772
+ fontWeight: '400',
3773
+ backgroundColor: '$white',
3774
+ boxShadow: '$large',
3775
+ '@media (prefers-reduced-motion: no-preference)': {
3776
+ animationDuration: '400ms',
3777
+ animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
3778
+ animationFillMode: 'forwards',
3779
+ willChange: 'transform, opacity',
3780
+ '&[data-state="delayed-open"]': {
3781
+ '&[data-side="top"]': {
3782
+ animationName: slideDownAndFade
3783
+ },
3784
+ '&[data-side="right"]': {
3785
+ animationName: slideLeftAndFade
3786
+ },
3787
+ '&[data-side="bottom"]': {
3788
+ animationName: slideUpAndFade
3789
+ },
3790
+ '&[data-side="left"]': {
3791
+ animationName: slideRightAndFade
3792
+ }
3793
+ }
3794
+ }
3795
+ });
3796
+ const StyledArrow = styled(TooltipPrimitive.Arrow, {
3797
+ boxShadow: '$large'
3798
+ });
3799
+ const TooltipBase = styled(TooltipPrimitive.Root, {
3800
+ defaultVariants: {
3801
+ color: 'ligth'
3802
+ }
3803
+ }); // Exports
3804
+ const TooltipTrigger = TooltipPrimitive.Trigger;
3805
+ const dark = {
3806
+ color: foundations.colors.white,
3807
+ backgroundColor: foundations.colors.gray800
3808
+ };
3809
+ const ligth = {
3810
+ color: foundations.colors.textPrimary,
3811
+ backgroundColor: foundations.colors.bgWhite
3812
+ };
3813
+ const darkArrow = {
3814
+ fill: foundations.colors.gray800
3815
+ };
3816
+ const lightArrow = {
3817
+ fill: foundations.colors.bgWhite
3818
+ };
3819
+
3820
+ const Tooltip = _ref => {
3821
+ let {
3822
+ children,
3823
+ label,
3824
+ color,
3825
+ withClick
3826
+ } = _ref,
3827
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
3828
+
3829
+ const [open, setOpen] = useState(false);
3830
+ return /*#__PURE__*/React__default.createElement(TooltipBase, _extends({}, rest, {
3831
+ open: withClick ? open : undefined,
3832
+ __self: undefined,
3833
+ __source: {
3834
+ fileName: _jsxFileName$1,
3835
+ lineNumber: 85,
3836
+ columnNumber: 5
3837
+ }
3838
+ }), /*#__PURE__*/React__default.createElement(TooltipTrigger, {
3839
+ asChild: true,
3840
+ __self: undefined,
3841
+ __source: {
3842
+ fileName: _jsxFileName$1,
3843
+ lineNumber: 86,
3844
+ columnNumber: 7
3845
+ }
3846
+ }, /*#__PURE__*/React__default.createElement("span", {
3847
+ onClick: () => withClick ? setOpen(!open) : undefined,
3848
+ __self: undefined,
3849
+ __source: {
3850
+ fileName: _jsxFileName$1,
3851
+ lineNumber: 87,
3852
+ columnNumber: 9
3853
+ }
3854
+ }, children)), /*#__PURE__*/React__default.createElement(StyledContent, {
3855
+ sideOffset: 5,
3856
+ css: color === 'dark' ? dark : ligth,
3857
+ __self: undefined,
3858
+ __source: {
3859
+ fileName: _jsxFileName$1,
3860
+ lineNumber: 89,
3861
+ columnNumber: 7
3862
+ }
3863
+ }, label, /*#__PURE__*/React__default.createElement(StyledArrow, {
3864
+ css: color === 'dark' ? darkArrow : lightArrow,
3865
+ __self: undefined,
3866
+ __source: {
3867
+ fileName: _jsxFileName$1,
3868
+ lineNumber: 91,
3869
+ columnNumber: 9
3870
+ }
3871
+ })));
3872
+ };
3873
+
3874
+ Tooltip.propTypes = {
3875
+ children: PropTypes.node,
3876
+ label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
3877
+ color: PropTypes.string
3878
+ };
3879
+ Tooltip.defaultProps = {
3880
+ color: 'light'
3881
+ };
3882
+
3883
+ const _excluded = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
3884
+ var _jsxFileName = "C:\\Project\\majoo-ui\\packages\\react\\src\\components\\progress\\Progress.js";
3885
+ const StyledProgress = styled$1(ProgressPrimitive.Root, {
3886
+ position: 'relative',
3887
+ overflow: 'hidden',
3888
+ background: '$chartLightGreen',
3889
+ width: 'auto',
3890
+ height: '12px',
3891
+ margin: '$spacing-04',
3892
+ variants: {
3893
+ rounded: {
3894
+ true: {
3895
+ borderRadius: '100px'
3896
+ }
3897
+ },
3898
+ color: {
3899
+ green: {
3900
+ backgroundColor: '$chartLightGreen'
3901
+ },
3902
+ orange: {
3903
+ backgroundColor: '$chartLightOrange'
3904
+ },
3905
+ blue: {
3906
+ backgroundColor: '$chartLightBlue'
3907
+ },
3908
+ purple: {
3909
+ backgroundColor: '$chartLightPurple'
3910
+ },
3911
+ yellow: {
3912
+ backgroundColor: '$chartLightYellow'
3913
+ },
3914
+ red: {
3915
+ backgroundColor: '$chartLightRed'
3916
+ },
3917
+ dark: {
3918
+ backgroundColor: '$chartLightGray'
3919
+ }
3920
+ },
3921
+ size: {
3922
+ xs: {
3923
+ height: '4px'
3924
+ },
3925
+ sm: {
3926
+ height: '8px'
3927
+ },
3928
+ m: {
3929
+ height: '12px'
3930
+ },
3931
+ l: {
3932
+ height: '16px'
3933
+ },
3934
+ xl: {
3935
+ height: '20px'
3936
+ }
3937
+ }
3938
+ }
3939
+ });
3940
+ const StyledIndicator = styled$1(ProgressPrimitive.Indicator, {
3941
+ backgroundColor: '$chartGreen',
3942
+ height: '60%',
3943
+ transition: 'width 660ms cubic-bezier(0.65, 0, 0.35, 1)',
3944
+ variants: {
3945
+ rounded: {
3946
+ true: {
3947
+ borderRadius: '100px'
3948
+ }
3949
+ },
3950
+ color: {
3951
+ green: {
3952
+ backgroundColor: '$chartGreen'
3953
+ },
3954
+ orange: {
3955
+ backgroundColor: '$chartOrange'
3956
+ },
3957
+ blue: {
3958
+ backgroundColor: '$chartBlue'
3959
+ },
3960
+ purple: {
3961
+ backgroundColor: '$chartPurple'
3962
+ },
3963
+ yellow: {
3964
+ backgroundColor: '$chartYellow'
3965
+ },
3966
+ red: {
3967
+ backgroundColor: '$chartRed'
3968
+ },
3969
+ dark: {
3970
+ backgroundColor: '$chartDark'
3971
+ }
3972
+ },
3973
+ size: {
3974
+ xs: {
3975
+ height: '100%'
3976
+ },
3977
+ sm: {
3978
+ height: '100%'
3979
+ },
3980
+ m: {
3981
+ margin: "2px 2px 0"
3982
+ },
3983
+ l: {
3984
+ margin: "3px 3px 0"
3985
+ },
3986
+ xl: {
3987
+ margin: "4px 4px 0"
3988
+ }
3989
+ }
3990
+ }
3991
+ });
3992
+ function Progress(_ref) {
3993
+ let {
3994
+ className,
3995
+ value,
3996
+ max,
3997
+ getValueLabel,
3998
+ color,
3999
+ size,
4000
+ rounded,
4001
+ width
4002
+ } = _ref,
4003
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
4004
+
4005
+ return /*#__PURE__*/React__default.createElement(StyledProgress, _extends({
4006
+ className: className,
4007
+ value: value,
4008
+ max: max,
4009
+ getValueLabel: getValueLabel,
4010
+ color: color,
4011
+ size: size,
4012
+ rounded: rounded,
4013
+ css: Object.assign({
4014
+ width: width
4015
+ }, props.css)
4016
+ }, props, {
4017
+ __self: this,
4018
+ __source: {
4019
+ fileName: _jsxFileName,
4020
+ lineNumber: 89,
4021
+ columnNumber: 5
4022
+ }
4023
+ }), /*#__PURE__*/React__default.createElement(StyledIndicator, {
4024
+ color: color,
4025
+ size: size,
4026
+ rounded: rounded,
4027
+ css: Object.assign({
4028
+ width: `${value}%`
4029
+ }, props.css),
4030
+ __self: this,
4031
+ __source: {
4032
+ fileName: _jsxFileName,
4033
+ lineNumber: 90,
4034
+ columnNumber: 7
4035
+ }
4036
+ }));
4037
+ }
4038
+ Progress.propTypes = {
4039
+ className: PropTypes.string,
4040
+ value: PropTypes.number,
4041
+ max: PropTypes.number,
4042
+ getValueLabel: PropTypes.func,
4043
+ color: PropTypes.string,
4044
+ size: PropTypes.string,
4045
+ rounded: PropTypes.bool,
4046
+ width: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
4047
+ };
4048
+ Progress.defaultProps = {
4049
+ max: 100,
4050
+ color: 'green',
4051
+ size: 'm',
4052
+ rounded: true
4053
+ };
4054
+
4055
+ export { Alert, AlertCloseTrigger, AlertDescription, AlertIcon, AlertTitle, Avatar, Badge, Box, BoxComponent, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, Card, CardComponent, Flex, Grid, GridItem, Heading, Image, MajooProvider, Paragraph, Progress, StyledTitle, Text, ToastContext, Tooltip };