norma-library 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/HelloWorld.d.ts +5 -0
- package/dist/HelloWorld.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/norma-library.es.js +629 -0
- package/dist/norma-library.umd.js +27 -0
- package/dist/vite.svg +1 -0
- package/package.json +86 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
|
13
|
+
|
|
14
|
+
- Configure the top-level `parserOptions` property like this:
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
parserOptions: {
|
|
18
|
+
ecmaVersion: 'latest',
|
|
19
|
+
sourceType: 'module',
|
|
20
|
+
project: ['./tsconfig.json', './tsconfig.node.json'],
|
|
21
|
+
tsconfigRootDir: __dirname,
|
|
22
|
+
},
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
|
26
|
+
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
|
|
27
|
+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelloWorld.d.ts","sourceRoot":"","sources":["HelloWorld.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AACD,eAAO,MAAM,UAAU,aAEpB,WAAW,QAKb,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
import Te from "react";
|
|
2
|
+
var Oe = { exports: {} }, k = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var me;
|
|
13
|
+
function or() {
|
|
14
|
+
if (me)
|
|
15
|
+
return k;
|
|
16
|
+
me = 1;
|
|
17
|
+
var E = Te, P = Symbol.for("react.element"), V = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, F = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function S(_, l, T) {
|
|
19
|
+
var d, g = {}, y = null, I = null;
|
|
20
|
+
T !== void 0 && (y = "" + T), l.key !== void 0 && (y = "" + l.key), l.ref !== void 0 && (I = l.ref);
|
|
21
|
+
for (d in l)
|
|
22
|
+
R.call(l, d) && !A.hasOwnProperty(d) && (g[d] = l[d]);
|
|
23
|
+
if (_ && _.defaultProps)
|
|
24
|
+
for (d in l = _.defaultProps, l)
|
|
25
|
+
g[d] === void 0 && (g[d] = l[d]);
|
|
26
|
+
return { $$typeof: P, type: _, key: y, ref: I, props: g, _owner: F.current };
|
|
27
|
+
}
|
|
28
|
+
return k.Fragment = V, k.jsx = S, k.jsxs = S, k;
|
|
29
|
+
}
|
|
30
|
+
var D = {};
|
|
31
|
+
/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-jsx-runtime.development.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/
|
|
40
|
+
var Re;
|
|
41
|
+
function ur() {
|
|
42
|
+
return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var E = Te, 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"), _ = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), K = Symbol.iterator, Ce = "@@iterator";
|
|
44
|
+
function we(e) {
|
|
45
|
+
if (e === null || typeof e != "object")
|
|
46
|
+
return null;
|
|
47
|
+
var r = K && e[K] || e[Ce];
|
|
48
|
+
return typeof r == "function" ? r : null;
|
|
49
|
+
}
|
|
50
|
+
var O = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function c(e) {
|
|
52
|
+
{
|
|
53
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
54
|
+
t[n - 1] = arguments[n];
|
|
55
|
+
Pe("error", e, t);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function Pe(e, r, t) {
|
|
59
|
+
{
|
|
60
|
+
var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
61
|
+
o !== "" && (r += "%s", t = t.concat([o]));
|
|
62
|
+
var u = t.map(function(i) {
|
|
63
|
+
return String(i);
|
|
64
|
+
});
|
|
65
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
var Se = !1, xe = !1, je = !1, ke = !1, De = !1, X;
|
|
69
|
+
X = Symbol.for("react.module.reference");
|
|
70
|
+
function Fe(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === A || De || e === F || e === T || e === d || ke || e === I || Se || xe || je || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === g || e.$$typeof === S || e.$$typeof === _ || e.$$typeof === l || e.$$typeof === X || e.getModuleId !== void 0));
|
|
72
|
+
}
|
|
73
|
+
function Ae(e, r, t) {
|
|
74
|
+
var n = e.displayName;
|
|
75
|
+
if (n)
|
|
76
|
+
return n;
|
|
77
|
+
var o = r.displayName || r.name || "";
|
|
78
|
+
return o !== "" ? t + "(" + o + ")" : t;
|
|
79
|
+
}
|
|
80
|
+
function Z(e) {
|
|
81
|
+
return e.displayName || "Context";
|
|
82
|
+
}
|
|
83
|
+
function h(e) {
|
|
84
|
+
if (e == null)
|
|
85
|
+
return null;
|
|
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")
|
|
87
|
+
return e.displayName || e.name || null;
|
|
88
|
+
if (typeof e == "string")
|
|
89
|
+
return e;
|
|
90
|
+
switch (e) {
|
|
91
|
+
case R:
|
|
92
|
+
return "Fragment";
|
|
93
|
+
case V:
|
|
94
|
+
return "Portal";
|
|
95
|
+
case A:
|
|
96
|
+
return "Profiler";
|
|
97
|
+
case F:
|
|
98
|
+
return "StrictMode";
|
|
99
|
+
case T:
|
|
100
|
+
return "Suspense";
|
|
101
|
+
case d:
|
|
102
|
+
return "SuspenseList";
|
|
103
|
+
}
|
|
104
|
+
if (typeof e == "object")
|
|
105
|
+
switch (e.$$typeof) {
|
|
106
|
+
case _:
|
|
107
|
+
var r = e;
|
|
108
|
+
return Z(r) + ".Consumer";
|
|
109
|
+
case S:
|
|
110
|
+
var t = e;
|
|
111
|
+
return Z(t._context) + ".Provider";
|
|
112
|
+
case l:
|
|
113
|
+
return Ae(e, e.render, "ForwardRef");
|
|
114
|
+
case g:
|
|
115
|
+
var n = e.displayName || null;
|
|
116
|
+
return n !== null ? n : h(e.type) || "Memo";
|
|
117
|
+
case y: {
|
|
118
|
+
var o = e, u = o._payload, i = o._init;
|
|
119
|
+
try {
|
|
120
|
+
return h(i(u));
|
|
121
|
+
} catch {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
var m = Object.assign, x = 0, Q, ee, re, te, ne, ae, ie;
|
|
129
|
+
function oe() {
|
|
130
|
+
}
|
|
131
|
+
oe.__reactDisabledLog = !0;
|
|
132
|
+
function Ie() {
|
|
133
|
+
{
|
|
134
|
+
if (x === 0) {
|
|
135
|
+
Q = console.log, ee = console.info, re = console.warn, te = console.error, ne = console.group, ae = console.groupCollapsed, ie = console.groupEnd;
|
|
136
|
+
var e = {
|
|
137
|
+
configurable: !0,
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
value: oe,
|
|
140
|
+
writable: !0
|
|
141
|
+
};
|
|
142
|
+
Object.defineProperties(console, {
|
|
143
|
+
info: e,
|
|
144
|
+
log: e,
|
|
145
|
+
warn: e,
|
|
146
|
+
error: e,
|
|
147
|
+
group: e,
|
|
148
|
+
groupCollapsed: e,
|
|
149
|
+
groupEnd: e
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
x++;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function $e() {
|
|
156
|
+
{
|
|
157
|
+
if (x--, x === 0) {
|
|
158
|
+
var e = {
|
|
159
|
+
configurable: !0,
|
|
160
|
+
enumerable: !0,
|
|
161
|
+
writable: !0
|
|
162
|
+
};
|
|
163
|
+
Object.defineProperties(console, {
|
|
164
|
+
log: m({}, e, {
|
|
165
|
+
value: Q
|
|
166
|
+
}),
|
|
167
|
+
info: m({}, e, {
|
|
168
|
+
value: ee
|
|
169
|
+
}),
|
|
170
|
+
warn: m({}, e, {
|
|
171
|
+
value: re
|
|
172
|
+
}),
|
|
173
|
+
error: m({}, e, {
|
|
174
|
+
value: te
|
|
175
|
+
}),
|
|
176
|
+
group: m({}, e, {
|
|
177
|
+
value: ne
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: m({}, e, {
|
|
180
|
+
value: ae
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: m({}, e, {
|
|
183
|
+
value: ie
|
|
184
|
+
})
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
var M = O.ReactCurrentDispatcher, U;
|
|
191
|
+
function $(e, r, t) {
|
|
192
|
+
{
|
|
193
|
+
if (U === void 0)
|
|
194
|
+
try {
|
|
195
|
+
throw Error();
|
|
196
|
+
} catch (o) {
|
|
197
|
+
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
U = n && n[1] || "";
|
|
199
|
+
}
|
|
200
|
+
return `
|
|
201
|
+
` + U + e;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
var B = !1, W;
|
|
205
|
+
{
|
|
206
|
+
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
W = new We();
|
|
208
|
+
}
|
|
209
|
+
function ue(e, r) {
|
|
210
|
+
if (!e || B)
|
|
211
|
+
return "";
|
|
212
|
+
{
|
|
213
|
+
var t = W.get(e);
|
|
214
|
+
if (t !== void 0)
|
|
215
|
+
return t;
|
|
216
|
+
}
|
|
217
|
+
var n;
|
|
218
|
+
B = !0;
|
|
219
|
+
var o = Error.prepareStackTrace;
|
|
220
|
+
Error.prepareStackTrace = void 0;
|
|
221
|
+
var u;
|
|
222
|
+
u = M.current, M.current = null, Ie();
|
|
223
|
+
try {
|
|
224
|
+
if (r) {
|
|
225
|
+
var i = function() {
|
|
226
|
+
throw Error();
|
|
227
|
+
};
|
|
228
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
229
|
+
set: function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
}
|
|
232
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
+
try {
|
|
234
|
+
Reflect.construct(i, []);
|
|
235
|
+
} catch (b) {
|
|
236
|
+
n = b;
|
|
237
|
+
}
|
|
238
|
+
Reflect.construct(e, [], i);
|
|
239
|
+
} else {
|
|
240
|
+
try {
|
|
241
|
+
i.call();
|
|
242
|
+
} catch (b) {
|
|
243
|
+
n = b;
|
|
244
|
+
}
|
|
245
|
+
e.call(i.prototype);
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
try {
|
|
249
|
+
throw Error();
|
|
250
|
+
} catch (b) {
|
|
251
|
+
n = b;
|
|
252
|
+
}
|
|
253
|
+
e();
|
|
254
|
+
}
|
|
255
|
+
} catch (b) {
|
|
256
|
+
if (b && n && typeof b.stack == "string") {
|
|
257
|
+
for (var a = b.stack.split(`
|
|
258
|
+
`), v = n.stack.split(`
|
|
259
|
+
`), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )
|
|
260
|
+
f--;
|
|
261
|
+
for (; s >= 1 && f >= 0; s--, f--)
|
|
262
|
+
if (a[s] !== v[f]) {
|
|
263
|
+
if (s !== 1 || f !== 1)
|
|
264
|
+
do
|
|
265
|
+
if (s--, f--, f < 0 || a[s] !== v[f]) {
|
|
266
|
+
var p = `
|
|
267
|
+
` + a[s].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, p), p;
|
|
269
|
+
}
|
|
270
|
+
while (s >= 1 && f >= 0);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} finally {
|
|
275
|
+
B = !1, M.current = u, $e(), Error.prepareStackTrace = o;
|
|
276
|
+
}
|
|
277
|
+
var w = e ? e.displayName || e.name : "", ye = w ? $(w) : "";
|
|
278
|
+
return typeof e == "function" && W.set(e, ye), ye;
|
|
279
|
+
}
|
|
280
|
+
function Ye(e, r, t) {
|
|
281
|
+
return ue(e, !1);
|
|
282
|
+
}
|
|
283
|
+
function Ne(e) {
|
|
284
|
+
var r = e.prototype;
|
|
285
|
+
return !!(r && r.isReactComponent);
|
|
286
|
+
}
|
|
287
|
+
function Y(e, r, t) {
|
|
288
|
+
if (e == null)
|
|
289
|
+
return "";
|
|
290
|
+
if (typeof e == "function")
|
|
291
|
+
return ue(e, Ne(e));
|
|
292
|
+
if (typeof e == "string")
|
|
293
|
+
return $(e);
|
|
294
|
+
switch (e) {
|
|
295
|
+
case T:
|
|
296
|
+
return $("Suspense");
|
|
297
|
+
case d:
|
|
298
|
+
return $("SuspenseList");
|
|
299
|
+
}
|
|
300
|
+
if (typeof e == "object")
|
|
301
|
+
switch (e.$$typeof) {
|
|
302
|
+
case l:
|
|
303
|
+
return Ye(e.render);
|
|
304
|
+
case g:
|
|
305
|
+
return Y(e.type, r, t);
|
|
306
|
+
case y: {
|
|
307
|
+
var n = e, o = n._payload, u = n._init;
|
|
308
|
+
try {
|
|
309
|
+
return Y(u(o), r, t);
|
|
310
|
+
} catch {
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return "";
|
|
315
|
+
}
|
|
316
|
+
var N = Object.prototype.hasOwnProperty, se = {}, fe = O.ReactDebugCurrentFrame;
|
|
317
|
+
function L(e) {
|
|
318
|
+
if (e) {
|
|
319
|
+
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
320
|
+
fe.setExtraStackFrame(t);
|
|
321
|
+
} else
|
|
322
|
+
fe.setExtraStackFrame(null);
|
|
323
|
+
}
|
|
324
|
+
function Le(e, r, t, n, o) {
|
|
325
|
+
{
|
|
326
|
+
var u = Function.call.bind(N);
|
|
327
|
+
for (var i in e)
|
|
328
|
+
if (u(e, i)) {
|
|
329
|
+
var a = void 0;
|
|
330
|
+
try {
|
|
331
|
+
if (typeof e[i] != "function") {
|
|
332
|
+
var v = 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`.");
|
|
333
|
+
throw v.name = "Invariant Violation", v;
|
|
334
|
+
}
|
|
335
|
+
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (s) {
|
|
337
|
+
a = s;
|
|
338
|
+
}
|
|
339
|
+
a && !(a instanceof Error) && (L(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), L(null)), a instanceof Error && !(a.message in se) && (se[a.message] = !0, L(o), c("Failed %s type: %s", t, a.message), L(null));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
var Ve = Array.isArray;
|
|
344
|
+
function q(e) {
|
|
345
|
+
return Ve(e);
|
|
346
|
+
}
|
|
347
|
+
function Me(e) {
|
|
348
|
+
{
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return t;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function Ue(e) {
|
|
354
|
+
try {
|
|
355
|
+
return le(e), !1;
|
|
356
|
+
} catch {
|
|
357
|
+
return !0;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
function le(e) {
|
|
361
|
+
return "" + e;
|
|
362
|
+
}
|
|
363
|
+
function ce(e) {
|
|
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)), le(e);
|
|
366
|
+
}
|
|
367
|
+
var j = O.ReactCurrentOwner, Be = {
|
|
368
|
+
key: !0,
|
|
369
|
+
ref: !0,
|
|
370
|
+
__self: !0,
|
|
371
|
+
__source: !0
|
|
372
|
+
}, ve, de, J;
|
|
373
|
+
J = {};
|
|
374
|
+
function qe(e) {
|
|
375
|
+
if (N.call(e, "ref")) {
|
|
376
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
|
+
if (r && r.isReactWarning)
|
|
378
|
+
return !1;
|
|
379
|
+
}
|
|
380
|
+
return e.ref !== void 0;
|
|
381
|
+
}
|
|
382
|
+
function Je(e) {
|
|
383
|
+
if (N.call(e, "key")) {
|
|
384
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
|
+
if (r && r.isReactWarning)
|
|
386
|
+
return !1;
|
|
387
|
+
}
|
|
388
|
+
return e.key !== void 0;
|
|
389
|
+
}
|
|
390
|
+
function Ge(e, r) {
|
|
391
|
+
if (typeof e.ref == "string" && j.current && r && j.current.stateNode !== r) {
|
|
392
|
+
var t = h(j.current.type);
|
|
393
|
+
J[t] || (c('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(j.current.type), e.ref), J[t] = !0);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
function ze(e, r) {
|
|
397
|
+
{
|
|
398
|
+
var t = function() {
|
|
399
|
+
ve || (ve = !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
|
+
};
|
|
401
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
|
+
get: t,
|
|
403
|
+
configurable: !0
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
function He(e, r) {
|
|
408
|
+
{
|
|
409
|
+
var t = function() {
|
|
410
|
+
de || (de = !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
|
+
};
|
|
412
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
|
+
get: t,
|
|
414
|
+
configurable: !0
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
var Ke = function(e, r, t, n, o, u, i) {
|
|
419
|
+
var a = {
|
|
420
|
+
$$typeof: P,
|
|
421
|
+
type: e,
|
|
422
|
+
key: r,
|
|
423
|
+
ref: t,
|
|
424
|
+
props: i,
|
|
425
|
+
_owner: u
|
|
426
|
+
};
|
|
427
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
428
|
+
configurable: !1,
|
|
429
|
+
enumerable: !1,
|
|
430
|
+
writable: !0,
|
|
431
|
+
value: !1
|
|
432
|
+
}), Object.defineProperty(a, "_self", {
|
|
433
|
+
configurable: !1,
|
|
434
|
+
enumerable: !1,
|
|
435
|
+
writable: !1,
|
|
436
|
+
value: n
|
|
437
|
+
}), Object.defineProperty(a, "_source", {
|
|
438
|
+
configurable: !1,
|
|
439
|
+
enumerable: !1,
|
|
440
|
+
writable: !1,
|
|
441
|
+
value: o
|
|
442
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
443
|
+
};
|
|
444
|
+
function Xe(e, r, t, n, o) {
|
|
445
|
+
{
|
|
446
|
+
var u, i = {}, a = null, v = null;
|
|
447
|
+
t !== void 0 && (ce(t), a = "" + t), Je(r) && (ce(r.key), a = "" + r.key), qe(r) && (v = r.ref, Ge(r, o));
|
|
448
|
+
for (u in r)
|
|
449
|
+
N.call(r, u) && !Be.hasOwnProperty(u) && (i[u] = r[u]);
|
|
450
|
+
if (e && e.defaultProps) {
|
|
451
|
+
var s = e.defaultProps;
|
|
452
|
+
for (u in s)
|
|
453
|
+
i[u] === void 0 && (i[u] = s[u]);
|
|
454
|
+
}
|
|
455
|
+
if (a || v) {
|
|
456
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
+
a && ze(i, f), v && He(i, f);
|
|
458
|
+
}
|
|
459
|
+
return Ke(e, a, v, o, n, j.current, i);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
var G = O.ReactCurrentOwner, pe = O.ReactDebugCurrentFrame;
|
|
463
|
+
function C(e) {
|
|
464
|
+
if (e) {
|
|
465
|
+
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
466
|
+
pe.setExtraStackFrame(t);
|
|
467
|
+
} else
|
|
468
|
+
pe.setExtraStackFrame(null);
|
|
469
|
+
}
|
|
470
|
+
var z;
|
|
471
|
+
z = !1;
|
|
472
|
+
function H(e) {
|
|
473
|
+
return typeof e == "object" && e !== null && e.$$typeof === P;
|
|
474
|
+
}
|
|
475
|
+
function ge() {
|
|
476
|
+
{
|
|
477
|
+
if (G.current) {
|
|
478
|
+
var e = h(G.current.type);
|
|
479
|
+
if (e)
|
|
480
|
+
return `
|
|
481
|
+
|
|
482
|
+
Check the render method of \`` + e + "`.";
|
|
483
|
+
}
|
|
484
|
+
return "";
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
function Ze(e) {
|
|
488
|
+
{
|
|
489
|
+
if (e !== void 0) {
|
|
490
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
491
|
+
return `
|
|
492
|
+
|
|
493
|
+
Check your code at ` + r + ":" + t + ".";
|
|
494
|
+
}
|
|
495
|
+
return "";
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
var he = {};
|
|
499
|
+
function Qe(e) {
|
|
500
|
+
{
|
|
501
|
+
var r = ge();
|
|
502
|
+
if (!r) {
|
|
503
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
504
|
+
t && (r = `
|
|
505
|
+
|
|
506
|
+
Check the top-level render call using <` + t + ">.");
|
|
507
|
+
}
|
|
508
|
+
return r;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function be(e, r) {
|
|
512
|
+
{
|
|
513
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
514
|
+
return;
|
|
515
|
+
e._store.validated = !0;
|
|
516
|
+
var t = Qe(r);
|
|
517
|
+
if (he[t])
|
|
518
|
+
return;
|
|
519
|
+
he[t] = !0;
|
|
520
|
+
var n = "";
|
|
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
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function Ee(e, r) {
|
|
525
|
+
{
|
|
526
|
+
if (typeof e != "object")
|
|
527
|
+
return;
|
|
528
|
+
if (q(e))
|
|
529
|
+
for (var t = 0; t < e.length; t++) {
|
|
530
|
+
var n = e[t];
|
|
531
|
+
H(n) && be(n, r);
|
|
532
|
+
}
|
|
533
|
+
else if (H(e))
|
|
534
|
+
e._store && (e._store.validated = !0);
|
|
535
|
+
else if (e) {
|
|
536
|
+
var o = we(e);
|
|
537
|
+
if (typeof o == "function" && o !== e.entries)
|
|
538
|
+
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
539
|
+
H(i.value) && be(i.value, r);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
function er(e) {
|
|
544
|
+
{
|
|
545
|
+
var r = e.type;
|
|
546
|
+
if (r == null || typeof r == "string")
|
|
547
|
+
return;
|
|
548
|
+
var t;
|
|
549
|
+
if (typeof r == "function")
|
|
550
|
+
t = r.propTypes;
|
|
551
|
+
else if (typeof r == "object" && (r.$$typeof === l || r.$$typeof === g))
|
|
552
|
+
t = r.propTypes;
|
|
553
|
+
else
|
|
554
|
+
return;
|
|
555
|
+
if (t) {
|
|
556
|
+
var n = h(r);
|
|
557
|
+
Le(t, e.props, "prop", n, e);
|
|
558
|
+
} else if (r.PropTypes !== void 0 && !z) {
|
|
559
|
+
z = !0;
|
|
560
|
+
var o = h(r);
|
|
561
|
+
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
562
|
+
}
|
|
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
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function rr(e) {
|
|
567
|
+
{
|
|
568
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
569
|
+
var n = r[t];
|
|
570
|
+
if (n !== "children" && n !== "key") {
|
|
571
|
+
C(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null);
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
e.ref !== null && (C(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
function _e(e, r, t, n, o, u) {
|
|
579
|
+
{
|
|
580
|
+
var i = Fe(e);
|
|
581
|
+
if (!i) {
|
|
582
|
+
var a = "";
|
|
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 v = Ze(o);
|
|
585
|
+
v ? a += v : a += ge();
|
|
586
|
+
var s;
|
|
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
|
+
}
|
|
589
|
+
var f = Xe(e, r, t, o, u);
|
|
590
|
+
if (f == null)
|
|
591
|
+
return f;
|
|
592
|
+
if (i) {
|
|
593
|
+
var p = r.children;
|
|
594
|
+
if (p !== void 0)
|
|
595
|
+
if (n)
|
|
596
|
+
if (q(p)) {
|
|
597
|
+
for (var w = 0; w < p.length; w++)
|
|
598
|
+
Ee(p[w], e);
|
|
599
|
+
Object.freeze && Object.freeze(p);
|
|
600
|
+
} else
|
|
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
|
+
else
|
|
603
|
+
Ee(p, e);
|
|
604
|
+
}
|
|
605
|
+
return e === R ? rr(f) : er(f), f;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
function tr(e, r, t) {
|
|
609
|
+
return _e(e, r, t, !0);
|
|
610
|
+
}
|
|
611
|
+
function nr(e, r, t) {
|
|
612
|
+
return _e(e, r, t, !1);
|
|
613
|
+
}
|
|
614
|
+
var ar = nr, ir = tr;
|
|
615
|
+
D.Fragment = R, D.jsx = ar, D.jsxs = ir;
|
|
616
|
+
}()), D;
|
|
617
|
+
}
|
|
618
|
+
(function(E) {
|
|
619
|
+
process.env.NODE_ENV === "production" ? E.exports = or() : E.exports = ur();
|
|
620
|
+
})(Oe);
|
|
621
|
+
const sr = Oe.exports.jsxs, lr = ({
|
|
622
|
+
text: E
|
|
623
|
+
}) => /* @__PURE__ */ sr("div", {
|
|
624
|
+
className: "text",
|
|
625
|
+
children: ["This is test text: ", E]
|
|
626
|
+
});
|
|
627
|
+
export {
|
|
628
|
+
lr as Helloworld
|
|
629
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 Z=(v=>v&&typeof v=="object"&&"default"in v?v:{default:v})(P);var Q={exports:{}},x={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ee;function Ce(){if(ee)return x;ee=1;var v=Z.default,k=Symbol.for("react.element"),U=Symbol.for("react.fragment"),T=Object.prototype.hasOwnProperty,I=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function D(E,l,O){var p,b={},m=null,W=null;O!==void 0&&(m=""+O),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(W=l.ref);for(p in l)T.call(l,p)&&!$.hasOwnProperty(p)&&(b[p]=l[p]);if(E&&E.defaultProps)for(p in l=E.defaultProps,l)b[p]===void 0&&(b[p]=l[p]);return{$$typeof:k,type:E,key:m,ref:W,props:b,_owner:I.current}}return x.Fragment=U,x.jsx=D,x.jsxs=D,x}var j={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
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 v=Z.default,k=Symbol.for("react.element"),U=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"),l=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),te=Symbol.iterator,ke="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=te&&e[te]||e[ke];return typeof r=="function"?r:null}var S=v.__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];Fe("error",e,t)}}function Fe(e,r,t){{var n=S.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 Ae=!1,Ie=!1,$e=!1,We=!1,Ye=!1,ne;ne=Symbol.for("react.module.reference");function Le(e){return!!(typeof e=="string"||typeof e=="function"||e===T||e===$||Ye||e===I||e===O||e===p||We||e===W||Ae||Ie||$e||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===D||e.$$typeof===E||e.$$typeof===l||e.$$typeof===ne||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 ae(e){return e.displayName||"Context"}function h(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 T:return"Fragment";case U: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 l:return Ne(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:h(e.type)||"Memo";case m:{var o=e,u=o._payload,i=o._init;try{return h(i(u))}catch{return null}}}return null}var R=Object.assign,F=0,ie,oe,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Me(){{if(F===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})}F++}}function Ve(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:ie}),info:R({},e,{value:oe}),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&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=S.ReactCurrentDispatcher,B;function Y(e,r,t){{if(B===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
|
|
18
|
+
`+B+e}}var J=!1,L;{var Ue=typeof WeakMap=="function"?WeakMap:Map;L=new Ue}function ve(e,r){if(!e||J)return"";{var t=L.get(e);if(t!==void 0)return t}var n;J=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Me();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(y){n=y}Reflect.construct(e,[],i)}else{try{i.call()}catch(y){n=y}e.call(i.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
|
+
`),d=n.stack.split(`
|
|
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"&&L.set(e,g),g}while(s>=1&&f>=0);break}}}finally{J=!1,q.current=u,Ve(),Error.prepareStackTrace=o}var C=e?e.displayName||e.name:"",we=C?Y(C):"";return typeof e=="function"&&L.set(e,we),we}function qe(e,r,t){return ve(e,!1)}function Be(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,Be(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 l:return qe(e.render);case b:return N(e.type,r,t);case m:{var n=e,o=n._payload,u=n._init;try{return N(u(o),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,pe={},ge=S.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Je(e,r,t,n,o){{var u=Function.call.bind(M);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)&&(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 pe)&&(pe[a.message]=!0,V(o),c("Failed %s type: %s",t,a.message),V(null))}}}var Ge=Array.isArray;function G(e){return Ge(e)}function ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function he(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.",ze(e)),be(e)}var A=S.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},ye,_e,z;z={};function Xe(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 Ze(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 Qe(e,r){if(typeof e.ref=="string"&&A.current&&r&&A.current.stateNode!==r){var t=h(A.current.type);z[t]||(c('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),z[t]=!0)}}function er(e,r){{var t=function(){ye||(ye=!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 rr(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 tr=function(e,r,t,n,o,u,i){var a={$$typeof:k,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 nr(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(he(t),a=""+t),Ze(r)&&(he(r.key),a=""+r.key),Xe(r)&&(d=r.ref,Qe(r,o));for(u in r)M.call(r,u)&&!Ke.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&&er(i,f),d&&rr(i,f)}return tr(e,a,d,o,n,A.current,i)}}var H=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 K;K=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===k}function me(){{if(H.current){var e=h(H.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function ar(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
|
+
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var Re={};function ir(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
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=ir(r);if(Re[t])return;Re[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+h(e._owner.type)+"."),w(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),w(null)}}function Oe(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&Te(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var o=De(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)X(i.value)&&Te(i.value,r)}}}function or(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=h(r);Je(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var o=h(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 ur(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),c("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),c("Invalid attribute `ref` supplied to `React.Fragment`."),w(null))}}function Se(e,r,t,n,o,u){{var i=Le(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=ar(o);d?a+=d:a+=me();var s;e===null?s="null":G(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,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=nr(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 C=0;C<g.length;C++)Oe(g[C],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 Oe(g,e)}return e===T?ur(f):or(f),f}}function sr(e,r,t){return Se(e,r,t,!0)}function fr(e,r,t){return Se(e,r,t,!1)}var lr=fr,cr=sr;j.Fragment=T,j.jsx=lr,j.jsxs=cr}()),j}(function(v){process.env.NODE_ENV==="production"?v.exports=Ce():v.exports=Pe()})(Q);const xe=Q.exports.jsxs,je=({text:v})=>xe("div",{className:"text",children:["This is test text: ",v]});_.Helloworld=je,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "norma-library",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Norma Library. A React UI kit.",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "tsc && vite build",
|
|
10
|
+
"preview": "vite preview",
|
|
11
|
+
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
|
|
12
|
+
"lint:fix": "eslint --fix 'src/**/*.{jsx,ts,tsx}'",
|
|
13
|
+
"format": "prettier --write src//**/*.{ts,tsx,css} --config ./.prettierrc",
|
|
14
|
+
"prepare": "husky install"
|
|
15
|
+
},
|
|
16
|
+
"husky": {
|
|
17
|
+
"hooks": {
|
|
18
|
+
"pre-commit": "lint-staged"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"lint-staged": {
|
|
22
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
23
|
+
"yarn eslint",
|
|
24
|
+
"yarn format"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"import": "./dist/norma-library.es.js",
|
|
33
|
+
"require": "./dist/norma-library.umd.js"
|
|
34
|
+
},
|
|
35
|
+
"./dist/style.css": "./dist/style.css"
|
|
36
|
+
},
|
|
37
|
+
"main": "./dist/norma-library.umd.js",
|
|
38
|
+
"module": "./dist/norma-library.es.js",
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^18.7.6",
|
|
42
|
+
"@types/react": "^18.0.17",
|
|
43
|
+
"@types/react-dom": "^18.0.6",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.34.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.34.0",
|
|
46
|
+
"@vitejs/plugin-react": "^2.1.0",
|
|
47
|
+
"eslint": "^8.2.0",
|
|
48
|
+
"eslint-config-prettier": "^8.5.0",
|
|
49
|
+
"eslint-plugin-import": "^2.25.3",
|
|
50
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
51
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
52
|
+
"eslint-plugin-react": "^7.30.1",
|
|
53
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
54
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
55
|
+
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
56
|
+
"husky": "^8.0.1",
|
|
57
|
+
"lint-staged": "^13.0.3",
|
|
58
|
+
"node": "^20.5.0",
|
|
59
|
+
"prettier": "^2.7.1",
|
|
60
|
+
"react": "^18.2.0",
|
|
61
|
+
"react-dom": "^18.2.0",
|
|
62
|
+
"typescript": "^4.6.4",
|
|
63
|
+
"vite": "^3.1.0",
|
|
64
|
+
"vite-plugin-dts": "^1.4.1",
|
|
65
|
+
"vite-plugin-linter": "^1.2.0",
|
|
66
|
+
"vite-tsconfig-paths": "^3.5.0"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"react": "16.8.0 || >=17.x",
|
|
70
|
+
"react-dom": "16.8.0 || >=17.x"
|
|
71
|
+
},
|
|
72
|
+
"repository": {
|
|
73
|
+
"type": "git",
|
|
74
|
+
"url": "https://github.com/OlosLive/norma-library"
|
|
75
|
+
},
|
|
76
|
+
"keywords": [],
|
|
77
|
+
"author": "José Roberto Miguel Filho",
|
|
78
|
+
"bugs": {
|
|
79
|
+
"url": "https://github.com/OlosLive/norma-library/issues"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public"
|
|
83
|
+
},
|
|
84
|
+
"homepage": "https://github.com/OlosLive/norma-library",
|
|
85
|
+
"license": "MIT"
|
|
86
|
+
}
|