ctc-component-library 0.0.5 → 0.0.7

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