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.
- package/dist/components/ui/Button.d.ts +10 -6
- package/dist/index.css +1 -1
- package/dist/{index.js → index.esm.js} +302 -251
- package/dist/index.esm.js.map +1 -0
- package/dist/index.umd.js +33 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/ui/Button.stories.d.ts +0 -11
- package/dist/index.js.map +0 -1
- package/dist/index.umd.cjs +0 -31
- package/dist/index.umd.cjs.map +0 -1
- package/dist/style.css +0 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
var
|
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
|
13
|
-
function
|
14
|
-
if (
|
15
|
-
|
16
|
-
|
17
|
-
|
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)
|
21
|
-
|
22
|
-
|
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 =
|
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
|
41
|
+
function yr() {
|
38
42
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
39
|
-
var
|
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[
|
47
|
+
var r = Y && e[Y] || e[L];
|
44
48
|
return typeof r == "function" ? r : null;
|
45
49
|
}
|
46
|
-
var k =
|
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
|
-
|
55
|
+
Ae("error", e, t);
|
52
56
|
}
|
53
57
|
}
|
54
|
-
function
|
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
|
59
|
-
return String(
|
62
|
+
var s = t.map(function(o) {
|
63
|
+
return String(o);
|
60
64
|
});
|
61
|
-
|
65
|
+
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
62
66
|
}
|
63
67
|
}
|
64
|
-
var
|
65
|
-
|
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 ===
|
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 ===
|
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
|
84
|
+
function ne(e) {
|
81
85
|
return e.displayName || "Context";
|
82
86
|
}
|
83
|
-
function
|
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
|
95
|
+
case c:
|
92
96
|
return "Fragment";
|
93
|
-
case
|
97
|
+
case i:
|
94
98
|
return "Portal";
|
95
|
-
case
|
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
|
110
|
+
case O:
|
107
111
|
var r = e;
|
108
|
-
return
|
109
|
-
case
|
112
|
+
return ne(r) + ".Consumer";
|
113
|
+
case P:
|
110
114
|
var t = e;
|
111
|
-
return
|
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 :
|
120
|
+
return n !== null ? n : S(e.type) || "Memo";
|
117
121
|
case _: {
|
118
|
-
var u = e,
|
122
|
+
var u = e, s = u._payload, o = u._init;
|
119
123
|
try {
|
120
|
-
return
|
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,
|
129
|
-
function
|
132
|
+
var w = Object.assign, N = 0, ae, oe, ie, ue, le, se, ce;
|
133
|
+
function fe() {
|
130
134
|
}
|
131
|
-
|
135
|
+
fe.__reactDisabledLog = !0;
|
132
136
|
function Ye() {
|
133
137
|
{
|
134
|
-
if (
|
135
|
-
|
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:
|
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
|
-
|
156
|
+
N++;
|
153
157
|
}
|
154
158
|
}
|
155
|
-
function
|
159
|
+
function Le() {
|
156
160
|
{
|
157
|
-
if (
|
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:
|
169
|
+
value: ae
|
166
170
|
}),
|
167
171
|
info: w({}, e, {
|
168
|
-
value:
|
172
|
+
value: oe
|
169
173
|
}),
|
170
174
|
warn: w({}, e, {
|
171
|
-
value:
|
175
|
+
value: ie
|
172
176
|
}),
|
173
177
|
error: w({}, e, {
|
174
|
-
value:
|
178
|
+
value: ue
|
175
179
|
}),
|
176
180
|
group: w({}, e, {
|
177
|
-
value:
|
181
|
+
value: le
|
178
182
|
}),
|
179
183
|
groupCollapsed: w({}, e, {
|
180
|
-
value:
|
184
|
+
value: se
|
181
185
|
}),
|
182
186
|
groupEnd: w({}, e, {
|
183
|
-
value:
|
187
|
+
value: ce
|
184
188
|
})
|
185
189
|
});
|
186
190
|
}
|
187
|
-
|
191
|
+
N < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
188
192
|
}
|
189
193
|
}
|
190
|
-
var
|
191
|
-
function
|
194
|
+
var J = k.ReactCurrentDispatcher, K;
|
195
|
+
function U(e, r, t) {
|
192
196
|
{
|
193
|
-
if (
|
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
|
-
|
202
|
+
K = n && n[1] || "";
|
199
203
|
}
|
200
204
|
return `
|
201
|
-
` +
|
205
|
+
` + K + e;
|
202
206
|
}
|
203
207
|
}
|
204
|
-
var
|
208
|
+
var q = !1, M;
|
205
209
|
{
|
206
|
-
var
|
207
|
-
|
210
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
211
|
+
M = new Ue();
|
208
212
|
}
|
209
|
-
function
|
210
|
-
if (!e ||
|
213
|
+
function de(e, r) {
|
214
|
+
if (!e || q)
|
211
215
|
return "";
|
212
216
|
{
|
213
|
-
var t =
|
217
|
+
var t = M.get(e);
|
214
218
|
if (t !== void 0)
|
215
219
|
return t;
|
216
220
|
}
|
217
221
|
var n;
|
218
|
-
|
222
|
+
q = !0;
|
219
223
|
var u = Error.prepareStackTrace;
|
220
224
|
Error.prepareStackTrace = void 0;
|
221
|
-
var
|
222
|
-
|
225
|
+
var s;
|
226
|
+
s = J.current, J.current = null, Ye();
|
223
227
|
try {
|
224
228
|
if (r) {
|
225
|
-
var
|
229
|
+
var o = function() {
|
226
230
|
throw Error();
|
227
231
|
};
|
228
|
-
if (Object.defineProperty(
|
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(
|
238
|
+
Reflect.construct(o, []);
|
235
239
|
} catch (E) {
|
236
240
|
n = E;
|
237
241
|
}
|
238
|
-
Reflect.construct(e, [],
|
242
|
+
Reflect.construct(e, [], o);
|
239
243
|
} else {
|
240
244
|
try {
|
241
|
-
|
245
|
+
o.call();
|
242
246
|
} catch (E) {
|
243
247
|
n = E;
|
244
248
|
}
|
245
|
-
e.call(
|
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
|
270
|
+
var C = `
|
267
271
|
` + a[d].replace(" at new ", " at ");
|
268
|
-
return e.displayName &&
|
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
|
-
|
279
|
+
q = !1, J.current = s, Le(), Error.prepareStackTrace = u;
|
276
280
|
}
|
277
|
-
var D = e ? e.displayName || e.name : "", j = D ?
|
278
|
-
return typeof e == "function" &&
|
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
|
281
|
-
return
|
284
|
+
function Me(e, r, t) {
|
285
|
+
return de(e, !1);
|
282
286
|
}
|
283
|
-
function
|
287
|
+
function Be(e) {
|
284
288
|
var r = e.prototype;
|
285
289
|
return !!(r && r.isReactComponent);
|
286
290
|
}
|
287
|
-
function
|
291
|
+
function B(e, r, t) {
|
288
292
|
if (e == null)
|
289
293
|
return "";
|
290
294
|
if (typeof e == "function")
|
291
|
-
return
|
295
|
+
return de(e, Be(e));
|
292
296
|
if (typeof e == "string")
|
293
|
-
return
|
297
|
+
return U(e);
|
294
298
|
switch (e) {
|
295
299
|
case b:
|
296
|
-
return
|
300
|
+
return U("Suspense");
|
297
301
|
case v:
|
298
|
-
return
|
302
|
+
return U("SuspenseList");
|
299
303
|
}
|
300
304
|
if (typeof e == "object")
|
301
305
|
switch (e.$$typeof) {
|
302
306
|
case y:
|
303
|
-
return
|
307
|
+
return Me(e.render);
|
304
308
|
case g:
|
305
|
-
return
|
309
|
+
return B(e.type, r, t);
|
306
310
|
case _: {
|
307
|
-
var n = e, u = n._payload,
|
311
|
+
var n = e, u = n._payload, s = n._init;
|
308
312
|
try {
|
309
|
-
return
|
313
|
+
return B(s(u), r, t);
|
310
314
|
} catch {
|
311
315
|
}
|
312
316
|
}
|
313
317
|
}
|
314
318
|
return "";
|
315
319
|
}
|
316
|
-
var
|
317
|
-
function
|
320
|
+
var I = Object.prototype.hasOwnProperty, ve = {}, pe = k.ReactDebugCurrentFrame;
|
321
|
+
function z(e) {
|
318
322
|
if (e) {
|
319
|
-
var r = e._owner, t =
|
320
|
-
|
323
|
+
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
|
324
|
+
pe.setExtraStackFrame(t);
|
321
325
|
} else
|
322
|
-
|
326
|
+
pe.setExtraStackFrame(null);
|
323
327
|
}
|
324
|
-
function
|
328
|
+
function ze(e, r, t, n, u) {
|
325
329
|
{
|
326
|
-
var
|
327
|
-
for (var
|
328
|
-
if (
|
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[
|
332
|
-
var h = Error((n || "React class") + ": " + t + " type `" +
|
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[
|
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) && (
|
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
|
344
|
-
function
|
345
|
-
return
|
347
|
+
var Je = Array.isArray;
|
348
|
+
function G(e) {
|
349
|
+
return Je(e);
|
346
350
|
}
|
347
|
-
function
|
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
|
357
|
+
function qe(e) {
|
354
358
|
try {
|
355
|
-
return
|
359
|
+
return ye(e), !1;
|
356
360
|
} catch {
|
357
361
|
return !0;
|
358
362
|
}
|
359
363
|
}
|
360
|
-
function
|
364
|
+
function ye(e) {
|
361
365
|
return "" + e;
|
362
366
|
}
|
363
|
-
function
|
364
|
-
if (
|
365
|
-
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
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
|
371
|
+
var V = k.ReactCurrentOwner, Ge = {
|
368
372
|
key: !0,
|
369
373
|
ref: !0,
|
370
374
|
__self: !0,
|
371
375
|
__source: !0
|
372
|
-
},
|
373
|
-
|
374
|
-
|
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
|
382
|
-
if (
|
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
|
-
|
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
|
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
|
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:
|
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:
|
430
|
+
props: o,
|
423
431
|
// Record the component responsible for creating this element.
|
424
|
-
_owner:
|
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
|
451
|
+
function tr(e, r, t, n, u) {
|
444
452
|
{
|
445
|
-
var
|
446
|
-
t !== void 0 && (
|
447
|
-
for (
|
448
|
-
|
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 (
|
452
|
-
|
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 &&
|
464
|
+
a && Qe(o, p), h && er(o, p);
|
457
465
|
}
|
458
|
-
return
|
466
|
+
return rr(e, a, h, u, n, V.current, o);
|
459
467
|
}
|
460
468
|
}
|
461
|
-
var
|
469
|
+
var H = k.ReactCurrentOwner, he = k.ReactDebugCurrentFrame;
|
462
470
|
function A(e) {
|
463
471
|
if (e) {
|
464
|
-
var r = e._owner, t =
|
465
|
-
|
472
|
+
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
|
473
|
+
he.setExtraStackFrame(t);
|
466
474
|
} else
|
467
|
-
|
475
|
+
he.setExtraStackFrame(null);
|
468
476
|
}
|
469
|
-
var
|
470
|
-
|
471
|
-
function
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
477
|
+
var Z;
|
478
|
+
Z = !1;
|
479
|
+
function Q(e) {
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === f;
|
473
481
|
}
|
474
|
-
function
|
482
|
+
function _e() {
|
475
483
|
{
|
476
|
-
if (
|
477
|
-
var e =
|
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
|
-
|
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
|
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 =
|
508
|
-
if (
|
523
|
+
var t = ar(r);
|
524
|
+
if (Ee[t])
|
509
525
|
return;
|
510
|
-
|
526
|
+
Ee[t] = !0;
|
511
527
|
var n = "";
|
512
|
-
e && e._owner && e._owner !==
|
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
|
531
|
+
function Te(e, r) {
|
516
532
|
{
|
517
533
|
if (typeof e != "object")
|
518
534
|
return;
|
519
|
-
if (
|
535
|
+
if (G(e))
|
520
536
|
for (var t = 0; t < e.length; t++) {
|
521
537
|
var n = e[t];
|
522
|
-
|
538
|
+
Q(n) && Re(n, r);
|
523
539
|
}
|
524
|
-
else if (
|
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
|
530
|
-
|
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
|
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 =
|
550
|
-
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
552
|
-
|
553
|
-
var u =
|
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
|
572
|
-
function
|
587
|
+
var Oe = {};
|
588
|
+
function Ce(e, r, t, n, u, s) {
|
573
589
|
{
|
574
|
-
var
|
575
|
-
if (!
|
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 =
|
579
|
-
h ? a += h : a +=
|
594
|
+
var h = nr(u);
|
595
|
+
h ? a += h : a += _e();
|
580
596
|
var d;
|
581
|
-
e === null ? d = "null" :
|
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 =
|
599
|
+
var p = tr(e, r, t, u, s);
|
584
600
|
if (p == null)
|
585
601
|
return p;
|
586
|
-
if (
|
587
|
-
var
|
588
|
-
if (
|
602
|
+
if (o) {
|
603
|
+
var C = r.children;
|
604
|
+
if (C !== void 0)
|
589
605
|
if (n)
|
590
|
-
if (
|
591
|
-
for (var D = 0; D <
|
592
|
-
|
593
|
-
Object.freeze && Object.freeze(
|
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
|
-
|
613
|
+
Te(C, e);
|
598
614
|
}
|
599
|
-
if (
|
600
|
-
var j =
|
601
|
-
return
|
602
|
-
}),
|
603
|
-
if (!
|
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} />`,
|
626
|
+
<%s key={someKey} {...props} />`, ee, j, fr, j), Oe[j + ee] = !0;
|
611
627
|
}
|
612
628
|
}
|
613
|
-
return e ===
|
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
|
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 =
|
623
|
-
W.Fragment =
|
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" ?
|
627
|
-
var
|
628
|
-
function
|
629
|
-
var
|
630
|
-
if (typeof
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
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
|
638
|
-
for (var
|
639
|
-
|
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
|
642
|
-
var
|
643
|
-
if ((
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
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
|
-
}),
|
673
|
+
}), O = i && Object.entries(i).reduce((b, v) => {
|
650
674
|
let [g, _] = v;
|
651
675
|
return _ === void 0 || (b[g] = _), b;
|
652
|
-
}, {}), y =
|
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 [
|
679
|
+
let [L, F] = Y;
|
656
680
|
return Array.isArray(F) ? F.includes({
|
657
|
-
...
|
658
|
-
...
|
659
|
-
}[
|
660
|
-
...
|
661
|
-
...
|
662
|
-
}[
|
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
|
670
|
-
}
|
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
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
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
|
-
|
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: "
|
688
|
-
|
689
|
-
|
690
|
-
}
|
691
|
-
|
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:
|
695
|
-
ref:
|
696
|
-
...
|
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
|
-
|
751
|
+
_r.displayName = "Button";
|
701
752
|
export {
|
702
|
-
|
703
|
-
|
753
|
+
_r as Button,
|
754
|
+
hr as buttonVariants
|
704
755
|
};
|
705
|
-
//# sourceMappingURL=index.js.map
|
756
|
+
//# sourceMappingURL=index.esm.js.map
|