@screegen/components 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/components/OverviewGrid/OverviewGrid.d.ts.map +1 -1
- package/dist/components/Screegen/OverviewPage.d.ts +6 -0
- package/dist/components/Screegen/OverviewPage.d.ts.map +1 -0
- package/dist/components/Screegen/Screegen.d.ts +6 -0
- package/dist/components/Screegen/Screegen.d.ts.map +1 -0
- package/dist/components/Screegen/ScreenPage.d.ts +6 -0
- package/dist/components/Screegen/ScreenPage.d.ts.map +1 -0
- package/dist/components/Screegen/index.d.ts +3 -0
- package/dist/components/Screegen/index.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +378 -328
- package/package.json +2 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverviewGrid.d.ts","sourceRoot":"","sources":["../../../src/components/OverviewGrid/OverviewGrid.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAgB,MAAM,aAAa,CAAC;AAOvE,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC1D,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACzB,QAAQ,EAAE,CAAC,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,MAAM,EACN,QAAQ,EACR,KAAqB,EACrB,WAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,SAAS,GACV,EAAE,iBAAiB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"OverviewGrid.d.ts","sourceRoot":"","sources":["../../../src/components/OverviewGrid/OverviewGrid.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAgB,MAAM,aAAa,CAAC;AAOvE,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC1D,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACzB,QAAQ,EAAE,CAAC,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,MAAM,EACN,QAAQ,EACR,KAAqB,EACrB,WAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,SAAS,GACV,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CA8FtB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProjectConfig } from '../../types';
|
|
2
|
+
export interface OverviewPageProps<L extends string = string> {
|
|
3
|
+
config: ProjectConfig<L>;
|
|
4
|
+
}
|
|
5
|
+
export declare function OverviewPage<L extends string>({ config, }: OverviewPageProps<L>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=OverviewPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverviewPage.d.ts","sourceRoot":"","sources":["../../../src/components/Screegen/OverviewPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,aAAa,CAAC;AAKzD,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC1D,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;CAC1B;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,MAAM,GACP,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAwBtB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProjectConfig } from '../../types';
|
|
2
|
+
export interface ScreegenProps<L extends string = string> {
|
|
3
|
+
config: ProjectConfig<L>;
|
|
4
|
+
}
|
|
5
|
+
export declare function Screegen<L extends string>({ config }: ScreegenProps<L>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Screegen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Screegen.d.ts","sourceRoot":"","sources":["../../../src/components/Screegen/Screegen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAK5C,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACtD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,2CAWtE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProjectConfig } from '../../types';
|
|
2
|
+
export interface ScreenPageProps<L extends string = string> {
|
|
3
|
+
config: ProjectConfig<L>;
|
|
4
|
+
}
|
|
5
|
+
export declare function ScreenPage<L extends string>({ config }: ScreenPageProps<L>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=ScreenPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenPage.d.ts","sourceRoot":"","sources":["../../../src/components/Screegen/ScreenPage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACxD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,2CAmB1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Screegen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,4 +8,6 @@ export { OverviewGrid } from './components/OverviewGrid';
|
|
|
8
8
|
export type { OverviewGridProps } from './components/OverviewGrid';
|
|
9
9
|
export { ScreengenConfig } from './components/ScreengenConfig';
|
|
10
10
|
export type { ScreengenConfigProps } from './components/ScreengenConfig';
|
|
11
|
+
export { Screegen } from './components/Screegen';
|
|
12
|
+
export type { ScreegenProps } from './components/Screegen';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAC;AAG5B,YAAY,EACV,WAAW,EACX,OAAO,EACP,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,WAAW,IAAI,eAAe,GAC/B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAC;AAG5B,YAAY,EACV,WAAW,EACX,OAAO,EACP,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,WAAW,IAAI,eAAe,GAC/B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useSearchParams as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
1
|
+
import Ce, { useState as hr, useEffect as gr, useCallback as mr } from "react";
|
|
2
|
+
import { useSearchParams as yr, useParams as _r, Routes as wr, Route as Z } from "react-router-dom";
|
|
3
|
+
const Er = ["light", "dark"];
|
|
4
|
+
function br() {
|
|
5
5
|
return typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
const [
|
|
9
|
-
() =>
|
|
7
|
+
function Rr(l) {
|
|
8
|
+
const [p, c] = hr(
|
|
9
|
+
() => br()
|
|
10
10
|
);
|
|
11
|
-
return
|
|
11
|
+
return gr(() => {
|
|
12
12
|
if (typeof window > "u" || !window.matchMedia)
|
|
13
13
|
return;
|
|
14
|
-
const
|
|
15
|
-
c(
|
|
14
|
+
const d = window.matchMedia("(prefers-color-scheme: dark)"), m = (v) => {
|
|
15
|
+
c(v.matches ? "dark" : "light");
|
|
16
16
|
};
|
|
17
|
-
return
|
|
18
|
-
}, []),
|
|
17
|
+
return d.addEventListener("change", m), () => d.removeEventListener("change", m);
|
|
18
|
+
}, []), l ?? p;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
const [c,
|
|
22
|
-
(
|
|
20
|
+
function ee(l, p) {
|
|
21
|
+
const [c, d] = yr(), m = c.get(l) || p, v = mr(
|
|
22
|
+
(_) => {
|
|
23
23
|
const y = new URLSearchParams(c);
|
|
24
|
-
y.set(
|
|
24
|
+
y.set(l, _), d(y);
|
|
25
25
|
},
|
|
26
|
-
[
|
|
26
|
+
[l, c, d]
|
|
27
27
|
);
|
|
28
|
-
return [m,
|
|
28
|
+
return [m, v];
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var K = { exports: {} }, W = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.production.min.js
|
|
@@ -37,19 +37,19 @@ var J = { exports: {} }, W = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
var R, x = {},
|
|
47
|
-
j !== void 0 && (
|
|
48
|
-
for (R in
|
|
49
|
-
if (y && y.defaultProps) for (R in
|
|
50
|
-
return { $$typeof:
|
|
40
|
+
var Pe;
|
|
41
|
+
function Sr() {
|
|
42
|
+
if (Pe) return W;
|
|
43
|
+
Pe = 1;
|
|
44
|
+
var l = Ce, p = Symbol.for("react.element"), c = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, m = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
45
|
+
function _(y, n, j) {
|
|
46
|
+
var R, x = {}, O = null, Y = null;
|
|
47
|
+
j !== void 0 && (O = "" + j), n.key !== void 0 && (O = "" + n.key), n.ref !== void 0 && (Y = n.ref);
|
|
48
|
+
for (R in n) d.call(n, R) && !v.hasOwnProperty(R) && (x[R] = n[R]);
|
|
49
|
+
if (y && y.defaultProps) for (R in n = y.defaultProps, n) x[R] === void 0 && (x[R] = n[R]);
|
|
50
|
+
return { $$typeof: p, type: y, key: O, ref: Y, props: x, _owner: m.current };
|
|
51
51
|
}
|
|
52
|
-
return W.Fragment = c, W.jsx =
|
|
52
|
+
return W.Fragment = c, W.jsx = _, W.jsxs = _, W;
|
|
53
53
|
}
|
|
54
54
|
var N = {};
|
|
55
55
|
/**
|
|
@@ -61,66 +61,66 @@ var N = {};
|
|
|
61
61
|
* This source code is licensed under the MIT license found in the
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
63
63
|
*/
|
|
64
|
-
var
|
|
65
|
-
function
|
|
66
|
-
return
|
|
67
|
-
var
|
|
68
|
-
function
|
|
64
|
+
var Te;
|
|
65
|
+
function jr() {
|
|
66
|
+
return Te || (Te = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
67
|
+
var l = Ce, p = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), y = Symbol.for("react.context"), n = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), re = Symbol.iterator, De = "@@iterator";
|
|
68
|
+
function Fe(e) {
|
|
69
69
|
if (e === null || typeof e != "object")
|
|
70
70
|
return null;
|
|
71
|
-
var r =
|
|
71
|
+
var r = re && e[re] || e[De];
|
|
72
72
|
return typeof r == "function" ? r : null;
|
|
73
73
|
}
|
|
74
|
-
var D =
|
|
75
|
-
function
|
|
74
|
+
var D = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
75
|
+
function w(e) {
|
|
76
76
|
{
|
|
77
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
78
|
-
t[
|
|
79
|
-
|
|
77
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
78
|
+
t[a - 1] = arguments[a];
|
|
79
|
+
Ae("error", e, t);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ae(e, r, t) {
|
|
83
83
|
{
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
var
|
|
84
|
+
var a = D.ReactDebugCurrentFrame, u = a.getStackAddendum();
|
|
85
|
+
u !== "" && (r += "%s", t = t.concat([u]));
|
|
86
|
+
var f = t.map(function(o) {
|
|
87
87
|
return String(o);
|
|
88
88
|
});
|
|
89
|
-
|
|
89
|
+
f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
function
|
|
95
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
92
|
+
var $e = !1, Ie = !1, We = !1, Ne = !1, Ye = !1, te;
|
|
93
|
+
te = Symbol.for("react.module.reference");
|
|
94
|
+
function Le(e) {
|
|
95
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === v || Ye || e === m || e === j || e === R || Ne || e === Y || $e || Ie || We || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === x || e.$$typeof === _ || e.$$typeof === y || e.$$typeof === n || // This needs to include all possible module reference object
|
|
96
96
|
// types supported by any Flight configuration anywhere since
|
|
97
97
|
// we don't know which Flight build this will end up being used
|
|
98
98
|
// with.
|
|
99
|
-
e.$$typeof ===
|
|
99
|
+
e.$$typeof === te || e.getModuleId !== void 0));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
var
|
|
103
|
-
if (
|
|
104
|
-
return
|
|
105
|
-
var
|
|
106
|
-
return
|
|
101
|
+
function Me(e, r, t) {
|
|
102
|
+
var a = e.displayName;
|
|
103
|
+
if (a)
|
|
104
|
+
return a;
|
|
105
|
+
var u = r.displayName || r.name || "";
|
|
106
|
+
return u !== "" ? t + "(" + u + ")" : t;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ne(e) {
|
|
109
109
|
return e.displayName || "Context";
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function P(e) {
|
|
112
112
|
if (e == null)
|
|
113
113
|
return null;
|
|
114
|
-
if (typeof e.tag == "number" &&
|
|
114
|
+
if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
115
115
|
return e.displayName || e.name || null;
|
|
116
116
|
if (typeof e == "string")
|
|
117
117
|
return e;
|
|
118
118
|
switch (e) {
|
|
119
|
-
case
|
|
119
|
+
case d:
|
|
120
120
|
return "Fragment";
|
|
121
121
|
case c:
|
|
122
122
|
return "Portal";
|
|
123
|
-
case
|
|
123
|
+
case v:
|
|
124
124
|
return "Profiler";
|
|
125
125
|
case m:
|
|
126
126
|
return "StrictMode";
|
|
@@ -133,19 +133,19 @@ function gr() {
|
|
|
133
133
|
switch (e.$$typeof) {
|
|
134
134
|
case y:
|
|
135
135
|
var r = e;
|
|
136
|
-
return
|
|
137
|
-
case
|
|
136
|
+
return ne(r) + ".Consumer";
|
|
137
|
+
case _:
|
|
138
138
|
var t = e;
|
|
139
|
-
return
|
|
140
|
-
case
|
|
141
|
-
return
|
|
139
|
+
return ne(t._context) + ".Provider";
|
|
140
|
+
case n:
|
|
141
|
+
return Me(e, e.render, "ForwardRef");
|
|
142
142
|
case x:
|
|
143
|
-
var
|
|
144
|
-
return
|
|
145
|
-
case
|
|
146
|
-
var
|
|
143
|
+
var a = e.displayName || null;
|
|
144
|
+
return a !== null ? a : P(e.type) || "Memo";
|
|
145
|
+
case O: {
|
|
146
|
+
var u = e, f = u._payload, o = u._init;
|
|
147
147
|
try {
|
|
148
|
-
return
|
|
148
|
+
return P(o(f));
|
|
149
149
|
} catch {
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
@@ -153,18 +153,18 @@ function gr() {
|
|
|
153
153
|
}
|
|
154
154
|
return null;
|
|
155
155
|
}
|
|
156
|
-
var
|
|
157
|
-
function
|
|
156
|
+
var C = Object.assign, $ = 0, ae, ie, oe, se, ue, ce, le;
|
|
157
|
+
function fe() {
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
function
|
|
159
|
+
fe.__reactDisabledLog = !0;
|
|
160
|
+
function Ue() {
|
|
161
161
|
{
|
|
162
162
|
if ($ === 0) {
|
|
163
|
-
|
|
163
|
+
ae = console.log, ie = console.info, oe = console.warn, se = console.error, ue = console.group, ce = console.groupCollapsed, le = console.groupEnd;
|
|
164
164
|
var e = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
167
|
-
value:
|
|
167
|
+
value: fe,
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
@@ -180,7 +180,7 @@ function gr() {
|
|
|
180
180
|
$++;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Ve() {
|
|
184
184
|
{
|
|
185
185
|
if ($--, $ === 0) {
|
|
186
186
|
var e = {
|
|
@@ -189,41 +189,41 @@ function gr() {
|
|
|
189
189
|
writable: !0
|
|
190
190
|
};
|
|
191
191
|
Object.defineProperties(console, {
|
|
192
|
-
log:
|
|
193
|
-
value: te
|
|
194
|
-
}),
|
|
195
|
-
info: k({}, e, {
|
|
196
|
-
value: ne
|
|
197
|
-
}),
|
|
198
|
-
warn: k({}, e, {
|
|
192
|
+
log: C({}, e, {
|
|
199
193
|
value: ae
|
|
200
194
|
}),
|
|
201
|
-
|
|
195
|
+
info: C({}, e, {
|
|
202
196
|
value: ie
|
|
203
197
|
}),
|
|
204
|
-
|
|
198
|
+
warn: C({}, e, {
|
|
205
199
|
value: oe
|
|
206
200
|
}),
|
|
207
|
-
|
|
201
|
+
error: C({}, e, {
|
|
208
202
|
value: se
|
|
209
203
|
}),
|
|
210
|
-
|
|
204
|
+
group: C({}, e, {
|
|
211
205
|
value: ue
|
|
206
|
+
}),
|
|
207
|
+
groupCollapsed: C({}, e, {
|
|
208
|
+
value: ce
|
|
209
|
+
}),
|
|
210
|
+
groupEnd: C({}, e, {
|
|
211
|
+
value: le
|
|
212
212
|
})
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
$ < 0 &&
|
|
215
|
+
$ < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
var
|
|
218
|
+
var J = D.ReactCurrentDispatcher, G;
|
|
219
219
|
function L(e, r, t) {
|
|
220
220
|
{
|
|
221
221
|
if (G === void 0)
|
|
222
222
|
try {
|
|
223
223
|
throw Error();
|
|
224
|
-
} catch (
|
|
225
|
-
var
|
|
226
|
-
G =
|
|
224
|
+
} catch (u) {
|
|
225
|
+
var a = u.stack.trim().match(/\n( *(at )?)/);
|
|
226
|
+
G = a && a[1] || "";
|
|
227
227
|
}
|
|
228
228
|
return `
|
|
229
229
|
` + G + e;
|
|
@@ -231,10 +231,10 @@ function gr() {
|
|
|
231
231
|
}
|
|
232
232
|
var q = !1, M;
|
|
233
233
|
{
|
|
234
|
-
var
|
|
235
|
-
M = new
|
|
234
|
+
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
235
|
+
M = new Ke();
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function ve(e, r) {
|
|
238
238
|
if (!e || q)
|
|
239
239
|
return "";
|
|
240
240
|
{
|
|
@@ -242,12 +242,12 @@ function gr() {
|
|
|
242
242
|
if (t !== void 0)
|
|
243
243
|
return t;
|
|
244
244
|
}
|
|
245
|
-
var
|
|
245
|
+
var a;
|
|
246
246
|
q = !0;
|
|
247
|
-
var
|
|
247
|
+
var u = Error.prepareStackTrace;
|
|
248
248
|
Error.prepareStackTrace = void 0;
|
|
249
|
-
var
|
|
250
|
-
|
|
249
|
+
var f;
|
|
250
|
+
f = J.current, J.current = null, Ue();
|
|
251
251
|
try {
|
|
252
252
|
if (r) {
|
|
253
253
|
var o = function() {
|
|
@@ -261,14 +261,14 @@ function gr() {
|
|
|
261
261
|
try {
|
|
262
262
|
Reflect.construct(o, []);
|
|
263
263
|
} catch (b) {
|
|
264
|
-
|
|
264
|
+
a = b;
|
|
265
265
|
}
|
|
266
266
|
Reflect.construct(e, [], o);
|
|
267
267
|
} else {
|
|
268
268
|
try {
|
|
269
269
|
o.call();
|
|
270
270
|
} catch (b) {
|
|
271
|
-
|
|
271
|
+
a = b;
|
|
272
272
|
}
|
|
273
273
|
e.call(o.prototype);
|
|
274
274
|
}
|
|
@@ -276,39 +276,39 @@ function gr() {
|
|
|
276
276
|
try {
|
|
277
277
|
throw Error();
|
|
278
278
|
} catch (b) {
|
|
279
|
-
|
|
279
|
+
a = b;
|
|
280
280
|
}
|
|
281
281
|
e();
|
|
282
282
|
}
|
|
283
283
|
} catch (b) {
|
|
284
|
-
if (b &&
|
|
284
|
+
if (b && a && typeof b.stack == "string") {
|
|
285
285
|
for (var i = b.stack.split(`
|
|
286
|
-
`),
|
|
287
|
-
`),
|
|
288
|
-
|
|
289
|
-
for (;
|
|
290
|
-
if (i[
|
|
291
|
-
if (
|
|
286
|
+
`), E = a.stack.split(`
|
|
287
|
+
`), h = i.length - 1, g = E.length - 1; h >= 1 && g >= 0 && i[h] !== E[g]; )
|
|
288
|
+
g--;
|
|
289
|
+
for (; h >= 1 && g >= 0; h--, g--)
|
|
290
|
+
if (i[h] !== E[g]) {
|
|
291
|
+
if (h !== 1 || g !== 1)
|
|
292
292
|
do
|
|
293
|
-
if (
|
|
293
|
+
if (h--, g--, g < 0 || i[h] !== E[g]) {
|
|
294
294
|
var S = `
|
|
295
|
-
` + i[
|
|
295
|
+
` + i[h].replace(" at new ", " at ");
|
|
296
296
|
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, S), S;
|
|
297
297
|
}
|
|
298
|
-
while (
|
|
298
|
+
while (h >= 1 && g >= 0);
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
} finally {
|
|
303
|
-
q = !1,
|
|
303
|
+
q = !1, J.current = f, Ve(), Error.prepareStackTrace = u;
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
return typeof e == "function" && M.set(e,
|
|
305
|
+
var A = e ? e.displayName || e.name : "", k = A ? L(A) : "";
|
|
306
|
+
return typeof e == "function" && M.set(e, k), k;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
return
|
|
308
|
+
function Je(e, r, t) {
|
|
309
|
+
return ve(e, !1);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Ge(e) {
|
|
312
312
|
var r = e.prototype;
|
|
313
313
|
return !!(r && r.isReactComponent);
|
|
314
314
|
}
|
|
@@ -316,7 +316,7 @@ function gr() {
|
|
|
316
316
|
if (e == null)
|
|
317
317
|
return "";
|
|
318
318
|
if (typeof e == "function")
|
|
319
|
-
return
|
|
319
|
+
return ve(e, Ge(e));
|
|
320
320
|
if (typeof e == "string")
|
|
321
321
|
return L(e);
|
|
322
322
|
switch (e) {
|
|
@@ -327,78 +327,78 @@ function gr() {
|
|
|
327
327
|
}
|
|
328
328
|
if (typeof e == "object")
|
|
329
329
|
switch (e.$$typeof) {
|
|
330
|
-
case
|
|
331
|
-
return
|
|
330
|
+
case n:
|
|
331
|
+
return Je(e.render);
|
|
332
332
|
case x:
|
|
333
333
|
return U(e.type, r, t);
|
|
334
|
-
case
|
|
335
|
-
var
|
|
334
|
+
case O: {
|
|
335
|
+
var a = e, u = a._payload, f = a._init;
|
|
336
336
|
try {
|
|
337
|
-
return U(u
|
|
337
|
+
return U(f(u), r, t);
|
|
338
338
|
} catch {
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
return "";
|
|
343
343
|
}
|
|
344
|
-
var I = Object.prototype.hasOwnProperty,
|
|
344
|
+
var I = Object.prototype.hasOwnProperty, de = {}, pe = D.ReactDebugCurrentFrame;
|
|
345
345
|
function V(e) {
|
|
346
346
|
if (e) {
|
|
347
347
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
348
|
-
|
|
348
|
+
pe.setExtraStackFrame(t);
|
|
349
349
|
} else
|
|
350
|
-
|
|
350
|
+
pe.setExtraStackFrame(null);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function qe(e, r, t, a, u) {
|
|
353
353
|
{
|
|
354
|
-
var
|
|
354
|
+
var f = Function.call.bind(I);
|
|
355
355
|
for (var o in e)
|
|
356
|
-
if (
|
|
356
|
+
if (f(e, o)) {
|
|
357
357
|
var i = void 0;
|
|
358
358
|
try {
|
|
359
359
|
if (typeof e[o] != "function") {
|
|
360
|
-
var
|
|
361
|
-
throw
|
|
360
|
+
var E = Error((a || "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`.");
|
|
361
|
+
throw E.name = "Invariant Violation", E;
|
|
362
362
|
}
|
|
363
|
-
i = e[o](r, o,
|
|
364
|
-
} catch (
|
|
365
|
-
i =
|
|
363
|
+
i = e[o](r, o, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
364
|
+
} catch (h) {
|
|
365
|
+
i = h;
|
|
366
366
|
}
|
|
367
|
-
i && !(i instanceof Error) && (V(
|
|
367
|
+
i && !(i instanceof Error) && (V(u), w("%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).", a || "React class", t, o, typeof i), V(null)), i instanceof Error && !(i.message in de) && (de[i.message] = !0, V(u), w("Failed %s type: %s", t, i.message), V(null));
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var Be = Array.isArray;
|
|
372
372
|
function B(e) {
|
|
373
|
-
return
|
|
373
|
+
return Be(e);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function ze(e) {
|
|
376
376
|
{
|
|
377
377
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
378
378
|
return t;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Xe(e) {
|
|
382
382
|
try {
|
|
383
|
-
return
|
|
383
|
+
return he(e), !1;
|
|
384
384
|
} catch {
|
|
385
385
|
return !0;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function he(e) {
|
|
389
389
|
return "" + e;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
if (
|
|
393
|
-
return
|
|
391
|
+
function ge(e) {
|
|
392
|
+
if (Xe(e))
|
|
393
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), he(e);
|
|
394
394
|
}
|
|
395
|
-
var
|
|
395
|
+
var me = D.ReactCurrentOwner, He = {
|
|
396
396
|
key: !0,
|
|
397
397
|
ref: !0,
|
|
398
398
|
__self: !0,
|
|
399
399
|
__source: !0
|
|
400
|
-
},
|
|
401
|
-
function
|
|
400
|
+
}, ye, _e;
|
|
401
|
+
function Qe(e) {
|
|
402
402
|
if (I.call(e, "ref")) {
|
|
403
403
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
404
404
|
if (r && r.isReactWarning)
|
|
@@ -406,7 +406,7 @@ function gr() {
|
|
|
406
406
|
}
|
|
407
407
|
return e.ref !== void 0;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Ze(e) {
|
|
410
410
|
if (I.call(e, "key")) {
|
|
411
411
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
412
412
|
if (r && r.isReactWarning)
|
|
@@ -414,13 +414,13 @@ function gr() {
|
|
|
414
414
|
}
|
|
415
415
|
return e.key !== void 0;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
typeof e.ref == "string" &&
|
|
417
|
+
function er(e, r) {
|
|
418
|
+
typeof e.ref == "string" && me.current;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function rr(e, r) {
|
|
421
421
|
{
|
|
422
422
|
var t = function() {
|
|
423
|
-
|
|
423
|
+
ye || (ye = !0, w("%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));
|
|
424
424
|
};
|
|
425
425
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
426
426
|
get: t,
|
|
@@ -428,10 +428,10 @@ function gr() {
|
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function tr(e, r) {
|
|
432
432
|
{
|
|
433
433
|
var t = function() {
|
|
434
|
-
|
|
434
|
+
_e || (_e = !0, w("%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));
|
|
435
435
|
};
|
|
436
436
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
437
437
|
get: t,
|
|
@@ -439,17 +439,17 @@ function gr() {
|
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
var
|
|
442
|
+
var nr = function(e, r, t, a, u, f, o) {
|
|
443
443
|
var i = {
|
|
444
444
|
// This tag allows us to uniquely identify this as a React Element
|
|
445
|
-
$$typeof:
|
|
445
|
+
$$typeof: p,
|
|
446
446
|
// Built-in properties that belong on the element
|
|
447
447
|
type: e,
|
|
448
448
|
key: r,
|
|
449
449
|
ref: t,
|
|
450
450
|
props: o,
|
|
451
451
|
// Record the component responsible for creating this element.
|
|
452
|
-
_owner:
|
|
452
|
+
_owner: f
|
|
453
453
|
};
|
|
454
454
|
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
455
455
|
configurable: !1,
|
|
@@ -460,49 +460,49 @@ function gr() {
|
|
|
460
460
|
configurable: !1,
|
|
461
461
|
enumerable: !1,
|
|
462
462
|
writable: !1,
|
|
463
|
-
value:
|
|
463
|
+
value: a
|
|
464
464
|
}), Object.defineProperty(i, "_source", {
|
|
465
465
|
configurable: !1,
|
|
466
466
|
enumerable: !1,
|
|
467
467
|
writable: !1,
|
|
468
|
-
value:
|
|
468
|
+
value: u
|
|
469
469
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
470
470
|
};
|
|
471
|
-
function
|
|
471
|
+
function ar(e, r, t, a, u) {
|
|
472
472
|
{
|
|
473
|
-
var
|
|
474
|
-
t !== void 0 && (
|
|
475
|
-
for (
|
|
476
|
-
I.call(r,
|
|
473
|
+
var f, o = {}, i = null, E = null;
|
|
474
|
+
t !== void 0 && (ge(t), i = "" + t), Ze(r) && (ge(r.key), i = "" + r.key), Qe(r) && (E = r.ref, er(r, u));
|
|
475
|
+
for (f in r)
|
|
476
|
+
I.call(r, f) && !He.hasOwnProperty(f) && (o[f] = r[f]);
|
|
477
477
|
if (e && e.defaultProps) {
|
|
478
|
-
var
|
|
479
|
-
for (
|
|
480
|
-
o[
|
|
478
|
+
var h = e.defaultProps;
|
|
479
|
+
for (f in h)
|
|
480
|
+
o[f] === void 0 && (o[f] = h[f]);
|
|
481
481
|
}
|
|
482
|
-
if (i ||
|
|
483
|
-
var
|
|
484
|
-
i &&
|
|
482
|
+
if (i || E) {
|
|
483
|
+
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
484
|
+
i && rr(o, g), E && tr(o, g);
|
|
485
485
|
}
|
|
486
|
-
return
|
|
486
|
+
return nr(e, i, E, u, a, me.current, o);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
var z = D.ReactCurrentOwner,
|
|
490
|
-
function
|
|
489
|
+
var z = D.ReactCurrentOwner, we = D.ReactDebugCurrentFrame;
|
|
490
|
+
function F(e) {
|
|
491
491
|
if (e) {
|
|
492
492
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
493
|
-
|
|
493
|
+
we.setExtraStackFrame(t);
|
|
494
494
|
} else
|
|
495
|
-
|
|
495
|
+
we.setExtraStackFrame(null);
|
|
496
496
|
}
|
|
497
497
|
var X;
|
|
498
498
|
X = !1;
|
|
499
499
|
function H(e) {
|
|
500
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
500
|
+
return typeof e == "object" && e !== null && e.$$typeof === p;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Ee() {
|
|
503
503
|
{
|
|
504
504
|
if (z.current) {
|
|
505
|
-
var e =
|
|
505
|
+
var e = P(z.current.type);
|
|
506
506
|
if (e)
|
|
507
507
|
return `
|
|
508
508
|
|
|
@@ -511,13 +511,13 @@ Check the render method of \`` + e + "`.";
|
|
|
511
511
|
return "";
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function ir(e) {
|
|
515
515
|
return "";
|
|
516
516
|
}
|
|
517
|
-
var
|
|
518
|
-
function
|
|
517
|
+
var be = {};
|
|
518
|
+
function or(e) {
|
|
519
519
|
{
|
|
520
|
-
var r =
|
|
520
|
+
var r = Ee();
|
|
521
521
|
if (!r) {
|
|
522
522
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
523
523
|
t && (r = `
|
|
@@ -527,39 +527,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
527
527
|
return r;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Re(e, r) {
|
|
531
531
|
{
|
|
532
532
|
if (!e._store || e._store.validated || e.key != null)
|
|
533
533
|
return;
|
|
534
534
|
e._store.validated = !0;
|
|
535
|
-
var t =
|
|
536
|
-
if (
|
|
535
|
+
var t = or(r);
|
|
536
|
+
if (be[t])
|
|
537
537
|
return;
|
|
538
|
-
|
|
539
|
-
var
|
|
540
|
-
e && e._owner && e._owner !== z.current && (
|
|
538
|
+
be[t] = !0;
|
|
539
|
+
var a = "";
|
|
540
|
+
e && e._owner && e._owner !== z.current && (a = " It was passed a child from " + P(e._owner.type) + "."), F(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), F(null);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Se(e, r) {
|
|
544
544
|
{
|
|
545
545
|
if (typeof e != "object")
|
|
546
546
|
return;
|
|
547
547
|
if (B(e))
|
|
548
548
|
for (var t = 0; t < e.length; t++) {
|
|
549
|
-
var
|
|
550
|
-
H(
|
|
549
|
+
var a = e[t];
|
|
550
|
+
H(a) && Re(a, r);
|
|
551
551
|
}
|
|
552
552
|
else if (H(e))
|
|
553
553
|
e._store && (e._store.validated = !0);
|
|
554
554
|
else if (e) {
|
|
555
|
-
var
|
|
556
|
-
if (typeof
|
|
557
|
-
for (var
|
|
558
|
-
H(o.value) &&
|
|
555
|
+
var u = Fe(e);
|
|
556
|
+
if (typeof u == "function" && u !== e.entries)
|
|
557
|
+
for (var f = u.call(e), o; !(o = f.next()).done; )
|
|
558
|
+
H(o.value) && Re(o.value, r);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function sr(e) {
|
|
563
563
|
{
|
|
564
564
|
var r = e.type;
|
|
565
565
|
if (r == null || typeof r == "string")
|
|
@@ -567,216 +567,217 @@ Check the top-level render call using <` + t + ">.");
|
|
|
567
567
|
var t;
|
|
568
568
|
if (typeof r == "function")
|
|
569
569
|
t = r.propTypes;
|
|
570
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
570
|
+
else if (typeof r == "object" && (r.$$typeof === n || // Note: Memo only checks outer props here.
|
|
571
571
|
// Inner props are checked in the reconciler.
|
|
572
572
|
r.$$typeof === x))
|
|
573
573
|
t = r.propTypes;
|
|
574
574
|
else
|
|
575
575
|
return;
|
|
576
576
|
if (t) {
|
|
577
|
-
var
|
|
578
|
-
|
|
577
|
+
var a = P(r);
|
|
578
|
+
qe(t, e.props, "prop", a, e);
|
|
579
579
|
} else if (r.PropTypes !== void 0 && !X) {
|
|
580
580
|
X = !0;
|
|
581
|
-
var
|
|
582
|
-
|
|
581
|
+
var u = P(r);
|
|
582
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
583
583
|
}
|
|
584
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
584
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function ur(e) {
|
|
588
588
|
{
|
|
589
589
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
592
|
-
|
|
590
|
+
var a = r[t];
|
|
591
|
+
if (a !== "children" && a !== "key") {
|
|
592
|
+
F(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
|
|
593
593
|
break;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
e.ref !== null && (
|
|
596
|
+
e.ref !== null && (F(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
function
|
|
599
|
+
var je = {};
|
|
600
|
+
function xe(e, r, t, a, u, f) {
|
|
601
601
|
{
|
|
602
|
-
var o =
|
|
602
|
+
var o = Le(e);
|
|
603
603
|
if (!o) {
|
|
604
604
|
var i = "";
|
|
605
605
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
606
|
-
var
|
|
607
|
-
|
|
608
|
-
var
|
|
609
|
-
e === null ?
|
|
606
|
+
var E = ir();
|
|
607
|
+
E ? i += E : i += Ee();
|
|
608
|
+
var h;
|
|
609
|
+
e === null ? h = "null" : B(e) ? h = "array" : e !== void 0 && e.$$typeof === p ? (h = "<" + (P(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, i);
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
613
|
-
return
|
|
611
|
+
var g = ar(e, r, t, u, f);
|
|
612
|
+
if (g == null)
|
|
613
|
+
return g;
|
|
614
614
|
if (o) {
|
|
615
615
|
var S = r.children;
|
|
616
616
|
if (S !== void 0)
|
|
617
|
-
if (
|
|
617
|
+
if (a)
|
|
618
618
|
if (B(S)) {
|
|
619
|
-
for (var
|
|
620
|
-
|
|
619
|
+
for (var A = 0; A < S.length; A++)
|
|
620
|
+
Se(S[A], e);
|
|
621
621
|
Object.freeze && Object.freeze(S);
|
|
622
622
|
} else
|
|
623
|
-
|
|
623
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
624
624
|
else
|
|
625
|
-
|
|
625
|
+
Se(S, e);
|
|
626
626
|
}
|
|
627
627
|
if (I.call(r, "key")) {
|
|
628
|
-
var
|
|
629
|
-
return
|
|
628
|
+
var k = P(e), b = Object.keys(r).filter(function(pr) {
|
|
629
|
+
return pr !== "key";
|
|
630
630
|
}), Q = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
631
|
-
if (!
|
|
632
|
-
var
|
|
633
|
-
|
|
631
|
+
if (!je[k + Q]) {
|
|
632
|
+
var dr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
|
|
633
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
634
634
|
let props = %s;
|
|
635
635
|
<%s {...props} />
|
|
636
636
|
React keys must be passed directly to JSX without using spread:
|
|
637
637
|
let props = %s;
|
|
638
|
-
<%s key={someKey} {...props} />`, Q,
|
|
638
|
+
<%s key={someKey} {...props} />`, Q, k, dr, k), je[k + Q] = !0;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
return e ===
|
|
641
|
+
return e === d ? ur(g) : sr(g), g;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
return
|
|
644
|
+
function cr(e, r, t) {
|
|
645
|
+
return xe(e, r, t, !0);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
return
|
|
647
|
+
function lr(e, r, t) {
|
|
648
|
+
return xe(e, r, t, !1);
|
|
649
649
|
}
|
|
650
|
-
var
|
|
651
|
-
N.Fragment =
|
|
650
|
+
var fr = lr, vr = cr;
|
|
651
|
+
N.Fragment = d, N.jsx = fr, N.jsxs = vr;
|
|
652
652
|
})()), N;
|
|
653
653
|
}
|
|
654
|
-
var
|
|
655
|
-
function
|
|
656
|
-
return
|
|
654
|
+
var Oe;
|
|
655
|
+
function xr() {
|
|
656
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? K.exports = Sr() : K.exports = jr()), K.exports;
|
|
657
657
|
}
|
|
658
|
-
var
|
|
659
|
-
const
|
|
660
|
-
screen:
|
|
658
|
+
var s = xr();
|
|
659
|
+
const Pr = "_screen_l4v3n_1", Tr = {
|
|
660
|
+
screen: Pr
|
|
661
661
|
};
|
|
662
|
-
function
|
|
663
|
-
config:
|
|
664
|
-
deviceKey:
|
|
662
|
+
function ke({
|
|
663
|
+
config: l,
|
|
664
|
+
deviceKey: p,
|
|
665
665
|
screenKey: c,
|
|
666
|
-
language:
|
|
666
|
+
language: d,
|
|
667
667
|
className: m
|
|
668
668
|
}) {
|
|
669
|
-
const
|
|
670
|
-
if (!
|
|
669
|
+
const v = l.devices.find((n) => n.key === p), _ = v == null ? void 0 : v.screens.find((n) => n.key === c);
|
|
670
|
+
if (!v || !_)
|
|
671
671
|
return null;
|
|
672
|
-
const y =
|
|
673
|
-
return /* @__PURE__ */
|
|
672
|
+
const y = _.component;
|
|
673
|
+
return /* @__PURE__ */ s.jsx(
|
|
674
674
|
"div",
|
|
675
675
|
{
|
|
676
|
-
className: `${
|
|
677
|
-
"data-device":
|
|
678
|
-
style: { width:
|
|
679
|
-
children: y ? /* @__PURE__ */
|
|
676
|
+
className: `${Tr.screen} ${m || ""}`,
|
|
677
|
+
"data-device": v.key,
|
|
678
|
+
style: { width: v.width, height: v.height },
|
|
679
|
+
children: y ? /* @__PURE__ */ s.jsx(
|
|
680
680
|
y,
|
|
681
681
|
{
|
|
682
|
-
language:
|
|
683
|
-
deviceKey:
|
|
684
|
-
width:
|
|
685
|
-
height:
|
|
682
|
+
language: d,
|
|
683
|
+
deviceKey: v.key,
|
|
684
|
+
width: v.width,
|
|
685
|
+
height: v.height
|
|
686
686
|
}
|
|
687
687
|
) : c
|
|
688
688
|
}
|
|
689
689
|
);
|
|
690
690
|
}
|
|
691
|
-
const
|
|
692
|
-
overviewPage:
|
|
693
|
-
light:
|
|
694
|
-
dark:
|
|
695
|
-
overviewControls:
|
|
696
|
-
overviewGrid:
|
|
697
|
-
overviewDevice:
|
|
698
|
-
overviewScreens:
|
|
699
|
-
overviewScreenWrapper:
|
|
700
|
-
overviewScreenScaled:
|
|
701
|
-
},
|
|
702
|
-
function
|
|
703
|
-
config:
|
|
704
|
-
language:
|
|
705
|
-
scale: c =
|
|
706
|
-
colorScheme:
|
|
691
|
+
const Or = "_overviewPage_f2w28_1", Cr = "_light_f2w28_6", kr = "_dark_f2w28_10", Dr = "_overviewControls_f2w28_15", Fr = "_overviewGrid_f2w28_63", Ar = "_overviewDevice_f2w28_69", $r = "_overviewScreens_f2w28_76", Ir = "_overviewScreenWrapper_f2w28_82", Wr = "_overviewScreenScaled_f2w28_92", T = {
|
|
692
|
+
overviewPage: Or,
|
|
693
|
+
light: Cr,
|
|
694
|
+
dark: kr,
|
|
695
|
+
overviewControls: Dr,
|
|
696
|
+
overviewGrid: Fr,
|
|
697
|
+
overviewDevice: Ar,
|
|
698
|
+
overviewScreens: $r,
|
|
699
|
+
overviewScreenWrapper: Ir,
|
|
700
|
+
overviewScreenScaled: Wr
|
|
701
|
+
}, Nr = [0.1, 0.25, 1], Yr = 0.25;
|
|
702
|
+
function Lr({
|
|
703
|
+
config: l,
|
|
704
|
+
language: p,
|
|
705
|
+
scale: c = Yr,
|
|
706
|
+
colorScheme: d = "light",
|
|
707
707
|
onLanguageChange: m,
|
|
708
|
-
onScaleChange:
|
|
709
|
-
onColorSchemeChange:
|
|
708
|
+
onScaleChange: v,
|
|
709
|
+
onColorSchemeChange: _,
|
|
710
710
|
className: y
|
|
711
711
|
}) {
|
|
712
|
-
return /* @__PURE__ */
|
|
712
|
+
return /* @__PURE__ */ s.jsxs(
|
|
713
713
|
"div",
|
|
714
714
|
{
|
|
715
|
-
|
|
715
|
+
"data-testid": "overview-grid",
|
|
716
|
+
className: `${T.overviewPage} ${T[d]} ${y || ""}`,
|
|
716
717
|
children: [
|
|
717
|
-
/* @__PURE__ */
|
|
718
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ s.jsxs("div", { className: T.overviewControls, children: [
|
|
719
|
+
/* @__PURE__ */ s.jsxs("label", { children: [
|
|
719
720
|
"Language:",
|
|
720
|
-
/* @__PURE__ */
|
|
721
|
+
/* @__PURE__ */ s.jsx(
|
|
721
722
|
"select",
|
|
722
723
|
{
|
|
723
|
-
value:
|
|
724
|
-
onChange: (
|
|
725
|
-
children:
|
|
724
|
+
value: p,
|
|
725
|
+
onChange: (n) => m == null ? void 0 : m(n.target.value),
|
|
726
|
+
children: l.languages.map((n) => /* @__PURE__ */ s.jsx("option", { value: n, children: n }, n))
|
|
726
727
|
}
|
|
727
728
|
)
|
|
728
729
|
] }),
|
|
729
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ s.jsxs("label", { children: [
|
|
730
731
|
"Scale:",
|
|
731
|
-
/* @__PURE__ */
|
|
732
|
+
/* @__PURE__ */ s.jsx(
|
|
732
733
|
"select",
|
|
733
734
|
{
|
|
734
735
|
value: c,
|
|
735
|
-
onChange: (
|
|
736
|
-
children:
|
|
737
|
-
|
|
736
|
+
onChange: (n) => v == null ? void 0 : v(parseFloat(n.target.value)),
|
|
737
|
+
children: Nr.map((n) => /* @__PURE__ */ s.jsxs("option", { value: n, children: [
|
|
738
|
+
n * 100,
|
|
738
739
|
"%"
|
|
739
|
-
] },
|
|
740
|
+
] }, n))
|
|
740
741
|
}
|
|
741
742
|
)
|
|
742
743
|
] }),
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ s.jsxs("label", { children: [
|
|
744
745
|
"Color Scheme:",
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ s.jsx(
|
|
746
747
|
"select",
|
|
747
748
|
{
|
|
748
|
-
value:
|
|
749
|
-
onChange: (
|
|
750
|
-
children:
|
|
749
|
+
value: d,
|
|
750
|
+
onChange: (n) => _ == null ? void 0 : _(n.target.value),
|
|
751
|
+
children: Er.map((n) => /* @__PURE__ */ s.jsx("option", { value: n, children: n.charAt(0).toUpperCase() + n.slice(1) }, n))
|
|
751
752
|
}
|
|
752
753
|
)
|
|
753
754
|
] })
|
|
754
755
|
] }),
|
|
755
|
-
/* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
757
|
-
/* @__PURE__ */
|
|
756
|
+
/* @__PURE__ */ s.jsx("div", { className: T.overviewGrid, children: l.devices.map((n) => /* @__PURE__ */ s.jsxs("div", { className: T.overviewDevice, children: [
|
|
757
|
+
/* @__PURE__ */ s.jsx("h2", { children: n.key }),
|
|
758
|
+
/* @__PURE__ */ s.jsx("div", { className: T.overviewScreens, children: n.screens.map((j) => /* @__PURE__ */ s.jsx(
|
|
758
759
|
"div",
|
|
759
760
|
{
|
|
760
|
-
className:
|
|
761
|
+
className: T.overviewScreenWrapper,
|
|
761
762
|
style: {
|
|
762
|
-
width:
|
|
763
|
-
height:
|
|
763
|
+
width: n.width * c,
|
|
764
|
+
height: n.height * c
|
|
764
765
|
},
|
|
765
|
-
children: /* @__PURE__ */
|
|
766
|
+
children: /* @__PURE__ */ s.jsx(
|
|
766
767
|
"div",
|
|
767
768
|
{
|
|
768
|
-
className:
|
|
769
|
+
className: T.overviewScreenScaled,
|
|
769
770
|
style: {
|
|
770
771
|
transform: `scale(${c})`,
|
|
771
772
|
transformOrigin: "top left"
|
|
772
773
|
},
|
|
773
|
-
children: /* @__PURE__ */
|
|
774
|
-
|
|
774
|
+
children: /* @__PURE__ */ s.jsx(
|
|
775
|
+
ke,
|
|
775
776
|
{
|
|
776
|
-
config:
|
|
777
|
-
deviceKey:
|
|
777
|
+
config: l,
|
|
778
|
+
deviceKey: n.key,
|
|
778
779
|
screenKey: j.key,
|
|
779
|
-
language:
|
|
780
|
+
language: p
|
|
780
781
|
}
|
|
781
782
|
)
|
|
782
783
|
}
|
|
@@ -784,34 +785,83 @@ function Yr({
|
|
|
784
785
|
},
|
|
785
786
|
j.key
|
|
786
787
|
)) })
|
|
787
|
-
] },
|
|
788
|
+
] }, n.key)) })
|
|
788
789
|
]
|
|
789
790
|
}
|
|
790
791
|
);
|
|
791
792
|
}
|
|
792
|
-
function
|
|
793
|
-
config:
|
|
793
|
+
function Mr({
|
|
794
|
+
config: l
|
|
794
795
|
}) {
|
|
795
|
-
const
|
|
796
|
-
languages:
|
|
797
|
-
devices:
|
|
796
|
+
const p = {
|
|
797
|
+
languages: l.languages,
|
|
798
|
+
devices: l.devices.map((c) => ({
|
|
798
799
|
key: c.key,
|
|
799
800
|
fastlaneKeys: c.fastlaneKeys,
|
|
800
801
|
width: c.width,
|
|
801
802
|
height: c.height,
|
|
802
|
-
screens: c.screens.map((
|
|
803
|
-
key:
|
|
803
|
+
screens: c.screens.map((d) => ({
|
|
804
|
+
key: d.key
|
|
804
805
|
}))
|
|
805
806
|
}))
|
|
806
807
|
};
|
|
807
|
-
return /* @__PURE__ */
|
|
808
|
+
return /* @__PURE__ */ s.jsx("pre", { id: "screegen-config", "data-testid": "screegen-config", children: JSON.stringify(p, null, 2) });
|
|
809
|
+
}
|
|
810
|
+
function Ur({ config: l }) {
|
|
811
|
+
const { deviceKey: p, screenKey: c, language: d } = _r();
|
|
812
|
+
return !p || !c || !d ? /* @__PURE__ */ s.jsx("div", { children: "Invalid screen parameters" }) : /* @__PURE__ */ s.jsx(
|
|
813
|
+
ke,
|
|
814
|
+
{
|
|
815
|
+
config: l,
|
|
816
|
+
deviceKey: p,
|
|
817
|
+
screenKey: c,
|
|
818
|
+
language: d
|
|
819
|
+
}
|
|
820
|
+
);
|
|
821
|
+
}
|
|
822
|
+
function Vr({
|
|
823
|
+
config: l
|
|
824
|
+
}) {
|
|
825
|
+
const [p, c] = ee(
|
|
826
|
+
"language",
|
|
827
|
+
l.languages[0]
|
|
828
|
+
), [d, m] = ee("scale", "0.25"), [v, _] = ee(
|
|
829
|
+
"colorScheme",
|
|
830
|
+
""
|
|
831
|
+
), y = Rr(), n = v || y;
|
|
832
|
+
return /* @__PURE__ */ s.jsx(
|
|
833
|
+
Lr,
|
|
834
|
+
{
|
|
835
|
+
config: l,
|
|
836
|
+
language: p,
|
|
837
|
+
scale: parseFloat(d),
|
|
838
|
+
colorScheme: n,
|
|
839
|
+
onLanguageChange: c,
|
|
840
|
+
onScaleChange: (j) => m(String(j)),
|
|
841
|
+
onColorSchemeChange: _
|
|
842
|
+
}
|
|
843
|
+
);
|
|
844
|
+
}
|
|
845
|
+
function Gr({ config: l }) {
|
|
846
|
+
return /* @__PURE__ */ s.jsxs(wr, { children: [
|
|
847
|
+
/* @__PURE__ */ s.jsx(Z, { path: "/", element: /* @__PURE__ */ s.jsx(Vr, { config: l }) }),
|
|
848
|
+
/* @__PURE__ */ s.jsx(Z, { path: "/config", element: /* @__PURE__ */ s.jsx(Mr, { config: l }) }),
|
|
849
|
+
/* @__PURE__ */ s.jsx(
|
|
850
|
+
Z,
|
|
851
|
+
{
|
|
852
|
+
path: "/screens/:deviceKey/:screenKey/:language",
|
|
853
|
+
element: /* @__PURE__ */ s.jsx(Ur, { config: l })
|
|
854
|
+
}
|
|
855
|
+
)
|
|
856
|
+
] });
|
|
808
857
|
}
|
|
809
858
|
export {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
859
|
+
Lr as OverviewGrid,
|
|
860
|
+
Gr as Screegen,
|
|
861
|
+
ke as Screen,
|
|
862
|
+
Mr as ScreengenConfig,
|
|
863
|
+
Er as colorSchemes,
|
|
864
|
+
br as getSystemColorScheme,
|
|
865
|
+
Rr as useColorScheme,
|
|
866
|
+
ee as useUrlState
|
|
817
867
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@screegen/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"dev": "vite build --watch",
|
|
21
21
|
"build": "vite build",
|
|
22
22
|
"lint": "eslint src",
|
|
23
|
-
"test": "vitest run --coverage"
|
|
24
|
-
"publish": "npm publish --access=public"
|
|
23
|
+
"test": "vitest run --coverage"
|
|
25
24
|
},
|
|
26
25
|
"peerDependencies": {
|
|
27
26
|
"react": "^18.0.0",
|