@ambuj.bhaskar/react-component-library 0.0.0 → 0.0.2
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/awiros-ui.css +1 -0
- package/dist/awiros-ui.js +81 -81
- package/dist/awiros-ui.umd.cjs +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}}.button{color:#fff!important;padding:.5rem 1.5rem!important;outline:none!important;border:none!important;border-radius:500px!important}.button.primary{background-color:red}.button.secondary{background-color:gray}
|
package/dist/awiros-ui.js
CHANGED
|
@@ -10,16 +10,16 @@ var M = { exports: {} }, D = {};
|
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
12
|
var Te;
|
|
13
|
-
function
|
|
13
|
+
function fr() {
|
|
14
14
|
if (Te) return D;
|
|
15
15
|
Te = 1;
|
|
16
|
-
var
|
|
17
|
-
function j(
|
|
18
|
-
var p,
|
|
19
|
-
|
|
20
|
-
for (p in
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
16
|
+
var w = Pe, y = Symbol.for("react.element"), U = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, A = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function j(R, f, O) {
|
|
18
|
+
var p, b = {}, _ = null, $ = null;
|
|
19
|
+
O !== void 0 && (_ = "" + O), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && ($ = f.ref);
|
|
20
|
+
for (p in f) T.call(f, p) && !I.hasOwnProperty(p) && (b[p] = f[p]);
|
|
21
|
+
if (R && R.defaultProps) for (p in f = R.defaultProps, f) b[p] === void 0 && (b[p] = f[p]);
|
|
22
|
+
return { $$typeof: y, type: R, key: _, ref: $, props: b, _owner: A.current };
|
|
23
23
|
}
|
|
24
24
|
return D.Fragment = U, D.jsx = j, D.jsxs = j, D;
|
|
25
25
|
}
|
|
@@ -36,14 +36,14 @@ var F = {};
|
|
|
36
36
|
var Oe;
|
|
37
37
|
function cr() {
|
|
38
38
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var
|
|
39
|
+
var w = Pe, y = Symbol.for("react.element"), U = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), R = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), H = Symbol.iterator, Ce = "@@iterator";
|
|
40
40
|
function we(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
43
|
var r = H && e[H] || e[Ce];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
46
|
+
var S = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function c(e) {
|
|
48
48
|
{
|
|
49
49
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
@@ -53,7 +53,7 @@ function cr() {
|
|
|
53
53
|
}
|
|
54
54
|
function je(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var n =
|
|
56
|
+
var n = S.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
57
57
|
o !== "" && (r += "%s", t = t.concat([o]));
|
|
58
58
|
var u = t.map(function(i) {
|
|
59
59
|
return String(i);
|
|
@@ -64,7 +64,7 @@ function cr() {
|
|
|
64
64
|
var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z;
|
|
65
65
|
Z = Symbol.for("react.module.reference");
|
|
66
66
|
function Ie(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === T || e === I || Ae || e === A || e === O || e === p || Fe || e === $ || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === j || e.$$typeof === R || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
@@ -80,7 +80,7 @@ function cr() {
|
|
|
80
80
|
function Q(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function E(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
86
|
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -88,7 +88,7 @@ function cr() {
|
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case T:
|
|
92
92
|
return "Fragment";
|
|
93
93
|
case U:
|
|
94
94
|
return "Portal";
|
|
@@ -96,28 +96,28 @@ function cr() {
|
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case A:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case O:
|
|
100
100
|
return "Suspense";
|
|
101
101
|
case p:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case R:
|
|
107
107
|
var r = e;
|
|
108
108
|
return Q(r) + ".Consumer";
|
|
109
109
|
case j:
|
|
110
110
|
var t = e;
|
|
111
111
|
return Q(t._context) + ".Provider";
|
|
112
|
-
case
|
|
112
|
+
case f:
|
|
113
113
|
return $e(e, e.render, "ForwardRef");
|
|
114
|
-
case
|
|
114
|
+
case b:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n :
|
|
117
|
-
case
|
|
116
|
+
return n !== null ? n : E(e.type) || "Memo";
|
|
117
|
+
case _: {
|
|
118
118
|
var o = e, u = o._payload, i = o._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return E(i(u));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,7 +125,7 @@ function cr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var h = Object.assign, x = 0, ee, re, te, ne, ae, ie, oe;
|
|
129
129
|
function ue() {
|
|
130
130
|
}
|
|
131
131
|
ue.__reactDisabledLog = !0;
|
|
@@ -161,25 +161,25 @@ function cr() {
|
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: h({}, e, {
|
|
165
165
|
value: ee
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: h({}, e, {
|
|
168
168
|
value: re
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
170
|
+
warn: h({}, e, {
|
|
171
171
|
value: te
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
173
|
+
error: h({}, e, {
|
|
174
174
|
value: ne
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
176
|
+
group: h({}, e, {
|
|
177
177
|
value: ae
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
179
|
+
groupCollapsed: h({}, e, {
|
|
180
180
|
value: ie
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
182
|
+
groupEnd: h({}, e, {
|
|
183
183
|
value: oe
|
|
184
184
|
})
|
|
185
185
|
});
|
|
@@ -187,7 +187,7 @@ function cr() {
|
|
|
187
187
|
x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var N =
|
|
190
|
+
var N = S.ReactCurrentDispatcher, J;
|
|
191
191
|
function W(e, r, t) {
|
|
192
192
|
{
|
|
193
193
|
if (J === void 0)
|
|
@@ -256,26 +256,26 @@ function cr() {
|
|
|
256
256
|
if (d && n && typeof d.stack == "string") {
|
|
257
257
|
for (var a = d.stack.split(`
|
|
258
258
|
`), v = n.stack.split(`
|
|
259
|
-
`), s = a.length - 1,
|
|
260
|
-
|
|
261
|
-
for (; s >= 1 &&
|
|
262
|
-
if (a[s] !== v[
|
|
263
|
-
if (s !== 1 ||
|
|
259
|
+
`), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
|
|
260
|
+
l--;
|
|
261
|
+
for (; s >= 1 && l >= 0; s--, l--)
|
|
262
|
+
if (a[s] !== v[l]) {
|
|
263
|
+
if (s !== 1 || l !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (s--,
|
|
265
|
+
if (s--, l--, l < 0 || a[s] !== v[l]) {
|
|
266
266
|
var g = `
|
|
267
267
|
` + a[s].replace(" at new ", " at ");
|
|
268
268
|
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, g), g;
|
|
269
269
|
}
|
|
270
|
-
while (s >= 1 &&
|
|
270
|
+
while (s >= 1 && l >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
275
|
q = !1, N.current = u, Ye(), Error.prepareStackTrace = o;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" && Y.set(e,
|
|
277
|
+
var C = e ? e.displayName || e.name : "", m = C ? W(C) : "";
|
|
278
|
+
return typeof e == "function" && Y.set(e, m), m;
|
|
279
279
|
}
|
|
280
280
|
function Ve(e, r, t) {
|
|
281
281
|
return se(e, !1);
|
|
@@ -292,18 +292,18 @@ function cr() {
|
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return W(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
295
|
+
case O:
|
|
296
296
|
return W("Suspense");
|
|
297
297
|
case p:
|
|
298
298
|
return W("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
302
|
+
case f:
|
|
303
303
|
return Ve(e.render);
|
|
304
|
-
case
|
|
304
|
+
case b:
|
|
305
305
|
return L(e.type, r, t);
|
|
306
|
-
case
|
|
306
|
+
case _: {
|
|
307
307
|
var n = e, o = n._payload, u = n._init;
|
|
308
308
|
try {
|
|
309
309
|
return L(u(o), r, t);
|
|
@@ -313,13 +313,13 @@ function cr() {
|
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var k = Object.prototype.hasOwnProperty,
|
|
316
|
+
var k = Object.prototype.hasOwnProperty, le = {}, fe = S.ReactDebugCurrentFrame;
|
|
317
317
|
function V(e) {
|
|
318
318
|
if (e) {
|
|
319
319
|
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
320
|
-
|
|
320
|
+
fe.setExtraStackFrame(t);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
fe.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
324
|
function Ue(e, r, t, n, o) {
|
|
325
325
|
{
|
|
@@ -336,7 +336,7 @@ function cr() {
|
|
|
336
336
|
} catch (s) {
|
|
337
337
|
a = s;
|
|
338
338
|
}
|
|
339
|
-
a && !(a instanceof Error) && (V(o), c("%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), V(null)), a instanceof Error && !(a.message in
|
|
339
|
+
a && !(a instanceof Error) && (V(o), c("%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), V(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, V(o), c("Failed %s type: %s", t, a.message), V(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -364,7 +364,7 @@ function cr() {
|
|
|
364
364
|
if (qe(e))
|
|
365
365
|
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ce(e);
|
|
366
366
|
}
|
|
367
|
-
var de =
|
|
367
|
+
var de = S.ReactCurrentOwner, Be = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
@@ -414,7 +414,7 @@ function cr() {
|
|
|
414
414
|
var Ze = function(e, r, t, n, o, u, i) {
|
|
415
415
|
var a = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
417
|
+
$$typeof: y,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
@@ -452,29 +452,29 @@ function cr() {
|
|
|
452
452
|
i[u] === void 0 && (i[u] = s[u]);
|
|
453
453
|
}
|
|
454
454
|
if (a || v) {
|
|
455
|
-
var
|
|
456
|
-
a && Xe(i,
|
|
455
|
+
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
a && Xe(i, l), v && He(i, l);
|
|
457
457
|
}
|
|
458
458
|
return Ze(e, a, v, o, n, de.current, i);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var K =
|
|
462
|
-
function
|
|
461
|
+
var K = S.ReactCurrentOwner, be = S.ReactDebugCurrentFrame;
|
|
462
|
+
function P(e) {
|
|
463
463
|
if (e) {
|
|
464
464
|
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
465
|
-
|
|
465
|
+
be.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
be.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
469
|
var G;
|
|
470
470
|
G = !1;
|
|
471
471
|
function z(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === y;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Ee() {
|
|
475
475
|
{
|
|
476
476
|
if (K.current) {
|
|
477
|
-
var e =
|
|
477
|
+
var e = E(K.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -489,7 +489,7 @@ Check the render method of \`` + e + "`.";
|
|
|
489
489
|
var ye = {};
|
|
490
490
|
function rr(e) {
|
|
491
491
|
{
|
|
492
|
-
var r =
|
|
492
|
+
var r = Ee();
|
|
493
493
|
if (!r) {
|
|
494
494
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
495
|
t && (r = `
|
|
@@ -509,7 +509,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
509
509
|
return;
|
|
510
510
|
ye[t] = !0;
|
|
511
511
|
var n = "";
|
|
512
|
-
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " +
|
|
512
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), P(e), c('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), P(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function _e(e, r) {
|
|
@@ -539,18 +539,18 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
539
|
var t;
|
|
540
540
|
if (typeof r == "function")
|
|
541
541
|
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
544
|
+
r.$$typeof === b))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var n =
|
|
549
|
+
var n = E(r);
|
|
550
550
|
Ue(t, e.props, "prop", n, e);
|
|
551
551
|
} else if (r.PropTypes !== void 0 && !G) {
|
|
552
552
|
G = !0;
|
|
553
|
-
var o =
|
|
553
|
+
var o = E(r);
|
|
554
554
|
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
555
555
|
}
|
|
556
556
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -561,11 +561,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
561
561
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
562
|
var n = r[t];
|
|
563
563
|
if (n !== "children" && n !== "key") {
|
|
564
|
-
|
|
564
|
+
P(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (P(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var he = {};
|
|
@@ -576,20 +576,20 @@ Check the top-level render call using <` + t + ">.");
|
|
|
576
576
|
var a = "";
|
|
577
577
|
(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
578
|
var v = er();
|
|
579
|
-
v ? a += v : a +=
|
|
579
|
+
v ? a += v : a += Ee();
|
|
580
580
|
var s;
|
|
581
|
-
e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof ===
|
|
581
|
+
e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof === y ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
583
|
+
var l = Qe(e, r, t, o, u);
|
|
584
|
+
if (l == null)
|
|
585
|
+
return l;
|
|
586
586
|
if (i) {
|
|
587
587
|
var g = r.children;
|
|
588
588
|
if (g !== void 0)
|
|
589
589
|
if (n)
|
|
590
590
|
if (B(g)) {
|
|
591
|
-
for (var
|
|
592
|
-
_e(g[
|
|
591
|
+
for (var C = 0; C < g.length; C++)
|
|
592
|
+
_e(g[C], e);
|
|
593
593
|
Object.freeze && Object.freeze(g);
|
|
594
594
|
} else
|
|
595
595
|
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -597,20 +597,20 @@ Check the top-level render call using <` + t + ">.");
|
|
|
597
597
|
_e(g, e);
|
|
598
598
|
}
|
|
599
599
|
if (k.call(r, "key")) {
|
|
600
|
-
var
|
|
601
|
-
return
|
|
600
|
+
var m = E(e), d = Object.keys(r).filter(function(lr) {
|
|
601
|
+
return lr !== "key";
|
|
602
602
|
}), X = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!he[
|
|
603
|
+
if (!he[m + X]) {
|
|
604
604
|
var sr = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
|
|
605
605
|
c(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, X,
|
|
610
|
+
<%s key={someKey} {...props} />`, X, m, sr, m), he[m + X] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === T ? nr(l) : tr(l), l;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function ar(e, r, t) {
|
|
@@ -620,15 +620,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
return me(e, r, t, !1);
|
|
621
621
|
}
|
|
622
622
|
var or = ir, ur = ar;
|
|
623
|
-
F.Fragment =
|
|
623
|
+
F.Fragment = T, F.jsx = or, F.jsxs = ur;
|
|
624
624
|
}()), F;
|
|
625
625
|
}
|
|
626
626
|
var Se;
|
|
627
627
|
function vr() {
|
|
628
|
-
return Se || (Se = 1, process.env.NODE_ENV === "production" ? M.exports =
|
|
628
|
+
return Se || (Se = 1, process.env.NODE_ENV === "production" ? M.exports = fr() : M.exports = cr()), M.exports;
|
|
629
629
|
}
|
|
630
630
|
var dr = vr();
|
|
631
|
-
const gr = ({ ...
|
|
631
|
+
const gr = ({ variant: w, ...y }) => /* @__PURE__ */ dr.jsx("button", { className: "button " + w, ...y });
|
|
632
632
|
export {
|
|
633
633
|
gr as Button
|
|
634
634
|
};
|
package/dist/awiros-ui.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(h,
|
|
1
|
+
(function(h,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(h=typeof globalThis<"u"?globalThis:h||self,O(h["awiros-ui"]={},h.React))})(this,function(h,O){"use strict";var W={exports:{}},x={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Q;function Ce(){if(Q)return
|
|
9
|
+
*/var Q;function Ce(){if(Q)return x;Q=1;var D=O,E=Symbol.for("react.element"),B=Symbol.for("react.fragment"),S=Object.prototype.hasOwnProperty,Y=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function F(R,l,P){var p,y={},_=null,L=null;P!==void 0&&(_=""+P),l.key!==void 0&&(_=""+l.key),l.ref!==void 0&&(L=l.ref);for(p in l)S.call(l,p)&&!$.hasOwnProperty(p)&&(y[p]=l[p]);if(R&&R.defaultProps)for(p in l=R.defaultProps,l)y[p]===void 0&&(y[p]=l[p]);return{$$typeof:E,type:R,key:_,ref:L,props:y,_owner:Y.current}}return x.Fragment=B,x.jsx=F,x.jsxs=F,x}var k={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ee;function je(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&function(){var
|
|
17
|
+
*/var ee;function je(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&function(){var D=O,E=Symbol.for("react.element"),B=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),R=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),te=Symbol.iterator,Fe="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=te&&e[te]||e[Fe];return typeof r=="function"?r:null}var w=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=w.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var We=!1,Ye=!1,$e=!1,Le=!1,Me=!1,ne;ne=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===S||e===$||Me||e===Y||e===P||e===p||Le||e===L||We||Ye||$e||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===y||e.$$typeof===F||e.$$typeof===R||e.$$typeof===l||e.$$typeof===ne||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ae(e){return e.displayName||"Context"}function b(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case B:return"Portal";case $:return"Profiler";case Y:return"StrictMode";case P:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ae(r)+".Consumer";case F:var t=e;return ae(t._context)+".Provider";case l:return Ue(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:b(e.type)||"Memo";case _:{var o=e,u=o._payload,i=o._init;try{return b(i(u))}catch{return null}}}return null}var m=Object.assign,A=0,ie,oe,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Ne(){{if(A===0){ie=console.log,oe=console.info,ue=console.warn,se=console.error,fe=console.group,le=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}}function Be(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:m({},e,{value:ie}),info:m({},e,{value:oe}),warn:m({},e,{value:ue}),error:m({},e,{value:se}),group:m({},e,{value:fe}),groupCollapsed:m({},e,{value:le}),groupEnd:m({},e,{value:ce})})}A<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=w.ReactCurrentDispatcher,q;function M(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
|
|
18
18
|
`+q+e}}var K=!1,V;{var Je=typeof WeakMap=="function"?WeakMap:Map;V=new Je}function ve(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Ne();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(v){n=v}Reflect.construct(e,[],i)}else{try{i.call()}catch(v){n=v}e.call(i.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
|
|
19
19
|
`),d=n.stack.split(`
|
|
20
20
|
`),s=a.length-1,f=d.length-1;s>=1&&f>=0&&a[s]!==d[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==d[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==d[f]){var g=`
|
|
21
|
-
`+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,g),g}while(s>=1&&f>=0);break}}}finally{K=!1,J.current=u,Be(),Error.prepareStackTrace=o}var
|
|
21
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,g),g}while(s>=1&&f>=0);break}}}finally{K=!1,J.current=u,Be(),Error.prepareStackTrace=o}var j=e?e.displayName||e.name:"",T=j?M(j):"";return typeof e=="function"&&V.set(e,T),T}function qe(e,r,t){return ve(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Ke(e));if(typeof e=="string")return M(e);switch(e){case P:return M("Suspense");case p:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return qe(e.render);case y:return U(e.type,r,t);case _:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,pe={},ge=w.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Ge(e,r,t,n,o){{var u=Function.call.bind(I);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var d=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`.");throw d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(N(o),c("%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),N(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,N(o),c("Failed %s type: %s",t,a.message),N(null))}}}var ze=Array.isArray;function G(e){return ze(e)}function Xe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return ye(e),!1}catch{return!0}}function ye(e){return""+e}function be(e){if(He(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(e)),ye(e)}var he=w.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Ee,Re;function Qe(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function er(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function rr(e,r){typeof e.ref=="string"&&he.current}function tr(e,r){{var t=function(){Ee||(Ee=!0,c("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function nr(e,r){{var t=function(){Re||(Re=!0,c("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ar=function(e,r,t,n,o,u,i){var a={$$typeof:E,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ir(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(be(t),a=""+t),er(r)&&(be(r.key),a=""+r.key),Qe(r)&&(d=r.ref,rr(r,o));for(u in r)I.call(r,u)&&!Ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||d){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&tr(i,f),d&&nr(i,f)}return ar(e,a,d,o,n,he.current,i)}}var z=w.ReactCurrentOwner,_e=w.ReactDebugCurrentFrame;function C(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var X;X=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===E}function me(){{if(z.current){var e=b(z.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function or(e){return""}var Te={};function ur(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),C(e),c('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),C(null)}}function Se(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&Oe(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var o=Ae(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)H(i.value)&&Oe(i.value,r)}}}function sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=b(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var o=b(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){C(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),C(null);break}}e.ref!==null&&(C(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),C(null))}}var Pe={};function we(e,r,t,n,o,u){{var i=Ve(e);if(!i){var a="";(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.");var d=or();d?a+=d:a+=me();var s;e===null?s="null":G(e)?s="array":e!==void 0&&e.$$typeof===E?(s="<"+(b(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=ir(e,r,t,o,u);if(f==null)return f;if(i){var g=r.children;if(g!==void 0)if(n)if(G(g)){for(var j=0;j<g.length;j++)Se(g[j],e);Object.freeze&&Object.freeze(g)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Se(g,e)}if(I.call(r,"key")){var T=b(e),v=Object.keys(r).filter(function(gr){return gr!=="key"}),Z=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Pe[T+Z]){var pr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Z,
|
|
30
|
+
<%s key={someKey} {...props} />`,Z,T,pr,T),Pe[T+Z]=!0}}return e===S?fr(f):sr(f),f}}function lr(e,r,t){return we(e,r,t,!0)}function cr(e,r,t){return we(e,r,t,!1)}var dr=cr,vr=lr;k.Fragment=S,k.jsx=dr,k.jsxs=vr}()),k}var re;function xe(){return re||(re=1,process.env.NODE_ENV==="production"?W.exports=Ce():W.exports=je()),W.exports}var ke=xe();const De=({variant:D,...E})=>ke.jsx("button",{className:"button "+D,...E});h.Button=De,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|