norma-library 0.0.1 → 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/Button/Button.d.ts +5 -0
- package/dist/Button/Button.d.ts.map +1 -0
- package/dist/Button/index.d.ts +2 -0
- package/dist/Button/index.d.ts.map +1 -0
- package/dist/HelloWorld.d.ts +1 -1
- package/dist/HelloWorld.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/norma-library.es.js +147 -140
- package/dist/norma-library.umd.js +10 -10
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["Button.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,MAAM,cAAe,OAAO,4CAMxC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/HelloWorld.d.ts
CHANGED
package/dist/HelloWorld.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelloWorld.d.ts","sourceRoot":"","sources":["HelloWorld.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"HelloWorld.d.ts","sourceRoot":"","sources":["HelloWorld.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AACD,eAAO,MAAM,UAAU,aAAc,WAAW,4CAE/C,CAAA"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/norma-library.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Oe from "react";
|
|
2
|
+
var K = { exports: {} }, k = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +9,21 @@ var Oe = { exports: {} }, k = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
12
|
+
var Re;
|
|
13
|
+
function ir() {
|
|
14
|
+
if (Re)
|
|
15
15
|
return k;
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
function S(
|
|
19
|
-
var
|
|
20
|
-
T !== void 0 && (
|
|
21
|
-
for (
|
|
22
|
-
R.call(l,
|
|
23
|
-
if (
|
|
24
|
-
for (
|
|
25
|
-
g[
|
|
26
|
-
return { $$typeof: P, type:
|
|
16
|
+
Re = 1;
|
|
17
|
+
var b = Oe, P = Symbol.for("react.element"), V = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, F = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function S(y, l, T) {
|
|
19
|
+
var v, g = {}, _ = null, I = null;
|
|
20
|
+
T !== void 0 && (_ = "" + T), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (I = l.ref);
|
|
21
|
+
for (v in l)
|
|
22
|
+
R.call(l, v) && !A.hasOwnProperty(v) && (g[v] = l[v]);
|
|
23
|
+
if (y && y.defaultProps)
|
|
24
|
+
for (v in l = y.defaultProps, l)
|
|
25
|
+
g[v] === void 0 && (g[v] = l[v]);
|
|
26
|
+
return { $$typeof: P, type: y, key: _, ref: I, props: g, _owner: F.current };
|
|
27
27
|
}
|
|
28
28
|
return k.Fragment = V, k.jsx = S, k.jsxs = S, k;
|
|
29
29
|
}
|
|
@@ -37,17 +37,17 @@ var D = {};
|
|
|
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 Te;
|
|
41
41
|
function ur() {
|
|
42
|
-
return
|
|
43
|
-
var
|
|
42
|
+
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var b = Oe, P = Symbol.for("react.element"), V = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), y = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), X = Symbol.iterator, Ce = "@@iterator";
|
|
44
44
|
function we(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = X && e[X] || e[Ce];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var O =
|
|
50
|
+
var O = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
51
|
function c(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
@@ -57,27 +57,27 @@ function ur() {
|
|
|
57
57
|
}
|
|
58
58
|
function Pe(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var n = O.ReactDebugCurrentFrame,
|
|
61
|
-
|
|
62
|
-
var u = t.map(function(
|
|
63
|
-
return String(
|
|
60
|
+
var n = O.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
61
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
62
|
+
var u = t.map(function(o) {
|
|
63
|
+
return String(o);
|
|
64
64
|
});
|
|
65
65
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var Se = !1, xe = !1, je = !1, ke = !1, De = !1,
|
|
69
|
-
|
|
68
|
+
var Se = !1, xe = !1, je = !1, ke = !1, De = !1, Z;
|
|
69
|
+
Z = Symbol.for("react.module.reference");
|
|
70
70
|
function Fe(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === R || e === A || De || e === F || e === T || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === A || De || e === F || e === T || e === v || ke || e === I || Se || xe || je || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === g || e.$$typeof === S || e.$$typeof === y || e.$$typeof === l || e.$$typeof === Z || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
73
|
function Ae(e, r, t) {
|
|
74
74
|
var n = e.displayName;
|
|
75
75
|
if (n)
|
|
76
76
|
return n;
|
|
77
|
-
var
|
|
78
|
-
return
|
|
77
|
+
var i = r.displayName || r.name || "";
|
|
78
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Q(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
83
|
function h(e) {
|
|
@@ -98,26 +98,26 @@ function ur() {
|
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case T:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case v:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case y:
|
|
107
107
|
var r = e;
|
|
108
|
-
return
|
|
108
|
+
return Q(r) + ".Consumer";
|
|
109
109
|
case S:
|
|
110
110
|
var t = e;
|
|
111
|
-
return
|
|
111
|
+
return Q(t._context) + ".Provider";
|
|
112
112
|
case l:
|
|
113
113
|
return Ae(e, e.render, "ForwardRef");
|
|
114
114
|
case g:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
116
|
return n !== null ? n : h(e.type) || "Memo";
|
|
117
|
-
case
|
|
118
|
-
var
|
|
117
|
+
case _: {
|
|
118
|
+
var i = e, u = i._payload, o = i._init;
|
|
119
119
|
try {
|
|
120
|
-
return h(
|
|
120
|
+
return h(o(u));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function ur() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var m = Object.assign, x = 0,
|
|
129
|
-
function
|
|
128
|
+
var m = Object.assign, x = 0, ee, re, te, ne, ae, oe, ie;
|
|
129
|
+
function ue() {
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
ue.__reactDisabledLog = !0;
|
|
132
132
|
function Ie() {
|
|
133
133
|
{
|
|
134
134
|
if (x === 0) {
|
|
135
|
-
|
|
135
|
+
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: ue,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -162,22 +162,22 @@ function ur() {
|
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
164
|
log: m({}, e, {
|
|
165
|
-
value:
|
|
165
|
+
value: ee
|
|
166
166
|
}),
|
|
167
167
|
info: m({}, e, {
|
|
168
|
-
value:
|
|
168
|
+
value: re
|
|
169
169
|
}),
|
|
170
170
|
warn: m({}, e, {
|
|
171
|
-
value:
|
|
171
|
+
value: te
|
|
172
172
|
}),
|
|
173
173
|
error: m({}, e, {
|
|
174
|
-
value:
|
|
174
|
+
value: ne
|
|
175
175
|
}),
|
|
176
176
|
group: m({}, e, {
|
|
177
|
-
value:
|
|
177
|
+
value: ae
|
|
178
178
|
}),
|
|
179
179
|
groupCollapsed: m({}, e, {
|
|
180
|
-
value:
|
|
180
|
+
value: oe
|
|
181
181
|
}),
|
|
182
182
|
groupEnd: m({}, e, {
|
|
183
183
|
value: ie
|
|
@@ -193,8 +193,8 @@ function ur() {
|
|
|
193
193
|
if (U === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var n =
|
|
196
|
+
} catch (i) {
|
|
197
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
198
198
|
U = n && n[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
@@ -206,7 +206,7 @@ function ur() {
|
|
|
206
206
|
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
207
|
W = new We();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function se(e, r) {
|
|
210
210
|
if (!e || B)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
@@ -216,53 +216,53 @@ function ur() {
|
|
|
216
216
|
}
|
|
217
217
|
var n;
|
|
218
218
|
B = !0;
|
|
219
|
-
var
|
|
219
|
+
var i = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var u;
|
|
222
222
|
u = M.current, M.current = null, Ie();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var o = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
235
|
-
} catch (
|
|
236
|
-
n =
|
|
234
|
+
Reflect.construct(o, []);
|
|
235
|
+
} catch (E) {
|
|
236
|
+
n = E;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], o);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
n =
|
|
241
|
+
o.call();
|
|
242
|
+
} catch (E) {
|
|
243
|
+
n = E;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(o.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
n =
|
|
250
|
+
} catch (E) {
|
|
251
|
+
n = E;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var a =
|
|
258
|
-
`),
|
|
259
|
-
`), s = a.length - 1, f =
|
|
255
|
+
} catch (E) {
|
|
256
|
+
if (E && n && typeof E.stack == "string") {
|
|
257
|
+
for (var a = E.stack.split(`
|
|
258
|
+
`), d = n.stack.split(`
|
|
259
|
+
`), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
|
|
260
260
|
f--;
|
|
261
261
|
for (; s >= 1 && f >= 0; s--, f--)
|
|
262
|
-
if (a[s] !==
|
|
262
|
+
if (a[s] !== d[f]) {
|
|
263
263
|
if (s !== 1 || f !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (s--, f--, f < 0 || a[s] !==
|
|
265
|
+
if (s--, f--, f < 0 || a[s] !== d[f]) {
|
|
266
266
|
var p = `
|
|
267
267
|
` + a[s].replace(" at new ", " at ");
|
|
268
268
|
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, p), p;
|
|
@@ -272,13 +272,13 @@ function ur() {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
B = !1, M.current = u, $e(), Error.prepareStackTrace =
|
|
275
|
+
B = !1, M.current = u, $e(), Error.prepareStackTrace = i;
|
|
276
276
|
}
|
|
277
|
-
var w = e ? e.displayName || e.name : "",
|
|
278
|
-
return typeof e == "function" && W.set(e,
|
|
277
|
+
var w = e ? e.displayName || e.name : "", me = w ? $(w) : "";
|
|
278
|
+
return typeof e == "function" && W.set(e, me), me;
|
|
279
279
|
}
|
|
280
280
|
function Ye(e, r, t) {
|
|
281
|
-
return
|
|
281
|
+
return se(e, !1);
|
|
282
282
|
}
|
|
283
283
|
function Ne(e) {
|
|
284
284
|
var r = e.prototype;
|
|
@@ -288,13 +288,13 @@ function ur() {
|
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return se(e, Ne(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return $(e);
|
|
294
294
|
switch (e) {
|
|
295
295
|
case T:
|
|
296
296
|
return $("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case v:
|
|
298
298
|
return $("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
@@ -303,40 +303,40 @@ function ur() {
|
|
|
303
303
|
return Ye(e.render);
|
|
304
304
|
case g:
|
|
305
305
|
return Y(e.type, r, t);
|
|
306
|
-
case
|
|
307
|
-
var n = e,
|
|
306
|
+
case _: {
|
|
307
|
+
var n = e, i = n._payload, u = n._init;
|
|
308
308
|
try {
|
|
309
|
-
return Y(u(
|
|
309
|
+
return Y(u(i), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var N = Object.prototype.hasOwnProperty,
|
|
316
|
+
var N = Object.prototype.hasOwnProperty, fe = {}, le = O.ReactDebugCurrentFrame;
|
|
317
317
|
function L(e) {
|
|
318
318
|
if (e) {
|
|
319
319
|
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
320
|
-
|
|
320
|
+
le.setExtraStackFrame(t);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
le.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function Le(e, r, t, n,
|
|
324
|
+
function Le(e, r, t, n, i) {
|
|
325
325
|
{
|
|
326
326
|
var u = Function.call.bind(N);
|
|
327
|
-
for (var
|
|
328
|
-
if (u(e,
|
|
327
|
+
for (var o in e)
|
|
328
|
+
if (u(e, o)) {
|
|
329
329
|
var a = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[o] != "function") {
|
|
332
|
+
var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw d.name = "Invariant Violation", d;
|
|
334
334
|
}
|
|
335
|
-
a = e[
|
|
335
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (s) {
|
|
337
337
|
a = s;
|
|
338
338
|
}
|
|
339
|
-
a && !(a instanceof Error) && (L(
|
|
339
|
+
a && !(a instanceof Error) && (L(i), 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, o, typeof a), L(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, L(i), c("Failed %s type: %s", t, a.message), L(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -352,24 +352,24 @@ function ur() {
|
|
|
352
352
|
}
|
|
353
353
|
function Ue(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return ce(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function ce(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function de(e) {
|
|
364
364
|
if (Ue(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.", Me(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.", Me(e)), ce(e);
|
|
366
366
|
}
|
|
367
367
|
var j = O.ReactCurrentOwner, Be = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
}, ve,
|
|
372
|
+
}, ve, pe, J;
|
|
373
373
|
J = {};
|
|
374
374
|
function qe(e) {
|
|
375
375
|
if (N.call(e, "ref")) {
|
|
@@ -407,7 +407,7 @@ function ur() {
|
|
|
407
407
|
function He(e, r) {
|
|
408
408
|
{
|
|
409
409
|
var t = function() {
|
|
410
|
-
|
|
410
|
+
pe || (pe = !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
411
|
};
|
|
412
412
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
413
|
get: t,
|
|
@@ -415,13 +415,13 @@ function ur() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var Ke = function(e, r, t, n,
|
|
418
|
+
var Ke = function(e, r, t, n, i, u, o) {
|
|
419
419
|
var a = {
|
|
420
420
|
$$typeof: P,
|
|
421
421
|
type: e,
|
|
422
422
|
key: r,
|
|
423
423
|
ref: t,
|
|
424
|
-
props:
|
|
424
|
+
props: o,
|
|
425
425
|
_owner: u
|
|
426
426
|
};
|
|
427
427
|
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
@@ -438,34 +438,34 @@ function ur() {
|
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
441
|
+
value: i
|
|
442
442
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
443
443
|
};
|
|
444
|
-
function Xe(e, r, t, n,
|
|
444
|
+
function Xe(e, r, t, n, i) {
|
|
445
445
|
{
|
|
446
|
-
var u,
|
|
447
|
-
t !== void 0 && (
|
|
446
|
+
var u, o = {}, a = null, d = null;
|
|
447
|
+
t !== void 0 && (de(t), a = "" + t), Je(r) && (de(r.key), a = "" + r.key), qe(r) && (d = r.ref, Ge(r, i));
|
|
448
448
|
for (u in r)
|
|
449
|
-
N.call(r, u) && !Be.hasOwnProperty(u) && (
|
|
449
|
+
N.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
|
|
450
450
|
if (e && e.defaultProps) {
|
|
451
451
|
var s = e.defaultProps;
|
|
452
452
|
for (u in s)
|
|
453
|
-
|
|
453
|
+
o[u] === void 0 && (o[u] = s[u]);
|
|
454
454
|
}
|
|
455
|
-
if (a ||
|
|
455
|
+
if (a || d) {
|
|
456
456
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
-
a && ze(
|
|
457
|
+
a && ze(o, f), d && He(o, f);
|
|
458
458
|
}
|
|
459
|
-
return Ke(e, a,
|
|
459
|
+
return Ke(e, a, d, i, n, j.current, o);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var G = O.ReactCurrentOwner,
|
|
462
|
+
var G = O.ReactCurrentOwner, be = O.ReactDebugCurrentFrame;
|
|
463
463
|
function C(e) {
|
|
464
464
|
if (e) {
|
|
465
465
|
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
466
|
-
|
|
466
|
+
be.setExtraStackFrame(t);
|
|
467
467
|
} else
|
|
468
|
-
|
|
468
|
+
be.setExtraStackFrame(null);
|
|
469
469
|
}
|
|
470
470
|
var z;
|
|
471
471
|
z = !1;
|
|
@@ -508,7 +508,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
508
508
|
return r;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Ee(e, r) {
|
|
512
512
|
{
|
|
513
513
|
if (!e._store || e._store.validated || e.key != null)
|
|
514
514
|
return;
|
|
@@ -521,22 +521,22 @@ Check the top-level render call using <` + t + ">.");
|
|
|
521
521
|
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + h(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);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function ye(e, r) {
|
|
525
525
|
{
|
|
526
526
|
if (typeof e != "object")
|
|
527
527
|
return;
|
|
528
528
|
if (q(e))
|
|
529
529
|
for (var t = 0; t < e.length; t++) {
|
|
530
530
|
var n = e[t];
|
|
531
|
-
H(n) &&
|
|
531
|
+
H(n) && Ee(n, r);
|
|
532
532
|
}
|
|
533
533
|
else if (H(e))
|
|
534
534
|
e._store && (e._store.validated = !0);
|
|
535
535
|
else if (e) {
|
|
536
|
-
var
|
|
537
|
-
if (typeof
|
|
538
|
-
for (var u =
|
|
539
|
-
H(
|
|
536
|
+
var i = we(e);
|
|
537
|
+
if (typeof i == "function" && i !== e.entries)
|
|
538
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
539
|
+
H(o.value) && Ee(o.value, r);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
@@ -557,8 +557,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
557
557
|
Le(t, e.props, "prop", n, e);
|
|
558
558
|
} else if (r.PropTypes !== void 0 && !z) {
|
|
559
559
|
z = !0;
|
|
560
|
-
var
|
|
561
|
-
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
560
|
+
var i = h(r);
|
|
561
|
+
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
562
562
|
}
|
|
563
563
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
564
564
|
}
|
|
@@ -575,32 +575,32 @@ Check the top-level render call using <` + t + ">.");
|
|
|
575
575
|
e.ref !== null && (C(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function _e(e, r, t, n,
|
|
578
|
+
function _e(e, r, t, n, i, u) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
580
|
+
var o = Fe(e);
|
|
581
|
+
if (!o) {
|
|
582
582
|
var a = "";
|
|
583
583
|
(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.");
|
|
584
|
-
var
|
|
585
|
-
|
|
584
|
+
var d = Ze(i);
|
|
585
|
+
d ? a += d : a += ge();
|
|
586
586
|
var s;
|
|
587
587
|
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === P ? (s = "<" + (h(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);
|
|
588
588
|
}
|
|
589
|
-
var f = Xe(e, r, t,
|
|
589
|
+
var f = Xe(e, r, t, i, u);
|
|
590
590
|
if (f == null)
|
|
591
591
|
return f;
|
|
592
|
-
if (
|
|
592
|
+
if (o) {
|
|
593
593
|
var p = r.children;
|
|
594
594
|
if (p !== void 0)
|
|
595
595
|
if (n)
|
|
596
596
|
if (q(p)) {
|
|
597
597
|
for (var w = 0; w < p.length; w++)
|
|
598
|
-
|
|
598
|
+
ye(p[w], e);
|
|
599
599
|
Object.freeze && Object.freeze(p);
|
|
600
600
|
} else
|
|
601
601
|
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.");
|
|
602
602
|
else
|
|
603
|
-
|
|
603
|
+
ye(p, e);
|
|
604
604
|
}
|
|
605
605
|
return e === R ? rr(f) : er(f), f;
|
|
606
606
|
}
|
|
@@ -611,19 +611,26 @@ Check the top-level render call using <` + t + ">.");
|
|
|
611
611
|
function nr(e, r, t) {
|
|
612
612
|
return _e(e, r, t, !1);
|
|
613
613
|
}
|
|
614
|
-
var ar = nr,
|
|
615
|
-
D.Fragment = R, D.jsx = ar, D.jsxs =
|
|
614
|
+
var ar = nr, or = tr;
|
|
615
|
+
D.Fragment = R, D.jsx = ar, D.jsxs = or;
|
|
616
616
|
}()), D;
|
|
617
617
|
}
|
|
618
|
-
(function(
|
|
619
|
-
process.env.NODE_ENV === "production" ?
|
|
620
|
-
})(
|
|
621
|
-
const sr =
|
|
622
|
-
text:
|
|
623
|
-
}) => /* @__PURE__ */
|
|
618
|
+
(function(b) {
|
|
619
|
+
process.env.NODE_ENV === "production" ? b.exports = ir() : b.exports = ur();
|
|
620
|
+
})(K);
|
|
621
|
+
const sr = K.exports.jsx, fr = K.exports.jsxs, cr = ({
|
|
622
|
+
text: b
|
|
623
|
+
}) => /* @__PURE__ */ fr("div", {
|
|
624
624
|
className: "text",
|
|
625
|
-
children: ["This is test text: ",
|
|
625
|
+
children: ["This is test text: ", b]
|
|
626
|
+
}), dr = ({
|
|
627
|
+
label: b
|
|
628
|
+
}) => /* @__PURE__ */ sr("button", {
|
|
629
|
+
rel: "noreferrer noopener",
|
|
630
|
+
type: "button",
|
|
631
|
+
children: b
|
|
626
632
|
});
|
|
627
633
|
export {
|
|
628
|
-
|
|
634
|
+
dr as Button,
|
|
635
|
+
cr as Helloworld
|
|
629
636
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(_,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(_=typeof globalThis<"u"?globalThis:_||self,P(_.ReactViteLibrary={},_.require$$0))})(this,function(_,P){"use strict";const
|
|
1
|
+
(function(_,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(_=typeof globalThis<"u"?globalThis:_||self,P(_.ReactViteLibrary={},_.require$$0))})(this,function(_,P){"use strict";const Q=(l=>l&&typeof l=="object"&&"default"in l?l:{default:l})(P);var U={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 ee;function Ce(){if(ee)return x;ee=1;var
|
|
9
|
+
*/var ee;function Ce(){if(ee)return x;ee=1;var l=Q.default,k=Symbol.for("react.element"),B=Symbol.for("react.fragment"),T=Object.prototype.hasOwnProperty,I=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function D(E,c,O){var p,g={},m=null,W=null;O!==void 0&&(m=""+O),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(W=c.ref);for(p in c)T.call(c,p)&&!$.hasOwnProperty(p)&&(g[p]=c[p]);if(E&&E.defaultProps)for(p in c=E.defaultProps,c)g[p]===void 0&&(g[p]=c[p]);return{$$typeof:k,type:E,key:m,ref:W,props:g,_owner:I.current}}return x.Fragment=B,x.jsx=D,x.jsxs=D,x}var j={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,14 +14,14 @@
|
|
|
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 re;function Pe(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),s=a.length-1,f=
|
|
21
|
-
`+a[s].replace(" at new "," at ");return e.displayName&&
|
|
17
|
+
*/var re;function Pe(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var l=Q.default,k=Symbol.for("react.element"),B=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),E=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),W=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 S=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(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=S.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var $e=!1,We=!1,Ye=!1,Le=!1,Ne=!1,ne;ne=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===T||e===$||Ne||e===I||e===O||e===p||Le||e===W||$e||We||Ye||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===D||e.$$typeof===E||e.$$typeof===c||e.$$typeof===ne||e.getModuleId!==void 0))}function Ve(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ae(e){return e.displayName||"Context"}function h(e){if(e==null)return null;if(typeof e.tag=="number"&&d("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 T:return"Fragment";case B:return"Portal";case $:return"Profiler";case I:return"StrictMode";case O:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return ae(r)+".Consumer";case D:var t=e;return ae(t._context)+".Provider";case c:return Ve(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:h(e.type)||"Memo";case m:{var i=e,u=i._payload,o=i._init;try{return h(o(u))}catch{return null}}}return null}var R=Object.assign,F=0,oe,ie,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Ue(){{if(F===0){oe=console.log,ie=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})}F++}}function Be(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:oe}),info:R({},e,{value:ie}),warn:R({},e,{value:ue}),error:R({},e,{value:se}),group:R({},e,{value:fe}),groupCollapsed:R({},e,{value:le}),groupEnd:R({},e,{value:ce})})}F<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=S.ReactCurrentDispatcher,J;function Y(e,r,t){{if(J===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
|
|
18
|
+
`+J+e}}var G=!1,L;{var qe=typeof WeakMap=="function"?WeakMap:Map;L=new qe}function ve(e,r){if(!e||G)return"";{var t=L.get(e);if(t!==void 0)return t}var n;G=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Ue();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(y){n=y}Reflect.construct(e,[],o)}else{try{o.call()}catch(y){n=y}e.call(o.prototype)}}else{try{throw Error()}catch(y){n=y}e()}}catch(y){if(y&&n&&typeof y.stack=="string"){for(var a=y.stack.split(`
|
|
19
|
+
`),v=n.stack.split(`
|
|
20
|
+
`),s=a.length-1,f=v.length-1;s>=1&&f>=0&&a[s]!==v[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==v[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==v[f]){var b=`
|
|
21
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,b),b}while(s>=1&&f>=0);break}}}finally{G=!1,q.current=u,Be(),Error.prepareStackTrace=i}var C=e?e.displayName||e.name:"",we=C?Y(C):"";return typeof e=="function"&&L.set(e,we),we}function Je(e,r,t){return ve(e,!1)}function Ge(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Ge(e));if(typeof e=="string")return Y(e);switch(e){case O:return Y("Suspense");case p:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Je(e.render);case g:return N(e.type,r,t);case m:{var n=e,i=n._payload,u=n._init;try{return N(u(i),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,pe={},be=S.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function ze(e,r,t,n,i){{var u=Function.call.bind(M);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var v=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`.");throw v.name="Invariant Violation",v}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(V(i),d("%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),V(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,V(i),d("Failed %s type: %s",t,a.message),V(null))}}}var He=Array.isArray;function z(e){return He(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function he(e){if(Xe(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),ge(e)}var A=S.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},ye,_e,H;H={};function Qe(e){if(M.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(M.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){if(typeof e.ref=="string"&&A.current&&r&&A.current.stateNode!==r){var t=h(A.current.type);H[t]||(d('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',h(A.current.type),e.ref),H[t]=!0)}}function tr(e,r){{var t=function(){ye||(ye=!0,d("%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(){_e||(_e=!0,d("%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,i,u,o){var a={$$typeof:k,type:e,key:r,ref:t,props:o,_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:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,n,i){{var u,o={},a=null,v=null;t!==void 0&&(he(t),a=""+t),er(r)&&(he(r.key),a=""+r.key),Qe(r)&&(v=r.ref,rr(r,i));for(u in r)M.call(r,u)&&!Ze.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&tr(o,f),v&&nr(o,f)}return ar(e,a,v,i,n,A.current,o)}}var K=S.ReactCurrentOwner,Ee=S.ReactDebugCurrentFrame;function w(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===k}function me(){{if(K.current){var e=h(K.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 ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+r+":"+t+"."}return""}}var Re={};function
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var Re={};function ur(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Re[t])return;Re[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+h(e._owner.type)+"."),w(e),d('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),w(null)}}function Oe(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&Te(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var i=Ae(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Z(o.value)&&Te(o.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===c||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=h(r);ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var i=h(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("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"){w(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),w(null);break}}e.ref!==null&&(w(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),w(null))}}function Se(e,r,t,n,i,u){{var o=Me(e);if(!o){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 v=ir(i);v?a+=v:a+=me();var s;e===null?s="null":z(e)?s="array":e!==void 0&&e.$$typeof===k?(s="<"+(h(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,d("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,i,u);if(f==null)return f;if(o){var b=r.children;if(b!==void 0)if(n)if(z(b)){for(var C=0;C<b.length;C++)Oe(b[C],e);Object.freeze&&Object.freeze(b)}else d("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 Oe(b,e)}return e===T?fr(f):sr(f),f}}function lr(e,r,t){return Se(e,r,t,!0)}function cr(e,r,t){return Se(e,r,t,!1)}var dr=cr,vr=lr;j.Fragment=T,j.jsx=dr,j.jsxs=vr}()),j}(function(l){process.env.NODE_ENV==="production"?l.exports=Ce():l.exports=Pe()})(U);const xe=U.exports.jsx,je=U.exports.jsxs,ke=({text:l})=>je("div",{className:"text",children:["This is test text: ",l]}),De=({label:l})=>xe("button",{rel:"noreferrer noopener",type:"button",children:l});_.Button=De,_.Helloworld=ke,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "norma-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Norma Library. A React UI kit.",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite",
|
|
9
|
-
"build": "tsc && vite build",
|
|
9
|
+
"build": "tsc --jsx react && vite build",
|
|
10
10
|
"preview": "vite preview",
|
|
11
11
|
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
|
|
12
12
|
"lint:fix": "eslint --fix 'src/**/*.{jsx,ts,tsx}'",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"types": "./dist/index.d.ts",
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^18.7.6",
|
|
42
|
-
"@types/react": "^18.
|
|
43
|
-
"@types/react-dom": "^18.
|
|
42
|
+
"@types/react": "^18.2.19",
|
|
43
|
+
"@types/react-dom": "^18.2.7",
|
|
44
44
|
"@typescript-eslint/eslint-plugin": "^5.34.0",
|
|
45
45
|
"@typescript-eslint/parser": "^5.34.0",
|
|
46
46
|
"@vitejs/plugin-react": "^2.1.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"prettier": "^2.7.1",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
|
-
"typescript": "^4.
|
|
62
|
+
"typescript": "^4.9.5",
|
|
63
63
|
"vite": "^3.1.0",
|
|
64
64
|
"vite-plugin-dts": "^1.4.1",
|
|
65
65
|
"vite-plugin-linter": "^1.2.0",
|