@ambuj.bhaskar/react-component-library 0.0.2 → 0.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/dist/awiros-ui.css +1 -1
- package/dist/awiros-ui.js +113 -112
- package/dist/awiros-ui.umd.cjs +8 -8
- package/package.json +3 -2
package/dist/awiros-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.button{color:#fff!important;padding:.5rem 1.5rem!important;outline:none!important;border:none!important;border-radius:500px!important;cursor:pointer!important}.button.primary{background-color:red}.button.secondary{background-color:gray}.input{padding:.5rem 1.5rem!important;outline:none!important;border:none!important;border-radius:500px!important}.input.primary{background-color:#ff000080!important}.input.secondary{background-color:#0000004d!important}
|
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 cr() {
|
|
14
14
|
if (Te) return D;
|
|
15
15
|
Te = 1;
|
|
16
|
-
var
|
|
17
|
-
function j(
|
|
18
|
-
var p,
|
|
19
|
-
|
|
20
|
-
for (p in f)
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
16
|
+
var R = Pe, b = Symbol.for("react.element"), U = Symbol.for("react.fragment"), O = Object.prototype.hasOwnProperty, A = R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function j(_, f, S) {
|
|
18
|
+
var p, E = {}, h = null, $ = null;
|
|
19
|
+
S !== void 0 && (h = "" + S), f.key !== void 0 && (h = "" + f.key), f.ref !== void 0 && ($ = f.ref);
|
|
20
|
+
for (p in f) O.call(f, p) && !I.hasOwnProperty(p) && (E[p] = f[p]);
|
|
21
|
+
if (_ && _.defaultProps) for (p in f = _.defaultProps, f) E[p] === void 0 && (E[p] = f[p]);
|
|
22
|
+
return { $$typeof: b, type: _, key: h, ref: $, props: E, _owner: A.current };
|
|
23
23
|
}
|
|
24
24
|
return D.Fragment = U, D.jsx = j, D.jsxs = j, D;
|
|
25
25
|
}
|
|
@@ -34,26 +34,26 @@ var F = {};
|
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
36
|
var Oe;
|
|
37
|
-
function
|
|
37
|
+
function vr() {
|
|
38
38
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var
|
|
40
|
-
function
|
|
39
|
+
var R = Pe, b = Symbol.for("react.element"), U = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), _ = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), H = Symbol.iterator, we = "@@iterator";
|
|
40
|
+
function je(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r = H && e[H] || e[
|
|
43
|
+
var r = H && e[H] || e[we];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
46
|
+
var P = R.__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++)
|
|
50
50
|
t[n - 1] = arguments[n];
|
|
51
|
-
|
|
51
|
+
xe("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function xe(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var n =
|
|
56
|
+
var n = P.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);
|
|
@@ -61,16 +61,16 @@ function cr() {
|
|
|
61
61
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
64
|
+
var ke = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, Z;
|
|
65
65
|
Z = Symbol.for("react.module.reference");
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
66
|
+
function $e(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === O || e === I || Ie || e === A || e === S || e === p || Ae || e === $ || ke || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === E || e.$$typeof === j || e.$$typeof === _ || 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.
|
|
71
71
|
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function We(e, r, t) {
|
|
74
74
|
var n = e.displayName;
|
|
75
75
|
if (n)
|
|
76
76
|
return n;
|
|
@@ -80,7 +80,7 @@ function cr() {
|
|
|
80
80
|
function Q(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function y(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 O:
|
|
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 S:
|
|
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 _:
|
|
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
112
|
case f:
|
|
113
|
-
return
|
|
114
|
-
case
|
|
113
|
+
return We(e, e.render, "ForwardRef");
|
|
114
|
+
case E:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n :
|
|
117
|
-
case
|
|
116
|
+
return n !== null ? n : y(e.type) || "Memo";
|
|
117
|
+
case h: {
|
|
118
118
|
var o = e, u = o._payload, i = o._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return y(i(u));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,11 +125,11 @@ function cr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var m = Object.assign, x = 0, ee, re, te, ne, ae, ie, oe;
|
|
129
129
|
function ue() {
|
|
130
130
|
}
|
|
131
131
|
ue.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
132
|
+
function Ye() {
|
|
133
133
|
{
|
|
134
134
|
if (x === 0) {
|
|
135
135
|
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
|
|
@@ -152,7 +152,7 @@ function cr() {
|
|
|
152
152
|
x++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Le() {
|
|
156
156
|
{
|
|
157
157
|
if (x--, x === 0) {
|
|
158
158
|
var e = {
|
|
@@ -161,25 +161,25 @@ function cr() {
|
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: m({}, e, {
|
|
165
165
|
value: ee
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: m({}, e, {
|
|
168
168
|
value: re
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
170
|
+
warn: m({}, e, {
|
|
171
171
|
value: te
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
173
|
+
error: m({}, e, {
|
|
174
174
|
value: ne
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
176
|
+
group: m({}, e, {
|
|
177
177
|
value: ae
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
179
|
+
groupCollapsed: m({}, e, {
|
|
180
180
|
value: ie
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
182
|
+
groupEnd: m({}, 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 = P.ReactCurrentDispatcher, J;
|
|
191
191
|
function W(e, r, t) {
|
|
192
192
|
{
|
|
193
193
|
if (J === void 0)
|
|
@@ -203,8 +203,8 @@ function cr() {
|
|
|
203
203
|
}
|
|
204
204
|
var q = !1, Y;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
Y = new
|
|
206
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
Y = new Ve();
|
|
208
208
|
}
|
|
209
209
|
function se(e, r) {
|
|
210
210
|
if (!e || q)
|
|
@@ -219,7 +219,7 @@ function cr() {
|
|
|
219
219
|
var o = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var u;
|
|
222
|
-
u = N.current, N.current = null,
|
|
222
|
+
u = N.current, N.current = null, Ye();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
225
|
var i = function() {
|
|
@@ -272,15 +272,15 @@ function cr() {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
q = !1, N.current = u,
|
|
275
|
+
q = !1, N.current = u, Le(), Error.prepareStackTrace = o;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" && Y.set(e,
|
|
277
|
+
var w = e ? e.displayName || e.name : "", T = w ? W(w) : "";
|
|
278
|
+
return typeof e == "function" && Y.set(e, T), T;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Me(e, r, t) {
|
|
281
281
|
return se(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Ue(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
@@ -288,11 +288,11 @@ function cr() {
|
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return se(e,
|
|
291
|
+
return se(e, Ue(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return W(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
295
|
+
case S:
|
|
296
296
|
return W("Suspense");
|
|
297
297
|
case p:
|
|
298
298
|
return W("SuspenseList");
|
|
@@ -300,10 +300,10 @@ function cr() {
|
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case f:
|
|
303
|
-
return
|
|
304
|
-
case
|
|
303
|
+
return Me(e.render);
|
|
304
|
+
case E:
|
|
305
305
|
return L(e.type, r, t);
|
|
306
|
-
case
|
|
306
|
+
case h: {
|
|
307
307
|
var n = e, o = n._payload, u = n._init;
|
|
308
308
|
try {
|
|
309
309
|
return L(u(o), r, t);
|
|
@@ -313,7 +313,7 @@ function cr() {
|
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var k = Object.prototype.hasOwnProperty, le = {}, fe =
|
|
316
|
+
var k = Object.prototype.hasOwnProperty, le = {}, fe = P.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);
|
|
@@ -321,7 +321,7 @@ function cr() {
|
|
|
321
321
|
} else
|
|
322
322
|
fe.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Ne(e, r, t, n, o) {
|
|
325
325
|
{
|
|
326
326
|
var u = Function.call.bind(k);
|
|
327
327
|
for (var i in e)
|
|
@@ -340,17 +340,17 @@ function cr() {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var Je = Array.isArray;
|
|
344
344
|
function B(e) {
|
|
345
|
-
return
|
|
345
|
+
return Je(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function qe(e) {
|
|
348
348
|
{
|
|
349
349
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Be(e) {
|
|
354
354
|
try {
|
|
355
355
|
return ce(e), !1;
|
|
356
356
|
} catch {
|
|
@@ -361,16 +361,16 @@ function cr() {
|
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function ve(e) {
|
|
364
|
-
if (
|
|
365
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
364
|
+
if (Be(e))
|
|
365
|
+
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ce(e);
|
|
366
366
|
}
|
|
367
|
-
var de =
|
|
367
|
+
var de = P.ReactCurrentOwner, Ke = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
372
|
}, pe, ge;
|
|
373
|
-
function
|
|
373
|
+
function Ge(e) {
|
|
374
374
|
if (k.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (r && r.isReactWarning)
|
|
@@ -378,7 +378,7 @@ function cr() {
|
|
|
378
378
|
}
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ze(e) {
|
|
382
382
|
if (k.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
@@ -386,10 +386,10 @@ function cr() {
|
|
|
386
386
|
}
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Xe(e, r) {
|
|
390
390
|
typeof e.ref == "string" && de.current;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function He(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var t = function() {
|
|
395
395
|
pe || (pe = !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));
|
|
@@ -400,7 +400,7 @@ function cr() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Ze(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var t = function() {
|
|
406
406
|
ge || (ge = !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));
|
|
@@ -411,10 +411,10 @@ function cr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var
|
|
414
|
+
var Qe = 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: b,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
@@ -440,12 +440,12 @@ function cr() {
|
|
|
440
440
|
value: o
|
|
441
441
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function er(e, r, t, n, o) {
|
|
444
444
|
{
|
|
445
445
|
var u, i = {}, a = null, v = null;
|
|
446
|
-
t !== void 0 && (ve(t), a = "" + t),
|
|
446
|
+
t !== void 0 && (ve(t), a = "" + t), ze(r) && (ve(r.key), a = "" + r.key), Ge(r) && (v = r.ref, Xe(r, o));
|
|
447
447
|
for (u in r)
|
|
448
|
-
k.call(r, u) && !
|
|
448
|
+
k.call(r, u) && !Ke.hasOwnProperty(u) && (i[u] = r[u]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
450
|
var s = e.defaultProps;
|
|
451
451
|
for (u in s)
|
|
@@ -453,13 +453,13 @@ function cr() {
|
|
|
453
453
|
}
|
|
454
454
|
if (a || v) {
|
|
455
455
|
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
a &&
|
|
456
|
+
a && He(i, l), v && Ze(i, l);
|
|
457
457
|
}
|
|
458
|
-
return
|
|
458
|
+
return Qe(e, a, v, o, n, de.current, i);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var K =
|
|
462
|
-
function
|
|
461
|
+
var K = P.ReactCurrentOwner, be = P.ReactDebugCurrentFrame;
|
|
462
|
+
function C(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);
|
|
@@ -469,12 +469,12 @@ function cr() {
|
|
|
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 === b;
|
|
473
473
|
}
|
|
474
474
|
function Ee() {
|
|
475
475
|
{
|
|
476
476
|
if (K.current) {
|
|
477
|
-
var e =
|
|
477
|
+
var e = y(K.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -483,11 +483,11 @@ Check the render method of \`` + e + "`.";
|
|
|
483
483
|
return "";
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function rr(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
489
|
var ye = {};
|
|
490
|
-
function
|
|
490
|
+
function tr(e) {
|
|
491
491
|
{
|
|
492
492
|
var r = Ee();
|
|
493
493
|
if (!r) {
|
|
@@ -504,12 +504,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
|
-
var t =
|
|
507
|
+
var t = tr(r);
|
|
508
508
|
if (ye[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 " + y(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);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function _e(e, r) {
|
|
@@ -524,14 +524,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
else if (z(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var o =
|
|
527
|
+
var o = je(e);
|
|
528
528
|
if (typeof o == "function" && o !== e.entries)
|
|
529
529
|
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
530
530
|
z(i.value) && Re(i.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function nr(e) {
|
|
535
535
|
{
|
|
536
536
|
var r = e.type;
|
|
537
537
|
if (r == null || typeof r == "string")
|
|
@@ -541,46 +541,46 @@ Check the top-level render call using <` + t + ">.");
|
|
|
541
541
|
t = r.propTypes;
|
|
542
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 === E))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var n =
|
|
550
|
-
|
|
549
|
+
var n = y(r);
|
|
550
|
+
Ne(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 = y(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.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function ar(e) {
|
|
560
560
|
{
|
|
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
|
+
C(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (C(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var he = {};
|
|
572
572
|
function me(e, r, t, n, o, u) {
|
|
573
573
|
{
|
|
574
|
-
var i =
|
|
574
|
+
var i = $e(e);
|
|
575
575
|
if (!i) {
|
|
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
|
-
var v =
|
|
578
|
+
var v = rr();
|
|
579
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 === b ? (s = "<" + (y(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 l =
|
|
583
|
+
var l = er(e, r, t, o, u);
|
|
584
584
|
if (l == null)
|
|
585
585
|
return l;
|
|
586
586
|
if (i) {
|
|
@@ -588,8 +588,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
588
588
|
if (g !== void 0)
|
|
589
589
|
if (n)
|
|
590
590
|
if (B(g)) {
|
|
591
|
-
for (var
|
|
592
|
-
_e(g[
|
|
591
|
+
for (var w = 0; w < g.length; w++)
|
|
592
|
+
_e(g[w], 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,38 +597,39 @@ 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 T = y(e), d = Object.keys(r).filter(function(fr) {
|
|
601
|
+
return fr !== "key";
|
|
602
602
|
}), X = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!he[
|
|
604
|
-
var
|
|
603
|
+
if (!he[T + X]) {
|
|
604
|
+
var lr = 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, T, lr, T), he[T + X] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === O ? ar(l) : nr(l), l;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function ir(e, r, t) {
|
|
617
617
|
return me(e, r, t, !0);
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function or(e, r, t) {
|
|
620
620
|
return me(e, r, t, !1);
|
|
621
621
|
}
|
|
622
|
-
var
|
|
623
|
-
F.Fragment =
|
|
622
|
+
var ur = or, sr = ir;
|
|
623
|
+
F.Fragment = O, F.jsx = ur, F.jsxs = sr;
|
|
624
624
|
}()), F;
|
|
625
625
|
}
|
|
626
626
|
var Se;
|
|
627
|
-
function
|
|
628
|
-
return Se || (Se = 1, process.env.NODE_ENV === "production" ? M.exports =
|
|
627
|
+
function dr() {
|
|
628
|
+
return Se || (Se = 1, process.env.NODE_ENV === "production" ? M.exports = cr() : M.exports = vr()), M.exports;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
const gr = ({ variant:
|
|
630
|
+
var Ce = dr();
|
|
631
|
+
const gr = ({ variant: R, ...b }) => /* @__PURE__ */ Ce.jsx("button", { className: "button " + R, ...b }), br = ({ variant: R, ...b }) => /* @__PURE__ */ Ce.jsx("input", { className: "input " + R, ...b });
|
|
632
632
|
export {
|
|
633
|
-
gr as Button
|
|
633
|
+
gr as Button,
|
|
634
|
+
br as Input
|
|
634
635
|
};
|
package/dist/awiros-ui.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(h,
|
|
1
|
+
(function(h,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(h=typeof globalThis<"u"?globalThis:h||self,S(h["awiros-ui"]={},h.React))})(this,function(h,S){"use strict";var W={exports:{}},k={};/**
|
|
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
|
|
9
|
+
*/var Q;function je(){if(Q)return k;Q=1;var R=S,y=Symbol.for("react.element"),B=Symbol.for("react.fragment"),P=Object.prototype.hasOwnProperty,Y=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function F(_,l,w){var p,b={},m=null,L=null;w!==void 0&&(m=""+w),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(L=l.ref);for(p in l)P.call(l,p)&&!$.hasOwnProperty(p)&&(b[p]=l[p]);if(_&&_.defaultProps)for(p in l=_.defaultProps,l)b[p]===void 0&&(b[p]=l[p]);return{$$typeof:y,type:_,key:m,ref:L,props:b,_owner:Y.current}}return k.Fragment=B,k.jsx=F,k.jsxs=F,k}var D={};/**
|
|
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
|
|
18
|
-
`+q+e}}var K=!1,V;{var
|
|
17
|
+
*/var ee;function xe(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&function(){var R=S,y=Symbol.for("react.element"),B=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),_=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ne=Symbol.iterator,Ae="@@iterator";function Ie(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[Ae];return typeof r=="function"?r:null}var C=R.__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];We("error",e,t)}}function We(e,r,t){{var n=C.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 Ye=!1,$e=!1,Le=!1,Me=!1,Ve=!1,ae;ae=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===P||e===$||Ve||e===Y||e===w||e===p||Me||e===L||Ye||$e||Le||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===F||e.$$typeof===_||e.$$typeof===l||e.$$typeof===ae||e.getModuleId!==void 0))}function Ne(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ie(e){return e.displayName||"Context"}function E(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 P:return"Fragment";case B:return"Portal";case $:return"Profiler";case Y:return"StrictMode";case w:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return ie(r)+".Consumer";case F:var t=e;return ie(t._context)+".Provider";case l:return Ne(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:E(e.type)||"Memo";case m:{var o=e,u=o._payload,i=o._init;try{return E(i(u))}catch{return null}}}return null}var T=Object.assign,A=0,oe,ue,se,fe,le,ce,de;function ve(){}ve.__reactDisabledLog=!0;function Be(){{if(A===0){oe=console.log,ue=console.info,se=console.warn,fe=console.error,le=console.group,ce=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}}function Je(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:oe}),info:T({},e,{value:ue}),warn:T({},e,{value:se}),error:T({},e,{value:fe}),group:T({},e,{value:le}),groupCollapsed:T({},e,{value:ce}),groupEnd:T({},e,{value:de})})}A<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=C.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
|
+
`+q+e}}var K=!1,V;{var qe=typeof WeakMap=="function"?WeakMap:Map;V=new qe}function pe(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,Be();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,
|
|
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,Je(),Error.prepareStackTrace=o}var x=e?e.displayName||e.name:"",O=x?M(x):"";return typeof e=="function"&&V.set(e,O),O}function Ke(e,r,t){return pe(e,!1)}function Ge(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,Ge(e));if(typeof e=="string")return M(e);switch(e){case w:return M("Suspense");case p:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ke(e.render);case b:return U(e.type,r,t);case m:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,ge={},ye=C.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function ze(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 ge)&&(ge[a.message]=!0,N(o),c("Failed %s type: %s",t,a.message),N(null))}}}var Xe=Array.isArray;function G(e){return Xe(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ze(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function he(e){if(Ze(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),be(e)}var Ee=C.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},Re,_e;function er(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 rr(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 tr(e,r){typeof e.ref=="string"&&Ee.current}function nr(e,r){{var t=function(){Re||(Re=!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 ar(e,r){{var t=function(){_e||(_e=!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 ir=function(e,r,t,n,o,u,i){var a={$$typeof:y,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 or(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(he(t),a=""+t),rr(r)&&(he(r.key),a=""+r.key),er(r)&&(d=r.ref,tr(r,o));for(u in r)I.call(r,u)&&!Qe.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&&nr(i,f),d&&ar(i,f)}return ir(e,a,d,o,n,Ee.current,i)}}var z=C.ReactCurrentOwner,me=C.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}var X;X=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function Te(){{if(z.current){var e=E(z.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function ur(e){return""}var Oe={};function sr(e){{var r=Te();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
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=sr(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),j(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),j(null)}}function Pe(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&Se(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var o=Ie(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)H(i.value)&&Se(i.value,r)}}}function fr(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===b))t=r.propTypes;else return;if(t){var n=E(r);ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var o=E(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 lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){j(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),j(null);break}}e.ref!==null&&(j(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),j(null))}}var we={};function Ce(e,r,t,n,o,u){{var i=Ue(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=ur();d?a+=d:a+=Te();var s;e===null?s="null":G(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)}var f=or(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 x=0;x<g.length;x++)Pe(g[x],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 Pe(g,e)}if(I.call(r,"key")){var O=E(e),v=Object.keys(r).filter(function(yr){return yr!=="key"}),Z=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!we[O+Z]){var gr=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,O,gr,O),we[O+Z]=!0}}return e===P?lr(f):fr(f),f}}function cr(e,r,t){return Ce(e,r,t,!0)}function dr(e,r,t){return Ce(e,r,t,!1)}var vr=dr,pr=cr;D.Fragment=P,D.jsx=vr,D.jsxs=pr}()),D}var re;function ke(){return re||(re=1,process.env.NODE_ENV==="production"?W.exports=je():W.exports=xe()),W.exports}var te=ke();const De=({variant:R,...y})=>te.jsx("button",{className:"button "+R,...y}),Fe=({variant:R,...y})=>te.jsx("input",{className:"input "+R,...y});h.Button=De,h.Input=Fe,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ambuj.bhaskar/react-component-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
".": {
|
|
15
15
|
"import": "./dist/awiros-ui.js",
|
|
16
16
|
"require": "./dist/awiros-ui-umd.cjs"
|
|
17
|
-
}
|
|
17
|
+
},
|
|
18
|
+
"./style.css": "./dist/awiros-ui.css"
|
|
18
19
|
},
|
|
19
20
|
"scripts": {
|
|
20
21
|
"dev": "vite",
|