@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.
@@ -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,2CA6FtB"}
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,3 @@
1
+ export { Screegen } from './Screegen';
2
+ export type { ScreegenProps } from './Screegen';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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
@@ -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 Oe, { useState as vr, useEffect as dr, useCallback as pr } from "react";
2
- import { useSearchParams as hr } from "react-router-dom";
3
- const _r = ["light", "dark"];
4
- function mr() {
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 Wr(h) {
8
- const [_, c] = vr(
9
- () => mr()
7
+ function Rr(l) {
8
+ const [p, c] = hr(
9
+ () => br()
10
10
  );
11
- return dr(() => {
11
+ return gr(() => {
12
12
  if (typeof window > "u" || !window.matchMedia)
13
13
  return;
14
- const p = window.matchMedia("(prefers-color-scheme: dark)"), m = (l) => {
15
- c(l.matches ? "dark" : "light");
14
+ const d = window.matchMedia("(prefers-color-scheme: dark)"), m = (v) => {
15
+ c(v.matches ? "dark" : "light");
16
16
  };
17
- return p.addEventListener("change", m), () => p.removeEventListener("change", m);
18
- }, []), h ?? _;
17
+ return d.addEventListener("change", m), () => d.removeEventListener("change", m);
18
+ }, []), l ?? p;
19
19
  }
20
- function Nr(h, _) {
21
- const [c, p] = hr(), m = c.get(h) || _, l = pr(
22
- (E) => {
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(h, E), p(y);
24
+ y.set(l, _), d(y);
25
25
  },
26
- [h, c, p]
26
+ [l, c, d]
27
27
  );
28
- return [m, l];
28
+ return [m, v];
29
29
  }
30
- var J = { exports: {} }, W = {};
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 je;
41
- function yr() {
42
- if (je) return W;
43
- je = 1;
44
- var h = Oe, _ = Symbol.for("react.element"), c = Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, m = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
45
- function E(y, a, j) {
46
- var R, x = {}, P = null, Y = null;
47
- j !== void 0 && (P = "" + j), a.key !== void 0 && (P = "" + a.key), a.ref !== void 0 && (Y = a.ref);
48
- for (R in a) p.call(a, R) && !l.hasOwnProperty(R) && (x[R] = a[R]);
49
- if (y && y.defaultProps) for (R in a = y.defaultProps, a) x[R] === void 0 && (x[R] = a[R]);
50
- return { $$typeof: _, type: y, key: P, ref: Y, props: x, _owner: m.current };
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 = E, W.jsxs = E, W;
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 xe;
65
- function gr() {
66
- return xe || (xe = 1, process.env.NODE_ENV !== "production" && (function() {
67
- var h = Oe, _ = Symbol.for("react.element"), c = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), y = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Z = Symbol.iterator, Pe = "@@iterator";
68
- function ke(e) {
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 = Z && e[Z] || e[Pe];
71
+ var r = re && e[re] || e[De];
72
72
  return typeof r == "function" ? r : null;
73
73
  }
74
- var D = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
75
- function g(e) {
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), n = 1; n < r; n++)
78
- t[n - 1] = arguments[n];
79
- Ce("error", e, t);
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 Ce(e, r, t) {
82
+ function Ae(e, r, t) {
83
83
  {
84
- var n = D.ReactDebugCurrentFrame, s = n.getStackAddendum();
85
- s !== "" && (r += "%s", t = t.concat([s]));
86
- var u = t.map(function(o) {
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
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
89
+ f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
90
90
  }
91
91
  }
92
- var De = !1, Ae = !1, Fe = !1, $e = !1, Ie = !1, ee;
93
- ee = Symbol.for("react.module.reference");
94
- function We(e) {
95
- return !!(typeof e == "string" || typeof e == "function" || e === p || e === l || Ie || e === m || e === j || e === R || $e || e === Y || De || Ae || Fe || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === x || e.$$typeof === E || e.$$typeof === y || e.$$typeof === a || // This needs to include all possible module reference object
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 === ee || e.getModuleId !== void 0));
99
+ e.$$typeof === te || e.getModuleId !== void 0));
100
100
  }
101
- function Ne(e, r, t) {
102
- var n = e.displayName;
103
- if (n)
104
- return n;
105
- var s = r.displayName || r.name || "";
106
- return s !== "" ? t + "(" + s + ")" : t;
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 re(e) {
108
+ function ne(e) {
109
109
  return e.displayName || "Context";
110
110
  }
111
- function T(e) {
111
+ function P(e) {
112
112
  if (e == null)
113
113
  return null;
114
- if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
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 p:
119
+ case d:
120
120
  return "Fragment";
121
121
  case c:
122
122
  return "Portal";
123
- case l:
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 re(r) + ".Consumer";
137
- case E:
136
+ return ne(r) + ".Consumer";
137
+ case _:
138
138
  var t = e;
139
- return re(t._context) + ".Provider";
140
- case a:
141
- return Ne(e, e.render, "ForwardRef");
139
+ return ne(t._context) + ".Provider";
140
+ case n:
141
+ return Me(e, e.render, "ForwardRef");
142
142
  case x:
143
- var n = e.displayName || null;
144
- return n !== null ? n : T(e.type) || "Memo";
145
- case P: {
146
- var s = e, u = s._payload, o = s._init;
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 T(o(u));
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 k = Object.assign, $ = 0, te, ne, ae, ie, oe, se, ue;
157
- function ce() {
156
+ var C = Object.assign, $ = 0, ae, ie, oe, se, ue, ce, le;
157
+ function fe() {
158
158
  }
159
- ce.__reactDisabledLog = !0;
160
- function Ye() {
159
+ fe.__reactDisabledLog = !0;
160
+ function Ue() {
161
161
  {
162
162
  if ($ === 0) {
163
- te = console.log, ne = console.info, ae = console.warn, ie = console.error, oe = console.group, se = console.groupCollapsed, ue = console.groupEnd;
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: ce,
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 Le() {
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: k({}, e, {
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
- error: k({}, e, {
195
+ info: C({}, e, {
202
196
  value: ie
203
197
  }),
204
- group: k({}, e, {
198
+ warn: C({}, e, {
205
199
  value: oe
206
200
  }),
207
- groupCollapsed: k({}, e, {
201
+ error: C({}, e, {
208
202
  value: se
209
203
  }),
210
- groupEnd: k({}, e, {
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 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
215
+ $ < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
216
216
  }
217
217
  }
218
- var K = D.ReactCurrentDispatcher, G;
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 (s) {
225
- var n = s.stack.trim().match(/\n( *(at )?)/);
226
- G = n && n[1] || "";
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 Me = typeof WeakMap == "function" ? WeakMap : Map;
235
- M = new Me();
234
+ var Ke = typeof WeakMap == "function" ? WeakMap : Map;
235
+ M = new Ke();
236
236
  }
237
- function le(e, r) {
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 n;
245
+ var a;
246
246
  q = !0;
247
- var s = Error.prepareStackTrace;
247
+ var u = Error.prepareStackTrace;
248
248
  Error.prepareStackTrace = void 0;
249
- var u;
250
- u = K.current, K.current = null, Ye();
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
- n = b;
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
- n = b;
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
- n = b;
279
+ a = b;
280
280
  }
281
281
  e();
282
282
  }
283
283
  } catch (b) {
284
- if (b && n && typeof b.stack == "string") {
284
+ if (b && a && typeof b.stack == "string") {
285
285
  for (var i = b.stack.split(`
286
- `), w = n.stack.split(`
287
- `), f = i.length - 1, d = w.length - 1; f >= 1 && d >= 0 && i[f] !== w[d]; )
288
- d--;
289
- for (; f >= 1 && d >= 0; f--, d--)
290
- if (i[f] !== w[d]) {
291
- if (f !== 1 || d !== 1)
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 (f--, d--, d < 0 || i[f] !== w[d]) {
293
+ if (h--, g--, g < 0 || i[h] !== E[g]) {
294
294
  var S = `
295
- ` + i[f].replace(" at new ", " at ");
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 (f >= 1 && d >= 0);
298
+ while (h >= 1 && g >= 0);
299
299
  break;
300
300
  }
301
301
  }
302
302
  } finally {
303
- q = !1, K.current = u, Le(), Error.prepareStackTrace = s;
303
+ q = !1, J.current = f, Ve(), Error.prepareStackTrace = u;
304
304
  }
305
- var F = e ? e.displayName || e.name : "", C = F ? L(F) : "";
306
- return typeof e == "function" && M.set(e, C), C;
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 Ue(e, r, t) {
309
- return le(e, !1);
308
+ function Je(e, r, t) {
309
+ return ve(e, !1);
310
310
  }
311
- function Ve(e) {
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 le(e, Ve(e));
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 a:
331
- return Ue(e.render);
330
+ case n:
331
+ return Je(e.render);
332
332
  case x:
333
333
  return U(e.type, r, t);
334
- case P: {
335
- var n = e, s = n._payload, u = n._init;
334
+ case O: {
335
+ var a = e, u = a._payload, f = a._init;
336
336
  try {
337
- return U(u(s), r, t);
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, fe = {}, ve = D.ReactDebugCurrentFrame;
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
- ve.setExtraStackFrame(t);
348
+ pe.setExtraStackFrame(t);
349
349
  } else
350
- ve.setExtraStackFrame(null);
350
+ pe.setExtraStackFrame(null);
351
351
  }
352
- function Je(e, r, t, n, s) {
352
+ function qe(e, r, t, a, u) {
353
353
  {
354
- var u = Function.call.bind(I);
354
+ var f = Function.call.bind(I);
355
355
  for (var o in e)
356
- if (u(e, o)) {
356
+ if (f(e, o)) {
357
357
  var i = void 0;
358
358
  try {
359
359
  if (typeof e[o] != "function") {
360
- var w = 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`.");
361
- throw w.name = "Invariant Violation", w;
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, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
364
- } catch (f) {
365
- i = f;
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(s), g("%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 i), V(null)), i instanceof Error && !(i.message in fe) && (fe[i.message] = !0, V(s), g("Failed %s type: %s", t, i.message), V(null));
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 Ke = Array.isArray;
371
+ var Be = Array.isArray;
372
372
  function B(e) {
373
- return Ke(e);
373
+ return Be(e);
374
374
  }
375
- function Ge(e) {
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 qe(e) {
381
+ function Xe(e) {
382
382
  try {
383
- return de(e), !1;
383
+ return he(e), !1;
384
384
  } catch {
385
385
  return !0;
386
386
  }
387
387
  }
388
- function de(e) {
388
+ function he(e) {
389
389
  return "" + e;
390
390
  }
391
- function pe(e) {
392
- if (qe(e))
393
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), de(e);
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 he = D.ReactCurrentOwner, Be = {
395
+ var me = D.ReactCurrentOwner, He = {
396
396
  key: !0,
397
397
  ref: !0,
398
398
  __self: !0,
399
399
  __source: !0
400
- }, _e, me;
401
- function ze(e) {
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 Xe(e) {
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 He(e, r) {
418
- typeof e.ref == "string" && he.current;
417
+ function er(e, r) {
418
+ typeof e.ref == "string" && me.current;
419
419
  }
420
- function Qe(e, r) {
420
+ function rr(e, r) {
421
421
  {
422
422
  var t = function() {
423
- _e || (_e = !0, g("%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));
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 Ze(e, r) {
431
+ function tr(e, r) {
432
432
  {
433
433
  var t = function() {
434
- me || (me = !0, g("%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));
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 er = function(e, r, t, n, s, u, o) {
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: u
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: n
463
+ value: a
464
464
  }), Object.defineProperty(i, "_source", {
465
465
  configurable: !1,
466
466
  enumerable: !1,
467
467
  writable: !1,
468
- value: s
468
+ value: u
469
469
  }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
470
470
  };
471
- function rr(e, r, t, n, s) {
471
+ function ar(e, r, t, a, u) {
472
472
  {
473
- var u, o = {}, i = null, w = null;
474
- t !== void 0 && (pe(t), i = "" + t), Xe(r) && (pe(r.key), i = "" + r.key), ze(r) && (w = r.ref, He(r, s));
475
- for (u in r)
476
- I.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
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 f = e.defaultProps;
479
- for (u in f)
480
- o[u] === void 0 && (o[u] = f[u]);
478
+ var h = e.defaultProps;
479
+ for (f in h)
480
+ o[f] === void 0 && (o[f] = h[f]);
481
481
  }
482
- if (i || w) {
483
- var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
484
- i && Qe(o, d), w && Ze(o, d);
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 er(e, i, w, s, n, he.current, o);
486
+ return nr(e, i, E, u, a, me.current, o);
487
487
  }
488
488
  }
489
- var z = D.ReactCurrentOwner, ye = D.ReactDebugCurrentFrame;
490
- function A(e) {
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
- ye.setExtraStackFrame(t);
493
+ we.setExtraStackFrame(t);
494
494
  } else
495
- ye.setExtraStackFrame(null);
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 ge() {
502
+ function Ee() {
503
503
  {
504
504
  if (z.current) {
505
- var e = T(z.current.type);
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 tr(e) {
514
+ function ir(e) {
515
515
  return "";
516
516
  }
517
- var we = {};
518
- function nr(e) {
517
+ var be = {};
518
+ function or(e) {
519
519
  {
520
- var r = ge();
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 Ee(e, r) {
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 = nr(r);
536
- if (we[t])
535
+ var t = or(r);
536
+ if (be[t])
537
537
  return;
538
- we[t] = !0;
539
- var n = "";
540
- e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + T(e._owner.type) + "."), A(e), g('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), A(null);
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 be(e, r) {
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 n = e[t];
550
- H(n) && Ee(n, r);
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 s = ke(e);
556
- if (typeof s == "function" && s !== e.entries)
557
- for (var u = s.call(e), o; !(o = u.next()).done; )
558
- H(o.value) && Ee(o.value, r);
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 ar(e) {
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 === a || // Note: Memo only checks outer props here.
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 n = T(r);
578
- Je(t, e.props, "prop", n, e);
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 s = T(r);
582
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
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 && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 ir(e) {
587
+ function ur(e) {
588
588
  {
589
589
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
590
- var n = r[t];
591
- if (n !== "children" && n !== "key") {
592
- A(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
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 && (A(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
596
+ e.ref !== null && (F(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
597
597
  }
598
598
  }
599
- var Re = {};
600
- function Se(e, r, t, n, s, u) {
599
+ var je = {};
600
+ function xe(e, r, t, a, u, f) {
601
601
  {
602
- var o = We(e);
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 w = tr();
607
- w ? i += w : i += ge();
608
- var f;
609
- e === null ? f = "null" : B(e) ? f = "array" : e !== void 0 && e.$$typeof === _ ? (f = "<" + (T(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, i);
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 d = rr(e, r, t, s, u);
612
- if (d == null)
613
- return d;
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 (n)
617
+ if (a)
618
618
  if (B(S)) {
619
- for (var F = 0; F < S.length; F++)
620
- be(S[F], e);
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
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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
- be(S, e);
625
+ Se(S, e);
626
626
  }
627
627
  if (I.call(r, "key")) {
628
- var C = T(e), b = Object.keys(r).filter(function(fr) {
629
- return fr !== "key";
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 (!Re[C + Q]) {
632
- var lr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
633
- g(`A props object containing a "key" prop is being spread into JSX:
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, C, lr, C), Re[C + Q] = !0;
638
+ <%s key={someKey} {...props} />`, Q, k, dr, k), je[k + Q] = !0;
639
639
  }
640
640
  }
641
- return e === p ? ir(d) : ar(d), d;
641
+ return e === d ? ur(g) : sr(g), g;
642
642
  }
643
643
  }
644
- function or(e, r, t) {
645
- return Se(e, r, t, !0);
644
+ function cr(e, r, t) {
645
+ return xe(e, r, t, !0);
646
646
  }
647
- function sr(e, r, t) {
648
- return Se(e, r, t, !1);
647
+ function lr(e, r, t) {
648
+ return xe(e, r, t, !1);
649
649
  }
650
- var ur = sr, cr = or;
651
- N.Fragment = p, N.jsx = ur, N.jsxs = cr;
650
+ var fr = lr, vr = cr;
651
+ N.Fragment = d, N.jsx = fr, N.jsxs = vr;
652
652
  })()), N;
653
653
  }
654
- var Te;
655
- function wr() {
656
- return Te || (Te = 1, process.env.NODE_ENV === "production" ? J.exports = yr() : J.exports = gr()), J.exports;
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 v = wr();
659
- const Er = "_screen_l4v3n_1", br = {
660
- screen: Er
658
+ var s = xr();
659
+ const Pr = "_screen_l4v3n_1", Tr = {
660
+ screen: Pr
661
661
  };
662
- function Rr({
663
- config: h,
664
- deviceKey: _,
662
+ function ke({
663
+ config: l,
664
+ deviceKey: p,
665
665
  screenKey: c,
666
- language: p,
666
+ language: d,
667
667
  className: m
668
668
  }) {
669
- const l = h.devices.find((a) => a.key === _), E = l == null ? void 0 : l.screens.find((a) => a.key === c);
670
- if (!l || !E)
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 = E.component;
673
- return /* @__PURE__ */ v.jsx(
672
+ const y = _.component;
673
+ return /* @__PURE__ */ s.jsx(
674
674
  "div",
675
675
  {
676
- className: `${br.screen} ${m || ""}`,
677
- "data-device": l.key,
678
- style: { width: l.width, height: l.height },
679
- children: y ? /* @__PURE__ */ v.jsx(
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: p,
683
- deviceKey: l.key,
684
- width: l.width,
685
- height: l.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 Sr = "_overviewPage_f2w28_1", jr = "_light_f2w28_6", xr = "_dark_f2w28_10", Tr = "_overviewControls_f2w28_15", Or = "_overviewGrid_f2w28_63", Pr = "_overviewDevice_f2w28_69", kr = "_overviewScreens_f2w28_76", Cr = "_overviewScreenWrapper_f2w28_82", Dr = "_overviewScreenScaled_f2w28_92", O = {
692
- overviewPage: Sr,
693
- light: jr,
694
- dark: xr,
695
- overviewControls: Tr,
696
- overviewGrid: Or,
697
- overviewDevice: Pr,
698
- overviewScreens: kr,
699
- overviewScreenWrapper: Cr,
700
- overviewScreenScaled: Dr
701
- }, Ar = [0.1, 0.25, 1], Fr = 0.25;
702
- function Yr({
703
- config: h,
704
- language: _,
705
- scale: c = Fr,
706
- colorScheme: p = "light",
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: l,
709
- onColorSchemeChange: E,
708
+ onScaleChange: v,
709
+ onColorSchemeChange: _,
710
710
  className: y
711
711
  }) {
712
- return /* @__PURE__ */ v.jsxs(
712
+ return /* @__PURE__ */ s.jsxs(
713
713
  "div",
714
714
  {
715
- className: `${O.overviewPage} ${O[p]} ${y || ""}`,
715
+ "data-testid": "overview-grid",
716
+ className: `${T.overviewPage} ${T[d]} ${y || ""}`,
716
717
  children: [
717
- /* @__PURE__ */ v.jsxs("div", { className: O.overviewControls, children: [
718
- /* @__PURE__ */ v.jsxs("label", { children: [
718
+ /* @__PURE__ */ s.jsxs("div", { className: T.overviewControls, children: [
719
+ /* @__PURE__ */ s.jsxs("label", { children: [
719
720
  "Language:",
720
- /* @__PURE__ */ v.jsx(
721
+ /* @__PURE__ */ s.jsx(
721
722
  "select",
722
723
  {
723
- value: _,
724
- onChange: (a) => m == null ? void 0 : m(a.target.value),
725
- children: h.languages.map((a) => /* @__PURE__ */ v.jsx("option", { value: a, children: a }, a))
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__ */ v.jsxs("label", { children: [
730
+ /* @__PURE__ */ s.jsxs("label", { children: [
730
731
  "Scale:",
731
- /* @__PURE__ */ v.jsx(
732
+ /* @__PURE__ */ s.jsx(
732
733
  "select",
733
734
  {
734
735
  value: c,
735
- onChange: (a) => l == null ? void 0 : l(parseFloat(a.target.value)),
736
- children: Ar.map((a) => /* @__PURE__ */ v.jsxs("option", { value: a, children: [
737
- a * 100,
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
- ] }, a))
740
+ ] }, n))
740
741
  }
741
742
  )
742
743
  ] }),
743
- /* @__PURE__ */ v.jsxs("label", { children: [
744
+ /* @__PURE__ */ s.jsxs("label", { children: [
744
745
  "Color Scheme:",
745
- /* @__PURE__ */ v.jsx(
746
+ /* @__PURE__ */ s.jsx(
746
747
  "select",
747
748
  {
748
- value: p,
749
- onChange: (a) => E == null ? void 0 : E(a.target.value),
750
- children: _r.map((a) => /* @__PURE__ */ v.jsx("option", { value: a, children: a.charAt(0).toUpperCase() + a.slice(1) }, a))
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__ */ v.jsx("div", { className: O.overviewGrid, children: h.devices.map((a) => /* @__PURE__ */ v.jsxs("div", { className: O.overviewDevice, children: [
756
- /* @__PURE__ */ v.jsx("h2", { children: a.key }),
757
- /* @__PURE__ */ v.jsx("div", { className: O.overviewScreens, children: a.screens.map((j) => /* @__PURE__ */ v.jsx(
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: O.overviewScreenWrapper,
761
+ className: T.overviewScreenWrapper,
761
762
  style: {
762
- width: a.width * c,
763
- height: a.height * c
763
+ width: n.width * c,
764
+ height: n.height * c
764
765
  },
765
- children: /* @__PURE__ */ v.jsx(
766
+ children: /* @__PURE__ */ s.jsx(
766
767
  "div",
767
768
  {
768
- className: O.overviewScreenScaled,
769
+ className: T.overviewScreenScaled,
769
770
  style: {
770
771
  transform: `scale(${c})`,
771
772
  transformOrigin: "top left"
772
773
  },
773
- children: /* @__PURE__ */ v.jsx(
774
- Rr,
774
+ children: /* @__PURE__ */ s.jsx(
775
+ ke,
775
776
  {
776
- config: h,
777
- deviceKey: a.key,
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
- ] }, a.key)) })
788
+ ] }, n.key)) })
788
789
  ]
789
790
  }
790
791
  );
791
792
  }
792
- function Lr({
793
- config: h
793
+ function Mr({
794
+ config: l
794
795
  }) {
795
- const _ = {
796
- languages: h.languages,
797
- devices: h.devices.map((c) => ({
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((p) => ({
803
- key: p.key
803
+ screens: c.screens.map((d) => ({
804
+ key: d.key
804
805
  }))
805
806
  }))
806
807
  };
807
- return /* @__PURE__ */ v.jsx("pre", { id: "screegen-config", children: JSON.stringify(_, null, 2) });
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
- Yr as OverviewGrid,
811
- Rr as Screen,
812
- Lr as ScreengenConfig,
813
- _r as colorSchemes,
814
- mr as getSystemColorScheme,
815
- Wr as useColorScheme,
816
- Nr as useUrlState
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.1",
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",