ctc-component-library 0.0.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.
@@ -0,0 +1,732 @@
1
+ import je from "react";
2
+ const sr = "", pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
+ __proto__: null,
4
+ default: sr
5
+ }, Symbol.toStringTag, { value: "Module" })), fr = "", br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
+ __proto__: null,
7
+ default: fr
8
+ }, Symbol.toStringTag, { value: "Module" })), lr = "", gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
+ __proto__: null,
10
+ default: lr
11
+ }, Symbol.toStringTag, { value: "Module" })), yr = {
12
+ neutrals: {
13
+ Gray100: "#171a1a",
14
+ Gray80: "#303333",
15
+ Gray60: "#494d4b",
16
+ Gray40: "#b9bfbd",
17
+ Gray20: "#edf2f0",
18
+ Gray00: "#fcfffe"
19
+ },
20
+ mainB2B: {
21
+ MainGreenDark: "#001f19",
22
+ MainGreenDefault: "#1e5349",
23
+ MainGreenLight: "#6be3cd",
24
+ MainGreenLighter: "#d9fff5"
25
+ },
26
+ mainB2C: {
27
+ MainBlueDark: "#1d5bbc",
28
+ MainBlueDefault: "#468eff",
29
+ MainBlueLight: "#abccff",
30
+ MainBlueLighter: "#e2edff"
31
+ },
32
+ secondary: {
33
+ SecondaryPurpleDark: "#9335cc",
34
+ SecondayPurpleDefault: "#c15cff",
35
+ SecondayPurpleLight: "#dea8ff",
36
+ SecondayPurpleLighter: "#f9eeff",
37
+ SecondaryOrangeDark: "#ac5734",
38
+ SecondaryOrangeDefault: "#e57b43",
39
+ SecondaryOrangeLight: "#ffaa7d",
40
+ SecondaryOrangeLighter: "#ffefe7"
41
+ },
42
+ status: {
43
+ ErrorMain: "#c00808",
44
+ ErrorLight: "#ffe5e5",
45
+ SuccessMain: "#9335cc",
46
+ SuccessLight: "#c15cff",
47
+ AlertMain: "#9f760b",
48
+ AlertLight: "#fff1cc"
49
+ },
50
+ opacity: {
51
+ Opacidad100: 1,
52
+ Opacidad80: 0.8,
53
+ Opacidad60: 0.6,
54
+ Opacidad40: 0.4,
55
+ Opacidad20: 0.2
56
+ }
57
+ };
58
+ var Z = { exports: {} }, A = {};
59
+ /**
60
+ * @license React
61
+ * react-jsx-runtime.production.min.js
62
+ *
63
+ * Copyright (c) Facebook, Inc. and its affiliates.
64
+ *
65
+ * This source code is licensed under the MIT license found in the
66
+ * LICENSE file in the root directory of this source tree.
67
+ */
68
+ var Te;
69
+ function cr() {
70
+ if (Te)
71
+ return A;
72
+ Te = 1;
73
+ var S = je, c = Symbol.for("react.element"), m = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, j = S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, P = { key: !0, ref: !0, __self: !0, __source: !0 };
74
+ function h(y, l, _) {
75
+ var p, E = {}, C = null, L = null;
76
+ _ !== void 0 && (C = "" + _), l.key !== void 0 && (C = "" + l.key), l.ref !== void 0 && (L = l.ref);
77
+ for (p in l)
78
+ g.call(l, p) && !P.hasOwnProperty(p) && (E[p] = l[p]);
79
+ if (y && y.defaultProps)
80
+ for (p in l = y.defaultProps, l)
81
+ E[p] === void 0 && (E[p] = l[p]);
82
+ return { $$typeof: c, type: y, key: C, ref: L, props: E, _owner: j.current };
83
+ }
84
+ return A.Fragment = m, A.jsx = h, A.jsxs = h, A;
85
+ }
86
+ var M = {};
87
+ /**
88
+ * @license React
89
+ * react-jsx-runtime.development.js
90
+ *
91
+ * Copyright (c) Facebook, Inc. and its affiliates.
92
+ *
93
+ * This source code is licensed under the MIT license found in the
94
+ * LICENSE file in the root directory of this source tree.
95
+ */
96
+ var Se;
97
+ function dr() {
98
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
99
+ var S = je, c = Symbol.for("react.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), y = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), Q = Symbol.iterator, Pe = "@@iterator";
100
+ function Ce(e) {
101
+ if (e === null || typeof e != "object")
102
+ return null;
103
+ var r = Q && e[Q] || e[Pe];
104
+ return typeof r == "function" ? r : null;
105
+ }
106
+ var w = S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
107
+ function d(e) {
108
+ {
109
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
110
+ t[n - 1] = arguments[n];
111
+ xe("error", e, t);
112
+ }
113
+ }
114
+ function xe(e, r, t) {
115
+ {
116
+ var n = w.ReactDebugCurrentFrame, i = n.getStackAddendum();
117
+ i !== "" && (r += "%s", t = t.concat([i]));
118
+ var u = t.map(function(o) {
119
+ return String(o);
120
+ });
121
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
122
+ }
123
+ }
124
+ var we = !1, ke = !1, De = !1, $e = !1, Fe = !1, ee;
125
+ ee = Symbol.for("react.module.reference");
126
+ function Ae(e) {
127
+ return !!(typeof e == "string" || typeof e == "function" || e === g || e === P || Fe || e === j || e === _ || e === p || $e || e === L || we || ke || De || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === E || e.$$typeof === h || e.$$typeof === y || e.$$typeof === l || // This needs to include all possible module reference object
128
+ // types supported by any Flight configuration anywhere since
129
+ // we don't know which Flight build this will end up being used
130
+ // with.
131
+ e.$$typeof === ee || e.getModuleId !== void 0));
132
+ }
133
+ function Me(e, r, t) {
134
+ var n = e.displayName;
135
+ if (n)
136
+ return n;
137
+ var i = r.displayName || r.name || "";
138
+ return i !== "" ? t + "(" + i + ")" : t;
139
+ }
140
+ function re(e) {
141
+ return e.displayName || "Context";
142
+ }
143
+ function R(e) {
144
+ if (e == null)
145
+ return null;
146
+ if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
147
+ return e.displayName || e.name || null;
148
+ if (typeof e == "string")
149
+ return e;
150
+ switch (e) {
151
+ case g:
152
+ return "Fragment";
153
+ case m:
154
+ return "Portal";
155
+ case P:
156
+ return "Profiler";
157
+ case j:
158
+ return "StrictMode";
159
+ case _:
160
+ return "Suspense";
161
+ case p:
162
+ return "SuspenseList";
163
+ }
164
+ if (typeof e == "object")
165
+ switch (e.$$typeof) {
166
+ case y:
167
+ var r = e;
168
+ return re(r) + ".Consumer";
169
+ case h:
170
+ var t = e;
171
+ return re(t._context) + ".Provider";
172
+ case l:
173
+ return Me(e, e.render, "ForwardRef");
174
+ case E:
175
+ var n = e.displayName || null;
176
+ return n !== null ? n : R(e.type) || "Memo";
177
+ case C: {
178
+ var i = e, u = i._payload, o = i._init;
179
+ try {
180
+ return R(o(u));
181
+ } catch {
182
+ return null;
183
+ }
184
+ }
185
+ }
186
+ return null;
187
+ }
188
+ var x = Object.assign, $ = 0, te, ne, ae, oe, ie, ue, se;
189
+ function fe() {
190
+ }
191
+ fe.__reactDisabledLog = !0;
192
+ function Le() {
193
+ {
194
+ if ($ === 0) {
195
+ te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd;
196
+ var e = {
197
+ configurable: !0,
198
+ enumerable: !0,
199
+ value: fe,
200
+ writable: !0
201
+ };
202
+ Object.defineProperties(console, {
203
+ info: e,
204
+ log: e,
205
+ warn: e,
206
+ error: e,
207
+ group: e,
208
+ groupCollapsed: e,
209
+ groupEnd: e
210
+ });
211
+ }
212
+ $++;
213
+ }
214
+ }
215
+ function Ie() {
216
+ {
217
+ if ($--, $ === 0) {
218
+ var e = {
219
+ configurable: !0,
220
+ enumerable: !0,
221
+ writable: !0
222
+ };
223
+ Object.defineProperties(console, {
224
+ log: x({}, e, {
225
+ value: te
226
+ }),
227
+ info: x({}, e, {
228
+ value: ne
229
+ }),
230
+ warn: x({}, e, {
231
+ value: ae
232
+ }),
233
+ error: x({}, e, {
234
+ value: oe
235
+ }),
236
+ group: x({}, e, {
237
+ value: ie
238
+ }),
239
+ groupCollapsed: x({}, e, {
240
+ value: ue
241
+ }),
242
+ groupEnd: x({}, e, {
243
+ value: se
244
+ })
245
+ });
246
+ }
247
+ $ < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
248
+ }
249
+ }
250
+ var B = w.ReactCurrentDispatcher, G;
251
+ function I(e, r, t) {
252
+ {
253
+ if (G === void 0)
254
+ try {
255
+ throw Error();
256
+ } catch (i) {
257
+ var n = i.stack.trim().match(/\n( *(at )?)/);
258
+ G = n && n[1] || "";
259
+ }
260
+ return `
261
+ ` + G + e;
262
+ }
263
+ }
264
+ var U = !1, N;
265
+ {
266
+ var Ne = typeof WeakMap == "function" ? WeakMap : Map;
267
+ N = new Ne();
268
+ }
269
+ function le(e, r) {
270
+ if (!e || U)
271
+ return "";
272
+ {
273
+ var t = N.get(e);
274
+ if (t !== void 0)
275
+ return t;
276
+ }
277
+ var n;
278
+ U = !0;
279
+ var i = Error.prepareStackTrace;
280
+ Error.prepareStackTrace = void 0;
281
+ var u;
282
+ u = B.current, B.current = null, Le();
283
+ try {
284
+ if (r) {
285
+ var o = function() {
286
+ throw Error();
287
+ };
288
+ if (Object.defineProperty(o.prototype, "props", {
289
+ set: function() {
290
+ throw Error();
291
+ }
292
+ }), typeof Reflect == "object" && Reflect.construct) {
293
+ try {
294
+ Reflect.construct(o, []);
295
+ } catch (O) {
296
+ n = O;
297
+ }
298
+ Reflect.construct(e, [], o);
299
+ } else {
300
+ try {
301
+ o.call();
302
+ } catch (O) {
303
+ n = O;
304
+ }
305
+ e.call(o.prototype);
306
+ }
307
+ } else {
308
+ try {
309
+ throw Error();
310
+ } catch (O) {
311
+ n = O;
312
+ }
313
+ e();
314
+ }
315
+ } catch (O) {
316
+ if (O && n && typeof O.stack == "string") {
317
+ for (var a = O.stack.split(`
318
+ `), v = n.stack.split(`
319
+ `), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )
320
+ f--;
321
+ for (; s >= 1 && f >= 0; s--, f--)
322
+ if (a[s] !== v[f]) {
323
+ if (s !== 1 || f !== 1)
324
+ do
325
+ if (s--, f--, f < 0 || a[s] !== v[f]) {
326
+ var b = `
327
+ ` + a[s].replace(" at new ", " at ");
328
+ return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, b), b;
329
+ }
330
+ while (s >= 1 && f >= 0);
331
+ break;
332
+ }
333
+ }
334
+ } finally {
335
+ U = !1, B.current = u, Ie(), Error.prepareStackTrace = i;
336
+ }
337
+ var D = e ? e.displayName || e.name : "", Oe = D ? I(D) : "";
338
+ return typeof e == "function" && N.set(e, Oe), Oe;
339
+ }
340
+ function We(e, r, t) {
341
+ return le(e, !1);
342
+ }
343
+ function Ye(e) {
344
+ var r = e.prototype;
345
+ return !!(r && r.isReactComponent);
346
+ }
347
+ function W(e, r, t) {
348
+ if (e == null)
349
+ return "";
350
+ if (typeof e == "function")
351
+ return le(e, Ye(e));
352
+ if (typeof e == "string")
353
+ return I(e);
354
+ switch (e) {
355
+ case _:
356
+ return I("Suspense");
357
+ case p:
358
+ return I("SuspenseList");
359
+ }
360
+ if (typeof e == "object")
361
+ switch (e.$$typeof) {
362
+ case l:
363
+ return We(e.render);
364
+ case E:
365
+ return W(e.type, r, t);
366
+ case C: {
367
+ var n = e, i = n._payload, u = n._init;
368
+ try {
369
+ return W(u(i), r, t);
370
+ } catch {
371
+ }
372
+ }
373
+ }
374
+ return "";
375
+ }
376
+ var Y = Object.prototype.hasOwnProperty, ce = {}, de = w.ReactDebugCurrentFrame;
377
+ function V(e) {
378
+ if (e) {
379
+ var r = e._owner, t = W(e.type, e._source, r ? r.type : null);
380
+ de.setExtraStackFrame(t);
381
+ } else
382
+ de.setExtraStackFrame(null);
383
+ }
384
+ function Ve(e, r, t, n, i) {
385
+ {
386
+ var u = Function.call.bind(Y);
387
+ for (var o in e)
388
+ if (u(e, o)) {
389
+ var a = void 0;
390
+ try {
391
+ if (typeof e[o] != "function") {
392
+ var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
393
+ throw v.name = "Invariant Violation", v;
394
+ }
395
+ a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
396
+ } catch (s) {
397
+ a = s;
398
+ }
399
+ a && !(a instanceof Error) && (V(i), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, V(i), d("Failed %s type: %s", t, a.message), V(null));
400
+ }
401
+ }
402
+ }
403
+ var Be = Array.isArray;
404
+ function q(e) {
405
+ return Be(e);
406
+ }
407
+ function Ge(e) {
408
+ {
409
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
410
+ return t;
411
+ }
412
+ }
413
+ function Ue(e) {
414
+ try {
415
+ return ve(e), !1;
416
+ } catch {
417
+ return !0;
418
+ }
419
+ }
420
+ function ve(e) {
421
+ return "" + e;
422
+ }
423
+ function pe(e) {
424
+ if (Ue(e))
425
+ return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), ve(e);
426
+ }
427
+ var F = w.ReactCurrentOwner, qe = {
428
+ key: !0,
429
+ ref: !0,
430
+ __self: !0,
431
+ __source: !0
432
+ }, be, ge, z;
433
+ z = {};
434
+ function ze(e) {
435
+ if (Y.call(e, "ref")) {
436
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
437
+ if (r && r.isReactWarning)
438
+ return !1;
439
+ }
440
+ return e.ref !== void 0;
441
+ }
442
+ function Je(e) {
443
+ if (Y.call(e, "key")) {
444
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
445
+ if (r && r.isReactWarning)
446
+ return !1;
447
+ }
448
+ return e.key !== void 0;
449
+ }
450
+ function Ke(e, r) {
451
+ if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
452
+ var t = R(F.current.type);
453
+ z[t] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(F.current.type), e.ref), z[t] = !0);
454
+ }
455
+ }
456
+ function He(e, r) {
457
+ {
458
+ var t = function() {
459
+ be || (be = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
460
+ };
461
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
462
+ get: t,
463
+ configurable: !0
464
+ });
465
+ }
466
+ }
467
+ function Xe(e, r) {
468
+ {
469
+ var t = function() {
470
+ ge || (ge = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
471
+ };
472
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
473
+ get: t,
474
+ configurable: !0
475
+ });
476
+ }
477
+ }
478
+ var Ze = function(e, r, t, n, i, u, o) {
479
+ var a = {
480
+ // This tag allows us to uniquely identify this as a React Element
481
+ $$typeof: c,
482
+ // Built-in properties that belong on the element
483
+ type: e,
484
+ key: r,
485
+ ref: t,
486
+ props: o,
487
+ // Record the component responsible for creating this element.
488
+ _owner: u
489
+ };
490
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
491
+ configurable: !1,
492
+ enumerable: !1,
493
+ writable: !0,
494
+ value: !1
495
+ }), Object.defineProperty(a, "_self", {
496
+ configurable: !1,
497
+ enumerable: !1,
498
+ writable: !1,
499
+ value: n
500
+ }), Object.defineProperty(a, "_source", {
501
+ configurable: !1,
502
+ enumerable: !1,
503
+ writable: !1,
504
+ value: i
505
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
506
+ };
507
+ function Qe(e, r, t, n, i) {
508
+ {
509
+ var u, o = {}, a = null, v = null;
510
+ t !== void 0 && (pe(t), a = "" + t), Je(r) && (pe(r.key), a = "" + r.key), ze(r) && (v = r.ref, Ke(r, i));
511
+ for (u in r)
512
+ Y.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
513
+ if (e && e.defaultProps) {
514
+ var s = e.defaultProps;
515
+ for (u in s)
516
+ o[u] === void 0 && (o[u] = s[u]);
517
+ }
518
+ if (a || v) {
519
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
520
+ a && He(o, f), v && Xe(o, f);
521
+ }
522
+ return Ze(e, a, v, i, n, F.current, o);
523
+ }
524
+ }
525
+ var J = w.ReactCurrentOwner, ye = w.ReactDebugCurrentFrame;
526
+ function k(e) {
527
+ if (e) {
528
+ var r = e._owner, t = W(e.type, e._source, r ? r.type : null);
529
+ ye.setExtraStackFrame(t);
530
+ } else
531
+ ye.setExtraStackFrame(null);
532
+ }
533
+ var K;
534
+ K = !1;
535
+ function H(e) {
536
+ return typeof e == "object" && e !== null && e.$$typeof === c;
537
+ }
538
+ function he() {
539
+ {
540
+ if (J.current) {
541
+ var e = R(J.current.type);
542
+ if (e)
543
+ return `
544
+
545
+ Check the render method of \`` + e + "`.";
546
+ }
547
+ return "";
548
+ }
549
+ }
550
+ function er(e) {
551
+ {
552
+ if (e !== void 0) {
553
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
554
+ return `
555
+
556
+ Check your code at ` + r + ":" + t + ".";
557
+ }
558
+ return "";
559
+ }
560
+ }
561
+ var me = {};
562
+ function rr(e) {
563
+ {
564
+ var r = he();
565
+ if (!r) {
566
+ var t = typeof e == "string" ? e : e.displayName || e.name;
567
+ t && (r = `
568
+
569
+ Check the top-level render call using <` + t + ">.");
570
+ }
571
+ return r;
572
+ }
573
+ }
574
+ function _e(e, r) {
575
+ {
576
+ if (!e._store || e._store.validated || e.key != null)
577
+ return;
578
+ e._store.validated = !0;
579
+ var t = rr(r);
580
+ if (me[t])
581
+ return;
582
+ me[t] = !0;
583
+ var n = "";
584
+ e && e._owner && e._owner !== J.current && (n = " It was passed a child from " + R(e._owner.type) + "."), k(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
585
+ }
586
+ }
587
+ function Ee(e, r) {
588
+ {
589
+ if (typeof e != "object")
590
+ return;
591
+ if (q(e))
592
+ for (var t = 0; t < e.length; t++) {
593
+ var n = e[t];
594
+ H(n) && _e(n, r);
595
+ }
596
+ else if (H(e))
597
+ e._store && (e._store.validated = !0);
598
+ else if (e) {
599
+ var i = Ce(e);
600
+ if (typeof i == "function" && i !== e.entries)
601
+ for (var u = i.call(e), o; !(o = u.next()).done; )
602
+ H(o.value) && _e(o.value, r);
603
+ }
604
+ }
605
+ }
606
+ function tr(e) {
607
+ {
608
+ var r = e.type;
609
+ if (r == null || typeof r == "string")
610
+ return;
611
+ var t;
612
+ if (typeof r == "function")
613
+ t = r.propTypes;
614
+ else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
615
+ // Inner props are checked in the reconciler.
616
+ r.$$typeof === E))
617
+ t = r.propTypes;
618
+ else
619
+ return;
620
+ if (t) {
621
+ var n = R(r);
622
+ Ve(t, e.props, "prop", n, e);
623
+ } else if (r.PropTypes !== void 0 && !K) {
624
+ K = !0;
625
+ var i = R(r);
626
+ d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
627
+ }
628
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
629
+ }
630
+ }
631
+ function nr(e) {
632
+ {
633
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
634
+ var n = r[t];
635
+ if (n !== "children" && n !== "key") {
636
+ k(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
637
+ break;
638
+ }
639
+ }
640
+ e.ref !== null && (k(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
641
+ }
642
+ }
643
+ function Re(e, r, t, n, i, u) {
644
+ {
645
+ var o = Ae(e);
646
+ if (!o) {
647
+ var a = "";
648
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
649
+ var v = er(i);
650
+ v ? a += v : a += he();
651
+ var s;
652
+ e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === c ? (s = "<" + (R(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
653
+ }
654
+ var f = Qe(e, r, t, i, u);
655
+ if (f == null)
656
+ return f;
657
+ if (o) {
658
+ var b = r.children;
659
+ if (b !== void 0)
660
+ if (n)
661
+ if (q(b)) {
662
+ for (var D = 0; D < b.length; D++)
663
+ Ee(b[D], e);
664
+ Object.freeze && Object.freeze(b);
665
+ } else
666
+ d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
667
+ else
668
+ Ee(b, e);
669
+ }
670
+ return e === g ? nr(f) : tr(f), f;
671
+ }
672
+ }
673
+ function ar(e, r, t) {
674
+ return Re(e, r, t, !0);
675
+ }
676
+ function or(e, r, t) {
677
+ return Re(e, r, t, !1);
678
+ }
679
+ var ir = or, ur = ar;
680
+ M.Fragment = g, M.jsx = ir, M.jsxs = ur;
681
+ }()), M;
682
+ }
683
+ process.env.NODE_ENV === "production" ? Z.exports = cr() : Z.exports = dr();
684
+ var T = Z.exports;
685
+ const X = ({
686
+ iconName: S,
687
+ customClassName: c,
688
+ type: m = "outlined",
689
+ ...g
690
+ }) => /* @__PURE__ */ T.jsx("span", { className: `material-symbols-${m} ${c}`, ...g, children: S }), hr = ({
691
+ type: S,
692
+ icon: c,
693
+ text: m,
694
+ disabled: g,
695
+ customStyles: j,
696
+ customBtnClassName: P,
697
+ iconPosition: h = "left",
698
+ iconType: y = "outlined",
699
+ dataTestid: l = "button-test-id",
700
+ onClick: _
701
+ }) => c && !m ? /* @__PURE__ */ T.jsx(
702
+ "button",
703
+ {
704
+ "data-testid": l,
705
+ className: `btn btn--${S} ${c ?? `btn--icon-${h}`} btn--rounded ${P}`,
706
+ onClick: _,
707
+ disabled: g,
708
+ style: j,
709
+ children: /* @__PURE__ */ T.jsx(X, { type: y, iconName: c })
710
+ }
711
+ ) : /* @__PURE__ */ T.jsxs(
712
+ "button",
713
+ {
714
+ className: `btn btn--${S} ${c ?? `btn--icon-${h}`} btn--padding ${P}`,
715
+ onClick: _,
716
+ disabled: g,
717
+ style: j,
718
+ children: [
719
+ c && h === "left" && /* @__PURE__ */ T.jsx(X, { type: y, iconName: c, customClassName: "margin-right" }),
720
+ m && /* @__PURE__ */ T.jsx("span", { className: "btn__text", children: m }),
721
+ c && h === "right" ? /* @__PURE__ */ T.jsx(X, { type: y, iconName: c, customClassName: "margin-left" }) : /* @__PURE__ */ T.jsx(T.Fragment, {})
722
+ ]
723
+ }
724
+ );
725
+ export {
726
+ hr as Button,
727
+ pr as colorTokens,
728
+ yr as colors,
729
+ br as shapeTokens,
730
+ gr as spacingTokens
731
+ };
732
+ //# sourceMappingURL=index.es.js.map