@arkyn/components 1.2.0 → 1.2.1

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 (36) hide show
  1. package/dist/bundle.js +704 -776
  2. package/dist/bundle.umd.cjs +11 -11
  3. package/dist/components/Form/FormError/index.d.ts +5 -1
  4. package/dist/components/Form/FormError/index.d.ts.map +1 -1
  5. package/dist/components/Form/FormError/index.js +2 -2
  6. package/dist/components/Input/CpfCpnjInput/getConfig.d.ts +1 -0
  7. package/dist/components/Input/CpfCpnjInput/getConfig.d.ts.map +1 -1
  8. package/dist/components/Input/CpfCpnjInput/getConfig.js +1 -1
  9. package/dist/components/Input/CurrencyInput/getConfig.d.ts +1 -0
  10. package/dist/components/Input/CurrencyInput/getConfig.d.ts.map +1 -1
  11. package/dist/components/Input/CurrencyInput/getConfig.js +1 -1
  12. package/dist/components/Input/MaskInput/getConfig.d.ts +1 -1
  13. package/dist/components/Input/MaskInput/getConfig.d.ts.map +1 -1
  14. package/dist/components/Input/MaskInput/getConfig.js +2 -2
  15. package/dist/components/Input/MaskInput/index.d.ts.map +1 -1
  16. package/dist/components/Input/MaskInput/index.js +58 -38
  17. package/dist/components/Input/SimpleInput/getConfig.d.ts +1 -0
  18. package/dist/components/Input/SimpleInput/getConfig.d.ts.map +1 -1
  19. package/dist/components/Input/SimpleInput/getConfig.js +1 -1
  20. package/dist/config/buildBadgeConfig.d.ts +1 -0
  21. package/dist/config/buildBadgeConfig.d.ts.map +1 -1
  22. package/dist/config/buildBreadcrumLinkConfig.d.ts +1 -0
  23. package/dist/config/buildBreadcrumLinkConfig.d.ts.map +1 -1
  24. package/dist/config/buildBreadcrumbConfig.d.ts +1 -0
  25. package/dist/config/buildBreadcrumbConfig.d.ts.map +1 -1
  26. package/dist/config/buildButtonConfig.d.ts +1 -0
  27. package/dist/config/buildButtonConfig.d.ts.map +1 -1
  28. package/dist/config/buildFormLabelConfig.d.ts +1 -0
  29. package/dist/config/buildFormLabelConfig.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/src/components/Form/FormError/index.tsx +7 -2
  32. package/src/components/Input/CpfCpnjInput/getConfig.tsx +1 -1
  33. package/src/components/Input/CurrencyInput/getConfig.tsx +1 -1
  34. package/src/components/Input/MaskInput/getConfig.tsx +2 -1
  35. package/src/components/Input/MaskInput/index.tsx +66 -74
  36. package/src/components/Input/SimpleInput/getConfig.tsx +1 -1
package/dist/bundle.js CHANGED
@@ -1,9 +1,9 @@
1
- import Xe, { createContext as He, useRef as de, useId as kr, useContext as Ze, useState as ie } from "react";
2
- import { Loader2 as oe, ChevronRight as Me, X as Nr } from "lucide-react";
3
- import { useActionData as $r, useLocation as Pr, Link as Ir } from "@remix-run/react";
4
- import { InputMask as wr } from "@react-input/mask";
5
- import { AnimatePresence as Tr, motion as Ue } from "framer-motion";
6
- var ke = { exports: {} }, le = {};
1
+ import Xe, { createContext as He, useRef as ge, useId as Nr, useContext as Ze, useState as ue } from "react";
2
+ import { Loader2 as le, ChevronRight as Me, X as Pr } from "lucide-react";
3
+ import { useActionData as wr, useLocation as $r, Link as Ir } from "@remix-run/react";
4
+ import { InputMask as Tr } from "@react-input/mask";
5
+ import { AnimatePresence as Or, motion as Ue } from "framer-motion";
6
+ var ke = { exports: {} }, oe = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -14,24 +14,24 @@ var ke = { exports: {} }, le = {};
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
16
  var Ke;
17
- function Or() {
17
+ function Fr() {
18
18
  if (Ke)
19
- return le;
19
+ return oe;
20
20
  Ke = 1;
21
- var n = Xe, s = Symbol.for("react.element"), t = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
22
- function h(u, f, m) {
23
- var v, x = {}, R = null, E = null;
24
- m !== void 0 && (R = "" + m), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && (E = f.ref);
25
- for (v in f)
26
- a.call(f, v) && !l.hasOwnProperty(v) && (x[v] = f[v]);
27
- if (u && u.defaultProps)
28
- for (v in f = u.defaultProps, f)
29
- x[v] === void 0 && (x[v] = f[v]);
30
- return { $$typeof: s, type: u, key: R, ref: E, props: x, _owner: c.current };
21
+ var n = Xe, t = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function h(f, d, m) {
23
+ var g, x = {}, E = null, k = null;
24
+ m !== void 0 && (E = "" + m), d.key !== void 0 && (E = "" + d.key), d.ref !== void 0 && (k = d.ref);
25
+ for (g in d)
26
+ o.call(d, g) && !l.hasOwnProperty(g) && (x[g] = d[g]);
27
+ if (f && f.defaultProps)
28
+ for (g in d = f.defaultProps, d)
29
+ x[g] === void 0 && (x[g] = d[g]);
30
+ return { $$typeof: t, type: f, key: E, ref: k, props: x, _owner: c.current };
31
31
  }
32
- return le.Fragment = t, le.jsx = h, le.jsxs = h, le;
32
+ return oe.Fragment = i, oe.jsx = h, oe.jsxs = h, oe;
33
33
  }
34
- var fe = {};
34
+ var ce = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -42,63 +42,63 @@ var fe = {};
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
44
  var Je;
45
- function Fr() {
45
+ function Lr() {
46
46
  return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
47
- var n = Xe, s = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), P = Symbol.iterator, I = "@@iterator";
48
- function w(e) {
47
+ var n = Xe, t = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), f = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), w = Symbol.iterator, T = "@@iterator";
48
+ function O(e) {
49
49
  if (e === null || typeof e != "object")
50
50
  return null;
51
- var r = P && e[P] || e[I];
51
+ var r = w && e[w] || e[T];
52
52
  return typeof r == "function" ? r : null;
53
53
  }
54
- var b = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
- function g(e) {
54
+ var R = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ function y(e) {
56
56
  {
57
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), d = 1; d < r; d++)
58
- i[d - 1] = arguments[d];
59
- C("error", e, i);
57
+ for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
58
+ s[u - 1] = arguments[u];
59
+ S("error", e, s);
60
60
  }
61
61
  }
62
- function C(e, r, i) {
62
+ function S(e, r, s) {
63
63
  {
64
- var d = b.ReactDebugCurrentFrame, _ = d.getStackAddendum();
65
- _ !== "" && (r += "%s", i = i.concat([_]));
66
- var S = i.map(function(y) {
67
- return String(y);
64
+ var u = R.ReactDebugCurrentFrame, b = u.getStackAddendum();
65
+ b !== "" && (r += "%s", s = s.concat([b]));
66
+ var _ = s.map(function(p) {
67
+ return String(p);
68
68
  });
69
- S.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, S);
69
+ _.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
70
70
  }
71
71
  }
72
- var O = !1, A = !1, F = !1, L = !1, B = !1, T;
73
- T = Symbol.for("react.module.reference");
74
- function D(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === l || B || e === c || e === m || e === v || L || e === E || O || A || F || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === x || e.$$typeof === h || e.$$typeof === u || e.$$typeof === f || // This needs to include all possible module reference object
72
+ var F = !1, W = !1, z = !1, D = !1, B = !1, $;
73
+ $ = Symbol.for("react.module.reference");
74
+ function M(e) {
75
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === l || B || e === c || e === m || e === g || D || e === k || F || W || z || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === x || e.$$typeof === h || e.$$typeof === f || e.$$typeof === d || // This needs to include all possible module reference object
76
76
  // types supported by any Flight configuration anywhere since
77
77
  // we don't know which Flight build this will end up being used
78
78
  // with.
79
- e.$$typeof === T || e.getModuleId !== void 0));
79
+ e.$$typeof === $ || e.getModuleId !== void 0));
80
80
  }
81
- function k(e, r, i) {
82
- var d = e.displayName;
83
- if (d)
84
- return d;
85
- var _ = r.displayName || r.name || "";
86
- return _ !== "" ? i + "(" + _ + ")" : i;
81
+ function P(e, r, s) {
82
+ var u = e.displayName;
83
+ if (u)
84
+ return u;
85
+ var b = r.displayName || r.name || "";
86
+ return b !== "" ? s + "(" + b + ")" : s;
87
87
  }
88
- function z(e) {
88
+ function G(e) {
89
89
  return e.displayName || "Context";
90
90
  }
91
- function j(e) {
91
+ function C(e) {
92
92
  if (e == null)
93
93
  return null;
94
- if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
94
+ if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
95
95
  return e.displayName || e.name || null;
96
96
  if (typeof e == "string")
97
97
  return e;
98
98
  switch (e) {
99
- case a:
99
+ case o:
100
100
  return "Fragment";
101
- case t:
101
+ case i:
102
102
  return "Portal";
103
103
  case l:
104
104
  return "Profiler";
@@ -106,26 +106,26 @@ function Fr() {
106
106
  return "StrictMode";
107
107
  case m:
108
108
  return "Suspense";
109
- case v:
109
+ case g:
110
110
  return "SuspenseList";
111
111
  }
112
112
  if (typeof e == "object")
113
113
  switch (e.$$typeof) {
114
- case u:
114
+ case f:
115
115
  var r = e;
116
- return z(r) + ".Consumer";
116
+ return G(r) + ".Consumer";
117
117
  case h:
118
- var i = e;
119
- return z(i._context) + ".Provider";
120
- case f:
121
- return k(e, e.render, "ForwardRef");
118
+ var s = e;
119
+ return G(s._context) + ".Provider";
120
+ case d:
121
+ return P(e, e.render, "ForwardRef");
122
122
  case x:
123
- var d = e.displayName || null;
124
- return d !== null ? d : j(e.type) || "Memo";
125
- case R: {
126
- var _ = e, S = _._payload, y = _._init;
123
+ var u = e.displayName || null;
124
+ return u !== null ? u : C(e.type) || "Memo";
125
+ case E: {
126
+ var b = e, _ = b._payload, p = b._init;
127
127
  try {
128
- return j(y(S));
128
+ return C(p(_));
129
129
  } catch {
130
130
  return null;
131
131
  }
@@ -133,18 +133,18 @@ function Fr() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var Y = Object.assign, K = 0, q, Z, Q, ee, re, ne, M;
137
- function J() {
136
+ var A = Object.assign, U = 0, J, H, Z, Q, ee, re, V;
137
+ function K() {
138
138
  }
139
- J.__reactDisabledLog = !0;
140
- function G() {
139
+ K.__reactDisabledLog = !0;
140
+ function q() {
141
141
  {
142
- if (K === 0) {
143
- q = console.log, Z = console.info, Q = console.warn, ee = console.error, re = console.group, ne = console.groupCollapsed, M = console.groupEnd;
142
+ if (U === 0) {
143
+ J = console.log, H = console.info, Z = console.warn, Q = console.error, ee = console.group, re = console.groupCollapsed, V = console.groupEnd;
144
144
  var e = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
147
- value: J,
147
+ value: K,
148
148
  writable: !0
149
149
  };
150
150
  Object.defineProperties(console, {
@@ -157,194 +157,194 @@ function Fr() {
157
157
  groupEnd: e
158
158
  });
159
159
  }
160
- K++;
160
+ U++;
161
161
  }
162
162
  }
163
- function $e() {
163
+ function Pe() {
164
164
  {
165
- if (K--, K === 0) {
165
+ if (U--, U === 0) {
166
166
  var e = {
167
167
  configurable: !0,
168
168
  enumerable: !0,
169
169
  writable: !0
170
170
  };
171
171
  Object.defineProperties(console, {
172
- log: Y({}, e, {
173
- value: q
172
+ log: A({}, e, {
173
+ value: J
174
+ }),
175
+ info: A({}, e, {
176
+ value: H
174
177
  }),
175
- info: Y({}, e, {
178
+ warn: A({}, e, {
176
179
  value: Z
177
180
  }),
178
- warn: Y({}, e, {
181
+ error: A({}, e, {
179
182
  value: Q
180
183
  }),
181
- error: Y({}, e, {
184
+ group: A({}, e, {
182
185
  value: ee
183
186
  }),
184
- group: Y({}, e, {
187
+ groupCollapsed: A({}, e, {
185
188
  value: re
186
189
  }),
187
- groupCollapsed: Y({}, e, {
188
- value: ne
189
- }),
190
- groupEnd: Y({}, e, {
191
- value: M
190
+ groupEnd: A({}, e, {
191
+ value: V
192
192
  })
193
193
  });
194
194
  }
195
- K < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ U < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
196
  }
197
197
  }
198
- var xe = b.ReactCurrentDispatcher, ye;
199
- function he(e, r, i) {
198
+ var ye = R.ReactCurrentDispatcher, be;
199
+ function de(e, r, s) {
200
200
  {
201
- if (ye === void 0)
201
+ if (be === void 0)
202
202
  try {
203
203
  throw Error();
204
- } catch (_) {
205
- var d = _.stack.trim().match(/\n( *(at )?)/);
206
- ye = d && d[1] || "";
204
+ } catch (b) {
205
+ var u = b.stack.trim().match(/\n( *(at )?)/);
206
+ be = u && u[1] || "";
207
207
  }
208
208
  return `
209
- ` + ye + e;
209
+ ` + be + e;
210
210
  }
211
211
  }
212
- var be = !1, me;
212
+ var xe = !1, he;
213
213
  {
214
- var nr = typeof WeakMap == "function" ? WeakMap : Map;
215
- me = new nr();
214
+ var tr = typeof WeakMap == "function" ? WeakMap : Map;
215
+ he = new tr();
216
216
  }
217
- function Pe(e, r) {
218
- if (!e || be)
217
+ function we(e, r) {
218
+ if (!e || xe)
219
219
  return "";
220
220
  {
221
- var i = me.get(e);
222
- if (i !== void 0)
223
- return i;
221
+ var s = he.get(e);
222
+ if (s !== void 0)
223
+ return s;
224
224
  }
225
- var d;
226
- be = !0;
227
- var _ = Error.prepareStackTrace;
225
+ var u;
226
+ xe = !0;
227
+ var b = Error.prepareStackTrace;
228
228
  Error.prepareStackTrace = void 0;
229
- var S;
230
- S = xe.current, xe.current = null, G();
229
+ var _;
230
+ _ = ye.current, ye.current = null, q();
231
231
  try {
232
232
  if (r) {
233
- var y = function() {
233
+ var p = function() {
234
234
  throw Error();
235
235
  };
236
- if (Object.defineProperty(y.prototype, "props", {
236
+ if (Object.defineProperty(p.prototype, "props", {
237
237
  set: function() {
238
238
  throw Error();
239
239
  }
240
240
  }), typeof Reflect == "object" && Reflect.construct) {
241
241
  try {
242
- Reflect.construct(y, []);
243
- } catch (V) {
244
- d = V;
242
+ Reflect.construct(p, []);
243
+ } catch (L) {
244
+ u = L;
245
245
  }
246
- Reflect.construct(e, [], y);
246
+ Reflect.construct(e, [], p);
247
247
  } else {
248
248
  try {
249
- y.call();
250
- } catch (V) {
251
- d = V;
249
+ p.call();
250
+ } catch (L) {
251
+ u = L;
252
252
  }
253
- e.call(y.prototype);
253
+ e.call(p.prototype);
254
254
  }
255
255
  } else {
256
256
  try {
257
257
  throw Error();
258
- } catch (V) {
259
- d = V;
258
+ } catch (L) {
259
+ u = L;
260
260
  }
261
261
  e();
262
262
  }
263
- } catch (V) {
264
- if (V && d && typeof V.stack == "string") {
265
- for (var p = V.stack.split(`
266
- `), W = d.stack.split(`
267
- `), N = p.length - 1, $ = W.length - 1; N >= 1 && $ >= 0 && p[N] !== W[$]; )
268
- $--;
269
- for (; N >= 1 && $ >= 0; N--, $--)
270
- if (p[N] !== W[$]) {
271
- if (N !== 1 || $ !== 1)
263
+ } catch (L) {
264
+ if (L && u && typeof L.stack == "string") {
265
+ for (var v = L.stack.split(`
266
+ `), I = u.stack.split(`
267
+ `), j = v.length - 1, N = I.length - 1; j >= 1 && N >= 0 && v[j] !== I[N]; )
268
+ N--;
269
+ for (; j >= 1 && N >= 0; j--, N--)
270
+ if (v[j] !== I[N]) {
271
+ if (j !== 1 || N !== 1)
272
272
  do
273
- if (N--, $--, $ < 0 || p[N] !== W[$]) {
274
- var U = `
275
- ` + p[N].replace(" at new ", " at ");
276
- return e.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", e.displayName)), typeof e == "function" && me.set(e, U), U;
273
+ if (j--, N--, N < 0 || v[j] !== I[N]) {
274
+ var Y = `
275
+ ` + v[j].replace(" at new ", " at ");
276
+ return e.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", e.displayName)), typeof e == "function" && he.set(e, Y), Y;
277
277
  }
278
- while (N >= 1 && $ >= 0);
278
+ while (j >= 1 && N >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
- be = !1, xe.current = S, $e(), Error.prepareStackTrace = _;
283
+ xe = !1, ye.current = _, Pe(), Error.prepareStackTrace = b;
284
284
  }
285
- var se = e ? e.displayName || e.name : "", H = se ? he(se) : "";
286
- return typeof e == "function" && me.set(e, H), H;
285
+ var te = e ? e.displayName || e.name : "", X = te ? de(te) : "";
286
+ return typeof e == "function" && he.set(e, X), X;
287
287
  }
288
- function tr(e, r, i) {
289
- return Pe(e, !1);
288
+ function sr(e, r, s) {
289
+ return we(e, !1);
290
290
  }
291
- function sr(e) {
291
+ function ir(e) {
292
292
  var r = e.prototype;
293
293
  return !!(r && r.isReactComponent);
294
294
  }
295
- function ve(e, r, i) {
295
+ function me(e, r, s) {
296
296
  if (e == null)
297
297
  return "";
298
298
  if (typeof e == "function")
299
- return Pe(e, sr(e));
299
+ return we(e, ir(e));
300
300
  if (typeof e == "string")
301
- return he(e);
301
+ return de(e);
302
302
  switch (e) {
303
303
  case m:
304
- return he("Suspense");
305
- case v:
306
- return he("SuspenseList");
304
+ return de("Suspense");
305
+ case g:
306
+ return de("SuspenseList");
307
307
  }
308
308
  if (typeof e == "object")
309
309
  switch (e.$$typeof) {
310
- case f:
311
- return tr(e.render);
310
+ case d:
311
+ return sr(e.render);
312
312
  case x:
313
- return ve(e.type, r, i);
314
- case R: {
315
- var d = e, _ = d._payload, S = d._init;
313
+ return me(e.type, r, s);
314
+ case E: {
315
+ var u = e, b = u._payload, _ = u._init;
316
316
  try {
317
- return ve(S(_), r, i);
317
+ return me(_(b), r, s);
318
318
  } catch {
319
319
  }
320
320
  }
321
321
  }
322
322
  return "";
323
323
  }
324
- var ce = Object.prototype.hasOwnProperty, Ie = {}, we = b.ReactDebugCurrentFrame;
325
- function ge(e) {
324
+ var ie = Object.prototype.hasOwnProperty, $e = {}, Ie = R.ReactDebugCurrentFrame;
325
+ function ve(e) {
326
326
  if (e) {
327
- var r = e._owner, i = ve(e.type, e._source, r ? r.type : null);
328
- we.setExtraStackFrame(i);
327
+ var r = e._owner, s = me(e.type, e._source, r ? r.type : null);
328
+ Ie.setExtraStackFrame(s);
329
329
  } else
330
- we.setExtraStackFrame(null);
330
+ Ie.setExtraStackFrame(null);
331
331
  }
332
- function ir(e, r, i, d, _) {
332
+ function ar(e, r, s, u, b) {
333
333
  {
334
- var S = Function.call.bind(ce);
335
- for (var y in e)
336
- if (S(e, y)) {
337
- var p = void 0;
334
+ var _ = Function.call.bind(ie);
335
+ for (var p in e)
336
+ if (_(e, p)) {
337
+ var v = void 0;
338
338
  try {
339
- if (typeof e[y] != "function") {
340
- var W = Error((d || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
- throw W.name = "Invariant Violation", W;
339
+ if (typeof e[p] != "function") {
340
+ var I = Error((u || "React class") + ": " + s + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
+ throw I.name = "Invariant Violation", I;
342
342
  }
343
- p = e[y](r, y, d, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
- } catch (N) {
345
- p = N;
343
+ v = e[p](r, p, u, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ } catch (j) {
345
+ v = j;
346
346
  }
347
- p && !(p instanceof Error) && (ge(_), g("%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).", d || "React class", i, y, typeof p), ge(null)), p instanceof Error && !(p.message in Ie) && (Ie[p.message] = !0, ge(_), g("Failed %s type: %s", i, p.message), ge(null));
347
+ v && !(v instanceof Error) && (ve(b), y("%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).", u || "React class", s, p, typeof v), ve(null)), v instanceof Error && !(v.message in $e) && ($e[v.message] = !0, ve(b), y("Failed %s type: %s", s, v.message), ve(null));
348
348
  }
349
349
  }
350
350
  }
@@ -352,13 +352,13 @@ function Fr() {
352
352
  function _e(e) {
353
353
  return or(e);
354
354
  }
355
- function ar(e) {
355
+ function cr(e) {
356
356
  {
357
- var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
- return i;
357
+ var r = typeof Symbol == "function" && Symbol.toStringTag, s = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
+ return s;
359
359
  }
360
360
  }
361
- function cr(e) {
361
+ function ur(e) {
362
362
  try {
363
363
  return Te(e), !1;
364
364
  } catch {
@@ -369,124 +369,124 @@ function Fr() {
369
369
  return "" + e;
370
370
  }
371
371
  function Oe(e) {
372
- if (cr(e))
373
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(e)), Te(e);
372
+ if (ur(e))
373
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", cr(e)), Te(e);
374
374
  }
375
- var ue = b.ReactCurrentOwner, ur = {
375
+ var ae = R.ReactCurrentOwner, lr = {
376
376
  key: !0,
377
377
  ref: !0,
378
378
  __self: !0,
379
379
  __source: !0
380
380
  }, Fe, Le, Re;
381
381
  Re = {};
382
- function lr(e) {
383
- if (ce.call(e, "ref")) {
382
+ function fr(e) {
383
+ if (ie.call(e, "ref")) {
384
384
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
385
385
  if (r && r.isReactWarning)
386
386
  return !1;
387
387
  }
388
388
  return e.ref !== void 0;
389
389
  }
390
- function fr(e) {
391
- if (ce.call(e, "key")) {
390
+ function dr(e) {
391
+ if (ie.call(e, "key")) {
392
392
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
393
393
  if (r && r.isReactWarning)
394
394
  return !1;
395
395
  }
396
396
  return e.key !== void 0;
397
397
  }
398
- function dr(e, r) {
399
- if (typeof e.ref == "string" && ue.current && r && ue.current.stateNode !== r) {
400
- var i = j(ue.current.type);
401
- Re[i] || (g('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', j(ue.current.type), e.ref), Re[i] = !0);
398
+ function hr(e, r) {
399
+ if (typeof e.ref == "string" && ae.current && r && ae.current.stateNode !== r) {
400
+ var s = C(ae.current.type);
401
+ Re[s] || (y('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', C(ae.current.type), e.ref), Re[s] = !0);
402
402
  }
403
403
  }
404
- function hr(e, r) {
404
+ function mr(e, r) {
405
405
  {
406
- var i = function() {
407
- Fe || (Fe = !0, g("%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));
406
+ var s = function() {
407
+ Fe || (Fe = !0, y("%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));
408
408
  };
409
- i.isReactWarning = !0, Object.defineProperty(e, "key", {
410
- get: i,
409
+ s.isReactWarning = !0, Object.defineProperty(e, "key", {
410
+ get: s,
411
411
  configurable: !0
412
412
  });
413
413
  }
414
414
  }
415
- function mr(e, r) {
415
+ function vr(e, r) {
416
416
  {
417
- var i = function() {
418
- Le || (Le = !0, g("%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));
417
+ var s = function() {
418
+ Le || (Le = !0, y("%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));
419
419
  };
420
- i.isReactWarning = !0, Object.defineProperty(e, "ref", {
421
- get: i,
420
+ s.isReactWarning = !0, Object.defineProperty(e, "ref", {
421
+ get: s,
422
422
  configurable: !0
423
423
  });
424
424
  }
425
425
  }
426
- var vr = function(e, r, i, d, _, S, y) {
427
- var p = {
426
+ var pr = function(e, r, s, u, b, _, p) {
427
+ var v = {
428
428
  // This tag allows us to uniquely identify this as a React Element
429
- $$typeof: s,
429
+ $$typeof: t,
430
430
  // Built-in properties that belong on the element
431
431
  type: e,
432
432
  key: r,
433
- ref: i,
434
- props: y,
433
+ ref: s,
434
+ props: p,
435
435
  // Record the component responsible for creating this element.
436
- _owner: S
436
+ _owner: _
437
437
  };
438
- return p._store = {}, Object.defineProperty(p._store, "validated", {
438
+ return v._store = {}, Object.defineProperty(v._store, "validated", {
439
439
  configurable: !1,
440
440
  enumerable: !1,
441
441
  writable: !0,
442
442
  value: !1
443
- }), Object.defineProperty(p, "_self", {
443
+ }), Object.defineProperty(v, "_self", {
444
444
  configurable: !1,
445
445
  enumerable: !1,
446
446
  writable: !1,
447
- value: d
448
- }), Object.defineProperty(p, "_source", {
447
+ value: u
448
+ }), Object.defineProperty(v, "_source", {
449
449
  configurable: !1,
450
450
  enumerable: !1,
451
451
  writable: !1,
452
- value: _
453
- }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
452
+ value: b
453
+ }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
454
454
  };
455
- function gr(e, r, i, d, _) {
455
+ function gr(e, r, s, u, b) {
456
456
  {
457
- var S, y = {}, p = null, W = null;
458
- i !== void 0 && (Oe(i), p = "" + i), fr(r) && (Oe(r.key), p = "" + r.key), lr(r) && (W = r.ref, dr(r, _));
459
- for (S in r)
460
- ce.call(r, S) && !ur.hasOwnProperty(S) && (y[S] = r[S]);
457
+ var _, p = {}, v = null, I = null;
458
+ s !== void 0 && (Oe(s), v = "" + s), dr(r) && (Oe(r.key), v = "" + r.key), fr(r) && (I = r.ref, hr(r, b));
459
+ for (_ in r)
460
+ ie.call(r, _) && !lr.hasOwnProperty(_) && (p[_] = r[_]);
461
461
  if (e && e.defaultProps) {
462
- var N = e.defaultProps;
463
- for (S in N)
464
- y[S] === void 0 && (y[S] = N[S]);
462
+ var j = e.defaultProps;
463
+ for (_ in j)
464
+ p[_] === void 0 && (p[_] = j[_]);
465
465
  }
466
- if (p || W) {
467
- var $ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- p && hr(y, $), W && mr(y, $);
466
+ if (v || I) {
467
+ var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
+ v && mr(p, N), I && vr(p, N);
469
469
  }
470
- return vr(e, p, W, _, d, ue.current, y);
470
+ return pr(e, v, I, b, u, ae.current, p);
471
471
  }
472
472
  }
473
- var Se = b.ReactCurrentOwner, ze = b.ReactDebugCurrentFrame;
474
- function te(e) {
473
+ var Ee = R.ReactCurrentOwner, ze = R.ReactDebugCurrentFrame;
474
+ function ne(e) {
475
475
  if (e) {
476
- var r = e._owner, i = ve(e.type, e._source, r ? r.type : null);
477
- ze.setExtraStackFrame(i);
476
+ var r = e._owner, s = me(e.type, e._source, r ? r.type : null);
477
+ ze.setExtraStackFrame(s);
478
478
  } else
479
479
  ze.setExtraStackFrame(null);
480
480
  }
481
- var Ee;
482
- Ee = !1;
483
- function Ce(e) {
484
- return typeof e == "object" && e !== null && e.$$typeof === s;
481
+ var Ce;
482
+ Ce = !1;
483
+ function Se(e) {
484
+ return typeof e == "object" && e !== null && e.$$typeof === t;
485
485
  }
486
486
  function De() {
487
487
  {
488
- if (Se.current) {
489
- var e = j(Se.current.type);
488
+ if (Ee.current) {
489
+ var e = C(Ee.current.type);
490
490
  if (e)
491
491
  return `
492
492
 
@@ -495,41 +495,41 @@ Check the render method of \`` + e + "`.";
495
495
  return "";
496
496
  }
497
497
  }
498
- function pr(e) {
498
+ function yr(e) {
499
499
  {
500
500
  if (e !== void 0) {
501
- var r = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
501
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
502
502
  return `
503
503
 
504
- Check your code at ` + r + ":" + i + ".";
504
+ Check your code at ` + r + ":" + s + ".";
505
505
  }
506
506
  return "";
507
507
  }
508
508
  }
509
- var We = {};
510
- function xr(e) {
509
+ var Ae = {};
510
+ function br(e) {
511
511
  {
512
512
  var r = De();
513
513
  if (!r) {
514
- var i = typeof e == "string" ? e : e.displayName || e.name;
515
- i && (r = `
514
+ var s = typeof e == "string" ? e : e.displayName || e.name;
515
+ s && (r = `
516
516
 
517
- Check the top-level render call using <` + i + ">.");
517
+ Check the top-level render call using <` + s + ">.");
518
518
  }
519
519
  return r;
520
520
  }
521
521
  }
522
- function Ae(e, r) {
522
+ function We(e, r) {
523
523
  {
524
524
  if (!e._store || e._store.validated || e.key != null)
525
525
  return;
526
526
  e._store.validated = !0;
527
- var i = xr(r);
528
- if (We[i])
527
+ var s = br(r);
528
+ if (Ae[s])
529
529
  return;
530
- We[i] = !0;
531
- var d = "";
532
- e && e._owner && e._owner !== Se.current && (d = " It was passed a child from " + j(e._owner.type) + "."), te(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, d), te(null);
530
+ Ae[s] = !0;
531
+ var u = "";
532
+ e && e._owner && e._owner !== Ee.current && (u = " It was passed a child from " + C(e._owner.type) + "."), ne(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, u), ne(null);
533
533
  }
534
534
  }
535
535
  function Be(e, r) {
@@ -537,214 +537,214 @@ Check the top-level render call using <` + i + ">.");
537
537
  if (typeof e != "object")
538
538
  return;
539
539
  if (_e(e))
540
- for (var i = 0; i < e.length; i++) {
541
- var d = e[i];
542
- Ce(d) && Ae(d, r);
540
+ for (var s = 0; s < e.length; s++) {
541
+ var u = e[s];
542
+ Se(u) && We(u, r);
543
543
  }
544
- else if (Ce(e))
544
+ else if (Se(e))
545
545
  e._store && (e._store.validated = !0);
546
546
  else if (e) {
547
- var _ = w(e);
548
- if (typeof _ == "function" && _ !== e.entries)
549
- for (var S = _.call(e), y; !(y = S.next()).done; )
550
- Ce(y.value) && Ae(y.value, r);
547
+ var b = O(e);
548
+ if (typeof b == "function" && b !== e.entries)
549
+ for (var _ = b.call(e), p; !(p = _.next()).done; )
550
+ Se(p.value) && We(p.value, r);
551
551
  }
552
552
  }
553
553
  }
554
- function yr(e) {
554
+ function xr(e) {
555
555
  {
556
556
  var r = e.type;
557
557
  if (r == null || typeof r == "string")
558
558
  return;
559
- var i;
559
+ var s;
560
560
  if (typeof r == "function")
561
- i = r.propTypes;
562
- else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
561
+ s = r.propTypes;
562
+ else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
563
563
  // Inner props are checked in the reconciler.
564
564
  r.$$typeof === x))
565
- i = r.propTypes;
565
+ s = r.propTypes;
566
566
  else
567
567
  return;
568
- if (i) {
569
- var d = j(r);
570
- ir(i, e.props, "prop", d, e);
571
- } else if (r.PropTypes !== void 0 && !Ee) {
572
- Ee = !0;
573
- var _ = j(r);
574
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
568
+ if (s) {
569
+ var u = C(r);
570
+ ar(s, e.props, "prop", u, e);
571
+ } else if (r.PropTypes !== void 0 && !Ce) {
572
+ Ce = !0;
573
+ var b = C(r);
574
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
575
575
  }
576
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
577
  }
578
578
  }
579
- function br(e) {
579
+ function _r(e) {
580
580
  {
581
- for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
582
- var d = r[i];
583
- if (d !== "children" && d !== "key") {
584
- te(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), te(null);
581
+ for (var r = Object.keys(e.props), s = 0; s < r.length; s++) {
582
+ var u = r[s];
583
+ if (u !== "children" && u !== "key") {
584
+ ne(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), ne(null);
585
585
  break;
586
586
  }
587
587
  }
588
- e.ref !== null && (te(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
588
+ e.ref !== null && (ne(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
589
589
  }
590
590
  }
591
591
  var Ve = {};
592
- function Ye(e, r, i, d, _, S) {
592
+ function Ye(e, r, s, u, b, _) {
593
593
  {
594
- var y = D(e);
595
- if (!y) {
596
- var p = "";
597
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (p += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
- var W = pr(_);
599
- W ? p += W : p += De();
600
- var N;
601
- e === null ? N = "null" : _e(e) ? N = "array" : e !== void 0 && e.$$typeof === s ? (N = "<" + (j(e.type) || "Unknown") + " />", p = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, p);
594
+ var p = M(e);
595
+ if (!p) {
596
+ var v = "";
597
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
+ var I = yr(b);
599
+ I ? v += I : v += De();
600
+ var j;
601
+ e === null ? j = "null" : _e(e) ? j = "array" : e !== void 0 && e.$$typeof === t ? (j = "<" + (C(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, v);
602
602
  }
603
- var $ = gr(e, r, i, _, S);
604
- if ($ == null)
605
- return $;
606
- if (y) {
607
- var U = r.children;
608
- if (U !== void 0)
609
- if (d)
610
- if (_e(U)) {
611
- for (var se = 0; se < U.length; se++)
612
- Be(U[se], e);
613
- Object.freeze && Object.freeze(U);
603
+ var N = gr(e, r, s, b, _);
604
+ if (N == null)
605
+ return N;
606
+ if (p) {
607
+ var Y = r.children;
608
+ if (Y !== void 0)
609
+ if (u)
610
+ if (_e(Y)) {
611
+ for (var te = 0; te < Y.length; te++)
612
+ Be(Y[te], e);
613
+ Object.freeze && Object.freeze(Y);
614
614
  } else
615
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
615
+ y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
616
  else
617
- Be(U, e);
617
+ Be(Y, e);
618
618
  }
619
- if (ce.call(r, "key")) {
620
- var H = j(e), V = Object.keys(r).filter(function(jr) {
621
- return jr !== "key";
622
- }), je = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
623
- if (!Ve[H + je]) {
624
- var Cr = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
625
- g(`A props object containing a "key" prop is being spread into JSX:
619
+ if (ie.call(r, "key")) {
620
+ var X = C(e), L = Object.keys(r).filter(function(kr) {
621
+ return kr !== "key";
622
+ }), je = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
623
+ if (!Ve[X + je]) {
624
+ var jr = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
625
+ y(`A props object containing a "key" prop is being spread into JSX:
626
626
  let props = %s;
627
627
  <%s {...props} />
628
628
  React keys must be passed directly to JSX without using spread:
629
629
  let props = %s;
630
- <%s key={someKey} {...props} />`, je, H, Cr, H), Ve[H + je] = !0;
630
+ <%s key={someKey} {...props} />`, je, X, jr, X), Ve[X + je] = !0;
631
631
  }
632
632
  }
633
- return e === a ? br($) : yr($), $;
633
+ return e === o ? _r(N) : xr(N), N;
634
634
  }
635
635
  }
636
- function _r(e, r, i) {
637
- return Ye(e, r, i, !0);
636
+ function Rr(e, r, s) {
637
+ return Ye(e, r, s, !0);
638
638
  }
639
- function Rr(e, r, i) {
640
- return Ye(e, r, i, !1);
639
+ function Er(e, r, s) {
640
+ return Ye(e, r, s, !1);
641
641
  }
642
- var Sr = Rr, Er = _r;
643
- fe.Fragment = a, fe.jsx = Sr, fe.jsxs = Er;
644
- }()), fe;
642
+ var Cr = Er, Sr = Rr;
643
+ ce.Fragment = o, ce.jsx = Cr, ce.jsxs = Sr;
644
+ }()), ce;
645
645
  }
646
- process.env.NODE_ENV === "production" ? ke.exports = Or() : ke.exports = Fr();
647
- var o = ke.exports;
648
- function pe(n, s) {
649
- return s ? /* @__PURE__ */ o.jsx(s, { size: n, strokeWidth: 2.5 }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
646
+ process.env.NODE_ENV === "production" ? ke.exports = Fr() : ke.exports = Lr();
647
+ var a = ke.exports;
648
+ function pe(n, t) {
649
+ return t ? /* @__PURE__ */ a.jsx(t, { size: n, strokeWidth: 2.5 }) : /* @__PURE__ */ a.jsx(a.Fragment, {});
650
650
  }
651
- function Lr(n) {
651
+ function zr(n) {
652
652
  const {
653
- variant: s = "ghost",
654
- scheme: t = "primary",
655
- size: a = "md",
653
+ variant: t = "ghost",
654
+ scheme: i = "primary",
655
+ size: o = "md",
656
656
  leftIcon: c,
657
657
  rightIcon: l,
658
658
  className: h = "",
659
- children: u,
660
- ...f
661
- } = n, v = { md: 12, lg: 14 }[a];
659
+ children: f,
660
+ ...d
661
+ } = n, g = { md: 12, lg: 14 }[o];
662
662
  return {
663
- className: `arkyn_badge ${s} ${t} ${a} ${h}`.trim(),
664
- children: u,
665
- leftIcon: pe(v, c),
666
- rightIcon: pe(v, l),
667
- ...f
663
+ className: `arkyn_badge ${t} ${i} ${o} ${h}`.trim(),
664
+ children: f,
665
+ leftIcon: pe(g, c),
666
+ rightIcon: pe(g, l),
667
+ ...d
668
668
  };
669
669
  }
670
- function fn(n) {
671
- const { leftIcon: s, children: t, rightIcon: a, ...c } = Lr(n);
672
- return /* @__PURE__ */ o.jsxs("div", { ...c, children: [
673
- s,
670
+ function ln(n) {
671
+ const { leftIcon: t, children: i, rightIcon: o, ...c } = zr(n);
672
+ return /* @__PURE__ */ a.jsxs("div", { ...c, children: [
674
673
  t,
675
- a
674
+ i,
675
+ o
676
676
  ] });
677
677
  }
678
- function dn(n) {
678
+ function fn(n) {
679
679
  const {
680
- className: s,
681
- orientation: t = "horizontal",
682
- ...a
683
- } = n, c = `arkyn_divider ${t} ${s}`;
684
- return /* @__PURE__ */ o.jsx("div", { className: c, ...a });
680
+ className: t,
681
+ orientation: i = "horizontal",
682
+ ...o
683
+ } = n, c = `arkyn_divider ${i} ${t}`;
684
+ return /* @__PURE__ */ a.jsx("div", { className: c, ...o });
685
685
  }
686
- function zr(n) {
686
+ function Dr(n) {
687
687
  const {
688
- isLoading: s = !1,
689
- scheme: t = "primary",
690
- variant: a = "solid",
688
+ isLoading: t = !1,
689
+ scheme: i = "primary",
690
+ variant: o = "solid",
691
691
  loadingText: c,
692
692
  size: l = "md",
693
693
  leftIcon: h,
694
- rightIcon: u,
695
- disabled: f,
694
+ rightIcon: f,
695
+ disabled: d,
696
696
  className: m = "",
697
- children: v,
697
+ children: g,
698
698
  ...x
699
- } = n, E = { xs: 12, sm: 16, md: 20, lg: 24 }[l];
699
+ } = n, k = { xs: 12, sm: 16, md: 20, lg: 24 }[l];
700
700
  return {
701
- className: `arkyn_button loading_text_${!!c} ${a} ${t} ${l} loading_${s} ${m}`.trim(),
701
+ className: `arkyn_button loading_text_${!!c} ${o} ${i} ${l} loading_${t} ${m}`.trim(),
702
702
  loadingText: c,
703
- children: v,
704
- iconSize: E,
705
- disabled: f || s,
706
- leftIcon: pe(E, h),
707
- rightIcon: pe(E, u),
703
+ children: g,
704
+ iconSize: k,
705
+ disabled: d || t,
706
+ leftIcon: pe(k, h),
707
+ rightIcon: pe(k, f),
708
708
  ...x
709
709
  };
710
710
  }
711
- function hn(n) {
712
- const { leftIcon: s, rightIcon: t, iconSize: a, children: c, loadingText: l, ...h } = zr(n);
713
- return /* @__PURE__ */ o.jsxs("button", { ...h, children: [
714
- /* @__PURE__ */ o.jsxs("div", { className: "spinner", children: [
715
- /* @__PURE__ */ o.jsx(oe, { size: a, strokeWidth: 2.5 }),
711
+ function dn(n) {
712
+ const { leftIcon: t, rightIcon: i, iconSize: o, children: c, loadingText: l, ...h } = Dr(n);
713
+ return /* @__PURE__ */ a.jsxs("button", { ...h, children: [
714
+ /* @__PURE__ */ a.jsxs("div", { className: "spinner", children: [
715
+ /* @__PURE__ */ a.jsx(le, { size: o, strokeWidth: 2.5 }),
716
716
  l && l
717
717
  ] }),
718
- /* @__PURE__ */ o.jsxs("div", { className: "content", children: [
719
- s,
718
+ /* @__PURE__ */ a.jsxs("div", { className: "content", children: [
719
+ t,
720
720
  c,
721
- t
721
+ i
722
722
  ] })
723
723
  ] });
724
724
  }
725
725
  const Qe = He({});
726
- function mn({ children: n, ...s }) {
727
- var u, f;
728
- const t = $r(), a = de(null), c = ((u = a.current) == null ? void 0 : u.name) || "", l = ((f = t == null ? void 0 : t.fieldErrors) == null ? void 0 : f[c]) || null, h = kr();
729
- return /* @__PURE__ */ o.jsx(Qe.Provider, { value: { error: l, id: h, inputRef: a }, children: /* @__PURE__ */ o.jsx("section", { className: "arkyn_form_controller", ...s, children: n }) });
726
+ function hn({ children: n, ...t }) {
727
+ var f, d;
728
+ const i = wr(), o = ge(null), c = ((f = o.current) == null ? void 0 : f.name) || "", l = ((d = i == null ? void 0 : i.fieldErrors) == null ? void 0 : d[c]) || null, h = Nr();
729
+ return /* @__PURE__ */ a.jsx(Qe.Provider, { value: { error: l, id: h, inputRef: o }, children: /* @__PURE__ */ a.jsx("section", { className: "arkyn_form_controller", ...t, children: n }) });
730
730
  }
731
- function ae() {
731
+ function fe() {
732
732
  return Ze(Qe);
733
733
  }
734
- function vn() {
735
- const { error: n } = ae();
736
- return n ? /* @__PURE__ */ o.jsx("strong", { className: "arkyn_form_error", children: n }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
734
+ function mn({ children: n }) {
735
+ const { error: t } = fe();
736
+ return t ? /* @__PURE__ */ a.jsx("strong", { className: "arkyn_form_error", children: n || t }) : /* @__PURE__ */ a.jsx(a.Fragment, {});
737
737
  }
738
- function Dr(n) {
739
- const { showAsterisk: s = !1, className: t = "", ...a } = n;
738
+ function Ar(n) {
739
+ const { showAsterisk: t = !1, className: i = "", ...o } = n;
740
740
  return {
741
- className: `arkyn_form_label ${s ? "show-asterisk" : ""} ${t}`.trim(),
742
- ...a
741
+ className: `arkyn_form_label ${t ? "show-asterisk" : ""} ${i}`.trim(),
742
+ ...o
743
743
  };
744
744
  }
745
- function gn(n) {
746
- const { id: s } = ae();
747
- return /* @__PURE__ */ o.jsx("label", { ...Dr(n), htmlFor: s });
745
+ function vn(n) {
746
+ const { id: t } = fe();
747
+ return /* @__PURE__ */ a.jsx("label", { ...Ar(n), htmlFor: t });
748
748
  }
749
749
  const qe = {
750
750
  xs: 12,
@@ -754,528 +754,456 @@ const qe = {
754
754
  };
755
755
  function pn(n) {
756
756
  const {
757
- isLoading: s = !1,
758
- scheme: t = "primary",
759
- variant: a = "solid",
757
+ isLoading: t = !1,
758
+ scheme: i = "primary",
759
+ variant: o = "solid",
760
760
  size: c = "md",
761
761
  icon: l,
762
762
  disabled: h,
763
- className: u = "",
764
- ...f
765
- } = n, m = `arkyn_icon_button ${a} ${t} ${c} loading_${s} ${u}`;
766
- return /* @__PURE__ */ o.jsxs(
763
+ className: f = "",
764
+ ...d
765
+ } = n, m = `arkyn_icon_button ${o} ${i} ${c} loading_${t} ${f}`;
766
+ return /* @__PURE__ */ a.jsxs(
767
767
  "button",
768
768
  {
769
- disabled: h || s,
769
+ disabled: h || t,
770
770
  className: m.trim(),
771
- ...f,
771
+ ...d,
772
772
  children: [
773
- /* @__PURE__ */ o.jsx("div", { className: "spinner", children: /* @__PURE__ */ o.jsx(oe, { size: qe[c], strokeWidth: 2.5 }) }),
774
- /* @__PURE__ */ o.jsx("div", { className: "content " + c, children: /* @__PURE__ */ o.jsx(l, { size: qe[c], strokeWidth: 2.5 }) })
773
+ /* @__PURE__ */ a.jsx("div", { className: "spinner", children: /* @__PURE__ */ a.jsx(le, { size: qe[c], strokeWidth: 2.5 }) }),
774
+ /* @__PURE__ */ a.jsx("div", { className: "content " + c, children: /* @__PURE__ */ a.jsx(l, { size: qe[c], strokeWidth: 2.5 }) })
775
775
  ]
776
776
  }
777
777
  );
778
778
  }
779
- function X(n, s, t) {
779
+ function se(n, t, i) {
780
780
  if (!n)
781
- return /* @__PURE__ */ o.jsx(o.Fragment, {});
781
+ return /* @__PURE__ */ a.jsx(a.Fragment, {});
782
782
  if (typeof n == "string")
783
- return /* @__PURE__ */ o.jsx("p", { className: t, children: n });
784
- const a = n;
785
- return /* @__PURE__ */ o.jsx("p", { className: t, children: /* @__PURE__ */ o.jsx(a, { color: "var(--secondary-600)", size: s, strokeWidth: 2.5 }) });
783
+ return /* @__PURE__ */ a.jsx("p", { className: i, children: n });
784
+ const o = n;
785
+ return /* @__PURE__ */ a.jsx("p", { className: i, children: /* @__PURE__ */ a.jsx(o, { color: "var(--secondary-600)", size: t, strokeWidth: 2.5 }) });
786
786
  }
787
- function Wr(n, s) {
787
+ function Wr(n, t) {
788
788
  const {
789
- isLoading: t,
790
- isError: a,
789
+ isLoading: i,
790
+ isError: o,
791
791
  size: c = "md",
792
792
  className: l = "",
793
793
  variant: h = "solid",
794
- prefix: u,
795
- sufix: f,
794
+ prefix: f,
795
+ sufix: d,
796
796
  leftIcon: m,
797
- rightIcon: v,
797
+ rightIcon: g,
798
798
  disabled: x,
799
- readOnly: R,
800
- onFocus: E,
801
- onBlur: P,
802
- title: I,
803
- style: w,
804
- onChange: b,
805
- ...g
806
- } = n, C = v ? "right" : "left", T = `arkyn_input ${u ? "hasPrefix" : ""} ${f ? "hasSufix" : ""} ${h} ${c} ${x || R || t ? "opacity" : ""} ${a ? "errored" : ""} ${s ? "focused" : ""} ${l}`, k = { md: 14, lg: 16 }[c];
799
+ readOnly: E,
800
+ onFocus: k,
801
+ onBlur: w,
802
+ title: T,
803
+ style: O,
804
+ onChange: R,
805
+ ...y
806
+ } = n, S = g ? "right" : "left", $ = `arkyn_input ${f ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${c} ${x || E || i ? "opacity" : ""} ${o ? "errored" : ""} ${t ? "focused" : ""} ${l}`, P = { md: 20, lg: 20 }[c];
807
807
  return {
808
- isLoading: t,
809
- className: T,
810
- prefix: X(u, k, "prefix"),
811
- sufix: X(f, k, "sufix"),
808
+ isLoading: i,
809
+ className: $,
810
+ prefix: se(f, P, "prefix"),
811
+ sufix: se(d, P, "sufix"),
812
812
  LeftIcon: m,
813
- RightIcon: v,
813
+ RightIcon: g,
814
814
  disabled: x,
815
- readOnly: R,
816
- onFocus: E,
817
- onBlur: P,
818
- title: I,
819
- style: w,
820
- onChange: b,
821
- loadingPosition: C,
822
- iconSize: k,
823
- Spinner: /* @__PURE__ */ o.jsx(oe, { className: "spinner", size: k, strokeWidth: 2.5 }),
824
- ...g
815
+ readOnly: E,
816
+ onFocus: k,
817
+ onBlur: w,
818
+ title: T,
819
+ style: O,
820
+ onChange: R,
821
+ loadingPosition: S,
822
+ iconSize: P,
823
+ Spinner: /* @__PURE__ */ a.jsx(le, { className: "spinner", size: P, strokeWidth: 2.5 }),
824
+ ...y
825
825
  };
826
826
  }
827
827
  function Ne(n) {
828
828
  return n && n.replace(/[^0-9]/g, "");
829
829
  }
830
- function Ar(n, s) {
831
- let t = "", a = 0;
830
+ function Br(n, t) {
831
+ let i = "", o = 0;
832
832
  return Array.from(n).forEach((c, l) => {
833
- s[l + a].match(/[0-9]/) || (t += s[l + a], a++), t += c;
834
- }), t;
833
+ t[l + o].match(/[0-9]/) || (i += t[l + o], o++), i += c;
834
+ }), i;
835
835
  }
836
- function Br(n) {
836
+ function Vr(n) {
837
837
  return n.length > 11 ? "CNPJ" : "CPF";
838
838
  }
839
839
  const er = {
840
840
  CPF: "999.999.999-999",
841
841
  CNPJ: "99.999.999/9999-99"
842
- }, Vr = Ne(er.CNPJ).length;
843
- function Yr(n) {
844
- const [s, t] = ie(!1), [a, c] = ie(
842
+ }, Yr = Ne(er.CNPJ).length;
843
+ function Mr(n) {
844
+ const [t, i] = ue(!1), [o, c] = ue(
845
845
  Ne((n == null ? void 0 : n.defaultValue) || "")
846
- ), l = de(null), { inputRef: h, id: u, error: f } = ae(), m = h || l, v = n.isError || !!f, {
846
+ ), l = ge(null), { inputRef: h, id: f, error: d } = fe(), m = h || l, g = n.isError || !!d, {
847
847
  disabled: x,
848
- title: R,
849
- style: E,
850
- className: P,
851
- prefix: I,
852
- sufix: w,
853
- iconSize: b,
854
- loadingPosition: g,
855
- isLoading: C,
856
- LeftIcon: O,
857
- readOnly: A,
858
- onFocus: F,
859
- onBlur: L,
848
+ title: E,
849
+ style: k,
850
+ className: w,
851
+ prefix: T,
852
+ sufix: O,
853
+ iconSize: R,
854
+ loadingPosition: y,
855
+ isLoading: S,
856
+ LeftIcon: F,
857
+ readOnly: W,
858
+ onFocus: z,
859
+ onBlur: D,
860
860
  RightIcon: B,
861
- Spinner: T,
862
- onChange: D,
863
- value: k,
864
- defaultValue: z = "",
865
- ...j
866
- } = Wr({ ...n, id: u, isError: v }, s), Y = O && !C, K = B && !C, q = g === "left" && C, Z = g === "right" && C;
867
- function Q() {
868
- x || !(m != null && m.current) || (t(!0), m.current.focus());
861
+ Spinner: $,
862
+ onChange: M,
863
+ value: P,
864
+ defaultValue: G = "",
865
+ ...C
866
+ } = Wr({ ...n, id: f, isError: g }, t), A = F && !S, U = B && !S, J = y === "left" && S, H = y === "right" && S;
867
+ function Z() {
868
+ x || !(m != null && m.current) || (i(!0), m.current.focus());
869
869
  }
870
- function ee(M) {
871
- let J = Ne(M.target.value);
872
- const G = Br(J);
873
- J.length > Vr || (J = Ar(J, er[G]), M.target.value = J, c(J), D && D(M));
870
+ function Q(V) {
871
+ let K = Ne(V.target.value);
872
+ const q = Vr(K);
873
+ K.length > Yr || (K = Br(K, er[q]), V.target.value = K, c(K), M && M(V));
874
874
  }
875
- function re(M) {
876
- t(!0), F && F(M);
875
+ function ee(V) {
876
+ i(!0), z && z(V);
877
877
  }
878
- function ne(M) {
879
- t(!1), L && L(M);
878
+ function re(V) {
879
+ i(!1), D && D(V);
880
880
  }
881
- return /* @__PURE__ */ o.jsxs(
881
+ return /* @__PURE__ */ a.jsxs(
882
882
  "section",
883
883
  {
884
- title: R,
885
- style: E,
886
- onClick: Q,
887
- className: P,
884
+ title: E,
885
+ style: k,
886
+ onClick: Z,
887
+ className: w,
888
888
  children: [
889
- I,
890
- q && T,
891
- Y && /* @__PURE__ */ o.jsx(O, { size: b, strokeWidth: 2.5 }),
892
- /* @__PURE__ */ o.jsx(
889
+ T,
890
+ J && $,
891
+ A && /* @__PURE__ */ a.jsx(F, { size: R, strokeWidth: 2.5 }),
892
+ /* @__PURE__ */ a.jsx(
893
893
  "input",
894
894
  {
895
- disabled: x || C,
896
- readOnly: A,
895
+ disabled: x || S,
896
+ readOnly: W,
897
897
  ref: m,
898
- value: k || a,
899
- onFocus: re,
900
- onChange: ee,
901
- onBlur: ne,
902
- ...j
898
+ value: P || o,
899
+ onFocus: ee,
900
+ onChange: Q,
901
+ onBlur: re,
902
+ ...C
903
903
  }
904
904
  ),
905
- K && /* @__PURE__ */ o.jsx(B, { size: b, strokeWidth: 2.5 }),
906
- Z && T,
907
- w
905
+ U && /* @__PURE__ */ a.jsx(B, { size: R, strokeWidth: 2.5 }),
906
+ H && $,
907
+ O
908
908
  ]
909
909
  }
910
910
  );
911
911
  }
912
- function Mr(n, s) {
912
+ function Ur(n, t) {
913
913
  const {
914
- isLoading: t,
915
- isError: a,
914
+ isLoading: i,
915
+ isError: o,
916
916
  size: c = "md",
917
917
  className: l = "",
918
918
  variant: h = "solid",
919
- prefix: u,
920
- sufix: f,
919
+ prefix: f,
920
+ sufix: d,
921
921
  leftIcon: m,
922
- rightIcon: v,
922
+ rightIcon: g,
923
923
  disabled: x,
924
- readOnly: R,
925
- onFocus: E,
926
- onBlur: P,
927
- title: I,
928
- style: w,
929
- showCents: b = !1,
930
- max: g = 1e9,
931
- onChange: C,
932
- ...O
933
- } = n, A = v ? "right" : "left", k = `arkyn_input ${u ? "hasPrefix" : ""} ${f ? "hasSufix" : ""} ${h} ${c} ${x || R || t ? "opacity" : ""} ${a ? "errored" : ""} ${s ? "focused" : ""} ${l}`, j = { md: 14, lg: 16 }[c];
924
+ readOnly: E,
925
+ onFocus: k,
926
+ onBlur: w,
927
+ title: T,
928
+ style: O,
929
+ showCents: R = !1,
930
+ max: y = 1e9,
931
+ onChange: S,
932
+ ...F
933
+ } = n, W = g ? "right" : "left", P = `arkyn_input ${f ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${c} ${x || E || i ? "opacity" : ""} ${o ? "errored" : ""} ${t ? "focused" : ""} ${l}`, C = { md: 20, lg: 20 }[c];
934
934
  return {
935
- isLoading: t,
936
- className: k,
937
- prefix: X(u, j, "prefix"),
938
- sufix: X(f, j, "sufix"),
935
+ isLoading: i,
936
+ className: P,
937
+ prefix: se(f, C, "prefix"),
938
+ sufix: se(d, C, "sufix"),
939
939
  LeftIcon: m,
940
- RightIcon: v,
940
+ RightIcon: g,
941
941
  disabled: x,
942
- readOnly: R,
943
- onFocus: E,
944
- onBlur: P,
945
- title: I,
946
- style: w,
947
- max: g,
948
- onChange: C,
949
- showCents: b,
950
- loadingPosition: A,
951
- iconSize: j,
952
- Spinner: /* @__PURE__ */ o.jsx(oe, { className: "spinner", size: j, strokeWidth: 2.5 }),
953
- ...O
942
+ readOnly: E,
943
+ onFocus: k,
944
+ onBlur: w,
945
+ title: T,
946
+ style: O,
947
+ max: y,
948
+ onChange: S,
949
+ showCents: R,
950
+ loadingPosition: W,
951
+ iconSize: C,
952
+ Spinner: /* @__PURE__ */ a.jsx(le, { className: "spinner", size: C, strokeWidth: 2.5 }),
953
+ ...F
954
954
  };
955
955
  }
956
- const Ur = /^[1-9]{1}$/, Kr = /^[0-9]{1}$/, Ge = 8;
957
- function Jr(n, s) {
956
+ const Kr = /^[1-9]{1}$/, Jr = /^[0-9]{1}$/, Ge = 8;
957
+ function qr(n, t) {
958
958
  if (n === 0)
959
959
  return "";
960
- const t = (n / 100).toLocaleString("pt-BR", {
960
+ const i = (n / 100).toLocaleString("pt-BR", {
961
961
  style: "currency",
962
962
  currency: "BRL"
963
963
  });
964
- return s ? t : t.replace("R$", "").trim();
964
+ return t ? i : i.replace("R$", "").trim();
965
965
  }
966
- function qr(n) {
967
- const { currencyValue: s, event: t, max: a, setCurrencyValue: c } = n, { key: l, keyCode: h } = t;
968
- if (s === 0 && !Ur.test(l) || s !== 0 && !Kr.test(l) && h !== Ge)
966
+ function Gr(n) {
967
+ const { currencyValue: t, event: i, max: o, setCurrencyValue: c } = n, { key: l, keyCode: h } = i;
968
+ if (t === 0 && !Kr.test(l) || t !== 0 && !Jr.test(l) && h !== Ge)
969
969
  return;
970
- const u = s.toString();
971
- let f;
970
+ const f = t.toString();
971
+ let d;
972
972
  if (h !== Ge) {
973
- const m = s === 0 ? l : `${u}${l}`;
974
- f = Number.parseInt(m, 10);
973
+ const m = t === 0 ? l : `${f}${l}`;
974
+ d = Number.parseInt(m, 10);
975
975
  } else {
976
- const m = u.slice(0, -1);
977
- f = m === "" ? 0 : Number.parseInt(m, 10);
976
+ const m = f.slice(0, -1);
977
+ d = m === "" ? 0 : Number.parseInt(m, 10);
978
978
  }
979
- f > Number(a) || c(f);
979
+ d > Number(o) || c(d);
980
980
  }
981
- function Gr(n) {
982
- const [s, t] = ie(!1), [a, c] = ie(n.defaultValue || 0), l = de(null), { inputRef: h, id: u, error: f } = ae(), m = h || l, v = n.isError || !!f, {
981
+ function Xr(n) {
982
+ const [t, i] = ue(!1), [o, c] = ue(n.defaultValue || 0), l = ge(null), { inputRef: h, id: f, error: d } = fe(), m = h || l, g = n.isError || !!d, {
983
983
  disabled: x,
984
- title: R,
985
- style: E,
986
- className: P,
987
- prefix: I,
988
- sufix: w,
989
- iconSize: b,
990
- loadingPosition: g,
991
- isLoading: C,
992
- LeftIcon: O,
993
- readOnly: A,
994
- onFocus: F,
995
- onBlur: L,
984
+ title: E,
985
+ style: k,
986
+ className: w,
987
+ prefix: T,
988
+ sufix: O,
989
+ iconSize: R,
990
+ loadingPosition: y,
991
+ isLoading: S,
992
+ LeftIcon: F,
993
+ readOnly: W,
994
+ onFocus: z,
995
+ onBlur: D,
996
996
  RightIcon: B,
997
- Spinner: T,
998
- value: D,
999
- max: k,
1000
- onKeyDown: z,
1001
- onChange: j,
1002
- showCents: Y,
1003
- ...K
1004
- } = Mr({ ...n, id: u, isError: v }, s), q = O && !C, Z = B && !C, Q = g === "left" && C, ee = g === "right" && C;
1005
- function re() {
1006
- x || !(m != null && m.current) || (t(!0), m.current.focus());
997
+ Spinner: $,
998
+ value: M,
999
+ max: P,
1000
+ onKeyDown: G,
1001
+ onChange: C,
1002
+ showCents: A,
1003
+ ...U
1004
+ } = Ur({ ...n, id: f, isError: g }, t), J = F && !S, H = B && !S, Z = y === "left" && S, Q = y === "right" && S;
1005
+ function ee() {
1006
+ x || !(m != null && m.current) || (i(!0), m.current.focus());
1007
1007
  }
1008
- function ne(G) {
1009
- qr({ currencyValue: a, event: G, max: k, setCurrencyValue: c }), j && j(a), z && z(G);
1008
+ function re(q) {
1009
+ Gr({ currencyValue: o, event: q, max: P, setCurrencyValue: c }), C && C(o), G && G(q);
1010
1010
  }
1011
- function M(G) {
1012
- t(!0), F && F(G);
1011
+ function V(q) {
1012
+ i(!0), z && z(q);
1013
1013
  }
1014
- function J(G) {
1015
- t(!1), L && L(G);
1014
+ function K(q) {
1015
+ i(!1), D && D(q);
1016
1016
  }
1017
- return /* @__PURE__ */ o.jsxs(
1017
+ return /* @__PURE__ */ a.jsxs(
1018
1018
  "section",
1019
1019
  {
1020
- title: R,
1021
- style: E,
1022
- onClick: re,
1023
- className: P,
1020
+ title: E,
1021
+ style: k,
1022
+ onClick: ee,
1023
+ className: w,
1024
1024
  children: [
1025
- I,
1026
- Q && T,
1027
- q && /* @__PURE__ */ o.jsx(O, { size: b, strokeWidth: 2.5 }),
1028
- /* @__PURE__ */ o.jsx(
1025
+ T,
1026
+ Z && $,
1027
+ J && /* @__PURE__ */ a.jsx(F, { size: R, strokeWidth: 2.5 }),
1028
+ /* @__PURE__ */ a.jsx(
1029
1029
  "input",
1030
1030
  {
1031
- value: Jr(D || a, Y),
1032
- onKeyDown: ne,
1033
- disabled: x || C,
1034
- readOnly: A,
1031
+ value: qr(M || o, A),
1032
+ onKeyDown: re,
1033
+ disabled: x || S,
1034
+ readOnly: W,
1035
1035
  ref: m,
1036
- onFocus: M,
1036
+ onFocus: V,
1037
1037
  onChange: () => {
1038
1038
  },
1039
- onBlur: J,
1040
- ...K
1039
+ onBlur: K,
1040
+ ...U
1041
1041
  }
1042
1042
  ),
1043
- ee && T,
1044
- Z && /* @__PURE__ */ o.jsx(B, { size: b, strokeWidth: 2.5 }),
1045
- w
1046
- ]
1047
- }
1048
- );
1049
- }
1050
- function Xr(n, s) {
1051
- const {
1052
- isLoading: t,
1053
- isError: a,
1054
- size: c = "md",
1055
- className: l = "",
1056
- variant: h = "solid",
1057
- prefix: u,
1058
- sufix: f,
1059
- leftIcon: m,
1060
- rightIcon: v,
1061
- disabled: x,
1062
- readOnly: R,
1063
- onFocus: E,
1064
- onBlur: P,
1065
- title: I,
1066
- style: w,
1067
- onChange: b,
1068
- showMask: g = !0,
1069
- ...C
1070
- } = n, O = v ? "right" : "left", D = `arkyn_input ${u ? "hasPrefix" : ""} ${f ? "hasSufix" : ""} ${h} ${c} ${x || R || t ? "opacity" : ""} ${a ? "errored" : ""} ${s ? "focused" : ""} ${l}`, z = { md: 14, lg: 16 }[c];
1071
- return {
1072
- isLoading: t,
1073
- className: D,
1074
- prefix: X(u, z, "prefix"),
1075
- sufix: X(f, z, "sufix"),
1076
- LeftIcon: m,
1077
- RightIcon: v,
1078
- disabled: x,
1079
- readOnly: R,
1080
- onFocus: E,
1081
- onBlur: P,
1082
- title: I,
1083
- style: w,
1084
- onChange: b,
1085
- loadingPosition: O,
1086
- iconSize: z,
1087
- showMask: g,
1088
- Spinner: /* @__PURE__ */ o.jsx(oe, { className: "spinner", size: z, strokeWidth: 2.5 }),
1089
- ...C
1090
- };
1091
- }
1092
- function Hr(n) {
1093
- const [s, t] = ie(!1), a = de(null), { inputRef: c, id: l, error: h } = ae(), u = c || a, f = n.isError || !!h, {
1094
- disabled: m,
1095
- title: v,
1096
- style: x,
1097
- className: R,
1098
- prefix: E,
1099
- sufix: P,
1100
- iconSize: I,
1101
- loadingPosition: w,
1102
- isLoading: b,
1103
- LeftIcon: g,
1104
- readOnly: C,
1105
- onFocus: O,
1106
- onBlur: A,
1107
- RightIcon: F,
1108
- Spinner: L,
1109
- ...B
1110
- } = Xr({ ...n, id: l, isError: f }, s), T = g && !b, D = F && !b, k = w === "left" && b, z = w === "right" && b;
1111
- function j() {
1112
- m || !(u != null && u.current) || (t(!0), u.current.focus());
1113
- }
1114
- return /* @__PURE__ */ o.jsxs(
1115
- "section",
1116
- {
1117
- title: v,
1118
- style: x,
1119
- onClick: j,
1120
- className: R,
1121
- children: [
1122
- E,
1123
- k && L,
1124
- T && /* @__PURE__ */ o.jsx(g, { size: I, strokeWidth: 2.5 }),
1125
- /* @__PURE__ */ o.jsx(
1126
- wr,
1127
- {}
1128
- ),
1129
- D && /* @__PURE__ */ o.jsx(F, { size: I, strokeWidth: 2.5 }),
1130
- z && L,
1131
- P
1043
+ Q && $,
1044
+ H && /* @__PURE__ */ a.jsx(B, { size: R, strokeWidth: 2.5 }),
1045
+ O
1132
1046
  ]
1133
1047
  }
1134
1048
  );
1135
1049
  }
1136
- function Zr(n, s) {
1050
+ function Hr(n, t) {
1137
1051
  const {
1138
- isLoading: t,
1139
- isError: a,
1052
+ isLoading: i,
1053
+ isError: o,
1140
1054
  size: c = "md",
1141
1055
  className: l = "",
1142
1056
  variant: h = "solid",
1143
- prefix: u,
1144
- sufix: f,
1057
+ prefix: f,
1058
+ sufix: d,
1145
1059
  leftIcon: m,
1146
- rightIcon: v,
1060
+ rightIcon: g,
1147
1061
  disabled: x,
1148
- readOnly: R,
1149
- onFocus: E,
1150
- onBlur: P,
1151
- title: I,
1152
- style: w,
1153
- onChange: b,
1154
- ...g
1155
- } = n, C = v ? "right" : "left", T = `arkyn_input ${u ? "hasPrefix" : ""} ${f ? "hasSufix" : ""} ${h} ${c} ${x || R || t ? "opacity" : ""} ${a ? "errored" : ""} ${s ? "focused" : ""} ${l}`, k = { md: 14, lg: 16 }[c];
1062
+ readOnly: E,
1063
+ onFocus: k,
1064
+ onBlur: w,
1065
+ title: T,
1066
+ style: O,
1067
+ onChange: R,
1068
+ ...y
1069
+ } = n, S = g ? "right" : "left", $ = `arkyn_input ${f ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${c} ${x || E || i ? "opacity" : ""} ${o ? "errored" : ""} ${t ? "focused" : ""} ${l}`, P = { md: 20, lg: 20 }[c];
1156
1070
  return {
1157
- isLoading: t,
1158
- className: T,
1159
- prefix: X(u, k, "prefix"),
1160
- sufix: X(f, k, "sufix"),
1071
+ isLoading: i,
1072
+ className: $,
1073
+ prefix: se(f, P, "prefix"),
1074
+ sufix: se(d, P, "sufix"),
1161
1075
  LeftIcon: m,
1162
- RightIcon: v,
1076
+ RightIcon: g,
1163
1077
  disabled: x,
1164
- readOnly: R,
1165
- onFocus: E,
1166
- onBlur: P,
1167
- title: I,
1168
- style: w,
1169
- onChange: b,
1170
- loadingPosition: C,
1171
- iconSize: k,
1172
- Spinner: /* @__PURE__ */ o.jsx(oe, { className: "spinner", size: k, strokeWidth: 2.5 }),
1173
- ...g
1078
+ readOnly: E,
1079
+ onFocus: k,
1080
+ onBlur: w,
1081
+ title: T,
1082
+ style: O,
1083
+ onChange: R,
1084
+ loadingPosition: S,
1085
+ iconSize: P,
1086
+ Spinner: /* @__PURE__ */ a.jsx(le, { className: "spinner", size: P, strokeWidth: 2.5 }),
1087
+ ...y
1174
1088
  };
1175
1089
  }
1176
- function Qr(n) {
1177
- const [s, t] = ie(!1), a = de(null), { inputRef: c, id: l, error: h } = ae(), u = c || a, f = n.isError || !!h, {
1090
+ function rr(n) {
1091
+ const [t, i] = ue(!1), o = ge(null), { inputRef: c, id: l, error: h } = fe(), f = c || o, d = n.isError || !!h, {
1178
1092
  disabled: m,
1179
- title: v,
1093
+ title: g,
1180
1094
  style: x,
1181
- className: R,
1182
- prefix: E,
1183
- sufix: P,
1184
- iconSize: I,
1185
- loadingPosition: w,
1186
- isLoading: b,
1187
- LeftIcon: g,
1188
- readOnly: C,
1189
- onFocus: O,
1190
- onBlur: A,
1191
- RightIcon: F,
1192
- Spinner: L,
1095
+ className: E,
1096
+ prefix: k,
1097
+ sufix: w,
1098
+ iconSize: T,
1099
+ loadingPosition: O,
1100
+ isLoading: R,
1101
+ LeftIcon: y,
1102
+ readOnly: S,
1103
+ onFocus: F,
1104
+ onBlur: W,
1105
+ RightIcon: z,
1106
+ Spinner: D,
1193
1107
  ...B
1194
- } = Zr({ ...n, id: l, isError: f }, s), T = g && !b, D = F && !b, k = w === "left" && b, z = w === "right" && b;
1195
- function j() {
1196
- m || !(u != null && u.current) || (t(!0), u.current.focus());
1108
+ } = Hr({ ...n, id: l, isError: d }, t), $ = y && !R, M = z && !R, P = O === "left" && R, G = O === "right" && R;
1109
+ function C() {
1110
+ m || !(f != null && f.current) || (i(!0), f.current.focus());
1197
1111
  }
1198
- function Y(q) {
1199
- t(!0), O && O(q);
1112
+ function A(J) {
1113
+ i(!0), F && F(J);
1200
1114
  }
1201
- function K(q) {
1202
- t(!1), A && A(q);
1115
+ function U(J) {
1116
+ i(!1), W && W(J);
1203
1117
  }
1204
- return /* @__PURE__ */ o.jsxs(
1118
+ return /* @__PURE__ */ a.jsxs(
1205
1119
  "section",
1206
1120
  {
1207
- title: v,
1121
+ title: g,
1208
1122
  style: x,
1209
- onClick: j,
1210
- className: R,
1123
+ onClick: C,
1124
+ className: E,
1211
1125
  children: [
1212
- E,
1213
- k && L,
1214
- T && /* @__PURE__ */ o.jsx(g, { size: I, strokeWidth: 2.5 }),
1215
- /* @__PURE__ */ o.jsx(
1126
+ k,
1127
+ P && D,
1128
+ $ && /* @__PURE__ */ a.jsx(y, { size: T, strokeWidth: 2.5 }),
1129
+ /* @__PURE__ */ a.jsx(
1216
1130
  "input",
1217
1131
  {
1218
- disabled: m || b,
1219
- readOnly: C,
1220
- ref: u,
1221
- onFocus: Y,
1222
- onBlur: K,
1132
+ disabled: m || R,
1133
+ readOnly: S,
1134
+ ref: f,
1135
+ onFocus: A,
1136
+ onBlur: U,
1223
1137
  ...B
1224
1138
  }
1225
1139
  ),
1226
- D && /* @__PURE__ */ o.jsx(F, { size: I, strokeWidth: 2.5 }),
1227
- z && L,
1228
- P
1140
+ M && /* @__PURE__ */ a.jsx(z, { size: T, strokeWidth: 2.5 }),
1141
+ G && D,
1142
+ w
1229
1143
  ]
1230
1144
  }
1231
1145
  );
1232
1146
  }
1233
- function xn(n) {
1234
- return n.type === "currency" ? /* @__PURE__ */ o.jsx(Gr, { ...n }) : n.type === "masked" ? /* @__PURE__ */ o.jsx(Hr, { ...n }) : n.type === "cpf-cpnj" ? /* @__PURE__ */ o.jsx(Yr, { ...n }) : /* @__PURE__ */ o.jsx(Qr, { ...n });
1147
+ function Zr(n) {
1148
+ return (
1149
+ // <section
1150
+ // title={title}
1151
+ // style={style}
1152
+ // onClick={handleSectionClick}
1153
+ // className={className}
1154
+ // >
1155
+ // {prefix}
1156
+ // {showLeftSpinner && Spinner}
1157
+ // {showLeftIcon && <LeftIcon size={iconSize} strokeWidth={2.5} />}
1158
+ /* @__PURE__ */ a.jsx(Tr, { component: rr, ...n, type: "text" })
1159
+ );
1235
1160
  }
1236
- function en(n) {
1237
- const { className: s = "", ...t } = n;
1238
- return { className: `arkyn_breadcrumb ${s}`.trim(), ...t };
1161
+ function gn(n) {
1162
+ return n.type === "currency" ? /* @__PURE__ */ a.jsx(Xr, { ...n }) : n.type === "masked" ? /* @__PURE__ */ a.jsx(Zr, { ...n }) : n.type === "cpf-cpnj" ? /* @__PURE__ */ a.jsx(Mr, { ...n }) : /* @__PURE__ */ a.jsx(rr, { ...n });
1239
1163
  }
1240
- function rn(n) {
1241
- const { pathname: s } = Pr(), {
1242
- className: t = "",
1243
- disabled: a = !1,
1164
+ function Qr(n) {
1165
+ const { className: t = "", ...i } = n;
1166
+ return { className: `arkyn_breadcrumb ${t}`.trim(), ...i };
1167
+ }
1168
+ function en(n) {
1169
+ const { pathname: t } = $r(), {
1170
+ className: i = "",
1171
+ disabled: o = !1,
1244
1172
  to: c,
1245
1173
  ...l
1246
- } = n, h = s === c ? "active" : "inactive", u = `arkyn_breadcrumb_link ${h} ${t}`;
1174
+ } = n, h = t === c ? "active" : "inactive", f = `arkyn_breadcrumb_link ${h} ${i}`;
1247
1175
  return {
1248
1176
  to: c,
1249
- className: u.trim(),
1250
- disabled: a || h === "active",
1177
+ className: f.trim(),
1178
+ disabled: o || h === "active",
1251
1179
  ...l
1252
1180
  };
1253
1181
  }
1254
1182
  function yn(n) {
1255
- const { className: s, ...t } = en(n);
1256
- return /* @__PURE__ */ o.jsx("nav", { className: s, ...t });
1183
+ const { className: t, ...i } = Qr(n);
1184
+ return /* @__PURE__ */ a.jsx("nav", { className: t, ...i });
1257
1185
  }
1258
1186
  function bn(n) {
1259
- const { children: s, className: t, disabled: a, ...c } = rn(n);
1260
- return a ? /* @__PURE__ */ o.jsxs("p", { className: t, children: [
1261
- /* @__PURE__ */ o.jsx(Me, { size: 14, strokeWidth: 2.5 }),
1262
- s
1263
- ] }) : /* @__PURE__ */ o.jsxs(Ir, { className: t, ...c, children: [
1264
- /* @__PURE__ */ o.jsx(Me, { size: 14, strokeWidth: 2.5 }),
1265
- s
1187
+ const { children: t, className: i, disabled: o, ...c } = en(n);
1188
+ return o ? /* @__PURE__ */ a.jsxs("p", { className: i, children: [
1189
+ /* @__PURE__ */ a.jsx(Me, { size: 14, strokeWidth: 2.5 }),
1190
+ t
1191
+ ] }) : /* @__PURE__ */ a.jsxs(Ir, { className: i, ...c, children: [
1192
+ /* @__PURE__ */ a.jsx(Me, { size: 14, strokeWidth: 2.5 }),
1193
+ t
1266
1194
  ] });
1267
1195
  }
1268
- const rr = He({});
1269
- function nn(n) {
1196
+ const nr = He({});
1197
+ function rn(n) {
1270
1198
  const {
1271
- isVisibled: s,
1272
- makeInvisible: t,
1273
- children: a,
1199
+ isVisibled: t,
1200
+ makeInvisible: i,
1201
+ children: o,
1274
1202
  className: c = "",
1275
1203
  ...l
1276
- } = n, u = `arkyn_modal_container ${s ? "visible" : ""} ${c}`;
1277
- return /* @__PURE__ */ o.jsx(rr.Provider, { value: { makeInvisible: t }, children: /* @__PURE__ */ o.jsx(Tr, { children: s && /* @__PURE__ */ o.jsxs("aside", { className: u.trim(), ...l, children: [
1278
- /* @__PURE__ */ o.jsx(
1204
+ } = n, f = `arkyn_modal_container ${t ? "visible" : ""} ${c}`;
1205
+ return /* @__PURE__ */ a.jsx(nr.Provider, { value: { makeInvisible: i }, children: /* @__PURE__ */ a.jsx(Or, { children: t && /* @__PURE__ */ a.jsxs("aside", { className: f.trim(), ...l, children: [
1206
+ /* @__PURE__ */ a.jsx(
1279
1207
  Ue.div,
1280
1208
  {
1281
1209
  className: "overlay",
@@ -1283,10 +1211,10 @@ function nn(n) {
1283
1211
  initial: { opacity: 0 },
1284
1212
  animate: { opacity: 1 },
1285
1213
  exit: { opacity: 0 },
1286
- onClick: t
1214
+ onClick: i
1287
1215
  }
1288
1216
  ),
1289
- /* @__PURE__ */ o.jsx(
1217
+ /* @__PURE__ */ a.jsx(
1290
1218
  Ue.div,
1291
1219
  {
1292
1220
  className: "content",
@@ -1294,55 +1222,55 @@ function nn(n) {
1294
1222
  initial: { opacity: 0, scale: 0.75 },
1295
1223
  animate: { opacity: 1, scale: 1 },
1296
1224
  exit: { opacity: 0, scale: 0 },
1297
- children: a
1225
+ children: o
1298
1226
  }
1299
1227
  )
1300
1228
  ] }) }) });
1301
1229
  }
1302
- function tn(n) {
1303
- const { alignment: s = "right", className: t, ...a } = n, c = `arkyn_modal_footer ${s} ${t}`;
1304
- return /* @__PURE__ */ o.jsx("footer", { className: c.trim(), ...a });
1230
+ function nn(n) {
1231
+ const { alignment: t = "right", className: i, ...o } = n, c = `arkyn_modal_footer ${t} ${i}`;
1232
+ return /* @__PURE__ */ a.jsx("footer", { className: c.trim(), ...o });
1305
1233
  }
1306
- function sn(n) {
1307
- const { showCloseButton: s, className: t, children: a, ...c } = n, { makeInvisible: l } = Ze(rr), u = `arkyn_modal_header ${s ? "show-close" : ""} ${t}`;
1308
- return /* @__PURE__ */ o.jsxs("header", { className: u.trim(), ...c, children: [
1309
- a,
1310
- /* @__PURE__ */ o.jsx("button", { type: "button", onClick: l, children: /* @__PURE__ */ o.jsx(Nr, { size: 24 }) })
1234
+ function tn(n) {
1235
+ const { showCloseButton: t, className: i, children: o, ...c } = n, { makeInvisible: l } = Ze(nr), f = `arkyn_modal_header ${t ? "show-close" : ""} ${i}`;
1236
+ return /* @__PURE__ */ a.jsxs("header", { className: f.trim(), ...c, children: [
1237
+ o,
1238
+ /* @__PURE__ */ a.jsx("button", { type: "button", onClick: l, children: /* @__PURE__ */ a.jsx(Pr, { size: 24 }) })
1311
1239
  ] });
1312
1240
  }
1313
- const _n = { Container: nn, Header: sn, Footer: tn };
1314
- function Rn(n) {
1241
+ const xn = { Container: rn, Header: tn, Footer: nn };
1242
+ function _n(n) {
1315
1243
  const {
1316
- text: s,
1317
- size: t = "lg",
1318
- children: a,
1244
+ text: t,
1245
+ size: i = "lg",
1246
+ children: o,
1319
1247
  orientation: c = "top",
1320
1248
  className: l,
1321
1249
  ...h
1322
1250
  } = n;
1323
- return /* @__PURE__ */ o.jsxs(
1251
+ return /* @__PURE__ */ a.jsxs(
1324
1252
  "div",
1325
1253
  {
1326
- className: `arkyn_tooltip ${t} ${c} ${l}`,
1254
+ className: `arkyn_tooltip ${i} ${c} ${l}`,
1327
1255
  ...h,
1328
1256
  children: [
1329
- a,
1330
- /* @__PURE__ */ o.jsx("div", { className: "arkyn_tooltip_text", children: s })
1257
+ o,
1258
+ /* @__PURE__ */ a.jsx("div", { className: "arkyn_tooltip_text", children: t })
1331
1259
  ]
1332
1260
  }
1333
1261
  );
1334
1262
  }
1335
1263
  export {
1336
- fn as Badge,
1264
+ ln as Badge,
1337
1265
  yn as Breadcrumb,
1338
1266
  bn as BreadcrumbLink,
1339
- hn as Button,
1340
- dn as Divider,
1341
- mn as FormController,
1342
- vn as FormError,
1343
- gn as FormLabel,
1267
+ dn as Button,
1268
+ fn as Divider,
1269
+ hn as FormController,
1270
+ mn as FormError,
1271
+ vn as FormLabel,
1344
1272
  pn as IconButton,
1345
- xn as Input,
1346
- _n as Modal,
1347
- Rn as Tooltip
1273
+ gn as Input,
1274
+ xn as Modal,
1275
+ _n as Tooltip
1348
1276
  };