ctc-component-library 0.0.7 → 0.0.8

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