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