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