@dev-blinq/ui-systems 1.0.63 → 1.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as Ln from "react";
2
2
  import J, { useRef as Ae, useState as I, useEffect as Se } from "react";
3
- import { Typography as Ee, Tooltip as Re } from "@mui/material";
3
+ import { Tooltip as Ee, Typography as Re } from "@mui/material";
4
4
  function Me(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
@@ -18,15 +18,15 @@ var Gn;
18
18
  function Ne() {
19
19
  if (Gn) return w;
20
20
  Gn = 1;
21
- var e = J, o = Symbol.for("react.element"), p = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
22
- function d(S, v, D) {
23
- var h, C = {}, R = null, F = null;
24
- D !== void 0 && (R = "" + D), v.key !== void 0 && (R = "" + v.key), v.ref !== void 0 && (F = v.ref);
25
- for (h in v) c.call(v, h) && !g.hasOwnProperty(h) && (C[h] = v[h]);
26
- if (S && S.defaultProps) for (h in v = S.defaultProps, v) C[h] === void 0 && (C[h] = v[h]);
27
- return { $$typeof: o, type: S, key: R, ref: F, props: C, _owner: y.current };
21
+ var e = J, o = Symbol.for("react.element"), g = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function h(f, s, D) {
23
+ var m, A = {}, R = null, B = null;
24
+ D !== void 0 && (R = "" + D), s.key !== void 0 && (R = "" + s.key), s.ref !== void 0 && (B = s.ref);
25
+ for (m in s) l.call(s, m) && !d.hasOwnProperty(m) && (A[m] = s[m]);
26
+ if (f && f.defaultProps) for (m in s = f.defaultProps, s) A[m] === void 0 && (A[m] = s[m]);
27
+ return { $$typeof: o, type: f, key: R, ref: B, props: A, _owner: v.current };
28
28
  }
29
- return w.Fragment = p, w.jsx = d, w.jsxs = d, w;
29
+ return w.Fragment = g, w.jsx = h, w.jsxs = h, w;
30
30
  }
31
31
  var V = {};
32
32
  /**
@@ -41,14 +41,14 @@ var V = {};
41
41
  var In;
42
42
  function De() {
43
43
  return In || (In = 1, process.env.NODE_ENV !== "production" && function() {
44
- var e = J, o = Symbol.for("react.element"), p = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), S = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), O = Symbol.iterator, H = "@@iterator";
44
+ var e = J, o = Symbol.for("react.element"), g = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), f = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), O = Symbol.iterator, H = "@@iterator";
45
45
  function _(n) {
46
46
  if (n === null || typeof n != "object")
47
47
  return null;
48
48
  var a = O && n[O] || n[H];
49
49
  return typeof a == "function" ? a : null;
50
50
  }
51
- var U = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ var F = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
52
  function E(n) {
53
53
  {
54
54
  for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), i = 1; i < a; i++)
@@ -58,18 +58,18 @@ function De() {
58
58
  }
59
59
  function Kn(n, a, r) {
60
60
  {
61
- var i = U.ReactDebugCurrentFrame, s = i.getStackAddendum();
62
- s !== "" && (a += "%s", r = r.concat([s]));
63
- var m = r.map(function(l) {
64
- return String(l);
61
+ var i = F.ReactDebugCurrentFrame, p = i.getStackAddendum();
62
+ p !== "" && (a += "%s", r = r.concat([p]));
63
+ var y = r.map(function(c) {
64
+ return String(c);
65
65
  });
66
- m.unshift("Warning: " + a), Function.prototype.apply.call(console[n], console, m);
66
+ y.unshift("Warning: " + a), Function.prototype.apply.call(console[n], console, y);
67
67
  }
68
68
  }
69
69
  var jn = !1, wn = !1, Vn = !1, Hn = !1, _n = !1, sn;
70
70
  sn = Symbol.for("react.module.reference");
71
71
  function Wn(n) {
72
- return !!(typeof n == "string" || typeof n == "function" || n === c || n === g || _n || n === y || n === D || n === h || Hn || n === F || jn || wn || Vn || typeof n == "object" && n !== null && (n.$$typeof === R || n.$$typeof === C || n.$$typeof === d || n.$$typeof === S || n.$$typeof === v || // This needs to include all possible module reference object
72
+ return !!(typeof n == "string" || typeof n == "function" || n === l || n === d || _n || n === v || n === D || n === m || Hn || n === B || jn || wn || Vn || typeof n == "object" && n !== null && (n.$$typeof === R || n.$$typeof === A || n.$$typeof === h || n.$$typeof === f || n.$$typeof === s || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
@@ -79,8 +79,8 @@ function De() {
79
79
  var i = n.displayName;
80
80
  if (i)
81
81
  return i;
82
- var s = a.displayName || a.name || "";
83
- return s !== "" ? r + "(" + s + ")" : r;
82
+ var p = a.displayName || a.name || "";
83
+ return p !== "" ? r + "(" + p + ")" : r;
84
84
  }
85
85
  function pn(n) {
86
86
  return n.displayName || "Context";
@@ -93,36 +93,36 @@ function De() {
93
93
  if (typeof n == "string")
94
94
  return n;
95
95
  switch (n) {
96
- case c:
96
+ case l:
97
97
  return "Fragment";
98
- case p:
99
- return "Portal";
100
98
  case g:
99
+ return "Portal";
100
+ case d:
101
101
  return "Profiler";
102
- case y:
102
+ case v:
103
103
  return "StrictMode";
104
104
  case D:
105
105
  return "Suspense";
106
- case h:
106
+ case m:
107
107
  return "SuspenseList";
108
108
  }
109
109
  if (typeof n == "object")
110
110
  switch (n.$$typeof) {
111
- case S:
111
+ case f:
112
112
  var a = n;
113
113
  return pn(a) + ".Consumer";
114
- case d:
114
+ case h:
115
115
  var r = n;
116
116
  return pn(r._context) + ".Provider";
117
- case v:
117
+ case s:
118
118
  return Yn(n, n.render, "ForwardRef");
119
- case C:
119
+ case A:
120
120
  var i = n.displayName || null;
121
121
  return i !== null ? i : b(n.type) || "Memo";
122
122
  case R: {
123
- var s = n, m = s._payload, l = s._init;
123
+ var p = n, y = p._payload, c = p._init;
124
124
  try {
125
- return b(l(m));
125
+ return b(c(y));
126
126
  } catch {
127
127
  return null;
128
128
  }
@@ -192,14 +192,14 @@ function De() {
192
192
  k < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var z = U.ReactCurrentDispatcher, X;
195
+ var z = F.ReactCurrentDispatcher, X;
196
196
  function W(n, a, r) {
197
197
  {
198
198
  if (X === void 0)
199
199
  try {
200
200
  throw Error();
201
- } catch (s) {
202
- var i = s.stack.trim().match(/\n( *(at )?)/);
201
+ } catch (p) {
202
+ var i = p.stack.trim().match(/\n( *(at )?)/);
203
203
  X = i && i[1] || "";
204
204
  }
205
205
  return `
@@ -221,33 +221,33 @@ function De() {
221
221
  }
222
222
  var i;
223
223
  q = !0;
224
- var s = Error.prepareStackTrace;
224
+ var p = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
- var m;
227
- m = z.current, z.current = null, Zn();
226
+ var y;
227
+ y = z.current, z.current = null, Zn();
228
228
  try {
229
229
  if (a) {
230
- var l = function() {
230
+ var c = function() {
231
231
  throw Error();
232
232
  };
233
- if (Object.defineProperty(l.prototype, "props", {
233
+ if (Object.defineProperty(c.prototype, "props", {
234
234
  set: function() {
235
235
  throw Error();
236
236
  }
237
237
  }), typeof Reflect == "object" && Reflect.construct) {
238
238
  try {
239
- Reflect.construct(l, []);
239
+ Reflect.construct(c, []);
240
240
  } catch (N) {
241
241
  i = N;
242
242
  }
243
- Reflect.construct(n, [], l);
243
+ Reflect.construct(n, [], c);
244
244
  } else {
245
245
  try {
246
- l.call();
246
+ c.call();
247
247
  } catch (N) {
248
248
  i = N;
249
249
  }
250
- n.call(l.prototype);
250
+ n.call(c.prototype);
251
251
  }
252
252
  } else {
253
253
  try {
@@ -261,23 +261,23 @@ function De() {
261
261
  if (N && i && typeof N.stack == "string") {
262
262
  for (var u = N.stack.split(`
263
263
  `), M = i.stack.split(`
264
- `), f = u.length - 1, A = M.length - 1; f >= 1 && A >= 0 && u[f] !== M[A]; )
265
- A--;
266
- for (; f >= 1 && A >= 0; f--, A--)
267
- if (u[f] !== M[A]) {
268
- if (f !== 1 || A !== 1)
264
+ `), C = u.length - 1, S = M.length - 1; C >= 1 && S >= 0 && u[C] !== M[S]; )
265
+ S--;
266
+ for (; C >= 1 && S >= 0; C--, S--)
267
+ if (u[C] !== M[S]) {
268
+ if (C !== 1 || S !== 1)
269
269
  do
270
- if (f--, A--, A < 0 || u[f] !== M[A]) {
270
+ if (C--, S--, S < 0 || u[C] !== M[S]) {
271
271
  var T = `
272
- ` + u[f].replace(" at new ", " at ");
272
+ ` + u[C].replace(" at new ", " at ");
273
273
  return n.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", n.displayName)), typeof n == "function" && Y.set(n, T), T;
274
274
  }
275
- while (f >= 1 && A >= 0);
275
+ while (C >= 1 && S >= 0);
276
276
  break;
277
277
  }
278
278
  }
279
279
  } finally {
280
- q = !1, z.current = m, $n(), Error.prepareStackTrace = s;
280
+ q = !1, z.current = y, $n(), Error.prepareStackTrace = p;
281
281
  }
282
282
  var G = n ? n.displayName || n.name : "", x = G ? W(G) : "";
283
283
  return typeof n == "function" && Y.set(n, x), x;
@@ -299,26 +299,26 @@ function De() {
299
299
  switch (n) {
300
300
  case D:
301
301
  return W("Suspense");
302
- case h:
302
+ case m:
303
303
  return W("SuspenseList");
304
304
  }
305
305
  if (typeof n == "object")
306
306
  switch (n.$$typeof) {
307
- case v:
307
+ case s:
308
308
  return zn(n.render);
309
- case C:
309
+ case A:
310
310
  return Z(n.type, a, r);
311
311
  case R: {
312
- var i = n, s = i._payload, m = i._init;
312
+ var i = n, p = i._payload, y = i._init;
313
313
  try {
314
- return Z(m(s), a, r);
314
+ return Z(y(p), a, r);
315
315
  } catch {
316
316
  }
317
317
  }
318
318
  }
319
319
  return "";
320
320
  }
321
- var K = Object.prototype.hasOwnProperty, Sn = {}, En = U.ReactDebugCurrentFrame;
321
+ var K = Object.prototype.hasOwnProperty, Sn = {}, En = F.ReactDebugCurrentFrame;
322
322
  function $(n) {
323
323
  if (n) {
324
324
  var a = n._owner, r = Z(n.type, n._source, a ? a.type : null);
@@ -326,22 +326,22 @@ function De() {
326
326
  } else
327
327
  En.setExtraStackFrame(null);
328
328
  }
329
- function qn(n, a, r, i, s) {
329
+ function qn(n, a, r, i, p) {
330
330
  {
331
- var m = Function.call.bind(K);
332
- for (var l in n)
333
- if (m(n, l)) {
331
+ var y = Function.call.bind(K);
332
+ for (var c in n)
333
+ if (y(n, c)) {
334
334
  var u = void 0;
335
335
  try {
336
- if (typeof n[l] != "function") {
337
- var M = Error((i || "React class") + ": " + r + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
+ if (typeof n[c] != "function") {
337
+ var M = Error((i || "React class") + ": " + r + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
338
  throw M.name = "Invariant Violation", M;
339
339
  }
340
- u = n[l](a, l, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (f) {
342
- u = f;
340
+ u = n[c](a, c, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (C) {
342
+ u = C;
343
343
  }
344
- u && !(u instanceof Error) && ($(s), E("%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).", i || "React class", r, l, typeof u), $(null)), u instanceof Error && !(u.message in Sn) && (Sn[u.message] = !0, $(s), E("Failed %s type: %s", r, u.message), $(null));
344
+ u && !(u instanceof Error) && ($(p), E("%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).", i || "React class", r, c, typeof u), $(null)), u instanceof Error && !(u.message in Sn) && (Sn[u.message] = !0, $(p), E("Failed %s type: %s", r, u.message), $(null));
345
345
  }
346
346
  }
347
347
  }
@@ -369,7 +369,7 @@ function De() {
369
369
  if (ee(n))
370
370
  return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ne(n)), Rn(n);
371
371
  }
372
- var j = U.ReactCurrentOwner, ae = {
372
+ var j = F.ReactCurrentOwner, ae = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
@@ -420,7 +420,7 @@ function De() {
420
420
  });
421
421
  }
422
422
  }
423
- var ce = function(n, a, r, i, s, m, l) {
423
+ var ce = function(n, a, r, i, p, y, c) {
424
424
  var u = {
425
425
  // This tag allows us to uniquely identify this as a React Element
426
426
  $$typeof: o,
@@ -428,9 +428,9 @@ function De() {
428
428
  type: n,
429
429
  key: a,
430
430
  ref: r,
431
- props: l,
431
+ props: c,
432
432
  // Record the component responsible for creating this element.
433
- _owner: m
433
+ _owner: y
434
434
  };
435
435
  return u._store = {}, Object.defineProperty(u._store, "validated", {
436
436
  configurable: !1,
@@ -446,28 +446,28 @@ function De() {
446
446
  configurable: !1,
447
447
  enumerable: !1,
448
448
  writable: !1,
449
- value: s
449
+ value: p
450
450
  }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
451
451
  };
452
- function le(n, a, r, i, s) {
452
+ function le(n, a, r, i, p) {
453
453
  {
454
- var m, l = {}, u = null, M = null;
455
- r !== void 0 && (Mn(r), u = "" + r), re(a) && (Mn(a.key), u = "" + a.key), te(a) && (M = a.ref, ie(a, s));
456
- for (m in a)
457
- K.call(a, m) && !ae.hasOwnProperty(m) && (l[m] = a[m]);
454
+ var y, c = {}, u = null, M = null;
455
+ r !== void 0 && (Mn(r), u = "" + r), re(a) && (Mn(a.key), u = "" + a.key), te(a) && (M = a.ref, ie(a, p));
456
+ for (y in a)
457
+ K.call(a, y) && !ae.hasOwnProperty(y) && (c[y] = a[y]);
458
458
  if (n && n.defaultProps) {
459
- var f = n.defaultProps;
460
- for (m in f)
461
- l[m] === void 0 && (l[m] = f[m]);
459
+ var C = n.defaultProps;
460
+ for (y in C)
461
+ c[y] === void 0 && (c[y] = C[y]);
462
462
  }
463
463
  if (u || M) {
464
- var A = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
465
- u && ue(l, A), M && oe(l, A);
464
+ var S = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
465
+ u && ue(c, S), M && oe(c, S);
466
466
  }
467
- return ce(n, u, M, s, i, j.current, l);
467
+ return ce(n, u, M, p, i, j.current, c);
468
468
  }
469
469
  }
470
- var en = U.ReactCurrentOwner, Tn = U.ReactDebugCurrentFrame;
470
+ var en = F.ReactCurrentOwner, Tn = F.ReactDebugCurrentFrame;
471
471
  function L(n) {
472
472
  if (n) {
473
473
  var a = n._owner, r = Z(n.type, n._source, a ? a.type : null);
@@ -533,10 +533,10 @@ Check the top-level render call using <` + r + ">.");
533
533
  else if (tn(n))
534
534
  n._store && (n._store.validated = !0);
535
535
  else if (n) {
536
- var s = _(n);
537
- if (typeof s == "function" && s !== n.entries)
538
- for (var m = s.call(n), l; !(l = m.next()).done; )
539
- tn(l.value) && Fn(l.value, a);
536
+ var p = _(n);
537
+ if (typeof p == "function" && p !== n.entries)
538
+ for (var y = p.call(n), c; !(c = y.next()).done; )
539
+ tn(c.value) && Fn(c.value, a);
540
540
  }
541
541
  }
542
542
  }
@@ -548,9 +548,9 @@ Check the top-level render call using <` + r + ">.");
548
548
  var r;
549
549
  if (typeof a == "function")
550
550
  r = a.propTypes;
551
- else if (typeof a == "object" && (a.$$typeof === v || // Note: Memo only checks outer props here.
551
+ else if (typeof a == "object" && (a.$$typeof === s || // Note: Memo only checks outer props here.
552
552
  // Inner props are checked in the reconciler.
553
- a.$$typeof === C))
553
+ a.$$typeof === A))
554
554
  r = a.propTypes;
555
555
  else
556
556
  return;
@@ -559,8 +559,8 @@ Check the top-level render call using <` + r + ">.");
559
559
  qn(r, n.props, "prop", i, n);
560
560
  } else if (a.PropTypes !== void 0 && !an) {
561
561
  an = !0;
562
- var s = b(a);
563
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
562
+ var p = b(a);
563
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
564
564
  }
565
565
  typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
566
  }
@@ -578,21 +578,21 @@ Check the top-level render call using <` + r + ">.");
578
578
  }
579
579
  }
580
580
  var Pn = {};
581
- function xn(n, a, r, i, s, m) {
581
+ function xn(n, a, r, i, p, y) {
582
582
  {
583
- var l = Wn(n);
584
- if (!l) {
583
+ var c = Wn(n);
584
+ if (!c) {
585
585
  var u = "";
586
586
  (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
587
587
  var M = se();
588
588
  M ? u += M : u += bn();
589
- var f;
590
- n === null ? f = "null" : Q(n) ? f = "array" : n !== void 0 && n.$$typeof === o ? (f = "<" + (b(n.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : f = typeof n, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, u);
589
+ var C;
590
+ n === null ? C = "null" : Q(n) ? C = "array" : n !== void 0 && n.$$typeof === o ? (C = "<" + (b(n.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : C = typeof n, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, u);
591
591
  }
592
- var A = le(n, a, r, s, m);
593
- if (A == null)
594
- return A;
595
- if (l) {
592
+ var S = le(n, a, r, p, y);
593
+ if (S == null)
594
+ return S;
595
+ if (c) {
596
596
  var T = a.children;
597
597
  if (T !== void 0)
598
598
  if (i)
@@ -619,7 +619,7 @@ React keys must be passed directly to JSX without using spread:
619
619
  <%s key={someKey} {...props} />`, rn, x, fe, x), Pn[x + rn] = !0;
620
620
  }
621
621
  }
622
- return n === c ? de(A) : ge(A), A;
622
+ return n === l ? de(S) : ge(S), S;
623
623
  }
624
624
  }
625
625
  function he(n, a, r) {
@@ -629,72 +629,91 @@ React keys must be passed directly to JSX without using spread:
629
629
  return xn(n, a, r, !1);
630
630
  }
631
631
  var ye = me, ve = he;
632
- V.Fragment = c, V.jsx = ye, V.jsxs = ve;
632
+ V.Fragment = l, V.jsx = ye, V.jsxs = ve;
633
633
  }()), V;
634
634
  }
635
635
  process.env.NODE_ENV === "production" ? un.exports = Ne() : un.exports = De();
636
636
  var t = un.exports;
637
- const B = ({ children: e, Size: o, category: p, bold: c, sx: y, ...g }) => /* @__PURE__ */ t.jsx(
638
- Ee,
639
- {
640
- className: "TypographyCustom",
641
- "data-size": o,
642
- "data-category": p,
643
- "data-bold": c,
644
- sx: { fontFamily: 'var(--font-family, "Plus Jakarta Sans", sans-serif)', ...y },
645
- ...g,
646
- children: e
647
- }
648
- ), Ye = ({
637
+ const Ye = ({
649
638
  size: e = "lg",
650
639
  colorHierarchy: o = "brand/primary",
651
- disabled: p = !1,
652
- text: c,
653
- leftIcon: y,
654
- rightIcon: g,
640
+ disabled: g = !1,
641
+ text: l,
642
+ leftIcon: v,
643
+ rightIcon: d,
655
644
  // onClick,
656
- ...d
657
- }) => /* @__PURE__ */ t.jsx(
645
+ ...h
646
+ }) => {
647
+ let f = "18px", s = "24px";
648
+ switch (e) {
649
+ case "sm":
650
+ f = "14px", s = "20px";
651
+ break;
652
+ case "md":
653
+ f = "16px", s = "22px";
654
+ break;
655
+ case "lg":
656
+ f = "18px", s = "24px";
657
+ break;
658
+ case "xl":
659
+ f = "20px", s = "28px";
660
+ break;
661
+ default:
662
+ f = "18px", s = "24px";
663
+ }
664
+ return /* @__PURE__ */ t.jsx(Ee, { title: h.title, children: /* @__PURE__ */ t.jsxs(
665
+ "button",
666
+ {
667
+ "data-size": e,
668
+ "data-colorHierarchy": o,
669
+ disabled: g,
670
+ ...h,
671
+ className: `button ${l ? "" : "buttonText"} ${h.className}`,
672
+ style: {
673
+ fontSize: f,
674
+ fontWeight: "bold",
675
+ lineHeight: s,
676
+ fontFamily: 'var(--font-family, "Plus Jakarta Sans", sans-serif)'
677
+ },
678
+ children: [
679
+ v && /* @__PURE__ */ t.jsx(
680
+ "span",
681
+ {
682
+ style: {
683
+ display: "flex",
684
+ alignItems: "center",
685
+ justifyContent: "center",
686
+ height: "100%"
687
+ },
688
+ children: v
689
+ }
690
+ ),
691
+ l,
692
+ d && /* @__PURE__ */ t.jsx(
693
+ "span",
694
+ {
695
+ style: {
696
+ display: "flex",
697
+ alignItems: "center",
698
+ justifyContent: "center",
699
+ height: "100%"
700
+ },
701
+ children: d
702
+ }
703
+ )
704
+ ]
705
+ }
706
+ ) });
707
+ }, U = ({ children: e, Size: o, category: g, bold: l, sx: v, ...d }) => /* @__PURE__ */ t.jsx(
658
708
  Re,
659
709
  {
660
- title: d.title,
661
- children: /* @__PURE__ */ t.jsxs(
662
- "button",
663
- {
664
- "data-size": e,
665
- "data-colorHierarchy": o,
666
- disabled: p,
667
- ...d,
668
- className: `button ${c ? "" : "buttonText"} ${d.className}`,
669
- children: [
670
- y && /* @__PURE__ */ t.jsx(
671
- "span",
672
- {
673
- style: {
674
- display: "flex",
675
- alignItems: "center",
676
- justifyContent: "center",
677
- height: "100%"
678
- },
679
- children: y
680
- }
681
- ),
682
- c && /* @__PURE__ */ t.jsx(B, { className: "input-typography", category: "text", Size: e, bold: "bold", children: c }),
683
- g && /* @__PURE__ */ t.jsx(
684
- "span",
685
- {
686
- style: {
687
- display: "flex",
688
- alignItems: "center",
689
- justifyContent: "center",
690
- height: "100%"
691
- },
692
- children: g
693
- }
694
- )
695
- ]
696
- }
697
- )
710
+ className: "TypographyCustom",
711
+ "data-size": o,
712
+ "data-category": g,
713
+ "data-bold": l,
714
+ sx: { fontFamily: 'var(--font-family, "Plus Jakarta Sans", sans-serif)', ...v },
715
+ ...d,
716
+ children: e
698
717
  }
699
718
  ), On = (e) => /* @__PURE__ */ t.jsxs(
700
719
  "div",
@@ -746,14 +765,14 @@ const B = ({ children: e, Size: o, category: p, bold: c, sx: y, ...g }) => /* @_
746
765
  ),
747
766
  /* @__PURE__ */ t.jsxs("div", { className: "grey-box grey-right-box", children: [
748
767
  /* @__PURE__ */ t.jsx(
749
- B,
768
+ U,
750
769
  {
751
770
  category: "text",
752
771
  Size: "sm",
753
772
  bold: "medium",
754
773
  onClick: () => {
755
- var p;
756
- e.onAction && e.onAction((p = o.current) == null ? void 0 : p.value);
774
+ var g;
775
+ e.onAction && e.onAction((g = o.current) == null ? void 0 : g.value);
757
776
  },
758
777
  children: e.actionLabel
759
778
  }
@@ -960,22 +979,22 @@ const on = Ue;
960
979
  ln.exports = function(o) {
961
980
  if (typeof o != "string")
962
981
  return;
963
- const p = o.toUpperCase();
964
- if (Object.prototype.hasOwnProperty.call(on, p))
965
- return on[p];
982
+ const g = o.toUpperCase();
983
+ if (Object.prototype.hasOwnProperty.call(on, g))
984
+ return on[g];
966
985
  };
967
986
  ln.exports.currencySymbolMap = on;
968
987
  var Pe = ln.exports;
969
988
  const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
970
- const [o, p] = I(""), [c, y] = I("USD"), [g, d] = I([]), S = J.useRef(null);
989
+ const [o, g] = I(""), [l, v] = I("USD"), [d, h] = I([]), f = J.useRef(null);
971
990
  Se(() => {
972
- const h = [...new Set(Object.values(cn).map((C) => C.currency))];
973
- d(h);
991
+ const m = [...new Set(Object.values(cn).map((A) => A.currency))];
992
+ h(m);
974
993
  }, []);
975
- const v = (h) => {
976
- p(h.target.value);
977
- }, D = (h) => {
978
- y(h.target.value);
994
+ const s = (m) => {
995
+ g(m.target.value);
996
+ }, D = (m) => {
997
+ v(m.target.value);
979
998
  };
980
999
  return /* @__PURE__ */ t.jsx("div", { className: "currency-input-container", children: /* @__PURE__ */ t.jsxs(
981
1000
  "div",
@@ -985,23 +1004,23 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
985
1004
  "data-error": e.errExists,
986
1005
  style: { ...e.style, ...e.sx },
987
1006
  children: [
988
- /* @__PURE__ */ t.jsx("div", { className: "grey-box grey-left-box", children: /* @__PURE__ */ t.jsx(B, { category: "text", Size: "sm", bold: "semibold", children: xe(c) || "$" }) }),
1007
+ /* @__PURE__ */ t.jsx("div", { className: "grey-box grey-left-box", children: /* @__PURE__ */ t.jsx(U, { category: "text", Size: "sm", bold: "semibold", children: xe(l) || "$" }) }),
989
1008
  /* @__PURE__ */ t.jsx(
990
1009
  "input",
991
1010
  {
992
1011
  type: "text",
993
1012
  placeholder: "amount",
994
1013
  style: { marginLeft: "12px" },
995
- onChange: v,
1014
+ onChange: s,
996
1015
  disabled: e.disabled,
997
- ref: S,
1016
+ ref: f,
998
1017
  ...e.props
999
1018
  }
1000
1019
  ),
1001
1020
  /* @__PURE__ */ t.jsx("div", { className: "grey-box grey-right-box", children: /* @__PURE__ */ t.jsx(
1002
1021
  "select",
1003
1022
  {
1004
- value: c,
1023
+ value: l,
1005
1024
  onChange: D,
1006
1025
  className: "currency-select",
1007
1026
  style: {
@@ -1011,7 +1030,7 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
1011
1030
  border: "none",
1012
1031
  background: "transparent"
1013
1032
  },
1014
- children: g.map((h) => /* @__PURE__ */ t.jsx("option", { value: h, children: h }, h))
1033
+ children: d.map((m) => /* @__PURE__ */ t.jsx("option", { value: m, children: m }, m))
1015
1034
  }
1016
1035
  ) })
1017
1036
  ]
@@ -1085,7 +1104,7 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
1085
1104
  "data-error": e.errExists,
1086
1105
  style: { ...e.style, ...e.sx },
1087
1106
  children: [
1088
- /* @__PURE__ */ t.jsx("div", { className: "grey-box grey-left-box", children: /* @__PURE__ */ t.jsx(B, { category: "text", Size: "sm", bold: "medium", children: "https://" }) }),
1107
+ /* @__PURE__ */ t.jsx("div", { className: "grey-box grey-left-box", children: /* @__PURE__ */ t.jsx(U, { category: "text", Size: "sm", bold: "medium", children: "https://" }) }),
1089
1108
  /* @__PURE__ */ t.jsx(
1090
1109
  "input",
1091
1110
  {
@@ -1224,61 +1243,61 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
1224
1243
  }, He = (e) => /* @__PURE__ */ Ln.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", ...e }, /* @__PURE__ */ Ln.createElement("path", { d: "M13.5306 8.53065L8.5306 13.5307C8.46083 13.6004 8.37801 13.6558 8.28686 13.6935C8.19571 13.7313 8.09801 13.7507 7.99935 13.7507C7.90069 13.7507 7.80299 13.7313 7.71184 13.6935C7.62069 13.6558 7.53786 13.6004 7.4681 13.5307C7.39833 13.4609 7.34299 13.3781 7.30524 13.2869C7.26748 13.1958 7.24805 13.0981 7.24805 12.9994C7.24805 12.9007 7.26748 12.803 7.30524 12.7119C7.34299 12.6207 7.39833 12.5379 7.4681 12.4682L12.4681 7.46815C12.5379 7.39839 12.6207 7.34304 12.7118 7.30529C12.803 7.26753 12.9007 7.2481 12.9993 7.2481C13.098 7.2481 13.1957 7.26753 13.2869 7.30529C13.378 7.34304 13.4608 7.39839 13.5306 7.46815C13.6004 7.53791 13.6557 7.62074 13.6935 7.71189C13.7312 7.80304 13.7506 7.90074 13.7506 7.9994C13.7506 8.09806 13.7312 8.19576 13.6935 8.28691C13.6557 8.37806 13.6004 8.46089 13.5306 8.53065ZM12.5306 1.96815C12.4609 1.89823 12.3781 1.84275 12.287 1.8049C12.1958 1.76704 12.0981 1.74756 11.9993 1.74756C11.9006 1.74756 11.8029 1.76704 11.7117 1.8049C11.6206 1.84275 11.5378 1.89823 11.4681 1.96815L1.9681 11.4682C1.8272 11.609 1.74805 11.8001 1.74805 11.9994C1.74805 12.1987 1.8272 12.3898 1.9681 12.5307C2.10899 12.6715 2.30009 12.7507 2.49935 12.7507C2.69861 12.7507 2.8897 12.6715 3.0306 12.5307L12.5306 3.03065C12.6003 2.961 12.6556 2.87828 12.6934 2.78723C12.7311 2.69618 12.7506 2.59859 12.7506 2.50003C12.7506 2.40146 12.7311 2.30387 12.6934 2.21282C12.6556 2.12177 12.6003 2.03905 12.5306 1.9694V1.96815Z", fill: "#717076" })), Ze = ({
1225
1244
  size: e = "lg",
1226
1245
  designType: o = "default",
1227
- disabled: p = !1,
1228
- label: c = "",
1229
- errExists: y = !1,
1230
- errorMsg: g = "",
1231
- placeholder: d,
1232
- leftIcon: S,
1233
- rightIcon: v,
1246
+ disabled: g = !1,
1247
+ label: l = "",
1248
+ errExists: v = !1,
1249
+ errorMsg: d = "",
1250
+ placeholder: h,
1251
+ leftIcon: f,
1252
+ rightIcon: s,
1234
1253
  style: D,
1235
- onAction: h,
1236
- ...C
1254
+ onAction: m,
1255
+ ...A
1237
1256
  }) => {
1238
1257
  const R = {
1239
1258
  designType: o,
1240
- placeholder: d,
1241
- disabled: p,
1242
- errExists: y,
1243
- leftIcon: S,
1244
- rightIcon: v,
1259
+ placeholder: h,
1260
+ disabled: g,
1261
+ errExists: v,
1262
+ leftIcon: f,
1263
+ rightIcon: s,
1245
1264
  style: D,
1246
- onAction: h,
1265
+ onAction: m,
1247
1266
  // application if type is action
1248
- props: C
1267
+ props: A
1249
1268
  };
1250
1269
  return /* @__PURE__ */ t.jsxs("div", { children: [
1251
- c && /* @__PURE__ */ t.jsx(B, { category: "text", Size: "sm", bold: "semibold", children: c }),
1270
+ l && /* @__PURE__ */ t.jsx(U, { category: "text", Size: "sm", bold: "semibold", children: l }),
1252
1271
  /* @__PURE__ */ t.jsx(Ve, { ...R }),
1253
- y && /* @__PURE__ */ t.jsx("p", { className: "error-message-input", children: g })
1272
+ v && /* @__PURE__ */ t.jsx("p", { className: "error-message-input", children: d })
1254
1273
  ] });
1255
1274
  }, $e = ({
1256
1275
  placeholder: e,
1257
1276
  disabled: o = !1,
1258
- errExists: p = !1,
1259
- label: c,
1260
- counterVisibility: y = !0,
1261
- ...g
1277
+ errExists: g = !1,
1278
+ label: l,
1279
+ counterVisibility: v = !0,
1280
+ ...d
1262
1281
  }) => {
1263
- const [d, S] = J.useState(""), [v, D] = I(g.rows || 8), h = (C) => {
1282
+ const [h, f] = J.useState(""), [s, D] = I(d.rows || 8), m = (A) => {
1264
1283
  D((R) => {
1265
- const F = C === "down" ? R + 1 : R - 1;
1266
- return F < 2 ? 2 : F;
1284
+ const B = A === "down" ? R + 1 : R - 1;
1285
+ return B < 2 ? 2 : B;
1267
1286
  });
1268
1287
  };
1269
1288
  return /* @__PURE__ */ t.jsxs("div", { children: [
1270
- /* @__PURE__ */ t.jsx(B, { category: "text", Size: "sm", bold: "bold", children: c }),
1271
- /* @__PURE__ */ t.jsxs("div", { className: "text-area-container", "data-error": p, children: [
1289
+ /* @__PURE__ */ t.jsx(U, { category: "text", Size: "sm", bold: "bold", children: l }),
1290
+ /* @__PURE__ */ t.jsxs("div", { className: "text-area-container", "data-error": g, children: [
1272
1291
  /* @__PURE__ */ t.jsx(
1273
1292
  "textarea",
1274
1293
  {
1275
1294
  placeholder: e || "Enter your text here...",
1276
- maxLength: y ? 300 : void 0,
1295
+ maxLength: v ? 300 : void 0,
1277
1296
  disabled: o,
1278
- ...g,
1279
- rows: v,
1280
- onChange: (C) => {
1281
- S(C.target.value), g.onChange && g.onChange(C);
1297
+ ...d,
1298
+ rows: s,
1299
+ onChange: (A) => {
1300
+ f(A.target.value), d.onChange && d.onChange(A);
1282
1301
  },
1283
1302
  style: {
1284
1303
  width: "100%",
@@ -1288,7 +1307,7 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
1288
1307
  fontFamily: 'var(--font-family, "Plus Jakarta Sans", sans-serif)',
1289
1308
  // fontWeight: "600"
1290
1309
  // props.style
1291
- ...g.style
1310
+ ...d.style
1292
1311
  }
1293
1312
  }
1294
1313
  ),
@@ -1301,21 +1320,21 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
1301
1320
  alignItems: "center"
1302
1321
  },
1303
1322
  children: [
1304
- y && /* @__PURE__ */ t.jsxs(B, { category: "text", Size: "sm", bold: "medium", children: [
1305
- d.length,
1323
+ v && /* @__PURE__ */ t.jsxs(U, { category: "text", Size: "sm", bold: "medium", children: [
1324
+ h.length,
1306
1325
  "/300"
1307
1326
  ] }),
1308
1327
  /* @__PURE__ */ t.jsx(
1309
1328
  He,
1310
1329
  {
1311
1330
  style: { cursor: "ns-resize", marginLeft: "auto" },
1312
- onMouseDown: (C) => {
1313
- let R = C.clientY;
1314
- const F = 10, O = (_) => {
1315
- const U = _.clientY - R;
1316
- if (Math.abs(U) > F) {
1317
- const E = U > 0 ? "down" : "up";
1318
- h(E), R = _.clientY;
1331
+ onMouseDown: (A) => {
1332
+ let R = A.clientY;
1333
+ const B = 10, O = (_) => {
1334
+ const F = _.clientY - R;
1335
+ if (Math.abs(F) > B) {
1336
+ const E = F > 0 ? "down" : "up";
1337
+ m(E), R = _.clientY;
1319
1338
  }
1320
1339
  }, H = () => {
1321
1340
  document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", H);
@@ -1332,69 +1351,69 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
1332
1351
  }, Je = ({
1333
1352
  size: e = "md",
1334
1353
  disabled: o = !1,
1335
- children: p,
1336
- ...c
1354
+ children: g,
1355
+ ...l
1337
1356
  }) => {
1338
- const [y, g] = I(c.defaultChecked || !1), d = () => {
1339
- g(!y), c.onChange && c.onChange();
1357
+ const [v, d] = I(l.defaultChecked || !1), h = () => {
1358
+ d(!v), l.onChange && l.onChange();
1340
1359
  };
1341
1360
  return /* @__PURE__ */ t.jsxs("label", { className: "blinq-checkbox", children: [
1342
1361
  /* @__PURE__ */ t.jsx(
1343
1362
  "input",
1344
1363
  {
1345
1364
  type: "checkbox",
1346
- checked: y,
1347
- onChange: d,
1365
+ checked: v,
1366
+ onChange: h,
1348
1367
  "data-size": e,
1349
1368
  disabled: o,
1350
- ...c
1369
+ ...l
1351
1370
  }
1352
1371
  ),
1353
1372
  /* @__PURE__ */ t.jsx("span", { className: "checkmark" }),
1354
- p
1373
+ g
1355
1374
  ] });
1356
1375
  }, ze = ({
1357
1376
  size: e = "md",
1358
1377
  disabled: o = !1,
1359
- children: p,
1360
- ...c
1378
+ children: g,
1379
+ ...l
1361
1380
  }) => {
1362
- const [y, g] = I(c.checked || !1), d = () => {
1363
- g(!y), c.onChange && c.onChange();
1381
+ const [v, d] = I(l.checked || !1), h = () => {
1382
+ d(!v), l.onChange && l.onChange();
1364
1383
  };
1365
1384
  return /* @__PURE__ */ t.jsxs("label", { className: "blinq-radio-button", children: [
1366
1385
  /* @__PURE__ */ t.jsx(
1367
1386
  "input",
1368
1387
  {
1369
1388
  type: "radio",
1370
- checked: y,
1371
- onChange: d,
1389
+ checked: v,
1390
+ onChange: h,
1372
1391
  "data-size": e,
1373
1392
  disabled: o,
1374
- ...c
1393
+ ...l
1375
1394
  }
1376
1395
  ),
1377
1396
  /* @__PURE__ */ t.jsx("span", { className: "checkmark" }),
1378
- p
1397
+ g
1379
1398
  ] });
1380
1399
  }, Xe = ({
1381
1400
  left: e,
1382
1401
  right: o,
1383
- onToggle: p,
1384
- value: c,
1385
- customToggleSwitchs: y
1402
+ onToggle: g,
1403
+ value: l,
1404
+ customToggleSwitchs: v
1386
1405
  }) => {
1387
- const g = (d, S) => {
1388
- S.stopPropagation(), p(d);
1406
+ const d = (h, f) => {
1407
+ f.stopPropagation(), g(h);
1389
1408
  };
1390
1409
  return /* @__PURE__ */ t.jsxs("div", { className: "toggle-switch", children: [
1391
1410
  /* @__PURE__ */ t.jsx(
1392
1411
  "div",
1393
1412
  {
1394
- className: `toggle-option ${c === e ? "active" : ""}`,
1395
- onClick: (d) => g(e, d),
1413
+ className: `toggle-option ${l === e ? "active" : ""}`,
1414
+ onClick: (h) => d(e, h),
1396
1415
  children: /* @__PURE__ */ t.jsx(
1397
- B,
1416
+ U,
1398
1417
  {
1399
1418
  bold: "bold",
1400
1419
  color: "textSecondary",
@@ -1408,10 +1427,10 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
1408
1427
  /* @__PURE__ */ t.jsx(
1409
1428
  "div",
1410
1429
  {
1411
- className: `toggle-option ${c === o ? "active" : ""}`,
1412
- onClick: (d) => g(o, d),
1430
+ className: `toggle-option ${l === o ? "active" : ""}`,
1431
+ onClick: (h) => d(o, h),
1413
1432
  children: /* @__PURE__ */ t.jsx(
1414
- B,
1433
+ U,
1415
1434
  {
1416
1435
  bold: "bold",
1417
1436
  color: "textSecondary",
@@ -1422,30 +1441,30 @@ const xe = /* @__PURE__ */ Me(Pe), Le = (e) => {
1422
1441
  )
1423
1442
  }
1424
1443
  ),
1425
- y && y.map(({ text: d, place: S }) => /* @__PURE__ */ t.jsx(
1444
+ v && v.map(({ text: h, place: f }) => /* @__PURE__ */ t.jsx(
1426
1445
  "div",
1427
1446
  {
1428
- className: `toggle-option ${c === S ? "active" : ""}`,
1429
- onClick: (v) => g(S, v),
1447
+ className: `toggle-option ${l === f ? "active" : ""}`,
1448
+ onClick: (s) => d(f, s),
1430
1449
  children: /* @__PURE__ */ t.jsx(
1431
- B,
1450
+ U,
1432
1451
  {
1433
1452
  bold: "bold",
1434
1453
  color: "textSecondary",
1435
1454
  category: "text",
1436
1455
  Size: "sm",
1437
- children: d
1456
+ children: h
1438
1457
  }
1439
1458
  )
1440
1459
  },
1441
- S
1460
+ f
1442
1461
  ))
1443
1462
  ] });
1444
1463
  };
1445
1464
  function qe({
1446
1465
  showFirst: e,
1447
1466
  firstComponent: o,
1448
- secondComponent: p
1467
+ secondComponent: g
1449
1468
  }) {
1450
1469
  return /* @__PURE__ */ t.jsxs(
1451
1470
  "div",
@@ -1480,7 +1499,7 @@ function qe({
1480
1499
  display: "flex",
1481
1500
  alignItems: "center"
1482
1501
  },
1483
- children: p
1502
+ children: g
1484
1503
  }
1485
1504
  )
1486
1505
  ]
@@ -1501,7 +1520,7 @@ export {
1501
1520
  $e as CustomTextArea,
1502
1521
  Xe as CustomToggleSwitch,
1503
1522
  qe as Transitioner,
1504
- B as TypographyCustom,
1523
+ U as TypographyCustom,
1505
1524
  na as isTextLarge,
1506
1525
  Qe as textShortner
1507
1526
  };